public void BindBranchTDS()
 {
     try
     {
         BD.BindBRANCHNAME(DDlBranchHO, null);
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
Beispiel #2
0
 public void BindBranch()
 {
     try
     {
         BD.BindBRANCHNAME(ddlBrName, null);
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Session["UserName"] == null)
         {
             Response.Redirect("FrmLogin.aspx");
         }
         BD.BindBRANCHNAME(ddlBrName, null);
     }
 }
Beispiel #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["UserName"] == null)
     {
         Response.Redirect("FrmLogin.aspx");
     }
     if (!IsPostBack)
     {
         TxtAsonDate.Text = Session["EntryDate"].ToString();
         BD.BindBRANCHNAME(ddlBrName, null);
         BindRecDiv();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Session["UserName"] == null)
         {
             Response.Redirect("FrmLogin.aspx");
         }
         BD.BindBRANCHNAME(ddlBrName, null);
         ddlBrName.SelectedValue = Session["BRCD"].ToString();
         txtbranchcode1.Text     = ddlBrName.SelectedValue.ToString();
         if (Request.QueryString["Value"].ToString() != null)
         {
             hdnid.Value = Request.QueryString["Value"].ToString();
             BindHeader();
         }
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["UserName"] == null)
            {
                Response.Redirect("FrmLogin.aspx");
            }

            if (Session["UGRP"].ToString() == "1")
            {
                ViewState["Flag"]     = Request.QueryString["Flag"].ToString();
                txtpermission.Text    = clsa.Get_PERMISSIONNO();
                txtpermission.Enabled = false;
                BD.BindBRANCHNAME(DdlBranchName, Session["BRCD"].ToString());
                txtBranchCode.Enabled = false;

                if (Request.QueryString["Flag"].ToString() == "AD")
                {
                    div_main.Visible     = true;
                    div_view.Visible     = false;
                    btncreate.Visible    = true;
                    btnmodify.Visible    = false;
                    btnsuspend.Visible   = false;
                    btnauthorize.Visible = false;
                    BtnReport.Visible    = true;
                }
                else if (Request.QueryString["Flag"].ToString() == "MD")
                {
                    div_main.Visible = true;
                    div_view.Visible = false;
                    BindGrid();
                    btncreate.Visible    = false;
                    btnmodify.Visible    = true;
                    btnsuspend.Visible   = false;
                    btnauthorize.Visible = false;
                    txtLoginCode.Enabled = false;
                    BtnReport.Visible    = true;
                }
                else if (Request.QueryString["Flag"].ToString() == "DL")
                {
                    div_main.Visible = true;
                    div_view.Visible = false;
                    BindGrid();
                    btncreate.Visible    = false;
                    btnmodify.Visible    = false;
                    btnsuspend.Visible   = true;
                    btnauthorize.Visible = false;
                    txtLoginCode.Enabled = false;
                    BtnReport.Visible    = true;
                }
                else if (Request.QueryString["Flag"].ToString() == "AT")
                {
                    div_main.Visible = true;
                    div_view.Visible = false;
                    BindGrid();
                    btncreate.Visible    = false;
                    btnmodify.Visible    = false;
                    btnsuspend.Visible   = false;
                    btnauthorize.Visible = true;
                    txtLoginCode.Enabled = false;
                    BtnReport.Visible    = true;
                }
                else if (Request.QueryString["Flag"].ToString() == "VW")
                {
                    div_main.Visible  = false;
                    div_view.Visible  = true;
                    BtnReport.Visible = true;
                }
                DdlBranchName.Focus();
                BD.BINDUSERGRP(ddusergroup);
            }
            else
            {
                Response.Redirect("~/FrmBlank.aspx?ShowMessage=true");
            }
        }
    }
 public void BindBranch()
 {
     BD.BindBRANCHNAME(ddlBrName, null);
 }