コード例 #1
0
 protected void Txtprdcode_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string   GL     = BD.GetAccTypeGL(Txtprdcode.Text, Session["BRCD"].ToString());
         string[] GLCODE = GL.Split('_');
         ViewState["DRGL"]       = GL[1].ToString();
         AutoPlGlName.ContextKey = Session["BRCD"].ToString() + "_" + Txtprdcode.Text + "_" + ViewState["DRGL"].ToString();
         string PDName = customcs.GetProductName(Txtprdcode.Text, Session["BRCD"].ToString());
         if (PDName != null)
         {
             Txtprdname.Text = PDName;
             Txtaccno.Focus();
         }
         else
         {
             WebMsgBox.Show("Product Number is Invalid....!", this.Page);
             Txtprdcode.Text = "";
             Txtprdcode.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             if (Session["UserName"] == null)
             {
                 Response.Redirect("FrmLogin.aspx");
             }
             Txtprdcode.Focus();
             ViewState["UN_FL"]      = Request.QueryString["FLAG"].ToString();
             autoglname.ContextKey   = Session["BRCD"].ToString();
             AutoPlGlName.ContextKey = Session["BRCD"].ToString();
             BD.BindACCTYPE(Ddlacctype);
             BD.BindFreq(DDlFreType);
             Bindgrid("ED");
             Flag = "1";
             ViewState["Flag"]         = "AD";
             BtnAdd.Text               = "Submit";
             TblDiv_MainWindow.Visible = false;
             Div_grid.Visible          = true;
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
コード例 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             if (Session["UserName"] == null)
             {
                 Response.Redirect("FrmLogin.aspx");
             }
             Result = Convert.ToInt32(LP.Checkbranch(Session["LOGINCODE"].ToString()));
             if (Result > 0)
             {
                 Txtprdcode.Focus();
                 ViewState["Flag"]     = "AD";
                 BtnSubmit.Text        = "Submit";
                 autoglname.ContextKey = Session["BRCD"].ToString();
                 BindGrid("ED");
                 hdEntrydate.Value = Session["EntryDate"].ToString();
             }
             else
             {
                 Response.Redirect("~/FrmBlank.aspx?ShowMessage=true");
             }
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
コード例 #4
0
 protected void Txtprdname_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string   CUNAME  = Txtprdname.Text;
         string[] custnob = CUNAME.Split('_');
         if (custnob.Length > 1)
         {
             Txtprdname.Text = custnob[0].ToString();
             Txtprdcode.Text = (string.IsNullOrEmpty(custnob[1].ToString()) ? "" : custnob[1].ToString());
             string[] AC = LI.Getaccno(Txtprdcode.Text, Session["BRCD"].ToString()).Split('_');
             ViewState["GLCODE"] = AC[0].ToString();
             TxtFAmt.Focus();
         }
         else
         {
             Txtprdcode.Focus();
             return;
         }
         BindGrid("PA");
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
コード例 #5
0
 protected void btnAddNew_Click(object sender, EventArgs e)
 {
     try
     {
         Txtprdcode.Focus();
         ViewState["Flag"] = "AD";
         BtnAdd.Visible    = true;
         Flag = "1";
         TblDiv_MainWindow.Visible = true;
         Div_grid.Visible          = true;
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
コード例 #6
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);
        }
    }