|
|
@ -1,4 +1,7 @@
|
|
|
|
using DataBlockHelper.DBHelpers;
|
|
|
|
using DataBlockHelper.DBHelpers;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using DevExpress.Utils.Extensions;
|
|
|
|
|
|
|
|
|
|
|
|
using Mesnac.Action.Base;
|
|
|
|
using Mesnac.Action.Base;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting.Entity;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting.Entity;
|
|
|
|
using Mesnac.Controls.Default;
|
|
|
|
using Mesnac.Controls.Default;
|
|
|
@ -16,6 +19,10 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting
|
|
|
|
DB112Helper DB122 = new DB112Helper();
|
|
|
|
DB112Helper DB122 = new DB112Helper();
|
|
|
|
MCTextboxEntity BoxE = new MCTextboxEntity();
|
|
|
|
MCTextboxEntity BoxE = new MCTextboxEntity();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SlioEntity slioEntity = new SlioEntity();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PipeEntity pipe=new PipeEntity();
|
|
|
|
|
|
|
|
|
|
|
|
List<Control> Controls;
|
|
|
|
List<Control> Controls;
|
|
|
|
public void Run(RuntimeParameter runtime)
|
|
|
|
public void Run(RuntimeParameter runtime)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -25,7 +32,13 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting
|
|
|
|
|
|
|
|
|
|
|
|
ControlsHelper.ControlImport<MCTextBox>(BoxE, Controls);
|
|
|
|
ControlsHelper.ControlImport<MCTextBox>(BoxE, Controls);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ControlsHelper.ControlImport<MCTextBox>(slioEntity, Controls);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ControlsHelper.ControlImport<MCTextBox>(pipe, Controls);
|
|
|
|
|
|
|
|
|
|
|
|
SetValueFromPlc();
|
|
|
|
SetValueFromPlc();
|
|
|
|
|
|
|
|
SetValue();
|
|
|
|
|
|
|
|
SetDb92Value();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void SetValueFromPlc()
|
|
|
|
private void SetValueFromPlc()
|
|
|
@ -61,5 +74,53 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting
|
|
|
|
BoxE.CTimeSetValue1.MCValue = DB122.LineTimeC.SetValue1;
|
|
|
|
BoxE.CTimeSetValue1.MCValue = DB122.LineTimeC.SetValue1;
|
|
|
|
BoxE.CTimeSetValue2.MCValue = DB122.LineTimeC.SetValue2;
|
|
|
|
BoxE.CTimeSetValue2.MCValue = DB122.LineTimeC.SetValue2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void SetValue()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
DB120Help dB120Help = new DB120Help();
|
|
|
|
|
|
|
|
var hd = dB120Help.GetUhd;
|
|
|
|
|
|
|
|
slioEntity.TxtA.MCValue = hd.A.ToString();
|
|
|
|
|
|
|
|
slioEntity.TxtB.MCValue = hd.B.ToString();
|
|
|
|
|
|
|
|
slioEntity.TxtC.MCValue = hd.C.ToString();
|
|
|
|
|
|
|
|
slioEntity.TxtD.MCValue = hd.D.ToString();
|
|
|
|
|
|
|
|
slioEntity.TxtE.MCValue = hd.E.ToString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
slioEntity.TxtF.MCValue = hd.F.ToString();
|
|
|
|
|
|
|
|
slioEntity.TxtG.MCValue = hd.G.ToString();
|
|
|
|
|
|
|
|
slioEntity.TxtH.MCValue = hd.H.ToString();
|
|
|
|
|
|
|
|
slioEntity.TxtI.MCValue = hd.I.ToString();
|
|
|
|
|
|
|
|
slioEntity.TxtJ.MCValue = hd.J.ToString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
slioEntity.TxtK.MCValue = hd.K.ToString();
|
|
|
|
|
|
|
|
slioEntity.TxtL.MCValue = hd.L.ToString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
slioEntity.TxtM.MCValue = hd.M.ToString();
|
|
|
|
|
|
|
|
slioEntity.TxtN.MCValue = hd.N.ToString();
|
|
|
|
|
|
|
|
slioEntity.TxtO.MCValue = hd.O.ToString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
slioEntity.TxtDelay1.MCValue = hd.Delay1.ToString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
slioEntity.TxtDelay2.MCValue = hd.Delay2.ToString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
slioEntity.TxtDelay3.MCValue = hd.Delay3.ToString();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void SetDb92Value()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
DB92Help dB=new DB92Help();
|
|
|
|
|
|
|
|
var p = dB.GetPipe;
|
|
|
|
|
|
|
|
pipe.MainA.MCValue=p.MainPipieA.ToString();
|
|
|
|
|
|
|
|
pipe.AuxA.MCValue = p.AuxPipieA.ToString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pipe.MainB.MCValue = p.MainPipieB.ToString();
|
|
|
|
|
|
|
|
pipe.AuxB.MCValue = p.AuxPipieB.ToString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pipe.MainC.MCValue = p.MainPipieC.ToString();
|
|
|
|
|
|
|
|
pipe.AuxC.MCValue = p.AuxPipieC.ToString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pipe.Upper.MCValue=p.UpperPressure.ToString();
|
|
|
|
|
|
|
|
pipe.Lower.MCValue=p.LowerPressure.ToString();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|