|
|
|
@ -97,6 +97,7 @@ public class MesProductionAssemblyNosortContext extends MesProductionAssemblyCon
|
|
|
|
|
|
|
|
|
|
public MesProductionAssemblyNosortContext copy(MesAssemblyNosortCfg assemblyNosortCfg) {
|
|
|
|
|
BeanUtils.copyProperties(assemblyNosortCfg, this);
|
|
|
|
|
this.sourceId = assemblyNosortCfg.getId();
|
|
|
|
|
if (StringUtils.isEmpty(this.routeSeq)) this.routeSeq = MesPcnExtConstWords.ZERO;
|
|
|
|
|
this.assemblyStatus = MesExtEnumUtil.ASSEMBLY_STATUS.ASSEMBLY_STATUS_30.getValue();
|
|
|
|
|
if (!MesExtEnumUtil.ASSEMBLY_MATCH_TYPE.checkIsNeedScan(this.matchType)) this.assemblyStatus = MesExtEnumUtil.ASSEMBLY_STATUS.ASSEMBLY_STATUS_10.getValue();
|
|
|
|
@ -115,8 +116,9 @@ public class MesProductionAssemblyNosortContext extends MesProductionAssemblyCon
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public MesProductionAssemblyNosortContext copy(MesProductionAssembly mesProductionAssembly) {
|
|
|
|
|
BeanUtils.copyProperties(mesProductionAssembly, this);
|
|
|
|
|
public MesProductionAssemblyNosortContext copy(MesProductionAssembly productionAssembly) {
|
|
|
|
|
BeanUtils.copyProperties(productionAssembly, this);
|
|
|
|
|
this.sourceId = productionAssembly.getSourceId();
|
|
|
|
|
if (StringUtils.isEmpty(this.routeSeq)) this.routeSeq = MesPcnExtConstWords.ZERO;
|
|
|
|
|
this.assemblyStatus = MesExtEnumUtil.ASSEMBLY_STATUS.ASSEMBLY_STATUS_30.getValue();
|
|
|
|
|
if (!MesExtEnumUtil.ASSEMBLY_MATCH_TYPE.checkIsNeedScan(this.matchType)) this.assemblyStatus = MesExtEnumUtil.ASSEMBLY_STATUS.ASSEMBLY_STATUS_10.getValue();
|
|
|
|
|