public PurchaseOrderLineCharge Create(PurchaseOrderLineCharge pt) { pt.ObjectState = ObjectState.Added; _unitOfWork.Repository <PurchaseOrderLineCharge>().Insert(pt); return(pt); }
public static PurchaseOrderLineCharge CreatePurchaseOrderLineCharge(string dataAreaId, string purchaseOrderNumber, long purchaseOrderLineNumber, decimal chargeLineNumber, decimal intercompanyChargePercentage, decimal proportionalChargeAmount, decimal externalChargeAmount, decimal unitChargeAmount, decimal chargePercentage, decimal fixedChargeAmount, global::Microsoft.Dynamics.DataEntities.PurchaseOrderLineV2 purchaseOrderLineV2, global::Microsoft.Dynamics.DataEntities.Currency currency) { PurchaseOrderLineCharge purchaseOrderLineCharge = new PurchaseOrderLineCharge(); purchaseOrderLineCharge.dataAreaId = dataAreaId; purchaseOrderLineCharge.PurchaseOrderNumber = purchaseOrderNumber; purchaseOrderLineCharge.PurchaseOrderLineNumber = purchaseOrderLineNumber; purchaseOrderLineCharge.ChargeLineNumber = chargeLineNumber; purchaseOrderLineCharge.IntercompanyChargePercentage = intercompanyChargePercentage; purchaseOrderLineCharge.ProportionalChargeAmount = proportionalChargeAmount; purchaseOrderLineCharge.ExternalChargeAmount = externalChargeAmount; purchaseOrderLineCharge.UnitChargeAmount = unitChargeAmount; purchaseOrderLineCharge.ChargePercentage = chargePercentage; purchaseOrderLineCharge.FixedChargeAmount = fixedChargeAmount; if ((purchaseOrderLineV2 == null)) { throw new global::System.ArgumentNullException("purchaseOrderLineV2"); } purchaseOrderLineCharge.PurchaseOrderLineV2 = purchaseOrderLineV2; if ((currency == null)) { throw new global::System.ArgumentNullException("currency"); } purchaseOrderLineCharge.Currency = currency; return(purchaseOrderLineCharge); }
public PurchaseOrderLineCharge Add(PurchaseOrderLineCharge pt) { _unitOfWork.Repository <PurchaseOrderLineCharge>().Insert(pt); return(pt); }
public void Update(PurchaseOrderLineCharge pt) { pt.ObjectState = ObjectState.Modified; _unitOfWork.Repository <PurchaseOrderLineCharge>().Update(pt); }
public void Delete(PurchaseOrderLineCharge pt) { _unitOfWork.Repository <PurchaseOrderLineCharge>().Delete(pt); }
public PurchaseOrderLineCharge GetLineFromFormCollection(FormCollection collection) { PurchaseOrderLineCharge temp = new PurchaseOrderLineCharge(); return(temp); }