79 lines
4 KiB
Text
79 lines
4 KiB
Text
<%@ taglib uri="/WEB-INF/acxent.tld" prefix="acx" %>
|
|
<%@ page language="java" import="it.acxent.jsp.*" %>
|
|
<%-- DICHIARAZIONE BEAN --%>
|
|
<jsp:useBean id="nf" scope="request" type="java.text.NumberFormat" >
|
|
</jsp:useBean>
|
|
<jsp:useBean id="df" class="it.acxent.util.SimpleDateFormat" scope="request" type="it.acxent.util.SimpleDateFormat" >
|
|
</jsp:useBean>
|
|
<jsp:useBean id="bean" class="it.acxent.art.Articolo" type="it.acxent.art.Articolo" scope="request" >
|
|
</jsp:useBean>
|
|
<jsp:useBean id="beanAP" scope="request" class="it.acxent.art.ArticoloUsato" type="it.acxent.art.ArticoloUsato" >
|
|
</jsp:useBean>
|
|
<%-- FINE DICHIARAZIONE BEAN --%>
|
|
|
|
<acx:if wherecondition="<%=bean.getId_articolo()==0%>">
|
|
<h1>
|
|
<acx:lang>Per inserire devi prima salvare il record</acx:lang>
|
|
</h1>
|
|
</acx:if>
|
|
<acx:else>
|
|
<input name="id_articoloUsato" type="hidden" id="id_articoloUsato" >
|
|
<div class="row">
|
|
<div class="col-lg-12 col-xs-12">Documento di acquisto</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-3 col-xs-6">
|
|
<label>Cliente che Vende:</label>
|
|
<br><div class="input-group input-group-sm">
|
|
|
|
<input readonly name="id_fornitore" type="hidden" id="id_fornitore" size="10" maxlength="30" /> <input class="form-control input-sm ajSearchTxt"name="descrizioneFornitore" type="text" id="descrizioneFornitore" size="40" maxlength="60" <%=Ab.jsAjSearchTextM4("/admin/anag/Clifor.abl?flgCF=C&searchTxt=","descrizioneFornitore","listaFornitore","main.id_fornitore,main.descrizioneFornitore",0,"docAcquisto")%> /><span class="input-group-addon "><a href="javascript:Ab.clrField('main','id_fornitore','descrizioneFornitore')"><i class="fa fa-refresh fa-sm" title="Pulisci Campi"></i> </a></span></div><%=Ab.divAjSearchDiv4("listaFornitore")%>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<div class="col-lg-3">
|
|
<label>Doc. Acquisto:</label>
|
|
<br>
|
|
<input class="form-control input-sm" type="text" id="numeroDocumento" name="numeroDocumento" size="10" maxlength="20">
|
|
</div>
|
|
<div class="col-lg-2 col-xs-6">
|
|
<label for="descrizione">Data:</label>
|
|
<br>
|
|
<input type="text" class="form-control input-sm datemask datapicker" id="dataDocumento" name="dataDocumento" maxlength="10" value="" nextFocus="addAcquistoUsato()" >
|
|
</div>
|
|
<div class="col-lg-1">
|
|
<label for="txtRicerca"> </label>
|
|
<br>
|
|
<a href="javascript:addAcquistoUsato();"><i class="fa fa-plus fa-2x" aria-hidden="true"></i></a> </div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="box-body scroll-300 col-lg-12" id="no-more-tables">
|
|
<table class="table table-striped" style="border: 1px solid #ededed;">
|
|
<tr>
|
|
<th width="6%"> </th>
|
|
<th>Cliente</th>
|
|
<th >Num. Doc. </th>
|
|
<th>Data Doc.</th>
|
|
<th>Tipo Documento</th>
|
|
<th>Importo</th>
|
|
</tr>
|
|
<acx:whilevec rowbeanclass="it.acxent.art.ArticoloUsato" vectumerator="listaArticoliUsato">
|
|
<tr <%=rowBean.getId_articoloUsato()==beanAP.getId_articoloUsato()?"class='success'":""%> >
|
|
<td><a href="javascript:delAcquistoUsato(<%=rowBean.getId_articoloUsato()%>)"><i class="fa fa-trash-o fa-2x" title="<acx:lang>Cancella Record</acx:lang>"></i></a></td>
|
|
<td><acx:if wherecondition="<%=rowBean.getTmstStampa()!=null%>">
|
|
<i class="fa fa-check-circle" aria-hidden="true" title="<%= rowBean.getId_articoloUsato() %> - Record stampato il <%=rowBean.getTmstStampa()%>" style="color: darkgreen"></i>
|
|
</acx:if><acx:else>
|
|
<i class="fa fa-ban" aria-hidden="true" title="<%= rowBean.getId_articoloUsato() %> - Record NON STAMPATO" style="color: darkred"></i>
|
|
</acx:else> <%= rowBean.getIntestazione() %></td>
|
|
<td><%= rowBean.getNumeroDocumento() %></td>
|
|
<td><%= df.format(rowBean.getDataDocumento()) %></td>
|
|
<td><%= rowBean.getTipoDocumento()%></td>
|
|
<td><%= nf.format(rowBean.getImporto()) %></td>
|
|
</tr>
|
|
</acx:whilevec>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</acx:else>
|