Exemple #1
0
        static public bool DoCommand(string _menuID, string _commandName, string _commandTitle, IApplication _application, object _commandParam)
        {
            string _param = (_commandParam == null) ? "" : _commandParam.ToString();

            switch (_commandName)
            {
            case "GlobalDefine":                        //全局定义
                DoGlobalDefine(_application);
                break;

            case "NodeDefine":                          //节点定义
                DoNodeDefine(_application);
                break;

            case "GuideLineDefine":                     //指标定义
                DoGuideLineDefine(_application);
                break;

            case "QueryModelEditor":
                string _title            = StrUtils.GetMetaByName2("标题", _param);
                frmQueryModelEditor _frm = MenuFunctions.AddPage <frmQueryModelEditor>(_title, _application);
                if (_frm != null)
                {
                    _frm.Init(_title, "查询模型管理", _param);
                }
                break;
            }
            return(true);
        }
Exemple #2
0
 public override void ClickMore()
 {
     if (this.Application != null)
     {
         frmNotifyInfo _frm = MenuFunctions.AddPage <frmNotifyInfo>("通知通告", Application);
         if (_frm != null)
         {
             _frm.Init("通知通告", "通知通告", "");
         }
     }
 }
        /// <summary>
        /// 数据审核
        /// </summary>
        /// <param name="_application"></param>
        public void CheckData(IApplication _application)
        {
            List <MD_CheckRule> _rules;

            if (FilterDefine == null)
            {
                return;
            }
            PropertyManager cm_Meta2 = (PropertyManager)this.BindingContext[FilterDefine, ""];

            cm_Meta2.EndCurrentEdit();


            string _msg = "";

            if (!this.sinoSZUC_FixConditionPanel1.IsValid(ref _msg))
            {
                XtraMessageBox.Show(_msg, "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            MDQuery_Request _request = GetQueryRequest();

            if (this._ruleList != null)
            {
                _rules = GetRuleList();
            }
            else
            {
                _rules = new List <MD_CheckRule>();
            }

            //if (_rules.Count < 1)
            //{
            //    XtraMessageBox.Show("请选择规则!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            //    return;
            //}

            string            _SelectRootDWDM = this.sinoUC_OrgComboBox1.DWDM.ToString();
            DC_DataCheckParam _dcParam        = new DC_DataCheckParam(_request, _rules, _SelectRootDWDM, FilterDefine);
            frmDataCheck      _frm            = MenuFunctions.AddPage <frmDataCheck>(Guid.NewGuid().ToString(), _application);

            if (_frm != null)
            {
                _frm.Init("数据审核", "审核功能", _dcParam);
            }
        }
Exemple #4
0
        static public bool DoCommand(string _menuID, string _commandName, string _commandTitle, string _param, IApplication _application)
        {
            switch (_commandName)
            {
            case "CreateReport":                      //报表生成
                frmCreateReport _form = new frmCreateReport(_commandTitle, _param);
                _application.AddForm(Guid.NewGuid().ToString(), _form);
                break;

            case "BrowseReport":                     //报表浏览
                frmBrowseReport _bf = new frmBrowseReport(_commandTitle, _param);
                _application.AddForm(Guid.NewGuid().ToString(), _bf);
                break;

            case "ReportGuideLineQuery":
                string _title = StrUtils.GetMetaByName2("标题", _param);
                frmReportGuideLineQuery _frm = MenuFunctions.AddPage <frmReportGuideLineQuery>(_title, _application);
                if (_frm != null)
                {
                    _frm.Init(_title, "报表指标查询", _param);
                }

                break;

            case "DataCheck":                      //数据审核
                _title = StrUtils.GetMetaByName2("标题", _param);
                frmCheckSearch _frm_DataCheck = MenuFunctions.AddPage <frmCheckSearch>(_title, _application);
                if (_frm_DataCheck != null)
                {
                    _frm_DataCheck.Init(_title, "数据审核", _param);
                }
                break;

            case "DataCheckBoard":                    //审核公告
                _title = StrUtils.GetMetaByName2("标题", _param);
                frmDataCheckBoard _frmBoard = MenuFunctions.AddPage <frmDataCheckBoard>(_title, _application);
                if (_frmBoard != null)
                {
                    _frmBoard.Init(_title, "审核公告", _param);
                }
                break;
            }
            return(true);
        }
Exemple #5
0
        private void DataSh()
        {
            int _index = bandedGridView1.FocusedRowHandle;

            if (_index < 0)
            {
                return;
            }

            DataRow           _dr     = bandedGridView1.GetDataRow(_index);
            string            _mainid = _dr["MAINID"].ToString();
            string            _title  = string.Format("数据审核[{0}]", _mainid);
            frm_DataCheckInfo _frm    = MenuFunctions.AddPage <frm_DataCheckInfo>(_title, _application);

            if (_frm != null)
            {
                _frm.Init(_title, "数据审核", _mainid, CheckParam.Request, _queryModel, _dr);
            }
        }
Exemple #6
0
        static public bool DoCommand(string _menuID, string _commandName, string _commandTitle, string _param, IApplication _application)
        {
            string _title;

            switch (_commandName)
            {
            case "RoleManager":                      //角色管理
                frmRoleDefine _rdf = new frmRoleDefine(_param);
                _application.AddForm("角色管理", _rdf);
                break;

            case "PostManager":                     //岗位管理
                frmPostDefine _pdf = new frmPostDefine();
                _application.AddForm("岗位管理", _pdf);
                break;

            case "UserManager":                     //用户管理
                string        _canAdd = StrUtils.GetMetaByName2("可添加", _param);
                frmUserDefine _f      = new frmUserDefine(_commandTitle, _canAdd);
                _application.AddForm("用户管理", _f);
                break;

            case "UserMobileManager":                     //用户手机管理
                _title = StrUtils.GetMetaByName2("标题", _param);
                frmUserMobile _frmUserMobile = MenuFunctions.AddPage <frmUserMobile>(_title, _application);
                if (_frmUserMobile != null)
                {
                    _frmUserMobile.Init(_title, "企业涉案", _param);
                }
                break;

            case "UserMappingCUPAA":     //三统一用户映射
                _title = StrUtils.GetMetaByName2("标题", _param);
                frmUserMapping_CUPAA _f_UM_CUPAA = MenuFunctions.AddPage <frmUserMapping_CUPAA>(_title, _application);
                if (_f_UM_CUPAA != null)
                {
                    _f_UM_CUPAA.Init(_title, "三统一用户映射", _param);
                }
                break;
            }
            return(true);
        }
Exemple #7
0
        static public bool DoCommand(string _menuID, string _commandName, string _commandTitle, string _param, IApplication _application)
        {
            string _title;

            switch (_commandName)
            {
            case "IISRecycle":
                frmResetIISApp _frmIIS = MenuFunctions.AddPage <frmResetIISApp>("内存回收", _application);
                if (_frmIIS != null)
                {
                    _frmIIS.Init("内存回收", "内存回收", _param);
                }
                break;

            case "WinServiceWatch":
                frmResetWindowsService _frmWinService = MenuFunctions.AddPage <frmResetWindowsService>("服务查看", _application);
                if (_frmWinService != null)
                {
                    _frmWinService.Init("服务查看", "服务查看", _param);
                }
                break;

            case "OrganizeExtInfo":
                frmOrganizeExtInfo _frmOrgExt = MenuFunctions.AddPage <frmOrganizeExtInfo>("组织机构信息维护", _application);
                if (_frmOrgExt != null)
                {
                    _frmOrgExt.Init("组织机构信息维护", "机构信息维护", _param);
                }
                break;

            case "UserLog":
                frmUserLog _rdf = new frmUserLog();
                _application.AddForm("用户操作日志", _rdf);
                break;

            case "QueryLog":
                frmQueryLog _fql = new frmQueryLog();
                _application.AddForm("数据查询日志", _fql);
                break;

            case "SystemLog":
                frmSystemLog _syslog = new frmSystemLog();
                _application.AddForm("系统处理日志", _syslog);
                break;

            case "Notify":
                frmNotifyInfo _frm = MenuFunctions.AddPage <frmNotifyInfo>("通知通告", _application);
                if (_frm != null)
                {
                    _frm.Init("通知通告", "通知通告", "");
                }
                break;

            case "InterfaceManager_SJJH":
                frmIM_SJJH _frmIM_SJJH = MenuFunctions.AddPage <frmIM_SJJH>("数据交换接口管理", _application);
                if (_frmIM_SJJH != null)
                {
                    _frmIM_SJJH.Init("数据交换接口管理", "数据交换接口管理", "");
                }
                break;

            case "FSDataLoadAlertMailSet":      //数据加载监控提示邮件设置
                _title = StrUtils.GetMetaByName2("标题", _param);
                frmFsAlertMainSet _frmFsAlert = MenuFunctions.AddPage <frmFsAlertMainSet>(_title, _application);
                if (_frmFsAlert != null)
                {
                    _frmFsAlert.Init(_title, "邮件设置", _param);
                }
                break;

            case "TaskManager":     //后台任务管理器
                _title = StrUtils.GetMetaByName2("标题", _param);
                frmTaskManager _frmTaskManager = MenuFunctions.AddPage <frmTaskManager>(_title, _application);
                if (_frmTaskManager != null)
                {
                    _frmTaskManager.Init(_title, "任务管理", _param);
                }
                break;

            case "WorkCalendar":    //工作日历
                _title = "工作日历";
                WorkCalenderForm _frmWorkCalenderForm = MenuFunctions.AddPage <WorkCalenderForm>(_title, _application);
                if (_frmWorkCalenderForm != null)
                {
                    _frmWorkCalenderForm.Init(_title, "工作日历", _param);
                }
                break;

            case "GDSManager":
                _title = "通用接口管理";
                frmGDSManager _frmGDSManager = MenuFunctions.AddPage <frmGDSManager>(_title, _application);
                if (_frmGDSManager != null)
                {
                    _frmGDSManager.Init(_title, _title, _param);
                }
                break;
            }
            return(true);
        }
Exemple #8
0
        private static void DoGlobalDefine(IApplication _application)
        {
            string _frmName = "GlobalDefine";

            MenuFunctions.AddPage <frmGlobalManager>(_frmName, _application);
        }
Exemple #9
0
        private static void DoNodeDefine(IApplication _application)
        {
            string _frmName = "NodeDefine";

            MenuFunctions.AddPage <frmNodeManager>(_frmName, _application);
        }
Exemple #10
0
        private static void DoGuideLineDefine(IApplication _application)
        {
            string _frmName = Guid.NewGuid().ToString();

            MenuFunctions.AddPage <frmGuideLineManager>(_frmName, _application);
        }
Exemple #11
0
        private void DoCompare()
        {
            //开始数据比对
            string _errorMsg = "";

            if (_excelReader == null)
            {
                MessageBox.Show("未打开EXCEL文件!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            //取结果集字段
            if (!this.sinoSZUC_MD_Model_FieldList1.CheckItems(ref _errorMsg))
            {
                XtraMessageBox.Show(string.Format("选择比对结果不正确:{0}", _errorMsg), "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (!this.sinoSZUC_CompareConditionPanel1.CheckInput(ref _errorMsg))
            {
                XtraMessageBox.Show(string.Format("筛选条件或比对条件不正确:{0}", _errorMsg), "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }


            MC_CompareRequsetFactory _rf = new MC_CompareRequsetFactory();

            _rf.QueryModelName = this.QueryModelName;
            this.sinoSZUC_CompareConditionPanel1.InsertConditions2QueryRequest(_rf);
            this.sinoSZUC_MD_Model_FieldList1.InsertResultFields2QueryRequest(_rf);
            MDCompare_Request _compareRequest = _rf.GetCompareQueryRequest();

            //if (_queryResult._resultItems.Count < 1)
            //{
            //        MessageBox.Show("未选择结果字段!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            //        return;
            //}
            //SinoProgressControler.BeginProgress();
            ////SinoProgressControler.ShowMessage = "正在加载比对目标数据....";
            ////1.将需要比对的目标文件的数据加载入DataTable
            //ArrayList _usedExcelRowList = GetUsedExcelRows();
            ////ArrayList _usedExcelRowList = this._ExcelColumnNames;

            ////2.设置别名
            //ReBuildAlias(ref _usedExcelRowList);

            ////2.将表达式进行处理
            //CompareConditionClass _CompareCon = new CompareConditionClass();
            //_CompareCon.Express = textEdit1.EditValue.ToString();
            //foreach (UC_CompareConditionItem _uc in this.panel14.Controls)
            //{
            //        if (!_uc.CheckInput())
            //        {
            //                MessageBox.Show("比对条件错误!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            //                return;
            //        }
            //        CompareConditionItemClass _item = _uc.GetCondition();
            //        _CompareCon.AddItem(_item);
            //}

            //_CompareCon.QueryView = (QueryView_Class)comboBoxEdit1.SelectedItem;
            //QueryCondition_Class _qcc = this.uC_RelationConditionPanel1.GetConditions();
            //foreach (Meta_ConditionItem_Class _mcc in _qcc.ConditionItems)
            //{
            //        _mcc.Column.Table_Meta.AliasName = _mcc.Column.Table_Meta.TableName;
            //}

            ////3.导入数据到DataTable
            //DataTable _importdt = SessionClass.IMetaData.GetImportTableTemp();
            //if (this._excelReader != null)
            //{
            //        _excelReader.OpenReportTempalte();
            //        _excelReader.InsertExcelData(_usedExcelRowList, ref _importdt);
            //        _excelReader.CloseReportTemplate();
            //}

            ////3.调用后台服务进行比对,并返回结果的DataSet
            //QueryResult_Class _mainRes = this.uC_CompareResultPanl1.GetMainTableResults();
            //ArrayList _childRes = this.uC_CompareResultPanl1.GetChildResults();

            //DataSet _CompareResult = SessionClass.IMetaData.CompareData2(_CompareCon, _importdt, _mainRes, _childRes, _qcc, _usedExcelRowList);
            ////4.将结果显示出来

            //SinoProgressControler.EndProgress();
            //CompareResultForm_D2E _f = new CompareResultForm_D2E(_CompareCon.QueryView, _mainRes, _childRes, _importdt, _CompareResult, _usedExcelRowList);
            //SessionClass.mainForm.AddPage("比对结果", 0, _f);

            _compareRequest.ExcelData        = _excelReader.GetData();
            _compareRequest.ColumnDictionary = _excelReader.CreateColumnDictionary();
            frmDataCompareResult _frmResult = MenuFunctions.AddPage <frmDataCompareResult>(Guid.NewGuid().ToString(), Application);

            if (_frmResult != null)
            {
                _frmResult.Init("数据比对结果", "", _compareRequest, _excelReader.GetColumns());
            }
        }
Exemple #12
0
        static public bool DoCommand(string _menuID, string _commandName, string _commandTitle, string _param, IApplication _application)
        {
            string _modelName;
            string _guidLines;
            string _glqTitle;
            string _title;

            switch (_commandName)
            {
            case "RelationQuery":
                _modelName = StrUtils.GetMetaByName("查询模型", _param);
                frmSinoSZ_RelationQuery _f = new frmSinoSZ_RelationQuery(_modelName, _param);
                _f.Tag = _menuID;
                _application.AddForm(Guid.NewGuid().ToString(), _f);
                break;

            case "FixQuery":
                _title = StrUtils.GetMetaByName2("标题", _param);
                frmFixQuery _frmFixQuery = MenuFunctions.AddPage <frmFixQuery>(_title, _application);
                if (_frmFixQuery != null)
                {
                    _frmFixQuery.Init(_title, _title, _param);
                }
                break;

            case "SingleGuideLineQuery":
                _title = StrUtils.GetMetaByName2("标题", _param);
                frmGuideLineQuery_Single _frmSingleGuideLine = MenuFunctions.AddPage <frmGuideLineQuery_Single>(_title, _application);
                if (_frmSingleGuideLine != null)
                {
                    _frmSingleGuideLine.Init(_title, _title, _param);
                }
                break;

            case "DataCompare":

                frmDataCompare _f2 = new frmDataCompare(_param);
                _application.AddForm(Guid.NewGuid().ToString(), _f2);
                break;

            case "DataSearch":
                _modelName = StrUtils.GetMetaByName("查询模型", _param);
                frmDataSearch _f3 = new frmDataSearch(_modelName);
                _application.AddForm(Guid.NewGuid().ToString(), _f3);
                break;

            case "GuideLineQuery":
                _guidLines = StrUtils.GetMetaByName("指标ID", _param);
                _glqTitle  = StrUtils.GetMetaByName("标题", _param);
                frmGuideLineQuery _f4 = new frmGuideLineQuery((_glqTitle == "") ? _commandTitle : _glqTitle, _guidLines);
                _application.AddForm(Guid.NewGuid().ToString(), _f4);
                break;

            case "GuideLineQueryEx":
                _guidLines = StrUtils.GetMetaByName("指标ID", _param);
                _glqTitle  = StrUtils.GetMetaByName("标题", _param);
                frmGuideLineQueryEx _f4ex = new frmGuideLineQueryEx((_glqTitle == "") ? _commandTitle : _glqTitle, _guidLines);
                _application.AddForm(Guid.NewGuid().ToString(), _f4ex);
                break;

            case "GuideLineShow":
                string _guidLineID = StrUtils.GetMetaByName2("指标ID", _param);
                string _params     = StrUtils.GetMetaByName2("参数", _param);
                bool   _canGroup   = (StrUtils.GetMetaByName2("可分组", _param).ToUpper() == "TRUE");
                _title = StrUtils.GetMetaByName2("标题", _param);
                frmGuideLineQueryWithoutInput _f5 = new frmGuideLineQueryWithoutInput(_title, _guidLineID, _params, _canGroup);
                _application.AddForm(_title, _f5);
                break;

            case "GuideLineGroupShow":
                frmGuideLineGroupShow _f6 = new frmGuideLineGroupShow(_param);
                _application.AddForm(_commandTitle, _f6);
                break;

            case "GuideLineGroupShow2":
                _title = StrUtils.GetMetaByName2("标题", _param);
                frmGuideLineGroupShow2 _f7 = new frmGuideLineGroupShow2(_param);
                _application.AddForm(_title, _f7);
                break;

            case "PortalShow":
                frmPortal _fPortal = new frmPortal(_param, _application);
                _application.AddForm(_commandTitle, _fPortal);
                break;

            case "RelationQueryTask":
                _modelName = StrUtils.GetMetaByName("查询模型", _param);
                frmSinoSZ_RelationQuery_Task _f8 = new frmSinoSZ_RelationQuery_Task(_modelName, _param);
                _application.AddForm(Guid.NewGuid().ToString(), _f8);
                break;

            case "QueryTaskList":
                frmSinoSZ_TaskList _f9 = new frmSinoSZ_TaskList();
                _application.AddForm(_commandTitle, _f9);
                break;

            case "TreeComboPortalShow":
                _title = StrUtils.GetMetaByName2("标题", _param);
                frmTreeComboPortal _frm = MenuFunctions.AddPage <frmTreeComboPortal>(_title, _application);
                if (_frm != null)
                {
                    _frm.Init(_title, _title, _param);
                }
                break;

            case "AlertMonitor":
                _title = StrUtils.GetMetaByName2("标题", _param);
                frmAlertMonitor _frmAert = MenuFunctions.AddPage <frmAlertMonitor>(_title, _application);
                if (_frmAert != null)
                {
                    _frmAert.Init(_title, _title, _param);
                }
                break;

            case "ParameterSetting":
                _title = StrUtils.GetMetaByName2("标题", _param);
                frmGuideLineSetting _frmSetting = MenuFunctions.AddPage <frmGuideLineSetting>(_title, _application);
                if (_frmSetting != null)
                {
                    _frmSetting.Init(_title, _title, _param);
                }
                break;
            }
            return(true);
        }