fixes bug#AL-4204
parent
300732768b
commit
80a99648d5
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ModelWeb</artifactId>
|
||||
<version>1.70.0</version>
|
||||
<version>1.71.0</version>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
|
|
|
@ -266,6 +266,9 @@ public class CategoriaDescuento implements Serializable, Auditavel<CategoriaDesc
|
|||
@NaoAuditar
|
||||
private String customizaRodapeCumpomEmbarque;
|
||||
|
||||
@Column(name = "TIPOIDENTIFICACIONDOC1")
|
||||
private Integer tipoIdentificacionDoc1;
|
||||
|
||||
public enum DisponibilidadeFeriado {
|
||||
// Declaração dos enum
|
||||
GERARSEMPRE("SEMPRE", "S"),
|
||||
|
@ -1080,7 +1083,13 @@ public class CategoriaDescuento implements Serializable, Auditavel<CategoriaDesc
|
|||
public void setCustomizaRodapeCumpomEmbarque(String customizaRodapeCumpomEmbarque) {
|
||||
this.customizaRodapeCumpomEmbarque = customizaRodapeCumpomEmbarque;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public Integer getTipoIdentificacionDoc1() {
|
||||
return tipoIdentificacionDoc1;
|
||||
}
|
||||
|
||||
public void setTipoIdentificacionDoc1(Integer tipoIdentificacionDoc1) {
|
||||
this.tipoIdentificacionDoc1 = tipoIdentificacionDoc1;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -17,6 +17,13 @@ public enum TipoIdentificacionDoc {
|
|||
RNE(24),
|
||||
DOC_IDOSO(25),
|
||||
DNI(26),
|
||||
RE_PM(27),
|
||||
D_FISICO(28),
|
||||
J_CARENTE(29),
|
||||
GRATUIDADE(30),
|
||||
NIC(31),
|
||||
PASSE_LIVRE(32),
|
||||
ID_JOVEM(33),
|
||||
TODOS(0);
|
||||
|
||||
private Integer id;
|
||||
|
@ -68,6 +75,15 @@ public enum TipoIdentificacionDoc {
|
|||
case 26:
|
||||
tmp = TipoIdentificacionDoc.DNI;
|
||||
break;
|
||||
case 31:
|
||||
tmp = TipoIdentificacionDoc.NIC;
|
||||
break;
|
||||
case 32:
|
||||
tmp = TipoIdentificacionDoc.PASSE_LIVRE;
|
||||
break;
|
||||
case 33:
|
||||
tmp = TipoIdentificacionDoc.ID_JOVEM;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
@ -86,7 +102,14 @@ public enum TipoIdentificacionDoc {
|
|||
TipoIdentificacionDoc.CN,
|
||||
TipoIdentificacionDoc.RNE,
|
||||
TipoIdentificacionDoc.DOC_IDOSO,
|
||||
TipoIdentificacionDoc.DNI
|
||||
TipoIdentificacionDoc.DNI,
|
||||
TipoIdentificacionDoc.RE_PM,
|
||||
TipoIdentificacionDoc.D_FISICO,
|
||||
TipoIdentificacionDoc.J_CARENTE,
|
||||
TipoIdentificacionDoc.GRATUIDADE,
|
||||
TipoIdentificacionDoc.NIC,
|
||||
TipoIdentificacionDoc.PASSE_LIVRE,
|
||||
TipoIdentificacionDoc.ID_JOVEM
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -119,6 +142,12 @@ public enum TipoIdentificacionDoc {
|
|||
return "DOC_IDOSO";
|
||||
case 26:
|
||||
return "DNI";
|
||||
case 31:
|
||||
return "NIC";
|
||||
case 32:
|
||||
return "PASSE_LIVRE";
|
||||
case 33:
|
||||
return "ID_JOVEM";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
@ -134,7 +163,11 @@ public enum TipoIdentificacionDoc {
|
|||
TipoIdentificacionDoc.CN,
|
||||
TipoIdentificacionDoc.RNE,
|
||||
TipoIdentificacionDoc.DOC_IDOSO,
|
||||
TipoIdentificacionDoc.DNI
|
||||
TipoIdentificacionDoc.DNI,
|
||||
TipoIdentificacionDoc.RE_PM,
|
||||
TipoIdentificacionDoc.NIC,
|
||||
TipoIdentificacionDoc.PASSE_LIVRE,
|
||||
TipoIdentificacionDoc.ID_JOVEM
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -162,6 +195,14 @@ public enum TipoIdentificacionDoc {
|
|||
return TipoIdentificacionDoc.DOC_IDOSO;
|
||||
} else if(descTipoDoc.equals("DNI")) {
|
||||
return TipoIdentificacionDoc.DNI;
|
||||
}else if(descTipoDoc.equals("RE_PM")) {
|
||||
return TipoIdentificacionDoc.RE_PM;
|
||||
}else if(descTipoDoc.equals("NIC")) {
|
||||
return TipoIdentificacionDoc.NIC;
|
||||
}else if(descTipoDoc.equals("PASSE_LIVRE")) {
|
||||
return TipoIdentificacionDoc.PASSE_LIVRE;
|
||||
}else if(descTipoDoc.equals("ID_JOVEM")) {
|
||||
return TipoIdentificacionDoc.ID_JOVEM;
|
||||
}else {
|
||||
return null;
|
||||
}
|
||||
|
@ -235,4 +276,22 @@ public enum TipoIdentificacionDoc {
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
public static TipoIdentificacionDoc[] buscarComboSegundoTipoDocumentoRemovendoDocumentoSelecionadoTipoIdentificacionDoc(TipoIdentificacionDoc tipoIdentificacionDoc) {
|
||||
|
||||
if (tipoIdentificacionDoc == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
TipoIdentificacionDoc[] tipoIdentificacionDocs = new TipoIdentificacionDoc[TipoIdentificacionDoc.values().length-1];
|
||||
int j = 0;
|
||||
for (int i = 0 ; i < TipoIdentificacionDoc.values().length ; i ++) {
|
||||
if(tipoIdentificacionDoc.getId().equals(TipoIdentificacionDoc.values()[i].getId())) {
|
||||
continue;
|
||||
}
|
||||
tipoIdentificacionDocs[j] = TipoIdentificacionDoc.values()[i];
|
||||
j++;
|
||||
}
|
||||
return tipoIdentificacionDocs;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue