Пример #1
0
        public PurchaseOrderLineCharge Create(PurchaseOrderLineCharge pt)
        {
            pt.ObjectState = ObjectState.Added;
            _unitOfWork.Repository <PurchaseOrderLineCharge>().Insert(pt);

            return(pt);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public PurchaseOrderLineCharge Add(PurchaseOrderLineCharge pt)
 {
     _unitOfWork.Repository <PurchaseOrderLineCharge>().Insert(pt);
     return(pt);
 }
Пример #4
0
 public void Update(PurchaseOrderLineCharge pt)
 {
     pt.ObjectState = ObjectState.Modified;
     _unitOfWork.Repository <PurchaseOrderLineCharge>().Update(pt);
 }
Пример #5
0
 public void Delete(PurchaseOrderLineCharge pt)
 {
     _unitOfWork.Repository <PurchaseOrderLineCharge>().Delete(pt);
 }
Пример #6
0
        public PurchaseOrderLineCharge GetLineFromFormCollection(FormCollection collection)
        {
            PurchaseOrderLineCharge temp = new PurchaseOrderLineCharge();

            return(temp);
        }