FeededDry 日志添加用户 是不是同一个用户

dep
我叫锄头 11 months ago
parent 6378b8faa9
commit 1da3f57a84

@ -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();

@ -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<ReportReadDb>.Info(logName);
LjLogControl.ManualLogControl(logName, actValue, 4, no, 2);
DB2107WriteHelper.CleanSpare(deviceno);
}
public static void ReadReport()

Loading…
Cancel
Save