public AscmWipRequirementOperations(AscmWipRequirementOperations ascmWipRequirementOperations)
        {
            GetOwner(ascmWipRequirementOperations);

            //this.id = ascmWipRequirementOperations.id;
            //this.inventoryItemId = ascmWipRequirementOperations.inventoryItemId;
            //this.organizationId = ascmWipRequirementOperations.organizationId;
            //this.createUser = ascmWipRequirementOperations.createUser;
            //this.createTime = ascmWipRequirementOperations.createTime;
            //this.modifyUser = ascmWipRequirementOperations.modifyUser;
            //this.modifyTime = ascmWipRequirementOperations.modifyTime;
            //this.wipEntityId = ascmWipRequirementOperations.wipEntityId;
            //this.operationSeqNum = ascmWipRequirementOperations.operationSeqNum;
            //this.requiredQuantity = ascmWipRequirementOperations.requiredQuantity;
            //this.quantityIssued = ascmWipRequirementOperations.quantityIssued;
            //this.quantityPerAssembly = ascmWipRequirementOperations.quantityPerAssembly;
            //this.supplySubinventory = ascmWipRequirementOperations.supplySubinventory;
            //this.mpsRequiredQuantity = ascmWipRequirementOperations.mpsRequiredQuantity;
            //this.mpsDateRequired = ascmWipRequirementOperations.mpsDateRequired;
            //this.wipSupplyType = ascmWipRequirementOperations.wipSupplyType;
            //this.dateRequired = ascmWipRequirementOperations.dateRequired;
            //this.getMaterialString = ascmWipRequirementOperations.getMaterialString;
            //this.getMaterialQuantity = ascmWipRequirementOperations.getMaterialQuantity;
            //this.wmsPreparationString = ascmWipRequirementOperations.wmsPreparationString;
            //this.wmsPreparationQuantity = ascmWipRequirementOperations.wmsPreparationQuantity;
            //this.ascmIssuedQuantity = ascmWipRequirementOperations.ascmIssuedQuantity;
            //this.ascmPreparedQuantity = ascmWipRequirementOperations.ascmPreparedQuantity;
        }
 public AscmWipRequirementOperations(AscmWipRequirementOperations ascmWipRequirementOperations, string docNumber, string description, string zMtlCategoryStatus, string dMtlCategoryStatus, int docWipSupplyType, string jobDate, int identificationId, string productLine, int which, string workerId, string onlineTime)
 {
     GetOwner(ascmWipRequirementOperations);
     this.docNumber = docNumber;
     this.description = description;
     this.zMtlCategoryStatus = zMtlCategoryStatus;
     this.dMtlCategoryStatus = dMtlCategoryStatus;
     this.docWipSupplyType = docWipSupplyType;
     this.jobDate = jobDate;
     this.identificationId = identificationId;
     this.productLine = productLine;
     this.which = which;
     this.workerId = workerId;
     this.onlineTime = onlineTime;
 }
Example #3
0
        //判断是否包含BOM
        public AscmWipRequirementOperations ContainsOperations(List<AscmWipRequirementOperations> listAscmWipRequirementOperations, AscmWipRequirementOperations ascmWipRequirementOperations)
        {
            if (listAscmWipRequirementOperations.Count == 0)
                return null;

            foreach (AscmWipRequirementOperations item in listAscmWipRequirementOperations)
            {
                if (item.id == ascmWipRequirementOperations.id)
                    return item;
            }

            return null;
        }
 public void Update(AscmWipRequirementOperations ascmDeliveryNotify)
 {
     using (ITransaction tx = YnDaoHelper.GetInstance().nHibernateHelper.GetCurrentSession().BeginTransaction())
     {
         try
         {
             YnDaoHelper.GetInstance().nHibernateHelper.Update<AscmWipRequirementOperations>(ascmDeliveryNotify);
             tx.Commit();//正确执行提交
         }
         catch (Exception ex)
         {
             tx.Rollback();//回滚
             YnBaseClass2.Helper.LogHelper.GetLog().Error("修改失败(Update AscmWipRequirementOperations)", ex);
             throw ex;
         }
     }
 }
 public AscmWipRequirementOperations(AscmWipRequirementOperations ascmWipRequirementOperations, string docNumber, string description)
 {
     GetOwner(ascmWipRequirementOperations);
     this.docNumber = docNumber;
     this.description = description;
 }