| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 
 |  
public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
 
		try {
			FactureForm factureForm = (FactureForm) form;
			FacturationServiceImpl factureService = (FacturationServiceImpl) getWebApplicationContext()
					.getBean("facturationService");
 
			if (TypeFacture.AUTRE_FOURNISSEUR.name().equals(
					factureForm.getTypeFacture())) {
				List<TypeReglement> typeReglements = factureService
						.listerTypeReglement("XX");
 
				factureForm.setTypesFactureCombo(ReferentielUtils
						.getTypeReglementReferentiel(typeReglements));
 
			}
 
			if (TypeFacture.AUTRES_REGLEMENTS_SANS_FOURNISSEURS.name().equals(
					factureForm.getTypeFacture())) {
				List<TypeReglement> typeReglements = factureService
						.listerTypeReglement("YY");
 
				factureForm.setTypesFactureCombo(ReferentielUtils
						.getTypeReglementReferentiel(typeReglements));
 
			}
 
			request.setAttribute("factureForm", factureForm);
 
			return mapping.findForward("saisieFact");
 
		} catch (ExceptionTechnique e) {
			e.printStackTrace();
			return null;
		} catch (ExceptionFonctionnelle e) {
			System.out.println(e.getMessage());
			return mapping.findForward("saisieFact");
		}
	} | 
Partager