|
|
|
|
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;
|
|
|
|
|
private byte[] bytes;
|
|
|
|
|
public GelReportEntity(int startSet, byte[] bytes)
|
|
|
|
|
{
|
|
|
|
|
this.StartSet = startSet;
|
|
|
|
|
this.bytes = bytes;
|
|
|
|
|
}
|
|
|
|
|
public Gel_ Gel_A => new Gel_(StartSet, bytes);
|
|
|
|
|
public Gel_ Gel_B => new Gel_(StartSet + 312, bytes);
|
|
|
|
|
public Gel_ Gel_C => new Gel_(StartSet + 624, bytes);
|
|
|
|
|
public Gel_ Gel_D => new Gel_(StartSet + 936, bytes);
|
|
|
|
|
public Gel_ Gel_E => new Gel_(StartSet + 1248, bytes);
|
|
|
|
|
public Gel_ Gel_F => new Gel_(StartSet + 1560, bytes);
|
|
|
|
|
public Gel_ Gel_G => new Gel_(StartSet + 1872, bytes);
|
|
|
|
|
public Gel_ Gel_H => new Gel_(StartSet + 2184, bytes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Gel_
|
|
|
|
|
{
|
|
|
|
|
private int StartSet;
|
|
|
|
|
private byte[] bytes;
|
|
|
|
|
public Gel_(int startSet, byte[] bytes)
|
|
|
|
|
{
|
|
|
|
|
this.StartSet = startSet;
|
|
|
|
|
this.bytes = bytes;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<Report_DosE> GelDosing => new ReportArrayManager(4, StartSet, 22, bytes).GetReport_DosEList();
|
|
|
|
|
public Report_DosE HotWater => new Report_DosE(Convert.ToUInt16(StartSet + 88), bytes);
|
|
|
|
|
public Report_DosE CoolWater => new Report_DosE(Convert.ToUInt16(StartSet + 110), bytes);
|
|
|
|
|
public List<Report_MixE> GelMixing => new ReportArrayManager(10, StartSet + 132, 18, bytes).GetReport_MixEList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|