<?xml version="1.0" encoding="UTF-8"?>
<mapping>
	<actions>
		<!--  Edition -->
		<action path="edit_cmdgiftcheque_" class="com.edeal.frontline.controller.actions.LoadAction">
			<param name="type" value="CmdGiftCheque_" />
			<display code="success" action="/sales/cmdgiftcheque_/edit_action.jsp" body="/sales/cmdgiftcheque_/edit.jsp"/>
		</action>
		<!--  Creation -->			
		<action path="create_cmdgiftcheque_" class="com.edeal.frontline.controller.actions.LoadAction">
			<param name="type" value="CmdGiftCheque_" />	
			<initializer 
				class="com.edeal.frontline.initializers.custom.Cmdgiftcheque_Initializer" id="CmdGiftCheque_" scope="request">
				<init_param name="initCgc" method="initStatusCmd"/>
				<init_param name="initCgcCustomer" method="initCorrespondentFromPersonID"/>
			</initializer>
			<display code="success" action="/sales/cmdgiftcheque_/edit_action.jsp" body="/sales/cmdgiftcheque_/edit.jsp"/>			
		</action>
		<!--  Lecture -->			
		<action path="read_cmdgiftcheque_" class="com.edeal.frontline.controller.actions.LoadAction">
			<param name="type" value="CmdGiftCheque_" />	
			<display code="success" action="/sales/cmdgiftcheque_/read_action.jsp" body="/sales/cmdgiftcheque_/read.jsp"/>			
		</action>		
		<!--  Sauvegarde -->
   		<action path="save_cmdgiftcheque_" class="com.edeal.frontline.controller.actions.SaveAction" > 
			<param name="type" value="CmdGiftCheque_"/>
			<redirect code="success" page="/read_cmdgiftcheque_.fl"/>
			<!-- Code de la liste XML : 10 premiers caracteres de l'objet -->
		</action>
		
		<action path="save_cmdgiftcheque_generate_giftChq" class="com.edeal.frontline.controller.actions.SaveAction" > 
			<param name="type" value="CmdGiftCheque_"/>
			<!-- <redirect code="success" page="/generer_giftcheque_.fl"/> -->
			<redirect code="success" page="/read_cmdgiftcheque_.fl"/>
			<!-- Code de la liste XML : 10 premiers caracteres de l'objet -->
		</action>
		
		<!--  Suppression  -->
		<action path="delete_cmdgiftcheque_" class="com.edeal.frontline.controller.actions.DeleteAction">
			<param name="type" value="CmdGiftCheque_" />
			<redirect keepAttr="softwareOnly" code="success" page="/list_criteria.fl?lc=CMDGIFTCHQ"/>
		</action>
		<action path="refresh_cmdgiftcheque_" class="com.edeal.frontline.controller.actions.RefreshAction" allowAnonymous="false">
			<param name="type" value="CmdGiftCheque_"/>
	   		<display code="success" action="/sales/cmdgiftcheque_/read_action.jsp" body="/sales/cmdgiftcheque_/read.jsp" />	
		</action>
		<!-- Genere les Cheikh kdo -->
		<action path="generer_giftcheque_" class="com.edeal.frontline.controller.actions.custom.GenerateGiftCheques" allowAnonymous="false">
			<redirect code="success" page="/read_cmdgiftcheque_.fl"/>
		</action>
		<action path="imprimer_Cmdgiftcheques_" class="com.edeal.frontline.controller.actions.custom.ImprimerGiftCheques" allowAnonymous="false">
			<redirect code="success" page="/read_cmdgiftcheque_.fl"/>
		</action>
		<action path="Aimprimer_Cmdgiftcheques_" class="com.edeal.frontline.controller.actions.custom.AimprimerGiftCheques" allowAnonymous="false">
			<redirect code="success" page="/read_cmdgiftcheque_.fl"/>
		</action>
		<action path="confirmer_cmdgiftcheque_" class="com.edeal.frontline.controller.actions.custom.ConfirmerEnvoiCheques" allowAnonymous="false">
			<param name="type" value="CmdGiftCheque_" />
			<redirect code="success" page="/read_cmdgiftcheque_.fl"/>
		</action>
		<action path="confirmerImpression_cmdgiftcheque_" class="com.edeal.frontline.controller.actions.custom.ConfirmerImpressionCmdGiftCheque" allowAnonymous="false">
			<param name="type" value="CmdGiftCheque_" />
			<redirect code="success" page="/read_cmdgiftcheque_.fl"/>
		</action>
		<action path="generer_gift_calage" class="com.edeal.frontline.controller.actions.RefreshAction"
			 allowAnonymous="false">
			<param name="type" value="CmdGiftCheque_"/>
			<forward code="success" page="/sales/cmdgiftcheque_/GenererGiftCq.jsp"/>
		</action>
		<action path="demander_num_invalider" class="com.edeal.frontline.controller.actions.RefreshAction"
			 allowAnonymous="false">
			<param name="type" value="CmdGiftCheque_"/>
			<forward code="success" page="/sales/cmdgiftcheque_/popupInvaliderCalage.jsp"/>
		</action>
		<action path="demander_num_remplacer" class="com.edeal.frontline.controller.actions.RefreshAction"
			 allowAnonymous="false">
			<param name="type" value="CmdGiftCheque_"/>
			<forward code="success" page="/sales/cmdgiftcheque_/popupRemplacerCalage.jsp"/>
		</action>
		<action path="addfile_cmdgiftcheque_" class="com.edeal.frontline.controller.actions.LoadAction">
			<param name="type" value="CmdGiftCheque_" />
			<forward code="success" page="/sales/cmdgiftcheque_/addfile.jsp"/>
		</action>
		<action path="update_numeros_ccs" class="com.edeal.frontline.controller.actions.custom.UpdateCmdGiftCheque" 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="confirmer_impression_cheque_cadeau" class="com.edeal.frontline.controller.actions.custom.ConfirmerImpressionCheque" 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="invalider_cheque_cadeau_ajax" class="com.edeal.frontline.controller.actions.custom.InvaliderChequeCadeau" 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="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="export_sage_CCadeaux" class="com.edeal.frontline.controller.export.actions.SageExportAction" allowAnonymous="true">
			<redirect code="success" page="/download"/>
			<display code="failure" action="/navigation/user_choice_action.jsp" body="/errors/failure_Sage_Export_.jsp"/>
		</action>
		<action path="test_num_giftcheque" class="com.edeal.frontline.controller.actions.custom.TestNumGiftcheque"	 allowAnonymous="false" loginPage="/login_ajax.jsp">
		   		<forward code="success" page="/common/jsonccgch.jsp"/>					
		</action>
		
	</actions>	
</mapping>
