|
|
@ -20,24 +20,26 @@ namespace Mesnac.Action.ChemicalWeighing.LjProportional
|
|
|
|
DbMCControl materialGridControl =
|
|
|
|
DbMCControl materialGridControl =
|
|
|
|
this.GetDbMCControlByKey(Mesnac.Basic.DataSourceFactory.MCDbType.Local, "ProportionalSetting")
|
|
|
|
this.GetDbMCControlByKey(Mesnac.Basic.DataSourceFactory.MCDbType.Local, "ProportionalSetting")
|
|
|
|
.FirstOrDefault(); //获取物料数据控件
|
|
|
|
.FirstOrDefault(); //获取物料数据控件
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (MessageBox.Show("确定上传比例阀参数到数据库?","提示",MessageBoxButtons.OKCancel,MessageBoxIcon.Information) == DialogResult.OK)
|
|
|
|
//if (MessageBox.Show("确定上传比例阀参数到数据库?","提示",MessageBoxButtons.OKCancel,MessageBoxIcon.Information) == DialogResult.OK)
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
|
|
|
|
|
|
|
|
LoadingHelper.ShowLoadingScreen();
|
|
|
|
// LoadingHelper.ShowLoadingScreen();
|
|
|
|
var watchDog = LjHelp.WatchDog;
|
|
|
|
// var watchDog = LjHelp.WatchDog;
|
|
|
|
if (watchDog == 0)
|
|
|
|
// if (watchDog == 0)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
LoadingHelper.CloseForm();
|
|
|
|
// LoadingHelper.CloseForm();
|
|
|
|
MessageBox.Show("PLC通讯失败");
|
|
|
|
// MessageBox.Show("PLC通讯失败");
|
|
|
|
return;
|
|
|
|
// return;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
DoWord();
|
|
|
|
|
|
|
|
LoadingHelper.CloseForm();
|
|
|
|
// LoadingHelper.CloseForm();
|
|
|
|
};
|
|
|
|
//};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DoWord();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void DoWord()
|
|
|
|
private void DoWord()
|
|
|
|