<?xml version="1.0" encoding="ISO-8859-15"?>
<GLOBALS
	name="SP_globals"
	database="iCTI"
	softCode="iCTI_rh">
	<LISTPROVIDERS>
		<!-- Périodes -->
		<LISTPROVIDER name="PERIODE_DEBUT" >
			<OPTION dataLink="PERIODE_DEBUT" dataField="cod" data2Field="mois" labelField="txt" />
		</LISTPROVIDER>
		<LISTPROVIDER name="PERIODE_FIN" >
			<OPTION dataLink="PERIODE_FIN" dataField="cod" data2Field="mois" labelField="txt" />
		</LISTPROVIDER>
		<!-- Regroupements -->
		<LISTPROVIDER name="PST_GROUPBY" tree="false" >
			<OPTION label="Poste" data="PST"   />
		</LISTPROVIDER>
		<LISTPROVIDER name="DPT_GROUPBY" tree="false" >
			<OPTION label="Département" data="DPT"   />
		</LISTPROVIDER>
		<LISTPROVIDER name="SRV_GROUPBY" tree="false" >
			<OPTION label="Service" data="SRV"   />
		</LISTPROVIDER>
		<LISTPROVIDER name="CTG_GROUPBY" tree="false" >
			<OPTION label="Catégorie" data="CTG"   />
		</LISTPROVIDER>
		<LISTPROVIDER name="SAL_GROUPBY" tree="false" >
			<OPTION label="[DICT.RH.SALARIE#1]" data="SAL"   />
		</LISTPROVIDER>
		<!-- Filtres -->
		<LISTPROVIDER name="POSTE" tree="false">
			<OPTION label="Pas de sélection" data="-1"  />
			<OPTION label="Saisie code" data="C*"  />
			<OPTION dataLink="POSTE" dataField="cod" labelField="txt" />
		</LISTPROVIDER>
		<LISTPROVIDER name="DEPARTEMENT" tree="false">
			<OPTION label="Pas de sélection" data="-1"  />
			<OPTION label="Saisie code" data="C*"  />
			<OPTION dataLink="DEPARTEMENT" dataField="cod" labelField="txt" />
		</LISTPROVIDER>
		<LISTPROVIDER name="SERVICE" tree="false">
			<OPTION label="Pas de sélection" data="-1"  />
			<OPTION label="Saisie code" data="C*"  />
			<OPTION dataLink="SERVICE" dataField="cod" labelField="txt" />
		</LISTPROVIDER>
		<LISTPROVIDER name="CATEGORIE" tree="false">
			<OPTION label="Pas de sélection" data="-1"  />
			<OPTION label="Saisie code" data="C*"  />
			<OPTION dataLink="CATEGORIE" dataField="cod" labelField="txt" />
		</LISTPROVIDER>
		<LISTPROVIDER name="SALARIE" tree="false">
			<OPTION label="Pas de sélection" data="-1"  />
			<OPTION label="Saisie code" data="C*"  />
			<OPTION dataLink="SALARIE" dataField="cod" labelField="txt" />
		</LISTPROVIDER>
	</LISTPROVIDERS>
	<QUERIES>
		<!-- Périodes -->
		<QUERY type="comboLink" name="PERIODE_DEBUT" > 
			<SQL select="SELECT p_calendrier.date, p_calendrier_mois.texte 
				FROM rh.p_chiffrier_production 
					JOIN base.p_calendrier_mois ON (p_chiffrier_production.mois = p_calendrier_mois.mois)
					JOIN base.p_calendrier ON (p_calendrier_mois.mois = p_calendrier.mois AND extract (day from p_calendrier.date) = 1)
				GROUP BY 1,2
				ORDER BY 1 DESC" >
				<FIELDS>
					<FIELD name="cod" />
					<FIELD name="txt" />
				</FIELDS>
			</SQL>
		</QUERY>
		<QUERY type="comboLink" name="PERIODE_FIN" > 
			<SQL select="SELECT p_calendrier.date, p_calendrier_mois.texte 
				FROM rh.p_chiffrier_production 
					JOIN base.p_calendrier_mois ON (p_chiffrier_production.mois = p_calendrier_mois.mois)
					JOIN base.p_calendrier ON (p_calendrier_mois.mois = p_calendrier.mois AND p_calendrier.dernier_jour = '1')
				GROUP BY 1,2
				ORDER BY 1 DESC" >
				<FIELDS>
					<FIELD name="cod" />
					<FIELD name="txt" />
				</FIELDS>
			</SQL>
		</QUERY>
		<!-- Regroupements -->
		<!-- Filtres -->
		<QUERY type="comboLink" name="POSTE" > 
			<SQL select="SELECT oid, texte FROM rh_octime.t_poste" >
				<FIELDS>
					<FIELD name="cod" />
					<FIELD name="txt" />
				</FIELDS>
			</SQL>
		</QUERY>
		<QUERY type="comboLink" name="DEPARTEMENT" > 
			<SQL select="SELECT oid, texte FROM rh_octime.t_departement" >
				<FIELDS>
					<FIELD name="cod" />
					<FIELD name="txt" />
				</FIELDS>
			</SQL>
		</QUERY>
		<QUERY type="comboLink" name="SERVICE" > 
			<SQL select="SELECT oid, texte FROM rh_octime.t_service" >
				<FIELDS>
					<FIELD name="cod" />
					<FIELD name="txt" />
				</FIELDS>
			</SQL>
		</QUERY>
		<QUERY type="comboLink" name="CATEGORIE" > 
			<SQL select="SELECT oid, texte FROM rh_octime.t_categorie" >
				<FIELDS>
					<FIELD name="cod" />
					<FIELD name="txt" />
				</FIELDS>
			</SQL>
		</QUERY>
		<QUERY type="comboLink" name="SALARIE" > 
			<SQL select="SELECT oid, texte FROM rh_octime.p_salarie" >
				<FIELDS>
					<FIELD name="cod" />
					<FIELD name="txt" />
				</FIELDS>
			</SQL>
		</QUERY>
	</QUERIES>
</GLOBALS>
