First Commit - Source Code from Reply
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
package mnp.xml;
|
||||
|
||||
import xml.*;
|
||||
import xml.types.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>Title: </p>
|
||||
* <p>Description: </p>
|
||||
* <p>Copyright: Copyright (c) 2003</p>
|
||||
* <p>Company: </p>
|
||||
* @author unascribed
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
public class MyListaLogProcessiFE extends LISTA_LOG_PROCESSI_FE implements Serializable{
|
||||
|
||||
public MyListaLogProcessiFE() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Restituisce il codice corrispondente al processo identificato dal nome passato
|
||||
* @param nomeProcesso Nome del processo
|
||||
* @return String Codice del processo
|
||||
*/
|
||||
public String getCODICE_PROCESSO(String nomeProcesso)
|
||||
{
|
||||
ANAGRAFICA_PROCESSO_FE[] anagProcSeq = getANAGRAFICA_PROCESSO_FE();
|
||||
int i = 0;
|
||||
boolean trovato = false;
|
||||
String codiceProcesso = null;
|
||||
while (i<=anagProcSeq.length && trovato==false) {
|
||||
if(anagProcSeq[i].getNOME_PROCESSO().equalsIgnoreCase(nomeProcesso)){
|
||||
codiceProcesso = anagProcSeq[i].getCODICE_PROCESSO();
|
||||
trovato = true;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
return codiceProcesso;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dato il codice del processo restituisce l'elenco dei messaggi corrispondenti
|
||||
* @param codiceProcesso Codice del processo
|
||||
* @return ANAGRAFICA_LOG_FE[] Elenco dei messaggi del processo
|
||||
*/
|
||||
public ANAGRAFICA_LOG_FE[] getANAGRAFICA_LOG_FE(String codiceProcesso)
|
||||
{
|
||||
int i = 0;
|
||||
boolean trovato = false;
|
||||
ANAGRAFICA_LOG_FE[] anagLogSeq = null;
|
||||
ANAGRAFICA_PROCESSO_FE[] anagProcList = getANAGRAFICA_PROCESSO_FE();
|
||||
while (i<=anagProcList.length && trovato==false) {
|
||||
ANAGRAFICA_PROCESSO_FE anagProc = (ANAGRAFICA_PROCESSO_FE) anagProcList[i];
|
||||
if(anagProc.getCODICE_PROCESSO().equalsIgnoreCase(codiceProcesso)){
|
||||
anagLogSeq = anagProc.getANAGRAFICA_LOG_FE();
|
||||
trovato = true;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
return anagLogSeq;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user