Regalamiunsorriso/www/admin/art/_inc_articoloConfezione_tessuti_base.jsp
2026-04-07 18:02:17 +02:00

97 lines
5 KiB
Text

<%@ taglib uri="/WEB-INF/acxent.tld" prefix="acx" %>
<%@ page language="java" import="it.acxent.jsp.*" %>
<%-- DICHIARAZIONE BEAN --%>
<jsp:useBean id="lang" class="java.lang.String" type="java.lang.String" scope="session" >
</jsp:useBean>
<jsp:useBean id="nf" scope="request" type="java.text.NumberFormat" >
</jsp:useBean>
<jsp:useBean id="bean" class="it.acxent.art.Articolo" type="it.acxent.art.Articolo" scope="request" >
</jsp:useBean>
<jsp:useBean id="beanATT" class="it.acxent.tex.anag.ArticoloArticoloTessuto" type="it.acxent.tex.anag.ArticoloArticoloTessuto" scope="request" >
</jsp:useBean>
<jsp:useBean id="df" class="it.acxent.util.SimpleDateFormat" scope="request" type="it.acxent.util.SimpleDateFormat" >
</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_articoloArticoloTessuto" type="hidden" id="id_articoloArticoloTessuto" >
<div class="row">
<div class="col-lg-12">
<h2>
<acx:lang>Inserisci i tessuti base necessari per la creazione di 1 solo capo. Verranno Utilizzati per l'inserimento dei tessuti colori per le varianti</acx:lang>
</h2>
</div>
</div>
<div class="row">
<div class="col-lg-3 col-xs-6">
<label>Scegli tessuto:</label>
<br>
<acx:inputajax bean="beanATT" boundcolumn="id_articoloTessuto" resultboundcolumn="id_articoloTessuto"
action='/admin/tessuto/ArticoloTessuto.abl?flgTipoTessutoM=-2&searchTxt='
nchar="0" nrow="40" returndata="id_articoloTessuto,,descrizioneGreggio" nextacion="mmATT"
usesubmit="false" usemono="false" javascriptmodify="editTessuto()" javascriptnew="nuovoTessuto()" >
<div class="input-group input-group-sm">
<input name="descrizioneGreggio" type="text" class="form-control input-sm ajSearchText" id="descrizioneGreggio" value="" />
</div>
</acx:inputajax>
</div>
<div class="col-lg-3 col-xs-8" >
<label>Colore Variante (non obb.):</label>
<acx:inputajax bean="null" boundcolumn="id_coloreBase" action='<%="/admin/artConfig/Colore.abl?&searchTxt="%>'
nchar="0" returndata="id_coloreBase,descrizioneColore" nextacion="seriale"
usesubmit="false" usemono="false" javascriptmodify="" javascriptnew="nuovoColoreTessuto()" >
<div class="input-group input-group-sm">
<input name="descrizioneColore" type="text" class="form-control input-sm ajSearchText" id="descrizioneColore" value="" />
</div>
</acx:inputajax>
</div>
<div class="col-lg-2 col-xs-6">
<label for="txtRicerca">mm:</label>
<br>
<input type="text" class="form-control input-sm" id="mmATT" name="mmATT" maxlength="10" value="<%= beanATT.getMmATT() %>" >
</div>
<div class="col-lg-2 col-xs-6">
<label for="txtRicerca">
<acx:lang>Bordatura mm</acx:lang>
(*):</label>
<br>
<input type="text" class="form-control input-sm" id="bordaturaMm" name="bordaturaMm" maxlength="10" value="<%= (beanATT.getBordaturaMm()) %>" nextFocus="addTessutoConfezione()">
</div>
<div class="col-lg-1"> <a class="btn btn-primary btn-sm btn-associative pull-right" href="javascript:addTessutoConfezione()">Inserisci </a> </div>
</div>
<div class="row" >
<div class="col-xs-12">
<div class="box-body table-responsive mobileSwitch" name="lista" id='<%=CR.getFlgMobileView()==1?"no-more-tables":""%>'>
<table class="table table-bordered table-hover table-striped dataTable table-condensed">
<thead>
<tr>
<th>&nbsp;</th>
<th>Principale</th>
<th>Elenco tessuti </th>
<th>mm</th>
<th>Bordatura mm</th>
</tr>
</thead>
<acx:whilevec rowbeanclass="it.acxent.tex.anag.ArticoloArticoloTessuto" vectumerator="listaArticoliTessutoBase">
<tr>
<td class="text-center comandi" ><div class="inline text-center hidden-print"> <a href="javascript:delTessutoConfezione(<%=rowBean.getId_articoloArticoloTessuto()%>,'<%= rowBean.getLastUpdTmstString() %>');"><i class="fa fa-trash-o fa-2x" title="<acx:lang>Cancella Record</acx:lang>"></i></a> </div></td>
<td class="text-center comandi" data-title="Tess. Princ"><acx:if wherecondition="<%=rowBean.getFlgPrincipale()==1%>"><i class="fa fa-check" title="<acx:lang>Tessuto Principale</acx:lang>"></i></acx:if>
<acx:else><a href="javascript:impostaTessutoPrincipale(<%=rowBean.getId_articoloArticoloTessuto()%>)"><i class="fa fa-ban" title="<acx:lang>IMPOSTA COME TESSUTO PRINCIPALE</acx:lang>"></i></a></acx:else></td>
<td data-title="Tessuto Acc."><%=rowBean.getDescrizioneTessuto(lang)%></td>
<td data-title="Tessuto Acc."><%=(rowBean.getMmATT())%></td>
<td data-title="Bordatura mm"><%=(rowBean.getBordaturaMm())%></td>
</tr>
</acx:whilevec>
</table>
</div>
</div>
</div>
</acx:else>