fabio 2017-12-08 17:20:19 +00:00
parent d7004af6df
commit cad03bfb89
4 changed files with 6 additions and 3 deletions

View File

@ -12,10 +12,8 @@ import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Textbox; import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.Pricing;
import com.rjconsultores.ventaboletos.entidad.PricingEspecifico; import com.rjconsultores.ventaboletos.entidad.PricingEspecifico;
import com.rjconsultores.ventaboletos.service.PricingEspecificoService; import com.rjconsultores.ventaboletos.service.PricingEspecificoService;
import com.rjconsultores.ventaboletos.service.PricingService;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;

View File

@ -99,6 +99,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPricingVigencia
*/ */
@Controller("editarPricingController") @Controller("editarPricingController")
@Scope("prototype") @Scope("prototype")
@SuppressWarnings("unused")
public class EditarPricingController extends MyGenericForwardComposer { public class EditarPricingController extends MyGenericForwardComposer {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

View File

@ -60,6 +60,7 @@ public class EditarPricingOcupaAntecipaAutomaticoController extends MyGenericFor
private ConstraintPorcentagem ct; private ConstraintPorcentagem ct;
private static Logger log = Logger.getLogger(EditarPricingOcupaAntecipaController.class); private static Logger log = Logger.getLogger(EditarPricingOcupaAntecipaController.class);
@SuppressWarnings("unchecked")
@Override @Override
public void doAfterCompose(Component comp) throws Exception { public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp); super.doAfterCompose(comp);

View File

@ -81,7 +81,10 @@ public class EditarPricingOcupaAntecipaController extends MyGenericForwardCompos
} }
lsPricingOcupaAntecipa = pricingOcupaAntecipaService.updateList(pricingOcupaAntecipa); lsPricingOcupaAntecipa = pricingOcupaAntecipaService.updateList(pricingOcupaAntecipa);
if( !lsPricingOcupaAntecipa.isEmpty() ) {
pricingOcupaAntecipaList.setData(lsPricingOcupaAntecipa); pricingOcupaAntecipaList.setData(lsPricingOcupaAntecipa);
}
if (lsPricingOcupaAntecipa.contains(pricingOcupaAntecipa)) { if (lsPricingOcupaAntecipa.contains(pricingOcupaAntecipa)) {
pricingOcupaAntecipa = lsPricingOcupaAntecipa.get(lsPricingOcupaAntecipa.indexOf(pricingOcupaAntecipa)); pricingOcupaAntecipa = lsPricingOcupaAntecipa.get(lsPricingOcupaAntecipa.indexOf(pricingOcupaAntecipa));