private void SendEmail(CashPaymentRequestStatus CPRS) { if (CPRS.Approver != 0) { if (GetSuperviser(CPRS.Approver).IsAssignedJob != true) { EmailSender.Send(GetSuperviser(CPRS.Approver).Email, "Cash Payment Request", (CurrentCashPaymentRequest.AppUser.FullName).ToUpper() + "Requests for Cash Payment with Request No. - '" + (CurrentCashPaymentRequest.RequestNo).ToUpper() + "'"); } else { EmailSender.Send(GetSuperviser(_controller.GetAssignedJobbycurrentuser(CPRS.Approver).AssignedTo).Email, "Cash Payment Request", (CurrentCashPaymentRequest.AppUser.FullName).ToUpper() + " Requests for Cash Payment with Request No. - '" + (CurrentCashPaymentRequest.RequestNo).ToUpper() + "'"); } } else { foreach (AppUser accountant in _settingController.GetAppUsersByEmployeePosition(CPRS.ApproverPosition)) { if (accountant.IsAssignedJob != true) { EmailSender.Send(accountant.Email, "Cash Payment Request", (CurrentCashPaymentRequest.AppUser.FullName).ToUpper() + " Requests for Cash Payment with Request No. - '" + (CurrentCashPaymentRequest.RequestNo).ToUpper() + "'"); } else { EmailSender.Send(GetSuperviser(_controller.GetAssignedJobbycurrentuser(accountant.Id).AssignedTo).Email, "Cash Payment Request", (CurrentCashPaymentRequest.AppUser.FullName).ToUpper() + " Requests for Cash Payment with Request No. - '" + (CurrentCashPaymentRequest.RequestNo).ToUpper() + "'"); } } } }
private void SendEmail(ExpenseLiquidationRequestStatus ELRS) { if (ELRS.Approver != 0) { if (GetSuperviser(ELRS.Approver).IsAssignedJob != true) { EmailSender.Send(GetSuperviser(ELRS.Approver).Email, "Expense Liquidation Request", (CurrentTravelAdvanceRequest.AppUser.FullName).ToUpper() + " Requests for Expense Liquidation for Travel Advance No. '" + (CurrentTravelAdvanceRequest.TravelAdvanceNo).ToUpper() + "'"); } else { EmailSender.Send(GetSuperviser(_controller.GetAssignedJobbycurrentuser(ELRS.Approver).AssignedTo).Email, "Expense Liquidation Request", (CurrentTravelAdvanceRequest.AppUser.FullName).ToUpper() + " Requests for Expense Liquidation for Travel Advance No. '" + (CurrentTravelAdvanceRequest.TravelAdvanceNo).ToUpper() + "'"); } } else { foreach (AppUser accountant in _settingController.GetAppUsersByEmployeePosition(ELRS.ApproverPosition)) { if (accountant.IsAssignedJob != true) { EmailSender.Send(accountant.Email, "Expense Liquidation Request", (CurrentTravelAdvanceRequest.AppUser.FullName).ToUpper() + " Requests for Expense Liquidation for Travel Advance No. - '" + (CurrentTravelAdvanceRequest.TravelAdvanceNo).ToUpper() + "'"); } else { EmailSender.Send(GetSuperviser(_controller.GetAssignedJobbycurrentuser(accountant.Id).AssignedTo).Email, "Expense Liquidation Request", (CurrentTravelAdvanceRequest.AppUser.FullName).ToUpper() + " Requests for Expense Liquidation for Travel Advance No. - '" + (CurrentTravelAdvanceRequest.TravelAdvanceNo).ToUpper() + "'"); } } } }
private void SendEmail(OperationalControlRequestStatus CPRS) { if (GetSuperviser(CPRS.Approver).IsAssignedJob != true) { EmailSender.Send(GetSuperviser(CPRS.Approver).Email, "Bank Payment Request", (CurrentOperationalControlRequest.AppUser.FullName).ToUpper() + " Requests for Bank Payment"); } else { EmailSender.Send(GetSuperviser(_controller.GetAssignedJobbycurrentuser(CPRS.Approver).AssignedTo).Email, "Bank Payment Request", (CurrentOperationalControlRequest.AppUser.FullName).ToUpper() + " Requests for Bank Payment"); } }
private void SendEmail(CashPaymentRequestStatus CPRS) { if (GetSuperviser(CPRS.Approver).IsAssignedJob != true) { EmailSender.Send(GetSuperviser(CPRS.Approver).Email, "Cash Payment Request", (CurrentCashPaymentRequest.AppUser.FullName).ToUpper() + "Requests for Cash Payment with Request No. - '" + (CurrentCashPaymentRequest.RequestNo).ToUpper() + "'"); } else { EmailSender.Send(GetSuperviser(_controller.GetAssignedJobbycurrentuser(CPRS.Approver).AssignedTo).Email, "Cash Payment Request", (CurrentCashPaymentRequest.AppUser.FullName).ToUpper() + " Requests for Cash Payment with Request No. - '" + (CurrentCashPaymentRequest.RequestNo).ToUpper() + "'"); } }
private void SendEmail(TravelAdvanceRequestStatus VRS) { if (GetSuperviser(VRS.Approver).IsAssignedJob != true) { EmailSender.Send(GetSuperviser(VRS.Approver).Email, "Travel Advance Request", (CurrentTravelAdvanceRequest.AppUser.FullName).ToUpper() + " Requests for Travel Advance with Travel Advance No. - " + (CurrentTravelAdvanceRequest.TravelAdvanceNo).ToUpper() + "'"); } else { EmailSender.Send(GetSuperviser(_controller.GetAssignedJobbycurrentuser(VRS.Approver).AssignedTo).Email, "Travel Advance Request", (CurrentTravelAdvanceRequest.AppUser.FullName).ToUpper() + " Requests for Travel Advance with Travel Advance No. - " + (CurrentTravelAdvanceRequest.TravelAdvanceNo).ToUpper() + "'"); } }
private void SendEmail(ExpenseLiquidationRequestStatus ELRS) { if (GetSuperviser(ELRS.Approver).IsAssignedJob != true) { EmailSender.Send(GetSuperviser(ELRS.Approver).Email, "Expense Liquidation Request", (CurrentTravelAdvanceRequest.AppUser.FullName).ToUpper() + " Requests for Expense Liquidation for Travel Advance No. '" + (CurrentTravelAdvanceRequest.TravelAdvanceNo).ToUpper() + "'"); } else { EmailSender.Send(GetSuperviser(_controller.GetAssignedJobbycurrentuser(ELRS.Approver).AssignedTo).Email, "Expense Liquidation Request", (CurrentTravelAdvanceRequest.AppUser.FullName).ToUpper() + " Requests for Expense Liquidation for Travel Advance No. '" + (CurrentTravelAdvanceRequest.TravelAdvanceNo).ToUpper() + "'"); } }
public AssignJob GetAssignedJobbycurrentuser() { return(_controller.GetAssignedJobbycurrentuser()); }