|
|
@ -60,6 +60,7 @@ namespace BWP.B3QingDaoWanFu.Tasks |
|
|
query.Columns.Add(DQSelectColumn.Field("Number", scan)); |
|
|
query.Columns.Add(DQSelectColumn.Field("Number", scan)); |
|
|
|
|
|
|
|
|
query.Where.Conditions.Add(DQCondition.And(DQCondition.GreaterThanOrEqual("BillState", 单据状态.已审核), DQCondition.IsNull(DQExpression.Field(relate, "SaleOutStore_ID")), DQCondition.IsNotNull(DQExpression.Field(scan, "ID")))); |
|
|
query.Where.Conditions.Add(DQCondition.And(DQCondition.GreaterThanOrEqual("BillState", 单据状态.已审核), DQCondition.IsNull(DQExpression.Field(relate, "SaleOutStore_ID")), DQCondition.IsNotNull(DQExpression.Field(scan, "ID")))); |
|
|
|
|
|
query.Where.Conditions.Add(DQCondition.And(DQCondition.GreaterThan(scan, "Weight", 0), DQCondition.GreaterThan(scan, "Number", 0))); |
|
|
query.OrderBy.Expressions.Add(DQOrderByExpression.Create(main, "ID")); |
|
|
query.OrderBy.Expressions.Add(DQOrderByExpression.Create(main, "ID")); |
|
|
using (var session = Dmo.NewSession()) |
|
|
using (var session = Dmo.NewSession()) |
|
|
{ |
|
|
{ |
|
|
|