public void SaveOrUpdateOperationalControlRequest() { OperationalControlRequest OperationalControlRequest = CurrentOperationalControlRequest; OperationalControlRequest.RequestNo = View.GetRequestNo; OperationalControlRequest.RequestDate = Convert.ToDateTime(DateTime.Today.ToShortDateString()); OperationalControlRequest.Account = _settingController.GetAccount(View.GetBankAccountId); //OperationalControlRequest.Payee = View.GetPayee; OperationalControlRequest.Description = View.GetDescription; OperationalControlRequest.Beneficiary = _settingController.GetBeneficiary(View.GetBeneficiaryId); OperationalControlRequest.BranchCode = View.GetBranchCode; OperationalControlRequest.BankName = View.GetBankName; OperationalControlRequest.VoucherNo = View.GetVoucherNo; OperationalControlRequest.ProgressStatus = ProgressStatus.InProgress.ToString(); OperationalControlRequest.AppUser = _adminController.GetUser(CurrentUser().Id); OperationalControlRequest.PaymentReimbursementStatus = "Retired"; OperationalControlRequest.ExportStatus = "Not Exported"; OperationalControlRequest.TotalActualExpendture = OperationalControlRequest.TotalActualExpendture; OperationalControlRequest.PageType = View.GetPageType; if (CurrentOperationalControlRequest.OperationalControlRequestStatuses.Count == 0) { SaveOperationalControlRequestStatus(); } GetCurrentApprover(); _controller.SaveOrUpdateEntity(OperationalControlRequest); }
public Beneficiary GetBeneficiaryById(int id) { return(_controller.GetBeneficiary(id)); }