You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lj_plc/DataBlockHelper/Entity/DB2106Entity/GelReportEntity.cs

46 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataBlockHelper.Entity.DB2106Entity
{
public class GelReportEntity
{
private int StartSet;
public GelReportEntity(int startSet)
{
this.StartSet = startSet;
}
public Gel_ Gel_A => new Gel_(StartSet);
public Gel_ Gel_B => new Gel_(StartSet + 312);
public Gel_ Gel_C => new Gel_(StartSet + 624);
public Gel_ Gel_D => new Gel_(StartSet + 936);
public Gel_ Gel_E => new Gel_(StartSet + 1248);
public Gel_ Gel_F => new Gel_(StartSet + 1560);
public Gel_ Gel_G => new Gel_(StartSet + 1872);
public Gel_ Gel_H => new Gel_(StartSet + 2184);
}
public class Gel_
{
private int StartSet;
public Gel_(int startSet)
{
this.StartSet = startSet;
}
public List<Report_DosE> GelDosing => new ReportArrayManager(4, StartSet, 22).GetReport_DosEList();
public Report_DosE HotWater => new Report_DosE(Convert.ToUInt16(StartSet + 88));
public Report_DosE CoolWater => new Report_DosE(Convert.ToUInt16(StartSet + 110));
public List<Report_MixE> GelMixing => new ReportArrayManager(10, StartSet + 132, 18).GetReport_MixEList();
}
}