public void SaveRemovePallet2RcardLog(string palletCode, string rcard, string userCode) { if (palletCode.Trim().Length <= 0 || rcard.Trim().Length <= 0) { return; } Pallet2RcardLog pallet2RcardLog = (Pallet2RcardLog)this.GetPallet2RcardLog(palletCode, rcard); DBDateTime dbDateTime = FormatHelper.GetNowDBDateTime(this.DataProvider); if (pallet2RcardLog != null && string.IsNullOrEmpty(pallet2RcardLog.RemoveUser) && pallet2RcardLog.RemovDate == 0) { pallet2RcardLog.RemoveUser = userCode; pallet2RcardLog.RemovDate = dbDateTime.DBDate; pallet2RcardLog.RemovTime = dbDateTime.DBTime; this.UpdatePallet2RcardLog(pallet2RcardLog); } else { Pallet2RcardLog newPallet2RcardLog = this.CreateNewPallet2RcardLog(); newPallet2RcardLog.Serial = 0; newPallet2RcardLog.PalletCode = palletCode; newPallet2RcardLog.Rcard = rcard; newPallet2RcardLog.RemoveUser = userCode; newPallet2RcardLog.RemovDate = dbDateTime.DBDate; newPallet2RcardLog.RemovTime = dbDateTime.DBTime; this.AddPallet2RcardLog(newPallet2RcardLog); } }
public void AddPallet2RcardLog(string palletCode, string rcard, string userCode) { DBDateTime dbDateTime = FormatHelper.GetNowDBDateTime(this.DataProvider); Pallet2RcardLog pallet2RcardLog = this.CreateNewPallet2RcardLog(); pallet2RcardLog.Serial = 0; pallet2RcardLog.PalletCode = palletCode; pallet2RcardLog.Rcard = rcard; pallet2RcardLog.PackUser = userCode; pallet2RcardLog.PackDate = dbDateTime.DBDate; pallet2RcardLog.PackTime = dbDateTime.DBTime; this.AddPallet2RcardLog(pallet2RcardLog); }
public void DeletePallet2RcardLog(Pallet2RcardLog pallet2RcardLog) { this._helper.DeleteDomainObject(pallet2RcardLog); }
public void AddPallet2RcardLog(Pallet2RcardLog pallet2RcardLog) { this._helper.AddDomainObject(pallet2RcardLog); }