protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             if (Session["UserName"] == null)
             {
                 Response.Redirect("FrmLogin.aspx");
             }
             DD.BindAccStatusActivity(DdlActivity);
             DD.BindSecActivity(DdlSUActivity);
             BindNPAType();
             Txtfrmbrcd.Focus();
             autoglname.ContextKey  = Session["BRCD"].ToString();
             autoglname1.ContextKey = Session["BRCD"].ToString();
             //added by ankita 07/10/2017 to make user frndly
             Txtfrmbrcd.Text  = Session["BRCD"].ToString();
             Txttobrcd.Text   = Session["BRCD"].ToString();
             TxtAsonDate.Text = Session["EntryDate"].ToString();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
Esempio n. 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                if (Session["UserName"] == null)
                {
                    Response.Redirect("FrmLogin.aspx");
                }

                Txtfrmbrcd.Focus();
                autoglname.ContextKey = Session["BRCD"].ToString();
                //added by ankita 07/10/2017 to make user frndly
                TxtFDate.Text   = conn.sExecuteScalar("select '01/04/'+ convert(varchar(10),(year(dateadd(month, -3,'" + conn.ConvertDate(Session["EntryDate"].ToString()) + "'))))");
                TxtTDate.Text   = Session["EntryDate"].ToString();
                Txtfrmbrcd.Text = Session["BRCD"].ToString();
                Txttobrcd.Text  = Session["BRCD"].ToString();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Esempio n. 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             Txtfrmbrcd.Focus();
             autoglname.ContextKey  = Session["BRCD"].ToString();
             autoglname1.ContextKey = Session["BRCD"].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");
             }
             Txtfrmbrcd.Focus();
             autoglname.ContextKey  = Session["BRCD"].ToString();
             autoglname1.ContextKey = Session["BRCD"].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");
             }
             //added by ankita 07/10/2017 to make user frndly
             TxtAsonDate.Text = Session["EntryDate"].ToString();
             Txtfrmbrcd.Text  = Session["BRCD"].ToString();
             Txtfrmbrcd.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }