Lima-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- 1907 discussions
Author: rchapelet
Date: 2009-08-26 17:17:26 +0200 (Wed, 26 Aug 2009)
New Revision: 2692
Added:
trunk/doc/exemples/
trunk/doc/exemples/Base
trunk/doc/exemples/CAS_1
trunk/doc/exemples/CAS_2
trunk/doc/exemples/cas_1_enonce
trunk/doc/exemples/cas_2_enonce
trunk/doc/exemples/pcg
Log:
Ajout des fichiers de sauvegarde :
. Bases : pgc et journaux et exercices
. pcg
. Cas 1 et 2 : deux cas d'entreprises fictives
Added: trunk/doc/exemples/Base
===================================================================
--- trunk/doc/exemples/Base (rev 0)
+++ trunk/doc/exemples/Base 2009-08-26 15:17:26 UTC (rev 2692)
@@ -0,0 +1,40 @@
+"01/01/2009"
+"31/12/2009"
+"C";"2";"COMPTES D'IMMOBILISATIONS";"actif";"org.chorem.callao.entity.Account#1249638211102#0.6695654783575262"
+"C";"3";"COMPTES DE STOCKS ET EN-COURS";"actif";"org.chorem.callao.entity.Account#1249638211110#0.2524438043888303"
+"C";"4";"COMPTES DE TIERS";"actif";"org.chorem.callao.entity.Account#1249638211135#0.7681130395705754"
+"C";"5";"COMPTES FINANCIERS";"actif";"org.chorem.callao.entity.Account#1249638211143#0.0760231194449087"
+"C";"6";"COMPTES DE CHARGES";"actif";"org.chorem.callao.entity.Account#1249638211151#0.28023249611594714"
+"C";"7";"COMPTES DE PRODUITS";"actif";"org.chorem.callao.entity.Account#1249638211175#0.3102595895960787"
+"C";"8";"COMPTES SPECIAUX";"actif";"org.chorem.callao.entity.Account#1249638211180#0.954785191258915"
+"C";"1";"COMPTES DE CAPITAUX";"Passif";"org.chorem.callao.entity.Account#1249638211190#0.9341494144126103"
+"C";"201";"Frais d'établissement";"Actif";"org.chorem.callao.entity.Account#1249638211277#0.15663762180885632"
+"C";"206";"Droit au bail";"Actif";"org.chorem.callao.entity.Account#1249638211291#0.14287582798957388"
+"C";"21";"Immobilisations corporelles";"Actif";"org.chorem.callao.entity.Account#1249638211304#0.12609490228366194"
+"C";"218";"Autres immobilisations corporelles";"Actif";"org.chorem.callao.entity.Account#1249638211318#0.7671785855577807"
+"C";"401";"Fournisseurs";"Passif";"org.chorem.callao.entity.Account#1249638211332#0.6751106748395758"
+"C";"411";"Clients";"Actif";"org.chorem.callao.entity.Account#1249638211340#0.6707772111148098"
+"C";"53";"Caisse";"Actif";"org.chorem.callao.entity.Account#1249638211350#0.11489132874509123"
+"C";"60";"ACHATS";"Charge";"org.chorem.callao.entity.Account#1249638211359#0.2825279545610557"
+"C";"63";"Impôts, taxes et versements assimilés";"Charge";"org.chorem.callao.entity.Account#1249638211371#0.46801547007538913"
+"C";"64";"Charges de personnel";"Charge";"org.chorem.callao.entity.Account#1249638211381#0.3303839931189453"
+"C";"607";"Achas de marchandises";"Charge";"org.chorem.callao.entity.Account#1249638211390#0.20473204793368127"
+"C";"707";"Ventes de marchandises";"Produit";"org.chorem.callao.entity.Account#1249638211401#0.9800198509477336"
+"C";"105";"Ecarts de réévaluation";"Passif";"org.chorem.callao.entity.Account#1249638211410#0.6281902026988848"
+"C";"106";"Réserves";"Passif";"org.chorem.callao.entity.Account#1249638211463#0.34549599313150203"
+"C";"101";"Capital";"Passif";"org.chorem.callao.entity.Account#1249638211469#0.46562414821511555"
+"C";"10500000";"Ecarts de réévaluation";"actif";"org.chorem.callao.entity.Account#1249638211482#0.3390231288717702"
+"C";"1061";"Réserve légale";"actif";"org.chorem.callao.entity.Account#1249638211491#0.37872475937759864"
+"C";"1062";"Réserves indisponibles";"actif";"org.chorem.callao.entity.Account#1249638211500#0.12130757560437488"
+"C";"1063";"Réserves statutaires ou contractuelles";"actif";"org.chorem.callao.entity.Account#1249638211508#0.7414574326786728"
+"C";"1064";"Réserves réglementes";"actif";"org.chorem.callao.entity.Account#1249638211514#0.7658153814026493"
+"C";"1068";"Autres réserves";"actif";"org.chorem.callao.entity.Account#1249638211525#0.7304443412274442"
+"C";"10610000";"Réserve légale";"actif";"org.chorem.callao.entity.Account#1249638211533#0.8754040083328478"
+"C";"10611000";"réserve légale";"actif";"org.chorem.callao.entity.Account#1249638211545#0.1928473045372302"
+"C";"10620000";"Réserves indisponibles";"actif";"org.chorem.callao.entity.Account#1249638211554#0.7070796892567613"
+"C";"10630000";"Réserves statutaires ou contractuelles";"actif";"org.chorem.callao.entity.Account#1249638211570#0.8887261283375415"
+"C";"10640000";"Réserves réglementes";"acif";"org.chorem.callao.entity.Account#1249638211586#0.24221998943986145"
+"C";"10100000";"Capital";"actif";"org.chorem.callao.entity.Account#1249638211596#0.11648676995490248"
+"C";"10131000";"Capital non amorti";"actif";"org.chorem.callao.entity.Account#1249638211606#0.6606461553005013"
+"J";"Journal des ventes";"JV";"Journal des ventes";"org.chorem.callao.entity.Journal#1249638211610#0.8167846883337093"
+"J";"Journal des achats";"AC";"Journal des achats";"org.chorem.callao.entity.Journal#1249638211615#0.8657612211581917"
Added: trunk/doc/exemples/CAS_1
===================================================================
--- trunk/doc/exemples/CAS_1 (rev 0)
+++ trunk/doc/exemples/CAS_1 2009-08-26 15:17:26 UTC (rev 2692)
@@ -0,0 +1,67 @@
+"01/01/2009"
+"31/12/2009"
+"C";"2";"COMPTES D'IMMOBILISATIONS";"actif";"org.chorem.callao.entity.Account#1249555347959#0.9019304796412684"
+"C";"3";"COMPTES DE STOCKS ET EN-COURS";"actif";"org.chorem.callao.entity.Account#1249555347984#0.4908833205081513"
+"C";"4";"COMPTES DE TIERS";"actif";"org.chorem.callao.entity.Account#1249555347993#0.01567348299581306"
+"C";"5";"COMPTES FINANCIERS";"actif";"org.chorem.callao.entity.Account#1249555348000#0.6004750737819512"
+"C";"6";"COMPTES DE CHARGES";"actif";"org.chorem.callao.entity.Account#1249555348022#0.930622399756405"
+"C";"7";"COMPTES DE PRODUITS";"actif";"org.chorem.callao.entity.Account#1249555348027#0.6782322672056709"
+"C";"8";"COMPTES SPECIAUX";"actif";"org.chorem.callao.entity.Account#1249555348076#0.6190508684748437"
+"C";"1";"COMPTES DE CAPITAUX";"Passif";"org.chorem.callao.entity.Account#1249555347952#0.9924023380704713"
+"C";"201";"Frais d'établissement";"Actif";"org.chorem.callao.entity.Account#1249555348338#0.04260276658110562"
+"C";"206";"Droit au bail";"Actif";"org.chorem.callao.entity.Account#1249555348347#0.18726180615226806"
+"C";"21";"Immobilisations corporelles";"Actif";"org.chorem.callao.entity.Account#1249555497020#0.6505535213374983"
+"C";"218";"Autres immobilisations corporelles";"Actif";"org.chorem.callao.entity.Account#1249555618637#0.47602527280737383"
+"C";"401";"Fournisseurs";"Passif";"org.chorem.callao.entity.Account#1249555822435#0.06041671027235429"
+"C";"411";"Clients";"Actif";"org.chorem.callao.entity.Account#1249555583700#0.6265947943023162"
+"C";"53";"Caisse";"Actif";"org.chorem.callao.entity.Account#1249555511423#0.011319837765867757"
+"C";"60";"ACHATS";"Charge";"org.chorem.callao.entity.Account#1249555348378#0.8374727763221947"
+"C";"63";"Impôts, taxes et versements assimilés";"Charge";"org.chorem.callao.entity.Account#1249555636400#0.5473094310405552"
+"C";"64";"Charges de personnel";"Charge";"org.chorem.callao.entity.Account#1249555657935#0.35366073929481334"
+"C";"607";"Achas de marchandises";"Charge";"org.chorem.callao.entity.Account#1249555548999#0.018490025064101023"
+"C";"707";"Ventes de marchandises";"Produit";"org.chorem.callao.entity.Account#1249555599917#0.5953808167367928"
+"C";"105";"Ecarts de réévaluation";"Passif";"org.chorem.callao.entity.Account#1249555348157#0.3681372547493901"
+"C";"106";"Réserves";"Passif";"org.chorem.callao.entity.Account#1249555348169#0.21975217717147555"
+"C";"101";"Capital";"Passif";"org.chorem.callao.entity.Account#1249555348140#0.7846696113518526"
+"C";"10500000";"Ecarts de réévaluation";"actif";"org.chorem.callao.entity.Account#1249555348211#0.8970560365362152"
+"C";"1061";"Réserve légale";"actif";"org.chorem.callao.entity.Account#1249555348221#0.20073728197870266"
+"C";"1062";"Réserves indisponibles";"actif";"org.chorem.callao.entity.Account#1249555348230#0.6918799658776698"
+"C";"1063";"Réserves statutaires ou contractuelles";"actif";"org.chorem.callao.entity.Account#1249555348244#0.009767392197928992"
+"C";"1064";"Réserves réglementes";"actif";"org.chorem.callao.entity.Account#1249555348253#0.7582011362212686"
+"C";"1068";"Autres réserves";"actif";"org.chorem.callao.entity.Account#1249555348262#0.4019019740691401"
+"C";"10610000";"Réserve légale";"actif";"org.chorem.callao.entity.Account#1249555348269#0.3388466646762297"
+"C";"10611000";"réserve légale";"actif";"org.chorem.callao.entity.Account#1249555348301#0.09087057997481063"
+"C";"10620000";"Réserves indisponibles";"actif";"org.chorem.callao.entity.Account#1249555348308#0.6217734109884933"
+"C";"10630000";"Réserves statutaires ou contractuelles";"actif";"org.chorem.callao.entity.Account#1249555348315#0.8177617600611057"
+"C";"10640000";"Réserves réglementes";"acif";"org.chorem.callao.entity.Account#1249555348329#0.8489995807518893"
+"C";"10100000";"Capital";"actif";"org.chorem.callao.entity.Account#1249555348184#0.7230203499285881"
+"C";"10131000";"Capital non amorti";"actif";"org.chorem.callao.entity.Account#1249555348200#0.3427497656667253"
+"J";"Journal des ventes";"JV";"Journal des ventes";"org.chorem.callao.entity.Journal#1249555348384#0.7477832615263098"
+"J";"Journal des achats";"AC";"Journal des achats";"org.chorem.callao.entity.Journal#1249555348389#0.7349860837330205"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249555673283#0.23162212143544114"
+"E";"21";"";"5000,00";"";"D";"org.chorem.callao.entity.Entry#1249555685440#0.7386973210663885"
+"E";"53";"";"3000,00";"";"D";"org.chorem.callao.entity.Entry#1249555704013#0.6659431389930965"
+"E";"101";"";"8000,00";"";"C";"org.chorem.callao.entity.Entry#1249555717803#0.8143886662466882"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249555718045#0.5909917736921011"
+"E";"607";"";"6000,00";"";"D";"org.chorem.callao.entity.Entry#1249555737683#0.7025746404416736"
+"E";"401";"";"5000,00";"";"C";"org.chorem.callao.entity.Entry#1249555762236#0.3617819630347947"
+"E";"53";"";"1000,00";"";"C";"org.chorem.callao.entity.Entry#1249555861407#0.14331551734896286"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249555862751#0.9177596443097285"
+"E";"411";"";"5000,00";"";"D";"org.chorem.callao.entity.Entry#1249555876769#0.4020366725088178"
+"E";"53";"";"9000,00";"";"D";"org.chorem.callao.entity.Entry#1249555891967#0.08903087492614525"
+"E";"707";"";"14000,00";"";"C";"org.chorem.callao.entity.Entry#1249555904537#0.9943721670364445"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249555905596#0.5658740211476994"
+"E";"218";"";"2000,00";"";"D";"org.chorem.callao.entity.Entry#1249555921558#0.5380421547075398"
+"E";"53";"";"2000,00";"";"C";"org.chorem.callao.entity.Entry#1249555945396#0.2744184645682206"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249555946304#0.5538030351294028"
+"E";"63";"";"1500,00";"";"D";"org.chorem.callao.entity.Entry#1249555958607#0.09059278579113839"
+"E";"53";"";"1500,00";"";"C";"org.chorem.callao.entity.Entry#1249555969176#0.9784123741130679"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249555970749#0.644568017205086"
+"E";"53";"";"4000,00";"";"D";"org.chorem.callao.entity.Entry#1249555981990#0.3792913477959591"
+"E";"411";"";"4000,00";"";"C";"org.chorem.callao.entity.Entry#1249555995113#0.1800136548147926"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249555997014#0.6295093044667812"
+"E";"401";"";"3000,00";"";"D";"org.chorem.callao.entity.Entry#1249556010670#0.05335008407039976"
+"E";"53";"";"3000,00";"";"C";"org.chorem.callao.entity.Entry#1249556025519#0.401792868136708"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249556029807#0.6432438480325273"
+"E";"64";"";"2500,00";"";"D";"org.chorem.callao.entity.Entry#1249556039215#0.6580348425113147"
+"E";"53";"";"2500,00";"";"C";"org.chorem.callao.entity.Entry#1249556051474#0.16424960187685778"
Added: trunk/doc/exemples/CAS_2
===================================================================
--- trunk/doc/exemples/CAS_2 (rev 0)
+++ trunk/doc/exemples/CAS_2 2009-08-26 15:17:26 UTC (rev 2692)
@@ -0,0 +1,139 @@
+"01/01/2009"
+"31/12/2009"
+"C";"2";"COMPTES D'IMMOBILISATIONS";"actif";"org.chorem.callao.entity.Account#1251121166693#0.17143994080926006"
+"C";"3";"COMPTES DE STOCKS ET EN-COURS";"actif";"org.chorem.callao.entity.Account#1251121166704#0.46213363902238136"
+"C";"4";"COMPTES DE TIERS";"actif";"org.chorem.callao.entity.Account#1251121166730#0.5369707921817739"
+"C";"5";"COMPTES FINANCIERS";"actif";"org.chorem.callao.entity.Account#1251121166736#0.8779339804119594"
+"C";"6";"COMPTES DE CHARGES";"actif";"org.chorem.callao.entity.Account#1251121166746#0.7940993180290502"
+"C";"7";"COMPTES DE PRODUITS";"actif";"org.chorem.callao.entity.Account#1251121166768#0.5736093530186608"
+"C";"8";"COMPTES SPECIAUX";"actif";"org.chorem.callao.entity.Account#1251121166775#0.2992599387471707"
+"C";"1";"COMPTES DE CAPITAUX";"Passif";"org.chorem.callao.entity.Account#1251121166786#0.8736987880436026"
+"C";"201";"Frais d'établissement";"Actif";"org.chorem.callao.entity.Account#1251121166828#0.7262045710284035"
+"C";"206";"Droit au bail";"Actif";"org.chorem.callao.entity.Account#1251121166841#0.6025374438279394"
+"C";"21";"Immobilisations corporelles";"Actif";"org.chorem.callao.entity.Account#1251121166852#0.9864375964079434"
+"C";"207";"Fond commercial";"Actif";"org.chorem.callao.entity.Account#1251126930287#0.9941058953541526"
+"C";"2813";"Amortissement des constructions";"Passif";"org.chorem.callao.entity.Account#1251121690457#0.6468547184191902"
+"C";"2815";"Amortissement des installations techniques, matériel et outillage industriels";"Passif";"org.chorem.callao.entity.Account#1251121732886#0.807143052059266"
+"C";"218";"Autres immobilisations corporelles";"Actif";"org.chorem.callao.entity.Account#1251121166871#0.4007380502487652"
+"C";"215";"Installations techniques, matériels et outillages industriels";"Actif";"org.chorem.callao.entity.Account#1251121615825#0.1394463426265331"
+"C";"211";"Terrains";"Actif";"org.chorem.callao.entity.Account#1251125484359#0.02806470973831987"
+"C";"213";"Construction";"Actif";"org.chorem.callao.entity.Account#1251126828454#0.6371179287113103"
+"C";"37";"Stocks de marchandises";"Actif";"org.chorem.callao.entity.Account#1251121773482#0.27197726481609874"
+"C";"401";"Fournisseurs";"Passif";"org.chorem.callao.entity.Account#1251121166906#0.18172499097077888"
+"C";"411";"Clients";"Actif";"org.chorem.callao.entity.Account#1251121166915#0.7380811097264733"
+"C";"410";"Clients et comptes rattachés";"Actif";"org.chorem.callao.entity.Account#1251121261939#0.3731176573770383"
+"C";"400";"Fournisseurs et comptes rattachés";"Passif";"org.chorem.callao.entity.Account#1251121228687#0.8601829948671851"
+"C";"53";"Caisse";"Actif";"org.chorem.callao.entity.Account#1251121166921#0.4542316525374881"
+"C";"512";"Banque";"Actif";"org.chorem.callao.entity.Account#1251122161308#0.8467381686626004"
+"C";"60";"ACHATS";"Charge";"org.chorem.callao.entity.Account#1251121166928#0.8244747597096951"
+"C";"63";"Impôts, taxes et versements assimilés";"Charge";"org.chorem.callao.entity.Account#1251121166936#0.6617802865899812"
+"C";"64";"Charges de personnel";"Charge";"org.chorem.callao.entity.Account#1251121166946#0.6887195258477898"
+"C";"66";"charges financières";"Charge";"org.chorem.callao.entity.Account#1251121424690#0.361266438521908"
+"C";"681";"Dotations aux amortissements et provisions - charges d'exploitation";"Charge";"org.chorem.callao.entity.Account#1251121666907#0.153324935114439"
+"C";"626";"Frais postaux et frais de télécommunications";"Charge";"org.chorem.callao.entity.Account#1251121562816#0.14449375560191136"
+"C";"623";"Publicité, publications, relations publiques";"Charge";"org.chorem.callao.entity.Account#1251121586306#0.9243315035511087"
+"C";"654";"Pertes sur créances irrécouvrables";"Charge";"org.chorem.callao.entity.Account#1251121636705#0.7925024484868144"
+"C";"675";"Valeurs comptables des éléments d'actif cédés";"Charge";"org.chorem.callao.entity.Account#1251122692231#0.32759066898255684"
+"C";"607";"Achas de marchandises";"Charge";"org.chorem.callao.entity.Account#1251121166957#0.22099715698620903"
+"C";"6037";"Variation des stocks de marchandises";"Produit";"org.chorem.callao.entity.Account#1251121753825#0.7999517005024219"
+"C";"641";"Rémunérations du personnel";"Charge";"org.chorem.callao.entity.Account#1251121302594#0.8716416673610199"
+"C";"645";"Charges de sécurité sociale et de prévoyance";"Charge";"org.chorem.callao.entity.Account#1251121484954#0.8813865606818083"
+"C";"661";"Charges d'intérêts";"Charge";"org.chorem.callao.entity.Account#1251121451050#0.04511272848259951"
+"C";"707";"Ventes de marchandises";"Produit";"org.chorem.callao.entity.Account#1251121166966#0.3940497421132717"
+"C";"775";"Produits des cessions d'éléments actif";"Produit";"org.chorem.callao.entity.Account#1251121343841#0.6592835907367915"
+"C";"105";"Ecarts de réévaluation";"Passif";"org.chorem.callao.entity.Account#1251121166974#0.9299089879139788"
+"C";"106";"Réserves";"Passif";"org.chorem.callao.entity.Account#1251121166986#0.7103349098371377"
+"C";"101";"Capital";"Passif";"org.chorem.callao.entity.Account#1251121166993#0.7572038033249665"
+"C";"164";"Emprunts auprès des établissements de crédit";"Passif";"org.chorem.callao.entity.Account#1251121377066#0.38997461573085457"
+"C";"10500000";"Ecarts de réévaluation";"actif";"org.chorem.callao.entity.Account#1251121167004#0.6640383575057422"
+"C";"1061";"Réserve légale";"actif";"org.chorem.callao.entity.Account#1251121167015#0.324309196969095"
+"C";"1062";"Réserves indisponibles";"actif";"org.chorem.callao.entity.Account#1251121167057#0.6653101859854491"
+"C";"1063";"Réserves statutaires ou contractuelles";"actif";"org.chorem.callao.entity.Account#1251121167065#0.41824638046664775"
+"C";"1064";"Réserves réglementes";"actif";"org.chorem.callao.entity.Account#1251121167074#0.37181443087969956"
+"C";"1068";"Autres réserves";"actif";"org.chorem.callao.entity.Account#1251121167086#0.37058311641396224"
+"C";"10610000";"Réserve légale";"actif";"org.chorem.callao.entity.Account#1251121167093#0.9240691557864564"
+"C";"10611000";"réserve légale";"actif";"org.chorem.callao.entity.Account#1251121167111#0.48655102465477407"
+"C";"10620000";"Réserves indisponibles";"actif";"org.chorem.callao.entity.Account#1251121167120#0.5883414894111653"
+"C";"10630000";"Réserves statutaires ou contractuelles";"actif";"org.chorem.callao.entity.Account#1251121167139#0.07746202750609421"
+"C";"10640000";"Réserves réglementes";"acif";"org.chorem.callao.entity.Account#1251121167154#0.40974893751750296"
+"C";"10100000";"Capital";"actif";"org.chorem.callao.entity.Account#1251121167163#0.6610206908089986"
+"C";"10131000";"Capital non amorti";"actif";"org.chorem.callao.entity.Account#1251121167173#0.02755303166031753"
+"J";"Journal des ventes";"JV";"Journal des ventes";"org.chorem.callao.entity.Journal#1251121167177#0.8731840171532513"
+"J";"Journal des achats";"AC";"Journal des achats";"org.chorem.callao.entity.Journal#1251121167182#0.9822020429727014"
+"J";"Journal des inventaires";"JI";"Inventaires";"org.chorem.callao.entity.Journal#1251121808096#0.5311201059165946"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251121915797#0.46003072966909353"
+"E";"607";"Achas de marchandises";"55000,00";"";"D";"org.chorem.callao.entity.Entry#1251122112027#0.6486235902485559"
+"E";"400";"Achas de marchandises";"55000,00";"";"C";"org.chorem.callao.entity.Entry#1251122128462#0.9284897480681303"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122130063#0.2769333249458539"
+"E";"512";"COMPTES FINANCIERS";"68000,00";"";"D";"org.chorem.callao.entity.Entry#1251122139343#0.47265336885167886"
+"E";"707";"COMPTES FINANCIERS";"68000,00";"";"C";"org.chorem.callao.entity.Entry#1251122182035#0.6610016064241605"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122189926#0.46077316615992414"
+"E";"512";"Banque";"10000,00";"";"D";"org.chorem.callao.entity.Entry#1251122207519#0.7045607583373503"
+"E";"53";"Banque";"10000,00";"";"C";"org.chorem.callao.entity.Entry#1251122213670#0.6852644511620873"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122215573#0.14422759559466114"
+"E";"512";"Banque";"35000,00";"";"D";"org.chorem.callao.entity.Entry#1251122227210#0.44711979179462746"
+"E";"53";"Banque";"2500,00";"";"D";"org.chorem.callao.entity.Entry#1251122259445#0.7915930154400317"
+"E";"410";"Banque";"37500,00";"";"C";"org.chorem.callao.entity.Entry#1251122270942#0.38203433513423146"
+"T";"";"";"";"24/08/2009";"JI";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122580029#0.8140789928661041"
+"E";"681";"Dotations aux amortissements et provisions - charges d'exploitation";"44000,00";"";"D";"org.chorem.callao.entity.Entry#1251122590684#0.9564091329050836"
+"E";"2813";"Dotations aux amortissements et provisions - charges d'exploitation";"20000,00";"";"C";"org.chorem.callao.entity.Entry#1251122609114#0.7113356056497878"
+"E";"2815";"Dotations aux amortissements et provisions - charges d'exploitation";"24000,00";"";"C";"org.chorem.callao.entity.Entry#1251122621132#0.5567925322006285"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122276861#0.07920603782620106"
+"E";"410";"Clients et comptes rattachés";"120000,00";"";"D";"org.chorem.callao.entity.Entry#1251122291501#0.19514003480885334"
+"E";"707";"Clients et comptes rattachés";"120000,00";"";"C";"org.chorem.callao.entity.Entry#1251122302597#0.8226731248317012"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122304140#0.8184707834558514"
+"E";"400";"Fournisseurs et comptes rattachés";"5000,00";"";"D";"org.chorem.callao.entity.Entry#1251122311453#0.5159419377255675"
+"E";"607";"Fournisseurs et comptes rattachés";"5000,00";"";"C";"org.chorem.callao.entity.Entry#1251122320901#0.7540694936451928"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122322350#0.07366796678431142"
+"E";"512";"Impôts, taxes et versements assimilés";"12000,00";"";"C";"org.chorem.callao.entity.Entry#1251122345662#0.8540055380417166"
+"E";"63";"Impôts, taxes et versements assimilés";"12000,00";"";"D";"org.chorem.callao.entity.Entry#1251122334740#0.3982854555518667"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122355952#0.651582398239586"
+"E";"641";"Rémunérations du personnel";"4000,00";"";"D";"org.chorem.callao.entity.Entry#1251122361440#0.8198990610628343"
+"E";"53";"Rémunérations du personnel";"4000,00";"";"C";"org.chorem.callao.entity.Entry#1251122370210#0.5596162133368078"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122370882#0.2393657885552205"
+"E";"512";"Banque";"40000,00";"";"D";"org.chorem.callao.entity.Entry#1251122379037#0.4341763077912958"
+"E";"775";"Banque";"40000,00";"";"C";"org.chorem.callao.entity.Entry#1251122391326#0.8354974868313555"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122392845#0.931577920493854"
+"E";"400";"Fournisseurs et comptes rattachés";"24000,00";"";"D";"org.chorem.callao.entity.Entry#1251122409597#0.6645042205624827"
+"E";"512";"Fournisseurs et comptes rattachés";"24000,00";"";"C";"org.chorem.callao.entity.Entry#1251122420821#0.8551595854346119"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122428328#0.6583925671802189"
+"E";"164";"Emprunts auprès des établissements de crédit";"100000,00";"";"D";"org.chorem.callao.entity.Entry#1251122433972#0.49433496088464857"
+"E";"661";"Emprunts auprès des établissements de crédit";"8000,00";"";"D";"org.chorem.callao.entity.Entry#1251122444420#0.9503390975818475"
+"E";"512";"Emprunts auprès des établissements de crédit";"108000,00";"";"C";"org.chorem.callao.entity.Entry#1251122452607#0.6153491513236496"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122453917#0.12881017345974077"
+"E";"645";"Charges de sécurité sociale et de prévoyance";"1500,00";"";"D";"org.chorem.callao.entity.Entry#1251122464900#0.5927211202158016"
+"E";"512";"Charges de sécurité sociale et de prévoyance";"1500,00";"";"C";"org.chorem.callao.entity.Entry#1251122474891#0.7906207008426603"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122476364#0.2427196458981966"
+"E";"626";"Frais postaux et frais de télécommunications";"500,00";"";"D";"org.chorem.callao.entity.Entry#1251122492765#0.017325649294240075"
+"E";"53";"Frais postaux et frais de télécommunications";"500,00";"";"C";"org.chorem.callao.entity.Entry#1251122501058#0.21862888500227262"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122502534#0.46374324608574247"
+"E";"623";"Publicité, publications, relations publiques";"2100,00";"";"D";"org.chorem.callao.entity.Entry#1251122517063#0.1175584984086987"
+"E";"512";"Publicité, publications, relations publiques";"2100,00";"";"C";"org.chorem.callao.entity.Entry#1251122530403#0.9432919817623766"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122531797#0.6594966984560037"
+"E";"215";"COMPTES DE CAPITAUX";"70000,00";"";"D";"org.chorem.callao.entity.Entry#1251122540730#0.4058381798774483"
+"E";"512";"COMPTES DE CAPITAUX";"70000,00";"";"C";"org.chorem.callao.entity.Entry#1251122554531#0.8905377732825919"
+"T";"";"";"";"24/08/2009";"JI";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122621989#0.12717127060621547"
+"E";"675";"Valeurs comptables des éléments d'actif";"55000,00";"";"D";"org.chorem.callao.entity.Entry#1251122653523#0.9800447824012739"
+"E";"215";"Valeurs comptables des éléments d'actif";"55000,00";"";"C";"org.chorem.callao.entity.Entry#1251122711451#0.5595695986865354"
+"T";"";"";"";"24/08/2009";"JI";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122717646#0.960787602078723"
+"E";"654";"Pertes sur créances irrécouvrables";"6000,00";"";"D";"org.chorem.callao.entity.Entry#1251122726310#0.9990685787917355"
+"E";"410";"Pertes sur créances irrécouvrables";"6000,00";"";"C";"org.chorem.callao.entity.Entry#1251122744611#0.5108453758420318"
+"T";"";"";"";"24/08/2009";"JI";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122747431#0.08635069776817916"
+"E";"6037";"Variation des stocks de marchandises";"125000,00";"";"D";"org.chorem.callao.entity.Entry#1251122758719#0.4217970530983909"
+"E";"37";"Variation des stocks de marchandises";"125000,00";"";"C";"org.chorem.callao.entity.Entry#1251122777731#0.24699516170485203"
+"T";"";"";"";"24/08/2009";"JI";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122779086#0.38833851856989055"
+"E";"37";"Stocks de marchandises";"130000,00";"";"D";"org.chorem.callao.entity.Entry#1251122787851#0.0952120029884368"
+"E";"6037";"Stocks de marchandises";"130000,00";"";"C";"org.chorem.callao.entity.Entry#1251122798839#0.7360187529897154"
+"T";"";"";"";"24/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1251125363732#0.22731044682790846"
+"E";"101";"Stocks de marchandises";"1100000,00";"";"C";"org.chorem.callao.entity.Entry#1251125557054#0.3580477132920168"
+"E";"37";"Stocks de marchandises";"125000,00";"";"D";"org.chorem.callao.entity.Entry#1251125376067#0.5391912274641554"
+"E";"215";"Stocks de marchandises";"200000,00";"";"D";"org.chorem.callao.entity.Entry#1251127450425#0.8323002278549227"
+"E";"512";"Stocks de marchandises";"140000,00";"";"D";"org.chorem.callao.entity.Entry#1251125534283#0.10008495532699258"
+"E";"53";"Stocks de marchandises";"45000,00";"";"D";"org.chorem.callao.entity.Entry#1251125547037#0.6483279409654836"
+"E";"207";"Stocks de marchandises";"180000,00";"";"D";"org.chorem.callao.entity.Entry#1251127490852#0.3615695149969661"
+"E";"410";"Stocks de marchandises";"60000,00";"";"D";"org.chorem.callao.entity.Entry#1251127468578#0.030559628105331083"
+"E";"213";"Stocks de marchandises";"500000,00";"";"D";"org.chorem.callao.entity.Entry#1251126813324#0.201870924893077"
+"E";"400";"Stocks de marchandises";"150000,00";"";"C";"org.chorem.callao.entity.Entry#1251127481309#0.6639440098349074"
+"T";"";"";"";"24/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1251125558862#0.868317447057742"
+"E";"211";"Terrains";"800000,00";"";"D";"org.chorem.callao.entity.Entry#1251126095634#0.8236014377643043"
+"E";"164";"Terrains";"800000,00";"";"C";"org.chorem.callao.entity.Entry#1251126136985#0.037203487234930055"
Added: trunk/doc/exemples/cas_1_enonce
===================================================================
--- trunk/doc/exemples/cas_1_enonce (rev 0)
+++ trunk/doc/exemples/cas_1_enonce 2009-08-26 15:17:26 UTC (rev 2692)
@@ -0,0 +1,405 @@
+M. François crée une entreprise et apporte un matériel de 5 000 et une somme de 3 000 en espèces. Il effectue ensuite les opérations suivantes au cours de son premier exercice :
+
+
+ 2. Il achète pour 6 000 de marchandises dont il ne paie que 1 000 au comptant.
+ 3.
+ 4. Il vend pour 9 000 de marchandises à crédit et 5 000 au comptant.
+ 5.
+ 6. Il achète du mobilier pour 2 000 qu’il paie au comptant.
+ 7.
+ 8. Il paie au comptant pour 1 500 de taxes.
+ 9.
+ 10. Un client lui règle une somme de 4 000.
+ 11.
+ 12. Il règle une partie de ses dettes d’achats de marchandises pour 3 000.
+ 13.
+ 14. Il règle pour 2 500 de salaires.
+
+
+
+==========================
+
+
+
+
+---------------- 00 - 00 ----------------
+
+
+
+
+
+
+
+21
+
+
+Immobilisations corporelles
+
+
+5 000,00
+
+
+
+
+53
+
+
+Caisse
+
+
+3 000,00
+
+
+
+
+101
+
+
+Capital individuel ou social
+
+
+
+
+
+8 000,00
+
+
+
+
+Apports
+
+
+
+
+
+
+
+
+
+
+---------------- 01 - 01 ----------------
+
+
+
+
+
+
+
+607
+
+
+Achats de marchandises
+
+
+6 000,00
+
+
+
+
+401
+
+
+Fournisseurs
+
+
+
+
+
+5 000,00
+
+53
+
+
+Caisse
+
+
+
+
+
+1 000,00
+
+
+
+
+Achat de marchandises
+
+
+
+
+
+
+
+
+
+
+---------------- 02 - 02 ----------------
+
+
+
+
+
+
+
+411
+
+
+Clients
+
+
+5 000,00
+
+
+
+
+53
+
+
+Caisse
+
+
+9 000,00
+
+
+
+
+707
+
+
+Ventes de marchandises
+
+
+
+
+
+14 000,00
+
+
+
+
+Ventes de marchandises
+
+
+
+
+
+
+
+
+
+
+---------------- 03 - 03 ----------------
+
+
+
+
+
+
+
+218
+
+
+Autres immobilisations corporelles
+
+
+2 000,00
+
+
+
+
+53
+
+
+Caisse
+
+
+
+
+
+2 000,00
+
+
+
+
+Achat de mobilier
+
+
+
+
+
+
+
+
+
+
+---------------- 04 - 04 ----------------
+
+
+
+
+
+
+
+63
+
+
+Impôts, taxes et versements assimilés
+
+
+1 500,00
+
+
+
+
+53
+
+
+Caisse
+
+
+
+
+
+1 500,00
+
+
+
+
+Taxes
+
+
+
+
+
+
+
+
+
+
+---------------- 05 - 05 ----------------
+
+
+
+
+
+
+
+53
+
+
+Caisse
+
+
+4 000,00
+
+
+
+
+411
+
+
+Clients
+
+
+
+
+
+4 000,00
+
+
+
+
+Réglement client
+
+
+
+
+
+
+
+
+
+
+---------------- 06 - 06 ----------------
+
+
+
+
+
+
+
+401
+
+
+Fournisseurs
+
+
+3 000,00
+
+
+
+
+53
+
+
+Caisse
+
+
+
+
+
+3 000,00
+
+
+
+
+Paiement des fournisseurs
+
+
+
+
+
+
+
+
+
+
+---------------- 07 - 07 ----------------
+
+
+
+
+
+
+
+64
+
+
+Charges de personnel
+
+
+2 500,00
+
+
+
+
+53
+
+
+Caisse
+
+
+
+
+
+2 500,00
+
+
+
+
+Salaires
+
+
+
+
+
+
Added: trunk/doc/exemples/cas_2_enonce
===================================================================
--- trunk/doc/exemples/cas_2_enonce (rev 0)
+++ trunk/doc/exemples/cas_2_enonce 2009-08-26 15:17:26 UTC (rev 2692)
@@ -0,0 +1,1019 @@
+Journal
+
+
+
+---------------- - 01 ----------------
+
+
+
+607
+
+
+Achats de marchandises
+
+
+55 000
+
+
+400
+
+
+Fournisseurs et comptes
+
+
+rattachés
+
+
+
+
+
+55 000
+
+
+
+
+ACHAT MARCHANDISES
+
+---------------- - 02 ----------------
+
+
+512
+
+
+Banques
+
+
+68 000
+
+
+707
+
+
+Ventes de marchandises
+
+
+68 000
+
+
+
+
+VENTES DE MARCHAND.
+
+
+---------------- - 03 ----------------
+
+
+
+512
+
+
+Banques
+
+
+10 000
+
+
+
+
+53
+
+
+Caisse
+
+
+
+
+
+10 000
+
+
+
+
+DEPOT D'ESPECES
+
+
+---------------- - 04 ----------------
+
+
+
+
+
+
+
+512
+
+
+Banques
+
+
+35 000
+
+
+
+
+53
+
+
+Caisse
+
+
+2 500
+
+
+
+
+410
+
+
+Clients et comptes rattachés
+
+
+
+
+
+37 500
+
+
+
+
+REGLEMENTS CLIENTS
+
+
+
+
+
+
+
+
+
+
+---------------- - 05 ----------------
+
+
+
+
+
+
+
+410
+
+
+Clients et comptes rattachés
+
+
+120 000
+
+
+
+
+707
+
+
+Ventes de marchandises
+
+
+
+
+
+120 000
+
+
+
+
+VENTES MARCHANDISES
+
+
+
+
+
+
+
+
+
+
+---------------- - 06 ----------------
+
+
+
+
+
+
+
+400
+
+
+Fournisseurs et comptes rattachés
+
+
+5 000
+
+
+
+
+607
+
+
+Achats de marchandises
+
+
+
+
+
+5 000
+
+
+
+
+RETOUR SUR ACHATS
+
+
+
+
+
+
+
+
+
+
+---------------- - 07 ----------------
+
+
+
+
+
+
+
+63
+
+
+Impôts, taxes et versements assimilés
+
+
+12 000
+
+
+
+
+512
+
+
+Banques
+
+
+
+
+
+12 000
+
+
+
+
+IMPOTS
+
+
+
+
+
+
+
+
+
+
+---------------- - 08 ----------------
+
+
+
+
+
+
+
+641
+
+
+Rémunérations du personnel
+
+
+4 000
+
+
+
+
+53
+
+
+Caisse
+
+
+
+
+
+4 000
+
+
+
+
+SALAIRES
+
+
+
+
+
+
+
+
+
+
+---------------- - 09 ----------------
+
+
+
+
+
+
+
+512
+
+
+Banques
+
+
+40 000
+
+
+
+
+775
+
+
+Produits des cessions
+
+
+
+
+
+
+
+
+
+
+d'éléments d'actif
+
+
+
+
+
+40 000
+
+
+
+
+CESSION MATERIEL
+
+
+
+
+
+
+
+
+
+
+---------------- - 10 ----------------
+
+
+
+
+
+
+
+400
+
+
+Fournisseurs et comptes rattachés
+
+
+24 000
+
+
+
+
+512
+
+
+Banques
+
+
+
+
+
+24 000
+
+
+
+
+REGLEMENT FOURNISS.
+
+
+
+
+
+
+
+
+
+
+---------------- - 11 ----------------
+
+
+
+
+
+
+
+164
+
+
+Emprunts auprès des établissements de
+
+
+
+
+
+
+
+
+
+
+crédit
+
+
+100 000
+
+
+
+
+661
+
+
+Charges d'intérêts
+
+
+8 000
+
+
+
+
+512
+
+
+Banques
+
+
+
+
+
+108 000
+
+
+
+
+ECHEANCE EMPRUNT
+
+
+
+
+
+
+
+
+
+
+---------------- - 12 ----------------
+
+
+
+
+
+
+
+645
+
+
+Charges de sécurité sociale et de
+
+
+
+
+
+
+
+
+
+
+prévoyance
+
+
+1 500
+
+
+
+
+512
+
+
+Banques
+
+
+
+
+
+1 500
+
+
+
+
+CHARGES SOCIALES
+
+
+
+
+
+
+
+
+
+
+---------------- - 13 ----------------
+
+
+
+
+
+
+
+626
+
+
+Frais postaux et frais de
+
+
+
+
+
+
+
+
+
+
+télécommunications
+
+
+500
+
+
+
+
+53
+
+
+Caisse
+
+
+
+
+
+500
+
+
+
+
+ACHAT TIMBRES POSTE
+
+
+
+
+
+
+
+
+
+
+---------------- - 14 ----------------
+
+
+
+
+
+
+
+623
+
+
+Publicité, publications, relations
+
+
+
+
+
+
+
+
+
+
+publiques
+
+
+2 100
+
+
+
+
+512
+
+
+Banques
+
+
+
+
+
+2 100
+
+
+
+
+PUBLICITE
+
+
+
+
+
+
+
+
+
+
+---------------- - 15 ----------------
+
+
+
+
+
+
+
+215
+
+
+Installations techniques, matériels et
+
+
+
+
+
+
+
+
+
+
+outillages industriels
+
+
+70 000
+
+
+
+
+512
+
+
+Banques
+
+
+
+
+
+70 000
+
+
+
+
+ACHAT MATERIEL
+
+
+
+
+
+
+
+
+
+
+---------------- IN - 01 ----------------
+
+
+
+
+
+
+
+675
+
+
+Valeurs comptables des éléments d'actif
+
+
+
+
+
+
+
+
+
+
+cédés
+
+
+55 000
+
+
+
+
+215
+
+
+Installations techniques,
+
+
+
+
+
+
+
+
+
+
+matériels et outillages
+
+
+
+
+
+
+
+
+
+
+industriels
+
+
+
+
+
+55 000
+
+
+
+
+SOLDE MATERIEL CEDE
+
+
+
+
+
+
+
+
+
+
+---------------- IN - 02 ----------------
+
+
+
+
+
+
+
+654
+
+
+Pertes sur créances irrécouvrables
+
+
+6 000
+
+
+
+
+410
+
+
+Clients et comptes rattachés
+
+
+
+
+
+6 000
+
+
+
+
+CLIENT INSOLVABLE
+
+
+
+
+
+
+
+
+
+
+---------------- IN - 03 ----------------
+
+
+
+
+
+
+
+681
+
+
+Dotations aux amortissements et
+
+
+
+
+
+
+
+
+
+
+provisions - charges d'exploitation
+
+
+44 000
+
+
+
+
+2813
+
+
+Amortissement des constructions
+
+
+
+
+
+20 000
+
+2815
+
+
+Amortissement des
+
+
+
+
+
+
+
+
+
+
+installations techniques,
+
+
+
+
+
+
+
+
+
+
+matériel et outillage
+
+
+
+
+
+
+
+
+
+
+industriels
+
+
+
+
+
+24 000
+
+
+
+
+AMORTISSEMENTS
+
+
+
+
+
+
+
+
+
+
+---------------- IN - 04 ----------------
+
+
+
+
+
+
+
+6037
+
+
+Variation des stocks de marchandises
+
+
+125 000
+
+
+
+
+37
+
+
+Stocks de marchandises
+
+
+
+
+
+125 000
+
+
+
+
+STOCK INITIAL
+
+
+
+
+
+
+
+
+
+
+---------------- IN - 05 ----------------
+
+
+
+
+
+
+
+37
+
+
+Stocks de marchandises
+
+
+130 000
+
+
+
+
+6037
+
+
+Variation des stocks de
+
+
+
+
+
+
+
+
+
+
+marchandises
+
+
+
+
+
+130 000
+
+
+
+
+STOCK FINAL
Added: trunk/doc/exemples/pcg
===================================================================
--- trunk/doc/exemples/pcg (rev 0)
+++ trunk/doc/exemples/pcg 2009-08-26 15:17:26 UTC (rev 2692)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Callao>
+ <informations date="Fri Aug 07 11:35:27 CEST 2009" user="Name user" company="Name company" />
+ <save>
+ <accounts>
+ <account id="org.chorem.callao.entity.Account#1249555347959#0.9019304796412684" label="COMPTES D'IMMOBILISATIONS" type="actif" accountNumber="2" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555348338#0.04260276658110562" label="Frais d'établissement" type="Actif" accountNumber="201" masterAccount="2" />
+ <account id="org.chorem.callao.entity.Account#1249555348347#0.18726180615226806" label="Droit au bail" type="Actif" accountNumber="206" masterAccount="2" />
+ <account id="org.chorem.callao.entity.Account#1249555497020#0.6505535213374983" label="Immobilisations corporelles" type="Actif" accountNumber="21" masterAccount="2" />
+ <account id="org.chorem.callao.entity.Account#1249555618637#0.47602527280737383" label="Autres immobilisations corporelles" type="Actif" accountNumber="218" masterAccount="21" />
+ <account id="org.chorem.callao.entity.Account#1249555347984#0.4908833205081513" label="COMPTES DE STOCKS ET EN-COURS" type="actif" accountNumber="3" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555347993#0.01567348299581306" label="COMPTES DE TIERS" type="actif" accountNumber="4" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555822435#0.06041671027235429" label="Fournisseurs" type="Passif" accountNumber="401" masterAccount="4" />
+ <account id="org.chorem.callao.entity.Account#1249555583700#0.6265947943023162" label="Clients" type="Actif" accountNumber="411" masterAccount="4" />
+ <account id="org.chorem.callao.entity.Account#1249555348000#0.6004750737819512" label="COMPTES FINANCIERS" type="actif" accountNumber="5" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555511423#0.011319837765867757" label="Caisse" type="Actif" accountNumber="53" masterAccount="5" />
+ <account id="org.chorem.callao.entity.Account#1249555348022#0.930622399756405" label="COMPTES DE CHARGES" type="actif" accountNumber="6" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555348378#0.8374727763221947" label="ACHATS" type="Charge" accountNumber="60" masterAccount="6" />
+ <account id="org.chorem.callao.entity.Account#1249555548999#0.018490025064101023" label="Achas de marchandises" type="Charge" accountNumber="607" masterAccount="60" />
+ <account id="org.chorem.callao.entity.Account#1249555636400#0.5473094310405552" label="Impôts, taxes et versements assimilés" type="Charge" accountNumber="63" masterAccount="6" />
+ <account id="org.chorem.callao.entity.Account#1249555657935#0.35366073929481334" label="Charges de personnel" type="Charge" accountNumber="64" masterAccount="6" />
+ <account id="org.chorem.callao.entity.Account#1249555348027#0.6782322672056709" label="COMPTES DE PRODUITS" type="actif" accountNumber="7" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555599917#0.5953808167367928" label="Ventes de marchandises" type="Produit" accountNumber="707" masterAccount="7" />
+ <account id="org.chorem.callao.entity.Account#1249555348076#0.6190508684748437" label="COMPTES SPECIAUX" type="actif" accountNumber="8" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555347952#0.9924023380704713" label="COMPTES DE CAPITAUX" type="Passif" accountNumber="1" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555348157#0.3681372547493901" label="Ecarts de réévaluation" type="Passif" accountNumber="105" masterAccount="1" />
+ <account id="org.chorem.callao.entity.Account#1249555348211#0.8970560365362152" label="Ecarts de réévaluation" type="actif" accountNumber="10500000" masterAccount="105" />
+ <account id="org.chorem.callao.entity.Account#1249555348169#0.21975217717147555" label="Réserves" type="Passif" accountNumber="106" masterAccount="1" />
+ <account id="org.chorem.callao.entity.Account#1249555348221#0.20073728197870266" label="Réserve légale" type="actif" accountNumber="1061" masterAccount="106" />
+ <account id="org.chorem.callao.entity.Account#1249555348269#0.3388466646762297" label="Réserve légale" type="actif" accountNumber="10610000" masterAccount="1061" />
+ <account id="org.chorem.callao.entity.Account#1249555348301#0.09087057997481063" label="réserve légale" type="actif" accountNumber="10611000" masterAccount="1061" />
+ <account id="org.chorem.callao.entity.Account#1249555348230#0.6918799658776698" label="Réserves indisponibles" type="actif" accountNumber="1062" masterAccount="106" />
+ <account id="org.chorem.callao.entity.Account#1249555348308#0.6217734109884933" label="Réserves indisponibles" type="actif" accountNumber="10620000" masterAccount="1062" />
+ <account id="org.chorem.callao.entity.Account#1249555348244#0.009767392197928992" label="Réserves statutaires ou contractuelles" type="actif" accountNumber="1063" masterAccount="106" />
+ <account id="org.chorem.callao.entity.Account#1249555348315#0.8177617600611057" label="Réserves statutaires ou contractuelles" type="actif" accountNumber="10630000" masterAccount="1063" />
+ <account id="org.chorem.callao.entity.Account#1249555348253#0.7582011362212686" label="Réserves réglementes" type="actif" accountNumber="1064" masterAccount="106" />
+ <account id="org.chorem.callao.entity.Account#1249555348329#0.8489995807518893" label="Réserves réglementes" type="acif" accountNumber="10640000" masterAccount="1064" />
+ <account id="org.chorem.callao.entity.Account#1249555348262#0.4019019740691401" label="Autres réserves" type="actif" accountNumber="1068" masterAccount="106" />
+ <account id="org.chorem.callao.entity.Account#1249555348140#0.7846696113518526" label="Capital" type="Passif" accountNumber="101" masterAccount="1" />
+ <account id="org.chorem.callao.entity.Account#1249555348184#0.7230203499285881" label="Capital" type="actif" accountNumber="10100000" masterAccount="101" />
+ <account id="org.chorem.callao.entity.Account#1249555348200#0.3427497656667253" label="Capital non amorti" type="actif" accountNumber="10131000" masterAccount="101" />
+ </accounts>
+ </save>
+</Callao>
+
1
0
r2691 - in trunk/lima-main/src/main/java/org/chorem/lima: imports table table/model ui
by rchapelet@users.chorem.org 26 Aug '09
by rchapelet@users.chorem.org 26 Aug '09
26 Aug '09
Author: rchapelet
Date: 2009-08-26 17:13:30 +0200 (Wed, 26 Aug 2009)
New Revision: 2691
Modified:
trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImport.java
trunk/lima-main/src/main/java/org/chorem/lima/table/BilanActifJXTable.java
trunk/lima-main/src/main/java/org/chorem/lima/table/BilanPassifJXTable.java
trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionDataTableModel.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionViewImpl.java
Log:
am?\195?\169lioration chargement pour le bilan et l'import
Modified: trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImport.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImport.java 2009-08-26 15:12:01 UTC (rev 2690)
+++ trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImport.java 2009-08-26 15:13:30 UTC (rev 2691)
@@ -290,6 +290,7 @@
ServiceHelper.findStatusByType(Main.getContext().getDataManager().getStatus(), "TR_WIP"));
transactionLast = transaction;
// Ajoute la transaction dans le service
+ //result = Main.getContext().getDataManager().getTransactionModel().addTransaction(transaction);
result = transactionService.addTransaction(transaction, Main.getContext().getDataManager().getStatus());
// Ajoute la transaction dans la liste des transactions
listTransactions.add(transaction);
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/BilanActifJXTable.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/BilanActifJXTable.java 2009-08-26 15:12:01 UTC (rev 2690)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/BilanActifJXTable.java 2009-08-26 15:13:30 UTC (rev 2691)
@@ -52,6 +52,7 @@
setRowHeight(24);
setColumnControlVisible(true);
+
addColorTitle();
addColorTotal();
@@ -60,6 +61,7 @@
for (int i = 0; i < getModel().getColumnCount(); i++) {
getColumnModel().getColumn(i).setCellRenderer(bilanTableCellRenderer);
}
+
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/BilanPassifJXTable.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/BilanPassifJXTable.java 2009-08-26 15:12:01 UTC (rev 2690)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/BilanPassifJXTable.java 2009-08-26 15:13:30 UTC (rev 2691)
@@ -52,6 +52,7 @@
setRowHeight(24);
setColumnControlVisible(true);
+
addColorTitle();
addColorTotal();
@@ -60,6 +61,7 @@
for (int i = 0; i < getModel().getColumnCount(); i++) {
getColumnModel().getColumn(i).setCellRenderer(bilanTableCellRenderer);
}
+
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionDataTableModel.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionDataTableModel.java 2009-08-26 15:12:01 UTC (rev 2690)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionDataTableModel.java 2009-08-26 15:13:30 UTC (rev 2691)
@@ -273,6 +273,23 @@
return response;
}
+ public String addTransaction(TransactionDTO trans) {
+ // Chargement des status pour la transaction
+ List<StatusDTO> status = Main.getContext().getDataManager().getStatus();
+ // Ajout de la transaction avec son service
+ String response = transServ.addTransaction(trans,status);
+ // Si la transaction a été ajoutée avec succès
+ if (ServiceHelper.RESPOND_SUCCESS.equals(response))
+ {
+ // Ajout de la transaction dans Lima
+ data.add(trans);
+ // Modifie les vues pour la nouvelle transaction
+ changeSupport.firePropertyChange(ADD_PROPERTY, null, trans);
+ }
+ return response;
+ }
+
+
@Override
public String removeTransaction(TransactionDTO trans) {
List<StatusDTO> status = Main.getContext().getDataManager().getStatus();
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java 2009-08-26 15:12:01 UTC (rev 2690)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java 2009-08-26 15:13:30 UTC (rev 2691)
@@ -52,6 +52,9 @@
private BilanPassifJXTable tablePassif;
private BilanActifTableModel modelBilanActif;
private BilanPassifTableModel modelBilanPassif;
+ Hashtable<String,Bilan> actifTab = new Hashtable<String,Bilan>();
+ Hashtable<String,Bilan> passifTab = new Hashtable<String,Bilan>();
+ Hashtable<String,List<BalanceDTO>> provisionMap = new Hashtable<String,List<BalanceDTO>>();
private Balance balance = new Balance();
/**
@@ -66,8 +69,9 @@
modelBilanActif = new BilanActifTableModel(new LinkedList<Bilan>());
modelBilanPassif = new BilanPassifTableModel(new LinkedList<Bilan>());
+
// Chargement du bilan
- updateBilan();
+ //updateBilan();
/** ACTIF */
tableActif = new BilanActifJXTable(modelBilanActif);
@@ -92,18 +96,12 @@
}
/**
- * Permet de calculer le bilan
+ * Cette partie consiste à créer les catégories du bilan
*/
- public void updateBilan ()
+ public void createCategory()
{
- log.debug("Update bilan :");
- // Chargement de la balance
- List<BalanceDTO> ListbalanceDTO = balance.createBalance((PeriodDTO) comboBoxPeriod.getSelectedItem());
- /**
- * Cette partie consiste à créer les catégories du bilan
- */
/** ACTIF */
- Hashtable<String,Bilan> actifTab = new Hashtable<String,Bilan>();
+
actifTab.put("ACTIF", new Bilan("TOTAL (1) + (2)","total",null));
actifTab.put("ACTIF_IMMOBILISE", new Bilan("ACTIF IMMOBILISE","title",null));
actifTab.put("ACTIF_IMMOBILISE_INCORPOREL", new Bilan("Immobilisé incorporel","",null));
@@ -128,7 +126,6 @@
actifTab.get("ACTIF").add(actifTab.get("ACTIF_IMMOBILISE"));
actifTab.get("ACTIF").add(actifTab.get("ACTIF_CIRCULANT"));
/** PASSIF */
- Hashtable<String,Bilan> passifTab = new Hashtable<String,Bilan>();
passifTab.put("PASSIF", new Bilan("TOTAL (1) + (2) + (3)","total",null));
passifTab.put("PASSIF_CAPITAUX", new Bilan("CAPITAUX PROPRES","title",null));
passifTab.put("PASSIF_CP_CAPITAL", new Bilan("Capital","",null));
@@ -164,7 +161,21 @@
passifTab.get("PASSIF").add(passifTab.get("PASSIF_CAPITAUX"));
passifTab.get("PASSIF").add(passifTab.get("PASSIF_CP_PROVISION"));
passifTab.get("PASSIF").add(passifTab.get("PASSIF_DETTES"));
+ }
+
+
+
+ /**
+ * Permet de calculer le bilan
+ */
+ public void updateBilan ()
+ {
+ log.debug("Update bilan :");
+ // Chargement de la balance
+ List<BalanceDTO> ListbalanceDTO = balance.createBalance((PeriodDTO) comboBoxPeriod.getSelectedItem());
+
+
/**
* Vérifie chaque numéro de compte (balance) pour déterminer sa position
* dans le bilan.
@@ -174,7 +185,8 @@
* Ces comptes sont mis dans une liste à part, pour être traités une seconde fois.
*/
// Liste amort/prov à traiter apres
- Hashtable<String,List<BalanceDTO>> provisionMap = new Hashtable<String,List<BalanceDTO>>();
+
+ createCategory();
// Pour chaque balance
for ( BalanceDTO balanceDTO : ListbalanceDTO)
{
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionViewImpl.java 2009-08-26 15:12:01 UTC (rev 2690)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionViewImpl.java 2009-08-26 15:13:30 UTC (rev 2691)
@@ -131,7 +131,7 @@
* Constructor
*/
public TransactionViewImpl() {
- //neogiaFactory = ServiceFactory.getServiceFactory();
+
initJournalComboBox();
initPeriodComboBox();
1
0
Author: rchapelet
Date: 2009-08-26 17:12:01 +0200 (Wed, 26 Aug 2009)
New Revision: 2690
Modified:
trunk/pom.xml
Log:
maj pom version topia et eugene
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-08-26 11:33:13 UTC (rev 2689)
+++ trunk/pom.xml 2009-08-26 15:12:01 UTC (rev 2690)
@@ -152,6 +152,17 @@
<!-- Developpers, contributors... -->
<developers>
<developer>
+ <id>remi</id>
+ <name>Rémi Chapelet</name>
+ <email>chapelet(a)codelutin.com</email>
+ <organization>Code Lutin</organization>
+ <organizationUrl>http://www.codelutin.com</organizationUrl>
+ <timezone>+2</timezone>
+ <roles>
+ <role>Développeur</role>
+ </roles>
+ </developer>
+ <developer>
<id>eduardo</id>
<name>eduardo</name>
<email>ore(a)codelutin.com</email>
@@ -175,10 +186,10 @@
<!-- customized libs version -->
- <eugene.version>1.0.0-rc-3</eugene.version>
+ <eugene.version>1.0.0</eugene.version>
<!--lutinutil.version>1.1.0-alpha-2-SNAPSHOT</lutinutil.version-->
- <topia.version>2.2.0-rc-2</topia.version>
- <jaxx.version>1.6.0-rc-2</jaxx.version>
+ <topia.version>2.2.0</topia.version>
+ <jaxx.version>1.7.1</jaxx.version>
<!--commandline.version>1.0-SNAPSHOT</commandline.version-->
1
0
Author: rchapelet
Date: 2009-08-26 13:33:13 +0200 (Wed, 26 Aug 2009)
New Revision: 2689
Added:
trunk/doc/installation.odt
Log:
doc installation
Added: trunk/doc/installation.odt
===================================================================
(Binary files differ)
Property changes on: trunk/doc/installation.odt
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
1
0
Author: rchapelet
Date: 2009-08-26 10:51:29 +0200 (Wed, 26 Aug 2009)
New Revision: 2688
Removed:
trunk/doc/rapport-remi/plan.pdf
trunk/doc/rapport-remi/rapport.odt
Modified:
trunk/pom.xml
Log:
maj du pom : version du chorem pom (1.0.1) + effacement des mailinglists + ajout de plateforme chorem.org
Deleted: trunk/doc/rapport-remi/plan.pdf
===================================================================
(Binary files differ)
Deleted: trunk/doc/rapport-remi/rapport.odt
===================================================================
(Binary files differ)
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-08-25 16:18:12 UTC (rev 2687)
+++ trunk/pom.xml 2009-08-26 08:51:29 UTC (rev 2688)
@@ -11,7 +11,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>mavenpom</artifactId>
- <version>1.0.0-rc-2</version>
+ <version>1.0.1</version>
</parent>
<groupId>org.chorem</groupId>
@@ -170,7 +170,7 @@
<packaging>pom</packaging>
<properties>
-
+ <platform>chorem.org</platform>
<projectId>lima</projectId>
<!-- customized libs version -->
@@ -242,33 +242,7 @@
<url>http://hudson.chorem.org</url>
</ciManagement>
- <!--Any mailing lists for the project-->
- <mailingLists>
- <mailingList>
- <name>lima-commits</name>
- <subscribe>http://list.chorem.org/mailman/listinfo/lima-commits</subscribe>
- <unsubscribe>http://list.chorem.org/mailman/listinfo/lima-commits</unsubscribe>
- <post>lima-commits(a)$list.chorem.org</post>
- <archive>http://list.chorem.org/pipermail/lima-commits/</archive>
- </mailingList>
- <mailingList>
- <name>lima-devel</name>
- <subscribe>http://list.chorem.org/mailman/listinfo/lima-devel</subscribe>
- <unsubscribe>http://list.chorem.org/mailman/listinfo/lima-devel</unsubscribe>
- <post>lima-devel(a)list.chorem.org</post>
- <archive>http://list.chorem.org/pipermail/lima-devel/</archive>
- </mailingList>
-
- <mailingList>
- <name>lima-users</name>
- <subscribe>http://list.chorem.org/mailman/listinfo/lima-users</subscribe>
- <unsubscribe>http://list.chorem.org/mailman/listinfo/lima-users</unsubscribe>
- <post>lima-users(a)list.chorem.org</post>
- <archive>http://list.chorem.org/pipermail/lima-users/</archive>
- </mailingList>
- </mailingLists>
-
<!--Distribution-->
<distributionManagement>
<repository>
1
0
r2687 - in trunk/lima-main/src/main/java/org/chorem/lima: bilan table/model ui
by rchapelet@users.chorem.org 25 Aug '09
by rchapelet@users.chorem.org 25 Aug '09
25 Aug '09
Author: rchapelet
Date: 2009-08-25 18:18:12 +0200 (Tue, 25 Aug 2009)
New Revision: 2687
Modified:
trunk/lima-main/src/main/java/org/chorem/lima/bilan/Bilan.java
trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultChargesTableModel.java
trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultProduitsTableModel.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java
Log:
J'ai r?\195?\169par?\195?\169 le bilan et compte de r?\195?\169sultat.
Modified: trunk/lima-main/src/main/java/org/chorem/lima/bilan/Bilan.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/bilan/Bilan.java 2009-08-25 14:13:29 UTC (rev 2686)
+++ trunk/lima-main/src/main/java/org/chorem/lima/bilan/Bilan.java 2009-08-25 16:18:12 UTC (rev 2687)
@@ -165,11 +165,20 @@
String newNumberAccount = balance.getAccount().getIdNumber();
newNumberAccount = newNumberAccount.substring(0,1) + newNumberAccount.substring(2,newNumberAccount.length());
Bilan bilan = searchBilanWithNumberAccount(newNumberAccount);
+ Bilan bilanSearch = this;
if (bilan != null)
{
bilan.setDepreciation(depreciation);
+ bilanSearch = bilan.getBilanMaster();
+ }
+ /**
+ * Ajout de la depreciation à tous les bilans pères
+ */
+ while ( bilanSearch!=null )
+ {
+ bilanSearch.setDepreciation(DTOHelper.AddNumbersString(bilanSearch.getDepreciation(), depreciation));
+ bilanSearch = bilanSearch.getBilanMaster();
}
- this.setDepreciation(DTOHelper.AddNumbersString(this.getDepreciation(), depreciation));
}
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultChargesTableModel.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultChargesTableModel.java 2009-08-25 14:13:29 UTC (rev 2686)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultChargesTableModel.java 2009-08-25 16:18:12 UTC (rev 2687)
@@ -93,7 +93,7 @@
{
return "";
} else {
- return balance.getDebit();
+ return DTOHelper.SubNumbersString(balance.getDebit(),balance.getCredit());
}
}
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultProduitsTableModel.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultProduitsTableModel.java 2009-08-25 14:13:29 UTC (rev 2686)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultProduitsTableModel.java 2009-08-25 16:18:12 UTC (rev 2687)
@@ -93,7 +93,7 @@
{
return "";
} else {
- return balance.getCredit();
+ return DTOHelper.SubNumbersString(balance.getCredit(),balance.getDebit());
}
}
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java 2009-08-25 14:13:29 UTC (rev 2686)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java 2009-08-25 16:18:12 UTC (rev 2687)
@@ -225,10 +225,7 @@
if ( Category.accountNumberCategory("51", balanceDTO.getAccount().getIdNumber()) ||
Category.accountNumberCategory("52", balanceDTO.getAccount().getIdNumber()) ||
Category.accountNumberCategory("53", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("54", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("35", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("36", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("37", balanceDTO.getAccount().getIdNumber()) )
+ Category.accountNumberCategory("54", balanceDTO.getAccount().getIdNumber()) )
{
actifTab.get("ACTIF_CIRCULANT_DISPONIBILITE").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
}
@@ -273,8 +270,7 @@
Category.accountNumberCategory("105", balanceDTO.getAccount().getIdNumber()) ||
Category.accountNumberCategory("107", balanceDTO.getAccount().getIdNumber()) ||
Category.accountNumberCategory("108", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("109", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("37", balanceDTO.getAccount().getIdNumber()) )
+ Category.accountNumberCategory("109", balanceDTO.getAccount().getIdNumber()) )
{
passifTab.get("PASSIF_CP_CAPITAL").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
}
@@ -343,7 +339,7 @@
List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL");
for ( BalanceDTO balanceDTO : listBalance )
{
- actifTab.get("ACTIF_IMMOBILISE_INCORPOREL").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ actifTab.get("ACTIF_IMMOBILISE_INCORPOREL").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
}
}
if ( provisionMap.get("ACTIF_IMMOBILISE_CORPOREL") != null )
@@ -351,7 +347,7 @@
List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_CORPOREL");
for ( BalanceDTO balanceDTO : listBalance )
{
- actifTab.get("ACTIF_IMMOBILISE_CORPOREL").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ actifTab.get("ACTIF_IMMOBILISE_CORPOREL").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
}
}
if ( provisionMap.get("ACTIF_IMMOBILISE_FINANCIER") != null )
@@ -359,7 +355,7 @@
List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_FINANCIER");
for ( BalanceDTO balanceDTO : listBalance )
{
- actifTab.get("ACTIF_IMMOBILISE_FINANCIER").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ actifTab.get("ACTIF_IMMOBILISE_FINANCIER").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
}
}
@@ -372,7 +368,7 @@
listActif.add(actifTab.get("ACTIF_IMMOBILISE_INCORPOREL"));
listActif.add(actifTab.get("ACTIF_IMMOBILISE_CORPOREL"));
listActif.add(actifTab.get("ACTIF_IMMOBILISE_FINANCIER"));
- listActif.add(new Bilan("SOUS-TOTAL (1)","soustotal",actifTab.get("ACTIF_IMMOBILISE").getTotal(),"0"));
+ listActif.add(new Bilan("SOUS-TOTAL (1)","soustotal",actifTab.get("ACTIF_IMMOBILISE").getTotal(),actifTab.get("ACTIF_IMMOBILISE").getDepreciation()));
listActif.add(actifTab.get("ACTIF_CIRCULANT"));
listActif.add(actifTab.get("ACTIF_CIRCULANT_STOCK"));
listActif.add(actifTab.get("ACTIF_CIRCULANT_AVANCES"));
@@ -380,7 +376,7 @@
listActif.add(actifTab.get("ACTIF_CIRCULANT_VMP"));
listActif.add(actifTab.get("ACTIF_CIRCULANT_DISPONIBILITE"));
listActif.add(actifTab.get("ACTIF_CIRCULANT_CCA"));
- listActif.add(new Bilan("SOUS-TOTAL (2)","soustotal",actifTab.get("ACTIF_CIRCULANT").getTotal(),"0"));
+ listActif.add(new Bilan("SOUS-TOTAL (2)","soustotal",actifTab.get("ACTIF_CIRCULANT").getTotal(),actifTab.get("ACTIF_CIRCULANT").getDepreciation()));
listActif.add(actifTab.get("ACTIF"));
// Création du modèle à partir de la liste précédement créée
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java 2009-08-25 14:13:29 UTC (rev 2686)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java 2009-08-25 16:18:12 UTC (rev 2687)
@@ -30,13 +30,11 @@
import org.chorem.lima.table.ResultProduitsJXTable;
import org.chorem.lima.table.model.ResultChargesTableModel;
import org.chorem.lima.table.model.ResultProduitsTableModel;
-import org.chorem.lima.table.renderer.ResultTableCellRenderer;
import org.chorem.lima.util.Util;
import static org.nuiton.i18n.I18n._;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.jdesktop.swingx.decorator.HighlighterFactory;
import org.jdesktop.swingx.JXTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.*;
@@ -239,28 +237,28 @@
)
{
chargeTab.get("exploitation").add(balanceDTO);
- totalCharges = DTOHelper.AddNumbersString(totalCharges, balanceDTO.getDebit());
+ totalCharges = DTOHelper.AddNumbersString(totalCharges, DTOHelper.SubNumbersString(balanceDTO.getDebit(),balanceDTO.getCredit()));
}
// Financières
if ( Category.accountNumberCategory("66", balanceDTO.getAccount().getIdNumber()) ||
Category.accountNumberCategory("686", balanceDTO.getAccount().getIdNumber()) )
{
chargeTab.get("financier").add(balanceDTO);
- totalCharges = DTOHelper.AddNumbersString(totalCharges, balanceDTO.getDebit());
+ totalCharges = DTOHelper.AddNumbersString(totalCharges, DTOHelper.SubNumbersString(balanceDTO.getDebit(),balanceDTO.getCredit()));
}
// Exceptionnelles
if ( Category.accountNumberCategory("67", balanceDTO.getAccount().getIdNumber()) ||
Category.accountNumberCategory("687", balanceDTO.getAccount().getIdNumber()) )
{
chargeTab.get("exceptionnel").add(balanceDTO);
- totalCharges = DTOHelper.AddNumbersString(totalCharges, balanceDTO.getDebit());
+ totalCharges = DTOHelper.AddNumbersString(totalCharges, DTOHelper.SubNumbersString(balanceDTO.getDebit(),balanceDTO.getCredit()));
}
// Autres
if ( Category.accountNumberCategory("691", balanceDTO.getAccount().getIdNumber()) ||
Category.accountNumberCategory("695", balanceDTO.getAccount().getIdNumber()) )
{
chargeTab.get("autres").add(balanceDTO);
- totalCharges = DTOHelper.AddNumbersString(totalCharges, balanceDTO.getDebit());
+ totalCharges = DTOHelper.AddNumbersString(totalCharges, DTOHelper.SubNumbersString(balanceDTO.getDebit(),balanceDTO.getCredit()));
}
/**
* PRODUIT
@@ -277,7 +275,7 @@
)
{
produitTab.get("exploitation").add(balanceDTO);
- totalProduits = DTOHelper.AddNumbersString(totalProduits, balanceDTO.getCredit());
+ totalProduits = DTOHelper.AddNumbersString(totalProduits, DTOHelper.SubNumbersString(balanceDTO.getCredit(),balanceDTO.getDebit()));
}
// Financières
if ( Category.accountNumberCategory("76", balanceDTO.getAccount().getIdNumber()) ||
@@ -285,7 +283,7 @@
Category.accountNumberCategory("796", balanceDTO.getAccount().getIdNumber()) )
{
produitTab.get("financier").add(balanceDTO);
- totalProduits = DTOHelper.AddNumbersString(totalProduits, balanceDTO.getCredit());
+ totalProduits = DTOHelper.AddNumbersString(totalProduits, DTOHelper.SubNumbersString(balanceDTO.getCredit(),balanceDTO.getDebit()));
}
// Exceptionnelles
if ( Category.accountNumberCategory("77", balanceDTO.getAccount().getIdNumber()) ||
@@ -293,7 +291,7 @@
Category.accountNumberCategory("797", balanceDTO.getAccount().getIdNumber()) )
{
produitTab.get("exceptionnel").add(balanceDTO);
- totalProduits = DTOHelper.AddNumbersString(totalProduits, balanceDTO.getCredit());
+ totalProduits = DTOHelper.AddNumbersString(totalProduits, DTOHelper.SubNumbersString(balanceDTO.getCredit(),balanceDTO.getDebit()));
}
}
1
0
r2686 - in trunk/lima-main/src/main/java/org/chorem/lima: . imports ui
by rchapelet@users.chorem.org 25 Aug '09
by rchapelet@users.chorem.org 25 Aug '09
25 Aug '09
Author: rchapelet
Date: 2009-08-25 16:13:29 +0200 (Tue, 25 Aug 2009)
New Revision: 2686
Modified:
trunk/lima-main/src/main/java/org/chorem/lima/DataManager.java
trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImport.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionViewImpl.java
Log:
Ajout d'un peu plus de javadoc
Modified: trunk/lima-main/src/main/java/org/chorem/lima/DataManager.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/DataManager.java 2009-08-25 10:38:30 UTC (rev 2685)
+++ trunk/lima-main/src/main/java/org/chorem/lima/DataManager.java 2009-08-25 14:13:29 UTC (rev 2686)
@@ -31,6 +31,13 @@
import java.util.LinkedList;
/**
+ * Cette classe permet de gérer les données de Lima. Chaque type de données
+ * peut être récupéré. Certaines données peuvent être retourner sous forme
+ * de model (essentiellement pour les données en tableau).
+ * Exemple : pour récupérer les transactions, il suffit d'appeler la méthode
+ * getTransactionModel, qui ensuite possède une méthode pour récuper les données
+ * sous forme de liste.
+ *
* @author ore
* @author Rémi Chapelet
*/
@@ -145,6 +152,14 @@
return transactionModel;
}
+
+ /**
+ * Permet de relancer le model des transactions. Il a besoin en entrée de
+ * la liste des transactions à charger dans Lima. Cette méthode peut être
+ * utilisée dans le cas d'un import de données par exemple.
+ * @param listTransactions
+ * @return
+ */
public TransactionDataTableModel resetTransactionModel (List<TransactionDTO> listTransactions) {
transactionModel = new TransactionDataTableModel(listTransactions);
return transactionModel;
Modified: trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImport.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImport.java 2009-08-25 10:38:30 UTC (rev 2685)
+++ trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImport.java 2009-08-25 14:13:29 UTC (rev 2686)
@@ -246,6 +246,18 @@
return result;
}
+ /**
+ * Import des transactions. Il recherche le journal correspondant dans la
+ * base. C'est pourquoi le journal doit être chargé avant la lecture des
+ * transactions. Il fait de même avec les périodes. Lorsqu'il a chargé
+ * toutes les données de la transaction, il ajoute celle-ci dans lima.
+ * Il associe également la transaction lue dans la variable transactionLast.
+ * ainsi après avoir lu la transaction, il va lire les entrées de la transaction.
+ * Lors de l'ajout d'une entrée, il est nécessaire de connaître la transaction
+ * à laquelle elle est rattachée.
+ * @param line
+ * @return
+ */
public String importTransactions (String[] line)
{
String result="";
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionViewImpl.java 2009-08-25 10:38:30 UTC (rev 2685)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionViewImpl.java 2009-08-25 14:13:29 UTC (rev 2686)
@@ -64,7 +64,6 @@
private TransactionSortedTableModel sortedModel;
private TransactionSortedTableColumnModel columnModel;
private TransactionFlattenTableModel flattenModel;
- private static JOptionPane messageError = new JOptionPane();
/**
* MODELS
@@ -171,7 +170,6 @@
public void itemStateChanged(ItemEvent e) {
getTransactionTable().removeColorEmptyLine();
getFlattenModel().initData();
-
if (e.getStateChange() == ItemEvent.SELECTED) {
JComboBox comboBox = (JComboBox) e.getSource();
PeriodDTO item = (PeriodDTO) comboBox.getSelectedItem();
1
0
Author: rchapelet
Date: 2009-08-25 12:38:30 +0200 (Tue, 25 Aug 2009)
New Revision: 2685
Added:
trunk/doc/rapport-remi/Projet LIMA - remi.pdf
Log:
Ajout rapport PDF
Added: trunk/doc/rapport-remi/Projet LIMA - remi.pdf
===================================================================
(Binary files differ)
Property changes on: trunk/doc/rapport-remi/Projet LIMA - remi.pdf
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
1
0
r2684 - in trunk/lima-main/src/main/java/org/chorem/lima: . ui
by rchapelet@users.chorem.org 25 Aug '09
by rchapelet@users.chorem.org 25 Aug '09
25 Aug '09
Author: rchapelet
Date: 2009-08-25 12:28:29 +0200 (Tue, 25 Aug 2009)
New Revision: 2684
Modified:
trunk/lima-main/src/main/java/org/chorem/lima/Main.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/AccueilViewImpl.java
Log:
J'ai d?\195?\169plac?\195?\169 le chargement des donn?\195?\169es. Il s'effectuait ?\195?\160 l'ouverture de l'onglet accueil (solution temporaire). Maintenant il se r?\195?\169alise dans le main.
Modified: trunk/lima-main/src/main/java/org/chorem/lima/Main.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/Main.java 2009-08-24 13:25:49 UTC (rev 2683)
+++ trunk/lima-main/src/main/java/org/chorem/lima/Main.java 2009-08-25 10:28:29 UTC (rev 2684)
@@ -21,6 +21,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.ui.ProgressBarImpl;
import org.chorem.lima.service.ServiceFactory;
import static org.nuiton.i18n.I18n._;
@@ -41,6 +42,7 @@
private static final Log log = LogFactory.getLog(Main.class);
private static long startingTime = System.nanoTime();
+ private static ProgressBarImpl b;
public static LimaContext getContext() {
return LimaContext.get();
@@ -153,6 +155,42 @@
log.info(_("lima.init.ui.done"));
+ /**
+ * Lancement de la barre de chargement
+ * L'application va charger en mémoire les données
+ */
+ new Thread()
+ {
+ @Override
+ public void run(){
+
+ if ( b == null)
+ {
+ b = new ProgressBarImpl();
+ // Chargement des journaux
+ b.getProgressBar().setString("5% : "+_("lima.progressBar.load.etape1"));
+ b.getProgressBar().setValue(0);
+ Main.getContext().getDataManager().getJournalModel();
+ // Chargement des comptes
+ b.getProgressBar().setString("30% : "+_("lima.progressBar.load.etape2"));
+ b.getProgressBar().setValue(30);
+ Main.getContext().getDataManager().getAccountModel();
+ // Chargement des status
+ b.getProgressBar().setString("50% : "+_("lima.progressBar.load.etape3"));
+ b.getProgressBar().setValue(50);
+ Main.getContext().getDataManager().getStatus();
+ // Chargement des periodes
+ b.getProgressBar().setString("60% : "+_("lima.progressBar.load.etape4"));
+ b.getProgressBar().setValue(60);
+ Main.getContext().getDataManager().getPeriodes();
+ // Chargement des transactions
+ b.getProgressBar().setString("70% : "+_("lima.progressBar.load.etape5"));
+ b.getProgressBar().setValue(70);
+ Main.getContext().getDataManager().getTransactionModel(b.getProgressBar());
+ b.getProgressBarFrame().dispose();
+ }
+ }
+ }.start();
SwingUtilities.invokeLater(new Runnable() {
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/AccueilViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/AccueilViewImpl.java 2009-08-24 13:25:49 UTC (rev 2683)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/AccueilViewImpl.java 2009-08-25 10:28:29 UTC (rev 2684)
@@ -19,15 +19,12 @@
package org.chorem.lima.ui;
-import org.chorem.lima.Main;
-import static org.nuiton.i18n.I18n._;
/**
* @author Rémi Chapelet
*/
public class AccueilViewImpl extends AccueilView {
- static ProgressBarImpl b;
/**
* Constructor
@@ -35,38 +32,6 @@
public AccueilViewImpl() {
- new Thread()
- {
- @Override
- public void run(){
- if ( b == null)
- {
- b = new ProgressBarImpl();
- // Chargement des journaux
- b.getProgressBar().setString("5% : "+_("lima.progressBar.load.etape1"));
- b.getProgressBar().setValue(0);
- Main.getContext().getDataManager().getJournalModel();
- // Chargement des comptes
- b.getProgressBar().setString("30% : "+_("lima.progressBar.load.etape2"));
- b.getProgressBar().setValue(30);
- Main.getContext().getDataManager().getAccountModel();
- // Chargement des status
- b.getProgressBar().setString("50% : "+_("lima.progressBar.load.etape3"));
- b.getProgressBar().setValue(50);
- Main.getContext().getDataManager().getStatus();
- // Chargement des periodes
- b.getProgressBar().setString("60% : "+_("lima.progressBar.load.etape4"));
- b.getProgressBar().setValue(60);
- Main.getContext().getDataManager().getPeriodes();
- // Chargement des transactions
- b.getProgressBar().setString("70% : "+_("lima.progressBar.load.etape5"));
- b.getProgressBar().setValue(70);
- Main.getContext().getDataManager().getTransactionModel(b.getProgressBar());
- b.getProgressBarFrame().dispose();
- }
- }
- }.start();
-
}
}
1
0
r2683 - in trunk/lima-main/src/main/java/org/chorem/lima: bilan table table/model table/renderer ui
by rchapelet@users.chorem.org 24 Aug '09
by rchapelet@users.chorem.org 24 Aug '09
24 Aug '09
Author: rchapelet
Date: 2009-08-24 15:25:49 +0200 (Mon, 24 Aug 2009)
New Revision: 2683
Added:
trunk/lima-main/src/main/java/org/chorem/lima/table/ResultChargesJXTable.java
trunk/lima-main/src/main/java/org/chorem/lima/table/ResultProduitsJXTable.java
trunk/lima-main/src/main/java/org/chorem/lima/table/renderer/BilanActifTableCellRenderer.java
trunk/lima-main/src/main/java/org/chorem/lima/table/renderer/BilanPassifTableCellRenderer.java
Modified:
trunk/lima-main/src/main/java/org/chorem/lima/bilan/Bilan.java
trunk/lima-main/src/main/java/org/chorem/lima/table/BilanActifJXTable.java
trunk/lima-main/src/main/java/org/chorem/lima/table/BilanPassifJXTable.java
trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultChargesTableModel.java
trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultProduitsTableModel.java
trunk/lima-main/src/main/java/org/chorem/lima/table/renderer/BalanceTableCellRenderer.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/BalanceViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanView.jaxx
trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java
Log:
Mise en page du bilan & compte de r?\195?\169sultat
Modified: trunk/lima-main/src/main/java/org/chorem/lima/bilan/Bilan.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/bilan/Bilan.java 2009-08-21 16:29:50 UTC (rev 2682)
+++ trunk/lima-main/src/main/java/org/chorem/lima/bilan/Bilan.java 2009-08-24 13:25:49 UTC (rev 2683)
@@ -23,7 +23,6 @@
import org.chorem.lima.dto.BilanDTO;
import org.chorem.lima.dto.BalanceDTO;
import org.chorem.lima.dto.util.DTOHelper;
-import org.chorem.lima.util.Util;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -39,6 +38,7 @@
private List<Bilan> listBilan;
private String numberAccount;
private String position = "";
+ private Bilan bilanMaster = null;
public Bilan ()
{
@@ -122,7 +122,12 @@
{
if (bilan != null)
{
+ // Ajout à la liste
listBilan.add(bilan);
+ // Ajout du bilan père
+ bilan.setBilanMaster(this);
+ // Ajout du total au(x) bilan(s) père(s)
+ addTotalMasterBilan (bilan, bilan.getTotal());
}
}
@@ -134,8 +139,7 @@
public void add (Bilan bilan, String total)
{
if (bilan != null)
- {
- this.setTotal(DTOHelper.AddNumbersString(this.getTotal(), total));
+ {
add(bilan);
}
}
@@ -188,10 +192,30 @@
return this.position;
}
+ public Bilan getBilanMaster ()
+ {
+ return bilanMaster;
+ }
+
+ public void setBilanMaster (Bilan bilan)
+ {
+ bilanMaster = bilan;
+ }
+
public void addTotal (String number)
{
this.setTotal(DTOHelper.AddNumbersString(this.getTotal(), number));
}
+ public void addTotalMasterBilan (Bilan bilan,String total)
+ {
+ // Tant que un bilan possède un bilan père, on ajoute le total à ce dernier
+ Bilan bilanSearch = bilan.getBilanMaster();
+ while ( bilanSearch!=null )
+ {
+ bilanSearch.setTotal(DTOHelper.AddNumbersString(bilanSearch.getTotal(), total));
+ bilanSearch = bilanSearch.getBilanMaster();
+ }
+ }
}
\ No newline at end of file
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/BilanActifJXTable.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/BilanActifJXTable.java 2009-08-21 16:29:50 UTC (rev 2682)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/BilanActifJXTable.java 2009-08-24 13:25:49 UTC (rev 2683)
@@ -21,16 +21,13 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.dto.util.DTOHelper;
import org.chorem.lima.table.model.BilanActifTableModel;
+import org.chorem.lima.table.renderer.BilanActifTableCellRenderer;
import org.jdesktop.swingx.JXTable;
import org.jdesktop.swingx.decorator.ColorHighlighter;
import org.jdesktop.swingx.decorator.ComponentAdapter;
import org.jdesktop.swingx.decorator.HighlightPredicate;
-import javax.swing.*;
-import javax.swing.table.TableColumnModel;
-import javax.swing.table.TableModel;
import java.awt.*;
/**
@@ -41,7 +38,7 @@
/**
* log
*/
- private static final Log log = LogFactory.getLog(TransactionJXTable.class);
+ private static final Log log = LogFactory.getLog(BilanActifJXTable.class);
private ColorHighlighter colorTitle;
/**
@@ -56,7 +53,14 @@
setColumnControlVisible(true);
addColorTitle();
-
+ addColorTotal();
+
+ // On associe pour chaque colonne l'affichage des cellules (centré, alignement, etc)
+ BilanActifTableCellRenderer bilanTableCellRenderer = new BilanActifTableCellRenderer();
+ for (int i = 0; i < getModel().getColumnCount(); i++) {
+ getColumnModel().getColumn(i).setCellRenderer(bilanTableCellRenderer);
+ }
+
}
@@ -75,9 +79,26 @@
};
colorTitle = new ColorHighlighter(predicate, new Color(222,222,222), null,null,null);
addHighlighter(colorTitle);
+ }
+ public void addColorTotal() {
+ HighlightPredicate predicate = new HighlightPredicate() {
+
+ @Override
+ public boolean isHighlighted(Component arg0, ComponentAdapter adapter) {
+ boolean result = false;
+ if ( getModel().getElement(adapter.row).getPosition().equalsIgnoreCase("total") )
+ {
+ result = true;
+ }
+ return result;
+ }
+ };
+ colorTitle = new ColorHighlighter(predicate, new Color(140,150,217), null,null,null);
+ addHighlighter(colorTitle);
}
+
@Override
public BilanActifTableModel getModel() {
return (BilanActifTableModel) this.dataModel;
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/BilanPassifJXTable.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/BilanPassifJXTable.java 2009-08-21 16:29:50 UTC (rev 2682)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/BilanPassifJXTable.java 2009-08-24 13:25:49 UTC (rev 2683)
@@ -21,16 +21,13 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.dto.util.DTOHelper;
import org.chorem.lima.table.model.BilanPassifTableModel;
+import org.chorem.lima.table.renderer.BilanPassifTableCellRenderer;
import org.jdesktop.swingx.JXTable;
import org.jdesktop.swingx.decorator.ColorHighlighter;
import org.jdesktop.swingx.decorator.ComponentAdapter;
import org.jdesktop.swingx.decorator.HighlightPredicate;
-import javax.swing.*;
-import javax.swing.table.TableColumnModel;
-import javax.swing.table.TableModel;
import java.awt.*;
/**
@@ -41,7 +38,7 @@
/**
* log
*/
- private static final Log log = LogFactory.getLog(TransactionJXTable.class);
+ private static final Log log = LogFactory.getLog(BilanPassifJXTable.class);
private ColorHighlighter colorTitle;
/**
@@ -56,7 +53,14 @@
setColumnControlVisible(true);
addColorTitle();
+ addColorTotal();
+ // On associe pour chaque colonne l'affichage des cellules (centré, alignement, etc)
+ BilanPassifTableCellRenderer bilanTableCellRenderer = new BilanPassifTableCellRenderer();
+ for (int i = 0; i < getModel().getColumnCount(); i++) {
+ getColumnModel().getColumn(i).setCellRenderer(bilanTableCellRenderer);
+ }
+
}
@@ -78,6 +82,23 @@
}
+ public void addColorTotal() {
+ HighlightPredicate predicate = new HighlightPredicate() {
+
+ @Override
+ public boolean isHighlighted(Component arg0, ComponentAdapter adapter) {
+ boolean result = false;
+ if ( getModel().getElement(adapter.row).getPosition().equalsIgnoreCase("total") )
+ {
+ result = true;
+ }
+ return result;
+ }
+ };
+ colorTitle = new ColorHighlighter(predicate, new Color(140,150,217), null,null,null);
+ addHighlighter(colorTitle);
+ }
+
@Override
public BilanPassifTableModel getModel() {
return (BilanPassifTableModel) this.dataModel;
Added: trunk/lima-main/src/main/java/org/chorem/lima/table/ResultChargesJXTable.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/ResultChargesJXTable.java (rev 0)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/ResultChargesJXTable.java 2009-08-24 13:25:49 UTC (rev 2683)
@@ -0,0 +1,92 @@
+/**
+ * *##% Lima Main
+ * Copyright (C) 2009 CodeLutin
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*
+ */
+
+package org.chorem.lima.table;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.table.model.ResultChargesTableModel;
+import org.chorem.lima.table.renderer.ResultTableCellRenderer;
+import org.jdesktop.swingx.JXTable;
+import org.jdesktop.swingx.decorator.ColorHighlighter;
+import org.jdesktop.swingx.decorator.ComponentAdapter;
+import org.jdesktop.swingx.decorator.HighlightPredicate;
+
+import java.awt.*;
+
+/**
+ * @author Rémi Chapelet
+ */
+public class ResultChargesJXTable extends JXTable {
+
+ /**
+ * log
+ */
+ private static final Log log = LogFactory.getLog(ResultChargesJXTable.class);
+ private ColorHighlighter colorTitle;
+
+ /**
+ * @param model
+ * @param columnModel
+ */
+ public ResultChargesJXTable(ResultChargesTableModel model) {
+ super(model);
+
+ /** Design de la table */
+ setRowHeight(24);
+ setColumnControlVisible(true);
+
+ addColorTitle();
+
+ // On associe pour chaque colonne l'affichage des cellules (centré, alignement, etc)
+ ResultTableCellRenderer resultTableCellRenderer = new ResultTableCellRenderer();
+ for (int i = 0; i < getModel().getColumnCount(); i++) {
+ getColumnModel().getColumn(i).setCellRenderer(resultTableCellRenderer);
+ }
+
+ }
+
+
+ public void addColorTitle() {
+ HighlightPredicate predicate = new HighlightPredicate() {
+
+ @Override
+ public boolean isHighlighted(Component arg0, ComponentAdapter adapter) {
+ boolean result = false;
+ if ( getModel().getElement(adapter.row).getPosition().equalsIgnoreCase("title") )
+ {
+ result = true;
+ }
+ return result;
+ }
+ };
+ colorTitle = new ColorHighlighter(predicate, new Color(222,222,222), null,null,null);
+ addHighlighter(colorTitle);
+ }
+
+
+
+
+ @Override
+ public ResultChargesTableModel getModel() {
+ return (ResultChargesTableModel) this.dataModel;
+ }
+
+
+}
Added: trunk/lima-main/src/main/java/org/chorem/lima/table/ResultProduitsJXTable.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/ResultProduitsJXTable.java (rev 0)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/ResultProduitsJXTable.java 2009-08-24 13:25:49 UTC (rev 2683)
@@ -0,0 +1,92 @@
+/**
+ * *##% Lima Main
+ * Copyright (C) 2009 CodeLutin
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*
+ */
+
+package org.chorem.lima.table;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.table.model.ResultProduitsTableModel;
+import org.chorem.lima.table.renderer.ResultTableCellRenderer;
+import org.jdesktop.swingx.JXTable;
+import org.jdesktop.swingx.decorator.ColorHighlighter;
+import org.jdesktop.swingx.decorator.ComponentAdapter;
+import org.jdesktop.swingx.decorator.HighlightPredicate;
+
+import java.awt.*;
+
+/**
+ * @author Rémi Chapelet
+ */
+public class ResultProduitsJXTable extends JXTable {
+
+ /**
+ * log
+ */
+ private static final Log log = LogFactory.getLog(ResultProduitsJXTable.class);
+ private ColorHighlighter colorTitle;
+
+ /**
+ * @param model
+ * @param columnModel
+ */
+ public ResultProduitsJXTable(ResultProduitsTableModel model) {
+ super(model);
+
+ /** Design de la table */
+ setRowHeight(24);
+ setColumnControlVisible(true);
+
+ addColorTitle();
+
+ // On associe pour chaque colonne l'affichage des cellules (centré, alignement, etc)
+ ResultTableCellRenderer resultTableCellRenderer = new ResultTableCellRenderer();
+ for (int i = 0; i < getModel().getColumnCount(); i++) {
+ getColumnModel().getColumn(i).setCellRenderer(resultTableCellRenderer);
+ }
+
+ }
+
+
+ public void addColorTitle() {
+ HighlightPredicate predicate = new HighlightPredicate() {
+
+ @Override
+ public boolean isHighlighted(Component arg0, ComponentAdapter adapter) {
+ boolean result = false;
+ if ( getModel().getElement(adapter.row).getPosition().equalsIgnoreCase("title") )
+ {
+ result = true;
+ }
+ return result;
+ }
+ };
+ colorTitle = new ColorHighlighter(predicate, new Color(222,222,222), null,null,null);
+ addHighlighter(colorTitle);
+ }
+
+
+
+
+ @Override
+ public ResultProduitsTableModel getModel() {
+ return (ResultProduitsTableModel) this.dataModel;
+ }
+
+
+}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultChargesTableModel.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultChargesTableModel.java 2009-08-21 16:29:50 UTC (rev 2682)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultChargesTableModel.java 2009-08-24 13:25:49 UTC (rev 2683)
@@ -119,4 +119,9 @@
return false;
}
+ public BalanceDTO getElement (int row)
+ {
+ return data.get(row);
+ }
+
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultProduitsTableModel.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultProduitsTableModel.java 2009-08-21 16:29:50 UTC (rev 2682)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/model/ResultProduitsTableModel.java 2009-08-24 13:25:49 UTC (rev 2683)
@@ -119,4 +119,9 @@
return false;
}
+ public BalanceDTO getElement (int row)
+ {
+ return data.get(row);
+ }
+
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/renderer/BalanceTableCellRenderer.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/renderer/BalanceTableCellRenderer.java 2009-08-21 16:29:50 UTC (rev 2682)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/renderer/BalanceTableCellRenderer.java 2009-08-24 13:25:49 UTC (rev 2683)
@@ -19,13 +19,16 @@
package org.chorem.lima.table.renderer;
-import org.chorem.lima.dto.util.DTOHelper;
-import org.chorem.lima.table.TransactionJXTable;
import javax.swing.table.*;
import javax.swing.*;
import java.awt.*;
+/**
+ * Permet de modifier l'apparence du tableau pour la balance
+ * @author Rémi Chapelet
+ */
+
public class BalanceTableCellRenderer extends DefaultTableCellRenderer {
@Override
Added: trunk/lima-main/src/main/java/org/chorem/lima/table/renderer/BilanActifTableCellRenderer.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/renderer/BilanActifTableCellRenderer.java (rev 0)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/renderer/BilanActifTableCellRenderer.java 2009-08-24 13:25:49 UTC (rev 2683)
@@ -0,0 +1,80 @@
+/**
+ * *##% Lima-Callao
+ * Copyright (C) 2009 CodeLutin
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*
+ */
+
+package org.chorem.lima.table.renderer;
+
+import org.chorem.lima.bilan.Bilan;
+import org.chorem.lima.table.BilanActifJXTable;
+import javax.swing.table.*;
+import javax.swing.*;
+import java.awt.*;
+
+
+/**
+ * Permet de modifier l'apparence du tableau pour le bilan à l'actif
+ * @author Rémi Chapelet
+ */
+
+public class BilanActifTableCellRenderer extends DefaultTableCellRenderer {
+
+ @Override
+ public Component getTableCellRendererComponent(JTable table, Object value,
+ boolean isSelected, boolean hasFocus, int row, int column)
+ {
+ super.getTableCellRendererComponent(table, value, isSelected, hasFocus,
+ row, column);
+
+ // Récupère la JXTable du bilan actif
+ BilanActifJXTable bilanActifJXTable = (BilanActifJXTable) table;
+ // Récupère le bilan de la ligne
+ Bilan bilan = bilanActifJXTable.getModel().getElement(row);
+ // Si le bilan est un soustotal, alors la ligne est en gras
+ if (bilan.getPosition().equalsIgnoreCase("soustotal"))
+ {
+ setFont(new Font("Verdana", Font.BOLD, 12));
+ }
+
+ if (bilan.getPosition().equalsIgnoreCase("total"))
+ {
+ setFont(new Font("Verdana", Font.BOLD, 13));
+ }
+
+ // Alignement des cellules
+ switch (column) {
+ case 0:
+ this.setHorizontalAlignment(JLabel.LEFT);
+ break;
+ case 1:
+ this.setHorizontalAlignment(JLabel.RIGHT);
+ break;
+ case 2:
+ this.setHorizontalAlignment(JLabel.RIGHT);
+ break;
+ case 3:
+ this.setHorizontalAlignment(JLabel.RIGHT);
+ break;
+ case 4:
+ this.setHorizontalAlignment(JLabel.RIGHT);
+ break;
+ }
+
+ return this;
+ }
+
+}
Added: trunk/lima-main/src/main/java/org/chorem/lima/table/renderer/BilanPassifTableCellRenderer.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/renderer/BilanPassifTableCellRenderer.java (rev 0)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/renderer/BilanPassifTableCellRenderer.java 2009-08-24 13:25:49 UTC (rev 2683)
@@ -0,0 +1,71 @@
+/**
+ * *##% Lima-Callao
+ * Copyright (C) 2009 CodeLutin
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*
+ */
+
+package org.chorem.lima.table.renderer;
+
+import org.chorem.lima.bilan.Bilan;
+import org.chorem.lima.table.BilanPassifJXTable;
+import javax.swing.table.*;
+import javax.swing.*;
+import java.awt.*;
+
+
+/**
+ * Permet de modifier l'apparence du tableau pour le bilan au passif
+ * @author Rémi Chapelet
+ */
+
+public class BilanPassifTableCellRenderer extends DefaultTableCellRenderer {
+
+ @Override
+ public Component getTableCellRendererComponent(JTable table, Object value,
+ boolean isSelected, boolean hasFocus, int row, int column)
+ {
+ super.getTableCellRendererComponent(table, value, isSelected, hasFocus,
+ row, column);
+
+ // Récupère la JXTable du bilan actif
+ BilanPassifJXTable bilanPassifJXTable = (BilanPassifJXTable) table;
+ // Récupère le bilan de la ligne
+ Bilan bilan = bilanPassifJXTable.getModel().getElement(row);
+ // Si le bilan est un soustotal, alors la ligne est en gras
+ if (bilan.getPosition().equalsIgnoreCase("soustotal"))
+ {
+ setFont(new Font("Verdana", Font.BOLD, 12));
+ }
+
+ if (bilan.getPosition().equalsIgnoreCase("total"))
+ {
+ setFont(new Font("Verdana", Font.BOLD, 13));
+ }
+
+ // Alignement des cellules
+ switch (column) {
+ case 0:
+ this.setHorizontalAlignment(JLabel.LEFT);
+ break;
+ case 1:
+ this.setHorizontalAlignment(JLabel.RIGHT);
+ break;
+ }
+
+ return this;
+ }
+
+}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/BalanceViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/BalanceViewImpl.java 2009-08-21 16:29:50 UTC (rev 2682)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/BalanceViewImpl.java 2009-08-24 13:25:49 UTC (rev 2683)
@@ -28,7 +28,6 @@
import org.chorem.lima.Main;
import org.chorem.lima.table.model.BalanceTableModel;
import org.chorem.lima.table.renderer.BalanceTableCellRenderer;
-import org.chorem.lima.util.Util;
import static org.nuiton.i18n.I18n._;
import org.jdesktop.swingx.JXTable;
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanView.jaxx
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanView.jaxx 2009-08-21 16:29:50 UTC (rev 2682)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanView.jaxx 2009-08-24 13:25:49 UTC (rev 2683)
@@ -17,19 +17,13 @@
</row>
<!-- Affichage du bilan (actif et passif) -->
- <row weighty="6" anchor="center" fill="both">
- <cell weightx="60">
+ <row weightx="1.0" weighty="1.0" anchor="center" fill="both">
+ <cell weightx="0.5">
<JScrollPane id="tabActif" />
</cell>
- <cell weightx="100">
+ <cell weightx="0.5">
<JScrollPane id="tabPassif" />
</cell>
</row>
- <!-- Affichage du résultat -->
- <row columns="2">
- <cell>
- <JLabel />
- </cell>
- </row>
</Table>
\ No newline at end of file
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java 2009-08-21 16:29:50 UTC (rev 2682)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java 2009-08-24 13:25:49 UTC (rev 2683)
@@ -31,10 +31,7 @@
import org.chorem.lima.table.BilanPassifJXTable;
import org.chorem.lima.table.model.BilanActifTableModel;
import org.chorem.lima.table.model.BilanPassifTableModel;
-import org.chorem.lima.util.Util;
-import org.jdesktop.swingx.decorator.HighlighterFactory;
-import org.jdesktop.swingx.JXTable;
import java.awt.event.*;
import javax.swing.*;
import java.util.Hashtable;
@@ -43,6 +40,9 @@
import java.util.Vector;
/**
+ * Cette classe permet de calculer le bilan. Elle utilise la balance et
+ * le compte de résultat.
+ *
* @author Rémi Chapelet
*/
public class BilanViewImpl extends BilanView {
@@ -66,7 +66,7 @@
modelBilanActif = new BilanActifTableModel(new LinkedList<Bilan>());
modelBilanPassif = new BilanPassifTableModel(new LinkedList<Bilan>());
- // Charge les produits et charges
+ // Chargement du bilan
updateBilan();
/** ACTIF */
@@ -91,38 +91,79 @@
}
+ /**
+ * Permet de calculer le bilan
+ */
public void updateBilan ()
{
log.debug("Update bilan :");
// Chargement de la balance
List<BalanceDTO> ListbalanceDTO = balance.createBalance((PeriodDTO) comboBoxPeriod.getSelectedItem());
+ /**
+ * Cette partie consiste à créer les catégories du bilan
+ */
/** ACTIF */
Hashtable<String,Bilan> actifTab = new Hashtable<String,Bilan>();
- actifTab.put("ACTIF_IMMOBILISE_INCORPOREL", new Bilan("Immobilisé incorporel","0",null));
- actifTab.put("ACTIF_IMMOBILISE_CORPOREL", new Bilan("Immobilisé corporel","0",null));
- actifTab.put("ACTIF_IMMOBILISE_FINANCIER", new Bilan("Immobilisé financier","0",null));
- actifTab.put("ACTIF_CIRCULANT_STOCK", new Bilan("stocks et en-cours","0",null));
- actifTab.put("ACTIF_CIRCULANT_AVANCES", new Bilan("av. et ac. versés","0",null));
- actifTab.put("ACTIF_CIRCULANT_CREANCES", new Bilan("Créances","0",null));
- actifTab.put("ACTIF_CIRCULANT_VMP", new Bilan("VMP","0",null));
- actifTab.put("ACTIF_CIRCULANT_DISPONIBILITE", new Bilan("Disponibilités","0",null));
- actifTab.put("ACTIF_CIRCULANT_CCA", new Bilan("CCA","0",null));
+ actifTab.put("ACTIF", new Bilan("TOTAL (1) + (2)","total",null));
+ actifTab.put("ACTIF_IMMOBILISE", new Bilan("ACTIF IMMOBILISE","title",null));
+ actifTab.put("ACTIF_IMMOBILISE_INCORPOREL", new Bilan("Immobilisé incorporel","",null));
+ actifTab.get("ACTIF_IMMOBILISE").add(actifTab.get("ACTIF_IMMOBILISE_INCORPOREL"));
+ actifTab.put("ACTIF_IMMOBILISE_CORPOREL", new Bilan("Immobilisé corporel","",null));
+ actifTab.get("ACTIF_IMMOBILISE").add(actifTab.get("ACTIF_IMMOBILISE_CORPOREL"));
+ actifTab.put("ACTIF_IMMOBILISE_FINANCIER", new Bilan("Immobilisé financier","",null));
+ actifTab.get("ACTIF_IMMOBILISE").add(actifTab.get("ACTIF_IMMOBILISE_FINANCIER"));
+ actifTab.put("ACTIF_CIRCULANT", new Bilan("ACTIF CIRCULANT","title",null));
+ actifTab.put("ACTIF_CIRCULANT_STOCK", new Bilan("stocks et en-cours","",null));
+ actifTab.get("ACTIF_CIRCULANT").add(actifTab.get("ACTIF_CIRCULANT_STOCK"));
+ actifTab.put("ACTIF_CIRCULANT_AVANCES", new Bilan("av. et ac. versés","",null));
+ actifTab.get("ACTIF_CIRCULANT").add(actifTab.get("ACTIF_CIRCULANT_AVANCES"));
+ actifTab.put("ACTIF_CIRCULANT_CREANCES", new Bilan("Créances","",null));
+ actifTab.get("ACTIF_CIRCULANT").add(actifTab.get("ACTIF_CIRCULANT_CREANCES"));
+ actifTab.put("ACTIF_CIRCULANT_VMP", new Bilan("VMP","",null));
+ actifTab.get("ACTIF_CIRCULANT").add(actifTab.get("ACTIF_CIRCULANT_VMP"));
+ actifTab.put("ACTIF_CIRCULANT_DISPONIBILITE", new Bilan("Disponibilités","",null));
+ actifTab.get("ACTIF_CIRCULANT").add(actifTab.get("ACTIF_CIRCULANT_DISPONIBILITE"));
+ actifTab.put("ACTIF_CIRCULANT_CCA", new Bilan("CCA","",null));
+ actifTab.get("ACTIF_CIRCULANT").add(actifTab.get("ACTIF_CIRCULANT_CCA"));
+ actifTab.get("ACTIF").add(actifTab.get("ACTIF_IMMOBILISE"));
+ actifTab.get("ACTIF").add(actifTab.get("ACTIF_CIRCULANT"));
/** PASSIF */
Hashtable<String,Bilan> passifTab = new Hashtable<String,Bilan>();
- passifTab.put("PASSIF_CP_CAPITAL", new Bilan("Capital","0",null));
- passifTab.put("PASSIF_CP_RESERVES", new Bilan("Réserves","0",null));
- passifTab.put("PASSIF_CP_RAN", new Bilan("RAN","0",null));
- passifTab.put("PASSIF_CP_RESULTAT", new Bilan("Résultat","0",null));
- passifTab.put("PASSIF_CP_SUBVENTION", new Bilan("Subventions d'investissement","0",null));
- passifTab.put("PASSIF_CP_PROVISION", new Bilan("Provisions réglementées","0",null));
- passifTab.put("PASSIF_PROVISIONS", new Bilan("Provisions","0",null));
- passifTab.put("PASSIF_DETTES_EMPRUNTS", new Bilan("Emprunts","0",null));
- passifTab.put("PASSIF_DETTES_AVANCES", new Bilan("av. et ac. reçus","0",null));
- passifTab.put("PASSIF_DETTES_FOURNISSEURS", new Bilan("Fournisseurs","0",null));
- passifTab.put("PASSIF_DETTES_FISCALES", new Bilan("Fiscales/sociales","0",null));
- passifTab.put("PASSIF_DETTES_IMMOBILISATIONS", new Bilan("Immobilisations","0",null));
- passifTab.put("PASSIF_DETTES_AUTRES_DETTES", new Bilan("Autres dettes","0",null));
- passifTab.put("PASSIF_DETTES_PCA", new Bilan("PCA","0",null));
+ passifTab.put("PASSIF", new Bilan("TOTAL (1) + (2) + (3)","total",null));
+ passifTab.put("PASSIF_CAPITAUX", new Bilan("CAPITAUX PROPRES","title",null));
+ passifTab.put("PASSIF_CP_CAPITAL", new Bilan("Capital","",null));
+ passifTab.get("PASSIF_CAPITAUX").add(passifTab.get("PASSIF_CP_CAPITAL"));
+ passifTab.put("PASSIF_CP_RESERVES", new Bilan("Réserves","",null));
+ passifTab.get("PASSIF_CAPITAUX").add(passifTab.get("PASSIF_CP_RESERVES"));
+ passifTab.put("PASSIF_CP_RAN", new Bilan("RAN","",null));
+ passifTab.get("PASSIF_CAPITAUX").add(passifTab.get("PASSIF_CP_RAN"));
+ passifTab.put("PASSIF_CP_RESULTAT", new Bilan("Résultat","",null));
+ passifTab.get("PASSIF_CAPITAUX").add(passifTab.get("PASSIF_CP_RESULTAT"));
+ passifTab.put("PASSIF_CP_SUBVENTION", new Bilan("Subventions d'investissement","",null));
+ passifTab.get("PASSIF_CAPITAUX").add(passifTab.get("PASSIF_CP_SUBVENTION"));
+ passifTab.put("PASSIF_CP_PROVISION", new Bilan("Provisions réglementées","",null));
+ passifTab.get("PASSIF_CAPITAUX").add(passifTab.get("PASSIF_CP_PROVISION"));
+ passifTab.put("PASSIF_PR_PROVISIONS", new Bilan("PROVISIONS","title",null));
+ passifTab.put("PASSIF_PROVISIONS", new Bilan("Provisions","",null));
+ passifTab.get("PASSIF_PR_PROVISIONS").add(passifTab.get("PASSIF_PROVISIONS"));
+ passifTab.put("PASSIF_DETTES", new Bilan("DETTES","title",null));
+ passifTab.put("PASSIF_DETTES_EMPRUNTS", new Bilan("Emprunts","",null));
+ passifTab.get("PASSIF_DETTES").add(passifTab.get("PASSIF_DETTES_EMPRUNTS"));
+ passifTab.put("PASSIF_DETTES_AVANCES", new Bilan("av. et ac. reçus","",null));
+ passifTab.get("PASSIF_DETTES").add(passifTab.get("PASSIF_DETTES_AVANCES"));
+ passifTab.put("PASSIF_DETTES_FOURNISSEURS", new Bilan("Fournisseurs","",null));
+ passifTab.get("PASSIF_DETTES").add(passifTab.get("PASSIF_DETTES_FOURNISSEURS"));
+ passifTab.put("PASSIF_DETTES_FISCALES", new Bilan("Fiscales/sociales","",null));
+ passifTab.get("PASSIF_DETTES").add(passifTab.get("PASSIF_DETTES_FISCALES"));
+ passifTab.put("PASSIF_DETTES_IMMOBILISATIONS", new Bilan("Immobilisations","",null));
+ passifTab.get("PASSIF_DETTES").add(passifTab.get("PASSIF_DETTES_IMMOBILISATIONS"));
+ passifTab.put("PASSIF_DETTES_AUTRES_DETTES", new Bilan("Autres dettes","",null));
+ passifTab.get("PASSIF_DETTES").add(passifTab.get("PASSIF_DETTES_AUTRES_DETTES"));
+ passifTab.put("PASSIF_DETTES_PCA", new Bilan("PCA","",null));
+ passifTab.get("PASSIF_DETTES").add(passifTab.get("PASSIF_DETTES_PCA"));
+ passifTab.get("PASSIF").add(passifTab.get("PASSIF_CAPITAUX"));
+ passifTab.get("PASSIF").add(passifTab.get("PASSIF_CP_PROVISION"));
+ passifTab.get("PASSIF").add(passifTab.get("PASSIF_DETTES"));
/**
* Vérifie chaque numéro de compte (balance) pour déterminer sa position
@@ -130,9 +171,11 @@
* Chaque catégorie est un objet bilan, et possède à son tour des bilans
* correspondants aux comptes.
* Cette boucle ne prend pas en compte les amortissement et provisions.
- * Ces comptes sont mis dans une liste à part, pour être listés une seconde fois.
+ * Ces comptes sont mis dans une liste à part, pour être traités une seconde fois.
*/
+ // Liste amort/prov à traiter apres
Hashtable<String,List<BalanceDTO>> provisionMap = new Hashtable<String,List<BalanceDTO>>();
+ // Pour chaque balance
for ( BalanceDTO balanceDTO : ListbalanceDTO)
{
/**
@@ -325,36 +368,38 @@
*/
/** ACTIF */
List<Bilan> listActif = new LinkedList<Bilan>();
- listActif.add(new Bilan("ACTIF_IMMOBILISE","title",null));
+ listActif.add(actifTab.get("ACTIF_IMMOBILISE"));
listActif.add(actifTab.get("ACTIF_IMMOBILISE_INCORPOREL"));
listActif.add(actifTab.get("ACTIF_IMMOBILISE_CORPOREL"));
listActif.add(actifTab.get("ACTIF_IMMOBILISE_FINANCIER"));
- String total = DTOHelper.AddNumbersString(DTOHelper.AddNumbersString(actifTab.get("ACTIF_IMMOBILISE_INCORPOREL").getTotal(),actifTab.get("ACTIF_IMMOBILISE_CORPOREL").getTotal()),actifTab.get("ACTIF_IMMOBILISE_FINANCIER").getTotal());
- listActif.add(new Bilan("SOUS-TOTAL (1)","soustotal",total,"0"));
- listActif.add(new Bilan("ACTIF_CIRCULANT","title",null));
+ listActif.add(new Bilan("SOUS-TOTAL (1)","soustotal",actifTab.get("ACTIF_IMMOBILISE").getTotal(),"0"));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT"));
listActif.add(actifTab.get("ACTIF_CIRCULANT_STOCK"));
listActif.add(actifTab.get("ACTIF_CIRCULANT_AVANCES"));
listActif.add(actifTab.get("ACTIF_CIRCULANT_CREANCES"));
listActif.add(actifTab.get("ACTIF_CIRCULANT_VMP"));
listActif.add(actifTab.get("ACTIF_CIRCULANT_DISPONIBILITE"));
listActif.add(actifTab.get("ACTIF_CIRCULANT_CCA"));
- //listActif.add(new Bilan("SOUS-TOTAL (1)","soustotal",actifTab.get("ACTIF_CIRCULANT").getTotal(),"0"));
-
+ listActif.add(new Bilan("SOUS-TOTAL (2)","soustotal",actifTab.get("ACTIF_CIRCULANT").getTotal(),"0"));
+ listActif.add(actifTab.get("ACTIF"));
+
// Création du modèle à partir de la liste précédement créée
modelBilanActif.setData(listActif);
modelBilanActif.fireTableDataChanged();
/** PASSIF */
List<Bilan> listPassif = new LinkedList<Bilan>();
- listPassif.add(new Bilan("CAPITAUX PROPRES","title",null));
+ listPassif.add(passifTab.get("PASSIF_CAPITAUX"));
listPassif.add(passifTab.get("PASSIF_CP_CAPITAL"));
listPassif.add(passifTab.get("PASSIF_CP_RESERVES"));
listPassif.add(passifTab.get("PASSIF_CP_RAN"));
listPassif.add(passifTab.get("PASSIF_CP_SUBVENTION"));
listPassif.add(passifTab.get("PASSIF_CP_PROVISION"));
- listPassif.add(new Bilan("PROVISIONS","title",null));
+ listPassif.add(new Bilan("SOUS-TOTAL (1)","soustotal",passifTab.get("PASSIF_CAPITAUX").getTotal(),"0"));
+ listPassif.add(passifTab.get("PASSIF_PR_PROVISIONS"));
listPassif.add(passifTab.get("PASSIF_PROVISIONS"));
- listPassif.add(new Bilan("DETTES","title",null));
+ listPassif.add(new Bilan("SOUS-TOTAL (2)","soustotal",passifTab.get("PASSIF_PR_PROVISIONS").getTotal(),"0"));
+ listPassif.add(passifTab.get("PASSIF_DETTES"));
listPassif.add(passifTab.get("PASSIF_DETTES_EMPRUNTS"));
listPassif.add(passifTab.get("PASSIF_DETTES_AVANCES"));
listPassif.add(passifTab.get("PASSIF_DETTES_FOURNISSEURS"));
@@ -362,6 +407,8 @@
listPassif.add(passifTab.get("PASSIF_DETTES_IMMOBILISATIONS"));
listPassif.add(passifTab.get("PASSIF_DETTES_AUTRES_DETTES"));
listPassif.add(passifTab.get("PASSIF_DETTES_PCA"));
+ listPassif.add(new Bilan("SOUS-TOTAL (3)","soustotal",passifTab.get("PASSIF_DETTES").getTotal(),"0"));
+ listPassif.add(passifTab.get("PASSIF"));
// Création du modèle à partir de la liste précédement créée
modelBilanPassif.setData(listPassif);
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java 2009-08-21 16:29:50 UTC (rev 2682)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java 2009-08-24 13:25:49 UTC (rev 2683)
@@ -26,6 +26,8 @@
import org.chorem.lima.dto.PeriodDTO;
import org.chorem.lima.dto.util.DTOHelper;
import org.chorem.lima.Main;
+import org.chorem.lima.table.ResultChargesJXTable;
+import org.chorem.lima.table.ResultProduitsJXTable;
import org.chorem.lima.table.model.ResultChargesTableModel;
import org.chorem.lima.table.model.ResultProduitsTableModel;
import org.chorem.lima.table.renderer.ResultTableCellRenderer;
@@ -113,17 +115,7 @@
* CHARGES
*/
// Création du tableau avec le modèle
- tableCharge = new JXTable(modelResultCharges);
- /** Design de la table */
- tableCharge.setRowHeight(24);
- // Permet d'alterner les couleurs des lignes pour le tableau
- tableCharge.setHighlighters(HighlighterFactory.createAlternateStriping());
- tableCharge.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
- tableCharge.setColumnControlVisible(true);
- // On associe pour chaque colonne l'affichage des cellules (centré, alignement, etc)
- for (int i = 0; i < tableCharge.getModel().getColumnCount(); i++) {
- tableCharge.getColumnModel().getColumn(i).setCellRenderer(new ResultTableCellRenderer());
- }
+ tableCharge = new ResultChargesJXTable(modelResultCharges);
// Ajout du tableau
tabCharge.setViewportView(tableCharge);
@@ -131,17 +123,7 @@
* PRODUITS
*/
// Création du tableau avec le modèle
- tableProduit = new JXTable(modelResultProduits);
- /** Design de la table */
- tableProduit.setRowHeight(24);
- // Permet d'alterner les couleurs des lignes pour le tableau
- tableProduit.setHighlighters(HighlighterFactory.createAlternateStriping());
- tableProduit.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
- tableProduit.setColumnControlVisible(true);
- // On associe pour chaque colonne l'affichage des cellules (centré, alignement, etc)
- for (int i = 0; i < tableProduit.getModel().getColumnCount(); i++) {
- tableProduit.getColumnModel().getColumn(i).setCellRenderer(new ResultTableCellRenderer());
- }
+ tableProduit = new ResultProduitsJXTable(modelResultProduits);
// Ajout du tableau
tabProduit.setViewportView(tableProduit);
@@ -320,16 +302,16 @@
*/
// CHARGES
List<BalanceDTO> listCharges = new LinkedList<BalanceDTO>();
- BalanceDTO titleExploitation = new BalanceDTO("Exploitation","title","0","0","",null);
+ BalanceDTO titleExploitation = new BalanceDTO("Exploitation","title","0","0","title",null);
listCharges.add(titleExploitation);
listCharges.addAll(chargeTab.get("exploitation"));
- BalanceDTO titleFinancier = new BalanceDTO("Financiers","title","0","0","",null);
+ BalanceDTO titleFinancier = new BalanceDTO("Financiers","title","0","0","title",null);
listCharges.add(titleFinancier);
listCharges.addAll(chargeTab.get("financier"));
- BalanceDTO titleExceptionnel = new BalanceDTO("Exceptionnelles","title","0","0","",null);
+ BalanceDTO titleExceptionnel = new BalanceDTO("Exceptionnelles","title","0","0","title",null);
listCharges.add(titleExceptionnel);
listCharges.addAll(chargeTab.get("exceptionnel"));
- BalanceDTO titleAutre = new BalanceDTO("Autres","title","0","0","",null);
+ BalanceDTO titleAutre = new BalanceDTO("Autres","title","0","0","title",null);
listCharges.add(titleAutre);
listCharges.addAll(chargeTab.get("autres"));
// Création du modèle à partir de la liste précédement créée
@@ -338,13 +320,13 @@
// PRODUITS
List<BalanceDTO> listProduits = new LinkedList<BalanceDTO>();
- titleExploitation = new BalanceDTO("Exploitation","title","0","0","",null);
+ titleExploitation = new BalanceDTO("Exploitation","title","0","0","title",null);
listProduits.add(titleExploitation);
listProduits.addAll(produitTab.get("exploitation"));
- titleFinancier = new BalanceDTO("Financiers","title","0","0","",null);
+ titleFinancier = new BalanceDTO("Financiers","title","0","0","title",null);
listProduits.add(titleFinancier);
listProduits.addAll(produitTab.get("financier"));
- titleExceptionnel = new BalanceDTO("Exceptionnelles","title","0","0","",null);
+ titleExceptionnel = new BalanceDTO("Exceptionnelles","title","0","0","title",null);
listProduits.add(titleExceptionnel);
listProduits.addAll(produitTab.get("exceptionnel"));
// Création du modèle à partir de la liste précédement créée
1
0