public void SaveRemoveCarton2LotLog(string cartonCode, string lotCode, decimal cartonQty, string userCode) { if (cartonCode.Trim().Length <= 0 || lotCode.Trim().Length <= 0) { return; } Carton2LotLog carton2LotLog = (Carton2LotLog)this.GetCarton2LotLog(cartonCode, lotCode); DBDateTime dbDateTime = FormatHelper.GetNowDBDateTime(this.DataProvider); if (carton2LotLog != null && string.IsNullOrEmpty(carton2LotLog.RemoveUser) && carton2LotLog.RemovDate == 0) { carton2LotLog.RemoveUser = userCode; carton2LotLog.RemovDate = dbDateTime.DBDate; carton2LotLog.RemovTime = dbDateTime.DBTime; this.UpdateCarton2LotLog(carton2LotLog); } else { Carton2LotLog newCarton2LotLog = this.CreateNewCarton2LotLog(); newCarton2LotLog.Serial = 0; newCarton2LotLog.CartonCode = cartonCode; newCarton2LotLog.LotCode = lotCode; newCarton2LotLog.CartonQty = cartonQty; newCarton2LotLog.RemoveUser = userCode; newCarton2LotLog.RemovDate = dbDateTime.DBDate; newCarton2LotLog.RemovTime = dbDateTime.DBTime; this.AddCarton2LotLog(newCarton2LotLog); } }
public void AddCarton2LotLog(string cartonCode, string lotCode, decimal cartonQty, string userCode) { DBDateTime dbDateTime = FormatHelper.GetNowDBDateTime(this.DataProvider); Carton2LotLog carton2LotLog = this.CreateNewCarton2LotLog(); carton2LotLog.Serial = 0; carton2LotLog.CartonCode = cartonCode; carton2LotLog.LotCode = lotCode; carton2LotLog.CartonQty = cartonQty; carton2LotLog.PackUser = userCode; carton2LotLog.PackDate = dbDateTime.DBDate; carton2LotLog.PackTime = dbDateTime.DBTime; this.AddCarton2LotLog(carton2LotLog); }
public void UpdateCarton2LotLog(Carton2LotLog carton2LotLog) { this._helper.UpdateDomainObject(carton2LotLog); }
public void DeleteCarton2LotLog(Carton2LotLog carton2LotLog) { this._helper.DeleteDomainObject(carton2LotLog); }
public void AddCarton2LotLog(Carton2LotLog carton2LotLog) { this._helper.AddDomainObject(carton2LotLog); }