Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public Beneficiary GetBeneficiaryById(int id)
 {
     return(_controller.GetBeneficiary(id));
 }