public rptFeesReceipt(string receiptNo, string userId) { InitializeComponent(); xrPicheader.ImageUrl = "~/pictures/letter_head.jpg"; string curency = new InstanceConfigServices().GetConfig("moneyCurency"); xrPowered.Text = "powered by : " + new InstanceConfigServices().GetConfig("developedBy") + " :: " + new InstanceConfigServices().GetConfig("developerWeb"); FeesPayment fp = new FeesPaymentService().GetFeesPayment(receiptNo); xrStudID.Text = fp.xIndexNo.ToString(); xrStudName.Text = fp.xFullName; xrPayDate.Text = fp.DateCreated.Date.ToString(); xrChequeNo.Text = fp.ChequeNo; xrPayMode.Text = fp.PayType.ToString(); xrCashier.Text = fp.xCashier; xrPaidBy.Text = fp.PaidBy; xrReceiptNo.Text = fp.ReceiptNo; xrTerm.Text = fp.xCourse + " " + fp.xTerm; xrAcademic.Text = fp.xAcademic; xrAmtPaid.Text = curency + " " + fp.Payvalue.ToString(); StudentFees sf = new StudentFeesService().GetStudentFeesAccounts(fp.StuduserId, fp.BatchId, userId); xrTotalFees.Text = curency + " " + sf.xFeevalue.ToString(); xrTotalPayments.Text = curency + " " + sf.xPayments.ToString(); xrFessBalance.Text = curency + " " + sf.xFeesLeft.ToString(); }
protected void gvPayments_StartRowEditing(object sender, DevExpress.Web.Data.ASPxStartRowEditingEventArgs e) { e.Cancel = true; FeesPayment fp = new FeesPaymentService().GetFeesPayment(int.Parse(e.EditingKeyValue.ToString()), new SessionManager().GetUserId(this.Session)); txtBranch.Text = fp.Branch; txtChequeNo.Text = fp.ChequeNo; txtIndexNo.Text = fp.xIndexNo; txtpayID.Text = fp.ID.ToString(); txtStudentName.Text = fp.xFullName; txtBank.Text = fp.xBankName; div_payment.Visible = true; gvPayments.CancelEdit(); loadPayments(); uPanel.Update(); }
protected void gvPayments_StartRowEditing(object sender, DevExpress.Web.Data.ASPxStartRowEditingEventArgs e) { e.Cancel = true; FeesPayment sf = new FeesPaymentService().GetFeesPayment(int.Parse(e.EditingKeyValue.ToString()), new SessionManager().GetUserId(this.Session)); txtbatchID.Text = sf.BatchId.ToString(); txtbgroup.Text = sf.Bgroup.ToString(); txtstudID.Text = sf.StuduserId.ToString(); txtStudentName.Text = sf.xFullName; txtIndexNo.Text = sf.xIndexNo; txtReciept.Text = sf.ReceiptNo; spntAmt.Text = sf.Payvalue.ToString(); txtbatchID.Text = sf.BatchId.ToString(); txtPaidinBy.Text = sf.PaidBy; txtFpid.Text = sf.ID.ToString(); if (sf.PayType.ToString() == "Cheque") { cmbBank.DataSource = new LookUpService().GetAllBanks(); cmbBank.ValueField = "lKey"; cmbBank.TextField = "lValue"; cmbBank.Value = sf.Bank.ToString(); cmbBank.Text = sf.Bank.ToString(); cmbBank.DataBind(); txtBranch.Text = sf.Branch; txtCashedBy.Text = sf.CashedBy; txtChequeNo.Text = sf.ChequeNo; txtCleared.Value = sf.Cleared.ToString(); div_Checque.Visible = true; } else { cmbBank.Value = "N/A"; txtBranch.Text = "N/A"; txtChequeNo.Text = "N/A"; txtCashedBy.Text = "N/A"; txtCleared.Text = "Yes"; div_Checque.Visible = false; } div_payment.Visible = true; gvStudents.CancelEdit(); uPanel.Update(); }