protected void txtIntProdCode_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string AC1;
            AC1 = ICR.Getaccno(txtIntProdCode.Text, Session["BRCD"].ToString());

            if (AC1 != null)
            {
                string[] AC = AC1.Split('_');;
                ViewState["IntGlCode"] = AC[0].ToString();
                txtIntProdName.Text    = AC[1].ToString();
            }
            else
            {
                txtIntProdCode.Text = "";
                txtIntProdName.Text = "";
                lblMessage.Text     = "Enter valid Product code...!!";
                ModalPopup.Show(this.Page);

                txtIntProdCode.Focus();
                return;
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
 protected void txtpcode_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string AC1;
         AC1 = accop.Getaccno(txtpcode.Text, Session["BRCD"].ToString(), "");
         if (AC1 != null)
         {
             string[] AC = AC1.Split('-');;
             ViewState["ACCNO"]  = AC[0].ToString();
             ViewState["GLCODE"] = AC[1].ToString();
             txtaccno.Focus();
         }
         else
         {
             WebMsgBox.Show("Enter valid Product code...!!", this.Page);
             txtpcode.Focus();
             txtpcode.Text = "";
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
    //protected void ddlInvestment_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    if (ddlInvestment.SelectedValue == "INV")
    //    {
    //        DivREF.Visible = false;
    //    }
    //    else
    //    {
    //        DivREF.Visible = true;
    //    }
    //}

    protected void txtBankNo1_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string AC1;
            AC1 = IAM.Getaccno(txtPCode.Text.Trim().ToString(), Session["BRCD"].ToString());

            if (AC1 != null && AC1 != "")
            {
                string[] AC = AC1.Split('_');;
                ViewState["GLCODE"] = AC[0].ToString();
                txtBankName1.Text   = AC[1].ToString();

                txtBResNo.Text    = Convert.ToInt32(IAM.GetBoardResNo(Session["BRCD"].ToString())).ToString();
                txtAccNo.Text     = Convert.ToInt32(IAM.GetNextReceiptNo(Session["BRCD"].ToString(), txtPCode.Text.Trim().ToString())).ToString();
                txtReceiptNo.Text = Convert.ToInt32(IAM.GetReceiptNo(txtPCode.Text.Trim().ToString())).ToString();
                txtBranch.Focus();
            }
            else
            {
                WebMsgBox.Show("Enter valid Product code...!!", this.Page);
                ClearData();
                txtPCode.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
    protected void TxtAccType_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string AC1;
            AC1 = LC.Getaccno(TxtAccType.Text, Session["BRCD"].ToString(), "");

            if (AC1 != null)
            {
                string[] AC = AC1.Split('-');;
                ViewState["ACCNO"]     = AC[0].ToString();
                ViewState["GLCODE"]    = AC[1].ToString();
                TxtATName.Text         = AC[2].ToString();
                AutoAccname.ContextKey = Session["BRCD"].ToString() + "_" + TxtAccType.Text + "_" + ViewState["GLCODE"].ToString();
                txtAsOnDate.Focus();
            }
            else
            {
                WebMsgBox.Show("Enter valid Product code!.....", this.Page);
                TxtAccType.Text = "";
                TxtATName.Text  = "";
                TxtAccType.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Example #5
0
    protected void txttype_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string AC1;
            AC1 = accop.Getaccno(txttype.Text, Session["BRCD"].ToString(), "");

            if (AC1 != null)
            {
                string[] AC = AC1.Split('-');;
                ViewState["ACCNO"] = AC[0].ToString();
                if (ViewState["Flag"].ToString() != "AD")
                {
                    txtaccno.Enabled = true;
                    txtaccno.Focus();
                }
                ViewState["GLCODE"] = AC[1].ToString();
                txttynam.Text       = AC[2].ToString();
                txtaccno.Focus();
                AutoAccname.ContextKey = Session["BRCD"].ToString() + "_" + txttype.Text + "_" + ViewState["GLCODE"].ToString();
                txtaccno.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Example #6
0
    public void CallEdit()
    {
        try
        {
            if (ViewState["Flag"].ToString() != "AD")
            {
                DT = LP.GetInfo(ViewState["Id"].ToString(), "Disp", Session["BRCD"].ToString());
                if (DT.Rows.Count > 0)
                {
                    Txtprdcode.Text = DT.Rows[0]["Subglcode"].ToString();
                    string AC1;

                    AC1 = LI.Getaccno(Txtprdcode.Text, Session["BRCD"].ToString());
                    if (AC1 != null)
                    {
                        string[] AC = AC1.Split('_');;
                        Txtprdname.Text     = AC[1].ToString();
                        TxtFAmt.Text        = DT.Rows[0]["FromAmt"].ToString();
                        TxtTAmt.Text        = DT.Rows[0]["ToAmt"].ToString();
                        TxtROI.Text         = DT.Rows[0]["ROI"].ToString();
                        ViewState["GLCODE"] = DT.Rows[0]["Glcode"].ToString();
                        TxtPeriod.Text      = DT.Rows[0]["Period"].ToString();
                        TxtPenalInt.Text    = DT.Rows[0]["PenalInt"].ToString();
                    }
                }
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
    protected void txtProdType1_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string AC1;
            AC1 = OW.Getaccno(txtProdType1.Text, Session["BRCD"].ToString());

            if (AC1 != null)
            {
                string[] AC = AC1.Split('_');;
                ViewState["GLCODE1"]    = AC[0].ToString();
                txtProdName1.Text       = AC[1].ToString();
                AutoAccname1.ContextKey = Session["BRCD"].ToString() + "_" + txtProdType1.Text + "_" + ViewState["GLCODE1"].ToString();

                if (Convert.ToInt32(ViewState["GLCODE1"].ToString() == "" ? "0" : ViewState["GLCODE1"].ToString()) >= 100)
                {
                    TxtAccNo1.Text   = "";
                    TxtAccName1.Text = "";

                    TxtAccNo1.Text   = txtProdType1.Text.ToString();
                    TxtAccName1.Text = txtProdName1.Text.ToString();

                    txtBalance.Text = OW.GetOpenClose(Session["BRCD"].ToString(), txtProdType1.Text.Trim().ToString(), "0", Session["EntryDate"].ToString(), "ClBal").ToString();

                    Txtinstno.Focus();
                }
                else
                {
                    TxtAccNo1.Text   = "";
                    TxtAccName1.Text = "";
                    txtBalance.Text  = "";

                    TxtAccNo1.Focus();
                }
            }
            else
            {
                WebMsgBox.Show("Enter valid Product code...!!", this.Page);
                txtProdType1.Text = "";
                txtProdName1.Text = "";
                TxtAccNo1.Text    = "";
                TxtAccName1.Text  = "";
                txtBalance.Text   = "";
                txtProdType1.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
    protected void txtIntProdCode_TextChanged(object sender, EventArgs e)
    {
        try
        {
            //if (txtIntProdCode.Text == "100")
            //{
            //    txtIntAccNo.Text = "100";
            //}
            //else
            //{
            string AC1;
            AC1 = ICR.Getaccno(txtIntProdCode.Text, Session["BRCD"].ToString());

            if (AC1 != null)
            {
                string[] AC = AC1.Split('_');;
                ViewState["IntGlCode"] = AC[0].ToString();
                txtIntProdName.Text    = AC[1].ToString();
                //txtBResNo.Text = Convert.ToInt32(IAM.GetBoardResNo(Session["BRCD"].ToString())).ToString();
                //txtAccNo.Text = Convert.ToInt32(IAM.GetNextReceiptNo(Session["BRCD"].ToString(), txtPCode.Text.Trim().ToString())).ToString();
                //txtReceiptNo.Text = Convert.ToInt32(IAM.GetReceiptNo(txtPCode.Text.Trim().ToString())).ToString();
                txtPrinProdCode.Focus();
                //IntAutoAccName.ContextKey = Session["BRCD"].ToString() + "_" + txtIntProdCode.Text + "_" + ViewState["IntGlCode"].ToString();

                //txtIntAccNo.Text = "";
                //txtIntAccName.Text = "";

                //txtIntAccNo.Focus();
            }
            else
            {
                txtIntProdCode.Text = "";
                txtIntProdName.Text = "";
                //txtIntAccNo.Text = "";
                //txtIntAccName.Text = "";

                lblMessage.Text = "Enter valid Product code...!!";
                ModalPopup.Show(this.Page);

                txtIntProdCode.Focus();
                return;
            }
            //}
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
 public void CallEdit()
 {
     try
     {
         if (ViewState["Flag"].ToString() != "AD")
         {
             DT = RP.GetInfo(ViewState["Id"].ToString(), "Disp", Session["BRCD"].ToString());
             if (DT.Rows.Count > 0)
             {
                 TxtPno.Text = DT.Rows[0]["REC_PRD"].ToString();
                 string AC1;
                 AC1 = LI.Getaccno(TxtPno.Text, Session["BRCD"].ToString());
                 if (AC1 != null)
                 {
                     string[] AC = AC1.Split('_');;
                     TxtRecPname.Text = AC[1].ToString();
                 }
                 TxtPostPrd.Text = DT.Rows[0]["POST_PRD"].ToString();
                 string AC2;
                 AC2 = LI.Getaccno(TxtPostPrd.Text, Session["BRCD"].ToString());
                 if (AC2 != null)
                 {
                     string[] ACp = AC2.Split('_');;
                     TxtPname.Text = ACp[1].ToString();
                 }
                 string AC3;
                 TxtExrec.Text = DT.Rows[0]["EXRECCODE"].ToString();
                 AC3           = LI.Getaccno(TxtExrec.Text, Session["BRCD"].ToString());
                 if (AC3 != null)
                 {
                     string[] ACe = AC3.Split('_');;
                     TxtEname.Text = ACe[1].ToString();
                 }
                 TxtCol.Text    = DT.Rows[0]["COLUMNNO"].ToString();
                 TxtShort.Text  = DT.Rows[0]["SHORTNAME"].ToString();
                 TxtMarati.Text = DT.Rows[0]["SHORTMARATHI"].ToString();
                 Txtvalue.Text  = DT.Rows[0]["VALUE"].ToString();
                 Txttype.Text   = DT.Rows[0]["TYPE"].ToString();
                 Txtrate.Text   = DT.Rows[0]["RATE"].ToString();
             }
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
    protected void txtProdType_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string AC1;
            if (BD.GetProdOperate(Session["BRCD"].ToString(), txtProdType.Text.Trim().ToString()).ToString() != "3")
            {
                AC1 = SR.Getaccno(Session["BRCD"].ToString(), txtProdType.Text.Trim().ToString());

                if (AC1 != null)
                {
                    string[] AC = AC1.Split('_');;
                    ViewState["GlCode"]    = AC[0].ToString();
                    txtProdName.Text       = AC[1].ToString();
                    AutoAccname.ContextKey = Session["BRCD"].ToString() + "_" + txtProdType.Text + "_" + ViewState["GlCode"].ToString();
                    ClearAccText();

                    txtAccNo.Focus();
                }
                else
                {
                    lblMessage.Text = "Enter Valid Product code...!!";
                    ModalPopup.Show(this.Page);
                    ClearProdText();
                    txtProdType.Focus();
                }
            }
            else
            {
                txtProdType.Text = "";
                txtProdName.Text = "";
                lblMessage.Text  = "Product is not operating...!!";
                ModalPopup.Show(this.Page);
                return;
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Example #11
0
    protected void Txtprdcode_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string AC1;

            AC1 = LI.Getaccno(Txtprdcode.Text, Session["BRCD"].ToString());

            if (AC1 != null)
            {
                string[] AC = AC1.Split('_');;
                ViewState["GLCODE"] = AC[0].ToString();
                if (ViewState["GLCODE"].ToString() == "3")
                {
                    Txtprdname.Text = AC[1].ToString();
                    TxtFAmt.Focus();
                }
                else
                {
                    WebMsgBox.Show("Enter only Loan Product Code....!", this.Page);
                    Txtprdcode.Text = "";
                    Txtprdcode.Focus();
                }
            }
            else
            {
                WebMsgBox.Show("Enter valid Product code...!!", this.Page);
                Txtprdcode.Text = "";
                Txtprdcode.Focus();
                return;
            }
            BindGrid("PA");
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Example #12
0
    protected void TxtPtype_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string AC1;

            AC1 = MV.Getaccno(ViewState["LoanBrCode"].ToString(), TxtPtype.Text.Trim().ToString());

            if (AC1 != null)
            {
                string[] AC = AC1.Split('_');;
                ViewState["GlCode"]    = AC[0].ToString();
                TxtPname.Text          = AC[1].ToString();
                AutoAccname.ContextKey = ViewState["LoanBrCode"].ToString() + "_" + TxtPtype.Text + "_" + ViewState["GlCode"].ToString();

                string YN = CC.GetIntACCYN(ViewState["LoanBrCode"].ToString(), TxtPtype.Text);
                if (Convert.ToInt32(ViewState["GlCode"].ToString() == "" ? "0" : ViewState["GlCode"].ToString()) >= 100 && YN != "Y") //--abhishek as per GL LEVEL Requirment
                {
                    TxtAccNo.Text    = "";
                    TxtCustName.Text = "";
                    txtCustNo.Text   = "";
                    TxtBalance.Text  = "";
                    TxtTotalBal.Text = "";

                    TxtAccNo.Text    = TxtPtype.Text.ToString();
                    TxtCustName.Text = TxtPname.Text.ToString();
                    txtCustNo.Text   = "0";

                    string[] DTE = Session["EntryDate"].ToString().Split('/');
                    TxtBalance.Text  = OC.GetOpenClose("CLOSING", DTE[2].ToString(), DTE[1].ToString(), TxtPtype.Text.Trim().ToString(), "0", Session["BRCD"].ToString(), Session["EntryDate"].ToString(), ViewState["GlCode"].ToString()).ToString();
                    TxtTotalBal.Text = OC.GetOpenClose("MAIN_CLOSING", DTE[2].ToString(), DTE[1].ToString(), TxtPtype.Text.Trim().ToString(), "0", Session["BRCD"].ToString(), Session["EntryDate"].ToString(), ViewState["GlCode"].ToString()).ToString();

                    //TxtBalance.Text = MV.GetOpenClose(ViewState["LoanBrCode"].ToString(), TxtPtype.Text.Trim().ToString(), "0", Session["EntryDate"].ToString(), "ClBal").ToString();
                    //TxtTotalBal.Text = MV.GetOpenClose(ViewState["LoanBrCode"].ToString(), TxtPtype.Text.Trim().ToString(), "0", Session["EntryDate"].ToString(), "MainBal").ToString();

                    TxtNarration.Focus();
                }
                else
                {
                    TxtAccNo.Text    = "";
                    TxtCustName.Text = "";
                    TxtBalance.Text  = "";
                    TxtTotalBal.Text = "";
                    hdfGlCode.Value  = Convert.ToInt32(ViewState["GlCode"].ToString() == "" ? "0" : ViewState["GlCode"].ToString()).ToString();

                    TxtAccNo.Focus();
                }
            }
            else
            {
                lblMessage.Text = "Enter Valid Product code...!!";
                ModalPopup.Show(this.Page);
                ClearText();
                TxtPtype.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
    public void CallEdit()
    {
        try
        {
            DT = OW.GetInfo(Session["BRCD"].ToString(), ViewState["BeneficiaryAccNo"].ToString(), ViewState["Id"].ToString());
            if (DT.Rows.Count > 0)
            {
                DDltransctntype.SelectedItem.Text = string.IsNullOrEmpty(DT.Rows[0]["TranscationType"].ToString()) ? "0" : DT.Rows[0]["TranscationType"].ToString();
                Txtbeneficrycode.Text             = DT.Rows[0]["Beneficiarycode"].ToString();
                Txttransactiontype.Text           = BD.GetTransactnType(DT.Rows[0]["TranscationType"].ToString());
                TxtbeneAccno.Text     = DT.Rows[0]["BeneficiaryAccNo"].ToString();
                TxtInstAmt.Text       = DT.Rows[0]["InstrumentAmount"].ToString();
                Txtbenename.Text      = DT.Rows[0]["BeneficiaryName"].ToString();
                Txtdraweloc.Text      = DT.Rows[0]["DraweeLoc"].ToString();
                Txtprntloc.Text       = DT.Rows[0]["PrintLoc"].ToString();
                Txtbeneadd1.Text      = DT.Rows[0]["BeneAdd1"].ToString();
                Txtbeneadd2.Text      = DT.Rows[0]["BeneAdd2"].ToString();
                Txtbeneadd3.Text      = DT.Rows[0]["BeneAdd3"].ToString();
                Txtbeneadd4.Text      = DT.Rows[0]["BeneAdd4"].ToString();
                Txtbeneadd5.Text      = DT.Rows[0]["BeneAdd5"].ToString();
                Txtinstrefno.Text     = DT.Rows[0]["InstructionRefNo"].ToString();
                Txtcustrefno.Text     = DT.Rows[0]["CustRefNo"].ToString();
                Txtpayd1.Text         = DT.Rows[0]["Payment1"].ToString();
                Txtpayd2.Text         = DT.Rows[0]["Payment2"].ToString();
                Txtpayd3.Text         = DT.Rows[0]["Payment3"].ToString();
                Txtpayd4.Text         = DT.Rows[0]["Payment4"].ToString();
                Txtpayd5.Text         = DT.Rows[0]["Payment5"].ToString();
                Txtpayd6.Text         = DT.Rows[0]["Payment6"].ToString();
                Txtpayd7.Text         = DT.Rows[0]["Payment7"].ToString();
                Txtchequeno.Text      = DT.Rows[0]["ChequeNo"].ToString();
                Txtchqtrndate.Text    = DT.Rows[0]["ChqDate"].ToString().Replace("12:00:00 AM", "");
                Txtmicrno.Text        = DT.Rows[0]["MICRNo"].ToString();
                Txtifccode.Text       = DT.Rows[0]["IFCcode"].ToString();
                Txtbenebankname.Text  = DT.Rows[0]["BeneBankName"].ToString();
                Txtbenebranchnme.Text = DT.Rows[0]["BenebranchName"].ToString();

                Txtbeneemail.Text = DT.Rows[0]["BeneEmailId"].ToString();
                BD.BindPayment(ddlPayType, "1");
                ddlPayType.SelectedValue = string.IsNullOrEmpty(DT.Rows[0]["PaymentType"].ToString()) ? "0" : DT.Rows[0]["PaymentType"].ToString() == "CHEQUE" ? "4" : DT.Rows[0]["PaymentType"].ToString() == "CASH" ? "1" : DT.Rows[0]["PaymentType"].ToString() == "TRANSFER" ? "2":"0";
                Paymenttype();
                Txtinstno.Text     = DT.Rows[0]["InstrumentNo"].ToString();
                TxtChequeDate.Text = DT.Rows[0]["InstDate"].ToString().Replace("12:00:00 AM", "");;
                txtNarration.Text  = DT.Rows[0]["Narration"].ToString();
                txtProdType1.Text  = DT.Rows[0]["Productcode"].ToString();
                string AC1;
                AC1 = OW.Getaccno(txtProdType1.Text, Session["BRCD"].ToString());

                if (AC1 != null)
                {
                    string[] AC = AC1.Split('_');;
                    ViewState["GLCODE1"] = AC[0].ToString();
                    txtProdName1.Text    = AC[1].ToString();
                }
                TxtAccNo1.Text = DT.Rows[0]["AccountNo"].ToString();
                DT             = OW.GetCustName(txtProdType1.Text, TxtAccNo1.Text, Session["BRCD"].ToString());
                if (DT.Rows.Count > 0)
                {
                    string[] CustName = DT.Rows[0]["CustName"].ToString().Split('_');
                    TxtAccName1.Text    = CustName[0].ToString();
                    ViewState["GLCODE"] = CustName[2].ToString();
                }
                txtBalance.Text = OW.GetOpenClose(Session["BRCD"].ToString(), txtProdType1.Text.Trim().ToString(), TxtAccNo1.Text.Trim().ToString(), Session["EntryDate"].ToString(), "ClBal").ToString();
            }
        }

        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Example #14
0
    protected void txtProdType1_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string AC1;

            //Added By Amol on 22092017 as per ambika mam instruction
            if (BD.GetProdOperate(Session["BRCD"].ToString(), txtProdType1.Text.Trim().ToString()).ToString() != "3")
            {
                AC1 = LD.Getaccno(txtProdType1.Text, Session["BRCD"].ToString());

                if (AC1 != null)
                {
                    string[] AC = AC1.Split('_');;
                    ViewState["GLCODE1"]    = AC[0].ToString();
                    txtProdName1.Text       = AC[1].ToString();
                    AutoAccname1.ContextKey = Session["BRCD"].ToString() + "_" + txtProdType1.Text + "_" + ViewState["GLCODE1"].ToString();

                    if (Convert.ToInt32(ViewState["GLCODE1"].ToString() == "" ? "0" : ViewState["GLCODE1"].ToString()) > 100)
                    {
                        TxtAccNo1.Text   = "";
                        TxtAccName1.Text = "";

                        TxtAccNo1.Text   = txtProdType1.Text.ToString();
                        TxtAccName1.Text = txtProdName1.Text.ToString();
                        txtCustNo2.Text  = "0";

                        TxtChequeNo.Focus();
                    }
                    else
                    {
                        TxtAccNo1.Text   = "";
                        TxtAccName1.Text = "";

                        TxtAccNo1.Focus();
                    }
                }
                else
                {
                    WebMsgBox.Show("Enter valid Product code...!!", this.Page);
                    txtProdType1.Text = "";
                    txtProdName1.Text = "";
                    TxtAccNo1.Text    = "";
                    TxtAccName1.Text  = "";

                    txtProdType1.Focus();
                }
            }
            else
            {
                txtProdType1.Text = "";
                txtProdName1.Text = "";
                lblMessage.Text   = "Product is not operating...!!";
                ModalPopup.Show(this.Page);
                return;
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }