using System;
|
using System.Windows.Forms;
|
|
namespace TProduct.WinFrmUI.TPump
|
{
|
public partial class ViewWorkBenchInfoDlg : DevExpress.XtraEditors.XtraForm
|
{
|
public ViewWorkBenchInfoDlg()
|
{
|
InitializeComponent();
|
}
|
|
private Model.WorkBenchBase _workBenchBase = null;
|
|
public void SetBindingData(Model.WorkBenchBase bench, TProduct.Model.TestProjectItemView item)
|
{
|
if (bench == null)
|
return;
|
|
_workBenchBase = bench;
|
|
//
|
baseInfoCtrl.SetBindingData(bench);
|
|
//
|
if (bench.LinkType == Model.eLinkType.ShunZhou)
|
{
|
TProduct.WinFrmUI.TestBench.ViewAllInstruments4ShunCtrl insrumentCtrl = new TProduct.WinFrmUI.TestBench.ViewAllInstruments4ShunCtrl();
|
insrumentCtrl.SetBindingData(bench);
|
insrumentCtrl.Dock = DockStyle.Fill;
|
tabPageIntrument.Controls.Add(insrumentCtrl);
|
}
|
else //if (this._workBenchInfo.LinkType == Model.eLinkType.KeDi)
|
{
|
TProduct.WinFrmUI.TestBench.ViewAllInstruments4KeDiCtrl insrumentCtrl = new TProduct.WinFrmUI.TestBench.ViewAllInstruments4KeDiCtrl();
|
insrumentCtrl.SetBindingData(bench);
|
insrumentCtrl.Dock = DockStyle.Fill;
|
tabPageIntrument.Controls.Add(insrumentCtrl);
|
}
|
|
//if(TProduct.CorpConfig.Instance.SoftPattern == Model.eSoftPattern.Owner)
|
//{
|
// ViewTestInstrument水厂Ctrl testCtrl = new ViewTestInstrument水厂Ctrl();
|
// testCtrl.SetBindingData(item);
|
// testCtrl.Dock = DockStyle.Fill;
|
// tabPageTest.Controls.Add(testCtrl);
|
//}
|
|
}
|
|
|
|
private void ViewWorkBench4ShunDlg_Load(object sender, EventArgs e)
|
{
|
|
}
|
}
|
}
|