/// <summary> /// ����outlook���¼��� /// </summary> /// <param name="ModuleCode"></param> /// <param name="moduleType"></param> private void AddSubSmall(string ModuleCode) { Infragistics.WebUI.UltraWebListbar.Group subGroup = listbarMenu.Groups.FromKey(ModuleCode.ToString()); Infragistics.WebUI.UltraWebNavigator.UltraWebTree uw = new Infragistics.WebUI.UltraWebNavigator.UltraWebTree(); uw.ID = "uw_tree_" + ModuleCode; uw.ForeColor = System.Drawing.Color.Black; uw.CssClass = "OB_GroupItems"; this.BindTree(uw, ModuleCode); //�������Ͳ˵�չ�ַ�ʽ if (Session["TreeMenuStyle"] == null || Session["TreeMenuStyle"].ToString() == "1") uw.CollapseAll(); else uw.ExpandAll(); CustomTemplate mc = new CustomTemplate(); mc.AddControlToContainer((Control)uw); subGroup.Template = mc; }
/// <summary> /// ����outlook���¼���(��ͼ�� �����˵�) /// </summary> /// <param name="ModuleCode"></param> /// <param name="moduleType"></param> private void AddSubBig(string ModuleCode) { Infragistics.WebUI.UltraWebListbar.Group subGroup = listbarMenu.Groups.FromKey(ModuleCode.ToString()); Table tb = new Table(); tb.ID = "Table_" + ModuleCode; tb.Width = Unit.Percentage(100); tb.HorizontalAlign = HorizontalAlign.Center; BindTable(tb, ModuleCode); CustomTemplate mc = new CustomTemplate(); mc.AddControlToContainer((Control)tb); subGroup.Template = mc; }