namespace HStation.WinFrmUI
|
{
|
public partial class TankSingleMatchingDlg : DevExpress.XtraEditors.XtraForm
|
{
|
public TankSingleMatchingDlg()
|
{
|
InitializeComponent();
|
this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
|
}
|
|
public event Action<HydroTankMatchingViewModel> ReloadDataEvent;
|
|
private HydroTankMatchingViewModel _TankMatchingView = null;
|
|
public void SetBindingData(HydroTankMatchingViewModel TankMatchingViewModel)
|
{
|
this.xtraUserControl11.SetBindingData(TankMatchingViewModel);
|
_TankMatchingView = TankMatchingViewModel;
|
}
|
|
//确定
|
private void btnComplete_Click(object sender, EventArgs e)
|
{
|
/* if (_TankMatchingView.MatchingDbId == null || _TankMatchingView.MatchingDbId == string.Empty)
|
{
|
TipFormHelper.ShowError("阀门型号选择错误");
|
return;
|
}
|
if ((int)_TankMatchingView.MatchingTankType == (int)HStation.Assets.eTankType.TCV || (int)_TankMatchingView.MatchingTankType == (int)HStation.Assets.eTankType.GPV)
|
{
|
if (_TankMatchingView.MatchingCurveDbId == null || _TankMatchingView.MatchingCurveDbId == string.Empty)
|
{
|
TipFormHelper.ShowError("曲线选择错误");
|
return;
|
}
|
}
|
else
|
{
|
_TankMatchingView.MatchingCurveOL = null;
|
_TankMatchingView.MatchingCurveQL = null;
|
}
|
ReloadDataEvent.Invoke(_TankMatchingView);
|
this.Close();*/
|
}
|
}
|
}
|