private void AddSubMenu(SinoMenuItem _fmenuitem, List <SinoMenuItem> _menuList, FrmMenuPage _fmp) { SinoMenuFatherFinder _finder = new SinoMenuFatherFinder(_fmenuitem.MenuID); List <SinoMenuItem> _subMenuList = _menuList.FindAll(new Predicate <SinoMenuItem>(_finder.FindByFather)); _subMenuList.Sort(new SinoMenuComparer()); foreach (SinoMenuItem _smi in _subMenuList) { FrmMenuGroup _fmg = new FrmMenuGroup(_smi.MenuID, _smi.MenuTitle, _smi.CanUse); this.AddMenuGroup(_fmp, _fmg); if (_smi.MenuType != "") { MenuTypeBase _mtype = MenuTypeCreator.CreateMenuType(_smi.MenuType); IPluginService pluginService = (IPluginService)application.GetService(typeof(IPluginService)); IPlugin _plugin = pluginService.GetPluginInstance(_mtype.MenuTypePluginName); if (_plugin == null) { RaiseLoadErrord(new CommonEventArgs(string.Format("未找到组菜单定义:{0}", _mtype))); } else { _plugin.Load(_fmg, _smi.MenuParameter); } } else { this.AddSubMenuItem(_smi, _menuList, _fmg); } } }
public FrmMenuGroup GetMenuGroup() { bool _showSum = false; bool _showCompute = false; if (this.treeList1.FocusedNode != null) { if ((string)this.treeList1.FocusedNode.GetValue("ItemType") == "TABLE") { _showCompute = true; MDModel_Table _tb = this.treeList1.FocusedNode.GetValue("Data") as MDModel_Table; if (_tb.TableName == this.queryModel.MainTable.TableName) { _showSum = true; } } } FrmMenuGroup _thisGroup = new FrmMenuGroup("数据字段管理"); _thisGroup.MenuItems = new List <FrmMenuItem>(); FrmMenuItem _item = new FrmMenuItem("计算项字段", "计算项字段", global::SinoSZMetaDataQuery.Properties.Resources.b5, _showCompute); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("统计项字段", "统计项字段", global::SinoSZMetaDataQuery.Properties.Resources.b6, _showSum); _thisGroup.MenuItems.Add(_item); return(_thisGroup); }
/// <summary> /// 以参数方式加载 /// </summary> /// <param name="_xmlparam"></param> public void Load(FrmMenuGroup _menuGroup, string _xmlparam) { if (application != null && application.MainRibbon != null) { //添加一个主菜单 IMenuService menuService = (IMenuService)application.GetService(typeof(IMenuService)); if (menuService != null) { //全局定义 MenuCommandDefine _md = new MenuCommandDefine("GlobalDefine", "全局定义", this as IMenuCommand, null); FrmMenuItem _menuItem = new FrmMenuItem("全局定义", "GlobalDefine", global::SinoSZMetaDataManager.Properties.Resources.g1, 80, _md); menuService.AddMenuItem(_menuGroup, _menuItem); //节点定义 _md = new MenuCommandDefine("NodeDefine", "节点定义", this as IMenuCommand, null); _menuItem = new FrmMenuItem("节点定义", "NodeDefine", global::SinoSZMetaDataManager.Properties.Resources.g2, 80, _md); menuService.AddMenuItem(_menuGroup, _menuItem); //指标定义 _md = new MenuCommandDefine("GuideLineDefine", "指标定义", this as IMenuCommand, null); _menuItem = new FrmMenuItem("指标定义", "GuideLineDefine", global::SinoSZMetaDataManager.Properties.Resources.g25, 80, _md); menuService.AddMenuItem(_menuGroup, _menuItem); } } }
private IList <FrmMenuGroup> GetMenuGroups(string _pagename) { IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); TreeListNode _fnode = treeList1.FocusedNode; if (_fnode != null) { object _value = _fnode.GetValue(this.treeListColumn1); FrmMenuGroup _mg = MenuDefine.GetMenuGroupByObject(_value); if (_mg != null) { _ret.Add(_mg); } } Control _control = this.panel1.Controls.Count == 0 ? null : this.panel1.Controls[0]; if (_control != null) { foreach (FrmMenuGroup _mg in MenuDefine.GetMenuGroupByControls(_control)) { if (_mg != null) { _ret.Add(_mg); } } } return(_ret); }
private IList <FrmMenuGroup> GetMenuGroups(string _pagename) { IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("角色管理功能"); _thisGroup.MenuItems = new List <FrmMenuItem>(); FrmMenuItem _item = new FrmMenuItem("添加角色", "添加角色", global::SinoSZClientUser.Properties.Resources.e2, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("删除角色", "删除角色", global::SinoSZClientUser.Properties.Resources.e3, (this.CurrentRoleInfo != null)); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); _thisGroup = new FrmMenuGroup("保存修改"); bool _haveChange = (this.CurrentRoleInfo == null) ? false : this.CurrentRoleInfo.HaveChanged; _thisGroup.MenuItems = new List <FrmMenuItem>(); _item = new FrmMenuItem("保存授权", "保存授权", global::SinoSZClientUser.Properties.Resources.xx, _haveChange); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("取消修改", "取消修改", global::SinoSZClientUser.Properties.Resources.x1, _haveChange); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
protected override IList <FrmMenuGroup> GetMenuGroups(string _pagename) { FrmMenuItem _item; IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("数据审核"); _thisGroup.MenuItems = new List <FrmMenuItem>(); //_item = new FrmMenuItem("打印", "打印", global::SinoSZClient.DataCheck.Properties.Resources.g36, true); //_thisGroup.MenuItems.Add(_item); if (this.CurrentSHInput != null && this.CurrentSHInput.CanSendMsg()) { _item = new FrmMenuItem("发公告", "发公告", global::SinoSZClientReport.Properties.Resources.b22, true); _thisGroup.MenuItems.Add(_item); } _item = new FrmMenuItem("查看历史", "查看历史", global::SinoSZClientReport.Properties.Resources.x2, true); _thisGroup.MenuItems.Add(_item); if (this.CurrentSHInput != null && this.CurrentSHInput.CanEdit) { _item = new FrmMenuItem("保存审核", "保存审核", global::SinoSZClientReport.Properties.Resources.xx, true); _thisGroup.MenuItems.Add(_item); } _ret.Add(_thisGroup); return(_ret); }
/// <summary> /// 取菜单组 /// </summary> /// <param name="_pagename"></param> /// <returns></returns> private IList <FrmMenuGroup> GetMenuGroups(string _pagename) { IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("查询处理"); _thisGroup.MenuItems = new List <FrmMenuItem>(); FrmMenuItem _item = new FrmMenuItem("查询", "查询", global::SinoSZMetaDataQuery.Properties.Resources.b28, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("取消", "取消", global::SinoSZMetaDataQuery.Properties.Resources.x1, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); _thisGroup = new FrmMenuGroup("指标查询结果处理"); _thisGroup.MenuItems = new List <FrmMenuItem>(); _item = new FrmMenuItem("图表展示", "图表展示", global::SinoSZMetaDataQuery.Properties.Resources.b18, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("导出", "导出", global::SinoSZMetaDataQuery.Properties.Resources.x3, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
protected override IList <FrmMenuGroup> GetMenuGroups(string _pagename) { FrmMenuGroup _thisGroup; FrmMenuItem _item; IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); bool CanUse = !(this.backgroundWorker1.IsBusy) && _initFinished; _thisGroup = new FrmMenuGroup("手机号码维护功能"); _thisGroup.MenuItems = new List <FrmMenuItem>(); if (this.ShowChildOrgUsers) { _item = new FrmMenuItem("不含下级", "不含下级", global::SinoSZClientUser.Properties.Resources.e14, true); } else { _item = new FrmMenuItem("包含下级", "包含下级", global::SinoSZClientUser.Properties.Resources.e13, true); } _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("修改信息", "修改信息", global::SinoSZClientUser.Properties.Resources.e7, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
public void SuperLoad() { if (application != null && application.MainRibbon != null) { //添加一个主菜单 IMenuService menuService = (IMenuService)application.GetService(typeof(IMenuService)); if (menuService != null) { FrmMenuPage _menuPage = new FrmMenuPage("MetaDataManagerPage", "元数据管理"); menuService.AddMainMenuPage(_menuPage); FrmMenuGroup _menuGroup = new FrmMenuGroup("MetaDataManager", "元数据定义"); menuService.AddMenuGroup(_menuPage, _menuGroup); //全局定义 MenuCommandDefine _md = new MenuCommandDefine("GlobalDefine", "全局定义", this as IMenuCommand, null); FrmMenuItem _menuItem = new FrmMenuItem("全局定义", "GlobalDefine", global::SinoSZMetaDataManager.Properties.Resources.g1, 80, _md); menuService.AddMenuItem(_menuPage, _menuGroup, _menuItem); //节点定义 _md = new MenuCommandDefine("NodeDefine", "节点定义", this as IMenuCommand, null); _menuItem = new FrmMenuItem("节点定义", "NodeDefine", global::SinoSZMetaDataManager.Properties.Resources.g2, 80, _md); menuService.AddMenuItem(_menuPage, _menuGroup, _menuItem); //指标定义 _md = new MenuCommandDefine("GuideLineDefine", "指标定义", this as IMenuCommand, null); _menuItem = new FrmMenuItem("指标定义", "GuideLineDefine", global::SinoSZMetaDataManager.Properties.Resources.g3, 80, _md); menuService.AddMenuItem(_menuPage, _menuGroup, _menuItem); } } }
protected override IList <FrmMenuGroup> GetMenuGroups(string _pagename) { IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("日历操作"); _thisGroup.MenuItems = new List <FrmMenuItem>(); FrmMenuItem _item = new FrmMenuItem("保存设置", "保存设置", global::SinoSZClientSysManager.Properties.Resources.xx, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("导出日历", "导出日历", global::SinoSZClientSysManager.Properties.Resources.x3, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); _thisGroup = new FrmMenuGroup("设置参数值"); _thisGroup.MenuItems = new List <FrmMenuItem>(); _item = new FrmMenuItem("统计上报", "统计上报参数", global::SinoSZClientSysManager.Properties.Resources.e17, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("风险上报", "风险上报参数", global::SinoSZClientSysManager.Properties.Resources.e17, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
protected override IList <SinoSZPluginFramework.FrmMenuGroup> GetMenuGroups(string _pagename) { FrmMenuItem _item; bool _inputReady = this.sinoUC_CheckDataSearch1.InputReady; IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("异常数据检查规则"); _thisGroup.MenuItems = new List <FrmMenuItem>(); _item = new FrmMenuItem("添加规则", "添加规则", global::SinoSZClientReport.Properties.Resources.g16, _inputReady); _thisGroup.MenuItems.Add(_item); bool _ruleSelect = this.sinoUC_CheckDataSearch1.RuleSelected; _item = new FrmMenuItem("修改规则", "修改规则", global::SinoSZClientReport.Properties.Resources.b5, _ruleSelect); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("删除规则", "删除规则", global::SinoSZClientReport.Properties.Resources.g17, _ruleSelect); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("导入规则", "导入规则", global::SinoSZClientReport.Properties.Resources.s2, _inputReady); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); _thisGroup = new FrmMenuGroup("审核功能"); _thisGroup.MenuItems = new List <FrmMenuItem>(); _item = new FrmMenuItem("数据检查", "数据检查", global::SinoSZClientReport.Properties.Resources.b15, _inputReady); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
/// <summary> /// 取菜单组 /// </summary> /// <param name="_pagename"></param> /// <returns></returns> private IList <FrmMenuGroup> GetMenuGroups(string _pagename) { FrmMenuGroup _thisGroup; FrmMenuItem _item; IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); if (this.sinoSZUC_GuideLineQueryResult1.IsQuerying) { _thisGroup = new FrmMenuGroup("查询处理"); _thisGroup.MenuItems = new List <FrmMenuItem>(); _item = new FrmMenuItem("取消", "取消", global::SinoSZMetaDataQuery.Properties.Resources.x1, this.sinoSZUC_GuideLineQueryResult1.IsQuerying); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); } _thisGroup = new FrmMenuGroup("指标查询结果处理"); _thisGroup.MenuItems = new List <FrmMenuItem>(); _item = new FrmMenuItem("图表展示", "图表展示", global::SinoSZMetaDataQuery.Properties.Resources.b18, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("导出", "导出", global::SinoSZMetaDataQuery.Properties.Resources.x3, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
protected override IList <FrmMenuGroup> GetMenuGroups(string _pagename) { FrmMenuItem _item; IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("三统一用户信息映射"); _thisGroup.MenuItems = new List <FrmMenuItem>(); if (this.ShowChildOrgUsers) { _item = new FrmMenuItem("不含下级", "不含下级", global::SinoSZClientUser.Properties.Resources.e14, true); } else { _item = new FrmMenuItem("包含下级", "包含下级", global::SinoSZClientUser.Properties.Resources.e13, true); } _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("保存映射", "保存映射", global::SinoSZClientUser.Properties.Resources.xx, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
public List <SinoSZPluginFramework.FrmMenuGroup> GetControlMenu() { FrmMenuGroup _thisGroup; FrmMenuItem _item; List <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); if (ViewTableDefine != null && ViewTableDefine.ViewTableType == MDType_ViewTable.ChildTable) { _thisGroup = new FrmMenuGroup("调整显示顺序"); _thisGroup.MenuItems = new List <FrmMenuItem>(); _item = new FrmMenuItem("上移", "上移", global::SinoSZMetaDataManager.Properties.Resources.up, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("下移", "下移", global::SinoSZMetaDataManager.Properties.Resources.down, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); } _thisGroup = new FrmMenuGroup("修改保存"); _thisGroup.MenuItems = new List <FrmMenuItem>(); _item = new FrmMenuItem("保存", "保存", global::SinoSZMetaDataManager.Properties.Resources.xx, _haveChange); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("取消", "取消", global::SinoSZMetaDataManager.Properties.Resources.x1, _haveChange); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
public List <FrmMenuGroup> GetControlMenu() { FrmMenuGroup _thisGroup; FrmMenuItem _item; List <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); _thisGroup = new FrmMenuGroup("关联条件和限制"); _thisGroup.MenuItems = new List <FrmMenuItem>(); _item = new FrmMenuItem("添加条件", "添加条件", global::SinoSZMetaDataManager.Properties.Resources.xx, _haveChange); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); _thisGroup = new FrmMenuGroup("修改保存"); _thisGroup.MenuItems = new List <FrmMenuItem>(); _item = new FrmMenuItem("保存", "保存", global::SinoSZMetaDataManager.Properties.Resources.xx, _haveChange); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("取消", "取消", global::SinoSZMetaDataManager.Properties.Resources.x1, _haveChange); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
private IList <FrmMenuGroup> GetMenuGroups(string _pagename) { FrmMenuItem _item; IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("图表显示功能"); _thisGroup.MenuItems = new List <FrmMenuItem>(); if (this._showLabel) { _item = new FrmMenuItem("取消标签", "取消标签", global::SinoSZClientBase.Properties.Resources.b19, true); _thisGroup.MenuItems.Add(_item); } else { _item = new FrmMenuItem("显示标签", "显示标签", global::SinoSZClientBase.Properties.Resources.b20, true); _thisGroup.MenuItems.Add(_item); } if (this._showLegend) { _item = new FrmMenuItem("取消注解", "取消注解", global::SinoSZClientBase.Properties.Resources.b21, true); _thisGroup.MenuItems.Add(_item); } else { _item = new FrmMenuItem("显示注解", "显示注解", global::SinoSZClientBase.Properties.Resources.b22, true); _thisGroup.MenuItems.Add(_item); } //if (this._showAsLog) //{ // _item = new FrmMenuItem("标准坐标", "标准坐标值", global::SinoSZClientBase.Properties.Resources.b24, true); // _thisGroup.MenuItems.Add(_item); //} //else //{ // _item = new FrmMenuItem("指数坐标", "指数坐标值", global::SinoSZClientBase.Properties.Resources.b23, true); // _thisGroup.MenuItems.Add(_item); //} _ret.Add(_thisGroup); _thisGroup = new FrmMenuGroup("图表处理功能"); _thisGroup.MenuItems = new List <FrmMenuItem>(); _item = new FrmMenuItem("筛选记录", "筛选记录", global::SinoSZClientBase.Properties.Resources.b25, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("刷新图表", "刷新图表", global::SinoSZClientBase.Properties.Resources.b25, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("导出图表", "导出图表", global::SinoSZClientBase.Properties.Resources.x3, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
protected override IList <FrmMenuGroup> GetMenuGroups(string _pagename) { IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("预警监督功能"); _thisGroup.MenuItems = new List <FrmMenuItem>(); bool _inputFinished = false; if (this.sinoSZUC_GuideLineDynamicInput21.InputFinised && !this.sinoSZUC_AlertResult1.IsQuerying) { _inputFinished = true; } FrmMenuItem _item = new FrmMenuItem("查询", "查询", global::SinoSZMetaDataQuery.Properties.Resources.b28, _inputFinished); _thisGroup.MenuItems.Add(_item); bool _cancelQuery = false; if (this.sinoSZUC_AlertResult1.IsQuerying) { _cancelQuery = true; } _item = new FrmMenuItem("取消", "取消", global::SinoSZMetaDataQuery.Properties.Resources.x1, _cancelQuery); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); _thisGroup = new FrmMenuGroup("结果处理"); _thisGroup.MenuItems = new List <FrmMenuItem>(); bool _haveResult = this.sinoSZUC_AlertResult1.HaveResult; _item = new FrmMenuItem("显示", "显示", global::SinoSZMetaDataQuery.Properties.Resources.b11, _haveResult); _thisGroup.MenuItems.Add(_item); FrmMenuItem _citem = new FrmMenuItem("未解除", "未解除", global::SinoSZMetaDataQuery.Properties.Resources.b12, _haveResult); _item.ChildMenus.Add(_citem); _citem = new FrmMenuItem("已解除", "已解除", global::SinoSZMetaDataQuery.Properties.Resources.b12, _haveResult); _item.ChildMenus.Add(_citem); _item = new FrmMenuItem("解除", "解除", global::SinoSZMetaDataQuery.Properties.Resources.b18, _haveResult); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("图表展示", "图表展示", global::SinoSZMetaDataQuery.Properties.Resources.b18, _haveResult); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("导出", "导出", global::SinoSZMetaDataQuery.Properties.Resources.x3, _haveResult); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
/// <summary> /// 取菜单组 /// </summary> /// <param name="_pagename"></param> /// <returns></returns> private IList <FrmMenuGroup> GetMenuGroups(string _pagename) { IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("详细信息"); _thisGroup.MenuItems = new List <FrmMenuItem>(); FrmMenuItem _item = new FrmMenuItem("导出", "导出", global::SinoSZMetaDataQuery.Properties.Resources.x3, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("打印", "打印", global::SinoSZMetaDataQuery.Properties.Resources.x4, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
protected override IList <FrmMenuGroup> GetMenuGroups(string _pagename) { IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("接口管理"); _thisGroup.MenuItems = new List <FrmMenuItem>(); FrmMenuItem _item = new FrmMenuItem("修改密码", "修改密码", global::SinoSZClientSysManager.Properties.Resources.x3, HaveSelected); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
/// <summary> /// 加载菜单 /// </summary> /// <param name="pagename"></param> /// <returns></returns> protected override IList <FrmMenuGroup> GetMenuGroups(string pagename) { IList <FrmMenuGroup> ret = new List <FrmMenuGroup>(); FrmMenuGroup thisGroup = new FrmMenuGroup("信息处理"); thisGroup.MenuItems = new List <FrmMenuItem>(); FrmMenuItem item = new FrmMenuItem("导出", "导出", Properties.Resources.x3, true); thisGroup.MenuItems.Add(item); ret.Add(thisGroup); return(ret); }
private IList <FrmMenuGroup> GetMenuGroups(string _pagename) { IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("浏览报表"); _thisGroup.MenuItems = new List <FrmMenuItem>(); FrmMenuItem _item = new FrmMenuItem("导出报表", "导出报表", global::SinoSZClientReport.Properties.Resources.x3, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("打印报表", "打印报表", global::SinoSZClientReport.Properties.Resources.x4, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
private IList <FrmMenuGroup> GetMenuGroups(string _pagename) { IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("浏览报表"); _thisGroup.MenuItems = new List <FrmMenuItem>(); FrmMenuItem _item = new FrmMenuItem("检索列表", "查询报表", global::SinoSZClientReport.Properties.Resources.d3, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("查看报表", "浏览报表", global::SinoSZClientReport.Properties.Resources.d6, (this.gridView1.FocusedRowHandle >= 0)); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
private IList <FrmMenuGroup> GetMenuGroups(string _pagename) { IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("查询任务"); bool _haveItem = (this.CurrentTask != null); _thisGroup.MenuItems = new List <FrmMenuItem>(); FrmMenuItem _item = new FrmMenuItem("任务条件", "任务条件", global::SinoSZMetaDataQuery.Properties.Resources.r1, (this.CurrentTask != null)); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("取消任务", "取消任务", global::SinoSZMetaDataQuery.Properties.Resources.r2, (this.CurrentTask == null) ? false : (this.CurrentTask.TaskState < 3)); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("查看结果", "查看结果", global::SinoSZMetaDataQuery.Properties.Resources.r3, (this.CurrentTask == null) ? false : ((this.CurrentTask.TaskState == 3) || (this.CurrentTask.TaskState == 10))); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("锁定结果", "锁定结果", global::SinoSZMetaDataQuery.Properties.Resources.r4, (this.CurrentTask == null) ? false : ((this.CurrentTask.TaskState == 3) && !this.CurrentTask.ResultLocked)); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("清除任务", "清除任务", global::SinoSZMetaDataQuery.Properties.Resources.r5, (this.CurrentTask == null) ? false : (this.CurrentTask.TaskState > 2)); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("修改计划时间", "修改计划时间", global::SinoSZMetaDataQuery.Properties.Resources.g30, 80, (this.CurrentTask == null) ? false : (this.CurrentTask.TaskState == 0)); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("处理日志", "处理日志", global::SinoSZMetaDataQuery.Properties.Resources.b24, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("刷新列表", "刷新列表", global::SinoSZMetaDataQuery.Properties.Resources.b25, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
protected override IList <FrmMenuGroup> GetMenuGroups(string _pagename) { FrmMenuItem _item; IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("数据比对结果"); _thisGroup.MenuItems = new List <FrmMenuItem>(); bool _canUse = !this.backgroundWorker1.IsBusy; if (compareRequest != null && this.QueryModel != null && this.radioGroup1.SelectedIndex == 0 && this.CompareResult != null) { _item = new FrmMenuItem("展示方式", "展示方式", global::SinoSZMetaDataQuery.Properties.Resources.b11, _canUse); _thisGroup.MenuItems.Add(_item); FrmMenuItem _citem = new FrmMenuItem("常规展示", "常规展示", global::SinoSZMetaDataQuery.Properties.Resources.b12, _canUse); _item.ChildMenus.Add(_citem); foreach (DataTable _dt in this.CompareResult.Tables) { if (_dt.TableName != this.QueryModel.MainTable.TableName) { MDModel_Table _mt = MC_QueryModel.GetTableDefine(this.QueryModel, _dt.TableName); if (_mt != null) { _citem = new FrmMenuItem(string.Format("关联展示[{0}]", _mt.TableDefine.DisplayTitle), string.Format("关联展示,{0}", _dt.TableName), global::SinoSZMetaDataQuery.Properties.Resources.b13, _canUse); _item.ChildMenus.Add(_citem); } } } _citem = new FrmMenuItem(string.Format("关联展示[{0}]", "EXCEL文件"), string.Format("关联展示,{0}", "EXCELRESULTDATA"), global::SinoSZMetaDataQuery.Properties.Resources.b13, _canUse); _item.ChildMenus.Add(_citem); _citem = new FrmMenuItem("关联展示[全部]", "全部平铺展示", global::SinoSZMetaDataQuery.Properties.Resources.b14, true); _item.ChildMenus.Add(_citem); } _item = new FrmMenuItem("导出", "导出", global::SinoSZMetaDataQuery.Properties.Resources.x3, _canUse); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
private IList <FrmMenuGroup> GetMenuGroups(string _pagename) { IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("修改保存"); _thisGroup.MenuItems = new List <FrmMenuItem>(); FrmMenuItem _item = new FrmMenuItem("保存", "保存", global::SinoSZMetaDataManager.Properties.Resources.xx, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("取消", "取消", global::SinoSZMetaDataManager.Properties.Resources.x1, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
public FrmMenuGroup GetMenuGroup() { if (!CurrentFocused) { return(null); } FrmMenuGroup _thisGroup = new FrmMenuGroup("查询条件"); _thisGroup.MenuItems = new List <FrmMenuItem>(); FrmMenuItem _item = new FrmMenuItem("移除条件", "移除条件", global::SinoSZMetaDataQuery.Properties.Resources.b7, true); _thisGroup.MenuItems.Add(_item); return(_thisGroup); }
protected override IList<FrmMenuGroup> GetMenuGroups(string _pagename) { FrmMenuItem _item; IList<FrmMenuGroup> _ret = new List<FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("组织机构信息维护"); _thisGroup.MenuItems = new List<FrmMenuItem>(); _item = new FrmMenuItem("保存修改", "保存修改", global::SinoSZClientSysManager.Properties.Resources.xx, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("取消修改", "取消修改", global::SinoSZClientSysManager.Properties.Resources.x1, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return _ret; }
protected override IList <FrmMenuGroup> GetMenuGroups(string _pagename) { FrmMenuItem _item; IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("固定查询"); _thisGroup.MenuItems = new List <FrmMenuItem>(); _item = new FrmMenuItem("说明", "说明", global::SinoSZMetaDataQuery.Properties.Resources.u4, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("查询", "查询", global::SinoSZMetaDataQuery.Properties.Resources.b10, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
/// <summary> /// 取菜单组 /// </summary> /// <param name="_pagename"></param> /// <returns></returns> private IList <FrmMenuGroup> GetMenuGroups(string _pagename) { IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("指标查询功能"); _thisGroup.MenuItems = new List <FrmMenuItem>(); bool _inputFinished = false; if (CurrentInputControl != null && CurrentInputControl.InputFinised && !CurrentInputControl.IsQuerying) { _inputFinished = true; } FrmMenuItem _item = new FrmMenuItem("指标查询", "指标查询", global::SinoSZMetaDataQuery.Properties.Resources.b28, _inputFinished); _thisGroup.MenuItems.Add(_item); bool _cancelQuery = false; if (CurrentInputControl != null && CurrentInputControl.IsQuerying) { _cancelQuery = true; } _item = new FrmMenuItem("取消", "取消", global::SinoSZMetaDataQuery.Properties.Resources.x1, _cancelQuery); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); _thisGroup = new FrmMenuGroup("指标查询结果处理"); _thisGroup.MenuItems = new List <FrmMenuItem>(); bool _haveResult = (this.CurrentInputControl == null) ? false : this.CurrentInputControl.HaveResult; _item = new FrmMenuItem("图表展示", "图表展示", global::SinoSZMetaDataQuery.Properties.Resources.b18, _haveResult); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("导出", "导出", global::SinoSZMetaDataQuery.Properties.Resources.x3, _haveResult); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }
protected override IList <FrmMenuGroup> GetMenuGroups(string _pagename) { FrmMenuItem _item; IList <FrmMenuGroup> _ret = new List <FrmMenuGroup>(); FrmMenuGroup _thisGroup = new FrmMenuGroup("参数设置"); _thisGroup.MenuItems = new List <FrmMenuItem>(); _item = new FrmMenuItem("保存", "保存", global::SinoSZMetaDataQuery.Properties.Resources.x5, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("取消", "取消", global::SinoSZMetaDataQuery.Properties.Resources.x1, true); _thisGroup.MenuItems.Add(_item); _item = new FrmMenuItem("重置算法", "重置算法", global::SinoSZMetaDataQuery.Properties.Resources.b27, true); _thisGroup.MenuItems.Add(_item); _ret.Add(_thisGroup); return(_ret); }