| | |
| | | if(newAList!=null&&newAList.length>0){ |
| | | for(int i = 0 ; i < newAList.length;i++){ |
| | | com.vci.corba.omd.data.AttributeValue av = newAList[i]; |
| | | String attrName = av.attrName.toLowerCase(); |
| | | String attrName = av.name.toLowerCase(); |
| | | if(fieldAttrMap.containsKey(attrName)) { |
| | | String fieldName = fieldAttrMap.get(attrName); |
| | | setValueForFieldFromCbo(fieldName, obj, av.attrVal); |
| | | setValueForFieldFromCbo(fieldName, obj, av.value); |
| | | }else{ |
| | | fieldAttrMap.forEach((cboField,fieldName)->{ |
| | | if(fieldName!=null && fieldName.equalsIgnoreCase(attrName) && cboField.contains(".")){ |
| | | //参照的时候 |
| | | setValueForFieldFromCbo(fieldName, obj, av.attrVal); |
| | | setValueForFieldFromCbo(fieldName, obj, av.value); |
| | | return; |
| | | } |
| | | }); |
| | |
| | | if(hisAList!=null&&hisAList.length>0){ |
| | | for(int i = 0 ; i < hisAList.length;i++){ |
| | | com.vci.corba.omd.data.AttributeValue av = hisAList[i]; |
| | | String attrName = av.attrName.toLowerCase(); |
| | | String attrName = av.name.toLowerCase(); |
| | | String fieldName = fieldAttrMap.get(attrName); |
| | | if(fieldName!=null){ |
| | | setValueForFieldFromCbo(fieldName, obj, av.attrVal); |
| | | setValueForFieldFromCbo(fieldName, obj, av.value); |
| | | }else{ |
| | | fieldAttrMap.forEach((cboField,field)->{ |
| | | if(field!=null && field.equalsIgnoreCase(attrName) && cboField.contains(".")){ |
| | | //参照的时候 |
| | | setValueForFieldFromCbo(field, obj, av.attrVal); |
| | | setValueForFieldFromCbo(field, obj, av.value); |
| | | return; |
| | | } |
| | | }); |
| | |
| | | if(hisAList!=null&&hisAList.length>0){// |
| | | for(int i = 0 ; i < hisAList.length;i++){ |
| | | com.vci.corba.omd.data.AttributeValue av = hisAList[i]; |
| | | String attrName = av.attrName.toLowerCase(); |
| | | map.put(attrName, av.attrVal); |
| | | String attrName = av.name.toLowerCase(); |
| | | map.put(attrName, av.value); |
| | | } |
| | | } |
| | | if(newAList!=null&&newAList.length>0){//NEW的优先级高些 |
| | | for(int i = 0 ; i < newAList.length;i++){ |
| | | com.vci.corba.omd.data.AttributeValue av = newAList[i]; |
| | | String attrName = av.attrName.toLowerCase(); |
| | | map.put(attrName, av.attrVal); |
| | | String attrName = av.name.toLowerCase(); |
| | | map.put(attrName, av.value); |
| | | } |
| | | } |
| | | } |
| | |
| | | if(hisAList!=null&&hisAList.length>0){ |
| | | for(int i = 0 ; i < hisAList.length;i++){ |
| | | AttributeValue av = hisAList[i]; |
| | | String attrName = av.attrName.toLowerCase(); |
| | | map.put(attrName, av.attrVal); |
| | | String attrName = av.name.toLowerCase(); |
| | | map.put(attrName, av.value); |
| | | } |
| | | } |
| | | if(newAList!=null&&newAList.length>0){ |
| | | for(int i = 0 ; i < newAList.length;i++){ |
| | | AttributeValue av = newAList[i]; |
| | | String attrName = av.attrName.toLowerCase(); |
| | | map.put(attrName, av.attrVal); |
| | | String attrName = av.name.toLowerCase(); |
| | | map.put(attrName, av.value); |
| | | } |
| | | } |
| | | } |
| | |
| | | if(newAList!=null&&newAList.length>0){ |
| | | for(int i = 0 ; i < newAList.length;i++){ |
| | | AttributeValue av = newAList[i]; |
| | | String attrName = av.attrName.toLowerCase(); |
| | | String attrName = av.name.toLowerCase(); |
| | | String fieldName = fieldAttrMap.get(attrName); |
| | | setValueForFieldFromCbo(fieldName, obj, av.attrVal);//依然使用CBO的处理方式 |
| | | setValueForFieldFromCbo(fieldName, obj, av.value);//依然使用CBO的处理方式 |
| | | } |
| | | } |
| | | if(hisAList!=null&&hisAList.length>0){ |
| | | for(int i = 0 ; i < hisAList.length;i++){ |
| | | AttributeValue av = hisAList[i]; |
| | | String attrName = av.attrName.toLowerCase(); |
| | | String attrName = av.name.toLowerCase(); |
| | | String fieldName = fieldAttrMap.get(attrName); |
| | | if(fieldName!=null){ |
| | | setValueForFieldFromCbo(fieldName, obj, av.attrVal); |
| | | setValueForFieldFromCbo(fieldName, obj, av.value); |
| | | } |
| | | } |
| | | } |
| | |
| | | for (int i = 0; i < select.getSelectItems().size(); i++) { |
| | | SelectItem selectItem = select.getSelectItem(i); |
| | | AttributeValue attributeValue = new AttributeValue(); |
| | | attributeValue.attrName = selectItem.getAlias().getName(); |
| | | attributeValue.attrVal = valueArry[i]; |
| | | attributeValue.name = selectItem.getAlias().getName(); |
| | | attributeValue.value = valueArry[i]; |
| | | attributeValues[i] = attributeValue; |
| | | } |
| | | BusinessObject.newAttrValList= attributeValues; |