protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                if (Session["UserName"] == null)
                {
                    Response.Redirect("FrmLogin.aspx");
                }

                TxtAsonDate.Text      = Session["EntryDate"].ToString();
                autoglname.ContextKey = Session["BRCD"].ToString();
                TxtFBrID.Text         = Session["BRCD"].ToString();
                txtFBrName.Text       = AST.GetBranchName(TxtFBrID.Text);
                txtFPrCode.Focus();

                //DD.DdlODActivity(DdlODActivity);
                //DD.DdlODInstActivity(DdlODInstActivity);
                //DD.DdlODLoanActivity(DdlODLoanActivity);

                TxtFBrID.Focus();
                //added by ankita 07/10/2017 to make user frndly
                TxtAsonDate.Text = Session["EntryDate"].ToString();
                TxtFBrID.Text    = Session["BRCD"].ToString();
            }
        }
        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");
                }
                //added by ankita 07/10/2017 to make user frndly
                TxtFBRCD.Text = Session["BRCD"].ToString();
                TxtTBrcd.Text = Session["BRCD"].ToString();
                TxtFBrname.Text = AST.GetBranchName(TxtFBRCD.Text);
                TxtTBrcdName.Text = AST.GetBranchName(TxtTBrcd.Text);
                TxtFDate.Text = conn.sExecuteScalar("select '01/04/'+ convert(varchar(10),(year(dateadd(month, -3,'" + conn.ConvertDate(Session["EntryDate"].ToString()) + "'))))");
                TxtTDate.Text = Session["EntryDate"].ToString();

            }
            string[] prdcd1 = AST.GetGoldPrdcd().Split('_');
            prdcd = prdcd1[0].ToString();
            prdname = prdcd1[1].ToString();
        }
        catch (Exception ex)
        {
            ExceptionLogging.SendErrorToText(ex);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                if (Session["UserName"] == null)
                {
                    Response.Redirect("FrmLogin.aspx");
                }
                DD.BindtableActivity(DdlAccActivity);
                string YEAR = "";
                YEAR = DateTime.Now.Date.Year.ToString();//DT.Year.ToString();

                DivLoan.Visible           = false;
                DivCalculatedData.Visible = false;

                GridView1009.Visible = false;
                GridViewLoan.Visible = false;
                GridViewAcc.Visible  = false;
                GridViewGL.Visible   = false;

                TxtBRCD.Text          = Session["BRCD"].ToString();
                TxtBrname.Text        = AST.GetBranchName(TxtBRCD.Text);
                autoglname.ContextKey = Session["BRCD"].ToString();
                // TxtBRCD.Focus();
                TxtAccType.Focus();
                //added by ankita 07/10/2017 to make user frndly
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Пример #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             if (Session["UserName"] == null)
             {
                 Response.Redirect("FrmLogin.aspx");
             }
             autoFglname.ContextKey = Session["brcd"].ToString();
             //added by ankita 07/10/2017 to make user frndly
             txtfromdate.Text  = conn.sExecuteScalar("select '01/04/'+ convert(varchar(10),(year(dateadd(month, -3,'" + conn.ConvertDate(Session["EntryDate"].ToString()) + "'))))");
             txttodate.Text    = Session["EntryDate"].ToString();
             TxtFBRCD.Text     = Session["BRCD"].ToString();
             TxtFBRCDName.Text = AST.GetBranchName(TxtFBRCD.Text);
             TxtTBRCD.Text     = Session["BRCD"].ToString();
             TxtTBRCDName.Text = AST.GetBranchName(TxtTBRCD.Text);
         }
     }
     catch (Exception ex)
     {
         ExceptionLogging.SendErrorToText(ex);
     }
 }
Пример #5
0
 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);
     }
 }
Пример #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             if (Session["UserName"] == null)
             {
                 Response.Redirect("FrmLogin.aspx");
             }
             txtBrcd.Focus();
             txtBrcd.Text     = Session["BRCD"].ToString();
             txtBrcdname.Text = CAS.GetBranchName(Session["BRCD"].ToString());
             TxtFollowDt.Text = Session["EntryDate"].ToString();
             TxtFdate.Text    = Session["EntryDate"].ToString();
             SRO.BindMainGrd(GrdFollowup, Session["BRCD"].ToString(), Session["EntryDate"].ToString());
             DT = SRO.GetCaseYearFile(Session["EntryDate"].ToString());
             if (DT.Rows.Count > 0)
             {
                 txtCaseNO.Text = DT.Rows[0]["CASENO"].ToString();
                 txtCaseY.Text  = DT.Rows[0]["CASE_YEAR"].ToString();
             }
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
Пример #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                if (Session["UserName"] == null)
                {
                    Response.Redirect("FrmLogin.aspx");
                }

                string usr = LI.GETUSERGRP(Session["MID"].ToString());
                if (usr != "1")
                {
                    HttpContext.Current.Response.Redirect("FrmBlank.aspx?ShowMessage=msg", true);
                }

                TxtBrcd.Text     = Session["BRCD"].ToString();
                TxtBrcdName.Text = AST.GetBranchName(TxtBrcd.Text);
                bindgrd();
            }
        }
        catch (Exception ex)
        {
            ExceptionLogging.SendErrorToText(ex);
        }
    }
Пример #8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                if (Session["UserName"] == null)
                {
                    Response.Redirect("FrmLogin.aspx");
                }
                string YEAR = "";
                YEAR = DateTime.Now.Date.Year.ToString();//DT.Year.ToString();

                TxtTDate.Text         = Session["EntryDate"].ToString();
                TxtBRCD.Text          = Session["BRCD"].ToString();
                TxtBrname.Text        = AST.GetBranchName(TxtBRCD.Text);
                autoglname.ContextKey = Session["BRCD"].ToString();
                // TxtBRCD.Focus();
                TxtAccType.Focus();
                TxtFDate.Text = conn.sExecuteScalar("select '01/04/'+ convert(varchar(10),(year(dateadd(month, -3,'" + conn.ConvertDate(Session["EntryDate"].ToString()) + "'))))");
            }
            catch (Exception Ex)
            {
                ExceptionLogging.SendErrorToText(Ex);
            }
        }
    }
Пример #9
0
 protected void txtbrcdno_TextChanged(object sender, EventArgs e)
 {
     try
     {
         if (txtbrcdno.Text != "")
         {
             string bname = AST.GetBranchName(txtbrcdno.Text);
             if (bname != null)
             {
                 txtbrcdname.Text = bname;
                 txtprdcode.Focus();
             }
             else
             {
                 WebMsgBox.Show("Enter valid Branch Code.....!", this.Page);
                 txtbrcdno.Text = "";
                 txtbrcdno.Focus();
             }
         }
         else
         {
             WebMsgBox.Show("Enter Branch Code!....", this.Page);
             txtbrcdno.Text = "";
             txtbrcdno.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
Пример #10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         TxtDate.Text      = Session["EntryDate"].ToString();
         txtTdate.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();
     }
 }
Пример #11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         try
         {
             // Div_Monthly.Visible = false;
             // Div_Daily.Visible = false;
             string YEAR = "";
             //DateTime DT = Convert.ToDateTime(Convert.ToDateTime(Session["EntryDate"].ToString()).ToString("dd/MM/yyyy"));
             YEAR          = DateTime.Now.Date.Year.ToString();//DT.Year.ToString();
             TxtFDate.Text = Session["EntryDate"].ToString();
             TxtTDate.Text = Session["EntryDate"].ToString();
             // Txtdate.Text = Session["EntryDate"].ToString();
             TxtBRCD.Text   = Session["BRCD"].ToString();
             TxtBrname.Text = AST.GetBranchName(TxtBRCD.Text);
             //autoglname.ContextKey = Session["BRCD"].ToString();
             //   autoglname1.ContextKey = Session["BRCD"].ToString();
             TxtBRCD.Focus();
         }
         catch (Exception Ex)
         {
             ExceptionLogging.SendErrorToText(Ex);
         }
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["UserName"] == null)
            {
                Response.Redirect("FrmLogin.aspx");
            }


            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);
        }
    }
Пример #13
0
    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();
            TxtToDate.Text        = Session["EntryDate"].ToString();
            TxtBRCD.Text          = Session["BRCD"].ToString();
            TxtBRCDName.Text      = AST.GetBranchName(TxtBRCD.Text);
            TxtFromDate.Focus();
        }
        ScriptManager.GetCurrent(this).AsyncPostBackTimeout = 500000;
    }
Пример #15
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         try
         {
             txtfromdate.Text  = conn.sExecuteScalar("select '01/04/'+ convert(varchar(10),(year(dateadd(month, -3,'" + conn.ConvertDate(Session["EntryDate"].ToString()) + "'))))");
             txttodate.Text    = Session["EntryDate"].ToString();
             TxtFBRCD.Text     = Session["BRCD"].ToString();
             TxtFBRCDName.Text = AST.GetBranchName(TxtFBRCD.Text);
             TxtTBRCD.Text     = Session["BRCD"].ToString();
             TxtTBRCDName.Text = AST.GetBranchName(TxtTBRCD.Text);
         }
         catch (Exception Ex)
         {
             ExceptionLogging.SendErrorToText(Ex);
         }
     }
 }
Пример #16
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             TxtBrcd.Text           = Session["BRCD"].ToString();
             TxtBrcdName.Text       = AST.GetBranchName(TxtBrcd.Text);
             automemname.ContextKey = TxtBrcd.Text;
             autoglname.ContextKey  = TxtBrcd.Text;
             bindgrid();
             TxtMemNo.Focus();
         }
     }
     catch (Exception ex)
     {
         ExceptionLogging.SendErrorToText(ex);
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                if (Session["UserName"] == null)
                {
                    Response.Redirect("FrmLogin.aspx");
                }

                TxtBRCD.Text     = Session["BRCD"].ToString();
                TxtBRCDName.Text = AST.GetBranchName(TxtBRCD.Text);
                txtfromdate.Text = Session["EntryDate"].ToString();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             if (Session["UserName"] == null)
             {
                 Response.Redirect("FrmLogin.aspx");
             }
             Div_ACC.Visible         = false;
             Div_DEPOSIT.Visible     = false;
             Div_CUST.Visible        = false;
             Div_Buttons.Visible     = false;
             TxtBRCD.Text            = Session["BRCD"].ToString();
             TxtBRCDName.Text        = AST.GetBranchName(TxtBRCD.Text);
             autoglname.ContextKey   = Session["BRCD"].ToString();
             TxtDBRCD.Text           = Session["BRCD"].ToString();
             TxtDBRCDname.Text       = AST.GetBranchName(TxtDBRCD.Text);
             autoglnameDP.ContextKey = Session["BRCD"].ToString();
             TxtBRCDC.Text           = Session["BRCD"].ToString();
             TxtBRCDNameC.Text       = AST.GetBranchName(TxtBRCDC.Text);
             autocustname.ContextKey = Session["BRCD"].ToString();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         TxtFDate.Text  = Session["EntryDate"].ToString();
         TxtBRCD.Text   = Session["BRCD"].ToString();
         TxtBrname.Text = AST.GetBranchName(TxtBRCD.Text);
         BindGrid();
         BindProduct(ddlProductName);
         TxtAccType.Focus();
         ViewState["Flag"] = "AD";
     }
 }
Пример #20
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             string YEAR = "";
             TextReport.Visible = false;
             //DateTime DT = Convert.ToDateTime(Convert.ToDateTime(Session["EntryDate"].ToString()).ToString("dd/MM/yyyy"));
             YEAR = DateTime.Now.Date.Year.ToString();//DT.Year.ToString();
             autoglname.ContextKey = Session["BRCD"].ToString();
             TxtBRCD.Text          = Session["BRCD"].ToString();
             TxtBrname.Text        = AST.GetBranchName(TxtBRCD.Text);
             TxtAccType.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
         //Response.Redirect("FrmLogin.aspx", true);
     }
 }
 protected void TxtBRCD_TextChanged(object sender, EventArgs e)
 {
     TxtBrname.Text = AST.GetBranchName(TxtBRCD.Text);
     TxtToBrcd.Focus();
 }