Añado los fuentes de java
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package com.tarisan.chipcard.tpvvs.webservicetrayicon.messages;
|
||||
import com.tarisan.chipcard.tpvvs.webservicetrayicon.accesodatos.*;
|
||||
import es.chipcard.util.*;
|
||||
/**
|
||||
* @author jjrider
|
||||
*/
|
||||
public class DocumentoUnico extends AutReq{
|
||||
|
||||
public DocumentoUnico(UsuarioTVS user,Paciente paciente,CompaniaSanitaria comp, EspecialidadSanitaria espe,ProfesionalSanitario prof,ListaActos objLA,ActoMedico arrActos[],String sDocUnico) throws Exception{
|
||||
super("DU",user,paciente,comp, espe, prof,objLA,arrActos);
|
||||
setDocUnico(sDocUnico);
|
||||
}
|
||||
|
||||
|
||||
public void setDocUnico(String sDU){
|
||||
if(sDU==null)
|
||||
return;
|
||||
sDU=sDU.trim();
|
||||
if(sDU.length()==0){
|
||||
return;
|
||||
}
|
||||
if(SerClsXMLUtils.existeElemento(this.getAutReq(),"du")){
|
||||
SerClsXMLUtils.cambiaValorEl(this.getAutReq(),"du",sDU);
|
||||
}else{
|
||||
SerClsXMLUtils.insertaElementoValor(getAutReq(),"du",sDU);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user