1 2 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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
| /* Insertion des données dans la grille principale*/
var data = [];
var dataInsertSelect = [];
// remplissage des variables textuelles utilisé en JS.
function insertDataSelect(){
var typeStock;
var dataInsertSelect;
<logic:equal name="TYPE_STOCK" value="HISTORIQUE">
typeStock="HISTORIQUE";
</logic:equal>
<logic:equal name="TYPE_STOCK" value="RAPPROCHEMENT">
typeStock="RAPPROCHEMENT";
</logic:equal>
return typeStock;
}
function insertData(){
var dataInsert = [];
var i=0;
var mtBac;
var mtSolde;
var mtNonJustifCtv;
var mtJustif;
var mtJustifCtv;
var cdJustif;
var libJustif;
<logic:present name="TB_LIGNE_CPTA_RAPPROCH_BEAN_LIST">
<logic:iterate id="elementAgregat" name="TB_LIGNE_CPTA_RAPPROCH_BEAN_LIST" type="com.bnpparibas.bacso.common.bean.TbLigneCptaRapprochBean">
<logic:equal name="ID_PERIODICITE" value="SJ">
mtBac = parseFloat("<bean:write name='elementAgregat' property='mtSoldeBacSj'/>");
mtSolde = parseFloat("<bean:write name='elementAgregat' property='mtSoldeSoSj'/>");
mtNonJustifCtv = parseFloat("<bean:write name='elementAgregat' property='mtNonJustifCtv'/>");
mtJustif = parseFloat("<bean:write name='elementAgregat' property='mtJustifSj'/>");
mtJustifCtv = parseFloat("<bean:write name='elementAgregat' property='mtJustifCtv'/>");
cdJustif = "<bean:write name='elementAgregat' property='cdJustifSj'/>";
libJustif = "<bean:write name='elementAgregat' property='lib_justif'/>";
mtEcart = parseFloat("<bean:write name='elementAgregat' property='mtEcartSj'/>");
mtEcartCtv = parseFloat("<bean:write name='elementAgregat' property='mtEcartCtvSj'/>");
mtEcartNet = parseFloat("<bean:write name='elementAgregat' property='mtEcartNetSj'/>");
mtEcartNetCtv = parseFloat("<bean:write name='elementAgregat' property='mtEcartNetCtvSj'/>");
cdResultatRapproch = "<bean:write name='elementAgregat' property='cdResultatRapprochSj'/>";
</logic:equal>
<logic:equal name="ID_PERIODICITE" value="MD">
mtBac = parseFloat("<bean:write name='elementAgregat' property='mtSoldeBacMd'/>");
mtSolde = parseFloat("<bean:write name='elementAgregat' property='mtSoldeSoMd'/>");
mtNonJustifCtv = parseFloat("<bean:write name='elementAgregat' property='mtNonJustifCtv'/>");
mtJustif = parseFloat("<bean:write name='elementAgregat' property='mtJustifMd'/>");
mtJustifCtv = parseFloat("<bean:write name='elementAgregat' property='mtJustifCtv'/>");
cdJustif = "<bean:write name='elementAgregat' property='cdJustifMd'/>";
libJustif = "<bean:write name='elementAgregat' property='lib_justif'/>";
mtEcart = parseFloat("<bean:write name='elementAgregat' property='mtEcartMd'/>");
mtEcartCtv = parseFloat("<bean:write name='elementAgregat' property='mtEcartCtvMd'/>");
mtEcartNet = parseFloat("<bean:write name='elementAgregat' property='mtEcartNetMd'/>");
mtEcartNetCtv = parseFloat("<bean:write name='elementAgregat' property='mtEcartNetCtvMd'/>");
cdResultatRapproch = "<bean:write name='elementAgregat' property='cdResultatRapprochMd'/>";
</logic:equal>
dataInsert[i]={id:"<bean:write name='elementAgregat' property='idCleRapproch'/>",
cdEntite:"<bean:write name='elementAgregat' property='cdEntite'/>",
cdSDBR:"<bean:write name='elementAgregat' property='cdSDBR'/>",
cdSDBLOC:"<bean:write name='elementAgregat' property='cdSDBLOC'/>",
cdResultatRapproch:cdResultatRapproch,
noProduitRapproch:"<bean:write name='elementAgregat' property='noProduitRapproch'/>",
noCompteRapproch:"<bean:write name='elementAgregat' property='noCompteRapproch'/>",
cdDevise:"<bean:write name='elementAgregat' property='cdDevise'/>",
noDossierRapproch:"<bean:write name='elementAgregat' property='noDossierRapproch'/>",
noOperationRapproch:"<bean:write name='elementAgregat' property='noOperationRapproch'/>",
cdJustif:cdJustif,
mtEcartNetCtv:mtEcartNetCtv,
mtSoldeBac:mtBac,
mtSoldeSo:mtSolde,
mtEcart:mtEcart,
mtEcartCtv:mtEcartCtv,
mtJustif:mtJustif,
mtEcartNet:mtEcartNet,
cdGestion:"<bean:write name='elementAgregat' property='cdGestion'/>",
auteurJustif:"<bean:write name='elementAgregat' property='auteurJustif'/>",
dtJustif:"<bean:write name='elementAgregat' property='dtJustifISO'/>",
dateMajEcart:"<bean:write name='elementAgregat' property='dtModificationEcartISO'/>",
dateEcart:"<bean:write name='elementAgregat' property='dtApparitionEcartISO'/>",
libJustif:libJustif,
mtJustifCtv:mtJustifCtv,
mtNonJustifCtv:mtNonJustifCtv,
noPtf:"<bean:write name='elementAgregat' property='noPtf'/>"};i++;</logic:iterate>
</logic:present>
return dataInsert;
}
data = insertData();
dataInsertSelect = insertDataSelect(); |
Partager