/// <summary> /// 数据统计 /// </summary> /// <returns></returns> public QualifyJudgeEnum DataStat() { //List<QualifyJudgeEnum> results = new List<QualifyJudgeEnum>(); foreach (Telerik.WinControls.UI.RadPageViewPage page in rpvCheckCategory.Pages) { foreach (Control c in page.Controls) { if (c is InputGridBase) { InputGridBase grid = (InputGridBase)c; grid.QualifyJudgeAll(); //QualifyJudgeEnum result = grid.QualifyJudgeAll(); //results.Add(result); } } } var rv = CheckOrder.DataStat(_sampleOrder.SampleID); //QualifyJudgeEnum finalresult = QualifyJudgeEnum.Empty; //if (results.Contains(QualifyJudgeEnum.UnFinish)) // finalresult = QualifyJudgeEnum.UnFinish; //else if (results.Contains(QualifyJudgeEnum.False)) // finalresult = QualifyJudgeEnum.False; //else if (results.Contains(QualifyJudgeEnum.UnJudge) || !results.Contains(QualifyJudgeEnum.Pass)) // finalresult = QualifyJudgeEnum.UnJudge; //else finalresult = QualifyJudgeEnum.Pass; _sampleOrder.QualifyJudge = (QualifyJudgeEnum)rv.ErrNum;// finalresult; _Grid.Refresh(); //_sampleOrderGrid.ReloadRow(1); if (rv.Success) { lbInfo.ForeColor = Color.RoyalBlue; } else { lbInfo.ForeColor = Color.Crimson; } lbInfo.Text = "合格判定信息:" + rv.Message; return(_sampleOrder.QualifyJudge); }