/// <summary> /// 功能区域初始化 /// </summary> public virtual void SogFunctionInit() { SogDiv SogFunction = new SogDiv(); SogFunction.CssClass = "SogFunction"; G_SogFunction = SogFunction; Form.Controls.Add(SogFunction); SogSpan s1 = new SogSpan(); s1.InnerText = "已选"; G_SogFunction.Controls.Add(s1); SogSpan s2 = new SogSpan(); s2.InnerText = "0"; s2.CssClass = "number"; G_SogFunction.Controls.Add(s2); SogSpan s3 = new SogSpan(); s3.InnerText = OBJECT.SO_ITEM_DESC; G_SogFunction.Controls.Add(s3); SogDeleteButton btn_delete = new SogDeleteButton(); btn_delete.ID = "btn_delete"; G_SogFunction.Controls.Add(btn_delete); }
/// <summary> ///头部区域初始化 /// </summary> protected virtual void SogHeadInit() { SogDiv SogHead = new SogDiv(); SogHead.CssClass = "SogHead"; G_SogHead = SogHead; Form.Controls.Add(SogHead); SogSpan SogTitle = new SogSpan(); SogTitle.CssClass = "SogTitle"; SogTitle.InnerText = OBJECT.SO_TITLE; G_SogHead.Controls.Add(SogTitle); SogNavigate nv = NavigateInit(); G_Navigate = nv; if (nv.DataSource.Count > 0) { G_SogHead.Controls.Add(nv); } SogDiv SogRight = new SogDiv(); SogRight.CssClass = "SogRight"; G_SogHead.Controls.Add(SogRight); if (OBJECT.SO_IS_ADD && COLUMNS_ADD.Count > 0) { SogSpan add_botton = new SogSpan(); add_botton.CssClass = "add_botton"; add_botton.InnerText = "+"; SogRight.Controls.Add(add_botton); } }
private void SogModalInit(List <SYS_COLUMNS> list_column, string type) { Dictionary <string, string> ht = new Dictionary <string, string>(); ht.Add("add", "新增"); ht.Add("edit", "编辑"); SogDiv SogModal = new SogDiv(); SogModal.CssClass = "SogModal"; SogModal.ID = "div_" + type; Form.Controls.Add(SogModal); SogDiv modal_title = new SogDiv(); modal_title.CssClass = "modal_title"; modal_title.InnerText = ht[type] + OBJECT.SO_ITEM_DESC; SogModal.Controls.Add(modal_title); SogIcon ic = new SogIcon(); ic.CssClass = "fa fa-times-circle SogRight CoverClose"; ic.Attributes.Add("aria-hidden", "true"); modal_title.Controls.Add(ic); SogDiv modal_content = new SogDiv(); modal_content.CssClass = "modal_content"; SogModal.Controls.Add(modal_content); foreach (SYS_COLUMNS c in list_column) { SogDiv modal_item = new SogDiv(); modal_item.CssClass = "modal_item"; modal_content.Controls.Add(modal_item); SogSpan modal_item_title = new SogSpan(); modal_item_title.InnerText = c.SC_COLUMN_DESC; modal_item_title.CssClass = "modal_item_title"; modal_item.Controls.Add(modal_item_title); SogDiv modal_item_content = new SogDiv(); modal_item_content.CssClass = "modal_item_content"; modal_item.Controls.Add(modal_item_content); SogWebControl txt = GetControl(c, type); modal_item_content.Controls.Add(txt); } SogDiv modal_function = new SogDiv(); modal_function.CssClass = "modal_function"; SogModal.Controls.Add(modal_function); SogSpan btn_full = new SogSpan(); btn_full.CssClass = "btn_full"; btn_full.InnerText = "提交"; btn_full.ID = "btn_" + type + "_save"; modal_function.Controls.Add(btn_full); SogSpan btn_empty = new SogSpan(); btn_empty.CssClass = "btn_empty CoverClose"; btn_empty.InnerText = "取消"; modal_function.Controls.Add(btn_empty); }