6790 lines
504 KiB
Plaintext
6790 lines
504 KiB
Plaintext
<%@ Page Title="Compras - Registro de Facturas" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" ValidateRequest="false" CodeFile="Compras.aspx.vb" Inherits="Compras_Compras" EnableEventValidation="false" %>
|
||
|
||
|
||
|
||
|
||
<asp:Content ID="Content1" ContentPlaceHolderID="H" runat="Server">
|
||
<asp:UpdatePanel ID="UppAddAcciones" runat="server">
|
||
<ContentTemplate>
|
||
<li>
|
||
<asp:LinkButton ID="LnkAcarreo" runat="server" Text="Verificar Acarreos" Visible="False"></asp:LinkButton>
|
||
</li>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<asp:UpdatePanel ID="UpnTools" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<li>
|
||
<asp:Button ID="btnpruebas" CssClass="hidden" OnClick="btnpruebas_Click" runat="server" Text="Button" />
|
||
</li>
|
||
<li>
|
||
<asp:LinkButton ID="LnkAddPS" runat="server"><i class="fa fa-plus-circle"></i>Agregar Concepto</asp:LinkButton>
|
||
</li>
|
||
<li>
|
||
<asp:HyperLink ID="ImgDownXML" runat="server" Visible="false" Target="_blank"><i class="fa fa-ad-excel"></i> Imprimir XML</asp:HyperLink>
|
||
</li>
|
||
<li>
|
||
<asp:HyperLink ID="ImgDownPDF" runat="server" Visible="false" Target="_blank"><i class="fa fa-ad-pdf"></i> Imprimir PDF</asp:HyperLink>
|
||
</li>
|
||
<li>
|
||
<asp:HyperLink ID="ImgImprimirAlmacen" Target="_blank" Visible="False" CssClass="Texto" runat="server"><i class="fa fa-truck"></i> Ver Almacen</asp:HyperLink>
|
||
</li>
|
||
<li>
|
||
<asp:LinkButton ID="LnkExportaGv" Visible="false" runat="server">Imprimir Desglose</asp:LinkButton>
|
||
</li>
|
||
<li>
|
||
<asp:HyperLink ID="HyperLink2" NavigateUrl="#" Visible="true" data-toggle="modal" data-target="#DivAgregarPS" runat="server"><i class='fa fa-plus'></i> Agregar PS</asp:HyperLink>
|
||
</li>
|
||
<li>
|
||
<asp:LinkButton ID="LnkAddOtrosGastos" OnClick="LnkAddOtrosGastos_Click" Visible="false" runat="server"><i class="fa fa-plus-circle"></i> Agregar Otros Gastos</asp:LinkButton>
|
||
</li>
|
||
<li runat="server" visible="false" id="liFletesImportaciones">
|
||
<asp:LinkButton ID="LnkFletesImportaciones" runat="server"><i class='fa fa-truck'></i> Costo Indirecto/Importaciones</asp:LinkButton>
|
||
</li>
|
||
<asp:UpdatePanel ID="UPPRefac" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<li runat="server" visible="false" id="VerRefacturacion">
|
||
<asp:LinkButton Text="Refacturación" ID="BtnRefacturacionVer" runat="server" />
|
||
</li>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<asp:UpdatePanel ID="UPPVales" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<li runat="server" visible="false" id="VerVales">
|
||
<asp:LinkButton Text="Vales Combustible" ID="BtnValesCombustibleVer" runat="server" />
|
||
</li>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<asp:UpdatePanel ID="UPPDescontablizar" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<li>
|
||
<asp:LinkButton ID="BtnDescontabilizar" data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea eliminar la poliza?" data-btn-ok-label="si" Text="Descontabilizar" runat="server" OnClick="BtnDescontabilizar_Click" Visible="false"> <i class="fa fa-minus-square"></i> Descontabilizar</asp:LinkButton>
|
||
</li>
|
||
</ContentTemplate>
|
||
<Triggers>
|
||
<asp:PostBackTrigger ControlID="BtnDescontabilizar" />
|
||
</Triggers>
|
||
</asp:UpdatePanel>
|
||
<li>
|
||
<asp:LinkButton ID="LBContabilizarAC" data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea contabilizar la compra?" data-btn-ok-label="si" Text="Contabilizar" runat="server" OnClick="LBContabilizarAC_Click" Visible="false"> <i class="fa fa-check"></i> Contabilizar</asp:LinkButton>
|
||
</li>
|
||
<li>
|
||
<asp:HyperLink ID="HLPagar" CssClass="thickbox" Visible="false" runat="server"><i class='fa fa-money'></i> Pagar</asp:HyperLink>
|
||
</li>
|
||
<asp:UpdatePanel ID="UpDevolucionAlmacen" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<li id="LiDevolucionAlmacen" runat="server" visible="false">
|
||
<%--<asp:LinkButton Text="Solicitar Devolución" OnClick="LBDevolucionAlmacen_Click" ID="LBDevolucionAlmacen" runat="server" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro de solicitar la Devolución de Almacén?" data-btn-ok-label="si" />--%>
|
||
<asp:LinkButton ID="HplDevv" OnClick="LBDevolucionAlmacen_Click" runat="server"><i class='fa fa-plus'></i> Solicitar Devolución</asp:LinkButton>
|
||
</li>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<asp:UpdatePanel runat="server" ID="UpAccionesContratos" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<li runat="server" visible="false" id="LiAccionesContratos">
|
||
<asp:LinkButton ID="LnkContratos" OnClick="LnkContratos_Click" runat="server"><i class='fa fa-th-list'></i> Contratos</asp:LinkButton>
|
||
</li>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</ContentTemplate>
|
||
<Triggers>
|
||
<asp:PostBackTrigger ControlID="LnkExportaGv" />
|
||
</Triggers>
|
||
</asp:UpdatePanel>
|
||
|
||
<li>
|
||
<asp:HyperLink ID="HLModalFletes" NavigateUrl="#" Visible="false" data-toggle="modal" data-target="#ModalFletes" runat="server"><i class='fa fa-truck'></i> Fletes</asp:HyperLink>
|
||
</li>
|
||
<li>
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:LinkButton ID="LnkCompleplementos" Visible="false" runat="server" OnClick="LnkCompleplementos_Click"><i class='fa fa-money'></i> Complementos Pago</asp:LinkButton>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
</li>
|
||
<li>
|
||
<asp:HyperLink ID="HLModalActualizarTC" NavigateUrl="#" runat="server" Visible="false" data-toggle="modal" data-target="#ModalActualizarTC"><i class="fa fa-usd"></i> Actualizar Tipo Cambio</asp:HyperLink>
|
||
</li>
|
||
|
||
<%-- 25/05/2018 - Link a Paqueterias Guias --%>
|
||
<asp:UpdatePanel ID="UpLnkPaqueteriaGuias" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<li>
|
||
<asp:LinkButton ID="LnkAgregarGuia" runat="server" OnClick="LnkAgregarGuia_Click" Visible="false"><i class="fa fa-truck"></i><span style="padding: 10px">Agregar Guía </span></asp:LinkButton>
|
||
</li>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<%--2021-04-15 contratos de obra--%>
|
||
<asp:UpdatePanel ID="UpAccionesContratosObra" runat="server" UpdateMode="Conditional">
|
||
|
||
<ContentTemplate>
|
||
<li style="text-align: left!important" runat="server" id="LIContratos" visible="false">
|
||
<asp:LinkButton runat="server" ID="LnkAcontratos" CssClass="" data-toggle="tooltip" data-placement="left" OnClick="LnkAcontratos_Click" title="Contratos" Text="<i class='fa fa-file-text'></i> Contratos"></asp:LinkButton>
|
||
</li>
|
||
</ContentTemplate>
|
||
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
</asp:Content>
|
||
<asp:Content ID="Content6" ContentPlaceHolderID="CP" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content5" ContentPlaceHolderID="Css" runat="Server">
|
||
<style>
|
||
.filacolor {
|
||
background-color: #f9e491;
|
||
}
|
||
|
||
.truncate {
|
||
width: 300px;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
/*IPP*/
|
||
.manita {
|
||
cursor: pointer;
|
||
}
|
||
|
||
select.selecthidden {
|
||
display: none;
|
||
}
|
||
|
||
radioContado {
|
||
border: 1px solid black;
|
||
width: 85%;
|
||
}
|
||
|
||
.GastoIndirectoOpciones {
|
||
margin-left: auto;
|
||
margin-right: auto;
|
||
width: 400px;
|
||
}
|
||
|
||
.GastoIndirectoOpciones td {
|
||
text-align: right; /* Or any other value */
|
||
}
|
||
/*IPP*/
|
||
</style>
|
||
</asp:Content>
|
||
<asp:Content ID="Content2" ContentPlaceHolderID="E" runat="Server">
|
||
Registro de Compras
|
||
</asp:Content>
|
||
<asp:Content ID="Content3" ContentPlaceHolderID="C" runat="Server">
|
||
|
||
|
||
<%--<asp:TextBox ID="TextBox1" Text="2775.0000" runat="server"></asp:TextBox><asp:Button ID="Button2" runat="server" Text="Button" />
|
||
<asp:Button ID="Button3" runat="server" Text="vincular" />--%>
|
||
|
||
|
||
<div class="row" style="margin-left: 0px; margin-right: 0px;">
|
||
<div class="whitoutcol" style="width: 380px;">
|
||
<asp:UpdatePanel ID="UpParametros" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Datos de factura de Compra</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="tools">
|
||
<a href="javascript:;" class="collapse"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body form-horizontal form-row-sepe formnombottom">
|
||
<div class="row">
|
||
<div class="form-group ">
|
||
<%-- <asp:DropDownList ID="ddlCargoPrePoliza" CssClass="form-control input-sm whitoutcol linewhitsize comprasdfleft" runat="server" Width="70px" Visible="false">
|
||
<asp:ListItem Text="Proveedor" Value="1" Selected="True"></asp:ListItem>
|
||
<asp:ListItem Text="Deudor" Value="2"></asp:ListItem>
|
||
<asp:ListItem Text="Acreedor" Value="3"></asp:ListItem>
|
||
</asp:DropDownList>--%>
|
||
<asp:LinkButton ID="LblProveedor" runat="server" Visible="true" class="whitoutcol linewhitsize comprasdfleft" Style="text-decoration: none">Proveedor:</asp:LinkButton>
|
||
<%--<asp:Label ID="LblProveedor" runat="server" Visible="true" class="whitoutcol linewhitsize comprasdfleft">Proveedor:</asp:Label>--%>
|
||
<%-- <asp:Label ID="lblProveedor" runat="server" Visible="true" class="whitoutcol linewhitsize comprasdfleft">Proveedor:</asp:Label>--%>
|
||
<div class="whitoutcol whitoutcol ">
|
||
<asp:HyperLink ID="HplProveedor" CssClass="Texto" runat="server" Visible="false"></asp:HyperLink>
|
||
<asp:DropDownList ID="DdlProveedor" CssClass="form-control input-sm" onclick="CargaProveedores();" runat="server" CausesValidation="true" DataTextField="RazonSocial" DataValueField="CveProveedor" Width="280px"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVProveedor" runat="server" ControlToValidate="DdlProveedor" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Proveedor''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOProveedor" runat="server" HighlightCssClass="vco" TargetControlID="RFVProveedor" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
<asp:HiddenField ID="HdnCveProveedor" runat="server" ClientIDMode="Static" Value="-1" />
|
||
<asp:Button ID="BtnBuscarProveedor" runat="server" ClientIDMode="Static" Text="Buscar Proveedor" Style="display: none;" />
|
||
<asp:Button ID="BtnCargarProveedores" runat="server" ClientIDMode="Static" Text="CargaProveedores" Style="display: none;" />
|
||
</div>
|
||
</div>
|
||
<div class="form-group whitoutcol" style="width: 280px;">
|
||
<span class="whitoutcol linewhitsize comprasdfleft">Tipo:</span>
|
||
<div class="whitoutcol whitoutcol comprasdfleftvar">
|
||
<asp:DropDownList ID="DdlTipoComprobante" runat="server" AutoPostBack="true" CssClass="form-control input-sm input-small" OnSelectedIndexChanged="DdlTipoComprobante_SelectedIndexChanged">
|
||
<asp:ListItem Selected="True" Text="Factura" Value="Fac"></asp:ListItem>
|
||
<asp:ListItem Text="Nota de Crédito" Value="NC"></asp:ListItem>
|
||
<asp:ListItem Text="Anticipo" Value="Ant"></asp:ListItem>
|
||
<asp:ListItem Text="Devolución" Value="DEV"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div class="whitoutcol" style="width: 120px;">
|
||
<div class="form-group ">
|
||
<asp:Label ID="lblOCLabel" runat="server" CssClass="whitoutcol linewhitsize" Style="width: 40px;"># O.C.:</asp:Label>
|
||
<div class="whitoutcol form-group form-md-line-input linewhitsize" style="width: 60px;">
|
||
<asp:TextBox ID="TxtOC" ClientIDMode="Static" runat="server" CssClass="form-control input-xs " onkeypress="fncBuscaOC(event);" MaxLength="100"></asp:TextBox>
|
||
</div>
|
||
<asp:LinkButton ID="ImgBtnBuscarOC" data-toggle="tooltip" data-placement="top" runat="server" CssClass="linewhitsize" ClientIDMode="Static" BorderWidth="0" Style="float: left;" ToolTip="Buscar O.C" OnClientClick=""><i class="fa fa-search"></i></asp:LinkButton>
|
||
<asp:HyperLink NavigateUrl="#" data-target="#DivOrdenesCompraVinculadas" CssClass="linewhitsize" ID="HLOCsVinculadas" data-toggle="modal" title="Ver ordenes de compra vinculadas" Style="float: right;" Visible="false" runat="server"><i class="fa fa-search"></i></asp:HyperLink>
|
||
</div>
|
||
<asp:Button ID="BtnBuscarOC" runat="server" Text="BuscarOC" ClientIDMode="Static" Style="display: none;" />
|
||
<asp:HiddenField runat="server" ID="HdnVCveOC" ClientIDMode="Static" Value="-1" />
|
||
<asp:HiddenField runat="server" ID="HdnCveEstatusOC" ClientIDMode="Static" Value="-1" />
|
||
<asp:Button runat="server" ID="BtnVOC" ClientIDMode="Static" OnClick="CargaVOC" Style="display: none" />
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="whitoutcol" style="width: 220px;">
|
||
<div class="form-group ">
|
||
<asp:Label class="linewhitsize" Style="margin-left: 20px;" ID="Label3" runat="server" Text="Serie - Folio:"></asp:Label>
|
||
<div class=" form-group form-md-line-input linewhitsize" style="width: 37px;">
|
||
<asp:TextBox ID="TxtSerie" runat="server" CausesValidation="true" CssClass="form-control input-sm " MaxLength="20" ValidationGroup="GrpGuardar" Width="37px"></asp:TextBox>
|
||
<label for="<%= TxtSerie.ClientID.ToString()%>"></label>
|
||
<i></i>
|
||
</div>
|
||
<asp:Label class="linewhitsize" ID="LblSerie" runat="server" Text="-"></asp:Label>
|
||
<div class=" form-group form-md-line-input linewhitsize" style="width: 85px;">
|
||
<asp:TextBox ID="TxtFolio" runat="server" CausesValidation="true" CssClass="form-control input-sm " MaxLength="20" ValidationGroup="GrpGuardar"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVFolio" runat="server" ControlToValidate="TxtFolio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtFolio.ClientID.ToString()%>"></label>
|
||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="RFVFolio" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="whitoutcol" style="width: 120px;">
|
||
<div class="form-group ">
|
||
<asp:Label class="linewhitsize" Style="margin-left: 20px;" ID="Label4" runat="server" Text="Folio Sec.:"></asp:Label>
|
||
<div class=" form-group form-md-line-input linewhitsize" style="margin-right: -15px;">
|
||
<asp:TextBox ID="TxtFolioSecundario" CssClass="form-control input-sm " runat="server" CausesValidation="true" MaxLength="20" ToolTip="Folio Secundario" Width="60px"></asp:TextBox>
|
||
<label for="<%= TxtSerie.ClientID.ToString()%>"></label>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
|
||
|
||
|
||
<table>
|
||
<tr>
|
||
<td align="Center" style="width: 100px">Fecha Factura:</td>
|
||
<td align="left" style="width: 100px">
|
||
|
||
|
||
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy">
|
||
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:TextBox ID="TxtFecha" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" ValidationGroup="GrpGuardar" Width="100px" ClientIDMode="Static"></asp:TextBox>
|
||
<ajax:MaskedEditExtender ID="MEEFecha" runat="server" TargetControlID="TxtFecha" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender runat="server" ID="CEFecha" TargetControlID="TxtFecha" PopupButtonID="ImgFecha" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="RFVFecha" runat="server" ControlToValidate="TxtFecha" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<asp:CompareValidator ID="CVFecha" runat="server" ControlToValidate="TxtFecha" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOFecha1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
<ajax:ValidatorCalloutExtender ID="VCOFecha2" runat="server" HighlightCssClass="vco" TargetControlID="CVFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<asp:HiddenField ID="HdnEjercicioAC" runat="server" Value="-1" />
|
||
<asp:Button Text="" ID="BtnCambiaFechaTC" OnClick="BtnCambiaFechaTC_Click" ClientIDMode="Static" Style="display: none;" runat="server" />
|
||
<asp:Button Text="" ID="BtnCambiaFecha" OnClick="BtnCambiaFecha_Click" ClientIDMode="Static" Style="display: none;" runat="server" />
|
||
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton runat="server" ID="ImgFecha" class="btn default"> <i class="fa fa-calendar"></i> </asp:LinkButton>
|
||
</span>
|
||
</div>
|
||
|
||
</td>
|
||
<td align="left">
|
||
<asp:LinkButton runat="server" Visible="false" ID="LnkActualziarFechadecompra" OnClick="LnkActualziarFechadecompra_Click" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea actualizar la fecha de la compra?"
|
||
data-btn-ok-label="si" Text="<i class='fa fa-check' style='color:green'></i>" CssClass="btn btn-default btn-circle btn-xs" ToolTip="Actualizar Fecha de compra" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="form-group whitoutcol" style="width: 280px;">
|
||
<span class="whitoutcol linewhitsize comprasdfleft">Descripción: </span>
|
||
<div class="whitoutcol whitoutcol comprasdfleftvar">
|
||
<asp:TextBox ID="TxtDescripcion" runat="server" CausesValidation="true" MaxLength="100" TextMode="MultiLine" ValidationGroup="GrpGuardar" Width="280px"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVDescripcion" runat="server" ControlToValidate="TxtDescripcion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCODescripcion" runat="server" HighlightCssClass="vco" TargetControlID="RFVDescripcion" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="form-group whitoutcol" style="width: 280px;" id="TrFacturaRefacturar" visible="false" runat="server">
|
||
<span class="whitoutcol linewhitsize comprasdfleft">Refacturación: </span>
|
||
<div class="whitoutcol whitoutcol comprasdfleftvar">
|
||
<asp:Literal Text="" ID="LtFacturaRefacturar" runat="server" />
|
||
<asp:HiddenField ID="HdnRefacturacionCveCompra" runat="server" />
|
||
</div>
|
||
</div>
|
||
<div class="form-group whitoutcol" style="width: 400px;" id="DivEsNoDeducible" visible="false" runat="server">
|
||
<span class="whitoutcol linewhitsize comprasdfleft" style="width: 120px;">¿Es No Deducible?</span>
|
||
<div class="whitoutcol whitoutcol comprasdfleftvar">
|
||
<asp:CheckBox ID="ChkEsNoDeducible" runat="server" OnCheckedChanged="ChkEsNoDeducible_CheckedChanged1" AutoPostBack="true" />
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<%-- <div class="form-group whitoutcol" style="width: 320px;">
|
||
<span class="whitoutcol linewhitsize comprasdfleft">Tipo Gasto: </span>
|
||
<div class="whitoutcol whitoutcol comprasdfleftvar">
|
||
<asp:DropDownList ID="DdlTipoGasto" runat="server" DataTextField="TipoGasto" DataValueField="CveTipoGasto" Width="100%" AppendDataBoundItems="true" CssClass="form-control input-sm select2me">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>--%>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="whitoutcol" style="width: 350px; display: none;">
|
||
<asp:UpdatePanel ID="UpProveedor" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase"><a id="HlProveedor" runat="server" class="Texto font-green" href="javascript:AbrirVentana('/Compras/PopUpBuscarProveedor.aspx?Opt=Fact', 800, 600, 'N', 'PopUpBuscar')">Proveedor:</a> </span> <asp:TextBox ID="TxtCodigo" runat="server" AutoPostBack="true" BorderStyle="None" Width="45px"></asp:TextBox>
|
||
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript:;" class="collapse"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<div class="form-group proveedoreespes">
|
||
<span class="whitoutcol linewhitsize proveedoreespes">RFC:</span>
|
||
<div class="whitoutcol whitoutcol ">
|
||
<asp:Label ID="LblRFC" runat="server" Text="RFC"></asp:Label>
|
||
<asp:HiddenField ID="HdnProveedorIVA" ClientIDMode="Static" Value="0" runat="server" />
|
||
</div>
|
||
</div>
|
||
<div class="form-group proveedoreespes">
|
||
<span class="whitoutcol linewhitsize proveedoreespes">Días de Crédito:</span>
|
||
<div class="whitoutcol whitoutcol ">
|
||
<asp:Label ID="LblDiasCredito" runat="server" Text="0" ClientIDMode="Static"></asp:Label>
|
||
</div>
|
||
</div>
|
||
<div class="form-group proveedoreespes">
|
||
<span class="whitoutcol linewhitsize proveedoreespes">Límite de Crédito:</span>
|
||
<div class="whitoutcol whitoutcol ">
|
||
<asp:Label ID="LblLimiteCredito" runat="server" Text="0"></asp:Label>
|
||
</div>
|
||
</div>
|
||
<div class="form-group proveedoreespes">
|
||
<span class="whitoutcol linewhitsize proveedoreespes">Crédito Disponible:</span>
|
||
<div class="whitoutcol whitoutcol ">
|
||
<asp:Label ID="LblCreditoDisponible" runat="server" Text="0"></asp:Label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="whitoutcol" style="width: 330px;">
|
||
<asp:UpdatePanel ID="UpEstatus" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Estatus</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript:;" class="collapse"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<div runat="server" id="RowProveedorSucursal" visible="false">
|
||
<div class="form-group proveedoreespes">
|
||
<span class="whitoutcol linewhitsize proveedoreespes">Sucursal: </span>
|
||
<div class="whitoutcol whitoutcol">
|
||
<asp:DropDownList ID="DdlProveedorSucursal" CssClass=" select2me" AppendDataBoundItems="true" DataValueField="CveProveedorSucursal" DataTextField="ProveedorSucursal" runat="server" Width="185px">
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-group proveedoreespes">
|
||
<span class="whitoutcol linewhitsize proveedoreespes" style="height: 100%; vertical-align: middle;">Estatus:</span>
|
||
<div class="whitoutcol whitoutcol" style="width: 180px;">
|
||
<asp:Label ID="LblCompraEstatus" runat="server" Text="Recibida"></asp:Label><br />
|
||
<asp:CheckBox CssClass="md-checksd" ID="ChkProgramarPago" runat="server" Text="Autorizada" Visible="False" />
|
||
<asp:HiddenField ID="HdnCveEstatusFactura" runat="server" Value="1" />
|
||
|
||
<asp:DropDownList ID="DdlEstatus" runat="server" DataTextField="EstatusFactura" DataValueField="CveEstatusFactura" Width="78px" Visible="false">
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div class="form-group proveedoreespes" id="trImporte" runat="server" visible="False">
|
||
<span class="whitoutcol linewhitsize proveedoreespes">Importe: </span>
|
||
<div class="whitoutcol whitoutcol">
|
||
<asp:HyperLink ID="HplImporte" CssClass="Texto thickbox" runat="server"></asp:HyperLink></td>
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
<div class="form-group proveedoreespes" id="trSaldo" runat="server" visible="False">
|
||
<span class="whitoutcol linewhitsize proveedoreespes">Saldo: </span>
|
||
<div class="whitoutcol whitoutcol">
|
||
<asp:HyperLink ID="HplSaldoAuxiliar" CssClass="Texto thickbox" runat="server"></asp:HyperLink></td>
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
<div class="form-group proveedoreespes" id="trContabilizada" runat="server" visible="true">
|
||
<span class="whitoutcol linewhitsize proveedoreespes">Contabilizada: </span>
|
||
<div class="whitoutcol whitoutcol">
|
||
<asp:HyperLink ID="HplCompraContabilizada" runat="server" Text="No"></asp:HyperLink>
|
||
<%--<asp:HyperLink ID="HplPolizaCancelación" runat="server" Visible="false" Text="Cancelación"></asp:HyperLink>--%>
|
||
<%--<asp:Button ID="BtnDescontabilizar" data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea eliminar la poliza?" data-btn-ok-label="si" Text="Descontabilizar" runat="server" OnClick="BtnDescontabilizar_Click" CssClass="btn btn-default" Style="margin-left: 20px;" Visible="false" />--%>
|
||
<asp:Button ID="BtnEliminarPolizaMultiple" Style="display: none;" OnClick="BtnEliminarPoliza_Click" runat="server" ClientIDMode="Static" />
|
||
</div>
|
||
</div>
|
||
<div class="form-group proveedoreespes" runat="server" id="divTipoFactura" visible="false">
|
||
<span class="whitoutcol linewhitsize proveedoreespes">Tipo Factura: </span>
|
||
<div class="whitoutcol whitoutcol">
|
||
<asp:Label ID="LblTipoFact" runat="server" Text="CBB"></asp:Label>
|
||
</div>
|
||
</div>
|
||
<div class="form-group proveedoreespes">
|
||
<span class="whitoutcol linewhitsize proveedoreespes">Validada SAT: </span>
|
||
<div class="whitoutcol whitoutcol">
|
||
<asp:DropDownList ID="DdlValidadaSAT" CssClass="form-control input-sm" runat="server" Enabled="false" Width="78px">
|
||
<asp:ListItem>No</asp:ListItem>
|
||
<asp:ListItem>Si</asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div class="form-group proveedoreespes">
|
||
<span class="whitoutcol linewhitsize proveedoreespes">Capturó: </span>
|
||
<div class="whitoutcol whitoutcol">
|
||
<asp:Label ID="LblUsuarioCaptura" runat="server"></asp:Label>
|
||
</div>
|
||
</div>
|
||
<div class="form-group proveedoreespes">
|
||
<span class="whitoutcol linewhitsize proveedoreespes">F. Captura </span>
|
||
<div class="whitoutcol whitoutcol">
|
||
<asp:Label ID="LitFechCaptura" runat="server"></asp:Label>
|
||
</div>
|
||
</div>
|
||
<div class="form-group proveedoreespes">
|
||
<span class="whitoutcol linewhitsize proveedoreespes">Tipo Compra:</span>
|
||
<div class="whitoutcol whitoutcol ">
|
||
|
||
<asp:DropDownList ID="DdlTipoCompra" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlTipoCompra_SelectedIndexChanged" CssClass="form-control input-sm input-small">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
<asp:ListItem Text="Gasto" Value="7"></asp:ListItem>
|
||
<asp:ListItem Text="Gasto con almacen" Value="10"></asp:ListItem>
|
||
<asp:ListItem Text="Activo Fijo" Value="1"></asp:ListItem>
|
||
<asp:ListItem Text="Costo Indirecto" Value="2" Enabled="false"></asp:ListItem>
|
||
<asp:ListItem Text="Almacen" Value="3"></asp:ListItem>
|
||
<asp:ListItem Text="Almacen con costo indirecto" Value="8"></asp:ListItem>
|
||
<asp:ListItem Text="Costo Indirecto" Value="4"></asp:ListItem>
|
||
<asp:ListItem Text="Importación" Value="5"></asp:ListItem>
|
||
<asp:ListItem Text="NC Con Productos" Value="6"></asp:ListItem>
|
||
<asp:ListItem Text="Apoyo Logístico" Value="9"></asp:ListItem>
|
||
<asp:ListItem Text="NC Por Devolución" Value="11"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div class="form-group proveedoreespes" runat="server" id="divImportacion" visible="false">
|
||
<span class="whitoutcol linewhitsize proveedoreespes">Importación </span>
|
||
<div class="whitoutcol whitoutcol">
|
||
<asp:CheckBox runat="server" ID="chkImportacion"> </asp:CheckBox>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
|
||
<asp:HiddenField ID="HdnCompraSaldo" runat="server" ClientIDMode="Static" Value="0" />
|
||
|
||
<div class="row">
|
||
<div class="col-md-12" style="vertical-align: middle;" align="center">
|
||
<div style="z-index: 5; position: relative;">
|
||
<div id="DivRestriccionAdvertencia" clientidmode="Static" runat="server" visible="false" class="alert alert-danger alert-dismissable" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||
<strong style="font-size: 20px; margin-right: 25px;">La factura no se puede registrar: </strong>
|
||
<asp:Literal Text="El periodo de la compra actual ya se encuentra cerrado." runat="server" ID="LtRestriccionAdvertencia"></asp:Literal>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<asp:UpdatePanel runat="server" ID="UpTabs" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<ajax:TabContainer ID="Tab" runat="server" ActiveTabIndex="0" Width="100%">
|
||
|
||
<ajax:TabPanel ID="TabGenerales" runat="server" HeaderText="Generales">
|
||
<ContentTemplate>
|
||
|
||
<asp:UpdatePanel runat="server" ID="UpPresupuestosAC" UpdateMode="Conditional" Visible="False">
|
||
<ContentTemplate>
|
||
<div class="portlet xspadding light bordered" clientidmode="Static" id="DivPresupuestoEgresosGeneral">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Presupuesto Egresos General</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript:;" class="collapse"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<div class="row">
|
||
<div class=" col-md-3">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList runat="server" CssClass="form-control input-sm select2me" ID="DdlACGeneral5" AutoPostBack="true" DataTextField="CodigoClasificacion" DataValueField="CveClasificacion" OnSelectedIndexChanged="CambiaACGeneral"></asp:DropDownList>
|
||
<label>Clasificación </label>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
<div class=" col-md-2">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList runat="server" CssClass="form-control input-sm select2me" ID="DdlACGeneral1" AutoPostBack="true" DataTextField="ProgramaOperativo" DataValueField="CveProgramaOperativo" OnSelectedIndexChanged="CambiaACGeneral"></asp:DropDownList>
|
||
<label class="truncate">Programa Operativo </label>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
<div class=" col-md-2">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList runat="server" CssClass="form-control input-sm select2me" ID="DdlACGeneral2" AutoPostBack="true" DataTextField="UnidadAdministrativa" DataValueField="CveUnidadAdministrativa" OnSelectedIndexChanged="CambiaACGeneral"></asp:DropDownList>
|
||
|
||
<label class="truncate">Unidad Administrativa</label>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
<div class=" col-md-2">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList runat="server" CssClass="form-control input-sm select2me" ID="DdlACGeneral3" AutoPostBack="true" DataTextField="FuenteFinanciamiento" DataValueField="CveFuenteFinanciamiento" OnSelectedIndexChanged="CambiaACGeneral"></asp:DropDownList>
|
||
|
||
<label class="truncate">Fuente Financiamiento</label>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
<div class=" col-md-2">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList runat="server" CssClass="form-control input-sm select2me" ID="DdlACGeneral4" AutoPostBack="true" DataTextField="TipoGasto" DataValueField="CveTipoGasto" OnSelectedIndexChanged="CambiaACGeneral"></asp:DropDownList>
|
||
<label class="truncate">Tipo Gasto</label>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
<div class=" col-md-1">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<%--<i style="top: 6px; font-size: 14px; right: 0px;">$</i>--%>
|
||
<asp:Label runat="server" Style="font-size: 12px; right: 0px; margin-top: 20px;" CssClass="form-control pull-right" ID="LbACGeneralSaldo"></asp:Label>
|
||
<label>Saldo </label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<div class="pull-right" style="width: 150px;">
|
||
<asp:CheckBox ID="ChkACGeneral" CssClass="md-checksd" Text="Aplicar a todo" runat="server" Checked="true" />
|
||
</div>
|
||
<br />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div style="float: right; margin-bottom: 5px;">
|
||
<asp:Button Text="Ver Presupuesto Egresos" ID="BtnVerPE" Visible="false" runat="server" OnClientClick="$get('DivPresupuestoEgresosGeneral').style.display = ''; return false;" />
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<asp:UpdatePanel ID="UpPS" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="Widthall mysmallbtn" style="overflow-x: auto">
|
||
<asp:Panel ID="PnlTitulosPS" runat="server">
|
||
<table class="table table-striped Widthall">
|
||
<%--width="100%"--%>
|
||
<tr>
|
||
<th style="width: 15px">#</th>
|
||
<th style="width: 45px">Cant</th>
|
||
<th style="width: 70px">Unidad</th>
|
||
<th style="width: 299px">Clasificación
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<asp:HyperLink ID="HplAddClasificacion" data-toggle="tooltip" data-placement="top" NavigateUrl="/Ventas/CatClasificaciones.aspx" CssClass="btn btn-default btn-circle btn-xs " ToolTip="Agregar Clasificacion" runat="server"><i class="fa fa-plus" style="color:black" aria-hidden="true"></i></asp:HyperLink>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<span data-toggle="collapse" data-target="#DivReclasifica">
|
||
<div class="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" title="Reclasificar productos"><i class="fa fa-arrow-circle-down" style="color: green" aria-hidden="true"></i></div>
|
||
<asp:LinkButton ID="ImgClasificacion" CssClass="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" ToolTip="Aplicar Clasificación a Productos" runat="server" Style="display: none;"><i class="fa fa-arrow-circle-down" style="color:green" aria-hidden="true"></i></asp:LinkButton>
|
||
</span>
|
||
<br />
|
||
Producto o Servicio<asp:HyperLink ID="HyperLink1" data-toggle="tooltip" CssClass="btn btn-default btn-circle btn-xs " data-placement="top" ToolTip="Agregar Producto o Servicio" NavigateUrl="/Ventas/CatPS.aspx" runat="server"><i class="fa fa-plus" style="color:black" aria-hidden="true"></i></asp:HyperLink></th>
|
||
<th style="width: 350px">Observación</th>
|
||
<th style="width: 150px">
|
||
<asp:Label ID="LitHProyecto" runat="server" Text=""></asp:Label>
|
||
<asp:Label runat="server" ID="LblSubProyectoHeader" Text=""></asp:Label>
|
||
|
||
|
||
|
||
<asp:LinkButton ID="ImgActualizarProyecto" CssClass="btn btn-default btn-circle" data-toggle="tooltip" data-placement="top" ToolTip="Actualizar Cambios" runat="server" Visible="False"><i class="fa fa-arrow-circle-down" aria-hidden="true"></i></asp:LinkButton>
|
||
<span data-toggle="collapse" data-target="#DivReclasifica">
|
||
<div class="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" title="Cambiar sucursal"><i class="fa fa-arrow-circle-down" style="color: green" aria-hidden="true"></i></div>
|
||
<asp:LinkButton ID="ImgSubProyecto" CssClass="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" ToolTip="Aplicar SubProyecto a productos" runat="server" Style="display: none;"><i class="fa fa-arrow-circle-down" style="color:green" aria-hidden="true"></i></asp:LinkButton>
|
||
</span>
|
||
|
||
</th>
|
||
<th style="width: 177px">Tipo de Gasto
|
||
<span data-toggle="collapse" data-target="#DivReclasifica">
|
||
<div class="btn btn-default btn-circle btn-xs " data-toggle="tooltip" data-placement="top" title="Cambiar tipo de gasto"><i class="fa fa-arrow-circle-down" style="color: green" aria-hidden="true"></i></div>
|
||
</span>
|
||
</th>
|
||
<th style="width: 100px">P.U. </th>
|
||
<th style="width: 40px">IVA </th>
|
||
<th style="width: 40px" runat="server" id="TD_Gvps_IEPS" visible="false">IEPS </th>
|
||
<th style="width: 110px">Total </th>
|
||
<div id="dvNoDeducible" runat="server" visible="false">
|
||
<th style="width: 80px">¿No Deducible? </th>
|
||
</div>
|
||
<th style="width: 90px">Comandos</th>
|
||
</tr>
|
||
<tr id="DivReclasifica" class="collapse">
|
||
<th colspan="3"></th>
|
||
<th>
|
||
<asp:DropDownList ID="DdlAplicaClasificacion" runat="server" CssClass="form-control input-sm select2me" AutoPostBack="true" OnSelectedIndexChanged="DdlAplicaClasificacion_SelectedIndexChanged" AppendDataBoundItems="true" DataTextField="Clasificacion" DataValueField="CveClasificacion">
|
||
<asp:ListItem Selected="True" Text="Seleccione la Clasificación (Todas)" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</th>
|
||
<th></th>
|
||
<th>
|
||
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpReclasificarSubProyecto">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-1" style="width: 100%">
|
||
<asp:DropDownList ID="DdlAsignarProyecto" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Proyecto" DataValueField="CveProyecto">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
<%--<br runat="server" id="brProyectoSubProyecto" style="display:none"/>--%>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-1" style="width: 100%">
|
||
<asp:DropDownList ID="DdlAsignaSubProyecto" runat="server" CssClass="form-control input-sm select2me" AutoPostBack="true" OnSelectedIndexChanged="DdlAsignaSubProyecto_SelectedIndexChanged" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</th>
|
||
<th>
|
||
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpReclasificarTipoGasto">
|
||
<ContentTemplate>
|
||
<asp:DropDownList ID="DdlTipoGastoAsignar" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" OnSelectedIndexChanged="DdlTipoGastoAsignar_SelectedIndexChanged" AutoPostBack="true" DataTextField="TipoGasto" DataValueField="CveTipoGasto">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</th>
|
||
<th colspan="3"></th>
|
||
</tr>
|
||
</table>
|
||
</asp:Panel>
|
||
|
||
|
||
<asp:GridView ID="GvPS" ShowHeader="false" runat="server" AutoGenerateColumns="False" DataKeyNames="CvePS,Cantidad,CveUM,UM,PU,Descuento,OtrosGastos,CvePresupuestoEgreso,PS,Clasificacion,CveClasificacion,CveOrdenCompraDetalle,IVA,IVAPorcentaje,RetIVAPorcentaje,RetISRPorcentaje,IEPSPSPorcentaje,Obs,Total,CveProyecto,CveSubProyecto,Proyecto,SubProyecto,Consec,CveTipoGasto,NoDeducible,DifPSSat,TipoAF,CveCultivoCuadroDetalle" GridLines="none" BorderWidth="0" EmptyDataText="Sin Productos o Servicios agregados" CssClass="table GvPS table-striped table-hover table-advance Widthall ScrollAD mysmallbtn" >
|
||
<Columns>
|
||
<%-- 0 --%>
|
||
<asp:TemplateField ItemStyle-Width="15px">
|
||
<ItemTemplate>
|
||
<label data-toogle="tooltip" class=' <%# IIf(Eval("CvePS").ToString() = "0", "label label-sm label-danger manita", "")%>'>
|
||
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%-- 1 --%>
|
||
<asp:BoundField DataField="Cantidad" DataFormatString="{0:#,##0.00####}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="45px" />
|
||
<%-- 2 --%>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle" ItemStyle-Width="70px">
|
||
<ItemTemplate>
|
||
<asp:Label ID="LtlUnidadMedida" runat="server" Text='<%# Eval("UM") %>'></asp:Label>
|
||
<asp:LinkButton ID="LBAplicarEquivalencia" OnClick="LBAplicarEquivalencia_Click" data-toggle="tooltip" title="Aplicar conversión de equivalencia" Text="" runat="server" Visible="false"> <i class="fa fa-magic"></i></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%-- 3 --%>
|
||
<asp:TemplateField ItemStyle-VerticalAlign="Top" ItemStyle-Width="299">
|
||
<ItemTemplate>
|
||
<div style="float: left; width: 100%;">
|
||
<span style="width: 100%; border-bottom: 1px solid gray;">
|
||
<asp:CheckBox Text="" runat="server" ID="CheckClasificacion" Visible="false" />
|
||
<asp:Label ID="LblClasificacion" runat="server" Text='<%# Eval("Clasificacion") %>'></asp:Label>
|
||
</span>
|
||
<br />
|
||
<asp:HyperLink Style="display: initial;" ID="HplPS" Width="200px" NavigateUrl='<%# If(CInt(Eval("CvePS").ToString) > 0, String.Format("/Ventas/ProductosServicios.aspx?CvePS={0}&Ret=Comp&Popup=1&TB_iframe=true&height=500&width=950&Ret=Comp", Eval("CvePS")), "")%>' CssClass='<%# If(CInt(Eval("CvePS").ToString) > 0, "Texto thickbox", "") %>' runat="server" Text='<%# Eval("PS") %>'></asp:HyperLink>
|
||
</div>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%-- 4 --%>
|
||
<asp:BoundField DataField="Obs" ItemStyle-Width="350px" />
|
||
<%-- 5 --%>
|
||
<asp:TemplateField ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<span style="width: 145px; border-bottom: 1px solid gray;">
|
||
<asp:Label ID="LblProyecto" runat="server" Text='<%# Eval("Proyecto", "{0}<br />") %>' Visible='<%# if(UsuarioActual.Empresa.Tipo_CentroCosto <> 1 And UsuarioActual.Empresa.Tipo_CentroCosto <> 2, True, False) %>'></asp:Label>
|
||
</span>
|
||
<asp:Label ID="LblSubProyecto" runat="server" Text='<%# If(Integer.TryParse(Eval("CveCultivoCuadroDetalle").ToString, Nothing), Eval("SubProyecto").ToString() & " <br /> " & Eval("TemporadaCuadro").ToString(), Eval("SubProyecto")) %>'></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%-- 6 --%>
|
||
<asp:BoundField DataField="TipoGasto" ItemStyle-Width="177px" />
|
||
<%-- 7 --%>
|
||
<asp:BoundField DataField="PU" DataFormatString="{0:#,##0.00####}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="100px" />
|
||
<%-- 8 --%>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="53px">
|
||
<ItemTemplate>
|
||
<asp:Label ID="LtlIva" runat="server" Text='<%# If(Eval("IVA").ToString.Length > 0, If((CDbl(Eval("IVA").ToString)) > 0, (CDbl(Eval("IVA").ToString)).ToString("###,####,###.00"), ""), "") %>'></asp:Label><br />
|
||
<asp:Label ID="LblIVAPorcentaje" runat="server" Text='<%# String.Format("{0} {1}", (CDbl(Eval("IVAPorcentaje").ToString) * 100).ToString("#####"), If(CDbl(Eval("IVAPorcentaje").ToString) * 100 > 0, "%", "")) %>'></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%-- 9 --%>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="53px" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:Label ID="LtlIEPSPS" runat="server" Text='<%# If(Eval("IEPSPS").ToString.Length > 0, If((CDbl(Eval("IEPSPS").ToString)) > 0, (CDbl(Eval("IEPSPS").ToString)).ToString("###,####,###.00"), ""), "") %>'></asp:Label><br />
|
||
<asp:Label ID="LtlIEPSPSPorcentaje" runat="server" Text='<%# If(Eval("IEPSPSPorcentaje").ToString.Length > 0, (CDbl(Eval("IEPSPSPorcentaje").ToString) * 100).ToString("#####") & If(CDbl(Eval("IEPSPSPorcentaje").ToString) * 100 > 0, "%", ""), "") %>'></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
|
||
|
||
<%-- 10 --%>
|
||
<asp:BoundField DataField="Total" DataFormatString="{0:#,##0.00####}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="110px" />
|
||
|
||
<%-- 11 --%>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ControlStyle-Width="100px" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="ChkEsNoDeduciblePS" runat="server" Checked='<%# If(Eval("NoDeducible").ToString = "", 0, Eval("NoDeducible")) %>' AutoPostBack="true" OnCheckedChanged="ChkEsNoDeduciblePS_CheckedChanged" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<%-- 12 --%>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="45px">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="Edit_Click" Text="<i class='fa fa-pencil'></i>" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%-- 13 --%>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="45px">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="confirmar" data-btn-ok-label="si" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%-- 14 --%>
|
||
<asp:TemplateField HeaderText="Clasificacion" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:DropDownList runat="server" ID="DdlAC5" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="CodigoClasificacion" DataValueField="CveClasificacion" Width="150px" OnSelectedIndexChanged="CompruebaSaldoAC" Visible="true"></asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%-- 15 --%>
|
||
<asp:TemplateField HeaderText="Programa Operativo" Visible="False">
|
||
<ItemTemplate>
|
||
<asp:DropDownList runat="server" ID="DdlAC1" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="ProgramaOperativo" DataValueField="CveProgramaOperativo" Width="150px" OnSelectedIndexChanged="CompruebaSaldoAC"></asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%-- 16 --%>
|
||
<asp:TemplateField HeaderText="Unidad Administrativa" Visible="False">
|
||
<ItemTemplate>
|
||
<asp:DropDownList runat="server" ID="DdlAC2" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="UnidadAdministrativa" DataValueField="CveUnidadAdministrativa" Width="150px" OnSelectedIndexChanged="CompruebaSaldoAC"></asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%-- 17 --%>
|
||
<asp:TemplateField HeaderText="Fuente Financiamiento" Visible="False">
|
||
<ItemTemplate>
|
||
<asp:DropDownList runat="server" ID="DdlAC3" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="FuenteFinanciamiento" DataValueField="CveFuenteFinanciamiento" Width="150px" OnSelectedIndexChanged="CompruebaSaldoAC"></asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%-- 18 --%>
|
||
<asp:TemplateField HeaderText="Tipo Gasto" Visible="False">
|
||
<ItemTemplate>
|
||
<asp:DropDownList runat="server" ID="DdlAC4" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="TipoGasto" DataValueField="CveTipoGasto" Width="100px" OnSelectedIndexChanged="CompruebaSaldoAC"></asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
<asp:HiddenField ID="HdnModalidad" runat="server" Value="A" ClientIDMode="Static" />
|
||
<asp:HiddenField ID="HdnID" runat="server" Value="-1" ClientIDMode="Static" />
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<asp:UpdatePanel ID="UPPAnticiposSel" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvAnticiposSel" runat="server" CssClass="table table-striped table-hover Widthall" AutoGenerateColumns="False" DataKeyNames="TipoDocto,CveCompraNC" ClientIDMode="Static" EmptyDataText="" Caption="Anticipos/NC Vinculados" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Factura</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:HyperLink ID="HplFactura" runat="server" CssClass="Texto" Text='<%# Eval("SerieFolio") %>' NavigateUrl='<%# Eval("CveCompraNC", "/Compras/Compras.aspx?CveCompra={0}")%>'></asp:HyperLink>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Fecha</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Total</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="80px"></ItemStyle>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Anticipo/NC</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlAnticipos" runat="server" Text='<%# Eval("Importe", "{0:N2}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Mon</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlMoneda" runat="server" Text='<%# Eval("Moneda") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField Visible="False">
|
||
<HeaderTemplate><span title=""></span></HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:ImageButton ID="ImgDelete" ImageUrl="/Imagenes/Delete.png" CommandName="Eliminar" CommandArgument='<%# Eval("CveCompraNC") %>' runat="server"></asp:ImageButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField Visible="False">
|
||
<HeaderTemplate><span title="Auxiliar">Aux</span></HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlAux" runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<div class="col-md-6 ">
|
||
<div id="dvTotales" runat="server" class="well" style="width: 100%; max-width: 400px; float: right;">
|
||
<table border="0" rules="none" class="TextTab" width="100%">
|
||
<tr>
|
||
<td></td>
|
||
<td></td>
|
||
<td id="tdT0" runat="server" visible="false"><strong>Original</strong></td>
|
||
<td></td>
|
||
</tr>
|
||
<tr align="right">
|
||
<td>
|
||
<table width="100%" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td>
|
||
<asp:Panel ID="PnlAjusteProductos" runat="server" Visible="False">
|
||
<table>
|
||
<tr>
|
||
<td>
|
||
<asp:TextBox ID="TxtAjustePorcentaje" runat="server" Width="50px"></asp:TextBox>
|
||
</td>
|
||
<td>
|
||
<asp:ImageButton ID="ImgAjustePorcentaje" ToolTip="Actualizar Costos" ImageUrl="/Imagenes/accept.png" runat="server" /></td>
|
||
</tr>
|
||
</table>
|
||
</asp:Panel>
|
||
</td>
|
||
<td style="text-align: right;"><b>SubTotal:</b></td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
<td width="82px">
|
||
<asp:TextBox ID="TxtSubTotal" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="98px"></asp:TextBox>
|
||
</td>
|
||
<td width="82px" runat="server" id="tdT1" visible="false">
|
||
<asp:Label Text="" ID="LbSubTotalOriginal" runat="server" />
|
||
</td>
|
||
<td> </td>
|
||
</tr>
|
||
<tr align="right" id="TrDescuento" runat="server" visible="False">
|
||
<td><b>Descuentos:</b></td>
|
||
<td>
|
||
<asp:TextBox ID="TxtDescuento" runat="server" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
||
<td runat="server" id="tdT2" visible="false">
|
||
<asp:Label Text="" ID="LbDescuentoOriginal" runat="server" />
|
||
</td>
|
||
<td align="right"> </td>
|
||
</tr>
|
||
<tr align="right">
|
||
<td><b>Amort. Ant.:</b></td>
|
||
<td>
|
||
<asp:Label ID="LblAmortizacion" runat="server" Style="text-align: right;" Text="0.00" Width="98px"></asp:Label></td>
|
||
<td runat="server" id="tdT3" visible="false">
|
||
<asp:Label Text="" ID="LbAmortizacionOriginal" runat="server" />
|
||
</td>
|
||
<td align="right"> 
|
||
<i class="fa fa-money font-green" title="Aplicar Amortización" data-toggle="tooltip" data-placement="top" runat="server" id="ImgAnticiposPendientes" visible="False" style="cursor: pointer;"></i>
|
||
</td>
|
||
<td align="right"> 
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<asp:HyperLink ID="HLAplicaNCFact" NavigateUrl="#" Visible="false" data-toggle="modal" data-target="#FacturaNC" runat="server"><i title="Aplicar Notas de Credito" data-toggle="tooltip" class='fa fa-money font-green'></i></asp:HyperLink>
|
||
</td>
|
||
</tr>
|
||
<tr align="right">
|
||
<td><b>SubTotal 2:</b></td>
|
||
<td>
|
||
<asp:HiddenField ID="HdnSubTotal2" runat="server" />
|
||
<asp:TextBox ID="TxtSubTotal2" runat="server" BorderStyle="None" ClientIDMode="Static" Style="text-align: right;" Text="0.00" Width="98px"></asp:TextBox>
|
||
</td>
|
||
<td runat="server" id="tdT4" visible="false">
|
||
<asp:Label Text="" ID="LbSubTotal2Original" runat="server" />
|
||
</td>
|
||
<td> </td>
|
||
</tr>
|
||
<tr align="right">
|
||
<td style="border: 1px none white"><b>IVA:</b></td>
|
||
<td>
|
||
<asp:HiddenField ID="HdnIVA" runat="server" />
|
||
<asp:TextBox ID="TxtIVA" onblur="RecargaMaximumValue();" runat="server" BorderStyle="None" ClientIDMode="Static" Style="text-align: right;" Text="0.00" Width="98px"></asp:TextBox>
|
||
<asp:Button ID="btnRecargaMaximumValueIVA" Style="display: none;" ClientIDMode="Static" runat="server" Text="Asignar" OnClick="RecargaMaximum_Click" class="btn btn-primary" />
|
||
</td>
|
||
<td runat="server" id="tdT5" visible="false">
|
||
<asp:Label Text="" ID="LbIVAOriginal" runat="server" />
|
||
</td>
|
||
<td runat="server" id="tdIVA6" visible="false" class="label label-sm label-success" style="color: white!important">
|
||
|
||
<asp:LinkButton runat="server" ID="LnkActivaIva6" Text="" ToolTip="Ret IVA Servicios" OnClick="LnkActivaIva6_Click" Style="color: white!important">Deglose 6%</asp:LinkButton>
|
||
<%--<asp:LinkButton runat="server" ID="LnkActivaIva6" Text="" ToolTip="Ret IVA Servicios" OnClick="LnkActivaIva6_Click"><i class="fa fa-usd" aria-hidden="true"></i></asp:LinkButton>--%>
|
||
</td>
|
||
|
||
<%--<td align="left" runat="server" id="TdIVA" visible="false">
|
||
<asp:DropDownList ID="DdlIVA" AutoPostBack="true" OnSelectedIndexChanged="DdlIVA_SelectedIndexChanged" CssClass="select2me" Style="width: 100%; display: inline-block;" runat="server" Visible="false">
|
||
<asp:ListItem Selected="True" Value="1.08">8%</asp:ListItem>
|
||
<asp:ListItem Value="1.16">16%</asp:ListItem>
|
||
<asp:ListItem Value="1">0%</asp:ListItem>
|
||
</asp:DropDownList>
|
||
</td>--%>
|
||
</tr>
|
||
<tr align="right" id="TrRetIVA" runat="server" visible="False">
|
||
<td><b>Ret. IVA:</b></td>
|
||
<td>
|
||
<asp:TextBox ID="TxtRetIVA" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="98px"></asp:TextBox></td>
|
||
<td runat="server" id="tdT6" visible="false">
|
||
<asp:Label Text="" ID="LbRetIVAOriginal" runat="server" />
|
||
</td>
|
||
<td>
|
||
<asp:Label ID="LblRetIVA" runat="server" BorderStyle="None" Text="0.00"></asp:Label>
|
||
</td>
|
||
<td runat="server" id="TdRetIVAConcepto" visible="false">
|
||
<asp:DropDownList ID="DdlRetIVAConcepto" AppendDataBoundItems="true" CssClass="select2me" Style="width: 100%;" runat="server">
|
||
</asp:DropDownList>
|
||
</td>
|
||
</tr>
|
||
<tr align="right" id="TrRetISR" runat="server" visible="False">
|
||
<td><b>Ret ISR:</b></td>
|
||
<td>
|
||
<asp:TextBox ID="TxtRetISR" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="98px"></asp:TextBox>
|
||
</td>
|
||
<td runat="server" id="tdT7" visible="false">
|
||
<asp:Label Text="" ID="LbRetISROriginal" runat="server" />
|
||
</td>
|
||
<td>
|
||
<asp:Label ID="LblRetISR" runat="server" BorderStyle="None" Text="0.00"></asp:Label>%
|
||
</td>
|
||
<td runat="server" id="TdRetISRConcepto" visible="false">
|
||
<asp:DropDownList ID="DdlRetISRConcepto" AppendDataBoundItems="true" CssClass="select2me" Style="width: 100%;" runat="server"></asp:DropDownList>
|
||
</td>
|
||
</tr>
|
||
<tr align="right" runat="server" id="TrIEPS" visible="False">
|
||
<td><b>IEPS:</b></td>
|
||
<td>
|
||
<asp:TextBox ID="TxtIEPS" Enabled="false" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="98px"></asp:TextBox></td>
|
||
<td runat="server" id="tdT8" visible="false">
|
||
<asp:Label Text="" ID="LbIEPSOriginal" runat="server" />
|
||
</td>
|
||
<td></td>
|
||
</tr>
|
||
<tr align="right" runat="server" id="TrOtrosImpuestos" visible="False">
|
||
<td><b>O.Imp:</b></td>
|
||
<td>
|
||
<asp:TextBox ID="TxtOtrosImpuestos" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="98px"></asp:TextBox></td>
|
||
<td runat="server" id="tdT9" visible="false">
|
||
<asp:Label Text="" ID="LbOtrosImpuestosOriginal" runat="server" />
|
||
</td>
|
||
<td></td>
|
||
</tr>
|
||
<tr align="right" runat="server" id="TrRedondeo" visible="False">
|
||
<td><b>Redondeo:</b></td>
|
||
<td>
|
||
<asp:TextBox ID="TxtRedondeo" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="98px"></asp:TextBox></td>
|
||
<td runat="server" id="tdT10" visible="false">
|
||
<asp:Label Text="" ID="LbRedondeoOriginal" runat="server" />
|
||
</td>
|
||
<td></td>
|
||
</tr>
|
||
<tr align="right">
|
||
<td><b>Total:</b></td>
|
||
<td>
|
||
<asp:TextBox ID="TxtTotal" runat="server" Enabled="False" ClientIDMode="Static" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox>
|
||
<asp:HiddenField runat="server" ID="HfTotalCompra" ClientIDMode="Static" />
|
||
<asp:HiddenField runat="server" ID="HFDiferenciaCompra" ClientIDMode="Static" />
|
||
</td>
|
||
<td runat="server" id="tdT11" visible="false">
|
||
<asp:Label Text="" ID="LbTotalOriginal" runat="server" />
|
||
</td>
|
||
<td></td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="4" style="text-align: right;">
|
||
<asp:ImageButton ID="ImgAjustaSobreTotal" ToolTip="Ajuste Manual sobre Total" ImageUrl="/Imagenes/accept.png" runat="server" Visible="False" />
|
||
<asp:DropDownList ID="DdlMoneda" AutoPostBack="true" runat="server" OnSelectedIndexChanged="DdlMoneda_SelectedIndexChanged" DataTextField="Moneda" DataValueField="CveMoneda" Width="65px"></asp:DropDownList>
|
||
<asp:Label ID="LblMoneda" runat="server" Text="" Visible="false"></asp:Label>
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:Label ID="LblTC" runat="server" Text=""></asp:Label>
|
||
<asp:Label ID="LblTCO" runat="server" Text=""></asp:Label>
|
||
<div runat="server" id="DivTC" visible="false">
|
||
TC:
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<asp:TextBox ID="TxtTC" Text="" Width="50px" runat="server" />
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-6 ">
|
||
<asp:Button runat="server" ID="btnProrateo" Visible="false" Text="Prorratear" CommandArgument="Compras" CssClass="btn btn-success" />
|
||
<asp:Button runat="server" ID="btnProrateo2" Visible="false" Text="Prorratear Nomina" CommandArgument="Nomina" CssClass="btn btn-success" />
|
||
</div>
|
||
</div>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabAlmacen" runat="server" HeaderText="Almacén">
|
||
<ContentTemplate>
|
||
|
||
<asp:Panel ID="Pnlalmaceninventarios" runat="server">
|
||
|
||
<asp:UpdatePanel runat="server" ID="UpConsignaciones" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="portlet solid grey-cascade portlet-filter" style="display:none" id="DivConsignaciones" runat="server">
|
||
<div class="portlet-title portlet-filterT" style="">
|
||
<div class="titlefiltros caption ">
|
||
<ul class="list-inline" style="font-size: 14px;">
|
||
<li>Aplica consignación:
|
||
<asp:CheckBox Text="" ID="ChkConsignacion" OnCheckedChanged="ChkConsignacion_CheckedChanged" AutoPostBack="true" Enabled="false" runat="server" />
|
||
</li>
|
||
<br />
|
||
<li id="LiRecepcion" runat="server" visible="false">
|
||
<asp:DropDownList CssClass="form-control input-sm" ID="DdlRecepcion" runat="server" Width="150px">
|
||
<asp:ListItem Value="1" Text="Recepción a Sitio" Selected="True"></asp:ListItem>
|
||
<asp:ListItem Value="2" Text="Recepción a Almacén"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</li>
|
||
<li runat="server" id="LiConsignacion" visible="false">Consignación:
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<asp:DropDownList runat="server" ID="DdlConsignacion" DataValueField="CveConsignacion" DataTextField="SerieFolioFecha" Width="180px"></asp:DropDownList>
|
||
</li>
|
||
<%--<li>Folio Consignación:
|
||
<asp:TextBox ID="TxtConsignacion" Width="70px" runat="server" ValidationGroup="GrpGetConsignacion" />
|
||
<asp:RequiredFieldValidator ID="RFVConsignacion" runat="server" ControlToValidate="TxtFecha" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio Consignación''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGetConsignacion"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEConsignacion" runat="server" HighlightCssClass="vco" TargetControlID="RFVConsignacion" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
<asp:HiddenField runat="server" ID="HdnCveConsignacion" />
|
||
</li>--%>
|
||
</ul>
|
||
</div>
|
||
<div class="tools">
|
||
<asp:Button ID="BtnVinculaConsignacion" OnClick="BtnVinculaConsignacion_Click1" Visible="false" CssClass="btn btn-primary" runat="server" Text="Vincular Consignación" />
|
||
<%--<asp:Button ID="BtnVinculaConsignacion" runat="server" Text="Asignar" OnClick="BtnVinculaConsignacion_Click" class="btn btn-primary" ValidationGroup="GrpGetConsignacion" />--%>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<asp:UpdatePanel runat="server" ID="UpAlmacenEvidencia" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<table class="Widthall" id="TableAlmacenEvidencia" visible="false" runat="server">
|
||
<tr>
|
||
<td align="right">
|
||
<asp:HyperLink ID="HLCargarEvidencia" ClientIDMode="Static" onclick="javascript:AbrirVentana('/UploadFile.aspx?Pagina=ComprasEvidenciaAlmacen', 700, 600, 'N', 'PopUpBuscar');" runat="server" CssClass="btn btn-primary" Width="150px" Text="Cargar Evidencia"></asp:HyperLink>
|
||
<img id="ImgArchivo" alt="Archivo" src="/Imagenes/attachment_icon.gif" style="width: 16px; height: 16px; border: 0px none white" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="right">
|
||
<asp:Label Text="" ID="LbArchivoAlmacenEvidencia" ClientIDMode="Static" runat="server" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<asp:UpdatePanel ID="UpINV" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvInv" runat="server" DataKeyNames="Total,PU,Cantidad,CvePS" AutoGenerateColumns="false" GridLines="None" EmptyDataText="Aun no hay registros." ShowHeaderWhenEmpty="True" CssClass="table table-striped table-hover Widthall" Visible="false">
|
||
<Columns>
|
||
<asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center">
|
||
<HeaderTemplate>
|
||
Aplica<br />
|
||
Inventario<br />
|
||
<asp:CheckBox ID="cbAll" runat="server" Checked="false" AutoPostBack="true" OnCheckedChanged="cbAll_CheckedChanged" />
|
||
</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="cbInv" runat="server" Checked="false" Enabled="false" AutoPostBack="true" OnCheckedChanged="CambiaTotalDevengar" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Cantidad" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:TextBox ID="TbCantidad" runat="server" Width="50px" Mask="999,999.99" Text='<%# Eval("CantidadF", "{0:N2}")%>'></asp:TextBox>
|
||
<br />
|
||
<asp:TextBox ID="TxtDividir" Visible="false" runat="server" Width="30px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtDividir" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:Button Text="D" ID="BtnDividirCompra" runat="server" OnClick="BtnDividirCompra_Click" Style="display: none;" />
|
||
<asp:Button Text="SerieLote" ID="BtnSerieLote" OnClick="BtnSerieLote_Click" CssClass="btn btn-primary" runat="server" />
|
||
</ItemTemplate>
|
||
<HeaderStyle CssClass="Titulos" />
|
||
</asp:TemplateField>
|
||
<asp:BoundField HeaderText="Unidad" DataField="UM" ItemStyle-Width="5%" />
|
||
<asp:BoundField ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Left" HeaderText="Producto o Servicio" DataField="PS" />
|
||
<asp:BoundField ItemStyle-Width="7.5%" HeaderText="P.U." DataField="PU" DataFormatString="{0:#,##0.00####}" ItemStyle-HorizontalAlign="Right" />
|
||
<asp:TemplateField ItemStyle-Width="10%">
|
||
<ItemTemplate>
|
||
<asp:DropDownList ID="ddlEAlmacen" Enabled="false" runat="server" Width="100%" DataTextField="Almacen" DataValueField="CveAlmacen" AutoPostBack="true" AppendDataBoundItems="true" CssClass="form-control input-sm select2me" OnSelectedIndexChanged="CambiaTotalDevengar"></asp:DropDownList>
|
||
</ItemTemplate>
|
||
<HeaderTemplate>
|
||
Almacén<br />
|
||
<asp:DropDownList ID="ddlAlmacen" Enabled="True" runat="server" DataTextField="Almacen" OnSelectedIndexChanged="ddlAlmacen_SelectedIndexChanged" AppendDataBoundItems="true" AutoPostBack="true" CssClass="form-control input-sm select2me" DataValueField="CveAlmacen" Width="100%"></asp:DropDownList>
|
||
</HeaderTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="10%" HeaderText="Recibir" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:DropDownList ID="DdlRecibirInv" Enabled="false" runat="server" Width="100px" AutoPostBack="true" OnSelectedIndexChanged="CambiaTotalDevengar" CssClass="form-control input-sm select2me">
|
||
<asp:ListItem Text="Recibir Aqui" Value="0" Selected="True"></asp:ListItem>
|
||
<asp:ListItem Text="Recibir en Almacen" Value="1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%--<asp:TemplateField ItemStyle-Width="10%">
|
||
<ItemTemplate>
|
||
<asp:ImageButton ID="btnImgDestino" runat="server" AlternateText="+" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>--%>
|
||
<asp:TemplateField ItemStyle-Width="10%" Visible="false">
|
||
<HeaderTemplate>
|
||
Almacén Consignación<br />
|
||
<asp:DropDownList ID="ddlAlmacenConsignacionGeneral" Enabled="false" runat="server" DataTextField="Almacen" DataValueField="CveAlmacen" OnSelectedIndexChanged="ddlAlmacenConsignacionGeneral_SelectedIndexChanged" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" Width="100px"></asp:DropDownList>
|
||
</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:DropDownList ID="ddlAlmacenConsignacion" Enabled="False" runat="server" Width="100px" DataTextField="Almacen" DataValueField="CveAlmacen" AutoPostBack="true" CssClass="form-control input-sm select2me" OnSelectedIndexChanged="ddlAlmacenConsignacion_SelectedIndexChanged"></asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="15%" HeaderText="Consignación" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:DropDownList runat="server" ID="DdlVinculaConsignacion" Enabled="false" OnSelectedIndexChanged="DdlVinculaConsignacion_SelectedIndexChanged" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="Detalle" DataValueField="No" Width="280px"></asp:DropDownList>
|
||
<asp:HiddenField runat="server" ID="HdnPS" Value="-1" />
|
||
<asp:HiddenField runat="server" ID="HdnCvePS" Value="-1" />
|
||
<asp:HiddenField runat="server" ID="HdnClasificacion" Value="-1" />
|
||
<asp:HiddenField runat="server" ID="HdnCveClasificacion" Value="-1" />
|
||
<asp:HiddenField runat="server" ID="HdnNoConsignacion" Value="-1" />
|
||
<asp:HiddenField runat="server" ID="HdnCveConsignacion" Value="-1" />
|
||
<asp:HiddenField runat="server" ID="HdnCveAlmacen" Value="-1" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%--<asp:TemplateField ItemStyle-Width="12.5%" HeaderText="Nuevo Producto o servicio" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:DropDownList runat="server" ID="Ddlnewps" DataTextField="PSCodigo" DataValueField="CvePS" CssClass="form-control input-sm select2me" Width="100%"></asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>--%>
|
||
</Columns>
|
||
</asp:GridView>
|
||
|
||
<div class="Widthall" style="overflow-x: auto;">
|
||
|
||
<asp:GridView ID="GvInvMov" runat="server" AutoGenerateColumns="false" DataKeyNames="Origen" EmptyDataText="Aun no hay registros." ShowHeaderWhenEmpty="True" Width="100%" HeaderStyle-CssClass="Titulos" CssClass="table table-striped table-hover" GridLines="None" Visible="false">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="Cantidad" ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:Label ID="lbCantidad" runat="server" Width="50px" ClientIDMode="Static" Text='<%# Eval("Cantidad", "{0:#,###.####}")%>'>
|
||
</asp:Label>
|
||
</ItemTemplate>
|
||
<ItemStyle></ItemStyle>
|
||
<HeaderStyle CssClass="Titulos" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Unidad">
|
||
<ItemTemplate>
|
||
<asp:Label ID="lbUnidad" runat="server" Width="50px" ClientIDMode="Static" Text='<%# Eval("UM")%>'>
|
||
</asp:Label>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="70px"></ItemStyle>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Producto</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlPS" runat="server" Text='<%# Eval("CodigoPS") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Serie" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlSerie" Text='<%# Eval("Serie") %>' runat="server" />
|
||
<asp:TextBox ID="TxtSerie" AutoPostBack="false" Text='<%# Eval("Serie") %>' Visible="false" runat="server" />
|
||
<asp:HiddenField runat="server" Value="" ID="HdnSerie" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:Button ID="AlmacenCambiaPS" Visible="false" CssClass="btn btn-primary" runat="server" Text="Aplicar cambios" />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</asp:Panel>
|
||
|
||
<asp:UpdatePanel ID="UPDevolucion" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:Panel ID="paneldevolucion" runat="server" Visible="false" CssClass="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Factura de la nota de Credito</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="tools">
|
||
<table width="325px">
|
||
<tr>
|
||
<td width="50px">Compra:</td>
|
||
<td width="250px">
|
||
<asp:DropDownList ID="DDLDevolucion" Style="width: 100%" AutoPostBack="true" runat="server" CssClass="form-control input-sm select2me " DataTextField="Compra" DataValueField="CveCompra"></asp:DropDownList>
|
||
</td>
|
||
<td width="25px">
|
||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<div id="DivAlmacenDev" runat="server" visible="false" class="row">
|
||
<div class="col-md-12">
|
||
<table width="325px">
|
||
<tr>
|
||
<td width="50px">Almacen:</td>
|
||
<td width="250px">
|
||
<asp:DropDownList ID="DdlAlmacenDevolucion" Style="width: 100%" AutoPostBack="true" runat="server" CssClass="form-control input-sm select2me " DataTextField="Almacen" DataValueField="CveAlmacen"></asp:DropDownList>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
|
||
<br />
|
||
<asp:GridView ID="GVDevolucion" runat="server" DataKeyNames="CveMovimientoDetalle,CveAlmacen,Total,PU,Cantidad,CvePS,CveUM,UM,CveClasificacion,Clasificacion,PS,CveTipoPS" ShowFooter="true" GridLines="None" AutoGenerateColumns="false" EmptyDataText="Aun no hay registros." ShowHeaderWhenEmpty="True" Width="100%" CssClass="table table-striped table-hover Widthall">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="Cantidad" ItemStyle-Width="60px">
|
||
<ItemTemplate>
|
||
<asp:Label runat="server" Text='<%# Eval("Cantidad", "{0:N2}")%>'></asp:Label>
|
||
</ItemTemplate>
|
||
<HeaderStyle CssClass="Titulos" />
|
||
</asp:TemplateField>
|
||
<asp:BoundField HeaderText="Unidad" DataField="UM" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Center" />
|
||
<asp:BoundField ItemStyle-Width="400px" HeaderText="Producto o Servicio" DataField="PS" ItemStyle-HorizontalAlign="Center" />
|
||
<asp:TemplateField ItemStyle-Width="80px" HeaderText="P.U." ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Label Text='<%# Eval("PU", "{0:#,##0.00####}")%>' runat="server"></asp:Label>
|
||
</ItemTemplate>
|
||
<FooterTemplate>
|
||
<label>Total</label>
|
||
</FooterTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="80px" HeaderText="Devolucion">
|
||
<ItemTemplate>
|
||
<asp:TextBox ID="TxtCantidad" Width="50" Mask="999,999.99" min="0" data-max='<%# Eval("Cantidad")%>' data-pu='<%# Eval("PU")%>' type="number" step="any" data-Devolucion="devrow" runat="server"></asp:TextBox>
|
||
</ItemTemplate>
|
||
<FooterTemplate>
|
||
<asp:TextBox ID="TxtTotal" Width="50" runat="server" Mask="999,999.99" data-Devolucion="devtotal" disabled></asp:TextBox>
|
||
</FooterTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="80px" HeaderText="">
|
||
<ItemTemplate>
|
||
<asp:TextBox ID="TxtTotalDevolucion" CssClass="devTotal" runat="server" Text="" disabled></asp:TextBox>
|
||
</ItemTemplate>
|
||
<FooterTemplate>
|
||
<asp:TextBox CssClass="devTotaltotal" runat="server"></asp:TextBox>
|
||
</FooterTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
<br />
|
||
|
||
<div class="row">
|
||
<div class="col-md-3 pull-right">
|
||
<asp:Button ID="BtnVinculaDevolucion" Text="Concluir vinculación de devolución" CssClass="btn btn-primary" OnClick="BtnVinculaDevolucion_Click" runat="server" />
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</asp:Panel>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabOC" runat="server" Visible="false" HeaderText="Vinculación OC.">
|
||
<ContentTemplate>
|
||
|
||
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpOC">
|
||
<ContentTemplate>
|
||
|
||
<div id="DivPorletVinculacion" style="margin-bottom: 10px;" class="portlet light xspadding">
|
||
<div id="DivTitulo" class="portlet-title">
|
||
|
||
<div id="DivTipoCambioOC" runat="server" visible="false">
|
||
|
||
<div class="col-md-5">
|
||
<div class="portlet solid portlet-filter">
|
||
<div class="portlet-title portlet-filterT">
|
||
<div class="titlefiltros caption ">
|
||
<ul class="list-inline" style="font-size: 14px;">
|
||
<li>Tipo Cambio:
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<asp:TextBox ID="TxtTipoCambioOC" runat="server" align="right" MaxLength="12" Text="" Width="100px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtTipoCambioOC" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:RequiredFieldValidator ID="RFVTipoCambioOC" runat="server" ControlToValidate="TxtTipoCambioOC" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Cambio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTipoCambioOC"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCETipoCambioOC" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoCambioOC" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div class="tools">
|
||
<asp:Button Text="Aplicar Tipo Cambio" ID="BtnTipoCambioOC" CssClass="btn btn-primary" runat="server" OnClick="BtnTipoCambioOC_Click" ValidationGroup="GrpTipoCambioOC" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-6" style="vertical-align: middle;" align="center">
|
||
<div style="z-index: 5; position: relative;">
|
||
<div id="DivTipoCambioAdvertencia" class="alert alert-danger alert-dismissable" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||
<strong style="font-size: 20px; margin-right: 25px;">Advertencia: </strong>
|
||
<asp:Literal Text="Tipos de monedas diferentes" runat="server" ID="LtTipoCambioAdvertencia"></asp:Literal>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div runat="server" id="DivOCEntregaDirecta" visible="false">
|
||
<div class="col-md-10" style="vertical-align: middle;" align="center">
|
||
<div style="z-index: 5; position: relative;">
|
||
<div id="DivAdvertenciaOC" class="alert alert-danger alert-dismissable" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||
<strong style="font-size: 20px; margin-right: 25px;">Advertencia: </strong>
|
||
<asp:Literal Text="Alguna orden de compra es de entrega directa, por lo cual solo podra vincular lo ya facturado." runat="server" ID="Literal2"></asp:Literal>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div runat="server" id="DivOCSolicitudAnticipo" visible="false">
|
||
<div class="col-md-10 col-md-offset-1" style="vertical-align: middle;" align="center">
|
||
<div style="z-index: 5; position: relative;">
|
||
<div id="DivAdvertenciaOCSolicitudAnticipo" class="alert alert-warning alert-dismissable" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||
<strong style="font-size: 20px; margin-right: 25px;">Nota: </strong>
|
||
<asp:Literal Text="" runat="server" ID="LtSolicitudAnticipoFoliosOC"></asp:Literal>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div runat="server" id="DivOCPromocion" visible="false">
|
||
<div class="col-md-6" style="vertical-align: middle;" align="center">
|
||
<div style="z-index: 5; position: relative;">
|
||
<div id="DivAdvertenciaOCPromocion" class="alert alert-warning alert-dismissable" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||
<div class="row" st>
|
||
<div class="col-md-3" style="text-align: right">
|
||
<strong style="font-size: 14px;">Promoción: </strong>
|
||
</div>
|
||
<div class="col-md-9" style="text-align: left; margin-top: -8px;">
|
||
<asp:Literal Text="Alguna Orden de Compra a vincular aplica promoción." runat="server" ID="LtOCPromocion"></asp:Literal>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6" style="vertical-align: middle;">
|
||
<asp:CheckBox Text="Se recibió la promoción" ID="ChkOCPromocion" CssClass="md-checksd" runat="server" />
|
||
</div>
|
||
</div>
|
||
|
||
<div runat="server" id="DivOCAlmacen" visible="false">
|
||
<div class="col-md-10 col-md-offset-1" style="vertical-align: middle;" align="center">
|
||
<div style="z-index: 5; position: relative;">
|
||
<div id="DivAdvertenciaOCAlmacen" class="alert alert-warning alert-dismissable" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||
<div class="row" st>
|
||
<div class="col-md-4" style="text-align: right">
|
||
<strong style="font-size: 14px;">Ordenes de Compra con Almacén: </strong>
|
||
</div>
|
||
<div class="col-md-8" style="text-align: left; margin-top: -8px;">
|
||
<asp:Literal Text="" runat="server" ID="LtOCAlmacen"></asp:Literal>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div runat="server" id="DivOCVinculaInv" visible="false">
|
||
<div class="col-md-6">
|
||
<div class="row">
|
||
<label class="col-md-6" style="max-width: 190px;" for="<%= DdlOCVinculaInv.ClientID.ToString()%>">Tipo de recepción almacén:</label>
|
||
<div class="col-md-6">
|
||
<asp:DropDownList ID="DdlOCVinculaInv" OnSelectedIndexChanged="DdlOCVinculaInv_SelectedIndexChanged" AutoPostBack="true" Width="300px" runat="server">
|
||
<asp:ListItem Text="Seleccione" Value="-1" Selected="True" />
|
||
<asp:ListItem Text="Mercancía recibida por adelantado" Value="176" />
|
||
<asp:ListItem Text="Mercancía recibida por adelantado | Sin restricción" Value="0176" />
|
||
<asp:ListItem Text="Mercancía pendiente por recibir" Value="205" />
|
||
<asp:ListItem Text="Mercancía pendiente por recibir | Sin restricción" Value="0205" />
|
||
</asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVOCVinculaInv" runat="server" ControlToValidate="DdlOCVinculaInv" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de recepción almacén''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpVincularOC"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEOCVinculaInv" runat="server" HighlightCssClass="vco" TargetControlID="RFVOCVinculaInv" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="tools">
|
||
<a href="#" class="fullscreen" title="Pantalla Completa" onclick="FullScreenViculacion()"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body xspadding">
|
||
|
||
<div class="row">
|
||
|
||
<div class="col-md-6">
|
||
<div style="margin-bottom: 10px;" class="portlet light xspadding bordered" id="portOrdenCompra">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="fa fa-list font-red" aria-hidden="true"></i>
|
||
<span class="caption-subject bold uppercase">
|
||
<asp:Literal Text="Orden(es) de Compra Vinculada(s)" runat="server" ID="Literal1" />
|
||
          
|
||
</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript:;" class="collapse"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<asp:UpdatePanel runat="server" ID="UpGvOC1" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div id="DivOCV" style="height: 250px; overflow-y: auto;">
|
||
<asp:Button Text="" Style="display: none;" ClientIDMode="Static" ID="BtnAlertaPUCero" OnClick="BtnAlertaPUCero_Click" runat="server" />
|
||
<asp:HiddenField ID="HdnAlertaPUCero" Value="-1" runat="server" ClientIDMode="Static" />
|
||
|
||
<asp:GridView runat="server" ID="GvOC1" AutoGenerateColumns="false"
|
||
GridLines="None" UseAccessibleHeader="true" EmptyDataText="No se encontraron registros." CssClass="table table-striped table-hover Widthall Sortable" RowStyle-HorizontalAlign="Center"
|
||
DataKeyNames="CantidadF,FolioREQ,CveProveedorSucursal,CveTipoPS,PS,CantidadPendienteVincular,IEPSPS,IVA,RetIVA,RetISR,Descuento,IVAPorcentaje,RetIVAPorcentaje,RetISRPorcentaje,IEPSPSPorcentaje,IEPSPSIVAPorcentaje,Cantidad,CveProveedorOC,Importe,CveSATPS">
|
||
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="Folio" ItemStyle-Width="10%" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:Label Text='<%# Eval("FolioOC") %>' ID="LblOC" runat="server" ItemStyle-Width="10%" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Alm." ItemStyle-Width="10%" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:Label Text='' ID="LbEstatusInv" runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Cantidad" ItemStyle-Width="10%">
|
||
<ItemTemplate>
|
||
<asp:TextBox ID="TxtCantidad" Text='<%# Eval("CantidadPendienteVincular", "{0:#,##0.00####}")%>' runat="server" Width="50px" Style="text-align: right;" />
|
||
<ajax:FilteredTextBoxExtender ID="FTETxtCantidad" runat="server" TargetControlID="TxtCantidad" FilterType="Custom, Numbers" ValidChars="." />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:BoundField HeaderText="UM" DataField="UM" ItemStyle-Width="10%" />
|
||
<asp:TemplateField HeaderText="Clasificación <br/> Producto/Servicio" ItemStyle-Width="50%" ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<span style="width: 100%; border-bottom: 1px solid gray; text-align: left!important">
|
||
<asp:Label ID="LblClasificacion" runat="server" Text='<%# Eval("Clasificacion") %>'></asp:Label>
|
||
</span>
|
||
<br />
|
||
<asp:Label ID="LbProductoServicio" runat="server" Text='<%# Eval("PS")%>'></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Proyecto <br/> SubProyecto" ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<span style="width: 145px; border-bottom: 1px solid gray;">
|
||
<asp:Label ID="LblProyecto" runat="server" Text='<%# Eval("Proyecto", "{0}<br />") %>' Visible='<%# if(UsuarioActual.Empresa.Tipo_CentroCosto <> 1 And UsuarioActual.Empresa.Tipo_CentroCosto <> 2, True, False) %>'></asp:Label>
|
||
</span>
|
||
<asp:Label ID="LblSubProyecto" runat="server" Text='<%# Eval("SubProyecto") %>'></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Producto/Servicio SAT" ItemStyle-Width="30%" Visible="false">
|
||
<ItemTemplate>
|
||
<ADS:Dropdownlost runat="server" ID="DdlSATPS" CssClassDdl="selecthidden" CssStyle="width: 100%;" DataTextField="Descripcion" DataValueField="CveSATPS" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%--<asp:BoundField HeaderText="PU" DataField="Importe" DataFormatString="{0:N2}" ItemStyle-Width="40px" ItemStyle-HorizontalAlign="Right" />--%>
|
||
<asp:TemplateField HeaderText="PU" ItemStyle-Width="10%">
|
||
<ItemTemplate>
|
||
<asp:TextBox ID="TxtPU" Text='<%# Eval("Importe", "{0:#,##0.00####}")%>' runat="server" Width="60px" CssClass="TextBoxAsLabel" />
|
||
<ajax:FilteredTextBoxExtender ID="FTETxtPU" runat="server" TargetControlID="TxtPU" FilterType="Custom, Numbers" ValidChars="." />
|
||
<%--<asp:Label Text='<%# Eval("Importe", "{0:N2}")%>' runat="server" ID="LbPU" />--%>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Total" ItemStyle-Width="10%">
|
||
<ItemTemplate>
|
||
<%--<asp:Label Text='<%# Eval("Total", "{0:N2}")%>' runat="server" ID="LbTotalOC" />--%>
|
||
<asp:TextBox CssClass="TextBoxAsLabel" Width="85px" ID="TxtTotalOC1" Enabled="false" Text='<%# (CDbl(Eval("ImporteAjustadoDescuento").ToString) * CDbl(Eval("CantidadPendienteVincular").ToString)).ToString("N2") %>' runat="server" />
|
||
<asp:HiddenField runat="server" ID="HdnOC1IVA" Value='<%# Eval("IVA")%>' />
|
||
<asp:HiddenField runat="server" ID="HdnOC1IEPSImporte" Value='<%# Eval("IEPSPS")%>' />
|
||
<asp:HiddenField runat="server" ID="HdnOC1IEPSIVA" Value='<%# Eval("IEPSPSIVA")%>' />
|
||
<asp:HiddenField runat="server" ID="HdnOC1RetIVA" Value='<%# Eval("RetIVA")%>' />
|
||
<asp:HiddenField runat="server" ID="HdnOC1RetISR" Value='<%# Eval("RetISR")%>' />
|
||
<asp:HiddenField runat="server" ID="HdnOC1Descuento" Value='<%# Eval("Descuento")%>' />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%--<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:N2}" ItemStyle-Width="40px" ItemStyle-HorizontalAlign="Right" />--%>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
<asp:HiddenField runat="server" ID="HdnIEPSModificadoOC" ClientIDMode="Static" Value="0" />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
<table id="tdDatos" class="table nobordertop Widthall table-smallpadding" rules="none" border="0">
|
||
<tr runat="server" id="trTitulosTotales" visible="true">
|
||
<td width="100px"></td>
|
||
<td width="200px" class="well" align="right"></td>
|
||
|
||
|
||
<td width="100px" class="well" align="right" style="font-weight: bold;">Importes Vinculados</td>
|
||
<td width="100px"></td>
|
||
<td width="100px" class="well" align="right" style="font-weight: bold;">Calculados</td>
|
||
<%-- --%>
|
||
</tr>
|
||
<tr runat="server" id="trTipoCambioOC" visible="false">
|
||
<td></td>
|
||
<td class="well" align="right">Tipo De Cambio</td>
|
||
<td class="well mysmallbtn" style="white-space: nowrap;" align="right">
|
||
<asp:TextBox ID="TextBox1" Style="width: 60px; display: inline-block;" runat="server"></asp:TextBox>
|
||
<asp:LinkButton ID="LinkButton1" CssClass="btn btn-circle btn-sm green" runat="server"><i class="fa fa-refresh"></i></asp:LinkButton>
|
||
</td>
|
||
<td></td>
|
||
|
||
<td class="well mysmallbtn" style="white-space: nowrap;" align="right">
|
||
<asp:TextBox ID="TextBox2" Style="width: 60px; display: inline-block;" runat="server"></asp:TextBox>
|
||
<asp:LinkButton ID="LinkButton2" CssClass="btn btn-circle btn-sm green" runat="server"><i class="fa fa-refresh"></i></asp:LinkButton>
|
||
</td>
|
||
<%-- --%>
|
||
</tr>
|
||
<tr>
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">Subtotal </td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LbSubTotalOC1Mod" />
|
||
<asp:Label Text="0.00" runat="server" ID="LbSubTotalModDif" ForeColor="Red" Visible="false" />
|
||
</td>
|
||
|
||
|
||
<td width="100px"></td>
|
||
<td width="70px" class="well" align="right" style="font-weight: bold;">
|
||
<asp:Label Text="0.00" runat="server" ID="LbSubTotalOC1" />
|
||
<asp:Label Text="0.00" runat="server" ID="LbSubTotalDif" ForeColor="Red" Visible="false" />
|
||
</td>
|
||
<%-- --%>
|
||
</tr>
|
||
<tr runat="server" id="TrDescuentosOC1" visible="false">
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">Descuento
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LbDescuentoOC1Mod" />
|
||
</td>
|
||
|
||
|
||
<td width="100px"></td>
|
||
<td width="70px" class="well" align="right" style="font-weight: bold;">
|
||
<asp:Label Text="0.00" runat="server" ID="LbDescuentoOC1" />
|
||
</td>
|
||
<%-- --%>
|
||
</tr>
|
||
<tr>
|
||
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">Subtotal 2
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LbSubTotal2OC1Mod" />
|
||
<asp:Label Text="0.00" runat="server" ID="LbSubTotal2ModDif" ForeColor="Red" Visible="false" />
|
||
</td>
|
||
|
||
<td width="100px"></td>
|
||
<td width="70px" class="well" align="right" style="font-weight: bold;">
|
||
<asp:Label Text="0.00" runat="server" ID="LbSubTotal2OC1" />
|
||
<asp:Label Text="0.00" runat="server" ID="LbSubTotal2Dif" ForeColor="Red" Visible="false" />
|
||
</td>
|
||
</tr>
|
||
<tr runat="server" id="TrIEPSOC1" visible="false">
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">IEPS
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LbIEPSOCMod1" />
|
||
</td>
|
||
|
||
|
||
<td width="100px"></td>
|
||
<td width="70px" class="well" align="right" style="font-weight: bold;">
|
||
<asp:Label Text="0.00" runat="server" ID="LbIEPSOC1" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">IVA
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LbIVAOC1Mod" />
|
||
</td>
|
||
|
||
|
||
<td width="100px"></td>
|
||
<td width="70px" class="well" align="right" style="font-weight: bold;">
|
||
<asp:Label Text="0.00" runat="server" ID="LbIVAOC1" />
|
||
</td>
|
||
<%-- --%>
|
||
</tr>
|
||
<tr runat="server" id="TrRetIVAOC1" visible="false">
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">Ret IVA
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LblRetIVAOC1Mod" />
|
||
</td>
|
||
|
||
|
||
<td width="100px"></td>
|
||
<td width="70px" class="well" align="right" style="font-weight: bold;">
|
||
<asp:Label Text="0.00" runat="server" ID="LblRetIVAOC1" />
|
||
</td>
|
||
<%-- --%>
|
||
</tr>
|
||
<tr runat="server" id="TrRetISROC1" visible="false">
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">Ret ISR
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LblRetISROC1Mod" />
|
||
</td>
|
||
|
||
|
||
<td width="100px"></td>
|
||
<td width="70px" class="well" align="right" style="font-weight: bold;">
|
||
<asp:Label Text="0.00" runat="server" ID="LblRetISROC1" />
|
||
</td>
|
||
<%-- --%>
|
||
</tr>
|
||
<tr>
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">Total
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LbTotalOC1Mod" />
|
||
</td>
|
||
|
||
<td width="100px"></td>
|
||
<td width="70px" class="well" align="right" style="font-weight: bold;">
|
||
<asp:Label Text="0.00" runat="server" ID="LbTotalOC1" />
|
||
</td>
|
||
<%-- --%>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="col-md-6">
|
||
<div style="margin-bottom: 10px;" class="portlet light xspadding bordered" id="portDatosCompras">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Datos de la Compra</span>
|
||
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript:;" class="collapse"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<asp:UpdatePanel runat="server" ID="UpGvOC2" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div id="DivDatosCompra" style="height: 250px; overflow-y: auto;">
|
||
<asp:GridView AutoGenerateColumns="false" runat="server" ID="GvOC2" GridLines="None" EmptyDataText="No se encontraron registros." CssClass="table table-striped table-hover gridconheader Widthall" RowStyle-HorizontalAlign="Center" DataKeyNames="Cantidad,UM,PS,SATClaveProductoServicio,PU,Total,Descuento">
|
||
<Columns>
|
||
<asp:BoundField HeaderText="#" DataField="Consec" ItemStyle-Width="20px" />
|
||
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:#,##0.00####}" ItemStyle-Width="40px" />
|
||
<asp:BoundField HeaderText="UM" DataField="UM" ItemStyle-Width="40px" />
|
||
<asp:TemplateField HeaderText="UM" ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<span style="width: 100%; border-bottom: 1px solid gray;">
|
||
<asp:Label ID="LblClasificacion" runat="server" Text='<%# Eval("Clasificacion") %>'></asp:Label>
|
||
</span>
|
||
<br />
|
||
<asp:Label ID="LbProductoServicio" runat="server" Text='<%# Eval("PS")%>'></asp:Label>
|
||
</ItemTemplate>
|
||
<HeaderTemplate>
|
||
Clasificación
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<br />
|
||
Producto/Servicio
|
||
|
||
|
||
|
||
</HeaderTemplate>
|
||
</asp:TemplateField>
|
||
<asp:BoundField HeaderText="Producto/Servicio SAT" DataField="SATClaveProductoServicio" ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Left" Visible="false" />
|
||
<asp:BoundField HeaderText="PU" DataField="PU" DataFormatString="{0:#,##0.00####}" ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Right" />
|
||
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:#,##0.00####}" ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Right" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
<table class="table table-smallpadding nobordertop Widthall" rules="none" border="0">
|
||
<tr>
|
||
<%--<td width="100px" height="27px"></td>--%>
|
||
<td width="100px"></td>
|
||
<td width="100px"></td>
|
||
</tr>
|
||
<tr>
|
||
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">Subtotal
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LbSubTotalOC2" />
|
||
</td>
|
||
</tr>
|
||
<tr runat="server" id="TrDescuentosOC2" visible="false">
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">Descuento
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LblDescuentoOC2" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">Subtotal 2
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LblSubTotal2OC2" />
|
||
</td>
|
||
</tr>
|
||
<tr runat="server" id="TrIEPSOC2" visible="false">
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">IEPS
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LbIEPSOC2" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">IVA
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LbIVAOC2" />
|
||
</td>
|
||
</tr>
|
||
<tr runat="server" id="TrRetIVAOC2" visible="false">
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">Ret IVA
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LblRetIVAOC2" />
|
||
</td>
|
||
</tr>
|
||
<tr runat="server" id="TrRetISROC2" visible="false">
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">Ret ISR
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LblRetISROC2" />
|
||
</td>
|
||
</tr>
|
||
<tr runat="server" id="TrAnticiposOC" visible="false">
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">Anticipos:
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LbAnticiposOC2" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="350px"></td>
|
||
<td width="100px" class="well" align="right">Total
|
||
</td>
|
||
<td width="70px" class="well" align="right">
|
||
<asp:Label Text="0.00" runat="server" ID="LbTotalOC2" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
|
||
</div>
|
||
<asp:UpdatePanel ID="UpBtnVinculacion" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row" align="right">
|
||
<div class="col-md-12 text-right text-small">
|
||
<asp:Button Text="Concluir Vinculación" ID="BtnVincularOC" CssClass="btn btn-success" OnClick="BtnVincularOC_Click" ValidationGroup="GrpVincularOC" runat="server" />
|
||
</div>
|
||
</div>
|
||
<br />
|
||
<div class="row" align="right">
|
||
<div class="col-md-12 text-right text-small">
|
||
<asp:Button Text="Vinculación Completa" ID="BtnVincularOCCompleta" CssClass="btn btn-success" ClientIDMode="Static" runat="server" Visible="false" OnClick="BtnVincularOCCompleta_Click" ValidationGroup="GrpVincularOC" runat="server" />
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<%-- <ajax:TabPanel ID="TabEstimaciones" runat="server" HeaderText="Estimaciones" Enabled="true">
|
||
<ContentTemplate>
|
||
<asp:UpdatePanel ID="UPEstimaciones" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<table border="0" rules="none" class="table table-striped table-hover table-advance Widthall">
|
||
<tr class="Titulos">
|
||
<td style="width: 30px">#</td>
|
||
<td style="width: 30px">Est</td>
|
||
<td style="width: 300px">
|
||
<asp:LinkButton ID="LbSubSeccion" runat="server" CausesValidation="false" Text="Concepto" /></td>
|
||
<td style="width: 100px">
|
||
<asp:LinkButton ID="LbCantidad" runat="server" CausesValidation="false" Text="Importe" /></td>
|
||
</tr>
|
||
</table>
|
||
<asp:GridView ID="GVEst" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron Estimaciones con los Filtros seleccionados" DataKeyNames="CveContrato,CveContratoSeccion" ShowHeader="false" SelectedRowStyle-BackColor="#CCFF66" CssClass="table table-striped table-hover gridconheader table-advance Widthall">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="Chk" runat="server" Visible='<%# Eval("CveContratoSeccion").ToString <> "" And Eval("CveEstimacion").ToString = ""%>' />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LitEst" runat="server" Text='<%# Eval("CveEstimacion")%>' />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlSeccion" runat="server" Text='<%# Eval("Agrupador") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlImporte" runat="server" Text='<%# Eval("Importe", "{0:N2}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
<br />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>--%>
|
||
|
||
<ajax:TabPanel ID="TabActivosFijos" ClientIDMode="Static" runat="server" Enabled="true" HeaderText="">
|
||
<HeaderTemplate><span onclick="$('#BtnCargarGVAF').click();">Activos Fijos</span></HeaderTemplate>
|
||
<ContentTemplate>
|
||
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpCargarGVAF">
|
||
<ContentTemplate>
|
||
<table style="width: 100%">
|
||
<tr>
|
||
<td align="right">
|
||
<asp:Button runat="server" ClientIDMode="Static" ID="BtnCargarGVAF" OnClick="CargarGvActivosFijos" Text="Cargar Datos" Style="display: none;" />
|
||
<asp:Button runat="server" ClientIDMode="Static" ID="BtnLimpiaAF" Style="display: none;" OnClick="BtnLimpiaAF_Click" />
|
||
<asp:HiddenField runat="server" ClientIDMode="Static" ID="HdnTipoAF" />
|
||
<asp:HiddenField runat="server" ClientIDMode="Static" ID="HdnCveConceptoAF" />
|
||
<asp:HiddenField runat="server" ClientIDMode="Static" ID="HdnCantidadInsumo" />
|
||
|
||
<asp:Button ID="BtnVinculaAFEdit" ClientIDMode="Static" OnClick="BtnVinculaAFEdit_Click" Style="display: none;" runat="server" />
|
||
<asp:HiddenField runat="server" ID="HdnCodAFEdit" Value="-1" ClientIDMode="Static" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<ajax:TabContainer runat="server" ID="TabContainerAF" ActiveTabIndex="0" Style="width: 100%">
|
||
|
||
<ajax:TabPanel ID="TabInsumosAF" runat="server" Enabled="true" HeaderText="Insumos">
|
||
<ContentTemplate>
|
||
|
||
<asp:UpdatePanel ID="UpTitulosAFInsumos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<table border="0" rules="none" class="table table-striped table-hover table-advance Widthall">
|
||
<tr class="Titulos TextTab">
|
||
<td style="width: 20px">#</td>
|
||
<td style="width: 60px">Cantidad</td>
|
||
<td style="width: 70px">Unidad</td>
|
||
<td style="width: 335px">Producto</td>
|
||
<td style="width: 150px">Observación</td>
|
||
<td style="width: 90px">Vinculación AF</td>
|
||
<td style="width: 90px">Horómetro / Odómetro</td>
|
||
<td style="width: 90px">Mantenimiento</td>
|
||
<td style="width: 90px">Dividir</td>
|
||
</tr>
|
||
</table>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<asp:UpdatePanel ID="UPDatosAFInsumos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:HiddenField ID="HdnIndexTmpDT" runat="server" />
|
||
<asp:HiddenField ID="HdnTxtAFMedida" runat="server" />
|
||
<asp:Button ID="BtnAFMedida" runat="server" Style="display: none;" OnClick="BtnAFMedida_Click" />
|
||
|
||
<asp:GridView ID="GvAFInsumos" ClientIDMode="AutoID" runat="server" DataKeyNames="Consec,CveClasificacion" ShowHeader="false" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" CssClass="table table-striped table-hover table-advance Widthall gridconheader" RowStyle-VerticalAlign="Middle" RowStyle-HorizontalAlign="Center" GridLines="none">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
||
|
||
|
||
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:#,##0.00##}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlUnidadMedida" runat="server" Text='<%# Eval("UM") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<div class="truncate" style="width: 200px;">
|
||
<asp:HyperLink Style="display: initial;" ID="HplPS" NavigateUrl='<%# If(CInt(Eval("CvePS").ToString) > 0, String.Format("/Ventas/ProductosServicios.aspx?CvePS={0}&Ret=Comp&Popup=1&TB_iframe=true&height=500&width=950&Ret=Comp", Eval("CvePS")), "")%>' CssClass='<%# If(CInt(Eval("CvePS").ToString) > 0, "Texto thickbox", "") %>' runat="server" Text='<%# Eval("PS") %>'></asp:HyperLink>
|
||
</div>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<div class="truncate" style="width: 200px;">
|
||
<asp:Literal ID="LtlObservacion" runat="server" Text='<%# Eval("Obs") %>'></asp:Literal>
|
||
</div>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Label runat="server" Visible="false" ID="LbCveAF" Text='<%# Eval("CodAF")%>'></asp:Label>
|
||
<asp:TextBox ID="LblCodigo" Text='<%# Eval("CodAF")%>' runat="server" Width="80px" Visible="true"></asp:TextBox>
|
||
<asp:HyperLink runat="server" ID="HLBuscarAF"><i class="fa fa-search" aria-hidden="true"></i></asp:HyperLink>
|
||
<asp:Label runat="server" ID="LblValido" Style="display: none" Text="<i class='fa fa-check' style='color:green'></i>"></asp:Label>
|
||
|
||
<asp:HiddenField runat="server" ID="HdnCveConcepto" Value='<%# Eval("CveConcepto")%>' />
|
||
<asp:HiddenField runat="server" ID="HdnIndex" />
|
||
<asp:HiddenField runat="server" ID="HdnCveAF" Value='<%# Eval("CveActivoFijo")%>' />
|
||
<asp:HiddenField runat="server" ID="HdnCodAF" Value='<%# Eval("CodAF")%>' />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="100px">
|
||
<ItemTemplate>
|
||
<asp:TextBox ID="TxtAFMedida" runat="server" Width="60px" Text='<%# Eval("AFMedida")%>'></asp:TextBox>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<asp:DropDownList ID="DdlTipoMantemiento" runat="server" CssClass="form-control select2me" Width="100px" AutoPostBack="true" OnSelectedIndexChanged="DdlTipoMantemiento_SelectedIndexChanged">
|
||
<asp:ListItem Selected="True" Text="-" Value="-1"></asp:ListItem>
|
||
<asp:ListItem Text="Preventivo" Value="1"></asp:ListItem>
|
||
<asp:ListItem Text="Correctivo" Value="2"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="80px">
|
||
<ItemTemplate>
|
||
<asp:TextBox runat="server" ID="TxtDividir" Width="30px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtDividir" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:Button runat="server" ID="BtnDividirInsumo" Text="Dividir" OnClick="DivirInsumo" Style="display: none;" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabComprasAF" runat="server" Enabled="true" HeaderText="Compras">
|
||
<ContentTemplate>
|
||
<asp:UpdatePanel ID="UpTitulosAFCompras" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<table border="0" rules="none" class="table table-striped table-hover table-advance Widthall">
|
||
<tr class="Titulos TextTab">
|
||
<td style="width: 20px">#</td>
|
||
<td style="width: 60px">Cantidad</td>
|
||
<td style="width: 70px">Unidad</td>
|
||
<td style="width: 335px">Producto</td>
|
||
<td style="width: 200px">Observación</td>
|
||
<td style="width: 90px">Vinculacion AF</td>
|
||
</tr>
|
||
</table>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<asp:UpdatePanel ID="UPDatosAFCompras" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvAFCompras" ClientIDMode="AutoID" runat="server" DataKeyNames="Consec,CveClasificacion" ShowHeader="false" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" CellPadding="1" CellSpacing="1" RowStyle-VerticalAlign="Middle" RowStyle-HorizontalAlign="Center" CssClass="table table-striped table-hover table-advance Widthall gridconheader" GridLines="none" BorderWidth="0">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
||
|
||
|
||
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:#,##0.00##}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlUnidadMedida" runat="server" Text='<%# Eval("UM") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<div style="float: left; width: 100%;">
|
||
<%-- <span style="width: 100%; border-bottom: 1px solid gray;">
|
||
<asp:Label ID="LblClasificacion" runat="server" Text='<%# Eval("Clasificacion") %>'></asp:Label>
|
||
</span>
|
||
<br />--%>
|
||
<asp:HyperLink Style="display: initial;" ID="HplPS" Width="200px" NavigateUrl='<%# If(CInt(Eval("CvePS").ToString) > 0, String.Format("/Ventas/ProductosServicios.aspx?CvePS={0}&Ret=Comp&Popup=1&TB_iframe=true&height=500&width=950&Ret=Comp", Eval("CvePS")), "")%>' CssClass='<%# If(CInt(Eval("CvePS").ToString) > 0, "Texto thickbox", "") %>' runat="server" Text='<%# Eval("PS") %>'></asp:HyperLink>
|
||
</div>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:BoundField DataField="Obs" ItemStyle-Width="300px" ControlStyle-CssClass="Texto" />
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<%--<asp:Label runat="server" ID="LbCveAF" Text='<%# Eval("CodAF")%>'></asp:Label>--%>
|
||
<asp:TextBox ID="LblCodigo" Text='<%# Eval("CodAF")%>' runat="server" Width="100px"></asp:TextBox>
|
||
<asp:Label runat="server" ID="LblValido" Style="display: none" Text="<i class='fa fa-check' style='color:green'></i>"></asp:Label>
|
||
<asp:HyperLink runat="server" ID="HLBuscarAF"><i class="fa fa-search" aria-hidden="true"></i></asp:HyperLink>
|
||
|
||
<asp:HiddenField runat="server" ID="HdnCveConcepto" Value='<%# Eval("CveConcepto")%>' />
|
||
<asp:HiddenField runat="server" ID="HdnIndex" />
|
||
<asp:HiddenField runat="server" ID="HdnCveAF" Value='<%# Eval("CveActivoFijo")%>' />
|
||
<asp:HiddenField runat="server" ID="HdnCodAF" Value='<%# Eval("CodAF")%>' />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
</ajax:TabContainer>
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabVinculacionServicios" runat="server" Visible="false" HeaderText="Vinculacion Servicios">
|
||
<ContentTemplate>
|
||
<asp:UpdatePanel runat="server" ID="UPVinculacionServicios" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<asp:GridView ID="GVVinculacionServicios" runat="server" DataKeyNames="Total,PU,Cantidad,CvePS" AutoGenerateColumns="false" EmptyDataText="Aun no hay registros." ShowHeaderWhenEmpty="True" Width="100%" CssClass="table table-striped table-hover table-advance Widthall">
|
||
<Columns>
|
||
<asp:BoundField ItemStyle-Width="400px" HeaderText="Producto o Servicio" DataField="PS" />
|
||
<asp:TemplateField HeaderText="Producto o servicio">
|
||
<ItemTemplate>
|
||
<asp:DropDownList runat="server" ID="Ddlnewps" DataTextField="PSCodigo" DataValueField="CvePS" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="200px" />
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
<RowStyle HorizontalAlign="Center" />
|
||
</asp:GridView>
|
||
<div class="row">
|
||
<div class="col-md-9"></div>
|
||
<div class="col-md-3">
|
||
<asp:Button ID="BtnVincularServicios" CssClass="btn btn-primary" runat="server" Text="Vincular" />
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabPersonal" runat="server" Enabled="true" HeaderText="Personal">
|
||
<ContentTemplate>
|
||
<asp:UpdatePanel ID="UpTitulosPersonal" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<table border="0" rules="none" class="table table-striped table-hover table-advance Widthall">
|
||
<tr class="Titulos TextTab">
|
||
<th style="width: 20px">#</th>
|
||
<th style="width: 60px">Cantidad</th>
|
||
<th style="width: 70px">Unidad</th>
|
||
<th style="width: 335px">Producto</th>
|
||
<th style="width: 200px">Observación</th>
|
||
<th style="width: 20%">Referencia</th>
|
||
<th style="width: 15%">
|
||
<asp:Literal ID="LthProyectoP" runat="server" Text="Proyecto<br /> "></asp:Literal><asp:Label runat="server" ID="LblSubProyectoPHeader" Text="SubProyecto"></asp:Label>
|
||
</th>
|
||
<th style="width: 20%">Personal
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<br />
|
||
<asp:DropDownList ID="DdlPersonalHeader" runat="server" AutoPostBack="true" DataTextField="NombreCompletoNombre" DataValueField="CvePersonal" AppendDataBoundItems="true" Width="100%" CssClass="form-control input-sm select2me">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</th>
|
||
<th style="width: 7%">Desglosar</th>
|
||
</tr>
|
||
</table>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<asp:UpdatePanel ID="UpGvPersonal" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvPersonal" ClientIDMode="AutoID" runat="server" DataKeyNames="Consec,CvePersonal,CveClasificacion" ShowHeader="false" AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros" CellPadding="1" CellSpacing="1" RowStyle-VerticalAlign="Middle" RowStyle-HorizontalAlign="Center" CssClass="table table-striped table-hover table-advance Widthall gridconheader" GridLines="none" BorderWidth="0">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Label ID="LtlConsecutivo" runat="server" Text='<%# Eval("Consec", "{0:N0}") %>' Font-Size="6pt"></asp:Label></label>
|
||
|
||
|
||
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:#,##0.00##}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlUnidadMedida" runat="server" Text='<%# Eval("UM") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<div style="float: left; width: 100%;">
|
||
<%--<span style="width: 100%; border-bottom: 1px solid gray;">
|
||
<asp:Label ID="LblClasificacion" runat="server" Text='<%# Eval("Clasificacion") %>'></asp:Label>
|
||
</span>
|
||
<br />--%>
|
||
<asp:HyperLink Style="display: initial;" ID="HplPS" Width="200px" NavigateUrl='<%# If(CInt(Eval("CvePS").ToString) > 0, String.Format("/Ventas/ProductosServicios.aspx?CvePS={0}&Ret=Comp&Popup=1&TB_iframe=true&height=500&width=950&Ret=Comp", Eval("CvePS")), "")%>' CssClass='<%# If(CInt(Eval("CvePS").ToString) > 0, "Texto thickbox", "") %>' runat="server" Text='<%# Eval("PS") %>'></asp:HyperLink>
|
||
</div>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:BoundField DataField="Obs" ItemStyle-Width="300px" ControlStyle-CssClass="Texto" />
|
||
<asp:TemplateField ItemStyle-Width="20%">
|
||
<ItemTemplate>
|
||
<asp:TextBox runat="server" ID="TxtReferencia" Width="120px"></asp:TextBox>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="15%">
|
||
<ItemTemplate>
|
||
<asp:DropDownList ID="DdlProyectoPersonal" OnSelectedIndexChanged="DdlProyectoPersonal_SelectedIndexChanged" AutoPostBack="true" DataTextField="Proyecto" DataValueField="CveProyecto" AppendDataBoundItems="true" runat="server" Width="100%" CssClass="form-control input-sm select2me">
|
||
</asp:DropDownList>
|
||
<br />
|
||
<asp:DropDownList ID="DdlSubProyectoPersonal" OnSelectedIndexChanged="DdlSubProyectoPersonal_SelectedIndexChanged" AutoPostBack="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" AppendDataBoundItems="true" runat="server" Width="100%" CssClass="form-control input-sm select2me">
|
||
</asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="20%">
|
||
<ItemTemplate>
|
||
|
||
<asp:DropDownList ID="DdlPersonalGv" DataTextField="NombreCompletoNombre" DataValueField="CvePersonal" AppendDataBoundItems="true" runat="server" Width="100%" CssClass="form-control input-sm select2me">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<%--<asp:Label runat="server" ID="LbCveAF" Text='<%# Eval("CodAF")%>'></asp:Label>--%>
|
||
<%--<asp:TextBox ID="LblCodigo" Text='<%# Eval("CodAF")%>' runat="server" Visible="false" Width="40px"></asp:TextBox>
|
||
|
||
<asp:HyperLink runat="server" ImageUrl="/Imagenes/buscar.gif" ID="HLBuscarAF"></asp:HyperLink>
|
||
|
||
<asp:HiddenField runat="server" ID="HdnCveConcepto" Value='<%# Eval("CveConcepto")%>' />
|
||
<asp:HiddenField runat="server" ID="HdnIndex" />
|
||
<asp:HiddenField runat="server" ID="HdnCveAF" Value='<%# Eval("CveActivoFijo")%>' />
|
||
<asp:HiddenField runat="server" ID="HdnCodAF" Value='<%# Eval("CodAF")%>' />--%>
|
||
</ItemTemplate>
|
||
<%-- <ItemStyle Width="90px" />--%>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="100px">
|
||
<ItemTemplate>
|
||
<asp:TextBox runat="server" ID="TxtDividir" Width="30px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtDividir" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:LinkButton data-toggle="tooltip" data-placement="top" ToolTip="Aplicar Desglosar" runat="server" ID="BtnDividirPersonal" Text="<i class='fa fa-check' style='color:green'></i>" OnClick="DividirPersonal" Style="display: none;" CssClass="btn btn-default btn-circle btn-xs" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
<asp:HiddenField runat="server" ClientIDMode="Static" ID="HdnCantidadPersonal" />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
</ajax:TabContainer>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<hr style="width: 100%" />
|
||
<div class="row">
|
||
<div class="whitoutcol" style="width: 400px; margin-left: 10px; display: table;">
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Condiciones de la compra</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="tools">
|
||
<a href="javascript:;" class="collapse"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<asp:UpdatePanel ID="UPCondicionesPago" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<table border="0" style="width: 400px">
|
||
<tr>
|
||
<td align="left">Método Pago:</td>
|
||
<td align="left" colspan="2">
|
||
<asp:Label ID="LblMetodoPago" runat="server" Text=""></asp:Label></td>
|
||
</tr>
|
||
<tr>
|
||
<td align="left" style="width: 75px">Fecha Pago:</td>
|
||
<td align="left" style="width: 100px">
|
||
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy">
|
||
<asp:TextBox ID="TxtFechaPago" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" ClientIDMode="Static"></asp:TextBox>
|
||
<span class="input-group-btn ">
|
||
<button runat="server" id="imgCalendario" class="btn default" type="button">
|
||
<i class="fa fa-calendar"></i>
|
||
</button>
|
||
</span>
|
||
<ajax:MaskedEditExtender ID="MEEFechaC" runat="server" TargetControlID="TxtFechaPago" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender ID="Calendario" runat="server" TargetControlID="TxtFechaPago" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="RFVFechaC" runat="server" ControlToValidate="TxtFechaPago" Display="None" ErrorMessage="El campo <b>''Fecha de Pago''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<asp:CompareValidator ID="CVFechaC" runat="server" ControlToValidate="TxtFechaPago" Display="None" ErrorMessage="El campo <b>''Fecha de Pago''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCERFVFC" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaC" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
<ajax:ValidatorCalloutExtender ID="VCECVFC" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaC" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
|
||
<asp:CompareValidator ID="CVFechaPago" runat="server" ControlToCompare="TxtFecha" ControlToValidate="TxtFechaPago" Display="None" Operator="GreaterThanEqual" Type="Date" ValidationGroup="GrpGuardar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Pago''</b>tiene que ser mayor o igual a la fecha del documento."></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEFechaPago" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaPago" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
|
||
<asp:CustomValidator runat="server" id="CBTxtFechaPago" ControlToValidate="TxtFechaPago" ClientValidationFunction="ValidaRangoDeFechas" ValidationGroup="GrpGuardar" ErrorMessage="La fecha de pago no debe de exeder de 5 años en relación a la fecha de la compra" Display="None" />
|
||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server" HighlightCssClass="vco" TargetControlID="CBTxtFechaPago" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
|
||
</div>
|
||
</td>
|
||
<td align="left">
|
||
<asp:LinkButton runat="server" Visible="false" ID="LnkUpdateFechaPago" OnClick="LnkUpdateFechaPago_Click" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea actualizar la fecha de pago de la compra?" data-btn-ok-label="si" Text="<i class='fa fa-check' style='color:green'></i>" CssClass="btn btn-default btn-circle btn-xs" ToolTip="Actualizar Fecha de Pago" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="left">
|
||
<asp:Label ID="LblAplicaNC" runat="server" Width="100px" Text="Aplica NC/Dev:" ToolTip="Aplica Nota Crédito"></asp:Label></td>
|
||
<td align="left">
|
||
<asp:CheckBox ID="ChkAplicaNotaCredito" CssClass="make-switchsd" runat="server" /></td>
|
||
</tr>
|
||
|
||
<tr id="TrReembolso" runat="server" visible="false">
|
||
<td align="left" colspan="3">
|
||
<asp:CheckBox ID="ChkReembolso" runat="server" Text="Marcar como Reembolso" AutoPostBack="True" />
|
||
<asp:UpdatePanel ID="UPPCH" UpdateMode="Conditional" runat="server">
|
||
<ContentTemplate>
|
||
<asp:Panel ID="PnlReemb" runat="server" Visible="False">
|
||
<asp:RadioButtonList ID="RBLCajaChica" RepeatDirection="Horizontal" runat="server" AutoPostBack="True">
|
||
<asp:ListItem Value="1">Personal/Empleado</asp:ListItem>
|
||
<asp:ListItem Value="2">Caja Chica</asp:ListItem>
|
||
</asp:RadioButtonList>
|
||
|
||
<asp:DropDownList ID="DdlPersonal" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NombreCompletoNombre" DataValueField="CvePersonal" OnSelectedIndexChanged="DdlPersonal_SelectedIndexChanged" Width="170px" ValidationGroup="GrpGuardar">
|
||
<asp:ListItem Selected="True" Text="Seleccione Funcionario o Empleado" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
|
||
<asp:DropDownList ID="DdlCajaChica" runat="server" Visible="False" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" OnSelectedIndexChanged="DdlCajaChica_SelectedIndexChanged" Width="170px" ValidationGroup="GrpGuardar">
|
||
<asp:ListItem Selected="True" Text="Seleccione cuenta" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</asp:Panel>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</td>
|
||
</tr>
|
||
|
||
</table>
|
||
|
||
<table>
|
||
<tr id="TrRembolsoUpdate" runat="server" visible="False">
|
||
<td>Reembolso:
|
||
|
||
|
||
|
||
<asp:RadioButtonList ID="RblRembolso" OnSelectedIndexChanged="RblRembolso_SelectedIndexChanged" RepeatDirection="Horizontal" runat="server" AutoPostBack="True">
|
||
<asp:ListItem Value="1">Personal/Empleado</asp:ListItem>
|
||
<asp:ListItem Value="2">Caja Chica</asp:ListItem>
|
||
</asp:RadioButtonList></td>
|
||
</tr>
|
||
<tr id="TrRembolsoNumero" runat="server" visible="False">
|
||
<td>#<asp:TextBox ID="TxtRembolsoNumero" Width="80px" runat="server"></asp:TextBox></td>
|
||
</tr>
|
||
<tr id="TrRembolsoCajaChica" runat="server" visible="False">
|
||
<td>
|
||
<asp:DropDownList ID="DdlRembolsoCajaChica" AppendDataBoundItems="true" CssClass="select2me" runat="server" Width="220px" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta"></asp:DropDownList></td>
|
||
</tr>
|
||
<tr id="TrRembolsoPersonal" runat="server" visible="false">
|
||
<td>
|
||
<asp:DropDownList ID="DdlRembolsoPersonal" AppendDataBoundItems="true" CssClass="select2me" runat="server" Width="220px" DataTextField="NombreCompletoNombre" DataValueField="CvePersonal"></asp:DropDownList></td>
|
||
</tr>
|
||
</table>
|
||
|
||
<table>
|
||
<tr>
|
||
<td>
|
||
<asp:Button ID="BtnVerAmortizacion" runat="server" Text="Aplicar Amortización" Visible="false" />
|
||
<asp:RadioButtonList ID="RBLPago" runat="server" RepeatDirection="Horizontal" Width="100%" AutoPostBack="true">
|
||
<asp:ListItem Value="1" Selected="True">Crédito</asp:ListItem>
|
||
<asp:ListItem Value="2">Contado</asp:ListItem>
|
||
<asp:ListItem Value="3">Reembolsos</asp:ListItem>
|
||
<asp:ListItem Value="4">Crédito Financiero</asp:ListItem>
|
||
</asp:RadioButtonList>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<%-- <td runat="server" id="tdNumeroReembolso" visible="false">Numero de Reembolso:
|
||
<asp:TextBox ID="TxtNumeroReembolso" runat="server" Width="60px" />
|
||
<asp:RequiredFieldValidator ID="RFVNumeroReembolso" runat="server" ControlToValidate="TxtNumeroReembolso" InitialValue="" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Numero de Reembolso''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCENumeroReembolso" runat="server" HighlightCssClass="vco" TargetControlID="RFVNumeroReembolso" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</td>--%>
|
||
</tr>
|
||
</table>
|
||
|
||
<asp:UpdatePanel runat="server" ID="UpCreditos" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row" runat="server" id="romCreditosTabla" visible="false" style="max-height: 250px!important">
|
||
<div class="col-md-12">
|
||
|
||
<div class="col-md-6" style="text-align: right"></div>
|
||
|
||
<div class="col-md-6" style="text-align: left">
|
||
<asp:Label runat="server" Font-Bold="true" ID="LblImporteCreditos" Text="Total:"> </asp:Label>
|
||
</div>
|
||
<br />
|
||
<asp:UpdatePanel runat="server" ID="UpGvCreditos" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
|
||
<div class="row" style="height: 200px!important">
|
||
<div class="col-md-12" style="height: 200px!important">
|
||
|
||
<asp:GridView ID="GvCreditos" runat="server" AutoGenerateColumns="False"
|
||
DataKeyNames="CveCredito,CveCreditoDetalle,FondoGarantia,Periodo,Periodos,Marcador,ProximoPeriodo,TipoPago,Fecha,CveMoneda,Referencia,CveTipoCredito,SeparadorLiquido,Estatus,CveCompra,CveCompraInteres,Mensualidad"
|
||
EmptyDataText="No se encontraron Créditos registrados"
|
||
CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" data-sort="true" data-height="200" GridLines="None">
|
||
<Columns>
|
||
|
||
<asp:TemplateField HeaderText="Sel" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="5px" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="ChkSel" CssClass="ChkSelCreditos" runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:BoundField DataField="Referencia" HeaderText="Crédito" HeaderStyle-CssClass="rompe" ItemStyle-HorizontalAlign="Left" />
|
||
<asp:BoundField DataField="ProximoPeriodo" HeaderText="Pago" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="50px" />
|
||
|
||
<asp:TemplateField HeaderText="Capital" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="40px" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:TextBox runat="server" ID="TxtCapital" Width="60px" Style="text-align: right;" ToolTip="Incluye IVA"></asp:TextBox>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Interes" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="40px" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:TextBox runat="server" ID="TxtInteres" Width="60px" Style="text-align: right;" ToolTip="Incluye IVA"></asp:TextBox>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="40px">
|
||
<ItemTemplate>
|
||
<asp:TextBox runat="server" ID="TxtAmbos" Width="60px" Style="text-align: right;" ToolTip="Incluye IVA"></asp:TextBox>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
</Columns>
|
||
</asp:GridView>
|
||
|
||
<asp:GridView ID="GvCreditosRelacionados" runat="server" AutoGenerateColumns="False" Visible="false"
|
||
EmptyDataText="No se encontraron Créditos registrados"
|
||
CssClass=" chequesie2 Widthall ScrollAD mysmallbtn" data-sort="false" data-height="200" GridLines="None">
|
||
<Columns>
|
||
<asp:HyperLinkField DataTextField="Referencia" ItemStyle-HorizontalAlign="Left" HeaderText="Referencia" DataNavigateUrlFields="CveCredito" DataNavigateUrlFormatString='/Bancos/Creditos.aspx?CveCredito={0}' ControlStyle-CssClass="rompe" />
|
||
<asp:BoundField DataField="PeriodoTexto" HeaderText="Periodo" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="50px" />
|
||
<asp:BoundField DataField="Tipo" HeaderText="Tipo" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="50px" />
|
||
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<%--<%--Reembolsos--%>
|
||
<br />
|
||
<%-- <table style="width: 100%;">
|
||
<tr>
|
||
<td align="center" style="width: 100%;">
|
||
<asp:DropDownList ID="DdlPersonalReembolso" runat="server" CssClass="form-control input-sm select2me" Visible="false" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NombreCompletoNombre" DataValueField="CvePersonal" Width="250px" ValidationGroup="GrpGuardar">
|
||
<asp:ListItem Selected="True" Text="Seleccione Funcionario o Empleado" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
|
||
<asp:DropDownList ID="DdlCuentaCajaChicaReembolso" runat="server" Visible="False" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="250px" ValidationGroup="GrpGuardar">
|
||
<asp:ListItem Selected="True" Text="Seleccione cuenta" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</td>
|
||
</tr>
|
||
</table>--%>
|
||
|
||
<asp:Button ID="BtnAmortizar" runat="server" Text="Amortizar" Visible="False" />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="whitoutcol" style="width: 310px;">
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Observaciones</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="tools">
|
||
<a href="javascript:;" class="collapse"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<asp:UpdatePanel ID="UPObservaciones" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<table border="0" width="250px">
|
||
<tr align="left">
|
||
<td><b>Observaciones Generales:</b> </td>
|
||
</tr>
|
||
<tr align="left">
|
||
<td>
|
||
<asp:TextBox ID="TxtObsFact" runat="server" Rows="3" TextMode="MultiLine" Width="250px"></asp:TextBox></td>
|
||
</tr>
|
||
</table>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="whitoutcol" style="width: 250px;">
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Acciones</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="tools">
|
||
<a href="javascript:;" class="collapse"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body text-center">
|
||
|
||
<asp:UpdatePanel ID="UpFacturar" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<asp:Button ID="BtnGuardar" CssClass="btn btn-primary " runat="server" ValidationGroup="GrpGuardar" data-toggle="confirmation" data-popout="true" data-original-title="<b>Verifique los datos para continuar</b>. <br/><br/> <center>¿Seguro de registrar el documento con la información actual?</center>" data-btn-ok-label="si" Text="Registrar Compra" />
|
||
<asp:Button ID="BtnActualizar" CssClass="btn btn-success" runat="server" Text="Actualizar Compra" ValidationGroup="GrpGuardar" Visible="False" />
|
||
<br />
|
||
<br />
|
||
|
||
<asp:Button ID="BtnEliminarCompra" CssClass="btn btn-danger" Visible="False" runat="server" Text="Eliminar Compra" data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea eliminar la compra?" data-btn-ok-label="si" />
|
||
<br />
|
||
<br />
|
||
<asp:Button ID="BtnCancelarCompra" OnClientClick="ShowDivCancelarCompra();" Text="Cancelar Compra" CssClass="btn btn-danger" Visible="false" runat="server" />
|
||
<br />
|
||
<br />
|
||
<asp:Button ID="BtnRegenerarPrePolizaAlmacen" OnClick="BtnRegenerarPrePolizaAlmacen_Click" CssClass="btn btn-warning" Visible="False" runat="server" Text="Regenerar PrePoliza" data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea regenerar la prepoliza?" data-btn-ok-label="si" />
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="whitoutcol" style="width: 300px;" id="TdNC" runat="server" visible="False">
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Facturas Aplicadas</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="tools">
|
||
<a href="javascript:;" class="collapse"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<asp:GridView ID="GvNCAplicadas" runat="server">
|
||
<Columns>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="DivOC" style="display: none; z-index: 5000;">
|
||
|
||
<table border="0" width="450px" cellpadding="0" cellspacing="1" style="border: solid 1px black; color: Black; background-color: White; width: 450px;">
|
||
<tr class="Titulos">
|
||
<td>Ordenes de Compra:
|
||
</td>
|
||
<td width="28px" valign="bottom" style="height: 16px"></td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" style="text-align: center;">
|
||
|
||
<asp:UpdatePanel ID="UPPOC" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:HiddenField ID="HdnCveOC" runat="server" ClientIDMode="Static" Value="0" />
|
||
<asp:GridView ID="GvOC" runat="server" AutoGenerateColumns="False" DataKeyNames="CveOrdenCompra" EmptyDataText="No se encontraron Ordenes de Compra">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<ajax:MutuallyExclusiveCheckBoxExtender runat="server"
|
||
ID="MustHaveGuestBedroomCheckBoxEx"
|
||
TargetControlID="Chk"
|
||
Key="Chk" />
|
||
<asp:CheckBox ID="Chk" runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="35px">
|
||
<HeaderTemplate>OC</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:HyperLink ID="HplOC" runat="server" CssClass="Texto" Text='<%# Eval("Folio")%>' NavigateUrl='<%# Eval("CveOrdenCompra", "/OC/OC.aspx?OC={0}")%>'></asp:HyperLink>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField ItemStyle-Width="250px">
|
||
<HeaderTemplate>Descripción</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
||
|
||
|
||
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Fecha</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng", "{0:d}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
<RowStyle CssClass="TextoAlterno" />
|
||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||
<HeaderStyle CssClass="Titulos" />
|
||
</asp:GridView>
|
||
|
||
|
||
<asp:Button ID="BtnOCAceptar" runat="server" Text="Aceptar" />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
</div>
|
||
|
||
|
||
|
||
<%--********* INICIAN MODALES ***********--%>
|
||
|
||
|
||
<div id="DivAnticipos" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel ID="UpAnticipos" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Anticipos/NC del Proveedor</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<asp:HiddenField ID="HdnAnticipos" runat="server" ClientIDMode="Static" Value="0" />
|
||
|
||
<div class="row">
|
||
<div class="col-md-12 text-right">
|
||
<asp:CheckBox ID="ChkNCInv" Visible="false" AutoPostBack="true" OnCheckedChanged="ChkNCInv_CheckedChanged" Text="Afecta Rep Sin Entradas" runat="server" />
|
||
</div>
|
||
</div>
|
||
<br />
|
||
|
||
<div runat="server" id="DivOCSolicitudAnticipoModal" visible="false">
|
||
<div class="row">
|
||
<div class="col-md-10 col-md-offset-1" style="vertical-align: middle;" align="center">
|
||
<div style="z-index: 5; position: relative;">
|
||
<div id="DivAdvertenciaOCSolicitudAnticipoModal" class="alert alert-warning alert-dismissable" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||
<strong style="font-size: 14px; margin-right: 25px;">Folios de anticipo OC: </strong>
|
||
<asp:Literal Text="" runat="server" ID="LtSolicitudAnticipoFoliosIE"></asp:Literal>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-6" runat="server" id="DVModalAnticipoFechaEjecucion" visible="false">
|
||
<label class="col-md-6"><b>Fecha: </b></label>
|
||
<div class="col-md-6">
|
||
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy">
|
||
<asp:TextBox ID="TxtFechaEjecucion" CssClass="form-control" runat="server" CausesValidation="true"></asp:TextBox>
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton ID="ImgCalendarFechaEje" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||
</span>
|
||
</div>
|
||
<ajax:MaskedEditExtender ID="MEEFechaEje" runat="server" TargetControlID="TxtFechaEjecucion" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender runat="server" ID="CEFechaEje" TargetControlID="TxtFechaEjecucion" PopupButtonID="ImgCalendarFechaEje" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="RFVFechaEje" runat="server" ControlToValidate="TxtFechaEjecucion" Display="None" ErrorMessage="El campo <b>''Fecha''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="VGAnticipos"></asp:RequiredFieldValidator>
|
||
<asp:CompareValidator ID="CVFechaEje" runat="server" ControlToValidate="TxtFechaEjecucion" Display="None" ErrorMessage="El campo <b>''Fecha''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="VGAnticipos"></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VcoRFVFechaEje" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaEje" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
<ajax:ValidatorCalloutExtender ID="VcoCVFechaEje" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaEje" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-3">
|
||
<label class="col-md-6"><b>Saldo Factura: </b></label>
|
||
<div class="col-md-6">
|
||
<asp:Label ID="LblSaldoFactura" ClientIDMode="Static" runat="server"></asp:Label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3">
|
||
<label class="col-md-6"><b>Aplicado: </b></label>
|
||
<div class="col-md-6">
|
||
<asp:Label ID="LblAplicadoCompraAnt" ClientIDMode="Static" Text="0.00" runat="server"></asp:Label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3" runat="server" id="DVAntComiciones" visible="false">
|
||
<label class="col-md-6"><b>Comisión: </b></label>
|
||
<div class="col-md-6">
|
||
<asp:Label ID="LblAplicadoCompraAntComision" ClientIDMode="Static" Text="0.00" runat="server"></asp:Label>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-6" id="DivPagarConPesos" runat="server" visible="false">
|
||
<label class="col-md-6"><b>Pagar Con Pesos: </b></label>
|
||
<div class="col-md-6">
|
||
<asp:CheckBox ID="ChkPagarConPesos" runat="server" OnCheckedChanged="ChkPagarConPesos_CheckedChanged" AutoPostBack="true" />
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6" id="DivPagarConDolares" runat="server" visible="false">
|
||
<label class="col-md-6"><b>Pagar Con Dolares: </b></label>
|
||
<div class="col-md-6">
|
||
<asp:CheckBox ID="ChkPagarConDolares" runat="server" OnCheckedChanged="ChkPagarConDolares_CheckedChanged" AutoPostBack="true" />
|
||
</div>
|
||
</div>
|
||
<br />
|
||
</div>
|
||
|
||
<asp:GridView ID="GVAnticipos" runat="server" GridLines="None" AutoGenerateColumns="False" DataKeyNames="CveCompra,TipoDocto,CveIE,Fecha,CvePrePoliza,CveMoneda,TCCompra" EmptyDataText="No se encontraron Anticipos/NC del Proveedor" CssClass="table table-striped table-hover table-advance Widthall">
|
||
<Columns>
|
||
<asp:TemplateField ItemStyle-Width="30px">
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="Chk" runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Factura" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<asp:HyperLink ID="HplFactura" runat="server" CssClass="Texto" Text='<%# Eval("SerieFolio")%>' NavigateUrl='<%# If(Eval("CveCompra").ToString <> "0", Eval("CveCompra", "/Compras/Compras.aspx?CveCompra={0}"), If(Eval("CveIE").ToString <> "0", Eval("CveIE", "/Bancos/IE.aspx?CveIE={0}"), ""))%>'></asp:HyperLink>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Fecha Compra" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Anticipo" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlAnticipos" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
||
|
||
|
||
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Mon" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlMoneda" runat="server" Text='<%# Eval("Moneda") %>'></asp:Literal>
|
||
|
||
|
||
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="Amort." ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Label ID="LblTotalAnticipos" runat="server" ClientIDMode="Static" Width="80px" Text="0.00" Visible="false"></asp:Label>
|
||
<asp:TextBox ID="TxtAnticipo" runat="server" MaxLength="12" Width="76px" Style="text-align: right;"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtAnticipo" ValidChars="." FilterType="Custom, Numbers" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="Comisión" ItemStyle-HorizontalAlign="Right" Visible="false">
|
||
<ItemTemplate>
|
||
<%--<asp:Label ID="LblTotalAnticipos" runat="server" ClientIDMode="Static" Width="80px" Text="0.00" Visible="false"></asp:Label>--%>
|
||
<asp:TextBox ID="TxtComision" runat="server" MaxLength="12" Width="76px" Style="text-align: right;"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FilTxtComision" runat="server" TargetControlID="TxtComision" ValidChars="-." FilterType="Custom, Numbers" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button runat="server" ID="BtnAceptarAnticipos" Text="Aceptar" class="btn btn-success" ValidationGroup="VGAnticipos" />
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<div id="ModalNCConfirmación" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel ID="UpNCConfirmacion" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Productos pendientes de almacén</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="warning">
|
||
<h4>La factura tiene movimientos de almacén, los cuales no cuentan con devolución al proveedor.
|
||
</h4>
|
||
<h4 class="text-center">
|
||
<b>¿Desea continuar con la amortización del documento actual?</b>
|
||
</h4>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button id="CancelarNCConfirmacion" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||
<asp:Button Text="Aplicar" ID="BtnNCConfirmacion" OnClick="BtnNCConfirmacion_Click" CssClass="btn btn-primary" runat="server" />
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<div id="ModalNCInv" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel ID="UpNCInv" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Productos pendientes de almacén</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
|
||
<div class="row">
|
||
<div class="col-md-12 h4 text-right">
|
||
Saldo: $<asp:Label Text="0.00" ID="LbNCInvSaldo" runat="server" />
|
||
</div>
|
||
</div>
|
||
<br />
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:GridView ID="GVNCInv" runat="server" EmptyDataText="Aun no hay registros." AutoGenerateColumns="False" ShowHeader="true" ShowHeaderWhenEmpty="True" DataKeyNames="CveCompraDetalle" CssClass="table table-striped table-hover Widthall ScrollAD" data-heighterror="450" data-freezerows="1" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:TextBox ID="TxtCantidadNCInv" CssClass="form-control" runat="server" />
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumerosFolio" runat="server" TargetControlID="TxtCantidadNCInv" FilterType="Numbers, custom" ValidChars="." />
|
||
</ItemTemplate>
|
||
<ItemStyle HorizontalAlign="Center" Width="10%" />
|
||
</asp:TemplateField>
|
||
<asp:HyperLinkField HeaderText="SerieFolio" DataTextField="SerieFolio" Target="_blank" DataNavigateUrlFields="CveCompra" DataNavigateUrlFormatString="/Compras/Compras.aspx?={0}" />
|
||
<asp:BoundField HeaderText="Original" DataField="CantidadC" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="5%" />
|
||
<asp:BoundField HeaderText="Surtido" DataField="CantidadS" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="5%" />
|
||
<asp:BoundField HeaderText="Pendiente" DataField="CantidadF" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="5%" />
|
||
<asp:BoundField HeaderText="Unidad" DataField="UM" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="7.5%" />
|
||
<asp:BoundField HeaderText="Producto" DataField="CodigoPS" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="30%" />
|
||
<asp:BoundField HeaderText="P.U." DataField="PU" DataFormatString="{0:#,##0.####}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%" />
|
||
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%">
|
||
<ItemTemplate>
|
||
<asp:Label ID="LbTotal" Text='<%# (CDbl(Eval("PU").ToString) * CDbl(Eval("CantidadF").ToString)).ToString("N2") %>' runat="server"></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-12 h5 text-right">
|
||
Importe: $<asp:Label Text="0.00" ID="LbNCInvImporte" runat="server" />
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button id="CancelarNCInv" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||
<asp:Button Text="Aplicar NC" ID="BtnNCInv" OnClick="BtnNCInv_Click" CssClass="btn btn-primary" ValidationGroup="GrpModalNCInv" runat="server" />
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<%--<div id="DivAddEq" style="display: none; z-index: 5000;">
|
||
<table border="0" cellpadding="0" cellspacing="1" style="border: solid 1px black; color: Black; background-color: White; width: 300px;">
|
||
<tr class="Titulos">
|
||
<td colspan="2">Agregar Equivalencia</td>
|
||
</tr>
|
||
<tr class="Titulos" align="center">
|
||
|
||
|
||
<td align="center">Cantidad</td>
|
||
|
||
<td></td>
|
||
</tr>
|
||
<tr>
|
||
<td align="center">
|
||
<asp:HiddenField ID="HdnEq" runat="server" ClientIDMode="Static" Value="0" />
|
||
<asp:TextBox ID="txtCantidadEq"
|
||
MaxLength="5" runat="server"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="ftbetxtCantidadEq" runat="server"
|
||
TargetControlID="txtCantidadEq"
|
||
FilterType="Custom, Numbers"
|
||
ValidChars="+.," />
|
||
<asp:RequiredFieldValidator runat="server" ID="RFVtxtCantidadEq" ControlToValidate="txtCantidadEq" ValidationGroup="GrpEq" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingrése una." Display="Dynamic" Text="*"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOtxtCantidadEq" runat="server" HighlightCssClass="vco" TargetControlID="RFVtxtCantidadEq" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
|
||
</td>
|
||
|
||
<td align="center">
|
||
<asp:ImageButton ID="btnAceptar" runat="server" ValidationGroup="GrpEq" ImageUrl="/Imagenes/Btn_Add.png" />
|
||
|
||
<asp:ImageButton ID="BtnCancelar" runat="server" ImageUrl="/Imagenes/Btn_Cancel.png" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
<br />
|
||
</div>--%>
|
||
|
||
<div id="DivAlmacen" style="display: none; z-index: 5000;">
|
||
<asp:UpdatePanel ID="UPDivAlmacen" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<table border="0" width="420px" cellpadding="0" cellspacing="1" style="border: solid 1px black; color: Black; background-color: White;">
|
||
|
||
<tr class="Titulos">
|
||
<td colspan="2">
|
||
<h4>Enviar
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<asp:Label ID="lbPS" runat="server" ClientIDMode="Static"></asp:Label>
|
||
a otro Almacén </h4>
|
||
</td>
|
||
<td width="35px" valign="bottom" style="height: 16px">
|
||
<asp:Image ID="ImgClose" runat="server" ImageUrl="/Imagenes/cerrarX.jpg"
|
||
AlternateText=" " Style="cursor: pointer;" /></td>
|
||
</tr>
|
||
<tr class="Titulos" align="center">
|
||
|
||
|
||
<td width="20%" align="center">Cantidad</td>
|
||
|
||
<td>Almacén</td>
|
||
<td></td>
|
||
</tr>
|
||
|
||
<tr>
|
||
|
||
<td align="center">
|
||
<asp:HiddenField ID="hdnIndexInv" runat="server" ClientIDMode="Static" Value="0" />
|
||
<asp:HiddenField ID="hdnCantidad" runat="server" ClientIDMode="Static" Value="0" />
|
||
<asp:TextBox ID="TbCantidadAlm" Mask="9,999.99" Width="60px" runat="server"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FTBECantAlm" runat="server" TargetControlID="TbCantidadAlm" FilterType="Custom, Numbers" ValidChars="+.," />
|
||
<asp:RequiredFieldValidator runat="server" ID="RFVCantidadAlm" ControlToValidate="TbCantidadAlm" ValidationGroup="GrpAlm" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingrése una. " Text="*"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCE" runat="server" HighlightCssClass="vco" TargetControlID="RFVCantidadAlm" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</td>
|
||
<td align="center">
|
||
<asp:DropDownList ID="ddlAlmacenAdd" runat="server" DataTextField="Almacen" DataValueField="CveAlmacen" Width="150px"></asp:DropDownList>
|
||
</td>
|
||
<td align="center">
|
||
<asp:ImageButton ID="ImgAdd" runat="server" ValidationGroup="GrpAlm" ImageUrl="/Imagenes/Btn_Add.png" />
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
</table>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
<div class="row" runat="server" id="RowBitacora" visible="false">
|
||
<div class="col-md-12 ">
|
||
<div class="portlet light bordered xspadding">
|
||
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<%--<i class="fa fa-users font-green"></i>--%>
|
||
<span class="caption-subject bold uppercase">Bitácora</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
<%--<div class=" font-green" style="cursor: pointer;" runat="server" id="ImgAddObs" visible="false">
|
||
<i class="fa fa-commenting font-green"></i>
|
||
<span class="caption-subject bold">Agregar</span>
|
||
</div>--%>
|
||
<asp:HyperLink ID="ImgAddObs" CssClass="caption-subject bold" data-toggle="modal" data-target="#ModalBitacora" runat="server" Text=" <i class='fa fa-commenting font-green' ></i><span class='caption-subject bold'>Agregar</span>" Style="font-weight: 700 !important;cursor: pointer;" ToolTip="Observaciones"></asp:HyperLink><br />
|
||
<asp:HyperLink ID="HlEvento" CssClass="thickbox caption-subject bold" runat="server" Text=" <i class='fa fa-calendar-plus-o font-green' ></i>Agendar" Visible="false" Style="font-weight: 700 !important;cursor: pointer;" ToolTip="Agendar"></asp:HyperLink><br />
|
||
<asp:Literal ID="LtlTareaNueva" runat="server"></asp:Literal>
|
||
<UserControl:TareaNueva runat="server" ID="TareaNueva" />
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="portlet-body">
|
||
|
||
<asp:UpdatePanel ID="UPEventoBitacora" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvEB" runat="server" AutoGenerateColumns="False" DataKeyNames="CveEvento" EmptyDataText="No se han capturado comentarios o bitácora" CssClass="table table-striped table-advance table-hover Widthall" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Fecha</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Fecha Agenda</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlFechaAgenda" runat="server" Text='<%# Eval("FechaInicio") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Usuario</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Descripción</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlEventoBitacora" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Archivo</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LinkArchivo" Visible="false" runat="server" CssClass="Texto" OnClick="DownloadFile">
|
||
<asp:Image ImageUrl="/Imagenes/Abajo.png" ID="ImgArchivo" runat="server" />
|
||
</asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
<HeaderStyle CssClass="Titulos" />
|
||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||
<RowStyle CssClass="Texto" />
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="ModalBitacora" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
|
||
<!-- Modal content-->
|
||
<div class="modal-content">
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Bitácora</h4>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel runat="server" ID="UPAddEventoBitacora" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-8">
|
||
<label>Bitácora/Observaciones</label>
|
||
<br />
|
||
<asp:TextBox CssClass="form-control" ID="TxtEventoDescripcion" class="Widthall" runat="server" TextMode="MultiLine" Columns="60" Rows="8"></asp:TextBox>
|
||
<br />
|
||
<%-- <asp:CheckBox ID="ChkEventoPrioridad" CssClass="md-checksd2" Text="Bitácora de Atención" runat="server" />--%>
|
||
</div>
|
||
<div class="col-md-4">
|
||
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<%--<div>
|
||
|
||
</div>--%>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:Button ID="BtnGuardarEventoBitacora" runat="server" ClientIDMode="Static" Text="Guardar" CssClass="btn btn-primary" />
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div id="DivCancelarCompra" class="modal fade">
|
||
<div class="modal-dialog" style="max-height: 500px; max-width: 500px;">
|
||
<asp:UpdatePanel ID="UpCancelarCompra" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
|
||
<h3 class="modal-title">Cancelar Compra</h3>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="row" style="align-items: center">
|
||
<label class="col-md-3">Fecha de Cancelación:</label>
|
||
<div class="col-md-8">
|
||
<div class="input-group date date-picker" data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||
<asp:TextBox ID="TxtFechaCancelacion" runat="server" CssClass="form-control" Width="80px" CausesValidation="true" MaxLength="10" ValidationGroup="GrpCancelarCompra"></asp:TextBox>
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton ID="ImgCalendarioDel" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||
</span>
|
||
<ajax:MaskedEditExtender ID="MEEFechaCancelacion" runat="server" TargetControlID="TxtFechaCancelacion" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender ID="CalendarioCancelacion" runat="server" TargetControlID="TxtFechaCancelacion" PopupButtonID="ImgCalendarioDel" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
|
||
<asp:CompareValidator ID="CVFechaCancelacion" runat="server" ControlToValidate="TxtFechaCancelacion" Display="None" Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpCancelarCompra" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Cancelación''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)."></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOFecha2Cancelacion" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaCancelacion" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
|
||
<asp:CompareValidator ID="CVFechaCancelacionMin" runat="server" ControlToCompare="TxtFecha" ControlToValidate="TxtFechaCancelacion" Display="None" Operator="GreaterThanEqual" Type="Date" ValidationGroup="GrpCancelarCompra" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Cancelación''</b>tiene que ser mayor o igual a la fecha del documento."></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaCancelacionMin" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row" style="align-items: center" id="divDevAuto" runat="server" visible="false">
|
||
<label class="col-md-4">Devolución automática:</label>
|
||
<div class="col-md-8">
|
||
<asp:CheckBox Text="" runat="server" ID="CheckDevAuto" Visible="True" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button ID="BtnCancelarCompra2" OnClick="BtnCancelarCompra2_Click" runat="server" CssClass="btn btn-success" Text="Cancelar Compra" ValidationGroup="GrpCancelarCompra" />
|
||
<button type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<asp:UpdatePanel ID="UpRefacturacion" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div id="DivRefacturacion" visible="false" runat="server" class="modal fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
|
||
<!-- Modal content-->
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">
|
||
<asp:Label ID="Label7" runat="server" ClientIDMode="Static" Text="Refacturación"></asp:Label></h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<table width="100%">
|
||
<tr>
|
||
<td width="80px">Factura:</td>
|
||
<td>
|
||
|
||
<asp:DropDownList runat="server" Width="100%" CssClass="form-control input-sm select2me" ID="DdlRefacturacionFacturas" DataTextField="SerieFolio" DataValueField="CveCompra" ValidationGroup="GrpVinculaFactura" AutoPostBack="true"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVRefacturacion" runat="server" ControlToValidate="DdlRefacturacionFacturas" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Factura''</b> es necesario para cargar la Refacturación, por favor seleccione uno." ValidationGroup="GrpVinculaFactura"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCERefacturacion" runat="server" HighlightCssClass="vco" TargetControlID="RFVRefacturacion" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120px">Refacturar X NC:</td>
|
||
<td>
|
||
<asp:CheckBox ID="ChkRefacNC" runat="server" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="120px"></td>
|
||
<td>
|
||
<asp:CheckBox ID="ChkRefacturacionConAlmacen" Enabled="false" runat="server" Text="Con Almacen" />
|
||
<asp:HiddenField ID="HdnRefacturacionConcepto" runat="server" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" align="center">
|
||
<asp:Button Text="Aplicar Factura" CssClass="btn btn-primary" ID="BtnRefacturacionAplicaFactura" ValidationGroup="GrpVinculaFactura" runat="server" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<br />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button id="CancelarDevolucionF" type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<asp:UpdatePanel ID="UPPValesCombustible" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div id="DivValesCombustible" visible="false" runat="server" class="modal fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
|
||
<!-- Modal content-->
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Vales de Combustible </h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
|
||
<table width="100%">
|
||
<tr>
|
||
|
||
<td width="90%" style="text-align: center">
|
||
<asp:GridView ID="GvVales" runat="server" Visible="true" AutoGenerateColumns="False" DataKeyNames="CveVale" GridLines="none" BorderWidth="0" EmptyDataText="No se encontraron Vales de combustible" CssClass="table table-striped table-hover table-advance Widthall">
|
||
<Columns>
|
||
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="ChkVale" Text="" runat="server" Checked="true" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Recibo" ItemStyle-HorizontalAlign="right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlRecibo" Text='<%# Eval("Recibo")%>' runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Combustible" ItemStyle-HorizontalAlign="left">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlTipo" Text='<%# Eval("CombustibleTipo")%>' runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Nombre" ItemStyle-HorizontalAlign="left">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlNombreC" Text='<%# Eval("NombreCompleto")%>' runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Litros" ItemStyle-HorizontalAlign="right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlLitros" Text='<%# Eval("Litros")%>' runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Importe" ItemStyle-HorizontalAlign="right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlImporte" Text='<%# Eval("Importe")%>' runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
|
||
|
||
|
||
</Columns>
|
||
</asp:GridView>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" align="center">
|
||
<asp:Button Text="Aplicar Vinculacion" CssClass="btn btn-primary" ID="BtnValesVincular" OnClick="BtnValesVincular_Click" runat="server" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<br />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button id="CancelarDevolucionV" type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<%-- MODAL SERIE-LOTE ALMACEN --%>
|
||
<div id="DivSerie" class="modal fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
<asp:UpdatePanel ID="UpSerie" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<!-- Modal content-->
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="btn btn-circle btn-sm red" style="float: right" data-dismiss="modal"><i class='fa fa-close'></i></button>
|
||
<h4 class="modal-title">
|
||
<asp:Label ID="Label8" runat="server" ClientIDMode="Static" Text="Ingresar producto con Serie/Lote y Fecha de Caducidad"></asp:Label>
|
||
</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<asp:Panel runat="server" ID="PnlAgregarPSSerieLote" DefaultButton="BtnAgregarPS">
|
||
<table width="100%">
|
||
<tr>
|
||
<td width="80px"><b>Producto:</b></td>
|
||
<td>
|
||
<asp:Label Text="" ID="LbProducto" runat="server" />
|
||
</td>
|
||
<td width="120px"><b>Cantidad:</b></td>
|
||
<td colspan="">
|
||
<asp:Label Text="" ID="LbCantidadSerie" runat="server" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="4">
|
||
<hr />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="80px">Serie/Lote:</td>
|
||
<td>
|
||
<asp:TextBox runat="server" ID="TxtSerieLote" ClientIDMode="Static" />
|
||
<asp:RequiredFieldValidator ID="RFVSerieLote" runat="server" ControlToValidate="TxtSerieLote" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Serie/Lote''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregaSerie"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCESerieLote" runat="server" HighlightCssClass="vco" TargetControlID="RFVSerieLote" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</td>
|
||
<td runat="server" id="TdCaducidad1" width="80px">Fecha Caducidad:</td>
|
||
<td runat="server" id="TdCaducidad2">
|
||
<asp:TextBox ID="TxtFechaCaducidad" runat="server" CausesValidation="true" MaxLength="10" Width="80px" ClientIDMode="Static"></asp:TextBox>
|
||
<asp:ImageButton runat="server" ID="ImgFechaCaducidad" ImageUrl="/Imagenes/calendar.png" ImageAlign="AbsMiddle" Width="16px" Height="16px" AlternateText="Click para ver el Calendario" />
|
||
<ajax:MaskedEditExtender ID="MEEFechaCaducidad" runat="server" TargetControlID="TxtFechaCaducidad" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender runat="server" ID="CEFechaCaducidad" TargetControlID="TxtFechaCaducidad" PopupButtonID="ImgFechaCaducidad" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="RFVFechaCaducidad" runat="server" ControlToValidate="TxtFechaCaducidad" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaCaducidad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregaSerie"></asp:RequiredFieldValidator>
|
||
<asp:CompareValidator ID="CVFechaCaducidad" runat="server" ControlToValidate="TxtFechaCaducidad" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaCaducidad''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpAgregaSerie"></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOFechaCaducidad1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaCaducidad" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
<ajax:ValidatorCalloutExtender ID="VCOFechaCaducidad2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaCaducidad" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="4" align="right">
|
||
<asp:Button Text="Agregar" CssClass="btn btn-primary" ID="BtnAgregarPS" OnClick="BtnAgregarPS_Click" ValidationGroup="GrpAgregaSerie" runat="server" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="4">
|
||
<asp:GridView ID="GvSerie" runat="server" EmptyDataText="Aun no hay registros." AutoGenerateColumns="False" ShowHeader="true" ShowHeaderWhenEmpty="True" HeaderStyle-CssClass="Titulos" RowStyle-Height="25px" CssClass="table table-striped table-hover Widthall ScrollAD" data-height="100" data-freezerows="1" GridLines="None">
|
||
<Columns>
|
||
<asp:BoundField HeaderText="Serie-Folio" DataField="Serie" ItemStyle-Width="40%" />
|
||
<asp:BoundField HeaderText="Fecha Caducidad" DataField="FechaCaducidad" ItemStyle-Width="40%" />
|
||
<asp:TemplateField HeaderText="Eliminar">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="lnkRemove" runat="server" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" CommandName="Delete" OnClientClick="return confirm('¿Desea borrar el registro?')"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="20%"></ItemStyle>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</asp:Panel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button id="CancelarDevolucion" type="button" class="btn btn-default" data-dismiss="modal">cerrar</button>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<asp:UpdatePanel ID="UpBitacora" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<div class="portlet light bordered xspadding">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Historial de Modificación</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<asp:GridView ID="GvBitacora" runat="server" GridLines="None" Width="100%" CssClass="table table-striped table-advance table-hover Widthall ADSCroll mysmallbtn" CellSpacing="0" AutoGenerateColumns="False">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Fecha</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:BoundField DataField="ConceptoHistorialBitacora" HeaderText="Campo" ItemStyle-HorizontalAlign="Left" />
|
||
<asp:BoundField DataField="Anterior" HeaderText="Anterior" ItemStyle-HorizontalAlign="Left" />
|
||
<asp:BoundField DataField="Actual" HeaderText="Actual" ItemStyle-HorizontalAlign="Left" />
|
||
<asp:BoundField DataField="Usuario" HeaderText="Usuario" ItemStyle-HorizontalAlign="Left" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<div id="divAddAcarreo" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
<asp:UpdatePanel ID="UpAddAcarreo" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
<span aria-hidden="true">×</span>
|
||
</button>
|
||
<h4 class="modal-title" id="myModalLabel" runat="server">Asociación de Acarreos</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel ID="UpBodyAcarreo" UpdateMode="Conditional" runat="server">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvAcarreo" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Acarreos con los filtros especificados"
|
||
DataKeyNames="CvePreEstimacion,Importe,CveUnidadMedida,UnidadMedida,CveSubProyectoOrigen,SubProyectoOrigen,CveSubProyectoDestino,SubProyectoDestino" ToolTip="Listado de Acarreos"
|
||
CssClass="table table-advance table-hover Widthall" Style="text-align: center;" GridLines="None">
|
||
<Columns>
|
||
<asp:BoundField DataField="NumContrato" HeaderText="Contrato" ItemStyle-HorizontalAlign="Left" />
|
||
<asp:BoundField DataField="Transportista" HeaderText="Transportista" ItemStyle-HorizontalAlign="Left" />
|
||
<asp:BoundField DataField="NumPreEstimacion" HeaderText="Número de Pre-Estimación" ItemStyle-HorizontalAlign="Right" />
|
||
<asp:BoundField DataField="Cantidad" HeaderText="Cantidad" ItemStyle-HorizontalAlign="Right" />
|
||
<asp:TemplateField HeaderText="Importe" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlImporte" runat="server" Text='<%# Eval("Importe") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:BoundField DataField="FechaPreEstimacion" HeaderText="Fecha Pre-Estimación" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="ChkRow" runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<div class="modal-footer">
|
||
<asp:UpdatePanel ID="UpFooter" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:LinkButton ID="BtnAgregarAcarreo" runat="server" CssClass="btn btn-primary" ValidationGroup="GrpObligatorio"> <i class='material-icons'>done_all</i> Aceptar</asp:LinkButton>
|
||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="ModalPesos" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
|
||
<!-- Modal content-->
|
||
<div class="modal-content" style="width: 500px; margin-left: 50px;">
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Convertir Pesos</h4>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel runat="server" ID="UpdatePanel1">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-2"></div>
|
||
<div class="col-md-3" style="text-align: right;">
|
||
Tipo Cambio:
|
||
|
||
|
||
|
||
</div>
|
||
<div class="col-md-4">
|
||
<asp:TextBox CssClass="form-control" ID="TxtConvertirPesos" runat="server" Width="100px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtConvertirPesos" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:RequiredFieldValidator ID="RFVConvertirPesos" runat="server" ControlToValidate="TxtConvertirPesos" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Cambio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpConvertirPesos"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEConvertirPesos" runat="server" HighlightCssClass="vco" TargetControlID="RFVConvertirPesos" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
<div class="col-md-3"></div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:Button ID="BtnConvertirPesos" OnClick="BtnConvertirPesos_Click" runat="server" ClientIDMode="Static" Text="Convertir" CssClass="btn btn-primary" ValidationGroup="GrpConvertirPesos" />
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<%--MODAL PREGUNTA IEPS y Otros Impuestos--%>
|
||
<div id="ModalIEPS" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
|
||
<!-- Modal content-->
|
||
<div class="modal-content" style="width: 500px; margin-left: 50px;">
|
||
<div class="modal-header ">
|
||
<%--<button type="button" class="close" data-dismiss="modal">×</button>--%>
|
||
<h4 class="modal-title">Impuestos en la Factura</h4>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel runat="server" ID="UPDIEPS">
|
||
<ContentTemplate>
|
||
<div class="row" style="text-align: center;">
|
||
<asp:Label runat="server" Text="¿Desea agregarlos al gasto?" Style="font-size: 15px;" />
|
||
</div>
|
||
<br />
|
||
<div class="row">
|
||
<div class="col-md-1"></div>
|
||
<div class="col-md-2" style="text-align: left;">
|
||
<asp:CheckBox ID="ChkIEPS" runat="server" Text="IEPS" Visible="false" />
|
||
</div>
|
||
<div class="col-md-3" style="text-align: center; margin-top: 5px">
|
||
<asp:Label runat="server" ID="LbImporte" />
|
||
</div>
|
||
<div class="col-md-4">
|
||
<asp:DropDownList ID="DdlConceptoIEPS" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="PS" DataValueField="CvePS" Width="100px" ValidationGroup="GrpAgregar" Visible="false"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVConceptoIEPS" runat="server" ControlToValidate="DdlConceptoIEPS" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />Es necesario <b>seleccionar un concepto, </b>por favor ingréselo." InitialValue="-1" ValidationGroup="GrpAgregar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEConceptoIEPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVConceptoIEPS" Width="300px" BehaviorID="VCEConceptoIEPS"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
<div class="col-md-5"></div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-1"></div>
|
||
<div class="col-md-2" style="text-align: left; width: 140px">
|
||
<asp:CheckBox ID="ChkOtrosI" runat="server" Text="Otros Impuestos" Visible="false" />
|
||
</div>
|
||
<div class="col-md-3" style="text-align: center; margin-top: 5px">
|
||
<asp:Label runat="server" ID="LbImporte2" />
|
||
</div>
|
||
<div class="col-md-4">
|
||
<asp:DropDownList ID="DdlConceptoOI" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="PS" DataValueField="CvePS" Width="100px" ValidationGroup="GrpAgregar" Visible="false"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVConcepto" runat="server" ControlToValidate="DdlConceptoOI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />Es necesario <b>seleccionar un concepto, </b>por favor ingréselo." InitialValue="-1" ValidationGroup="GrpAgregar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEConcepto" runat="server" HighlightCssClass="vco" TargetControlID="RFVConcepto" Width="300px" BehaviorID="VCEConcepto"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:Button ID="BtnAgregarIEPS" OnClick="BtnAgregarIEPS_Click" runat="server" ClientIDMode="Static" Text="Agregar" ValidationGroup="GrpAgregar" CssClass="btn btn-primary" />
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal" runat="server" id="BtnCancelarotrosImpuestos" visible="false">Cancelar</button>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<%--MODAL IR A OC--%>
|
||
<div id="DivOrdenesCompraVinculadas" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog" style="width: 700px;">
|
||
<asp:UpdatePanel runat="server" ID="UpOCsVinculadas" class="modal-content" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Ordenes de compra vinculadas</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<asp:GridView AutoGenerateColumns="false" runat="server" ID="GvOCsVinculadas" GridLines="None" CssClass="table table-striped table-hover Widthall">
|
||
<Columns>
|
||
<asp:HyperLinkField DataNavigateUrlFields="CveOrdenCompra" DataNavigateUrlFormatString="/OC/OC.aspx?OC={0}" Target="_blank" HeaderText="Folio" DataTextField="FolioOC" ItemStyle-HorizontalAlign="Center" />
|
||
<asp:BoundField HeaderText="Descripción" DataField="Descripcion" />
|
||
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:d}" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button id="BtnCancelarOrdenesCompraVinculadas" runat="server" type="button" class="btn default" data-dismiss="modal">Cerrar</button>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
<%--FLETES--%>
|
||
<div id="ModalFletes" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel ID="UpFletes" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Fletes</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<asp:GridView ID="GVFletes" ShowHeaderWhenEmpty="true" runat="server" AutoGenerateColumns="false" GridLines="None" CssClass="table table-striped table-hover Widthall">
|
||
<Columns>
|
||
<asp:BoundField HeaderText="Solicitó" DataField="Solicito" />
|
||
<asp:BoundField HeaderText="Prestó" DataField="Presto" />
|
||
<asp:BoundField HeaderText="Origen" DataField="OrigenMunicipo" />
|
||
<asp:BoundField HeaderText="Destino" DataField="DestinoMunicipo" />
|
||
<asp:BoundField HeaderText="Precio" DataField="PrecioCompras" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||
<asp:BoundField HeaderText="Estatus" DataField="EstatusViaje" />
|
||
<asp:BoundField HeaderText="Fecha" DataField="Fecha" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button id="CancelarFletes" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||
<asp:Button Text="Guardar" ID="BtnFletes" CssClass="btn btn-primary" ValidationGroup="GrpModalFletes" runat="server" data-dismiss="modal" />
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<div id="DivAplicaSubProyecto" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel ID="UpAplicaSubProyecto" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">x</button>
|
||
<h4 class="modal-title">Aplicar SubProyecto a Productos Nuevos</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<%--<div class="form-group form-md-line-input input-iconright" id="divasignaproyecto" runat="server">
|
||
<asp:DropDownList ID="DdlAsignarProyecto" runat="server" CssClass=" form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Proyecto" DataValueField="CveProyecto">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label runat="server" id="LblProyectoDivAplica" for="<%= DdlAsignarProyecto.ClientID.ToString()%>">Proyecto:</label>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlAsignaSubProyecto" runat="server" CssClass=" form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto">
|
||
</asp:DropDownList>
|
||
<label id="LblSubProyectoDivAplica" runat="server" for="<%= DdlAsignaSubProyecto.ClientID.ToString()%>">Sucursal:</label>
|
||
</div>--%>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button Text="Guardar" ID="BtnAsignarSubProyecto" CssClass="btn btn-primary" runat="server" />
|
||
<button id="CancelarAplicaSubProyecto" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<div id="DivClasificacion" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel ID="UpAplicaClasificacion" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">x</button>
|
||
<h4 class="modal-title">Aplicar Clasificacion</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="form-group form-md-line-input input-iconright" id="div1" runat="server">
|
||
<%--<asp:DropDownList ID="DdlAplicaClasificacion" runat="server" CssClass=" form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="Clasificacion" DataValueField="CveClasificacion">
|
||
<asp:ListItem Selected="True" Text="Seleccione la Clasificación (Todas)" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>--%>
|
||
<label for="<%= DdlAplicaClasificacion.ClientID.ToString()%>">Clasificacion:</label>
|
||
</div>
|
||
<%-- <div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlAplicaPS" runat="server" CssClass=" form-control input-sm select2me" Width="50%" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="PSCodigo" DataValueField="CvePS">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
<asp:ListItem Text="*** Actualizar listado de Productos o Servicios ***" Value="-2"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label id="Label12" runat="server" for="<%= DdlAplicaPS.ClientID.ToString()%>">Producto o Servicio:</label>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlAplicaUM" runat="server" CssClass=" form-control input-sm select2me " Width="50%" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="UnidadMedida" DataValueField="CveUM"></asp:DropDownList></td>
|
||
<label for="<%= ddlUM.ClientID.ToString()%>">Unidad de Medida:</label>
|
||
</div>--%>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button Text="Aplicar" ID="BtnAplicarClasificacion" CssClass="btn btn-primary" runat="server" />
|
||
<button id="CancelarAplicacClasificacion" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<div id="DivContadoModal" align="center" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog" style="width: 450px;">
|
||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpContado" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">
|
||
<asp:Literal ID="LtlTituloPago" runat="server" Text="Contado" />
|
||
</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div style="border: 1px solid black; width: 85%; margin-left: 7.5%; display: block">
|
||
<asp:Panel ID="PnlContado" runat="server" Visible="False">
|
||
<asp:RadioButtonList ID="RBLContado" runat="server" RepeatDirection="Horizontal" Style="margin: auto" AutoPostBack="True" RepeatColumns="3">
|
||
<asp:ListItem Value="1" Selected="True">Bancos</asp:ListItem>
|
||
<asp:ListItem Value="3">Créditos</asp:ListItem>
|
||
<asp:ListItem Value="5">Acreedores</asp:ListItem>
|
||
<asp:ListItem Value="6">Caja Chica</asp:ListItem>
|
||
<asp:ListItem Value="2">Viáticos</asp:ListItem>
|
||
<asp:ListItem Value="4">Deudores</asp:ListItem>
|
||
</asp:RadioButtonList>
|
||
</asp:Panel>
|
||
</div>
|
||
|
||
<br />
|
||
<div style="text-align: center">
|
||
<asp:CheckBox runat="server" ID="ChkCreditoMultiple" AutoPostBack="true" Text=" Múltiple Crédito" Visible="false" />
|
||
</div>
|
||
|
||
<br />
|
||
<div runat="server" id="DivReembolso">
|
||
<asp:Panel ID="Panel1" CssClass="text-small" runat="server" Width="100%" Visible="true" BorderStyle="Solid" BorderColor="#6A92AD" BorderWidth="2px">
|
||
<div class="chequesie1">
|
||
<div class="row">
|
||
<div class="col-md-2" style="width: 90%; margin-left: 5%; margin-right: 5%; text-align: left">
|
||
<label>Número de Reembolso:</label>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-2" style="width: 90%; margin-left: 5%; margin-right: 5%; text-align: left">
|
||
<asp:TextBox ID="TxtNumeroReembolso" runat="server" Width="100%" />
|
||
<asp:RequiredFieldValidator ID="RfvTxtNumeroReembolso" runat="server" ControlToValidate="TxtNumeroReembolso" InitialValue="" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Num. Reembolso''</b> es necesario, por favor ingreselo." ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VceTxtNumeroReembolso" runat="server" HighlightCssClass="vco" TargetControlID="RfvTxtNumeroReembolso" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
</div>
|
||
<div class="chequesie2">
|
||
<div class="row">
|
||
<div class="col-md-2" style="width: 90%; margin-left: 4%; margin-right: 5%; text-align: left">
|
||
<asp:Label runat="server" ID="LblCheq">Caja Chica:</asp:Label>
|
||
</div>
|
||
</div>
|
||
<div id="DivPersonalReembolso" runat="server" visible="false" class="row">
|
||
<div class="col-md-2" style="width: 90%; margin-left: 4%; margin-right: 5%; text-align: left">
|
||
<asp:DropDownList ID="DdlPersonalReembolso" runat="server" CssClass="form-control input-sm select2me" Visible="false" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NombreCompletoNombre" DataValueField="CvePersonal" Width="103%" ValidationGroup="GrpGuardar">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-2" style="width: 90%; margin-left: 4%; margin-right: 5%; text-align: left">
|
||
<asp:DropDownList ID="DdlCuentaCajaChicaReembolso" runat="server" CssClass="form-control input-sm select2me" Visible="False" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="103%" ValidationGroup="GrpGuardar">
|
||
<asp:ListItem Selected="True" Text="Seleccione cuenta" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
|
||
</div>
|
||
<br />
|
||
</div>
|
||
</asp:Panel>
|
||
<table>
|
||
<tr>
|
||
<td runat="server" id="tdNumeroReembolso" visible="false"></td>
|
||
</tr>
|
||
</table>
|
||
<br />
|
||
<table style="width: 100%;">
|
||
<tr>
|
||
<td align="center" style="width: 100%;"></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
|
||
<div runat="server" id="DivContado">
|
||
<asp:Panel ID="PnlContadoBancos" CssClass="text-small" runat="server" Width="85%" Style="position: relative; margin: auto" Visible="true">
|
||
<div class="chequesie1">
|
||
<div class="row">
|
||
<div class="col-md-2" style="width: 25%; text-align: left">
|
||
<label style="margin-left: 10px">Movimiento:</label>
|
||
</div>
|
||
<div class="col-md-6" style="width: 75%; text-align: left">
|
||
<asp:DropDownList ID="DdlTipoTransaccion" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="TipoTransaccion" DataValueField="CveTipoTransaccion" Width="95%" ValidationGroup="GrpContado"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVTipoTransaccion" runat="server" ControlToValidate="DdlTipoTransaccion" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Movimiento''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCETipoTransaccion" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoTransaccion" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-2" style="width: 25%; text-align: left">
|
||
<label style="margin-left: 10px">Cuenta:</label>
|
||
</div>
|
||
<div class="col-md-6" style="width: 75%; text-align: left">
|
||
<asp:DropDownList ID="DdlCuenta" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="95%" ValidationGroup="GrpContado"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVCuenta" runat="server" ControlToValidate="DdlCuenta" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOCuenta" runat="server" HighlightCssClass="vco" TargetControlID="RFVCuenta" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row" runat="server" id="DivTarjeta" visible="false">
|
||
<label class="col-md-2">Tarjeta:</label>
|
||
<div class="col-md-6">
|
||
<asp:DropDownList ID="DdlTarjeta" runat="server" CssClass="input-sm form-control" AppendDataBoundItems="true" DataValueField="CveCuentaTarjeta" DataTextField="ConcatDatos" Width="250px" ValidationGroup="GrpContado"></asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="chequesie2" style="height: 100%">
|
||
<div class="row">
|
||
<label class="col-md-2" style="width: 25%; padding-left: 20px; text-align: left">
|
||
<asp:Label ID="LblFolio" runat="server" Text="Número:"></asp:Label></label>
|
||
<div class="col-md-4" style="width: 25%; text-align: left;">
|
||
<asp:TextBox ID="TxtDocumentoFolio" CssClass="form-control input-sm" runat="server" MaxLength="12" Width="80px"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtDocumentoFolio" Display="None" ErrorMessage="El campo <b>''Folio''</b> es requerido por la aplicación, por favor ingrese uno." ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" HighlightCssClass="vco" TargetControlID="RequiredFieldValidator1" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
<div class="col-md-2" style="width: 24%; text-align: left">
|
||
<label>Importe</label>
|
||
</div>
|
||
<div class="col-md-4 input-icon" style="width: 25%; text-align: left">
|
||
<i style="margin: 0px;">$</i>
|
||
<asp:TextBox ID="TxtDocumentoImporte" CssClass="form-control input-sm " Enabled="False" runat="server" MaxLength="12" Width="80px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FTBEDocumentoImporte" runat="server" TargetControlID="TxtDocumentoImporte" FilterType="Custom, Numbers" ValidChars=".," />
|
||
<asp:RangeValidator ID="RVDocumentoImporte" runat="server" Type="Currency" MinimumValue="0" MaximumValue="0" ErrorMessage="Importe Excedido" ControlToValidate="TxtDocumentoImporte" Display="Dynamic" ValidationGroup="GrpContado"></asp:RangeValidator>
|
||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="RVDocumentoImporte" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row" style="text-align: left; padding-left: 20px">
|
||
Observaciones:
|
||
|
||
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-8" style="width: 100%; text-align: left">
|
||
<asp:TextBox ID="TxtDocumentoObservaciones" CssClass="form-control input-sm" runat="server" MaxLength="500" Width="97%" Rows="3" TextMode="MultiLine"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
</div>
|
||
|
||
</asp:Panel>
|
||
|
||
<asp:Panel ID="PnlContadoCajaChica" CssClass="text-small" runat="server" Width="85%" Style="position: relative; margin: auto" Visible="False">
|
||
<div class="chequesie1">
|
||
<div class="row">
|
||
<label class="col-md-2">Movimiento:</label>
|
||
<div class="col-md-6">
|
||
<asp:DropDownList ID="DdlTipoTransaccionCaja" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="TipoTransaccion" DataValueField="CveTipoTransaccion" Width="156px" ValidationGroup="GrpContado"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVTipoTransaccionCaja" runat="server" ControlToValidate="DdlTipoTransaccionCaja" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Movimiento''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCETipoTransaccionCaja" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoTransaccionCaja" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-2">Cuenta:</label>
|
||
<div class="col-md-6">
|
||
<asp:DropDownList ID="DdlCuentaCaja" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="200px" ValidationGroup="GrpContado"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVCuentaCaja" runat="server" ControlToValidate="DdlCuentaCaja" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCECuentaCaja" runat="server" HighlightCssClass="vco" TargetControlID="RFVCuentaCaja" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="chequesie2" style="height: 100%">
|
||
<div class="row">
|
||
<label class="col-md-2">
|
||
<asp:Label ID="Label5" runat="server" Text="Número:"></asp:Label></label>
|
||
<div class="col-md-4">
|
||
<asp:TextBox ID="TxtDocumentoFolioCaja" CssClass="form-control input-sm" runat="server" MaxLength="12" Width="80px"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxtDocumentoFolioCaja" Display="None" ErrorMessage="El campo <b>''Folio''</b> es requerido por la aplicación, por favor ingrese uno." ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" HighlightCssClass="vco" TargetControlID="RequiredFieldValidator2" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
<label class="col-md-2">Importe</label>
|
||
<div class="col-md-4 input-icon">
|
||
<i style="margin: 0px;">$</i>
|
||
<asp:TextBox ID="TxtDocumentoImporteCaja" CssClass="form-control input-sm" Enabled="False" runat="server" MaxLength="12" Width="80px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumeros6" runat="server" TargetControlID="TxtDocumentoImporteCaja" FilterType="Custom, Numbers" ValidChars=".," />
|
||
<asp:RangeValidator ID="RVDocumentoImporteCaja" runat="server" Type="Currency" MinimumValue="0" MaximumValue="0" ErrorMessage="Importe Excedido" ControlToValidate="TxtDocumentoImporteCaja" Display="Dynamic" ValidationGroup="GrpContado"></asp:RangeValidator>
|
||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server" HighlightCssClass="vco" TargetControlID="RVDocumentoImporteCaja" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
<div class="row">
|
||
<label class="col-md-2">Observaciones:</label>
|
||
<div class="col-md-8">
|
||
<asp:TextBox ID="TxtDocumentoObservacionesCaja" CssClass="form-control input-sm" runat="server" MaxLength="12" Width="326px" Rows="3" TextMode="MultiLine"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
</div>
|
||
</asp:Panel>
|
||
|
||
<asp:Panel ID="PnlContadoFyE" CssClass="text-small" runat="server" Width="85%" Style="position: relative; margin: auto" Visible="False">
|
||
<div class="chequesie1">
|
||
<div class="row">
|
||
<label class="col-md-2">Funcionario Empleado:</label>
|
||
<div class="col-md-6">
|
||
<asp:DropDownList ID="DdlFuncionarioEmpleado" CssClass="form-control input-sm select2me" runat="server" AutoPostBack="true" DataTextField="NombreCompleto" DataValueField="CvePersonal" Width="276px" ValidationGroup="GrpContado"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVFuncionarioEmpleado" runat="server" ControlToValidate="DdlFuncionarioEmpleado" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Funcionario Empleado''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEFuncionarioEmpleado" runat="server" HighlightCssClass="vco" TargetControlID="RFVFuncionarioEmpleado" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<asp:Button ID="BtnCargarFuncionariosEmpleados" runat="server" ClientIDMode="Static" Text="CargaFuncionariosEmpleados" Style="display: none;" />
|
||
</div>
|
||
</div>
|
||
<div class="row" runat="server" id="RowCheque" visible="false">
|
||
<label class="col-md-2">Cheque:</label>
|
||
<div class="col-md-6">
|
||
<asp:DropDownList ID="DDlCheques" CssClass="form-control input-sm select2me" Width="250px" runat="server" DataTextField="FolioFecha" DataValueField="CveIE" AutoPostBack="True"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVCheques" runat="server" ControlToValidate="DDlCheques" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cheque''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCECheques" runat="server" HighlightCssClass="vco" TargetControlID="RFVCheques" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-2">Saldo:</label>
|
||
<div class="col-md-6">
|
||
<asp:Label ID="lblSaldoFE" runat="server"></asp:Label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="chequesie2" style="height: 100%">
|
||
<div class="row">
|
||
<div class="row">
|
||
<label class="col-md-2"></label>
|
||
<div class="col-md-4"></div>
|
||
<label class="col-md-2">Importe</label>
|
||
<div class="col-md-4 input-icon">
|
||
<i style="margin: 0px;">$</i>
|
||
<asp:TextBox ID="TxtDocumentoImporteFE" CssClass="form-control input-sm" runat="server" MaxLength="12" Width="80px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FTBEDocumentoImporteFE" runat="server" TargetControlID="TxtDocumentoImporteFE" FilterType="Custom, Numbers" ValidChars=".," />
|
||
<asp:RangeValidator ID="RVDocumentoImporteFE" runat="server" Type="Currency" MinimumValue="0" MaximumValue="0" ErrorMessage="Importe Excedido del Saldo del Funcionario Empleado" ControlToValidate="TxtDocumentoImporteFE" Display="None" ValidationGroup="GrpContado"></asp:RangeValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEDocumentoImporteFE" runat="server" HighlightCssClass="vco" TargetControlID="RVDocumentoImporteFE" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
<label class="col-md-2">Observaciones:</label>
|
||
<div class="col-md-8">
|
||
<asp:TextBox ID="TextBox3" runat="server" CssClass="form-control input-sm" MaxLength="12" Width="331px" Rows="3" TextMode="MultiLine"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
</div>
|
||
</asp:Panel>
|
||
|
||
<asp:Panel ID="PnlContadoDeudores" Width="100%" Style="position: relative; margin: auto" runat="server" Visible="False">
|
||
|
||
<asp:RadioButtonList ID="RBLTipoDeudor" runat="server" RepeatDirection="Horizontal" AutoPostBack="true">
|
||
<asp:ListItem Value="1" Selected="True">D.D</asp:ListItem>
|
||
<asp:ListItem Value="2">Comision</asp:ListItem>
|
||
</asp:RadioButtonList>
|
||
|
||
<div class="chequesie1">
|
||
<div class="row">
|
||
<label class="col-md-2">Deudor:</label>
|
||
<div class="col-md-6">
|
||
<asp:DropDownList ID="DdlDeudor" runat="server" AutoPostBack="true" CssClass="form-control input-sm" DataTextField="RazonSocial" DataValueField="CveProveedor" Width="276px" ValidationGroup="GrpContado"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVDeudor" runat="server" ControlToValidate="DdlDeudor" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Deudor''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEDeudor" runat="server" HighlightCssClass="vco" TargetControlID="RFVDeudor" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<asp:Button ID="Button1" runat="server" ClientIDMode="Static" Text="CargaFuncionariosEmpleados" Style="display: none;" />
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-2"></label>
|
||
<div class="col-md-8">
|
||
<asp:Label ID="Label6" runat="server"></asp:Label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="chequesie2">
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:UpdatePanel ID="UPDeudores" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvDeudores" runat="server" AutoGenerateColumns="False" CssClass="ScrollAD" data-heigth="200px" EmptyDataText="No se encontraron movimientos"
|
||
DataKeyNames="CveIE,Saldo,RazonSocial,Folio,CveProveedor,CveMoneda"
|
||
ToolTip="Listado de Movimientos" data-height="300" Style="width: 100%; height: 100%; text-align: center;" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="Chk" runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Folio Pago</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlFolio" runat="server" Text='<%# Eval("Folio") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Factura</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlCompra" runat="server" Text='<%# Eval("Referencia") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Saldo</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
<ItemStyle HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Fecha</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaDocumento", "{0:d}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
<ItemStyle HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Saldo Abonar</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Label ID="LblTotalDeudores" runat="server" ClientIDMode="Static" Text="0.00" Visible="false"></asp:Label>
|
||
<asp:TextBox ID="TxtSaldoDeudor" runat="server" Style="text-align: right;" CausesValidation="true" Enabled="false" MaxLength="12" Width="76px"></asp:TextBox>
|
||
<asp:RangeValidator ID="RVSaldoDeudor" runat="server" Type="Currency" MinimumValue="0" MaximumValue="0" ErrorMessage="Importe Excedido del Saldo del Deudor" ControlToValidate="TxtSaldoDeudor" Display="None"></asp:RangeValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEContadoDeudor" runat="server" HighlightCssClass="vco" TargetControlID="RVSaldoDeudor" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
<asp:CompareValidator ID="CVAmortAnti" runat="server" ControlToValidate="TxtSaldoDeudor" Display="None" ErrorMessage="El campo <b>''Importe Deudor''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency"></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOAmortAnti" runat="server" HighlightCssClass="vco" TargetControlID="CVAmortAnti" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>
|
||
Otros<br/>Gastos/Ingresos
|
||
</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:TextBox ID="TxtOtrosGastosIngresos" runat="server" Style="text-align: right;" CausesValidation="true" Enabled="false" MaxLength="12" Width="76px" onblur="FnSumOtrosIngEgs(this)" ></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender TargetControlID="TxtOtrosGastosIngresos" ValidChars="1234567890.-" runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
<%--<RowStyle CssClass="TextoAlterno" />
|
||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||
<HeaderStyle CssClass="Titulos" />--%>
|
||
</asp:GridView>
|
||
<asp:HiddenField ID="HiddenField2" runat="server" ClientIDMode="Static" Value="0" />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
</div>
|
||
</div>
|
||
<div class="chequesie1">
|
||
<div class="row">
|
||
<label class="col-md-1"></label>
|
||
<div class="col-md-4"></div>
|
||
<label class="col-md-2">Importe</label>
|
||
<div class="col-md-2 input-icon">
|
||
<i style="margin: 0px;">$</i>
|
||
<asp:TextBox ID="TxtContadoDeudor" runat="server" CssClass="form-control input-sm" MaxLength="12" Width="80px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FEContadoDeudor" runat="server" TargetControlID="TxtContadoDeudor" FilterType="Custom, Numbers" ValidChars=".," />
|
||
<asp:RangeValidator ID="RVContadoDeudor" runat="server" Type="Currency" MinimumValue="0" MaximumValue="0" ErrorMessage="Importe Excedido del Saldo del Deudor" ControlToValidate="TxtContadoDeudor" Display="None" ValidationGroup="GrpContado"></asp:RangeValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEContadoDeudor" runat="server" HighlightCssClass="vco" TargetControlID="RVContadoDeudor" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
<div class="col-md-2 input-icon">
|
||
<asp:TextBox ID="TxtDeudoresOtrosGastosIngresos" runat="server" CssClass="form-control input-sm" MaxLength="12" Width="80px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FilTxtDeudoresOtrosGastosIngresos" runat="server" TargetControlID="TxtDeudoresOtrosGastosIngresos" FilterType="Custom, Numbers" ValidChars=".," />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</asp:Panel>
|
||
|
||
|
||
<asp:Panel ID="PnlContadoCreditos" CssClass="text-small" runat="server" Width="85%" Style="position: relative; margin: auto" Visible="true">
|
||
<div class="chequesie1">
|
||
<div class="row">
|
||
<label class="col-md-2">Tipo</label>
|
||
<div class="col-md-10">
|
||
<asp:DropDownList ID="DdlTipoCredito" Width="300px" CssClass="form-control input-sm select2me" OnSelectedIndexChanged="DdlTipoCredito_SelectedIndexChanged" AutoPostBack="true" runat="server">
|
||
<asp:ListItem Text="Compra" Value="1" />
|
||
<asp:ListItem Text="Mensualidad" Value="2" Selected="True" />
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="chequesie2">
|
||
<div class="row">
|
||
<label class="col-md-2">Crédito:</label>
|
||
<div class="col-md-10">
|
||
<asp:DropDownList ID="DdlCredito" Width="300px" CssClass="form-control input-sm select2me" DataTextField="ReferenciaImporte" DataValueField="CveCredito" runat="server" AutoPostBack="True"></asp:DropDownList></td>
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
<div class="row" id="DivCreditoMensualidad" runat="server">
|
||
<label class="col-md-2">Mensualidad</label>
|
||
<div class="col-md-10">
|
||
<asp:DropDownList ID="DdlCreditoDetalle" Width="300px" CssClass="form-control input-sm select2me" DataValueField="CveCreditoDetalle" DataTextField="PeriodoTexto" runat="server"></asp:DropDownList></td>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<asp:RequiredFieldValidator ID="RFVCreditoDetalle" runat="server" ControlToValidate="DdlCreditoDetalle" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Crédito''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCECreditoDetalle" runat="server" HighlightCssClass="vco" TargetControlID="RFVCreditoDetalle" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
</div>
|
||
</asp:Panel>
|
||
|
||
<asp:Panel ID="PnlContadoAcreedores" CssClass="text-small" runat="server" Width="85%" Style="position: relative; margin: auto" Visible="False">
|
||
<div class="chequesie1">
|
||
<div class="row">
|
||
<label class="col-md-2">Acreedor:</label>
|
||
<div class="col-md-9">
|
||
<asp:DropDownList ID="DdlAcreedor" runat="server" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="RazonSocialSaldo" DataValueField="CveProveedor" Width="376px" ValidationGroup="GrpContado"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVAcreedor" runat="server" ControlToValidate="DdlAcreedor" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Acreedor''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEAcreedor" runat="server" HighlightCssClass="vco" TargetControlID="RFVAcreedor" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-2" visible="false" id="LblDetalle" runat="server">Detalle:</label>
|
||
<div class="col-md-9">
|
||
<asp:DropDownList ID="DdlAcreedorDetalle" Visible="false" runat="server" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="CveIEImporte" DataValueField="CveIE" Width="376px" ValidationGroup="GrpContado"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVAcreedorDetalle" runat="server" ControlToValidate="DdlAcreedorDetalle" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Acreedor Detalle''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpContado"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEAcreedorDetalle" runat="server" HighlightCssClass="vco" TargetControlID="RFVAcreedorDetalle" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-2"></label>
|
||
<div class="col-md-8">
|
||
<asp:Label ID="Label1" runat="server"></asp:Label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="chequesie2" style="height: 100%">
|
||
<div class="row">
|
||
<label class="col-md-2"></label>
|
||
<div class="col-md-4"></div>
|
||
<label class="col-md-2">Importe</label>
|
||
<div class="col-md-4 input-icon">
|
||
<i style="margin: 0px;">$</i>
|
||
<asp:TextBox ID="TxtContadoAcreedor" runat="server" CssClass="form-control input-sm" MaxLength="12" Width="80px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxtContadoAcreedor" FilterType="Custom, Numbers" ValidChars=".," />
|
||
<asp:RangeValidator ID="RVContadoAcreedor" runat="server" Type="Currency" MinimumValue="0" MaximumValue="0" ErrorMessage="Importe Excedido del Saldo del Acreedor" ControlToValidate="TxtContadoAcreedor" Display="None" ValidationGroup="GrpContado"></asp:RangeValidator>
|
||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" HighlightCssClass="vco" TargetControlID="RVContadoAcreedor" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
</div>
|
||
</asp:Panel>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button ID="BtnContado" OnClick="BtnContado_Click" runat="server" class="btn btn-success" Text="Guardar" ValidationGroup="GrpContado" />
|
||
<button id="Button2" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
<asp:HiddenField ID="HiddenField1" runat="server" Value="-1" ClientIDMode="Static" />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<%--MODAL AGREGAR/EDITAR PS--%>
|
||
<div id="divAddProducto" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
<asp:UpdatePanel ID="UpPSS" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
<span aria-hidden="true">×</span>
|
||
</button>
|
||
<h4 class="modal-title" id="H1" runat="server">Agregar Concepto</h4>
|
||
</div>
|
||
<div id="DVBodyAddProducto" style="overflow: auto!important">
|
||
<div class="modal-body">
|
||
|
||
<asp:UpdatePanel ID="UpBodyAddProducto" UpdateMode="Conditional" runat="server">
|
||
<ContentTemplate>
|
||
|
||
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtCantidad" ClientIDMode="Static" runat="server" CssClass=" form-control" CausesValidation="true" MaxLength="12"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumerosCantidad" runat="server" TargetControlID="TxtCantidad" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:RequiredFieldValidator ID="RFVCantidad" runat="server" ControlToValidate="TxtCantidad" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingréselo." ValidationGroup="GprAgregaPS"></asp:RequiredFieldValidator>
|
||
<%--<ajax:ValidatorCalloutExtender ID="VCOCantidad1" runat="server" HighlightCssClass="vco" TargetControlID="RFVCantidad" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||
<%-- <asp:CompareValidator ID="CVCantidad" runat="server" ControlToValidate="TxtCantidad" Display="None" ErrorMessage="El campo <b>''Cantidad''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GprAgregaPS"></asp:CompareValidator>--%>
|
||
<%--<ajax:ValidatorCalloutExtender ID="VCOCantidad2" runat="server" HighlightCssClass="vco" TargetControlID="CVCantidad" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||
<label for="<%= TxtCantidad.ClientID.ToString()%>">Cantidad:</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<asp:UpdatePanel ID="UPPClasificacion" runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
||
<ContentTemplate>
|
||
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:HiddenField runat="server" ID="HdnTipoPS" Value="-1" />
|
||
<asp:DropDownList ID="DdlClasificacion" runat="server" CssClass=" form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Width="100%">
|
||
<asp:ListItem Selected="True" Text="Seleccione la Clasificación (Todas)" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= DdlClasificacion.ClientID.ToString()%>">Clasificación:</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<ADS:Dropdownlost runat="server" ID="DdlPS" CssStyle="width:100%" CssClass="form-control input-sm DdlPS" CssClassDdl="select2me" DataTextField="PSCodigo" DataValueField="CvePS" />
|
||
|
||
<label for="<%= DdlPS.ClientID.ToString()%>">
|
||
Productos / Servicio:<label>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<br />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<asp:UpdatePanel ID="UPPUM" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="ddlUM" runat="server" CssClass=" form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" Width="100"></asp:DropDownList></td>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<label for="<%= ddlUM.ClientID.ToString()%>">Unidad de Medida:</label>
|
||
</div>
|
||
</ContentTemplate>
|
||
<%-- <Triggers>
|
||
<asp:AsyncPostBackTrigger ControlID="DdlPS" EventName="SelectedIndexChanged" />
|
||
</Triggers>--%>
|
||
</asp:UpdatePanel>
|
||
<asp:Label ID="LblUnidadMedida" runat="server" Text="UM" Visible="false"></asp:Label>
|
||
<asp:HiddenField ID="HdnUnidadMedida" runat="server" Value="-1" />
|
||
<asp:HiddenField ID="HdnIVAPS" runat="server" Value="-1" />
|
||
<asp:HiddenField ID="HdnPS" runat="server" Value="-1" />
|
||
<asp:HiddenField ID="HdnAsientoContable" runat="server" Value="-1" />
|
||
<asp:HiddenField ID="HdnCtaContable" runat="server" Value="-1" />
|
||
<asp:HiddenField ID="HdnCodigo" runat="server" Value="-1" />
|
||
<asp:HiddenField ID="HdnClasificacion" runat="server" Value="-1" />
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlTipoGasto" runat="server" DataTextField="TipoGasto" DataValueField="CveTipoGasto" Width="100%" AppendDataBoundItems="true" CssClass="form-control input-sm select2me">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= DdlTipoGasto.ClientID.ToString()%>">Tipo de Gasto:</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<br />
|
||
<div>
|
||
<label>Observación:</label>
|
||
<br />
|
||
<asp:TextBox ID="TxtObsPS" runat="server" CssClass="form-control" Height="50" Width="100%" TextMode="MultiLine" CausesValidation="true" MaxLength="500"></asp:TextBox>
|
||
</div>
|
||
<asp:UpdatePanel ID="UPPProyecto" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-6" id="divproyecto" runat="server">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlProyecto" CssClass=" form-control input-sm select2me" runat="server" Width="50%" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Proyecto" DataValueField="CveProyecto">
|
||
<%--<asp:ListItem Selected="true" Text="Seleccione" Value="-1"></asp:ListItem>--%>
|
||
</asp:DropDownList>
|
||
<%-- <asp:RequiredFieldValidator runat="server" Enabled="true" Display="None" ID="RFVProyecto" ControlToValidate="DdlProyecto" InitialValue="-1" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Proyecto''</b> es necesario, por favor seleccione uno." ValidationGroup="GprAgregaPS"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEProyecto" runat="server" HighlightCssClass="vco" TargetControlID="RFVProyecto" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||
<label runat="server" id="LblProyecto" for="<%= DdlProyecto.ClientID.ToString()%>">Proyecto:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlSubProyecto" AutoPostBack="true" CssClass=" form-control input-sm select2me" runat="server" OnSelectedIndexChanged="DdlSubProyecto_SelectedIndexChanged" Width="50%" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto">
|
||
<asp:ListItem Selected="true" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<%--<asp:RequiredFieldValidator runat="server" Enabled="true" Display="None" ID="RFVSubProyecto" ControlToValidate="DdlSubProyecto" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''SubProyecto''</b> es necesario, por favor seleccione uno." ValidationGroup="GprAgregaPS"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCORVSubProyecto" runat="server" HighlightCssClass="vco" TargetControlID="RFVSubProyecto" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||
<label runat="server" id="LblSubProyecto" for="<%= DdlSubProyecto.ClientID.ToString()%>">SubProyecto:</label>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="col-md-4">
|
||
<div runat="server" id="DVCultivosCuadro" visible="false" class="form-group form-md-line-input input-iconright">
|
||
|
||
<asp:DropDownList ID="DdlCultivosCuadro" CssClass=" form-control input-sm select2me" runat="server" DataTextField="TemporadaCuadro" Style="width: 100%; max-width: 600px;"
|
||
DataValueField="CveCultivoCuadroDetalle" ValidationGroup="GrpDetalleGuardar">
|
||
</asp:DropDownList>
|
||
|
||
<asp:RequiredFieldValidator ID="RfvDdlCultivosCuadro" runat="server" ControlToValidate="DdlCultivosCuadro" CssClass="help-block errorimput" InitialValue="-1"
|
||
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cultivo''</b> es necesario, por favor ingréselo."
|
||
ValidationGroup="GprAgregaPS" Visible="false" Display="None">
|
||
</asp:RequiredFieldValidator>
|
||
|
||
<label runat="server" id="Label9" for="<%= DdlCultivosCuadro.ClientID.ToString()%>">Cultivo:</label>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<br />
|
||
<div class="row">
|
||
<div class="col-md-4">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtPrecio" ClientIDMode="Static" runat="server" CssClass=" form-control " CausesValidation="true" MaxLength="12" ValidationGroup="GprAgregaPS"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumerosTxtPrecio" runat="server" TargetControlID="TxtPrecio" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:RequiredFieldValidator ID="RFVPrecio" runat="server" ControlToValidate="TxtPrecio" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Precio''</b> es necesario, por favor ingréselo." ValidationGroup="GprAgregaPS"></asp:RequiredFieldValidator>
|
||
|
||
<label for="<%= TxtPrecio.ClientID.ToString()%>">Precio:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-4">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtDescuentoModal" ClientIDMode="Static" runat="server" CssClass=" form-control " Text="0" CausesValidation="true" MaxLength="12" ValidationGroup="GprAgregaPS"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FTBEDescuento" runat="server" TargetControlID="TxtDescuentoModal" FilterType="Custom, Numbers" ValidChars="." />
|
||
|
||
<label for="<%= TxtDescuentoModal.ClientID.ToString()%>">Descuento:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-4">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtOtrosGastos" ClientIDMode="Static" runat="server" CssClass=" form-control " Text="0" CausesValidation="true" MaxLength="12" ValidationGroup="GprAgregaPS"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FTEOtrosGastos" runat="server" TargetControlID="TxtOtrosGastos" FilterType="Custom, Numbers" ValidChars="." />
|
||
|
||
<label for="<%= TxtOtrosGastos.ClientID.ToString()%>">Gastos:</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
<asp:UpdatePanel ID="UpIVA" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-3" id="divIVA" runat="server" visible="false">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlIVA" CssClass="form-control select2me" Style="width: 100%; display: inline-block;" runat="server" Enabled="false">
|
||
<asp:ListItem Selected="True" Value="1.08">8%</asp:ListItem>
|
||
<asp:ListItem Value="1.16">16%</asp:ListItem>
|
||
<asp:ListItem Value="1">0%</asp:ListItem>
|
||
</asp:DropDownList>
|
||
<%--<asp:TextBox ID="TxtIVAModal" ClientIDMode="Static" Enabled="false" runat="server" CssClass=" form-control " CausesValidation="true" MaxLength="12" ValidationGroup="GprAgregaPS"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FTBEIVA" runat="server" TargetControlID="TxtIVAModal" FilterType="Custom, Numbers" ValidChars="." />--%>
|
||
<label for="<%= DdlIVA.ClientID.ToString()%>">% IVA:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3" id="divImporteImportacion" runat="server" visible="false">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="txtImportacion" ClientIDMode="Static" runat="server" CssClass=" form-control " CausesValidation="true"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FTBEImportacion" runat="server" TargetControlID="txtImportacion" FilterType="Custom, Numbers" ValidChars="." />
|
||
<%--<asp:TextBox ID="TxtIVAModal" ClientIDMode="Static" Enabled="false" runat="server" CssClass=" form-control " CausesValidation="true" MaxLength="12" ValidationGroup="GprAgregaPS"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FTBEIVA" runat="server" TargetControlID="TxtIVAModal" FilterType="Custom, Numbers" ValidChars="." />--%>
|
||
<label for="<%= DdlIVA.ClientID.ToString()%>">IVA Importación:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtRetIVAModal" ClientIDMode="Static" Enabled="false" runat="server" CssClass=" form-control " CausesValidation="true" MaxLength="12" ValidationGroup="GprAgregaPS"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FTBERetIVA" runat="server" TargetControlID="TxtRetIVAModal" FilterType="Custom, Numbers" ValidChars="." />
|
||
<label for="<%= TxtRetIVAModal.ClientID.ToString()%>">% RetIVA:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtRetISRModal" ClientIDMode="Static" Enabled="false" runat="server" CssClass=" form-control " CausesValidation="true" MaxLength="12" ValidationGroup="GprAgregaPS"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FTBERetISR" runat="server" TargetControlID="TxtRetISRModal" FilterType="Custom, Numbers" ValidChars="." />
|
||
<label for="<%= TxtRetISRModal.ClientID.ToString()%>">% RetISR:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtIEPSModal" ClientIDMode="Static" Enabled="false" runat="server" onkeyup="Recalcula();" CssClass=" form-control " CausesValidation="true" MaxLength="12" ValidationGroup="GprAgregaPS"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FTBEIEPS" runat="server" TargetControlID="TxtIEPSModal" FilterType="Custom, Numbers" ValidChars="." />
|
||
<label for="<%= TxtIEPSModal.ClientID.ToString()%>">% IEPS:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3" runat="server" id="DVModalAddPSChkDesvincularAF" visible="false">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:CheckBox runat="server" ID="ChkModalDesvincularAF" CssClass="form-control " />
|
||
<label for="<%= ChkModalDesvincularAF.ClientID.ToString()%>">Desvicnular A.F.:</label>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<br />
|
||
<asp:UpdatePanel ID="UpEsNoDeduciblePS" runat="server" UpdateMode="Conditional" Visible="false">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<label>¿Es No Deducible? </label>
|
||
<asp:CheckBox ID="ChkEsNoDeduciblePS" runat="server" />
|
||
</div>
|
||
</div>
|
||
<br />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<asp:Label ID="Label11" runat="server" Text="Total:"></asp:Label>  $
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<asp:Label ID="LblTotalPS" ClientIDMode="Static" runat="server" Text="0.00"></asp:Label>
|
||
</div>
|
||
|
||
<div class="col-md-6" align="right" id="divagregrarotrops" runat="server">
|
||
<label>Continuar agregando:</label>
|
||
<asp:CheckBox ID="ChkAgregar" runat="server" Checked="true" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="modal-footer">
|
||
<asp:UpdatePanel ID="UpAddProductoBotones" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<%--NOTIFICACION DE ALIAS PS--%>
|
||
<div runat="server" id="DivAddProductoAliasPS" visible="false" class="row">
|
||
<div class="col-md-12" style="vertical-align: middle;" align="center">
|
||
<div style="z-index: 5; position: relative;">
|
||
<div class="alert alert-warning alert-dismissable" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||
<strong style="font-size: 14px; margin-right: 25px;">Información: </strong>
|
||
<asp:Literal Text="Se asignará el alias del concepto de la factura al PS seleccionado" runat="server" ID="LtAddProductAliasPS"></asp:Literal>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
|
||
<asp:Button CssClass="btn btn-primary" ID="LbAgregar" runat="server" Enabled="false" Text="Agregar" ValidationGroup="GprAgregaPS" />
|
||
<button type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
<%-- PS NO REGISTRADO - AGREGAR ALIAS A PRODUCTO--%>
|
||
<div id="ModalPSAlias" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
<asp:UpdatePanel ID="UpPSAlias" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Asignar Producto</h4>
|
||
</div>
|
||
<div class="modal-body rowpadding">
|
||
<div class="row">
|
||
<label class="col-md-2">Actual:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtPSAlias" ClientIDMode="Static" Enabled="false" runat="server" Width="400px"></asp:TextBox>
|
||
<asp:HiddenField ID="HdnAliasInd" ClientIDMode="Static" runat="server" />
|
||
<asp:HiddenField ID="HdnPSAliasCveClasificacion" ClientIDMode="Static" runat="server" />
|
||
<asp:HiddenField ID="HdnPSAliasClasificacion" ClientIDMode="Static" runat="server" />
|
||
<asp:HiddenField ID="HdnPSAliasCveSATPS" ClientIDMode="Static" runat="server" />
|
||
<asp:HiddenField ID="HdnPSAliasSATClavePS" ClientIDMode="Static" runat="server" />
|
||
<asp:HiddenField ID="HdnPSAliasCveTipoPS" ClientIDMode="Static" runat="server" />
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-2">Producto:</label>
|
||
<div class="col-md-10">
|
||
<ADS:Dropdownlost runat="server" ID="DdlPSAlias2" CssStyle="width: 100%;" CssClassDdl="select2me" DataTextField="PSCodigoClasificacion" data-metodo="getps2" DataValueField="CvePS" />
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-2">U.M.:</label>
|
||
<div class="col-md-4">
|
||
<asp:DropDownList ID="DdlUnidadAlias" runat="server" Class="table-group-action-input form-control input-inline input-sm" Style="width: 125px !important;" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida"></asp:DropDownList>
|
||
</div>
|
||
<div class="col-md-4">
|
||
<asp:CheckBox ID="ChkAliasFlexible" Text="Alias Flexible:" runat="server" TextAlign="Left" AutoPostBack ="true" Visible="false" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button id="CancelarPSAlias" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||
<asp:Button Text="Asignar Producto" ID="BtnAddPSAlias" CssClass="btn btn-primary" ValidationGroup="GrpModalPSAlias" runat="server" />
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
<%-- UM NO REGISTRADA - AGREGAR ALIAS/EQUIVALENCIA --%>
|
||
<div id="ModalUMAlias" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel ID="UpUMAlias" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 id="LtUMAlias" class="modal-title">Unidad de medida</h4>
|
||
</div>
|
||
<div class="modal-body rowpadding">
|
||
|
||
<div class="row">
|
||
<label class="col-md-3">Actual:</label>
|
||
<div class="col-md-3">
|
||
<asp:TextBox ID="TxtUMAlias" ClientIDMode="Static" runat="server" disabled="disable"></asp:TextBox>
|
||
<asp:HiddenField ID="HdnUMAlias" ClientIDMode="Static" runat="server" />
|
||
<asp:HiddenField ID="HdnUMAliasModalidad" ClientIDMode="Static" runat="server" />
|
||
<asp:HiddenField ID="HdnUMAliasInd" ClientIDMode="Static" runat="server" />
|
||
<asp:HiddenField ID="HdnUMAliasCveSATUM" ClientIDMode="Static" runat="server" />
|
||
</div>
|
||
<label id="LbTituloCveSATUM" class="col-md-2" style="max-width: 90px;">Clave SAT:</label>
|
||
<div class="col-md-3">
|
||
<label id="LbCveSATUM"></label>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="RowUMAbreviatura" class="row hidden">
|
||
<label class="col-md-3">Abreviatura:</label>
|
||
<div class="col-md-9">
|
||
<asp:TextBox ID="TxtUMAbreviatura" ClientIDMode="Static" runat="server"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="RowUMAlias" class="row hidden">
|
||
<label class="col-md-3">Unidad de Medida</label>
|
||
<div class="col-md-9">
|
||
<asp:DropDownList ID="DdlUMAlias" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlUMAlias_SelectedIndexChanged" CssClass="form-control input-sm select2me" Width="360px" CausesValidation="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida"></asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="RowUMEquivalencia" class="hidden rowpadding">
|
||
<div class="row">
|
||
<label class="col-md-3">UM Base:</label>
|
||
<div class="col-md-9">
|
||
<asp:TextBox ID="TxtUMBase" ClientIDMode="Static" runat="server" Enabled="false"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-3">
|
||
1
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<label id="LbUMActual" class="bold"></label>
|
||
Equivale:</label>
|
||
<div class="col-md-9">
|
||
<asp:TextBox ID="TxtUMEquivalenciaCantidad" ClientIDMode="Static" runat="server"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FTEUMEquivalenciaCantidad" runat="server" TargetControlID="TxtUMEquivalenciaCantidad" FilterType="Custom, Numbers" ValidChars="." />
|
||
<label id="LbUMBase" class="bold"></label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
<div class="row">
|
||
<div class="col-md-12 text-left">
|
||
<button id="btnAgregarUM" onclick="MostrarAgregarUM()" type="button" class="btn btn-default btn-xs" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro de agregar como NUEVA Unidad de Medida?" data-btn-ok-label="si">
|
||
Agregar como nueva unidad de medida
|
||
|
||
|
||
|
||
</button>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button id="CancelarUMAlias" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||
<asp:Button Text="UMAlias" ID="BtnUMAlias" OnClick="BtnUMAlias_Click" CssClass="btn btn-primary" ValidationGroup="GrpModalUMAlias" ClientIDMode="Static" runat="server" />
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<%-- COMPLEMENTOS PAGO --%>
|
||
<div id="ModalComplementoPagos" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel ID="UpComplementoPagos" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Complemento Pagos</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<asp:GridView ID="GvComplementoPagos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveFactura" EmptyDataText="Sin resultados" ShowHeaderWhenEmpty="true" CssClass="table table-striped table-hover Widthall ScrollAD" GridLines="None" data-sort="true">
|
||
<Columns>
|
||
<asp:BoundField HeaderText="SerieFolio" DataField="SerieFolioComplemento" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" />
|
||
<asp:BoundField HeaderText="Fecha" DataField="FechaComplemento" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" />
|
||
<asp:BoundField HeaderText="Importe" DataField="Importe" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="15%" />
|
||
<asp:BoundField HeaderText="XML" ItemStyle-HorizontalAlign="Center" />
|
||
<asp:BoundField HeaderText="PDF" ItemStyle-HorizontalAlign="Center" />
|
||
<asp:TemplateField Visible="false" HeaderText="Op" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100PX">
|
||
<ItemTemplate>
|
||
|
||
<asp:LinkButton runat="server" ID="LnkDesVincularComplemento" CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-chain-broken' aria-hidden='true'></i>" ToolTip="Des Vincular Complemento" OnClick="LnkDesVincularComplemento_Click"
|
||
data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea Des Vincular el complemento?" data-btn-ok-label="si" />
|
||
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button id="CancelarComplementoPagos" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<div id="DivOtrosGastos" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpOtrosGastos" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header ">
|
||
<h4 class="modal-title">
|
||
<asp:Literal ID="ltlTipotitulo" Text="Otros Gastos" runat="server"> </asp:Literal></h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlOrdenCorte" CssClass="form-control select2me" AppendDataBoundItems="true" Style="width: 100%;" runat="server" DataTextField="FolioFechaHuerta" DataValueField="CveOrdenCorte">
|
||
</asp:DropDownList>
|
||
<label for="<%= DdlOrdenCorte.ClientID.ToString()%>">Folio OC:</label>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button ID="BtnAddOtrosGastos" OnClick="BtnAddOtrosGastos_Click" runat="server" Text="Guardar" CssClass="btn btn-primary" ValidationGroup="GrpGuardarModal" />
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<div id="FacturaNC" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel ID="UpFacturaNC" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Facturas</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<ajax:TabContainer ID="TabModoNC" runat="server" AutoPostBack="true" ActiveTabIndex="0" Width="100%" OnActiveTabChanged="TabModoNC_ActiveTabChanged">
|
||
<ajax:TabPanel runat="server" HeaderText="Saldo">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<label class="col-md-6"><b>Total NC.: </b></label>
|
||
<div class="col-md-6">
|
||
<asp:Label ID="LblTotalNC" runat="server"></asp:Label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<label class="col-md-6"><b>Aplicado: </b></label>
|
||
<div class="col-md-6">
|
||
<asp:Label ID="LblAplicado" runat="server"></asp:Label>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-6 text-right">
|
||
<input type="text" id="TxtBusquedaNC" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaNC','{0}')", GvFacturaNC.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 120px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaNC','{0}')", GvFacturaNC.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
<div class="col-md-6 text-right">
|
||
<asp:UpdatePanel ID="UpChkNCInvNC" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:CheckBox ID="ChkNCInvNC" Text="Afecta Rep Sin Entrada" runat="server" />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:GridView ID="GvFacturaNC" OnRowDataBound="GvFacturaNC_RowDataBound"
|
||
DataKeyNames="CveCompra,TipoCambio,CveTipoConcepto,UUID,Saldo,SerieFolio" runat="server" AutoGenerateColumns="false" GridLines="None" CssClass="table table-striped table-hover Widthall ScrollAD">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="ChkFacturaNC" runat="server" />
|
||
<span style='display: none'><%# Eval("UUID")%></span>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:HyperLinkField DataTextField="SerieFolio" HeaderText="Folio" DataNavigateUrlFields="CveCompra" DataNavigateUrlFormatString="/Compras/Compras.aspx?CveCompra={0}" Target="_blank" ItemStyle-HorizontalAlign="Left" />
|
||
<asp:BoundField HeaderText="Fecha" DataField="Fecha" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
||
<asp:BoundField HeaderText="Importe/Saldo" DataField="Saldo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||
<asp:TemplateField ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:TextBox ID="TxtImporte" runat="server" Width="100%" CssClass="text-right" />
|
||
<ajax:FilteredTextBoxExtender ID="FTETxtImporte" runat="server" TargetControlID="TxtImporte" FilterType="Custom, Numbers" ValidChars="." />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
<ajax:TabPanel ID="TabNCAlmacen" runat="server" HeaderText="Almacen">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-6 text-left">
|
||
<asp:UpdatePanel ID="UpMostrarTodos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:CheckBox ID="ChkMostrarTodos" Text="Mostrar Todos" runat="server" OnCheckedChanged="ChkMostrarTodos_CheckedChanged" AutoPostBack="true" />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="col-md-6 h4 text-right">
|
||
Saldo: $<asp:Label Text="0.00" ID="LbNCInvSaldoAlmacen" runat="server" />
|
||
</div>
|
||
</div>
|
||
<br />
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:GridView ID="GVNCInvAlmacen" runat="server" EmptyDataText="Aun no hay registros." Width="100%" AutoGenerateColumns="False" ShowHeader="true" ShowHeaderWhenEmpty="True" DataKeyNames="CveCompraDetalle,CveCompra,TipoCambio,PU,IVA,IEPSPS" CssClass="table table-striped table-hover Widthall ScrollAD" data-heighterror="450" data-freezerows="1" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="Cantidad">
|
||
<ItemTemplate>
|
||
<asp:TextBox ID="TxtCantidadNCInv" CssClass="form-control input-sm" runat="server" />
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumerosFolio" runat="server" TargetControlID="TxtCantidadNCInv" FilterType="Numbers, custom" ValidChars="." />
|
||
</ItemTemplate>
|
||
<ItemStyle HorizontalAlign="Center" Width="10%" />
|
||
</asp:TemplateField>
|
||
<asp:HyperLinkField HeaderText="SerieFolio" DataTextField="SerieFolio" Target="_blank" DataNavigateUrlFields="CveCompra" DataNavigateUrlFormatString="/Compras/Compras.aspx?CveCompra={0}" />
|
||
<asp:BoundField HeaderText="Original" DataField="CantidadC" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="5%" />
|
||
<asp:BoundField HeaderText="Surtido" DataField="CantidadS" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="5%" />
|
||
<asp:BoundField HeaderText="Pendiente" DataField="CantidadF" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="5%" />
|
||
<asp:BoundField HeaderText="Unidad" DataField="UM" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="7.5%" />
|
||
<asp:BoundField HeaderText="Producto" DataField="CodigoPS" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="30%" />
|
||
<asp:TemplateField HeaderText="P.U." ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%">
|
||
<ItemTemplate>
|
||
<asp:Textbox ID="TxtPU" Width="60px" Text='<%# Eval("PU", "{0:N2}") %>' CssClass="textaslabel" runat="server"></asp:Textbox>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%">
|
||
<ItemTemplate>
|
||
<asp:Label ID="LbTotal" Text='<%# (CDbl(Eval("PU").ToString) * CDbl(Eval("CantidadF").ToString)).ToString("N2") %>' runat="server"></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-12 h5 text-right">
|
||
Importe: $<asp:Label Text="0.00" ID="LbNCInvImporteAlmacen" runat="server" />
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
</ajax:TabContainer>
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:UpdatePanel ID="UpFooterFacturaNC" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:Button Text="Guardar" ID="BtnFacturaNC" OnClick="BtnFacturaNC_Click" CssClass="btn btn-primary" ValidationGroup="GrpFacturaNC" runat="server" Visible="false" />
|
||
<asp:Button Text="Aplicar NC" ID="BtnNCInvAlmacen" OnClick="BtnNCInvAlmacen_Click" CssClass="btn btn-primary" ValidationGroup="GrpModalNCInv" runat="server" Visible="false" />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<%-- ACTUALIZAR TIPO CAMBIO PREPOLIZA --%>
|
||
<div id="ModalActualizarTC" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel ID="UpActualizarTC" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Actualizar Tipo Cambio</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="form-group">
|
||
<label for="<%=TxtActualizarTC_TCActual.ClientID.ToString()%>" class="col-md-4 col-md-offset-2 control-label">Tipo Cambio Actual:</label>
|
||
<div class="input-group col-md-6">
|
||
<span class="input-group-addon">$</span>
|
||
<asp:TextBox ID="TxtActualizarTC_TCActual" disabled Width="100" Text="0.00" CssClass="form-control input-sm text-right" runat="server" />
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label for="<%=TxtActualizarTC_TCActualizar.ClientID.ToString()%>" class="col-md-4 col-md-offset-2 control-label">Tipo Cambio Actualizar:</label>
|
||
<div class="input-group col-md-6">
|
||
<span class="input-group-addon">$</span>
|
||
<asp:TextBox ID="TxtActualizarTC_TCActualizar" Width="100" Text="0.00" CssClass="form-control input-sm text-right" runat="server" />
|
||
<ajax:FilteredTextBoxExtender ID="FTB_TCActualizar" runat="server" TargetControlID="TxtActualizarTC_TCActualizar" FilterType="Custom, Numbers" ValidChars="." />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button id="CancelarActualizarTC" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||
<asp:Button Text="Actualizar" ID="BtnActualizarTC" OnClick="BtnActualizarTC_Click" CssClass="btn btn-primary" ValidationGroup="GrpModalActualizarTC" runat="server" />
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div id="DivAgregarPS" class="modal fade">
|
||
<div class="modal-dialog">
|
||
<asp:UpdatePanel ID="UpAgregarPS" runat="server" class="modal-content rowpadding" tabindex="-1" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header">
|
||
<h4>
|
||
<asp:Label Text="Agregar Producto/Servicio" ID="Label2" runat="server" />
|
||
</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtCodigoPS" CssClass="form-control " runat="server" MaxLength="50"></asp:TextBox>
|
||
<label class="truncate" for="<%= TxtCodigoPS.ClientID.ToString()%>">Número de Parte / Código:</label>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtPS" CssClass="form-control Mayuscula" runat="server" MaxLength="846"></asp:TextBox>
|
||
<label class="truncate" for="<%= TxtPS.ClientID.ToString()%>">Descripción del Producto / Servicio:</label>
|
||
<asp:RequiredFieldValidator ID="RFVPS" runat="server" ControlToValidate="TxtPS" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Producto Servicio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpNuevoPS"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVPS" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlTipoPS" CssClass="form-control input-sm select2me" runat="server" Width="206px" Height="22px">
|
||
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
||
<asp:ListItem Text="Producto" Value="2"></asp:ListItem>
|
||
<asp:ListItem Text="Servicio" Value="1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= DdlTipoPS.ClientID.ToString()%>">Tipo PS:</label>
|
||
<asp:RequiredFieldValidator ID="RFVTipoPS" runat="server" ControlToValidate="DdlTipoPS" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpNuevoPS"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCETipoPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoPS" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<i></i>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlUnidadMedida" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="false" CausesValidation="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" Width="206px">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= DdlUnidadMedida.ClientID.ToString()%>">Unidad de Medida:</label>
|
||
<asp:RequiredFieldValidator ID="RFVUnidadMedidaPS" runat="server" ControlToValidate="DdlUnidadMedida" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Unidad de Medida''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpNuevoPS"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOUnidadMedidaPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVUnidadMedidaPS" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<i></i>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlClasificacionPS" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="false" CausesValidation="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Width="206px">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= DdlClasificacionPS.ClientID.ToString()%>">Clasificación Contable:</label>
|
||
<asp:RequiredFieldValidator ID="RFVClasiPS" runat="server" ControlToValidate="DdlClasificacionPS" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Clasificación Contable''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpNuevoPS"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" HighlightCssClass="vco" TargetControlID="RFVClasiPS" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button ID="BtnAgregarPSNuevo" runat="server" Text="Agregar P/S" OnClick="BtnAgregarPSNuevo_Click" ClientIDMode="Static" CssClass="btn btn-danger" ValidationGroup="GrpNuevoPS" />
|
||
<button type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="DivDevolucion" class="modal fade">
|
||
<div class="modal-dialog">
|
||
<asp:UpdatePanel ID="UPPSolDev" runat="server" class="modal-content rowpadding" tabindex="-1" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header">
|
||
<h4>Productos a devolver
|
||
</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="row">
|
||
</div>
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:GridView ID="GvSolDev" runat="server" AutoGenerateColumns="false" GridLines="none" BorderWidth="0" DataKeyNames="Cantidad,CveCompraDetalle,CvePS" CssClass="table GvPS table-striped table-hover table-advance Widthall ScrollAD mysmallbtn">
|
||
<Columns>
|
||
<%--<%#Eval("Cantidad") %>--%>
|
||
<asp:TemplateField ItemStyle-Width="55px" HeaderText="Cant">
|
||
<ItemTemplate>
|
||
<asp:TextBox ID="TxtCant" runat="server" Text='' Width="50px"></asp:TextBox>
|
||
<asp:RangeValidator ID="RVR" Display="Dynamic" ControlToValidate="TxtCant" runat="server" MinimumValue="0" Type="Double" ErrorMessage="Supera el total disponible"></asp:RangeValidator>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:BoundField DataField="Cantidad" HeaderText="Total" />
|
||
<asp:BoundField DataField="UM" HeaderText="UM" />
|
||
<asp:BoundField DataField="CodigoPS" HeaderText="Producto" />
|
||
<asp:BoundField DataField="Total" DataFormatString="{0:#,##0.00####}" ItemStyle-HorizontalAlign="Right" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button ID="BtnDevolucion" runat="server" Text="Solicitar Devolución" OnClick="BtnDevolucion_Click" ClientIDMode="Static" CssClass="btn btn-success" />
|
||
<button type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
<%-- MODAL FLETES E IMPORTACIONES --%>
|
||
<div id="ModalFletesImportaciones" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpModalFletesImportaciones" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">
|
||
<asp:Label ID="LblTitulo" Text="" runat="server">Costo Indirecto/Importación</asp:Label></h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="row" style="border-bottom: 1px solid #e5e5e5">
|
||
<div class="col-md-1" style="width: 100%">
|
||
<asp:RadioButtonList ID="RblGastosVincularCrear" runat="server" OnSelectedIndexChanged="RblGastosVincularCrear_Click" AutoPostBack="true" CssClass="GastoIndirectoOpciones" RepeatDirection="Horizontal">
|
||
<asp:ListItem Text="Gasto y Servicios" Value="1" />
|
||
<asp:ListItem Text="Costo Indirecto/Importaciones" Value="0" Selected="True" />
|
||
</asp:RadioButtonList>
|
||
</div>
|
||
</div>
|
||
<div runat="server" id="DivGastosyServicios" visible="false">
|
||
<%--<div class="row" style="align-items: center">
|
||
<asp:UpdatePanel ID="UpFiltros" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="portlet solid grey-cascade portlet-filter" style="width: 98%; margin-left: auto; margin-right: auto">
|
||
<div class="portlet-title portlet-filterT portletfiltrostitlee">
|
||
<div class="tools">
|
||
<asp:Button ID="BtnFiltrar" OnClick="BtnFiltrar_Click" runat="server" CausesValidation="true" CssClass=" btn btn-primary " Visible="True" Text="Consultar" ValidationGroup="GrpFiltrar2"></asp:Button>
|
||
<%--<a href="javascript;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a>
|
||
<asp:CheckBox ID="chkexpand" CssClass="hidden" runat="server" />
|
||
</div>
|
||
<div class="titlefiltros caption ">
|
||
<div class="row">
|
||
<div class="col-md-1" style="font-size: medium">Tipo:</div>
|
||
<div class="col-md-1" style="width: 200px;">
|
||
<asp:DropDownList ID="DdlTipo" AutoPostBack="true" runat="server" Style="width: 200px;" CssClass="form-control input-sm select2me" CausesValidation="true" MaxLength="50" ValidationGroup="GrpFiltrar2" Width="100%">
|
||
<%--<asp:ListItem Text="Seleccione" Value="-1" Selected="True" />
|
||
<asp:ListItem Text="Una Sola Factura" Value="1" Selected="True" />
|
||
<%-- <asp:ListItem Text="Varias Facturas" Value="2" />
|
||
</asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVTipo" runat="server" ControlToValidate="DdlTipo" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''tipo''</b> es necesario para cargar la Refacturación, por favor seleccione uno." ValidationGroup="GrpFiltrar2"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCETipo" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipo" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>--%>
|
||
<br />
|
||
|
||
<asp:UpdatePanel ID="UpGVServicios" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GVServicios" runat="server" AutoGenerateColumns="false"
|
||
EmptyDataText="No se encontraron fletes o servicios en la factura" ShowHeaderWhenEmpty="true"
|
||
ToolTip="Listado de Unidades de Medida" CssClass="table table-striped table-advance table-hover Widthall
|
||
ScrollAD "
|
||
data-height="320" Style="text-align: left;" GridLines="None" DataKeyNames="CvePS">
|
||
<Columns>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="chkServicios" runat="server"></asp:CheckBox>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Consec" ItemStyle-HorizontalAlign="Center" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:Label ID="LblConsec" Text='<%# Eval("Consec") %>' runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Concepto" ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlPSmodal" Text='<%# Eval("PS") %>' runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Importe" ItemStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlTotalmodal" Text='<%# Eval("Total") %>' runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
<RowStyle CssClass="Texto" />
|
||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||
|
||
|
||
|
||
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<div style="align-items: center">
|
||
<asp:UpdatePanel ID="UpFacturas" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="col-md-5" runat="server" id="dvFacturas" style="width: 60%; margin-left: 20%; margin-right: auto;">
|
||
|
||
|
||
|
||
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Agregar Facturas</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript:;" class="expand"></a>
|
||
</div>
|
||
|
||
<div class="portlet-body form">
|
||
<table class="Widthall">
|
||
<tr>
|
||
<td style="width: 50px;">Proveedor:</td>
|
||
<td>
|
||
<asp:DropDownList runat="server" CssClass="form-control input-sm select2me" ID="DdlProveedores" Style="width: 200px" AutoPostBack="true" DataTextField="RazonSocial" DataValueField="CveProveedor" OnSelectedIndexChanged="DdlProveedores_SelectedIndexChanged"></asp:DropDownList>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="width: 50px;">Folio:</td>
|
||
<td>
|
||
<asp:DropDownList runat="server" CssClass="form-control input-sm select2me" ID="DdlFacturas" Style="width: 200px" AutoPostBack="false" DataTextField="Folio" DataValueField="CveCompra"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVFacturas" runat="server" ControlToValidate="DdlFacturas" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio''</b> es necesario para cargar la Refacturación, por favor seleccione uno." ValidationGroup="GrpCargaFactura"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEFacturas" runat="server" HighlightCssClass="vco" TargetControlID="RFVFacturas" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" align="center">
|
||
<asp:Button Text="Agregar Factura" CssClass="btn btn-primary" ID="BtnAgregaFactura" OnClick="BtnAgregaFactura_Click" ValidationGroup="GrpCargaFactura" runat="server" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<asp:UpdatePanel ID="UPGVFacturas" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
|
||
<asp:GridView ID="GvFacturas" runat="server" AutoGenerateColumns="false" EmptyDataText="Aun No Registra Facturas" DataKeyNames="CveCompra" ToolTip="Listado de Unidades de Medida" CssClass="table table-striped table-advance table-hover Widthall ScrollAD " data-height="320" Style="text-align: left;" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="Folio" ItemStyle-HorizontalAlign="Center">
|
||
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlFolio" Text='<%# Eval("Folio") %>' runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlFecha" Text='<%# Eval("Fecha") %>' runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Eliminar">
|
||
<ItemTemplate>
|
||
|
||
<asp:LinkButton ID="lbEliminar" runat="server" AlternateText="Eliminar" CausesValidation="False" Style="text-align: left" CommandName="Delete" OnClientClick="return confirm('¿Está seguro de eliminar la factura?')" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" />
|
||
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
<RowStyle CssClass="Texto" />
|
||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||
|
||
|
||
|
||
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</div>
|
||
<div class="row" runat="server" id="DivVincularCrear">
|
||
<div class="col-md-12">
|
||
<div class="row" runat="server" id="DivActualizarVincular" visible="false" align="center">
|
||
<h4>Los cambios se realizaran al dar click en vincular</h4>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-3"></div>
|
||
<label class="col-md-2" style="margin-top: 5px;">Asignación:</label>
|
||
<div class="col-md-6" align="center">
|
||
<asp:DropDownList ID="DdlFleteImportacion" CssClass="form-control select2me" runat="server" Width="100%" AutoPostBack="true" OnSelectedIndexChanged="DdlFleteImportacion_SelectedIndexChanged1">
|
||
<asp:ListItem Value="237" Selected="True">Costo Indirecto</asp:ListItem>
|
||
<asp:ListItem Value="240">Importación</asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-3"></div>
|
||
<label class="col-md-1" style="margin-top: 5px;">Acción:</label>
|
||
<div class="col-md-6" align="center">
|
||
<asp:RadioButtonList ID="RblTipo" CssClass="iradio_square-blue" runat="server" RepeatDirection="Horizontal" Width="100%" AutoPostBack="true" OnSelectedIndexChanged="RblTipo_SelectedIndexChanged">
|
||
<asp:ListItem Value="1" Selected="True">Vincular</asp:ListItem>
|
||
<asp:ListItem Value="2">Crear</asp:ListItem>
|
||
</asp:RadioButtonList>
|
||
</div>
|
||
</div>
|
||
<div class="row" id="DivCrear" runat="server">
|
||
<div class="col-md-12">
|
||
<div class="form-group form-md-line-input input-iconright" id="DivLblFolio" runat="server">
|
||
<asp:Label ID="LblFolioModalFletes" CssClass="form-control" runat="server"></asp:Label>
|
||
<label for="<%= LblFolioModalFletes.ClientID.ToString()%>">Folio:</label>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright" id="DivPedimento" runat="server">
|
||
<asp:TextBox ID="TxtPedimento" CssClass="form-control" runat="server"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVPedimento" runat="server" ControlToValidate="TxtPedimento" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Pedimento''</b> es necesario, por favor ingréselo." ValidationGroup="VGMCrearFleteImportacion"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEPedimento" runat="server" HighlightCssClass="vco" TargetControlID="RFVPedimento"></ajax:ValidatorCalloutExtender>
|
||
<label for="<%= TxtPedimento.ClientID.ToString()%>">Pedimento:</label>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtDescripcionModalFletesImportacion" CssClass="form-control" runat="server"></asp:TextBox>
|
||
<label for="<%= TxtDescripcionModalFletesImportacion.ClientID.ToString()%>">Descripción:</label>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-2" style="text-align: left">Fecha:</div>
|
||
<div class="col-md-2">
|
||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
||
<asp:TextBox ID="TxtFechaModalImportacionesFletes" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton ID="LnkFechaModalImportacionesFletes" class="btn default " Text=" <i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||
</span>
|
||
<ajax:MaskedEditExtender ID="MEEFechaModalImportacionesFletes" runat="server" TargetControlID="TxtFechaModalImportacionesFletes" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender runat="server" ID="CEEFechaModalImportacionesFletes" TargetControlID="TxtFechaModalImportacionesFletes" PopupButtonID="LnkFechaModalImportacionesFletes" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="RfvFechaModalImportacionesFletes" runat="server" ControlToValidate="TxtFechaModalImportacionesFletes" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> es necesario, por favor ingréselo." ValidationGroup="VGMCrearFleteImportacion"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VcoFechaModalImportacionesFletes" runat="server" HighlightCssClass="vco" TargetControlID="RfvFechaModalImportacionesFletes"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
<div class="row">
|
||
<div class="col-md-12" align="center">
|
||
<asp:Button ID="BtnCrearFleteImportacion" OnClick="BtnCrearFleteImportacion_Click" Text="Crear" CssClass="btn btn-primary" Style="margin-top: 5px;" runat="server" Width="210px" ValidationGroup="VGMCrearFleteImportacion" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="DivVinculacion" runat="server">
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<div class="form-group form-md-line-input input-iconright" id="DivFletes" runat="server">
|
||
<asp:DropDownList ID="DdlFletes" runat="server" CssClass="form-control select2me" DataTextField="FolioDescripcion" DataValueField="CveFlete" AppendDataBoundItems="true" Width="100%"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVFletes" runat="server" ControlToValidate="DdlFletes" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Flete''</b> es necesario, por favor ingréselo." ValidationGroup="VGMModalIMPFLE"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEFletes" runat="server" HighlightCssClass="vco" TargetControlID="RFVFletes"></ajax:ValidatorCalloutExtender>
|
||
<label for="<%= DdlFletes.ClientID.ToString()%>">Fletes:</label>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright" id="DivImportaciones" runat="server" visible="false">
|
||
<asp:DropDownList ID="DdlImportaciones" runat="server" CssClass="form-control select2me" DataTextField="PedimentoDescripcion" DataValueField="CveImportacion" AppendDataBoundItems="true" Width="100%"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVImportaciones" runat="server" InitialValue="-1" ControlToValidate="DdlImportaciones" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importación''</b> es necesario, por favor ingréselo." ValidationGroup="VGMModalIMPFLE"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEImportaciones" runat="server" HighlightCssClass="vco" TargetControlID="RFVImportaciones"></ajax:ValidatorCalloutExtender>
|
||
<label for="<%= DdlImportaciones.ClientID.ToString()%>">Importaciones:</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-3"></div>
|
||
<label class="col-md-2" style="margin-top: 5px;">Factura de:</label>
|
||
<div class="col-md-6" align="center">
|
||
<asp:RadioButtonList ID="RblFleteImportacionOpcion" CssClass="iradio_square-blue" runat="server" RepeatDirection="Horizontal" Width="100%">
|
||
<%-- <asp:ListItem Value="1" Selected="True">Productos</asp:ListItem>
|
||
<asp:ListItem Value="2">Gastos</asp:ListItem>--%>
|
||
</asp:RadioButtonList>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<div runat="server" id="DivGastosyServiciosFooter" visible="false">
|
||
<asp:Button Text="Continuar" ID="BtnAgregarFlete" runat="server" OnClick="btnAgregarFlete_Click" class="btn default"></asp:Button>
|
||
<asp:Button Text="Cancelar" CssClass="btn btn-primary" ID="BtnCancelarFlete" data-dismiss="modal" runat="server" />
|
||
</div>
|
||
<div runat="server" id="DivVincularCrearFooter">
|
||
<asp:Button ID="BtnGuardarModalFletesImportaciones" OnClick="BtnGuardarModalFletesImportaciones_Click" runat="server" Text="Vincular" CssClass="btn btn-primary" ValidationGroup="VGMModalIMPFLE" />
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
|
||
<%-- <div id="DvModalContratos" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
|
||
<!-- Modal content-->
|
||
<div class="modal-content" style="width: 500px; margin-left: 50px;">
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Contratos de Obra</h4>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel runat="server" ID="UpModalcontratos">
|
||
<ContentTemplate>
|
||
|
||
|
||
<div class="row">
|
||
|
||
<div class="col-md-2" style="text-align: center; margin-top: 5px">
|
||
Contrato:
|
||
</div>
|
||
<div class="col-md-10">
|
||
<asp:DropDownList ID="DdlContrato" runat="server" DataTextField="ContratoCompleto" DataValueField="CveContrato" Class="select2me" Width="100%" ></asp:DropDownList>
|
||
</div>
|
||
<div class="col-md-5"></div>
|
||
</div>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:Button ID="BtnModalContratos" OnClick="BtnModalContratos_Click" runat="server" ClientIDMode="Static" Text="Guardar" CssClass="btn btn-primary" />
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>--%>
|
||
|
||
|
||
<div id="DivmodalContrato" class="modal ADS fade">
|
||
<div class="modal-dialog" style="width: 650px; min-width: 470px;">
|
||
<asp:UpdatePanel ID="UpModalContrato" runat="server" class="modal-content rowpadding" tabindex="-1" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4>
|
||
<asp:Label Text="Contratos" ID="LblTituloContrato" runat="server" />
|
||
</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
|
||
<div class="row">
|
||
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList runat="server" ID="DdlContratosObra" AutoPostBack="true" OnSelectedIndexChanged="DdlContratosCompras_SelectedIndexChanged" DataTextField="ContratoCompleto" DataValueField="CveContrato" CssClass="form-control input-sm select2me" Width="100%">
|
||
<asp:ListItem Value="-1">Seleccione uno</asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= DdlContratosObra.ClientID.ToString()%>">Contrato:</label>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlTipoGastoContrato" runat="server" DataTextField="TipoGasto" DataValueField="CveTipoGasto" AppendDataBoundItems="true" CssClass="form-control input-sm select2me" Width="100%">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= DdlTipoGastoContrato.ClientID.ToString()%>">Tipo de Gasto:</label>
|
||
|
||
|
||
<asp:RequiredFieldValidator runat="server" Enabled="true" InitialValue="-1" Display="None" ID="RFVDdlTipoGastoContrato" ControlToValidate="DdlTipoGastoContrato" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Gasto''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpAplicaContrato"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="CERFVDdlTipoGastoContrato" runat="server" HighlightCssClass="vco" TargetControlID="RFVDdlTipoGastoContrato" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
<div class="row col-md-12" align="right" runat="server" id="divBusqueda" visible="false">
|
||
<input type="text" id="TxtBusqueda3" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda3','{0}');", GvContratosControl.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda3','{0}');", GvContratosControl.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
|
||
<asp:GridView ID="GvContratosControl" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron partidas"
|
||
DataKeyNames="CveContratoDetalle,CvePS,PS,Cantidad,PU,CantidadMax,CveUnidadMedida,Abreviatura,CveSubProyecto,SubProyecto,Codigo,CveProyecto,Proyecto,IVA,RetISR,RetIVA,IEPSPorcentaje,IEPSGrabaIVA,CveClasificacion,Clasificacion"
|
||
CssClass="table GVEstimacion table-advance table-hover Widthall ScrollAD mysmallbtn" GridLines="None" Width="100%">
|
||
<Columns>
|
||
|
||
<asp:TemplateField HeaderText="Producto">
|
||
<ItemTemplate>
|
||
<asp:Label ID="LblPS" runat="server" CssClass="Texto" Text='<%# Eval("PS")%>' ></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Cantidad">
|
||
<ItemTemplate>
|
||
<asp:TextBox ID="TxtCantidad" Text="" CssClass="txtcant" onkeyup="ValidateCantCon(this)" type="number" step="any"
|
||
data-cantidad='<%# Eval("CantidadMax")%>' data-pu='<%# Eval("PU")%>' data-cve='<%# Eval("CveContratoDetalle") %>'
|
||
Width="70" runat="server"></asp:TextBox>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="PU" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<span><%# Eval("PU", "{0:N2}")%></span>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Importe">
|
||
<ItemTemplate>
|
||
<asp:TextBox ID="TxtImporte" Text="" data-cve='<%# Eval("CveContratoDetalle") %>' CssClass="txtimporte" type="number" step="any" Width="90" runat="server" onkeydown="keydownenabledtab(event)"></asp:TextBox>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
</Columns>
|
||
</asp:GridView>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="row form-group form-md-line-input input-iconright" style="text-align:right!important">
|
||
<asp:CheckBox ID="ChkContinualAgregandoControl" runat="server" TextAlign="Left" Text="Continuar agregando" CssClass="form-control" Checked="true" Visible="false"/>
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
|
||
<asp:Button ID="BtnAplicarContrato" runat="server" Text="Aceptar" ClientIDMode="Static" CssClass="btn btn-success" OnClick="BtnAplicarContrato_Click" Visible="false" ValidationGroup="GrpAplicaContrato" CausesValidation="true" />
|
||
<button type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
</asp:Content>
|
||
<asp:Content ID="Content4" ContentPlaceHolderID="JS" runat="server">
|
||
<script src="/Metronic/assets/global/plugins/jquery.pulsate.min.js"></script>
|
||
|
||
<script type="text/javascript">
|
||
|
||
$(document).on('mouseenter', ".truncate", function () {
|
||
var $this = $(this);
|
||
if (this.offsetWidth < this.scrollWidth && !$this.attr('title')) {
|
||
$this.tooltip({
|
||
title: $this.text(),
|
||
placement: "top"
|
||
});
|
||
$this.tooltip('show');
|
||
}
|
||
});
|
||
|
||
var openselect2 = false;
|
||
|
||
function pageLoad() {
|
||
$(document).ready(function () {
|
||
//$('#<%=GVAnticipos.ClientID%>').ADScroll({
|
||
// });
|
||
|
||
if (openselect2 == true) {
|
||
$("#C_DdlProveedor").select2("open");
|
||
openselect2 = false;
|
||
}
|
||
|
||
var Tam = TamañoVentana();
|
||
var Alto = Tam.height - 360;
|
||
if (Alto < 100) {
|
||
Alto = 100;
|
||
}
|
||
$('#<%=GVAnticipos.ClientID%>').ADScroll({
|
||
height: Alto
|
||
});
|
||
|
||
if ($('#DivTipoCambioAdvertencia')) {
|
||
jQuery('#DivTipoCambioAdvertencia').pulsate({
|
||
color: "#bf1c56"
|
||
});
|
||
}
|
||
|
||
if ($('#DivAdvertenciaOC')) {
|
||
jQuery('#DivAdvertenciaOC').pulsate({
|
||
color: "#bf1c56"
|
||
});
|
||
}
|
||
|
||
if ($('#DivRestriccionAdvertencia')) {
|
||
jQuery('#DivRestriccionAdvertencia').pulsate({
|
||
color: "#bf1c56"
|
||
});
|
||
}
|
||
|
||
$("#TabActivosFijos_tab .ajax__tab_inner").click(function () {
|
||
$('#BtnCargarGVAF').click();
|
||
});
|
||
|
||
});
|
||
}
|
||
|
||
function ClickDeudorChk(Chk, Obj, total, saldo,txtOtrIngEgs) {
|
||
debugger;
|
||
total = parseFloat(parseFloat(total).toFixed(2));
|
||
saldo = parseFloat(parseFloat(saldo).toFixed(2));
|
||
|
||
if ($("#" + Chk.id).is(":checked")) {
|
||
$('#' + Obj).attr('disabled', false);
|
||
$('#' + txtOtrIngEgs).attr('disabled', false);
|
||
|
||
if (parseFloat($get('TxtContadoDeudor').value) != total) {
|
||
|
||
if ((parseFloat($get('TxtContadoDeudor').value) + saldo) > total) {
|
||
$('#' + Obj).val(saldo - (parseFloat($get('TxtContadoDeudor').value) + saldo - total));
|
||
$get('TxtContadoDeudor').value = total
|
||
}
|
||
|
||
else {
|
||
|
||
if (total > saldo) {
|
||
$('#' + Obj).val(saldo);
|
||
}
|
||
|
||
else {
|
||
$('#' + Obj).val(total);
|
||
}
|
||
|
||
if (parseFloat($get('TxtContadoDeudor').value) >= total) {
|
||
|
||
$('#' + Obj).val($get(total - 'TxtContadoDeudor').value);
|
||
$get('TxtContadoDeudor').value = total
|
||
|
||
} else {
|
||
$get('TxtContadoDeudor').value = parseFloat(parseFloat($get('TxtContadoDeudor').value) + parseFloat($get(Obj).value)).toFixed(2);
|
||
}
|
||
}
|
||
|
||
}
|
||
else {
|
||
$('#' + Obj).val(0);
|
||
}
|
||
|
||
}
|
||
else {
|
||
$('#' + Obj).attr('disabled', true);
|
||
$('#' + txtOtrIngEgs).attr('disabled', true);
|
||
if (parseFloat($get(Obj).value) > 0) {
|
||
$get('TxtContadoDeudor').value = parseFloat(parseFloat($get('TxtContadoDeudor').value) - parseFloat($get(Obj).value)).toFixed(2);
|
||
if ($get('TxtContadoDeudor').value < 0) {
|
||
$get('TxtContadoDeudor').value = 0
|
||
}
|
||
}
|
||
$('#' + Obj).val(0);
|
||
$('#' + txtOtrIngEgs).val(0);
|
||
$('#TxtDeudoresOtrosGastosIngresos').val('0');
|
||
}
|
||
|
||
if (parseFloat($('#TxtContadoDeudor').val()) == total) {
|
||
$('#C_GvDeudores input[type="checkbox"]:not(:checked)').prop('disabled', true);
|
||
} else {
|
||
$('#C_GvDeudores input[type="checkbox"]').prop('disabled', false);
|
||
}
|
||
|
||
$('#' + Obj).val(parseFloat($get(Obj).value).toFixed(2));
|
||
}
|
||
|
||
function AjustaTextboxDeudores(Obj) {
|
||
var totalPoints = 0;
|
||
var t = '';
|
||
|
||
|
||
$('input[name*=TxtSaldoDeudor]').each(function () {
|
||
totalPoints += ToDouble($(this).val());
|
||
});
|
||
|
||
$get('TxtContadoDeudor').value = parseFloat(totalPoints).toFixed(2);
|
||
}
|
||
|
||
function MuestraCheckAF(ID, display) {
|
||
setTimeout(function () {
|
||
var identificador = "#" + ID;
|
||
$(identificador).css('display', display);
|
||
}, 1000);
|
||
|
||
}
|
||
|
||
function RecargaMaximumValue() {
|
||
$('#btnRecargaMaximumValueIVA').click();
|
||
}
|
||
function RecargaMaximumValue() {
|
||
$('#btnRecargaMaximumValueIVA').click();
|
||
}
|
||
|
||
function C() {
|
||
return confirm('¿Desea quitar el Producto o Servicio de la Factura?');
|
||
}
|
||
|
||
function CargaProveedor(CveProveedor) {
|
||
$get("HdnCveProveedor").value = CveProveedor;
|
||
$('#BtnBuscarProveedor').click();
|
||
}
|
||
|
||
function CambioEnCKLDeudores() {
|
||
$('#BtnCklDeudor').click();
|
||
}
|
||
|
||
function CargaEquivalencia(Index) {
|
||
$get("HdnEq").value = Index;
|
||
|
||
}
|
||
|
||
function CargarValores(Index, Cantidad, PS) {
|
||
$get("hdnIndexInv").value = Index;
|
||
$get("hdnCantidad").value = Cantidad;
|
||
$get("lbPS").innerHTML = PS;
|
||
|
||
}
|
||
|
||
function fnAltaPS(t, txt, ind) {
|
||
$('#ModalPSAlias').modal('toggle');
|
||
if ($get('TxtPSAlias')) $get('TxtPSAlias').value = txt;
|
||
if ($get('HdnAliasInd')) $get('HdnAliasInd').value = ind;
|
||
}
|
||
|
||
function FncUMEquivalencias(Modalidad, Alias, Index, Base, CveSAT, CveSATDescripcion) {
|
||
$('#ModalUMAlias').modal('show');
|
||
$get('HdnUMAliasModalidad').value = Modalidad;
|
||
$get('TxtUMAlias').disabled = true;
|
||
$get('TxtUMAlias').value = Alias;
|
||
$get('HdnUMAlias').value = Alias;
|
||
$get('TxtUMBase').value = Base;
|
||
$get('HdnUMAliasInd').value = Index;
|
||
$get('HdnUMAliasCveSATUM').value = CveSAT;
|
||
$("#LbCveSATUM").text(CveSATDescripcion);
|
||
SetTextEquivalencia();
|
||
|
||
//ESCONDE TODO
|
||
$("#RowUMAlias").addClass("hidden");
|
||
$("#RowUMEquivalencia").addClass("hidden");
|
||
$("#RowUM2").addClass("hidden");
|
||
$("#RowUMAbreviatura").addClass("hidden");
|
||
$("#btnAgregarUM").addClass("hidden");
|
||
$("#LbCveSATUM").addClass("hidden");
|
||
$("#LbTituloCveSATUM").addClass("hidden");
|
||
|
||
|
||
switch (Modalidad) {
|
||
case 1: /*UM NO REGISTRADA*/
|
||
$("#LtUMAlias").text("Registrar Unidad de Medida Alias");
|
||
$("#BtnUMAlias").val("Registrar Alias");
|
||
$("#RowUMAlias").removeClass("hidden");
|
||
$("#btnAgregarUM").removeClass("hidden");
|
||
break;
|
||
case 2: /*UM NO BASE*/
|
||
$("#LtUMAlias").text("Unidad de Medida NO medida base");
|
||
$("#BtnUMAlias").val("Aplicar conversión");
|
||
$("#RowUM2").removeClass("hidden");
|
||
break;
|
||
case 3: /*UM SIN EQUIVALENCIA*/
|
||
$("#LtUMAlias").text("Registrar equivalencia de la unidad de medida del producto");
|
||
$("#BtnUMAlias").val("Registrar Equivalencia");
|
||
$("#RowUMEquivalencia").removeClass("hidden");
|
||
break;
|
||
default:
|
||
}
|
||
|
||
}
|
||
|
||
function MostrarAgregarUM() {
|
||
SetTextEquivalencia(2);
|
||
$("#btnAgregarUM").addClass("hidden");
|
||
$get('TxtUMAlias').disabled = false;
|
||
$("#RowUMAlias").addClass("hidden");
|
||
$("#RowUMAbreviatura").removeClass("hidden");
|
||
$("#RowUMEquivalencia").removeClass("hidden");
|
||
$("#LtUMAlias").text("Registrar nueva Unidad de Medida");
|
||
$("#BtnUMAlias").val("Registrar Unidad de Medida");
|
||
$get('HdnUMAliasModalidad').value = 4;
|
||
$("#LbCveSATUM").removeClass("hidden");
|
||
$("#LbTituloCveSATUM").removeClass("hidden");
|
||
}
|
||
|
||
function SetTextEquivalencia(tipo) {
|
||
$("#LbUMBase").text($('#TxtUMBase').val());
|
||
$("#LbUMActual").text(tipo == 1 ? $("#C_DdlUMAlias option:selected").text() : $('#TxtUMAlias').val());
|
||
}
|
||
|
||
function fnAltaUM(t, txt, ind, CvePs) {
|
||
PosicionaObjeto(t, 'divUMAlias', '');
|
||
$get('divUMAlias').style.display = '';
|
||
$get('TxtUMAlias').value = txt;
|
||
$get('HdnUMAliasInd').value = ind;
|
||
//$get("HdUM").value = CvePs;
|
||
//$('#BtnBuscarEquivalencia').click();
|
||
}
|
||
|
||
function Recalcula() {
|
||
var Cant = ToDouble($get("TxtCantidad").value);
|
||
var PrecioFormato = ToDouble($get("TxtPrecio").value);
|
||
//var Precio = ToDouble(PrecioFormato.replace(/[^0-9\.]+/g, ""));
|
||
var Descuento = $get("TxtDescuentoModal") ? ToDouble($get("TxtDescuentoModal").value) : 0;
|
||
var OtrosGastos = $get("TxtOtrosGastos") ? ToDouble($get("TxtOtrosGastos").value) : 0;
|
||
|
||
var Total = (Cant * PrecioFormato) - Descuento + OtrosGastos;
|
||
$get("LblTotalPS").innerHTML = formato_numero(Total, 2, '.', ',');
|
||
|
||
}
|
||
|
||
function CargaProveedores() {
|
||
$("#BtnCargarProveedores").click();
|
||
openselect2 = true;
|
||
}
|
||
|
||
function CargaFuncionariosEmpleados() {
|
||
$("#BtnCargarFuncionariosEmpleados").click();
|
||
}
|
||
|
||
|
||
function formato_numero(numero, decimales, separador_decimal, separador_miles) { // v2007-08-06
|
||
numero = parseFloat(numero);
|
||
if (isNaN(numero)) {
|
||
return "";
|
||
}
|
||
|
||
if (decimales !== undefined) {
|
||
// Redondeamos
|
||
numero = numero.toFixed(decimales);
|
||
}
|
||
|
||
// Convertimos el punto en separador_decimal
|
||
numero = numero.toString().replace(".", separador_decimal !== undefined ? separador_decimal : ",");
|
||
|
||
if (separador_miles) {
|
||
// Añadimos los separadores de miles
|
||
var miles = new RegExp("(-?[0-9]+)([0-9]{3})");
|
||
while (miles.test(numero)) {
|
||
numero = numero.replace(miles, "$1" + separador_miles + "$2");
|
||
}
|
||
}
|
||
|
||
return numero;
|
||
}
|
||
|
||
function Recalculafechapago() {
|
||
|
||
|
||
var anio = $get('TxtFecha').value.substring(6, 10);
|
||
var mes = $get('TxtFecha').value.substring(3, 5);
|
||
var dia = $get('TxtFecha').value.substring(0, 2);
|
||
var fecha = new Date(Date.parse(anio + "/" + mes + "/" + dia));
|
||
//
|
||
fecha.setDate(fecha.getDate() + parseInt($get('LblDiasCredito').innerText));
|
||
|
||
$get('TxtFechaPago').value = fecha.getDate() + '/' + (fecha.getMonth() + 1) + '/' + fecha.getFullYear();
|
||
|
||
}
|
||
|
||
function ConfirmaPS(op) {
|
||
|
||
if (window.Page_ClientValidate('GrpGuardar')) {
|
||
|
||
return false;
|
||
}
|
||
return false;
|
||
}
|
||
|
||
function MuestraAnticipos() {
|
||
try {
|
||
$('#DivAnticipos').modal('show');
|
||
}
|
||
catch (e) { alert(e); }
|
||
|
||
}
|
||
|
||
//Subir archivo
|
||
function uploadComplete() {
|
||
$get("HdnArchivoEstatus").value = "ok";
|
||
alert("El Archivo se guardó correctamente.");
|
||
}
|
||
function uploadError() {
|
||
$get("HdnArchivoEstatus").value = "error";
|
||
alert("Ocurrió un error al intentar subir el archivo, por favor intentelo de nuevo.");
|
||
}
|
||
|
||
|
||
function chkAnt(t, txt, importe, TotalSaldo, CveMonedaAnticipo, TCAnticipo, CveMonedaOriginal) {
|
||
var Total = ToDouble($get('TxtTotal').value);
|
||
//TotalSaldo = Total;
|
||
var txtvalue = ToDouble(txt.value);
|
||
var importevalue = ToDouble(importe);
|
||
if (CveMonedaAnticipo = 1 && CveMonedaOriginal == 2) {
|
||
txtvalue = ToDouble(txtvalue / TCAnticipo);
|
||
importevalue = ToDouble(importevalue / TCAnticipo);
|
||
} else if (CveMonedaAnticipo = 2 && CveMonedaOriginal == 1) {
|
||
txtvalue = ToDouble(txtvalue * TCAnticipo);
|
||
importevalue = ToDouble(importevalue * TCAnticipo);
|
||
}
|
||
|
||
//var SaldoCompra = parseFloat(parseFloat($get('HdnCompraSaldo').value).toFixed(2));
|
||
var SaldoCompra = (TotalSaldo - FnSumaValoresAnt() + txtvalue).toFixed(2); // le agrego lo del valor actual para validarlo
|
||
|
||
|
||
|
||
if (t.checked) {
|
||
|
||
if (SaldoCompra > 0) {
|
||
if (SaldoCompra > importevalue) {
|
||
txt.value = ToDouble(importevalue).toFixed(2);
|
||
//SaldoCompra = SaldoCompra - importe;
|
||
//$get('HdnCompraSaldo').value = SaldoCompra;
|
||
|
||
} else {
|
||
txt.value = ToDouble(SaldoCompra).toFixed(2);
|
||
//SaldoCompra = 0.00;
|
||
//$get('HdnCompraSaldo').value = SaldoCompra;
|
||
}
|
||
|
||
} else {
|
||
t.checked = false;
|
||
txt.value = "";
|
||
//SaldoCompra = SaldoCompra - importe;
|
||
}
|
||
|
||
} else {
|
||
//$get('HdnCompraSaldo').value = parseFloat(SaldoCompra) + parseFloat(txt.value);
|
||
txt.value = "";
|
||
}
|
||
|
||
$("#LblTotalAnticipos").text(FormatoNumero(FnSumaValoresAnt(), 2));
|
||
$("#LblAplicadoCompraAnt").text(FormatoNumero(FnSumaValoresAnt(), 2));
|
||
$("#LblAplicadoCompraAntComision").text(FormatoNumero(FnSumaValoresAntComisiones(), 2));
|
||
$("#LblSaldoFactura").text(FormatoNumero(TotalSaldo - FnSumaValoresAnt(), 2));
|
||
|
||
|
||
}
|
||
|
||
function FnCambiaAnt(chk, txt, saldo, TotalSaldo, CveMonedaAnticipo, TCAnticipo, CveMonedaOriginal, txtComision) {
|
||
|
||
var Total = ToDouble($get('TxtTotal').value);
|
||
let txtComisionImporte = 0;
|
||
|
||
if (txtComision != null) {
|
||
if (!isNaN(txtComision.value)) {
|
||
txtComisionImporte = ToDouble(txtComision.value);
|
||
}
|
||
}
|
||
|
||
var txtvalue = ToDouble(txt.value);
|
||
|
||
if (txtComisionImporte != 0 && txtComisionImporte > txtvalue) {
|
||
|
||
if (txtComision != null) {
|
||
txtComision.value = txtvalue;
|
||
alert('La comisión no debe de exder la amortización.')
|
||
}
|
||
return;
|
||
}
|
||
|
||
debugger;
|
||
if (CveMonedaAnticipo == 1 && CveMonedaOriginal == 2) {
|
||
txtvalue = ToDouble(txtvalue / TCAnticipo);
|
||
} else if (CveMonedaAnticipo == 2 && CveMonedaOriginal == 1) {
|
||
txtvalue = ToDouble(txtvalue * TCAnticipo);
|
||
}
|
||
|
||
var SaldoCompra = (TotalSaldo - FnSumaValoresAnt() + ToDouble(txtvalue)).toFixed(2); // le agrego lo del valor actual para validarlo //parseFloat(parseFloat($get('HdnCompraSaldo').value).toFixed(2));
|
||
alert(txtvalue);
|
||
if (SaldoCompra < 0) txt.value = SaldoCompra - txtvalue;
|
||
//minimo entre saldocompra y el saldoanticipo
|
||
if (SaldoCompra < saldo) saldo = SaldoCompra;
|
||
|
||
if (ToDouble(txtvalue) > 0) {
|
||
chk.checked = true;
|
||
} else {
|
||
chk.checked = false;
|
||
}
|
||
|
||
if (ToDouble(txtvalue) > saldo) {
|
||
txt.value = saldo;
|
||
alert("El Importe no debe de exceder a el saldo");
|
||
}
|
||
|
||
$("#LblTotalAnticipos").text(FormatoNumero(FnSumaValoresAnt(), 2));
|
||
$("#LblAplicadoCompraAnt").text(FormatoNumero(FnSumaValoresAnt(), 2));
|
||
$("#LblAplicadoCompraAntComision").text(FormatoNumero(FnSumaValoresAntComisiones(), 2));
|
||
$("#LblSaldoFactura").text(FormatoNumero(TotalSaldo - FnSumaValoresAnt(), 2));
|
||
|
||
}
|
||
|
||
function FnSumaValoresAnt() {
|
||
var totalPoints = 0;
|
||
var t = '';
|
||
|
||
$('input[name*=TxtAnticipo]').each(function () {
|
||
totalPoints += ToDouble($(this).val());
|
||
});
|
||
|
||
//$('span[id*=LbTotal]').each(function () {
|
||
// totalPoints += ToDouble($(this).val());
|
||
//});
|
||
|
||
let respuesta = Math.round(totalPoints * 100) / 100;
|
||
return respuesta
|
||
}
|
||
|
||
function FnSumaValoresAntComisiones() {
|
||
var totalPoints = 0;
|
||
var t = '';
|
||
|
||
|
||
$('input[name*=TxtComision]').each(function () {
|
||
totalPoints += ToDouble($(this).val());
|
||
});
|
||
|
||
let respuesta = Math.round(totalPoints * 100) / 100;
|
||
return respuesta
|
||
}
|
||
|
||
|
||
|
||
function FnCambiaFacturaNC(saldo, txt, total, txtaplicado, chk) {
|
||
var SumaImporte = 0, Importe = 0;
|
||
|
||
if (chk.checked) {
|
||
$('input[name*=TxtImporte]').each(function () {
|
||
SumaImporte += ToDouble($(this).val());
|
||
});
|
||
Importe = total - SumaImporte;
|
||
if (ToDouble(Importe) > ToDouble(saldo)) {
|
||
txt.value = FormatoNumero(saldo, 2);
|
||
txtaplicado.innerText = FormatoNumero(SumaImporte + saldo, 2);
|
||
} else {
|
||
txt.value = FormatoNumero(Importe, 2);
|
||
txtaplicado.innerText = FormatoNumero(SumaImporte + Importe, 2);
|
||
}
|
||
if (Importe == 0) {
|
||
chk.checked = false;
|
||
txt.value = "";
|
||
}
|
||
} else {
|
||
txt.value = "";
|
||
$('input[name*=TxtImporte]').each(function () {
|
||
SumaImporte += ToDouble($(this).val());
|
||
});
|
||
|
||
txtaplicado.innerText = FormatoNumero(SumaImporte, 2);
|
||
}
|
||
|
||
}
|
||
|
||
function LimitaCantidadNC(SaldoFactura, TotalNC, textbox) {
|
||
var SumaImporte = 0, SaldoNC = 0, ImporteFinal = 0;
|
||
ImporteTXT = ToDouble(textbox.value);
|
||
SaldoFactura = ToDouble(SaldoFactura);
|
||
|
||
$('input[name*=TxtImporte]').each(function () {
|
||
SumaImporte += ToDouble($(this).val());
|
||
});
|
||
|
||
SaldoNC = ToDouble(ToDouble(TotalNC) - SumaImporte + ImporteTXT); //EL TOTAL DE LA NC [DOCUMENTO ACTUAL] MENOS LO YA SELECCIONADO MAS EL TXT ACTUAL
|
||
|
||
ImporteFinal = ToDouble(textbox.value); //OBTIENE IMPORTE DEL TXT
|
||
ImporteFinal = ImporteFinal > SaldoNC ? SaldoNC : ImporteTXT; //VALIDA QUE NO SEA MAYOR QUE EL SALDO DE LA NC [DOCUMENTO ACTUAL]
|
||
ImporteFinal = ImporteFinal > SaldoFactura ? SaldoFactura : ImporteFinal; //VALIDA QUE NO SEA MAYOR QUE EL SALDO DE LA FACTURA [RENGLON DEL GV]
|
||
|
||
if (ImporteFinal != ToDouble(textbox.value)) { // SI EL IMPORTEFINAL ES DIFERENTE DEL VALOR ACTUAL LO ACTUALIZAMOS
|
||
textbox.value = ImporteFinal > 0 ? FormatoNumero(ImporteFinal, 2) : "";
|
||
}
|
||
|
||
//CHECKED
|
||
$(`#${textbox.id}`).parent().parent().children().children('input[type*=checkbox]').prop('checked', ImporteFinal > 0 ? true : false);
|
||
|
||
// LA SUMA DE LO APLICADO - MENOS LO QUE TENIA EL TXT ACTUAL + MAS LO QUE TIENE AHORA EL TXTACTUAL
|
||
$('#C_LblAplicado').text(FormatoNumero(SumaImporte - ImporteTXT + ImporteFinal, 2));
|
||
}
|
||
|
||
|
||
|
||
//INICIA: DEVOLUCION DE ALMACEN
|
||
function FnCambiaInvNC(txt) {
|
||
var saldoAmortizacion = ToDouble($('#C_LbNCInvSaldo').text());
|
||
var Sumatoria = SumaValoresInvNC();
|
||
if (Sumatoria > saldoAmortizacion) {
|
||
Sumatoria -= ToDouble(txt.value) * ToDouble(jQuery($(txt[0]).parent().parent().children()[7]).text());
|
||
txt.value = '';
|
||
alert("El Importe no debe de exceder a el saldo.[" + Sumatoria + " " + saldoAmortizacion + "]");
|
||
}
|
||
$('#C_LbNCInvImporte').text(FormatoNumero(Sumatoria, 2));
|
||
$('#C_LbNCInvImporteAlmacen').text(FormatoNumero(Sumatoria, 2));
|
||
}
|
||
|
||
function SumaValoresInvNC() {
|
||
var SumaValores = 0;
|
||
$('input[id*=C_GVNCInv_TxtCantidadNCInv]').each(function () {
|
||
if ($(this).val() > 0) {
|
||
SumaValores += ToDouble($(this).val()) * ToDouble(jQuery($(this).parent().parent().children()[7]).text());
|
||
}
|
||
});
|
||
return Math.round(SumaValores * 100) / 100;
|
||
}
|
||
|
||
$('.ChkAntNC').children().on('change', function () {
|
||
|
||
$('.ChkAntNC').children().not(this).prop('checked', false);
|
||
$('.ChkAntNC').children().each(function () {
|
||
$(this).triggerHandler("click");
|
||
});
|
||
});
|
||
//FIN: DEVOLUCION DE ALMACEN
|
||
|
||
|
||
|
||
function ValidarCantidad(t, c) {
|
||
t.value = (t.value > c ? c : t.value);
|
||
}
|
||
|
||
|
||
function ValidaImporte(imp, s) {
|
||
var Importe = 0;
|
||
var topLevelElem = document.getElementById("form1");
|
||
var textBoxes = topLevelElem.getElementsByTagName("input");
|
||
|
||
if (parseFloat(imp.value) > s) {
|
||
imp.value = s;
|
||
}
|
||
|
||
for (var i = 0; i < textBoxes.length; i++) {
|
||
if (textBoxes[i].type == "text") {
|
||
if (textBoxes[i].id.indexOf('TxtImporte') >= 0 && textBoxes[i].readOnly == false && textBoxes[i].value != '') {
|
||
Importe = parseFloat(Importe) + parseFloat(textBoxes[i].value.split(',').join(''));
|
||
}
|
||
}
|
||
}
|
||
|
||
if ($get('Lbtotalimporte')) $get('Lbtotalimporte').innerText = FormatoNumero(Importe, 2);
|
||
}
|
||
|
||
|
||
|
||
// ACTIVOS FIJOS --- AF
|
||
|
||
function LimpiaAF(TipoCompra, CveConcepto) {
|
||
$get("HdnTipoAF").value = TipoCompra;
|
||
$get("HdnCveConceptoAF").value = CveConcepto;
|
||
}
|
||
|
||
function CargaActivoFijo(Label, HiddenCve, HiddenCod, cveaf, codigoaf, serie) {
|
||
$get(Label).value = codigoaf;
|
||
$get(HiddenCve).value = cveaf;
|
||
if (codigoaf.length > 0) {
|
||
$get(HiddenCod).value = codigoaf;
|
||
} else {
|
||
$get(HiddenCod).value = serie;
|
||
}
|
||
|
||
$get("BtnLimpiaAF").click();
|
||
}
|
||
|
||
|
||
function LimitaCantidad(C, textbox, button) {
|
||
|
||
// var contenedor = $(textbox).parent().find("#" + buttonIdDiv);
|
||
|
||
if (ToDouble(textbox.value) >= C) {
|
||
textbox.value = "";
|
||
}
|
||
|
||
if (parseFloat(textbox.value) > 0) {
|
||
$get(button).style.display = "";
|
||
//$(contenedor).show();
|
||
}
|
||
else {
|
||
$get(button).style.display = "none";
|
||
//$(contenedor).hide();
|
||
|
||
}
|
||
}
|
||
|
||
|
||
function DividirInsumo(t) {
|
||
$get("HdnCantidadInsumo").value = $get(t).value;
|
||
}
|
||
|
||
function DividirPersonal(t) {
|
||
$get("HdnCantidadPersonal").value = $get(t).value;
|
||
}
|
||
|
||
var H1 = "";
|
||
var H2 = "";
|
||
var T = "";
|
||
|
||
function EnterAFEdit(event, Txt, Hdn1, Hdn2, index) {
|
||
if (event.which == 13 || event.keyCode == 13) {
|
||
H1 = Hdn1;
|
||
H2 = Hdn2;
|
||
T = Txt;
|
||
$get("HdnCodAFEdit").value = Txt.value;
|
||
$get("HdnIndexTmpDT").value = index;
|
||
|
||
$('#BtnVinculaAFEdit').click();
|
||
}
|
||
}
|
||
|
||
function AFBlurEdit(Txt, Hdn1, Hdn2, index) {
|
||
if (Txt.value.length > 0 && Txt.value != Hdn2.value) {
|
||
H1 = Hdn1;
|
||
H2 = Hdn2;
|
||
T = Txt;
|
||
$get("HdnCodAFEdit").value = Txt.value;
|
||
$get("HdnIndexTmpDT").value = index;
|
||
|
||
$('#BtnVinculaAFEdit').click();
|
||
}
|
||
}
|
||
function AFInsumosMedida(Txt, Hdn1) {
|
||
if (Txt.value.length > 0) {
|
||
|
||
$get("HdnIndexTmpDT").value = Hdn1;
|
||
$get("HdnTxtAFMedida").value = Txt.value;
|
||
$('#BtnAFMedida').click();
|
||
}
|
||
}
|
||
|
||
function EnterAFEditOK(Cve, Codigo) {
|
||
$get(H1.id).value = Cve;
|
||
$get(H2.id).value = Codigo;
|
||
$get(T.id).value = (Codigo == -1) ? "" : Codigo;
|
||
|
||
}
|
||
|
||
|
||
//ORDENES DE COMPRA --- OC
|
||
function VinculaOC(CveOC, Folio, CveEstatus) {
|
||
$get("TxtOC").value = Folio;
|
||
$get("HdnVCveOC").value = CveOC;
|
||
$get("HdnCveEstatusOC").value = CveEstatus;
|
||
$get("BtnVOC").click();
|
||
|
||
}
|
||
|
||
//$("#TxtOC").keypress(function (event) {
|
||
// if (event.which == 13) {
|
||
// event.preventDefault();
|
||
// $get("BtnBuscarOC").click();
|
||
// }
|
||
//});
|
||
|
||
function fncBuscaOC(e) {
|
||
if (e.which == 13) {
|
||
e.preventDefault();
|
||
$get("BtnBuscarOC").click();
|
||
}
|
||
}
|
||
|
||
function LimitaCantidadOC(Cantidad, textbox) {
|
||
if (ToDouble(textbox.value) > ToDouble(Cantidad)) {
|
||
textbox.value = FormatoNumero(Cantidad);
|
||
}
|
||
}
|
||
|
||
|
||
|
||
function CalculaTotalOCEdit(PS, CantidadOriginal, TxtCantidad, TxtPU, TxtTotal, IEPSOriginal, HdnIEPS, IVAOriginal, HdnIVA, RetIVAOriginal, HdnRetIVA, RetISROriginal, HdnRetISR, IEPSIVAOriginal, HdnIEPSIVA, DescuentoOriginal, HdnDescuento, IVAPorcentaje, RetIVAPorcentaje, RetISRPorcentaje, IEPSPSPorcentaje, IEPSPSIVAPorcentaje) {
|
||
//var Proporcional = ((ToDouble(TxtCantidad.value) * 100) / CantidadOriginal) / 100;
|
||
|
||
|
||
var TotalGravado = ToDouble(TxtCantidad.value) * ToDouble(TxtPU.value);
|
||
var Total = ToDouble(TxtCantidad.value) * ToDouble(TxtPU.value);
|
||
|
||
HdnDescuento.value = ToDouble(DescuentoOriginal * ToDouble(TxtCantidad.value) / CantidadOriginal);
|
||
if (true) {
|
||
HdnIEPS.value = ToDouble(IEPSPSPorcentaje * (Total - ToDouble(HdnDescuento.value)));
|
||
}
|
||
if (IEPSIVAOriginal > 0) {
|
||
HdnIEPSIVA.value = ToDouble(IEPSPSIVAPorcentaje * (Total - ToDouble(HdnDescuento.value)));
|
||
TotalGravado += ToDouble(IEPSPSIVAPorcentaje * (Total - ToDouble(HdnDescuento.value)));
|
||
}
|
||
|
||
if (IVAOriginal > 0) {
|
||
HdnIVA.value = ToDouble(IVAPorcentaje * (TotalGravado - ToDouble(HdnDescuento.value)));
|
||
}
|
||
if (RetIVAOriginal > 0) {
|
||
HdnRetIVA.value = ToDouble(RetIVAPorcentaje * (Total - ToDouble(HdnDescuento.value)));
|
||
}
|
||
if (RetISROriginal > 0) {
|
||
HdnRetISR.value = ToDouble(RetISRPorcentaje * (Total - ToDouble(HdnDescuento.value)));
|
||
}
|
||
|
||
TxtTotal.value = FormatoNumero(Total - ToDouble(HdnDescuento.value), 2);
|
||
//RECALCULA IMPORTES GENERALES
|
||
CalculaTotalesOC();
|
||
|
||
}
|
||
|
||
function ValidaImporteCero(PS, TxtCantidad, TxtPU) {
|
||
//VALIDACION DE IMPORTE EN CERO
|
||
if (ToDouble(TxtPU.value) == 0 && ToDouble(TxtCantidad.value) > 0) {
|
||
$get("HdnAlertaPUCero").value = PS + '|' + ToDouble(TxtCantidad.value)
|
||
$get("BtnAlertaPUCero").click();
|
||
}
|
||
}
|
||
|
||
function CalculaTotalesOC() {
|
||
|
||
var SumaSubTotal = 0, SumaIEPS = 0, SumaIEPSIVA = 0, SumaIVA = 0, SumaRetIVA = 0, SumaRetISR = 0, SumaTotal = 0, SumaDescuento = 0, Amortizacion = 0;
|
||
|
||
$('input[name*=TxtTotalOC1]').each(function () {
|
||
SumaSubTotal += ToDouble($(this).val());
|
||
});
|
||
|
||
$('input[name*=HdnOC1IEPSImporte]').each(function () {
|
||
SumaIEPS += ToDouble($(this).val());
|
||
});
|
||
|
||
$('input[name*=HdnOC1IEPSIVA]').each(function () {
|
||
SumaIEPSIVA += ToDouble($(this).val());
|
||
});
|
||
|
||
$('input[name*=HdnOC1IVA]').each(function () {
|
||
|
||
let tmpiva = (ToDouble($(this).val())).toFixed(2)
|
||
SumaIVA += ToDouble(tmpiva);
|
||
});
|
||
|
||
$('input[name*=HdnOC1RetIVA]').each(function () {
|
||
SumaRetIVA += ToDouble($(this).val());
|
||
});
|
||
|
||
$('input[name*=HdnOC1RetISR]').each(function () {
|
||
SumaRetISR += ToDouble($(this).val());
|
||
});
|
||
|
||
$('input[name*=HdnOC1Descuento]').each(function () {
|
||
SumaDescuento += ToDouble($(this).val());
|
||
});
|
||
|
||
//Amortizacion = ToDouble($get('C_Tab_TabGenerales_LblAmortizacion').innerText);
|
||
|
||
SumaTotal = SumaSubTotal + SumaIVA + SumaIEPS - SumaRetIVA - SumaRetISR;
|
||
|
||
if ($get("C_Tab_TabOC_LbSubTotalOC1")) {
|
||
$get("C_Tab_TabOC_LbSubTotalOC1").innerText = FormatoNumero(SumaSubTotal + SumaDescuento, 2);
|
||
}
|
||
if ($get("C_Tab_TabOC_LbSubTotal2OC1")) {
|
||
$get("C_Tab_TabOC_LbSubTotal2OC1").innerText = FormatoNumero(SumaSubTotal, 2);
|
||
}
|
||
if ($get("C_Tab_TabOC_LbIEPSOC1")) {
|
||
$get("C_Tab_TabOC_LbIEPSOC1").innerText = FormatoNumero(SumaIEPS, 2);
|
||
}
|
||
|
||
$get("HdnIEPSModificadoOC").value = FormatoNumero(SumaIEPS, 2);
|
||
|
||
if ($get("C_Tab_TabOC_LbIEPSIVAOC1")) {
|
||
$get("C_Tab_TabOC_LbIEPSIVAOC1").innerText = FormatoNumero(SumaIEPSIVA, 2);
|
||
}
|
||
if ($get("C_Tab_TabOC_LbIVAOC1")) {
|
||
$get("C_Tab_TabOC_LbIVAOC1").innerText = FormatoNumero(SumaIVA, 2);
|
||
}
|
||
if ($get("C_Tab_TabOC_LbDescuentoOC1")) {
|
||
$get("C_Tab_TabOC_LbDescuentoOC1").innerText = FormatoNumero(SumaDescuento, 2);
|
||
}
|
||
if ($get("C_Tab_TabOC_LbRetIVAOC1")) {
|
||
$get("C_Tab_TabOC_LbRetIVAOC1").innerText = FormatoNumero(SumaRetIVA, 2);
|
||
}
|
||
if ($get("C_Tab_TabOC_LbRetISROC1")) {
|
||
$get("C_Tab_TabOC_LbRetISROC1").innerText = FormatoNumero(SumaRetISR, 2);
|
||
}
|
||
if ($get("C_Tab_TabOC_LbTotalOC1")) {
|
||
$get("C_Tab_TabOC_LbTotalOC1").innerText = FormatoNumero(SumaTotal, 2);
|
||
}
|
||
}
|
||
|
||
|
||
//CONTRATOS
|
||
function VinculaContrato(CveContrato, NumeroContrato) {
|
||
$get("TxtContrato").value = NumeroContrato;
|
||
$get("HdnVCveContrato").value = CveContrato;
|
||
$get("BtnVContrato").click();
|
||
}
|
||
|
||
function ActIVA() {
|
||
$get('TxtIVA').value = ToDouble($get('TxtSubTotal2').value) * ToDouble($get('HdnProveedorIVA').value);
|
||
ActTotal();
|
||
}
|
||
|
||
function ActTotal() {
|
||
$get('TxtTotal').value = ToDouble($get('TxtSubTotal2').value) + ToDouble($get('TxtIVA').value);
|
||
}
|
||
|
||
|
||
|
||
function Confirm() {
|
||
if (confirm("El Producto/Servicio que desea vincular no tiene la cantidad disponible suficiente en la Orden de Compra, ¿desea vincularlo?")) {
|
||
$get('TxtOCClick').value = "Yes";
|
||
} else {
|
||
$get('TxtOCClick').value = "No";
|
||
}
|
||
$get("BtnOCClick").click();
|
||
}
|
||
|
||
function ConfirmEliminarPolizaMultiple() {
|
||
if (confirm("La poliza que desea eliminar esta asociada con mas movimientos, ¿desea eliminarla?")) {
|
||
$get("BtnEliminarPolizaMultiple").click();
|
||
}
|
||
}
|
||
|
||
function CargaClasificacion() {
|
||
document.location.reload(true);
|
||
}
|
||
|
||
var EjercicioAC = 0;
|
||
function CambiaFecha() {
|
||
var Ejercicio = $get('TxtFecha').value.substring(6, 10);
|
||
|
||
if (Ejercicio > 2000 && Ejercicio != EjercicioAC) {
|
||
$get("BtnCambiaFecha").click();
|
||
EjercicioAC = Ejercicio;
|
||
}
|
||
}
|
||
|
||
function CambiaFechaTC() {
|
||
$get("BtnCambiaFechaTC").click();
|
||
}
|
||
|
||
|
||
function mantnertamañosgv() {
|
||
if (elementexist('.fijartamaños')) {
|
||
$('.fijartamaños').remove();
|
||
}
|
||
if (elementexist('.GvPS')) {
|
||
var mywidthrow = $('<tr class="fijartamaños" style="max-height:1px;"></tr>');
|
||
$('.GvPS').prepend(mywidthrow);
|
||
$('.GvPSheader tr:nth-child(2) td').each(function (index) {
|
||
var colspan = ''
|
||
if (index == 8) {
|
||
colspan = 'colspan="' + $(this).attr("colspan") + '"';
|
||
}
|
||
mywidthrow.append($('<th ' + colspan + ' ><div style="width:' + ($(this).width()) + 'px"></div></th>'));
|
||
});
|
||
}
|
||
}
|
||
|
||
function intitdevolucionsuma() {
|
||
var suma = 0;
|
||
$('input[data-Devolucion="devrow"]').each(function (index) {
|
||
$(this).blur(function () {
|
||
|
||
relasetxtdev($(this));
|
||
devolucionsuma();
|
||
});
|
||
$(this).keyup(function () {
|
||
relasetxtdev($(this));
|
||
devolucionsuma();
|
||
});
|
||
});
|
||
}
|
||
function relasetxtdev(__thitxt) {
|
||
var txttotal = $($($($(__thitxt).parent()).parent()).find('.devTotal'));
|
||
var pu = parseFloat($(__thitxt).data('pu'));
|
||
var cantidad = parseFloat($(__thitxt).val());
|
||
var cantidadmax = parseFloat($(__thitxt).data('max'));
|
||
if (cantidad > cantidadmax) {
|
||
cantidad = cantidadmax;
|
||
__thitxt.val(cantidad);
|
||
}
|
||
txttotal.val(FormatoNumero(pu * cantidad, 2));
|
||
}
|
||
function devolucionsuma() {
|
||
var suma = 0;
|
||
$('input[data-Devolucion="devrow"]').each(function (index) {
|
||
if ($(this).val() === '') { $(this).val(0); }
|
||
suma += parseFloat($(this).val());
|
||
});
|
||
$('input[data-Devolucion="devtotal"]').val(suma);
|
||
suma = 0;
|
||
$('.devTotal').each(function (index) {
|
||
if ($(this).val() === '') { $(this).val(0); }
|
||
suma += parseFloat($(this).val().replace(',', ''));
|
||
});
|
||
$('.devTotaltotal').val(FormatoNumero(suma, 2));
|
||
}
|
||
//intitdevolucionsuma();
|
||
|
||
jQuery(document).ready(function () {
|
||
|
||
Sys.Application.add_load(function (s, e) {
|
||
mantnertamañosgv();
|
||
intitdevolucionsuma();
|
||
});
|
||
$(window).resize(mantnertamañosgv);
|
||
});
|
||
|
||
|
||
//Cancelar Compra
|
||
function ShowDivCancelarCompra() {
|
||
$('#<%= TxtFechaCancelacion.ClientID%>').val($get("TxtFecha").value);
|
||
$('#DivCancelarCompra').modal();
|
||
}
|
||
function HideDivCancelarCompra() {
|
||
$('#DivCancelarCompra').modal('hide');
|
||
}
|
||
//Pantalla completa en Vinculación OC.
|
||
var FullScreenOC = false;
|
||
|
||
function FullScreenViculacion() {
|
||
var PorletOCV = document.getElementById('DivOCV');
|
||
var PorletDatosCompra = document.getElementById('DivDatosCompra');
|
||
var TablaDatos = document.getElementById('tdDatos');
|
||
var Titulo = document.getElementById('DivTitulo');
|
||
FullScreenOC = !(FullScreenOC);
|
||
if (FullScreenOC) {
|
||
var ScreenSize = window.innerHeight - TablaDatos.offsetHeight - Titulo.offsetHeight * 3 + "px"
|
||
PorletOCV.style.height = ScreenSize;
|
||
PorletDatosCompra.style.height = ScreenSize;
|
||
} else {
|
||
PorletOCV.style.height = "250px";
|
||
PorletDatosCompra.style.height = "250px";
|
||
}
|
||
}
|
||
</script>
|
||
|
||
|
||
<script src="/Metronic/assets/global/scripts/datatable.js"></script>
|
||
<script src="/Metronic/assets/global/plugins/datatables/all.min.js"></script>
|
||
<script type="text/javascript">
|
||
var OrdenarGV = function () {
|
||
var Tam = TamañoVentana();
|
||
var Alto = Tam.height - 330;
|
||
if (Alto < 100) {
|
||
Alto = 100;
|
||
}
|
||
$('#C_Tab_TabOC_GvOC1').DataTable({ scrollY: Alto + 'px', scrollCollapse: true, paging: false, searching: false, info: false, });
|
||
$('#C_Tab_TabOC_GvOC1').parent().parent().children().first().css("position", "static");
|
||
|
||
$('#C_Tab_TabOC_GvOC1').DataTable({ scrollY: Alto + 'px', scrollCollapse: true, paging: false, searching: false, info: false, });
|
||
$('#C_Tab_TabOC_GvOC1').parent().parent().children().first().css("position", "static");
|
||
|
||
SeleccionarFila();
|
||
}
|
||
var SeleccionarFila = function () {
|
||
$("#C_Tab_TabOC_GvOC1 tr").click(function () {
|
||
if ($("#C_Tab_TabOC_GvOC1").hasClass("table-striped")) {
|
||
$("#C_Tab_TabOC_GvOC1").removeClass("table-striped");
|
||
}
|
||
$(this).toggleClass("filacolor");
|
||
});
|
||
$("#C_Tab_TabOC_GvOC1 tr").click(function () {
|
||
if ($("#C_Tab_TabOC_GvOC1").hasClass("table-striped")) {
|
||
$("#C_Tab_TabOC_GvOC1").removeClass("table-striped");
|
||
}
|
||
$(this).toggleClass("filacolor");
|
||
});
|
||
}
|
||
|
||
|
||
|
||
function ValidaCredito(objTxt, event, CveCreditoDetalle, Tipo) {
|
||
|
||
var ValorInicialTFloat = objTxt.value.toString().replace(/,/g, '').length = 0 ? 0 : parseFloat(objTxt.value.toString().replace(/,/g, ''));
|
||
|
||
|
||
var char = event.which || event.keyCode;
|
||
|
||
if (char == 9) {//Evita que se ejecute la rutina cuando se presiona Tap (cuando se salta de interes a ambas si se ejecuta se limpian los valores de capital e interes)
|
||
return;
|
||
}
|
||
|
||
if (ValorInicialTFloat == 0) {
|
||
objTxt.value = '0';
|
||
//return;
|
||
}
|
||
|
||
let Total = 0;
|
||
let TotalString = '';
|
||
|
||
if (Tipo == 1) {
|
||
|
||
$(`.CsSelAmbos${CveCreditoDetalle}`).each(function () {
|
||
$(this).val("");
|
||
});
|
||
|
||
$(`.CsSelCapital${CveCreditoDetalle}`).each(function () {
|
||
FormatoMoneda3($(this));
|
||
});
|
||
|
||
$(`.CsSelInteres${CveCreditoDetalle}`).each(function () {
|
||
FormatoMoneda3($(this));
|
||
});
|
||
|
||
|
||
} else {
|
||
|
||
$(`.CsSelAmbos${CveCreditoDetalle}`).each(function () {
|
||
FormatoMoneda3($(this));
|
||
});
|
||
|
||
$(`.CsSelCapital${CveCreditoDetalle}`).each(function () {
|
||
$(this).val("");
|
||
});
|
||
|
||
$(`.CsSelInteres${CveCreditoDetalle}`).each(function () {
|
||
$(this).val("");
|
||
});
|
||
|
||
}
|
||
|
||
var TotalCompra = parseFloat($('#<%= TxtTotal.ClientID %>').val().replace(/,/g, '')).toFixed(2);
|
||
|
||
$(`.CsCreGlobal`).each(function () {
|
||
|
||
let stringTemp = $(this).val().replace(/,/g, '');
|
||
let tempValor = parseFloat(stringTemp);
|
||
|
||
if (!isNaN(tempValor)) {
|
||
Total += tempValor
|
||
}
|
||
});
|
||
|
||
if (Total > TotalCompra) {
|
||
|
||
let TmpObtTxtValor = TotalCompra - (Total - ValorInicialTFloat);
|
||
|
||
if (TmpObtTxtValor > 0) {
|
||
objTxt.value = '' + FormatoNumero(TmpObtTxtValor, 2);
|
||
} else {
|
||
objTxt.value = '';
|
||
}
|
||
|
||
Total = TotalCompra;
|
||
}
|
||
|
||
$('#<%= LblImporteCreditos.ClientID %>').text('Total ' + FormatoMonedaL(Total));
|
||
|
||
if (ValorInicialTFloat == 0) {
|
||
objTxt.value = '';
|
||
}
|
||
}
|
||
|
||
|
||
|
||
function FormatoMoneda3(t) {
|
||
|
||
|
||
var v = t.val().replace(/([^0-9\.]+)/g, '');
|
||
v = v.replace(/^[\.]/, '');
|
||
v = v.replace(/[\.][\.]/g, '');
|
||
v = v.replace(/\.(\d)(\d)(\d)/g, '.$1$2');
|
||
v = v.replace(/\.(\d{1,2})\./g, '.$1');
|
||
v = v.toString().split('').reverse().join('').replace(/(\d{3})/g, '$1,');
|
||
v = v.split('').reverse().join('').replace(/^[\,]/, '');
|
||
t.val(v);
|
||
}
|
||
|
||
|
||
function FormatoMonedaL(t) {
|
||
|
||
let tmpstring = '' + t;
|
||
var v = tmpstring.replace(/([^0-9\.]+)/g, '');
|
||
v = v.replace(/^[\.]/, '');
|
||
v = v.replace(/[\.][\.]/g, '');
|
||
v = v.replace(/\.(\d)(\d)(\d)/g, '.$1$2');
|
||
v = v.replace(/\.(\d{1,2})\./g, '.$1');
|
||
v = v.toString().split('').reverse().join('').replace(/(\d{3})/g, '$1,');
|
||
v = v.split('').reverse().join('').replace(/^[\,]/, '');
|
||
|
||
return v;
|
||
|
||
}
|
||
|
||
|
||
function ValidateCant(ncss, SubtotalValidar) {
|
||
|
||
let SubTotal = 0.0;
|
||
|
||
let CantidadS = $(".CssCantidad" + ncss).val();
|
||
let PuS = $(".CssPU" + ncss).val();
|
||
|
||
let Cantidad = 0.0;
|
||
let Pu = 0.0;
|
||
|
||
try {
|
||
|
||
if (CantidadS.length > 0 && PuS.length > 0) {
|
||
|
||
Cantidad = parseFloat(CantidadS);
|
||
Pu = parseFloat(PuS);
|
||
|
||
$(".CssImporte" + ncss).val(Cantidad * Pu);
|
||
|
||
|
||
} else {
|
||
$(".CssImporte" + ncss).val("0");
|
||
}
|
||
|
||
|
||
} catch (error) {
|
||
$(".CssImporte" + ncss).val("0");
|
||
}
|
||
|
||
//$('.ImporteCSS').each(function () {
|
||
|
||
|
||
// if(! isNaN(parseFloat($(this).val()) )){
|
||
// SubTotal = SubTotal + parseFloat($(this).val())
|
||
// }
|
||
|
||
//});
|
||
|
||
ValidaBotonContrato(SubtotalValidar);
|
||
|
||
|
||
|
||
//if (SubtotalValidar == SubTotal) {
|
||
// $('#BtnAplicarContrato').prop('disabled', false);
|
||
//} else {
|
||
// $('#BtnAplicarContrato').prop('disabled', true);
|
||
//}
|
||
|
||
}
|
||
|
||
function ValidaBotonContrato(SubtotalValidar) {
|
||
|
||
let SubTotal = 0.0;
|
||
|
||
|
||
|
||
$('.ImporteCSS').each(function () {
|
||
|
||
if (!isNaN(parseFloat($(this).val()))) {
|
||
SubTotal = SubTotal + parseFloat($(this).val())
|
||
}
|
||
});
|
||
|
||
|
||
|
||
if (SubtotalValidar == SubTotal) {
|
||
$('#BtnAplicarContrato').prop('disabled', false);
|
||
} else {
|
||
$('#BtnAplicarContrato').prop('disabled', true);
|
||
}
|
||
|
||
$('#LblTotalContrato').text(SubTotal);
|
||
|
||
}
|
||
function ChkImportacion(chk) {
|
||
|
||
if (chk.checked == true) {
|
||
$('#divIVA').css("display", "none");
|
||
$('#divImporteImportacion').css("display", "block");
|
||
debugger;
|
||
} else {
|
||
$('#divIVA').css("display", "none");
|
||
$("#divImporteImportacion").css("display", "block");
|
||
debugger;
|
||
|
||
}
|
||
}
|
||
|
||
function ValidateCantCon(variable) {
|
||
|
||
var txt = $(variable);
|
||
var max = txt.data('cantidad');
|
||
var value = parseInt(txt.val());
|
||
if (value > max) {
|
||
txt.val(max);
|
||
}
|
||
if (value < 0) {
|
||
txt.val(0);
|
||
}
|
||
|
||
var importe = $('.txtimporte[data-cve="' + txt.data('cve') + '"]');
|
||
importe.val(parseFloat(txt.val()) * parseFloat(txt.data('pu')));
|
||
|
||
}
|
||
|
||
|
||
|
||
function ValidaRangoDeFechas(sender, args) {
|
||
|
||
if ($("#TxtFecha").val().length == 10 && $("#TxtFechaPago").val().length == 10) {
|
||
|
||
let Finicio = parseInt($("#TxtFecha").val().substring(6,10));
|
||
let FFin = parseInt($("#TxtFechaPago").val().substring(6, 10));
|
||
|
||
|
||
if ((FFin - Finicio) > 5) {
|
||
args.IsValid = false;
|
||
} else {
|
||
args.IsValid = true;
|
||
}
|
||
|
||
|
||
} else {
|
||
args.IsValid = true;
|
||
}
|
||
|
||
}
|
||
|
||
function FnSumOtrosIngEgs(txtOtrIngEgs) {
|
||
|
||
$('#TxtDeudoresOtrosGastosIngresos').val(txtOtrIngEgs.value);
|
||
}
|
||
|
||
</script>
|
||
|
||
</asp:Content>
|