using DevExpress.XtraEditors;
|
using DevExpress.XtraPrinting.Native;
|
using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using System.Windows.Forms;
|
using TProduct.Common;
|
using TProduct.Model;
|
|
namespace TProduct.WinFrmUI.TValve
|
{
|
/// <summary>
|
/// 性能测试
|
/// </summary>
|
public partial class FeatTestIngMainPage
|
{
|
private void barBtn清空测试数据_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
|
{
|
if (this._allRecords == null || this._allRecords.Count() == 0)
|
return;
|
DialogResult result1 = MessageBox.Show("请问是否清空测试数据", "询问",
|
System.Windows.Forms.MessageBoxButtons.YesNo,
|
System.Windows.Forms.MessageBoxIcon.Warning);
|
if (result1 != DialogResult.Yes)
|
{
|
return;
|
}
|
|
DialogResult result2 = MessageBox.Show("请问是否清空测试数据,删除后, 数据无法恢复,请再次确认", "询问",
|
System.Windows.Forms.MessageBoxButtons.YesNo,
|
System.Windows.Forms.MessageBoxIcon.Warning);
|
if (result2 != DialogResult.Yes)
|
{
|
return;
|
}
|
new TProduct.BLL.ValveFeatTestRecord().ClearAllRecord(this._testItem);
|
this._allRecords.Clear();
|
this._monitorGridCtrl.ClearData();
|
this._chartCtrl.EmptyRecordPoint();
|
this._correctPtGridCtrl.ClearData();
|
}
|
|
private void barBtn导出测试数据_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
|
{
|
if (this._allRecords == null || this._allRecords.Count() == 0)
|
return;
|
this._monitorGridCtrl.ExportExcel();
|
}
|
|
private void barBtn测试台参数_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
|
{
|
if(this._workBenchInfo.LinkType == eLinkType.ShunZhou)
|
{
|
Data4Factory.ViewWorkBench4ShunDlg frm = new Data4Factory.ViewWorkBench4ShunDlg();
|
frm.SetBindingData(this._workBenchInfo);
|
frm.Show();
|
}
|
|
|
}
|
|
private void barBtn仪表参数_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
|
{
|
Data4Factory.ListWorkBenchMonitorPointDlg frm = new Data4Factory.ListWorkBenchMonitorPointDlg();
|
frm.SetBindingData(this._workBenchInfo);
|
frm.Show();
|
}
|
|
private void barBtn设备参数_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
|
{
|
|
}
|
|
|
//List<TProduct.Model.TestJudgeItemResultViewModel> _testJudgeResults = null;
|
private void barBtn合格判定_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
|
{
|
if(this._allRecords == null || this._allRecords.Count() < 4)
|
{
|
MessageBox.Show("点数量过少,暂时无法判断");
|
return;
|
}
|
//TProduct.Common.PumpTestJudgeHelper helper = new TProduct.Common.PumpTestJudgeHelper();
|
//helper.SetRatedParas(this._ratedParas);
|
//helper.SetStandard(this._testStandard, this._testGrade, this._testJudgeItems);
|
|
|
//var isQualified = helper.JudgeQH(this._allRecords,out _testJudgeResults);
|
//if(isQualified)
|
//{
|
// MessageBox.Show("合格");
|
// return;
|
//}
|
//else
|
//{
|
// MessageBox.Show("不合格");
|
// return;
|
//}
|
}
|
|
private void barBtn判定详情_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
|
{
|
//if (this._allRecords == null || this._allRecords.Count() < 4)
|
//{
|
// MessageBox.Show("点数量过少,暂时无法判断");
|
// return;
|
//}
|
//if (_testJudgeResults == null)
|
//{
|
// TProduct.Common.PumpTestJudgeHelper helper = new TProduct.Common.PumpTestJudgeHelper();
|
// helper.SetRatedParas(this._ratedParas);
|
// helper.SetStandard(this._testStandard, this._testGrade, this._testJudgeItems);
|
// helper.JudgeQH(this._allRecords, out _testJudgeResults);
|
//}
|
|
//ResultJudgeForm frm = new ResultJudgeForm();
|
//frm.SetRatedParas(this._ratedParas);
|
//frm.SetBindingData(this._testStandard, this._testGrade, this._testJudgeItems,_testJudgeResults);
|
//frm.Show();
|
}
|
}
|
}
|