예제 #1
0
        public AscmAssignWarelocation(AscmAssignWarelocation assignWarelocation, string materialDocNumber, string materialDescription, string warehouseId, string locationDocNumber)
        {
            GetOwner(assignWarelocation);

            this.materialDocNumber = materialDocNumber;
            this.materialDescription = materialDescription;
            this.warehouseId = warehouseId;
            this.locationDocNumber = locationDocNumber;
        }
예제 #2
0
        public AscmAssignWarelocation(AscmAssignWarelocation assignWarelocation, string materialDocNumber, string materialDescription, string warehouseId, string locationDocNumber)
        {
            GetOwner(assignWarelocation);

            this.materialDocNumber   = materialDocNumber;
            this.materialDescription = materialDescription;
            this.warehouseId         = warehouseId;
            this.locationDocNumber   = locationDocNumber;
        }
 public void Delete(AscmAssignWarelocation ascmAssignWarelocation)
 {
     try
     {
         YnDaoHelper.GetInstance().nHibernateHelper.Delete<AscmAssignWarelocation>(ascmAssignWarelocation);
     }
     catch (Exception ex)
     {
         YnBaseClass2.Helper.LogHelper.GetLog().Error("删除失败(Delete AscmAssignWarelocation)", ex);
         throw ex;
     }
 }
예제 #4
0
 public void GetOwner(AscmAssignWarelocation assignWarelocation)
 {
     this.id             = assignWarelocation.id;
     this.organizationId = assignWarelocation.organizationId;
     this.createUser     = assignWarelocation.createUser;
     this.createTime     = assignWarelocation.createTime;
     this.modifyUser     = assignWarelocation.modifyUser;
     this.modifyTime     = assignWarelocation.modifyTime;
     this.batchId        = assignWarelocation.batchId;
     this.batchBarCode   = assignWarelocation.batchBarCode;
     this.batchDocNumber = assignWarelocation.batchDocNumber;
     this.warelocationId = assignWarelocation.warelocationId;
     this.assignQuantity = assignWarelocation.assignQuantity;
 }
예제 #5
0
        public AscmAssignWarelocation(AscmAssignWarelocation assignWarelocation, string locationDocNumber)
        {
            GetOwner(assignWarelocation);

            this.locationDocNumber = locationDocNumber;
        }
 public void Update(AscmAssignWarelocation ascmAssignWarelocation)
 {
     try
     {
         using (ITransaction tx = YnDaoHelper.GetInstance().nHibernateHelper.GetCurrentSession().BeginTransaction())
         {
             try
             {
                 YnDaoHelper.GetInstance().nHibernateHelper.Update<AscmAssignWarelocation>(ascmAssignWarelocation);
                 tx.Commit();//正确执行提交
             }
             catch (Exception ex)
             {
                 tx.Rollback();//回滚
                 YnBaseClass2.Helper.LogHelper.GetLog().Error("修改失败(Update AscmAssignWarelocation)", ex);
                 throw ex;
             }
         }
     }
     catch (Exception ex)
     {
         YnBaseClass2.Helper.LogHelper.GetLog().Error("修改失败(Save AscmAssignWarelocation)", ex);
         throw ex;
     }
 }
예제 #7
0
 public void GetOwner(AscmAssignWarelocation assignWarelocation)
 {
     this.id = assignWarelocation.id;
     this.organizationId = assignWarelocation.organizationId;
     this.createUser = assignWarelocation.createUser;
     this.createTime = assignWarelocation.createTime;
     this.modifyUser = assignWarelocation.modifyUser;
     this.modifyTime = assignWarelocation.modifyTime;
     this.batchId = assignWarelocation.batchId;
     this.batchBarCode = assignWarelocation.batchBarCode;
     this.batchDocNumber = assignWarelocation.batchDocNumber;
     this.warelocationId = assignWarelocation.warelocationId;
     this.assignQuantity = assignWarelocation.assignQuantity;
 }
예제 #8
0
        public AscmAssignWarelocation(AscmAssignWarelocation assignWarelocation, string locationDocNumber)
        {
            GetOwner(assignWarelocation);

            this.locationDocNumber = locationDocNumber;
        }