|
|
|
@ -2,6 +2,8 @@
|
|
|
|
|
using DataBlockHelper.Entity.DB2104Entity;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.AutoControl.DB;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.AutoControl.Entity;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.FreeDb;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.FreeDb.DBEntity;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.LjMixManager;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.LjPlanning;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.MinAn;
|
|
|
|
@ -539,10 +541,50 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
ColdA.stand = Convert.ToInt16(ComboE.CALeftOrRight.MCValue);
|
|
|
|
|
ColdB.stand = Convert.ToInt16(ComboE.CBLeftOrRight.MCValue);
|
|
|
|
|
|
|
|
|
|
WaterDownloadEntity entity = new WaterDownloadEntity();
|
|
|
|
|
|
|
|
|
|
//1 冷水a 2 冷水b 3 热水a 4 热水b
|
|
|
|
|
|
|
|
|
|
Db2104WriteHelper.WriteAHostWater(HotA);
|
|
|
|
|
entity.Id = 3;
|
|
|
|
|
entity.Tolerance=HotA.Tolerance;
|
|
|
|
|
entity.stand = HotA.stand;
|
|
|
|
|
entity.differ = HotA.differ;
|
|
|
|
|
entity.Set = HotA.Set;
|
|
|
|
|
entity.Bin=HotA.Bin;
|
|
|
|
|
|
|
|
|
|
FreeSqlUnit.Instance.Update<WaterDownloadEntity>().SetSource(entity).ExecuteUpdated();
|
|
|
|
|
Db2104WriteHelper.WriteBHostWater(HotB);
|
|
|
|
|
|
|
|
|
|
entity.Id = 4;
|
|
|
|
|
entity.Tolerance = HotB.Tolerance;
|
|
|
|
|
entity.stand = HotB.stand;
|
|
|
|
|
entity.differ = HotB.differ;
|
|
|
|
|
entity.Set = HotB.Set;
|
|
|
|
|
entity.Bin = HotB.Bin;
|
|
|
|
|
FreeSqlUnit.Instance.Update<WaterDownloadEntity>().SetSource(entity).ExecuteUpdated();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Db2104WriteHelper.WriteAColWater(ColdA);
|
|
|
|
|
|
|
|
|
|
entity.Id = 1;
|
|
|
|
|
entity.Tolerance = ColdA.Tolerance;
|
|
|
|
|
entity.stand = ColdA.stand;
|
|
|
|
|
entity.differ = ColdA.differ;
|
|
|
|
|
entity.Set = ColdA.Set;
|
|
|
|
|
entity.Bin = ColdA.Bin;
|
|
|
|
|
FreeSqlUnit.Instance.Update<WaterDownloadEntity>().SetSource(entity).ExecuteUpdated();
|
|
|
|
|
|
|
|
|
|
Db2104WriteHelper.WriteBColWater(ColdB);
|
|
|
|
|
|
|
|
|
|
entity.Id = 2;
|
|
|
|
|
entity.Tolerance = ColdB.Tolerance;
|
|
|
|
|
entity.stand = ColdB.stand;
|
|
|
|
|
entity.differ = ColdB.differ;
|
|
|
|
|
entity.Set = ColdB.Set;
|
|
|
|
|
entity.Bin = ColdB.Bin;
|
|
|
|
|
FreeSqlUnit.Instance.Update<WaterDownloadEntity>().SetSource(entity).ExecuteUpdated();
|
|
|
|
|
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("水称数据下发成功!");
|
|
|
|
|
MessageBox.Show("水称数据下发成功");
|
|
|
|
|
}
|
|
|
|
|