|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
using DataBlockHelper;
|
|
|
|
|
using Mesnac.Action.Base;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.FreeDb;
|
|
|
|
|
using Mesnac.Basic;
|
|
|
|
|
using Mesnac.Controls.Base;
|
|
|
|
|
using Mesnac.Controls.Default;
|
|
|
|
|
using Mesnac.Core.Service;
|
|
|
|
@ -208,7 +210,8 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称A开始称量");
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称A开始称量" + value);
|
|
|
|
|
ManualLogControl("冷水称A开始称量 " + value);
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.20.0", Convert.ToUInt16(value));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.28.0", true);
|
|
|
|
|
}
|
|
|
|
@ -224,6 +227,7 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
{
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.28.1", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称A称量已手动停止");
|
|
|
|
|
ManualLogControl("冷水称A称量已手动停止");
|
|
|
|
|
MessageBox.Show("称量已停止!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -236,7 +240,8 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称A开始称量");
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称A开始称量" + value);
|
|
|
|
|
ManualLogControl("热水称A开始称量 " + value);
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.0.0", Convert.ToUInt16(value));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.8.0", true);
|
|
|
|
|
}
|
|
|
|
@ -252,6 +257,7 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
{
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.8.1", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称A称量已手动停止");
|
|
|
|
|
ManualLogControl("热水称A称量已手动停止");
|
|
|
|
|
MessageBox.Show("称量已停止!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -264,7 +270,8 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称B开始称量");
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称B开始称量" + value);
|
|
|
|
|
ManualLogControl("冷水称B开始称量 " + value);
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.30.0", Convert.ToUInt16(value));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.38.0", true);
|
|
|
|
|
}
|
|
|
|
@ -280,6 +287,7 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
{
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.38.1", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称B称量已手动停止");
|
|
|
|
|
ManualLogControl("冷水称B称量已手动停止");
|
|
|
|
|
MessageBox.Show("称量已停止!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -292,7 +300,8 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称B开始称量");
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称B开始称量" + value);
|
|
|
|
|
ManualLogControl("热水称B开始称量 " + value);
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.10.0", Convert.ToUInt16(value));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.18.0", true);
|
|
|
|
|
}
|
|
|
|
@ -308,6 +317,7 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
{
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.18.1", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称B称量已手动停止");
|
|
|
|
|
ManualLogControl("热水称B称量已手动停止");
|
|
|
|
|
MessageBox.Show("称量已停止!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -323,25 +333,33 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
case 1:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.26.0", Convert.ToUInt16(1));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.28.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称A开始向糊化锅1排水");
|
|
|
|
|
ManualLogControl("冷水称A开始向糊化锅1排水");
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.26.0", Convert.ToUInt16(2));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.28.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称A开始向糊化锅2排水");
|
|
|
|
|
ManualLogControl("冷水称A开始向糊化锅2排水");
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.26.0", Convert.ToUInt16(3));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.28.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称A开始向糊化锅3排水");
|
|
|
|
|
ManualLogControl("冷水称A开始向糊化锅3排水");
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.26.0", Convert.ToUInt16(4));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.28.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称A开始向糊化锅4排水");
|
|
|
|
|
ManualLogControl("冷水称A开始向糊化锅4排水");
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
MessageBox.Show("请选择一个糊化锅!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称A开始排水");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -357,25 +375,32 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
case 1:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.6.0", Convert.ToUInt16(1));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.8.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称A开始向糊化锅1排水");
|
|
|
|
|
ManualLogControl("热水称A开始向糊化锅1排水");
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.6.0", Convert.ToUInt16(2));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.8.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称A开始向糊化锅2排水");
|
|
|
|
|
ManualLogControl("热水称A开始向糊化锅2排水");
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.6.0", Convert.ToUInt16(3));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.8.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称A开始向糊化锅3排水");
|
|
|
|
|
ManualLogControl("热水称A开始向糊化锅3排水");
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.6.0", Convert.ToUInt16(4));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.8.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称A开始向糊化锅4排水");
|
|
|
|
|
ManualLogControl("热水称A开始向糊化锅4排水");
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
MessageBox.Show("请选择一个糊化锅!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称A开始排水");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -391,25 +416,33 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
case 5:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.36.0", Convert.ToUInt16(1));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.38.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称B开始向糊化锅5排水");
|
|
|
|
|
ManualLogControl("冷水称B开始向糊化锅5排水");
|
|
|
|
|
break;
|
|
|
|
|
case 6:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.36.0", Convert.ToUInt16(2));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.38.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称B开始向糊化锅6排水");
|
|
|
|
|
ManualLogControl("冷水称B开始向糊化锅6排水");
|
|
|
|
|
break;
|
|
|
|
|
case 7:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.36.0", Convert.ToUInt16(3));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.38.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称B开始向糊化锅7排水");
|
|
|
|
|
ManualLogControl("冷水称B开始向糊化锅7排水");
|
|
|
|
|
break;
|
|
|
|
|
case 8:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.36.0", Convert.ToUInt16(4));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.38.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称B开始向糊化锅8排水");
|
|
|
|
|
ManualLogControl("冷水称B开始向糊化锅8排水");
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
MessageBox.Show("请选择一个糊化锅!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称B开始排水");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -425,25 +458,33 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
case 5:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.16.0", Convert.ToUInt16(1));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.18.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称B开始向糊化锅5排水");
|
|
|
|
|
ManualLogControl("热水称B开始向糊化锅5排水");
|
|
|
|
|
break;
|
|
|
|
|
case 6:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.16.0", Convert.ToUInt16(2));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.18.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称B开始向糊化锅6排水");
|
|
|
|
|
ManualLogControl("热水称B开始向糊化锅6排水");
|
|
|
|
|
break;
|
|
|
|
|
case 7:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.16.0", Convert.ToUInt16(3));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.18.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称B开始向糊化锅7排水");
|
|
|
|
|
ManualLogControl("热水称B开始向糊化锅7排水");
|
|
|
|
|
break;
|
|
|
|
|
case 8:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.16.0", Convert.ToUInt16(4));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.18.4", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称B开始向糊化锅8排水");
|
|
|
|
|
ManualLogControl("热水称B开始向糊化锅8排水");
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
MessageBox.Show("请选择一个糊化锅!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称B开始排水");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -473,6 +514,7 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MessageBox.Show("冷水称A已停止排水");
|
|
|
|
|
ManualLogControl("冷水称A停止排水");
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称A停止排水");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -502,6 +544,7 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MessageBox.Show("热水称A已停止排水");
|
|
|
|
|
ManualLogControl("热水称A停止排水");
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称A停止排水");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -531,6 +574,7 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MessageBox.Show("冷水称B已停止排水");
|
|
|
|
|
ManualLogControl("冷水称B停止排水");
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("冷水称B停止排水");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -560,6 +604,7 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MessageBox.Show("热水称B已停止排水");
|
|
|
|
|
ManualLogControl("热水称B停止排水");
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("热水称B停止排水");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -602,6 +647,8 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.54.0", Convert.ToUInt16(valueSpeedPoint));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.58.0", Convert.ToUInt16(1));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.60.0", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("螺旋1启动向湿混机1 " + valueSet);
|
|
|
|
|
ManualLogControl("螺旋1启动向湿混机1" + valueSet);
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.40.0", Convert.ToUInt16(valueSet));
|
|
|
|
@ -612,13 +659,14 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.54.0", Convert.ToUInt16(valueSpeedPoint));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.58.0", Convert.ToUInt16(2));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.60.0", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("螺旋1启动向湿混机2 " + valueSet);
|
|
|
|
|
ManualLogControl("螺旋1启动向湿混机2 " + valueSet);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
MessageBox.Show("请选择一个湿混机!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("螺旋1启动");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -660,6 +708,8 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.76.0", Convert.ToUInt16(valueSpeedPoint));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.80.0", Convert.ToUInt16(1));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.82.0", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("螺旋2启动向湿混机3 " + valueSet);
|
|
|
|
|
ManualLogControl("螺旋2启动向湿混机3 " + valueSet);
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.62.0", Convert.ToUInt16(valueSet));
|
|
|
|
@ -670,13 +720,14 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.76.0", Convert.ToUInt16(valueSpeedPoint));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.80.0", Convert.ToUInt16(2));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.82.0", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("螺旋2启动向湿混机4 " + valueSet);
|
|
|
|
|
ManualLogControl("螺旋2启动向湿混机4 " + valueSet);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
MessageBox.Show("请选择一个湿混机!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("螺旋2启动");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -718,6 +769,8 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.98.0", Convert.ToUInt16(valueSpeedPoint));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.102.0", Convert.ToUInt16(1));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.104.0", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("螺旋3启动向湿混机5 " + valueSet);
|
|
|
|
|
ManualLogControl("螺旋3启动向湿混机5 " + valueSet);
|
|
|
|
|
break;
|
|
|
|
|
case 6:
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.84.0", Convert.ToUInt16(valueSet));
|
|
|
|
@ -728,13 +781,14 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.98.0", Convert.ToUInt16(valueSpeedPoint));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.102.0", Convert.ToUInt16(2));
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.104.0", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("螺旋3启动向湿混机6 " + valueSet);
|
|
|
|
|
ManualLogControl("螺旋3启动向湿混机6 " + valueSet);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
MessageBox.Show("请选择一个湿混机!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("螺旋3启动");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -797,6 +851,7 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
{
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.60.1", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("螺旋1已手动停止");
|
|
|
|
|
ManualLogControl("螺旋1已手动停止");
|
|
|
|
|
MessageBox.Show("螺旋1已停止!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -804,6 +859,7 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
{
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.82.1", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("螺旋2已手动停止");
|
|
|
|
|
ManualLogControl("螺旋2已手动停止");
|
|
|
|
|
MessageBox.Show("螺旋2已停止!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -811,6 +867,7 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
{
|
|
|
|
|
PlcConnect.Instance.Write("DB2119.104.1", true);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("螺旋3已手动停止");
|
|
|
|
|
ManualLogControl("螺旋3已手动停止");
|
|
|
|
|
MessageBox.Show("螺旋3已停止!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -834,5 +891,17 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
{
|
|
|
|
|
return McControllist.Where(t => t.BaseControl.MCKey != null && t.BaseControl.MCKey == name).FirstOrDefault().BaseControl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void ManualLogControl(string logName)
|
|
|
|
|
{
|
|
|
|
|
var Log = new ManualLogEntity()
|
|
|
|
|
{
|
|
|
|
|
logtext = logName,
|
|
|
|
|
logtime = DateTime.Now,
|
|
|
|
|
userid = string.IsNullOrWhiteSpace(UserInfo.Instance.UserName) ? "Edit" : UserInfo.Instance.UserName
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
FreeSqlUnit.Instance.Insert<ManualLogEntity>(Log).ExecuteIdentity();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|