protected void TxtFPRDName_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string   custno = TxtFPRDName.Text;
            string[] CT     = custno.Split('_');
            if (CT.Length > 0)
            {
                TxtFPRDName.Text = CT[0].ToString();
                TxtFPRD.Text     = CT[1].ToString();
                //TxtGLCD.Text = CT[2].ToString();
                string[] GLS = BD.GetAccTypeGL(TxtFPRD.Text, Session["BRCD"].ToString()).Split('_');
                ViewState["DRGL"] = GLS[1].ToString();
                //AutoAccname.ContextKey = Session["BRCD"].ToString() + "_" + TxtProcode.Text + "_" + ViewState["DRGL"].ToString();

                if (TxtFPRDName.Text == "")
                {
                    WebMsgBox.Show("Please enter valid Product code", this.Page);
                    TxtFPRD.Text = "";
                    TxtFPRD.Focus();
                }
                else
                {
                    TxtTPRD.Focus();
                }
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
            //Response.Redirect("FrmLogin.aspx", true);
        }
    }
 protected void TxtBRCD_TextChanged(object sender, EventArgs e)
 {
     try
     {
         if (TxtBRCD.Text != "")
         {
             string bname = AST.GetBranchName(TxtBRCD.Text);
             if (bname != null)
             {
                 TxtBRCDName.Text = bname;
                 TxtFPRD.Focus();
             }
             else
             {
                 WebMsgBox.Show("Enter valid Branch Code.....!", this.Page);
                 TxtBRCD.Text = "";
                 TxtBRCD.Focus();
             }
         }
         else
         {
             WebMsgBox.Show("Enter Branch Code!....", this.Page);
             TxtBRCD.Text = "";
             TxtBRCD.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
    protected void TxtFPRD_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string GRP = BD.GetGLGroup(TxtFPRD.Text, Session["BRCD"].ToString(), "4");
            if (GRP != null && GRP == "SHR")
            {
                string   TD  = BD.GetAccTypeGL(TxtFPRD.Text, Session["BRCD"].ToString());
                string[] TD1 = TD.Split('_');
                if (TD1.Length > 1)
                {
                }
                TxtFPRDName.Text = TD1[0].ToString();
                ViewState["FGL"] = TD1[1].ToString();

                TxtFAcc.Focus();
            }
            else
            {
                WebMsgBox.Show("Invalid product code, Only SHR group Product accepted...!", this.Page);
                TxtFPRD.Text     = "";
                TxtFPRDName.Text = "";
                TxtFPRD.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Example #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         autoglname.ContextKey = Session["BRCD"].ToString();
         TxtFPRD.Focus();
         TxtDate.Text = Session["EntryDate"].ToString();
     }
 }
    protected void TxtFPRDName_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string   custno = TxtFPRDName.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")
                    {
                        TxtFPRDName.Text = CT[0].ToString();
                        TxtFPRD.Text     = CT[1].ToString();
                        //TxtGLCD.Text = CT[2].ToString();
                        string[] GLS = BD.GetAccTypeGL(TxtFPRD.Text, Session["BRCD"].ToString()).Split('_');
                        ViewState["DRGL"] = GLS[1].ToString();
                        //AutoAccname.ContextKey = Session["BRCD"].ToString() + "_" + TxtProcode.Text + "_" + ViewState["DRGL"].ToString();

                        if (TxtFPRDName.Text == "")
                        {
                            WebMsgBox.Show("Please enter valid Product code", this.Page);
                            TxtFPRD.Text = "";
                            TxtFPRD.Focus();
                        }
                        else
                        {
                            TxtTPRD.Focus();
                        }
                    }
                    else
                    {
                        WebMsgBox.Show("Invalid Deposit Code,Enter MIS code only...!", this.Page);
                        Clear();
                        return;
                    }
                }
                else
                {
                    TxtFPRD.Text     = "";
                    TxtFPRDName.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 Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         TxtDate.Text           = Session["EntryDate"].ToString();
         autoglname.ContextKey  = Session["BRCD"].ToString();
         autoglname1.ContextKey = Session["BRCD"].ToString();
         TxtFBRCD.Text          = Session["BRCD"].ToString();
         TxtTBRCD.Text          = Session["BRCD"].ToString();
         TxtFBRCDName.Text      = AST.GetBranchName(TxtFBRCD.Text);
         TxtTBRCDName.Text      = AST.GetBranchName(TxtTBRCD.Text);
         TxtFPRD.Focus();
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["UserName"] == null)
            {
                Response.Redirect("FrmLogin.aspx");
            }

            TxtFPRD.Focus();
            txtFDate.Text  = Session["EntryDate"].ToString();
            txtTDate.Text  = Session["EntryDate"].ToString();
            txtBrCode.Text = Session["BRCD"].ToString();
            txtbrName.Text = AST.GetBranchName(txtBrCode.Text);
        }
        ScriptManager.GetCurrent(this).AsyncPostBackTimeout = 500000;
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Session["UserName"] == null)
         {
             Response.Redirect("FrmLogin.aspx");
         }
         autoglname.ContextKey  = Session["BRCD"].ToString();
         autoglname1.ContextKey = Session["BRCD"].ToString();
         TxtAsOnDate.Text       = Session["EntryDate"].ToString();
         TxtFBRCD.Text          = Session["BRCD"].ToString();
         TxtTBRCD.Text          = Session["BRCD"].ToString();
         TxtFBRCDName.Text      = AST.GetBranchName(TxtFBRCD.Text);
         TxtTBRCDName.Text      = AST.GetBranchName(TxtTBRCD.Text);
         TxtFPRD.Focus();
     }
     ScriptManager.GetCurrent(this).AsyncPostBackTimeout = 500000;
 }
    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 TxtFPRDName_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string   custno = TxtFPRDName.Text;
            string[] CT     = custno.Split('_');
            if (CT.Length > 0)
            {
                string GRP = BD.GetGLGroup(CT[1].ToString(), Session["BRCD"].ToString(), "4");
                if (GRP != null && GRP == "SHR")
                {
                    TxtFPRDName.Text = CT[0].ToString();
                    TxtFPRD.Text     = CT[1].ToString();
                    string[] GLS = BD.GetAccTypeGL(TxtFPRD.Text, Session["BRCD"].ToString()).Split('_');
                    ViewState["DRGL"]     = GLS[1].ToString();
                    autoglname.ContextKey = Session["BRCD"].ToString() + "_" + TxtFPRD.Text + "_" + ViewState["DRGL"].ToString();
                    string[] TD = Session["EntryDate"].ToString().Split('/');


                    if (TxtFPRDName.Text == "")
                    {
                        WebMsgBox.Show("Please enter valid Product code", this.Page);
                        TxtFPRD.Text = "";
                        TxtFPRD.Focus();
                    }
                    TxtFAcc.Focus();
                }
                else
                {
                    WebMsgBox.Show("Invalid product code, Only SHR group Product accepted...!", this.Page);
                    TxtFPRD.Text     = "";
                    TxtFPRDName.Text = "";
                    TxtFPRD.Focus();
                }
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
    //protected void TxtFBRCD_TextChanged(object sender, EventArgs e)
    //{
    //    try
    //    {
    //        if (TxtFBRCD.Text != "")
    //        {
    //            string bname = AST.GetBranchName(TxtFBRCD.Text);
    //            if (bname != null)
    //            {
    //                TxtFBRCDName.Text = bname;
    //                TxtTBRCD.Focus();

    //            }
    //            else
    //            {
    //                WebMsgBox.Show("Enter valid Branch Code.....!", this.Page);
    //                TxtFBRCD.Text = "";
    //                TxtFBRCD.Focus();
    //            }
    //        }
    //        else
    //        {
    //            WebMsgBox.Show("Enter Branch Code!....", this.Page);
    //            TxtFBRCD.Text = "";
    //            TxtFBRCD.Focus();
    //        }
    //    }
    //    catch (Exception Ex)
    //    {
    //        ExceptionLogging.SendErrorToText(Ex);
    //    }
    //}
    //protected void TxtTBRCD_TextChanged(object sender, EventArgs e)
    //{
    //    try
    //    {
    //        if (TxtTBRCD.Text != "")
    //        {
    //            string bname = AST.GetBranchName(TxtTBRCD.Text);
    //            if (bname != null)
    //            {
    //                TxtTBRCDName.Text = bname;
    //                TxtFPRD.Focus();

    //            }
    //            else
    //            {
    //                WebMsgBox.Show("Enter valid Branch Code.....!", this.Page);
    //                TxtTBRCD.Text = "";
    //                TxtTBRCD.Focus();
    //            }
    //        }
    //        else
    //        {
    //            WebMsgBox.Show("Enter Branch Code!....", this.Page);
    //            TxtTBRCD.Text = "";
    //            TxtTBRCD.Focus();
    //        }
    //    }
    //    catch (Exception Ex)
    //    {
    //        ExceptionLogging.SendErrorToText(Ex);
    //    }
    //}
    protected void TxtFPRD_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string[] TD = BD.GetInvGL1(TxtFPRD.Text, Session["BRCD"].ToString()).Split('_');
            if (TD.Length > 1)
            {
                TxtFPRDName.Text = TD[0].ToString();
                TxtTPRD.Focus();
            }
            else
            {
                TxtFPRD.Text = "";
                TxtFPRD.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
    protected void TxtTBRCD_TextChanged(object sender, EventArgs e)
    {
        try
        {
            if (TxtTBRCD.Text != "")
            {
                string bname = AST.GetBranchName(TxtTBRCD.Text);
                if (bname != null)
                {
                    TxtTBRCDName.Text = bname;
                    TxtFPRD.Focus();

                    if (Convert.ToInt32(TxtFBRCD.Text) > Convert.ToInt32(TxtTBRCD.Text))
                    {
                        WebMsgBox.Show("Invalid FROM and TO Branch Code....!", this.Page);
                        //Clear();
                        return;
                    }
                }
                else
                {
                    WebMsgBox.Show("Enter valid Branch Code.....!", this.Page);
                    TxtTBRCD.Text = "";
                    TxtTBRCD.Focus();
                }
            }
            else
            {
                WebMsgBox.Show("Enter Branch Code!....", this.Page);
                TxtTBRCD.Text = "";
                TxtTBRCD.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Example #13
0
    protected void TxtFPRD_TextChanged(object sender, EventArgs e)
    {
        try
        {
            if (TxtFPRD.Text == "")
            {
                TxtFPRDName.Text = "";
                goto ext;
            }
            int    result = 0;
            string GlS1;
            int.TryParse(TxtFPRD.Text, out result);
            TxtFPRDName.Text = customcs.GetProductName(result.ToString(), Session["BRCD"].ToString());
            GlS1             = BD.GetAccTypeGL(TxtFPRD.Text, Session["BRCD"].ToString());
            if (GlS1 != null)
            {
                string[] GLS = GlS1.Split('_');
                ViewState["DRGL"] = GLS[1].ToString();

                int GL = 0;
                int.TryParse(ViewState["DRGL"].ToString(), out GL);
            }
            else
            {
                WebMsgBox.Show("Enter Valid Product code!....", this.Page);
                TxtFPRD.Text = "";
                TxtFPRD.Text = "";
                TxtFPRD.Focus();
            }

            ext :;
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Example #14
0
    protected void TxtFPRD_TextChanged(object sender, EventArgs e)
    {
        TxtFPRDName.Text = BD.GetAccType(TxtFPRD.Text, Session["BRCD"].ToString());

        TxtFPRD.Focus();
    }