diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/MsgCheck/BillNumberTypeEnum.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/MsgCheck/BillNumberTypeEnum.cs
index 0ab29fb..01b5a48 100644
--- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/MsgCheck/BillNumberTypeEnum.cs
+++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/MsgCheck/BillNumberTypeEnum.cs
@@ -7,19 +7,11 @@ namespace WY.NewJit.MsgCheck
{
public enum BillNumberTypeEnum
{
- [Description("顺序")]
- 顺序 = 0,
-
- ///
- /// 已匹配,未打印
- ///
+ [Description("正常")]
+ 正常 = 0,
[Description("断号")]
断号 = 1,
-
- ///
- /// 已打印
- ///
- [Description("补打")]
- 补打 = 2,
+ [Description("迟到")]
+ 迟到 = 2,
}
}
diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Entitys/BillNumberRecord.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Entitys/BillNumberRecord.cs
index fd7c2a5..9ad9cde 100644
--- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Entitys/BillNumberRecord.cs
+++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Entitys/BillNumberRecord.cs
@@ -35,7 +35,11 @@ namespace WY.NewJit.MsgCheck
/// 更新时间#
///
public virtual DateTime UpdateTime { get; set; }
+ ///
+ /// 一次处理后成的号码列表
+ ///
[NotMapped]
- public virtual Dictionary dic { get; set; }
+ public virtual List Datas { get; set; }
}
+
}
diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Entitys/PrintData.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Entitys/PrintData.cs
new file mode 100644
index 0000000..cec3a8b
--- /dev/null
+++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Entitys/PrintData.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace WY.NewJit.MsgCheck
+{
+ public class PrintData
+ {
+ public virtual int HostSN { get; set; }
+ public virtual int Round { get; set; }
+
+ public virtual int HostSN2 { get; set; }
+
+
+
+
+ public virtual BillNumberTypeEnum BillNumberType { get; set; }
+
+ }
+}
diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Services/BillNumberRecordDomainService.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Services/BillNumberRecordDomainService.cs
index a1da50c..f22ca44 100644
--- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Services/BillNumberRecordDomainService.cs
+++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Services/BillNumberRecordDomainService.cs
@@ -27,8 +27,8 @@ namespace WY.NewJit.MsgCheck
public async Task GetBillNumber(int number, string productLine)
{
- Dictionary ls = new Dictionary();//待打印数据
BillNumberRecord record = new BillNumberRecord();
+ List datas = new List();
var bill = await _billNumberRepository.GetAsync(r => r.ProductLine == productLine);
int recordNumber = bill.RecordNumber;//记录号
int roundNumber = bill.RoundNumber;
@@ -39,26 +39,41 @@ namespace WY.NewJit.MsgCheck
record.InsertedRows = (1999 - recordNumber) + (number - 1) + 1;
for (int i = 1; i <= record.InsertedRows; i++)
{
- BillNumberTypeEnum type = BillNumberTypeEnum.顺序;
+ PrintData data = new PrintData();
+ BillNumberTypeEnum type = BillNumberTypeEnum.正常;
if (i + recordNumber > 1999)
{
if ((i + recordNumber - 1999) != number) type = BillNumberTypeEnum.断号;
- ls.Add((roundNumber.ToString()+(i + recordNumber - 1999).ToString()), type);
+ data.HostSN = i + recordNumber - 1999;
+ data.Round = roundNumber * 100000;
+ data.HostSN2 = roundNumber * 100000 + i + recordNumber - 1999;
+ // ls.Add((roundNumber.ToString()+(i + recordNumber - 1999).ToString()), type);
}
else
{
if ((i + recordNumber) != number) type = BillNumberTypeEnum.断号;
- ls.Add((roundNumber.ToString()+(i + recordNumber).ToString()), type);
+ data.HostSN = i + recordNumber;
+ data.Round = roundNumber * 100000;
+ data.HostSN2 = roundNumber * 100000 + i + recordNumber;
+ // ls.Add((roundNumber.ToString()+(i + recordNumber).ToString()), type);
}
+ data.BillNumberType = type;
+
}
recordNumber = number;
record.RoundNumber= roundNumber+1;
}
- else if (-1000 < x && x < 0)
+ else if (-1000 < x && x < 0)
{
+ PrintData data = new PrintData();
record.RoundNumber = roundNumber;
record.InsertedRows = 0;
- ls.Add((roundNumber.ToString() + (recordNumber).ToString()), BillNumberTypeEnum.补打);
+ data.BillNumberType = BillNumberTypeEnum.迟到;
+ data.HostSN = recordNumber;
+ data.Round = roundNumber * 100000;
+ data.HostSN2 = roundNumber * 100000 + recordNumber;
+ datas.Add(data);
+ // ls.Add((roundNumber.ToString() + (recordNumber).ToString()), BillNumberTypeEnum.迟到);
}
else if (0 < x && x < 1000)
{
@@ -67,20 +82,34 @@ namespace WY.NewJit.MsgCheck
for (int i = 1; i <= record.RoundNumber; i++)
{
- BillNumberTypeEnum type = BillNumberTypeEnum.顺序;
+ PrintData data = new PrintData();
+ BillNumberTypeEnum type = BillNumberTypeEnum.正常;
if ((i + recordNumber) != number) type = BillNumberTypeEnum.断号;
- ls.Add((roundNumber.ToString() + (i + recordNumber).ToString()), type);
+
+ data.BillNumberType = type;
+ data.HostSN = i + recordNumber;
+ data.Round = roundNumber * 100000;
+ data.HostSN2 = roundNumber * 100000 + i + recordNumber;
+ datas.Add(data);
+
+ // ls.Add((roundNumber.ToString() + (i + recordNumber).ToString()), type);
}
recordNumber = number;
}
else if (x >= 1000)
{
+ PrintData data = new PrintData();
record.RoundNumber = roundNumber - 1;
record.RoundNumber = 0;
- ls.Add((roundNumber.ToString() + (recordNumber).ToString()), BillNumberTypeEnum.补打);
+ data.BillNumberType = BillNumberTypeEnum.迟到;
+ data.HostSN = recordNumber;
+ data.Round = roundNumber * 100000;
+ data.HostSN2 = roundNumber * 100000 + recordNumber;
+ datas.Add(data);
+ // ls.Add((roundNumber.ToString() + (recordNumber).ToString()), BillNumberTypeEnum.迟到);
}
- record.dic = ls;
+ record.Datas = datas;
return record;
}