private void GetCompanyByLicenseType(string strLicenTypeCode)
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            List <string>     lst = biz.GetCompanyCodeByName("");

            Session["lsCompCode"] = lst;

            List <string> ls = (List <string>)Session["lsCompCode"];
            List <String> ls2;

            switch (strLicenTypeCode)
            {
            case "01":
            case "07": ls2 = ls.Where(l => l.Contains("[1")).ToList();
                break;

            case "03":
            case "04": ls2 = ls.Where(l => l.Contains("[3")).ToList();
                break;

            case "02":
            case "05":
            case "06":
            case "08": ls2 = ls.Where(l => l.Contains("[2")).ToList();
                break;

            default: ls2 = ls;
                break;
            }
            ddlCompany.DataSource = ls2;
            ddlCompany.DataBind();
            ddlCompany.Items.Insert(0, new ListItem(SysMessage.DefaultSelecting, "0"));
        }
示例#2
0
        public string[] GetAutomCompleteCompany(string prefixText)
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var list = biz.GetCompanyCodeByName(prefixText);

            return(list.ToArray());
        }
示例#3
0
        private void GetAssociation()
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var    list           = biz.GetCompanyCodeByName("");
            string jsonString     = Newtonsoft.Json.JsonConvert.SerializeObject(list);

            hdf.Value = jsonString;
        }
示例#4
0
        private void GetCompany()
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetCompanyCodeByName("");

            ddlCompany.DataSource = ls;
            ddlCompany.DataBind();
            ddlCompany.Items.Insert(0, new ListItem(SysMessage.DefaultSelecting, "0"));
        }
示例#5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
         var    list           = biz.GetCompanyCodeByName("");
         string jsonString     = Newtonsoft.Json.JsonConvert.SerializeObject(list);
         hdf.Value = jsonString;
     }
 }
示例#6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ListApplicant = new List <AddApplicant>();
         UserIdRequest = UserProfile.Id; // "140324110012352";
         DateTime initDate = DateTime.Now;
         Init(UserIdRequest, initDate);
         SwitchModeDisplay();
         Session["lsCompCode"] = centerbiz.GetCompanyCodeByName("");
     }
 }