コード例 #1
0
 public void FillBranches()
 {
     try
     {
         salesReportUtils.GetALLBranches(ddlBranch, Session["UserID"].ToString());
     }
     catch (Exception ex) { }
 }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     lblError.Visible = false;
     if (!IsPostBack)
     {
         salesReportUtils.GetALLBranches(ddlBranch, Session["UserID"].ToString());
         FillControl();
     }
 }
コード例 #3
0
 public void FillBranches()
 {
     try
     {
         salesReportUtils.GetALLBranches(ddlBranch, Session["UserID"].ToString());
         ddlBranch.SelectedValue = Session["DefaultCompanyID"].ToString().Length == 1 ? "0" + Session["DefaultCompanyID"].ToString() : Session["DefaultCompanyID"].ToString();
     }
     catch (Exception ex) { }
 }
コード例 #4
0
        /// <summary>
        /// FillBranches :method used to Fill Branches in dropdown
        /// </summary>
        public void FillBranches()
        {
            try
            {
                salesReportUtils.GetALLBranches(ddlBranch, Session["UserID"].ToString());

                ddlBranch.SelectedValue = (Request.QueryString["BranchID"].ToString().Trim().Length == 1) ? "0" + Request.QueryString["BranchID"].ToString() : Request.QueryString["BranchID"].ToString();
                ddlBranch.Items[0].Value = "ALL";
            }
            catch (Exception ex) { }
            
        }
コード例 #5
0
 //Fill the Branch DDL
 private void BindBranch()
 {
     try
     {
         salesReportUtils.GetALLBranches(ddlBranch, Session["UserID"].ToString());
         for (int i = 0; i <= ddlBranch.Items.Count - 1; i++)
         {
             if (ddlBranch.Items[i].Value.Trim() == Session["BranchID"].ToString())
             {
                 ddlBranch.Items[i].Selected = true;
                 break;
             }
         }
     }
     catch (Exception ex) { }
 }
コード例 #6
0
    public void FillBranches()
    {
        try
        {
            salesReportUtils.GetALLBranches(ddlBranch, Session["UserID"].ToString());
            //string authCompanyID = salesReportUtils.GetAuthorizedBranchID(Session["UserID"].ToString());

            //DataSet dsChain = (DataSet)SqlHelper.ExecuteDataset(Global.ReportsConnectionString, "[UGEN_SP_Select]",
            //                        new SqlParameter("@TableName", "KPIBranches"),
            //                        new SqlParameter("@columnNames", "Branch,Branch+'-'+BranchName as Name"),
            //                        new SqlParameter("@whereClause", "Branch in (" + authCompanyID + ") and ExcludefromKPI<>'1' order by Branch"));

            //ddlBranch.DataSource = dsChain;
            //ddlBranch.DataTextField = "Name";
            //ddlBranch.DataValueField = "Branch";
            //ddlBranch.DataBind();
            //ddlBranch.Items.Insert(0, new ListItem("All", "0"));
        }
        catch (Exception ex) { }
    }