zyf
2025-04-12 b2be3b6939b4382f9165c78857a072f1aa7b01d0
MES.Service/service/BasicData/ErpQTCKManager.cs
@@ -73,7 +73,7 @@
            //var baOrUpdate = QTCKDetailManager.InsertRange(mesQTCKDatas);
            //if (orUpdate && baOrUpdate) return true;
            UseTransaction(db =>
            var update_res=UseTransaction(db =>
            {
                var id = db.Insertable(mesQTCK).ExecuteReturnIdentity();
@@ -88,7 +88,7 @@
                return 1;
            });
            if (update_res==1) return true;
            throw new NotImplementedException("插入或更新失败");
        }
@@ -122,20 +122,21 @@
                BillNo = erpDto.FBillNo,
                FDate = ParseDateTime(erpDto.FDate) ?? null,
                BillType = erpDto.FBillTypeID, // 单据类型
                CustId = Convert.ToDecimal(erpDto.FCustId), // 客户ID
                CustId = erpDto.FCustId, // 客户ID
                DeptId = erpDto.FDeptId, //销售部门
                BizType = erpDto.FBizType, // 
                OwnerTypeIdHead = erpDto.FOwnerTypeIdHead, // 
                Note = erpDto.FNote, // 
                CreatorId = erpDto.FCreatorId, // 
                CreateDate = ParseDateTime(erpDto.FCreateDate) ?? null, // 
                ModifierId = Convert.ToDecimal(erpDto.FModifierId), //
                ModifierId = erpDto.FModifierId, //
                ModifyDate = ParseDateTime(erpDto.FModifyDate) ?? null, // 
                ApproveDate = ParseDateTime(erpDto.FApproveDate) ?? null, // 
                CloseStatus = Convert.ToDecimal(erpDto.FCloseStatus), //
                CloserId = Convert.ToDecimal(erpDto.FCloserId), //
                CloseStatus = erpDto.FCloseStatus, //
                CloserId = erpDto.FCloserId, //
                CloseDate = ParseDateTime(erpDto.FCloseDate) ?? null, // 
                ApplyType = erpDto.FApplyType
                ApplyType = erpDto.FApplyType,
                F_UNW_CKLX= erpDto.F_UNW_CKLX
            };
@@ -183,7 +184,7 @@
                    StockLocId = erpDto.FStockLocId,//
                    Lot = erpDto.FLot,//
                    OwnerTypeId = erpDto.FOwnerTypeId,//
                    OwnerId = Convert.ToDecimal(erpDto.FOwnerId),//
                    OwnerId = erpDto.FOwnerId,//
                    MtoNo = erpDto.FMtoNo,//
                    StockStatusId = erpDto.FStockStatusId,//
                    EntryNote = erpDto.FEntryNote,//