Fix DBCFX_SM_675
This commit is contained in:
@@ -1416,7 +1416,7 @@ public class DBSSFormatController extends FormatController {
|
||||
return request;
|
||||
}
|
||||
|
||||
//TODO verificare nome / cod fiscale se servono a CCC
|
||||
|
||||
public WirelineCeaseCheck82RequestType getXmlForNotificaD82(GnpCrmNotifyDonorOut dbssDonorOut, String operation) {
|
||||
WirelineCeaseCheck82RequestType request = new WirelineCeaseCheck82RequestType();
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
@@ -1424,6 +1424,9 @@ public class DBSSFormatController extends FormatController {
|
||||
|
||||
int charValueIndex = 0; //usato come indice per l'array CharacteristicValueType
|
||||
|
||||
GnpNowD82RichiesteOutDAO nowDonorOutDAO = new GnpNowD82RichiesteOutDAO();
|
||||
GnpNowD82RichiesteOut nowDonorOut = null;
|
||||
|
||||
if (operation.equals(DBSSMap.EVENTO_ESITO_VERIFICA_COD_SESSIONE)) {
|
||||
request.setOperationType(OP_TYPE_CHECKFASE3);
|
||||
} else {
|
||||
@@ -1433,19 +1436,25 @@ public class DBSSFormatController extends FormatController {
|
||||
|
||||
CharacteristicValueType[] characteristics = new CharacteristicValueType[11];
|
||||
|
||||
// Check lunghezza array characteristics - begin
|
||||
if (!Func.isNull(dbssDonorOut.getAggiuntivi())) {
|
||||
characteristics = new CharacteristicValueType[12];
|
||||
}
|
||||
|
||||
if (operation.equals(DBSSMap.EVENTO_ESITO_VERIFICA_COD_SESSIONE)) {
|
||||
nowDonorOut = nowDonorOutDAO.findByIdRichiesta82(dbssDonorOut.getCodiceRichiesta());
|
||||
|
||||
if (!Func.isNull(dbssDonorOut.getAggiuntivi())) {
|
||||
if (!Func.isNull(dbssDonorOut.getAggiuntivi()) && (nowDonorOut != null && !Func.isNull(nowDonorOut.getMotivazione()))) {
|
||||
characteristics = new CharacteristicValueType[14];
|
||||
}
|
||||
else {
|
||||
characteristics = new CharacteristicValueType[13];
|
||||
if (!Func.isNull(dbssDonorOut.getAggiuntivi()) || (nowDonorOut != null && !Func.isNull(nowDonorOut.getMotivazione())))
|
||||
characteristics = new CharacteristicValueType[13];
|
||||
else
|
||||
characteristics = new CharacteristicValueType[12];
|
||||
}
|
||||
}
|
||||
// Check lunghezza array characteristics - end
|
||||
|
||||
CharacteristicValueType reqType = new CharacteristicValueType();
|
||||
CharacteristicSpecificationType reqName = new CharacteristicSpecificationType();
|
||||
@@ -1475,15 +1484,6 @@ public class DBSSFormatController extends FormatController {
|
||||
dnType.setValue(dbssDonorOut.getDirectoryNumber());
|
||||
characteristics[charValueIndex++] = dnType;
|
||||
|
||||
/*
|
||||
CharacteristicValueType noteType = new CharacteristicValueType();
|
||||
CharacteristicSpecificationType noteName = new CharacteristicSpecificationType();
|
||||
noteName.setName("Comments");
|
||||
noteType.setCharacteristicSpecification(noteName);
|
||||
noteType.setValue(dbssDonorOut.getNote());
|
||||
characteristics[charValueIndex++] = noteType;
|
||||
*/
|
||||
|
||||
CharacteristicValueType donorType = new CharacteristicValueType();
|
||||
CharacteristicSpecificationType donorName = new CharacteristicSpecificationType();
|
||||
donorName.setName("DonorCode");
|
||||
@@ -1543,9 +1543,6 @@ public class DBSSFormatController extends FormatController {
|
||||
characteristics[charValueIndex++] = cognomeClienteType;
|
||||
|
||||
if (operation.equals(DBSSMap.EVENTO_ESITO_VERIFICA_COD_SESSIONE)) {
|
||||
GnpNowD82RichiesteOutDAO nowDonorOutDAO = new GnpNowD82RichiesteOutDAO();
|
||||
GnpNowD82RichiesteOut nowDonorOut = nowDonorOutDAO.findByIdRichiesta82(dbssDonorOut.getCodiceRichiesta());
|
||||
|
||||
if (nowDonorOut != null) {
|
||||
CharacteristicValueType phase3Result = new CharacteristicValueType();
|
||||
CharacteristicSpecificationType phase3ResultName = new CharacteristicSpecificationType();
|
||||
@@ -1554,14 +1551,15 @@ public class DBSSFormatController extends FormatController {
|
||||
phase3Result.setValue(nowDonorOut.getEsito());
|
||||
characteristics[charValueIndex++] = phase3Result;
|
||||
|
||||
CharacteristicValueType phase3ResultD = new CharacteristicValueType();
|
||||
CharacteristicSpecificationType phase3ResultDName = new CharacteristicSpecificationType();
|
||||
phase3ResultDName.setName("Phase3ResultDescription");
|
||||
phase3ResultD.setCharacteristicSpecification(phase3ResultDName);
|
||||
phase3ResultD.setValue(nowDonorOut.getMotivazione());
|
||||
characteristics[charValueIndex++] = phase3ResultD;
|
||||
if (!Func.isNull(nowDonorOut.getMotivazione())){
|
||||
CharacteristicValueType phase3ResultD = new CharacteristicValueType();
|
||||
CharacteristicSpecificationType phase3ResultDName = new CharacteristicSpecificationType();
|
||||
phase3ResultDName.setName("Phase3ResultDescription");
|
||||
phase3ResultD.setCharacteristicSpecification(phase3ResultDName);
|
||||
phase3ResultD.setValue(nowDonorOut.getMotivazione());
|
||||
characteristics[charValueIndex++] = phase3ResultD;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
request.setCharacteristicValue(characteristics);
|
||||
|
||||
@@ -136,6 +136,8 @@ public class WirelinePortOutOrderMgmtClient implements Loggable {
|
||||
((WirelineCeaseCheck82PortType_Stub) endPoint)._setProperty("javax.xml.rpc.service.endpoint.address", Resources.getURL_WIRELINE_CEASE_CHECK82());
|
||||
((WirelineCeaseCheck82PortType_Stub) endPoint)._setProperty("weblogic.wsee.transport.connection.timeout", Integer.parseInt(timeOutStr));
|
||||
|
||||
log.write("9999", "Endpoint Resources.getURL_WIRELINE_CEASE_CHECK82(): " + Resources.getURL_WIRELINE_CEASE_CHECK82());
|
||||
|
||||
HeaderTypeHolder header = new HeaderTypeHolder();
|
||||
HeaderType headerType = new HeaderType();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user