simple_view 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +2 -0
- data/lib/CVS/Entries +3 -0
- data/lib/CVS/Repository +1 -0
- data/lib/CVS/Root +1 -0
- data/lib/core-ext/CVS/Entries +5 -0
- data/lib/core-ext/CVS/Repository +1 -0
- data/lib/core-ext/CVS/Root +1 -0
- data/lib/core-ext/array.rb +14 -0
- data/lib/core-ext/jopen.rb +43 -0
- data/lib/core-ext/nilclass.rb +31 -0
- data/lib/core-ext/string.rb +51 -0
- data/lib/simple_view/CVS/Entries +11 -0
- data/lib/simple_view/CVS/Repository +1 -0
- data/lib/simple_view/CVS/RevisionCache/builder_view.rb#1.1.1.1 +42 -0
- data/lib/simple_view/CVS/RevisionCache/erb_view.rb#1.1.1.1 +44 -0
- data/lib/simple_view/CVS/RevisionCache/file_content.rb#1.1.1.1 +50 -0
- data/lib/simple_view/CVS/RevisionCache/io_view.rb#1.1.1.1 +37 -0
- data/lib/simple_view/CVS/RevisionCache/poi_view.rb#1.1.1.1 +116 -0
- data/lib/simple_view/CVS/RevisionCache/renderable.rb#1.1.1.1 +114 -0
- data/lib/simple_view/CVS/RevisionCache/simple_view.rb#1.1.1.1 +214 -0
- data/lib/simple_view/CVS/Root +1 -0
- data/lib/simple_view/builder_view.rb +42 -0
- data/lib/simple_view/erb_view.rb +44 -0
- data/lib/simple_view/file_content.rb +50 -0
- data/lib/simple_view/haml_view.rb +36 -0
- data/lib/simple_view/io_view.rb +37 -0
- data/lib/simple_view/java/CVS/Entries +1 -0
- data/lib/simple_view/java/CVS/Repository +1 -0
- data/lib/simple_view/java/CVS/Root +1 -0
- data/lib/simple_view/java/poi/CVS/Entries +6 -0
- data/lib/simple_view/java/poi/CVS/Repository +1 -0
- data/lib/simple_view/java/poi/CVS/Root +1 -0
- data/lib/simple_view/java/poi/poi-3.6-20091214.jar +0 -0
- data/lib/simple_view/java/poi/poi-contrib-3.6-20091214.jar +0 -0
- data/lib/simple_view/java/poi/poi-ooxml-3.6-20091214.jar +0 -0
- data/lib/simple_view/java/poi/poi-ooxml-schemas-3.6-20091214.jar +0 -0
- data/lib/simple_view/java/poi/poi-scratchpad-3.6-20091214.jar +0 -0
- data/lib/simple_view/poi_view.rb +116 -0
- data/lib/simple_view/renderable.rb +114 -0
- data/lib/simple_view/simple_view.rb +214 -0
- data/lib/simple_view/smartxls.rb +38 -0
- data/lib/simple_view/version.rb +3 -0
- data/lib/simple_view.rb +5 -0
- data/test/CVS/Entries +6 -0
- data/test/CVS/Repository +1 -0
- data/test/CVS/RevisionCache/test_view.rb#1.1.1.1 +25 -0
- data/test/CVS/RevisionCache/test_view_reuse_erb.rb#1.1.1.1 +21 -0
- data/test/CVS/Root +1 -0
- data/test/helpers/CVS/Entries +3 -0
- data/test/helpers/CVS/Repository +1 -0
- data/test/helpers/CVS/RevisionCache/test_helper.rb#1.1.1.1 +7 -0
- data/test/helpers/CVS/Root +1 -0
- data/test/helpers/etat_corbeilles_prc_helper.rb +13 -0
- data/test/helpers/test_helper.rb +7 -0
- data/test/jtest_view.rb +17 -0
- data/test/test_view.rb +25 -0
- data/test/test_view_reuse_erb.rb +21 -0
- data/test/test_view_sv_debug.rb +16 -0
- data/test/views/CVS/Entries +17 -0
- data/test/views/CVS/Repository +1 -0
- data/test/views/CVS/RevisionCache/test.erb#1.1.1.1 +2 -0
- data/test/views/CVS/Root +1 -0
- data/test/views/etat_corbeilles_prc-csv.io.rb +40 -0
- data/test/views/etat_corbeilles_prc-xls.poi.rb +97 -0
- data/test/views/etat_corbeilles_prc-xls2.smartxl.rb +128 -0
- data/test/views/etat_corbeilles_prc.html.erb +108 -0
- data/test/views/test-builder.builder.rb +1 -0
- data/test/views/test-erb.erb +1 -0
- data/test/views/test-model.xls +0 -0
- data/test/views/test-model.xlsx +0 -0
- data/test/views/test-xls.poi.rb +34 -0
- data/test/views/test-xls.smartxl.rb +80 -0
- data/test/views/test.builder.rb +1 -0
- data/test/views/test.erb +2 -0
- data/test/views/test.haml +1 -0
- data/test/views/test.io.rb +1 -0
- data/test/views/test.poi.rb +7 -0
- data/test/views/test_error.erb +1 -0
- metadata +177 -0
@@ -0,0 +1,128 @@
|
|
1
|
+
import com.smartxls.ChartFormat;
|
2
|
+
import com.smartxls.ChartShape;
|
3
|
+
import com.smartxls.WorkBook;
|
4
|
+
import java.awt.Color;
|
5
|
+
|
6
|
+
##
|
7
|
+
## HEADER
|
8
|
+
##
|
9
|
+
xls.set_sheet_name 0, 'Donnees'
|
10
|
+
xls.set_sheet 0
|
11
|
+
xls.set_text 0, 0, 'Site'
|
12
|
+
xls.set_text 0, 1, 'Signature'
|
13
|
+
xls.set_text 0, 2, 'Nom'
|
14
|
+
xls.set_text 0, 3, 'Pr�nom'
|
15
|
+
xls.set_text 0, 4, 'Profil'
|
16
|
+
xls.set_text 0, 5, 'Structure'
|
17
|
+
xls.set_text 0, 6, 'Cellule'
|
18
|
+
xls.set_text 0, 7, 'Actif'
|
19
|
+
xls.set_text 0, 8, 'Taux activit�'
|
20
|
+
xls.set_text 0, 9, 'Nombre dossiers'
|
21
|
+
xls.set_text 0, 10, 'Poids dossiers (100%)'
|
22
|
+
|
23
|
+
col=11
|
24
|
+
# Code niveau dossier
|
25
|
+
JDataStorePRC::COD_NIV_DOS.each do |co_niv|
|
26
|
+
xls.set_text 0, col, "NB dossiers #{co_niv}"
|
27
|
+
col += 1
|
28
|
+
end
|
29
|
+
|
30
|
+
# Code niveau dossier
|
31
|
+
JDataStorePRC::EVENS_SIGN.each do |co_evt|
|
32
|
+
xls.set_text 0, col, "NB dossiers #{co_evt}"
|
33
|
+
col += 1
|
34
|
+
end
|
35
|
+
|
36
|
+
##
|
37
|
+
## BODY
|
38
|
+
##
|
39
|
+
|
40
|
+
ligne = 1
|
41
|
+
# ResumeUtilisateur
|
42
|
+
resumes_utilisateurs.each do |utl|
|
43
|
+
next unless utl.a_dossiers?
|
44
|
+
col = 0
|
45
|
+
xls.set_text ligne, col, utl.actif; col +=1
|
46
|
+
xls.set_text ligne, col, utl.signature; col +=1
|
47
|
+
xls.set_text ligne, col, utl.nom; col +=1
|
48
|
+
xls.set_text ligne, col, utl.prenom; col +=1
|
49
|
+
xls.set_text ligne, col, utl.profil; col +=1
|
50
|
+
xls.set_text ligne, col, utl.structure; col +=1
|
51
|
+
xls.set_text ligne, col, utl.cellule; col +=1
|
52
|
+
xls.set_text ligne, col, utl.actif; col +=1
|
53
|
+
xls.set_number ligne, col, utl.tx_activite; col +=1
|
54
|
+
xls.set_number ligne, col, utl.nombre_dossiers; col +=1
|
55
|
+
xls.set_number ligne, col, utl.poids_dossiers; col +=1
|
56
|
+
|
57
|
+
JDataStorePRC::COD_NIV_DOS.each do |co_niv|
|
58
|
+
dossier = utl.nombreDossiersPRC.find{|dossier| dossier.COD_NIV_DOS == co_niv}
|
59
|
+
xls.set_number ligne, col, (dossier ? dossier.NB_DOSSIERS : 0); col +=1
|
60
|
+
end
|
61
|
+
|
62
|
+
JDataStorePRC::EVENS_SIGN.each do |co_evt|
|
63
|
+
dossier = utl.nombreDernierEvenDossiersPRC.find{|dossier| dossier.COD_EVEN == co_evt}
|
64
|
+
xls.set_number ligne, col, (dossier ? dossier.NB_DOSSIERS : 0); col +=1
|
65
|
+
end
|
66
|
+
|
67
|
+
ligne += 1
|
68
|
+
end
|
69
|
+
|
70
|
+
|
71
|
+
# Dossier possesseur inconnu
|
72
|
+
dossiers_possesseur_inconnu.each do |dossier|
|
73
|
+
col = 1
|
74
|
+
xls.set_text ligne, col, 'INCONNU'; col +=1
|
75
|
+
xls.set_text ligne, col, dossier.COD_ID_INS; col +=1
|
76
|
+
xls.set_text ligne, col, 'INCONNU'; col +=1
|
77
|
+
xls.set_text ligne, col, 'INCONNU'; col +=1
|
78
|
+
xls.set_text ligne, col, 'INCONNU'; col +=1
|
79
|
+
xls.set_text ligne, col, 'INCONNU'; col +=1
|
80
|
+
xls.set_text ligne, col, 'INCONNU'; col +=1
|
81
|
+
xls.set_text ligne, col, 'INCONNU'; col +=1
|
82
|
+
xls.set_text ligne, col, 'INCONNU'; col +=1
|
83
|
+
xls.set_number ligne, col, dossier.NB_DOSSIERS; col +=1
|
84
|
+
|
85
|
+
|
86
|
+
JDataStorePRC::COD_NIV_DOS.each do |co_niv|
|
87
|
+
if dossier.COD_NIV_DOS == co_niv
|
88
|
+
xls.set_number ligne, col, dossier.NB_DOSSIERS; col +=1
|
89
|
+
else
|
90
|
+
xls.set_number ligne, col, 0; col +=1
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
JDataStorePRC::EVENS_SIGN.each do |co_evt|
|
95
|
+
xls.set_text ligne, col, '?'; col +=1
|
96
|
+
end
|
97
|
+
|
98
|
+
ligne +=1
|
99
|
+
end
|
100
|
+
|
101
|
+
|
102
|
+
##
|
103
|
+
## Chart
|
104
|
+
##
|
105
|
+
xls.insert_sheets 0,1
|
106
|
+
xls.set_sheet 0
|
107
|
+
xls.set_sheet_name 0, 'ChartSheet'
|
108
|
+
|
109
|
+
left = 1;
|
110
|
+
top = 7;
|
111
|
+
right =13;
|
112
|
+
bottom = 31;
|
113
|
+
|
114
|
+
# create chart with it's location
|
115
|
+
chart = xls.addChart left,top,right,bottom
|
116
|
+
|
117
|
+
chart.set_chart_type ChartShape::Column
|
118
|
+
chart.add_series
|
119
|
+
chart.setSeriesYValueFormula 0, "Donnees!$K$1:$K$#{ligne}"
|
120
|
+
# chart.setSeriesXValueFormula 0, "Donnees!$B$1:$B$#{ligne}"
|
121
|
+
chart.set_axis_title ChartShape::XAxis, 0, "Utilisateurs"
|
122
|
+
chart.set_axis_title ChartShape::YAxis, 0, "Poids dossiers"
|
123
|
+
|
124
|
+
chart.set_series_name 0, "Poids dossiers"
|
125
|
+
chart.set_title "Dossiers PRC"
|
126
|
+
|
127
|
+
xls.set_sheet 1
|
128
|
+
xls.move_sheet 0
|
@@ -0,0 +1,108 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
|
4
|
+
<style type="text/css">
|
5
|
+
*{font-family: Arial; font-size:10pt}
|
6
|
+
table{border-collapse:collapse; border: 1px solid #000}
|
7
|
+
td {border: 0.5pt solid #000}
|
8
|
+
th {border: 0.5pt solid #000}
|
9
|
+
.actif_N{color: red; font-style:italic;}
|
10
|
+
.dossier_code{background-color: #FFFFE0}
|
11
|
+
.dossier_evt{background-color: #FFF}
|
12
|
+
.dossier_pss_inconnu{background-color: #D3D3D3}
|
13
|
+
.nb_dossiers{font-weight:bold}
|
14
|
+
</style>
|
15
|
+
|
16
|
+
</head>
|
17
|
+
|
18
|
+
<body>
|
19
|
+
|
20
|
+
<table>
|
21
|
+
<tr>
|
22
|
+
<th class="site">Site</th>
|
23
|
+
<th class="signature">Signature</th>
|
24
|
+
<th class="nom">Nom</th>
|
25
|
+
<th class="nom">Pr�nom</th>
|
26
|
+
<th class="prf">Profil</th>
|
27
|
+
<th class="str">Structure</th>
|
28
|
+
<th class="cll">Cellule</th>
|
29
|
+
<th class="actif">Actif</th>
|
30
|
+
<th class="tx_act">Taux activit�</th>
|
31
|
+
<th class="nb_dossiers">Nombre dossiers</th>
|
32
|
+
<th class="poids_dossiers">Poids dossiers (100%)</th>
|
33
|
+
|
34
|
+
<!-- Code niveau dossier -->
|
35
|
+
<% JDataStorePRC::COD_NIV_DOS.each do |co_niv|%>
|
36
|
+
<th class="dossier_code">NB dossiers <%= co_niv %></th>
|
37
|
+
<% end %>
|
38
|
+
|
39
|
+
<!-- Code even dossiers -->
|
40
|
+
<% JDataStorePRC::EVENS_SIGN.each do |co_evt|%>
|
41
|
+
<th class="dossier_evt">NB dossiers <%= co_evt %></th>
|
42
|
+
<% end %>
|
43
|
+
</tr>
|
44
|
+
|
45
|
+
<!-- ResumeUtilisateur -->
|
46
|
+
<% resumes_utilisateurs.each do |utl| %>
|
47
|
+
<% next unless utl.a_dossiers? %>
|
48
|
+
<tr class="actif_<%= utl.actif%>">
|
49
|
+
<td class="site"><%= utl.site %></td>
|
50
|
+
<td class="signature"><%= utl.signature %></td>
|
51
|
+
<td class="nom"><%= utl.nom %></td>
|
52
|
+
<td class="nom"><%= utl.prenom %></td>
|
53
|
+
<td class="prf"><%= utl.profil %></td>
|
54
|
+
<td class="str"><%= utl.structure %></td>
|
55
|
+
<td class="cll"><%= utl.cellule %></td>
|
56
|
+
<td class="actif" align="center"><%= utl.actif %></td>
|
57
|
+
<td class="tx_act" align="center"><%= utl.tx_activite %></td>
|
58
|
+
<td class="nb_dossiers" align="right"><%= utl.nombre_dossiers %></td>
|
59
|
+
<td class="poids_dossiers" align="right"><%= utl.poids_dossiers %></td>
|
60
|
+
|
61
|
+
<% JDataStorePRC::COD_NIV_DOS.each do |co_niv| %>
|
62
|
+
<% dossier = utl.nombreDossiersPRC.find{|dossier| dossier.COD_NIV_DOS == co_niv} %>
|
63
|
+
<td align="right" class="dossier_code"><%= "#{dossier ? dossier.NB_DOSSIERS : 0}" %></td>
|
64
|
+
<% end %>
|
65
|
+
|
66
|
+
<% JDataStorePRC::EVENS_SIGN.each do |co_evt| %>
|
67
|
+
<% dossier = utl.nombreDernierEvenDossiersPRC.find{|dossier| dossier.COD_EVEN == co_evt} %>
|
68
|
+
<td align="right" class="dossier_evt"><%= "#{dossier ? dossier.NB_DOSSIERS : 0}" %></td>
|
69
|
+
<% end %>
|
70
|
+
|
71
|
+
</tr>
|
72
|
+
<% end %>
|
73
|
+
|
74
|
+
<!-- Dossier possesseur inconnu -->
|
75
|
+
<% dossiers_possesseur_inconnu.each do |dossier| %>
|
76
|
+
<tr class="dossier_pss_inconnu">
|
77
|
+
<td class="site_inconnu" align="center">INCONNU</td>
|
78
|
+
<td class="signature_inconnu"><%= dossier.COD_ID_INS %></td>
|
79
|
+
<td class="nom_inconnu" align="center">INCONNU</td>
|
80
|
+
<td class="nom_inconnu" align="center">INCONNU</td>
|
81
|
+
<td class="prf_inconnu" align="center">INCONNU</td>
|
82
|
+
<td class="str_inconnu" align="center">INCONNU</td>
|
83
|
+
<td class="cll_inconnu" align="center">INCONNU</td>
|
84
|
+
<td class="actif_inconnu" align="center">INCONNU</td>
|
85
|
+
<td class="tx_act_inconnu" align="center">INCONNU</td>
|
86
|
+
<td class="nb_dossiers_inconnu" align="right"><%= dossier.NB_DOSSIERS %></td>
|
87
|
+
<td class="poids_dossiers_inconnu" align="right">?</td>
|
88
|
+
|
89
|
+
<% JDataStorePRC::COD_NIV_DOS.each do |co_niv| %>
|
90
|
+
<% if dossier.COD_NIV_DOS == co_niv %>
|
91
|
+
<td align="right" class="dossier_code_inconnu"><%= dossier.NB_DOSSIERS %></td>
|
92
|
+
<% else %>
|
93
|
+
<td align="right" class="dossier_code_inconnu">0</td>
|
94
|
+
<% end %>
|
95
|
+
<% end %>
|
96
|
+
|
97
|
+
<% JDataStorePRC::EVENS_SIGN.each do |co_evt| %>
|
98
|
+
<td align="center" class="dossier_evt_inconnu">?</td>
|
99
|
+
<% end %>
|
100
|
+
|
101
|
+
</tr>
|
102
|
+
<% end %>
|
103
|
+
|
104
|
+
|
105
|
+
</table>
|
106
|
+
|
107
|
+
</body>
|
108
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
xml.hello who
|
@@ -0,0 +1 @@
|
|
1
|
+
Hello <%= who %>!
|
Binary file
|
Binary file
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# =DECALER(data!$B$1;0;0;NBVAL(data!$B:$B)-1;1)
|
2
|
+
# =DECALER(data!$A$1;0;0;NBVAL(data!$A:$A)-1;1)
|
3
|
+
|
4
|
+
sheet = xls.get_sheet 'data'
|
5
|
+
|
6
|
+
id = "AAAAA"
|
7
|
+
100.times do |rownum|
|
8
|
+
row = sheet.create_row(rownum)
|
9
|
+
20.times do |colnum|
|
10
|
+
cell = row.create_cell(colnum)
|
11
|
+
if colnum == 0
|
12
|
+
set_cell_value row, colnum, id.succ!
|
13
|
+
# cell.set_cell_value(id.succ!)
|
14
|
+
else
|
15
|
+
set_cell_value row, colnum, rand()
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
i = xls.get_name_index 'Noms'
|
21
|
+
noms = nil
|
22
|
+
if i >= 0
|
23
|
+
noms = xls.get_name_at(i)
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
i = xls.get_name_index 'Valeurs'
|
28
|
+
valeurs = nil
|
29
|
+
if i >= 0
|
30
|
+
valeurs = xls.get_name_at(i)
|
31
|
+
end
|
32
|
+
|
33
|
+
puts noms.getNameName, noms.getRefersToFormula
|
34
|
+
puts valeurs.getNameName, valeurs.getRefersToFormula
|
@@ -0,0 +1,80 @@
|
|
1
|
+
import com.smartxls.ChartFormat;
|
2
|
+
import com.smartxls.ChartShape;
|
3
|
+
import com.smartxls.WorkBook;
|
4
|
+
import java.awt.Color;
|
5
|
+
|
6
|
+
##
|
7
|
+
## HEADER
|
8
|
+
##
|
9
|
+
xls.set_sheet_name 0, 'Donnees'
|
10
|
+
xls.set_sheet 0
|
11
|
+
xls.set_text 0, 0, 'Site'
|
12
|
+
xls.set_text 0, 1, 'Signature'
|
13
|
+
xls.set_text 0, 2, 'Nom'
|
14
|
+
xls.set_text 0, 3, 'Pr�nom'
|
15
|
+
xls.set_text 0, 4, 'Profil'
|
16
|
+
xls.set_text 0, 5, 'Structure'
|
17
|
+
xls.set_text 0, 6, 'Cellule'
|
18
|
+
xls.set_text 0, 7, 'Actif'
|
19
|
+
xls.set_text 0, 8, 'Taux activit�'
|
20
|
+
xls.set_text 0, 9, 'Nombre dossiers'
|
21
|
+
xls.set_text 0, 10, 'Poids dossiers (100%)'
|
22
|
+
|
23
|
+
col=11
|
24
|
+
# Code niveau dossier
|
25
|
+
JDataStorePRC::COD_NIV_DOS.each do |co_niv|
|
26
|
+
xls.set_text 0, col, "NB dossiers #{co_niv}"
|
27
|
+
col += 1
|
28
|
+
end
|
29
|
+
|
30
|
+
# Code niveau dossier
|
31
|
+
JDataStorePRC::EVENS_SIGN.each do |co_evt|
|
32
|
+
xls.set_text 0, col, "NB dossiers #{co_evt}"
|
33
|
+
col += 1
|
34
|
+
end
|
35
|
+
|
36
|
+
##
|
37
|
+
## BODY
|
38
|
+
##
|
39
|
+
|
40
|
+
ligne = 1
|
41
|
+
10.times do |l|
|
42
|
+
sign = "AAA"
|
43
|
+
50.times do |c|
|
44
|
+
if c == 2
|
45
|
+
xls.set_text ligne, c, sign
|
46
|
+
else
|
47
|
+
xls.set_number ligne, c, rand()
|
48
|
+
end
|
49
|
+
end
|
50
|
+
sign = sign.succ
|
51
|
+
ligne +=1
|
52
|
+
end
|
53
|
+
|
54
|
+
##
|
55
|
+
## Chart
|
56
|
+
##
|
57
|
+
xls.insert_sheets 0,1
|
58
|
+
xls.set_sheet 0
|
59
|
+
xls.set_sheet_name 0, 'ChartSheet'
|
60
|
+
|
61
|
+
left = 1;
|
62
|
+
top = 7;
|
63
|
+
right =13;
|
64
|
+
bottom = 31;
|
65
|
+
|
66
|
+
# create chart with it's location
|
67
|
+
chart = xls.addChart left,top,right,bottom
|
68
|
+
|
69
|
+
chart.set_chart_type ChartShape::Column
|
70
|
+
chart.add_series
|
71
|
+
chart.setSeriesYValueFormula 0, "Donnees!$K$1:$K$#{ligne}"
|
72
|
+
# chart.setSeriesXValueFormula 0, "Donnees!$B$1:$B$#{ligne}"
|
73
|
+
chart.set_axis_title ChartShape::XAxis, 0, "Utilisateurs"
|
74
|
+
chart.set_axis_title ChartShape::YAxis, 0, "Poids dossiers"
|
75
|
+
|
76
|
+
chart.set_series_name 0, "Poids dossiers"
|
77
|
+
chart.set_title "Dossiers PRC"
|
78
|
+
|
79
|
+
xls.set_sheet 1
|
80
|
+
xls.move_sheet 0
|
@@ -0,0 +1 @@
|
|
1
|
+
xml.hello who
|
data/test/views/test.erb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
%p= who !
|
@@ -0,0 +1 @@
|
|
1
|
+
io.puts "IO: #{who}"
|
@@ -0,0 +1,7 @@
|
|
1
|
+
sheet = xls.create_sheet
|
2
|
+
|
3
|
+
header = row_at(sheet, 0)
|
4
|
+
['Site', 'Signature', 'Nom', 'Pr�nom', 'Profil', 'Structure', 'Cellule', 'Actif', 'Taux activit�', 'Nombre dossiers', 'Poids dossiers (100%)'].each_with_index do |title, index|
|
5
|
+
cell = cell_at(header, index)
|
6
|
+
cell.set_cell_value title
|
7
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Hello <%= who %>!
|
metadata
ADDED
@@ -0,0 +1,177 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: simple_view
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: 0.0.1
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Yohan Barukh
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-12-07 00:00:00 +01:00
|
18
|
+
default_executable:
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: renderer system based on ERB, BUILDER, IO, Java POI (xls)
|
22
|
+
email:
|
23
|
+
- ybarukh@gmail.com
|
24
|
+
executables: []
|
25
|
+
|
26
|
+
extensions: []
|
27
|
+
|
28
|
+
extra_rdoc_files: []
|
29
|
+
|
30
|
+
files:
|
31
|
+
- Rakefile
|
32
|
+
- lib/core-ext/array.rb
|
33
|
+
- lib/core-ext/CVS/Entries
|
34
|
+
- lib/core-ext/CVS/Repository
|
35
|
+
- lib/core-ext/CVS/Root
|
36
|
+
- lib/core-ext/jopen.rb
|
37
|
+
- lib/core-ext/nilclass.rb
|
38
|
+
- lib/core-ext/string.rb
|
39
|
+
- lib/CVS/Entries
|
40
|
+
- lib/CVS/Repository
|
41
|
+
- lib/CVS/Root
|
42
|
+
- lib/simple_view/builder_view.rb
|
43
|
+
- lib/simple_view/CVS/Entries
|
44
|
+
- lib/simple_view/CVS/Repository
|
45
|
+
- lib/simple_view/CVS/RevisionCache/builder_view.rb#1.1.1.1
|
46
|
+
- lib/simple_view/CVS/RevisionCache/erb_view.rb#1.1.1.1
|
47
|
+
- lib/simple_view/CVS/RevisionCache/file_content.rb#1.1.1.1
|
48
|
+
- lib/simple_view/CVS/RevisionCache/io_view.rb#1.1.1.1
|
49
|
+
- lib/simple_view/CVS/RevisionCache/poi_view.rb#1.1.1.1
|
50
|
+
- lib/simple_view/CVS/RevisionCache/renderable.rb#1.1.1.1
|
51
|
+
- lib/simple_view/CVS/RevisionCache/simple_view.rb#1.1.1.1
|
52
|
+
- lib/simple_view/CVS/Root
|
53
|
+
- lib/simple_view/erb_view.rb
|
54
|
+
- lib/simple_view/file_content.rb
|
55
|
+
- lib/simple_view/haml_view.rb
|
56
|
+
- lib/simple_view/io_view.rb
|
57
|
+
- lib/simple_view/java/CVS/Entries
|
58
|
+
- lib/simple_view/java/CVS/Repository
|
59
|
+
- lib/simple_view/java/CVS/Root
|
60
|
+
- lib/simple_view/java/poi/CVS/Entries
|
61
|
+
- lib/simple_view/java/poi/CVS/Repository
|
62
|
+
- lib/simple_view/java/poi/CVS/Root
|
63
|
+
- lib/simple_view/java/poi/poi-3.6-20091214.jar
|
64
|
+
- lib/simple_view/java/poi/poi-contrib-3.6-20091214.jar
|
65
|
+
- lib/simple_view/java/poi/poi-ooxml-3.6-20091214.jar
|
66
|
+
- lib/simple_view/java/poi/poi-ooxml-schemas-3.6-20091214.jar
|
67
|
+
- lib/simple_view/java/poi/poi-scratchpad-3.6-20091214.jar
|
68
|
+
- lib/simple_view/poi_view.rb
|
69
|
+
- lib/simple_view/renderable.rb
|
70
|
+
- lib/simple_view/simple_view.rb
|
71
|
+
- lib/simple_view/smartxls.rb
|
72
|
+
- lib/simple_view/version.rb
|
73
|
+
- lib/simple_view.rb
|
74
|
+
- test/CVS/Entries
|
75
|
+
- test/CVS/Repository
|
76
|
+
- test/CVS/RevisionCache/test_view.rb#1.1.1.1
|
77
|
+
- test/CVS/RevisionCache/test_view_reuse_erb.rb#1.1.1.1
|
78
|
+
- test/CVS/Root
|
79
|
+
- test/helpers/CVS/Entries
|
80
|
+
- test/helpers/CVS/Repository
|
81
|
+
- test/helpers/CVS/RevisionCache/test_helper.rb#1.1.1.1
|
82
|
+
- test/helpers/CVS/Root
|
83
|
+
- test/helpers/etat_corbeilles_prc_helper.rb
|
84
|
+
- test/helpers/test_helper.rb
|
85
|
+
- test/jtest_view.rb
|
86
|
+
- test/test_view.rb
|
87
|
+
- test/test_view_reuse_erb.rb
|
88
|
+
- test/test_view_sv_debug.rb
|
89
|
+
- test/views/CVS/Entries
|
90
|
+
- test/views/CVS/Repository
|
91
|
+
- test/views/CVS/RevisionCache/test.erb#1.1.1.1
|
92
|
+
- test/views/CVS/Root
|
93
|
+
- test/views/etat_corbeilles_prc-csv.io.rb
|
94
|
+
- test/views/etat_corbeilles_prc-xls.poi.rb
|
95
|
+
- test/views/etat_corbeilles_prc-xls2.smartxl.rb
|
96
|
+
- test/views/etat_corbeilles_prc.html.erb
|
97
|
+
- test/views/test-builder.builder.rb
|
98
|
+
- test/views/test-erb.erb
|
99
|
+
- test/views/test-model.xls
|
100
|
+
- test/views/test-model.xlsx
|
101
|
+
- test/views/test-xls.poi.rb
|
102
|
+
- test/views/test-xls.smartxl.rb
|
103
|
+
- test/views/test.builder.rb
|
104
|
+
- test/views/test.erb
|
105
|
+
- test/views/test.haml
|
106
|
+
- test/views/test.io.rb
|
107
|
+
- test/views/test.poi.rb
|
108
|
+
- test/views/test_error.erb
|
109
|
+
has_rdoc: true
|
110
|
+
homepage: http://rubygems.org/gems/simple_view
|
111
|
+
licenses: []
|
112
|
+
|
113
|
+
post_install_message:
|
114
|
+
rdoc_options: []
|
115
|
+
|
116
|
+
require_paths:
|
117
|
+
- lib
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
segments:
|
124
|
+
- 0
|
125
|
+
version: "0"
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
segments:
|
132
|
+
- 0
|
133
|
+
version: "0"
|
134
|
+
requirements: []
|
135
|
+
|
136
|
+
rubyforge_project: simple_view
|
137
|
+
rubygems_version: 1.3.7
|
138
|
+
signing_key:
|
139
|
+
specification_version: 3
|
140
|
+
summary: renderer system
|
141
|
+
test_files:
|
142
|
+
- Rakefile
|
143
|
+
- test/CVS/Entries
|
144
|
+
- test/CVS/Repository
|
145
|
+
- test/CVS/RevisionCache/test_view.rb#1.1.1.1
|
146
|
+
- test/CVS/RevisionCache/test_view_reuse_erb.rb#1.1.1.1
|
147
|
+
- test/CVS/Root
|
148
|
+
- test/helpers/CVS/Entries
|
149
|
+
- test/helpers/CVS/Repository
|
150
|
+
- test/helpers/CVS/RevisionCache/test_helper.rb#1.1.1.1
|
151
|
+
- test/helpers/CVS/Root
|
152
|
+
- test/helpers/etat_corbeilles_prc_helper.rb
|
153
|
+
- test/helpers/test_helper.rb
|
154
|
+
- test/jtest_view.rb
|
155
|
+
- test/test_view.rb
|
156
|
+
- test/test_view_reuse_erb.rb
|
157
|
+
- test/test_view_sv_debug.rb
|
158
|
+
- test/views/CVS/Entries
|
159
|
+
- test/views/CVS/Repository
|
160
|
+
- test/views/CVS/RevisionCache/test.erb#1.1.1.1
|
161
|
+
- test/views/CVS/Root
|
162
|
+
- test/views/etat_corbeilles_prc-csv.io.rb
|
163
|
+
- test/views/etat_corbeilles_prc-xls.poi.rb
|
164
|
+
- test/views/etat_corbeilles_prc-xls2.smartxl.rb
|
165
|
+
- test/views/etat_corbeilles_prc.html.erb
|
166
|
+
- test/views/test-builder.builder.rb
|
167
|
+
- test/views/test-erb.erb
|
168
|
+
- test/views/test-model.xls
|
169
|
+
- test/views/test-model.xlsx
|
170
|
+
- test/views/test-xls.poi.rb
|
171
|
+
- test/views/test-xls.smartxl.rb
|
172
|
+
- test/views/test.builder.rb
|
173
|
+
- test/views/test.erb
|
174
|
+
- test/views/test.haml
|
175
|
+
- test/views/test.io.rb
|
176
|
+
- test/views/test.poi.rb
|
177
|
+
- test/views/test_error.erb
|