protected void TxtTPRD_TextChanged(object sender, EventArgs e)
    {
        try
        {
            if ((Convert.ToInt32(TxtFPRD.Text) > Convert.ToInt32(TxtTPRD.Text)))
            {
                WebMsgBox.Show("Invalid FROM and TO Product code....!", this.Page);
                TxtTPRD.Text = "";
                TxtTPRD.Focus();
                return;
            }
            string TD1 = BD.GetDepoGLRD(TxtTPRD.Text, Session["BRCD"].ToString());
            if (TD1 != null)
            {
                string[] TD = TD1.Split('_');

                if (TD.Length > 1)
                {
                }
                TXtTPRDName.Text = TD[0].ToString();
                TxtFAcc.Focus();
            }
            else
            {
                WebMsgBox.Show("Invalid Product code...!", this.Page);
                TxtTPRD.Text = "";
                TxtTPRD.Focus();
                return;
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
    protected void TXtTPRDName_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string   custno = TXtTPRDName.Text;
            string[] CT     = custno.Split('_');
            if (CT.Length > 0)
            {
                TXtTPRDName.Text = CT[0].ToString();
                TxtTPRD.Text     = CT[1].ToString();
                //TxtGLCD.Text = CT[2].ToString();
                string[] GLS = BD.GetAccTypeGL(TxtTPRD.Text, Session["BRCD"].ToString()).Split('_');
                ViewState["DRGL"] = GLS[1].ToString();
                //AutoAccname.ContextKey = Session["BRCD"].ToString() + "_" + TxtProcode.Text + "_" + ViewState["DRGL"].ToString();

                if (TXtTPRDName.Text == "")
                {
                    WebMsgBox.Show("Please enter valid Product code", this.Page);
                    TxtTPRD.Text = "";
                    TxtTPRD.Focus();
                }
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
            //Response.Redirect("FrmLogin.aspx", true);
        }
    }
Ejemplo n.º 3
0
 protected void TxtFPRD_TextChanged(object sender, EventArgs e)
 {
     try
     {
         //if (TxtTPRD.Text != "" && (Convert.ToInt32(TxtFPRD.Text.Trim().ToString()) > Convert.ToInt32(TxtTPRD.Text.Trim().ToString())))
         //{
         //    WebMsgBox.Show("Invalid From And To Product code....!", this.Page);
         //    TxtFPRD.Text = "";
         //    TxtTPRD.Text = "";
         //    TxtFPRD.Focus();
         //    return;
         //}
         //string TD1 = BD.GetDepoGL(TxtFPRD.Text.Trim().ToString(), txtBrCode.Text.Trim().ToString());
         //if (TD1 != null)
         //{
         //    string[] TD = TD1.Split('_');
         //    if (TD.Length > 1)
         //    {
         TxtTPRD.Focus();
         //    }
         //}
         //else
         //{
         //    WebMsgBox.Show("Invalid Product code...!", this.Page);
         //    TxtFPRD.Text = "";
         //    TxtFPRD.Focus();
         //    return;
         //}
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
 protected void TxtFPRD_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string tds = BD.GetLoanGL(TxtFPRD.Text, Session["BRCD"].ToString());
         if (tds != null)
         {
             string[] TD = tds.Split('_');
             if (TD.Length > 1)
             {
             }
             TxtFPRDName.Text = TD[0].ToString();
             TXtTPRDName.Text = TD[0].ToString();
             TxtTPRD.Text     = TxtFPRD.Text;
             TxtTPRD.Focus();
         }
         else
         {
             WebMsgBox.Show("Invalid Deposit Code......!", this.Page);
             Clear();
             return;
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
Ejemplo n.º 5
0
    protected void TXtTPRDName_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string   custno = TXtTPRDName.Text;
            string[] CT     = custno.Split('_');
            if (CT.Length > 0)
            {
                TXtTPRDName.Text = CT[0].ToString();
                TxtTPRD.Text     = CT[1].ToString();
                string[] GLS = BD.GetAccTypeGL(TxtTPRD.Text, Session["BRCD"].ToString()).Split('_');
                ViewState["DRGL"] = GLS[1].ToString();

                if (TXtTPRDName.Text == "")
                {
                    WebMsgBox.Show("Please enter valid Product code", this.Page);
                    TxtTPRD.Text = "";
                    TxtTPRD.Focus();
                }
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
    protected void TXtTPRDName_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string   custno = TXtTPRDName.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")
                {
                    STR = MT.GetDepositCat(Session["BRCD"].ToString(), CT[1].ToString(), "MISTRF");
                    if (STR == "MIS")
                    {
                        TXtTPRDName.Text = CT[0].ToString();
                        TxtTPRD.Text     = CT[1].ToString();
                        //TxtGLCD.Text = CT[2].ToString();
                        string[] GLS = BD.GetAccTypeGL(TxtTPRD.Text, Session["BRCD"].ToString()).Split('_');
                        ViewState["DRGL"] = GLS[1].ToString();
                        //AutoAccname.ContextKey = Session["BRCD"].ToString() + "_" + TxtProcode.Text + "_" + ViewState["DRGL"].ToString();

                        if (TXtTPRDName.Text == "")
                        {
                            WebMsgBox.Show("Please enter valid Product code", this.Page);
                            TxtTPRD.Text = "";
                            TxtTPRD.Focus();
                        }
                        else
                        {
                            TxtFAcc.Focus();
                        }
                    }
                    else
                    {
                        WebMsgBox.Show("Invalid Deposit Code,Enter MIS code only...!", this.Page);
                        Clear();
                        return;
                    }
                }
                else
                {
                    TxtTPRD.Text     = "";
                    TXtTPRDName.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 TxtFPRD_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string[] TD = BD.GetLoanGL(TxtFPRD.Text, Session["BRCD"].ToString()).Split('_');
         if (TD.Length > 1)
         {
         }
         TxtFPRDName.Text = TD[0].ToString();
         TxtTPRD.Focus();
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
    protected void TxtFPRD_TextChanged(object sender, EventArgs e)
    {
        try
        {
            //// string[] TD = BD.GetLoanGL(TxtTPRD.Text, Session["BRCD"].ToString()).Split('_');
            ////added by ankita to solve 304 subgl problem 29/06/2017
            if (TxtTPRD.Text != "" && (Convert.ToInt32(TxtFPRD.Text) > Convert.ToInt32(TxtTPRD.Text)))
            {
                WebMsgBox.Show("Invalid FROM and TO Product code....!", this.Page);
                TxtFPRD.Text = "";
                TxtTPRD.Text = "";
                TxtFPRD.Focus();
                return;
            }
            string TD1 = BD.GetDepoGLRD(TxtFPRD.Text, Session["BRCD"].ToString());
            if (TD1 != null)
            {
                string[] TD = TD1.Split('_');
                if (TD.Length > 1)
                {
                }
                TxtFPRDName.Text = TD[0].ToString();

                string CAT = MT.GetDepositCat(Session["BRCD"].ToString(), TxtFPRD.Text, "MISTRF");
                ViewState["CAT"] = CAT.ToString();

                TxtTPRD.Focus();
            }
            else
            {
                WebMsgBox.Show("Invalid Product code...!", this.Page);
                TxtFPRD.Text = "";
                TxtFPRD.Focus();
                return;
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
    protected void TxtFPRD_TextChanged(object sender, EventArgs e)
    {
        TxtFPRDName.Text = BD.GetAccType(TxtFPRD.Text, Session["BRCD"].ToString());

        TxtTPRD.Focus();
    }