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); } }
private void Init() { if (!String.IsNullOrEmpty(PetitionTypeCode)) { BLL.DataCenterBiz biz = new BLL.DataCenterBiz(); IEnumerable <DTO.ConfigDocument> configDocuments = biz.GetDocumentLicenseConfigByPetitionType(PetitionTypeCode).DataResponse; if (configDocuments != null && configDocuments.Count() > 0) { Context.Session[DataSourceId] = configDocuments; InitGridView(biz); } } }