Example #1
0
 public AscmStoreInOut(AscmStoreInOut ascmStore, int warnTime, string supplierName, double extendedTime )
 {
     this.id = ascmStore.id;
     this.createUser = ascmStore.createUser;
     this.createTime = ascmStore.containerId;
     this.containerId = ascmStore.containerId;
     this.supplierId = ascmStore.supplierId;
     this.direction = ascmStore.direction;
     this.epcId = ascmStore.epcId;
     this.readTime = ascmStore.readTime;
     this.stakeHolders = ascmStore.stakeHolders;
     this.status = ascmStore.status;
     this.tip = ascmStore.tip;
     this.supplierName = supplierName;
     this.extendedTime = extendedTime;
        // this.ascmContainer = ascmStore.ascmContainer;
        // this.ascmSupplier = ascmStore.ascmSupplier;
     this.warnTime = warnTime;
 }
Example #2
0
 public AscmStoreInOut(AscmStoreInOut ascmStore, int warnTime, string supplierName, double extendedTime)
 {
     this.id           = ascmStore.id;
     this.createUser   = ascmStore.createUser;
     this.createTime   = ascmStore.containerId;
     this.containerId  = ascmStore.containerId;
     this.supplierId   = ascmStore.supplierId;
     this.direction    = ascmStore.direction;
     this.epcId        = ascmStore.epcId;
     this.readTime     = ascmStore.readTime;
     this.stakeHolders = ascmStore.stakeHolders;
     this.status       = ascmStore.status;
     this.tip          = ascmStore.tip;
     this.supplierName = supplierName;
     this.extendedTime = extendedTime;
     // this.ascmContainer = ascmStore.ascmContainer;
     // this.ascmSupplier = ascmStore.ascmSupplier;
     this.warnTime = warnTime;
 }
Example #3
0
 public void Save(AscmStoreInOut ascmStoreInOut)
 {
     try
     {
         using (ITransaction tx = YnDaoHelper.GetInstance().nHibernateHelper.GetCurrentSession().BeginTransaction())
         {
             try
             {
                 YnDaoHelper.GetInstance().nHibernateHelper.Save<AscmStoreInOut>(ascmStoreInOut);
                 tx.Commit();//正确执行提交
             }
             catch (Exception ex)
             {
                 tx.Rollback();//回滚
                 throw ex;
             }
         }
     }
     catch (Exception ex)
     {
         YnBaseClass2.Helper.LogHelper.GetLog().Error("保存失败(Save ascmStoreInOut)", ex);
         throw ex;
     }
 }