Exemplo n.º 1
0
    protected void TxtCRAccNo_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string AT = "";
            // AT = BD.GetStage1(TxtAccno.Text, Session["BRCD"].ToString(), ViewState["Flag"].ToString());
            AT = BD.Getstage1(TxtCRAccNo.Text, Session["BRCD"].ToString(), TxtCRPType.Text);
            if (AT != "1003")
            {
                lblMessage.Text = "Sorry Customer not Authorise.........!!";
                ModalPopup.Show(this.Page);
                ClearText();
                TxtPtype.Focus();
            }
            else
            {
                int RC = LI.CheckAccount(TxtCRAccNo.Text, TxtCRPType.Text, Session["BRCD"].ToString());

                if (RC < 0)
                {
                    TxtCRAccNo.Focus();
                    WebMsgBox.Show("Please Enter valide Account Number Account Not Exist..........!!", this.Page);
                    return;
                }
                ViewState["CRCustNo"] = RC;
                TxtCRACName.Text      = AO.Getcustname(RC.ToString());
                TxtChequeNo.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Exemplo n.º 2
0
 protected void TxtCRPType_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string[] GLcredit = BD.GetAccTypeGL(TxtCRPType.Text, Session["BRCD"].ToString()).Split('_');
         TxtCRPTName.Text      = GLcredit[0].ToString();
         ViewState["CRGL"]     = GLcredit[1].ToString();
         Autocrname.ContextKey = Session["BRCD"].ToString() + "_" + TxtCRPType.Text + "_" + ViewState["CRGL"].ToString();
         TxtCRAccNo.Focus();
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
Exemplo n.º 3
0
    protected void TxtCRPTName_TextChanged(object sender, EventArgs e)
    {
        string PCRPName = TxtCRPTName.Text;

        string[] PCRP = PCRPName.Split('_');

        if (PCRP.Length > 1)
        {
            TxtCRPTName.Text = PCRP[0].ToString();
            TxtCRPType.Text  = PCRP[1].ToString();
            TxtCRGLCD.Text   = PCRP[2].ToString();

            string[] GL = BD.GetAccTypeGL(TxtCRPType.Text, Session["BRCD"].ToString()).Split('_');

            ViewState["CRGL"]     = GL[1].ToString();
            Autocrname.ContextKey = Session["BRCD"].ToString() + "_" + TxtCRPType.Text + "_" + ViewState["CRGL"].ToString();
            TxtCRAccNo.Focus();
        }
    }