0019878: Espec - Alteração regra de Pricing por Trecho
bug#19878 dev: qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@103300 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
28e6bd73c1
commit
9735e92c0d
|
@ -244,6 +244,9 @@ public class EditarPricingController extends PricingController {
|
|||
private Combobox cmbIndGeneraFeriadoFechaViaje;
|
||||
private Integer buscarPricingInativosAtivos;
|
||||
|
||||
private Radio rdOcupacaoTrechoSim;
|
||||
private Radio rdOcupacaoTrechoNao;
|
||||
|
||||
|
||||
private void clearCombobox(Combobox combobox) {
|
||||
int size = combobox.getItemCount();
|
||||
|
@ -563,6 +566,10 @@ public class EditarPricingController extends PricingController {
|
|||
if (pricing.getDescuentoporcentaje() != null) {
|
||||
radioPor.setChecked(true);
|
||||
}
|
||||
|
||||
rdOcupacaoTrechoSim.setChecked(pricing.getIndOcupacaoPorTrecho());
|
||||
rdOcupacaoTrechoNao.setChecked(!pricing.getIndOcupacaoPorTrecho());
|
||||
|
||||
if (lsPricingImporte.size() > 0) {
|
||||
radioImp.setChecked(true);
|
||||
onClick$radioImp(null);
|
||||
|
@ -980,26 +987,15 @@ public class EditarPricingController extends PricingController {
|
|||
|
||||
pricing.setEmpresa((Empresa) cmbEmpresa.getSelectedItem().getValue());
|
||||
|
||||
if (rdTransSi.isChecked()) {
|
||||
pricing.setIndtransferible(Boolean.TRUE);
|
||||
} else {
|
||||
pricing.setIndtransferible(Boolean.FALSE);
|
||||
}
|
||||
if (rdCanceSi.isChecked()) {
|
||||
pricing.setIndcancelable(Boolean.TRUE);
|
||||
} else {
|
||||
pricing.setIndcancelable(Boolean.FALSE);
|
||||
}
|
||||
if (rdReserSi.isChecked()) {
|
||||
pricing.setIndreservable(Boolean.TRUE);
|
||||
} else {
|
||||
pricing.setIndreservable(Boolean.FALSE);
|
||||
}
|
||||
if (rdExibirVendaSi.isChecked()) {
|
||||
pricing.setExibeVenda(Boolean.TRUE);
|
||||
} else {
|
||||
pricing.setExibeVenda(Boolean.FALSE);
|
||||
}
|
||||
pricing.setIndtransferible(rdTransSi.isChecked());
|
||||
|
||||
pricing.setIndcancelable(rdCanceSi.isChecked());
|
||||
|
||||
pricing.setIndreservable(rdReserSi.isChecked());
|
||||
|
||||
pricing.setExibeVenda(rdExibirVendaSi.isChecked());
|
||||
|
||||
pricing.setIndOcupacaoPorTrecho(rdOcupacaoTrechoSim.isChecked());
|
||||
|
||||
if (gravarNovo) {
|
||||
List<Pricing> lsPricing =
|
||||
|
@ -2537,4 +2533,19 @@ public class EditarPricingController extends PricingController {
|
|||
return ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_FORMAPAGO_PRICING_INATIVO.getDescricao(), "1");
|
||||
}
|
||||
|
||||
public Radio getRdOcupacaoTrechoSim() {
|
||||
return rdOcupacaoTrechoSim;
|
||||
}
|
||||
|
||||
public void setRdOcupacaoTrechoSim(Radio rdOcupacaoTrechoSim) {
|
||||
this.rdOcupacaoTrechoSim = rdOcupacaoTrechoSim;
|
||||
}
|
||||
|
||||
public Radio getRdOcupacaoTrechoNao() {
|
||||
return rdOcupacaoTrechoNao;
|
||||
}
|
||||
|
||||
public void setRdOcupacaoTrechoNao(Radio rdOcupacaoTrechoNao) {
|
||||
this.rdOcupacaoTrechoNao = rdOcupacaoTrechoNao;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3435,6 +3435,7 @@ editarPricingController.lhCantDias.label = Días de anticipación
|
|||
editarPricingController.nombrePricing.label = Nombre pricing
|
||||
editarPricingController.nombrePricingEsp.label = Nombre pricing específico
|
||||
editarPricingController.trans.label = Puede transferir?
|
||||
editarPricingController.ocupacaoPorTrecho.label = Ocupación por Tramo
|
||||
editarPricingController.origem.label = Origen
|
||||
editarPricingController.destino.label = Destino
|
||||
editarPricingController.cance.label = Puede cancelar?
|
||||
|
|
|
@ -3645,6 +3645,7 @@ editarPricingController.lhCantDias.label = Dias de Antecipação
|
|||
editarPricingController.nombrePricing.label = Nome Pricing
|
||||
editarPricingController.nombrePricingEsp.label = Nome Pricing Específico
|
||||
editarPricingController.trans.label = Pode Transferir?
|
||||
editarPricingController.ocupacaoPorTrecho.label = Ocupação por Trecho
|
||||
editarPricingController.origem.label = Origem
|
||||
editarPricingController.destino.label = Destino
|
||||
editarPricingController.cance.label = Pode Cancelar?
|
||||
|
|
|
@ -69,15 +69,28 @@
|
|||
<column width="30%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row spans="1,3">
|
||||
<row >
|
||||
<label
|
||||
value="${c:l('editarPricingController.nombrePricing.label')}" />
|
||||
<textbox id="nombrePricing"
|
||||
constraint="no empty" maxlength="60"
|
||||
value="@{winEditarPricing$composer.pricing.nombPricing}"
|
||||
width="50%"
|
||||
width="95%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
|
||||
<label
|
||||
value="${c:l('editarPricingController.ocupacaoPorTrecho.label')}" />
|
||||
<radiogroup Id="radioOcupacaoTrecho">
|
||||
<hbox align="center">
|
||||
<radio Id="rdOcupacaoTrechoSim"
|
||||
label="${c:l('editarPricingController.si.label')}"
|
||||
/>
|
||||
<radio Id="rdOcupacaoTrechoNao"
|
||||
label="${c:l('editarPricingController.no.label')}" checked="true" />
|
||||
</hbox>
|
||||
</radiogroup>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPricingController.cmbIndGeneraFeriadoFechaViaje.value')}" />
|
||||
|
|
Loading…
Reference in New Issue