示例#1
0
        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);
            }
        }
示例#2
0
        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);
        }
示例#3
0
 public void UpdateCarton2LotLog(Carton2LotLog carton2LotLog)
 {
     this._helper.UpdateDomainObject(carton2LotLog);
 }
示例#4
0
 public void DeleteCarton2LotLog(Carton2LotLog carton2LotLog)
 {
     this._helper.DeleteDomainObject(carton2LotLog);
 }
示例#5
0
 public void AddCarton2LotLog(Carton2LotLog carton2LotLog)
 {
     this._helper.AddDomainObject(carton2LotLog);
 }