change - 干混机类名修改

master
wangsr 1 year ago
parent 0b0b801b2d
commit 85e2019459

@ -159,7 +159,7 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch
//FinishBatchHelper.SaveGHData();
ReportSaveHelper.Instance.SaveDryMixerReport();
ReportDryMixerSaveHelper.Instance.Save();
#endregion
#region 8、更新物料名称

@ -8,11 +8,11 @@ using System.Web.Script.Serialization;
namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper
{
public sealed class ReportSaveHelper
public sealed class ReportDryMixerSaveHelper
{
private static readonly Lazy<ReportSaveHelper> lazy = new Lazy<ReportSaveHelper>(() => new ReportSaveHelper());
public static ReportSaveHelper Instance
private static readonly Lazy<ReportDryMixerSaveHelper> lazy = new Lazy<ReportDryMixerSaveHelper>(() => new ReportDryMixerSaveHelper());
public static ReportDryMixerSaveHelper Instance
{
get
{
@ -20,16 +20,16 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper
}
}
private ReportSaveHelper() { }
private ReportDryMixerSaveHelper() { }
/// <summary>
/// 干混机报表数据保存
/// </summary>
public void SaveDryMixerReport()
public void Save()
{
try
{
ICSharpCode.Core.LoggingService<ReportSaveHelper>.Debug("干混机报表数据保存开始!!!");
ICSharpCode.Core.LoggingService<ReportDryMixerSaveHelper>.Debug("干混机报表数据保存开始!!!");
//准备信号读取
//if (BasePlcHelper.Instance.RdyRpt_D1.NowValue.ToInt() == 1)
//{
@ -59,7 +59,7 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper
}
catch (Exception ex)
{
ICSharpCode.Core.LoggingService<ReportSaveHelper>.Error(String.Format("干混机报表数据保存异常:{0}", ex.Message), ex);
ICSharpCode.Core.LoggingService<ReportDryMixerSaveHelper>.Error(String.Format("干混机报表数据保存异常:{0}", ex.Message), ex);
}
}
@ -70,7 +70,7 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper
{
try
{
ICSharpCode.Core.LoggingService<ReportSaveHelper>.Debug("湿混机报表数据保存开始!!!");
ICSharpCode.Core.LoggingService<ReportDryMixerSaveHelper>.Debug("湿混机报表数据保存开始!!!");
//准备信号读取
@ -83,7 +83,7 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper
}
catch (Exception ex)
{
ICSharpCode.Core.LoggingService<ReportSaveHelper>.Error(String.Format("湿混机报表数据保存异常:{0}", ex.Message), ex);
ICSharpCode.Core.LoggingService<ReportDryMixerSaveHelper>.Error(String.Format("湿混机报表数据保存异常:{0}", ex.Message), ex);
}
}
@ -104,7 +104,7 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper
}
catch (Exception ex)
{
ICSharpCode.Core.LoggingService<ReportSaveHelper>.Error(String.Format("通过PLC读取干混机报表数读取异常{0}", ex.Message), ex);
ICSharpCode.Core.LoggingService<ReportDryMixerSaveHelper>.Error(String.Format("通过PLC读取干混机报表数读取异常{0}", ex.Message), ex);
}
return _dryMixer;
}
@ -125,7 +125,7 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper
}
catch (Exception ex)
{
ICSharpCode.Core.LoggingService<ReportSaveHelper>.Error(String.Format("通过PLC读取湿混机报表数读取异常{0}", ex.Message), ex);
ICSharpCode.Core.LoggingService<ReportDryMixerSaveHelper>.Error(String.Format("通过PLC读取湿混机报表数读取异常{0}", ex.Message), ex);
}
return _wetMixer;
}
@ -295,11 +295,11 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper
}
ICSharpCode.Core.LoggingService<ReportSaveHelper>.Warn($"报表数据打印:{str}");
ICSharpCode.Core.LoggingService<ReportDryMixerSaveHelper>.Warn($"报表数据打印:{str}");
}
catch (Exception ex)
{
ICSharpCode.Core.LoggingService<ReportSaveHelper>.Error(String.Format("保存报表数据至数据库异常:{0}", ex.Message), ex);
ICSharpCode.Core.LoggingService<ReportDryMixerSaveHelper>.Error(String.Format("保存报表数据至数据库异常:{0}", ex.Message), ex);
}
}
@ -326,11 +326,11 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper
}
ICSharpCode.Core.LoggingService<ReportSaveHelper>.Warn($"报表数据打印:{str}");
ICSharpCode.Core.LoggingService<ReportDryMixerSaveHelper>.Warn($"报表数据打印:{str}");
}
catch (Exception ex)
{
ICSharpCode.Core.LoggingService<ReportSaveHelper>.Error(String.Format("保存报表数据至数据库异常:{0}", ex.Message), ex);
ICSharpCode.Core.LoggingService<ReportDryMixerSaveHelper>.Error(String.Format("保存报表数据至数据库异常:{0}", ex.Message), ex);
}
}
@ -378,7 +378,7 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper
});
}catch (Exception ex)
{
ICSharpCode.Core.LoggingService<ReportSaveHelper>.Error(String.Format("保存干混机报表数据异常:{0}", ex.Message), ex);
ICSharpCode.Core.LoggingService<ReportDryMixerSaveHelper>.Error(String.Format("保存干混机报表数据异常:{0}", ex.Message), ex);
}
}
@ -423,7 +423,7 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper
});
}catch(Exception ex)
{
ICSharpCode.Core.LoggingService<ReportSaveHelper>.Error(String.Format("保存干混机报表明细数据异常:{0}", ex.Message), ex);
ICSharpCode.Core.LoggingService<ReportDryMixerSaveHelper>.Error(String.Format("保存干混机报表明细数据异常:{0}", ex.Message), ex);
}
}
@ -462,7 +462,7 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper
}
catch (Exception ex)
{
ICSharpCode.Core.LoggingService<ReportSaveHelper>.Error(String.Format("保存湿混机报表数据异常:{0}", ex.Message), ex);
ICSharpCode.Core.LoggingService<ReportDryMixerSaveHelper>.Error(String.Format("保存湿混机报表数据异常:{0}", ex.Message), ex);
}
}
@ -508,7 +508,7 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SaveHelper
}
catch (Exception ex)
{
ICSharpCode.Core.LoggingService<ReportSaveHelper>.Error(String.Format("保存湿混机报表明细数据异常:{0}", ex.Message), ex);
ICSharpCode.Core.LoggingService<ReportDryMixerSaveHelper>.Error(String.Format("保存湿混机报表明细数据异常:{0}", ex.Message), ex);
}
}
}

Loading…
Cancel
Save