| | |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "F_UNW_QTY_YFSL")] |
| | | public string? F_UNW_QTY_YFSL { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 是否加锁erp不能进行用料清单变更 |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "IS_LOCK")] |
| | | public bool? IS_LOCK { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 加锁时间 |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "IS_LOCK_DATE")] |
| | | public DateTime? IS_LOCK_DATE { get; set; } |
| | | |
| | | } |
| | |
| | | .IgnoreColumnsNull() |
| | | .ExecuteCommand() > 0; |
| | | |
| | | if (orUpdate && baOrUpdate) return true; |
| | | if (orUpdate && baOrUpdate) |
| | | { |
| | | if (!string.IsNullOrEmpty(mesRohIn.BillNo)) |
| | | { |
| | | db.Ado.ExecuteCommand("exec [dbo].[prc_unit_check] @BillNo, '采购'", new { BillNo = mesRohIn.BillNo }); |
| | | } |
| | | return true; |
| | | } |
| | | throw new NotImplementedException("插入或更新失败"); |
| | | } |
| | | |
| | |
| | | .IgnoreColumnsNull() |
| | | .ExecuteCommand() > 0; |
| | | |
| | | if (orUpdate && baOrUpdate) return true; |
| | | if (orUpdate && baOrUpdate) |
| | | { |
| | | db.Ado.ExecuteCommand("exec [dbo].[prc_unit_check] @billno, @ModuleType", |
| | | new { billno = mesRohIn.OrderNo, ModuleType = "委外工单" }); |
| | | |
| | | return true; |
| | | } |
| | | throw new NotImplementedException("插入或更新失败"); |
| | | } |
| | | |
| | |
| | | var baOrUpdate = db.Insertable(mesSalesOrderDatas).PageSize(1) |
| | | .IgnoreColumnsNull() |
| | | .ExecuteCommand() > 0; |
| | | if (orUpdate && baOrUpdate) return true; |
| | | if (orUpdate && baOrUpdate) |
| | | { |
| | | db.Ado.ExecuteCommand("exec [dbo].[prc_unit_check] @billno, @ModuleType", |
| | | new { billno = mesSalesOrder.BillNo, ModuleType = "销售订单" }); |
| | | |
| | | return true; |
| | | } |
| | | |
| | | throw new NotImplementedException("插入或更新失败"); |
| | | } |
| | |
| | | |
| | | 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); |
| | | } |