From e08786579903aba72be57fab1024980bf737dfbd Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期三, 25 九月 2024 09:42:02 +0800
Subject: [PATCH] 委外订单接口更新
---
MES.Service/service/BasicData/ProductionOrderManager.cs | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/MES.Service/service/BasicData/ProductionOrderManager.cs b/MES.Service/service/BasicData/ProductionOrderManager.cs
index c5ba4e0..c46462b 100644
--- a/MES.Service/service/BasicData/ProductionOrderManager.cs
+++ b/MES.Service/service/BasicData/ProductionOrderManager.cs
@@ -108,15 +108,15 @@
BusinessStatus = erpDto.FStatus,
ProductCode = erpDto.FMaterialId,
Unit = erpDto.FUnitID,
- WorkOrderQty = Convert.ToDecimal(erpDto.FQty),
+ WorkOrderQty = Convert.ToDouble(erpDto.FQty),
PlanningGroup = erpDto.FWorkGroupId,
Planner = erpDto.FPlannerID,
EstimatedStartTime =
ParseDateTime(erpDto.FPlanStartDate) ?? null,
EstimatedEndTime =
ParseDateTime(erpDto.FPlanFinishDate) ?? null,
- StorageUpperLimit = Convert.ToDecimal(erpDto.FStockInLimitH),
- StorageLowerLimit = Convert.ToDecimal(erpDto.FStockInLimitL),
+ StorageUpperLimit = Convert.ToDouble(erpDto.FStockInLimitH),
+ StorageLowerLimit = Convert.ToDouble(erpDto.FStockInLimitL),
TrackingNo = erpDto.FMTONO,
BatchNo = erpDto.FLot,
BomVersion = erpDto.FBomId,
@@ -137,12 +137,12 @@
ErpProductionEntryCode = erpDto.FSUBENTRYID,
PurchaseOrderNo = erpDto.FPurOrderNo,
PurchaseOrderEntrySeq = long.Parse(erpDto.FPurOrderEntrySeq),
- StandardPoints =
- Convert.ToDecimal(erpDto.F_UNW_BaseProperty_bzds),
- PricingPoints =
- Convert.ToDecimal(erpDto.F_UNW_BaseProperty_jjds),
+ // StandardPoints =
+ // Convert.ToDecimal(erpDto.F_UNW_BaseProperty_bzds),
+ // PricingPoints =
+ // Convert.ToDecimal(erpDto.F_UNW_BaseProperty_jjds),
StockInQty = Convert.ToDecimal(erpDto.FBaseStockInQty),
- NoStockInQty = Convert.ToDecimal(erpDto.FBaseNoStockInQty),
+ NoStockInQty = Convert.ToDouble(erpDto.FBaseNoStockInQty),
StockOwner = erpDto.FInStockOwnerId
};
@@ -164,7 +164,7 @@
{
SequenceNo = long.Parse(erpDto.FSEQ),
MaterialCode = erpDto.FMaterialID2,
- RequiredQty = Convert.ToDecimal(erpDto.FMustQty),
+ RequiredQty = Convert.ToDouble(erpDto.FMustQty),
IssuedQty = Convert.ToDecimal(erpDto.FPickedQty),
LocationNo = erpDto.FPositionNO,
StockOwner = erpDto.FOwnerID,
@@ -175,8 +175,8 @@
Process = erpDto.F_UNW_Text_tpgy_Z,
Unit = erpDto.FUnitID2,
SupplyingType = erpDto.FSupplyType,
- Numerator = long.Parse(erpDto.FNumerator),
- Denominator = long.Parse(erpDto.FDenominator),
+ Numerator = Convert.ToDouble(erpDto.FNumerator),
+ Denominator = Convert.ToDouble(erpDto.FDenominator),
ErpId = erpDto.FPPOMENTRYID,
ErpHeaderId = erpDto.FPPOMID,
FixedLoss = Convert.ToDecimal(erpDto.FFixScrapQty),
--
Gitblit v1.9.3