Beispiel #1
0
		private void LoadRecord()
		{
			Int64 iID = Convert.ToInt64(Common.Decrypt(Request.QueryString["paymentid"],Session.SessionID));
			Payments clsPayments = new Payments();
			PaymentsDetails clsDetails = clsPayments.Details(iID);
			clsPayments.CommitAndDispose();

			lblPaymentID.Text = clsDetails.PaymentID.ToString();
            cboBank.SelectedIndex = cboBank.Items.IndexOf(cboBank.Items.FindByValue(clsDetails.BankID.ToString()));
			txtChequeNo.Text = clsDetails.ChequeNo;
			txtChequeDate.Text = clsDetails.ChequeDate.ToString("yyyy-MM-dd");
			cboPayee.SelectedIndex = cboPayee.Items.IndexOf(cboPayee.Items.FindByValue(clsDetails.PayeeID.ToString()));
            cboPayee_SelectedIndexChanged(null, null);
			txtPayeeName.Text = clsDetails.PayeeName;
			txtRemarks.Text = clsDetails.Particulars;
			lblTotalDebitAmount.Text = clsDetails.TotalDebitAmount.ToString("#,##0.#0");
			lblTotalCreditAmount.Text = clsDetails.TotalCreditAmount.ToString("#,##0.#0");
			lblTotalAmount.Text = Convert.ToDecimal(clsDetails.TotalDebitAmount - clsDetails.TotalCreditAmount).ToString("#,##0.#0");

			LoadItems();
		}
Beispiel #2
0
		private void LoadRecord()
		{
			Int64 iID = Convert.ToInt64(Common.Decrypt(Request.QueryString["paymentid"],Session.SessionID));
			Payments clsPayments = new Payments();
			PaymentsDetails clsDetails = clsPayments.Details(iID);
			clsPayments.CommitAndDispose();

			lblPaymentID.Text = clsDetails.PaymentID.ToString();
            lblBank.Text = clsDetails.BankCode;
            lblBank.NavigateUrl = Constants.ROOT_DIRECTORY + "/GeneralLedger/_Bank/Default.aspx?task=" + Common.Encrypt("details", Session.SessionID) + "&id=" + Common.Encrypt(clsDetails.BankID.ToString(), Session.SessionID);

			lblChequeNo.Text = clsDetails.ChequeNo;
			lblChequeDate.Text = clsDetails.ChequeDate.ToString("yyyy-MM-dd");
            lblPayeeCode.Text = clsDetails.PayeeCode;

            string stParam = "?task=" + Common.Encrypt("details", Session.SessionID) + "&id=" + Common.Encrypt(clsDetails.PayeeID.ToString(), Session.SessionID);
            lblPayeeCode.NavigateUrl = Constants.ROOT_DIRECTORY + "/PurchasesAndPayables/_Vendor/Default.aspx" + stParam;
            lblPayeeName.Text = clsDetails.PayeeName;
			
			lblRemarks.Text = clsDetails.Particulars;
			lblTotalDebitAmount.Text = clsDetails.TotalDebitAmount.ToString("#,##0.#0");
			lblTotalCreditAmount.Text = clsDetails.TotalCreditAmount.ToString("#,##0.#0");
			lblTotalAmount.Text = Convert.ToDecimal(clsDetails.TotalDebitAmount - clsDetails.TotalCreditAmount).ToString("#,##0.#0");

            LoadPO();
			LoadItems();
		}