本文整理汇总了C#中FrameWork.WebControls.HeadMenuButtonItem类的典型用法代码示例。如果您正苦于以下问题:C# HeadMenuButtonItem类的具体用法?C# HeadMenuButtonItem怎么用?C# HeadMenuButtonItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HeadMenuButtonItem类属于FrameWork.WebControls命名空间,在下文中一共展示了HeadMenuButtonItem类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ButtonBind
private void ButtonBind()
{
HeadMenuButtonItem bi0 = new HeadMenuButtonItem();
bi0.ButtonPopedom = PopedomType.New;
bi0.ButtonName = "部门";
bi0.ButtonUrl = string.Format("New.aspx?GroupID={0}", GroupID);
HeadMenuWebControls1.ButtonList.Add(bi0);
HeadMenuButtonItem bi1 = new HeadMenuButtonItem();
bi1.ButtonPopedom = PopedomType.Orderby;
bi1.ButtonName = "子部门";
bi1.ButtonUrl = string.Format("Orderby.aspx?GroupID={0}",GroupID);
HeadMenuWebControls1.ButtonList.Add(bi1);
if (GroupID != 0)
{
HeadMenuButtonItem bi2 = new HeadMenuButtonItem();
bi2.ButtonPopedom = PopedomType.Edit;
bi2.ButtonName = "部门";
bi2.ButtonUrl = string.Format("Edit.aspx?GroupID={0}", GroupID);
HeadMenuWebControls1.ButtonList.Add(bi2);
HeadMenuButtonItem bi3 = new HeadMenuButtonItem();
bi3.ButtonIcon = "move.gif";
bi3.ButtonName = "移动部门";
bi3.ButtonPopedom = PopedomType.Edit;
bi3.ButtonUrlType = UrlType.JavaScript;
bi3.ButtonUrl = string.Format("sMove('{0}&datetime={1}')",GroupID,DateTime.Now);
HeadMenuWebControls1.ButtonList.Add(bi3);
}
}
示例2: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
OrderByListItems_UniqueID = OrderByListItems.UniqueID.Replace("$","_");
Button1.OnClientClick = string.Format("selectAll({0})", OrderByListItems_UniqueID);
if (!Page.IsPostBack)
{
//AppName_Txt.Text = AppName;
AppName = "应用列表->" + AppName;
TabOptionItem1.Tab_Name = AppName;
BindMenu();
HeadMenuButtonItem m1 = new HeadMenuButtonItem();
m1.ButtonName = "模块分类";
m1.ButtonPopedom = PopedomType.New;
m1.ButtonUrl = string.Format("moduleManager.aspx?CMD=New&S_ID={0}&ModuleId={1}",S_ID,0);
HeadMenuWebControls1.ButtonList.Add(m1);
//判断是否有排序权限
if (!FrameWorkPermission.CheckButtonPermission(PopedomType.Orderby))
TabOptionItem2.Visible = false;
}
}
示例3: BindButton
private void BindButton()
{
HeadMenuButtonItem item0 = new HeadMenuButtonItem();
item0.ButtonName = "角色资料";
item0.ButtonIcon = "look.gif";
item0.ButtonPopedom = PopedomType.List;
item0.ButtonUrl = string.Format("RoleManager.aspx?RoleID={0}&CMD=Look", RoleID);
HeadMenuWebControls1.ButtonList.Add(item0);
if (CMD == "Look")
{
HeadMenuButtonItem item1 = new HeadMenuButtonItem();
item1.ButtonName = "角色权限";
item1.ButtonPopedom = PopedomType.Edit;
item1.ButtonUrl = string.Format("?RoleID={0}&ApplicationID={1}&CMD=Edit", RoleID, ApplicationID);
HeadMenuWebControls1.ButtonList.Add(item1);
}
if (CMD == "Edit")
{
ButtonTr_End.Visible = true;
HeadMenuButtonItem item2 = new HeadMenuButtonItem();
item2.ButtonName = "返回";
item2.ButtonIcon = "back.gif";
item2.ButtonPopedom = PopedomType.List;
item2.ButtonUrl = "history.back(-1);";
item2.ButtonUrlType = UrlType.JavaScript;
HeadMenuWebControls1.ButtonList.Add(item2);
}
}
示例4: SetMenu
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);
}
}
示例5: AddListButton
/// <summary>
/// 增加列表按钮
/// </summary>
private void AddListButton()
{
HeadMenuButtonItem bi = new HeadMenuButtonItem();
bi.ButtonPopedom = PopedomType.List;
bi.ButtonName = "功能检定点模板";
bi.ButtonUrl = string.Format("DefaultPoint.aspx?CMD=List&FunctionID={0}&DeviceID={1}", FunctionID, DeviceID);
HeadMenuWebControls1.ButtonList.Add(bi);
}
示例6: AddNewButton
/// <summary>
/// 增加增加按钮
/// </summary>
private void AddNewButton()
{
HeadMenuButtonItem bi = new HeadMenuButtonItem();
bi.ButtonPopedom = PopedomType.New;
bi.ButtonName = "设备功能";
bi.ButtonUrl = string.Format("ManagerFunction.aspx?CMD=New&DeviceID={0}", DeviceID);
HeadMenuWebControls1.ButtonList.Add(bi);
}
示例7: AddBackButton
private void AddBackButton()
{
HeadMenuButtonItem bi = new HeadMenuButtonItem();
bi.ButtonPopedom = PopedomType.List;
bi.ButtonName = "设备";
bi.ButtonUrl = "Default.aspx";
HeadMenuWebControls1.ButtonList.Add(bi);
}
示例8: OnStart
private void OnStart()
{
InputData();
switch (CMD)
{
case "New":
CMD_Txt = "增加";
HiddenDisp();
TopTr.Visible = false;
break;
case "Edit":
CMD_Txt = "修改";
HiddenDisp();
HeadMenuButtonItem Bm0 = new HeadMenuButtonItem();
Bm0.ButtonPopedom = PopedomType.List;
Bm0.ButtonUrl = string.Format("?CMD=Look&S_ID={0}", S_ID);
Bm0.ButtonIcon = "back.gif";
Bm0.ButtonName = "返回";
HeadMenuWebControls1.ButtonList.Add(Bm0);
HeadMenuButtonItem Bm1 = new HeadMenuButtonItem();
Bm1.ButtonPopedom = PopedomType.Delete;
Bm1.ButtonUrlType = UrlType.JavaScript;
Bm1.ButtonUrl = string.Format("DelData('?CMD=Delete&S_ID={0}')", S_ID);
HeadMenuWebControls1.ButtonList.Add(Bm1);
break;
case "Look":
HiddenInput();
HeadMenuButtonItem Bm2 = new HeadMenuButtonItem();
Bm2.ButtonPopedom = PopedomType.Edit;
Bm2.ButtonUrl = string.Format("?CMD=Edit&S_ID={0}", S_ID);
HeadMenuWebControls1.ButtonList.Add(Bm2);
break;
case "Delete":
CMD_Txt = "删除";
sys_ApplicationsTable sat = new sys_ApplicationsTable();
sat.ApplicationID = S_ID;
sat.DB_Option_Action_ = CMD;
if (sat.ApplicationID != 1)
{
//删除应用表
BusinessFacade.sys_ApplicationsInsertUpdate(sat);
//删除模块表
BusinessFacade.sys_Module_DeleteFormAppID(S_ID);
//删除角色应用权限表
BusinessFacade.sys_RolePermission_DeleteFromAppid(S_ID);
//删除角色应用表
BusinessFacade.sys_RoleApplication_DeleteFormAppid(S_ID);
}
EventMessage.MessageBox(1, "操作成功", "删除记录ID:(" + S_ID + ")成功!", Icon_Type.OK, Common.GetHomeBaseUrl("list.aspx"));
break;
}
All_Title_Txt = CMD_Txt + App_Txt;
HeadMenuWebControls1.HeadOPTxt = TabOptionItem1.Tab_Name = All_Title_Txt;
//Button1.Attributes.Add("Onclick", "javascript:return checkForm(aspnetForm);");
}
示例9: AddByTemplateButton
private void AddByTemplateButton()
{
HeadMenuButtonItem bi = new HeadMenuButtonItem();
bi.ButtonPopedom = PopedomType.New;
bi.ButtonUrlType = UrlType.JavaScript;
bi.ButtonName = "通过选择模板创建";
bi.ButtonUrl = "javascript:showPopWin('选择模板创建设备','AddByDeviceTemplate.aspx?CMD=New&rand'+rand(100000000),700, 420, AlertMessageBox,true)";
HeadMenuWebControls1.ButtonList.Add(bi);
}
示例10: OnBindButton
private void OnBindButton()
{
HeadMenuButtonItem bi0 = new HeadMenuButtonItem();
bi0.ButtonIcon = "back.gif";
bi0.ButtonName = "����";
bi0.ButtonPopedom = PopedomType.List;
bi0.ButtonUrl = string.Format("GroupList.aspx?GroupID={0}", GroupID);
HeadMenuWebControls1.ButtonList.Add(bi0);
}
示例11: AddBackButton
private void AddBackButton()
{
HeadMenuButtonItem bi = new HeadMenuButtonItem();
bi.ButtonPopedom = PopedomType.List;
bi.ButtonName = "设备检测";
bi.ButtonUrlType = UrlType.JavaScript;
bi.ButtonUrl = "javascript:BackToDefaultPage();";
HeadMenuWebControls1.ButtonList.Add(bi);
}
示例12: BindButton
/// <summary>
/// 绑定返回按钮(直接复制)
/// </summary>
private void BindButton()
{
HeadMenuButtonItem bi0 = new HeadMenuButtonItem();
bi0.ButtonIcon = "back.gif";
bi0.ButtonName = "返回";
bi0.ButtonPopedom = PopedomType.List;
bi0.ButtonUrl = string.Format("default.aspx");
HeadMenuWebControls1.ButtonList.Add(bi0);
}
示例13: AddNewButton
/// <summary>
/// 增加增加按钮
/// </summary>
private void AddNewButton()
{
HeadMenuButtonItem bi = new HeadMenuButtonItem();
bi.ButtonPopedom = PopedomType.New;
bi.ButtonName = "功能检定点";
bi.ButtonUrl = string.Format("ManagerPoint.aspx?CMD=New&FunctionID={0}&DeviceID={1}", FunctionID, DeviceID);
HeadMenuWebControls1.ButtonList.Add(bi);
bi = new HeadMenuButtonItem();
bi.ButtonPopedom = PopedomType.New;
bi.ButtonUrlType = UrlType.JavaScript;
bi.ButtonName = "通过模板创建";
bi.ButtonUrl = "javascript:showPopWin('选择模板创建功能检定点','AddByPointTemplate.aspx?CMD=New&FunctionID=" + FunctionID + "&rand'+rand(100000000),700, 420, AlertMessageBox,true)";
HeadMenuWebControls1.ButtonList.Add(bi);
}
示例14: BindButton
private void BindButton()
{
HeadMenuButtonItem bi1 = new HeadMenuButtonItem();
bi1.ButtonPopedom = PopedomType.Delete;
bi1.ButtonUrl = string.Format("DelData('?CMD=Delete&GroupID={0}')", GroupID);
bi1.ButtonUrlType = UrlType.JavaScript;
HeadMenuWebControls1.ButtonList.Add(bi1);
HeadMenuButtonItem bi0 = new HeadMenuButtonItem();
bi0.ButtonIcon = "back.gif";
bi0.ButtonName = "����";
bi0.ButtonPopedom = PopedomType.List;
bi0.ButtonUrl = string.Format("GroupList.aspx?GroupID={0}", GroupID);
HeadMenuWebControls1.ButtonList.Add(bi0);
}
示例15: ButtonBind
private void ButtonBind()
{
try
{
int parent = 0;
if (DictionaryID != 0)
{
T_DataDictionaryEntity dataDictionary = new T_DataDictionaryEntity();
dataDictionary = BusinessFacadeShanliTech_HLD_Business.T_DataDictionaryDisp(DictionaryID);
parent = dataDictionary.parent;
}
if (parent == 0)
{
HeadMenuButtonItem bi0 = new HeadMenuButtonItem();
bi0.ButtonPopedom = PopedomType.New;
bi0.ButtonName = "字典";
bi0.ButtonUrl = string.Format("Manager.aspx?CMD=New&IDX={0}", DictionaryID);
HeadMenuWebControls1.ButtonList.Add(bi0);
}
if (DictionaryID != 0)
{
HeadMenuButtonItem bi2 = new HeadMenuButtonItem();
bi2.ButtonPopedom = PopedomType.Edit;
bi2.ButtonName = "字典";
bi2.ButtonUrl = string.Format("Manager.aspx?CMD=Edit&IDX={0}", DictionaryID);
HeadMenuWebControls1.ButtonList.Add(bi2);
}
}
catch (Exception ex)
{
Console.WriteLine("获取数据字典出错"+ex.Message);
}
}