public SapMOrderProcessWithCooperateOutput mapSapMOrderProcessWithCooperateToDto(
            SapMOrderManager.SapMOrderProcessWithCooperate bean)
        {
            if (bean == null)
            {
                return(null);
            }

            var dto = bean.ProcessLine.MapTo <SapMOrderProcessWithCooperateOutput>();

            if (bean.CooperateLine != null)
            {
                dto.ProcessCooperateId     = bean.CooperateLine.Id;
                dto.CooperateType          = bean.CooperateLine.CooperateType;
                dto.CooperaterCode         = bean.CooperateLine.CooperaterCode;
                dto.CooperaterName         = bean.CooperateLine.CooperaterName;
                dto.CooperaterPrice        = bean.CooperateLine.CooperaterPrice;
                dto.CooperaterFsPointOfUse = bean.CooperateLine.CooperaterFsPointOfUse;
                dto.FsCoNumber             = bean.CooperateLine.FsCoNumber;
                dto.FsMoNumber             = bean.CooperateLine.FsMoNumber;
                dto.IsMesInspectFinished   = bean.CooperateLine.IsMesInspectFinished;
                dto.MesInspectQualified    = bean.CooperateLine.MesInspectQualified;
            }
            return(dto);
        }
Beispiel #2
0
 mapToSapProcessOutput(SapMOrderManager.SapMOrderProcessWithCooperate bean)
 {
     return(new GetSapOrderProcessWithCooperaterOutput
     {
         //订单
         OrderId = bean.ProcessLine.SapMOrderId,
         OrderNumber = bean.ProcessLine.SapMOrder.OrderNumber,
         MRPController = bean.ProcessLine.SapMOrder.MRPController,
         MaterialNumber = bean.ProcessLine.SapMOrder.MaterialNumber,
         MaterialDescription = bean.ProcessLine.SapMOrder.MaterialDescription,
         TargetQuantity = bean.ProcessLine.SapMOrder.TargetQuantity,
         WBSElement = bean.ProcessLine.SapMOrder.WBSElement,
         //工艺
         ProcessId = bean.ProcessLine.Id,
         OperationNumber = bean.ProcessLine.OperationNumber,
         OperationCtrlCode = bean.ProcessLine.OperationCtrlCode,
         WorkCenterCode = bean.ProcessLine.WorkCenterCode,
         WorkCenterName = bean.ProcessLine.WorkCenterName,
         VGE01 = bean.ProcessLine.VGE01,
         VGW01 = bean.ProcessLine.VGW01,
         VGE02 = bean.ProcessLine.VGE02,
         VGW02 = bean.ProcessLine.VGW02,
         VGE03 = bean.ProcessLine.VGE03,
         VGW03 = bean.ProcessLine.VGW03,
         //外协
         CooperateId = bean.CooperateLine?.Id,
         CooperateType = bean.CooperateLine?.CooperateType,
         CooperaterCode = bean.CooperateLine?.CooperaterCode,
         CooperaterName = bean.CooperateLine?.CooperaterName,
         CooperaterPrice = bean.CooperateLine?.CooperaterPrice ?? 0,
     });
 }