Exemplo n.º 1
0
        public AscmWarelocation(AscmWarelocation ascmWarelocation, int batchId, decimal assignQuantity)
        {
            this.id = ascmWarelocation.id;
            this.organizationId = ascmWarelocation.organizationId;
            this.createUser = ascmWarelocation.createUser;
            this.createTime = ascmWarelocation.createTime;
            this.modifyUser = ascmWarelocation.modifyUser;
            this.modifyTime = ascmWarelocation.modifyTime;
            this.docNumber = ascmWarelocation.docNumber;
            this.buildingId = ascmWarelocation.buildingId;
            this.warehouseId = ascmWarelocation.warehouseId;
            this.categoryCode = ascmWarelocation.categoryCode;
            this.type = ascmWarelocation.type;
            this.shelfNo = ascmWarelocation.shelfNo;
            this.layer = ascmWarelocation.layer;
            this.No = ascmWarelocation.No;
            this.floorRow = ascmWarelocation.floorRow;
            this.floorColumn = ascmWarelocation.floorColumn;
            this.upperLimit = ascmWarelocation.upperLimit;
            this.lowerLimit = ascmWarelocation.lowerLimit;
            this.description = ascmWarelocation.description;
            this.warehouseUserId = ascmWarelocation.warehouseUserId;

            this.batchId = batchId;
            this.assignQuantity = assignQuantity;
        }
Exemplo n.º 2
0
        public AscmWarelocation(AscmWarelocation ascmWarelocation, decimal totalNumber, string warehouseDes)
        {
            this.id = ascmWarelocation.id;
            this.organizationId = ascmWarelocation.organizationId;
            this.createUser = ascmWarelocation.createUser;
            this.createTime = ascmWarelocation.createTime;
            this.modifyUser = ascmWarelocation.modifyUser;
            this.modifyTime = ascmWarelocation.modifyTime;
            this.docNumber = ascmWarelocation.docNumber;
            this.buildingId = ascmWarelocation.buildingId;
            this.warehouseId = ascmWarelocation.warehouseId;
            this.categoryCode = ascmWarelocation.categoryCode;
            this.type = ascmWarelocation.type;
            this.shelfNo = ascmWarelocation.shelfNo;
            this.layer = ascmWarelocation.layer;
            this.No = ascmWarelocation.No;
            this.floorRow = ascmWarelocation.floorRow;
            this.floorColumn = ascmWarelocation.floorColumn;
            this.upperLimit = ascmWarelocation.upperLimit;
            this.lowerLimit = ascmWarelocation.lowerLimit;
            this.description = ascmWarelocation.description;
            this.warehouseUserId = ascmWarelocation.warehouseUserId;

            this.totalNumber = totalNumber;
            this.warehouseDes = warehouseDes;
        }
Exemplo n.º 3
0
        public AscmWarelocation(AscmWarelocation ascmWarelocation, int batchId, decimal assignQuantity)
        {
            this.id              = ascmWarelocation.id;
            this.organizationId  = ascmWarelocation.organizationId;
            this.createUser      = ascmWarelocation.createUser;
            this.createTime      = ascmWarelocation.createTime;
            this.modifyUser      = ascmWarelocation.modifyUser;
            this.modifyTime      = ascmWarelocation.modifyTime;
            this.docNumber       = ascmWarelocation.docNumber;
            this.buildingId      = ascmWarelocation.buildingId;
            this.warehouseId     = ascmWarelocation.warehouseId;
            this.categoryCode    = ascmWarelocation.categoryCode;
            this.type            = ascmWarelocation.type;
            this.shelfNo         = ascmWarelocation.shelfNo;
            this.layer           = ascmWarelocation.layer;
            this.No              = ascmWarelocation.No;
            this.floorRow        = ascmWarelocation.floorRow;
            this.floorColumn     = ascmWarelocation.floorColumn;
            this.upperLimit      = ascmWarelocation.upperLimit;
            this.lowerLimit      = ascmWarelocation.lowerLimit;
            this.description     = ascmWarelocation.description;
            this.warehouseUserId = ascmWarelocation.warehouseUserId;

            this.batchId        = batchId;
            this.assignQuantity = assignQuantity;
        }
Exemplo n.º 4
0
        public AscmWarelocation(AscmWarelocation ascmWarelocation, decimal totalNumber, string warehouseDes)
        {
            this.id              = ascmWarelocation.id;
            this.organizationId  = ascmWarelocation.organizationId;
            this.createUser      = ascmWarelocation.createUser;
            this.createTime      = ascmWarelocation.createTime;
            this.modifyUser      = ascmWarelocation.modifyUser;
            this.modifyTime      = ascmWarelocation.modifyTime;
            this.docNumber       = ascmWarelocation.docNumber;
            this.buildingId      = ascmWarelocation.buildingId;
            this.warehouseId     = ascmWarelocation.warehouseId;
            this.categoryCode    = ascmWarelocation.categoryCode;
            this.type            = ascmWarelocation.type;
            this.shelfNo         = ascmWarelocation.shelfNo;
            this.layer           = ascmWarelocation.layer;
            this.No              = ascmWarelocation.No;
            this.floorRow        = ascmWarelocation.floorRow;
            this.floorColumn     = ascmWarelocation.floorColumn;
            this.upperLimit      = ascmWarelocation.upperLimit;
            this.lowerLimit      = ascmWarelocation.lowerLimit;
            this.description     = ascmWarelocation.description;
            this.warehouseUserId = ascmWarelocation.warehouseUserId;

            this.totalNumber  = totalNumber;
            this.warehouseDes = warehouseDes;
        }
Exemplo n.º 5
0
 public void Delete(AscmWarelocation ascmWarelocation)
 {
     try
     {
         YnDaoHelper.GetInstance().nHibernateHelper.Delete<AscmWarelocation>(ascmWarelocation);
     }
     catch (Exception ex)
     {
         YnBaseClass2.Helper.LogHelper.GetLog().Error("删除失败(Delete AscmWarelocation)", ex);
         throw ex;
     }
 }
Exemplo n.º 6
0
 public void Update(AscmWarelocation ascmWarelocation)
 {
     try
     {
         using (ITransaction tx = YnDaoHelper.GetInstance().nHibernateHelper.GetCurrentSession().BeginTransaction())
         {
             try
             {
                 YnDaoHelper.GetInstance().nHibernateHelper.Update<AscmWarelocation>(ascmWarelocation);
                 tx.Commit();//正确执行提交
             }
             catch (Exception ex)
             {
                 tx.Rollback();//回滚
                 YnBaseClass2.Helper.LogHelper.GetLog().Error("修改失败(Update AscmWarelocation)", ex);
                 throw ex;
             }
         }
     }
     catch (Exception ex)
     {
         YnBaseClass2.Helper.LogHelper.GetLog().Error("修改失败(Save AscmWarelocation)", ex);
         throw ex;
     }
 }