| | |
| | | |
| | | if (orUpdate && baOrUpdate) |
| | | { |
| | | db.Ado.ExecuteCommand("exec [dbo].[prc_unit_check] @billno, @ModuleType", |
| | | new { billno = mesWomcaa.Caa001, ModuleType = "生产工单" }); |
| | | |
| | | |
| | | // 调用存储过程更新用料清单 |
| | | db.Ado.ExecuteCommand("exec [dbo].[prc_update_womdab] @outMsg output,@outSum output,@inEdtUserGuid,@inCaaGuid", |
| | | new { |
| | |
| | | |
| | | var entity = Db.Queryable<Womcab>() |
| | | .Where(s => s.Eid == womcab.Eid).Single(); |
| | | if (entity != null) womcab.Guid = entity.Guid; |
| | | if (entity != null) { |
| | | womcab.Guid = entity.Guid; |
| | | womcab.IS_LOCK = entity.IS_LOCK; |
| | | womcab.IS_LOCK_DATE = entity.IS_LOCK_DATE; |
| | | |
| | | } |
| | | |
| | | womcabList.Add(womcab); |
| | | } |