public HuOdd CreateHuOdd(ReceiptDetail receiptDetail, LocationLotDetail locationLotDetail, User user) { OrderLocationTransaction orderLocationTransaction = receiptDetail.OrderLocationTransaction; OrderDetail orderDetail = orderLocationTransaction.OrderDetail; DateTime dateTimeNow = DateTime.Now; HuOdd huOdd = new HuOdd(); huOdd.OrderDetail = orderDetail; huOdd.LocationLotDetail = locationLotDetail; huOdd.OddQty = receiptDetail.ReceivedQty.Value; huOdd.Status = BusinessConstants.CODE_MASTER_STATUS_VALUE_CREATE; huOdd.CreatedQty = 0; huOdd.CreateUser = user; huOdd.CreateDate = dateTimeNow; huOdd.LastModifyUser = user; huOdd.LastModifyDate = dateTimeNow; this.CreateHuOdd(huOdd); return huOdd; }
public virtual void DeleteHuOdd(HuOdd entity) { Delete(entity); }
public InventoryTransaction InventoryOut(HuOdd huOdd, ReceiptDetail receiptDetail, User user) { #region ���¿�� LocationLotDetail locLotDet = this.locationLotDetailMgr.LoadLocationLotDetail(huOdd.LocationLotDetail.Id); locLotDet.Qty -= huOdd.CurrentCreateQty; this.locationLotDetailMgr.UpdateLocationLotDetail(locLotDet); #endregion #region ��¼������� InventoryTransaction inventoryTransaction = InventoryTransactionHelper.CreateInventoryTransaction(locLotDet, 0 - huOdd.CurrentCreateQty, false); this.locationTransactionMgr.RecordLocationTransaction(receiptDetail.OrderLocationTransaction, inventoryTransaction, receiptDetail.Receipt, user); #endregion return inventoryTransaction; }
public virtual void UpdateHuOdd(HuOdd entity) { Update(entity); }
public virtual void CreateHuOdd(HuOdd entity) { Create(entity); }
public virtual void DeleteHuOdd(HuOdd entity) { entityDao.DeleteHuOdd(entity); }
public virtual void UpdateHuOdd(HuOdd entity) { entityDao.UpdateHuOdd(entity); }
public virtual void CreateHuOdd(HuOdd entity) { entityDao.CreateHuOdd(entity); }