コード例 #1
0
        private void GetTempBankTransDetail(string strGroupID, string strID)
        {
            BLL.PaymentBiz biz = new BLL.PaymentBiz();
            var            res = biz.GetTempBankTransDetail(strGroupID, strID);

            if (res.IsError)
            {
                UCModalError.ShowMessageError = res.ErrorMsg;
                UCModalError.ShowModalError();
            }
            else
            {
                txtCompanyName.Text   = res.DataResponse.COMPANY_NAME;
                txtEffectiveDate.Text = PaymentHtmlHelper.ResolveDate(res.DataResponse.EFFECTIVE_DATE);
                txtServiceCode.Text   = res.DataResponse.SERVICE_CODE;
                if (res.DataResponse.BankType == "H")
                {
                    txtTotal.Text  = PaymentHtmlHelper.PhaseKTBMoney(res.DataResponse.TOTAL_CREDIT_AMOUNT);
                    txtAmount.Text = PaymentHtmlHelper.PhaseKTBMoney(res.DataResponse.AMOUNT);
                }
                else if (res.DataResponse.BankType == "1")
                {
                    txtTotal.Text  = PaymentHtmlHelper.PhaseCityBankMoney(res.DataResponse.TOTAL_CREDIT_AMOUNT);
                    txtAmount.Text = PaymentHtmlHelper.PhaseCityBankMoney(res.DataResponse.AMOUNT);
                }

                txtBankCode.Text          = res.DataResponse.BANK_CODE;
                txtCompanyAccount.Text    = res.DataResponse.COMPANY_ACCOUNT;
                txtPaymentDate.Text       = PaymentHtmlHelper.ResolveDate(res.DataResponse.PAYMENT_DATE);
                txtPaymentTime.Text       = res.DataResponse.PAYMENT_TIME;
                txtCustomerName.Text      = res.DataResponse.CUSTOMER_NAME;
                txtCustomerNoRef1.Text    = res.DataResponse.CUSTOMER_NO_REF1;
                txtRef2.Text              = res.DataResponse.REF2;
                txtRef3.Text              = res.DataResponse.REF3;
                txtBranchNo.Text          = res.DataResponse.BRANCH_NO;
                txtTellerNo.Text          = res.DataResponse.TELLER_NO;
                txtKindOfTransaction.Text = res.DataResponse.KIND_OF_TRANSACTION;
                txtTranSactionCode.Text   = res.DataResponse.TRANSACTION_CODE;
                txtChequeNo.Text          = res.DataResponse.CHEQUE_NO;

                txtChequeBankCode.Text = res.DataResponse.CHEQUE_BANK_CODE;
                UpdatePanelSearch.Update();
            }
        }