当前位置: 首页>>代码示例>>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;未经允许,请勿转载。