Beispiel #1
0
        public static ProductApprovedVendor CreateProductApprovedVendor(string dataAreaId,
                                                                        string itemNumber,
                                                                        string approvedVendorAccountNumber,
                                                                        global::System.DateTimeOffset effectiveDate,
                                                                        global::System.DateTimeOffset expirationDate,
                                                                        global::Microsoft.Dynamics.DataEntities.VendorV2 approvedVendor,
                                                                        global::Microsoft.Dynamics.DataEntities.ReleasedProductV2 releasedProduct)
        {
            ProductApprovedVendor productApprovedVendor = new ProductApprovedVendor();

            productApprovedVendor.dataAreaId = dataAreaId;
            productApprovedVendor.ItemNumber = itemNumber;
            productApprovedVendor.ApprovedVendorAccountNumber = approvedVendorAccountNumber;
            productApprovedVendor.EffectiveDate  = effectiveDate;
            productApprovedVendor.ExpirationDate = expirationDate;
            if ((approvedVendor == null))
            {
                throw new global::System.ArgumentNullException("approvedVendor");
            }
            productApprovedVendor.ApprovedVendor = approvedVendor;
            if ((releasedProduct == null))
            {
                throw new global::System.ArgumentNullException("releasedProduct");
            }
            productApprovedVendor.ReleasedProduct = releasedProduct;
            return(productApprovedVendor);
        }
 partial void OnVendorChanging(global::Microsoft.Dynamics.DataEntities.VendorV2 value);
        public static VendorDocumentAttachment CreateVendorDocumentAttachment(string dataAreaId, global::System.Guid documentId, global::Microsoft.Dynamics.DataEntities.VendorV2 vendorDocumentAttachmentEntity)
        {
            VendorDocumentAttachment vendorDocumentAttachment = new VendorDocumentAttachment();

            vendorDocumentAttachment.dataAreaId = dataAreaId;
            vendorDocumentAttachment.DocumentId = documentId;
            if ((vendorDocumentAttachmentEntity == null))
            {
                throw new global::System.ArgumentNullException("vendorDocumentAttachmentEntity");
            }
            vendorDocumentAttachment.VendorDocumentAttachmentEntity = vendorDocumentAttachmentEntity;
            return(vendorDocumentAttachment);
        }
 partial void OnVendorDocumentAttachmentEntityChanging(global::Microsoft.Dynamics.DataEntities.VendorV2 value);
Beispiel #5
0
 partial void OnClaimPaymentRecipientVendorChanging(global::Microsoft.Dynamics.DataEntities.VendorV2 value);
Beispiel #6
0
        public static VendorRebateAndDeductionsGroupAssignment CreateVendorRebateAndDeductionsGroupAssignment(string dataAreaId, string vendorRebateAndDeductionsGroupId, string vendorAccountNumber, global::Microsoft.Dynamics.DataEntities.VendorV2 vendorV2, global::Microsoft.Dynamics.DataEntities.VendorRebateAndDeductionsGroup vendorRebateAndDeductionsGroup)
        {
            VendorRebateAndDeductionsGroupAssignment vendorRebateAndDeductionsGroupAssignment = new VendorRebateAndDeductionsGroupAssignment();

            vendorRebateAndDeductionsGroupAssignment.dataAreaId = dataAreaId;
            vendorRebateAndDeductionsGroupAssignment.VendorRebateAndDeductionsGroupId = vendorRebateAndDeductionsGroupId;
            vendorRebateAndDeductionsGroupAssignment.VendorAccountNumber = vendorAccountNumber;
            if ((vendorV2 == null))
            {
                throw new global::System.ArgumentNullException("vendorV2");
            }
            vendorRebateAndDeductionsGroupAssignment.VendorV2 = vendorV2;
            if ((vendorRebateAndDeductionsGroup == null))
            {
                throw new global::System.ArgumentNullException("vendorRebateAndDeductionsGroup");
            }
            vendorRebateAndDeductionsGroupAssignment.VendorRebateAndDeductionsGroup = vendorRebateAndDeductionsGroup;
            return(vendorRebateAndDeductionsGroupAssignment);
        }