Esempio n. 1
0
        private void InitialControl()
        {
            //Search
//            cmbProductSearch.DataSource = ProductBiz.GetProductList();
            cmbProductSearch.DataSource     = ProductBiz.GetProductListNew();
            cmbProductSearch.DataTextField  = "TextField";
            cmbProductSearch.DataValueField = "ValueField";
            cmbProductSearch.DataBind();
            cmbProductSearch.Items.Insert(0, new ListItem("", ""));

            //cmbCampaignSearch.DataSource = CampaignBiz.GetCampaignList("");
            cmbCampaignSearch.DataSource     = CampaignBiz.GetCampaignListNew("");
            cmbCampaignSearch.DataTextField  = "TextField";
            cmbCampaignSearch.DataValueField = "ValueField";
            cmbCampaignSearch.DataBind();
            cmbCampaignSearch.Items.Insert(0, new ListItem("", ""));

            cmbBranchSearch.DataSource     = BranchBiz.GetBranchList(SLMConstant.Branch.All);
            cmbBranchSearch.DataTextField  = "TextField";
            cmbBranchSearch.DataValueField = "ValueField";
            cmbBranchSearch.DataBind();
            cmbBranchSearch.Items.Insert(0, new ListItem("", ""));

            cmbStaffTypeSearch.DataSource     = StaffBiz.GetStaffTypeAllList();
            cmbStaffTypeSearch.DataTextField  = "TextField";
            cmbStaffTypeSearch.DataValueField = "ValueField";
            cmbStaffTypeSearch.DataBind();
            cmbStaffTypeSearch.Items.Insert(0, new ListItem("", ""));

            //Popup
//            cmbProductPopup.DataSource = ProductBiz.GetProductList();
            cmbProductPopup.DataSource     = ProductBiz.GetProductListNew();
            cmbProductPopup.DataTextField  = "TextField";
            cmbProductPopup.DataValueField = "ValueField";
            cmbProductPopup.DataBind();
            cmbProductPopup.Items.Insert(0, new ListItem("", ""));

            //cmbCampaignPopup.DataSource = CampaignBiz.GetCampaignList("");
            cmbCampaignPopup.DataSource     = CampaignBiz.GetCampaignListNew("");
            cmbCampaignPopup.DataTextField  = "TextField";
            cmbCampaignPopup.DataValueField = "ValueField";
            cmbCampaignPopup.DataBind();
            cmbCampaignPopup.Items.Insert(0, new ListItem("", ""));

            cmbStaffTypePopup.DataSource     = StaffBiz.GetStaffTypeAllList();
            cmbStaffTypePopup.DataTextField  = "TextField";
            cmbStaffTypePopup.DataValueField = "ValueField";
            cmbStaffTypePopup.DataBind();
            cmbStaffTypePopup.Items.Insert(0, new ListItem("", ""));
        }