當前位置: 首頁>>代碼示例>>C#>>正文


C# WebControls.MenuEventArgs類代碼示例

本文整理匯總了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;
     }
 }
開發者ID:inspire88,項目名稱:TcportGroupOA,代碼行數:26,代碼來源:declare_history.aspx.cs

示例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;
            }
        }
開發者ID:inspire88,項目名稱:TcportGroupOA,代碼行數:31,代碼來源:dou_dec.aspx.cs

示例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;
     }
 }
開發者ID:inspire88,項目名稱:TcportGroupOA,代碼行數:34,代碼來源:declare_back.aspx.cs

示例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;
        }
開發者ID:jordan49,項目名稱:websitepanel,代碼行數:7,代碼來源:TopMenu.ascx.cs

示例5: Menu1_MenuItemClick1

        protected void Menu1_MenuItemClick1(object sender, MenuEventArgs e)
        {
            switch (e.Item.Value)
            {

            }
        }
開發者ID:jorge1993,項目名稱:GrupoARACocina,代碼行數:7,代碼來源:Site.Master.cs

示例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");
 }
開發者ID:vguzmanp,項目名稱:UA_3_DPAA_Taimer,代碼行數:7,代碼來源:Site.Master.cs

示例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;
     }
 }
開發者ID:inspire88,項目名稱:TcportGroupOA,代碼行數:31,代碼來源:work_charge.aspx.cs

示例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;
     }
 }
開發者ID:inspire88,項目名稱:TcportGroupOA,代碼行數:25,代碼來源:work_declare.aspx.cs

示例9: NavigationMenu_MenuItemDataBound

 protected void NavigationMenu_MenuItemDataBound(object sender, MenuEventArgs e)
 {
     if (this.ShouldRemoveItem(e.Item.Text))
     {
         e.Item.Parent.ChildItems.Remove(e.Item);
     }
 }
開發者ID:Asp-Net-Web-Forms-Team-Project,項目名稱:The-CodeBook-Project,代碼行數:7,代碼來源:Site.Master.cs

示例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;
     }
 }
開發者ID:inspire88,項目名稱:TcportGroupOA,代碼行數:27,代碼來源:work_range_excel.aspx.cs

示例11: OnMenuItemClick

		protected virtual void OnMenuItemClick (MenuEventArgs e)
		{
			if (Events != null) {
				MenuEventHandler eh = (MenuEventHandler) Events [MenuItemClickEvent];
				if (eh != null) eh (this, e);
			}
		}
開發者ID:jjenki11,項目名稱:blaze-chem-rendering,代碼行數:7,代碼來源:Menu.cs

示例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;
     }
 }
開發者ID:inspire88,項目名稱:TcportGroupOA,代碼行數:27,代碼來源:pre_declare.aspx.cs

示例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;
 }
開發者ID:benhejl,項目名稱:SWENG500_Team1,代碼行數:7,代碼來源:Reports.aspx.cs

示例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;

            }
        }
開發者ID:RosuMihaiAlexandru,項目名稱:TWProject,代碼行數:33,代碼來源:ContulMeu.aspx.cs

示例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");
         }
     }
 }
開發者ID:zeo2012tracktracer,項目名稱:TrackTracer,代碼行數:25,代碼來源:Site.Master.cs


注:本文中的System.Web.UI.WebControls.MenuEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。