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;
        }
Exemple #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;
     }
 }
Exemple #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;
 }
Exemple #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;
     }
 }
 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;
 }
        public AscmAssignWarelocation(AscmAssignWarelocation assignWarelocation, string locationDocNumber)
        {
            GetOwner(assignWarelocation);

            this.locationDocNumber = locationDocNumber;
        }