diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs index 0062502..19f68d1 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs @@ -298,10 +298,10 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl ControlsHelper.SetMCLabel(LabelE.LineKind8, dict[8]); } ReadFlag += 1; - if (ReadFlag >= 10) + if (ReadFlag >= 20) { ReadFlag = 0; - var readName = UserInfo.Instance.RealName; + if (UserJudge.IsNormalUser()) { ReportReadDb.ReadFeededDry(); diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/ReportReadDb.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/ReportReadDb.cs index 364c5d7..1f12ac5 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/ReportReadDb.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/ReportReadDb.cs @@ -133,17 +133,17 @@ namespace Mesnac.Action.ChemicalWeighing.Report private static void FeededDry(int deviceno, ReportDosEntity entity) { - + DB2107WriteHelper.CleanSpare(deviceno); int no = deviceno * 2; if (entity.eqNo == 1) { no = no - 1; } var actValue = Convert.ToInt32(entity.actValue); - string logName = $"螺旋{deviceno}向湿混机 [{no}] 投料 {actValue}"; + string logName = $"用户[{UserInfo.Instance.UserName}] 螺旋{deviceno}向湿混机 [{no}] 投料 {actValue}"; LoggingService.Info(logName); LjLogControl.ManualLogControl(logName, actValue, 4, no, 2); - DB2107WriteHelper.CleanSpare(deviceno); + } public static void ReadReport()