Esempio 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);
        }
Esempio n. 2
0
 public Account GetAccount(int AccountId)
 {
     return(_settingController.GetAccount(AccountId));
 }
 public Account GetBankAccountById(int id)
 {
     return(_controller.GetAccount(id));
 }