protected void rdbMultiple_CheckedChanged(object sender, EventArgs e) { if (ViewState["MS"].ToString() == "N") { TxtAMTCOLL.Text = FDR.GetCurrentBalance("X_" + Session["MID"].ToString(), "Y").ToString(); TxtDiff.Text = TxtAMTCOLL.Text; TxtDepoAmt.Enabled = true; ClearFD(); string DD; DD = FDR.GetDUEDATE(ViewState["FDTP"].ToString(), Session["BRCD"].ToString(), "DUED", ViewState["ACC"].ToString(), ViewState["CT"].ToString()); if (DD != null) { dtDeposDate.Text = DD.ToString(); } TxtDepoAmt.Text = "0"; ViewState["CTYPE"] = "M"; } else { TxtAMTCOLL.Text = FDR.GetCurrentBalance("X_" + Session["MID"].ToString(), "Y").ToString(); TxtDiff.Text = TxtAMTCOLL.Text; TxtDepoAmt.Enabled = true; ClearFD(); string DD; TxtDepoAmt.Text = "0"; ViewState["CTYPE"] = "M"; TxtProcode.Focus(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (!string.IsNullOrEmpty(Request.QueryString["SUBGLCODE"].ToString())) { TxtProcode.Text = Request.QueryString["SUBGLCODE"].ToString(); productcd(); TxtAccNo.Text = Request.QueryString["ACCNO"].ToString(); accno(); } if (Session["UserName"] == null) { Response.Redirect("FrmLogin.aspx"); } TxtProcode.Focus(); autoglname.ContextKey = Session["BRCD"].ToString(); AutoTGlName.ContextKey = Session["BRCD"].ToString(); DIV_TPRDACC.Visible = false; Lbl_IntApp.InnerText = CACC.GetIA_LBL(Session["BRCD"].ToString()); Lbl_UCC.InnerText = CACC.GetLabel("UCC", Session["BRCD"].ToString()); Lbl_SC.InnerText = CACC.GetLabel("SC", Session["BRCD"].ToString()); Lbl_ECC.InnerText = CACC.GetLabel("ECC", Session["BRCD"].ToString()); Lbl_ST.InnerText = CACC.GetLabel("ST", Session["BRCD"].ToString()); Lbl_CA.InnerText = CACC.GetLabel("CA", Session["BRCD"].ToString()); Lbl_BC.InnerText = CACC.GetLabel("BC", Session["BRCD"].ToString()); ENDN(false); } }
protected void TxtProcode_TextChanged(object sender, EventArgs e) { try { string GL = BD.GetTDAAccTypeGL(TxtProcode.Text, Session["BRCD"].ToString(), "5"); if (GL != null) { string[] GLT = GL.Split('_'); ViewState["GL"] = GLT[1].ToString(); ViewState["IR"] = GLT[2].ToString(); ddlProductType.SelectedValue = TxtProcode.Text; dtDeposDate.Focus(); } else { WebMsgBox.Show("Invalid Product code.....!", this.Page); TxtProcode.Text = ""; TxtProcode.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
public void productcd() { try { if (TxtProcode.Text == "") { TxtProName.Text = ""; TxtAccNo.Focus(); goto ext; } //Added By Amol on 22092017 as per ambika mam instruction if (BD.GetProdOperate(Session["BRCD"].ToString(), TxtProcode.Text.Trim().ToString()).ToString() != "3") { int result = 0; string GlS1; int.TryParse(TxtProcode.Text, out result); TxtProName.Text = customcs.GetProductName(result.ToString(), Session["BRCD"].ToString()); GlS1 = BD.GetAccTypeGL(TxtProcode.Text, Session["BRCD"].ToString()); if (GlS1 != null) { string[] GLS = GlS1.Split('_'); ViewState["DRGL"] = GLS[1].ToString(); AutoAccname.ContextKey = Session["BRCD"].ToString() + "_" + TxtProcode.Text + "_" + ViewState["DRGL"].ToString(); int GL = 0; int.TryParse(ViewState["DRGL"].ToString(), out GL); TxtAccNo.Focus(); } else { WebMsgBox.Show("Enter Valid Product code!....", this.Page); TxtProcode.Text = ""; TxtProName.Text = ""; TxtProcode.Focus(); } } else { TxtProcode.Text = ""; TxtProName.Text = ""; lblMessage.Text = "Product is not operating...!!"; ModalPopup.Show(this.Page); return; } ext :; } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); //Response.Redirect("FrmLogin.aspx", true); } }
// Product name protected void TxtProcode_TextChanged(object sender, EventArgs e) { string nm = CMN.GetProductName(Convert.ToInt32(TxtProcode.Text), Session["BRCD"].ToString()); TxtProName.Text = nm; if (TxtProName.Text == "") { WebMsgBox.Show("Invalid product code", this.Page); clear(); TxtProcode.Focus(); return; } txtAccNo.Focus(); }
protected void TxtProName_TextChanged(object sender, EventArgs e) { try { string custno = TxtProName.Text; string[] CT = custno.Split('_'); if (CT.Length > 0) { //Added By Amol on 22092017 as per ambika mam instruction if (BD.GetProdOperate(Session["BRCD"].ToString(), CT[1].ToString()).ToString() != "3") { TxtProName.Text = CT[0].ToString(); TxtProcode.Text = CT[1].ToString(); //TxtGLCD.Text = CT[2].ToString(); string[] GLS = BD.GetAccTypeGL(TxtProcode.Text, Session["BRCD"].ToString()).Split('_'); ViewState["DRGL"] = GLS[1].ToString(); AutoAccname.ContextKey = Session["BRCD"].ToString() + "_" + TxtProcode.Text + "_" + ViewState["DRGL"].ToString(); int GL = 0; int.TryParse(ViewState["DRGL"].ToString(), out GL); TxtAccNo.Focus(); if (TxtProName.Text == "") { WebMsgBox.Show("Please enter valid Product code", this.Page); TxtProcode.Text = ""; TxtProcode.Focus(); } } else { TxtProName.Text = ""; TxtProcode.Text = ""; lblMessage.Text = "Product is not operating...!!"; ModalPopup.Show(this.Page); return; } } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); //Response.Redirect("FrmLogin.aspx", true); } }
protected void Clear() { TxtProcode.Text = ""; TxtProName.Text = ""; TxtAccNo.Text = ""; TxtAccName.Text = ""; TxtACStatus.Text = ""; TxtCustNo.Text = ""; TxtOpenDate.Text = ""; TxtClearBal.Text = ""; TxtTotalBal.Text = ""; TxtChrgsCheque.Text = ""; TxtUnusedCheque.Text = ""; TxtMaxC.Text = "0"; TxtOtherChrgs.Text = "0"; TxtStartNo.Text = ""; TxtEndNo.Text = ""; TxtBoooksize.Text = ""; TxtBookUnused.Text = ""; TxtIntApp.Text = "0"; TxtLastIntDate.Text = "0"; TxtUnsedChqChrges.Text = "0"; TxtServChrgs.Text = "0"; TxtEarlyClose.Text = "0"; TxtTotalCease.Text = "0"; TxtTotalTax.Text = "0"; TxtBCCT.Text = "0"; TxtFinal.Text = "0"; TxtCrInt.Text = "0"; TxtSI.Text = ""; TxtReason.Text = ""; TxtTProcode.Text = ""; TxtTPName.Text = ""; TxtTAccno.Text = ""; TxtTAccName.Text = ""; Ddl_type.SelectedValue = "0"; TxtInstNo.Text = ""; TxtInstruDate.Text = ""; TxtProcode.Focus(); DIV_TPRDACC.Visible = false; }
protected void Page_Load(object sender, EventArgs e) { string op = ""; if (!IsPostBack) { // Get operations from query (Insert / Modify / Authorize) op = Request.QueryString["op"].ToString(); ViewState["op"] = op; if (op == "AD") { Literal1.Text = "Deposit Entry"; } else if (op == "MD") { Literal1.Text = "Deposit Modify"; } else if (op == "VW") { Literal1.Text = "Deposit View"; } else if (op == "AT") { Literal1.Text = "Deposit Authorize"; } else if (op == "DL") { Literal1.Text = "Deposit Delete"; } ddlbind.BindOperation(ddlOpType); ddlbind.BindAccType(ddlAccType); ddlbind.BindIntrstPayout(ddlIntrestPay); dtDeposDate.Text = Session["EntryDate"].ToString(); TxtProcode.Focus(); } }
protected void BtnSubmit_Click(object sender, EventArgs e) { string AccNoTransf = "0"; string ProCodeTransf = "0"; string PCMAC = "";///System.Net.Dns.GetHostEntry(Request.ServerVariables["remote_addr"]).HostName.ToString(); if (TxtAccNo1.Text == "") { AccNoTransf = "0"; } else { AccNoTransf = TxtAccNo1.Text; } if (TxtProcode1.Text == "") { ProCodeTransf = "0"; } else { ProCodeTransf = TxtProcode1.Text; } int result = CurrentCls.EntryDeposite(Txtcustno.Text.ToString(), txtAccNo.Text.ToString(), TxtProcode.Text.ToString(), TxtDepoAmt.Text.ToString(), TxtRate.Text.ToString(), dtDeposDate.Text.ToString(), DtDueDate.Text.ToString(), TxtPeriod.Text.ToString(), TxtIntrest.Text.ToString(), TxtMaturity.Text.ToString(), "1001", Session["BRCD"].ToString(), Session["MID"].ToString(), PCMAC, ddlIntrestPay.SelectedValue.ToString(), ddlduration.SelectedValue, "1", TxtProcode1.Text, TxtAccNo1.Text, "", Session["EntryDate"].ToString()); if (result > 0) { WebMsgBox.Show("Record Saved...", this.Page); clear(); TxtProcode.Focus(); } else { WebMsgBox.Show("Could not be saved...", this.Page); } //CurrentCls.DepositeEntry(CUSTNO, CUSTACCNO,DEPOSITGLCODE, PRNAMT, RATEOFINT, OPENINGDATE, DUEDATE, PERIOD, INTAMT, MATURITYAMT, STAGE, BRCD, MID, CID, VID, PCMAC, INTPAYOUT, PRDTYPE); }
public void ClearData() { TxtWRPRCD.Text = ""; TxtWRPRName.Text = ""; TxtWRAccNo.Text = ""; TxtWRAccName.Text = ""; TxtWRAMT.Text = "0"; TxtDepoAmt.Text = ""; TxtMaturity.Text = ""; //dtDeposDate.Text = ""; //DtDueDate.Text = ""; TxtTotalAmount.Text = ""; //TxtDiff.Text=""; ddlPayType.SelectedValue = "0"; ddlProductType.SelectedValue = "0"; ddlduration.SelectedValue = "0"; ddlIntrestPay.SelectedValue = "0"; TxtPeriod.Text = ""; TxtProcode.Text = ""; TxtRate.Text = ""; TxtIntrest.Text = ""; TxtReceiptNo.Text = ""; TxtProcode.Focus(); }
protected void TxtWRPRCD_TextChanged(object sender, EventArgs e) { try { string[] GLT = BD.GetTDAAccTypeGL(TxtWRPRCD.Text, Session["BRCD"].ToString(), "0").Split('_'); ViewState["DRGL"] = GLT[1].ToString(); TxtWRPRName.Text = GLT[0].ToString(); AutoWRAccName.ContextKey = Session["BRCD"].ToString() + "_" + TxtWRPRCD.Text + "_" + ViewState["DRGL"].ToString(); if (GLT[1] != null || GLT[1] != "") { string res = BD.GetGLGroup(TxtWRPRCD.Text, Session["BRCD"].ToString(), "0"); if (res == "CBB" || res == "CAS") { TxtWRAccNo.Text = TxtWRPRCD.Text; TxtWRAccName.Text = TxtWRPRName.Text; } else { TxtWRAccNo.Focus(); TxtWRAccNo.Text = ""; TxtWRAccName.Text = ""; } } if (TxtWRPRName.Text == "") { WebMsgBox.Show("Invalid product code", this.Page); ClearData(); TxtProcode.Focus(); return; } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
public void productcd() { try { //Added By Amol on 22092017 as per ambika mam instruction if (BD.GetProdOperate(Session["BRCD"].ToString(), TxtProcode.Text.Trim().ToString()).ToString() != "3") { if (TxtProcode.Text != "") { string CAT = MT.GetDepositCat(Session["BRCD"].ToString(), TxtProcode.Text, "MISTRF"); ViewState["CAT"] = string.IsNullOrEmpty(CAT) ? "0" : CAT; } string GLL = BD.GetAccTypeGL(TxtProcode.Text, Session["BRCD"].ToString()); if (GLL != null) { string[] GLLL = GLL.Split('_'); ViewState["GLCODE"] = GLLL[1].ToString(); if (ViewState["GLCODE"].ToString() == "15") { } } string nm = BD.GetTDAAccTypeGL(TxtProcode.Text, Session["BRCD"].ToString(), ViewState["GLCODE"].ToString()); if (nm != null) { string[] GLT = nm.Split('_'); ViewState["DRGL"] = GLT[1].ToString(); ViewState["IR"] = GLT[2].ToString(); TxtProName.Text = GLT[0].ToString(); AutoAccname.ContextKey = Session["BRCD"].ToString() + "_" + TxtProcode.Text + "_" + ViewState["DRGL"].ToString(); if (TxtProName.Text == "") { WebMsgBox.Show("Invalid product code", this.Page); TxtProcode.Focus(); return; } else { string IsRD = CMN.CheckRD(TxtProcode.Text.ToString(), Session["BRCD"].ToString()); if (IsRD == null) { ViewState["RD"] = "NO"; } else { ViewState["RD"] = "YES"; } } txtAccNo.Focus(); } else { WebMsgBox.Show("Enter Valid Product Code!....", this.Page); TxtProcode.Text = ""; TxtProcode.Focus(); } } else { TxtProcode.Text = ""; TxtProName.Text = ""; lblMessage.Text = "Product is not operating...!!"; ModalPopup.Show(this.Page); return; } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void RdbSingle_CheckedChanged(object sender, EventArgs e) { try { if (ViewState["MS"].ToString() == "N") { TxtAMTCOLL.Text = FDR.GetCurrentBalance("X_" + Session["MID"].ToString(), "Y").ToString(); if (rdbOP.Checked != true) { TxtDiff.Text = TxtAMTCOLL.Text; } else { TxtDiff.Text = (Convert.ToDouble(ViewState["TPAY"].ToString()) - Convert.ToDouble(ViewState["INTPAY"].ToString())).ToString(); } TxtDepoAmt.Enabled = false; ClearFD(); string DD; DD = FDR.GetDUEDATE(ViewState["FDTP"].ToString(), Session["BRCD"].ToString(), "DUED", ViewState["ACC"].ToString(), ViewState["CT"].ToString()); if (DD != null) { dtDeposDate.Text = DD.ToString(); } if (rdbOP.Checked != true) { TxtDepoAmt.Text = TxtAMTCOLL.Text; } else if (rdbOP.Checked == true && RdbSingle.Checked == true) { TxtDepoAmt.Text = (Convert.ToDouble(ViewState["TPAY"].ToString()) - Convert.ToDouble(ViewState["TINTAMT"].ToString())).ToString(); } //TxtDepoAmt.Text = FDR.GetCurrentBalance("X_" + Session["MID"].ToString(), "Y").ToString(); else { TxtDepoAmt.Text = (Convert.ToDouble(ViewState["TPAY"].ToString()) - Convert.ToDouble(ViewState["INTPAY"].ToString())).ToString(); } ViewState["CTYPE"] = "S"; } else { TxtAMTCOLL.Text = FDR.GetCurrentBalance("X_" + Session["MID"].ToString(), "Y").ToString(); if (rdbOP.Checked != true) { TxtDiff.Text = TxtAMTCOLL.Text; } else { TxtDiff.Text = (Convert.ToDouble(ViewState["TPAY"].ToString()) - Convert.ToDouble(ViewState["INTPAY"].ToString())).ToString(); } TxtDepoAmt.Enabled = false; ClearFD(); if (rdbOP.Checked != true) { TxtDepoAmt.Text = TxtAMTCOLL.Text; } else if (rdbOP.Checked == true && RdbSingle.Checked == true) { //TxtDepoAmt.Text = (Convert.ToDouble(ViewState["TPAY"].ToString()) - Convert.ToDouble(ViewState["TINTAMT"].ToString())).ToString(); TxtDepoAmt.Text = FDR.GetCurrentBalance("X_" + Session["MID"].ToString(), "Y").ToString(); } else { TxtDepoAmt.Text = (Convert.ToDouble(ViewState["TPAY"].ToString()) - Convert.ToDouble(ViewState["INTPAY"].ToString())).ToString(); } TxtProcode.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }