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");
                }

                DD.BindSecActivity(DdlActivity);
                DD.BindAccActivity(DdlAccActivity);
                DD.DdlODActivity(DdlODActivity);
                DD.DdlODInstActivity(DdlODInstActivity);
                TxtFBrID.Focus();
                //added by ankita 07/10/2017 to make user frndly
                TxtAsonDate.Text = Session["EntryDate"].ToString();
                TxtFBrID.Text    = Session["BRCD"].ToString();
                TxtTBrID.Text    = 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
             TxtFDT.Text   = Session["EntryDate"].ToString();
             TxtFBrID.Text = Session["BRCD"].ToString();
             TxtTBrID.Text = Session["BRCD"].ToString();
             TxtFBrID.Focus();
             if (cmn.MultiBranch(Session["LOGINCODE"].ToString()) != "Y")
             {
                 TxtFBrID.Enabled = false;
                 TxtTBrID.Enabled = false;
                 TxtFDT.Focus();
             }
             else
             {
                 TxtFBrID.Enabled = true;
                 TxtTBrID.Enabled = true;
                 TxtFBrID.Focus();
             }
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
    protected void TxtFBrID_TextChanged(object sender, EventArgs e)
    {
        try
        {
            if (TxtFBrID.Text != "")
            {
                if (TxtFBrID.Text != "" && (Convert.ToInt32(TxtFBrID.Text) > Convert.ToInt32(TxtFBrID.Text)))
                {
                    WebMsgBox.Show("Invalid FROM and TO Branch Code....!", this.Page);
                    return;
                }

                string bname = AST.GetBranchName(TxtFBrID.Text);
                if (bname != null)
                {
                    txtFBrName.Text = bname;
                    TxtFBrID.Focus();
                }
                else
                {
                    WebMsgBox.Show("Enter valid Branch Code.....!", this.Page);
                    TxtFBrID.Text = "";
                    TxtFBrID.Focus();
                }
            }
            else
            {
                WebMsgBox.Show("Enter Branch Code!....", this.Page);
                TxtFBrID.Text = "";
                TxtFBrID.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }