|
|
|
@ -38,7 +38,8 @@ namespace ButcherFactory.BO.LocalBL |
|
|
|
query.Columns.Add(DQSelectColumn.Field("TotalCode_ID")); |
|
|
|
query.Columns.Add(DQSelectColumn.Field("TotalCode_Code")); |
|
|
|
query.Columns.Add(DQSelectColumn.Field("CreateTime")); |
|
|
|
query.Columns.Add(DQSelectColumn.Field("GoodsType")); |
|
|
|
query.Columns.Add(DQSelectColumn.Field("GoodsType")); |
|
|
|
query.Columns.Add(DQSelectColumn.Field("NoTotalCode")); |
|
|
|
query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("InStored", false), DQCondition.EQ("Delete", false), DQCondition.EQ("Submited", submited))); |
|
|
|
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID", true)); |
|
|
|
if (submited) |
|
|
|
@ -72,6 +73,7 @@ namespace ButcherFactory.BO.LocalBL |
|
|
|
entity.TotalCode_Code = (string)reader[14]; |
|
|
|
entity.CreateTime = (DateTime)reader[15]; |
|
|
|
entity.GoodsType = (short?)reader[16]; |
|
|
|
entity.NoTotalCode = (bool)reader[17]; |
|
|
|
list.Add(entity); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -159,7 +161,7 @@ namespace ButcherFactory.BO.LocalBL |
|
|
|
query.Columns.Add(DQSelectColumn.Field("NoTotalCode")); |
|
|
|
query.Where.Conditions.Add(DQCondition.GreaterThanOrEqual("CreateTime", date.Date)); |
|
|
|
query.Where.Conditions.Add(DQCondition.LessThan("CreateTime", date.Date.AddDays(1))); |
|
|
|
query.Where.Conditions.Add(DQCondition.And( DQCondition.EQ("Delete", false) )); |
|
|
|
query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("Delete", false) )); |
|
|
|
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("GoodsType")); |
|
|
|
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("NoTotalCode", true)); |
|
|
|
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID",true)); |
|
|
|
@ -522,6 +524,7 @@ namespace ButcherFactory.BO.LocalBL |
|
|
|
query.Columns.Add(DQSelectColumn.Field("MsgID")); |
|
|
|
query.Columns.Add(DQSelectColumn.Field("StatisticNumber")); |
|
|
|
query.Columns.Add(DQSelectColumn.Field("TotalCode_Code")); |
|
|
|
query.Columns.Add(DQSelectColumn.Field("NoTotalCode")); |
|
|
|
query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("Submited", true), DQCondition.EQ("Sync", false), DQCondition.EQ("Delete", false))); |
|
|
|
query.Where.Conditions.Add(DQCondition.LessThan("CreateTime", DateTime.Now.AddMinutes(-1))); |
|
|
|
query.Range = SelectRange.Top(10); |
|
|
|
@ -547,6 +550,7 @@ namespace ButcherFactory.BO.LocalBL |
|
|
|
obj.MsgID = (string)reader[11]; |
|
|
|
obj.StatisticNumber = (decimal?)reader[12]; |
|
|
|
obj.TotalCode_Code = (string)reader[13]; |
|
|
|
obj.NoTotalCode = (bool)reader[14]; |
|
|
|
upload.Add(obj); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -681,7 +685,8 @@ namespace ButcherFactory.BO.LocalBL |
|
|
|
public bool StandardPic { get; set; } |
|
|
|
public string MsgID { get; set; } |
|
|
|
public decimal? StatisticNumber { get; set; } |
|
|
|
public string TotalCode_Code { get; set; } |
|
|
|
public string TotalCode_Code { get; set; } |
|
|
|
public bool NoTotalCode { get; set; } |
|
|
|
} |
|
|
|
|
|
|
|
class TaskTemp |
|
|
|
|