ReportReadDb 读取报表的问题

dep
我叫锄头 11 months ago
parent 09e043b212
commit 64bcf76309

@ -28,6 +28,7 @@ using Mesnac.Action.ChemicalWeighing.InterfaceDocking;
using Mesnac.Action.ChemicalWeighing.Report;
using Mesnac.Action.ChemicalWeighing.InterfaceDocking.DockingEntity;
using Mesnac.Core.Service;
using Mesnac.Basic;
namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
{
@ -299,7 +300,12 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
if (ReadFlag >= 30)
{
ReadFlag = 0;
var readName = UserInfo.Instance.RealName;
if (!string.IsNullOrEmpty(readName) && readName!= "mesnac" && readName != "Edit")
{
ReportReadDb.ReadFeededDry();
}
}

@ -61,12 +61,13 @@ namespace Mesnac.Action.ChemicalWeighing.Report
}
//水
///热水秤A
if (nornalStatus.RdyRpt_W1)
{
FeededWaterHA(dB2111Helper.hwReport_A);
}
///冷水秤A
if (nornalStatus.RdyRpt_W2)
{
FeededWaterCA(dB2111Helper.cwReport_A);
@ -77,6 +78,7 @@ namespace Mesnac.Action.ChemicalWeighing.Report
{
FeededWaterHB(dB2111Helper.hwReport_B);
}
///冷水秤B
if (nornalStatus.RdyRpt_W4)
{
FeededWaterCB(dB2111Helper.cwReport_B);
@ -123,6 +125,11 @@ namespace Mesnac.Action.ChemicalWeighing.Report
DB2107WriteHelper.CleanWater(4);
}
/// <summary>
/// 解决算法有问题
/// </summary>
/// <param name="deviceno"></param>
/// <param name="entity"></param>
private static void FeededDry(int deviceno, ReportDosEntity entity)
{
@ -130,7 +137,7 @@ namespace Mesnac.Action.ChemicalWeighing.Report
int no = deviceno * 2;
if (entity.eqNo == 1)
{
no = deviceno-1;
no = no - 1;
}
var actValue = Convert.ToInt32(entity.actValue);
string logName = $"螺旋{deviceno}向湿混机 [{no}] 投料 {actValue}";

@ -70,7 +70,7 @@ namespace Mesnac.Action.ChemicalWeighing.Test
mCButton.Click += MCButton_Click;
System.Timers.Timer t = new System.Timers.Timer(1000*20);//实例化Timer类设置间隔时间为10000毫秒
System.Timers.Timer t = new System.Timers.Timer(1000);//实例化Timer类设置间隔时间为10000毫秒
t.Elapsed += new System.Timers.ElapsedEventHandler(theout);//到达时间的时候执行事件;
t.AutoReset = true;//设置是执行一次false还是一直执行(true)
t.Enabled = true;//是否执行System.Timers.Timer.Elapsed事件

@ -21,7 +21,6 @@ namespace DataBlockHelper
SiemensPLCS siemensPLCS = SiemensPLCS.S1500;
SiemensS7Net s7 = new SiemensS7Net(siemensPLCS);
s7.SetPersistentConnection();
s7.IpAddress = "172.18.4.100";
s7.Port = 102;
var su = s7.ConnectServer();

Loading…
Cancel
Save