Пример #1
0
        public static ReceivedProductReleaseLine CreateReceivedProductReleaseLine(string dataAreaId,
                                                                                  string headerProductNumber,
                                                                                  string headerProductVersionId,
                                                                                  decimal lineNumber,
                                                                                  string releasingLegalEntityId,
                                                                                  int billOfMaterialsLineCreationSequenceNumber,
                                                                                  decimal parentLineNumber,
                                                                                  global::Microsoft.Dynamics.DataEntities.ReceivedProductReleaseHeader receivedProductReleaseHeader,
                                                                                  global::Microsoft.Dynamics.DataEntities.BillOfMaterialsLineV3 bOMBillOfMaterialsHeader,
                                                                                  global::Microsoft.Dynamics.DataEntities.ProductReleaseProductDetail productReleaseProductDetails)
        {
            ReceivedProductReleaseLine receivedProductReleaseLine = new ReceivedProductReleaseLine();

            receivedProductReleaseLine.dataAreaId             = dataAreaId;
            receivedProductReleaseLine.HeaderProductNumber    = headerProductNumber;
            receivedProductReleaseLine.HeaderProductVersionId = headerProductVersionId;
            receivedProductReleaseLine.LineNumber             = lineNumber;
            receivedProductReleaseLine.ReleasingLegalEntityId = releasingLegalEntityId;
            receivedProductReleaseLine.BillOfMaterialsLineCreationSequenceNumber = billOfMaterialsLineCreationSequenceNumber;
            receivedProductReleaseLine.ParentLineNumber = parentLineNumber;
            if ((receivedProductReleaseHeader == null))
            {
                throw new global::System.ArgumentNullException("receivedProductReleaseHeader");
            }
            receivedProductReleaseLine.ReceivedProductReleaseHeader = receivedProductReleaseHeader;
            if ((bOMBillOfMaterialsHeader == null))
            {
                throw new global::System.ArgumentNullException("bOMBillOfMaterialsHeader");
            }
            receivedProductReleaseLine.BOMBillOfMaterialsHeader = bOMBillOfMaterialsHeader;
            if ((productReleaseProductDetails == null))
            {
                throw new global::System.ArgumentNullException("productReleaseProductDetails");
            }
            receivedProductReleaseLine.ProductReleaseProductDetails = productReleaseProductDetails;
            return(receivedProductReleaseLine);
        }
Пример #2
0
 partial void OnReceivedProductReleaseHeaderChanging(global::Microsoft.Dynamics.DataEntities.ReceivedProductReleaseHeader value);