pequenos ajusetes da demanda de calculo da artesp 6401
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@45663 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
501b99a0eb
commit
cf4bcc1c09
|
@ -65,7 +65,7 @@ public class EditarTarifaKmController extends MyGenericForwardComposer {
|
||||||
private Button btnRemoverTarifaKm;
|
private Button btnRemoverTarifaKm;
|
||||||
private OrgaoConcedente orgao;
|
private OrgaoConcedente orgao;
|
||||||
private MyTextboxDecimal txtValor;
|
private MyTextboxDecimal txtValor;
|
||||||
private Intbox txtKm;
|
private MyTextboxDecimal txtKm;
|
||||||
private static Logger log = Logger.getLogger(EditarTarifaKmController.class);
|
private static Logger log = Logger.getLogger(EditarTarifaKmController.class);
|
||||||
|
|
||||||
|
|
||||||
|
@ -246,8 +246,8 @@ public class EditarTarifaKmController extends MyGenericForwardComposer {
|
||||||
txtValor.setConstraint("");
|
txtValor.setConstraint("");
|
||||||
txtKm.setText("");
|
txtKm.setText("");
|
||||||
txtValor.setText("");
|
txtValor.setText("");
|
||||||
txtKm.setConstraint("no empty, no zero, no negative");
|
txtKm.setConstraint("no empty, no zero, no negative, /[0-9]+(\\,[0-9][0-9]?)?/");
|
||||||
txtValor.setConstraint("no empty, no zero, no negative");
|
txtValor.setConstraint("no empty, no zero, no negative, /[0-9]+(\\,[0-9][0-9]?)?/");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnAdicionarTarifaKm(Event ev) throws InterruptedException {
|
public void onClick$btnAdicionarTarifaKm(Event ev) throws InterruptedException {
|
||||||
|
@ -284,7 +284,7 @@ public class EditarTarifaKmController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
TarifaKm km = new TarifaKm();
|
TarifaKm km = new TarifaKm();
|
||||||
km.setOrgaoconcedenteId((orgao) );
|
km.setOrgaoconcedenteId((orgao) );
|
||||||
km.setKmate(txtKm.getValue());
|
km.setKmate(txtKm.getValueDecimal());
|
||||||
km.setValortaxa(txtValor.getValueDecimal());
|
km.setValortaxa(txtValor.getValueDecimal());
|
||||||
km.setActivo(true);
|
km.setActivo(true);
|
||||||
km.setFecmodif(Calendar.getInstance().getTime());
|
km.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
@ -387,11 +387,11 @@ public class EditarTarifaKmController extends MyGenericForwardComposer {
|
||||||
this.orgao = orgao;
|
this.orgao = orgao;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Intbox getTxtKm() {
|
public MyTextboxDecimal getTxtKm() {
|
||||||
return txtKm;
|
return txtKm;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTxtKm(Intbox txtKm) {
|
public void setTxtKm(MyTextboxDecimal txtKm) {
|
||||||
this.txtKm = txtKm;
|
this.txtKm = txtKm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,13 +44,14 @@
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarTarifaKmController.km')}"/>
|
<label value="${c:l('editarTarifaKmController.km')}"/>
|
||||||
<intbox id="txtKm" maxlength="5"
|
<textbox id="txtKm"
|
||||||
constraint="no empty, no zero, no negative"/>
|
constraint="no empty, no zero, no negative, /[0-9]+(\,[0-9][0-9]?)?/ "
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="6" scale="2"/>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarTarifaKmController.valor')}"/>
|
<label value="${c:l('editarTarifaKmController.valor')}"/>
|
||||||
<textbox id="txtValor"
|
<textbox id="txtValor"
|
||||||
constraint="no empty, no zero, no negative"
|
constraint="no empty, no zero, no negative, /[0-9]+(\,[0-9][0-9]?)?/ "
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="6" scale="2"/>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="6" scale="2"/>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
|
Loading…
Reference in New Issue