| | |
| | | .IgnoreColumnsNull() |
| | | .ExecuteCommand() > 0; |
| | | |
| | | if (orUpdate && baOrUpdate) return true; |
| | | // if (orUpdate && baOrUpdate) |
| | | // throw new NotImplementedException("插入或更新失败"); |
| | | |
| | | if (orUpdate && baOrUpdate) |
| | | { |
| | | // 调用存储过程更新用料清单 |
| | | db.Ado.ExecuteCommand("exec [dbo].[prc_update_womdab] @outMsg output,@outSum output,@inEdtUserGuid,@inCaaGuid", |
| | | new { |
| | | outMsg = (string)null, // 输出参数 |
| | | outSum = (int?)null, // 输出参数 |
| | | inEdtUserGuid = new Guid("11111111-1111-1111-1111-111111111111"), |
| | | inCaaGuid = new Guid(mesWomcaa.Guid.ToString()) |
| | | }); |
| | | return true; |
| | | } |
| | | throw new NotImplementedException("插入或更新失败"); |
| | | |
| | | |
| | | } |
| | | |
| | | private bool UpdateData(SqlSugarScope db, Womcaa mesWomcaa, |
| | |
| | | PlanId = dto.FPlannerID, /// 计划员 |
| | | Caa010 = dto.FPlanStartDate, /// 预计开工时间 |
| | | Caa011 = dto.FPlanFinishDate, /// 预计完工时间 |
| | | Caa005 = dto.FConveyDate, /// 开单日期 |
| | | Caa005 = DateTime.TryParse(dto.FConveyDate, out var conveyDate) |
| | | ? (conveyDate <= new DateTime(1900, 1, 1) ? null : conveyDate.ToString()) |
| | | : null, /// 开单日期 |
| | | StockInlimith = dto.FStockInLimitH, /// 入库上限 |
| | | StockInlimitl = dto.FStockInLimitL, /// 入库下限 |
| | | Mtono = dto.FMTONO, /// 计划跟踪号 |
| | |
| | | // CustomerName = dto.F_XIFG_Text_qtr1, /// 客户名称 |
| | | // Customer = dto.F_XIFG_Base_83g1, /// 客户 |
| | | Caa0111 = dto.FPlanFinishDate, /// 预计完工时间备份 |
| | | Typea = dto.TypeA /// 预计完工时间备份 |
| | | Typea = dto.TypeA, /// 预计完工时间备份 |
| | | //Typeb = dto.TypeB /// 预计完工时间备份 |
| | | SynchronousDate = DateTime.Now |
| | | }; |
| | | |
| | | var single = base.GetSingle(it => it.Erpid == entity.Erpid); |
| | |
| | | ? Convert.ToDecimal(dto.FNeedQty) |
| | | : null, /// 需领用量 |
| | | Cab007 = !string.IsNullOrEmpty(dto.FPickedQty) |
| | | ? Convert.ToInt32(dto.FPickedQty) |
| | | ? Convert.ToDecimal(dto.FPickedQty) |
| | | : null, /// 已领用量 |
| | | PositionNo = dto.FPositionNO, /// 位置号 |
| | | SupplyOrganization = dto.FChildSupplyOrgId, /// 供应组织 |