本文整理匯總了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");
}
}
}