Exemplo n.º 1
0
        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"));
        }
Exemplo n.º 2
0
        public string[] GetAutomCompleteCompany(string prefixText)
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var list = biz.GetCompanyCodeByName(prefixText);

            return(list.ToArray());
        }
Exemplo n.º 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;
        }
Exemplo n.º 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"));
        }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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("");
     }
 }