yibo 7 years ago
parent
commit
a5c0941af0
3 changed files with 4 additions and 2 deletions
  1. +2
    -0
      ButcherFactory.BO/LocalBL/BaseInfoBL.cs
  2. +1
    -1
      ButcherFactory.BO/LocalBL/CarcassInStoreBL.cs
  3. +1
    -1
      ButcherFactory.BO/LocalBL/CarcassTakeOutBL.cs

+ 2
- 0
ButcherFactory.BO/LocalBL/BaseInfoBL.cs View File

@ -1,6 +1,7 @@
using ButcherFactory.BO.Utils;
using Forks.EnterpriseServices.DomainObjects2;
using Forks.EnterpriseServices.DomainObjects2.DQuery;
using Forks.EnterpriseServices.SqlDoms;
using System;
using System.Collections.Generic;
using System.Linq;
@ -20,6 +21,7 @@ namespace ButcherFactory.BO.LocalBL
foreach (var field in extendFields)
query.Columns.Add(DQSelectColumn.Field(field));
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID", true));
query.Range = SelectRange.Top(range);
var result = new List<T>();
var type = typeof(T);
using (var session = DmoSession.New())


+ 1
- 1
ButcherFactory.BO/LocalBL/CarcassInStoreBL.cs View File

@ -212,7 +212,7 @@ namespace ButcherFactory.BO.LocalBL
var update = new DQUpdateDom(typeof(CarcassInStore));
update.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("ID", obj.ID), DQCondition.EQ("RowVersion", obj.RowVersion)));
update.Columns.Add(new DQUpdateColumn("Sync", true));
update.EExecute();
session.ExecuteNonQuery(update);
}
}


+ 1
- 1
ButcherFactory.BO/LocalBL/CarcassTakeOutBL.cs View File

@ -274,7 +274,7 @@ namespace ButcherFactory.BO.LocalBL
var update = new DQUpdateDom(typeof(CarcassTakeOut));
update.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("ID", obj.ID), DQCondition.EQ("RowVersion", obj.RowVersion)));
update.Columns.Add(new DQUpdateColumn("Sync", true));
update.EExecute();
session.ExecuteNonQuery(update);
}
}


Loading…
Cancel
Save