Primer commit del sistema avantika sin cambios

This commit is contained in:
2026-01-06 19:42:24 -06:00
commit 3ae4be5957
7127 changed files with 440072 additions and 0 deletions

View File

@@ -0,0 +1,159 @@
<div id="divForm">
<form id="frmAgregarPedido" name="frmAgregarPedido" method="post">
<input type="hidden" id="type" name="type" value="savePedido" />
<fieldset>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="120" align="left" height="40">* Proveedor:</td>
<td align="left">
<input name="proveedor" id="proveedor" type="text" class="largeInput" style="width:290px" onkeyup="SuggestProveedor()" value="{$info.proveedor}"/>
<input type="hidden" name="proveedorId" id="proveedorId" value="{$info.proveedorId}" />
<div style="position:relative">
<div class="suggestGral" style="display:none;" id="sugProvDiv"></div>
</div>
</td>
<td width="10"></td>
<td width="130" align="left">No. de Pedido</td>
<td align="left"><div class="txtFrm">{$info.noPedido}</div></td>
</tr>
<tr>
<td width="120" align="left" height="40">Fecha del Pedido:</td>
<td align="left">
<div class="txtFrm">{$info.fecha}</div>
<input type="hidden" name="fechaPedido" id="fechaPedido" value="{$info.fecha}" />
</td>
<td width="10"></td>
<td width="130" align="left">* Fecha de Entrega</td>
<td><div style="height:10px"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="135">Del
<input name="fechaEntrega" id="fechaEntrega" type="text" class="largeInput" style="width:100px" value="{$info.fechaEntrega}" readonly="readonly" />
</td>
<td>
<a href="javascript:void(0)" onclick="NewCal('fechaEntrega','ddmmyyyy')">
<img src="{$WEB_ROOT}/images/icons/calendar.gif" />
</a>
</td>
<td width="138">&nbsp;&nbsp;Al
<input name="fechaEntregaF" id="fechaEntregaF" type="text" class="largeInput" style="width:100px" value="{$info.fechaEntregaF}" readonly="readonly" />
</td>
<td>
<a href="javascript:void(0)" onclick="NewCal('fechaEntregaF','ddmmyyyy')">
<img src="{$WEB_ROOT}/images/icons/calendar.gif" /></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="120" align="left" height="40">* M&eacute;todo de Compra:</td>
<td>{include file="{$DOC_ROOT}/templates/lists/enumMetodoCompra.tpl"}</td>
<td width="10"></td>
<td width="130" align="left">Resurtido:</td>
<td align="left"><div class="txtFrm">{if $info.resurtido}S&iacute;{else}No{/if}</div>
<input type="hidden" name="resurtido" value="{if $info.resurtido}1{else}0{/if}" />
</td>
</tr>
<tr>
<td colspan="5" align="center" height="50"><b>.:: AGREGAR PRODUCTOS ::.</b></td>
</tr>
<tr>
<td width="120" height="40">* Departamento:</td>
<td>{include file="{$DOC_ROOT}/templates/lists/enumProdCat.tpl"}</td>
<td width="10"></td>
<td width="130">* L&iacute;nea</td>
<td><div id="enumLineas">{include file="{$DOC_ROOT}/templates/lists/enumProdSubcatPed.tpl"}</div></td>
</tr>
<tr>
<td width="120" height="40">* Modelo:</td>
<td>
<input name="modelo" id="modelo" type="text" class="largeInput" style="width:290px" onkeyup="SuggestProducto()"/>
<input type="hidden" name="productoId" id="productoId" value="" />
<div style="position:relative">
<div class="suggestGral" style="display:none;" id="sugProdDiv"></div>
</div>
</td>
<td width="10"></td>
<td width="130">Atributos</td>
<td><div id="enumAtributos"></div></td>
</tr>
<tr>
<td colspan="5" align="center">&nbsp;</td>
</tr>
<tr>
<td colspan="5" align="center">
<div id="tblProporcion" align="center">
{include file="{$DOC_ROOT}/templates/lists/pedidos-proporciones.tpl"}
</div>
</td>
</tr>
<tr>
<td colspan="5" align="center">
<div align="right" style="margin-right:20px">
<a href="javascript:void(0)" onclick="AddProducto()">
+ Agregar Producto
</a>
</div>
</td>
</tr>
<tr>
<td colspan="5" align="center" style="border-top:1px solid #CCCCCC; padding-top:10px">
<b>.:: PRODUCTOS ::.</b>
</td>
</tr>
<tr>
<td colspan="5" align="center">
<div id="productos">
{include file="{$DOC_ROOT}/templates/lists/pedidos-productos.tpl"}
</div>
</td>
</tr>
</table>
{if $info.resurtido}
<table width="100%" cellpadding="0" cellspacing="0" border="0" id="tblDistribucion">
<tr>
<td align="center" class="lineProd">
<b>.:: DISTRIBUCION ::.</b>
</td>
</tr>
<tr>
<td align="center" id="listDist">
{include file="{$DOC_ROOT}/templates/lists/pedidos-productos-resurtido.tpl"}
</td>
</tr>
</table>
{/if}
<hr />
</fieldset>
</form>
* Campos requeridos
<br />
<div align="center" style="display:none" id="loader">
<img src="{$WEB_ROOT}/images/loading.gif">
<br>
Guardando Informaci&oacute;n...
<br />Este proceso puede tardar unos segundos.
<br />&nbsp;
</div>
<div style="clear:both"></div>
<div style="margin-left:300px">
<a class="button" name="btnSave" onclick="AddPedido()" style="margin-right:20px">
<span>Enviar a Autorizaci&oacute;n</span>
</a>
<a class="button" href="javascript:void(0)" onclick="CancelPedido()">
<span>Cancelar Pedido</span>
</a>
</div>
<div style="clear:both"></div>
</div>