private void ShowInfo(Guid TemplateID) { CMICT.CSP.BLL.BS_TEMPLATE_MAINBLL bll = new CMICT.CSP.BLL.BS_TEMPLATE_MAINBLL(); CMICT.CSP.Model.BS_TEMPLATE_MAIN model = bll.GetModel(TemplateID); if (model != null) { this.txtTemplateName.Value = model.TemplateName; this.txtTemplateDesc.Value = model.TemplateDesc; this.txtPageSize.Value = model.PageSize.ToString(); ddlCATEGORY.SelectedValue = model.BigCategory; txtCATEGORY.Text = model.BigCategory; BindSmallCategory(ddlCATEGORY.SelectedValue); ddlsmallcategory.SelectedValue = model.SmallCategory; txtsmallcategory.Text = model.SmallCategory; ddlPageSize.SelectedValue = model.PageSize.ToString(); //txtPageSize.Value = model.PageSize.ToString(); txtUnit.Value = model.Unit; if (model.TemplateStatus == "DISABLE") { chkDisabled.Checked = true; } hidDisabled.Value = model.TemplateStatus; lblpageinfo.Text = GetPageInfoByTemplateID(TemplateID.ToString()); } }
private void ShowInfo(Guid TemplateID) { CMICT.CSP.BLL.BS_TEMPLATE_MAINBLL bll = new CMICT.CSP.BLL.BS_TEMPLATE_MAINBLL(); CMICT.CSP.Model.BS_TEMPLATE_MAIN model = bll.GetModel(TemplateID); if (model != null) { this.txtTemplateName.Value = model.TemplateName; this.txtTemplateDesc.Value = model.TemplateDesc; this.txtPageSize.Value = model.PageSize.ToString(); if (model.TemplateStatus == "禁用") { chkDisabled.Checked = true; } hidDisabled.Value = model.TemplateStatus; } }