public AscmDeliveryOrderMain(AscmDeliveryOrderMain ascmDeliveryOrderMain, long detailCount, long totalNumber) { this.id = ascmDeliveryOrderMain.id; this.organizationId = ascmDeliveryOrderMain.organizationId; this.createUser = ascmDeliveryOrderMain.createUser; this.createTime = ascmDeliveryOrderMain.createTime; this.modifyUser = ascmDeliveryOrderMain.modifyUser; this.modifyTime = ascmDeliveryOrderMain.modifyTime; this.docNumber = ascmDeliveryOrderMain.docNumber; this.barCode = ascmDeliveryOrderMain.barCode; this.wipEntityId = ascmDeliveryOrderMain.wipEntityId; this.supplierId = ascmDeliveryOrderMain.supplierId; this.warehouseId = ascmDeliveryOrderMain.warehouseId; this.materialId = ascmDeliveryOrderMain.materialId; this.status = ascmDeliveryOrderMain.status; this.deliveryTime = ascmDeliveryOrderMain.deliveryTime; this.comments = ascmDeliveryOrderMain.comments; this.supperWarehouse = ascmDeliveryOrderMain.supperWarehouse; this.batchId = ascmDeliveryOrderMain.batchId; this.batchBarCode = ascmDeliveryOrderMain.batchBarCode; this.detailCount = detailCount; this.totalNumber = totalNumber; }
public AscmDeliveryOrderMain(AscmDeliveryOrderMain ascmDeliveryOrderMain, string wipEntityName, decimal totalNumber) { this.id = ascmDeliveryOrderMain.id; this.organizationId = ascmDeliveryOrderMain.organizationId; this.createUser = ascmDeliveryOrderMain.createUser; this.createTime = ascmDeliveryOrderMain.createTime; this.modifyUser = ascmDeliveryOrderMain.modifyUser; this.modifyTime = ascmDeliveryOrderMain.modifyTime; this.docNumber = ascmDeliveryOrderMain.docNumber; this.barCode = ascmDeliveryOrderMain.barCode; this.wipEntityId = ascmDeliveryOrderMain.wipEntityId; this.supplierId = ascmDeliveryOrderMain.supplierId; this.warehouseId = ascmDeliveryOrderMain.warehouseId; this.materialId = ascmDeliveryOrderMain.materialId; this.status = ascmDeliveryOrderMain.status; this.deliveryTime = ascmDeliveryOrderMain.deliveryTime; this.comments = ascmDeliveryOrderMain.comments; this.supperWarehouse = ascmDeliveryOrderMain.supperWarehouse; this.batchId = ascmDeliveryOrderMain.batchId; this.batchBarCode = ascmDeliveryOrderMain.batchBarCode; this.wipEntity = wipEntityName; this.totalNumber = totalNumber; }
public void Update(AscmDeliveryOrderMain ascmDeliveryNotify) { using (ITransaction tx = YnDaoHelper.GetInstance().nHibernateHelper.GetCurrentSession().BeginTransaction()) { try { YnDaoHelper.GetInstance().nHibernateHelper.Update<AscmDeliveryOrderMain>(ascmDeliveryNotify); tx.Commit();//正确执行提交 } catch (Exception ex) { tx.Rollback();//回滚 YnBaseClass2.Helper.LogHelper.GetLog().Error("修改失败(Update AscmDeliveryOrderMain)", ex); throw ex; } } }