<?xml version="1.0" encoding="UTF-8"?>
<mapping>
	<actions>
		<!--  Edition -->
		<action path="edit_giftcheque_" class="com.edeal.frontline.controller.actions.LoadAction">
			<param name="type" value="GiftCheque_" />
			<display code="success" action="/sales/giftcheque_/edit_action.jsp" body="/sales/giftcheque_/edit.jsp"/>
		</action>
		<!--  Creation -->			
		<action path="create_giftcheque_" class="com.edeal.frontline.controller.actions.custom.GiftCheque_LoadAction">
			<param name="type" value="GiftCheque_" />	
			<display code="success" action="/sales/giftcheque_/edit_action.jsp" body="/sales/giftcheque_/edit.jsp"/>
			<display code="failure" action="/navigation/user_choice_action.jsp" body="/errors/failure_loading_GiftCheque_.jsp"/>
			<initializer class="com.edeal.frontline.initializers.custom.GiftCheque_Initializer" id="GiftCheque_" scope="request">
				<init_param name="GchNumber" method="initGiftChequeNumber"/>
				<init_param name="GchValidityDt" method="initGiftChequeGchValidityDt"/>
				<init_param name="initGchCgcID" setProperty="GchCgcID"/>
			</initializer>			
		</action>
		<!--  Lecture -->			
		<action path="read_giftcheque_" class="com.edeal.frontline.controller.actions.LoadAction">
			<param name="type" value="GiftCheque_" />	
			<display code="success" action="/sales/giftcheque_/read_action.jsp" body="/sales/giftcheque_/read.jsp"/>			
		</action>		
		<!--  Sauvegarde -->
   		<action path="save_giftcheque_" class="com.edeal.frontline.controller.actions.SaveAction" > 
			<param name="type" value="GiftCheque_"/>
			<redirect code="success" page="/read_giftcheque_.fl"/>
			<!-- Code de la liste XML : 10 premiers caracteres de l'objet -->
		</action>
		<!--  Suppression  -->
		<action path="delete_giftcheque_" class="com.edeal.frontline.controller.actions.DeleteAction">
			<param name="type" value="GiftCheque_" />
			<redirect keepAttr="softwareOnly" code="success" page="/list_criteria.fl?lc=GIFTCHQ"/>
		</action>
		
		<action path="imprimer_giftcheque_" class="com.edeal.frontline.controller.actions.custom.ImprimerGiftChequeAction" allowAnonymous="false">
			<redirect code="success" page="/read_giftcheque_.fl"/>
		</action>
		
		<action path="changer_statutGiftCheque_" class="com.edeal.frontline.controller.actions.RefreshAction" allowAnonymous="false">
			<param name="type" value="GiftCheque_" />
			<forward code="success" page="/sales/giftcheque_/changer_statut.jsp" />
		</action>
		
		<action path="refresh_giftcheque_" class="com.edeal.frontline.controller.actions.RefreshAction" allowAnonymous="false">
			<param name="type" value="GiftCheque_"/>
	   		<display code="success" action="/sales/giftcheque_/edit_action.jsp" body="/sales/giftcheque_/edit.jsp" />	
		</action>
		
		<!-- Le nouveau statut d'un chèque cadeau ayant été mal-imprimé a été renseigné: il ne faut plus demander la confirmation de son impression-->
		<action path="confirmer_statutGiftCheque_" class="com.edeal.frontline.controller.actions.custom.ChangerEtatGiftCheque_" allowAnonymous="false">
			<param name="typeChg" value="IMPRCONFOK" />
			<redirect code="success" page="/read_giftcheque_.fl"/>
		</action>
		
		<action path="aimprimer_giftcheque_" class="com.edeal.frontline.controller.actions.custom.ChangerEtatGiftCheque_" allowAnonymous="false">
			<param name="typeChg" value="AIMPR" />
			<redirect code="success" page="/read_giftcheque_.fl"/>
		</action>
		
		<action path="remplacer_giftcheque_" class="com.edeal.frontline.controller.actions.custom.ChangerEtatGiftCheque_" allowAnonymous="false">
			<param name="typeChg" value="REMPL" />
			<redirect code="success" page="/read_giftcheque_.fl"/>
		</action>
		
		<action path="payer_giftcheque_" class="com.edeal.frontline.controller.actions.custom.ChangerEtatGiftCheque_" allowAnonymous="false">
			<param name="typeChg" value="PAY" />
			<redirect code="success" page="/read_giftcheque_.fl"/>
		</action>
		
		<action path="perimer_giftcheque_" class="com.edeal.frontline.controller.actions.custom.ChangerEtatGiftCheque_" allowAnonymous="false">
			<param name="typeChg" value="PERIM" />
			<redirect code="success" page="/read_giftcheque_.fl"/>
		</action>
		
		<action path="facturer_giftcheque_" class="com.edeal.frontline.controller.actions.custom.ChangerEtatGiftCheque_" allowAnonymous="false">
			<param name="typeChg" value="FACT" />
			<redirect code="success" page="/read_giftcheque_.fl"/>
		</action>
		
		
		<action path="inutiliser_giftcheque_" class="com.edeal.frontline.controller.actions.custom.ChangerEtatGiftCheque_" allowAnonymous="false">
			<param name="typeChg" value="INUTIL" />
			<redirect code="success" page="/read_giftcheque_.fl"/>
		</action>
	
		<action path="invalider_giftcheque_" class="com.edeal.frontline.controller.actions.custom.ChangerEtatGiftCheque_" allowAnonymous="false">
			<param name="typeChg" value="INVALID" />
			<redirect code="success" page="/read_giftcheque_.fl"/>
		</action>
		
		<action path="pointer_giftcheque_" class="com.edeal.frontline.controller.actions.custom.ChangerEtatGiftCheque_" allowAnonymous="false">
			<param name="typeChg" value="POINT" />
			<redirect code="success" page="/read_giftcheque_.fl"/>
		</action>
		
		<action path="choisir_bordereau_" class="com.edeal.frontline.controller.actions.RefreshAction" allowAnonymous="false">
			<param name="type" value="GiftCheque_" />
			<forward code="success" page="/sales/giftcheque_/choisir_bordereau.jsp" />
		</action>
		
		<action path="choisir_adherent_" class="com.edeal.frontline.controller.actions.RefreshAction" allowAnonymous="false">
			<param name="type" value="GiftCheque_" />
			<forward code="success" page="/sales/giftcheque_/choisir_adherent.jsp" />
		</action>
		
		<action path="choisir_cheque_impute_" class="com.edeal.frontline.controller.actions.RefreshAction" allowAnonymous="false">
			<param name="type" value="GiftCheque_" />
			<forward code="success" page="/sales/giftcheque_/choisir_cheque_impute.jsp" />
		</action>
		
		<!-- Impression en masse des Cheques cadeaux -->	
		<action path="imprimer_cheques" class="com.edeal.frontline.controller.actions.custom.ImprimerGiftCheque_MassAction" allowAnonymous="false">
			<redirect keepAttr="softwareOnly" code="success" page="/list_criteria.fl?lc=GIFTCHQ_PR"/>
		</action>
		
		<action path="impression_ok_cheques" class="com.edeal.frontline.controller.actions.custom.ValiderImpressionGiftCheque_MassAction" allowAnonymous="false">
			<redirect keepAttr="softwareOnly" code="success" page="/list_criteria.fl?lc=GIFTCHQ_CF"/>
		</action>
		
		<action path="impression_ko_cheques" class="com.edeal.frontline.controller.actions.custom.InvaliderImpressionGiftCheque_MassAction" allowAnonymous="false">
			<redirect keepAttr="softwareOnly" code="success" page="/list_criteria.fl?lc=GIFTCHQ_CF"/>
		</action>
		
		<action path="remettre_impression_cheques" class="com.edeal.frontline.controller.actions.custom.RemettreImpressionGiftCheque_MassAction" allowAnonymous="false">
			<redirect keepAttr="softwareOnly" code="success" page="/list_criteria.fl?lc=GIFTCHQ_CF"/>
		</action>
		
		<action path="export_sage_CCs_paymentSlip" class="com.edeal.frontline.controller.export.actions.SageExportAction" allowAnonymous="false">
			<redirect code="success" page="/read_paymentslip_.fl"/>
			<display code="failure" action="/navigation/user_choice_action.jsp" body="/errors/failure_Sage_Export_.jsp"/>
		</action>
		
		<action path="remettre_impression_cheque_cadeau_ajax" class="com.edeal.frontline.controller.actions.custom.RemettreImpressionCheque" allowAnonymous="false" loginPage="/login_ajax.jsp">
			<forward code="success" page="/common/blank_ajax.jsp"/>
			<forward code="failure" page="/errors/failure_report_ajax.jsp"/>
		</action>
		
		<action path="ajouterCcs_Bordereau" class="com.edeal.frontline.controller.actions.custom.AjouterCCsBordereau" allowAnonymous="true">
			<forward code="success" page="/common/blank_ajax.jsp"/>
			<forward code="failure" page="/errors/failure_report_ajax.jsp"/>
		</action>
		
	</actions>	
</mapping>
