Biblioteca Java - Blame information for rev 9

Subversion Repositories:
Rev:
Rev Author Line No. Line
9 mihai 1 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
2 <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
3 <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
4 <%@ page contentType="text/html; charset=iso-8859-1" language="java" session="false" %>
5 <%@ taglib uri="http://www.springframework.org/tags/form" prefix="springForm"%>
6  
7 <html>
8 <head>
9 <title>Inventar Linkscreens</title>
10 <style type="text/css">
11 .tg {border-collapse:collapse;border-spacing:0;border-color:#ccc;}
12 .tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#ccc;color:#333;background-color:#fff;}
13 .tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#ccc;color:#333;background-color:#f0f0f0;}
14 .tg .tg-4eph{background-color:#f9f9f9}
15 .error {
16 color: #ff0000;
17 font-style: italic;
18 font-weight: bold;
19 }
20 </style>
21 </head>
22 <body>
23 <c:if test="${!empty item.id}">
24 <h1>
25 Editeaza o inregistrare
26 </h1>
27 </c:if>
28 <c:if test="${empty item.id}">
29 <h1>
30 Adauga o inregistrare
31 </h1>
32 </c:if>
33  
34 <c:url var="addAction" value="/item/add" ></c:url>
35  
36 <springForm:form name="frm" action="${addAction}" commandName="item" onsubmit="return validateForm(); return false;">
37 <table table-layout: fixed>
38 <c:if test="${!empty item.id}">
39 <tr>
40 <td>
41 <springForm:label path="id">
42 <spring:message text="ID"/>
43 </springForm:label>
44 </td>
45 <td>
46 <springForm:input path="id" readonly="true" size="8" disabled="true" />
47 <springForm:hidden path="id" />
48 </td>
49 </tr>
50 </c:if>
51 <tr>
52 <td>
53 <springForm:label path="nrCrt">
54 <spring:message text="Nr crt"/>
55 </springForm:label>
56 </td>
57 <td colspan="2">
58 <springForm:input path="nrCrt"/>
59 </td>
60 <td><springForm:errors path="nrCrt" cssClass="error" /></td>
61 </tr>
62 <tr>
63 <td>
64 <springForm:label path="simbolClasaMijlocFix">
65 <spring:message text="Simbol clasa mijloc fix"/>
66 </springForm:label>
67 </td>
68 <td colspan="2">
69 <springForm:input path="simbolClasaMijlocFix" />
70 </td>
71 <td><springForm:errors path="simbolClasaMijlocFix" cssClass="error" /></td>
72 </tr>
73 <tr>
74 <td>
75 <springForm:label path="mijlocFix">
76 <spring:message text="Mijloc fix"/>
77 </springForm:label>
78 </td>
79 <td colspan="2">
80 <springForm:input path="mijlocFix" />
81 </td>
82 <td><springForm:errors path="mijlocFix" cssClass="error" /></td>
83 </tr>
84 <tr>
85 <td>
86 <springForm:label path="nrInventar">
87 <spring:message text="Numar inventar"/>
88 </springForm:label>
89 </td>
90 <td colspan="2">
91 <springForm:input path="nrInventar" />
92 </td>
93 <td><springForm:errors path="nrInventar" cssClass="error" /></td>
94 </tr>
95 <tr>
96 <td>
97 <springForm:label path="cont">
98 <spring:message text="Cont"/>
99 </springForm:label>
100 </td>
101 <td colspan="2">
102 <springForm:input path="cont" />
103 </td>
104 <td><springForm:errors path="cont" cssClass="error" /></td>
105 </tr>
106 <tr>
107 <td>
108 <springForm:label path="cantitate">
109 <spring:message text="Cantitate"/>
110 </springForm:label>
111 </td>
112 <td colspan="2">
113 <springForm:input path="cantitate" />
114 </td>
115 <td><springForm:errors path="cantitate" cssClass="error" /></td>
116 </tr>
117 <tr>
118 <td>
119 <springForm:label path="UM">
120 <spring:message text="Unitate de masura"/>
121 </springForm:label>
122 </td>
123 <td colspan="2">
124 <springForm:input path="UM" />
125 </td>
126 <td><springForm:errors path="UM" cssClass="error" /></td>
127 </tr>
128 <tr>
129 <td>
130 <springForm:label path="pret">
131 <spring:message text="Pret"/>
132 </springForm:label>
133 </td>
134 <td colspan="2">
135 <springForm:input path="pret" />
136 </td>
137 <td><springForm:errors path="pret" cssClass="error" /></td>
138 </tr>
139 <tr>
140 <td>
141 <springForm:label path="valoare">
142 <spring:message text="Valoare"/>
143 </springForm:label>
144 </td>
145 <td colspan="2">
146 <springForm:input path="valoare" />
147 </td>
148 <td><springForm:errors path="valoare" cssClass="error" /></td>
149 </tr>
150 <tr>
151 <td>
152 <springForm:label path="amortizarePrecedenta">
153 <spring:message text="Amortizare precedenta"/>
154 </springForm:label>
155 </td>
156 <td colspan="2">
157 <springForm:input path="amortizarePrecedenta" />
158 </td>
159 <td><springForm:errors path="amortizarePrecedenta" cssClass="error" /></td>
160 </tr>
161 <tr>
162 <td>
163 <springForm:label path="amortizareCurenta">
164 <spring:message text="Amortizare curenta"/>
165 </springForm:label>
166 </td>
167 <td colspan="2">
168 <springForm:input path="amortizareCurenta" />
169 </td>
170 <td><springForm:errors path="amortizareCurenta" cssClass="error" /></td>
171 </tr>
172 <tr>
173 <td>
174 <springForm:label path="amortizareTotala">
175 <spring:message text="Amortizare totala"/>
176 </springForm:label>
177 </td>
178 <td colspan="2">
179 <springForm:input path="amortizareTotala" />
180 </td>
181 <td><springForm:errors path="amortizareTotala" cssClass="error" /></td>
182 </tr>
183 <tr>
184 <td>
185 <springForm:label path="valoareRamasa">
186 <spring:message text="Valoare ramasa"/>
187 </springForm:label>
188 </td>
189 <td colspan="2">
190 <springForm:input path="valoareRamasa" />
191 </td>
192 <td><springForm:errors path="valoareRamasa" cssClass="error" /></td>
193 </tr>
194 <tr>
195 <td>
196 <springForm:label path="durataNormala">
197 <spring:message text="Durata normala"/>
198 </springForm:label>
199 </td>
200 <td colspan="2">
201 <springForm:input path="durataNormala" />
202 </td>
203 <td><springForm:errors path="durataNormala" cssClass="error" /></td>
204 </tr>
205 <tr>
206 <td>
207 <springForm:label path="durataRamasa">
208 <spring:message text="Durata ramasa"/>
209 </springForm:label>
210 </td>
211 <td colspan="2">
212 <springForm:input path="durataRamasa" />
213 </td>
214 <td><springForm:errors path="durataRamasa" cssClass="error" /></td>
215 </tr>
216 <tr>
217 <td>
218 <springForm:label path="anLunaPrimaRata">
219 <spring:message text="An luna prima rata"/>
220 </springForm:label>
221 </td>
222 <td>
223 <springForm:select id="lunaPrimaRata" name="lunaPrimaRata" path="lunaPrimaRata" items="${months}">
224 </springForm:select>
225 <springForm:select id="anPrimaRata" name="anPrimaRata" path="anPrimaRata" items="${years}">
226 </springForm:select>
227 </td>
228 </tr>
229 <tr>
230 <td>
231 <springForm:label path="anLunaAdaugare">
232 <spring:message text="An luna adaugare"/>
233 </springForm:label>
234 </td>
235 <td>
236 <springForm:select id="lunaAdaugare" name="lunaAdaugare" path="lunaAdaugare" items="${months}">
237 </springForm:select>
238 <springForm:select id="anAdaugare" name="anAdaugare" path="anAdaugare" items="${years}">
239 </springForm:select>
240 </td>
241 </tr>
242  
243 <tr>
244 <td colspan="2">
245 <c:if test="${!empty item.id}">
246 <input type="submit"
247 value="<spring:message text="Salveaza modificarile"/>" />
248 </c:if>
249 <c:if test="${empty item.id}">
250 <input type="submit" onclick="return validateForm();"
251 value="<spring:message text="Adauga inregistrarea"/>" />
252 </c:if>
253 </td>
254 </tr>
255 </table>
256 </springForm:form>
257  
258 <c:url var="doFilter" value="/items/filter" ></c:url>
259  
260 <form:form name="filter" action="${doFilter}" commandName="filter">
261 <br><br><br>
262 Selectati perioada de vizualzare a inregistrarilor:
263 <br>
264 START ->
265 <form:select id="startMonth" name="startMonth" path="startMonth" items="${months}">
266 </form:select>
267 <form:select id="startYear" name="startYear" path="startYear" items="${years}">
268 </form:select>
269 <br>
270 FINAL ->&nbsp;
271 <form:select id="endMonth" name="endMonth" path="endMonth" items="${months}">
272 </form:select>
273 <form:select id="endYear" name="endYear" path="endYear" items="${years}">
274 </form:select>
275 <br>
276 <input type="submit"
277 value="<spring:message text="Filtreaza inregistrarile"/>" name="filterOnly" />
278 <input type="submit"
279 value="<spring:message text="Descarca PDF"/>" name="download" />
280 <input type="submit"
281 value="<spring:message text="Descarca PDF normalizat"/>" name="downloadNormalized" />
282 </form:form>
283  
284 <h3>Lista inventar</h3>
285 <c:if test="${!empty listItems}">
286 <table class="tg" table-layout: fixed>
287 <tr>
288 <th width="120">Nr Crt</th>
289 <th width="120">Simbol Clasa Mijloc Fix</th>
290 <th width="120">Mijloc Fix</th>
291 <th width="30">Numar inventar</th>
292 <th width="10">Cont</th>
293 <th width="10">Cantitate</th>
294 <th width="10">UM</th>
295 <th width="20">Pret</th>
296 <th width="20">Valoare</th>
297 <th width="20">Amortizare precedenta</th>
298 <th width="20">Amortizare curenta</th>
299 <th width="20">Amortizare totala</th>
300 <th width="20">Valoare ramasa</th>
301 <th width="5">Durata normala (ani)</th>
302 <th width="5">Durata ramasa (luni)</th>
303 <th width="120">An luna prima rata</th>
304 <th width="120">An luna adaugare</th>
305 <th width="60">Editeaza</th>
306 <th width="60">Sterge</th>
307 </tr>
308 <c:forEach items="${listItems}" var="item">
309 <c:if test="${not empty item.id}">
310 <tr>
311 <td align="right">${item.nrCrt}</td>
312 <td align="right">${item.simbolClasaMijlocFix}</td>
313 <td align="right">${item.mijlocFix}</td>
314 <td align="right">${item.nrInventar}</td>
315 <td align="right">${item.cont}</td>
316 <td align="right">${item.cantitate}</td>
317 <td align="right">${item.UM}</td>
318 <td align="right">${item.pret}</td>
319 <td align="right">${item.valoare}</td>
320 <td align="right">${item.amortizarePrecedenta}</td>
321 <td align="right">${item.amortizareCurenta}</td>
322 <td align="right">${item.amortizareTotala}</td>
323 <td align="right">${item.valoareRamasa}</td>
324 <td align="right">${item.durataNormala}</td>
325 <td align="right">${item.durataRamasa}</td>
326 <td align="right">${item.anLunaPrimaRata}</td>
327 <td align="right">${item.anLunaAdaugare}</td>
328 <td align="center">
329 <c:if test="${not empty item.id}">
330 <a href="<c:url value='/edit/${item.id}' />" >Editeaza</a>
331 </c:if>
332 </td>
333 <td align="center">
334 <c:if test="${not empty item.id}">
335 <a href="<c:url value='/remove/${item.id}' />" >Sterge</a>
336 </c:if>
337 </td>
338 </tr>
339 </c:if>
340 <c:if test="${empty item.id}">
341 <tr>
342 <td align="left" colspan="8"><b>${item.simbolClasaMijlocFix}<b></td>
343 <td align="right"><b>${item.valoare}</b></td>
344 <td align="right"><b>${item.amortizarePrecedenta}<b></td>
345 <td align="right"><b>${item.amortizareCurenta}</b></td>
346 <td align="right"><b>${item.amortizareTotala}</b></td>
347 <td align="left"><b>${item.valoareRamasa}</b></td>
348 <td colspan="7"></td>
349 </tr>
350 </c:if>
351 </c:forEach>
352 </table>
353 </c:if>
354 </body>
355 </html>