public override void Init(string _title, string _menuName, object _param) { this.Text = _title; this._menuPageName = _menuName; this._initFinished = true; this.panelWait.Visible = true; CheckParam = _param as DC_DataCheckParam; this.labelStatus.Text = "正在查询符合条件的记录 ..."; CreateGridColumn(); this.RaiseMenuChanged(); this.backgroundWorker1.RunWorkerAsync(); }
/// <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); } }