private void SetMenu() { PermissionModuleName.Text = Title_Txt.Text = string.Format("{0}><a href='ModuleList.aspx?S_ID={3}&AppName={1}'>{1}</a>{2}", "<a href='List.aspx'>应用列表</a>", S_ID_Name, BusinessFacade.GetModuleTitle(ModuleID), S_ID); TabOptionItem1.Tab_Name = "应用模块管理-" + S_ID_Name + "->分类管理"; HeadMenuWebControls1.HeadOPTxt = S_ID_Name; HeadMenuButtonItem m1 = new HeadMenuButtonItem(); m1.ButtonPopedom = PopedomType.List; m1.ButtonName = S_ID_Name + "模块列表"; m1.ButtonIcon = "list.gif"; m1.ButtonUrl = string.Format("ModuleList.aspx?S_ID={0}&AppName={1}", S_ID, S_ID_Name); HeadMenuWebControls1.ButtonList.Add(m1); //判断是否生成增加子模块按钮 if (CMD != "New" && ModuleID != 0)//&& SMT.M_OrderLevel.Substring(2, 2) == "00") { HeadMenuButtonItem m2 = new HeadMenuButtonItem(); m2.ButtonName = "模块"; m2.ButtonPopedom = PopedomType.New; m2.ButtonUrl = string.Format("?CMD=New&ModuleID={0}&S_ID={1}", ModuleID, S_ID); HeadMenuWebControls1.ButtonList.Add(m2); } //判断是否增加返回按钮 if (!string.IsNullOrEmpty(CMD)) { HeadMenuButtonItem m5 = new HeadMenuButtonItem(); m5.ButtonIcon = "back.gif"; m5.ButtonName = "返回"; m5.ButtonPopedom = PopedomType.List; m5.ButtonUrl = string.Format("?ModuleID={0}&S_ID={1}", ModuleID, S_ID); HeadMenuWebControls1.ButtonList.Add(m5); } }