• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# WebControls.HeadMenuButtonItem类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中FrameWork.WebControls.HeadMenuButtonItem的典型用法代码示例。如果您正苦于以下问题:C# HeadMenuButtonItem类的具体用法?C# HeadMenuButtonItem怎么用?C# HeadMenuButtonItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



HeadMenuButtonItem类属于FrameWork.WebControls命名空间,在下文中一共展示了HeadMenuButtonItem类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
            }
        }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:30,代码来源:GroupList.aspx.cs


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

            
        }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:28,代码来源:ModuleList.aspx.cs


示例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);
     }
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:28,代码来源:RolePermissionManager.aspx.cs


示例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);
            }
        }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:35,代码来源:moduleManager.aspx.cs


示例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);
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:11,代码来源:ManagerPoint.aspx.cs


示例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);
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:11,代码来源:DefaultFunction.aspx.cs


示例7: AddBackButton

 private void AddBackButton()
 {
     HeadMenuButtonItem bi = new HeadMenuButtonItem();
     bi.ButtonPopedom = PopedomType.List;
     bi.ButtonName = "设备";
     bi.ButtonUrl = "Default.aspx";
     HeadMenuWebControls1.ButtonList.Add(bi);
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:8,代码来源:DefaultFunction.aspx.cs


示例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);");
            
        }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:58,代码来源:AppManager.aspx.cs


示例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);
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:9,代码来源:Default.aspx.cs


示例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);
 }
开发者ID:janker007,项目名称:cocoshun,代码行数:9,代码来源:Orderby.aspx.cs


示例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);
 }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:9,代码来源:Doc_Online_Check.aspx.cs


示例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);
 }
开发者ID:hezejiang,项目名称:EHR,代码行数:12,代码来源:InfoManager.aspx.cs


示例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);
        }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:18,代码来源:DefaultPoint.aspx.cs


示例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);
        }
开发者ID:hezejiang,项目名称:EHR,代码行数:15,代码来源:Edit.aspx.cs


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

          
        }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:40,代码来源:Default.aspx.cs


示例16: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            FrameWorkPermission.CheckPagePermission(CMD);   
            if (!Page.IsPostBack)
            {
                FileLogList.DataSource = FileTxtLogs.GetFileList();
                FileLogList.DataTextField = "Value";
                FileLogList.DataValueField = "Value";
                FileLogList.DataBind();
                BindDate();

            }
            if (FileLogList.Items.Count != 0)
            {
                HeadMenuButtonItem item0 = new HeadMenuButtonItem();
                item0.ButtonName = "当前日志文件";
                item0.ButtonPopedom = PopedomType.Delete;
                item0.ButtonUrlType = UrlType.JavaScript;
                item0.ButtonUrl = "DelData('?CMD=Delete');";
                HeadMenuWebControls1.ButtonList.Add(item0);
            }
            if (CMD == "Delete")
                DeleteFile();
        }
开发者ID:zhanfuzhi,项目名称:shanligitproject,代码行数:24,代码来源:default.aspx.cs


示例17: OnStart

        /// <summary>
        /// ��ʼ��
        /// </summary>
        private void OnStart()
        {
            sys_UserTable ut = BusinessFacade.sys_UserDisp(UserID);
            OnStartData(ut);
            if (CMD == "List")
            {
                DispTr.Visible = true;
                HeadMenuButtonItem bi1 = new HeadMenuButtonItem();
                bi1.ButtonPopedom = PopedomType.Edit;
                bi1.ButtonName = "�û�";
                bi1.ButtonUrl = string.Format("?CMD=Edit&UserID={0}", UserID);
                HeadMenuWebControls1.ButtonList.Add(bi1);

                Hidden_Input();
                PostButton.Visible = false;

            }
            else if (CMD == "New")
            {
                Hidden_Disp();
            }
            else if (CMD == "Edit")
            {
                Hidden_Disp();
                HeadMenuButtonItem bi5 = new HeadMenuButtonItem();
                bi5.ButtonIcon = "back.gif";
                bi5.ButtonPopedom = PopedomType.List;
                bi5.ButtonName = "����";
                bi5.ButtonUrl = string.Format("?CMD=List&UserID={0}", UserID);
                HeadMenuWebControls1.ButtonList.Add(bi5);

                HeadMenuButtonItem bi2 = new HeadMenuButtonItem();
                bi2.ButtonPopedom = PopedomType.Delete;
                bi2.ButtonName = "�û�";
                bi2.ButtonUrlType = UrlType.JavaScript;
                bi2.ButtonUrl = string.Format("DelData('?CMD=Delete&UserID={0}')", UserID);
                HeadMenuWebControls1.ButtonList.Add(bi2);
                U_LoginName.Visible = false;
                U_LoginName_Value.Visible = true;

            }
            else if (CMD == "Delete")
            {
                //Admin�ʺŲ��ܱ�ɾ��
                if ((ut.UserID != 1))
                {
                    if (ut.U_Type == 0 && UserData.GetUserDate.U_Type == 1)
                    {
                        EventMessage.MessageBox(1, "������Ч", "��ͨ�û��޷�ɾ�������û�����!", Icon_Type.Error, Common.GetHomeBaseUrl("default.aspx"));
                    }
                    //ut.DB_Option_Action_ = "Delete";
                    //BusinessFacade.sys_UserInsertUpdate(ut);
                    //�����û�ɾ����ʶ
                    BusinessFacade.Update_Table_Fileds("sys_User", "U_Status=2", string.Format("UserID={0}", UserID));
                    ArrayList lst = BusinessFacade.sys_UserRolesDisp(UserID);
                    foreach (sys_UserRolesTable var in lst)
                    {
                        var.DB_Option_Action_ = "Delete";
                        BusinessFacade.sys_UserRolesInsertUpdate(var);
                    }

                    if (ut.U_PhotoUrl != "")
                    {
                        FileUpLoadCommon.DeleteFile(string.Format("{0}{1}{2}", Common.UpLoadDir, "UserPhoto/", ut.U_PhotoUrl));
                        FileUpLoadCommon.DeleteFile(string.Format("{0}{1}s_{2}", Common.UpLoadDir, "UserPhoto/", ut.U_PhotoUrl));
                    }
                    //�ӻ������Ƴ��û�
                    UserData.MoveUserCache(UserID);
                    //�������б����Ƴ�
                    FrameWorkPermission.UserOnlineList.RemoveUserName(ut.U_LoginName.ToLower());
                }
                EventMessage.MessageBox(1, "�����ɹ�", string.Format("{1}ID({0})�ɹ�!", UserID, "ɾ���û�"), Icon_Type.OK, Common.GetHomeBaseUrl("default.aspx"));

            }
        }
开发者ID:janker007,项目名称:cocoshun,代码行数:78,代码来源:UserManager.aspx.cs


示例18: BindButton

 /// <summary>
 /// 绑定返回按钮(直接复制)
 /// </summary>
 private void BindButton()
 {
     HeadMenuButtonItem bi0 = new HeadMenuButtonItem();
     bi0.ButtonIcon = "back.gif";
     bi0.ButtonName = "返回";
     bi0.ButtonPopedom = PopedomType.List;
     if(UserID == 0 && ConsultationID != 0)
     {
         Maticsoft.BLL.record_Consultation bll = new Maticsoft.BLL.record_Consultation();
         Maticsoft.Model.record_Consultation model = bll.GetModel(ConsultationID);
         UserID = model.C_UserID;
     }
     bi0.ButtonUrl = string.Format("ConsultationList.aspx?UserID={0}", UserID);
     HeadMenuWebControls1.ButtonList.Add(bi0);
 }
开发者ID:hezejiang,项目名称:EHR,代码行数:18,代码来源:ConsultationManager.aspx.cs


示例19: OnStart

        /// <summary>
        /// 初始化
        /// </summary>
        private void OnStart()
        {
            if (CMD == "New")
            {
                this.C_UserID_Txt.Text = getUserModelById(UserID).U_IDCard;
                this.C_Time.Text = DateTime.Now.ToShortDateString();
            }
            else if (CMD == "Edit")
            {
                HeadMenuButtonItem bi2 = new HeadMenuButtonItem();
                bi2.ButtonPopedom = PopedomType.Delete;
                bi2.ButtonName = "会诊记录";
                bi2.ButtonUrlType = UrlType.JavaScript;
                bi2.ButtonUrl = string.Format("DelData('?CMD=Delete&ConsultationID={0}')", ConsultationID);
                HeadMenuWebControls1.ButtonList.Add(bi2);

                InputData();
            }
            else if (CMD == "Delete")
            {
                Maticsoft.BLL.record_Consultation bll = new Maticsoft.BLL.record_Consultation();
                Maticsoft.Model.record_Consultation model = bll.GetModel(ConsultationID);
                bll.Delete(model.ConsultationID);
                EventMessage.MessageBox(1, "操作成功", string.Format("{1}ID({0})成功!", ConsultationID, "删除信息"), Icon_Type.OK, Common.GetHomeBaseUrl("ConsultationList.aspx?UserID=" + UserID));
            }
        }
开发者ID:hezejiang,项目名称:EHR,代码行数:29,代码来源:ConsultationManager.aspx.cs


示例20: OnStart

        /// <summary>
        /// 初始化
        /// </summary>
        private void OnStart()
        {
            if (CMD == "New")
            {
            }
            else if (CMD == "Edit")
            {
                HeadMenuButtonItem bi2 = new HeadMenuButtonItem();
                bi2.ButtonPopedom = PopedomType.Delete;
                bi2.ButtonName = "巡查";  //需要改
                bi2.ButtonUrlType = UrlType.JavaScript;
                bi2.ButtonUrl = string.Format("DelData('?CMD=Delete&InspectID={0}')", InspectID);
                HeadMenuWebControls1.ButtonList.Add(bi2);

                InputData();
            }
            else if (CMD == "Delete")
            {
                Maticsoft.BLL.supervision_Inspect bll = new Maticsoft.BLL.supervision_Inspect();
                Maticsoft.Model.supervision_Inspect model = bll.GetModel(InspectID);
                bll.Delete(model.InspectID);
                EventMessage.MessageBox(1, "操作成功", string.Format("{1}ID({0})成功!", InspectID, "删除信息"), Icon_Type.OK, Common.GetHomeBaseUrl("default.aspx"));
            }
        }
开发者ID:hezejiang,项目名称:EHR,代码行数:27,代码来源:InfoManager.aspx.cs



注:本文中的FrameWork.WebControls.HeadMenuButtonItem类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Framework.PacketWriter类代码示例发布时间:2022-05-26
下一篇:
C# Components.QueryParam类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap