From 015fdf74f2072de8c1776818721cff861ae6e5f3 Mon Sep 17 00:00:00 2001
From: cnf <3200815559@qq.com>
Date: 星期一, 15 九月 2025 16:39:50 +0800
Subject: [PATCH] 修改委外订单

---
 MES.Service/service/BasicData/MesRohInManager.cs |   25 +++++++++++--------------
 1 files changed, 11 insertions(+), 14 deletions(-)

diff --git a/MES.Service/service/BasicData/MesRohInManager.cs b/MES.Service/service/BasicData/MesRohInManager.cs
index 217fa4c..04fe4f0 100644
--- a/MES.Service/service/BasicData/MesRohInManager.cs
+++ b/MES.Service/service/BasicData/MesRohInManager.cs
@@ -23,12 +23,8 @@
         {
             return rohInErpRohIn.Type switch
             {
-                "2" or "4" or "5" => SaveOrUpdateData(db, mesRohIn,
-                    mesRohInDatas)
-                    ? 1
-                    : 0,
-                "3" => UpdateData(db, mesRohIn, mesRohInDatas) ? 1 : 0,
-                _ => throw new NotImplementedException(
+                "2" or "4" or "5" => SaveOrUpdateData(db, mesRohIn,  mesRohInDatas)  ? 1   : 0,
+                "3" => UpdateData(db, mesRohIn, mesRohInDatas) ? 1 : 0, _ => throw new NotImplementedException(
                     $"type娌℃湁{rohInErpRohIn.Type}杩欎釜绫诲瀷")
             };
         }) > 0;
@@ -113,7 +109,7 @@
         mesRohIn.Purchaser = rohIn.FPurchaserId;
         mesRohIn.SettlementParty = rohIn.FSettleId;
         mesRohIn.PaymentParty = rohIn.FChargeId;
-        mesRohIn.Email = rohIn.FProviderEMail;
+        //mesRohIn.Email = rohIn.FProviderEMail;
         mesRohIn.Remarks = rohIn.Remarks;
         mesRohIn.CancellationStatus = rohIn.FCancelStatus;
         mesRohIn.CancellationPerson = rohIn.FCancellerId;
@@ -147,10 +143,10 @@
         mesRohIn.ReceiveOrgId = rohIn.FReceiveOrgId;
         mesRohIn.ProviderId = rohIn.FProviderId;
 
-        mesRohIn.Anred = rohIn.FTContact;
-        mesRohIn.Telf1 = rohIn.Fmobilephone;
-        mesRohIn.FixedTelephone = rohIn.FixedTelephone;
-        mesRohIn.Address = rohIn.Address;
+        //mesRohIn.Anred = rohIn.FTContact;
+        //mesRohIn.Telf1 = rohIn.Fmobilephone;
+        //mesRohIn.FixedTelephone = rohIn.FixedTelephone;
+        //mesRohIn.Address = rohIn.Address;
         mesRohIn.Acctype = rohIn.Acctype;
         mesRohIn.SynchronousDate = DateTime.Now;
 
@@ -233,11 +229,12 @@
                 PurchaseOrderLineNumber = s.FSEQ,
                 Demand = s.FRequireOrgId,
                 Receiving = s.FReceiveOrgId,
-                Settlement = s.FSETTLEORGID,
+                //Settlement = s.FSETTLEORGID,
                 DemandDepartment = s.FRequireDeptId,
                 ReceivingDepartment = s.FReceiveDeptId,
-                SalesOrderId = s.SalesOrderId,
-                OrderLineId = s.OrderLineId
+                //SalesOrderId = s.SalesOrderId,
+                //OrderLineId = s.OrderLineId
+                Fsubreqentryid=s.FSUBREQENTRYID
             };
 
             if (s.FFreezeDate != null)

--
Gitblit v1.9.3