Пример #1
0
        private void CreateTab()
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var res = biz.GetConfigPetitionLicenseType("");

            tbcDynamic = new AjaxControlToolkit.TabContainer();

            for (int i = 0; i < res.DataResponse.Count(); i++)
            {
                TabPanel tbpnlProcessCategory = new TabPanel();
                tbpnlProcessCategory.HeaderText = res.DataResponse[i].Name;
                tbpnlProcessCategory.ID         = "Tab" + i.ToString();

                var ls = biz.GetDocumentLicenseConfigByPetitionType(res.DataResponse[i].Id);
                IEnumerable <DTO.ConfigDocument> configs = ls.DataResponse;

                var tmp = configs.GroupBy(c => c.LICENSE_TYPE_CODE);

                Class.CustomConfigTable configTagle = new Class.CustomConfigTable(res.DataResponse[i].Id);

                configTagle.LinkButtonDelete_Click += new EventHandler(LinkButtonDelete_Click);
                tbpnlProcessCategory.Controls.Add(configTagle);

                tbcDynamic.Tabs.Add(tbpnlProcessCategory);
                TabSettingLicense.Controls.Add(tbcDynamic);
                TabSetting.Controls.Add(TabSettingLicense);
                TabSetting.Controls.Add(TabSettingRegister);
            }
        }
Пример #2
0
        private void GetPetitionType()
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetConfigPetitionLicenseType(SysMessage.DefaultSelecting);


            List <DTO.DataItem> newls = new List <DTO.DataItem>();
            int i = 0;

            foreach (DTO.DataItem item in ls.DataResponse)
            {
                if (item.Id != "01")
                {
                    if (i == 0)
                    {
                        i = i + 1;
                        newls.Add(item);
                        continue;
                    }
                    //item.Name = item.Name.Substring(3);
                    newls.Add(item);
                }
            }



            BindToDDL(ddlPetitionType, newls);
        }
Пример #3
0
 private void GetPetitionType()
 {
     BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
     var ls = biz.GetConfigPetitionLicenseType(SysMessage.DefaultSelecting);
     //BindToDDL(ddlPetitionType, ls.DataResponse.ToList());
 }