public void SaveRemoveCarton2RCARDLog(string cartonCode, string rcard, string userCode) { if (cartonCode.Trim().Length <= 0 || rcard.Trim().Length <= 0) { return; } Carton2RCARDLog carton2RCARDLog = (Carton2RCARDLog)this.GetCarton2RCARDLog(cartonCode, rcard); DBDateTime dbDateTime = FormatHelper.GetNowDBDateTime(this.DataProvider); if (carton2RCARDLog != null && string.IsNullOrEmpty(carton2RCARDLog.RemoveUser) && carton2RCARDLog.RemovDate == 0) { carton2RCARDLog.RemoveUser = userCode; carton2RCARDLog.RemovDate = dbDateTime.DBDate; carton2RCARDLog.RemovTime = dbDateTime.DBTime; this.UpdateCarton2RCARDLog(carton2RCARDLog); } else { Carton2RCARDLog newCarton2RCARDLog = this.CreateNewCarton2RCARDLog(); newCarton2RCARDLog.Serial = 0; newCarton2RCARDLog.CartonCode = cartonCode; newCarton2RCARDLog.Rcard = rcard; newCarton2RCARDLog.RemoveUser = userCode; newCarton2RCARDLog.RemovDate = dbDateTime.DBDate; newCarton2RCARDLog.RemovTime = dbDateTime.DBTime; this.AddCarton2RCARDLog(newCarton2RCARDLog); } }
public void addCarton2RCARDLog(string cartonCode, string rcard, string userCode) { DBDateTime dbDateTime = FormatHelper.GetNowDBDateTime(this.DataProvider); Carton2RCARDLog carton2RCARDLog = this.CreateNewCarton2RCARDLog(); carton2RCARDLog.Serial = 0; carton2RCARDLog.CartonCode = cartonCode; carton2RCARDLog.Rcard = rcard; carton2RCARDLog.PackUser = userCode; carton2RCARDLog.PackDate = dbDateTime.DBDate; carton2RCARDLog.PackTime = dbDateTime.DBTime; this.AddCarton2RCARDLog(carton2RCARDLog); }
public void UpdateCarton2RCARDLog(Carton2RCARDLog carton2RCARDLog) { this._helper.UpdateDomainObject(carton2RCARDLog); }
public void DeleteCarton2RCARDLog(Carton2RCARDLog carton2RCARDLog) { this._helper.DeleteDomainObject(carton2RCARDLog); }
public void AddCarton2RCARDLog(Carton2RCARDLog carton2RCARDLog) { this._helper.AddDomainObject(carton2RCARDLog); }