|
|
|
@ -31,27 +31,27 @@ namespace Mesnac.Action.ChemicalWeighing.Report
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("干混机1读取报表");
|
|
|
|
|
InsertD(1);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.5.6", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.5.6", false);
|
|
|
|
|
}
|
|
|
|
|
if (normal.RdyRpt_D2)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("干混机2读取报表");
|
|
|
|
|
InsertD(2);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.5.7", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.5.7", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (normal.RdyRpt_D3)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("干混机3读取报表");
|
|
|
|
|
InsertD(3);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.6.0", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.6.0", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (normal.RdyRpt_D4)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("干混机4读取报表");
|
|
|
|
|
InsertD(4);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.6.1", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.6.1", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//InsertG
|
|
|
|
@ -60,34 +60,34 @@ namespace Mesnac.Action.ChemicalWeighing.Report
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("糊化机1读取报表");
|
|
|
|
|
InsertG(1);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.6.2", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.6.2", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (normal.RdyRpt_G2)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("糊化机2读取报表");
|
|
|
|
|
InsertG(2);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.6.3", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.6.3", false);
|
|
|
|
|
}
|
|
|
|
|
if (normal.RdyRpt_G3)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("糊化机3读取报表");
|
|
|
|
|
InsertG(3);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.6.4", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.6.4", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (normal.RdyRpt_G4)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("糊化机4读取报表");
|
|
|
|
|
InsertG(4);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.6.5", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.6.5", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (normal.RdyRpt_G5)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("糊化机5读取报表");
|
|
|
|
|
InsertG(5);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.6.6", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.6.6", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -95,56 +95,56 @@ namespace Mesnac.Action.ChemicalWeighing.Report
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("糊化机6读取报表");
|
|
|
|
|
InsertG(6);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.6.7", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.6.7", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (normal.RdyRpt_G7)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("糊化机7读取报表");
|
|
|
|
|
InsertG(7);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.7.0", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.7.0", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (normal.RdyRpt_G8)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("糊化机8读取报表");
|
|
|
|
|
InsertG(8);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.7.1", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.7.1", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (normal.RdyRpt_M1)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("湿混机1读取报表");
|
|
|
|
|
InsertM(1);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.7.2", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.7.2", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (normal.RdyRpt_M2)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("湿混机2读取报表");
|
|
|
|
|
InsertM(2);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.7.3", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.7.3", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (normal.RdyRpt_M3)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("湿混机3读取报表");
|
|
|
|
|
InsertM(3);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.7.4", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.7.4", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (normal.RdyRpt_M4)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("湿混机4读取报表");
|
|
|
|
|
InsertM(4);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.7.5", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.7.5", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (normal.RdyRpt_M5)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("湿混机5读取报表");
|
|
|
|
|
InsertM(5);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.7.6", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.7.6", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -152,21 +152,21 @@ namespace Mesnac.Action.ChemicalWeighing.Report
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("湿混机6读取报表");
|
|
|
|
|
InsertM(6);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.7.7", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.7.7", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (normal.RdyRpt_M7)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("湿混机7读取报表");
|
|
|
|
|
InsertM(7);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.8.0", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.8.0", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (normal.RdyRpt_M8)
|
|
|
|
|
{
|
|
|
|
|
LoggingService<ReportReadDb>.InfoFormatted("湿混机8读取报表");
|
|
|
|
|
InsertM(8);
|
|
|
|
|
PlcConnect.Instance.Write("DB2017.8.1", false);
|
|
|
|
|
PlcConnect.Instance.Write("DB2107.8.1", false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|