本文整理汇总了C#中System.Web.UI.WebControls.MenuEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# MenuEventArgs类的具体用法?C# MenuEventArgs怎么用?C# MenuEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MenuEventArgs类属于System.Web.UI.WebControls命名空间,在下文中一共展示了MenuEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: menu1_MenuItemClick
protected void menu1_MenuItemClick(object sender, MenuEventArgs e)
{
switch (e.Item.Value)
{
//case "CHOICE":
// this.CallJsFun("window.open('Choice_Filed.aspx','','Height=500px,Width=800px,center=yes,help=no,resizable=no,status=yes,scrollbar=no');");
// break;
case "EXCEL":
string strCorp = "";
if (this.drgCorp.SelectedIndex != 0)
{
strCorp = this.drgCorp.SelectedValue.Trim();
}
string strClass = "";
if (this.drgType.SelectedIndex != 0)
{
strClass = this.drgType.SelectedValue.Trim();
}
CreateGrid();
DataView dvHistory = HistoryDB.SelectHistoryToExcel(strField_Cn, strCorp, this.DateDeclare.FromText.ToString().Trim(), this.DateDeclare.ToText.ToString().Trim(), this.txtCargo_Name.ToString().Trim(), this.DateWork.FromText.ToString().Trim(), this.DateWork.ToText.ToString().Trim(), this.drgType.SelectedValue.Trim(), this.drgInOrOut.SelectedValue.Trim(), this.drgCheck.SelectedValue.Trim());
HistoryFC.ConvertToExcelDown(dvHistory, System.DateTime.Now.ToShortDateString() + "-HistoryQuery", "");
break;
default:
break;
}
}
示例2: menu1_MenuItemClick
protected void menu1_MenuItemClick(object sender, MenuEventArgs e)
{
string strId = "";
switch (e.Item.Value)
{
case "DEL":
strId = OptItem();
if (strId.Length < 1)
{
this.ShowJsMessage("请选择要删除的记录!");
return;
}
if (DecDB.SelectNeedDelDec(strId, true) == false)
{
this.ShowJsMessage("该申报员信息正在使用中,不可以删除");
return;
}
int intFlag = DecDB.DeleteDecInfo(strId);
if (intFlag < 1)
{
this.ShowJsMessage("由于网络原因,本次删除操作失败,请尝试重新删除!");
return;
}
this.ShowJsMessage("删除数据成功!!!");
refreshGrid();
break;
default:
break;
}
}
示例3: menu1_MenuItemClick
protected void menu1_MenuItemClick(object sender, MenuEventArgs e)
{
string strId = OptItem();
if (strId == "")
{
this.ShowJsMessage("请选择要操作的记录!!!");
return;
}
switch (e.Item.Value)
{
case "BACK":
string Work_id = this.OptItem();
if (Work_id == "")
{
this.ShowJsMessage("请选择要操作的记录!!!");
return;
}
string BACKER = CurrUser.StrUser;
string Remark = "";
int intFlag = BackDB.BackErrDeclare(Work_id, BACKER, Remark);
if (intFlag < 1)
{
this.ShowJsMessage("回退申报过程出错,请重新尝试!!!");
return;
}
this.ShowJsMessage("成功回退申报!!!");
BackDB.WriteSysLog("用户:" + CurrUser.StrUser + "将单据号:" + Work_id.Replace("'", "") + "错误回退", CurrUser.StrUser, "错误申报处理");
refreshGrid();
UpdatePanel1.Update();
break;
default:
break;
}
}
示例4: topMenu_MenuItemDataBound
protected void topMenu_MenuItemDataBound(object sender, MenuEventArgs e)
{
string target = ((SiteMapNode)e.Item.DataItem)["target"];
if(!String.IsNullOrEmpty(target))
e.Item.Target = target;
}
示例5: Menu1_MenuItemClick1
protected void Menu1_MenuItemClick1(object sender, MenuEventArgs e)
{
switch (e.Item.Value)
{
}
}
示例6: NavigationMenu_MenuItemClick
protected void NavigationMenu_MenuItemClick(object sender, MenuEventArgs e)
{
//Response.Write("<script>alert(\"Salir!\")</script>");
Session.Remove("usuario");
Session.Abandon();
Response.Redirect("~/TabInicio/SinLogin.aspx");
}
示例7: menu1_MenuItemClick
protected void menu1_MenuItemClick(object sender, MenuEventArgs e)
{
switch (e.Item.Value)
{
case "DEL":
string strId = OptItem();
string strId_cn = OptItem_Cn();
if (strId.Length < 1)
{
this.ShowJsMessage("请选择要删除的记录!");
return;
}
if (chargeDB.SelectNeedDelCharge(strId_cn, true) == false)
{
this.ShowJsMessage("该作业负责人正在使用中,不可以删除!");
return;
}
int intFlag = chargeDB.DeleteCharge(strId, true);
if (intFlag < 1)
{
this.ShowJsMessage("由于网络原因,本次删除操作失败,请尝试重新删除!");
return;
}
this.ShowJsMessage("删除数据成功!!!");
refreshGrid();
UpdatePanel1.Update();
break;
default:
break;
}
}
示例8: menu1_MenuItemClick
protected void menu1_MenuItemClick(object sender, MenuEventArgs e)
{
switch (e.Item.Value)
{
case "DEL":
string strId = OptItem();
if (strId.Length < 1)
{
this.ShowJsMessage("请选择要删除的记录!");
return;
}
int intFlag = DeclareDB.DeleteDeclareCompany(strId, true);
if (intFlag < 1)
{
this.ShowJsMessage("由于网络原因,本次删除操作失败,请尝试重新删除!");
return;
}
this.ShowJsMessage("删除数据成功!!!");
refreshGrid();
UpdatePanel1.Update();
break;
default:
break;
}
}
示例9: NavigationMenu_MenuItemDataBound
protected void NavigationMenu_MenuItemDataBound(object sender, MenuEventArgs e)
{
if (this.ShouldRemoveItem(e.Item.Text))
{
e.Item.Parent.ChildItems.Remove(e.Item);
}
}
示例10: menu1_MenuItemClick
protected void menu1_MenuItemClick(object sender, MenuEventArgs e)
{
int intFlag = 0;
switch (e.Item.Value)
{
case "IMPORT":
string Corp_Code = this.drgCorp.SelectedValue.Trim();
string Ground_Code = this.drgGround.SelectedValue.Trim();
intFlag = RangeDB.InsertBoundFromTmp(Corp_Code,Ground_Code);
if (intFlag < 1)
{
this.ShowJsMessage("由于网络原因,本次删除操作失败,请尝试重新删除!");
return;
}
this.CallJsFun("javascript:alert('导入场所作业范围数据成功!!!');");
RangeDB.RollBackBoundTmp();
this.CallJsFun("javascript:window.close();");
break;
case "DEL":
RangeDB.RollBackBoundTmp();
refreshGrid();
UpdatePanel1.Update();
break;
default:
break;
}
}
示例11: OnMenuItemClick
protected virtual void OnMenuItemClick (MenuEventArgs e)
{
if (Events != null) {
MenuEventHandler eh = (MenuEventHandler) Events [MenuItemClickEvent];
if (eh != null) eh (this, e);
}
}
示例12: menu1_MenuItemClick
protected void menu1_MenuItemClick(object sender, MenuEventArgs e)
{
string Work_Id = OptItem();
string F_Work_Id = OptItem_F();
if (Work_Id == "")
{
this.ShowJsMessage("请选择要操作的记录!!!");
return;
}
switch (e.Item.Value)
{
case "DEL":
int intFlag = PreDecalreDB.DeletePreDeclare(Work_Id, F_Work_Id, true);
if (intFlag < 1)
{
this.ShowJsMessage("审批过程出错,请重新尝试!!!");
return;
}
PreDecalreDB.WriteSysLog("用户:" + CurrUser.StrUser + "将单据号:" + Work_Id.Replace("'", "") + "删除", CurrUser.StrUser, "代理预申报");
this.ShowJsMessage("删除数据成功!!!");
refreshGrid();
UpdatePanel1.Update();
break;
default:
break;
}
}
示例13: ReportMenuClick
protected void ReportMenuClick(object sender, MenuEventArgs e)
{
ProjectData data = reportTypes[e.Item.Text];
ContentPanel.Controls.Clear();
ContentPanel.Controls.Add(data.Display(selectedProject, new DateRange(DateTime.Now, DateTime.Now)));
DateRange.Visible = data.RequiresDateRange;
}
示例14: NavigationMenu_MenuItemClick1
protected void NavigationMenu_MenuItemClick1(object sender, MenuEventArgs e)
{
switch (e.Item.Text)
{
case "Contul meu":
TableUser.Visible = true;
TableEmail.Visible = false;
TableParola.Visible = false;
RezervariGridView.Visible = false;
RecenziiGridView.Visible = false;
break;
case "Modifica email":
TableUser.Visible = false;
TableEmail.Visible = true;
TableParola.Visible = false;
RezervariGridView.Visible = false;
RecenziiGridView.Visible = false;
break;
case "Modifica parola":
TableUser.Visible = false;
TableEmail.Visible = false;
TableParola.Visible = true;
RezervariGridView.Visible = false;
RecenziiGridView.Visible = false;
break;
case "Istoric rezervari":
ShowHistory();
ShowReservations();
break;
}
}
示例15: NavigationMenu_MenuItemClick
protected void NavigationMenu_MenuItemClick(object sender, MenuEventArgs e)
{
if (e.Item.Value.ToString().CompareTo("Projekt") == 0)
{
if (aktywny_projekt != 0)
{
Response.Redirect("SzczegolyProjektu.aspx?id=" + aktywny_projekt);
}
else
{
Response.Redirect("Default.aspx");
}
}
else if (e.Item.Value.ToString().CompareTo("Realizacje") == 0)
{
if (aktywny_projekt != 0)
{
Response.Redirect("Aktualne.aspx");
}
else
{
Response.Redirect("Default.aspx");
}
}
}