2728 lines
244 KiB
Plaintext
2728 lines
244 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Contrato.aspx.vb" Inherits="Contratos_Default" %>
|
||
|
||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||
<link href="/Metronic/assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css" rel="stylesheet" />
|
||
</asp:Content>
|
||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||
<style>
|
||
.table-scrollable {
|
||
margin-top: 0px !important;
|
||
margin-bottom: 0px !important;
|
||
}
|
||
|
||
.Widthall {
|
||
width: 100% !important;
|
||
}
|
||
|
||
.dataTables_scrollHeadInner {
|
||
width: 100% !important;
|
||
background-color: #dddddd;
|
||
padding-left: 0px !important;
|
||
}
|
||
|
||
.dataTables_scrollFoot {
|
||
display: none;
|
||
position: static;
|
||
}
|
||
|
||
.table-scrollable {
|
||
margin: 0px !important;
|
||
}
|
||
|
||
.dataTables_scroll {
|
||
margin-bottom: 0px;
|
||
}
|
||
|
||
.table.dataTable {
|
||
margin-top: 0px !important;
|
||
}
|
||
|
||
.dataTables_scrollBody table th {
|
||
padding: 0px !important;
|
||
padding-right: 4px !important;
|
||
padding-left: 4px !important;
|
||
}
|
||
|
||
.sinlink td a {
|
||
pointer-events: none;
|
||
cursor: default;
|
||
color: black;
|
||
font-size: small;
|
||
}
|
||
|
||
.white a {
|
||
color: white !important;
|
||
}
|
||
|
||
.Derecha {
|
||
text-align: right;
|
||
}
|
||
|
||
.Izquierda {
|
||
text-align: left;
|
||
}
|
||
|
||
.SinColor th {
|
||
background-color: white;
|
||
}
|
||
|
||
.posicionvalidation {
|
||
left: 230px;
|
||
}
|
||
</style>
|
||
</asp:Content>
|
||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
|
||
<li runat="server" id="liTerminarContrato" visible="false">
|
||
<asp:LinkButton ID="LBTerminarContrato" Visible="false" OnClick="LBTerminarContrato_Click" runat="server" data-toggle="confirmation" data-popout="true" data-original-title="Esta seguro de terminar el contrato?" data-btn-ok-label="si"> <i class="fa fa-check"> </i> Concluir Contrato</asp:LinkButton>
|
||
</li>
|
||
<li runat="server" id="liCancelarContrato" visible="false">
|
||
<asp:LinkButton ID="LBCancelarContrato" Visible="false" OnClick="LBCancelarContrato_Click" runat="server" data-toggle="confirmation" data-popout="true" data-original-title="Esta seguro de cancelar el contrato?" data-btn-ok-label="si"> <i class="fa fa-times"> </i> Cancelar Contrato</asp:LinkButton>
|
||
</li>
|
||
<li runat="server" id="liVigenteContrato" visible="false">
|
||
<asp:LinkButton ID="LBVigenteContrato" Visible="false" OnClick="LBVigenteContrato_Click" runat="server" data-toggle="confirmation" data-popout="true" data-original-title="Esta seguro de pasar a vigente el contrato?" data-btn-ok-label="si"> <i class="fa fa-times"> </i> Reactivar Contrato</asp:LinkButton>
|
||
</li>
|
||
<li>
|
||
<asp:LinkButton ID="LbDescargarExcel" Visible="True" OnClick="LbDescargarExcel_Click" runat="server"><i class='fa fa-file-excel-o' style="font-weight:bold;"></i> Descargar Formato</asp:LinkButton>
|
||
</li>
|
||
<li>
|
||
<asp:HyperLink ID="LbCrearApartirDe" NavigateUrl="#" data-toggle="modal" data-target="#ModalCrearApartirDe" runat="server"><i class='fa fa-refresh'></i> Crear A Partir De</asp:HyperLink>
|
||
</li>
|
||
|
||
<li>
|
||
<asp:HyperLink ID="HlAgregarExcel" NavigateUrl="#" Visible="True" data-toggle="modal" data-target="#DivCargaExcel" runat="server"><i class='fa fa-server'></i> Importar Listado</asp:HyperLink>
|
||
</li>
|
||
|
||
|
||
<li>
|
||
<asp:LinkButton ID="LBAgregarGasto" runat="server"><i class="fa fa-plus"></i> Agregar Gastos</asp:LinkButton>
|
||
</li>
|
||
|
||
|
||
<li>
|
||
<asp:LinkButton ID="LBImprimir" Visible="false" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> Avance por Documento PDF</asp:LinkButton>
|
||
</li>
|
||
|
||
|
||
<li>
|
||
<asp:LinkButton ID="liImprimir" runat="server" Visible="false"><i class='fa fa-download'></i> Descargar Contrato</i></asp:LinkButton>
|
||
</li>
|
||
|
||
<li>
|
||
<asp:LinkButton ID="LBImprimirInformacionG" Visible="false" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> Informacion PDF</asp:LinkButton>
|
||
</li>
|
||
|
||
|
||
<li>
|
||
<asp:LinkButton ID="LBImprimirGastos" Visible="false" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> Gastos PDF</asp:LinkButton>
|
||
</li>
|
||
|
||
|
||
<li>
|
||
<asp:LinkButton ID="LbImprimirSuministros" Visible="true" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> Suministros PDF</asp:LinkButton>
|
||
</li>
|
||
<li>
|
||
<asp:LinkButton ID="lbImprimirAvance" Visible="False" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> Avance PDF</asp:LinkButton>
|
||
</li>
|
||
|
||
<li>
|
||
<asp:LinkButton ID="LbImprimirPresupuesto" Visible="true" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> Presupuesto PDF</asp:LinkButton>
|
||
</li>
|
||
|
||
<li>
|
||
<asp:LinkButton ID="LbImprmirAF" Visible="true" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> Activos Fijos PDF</asp:LinkButton>
|
||
</li>
|
||
|
||
<li>
|
||
<asp:LinkButton ID="LbImprmirAFExcel" Visible="true" runat="server"> <i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Activos Fijos Excel</asp:LinkButton>
|
||
</li>
|
||
<li>
|
||
<asp:LinkButton ID="LbImprimirPedDev" Visible="true" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> Pedidos / Devoluciones PDF</asp:LinkButton>
|
||
</li>
|
||
|
||
<li>
|
||
<asp:LinkButton ID="LbImprimirPedDevExcel" Visible="true" runat="server"> <i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Pedidos / Devoluciones Excel</asp:LinkButton>
|
||
</li>
|
||
|
||
|
||
|
||
<asp:UpdatePanel ID="UpHajusteAcciones" runat="server" UpdateMode="Conditional">
|
||
|
||
<ContentTemplate>
|
||
<li>
|
||
<asp:LinkButton ID="LnkAjusteAF" Visible="true" runat="server" OnClick="LnkAjusteAF_Click"> <i class="fa fa-pencil" style="font-weight:bold;"></i>Habilitar Ajuste A.F.</asp:LinkButton>
|
||
</li>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
|
||
|
||
|
||
</ContentTemplate>
|
||
<Triggers>
|
||
<asp:PostBackTrigger ControlID="LbDescargarExcel" />
|
||
<asp:PostBackTrigger ControlID="LBImprimir" />
|
||
<asp:PostBackTrigger ControlID="LBImprimirGastos" />
|
||
<asp:PostBackTrigger ControlID="LbImprimirSuministros" />
|
||
<asp:PostBackTrigger ControlID="LBImprimirInformacionG" />
|
||
<asp:PostBackTrigger ControlID="lbImprimirAvance" />
|
||
<asp:PostBackTrigger ControlID="LbImprimirPresupuesto" />
|
||
<asp:PostBackTrigger ControlID="LbImprmirAF" />
|
||
<asp:PostBackTrigger ControlID="LbImprmirAFExcel" />
|
||
<asp:PostBackTrigger ControlID="LbImprimirPedDev" />
|
||
<asp:PostBackTrigger ControlID="LbImprimirPedDevExcel" />
|
||
</Triggers>
|
||
</asp:UpdatePanel>
|
||
</asp:Content>
|
||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||
<asp:Literal ID="LtlTitulo" runat="server" Text="Contratos"></asp:Literal> <asp:Literal ID="LtlContrato" runat="server"></asp:Literal>
|
||
</asp:Content>
|
||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||
|
||
|
||
<asp:UpdatePanel ID="UPTipo" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div id="DivTipoContrato" class="row" runat="server" visible="true">
|
||
<div class="col-md-12">
|
||
|
||
<div class="portlet light portlet-fit Withall">
|
||
<div class="portlet-title">
|
||
<div class="caption">
|
||
<span class="caption-subject font-green bold uppercase">
|
||
<h1>Tipo de Contrato</h1>
|
||
</span>
|
||
</div>
|
||
<div class="actions">
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<br />
|
||
<br />
|
||
<div class="row">
|
||
<div class="col-sm-6" style="text-align: right">
|
||
<asp:RadioButton ID="rdventa" runat="server" GroupName="rdTipo" AutoPostBack="true" Text="Venta" />
|
||
</div>
|
||
<div class="col-sm-6" style="text-align: left">
|
||
<asp:RadioButton ID="rpCompra" runat="server" GroupName="rdTipo" AutoPostBack="true" Text="Compra" />
|
||
</div>
|
||
</div>
|
||
<br />
|
||
<div class="row" id="dvDetContrato" runat="server" visible="false">
|
||
<div class="col-md-4" style="text-align: right!important">Tipo Contrato:</div>
|
||
<div class="col-md-4">
|
||
<asp:DropDownList ID="DdlTipoContrato" DataValueField="CveContratoTipo" DataTextField="ContratoTipo" runat="server" AutoPostBack="true" CssClass="select2me" Width="90%" OnSelectedIndexChanged="DdlTipoContrato_SelectedIndexChanged">
|
||
</asp:DropDownList>
|
||
</div>
|
||
<div class="row" style="text-align: center!important">
|
||
<br />
|
||
<br />
|
||
<br />
|
||
<asp:Button Text="Aceptar" runat="server" ID="BtnTipoContrato" Height="30px" Width="150px" class="btn btn-primary" />
|
||
<br />
|
||
<br />
|
||
<br />
|
||
<div style="width: 500px; margin: 0 auto;">
|
||
<asp:Label ID="TxtDescripcionTipoContrato" Text="" runat="server" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
|
||
<div class="row ">
|
||
<asp:TextBox Visible="false" runat="server" ID="TextBox5" TextMode="MultiLine" Rows="5" Enabled="false" Wrap="false" Width="500px" Height="50px" />
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<asp:UpdatePanel UpdateMode="Conditional" ID="UpGral" runat="server">
|
||
<ContentTemplate>
|
||
<div runat="server" id="DivContent" visible="false" style="min-height: 500px">
|
||
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<table runat="server" id="TableDatosCabecera" visible="false" width="100%">
|
||
<tr>
|
||
<td style="width: 250px;">Importe Contratado: $
|
||
|
||
<asp:Label ID="LblImporte" Font-Size="18px" Font-Bold="True" runat="server" Text=""></asp:Label></td>
|
||
<td style="width: 225px;">Facturado: $
|
||
|
||
<asp:Label ID="LblFacturado" Font-Size="18px" Font-Bold="True" runat="server" Text="0.00"></asp:Label></td>
|
||
<td style="width: 225px;">Por Facturar: $
|
||
|
||
<asp:Label ID="LblPorFacturar" Font-Size="18px" Font-Bold="True" runat="server" Text="0.00"></asp:Label></td>
|
||
<td style="text-align: right"><a runat="server" id="LinkArchivo" target="_blank" visible="false">Descargar Contrato<img alt="Descargar Contrato" height="20px" src="/Imagenes/DownPDF.png" /></a></td>
|
||
<td runat="server" id="TablaUtilidad" visible="false">Utilidad:
|
||
|
||
<asp:Label ID="LblUtilidad" Font-Size="18px" Font-Bold="True" runat="server" Text=""></asp:Label></td>
|
||
</tr>
|
||
</table>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<ajax:TabContainer ID="Tab" runat="server" Width="100%" CssClass="tabBodyOverride" ActiveTabIndex="0">
|
||
|
||
<ajax:TabPanel ID="TabInformacionGeneral" runat="server" HeaderText="Información General">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-8">
|
||
<div class="portlet smmallpadding light bordered">
|
||
<div class="portlet-title">
|
||
<div class="tools">
|
||
<a href="javascript;" data-idchekbox="C_chkexpand" class=" collapse" data-original-title="" title=""></a><span class="hidden">
|
||
<input id="C_chkexpand" type="checkbox" name="ctl00$C$chkexpand" checked="checked"></span>
|
||
</div>
|
||
<div class="caption uppercase" style="position: relative;"><i class="fa fa-info-circle"></i>Datos del Contrato</div>
|
||
</div>
|
||
<div class="portlet-body rowpadding">
|
||
<div class="row">
|
||
<label class="col-md-2 truncate">No. Contrato:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtNumeroContrato" runat="server" Width="200px" MaxLength="50"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVNumeroContrato" runat="server" ControlToValidate="TxtNumeroContrato" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''No. Contrato''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCENumeroContrato" runat="server" HighlightCssClass="vco" TargetControlID="RFVNumeroContrato" Width="300px" BehaviorID="_content_VCENumeroContrato"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-2 truncate">Descripción del Contrato:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtDescripcionContrato" runat="server" MaxLength="70" Width="400px" TextMode="MultiLine"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVDescripcionContrato" runat="server" ControlToValidate="TxtDescripcionContrato" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''DescripcionContrato''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEDescripcionContrato" runat="server" HighlightCssClass="vco" TargetControlID="RFVDescripcionContrato" Width="300px" BehaviorID="_content_VCEDescripcionContrato"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div id="trLicitacion" runat="server" class="row">
|
||
<label class="col-md-2 truncate">Número Licitación:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtNumeroLicitacion" runat="server" MaxLength="70" Width="200px"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<div class="row" id="TrProveedor" runat="server">
|
||
<label class="col-md-2 truncate ">
|
||
<asp:Label ID="LblProveedor" runat="server" Text="Proveedor:"></asp:Label></label><div class="col-md-10">
|
||
<asp:DropDownList ID="DdlContratista" runat="server" CssClass="input-sm form-control select2me" AppendDataBoundItems="True" DataTextField="RazonSocial" DataValueField="CveProveedor" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 350px !important;" ValidationGroup="GrpGuardar">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div class="row" style="display: none;">
|
||
<label class="col-md-2 truncate ">Ubicacion:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtUbicacion" runat="server" MaxLength="50" Width="400px"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<div class="row" id="divResponsable" runat="server">
|
||
<label class="col-md-2 truncate ">Responsable:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtResponsable" runat="server" MaxLength="50" Width="400px"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<div class="row" id="RowFlexible" runat="server">
|
||
<label class="col-md-2 truncate ">Flexible:</label>
|
||
<div class="col-md-10">
|
||
<asp:CheckBox ID="chkDetalleContrato" AutoPostBack="True" OnCheckedChanged="chkDetalleContrato_CheckedChanged" runat="server"></asp:CheckBox>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row" runat="server" id="RowAlmacenOrigen" visible="False">
|
||
<label class="col-md-2 truncate ">Almacén origen:</label>
|
||
<div class="col-md-10">
|
||
<asp:DropDownList ID="DdlAlmacenOrigen" runat="server" AppendDataBoundItems="True" DataTextField="Almacen" DataValueField="CveAlmacen" Class="form-control input-sm select2me" Width="400px" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVAlmacenOrigen" runat="server" ControlToValidate="DdlAlmacenOrigen" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Almacén''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEAlmacenOrigen" runat="server" HighlightCssClass="vco" TargetControlID="RFVAlmacenOrigen" Width="300px" BehaviorID="_content_VCEAlmacenOrigen"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row" runat="server" id="RowAlmacen" visible="False">
|
||
<label class="col-md-2 truncate ">Almacén destino:</label>
|
||
<div class="col-md-10">
|
||
<asp:DropDownList ID="DdlAlmacenDestino" runat="server" AppendDataBoundItems="True" DataTextField="Almacen" DataValueField="CveAlmacen" Class="form-control input-sm select2me" Width="400px" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVAlmacenDestino" runat="server" ControlToValidate="DdlAlmacenDestino" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Almacén''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEAlmacenDestino" runat="server" HighlightCssClass="vco" TargetControlID="RFVAlmacenDestino" Width="300px" BehaviorID="_content_VCEAlmacenDestino"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row" runat="server" id="RowPorcentajeComision" visible="False">
|
||
<label class="col-md-2 truncate ">Porcentaje de Comisión:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox runat="server" Text="" ID="TxtPorcentajeComision" MaxLength="2"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender9" runat="server" TargetControlID="TxtPorcentajeComision" FilterType="Numbers" BehaviorID="_content_SoloNumeros" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-4">
|
||
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpProyecto">
|
||
<ContentTemplate>
|
||
<div class="portlet smmallpadding light bordered">
|
||
<div class="portlet-title">
|
||
<div class="tools">
|
||
<a href="javascript;" data-idchekbox="C_chkexpand3" class=" collapse" data-original-title="" title=""></a><span class="hidden">
|
||
<input id="C_chkexpand3" type="checkbox" name="ctl00$C$chkexpand" checked="checked"></span>
|
||
</div>
|
||
<div class="caption uppercase" style="position: relative;"><i class="fa fa-info-circle"></i>Centro de Costos</div>
|
||
</div>
|
||
<div class="portlet-body rowpadding">
|
||
<div class="row" id="trddlproyecto" runat="server">
|
||
<asp:Label runat="server" ID="LblProyecto" class="col-md-4 truncate">Proyecto:</asp:Label>
|
||
<div class="col-md-8">
|
||
<asp:DropDownList ID="DdlProyecto" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Proyecto" DataValueField="CveProyecto" Class="table-group-action-input form-control input-inline input-sm select2me" Style="width: 200px;" ValidationGroup="GrpGuardar">
|
||
<asp:ListItem Selected="True" Text="Sin Proyecto asignado" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-4 truncate">
|
||
<asp:Label ID="lblsubproyecto" runat="server" Text="SubProyectoContrato:"></asp:Label></label><div class="col-md-8">
|
||
<asp:DropDownList ID="DdlSubProyectoContrato" runat="server" AppendDataBoundItems="true" AutoPostBack="false" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Class="table-group-action-input form-control input-inline input-sm select2me" Style="width: 200px;" ValidationGroup="GrpGuardar">
|
||
<asp:ListItem Selected="True" Text="Sin SubProyectoContrato asignado" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVSubProyecto" runat="server" ControlToValidate="DdlSubProyectoContrato" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''SubProyecto''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCESubProyecto" runat="server" HighlightCssClass="vco" TargetControlID="RFVSubProyecto" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row" runat="server" id="dvAddendum">
|
||
<label class="col-md-4 truncate">Addendum:</label>
|
||
<div class="col-md-8">
|
||
<asp:DropDownList ID="DdlContratoPadre" runat="server" AppendDataBoundItems="true" AutoPostBack="false" DataTextField="NumeroContrato" DataValueField="CveContrato" Class="table-group-action-input form-control input-inline input-sm select2me" Style="width: 200px;" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="col-md-8">
|
||
<div class="portlet smmallpadding light bordered">
|
||
<div class="portlet-title">
|
||
<div class="tools">
|
||
<a href="javascript;" data-idchekbox="C_chkexpand2" class=" collapse" data-original-title="" title=""></a><span class="hidden">
|
||
<input id="C_chkexpand2" type="checkbox" name="ctl00$C$chkexpand" checked="checked"></span>
|
||
</div>
|
||
<div class="caption uppercase" style="position: relative;"><i class="fa fa-info-circle"></i>Información</div>
|
||
</div>
|
||
<div class="portlet-body rowpadding">
|
||
<div class="row" id="TrCliente" runat="server" visible="False">
|
||
<label class="col-md-2 truncate">
|
||
<asp:Label ID="Label1" runat="server" Text="Cliente:"></asp:Label></label><div class="col-md-10">
|
||
<asp:DropDownList ID="DdlCliente" AutoPostBack="True" OnSelectedIndexChanged="DdlCliente_SelectedIndexChanged" runat="server" AppendDataBoundItems="True" DataTextField="NombreComercial" DataValueField="CveCliente" Class="table-group-action-input form-control input-inline input-sm select2me" Width="75%" ValidationGroup="GrpGuardar">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<div class="row" id="TrClienteSucursal" runat="server" visible="False">
|
||
<label class="col-md-2 truncate">
|
||
<asp:Label ID="Label2" runat="server" Text="Sucursal Cliente:"></asp:Label></label><div class="col-md-10">
|
||
<asp:DropDownList ID="DdlSucursalCliente" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="SucursalCliente" DataValueField="CveClienteSucursal" Width="75%">
|
||
<asp:ListItem Selected="true" Text="Matriz" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<div class="row" id="DivVendedor" runat="server">
|
||
<label class="col-md-2 truncate">
|
||
<asp:Label ID="LblVendedor" runat="server" Text="Vendedor:"></asp:Label></label><div class="col-md-10">
|
||
<asp:DropDownList ID="DdlVendedor" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="Vendedor" DataValueField="CveVendedor" Width="75%">
|
||
<asp:ListItem Selected="true" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<div class="row" id="DivClienteDireccion" runat="server" visible="false">
|
||
<label class="col-md-2 truncate">
|
||
<asp:Label ID="LblClienteDireccion" runat="server" Text="Dirección Envío:"></asp:Label></label><div class="col-md-10">
|
||
<asp:DropDownList ID="DdlClienteDireccionEnvio" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="DireccionEnvio" DataValueField="CveDireccionEnvio" Width="75%">
|
||
<asp:ListItem Selected="true" Text="-" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
|
||
|
||
<div class="row" id="TrCtaEquipo" runat="server" visible="False">
|
||
<label class="col-md-2 truncate">
|
||
<asp:Label ID="Label3" runat="server" Text="Cuenta Equipo:"></asp:Label></label><div class="col-md-10">
|
||
<asp:DropDownList ID="DdlCuentaEquipo" runat="server" AppendDataBoundItems="True" DataTextField="devID" DataValueField="CveDispositivo" Class="table-group-action-input form-control input-inline input-sm select2me" Width="75%">
|
||
<asp:ListItem Selected="true" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div class="row" id="TrContratoPlantilla" runat="server" visible="False">
|
||
<label class="col-md-2 truncate">
|
||
<asp:Label ID="Label4" runat="server" Text="Plantilla de Contrato:"></asp:Label></label><div class="col-md-10">
|
||
<asp:DropDownList ID="DdlPlantillaContrato" AppendDataBoundItems="true" runat="server" DataValueField="CveContratoPlantilla" DataTextField="NombrePlantilla" CssClass="form-control select2me js-Impuesto-programmatic" Width="75%">
|
||
<asp:ListItem Selected="true" Value="-1" Text="Seleccione"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<%-- <div class="row" id="TrPeriodo" runat="server" visible="False">
|
||
<label class="col-md-2 truncate">
|
||
<asp:Label ID="Label5" runat="server" Text="Periodo:"></asp:Label></label><div class="col-md-10">
|
||
<asp:DropDownList ID="DdlPeriodo" runat="server" AppendDataBoundItems="True" DataTextField="Nombre" DataValueField="CvePeriodo" Class="table-group-action-input form-control input-inline input-sm select2me" Width="75%">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>--%>
|
||
|
||
<div class="row">
|
||
<label class="col-md-2 truncate">Fecha Inicial:</label>
|
||
<div class="col-md-10">
|
||
<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="TxtFechaInicial" runat="server" CssClass="form-control" CausesValidation="True" Style="width: 118px" MaxLength="10"></asp:TextBox><span class="input-group-btn "><asp:LinkButton ID="ImgCalendarioInicial" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton></span>
|
||
</div>
|
||
<ajax:MaskedEditExtender ID="MEEFechaInicial" runat="server" TargetControlID="TxtFechaInicial" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" BehaviorID="_content_MEEFechaInicial" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender ID="CalendarioInicial" runat="server" TargetControlID="TxtFechaInicial" PopupButtonID="ImgCalendarioInicial" PopupPosition="BottomRight" BehaviorID="_content_CalendarioInicial"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="RFVFechaInicial" runat="server" ControlToValidate="TxtFechaInicial" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator><asp:CompareValidator ID="CVFechaInicial" runat="server" ControlToValidate="TxtFechaInicial" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> no tienes 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="VCOFechaInicial1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaInicial" Width="350px" BehaviorID="_content_VCOFechaInicial1"></ajax:ValidatorCalloutExtender>
|
||
<ajax:ValidatorCalloutExtender ID="VCOFechaInicial2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaInicial" Width="350px" BehaviorID="_content_VCOFechaInicial2"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-2 truncate">Fecha Final:</label>
|
||
<div class="col-md-10">
|
||
<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="TxtFechaFinal" runat="server" CssClass="form-control" CausesValidation="True" Style="width: 118px" MaxLength="10"></asp:TextBox><span class="input-group-btn "><asp:LinkButton ID="ImgCalendarioFinal" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton></span>
|
||
</div>
|
||
<ajax:MaskedEditExtender ID="MEEFechaFinal" runat="server" TargetControlID="TxtFechaFinal" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" BehaviorID="_content_MEEFechaFinal" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender ID="CalendarioFinal" runat="server" TargetControlID="TxtFechaFinal" PopupButtonID="ImgCalendarioFinal" PopupPosition="BottomRight" BehaviorID="_content_CalendarioFinal"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="RFVFechaFinal" runat="server" ControlToValidate="TxtFechaFinal" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator><asp:CompareValidator ID="CVFechaFinal" runat="server" ControlToValidate="TxtFechaFinal" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> no tienes 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="VCOFechaFinal1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaFinal" Width="350px" BehaviorID="_content_VCOFechaFinal1"></ajax:ValidatorCalloutExtender>
|
||
<ajax:ValidatorCalloutExtender ID="VCOFechaFinal2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaFinal" Width="350px" BehaviorID="_content_VCOFechaFinal2"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-2 truncate">Moneda:</label>
|
||
<div class="col-md-10">
|
||
<asp:DropDownList ID="DdlMoneda" CssClass="form-control input-sm select2me" runat="server" DataTextField="Moneda" AutoPostBack="True" DataValueField="CveMoneda" Width="150px"></asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div class="row" runat="server" id="tipoCambio" visible="False">
|
||
<label class="col-md-2 truncate">Tipo de cambio:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtTipoCambio" runat="server" MaxLength="12" Width="90px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender7" runat="server" TargetControlID="TxtTipoCambio" FilterType="Custom, Numbers" ValidChars="." BehaviorID="_content_SoloNumeros" />
|
||
</div>
|
||
</div>
|
||
<div id="trIva" runat="server" class="row">
|
||
<label class="col-md-2 truncate">% IVA:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtPorIVA" runat="server" MaxLength="12" Width="90px"></asp:TextBox><ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtPorIVA" FilterType="Custom, Numbers" ValidChars="." BehaviorID="_content_SoloNumeros" />
|
||
</div>
|
||
</div>
|
||
<div id="trAnticipo" runat="server" class="row">
|
||
<label class="col-md-2 truncate ">% Anticipo:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtPorAnticipo" runat="server" MaxLength="12" Width="100px"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<div id="trAmortizacion" runat="server" class="row">
|
||
<label class="col-md-2 truncate ">% Amortización de Anticipo:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtPorAmortizacionAnticipo" runat="server" MaxLength="12" Width="100px"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<div id="trPorGarantia" runat="server" class="row">
|
||
<label class="col-md-2 truncate ">% Garantía:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtPorGarantia" runat="server" MaxLength="12" Width="100px"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<div class="row" id="DvMin" runat="server">
|
||
<label class="col-md-2 truncate ">Minimo:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="txtMinimo" runat="server" MaxLength="12" Width="100px"></asp:TextBox><ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="txtMinimo" FilterType="Custom, Numbers" ValidChars=",." BehaviorID="_content_SoloNumeros" />
|
||
</div>
|
||
</div>
|
||
<div class="row" id="DvMax" runat="server">
|
||
<label class="col-md-2 truncate ">Maximo:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="txtMaximo" runat="server" MaxLength="12" Width="100px"></asp:TextBox><ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" TargetControlID="txtMaximo" FilterType="Custom, Numbers" ValidChars=",." BehaviorID="_content_SoloNumeros" />
|
||
</div>
|
||
</div>
|
||
<div class="row" id="DvTotal" runat="server">
|
||
<label class="col-md-2 truncate ">Total:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtTotal" runat="server" MaxLength="12" Width="100px"></asp:TextBox><ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender8" runat="server" TargetControlID="TxtTotal" FilterType="Custom, Numbers" ValidChars=",." BehaviorID="_content_SoloNumeros" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-4">
|
||
|
||
<div class="row" runat="server" id="RowEstatus">
|
||
<div class="col-md-12">
|
||
<div class="portlet smmallpadding light bordered">
|
||
<div class="portlet-title">
|
||
<div class="tools">
|
||
<a href="javascript;" data-idchekbox="C_chkexpand4" class=" collapse" data-original-title="" title=""></a><span class="hidden">
|
||
<input id="C_chkexpand4" type="checkbox" name="ctl00$C$chkexpand" checked="checked"></span>
|
||
</div>
|
||
<div class="caption uppercase" style="position: relative;"><i class="fa fa-info-circle"></i>Estatus</div>
|
||
</div>
|
||
<div class="portlet-body rowpadding">
|
||
<div class="row">
|
||
<label class="col-md-4 truncate">Estatus:</label>
|
||
<div class="col-md-8">
|
||
<asp:DropDownList ID="DdlEstatus" runat="server" AppendDataBoundItems="True" DataTextField="ContratoEstatus" DataValueField="CveContratoEstatus" CssClass="select2me" Style="width: 200px;" ValidationGroup="GrpGuardar"></asp:DropDownList><asp:RequiredFieldValidator ID="RFVEstatus" runat="server" ControlToValidate="DdlEstatus" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Estatus''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator><ajax:ValidatorCalloutExtender ID="VCOEstatus" runat="server" HighlightCssClass="vco" TargetControlID="RFVEstatus" Width="300px" BehaviorID="_content_VCOEstatus"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row" runat="server" id="DivTipoGarantia">
|
||
<label class="col-md-4 truncate">Tipo Garantía:</label>
|
||
<div class="col-md-8">
|
||
<asp:DropDownList ID="DdlTipoGarantia" runat="server" AppendDataBoundItems="True" Class="table-group-action-input form-control input-inline input-sm select2me" Style="width: 200px;" ValidationGroup="GrpGuardar">
|
||
<asp:ListItem Text="Ninguno" Value="-1" Selected="True"></asp:ListItem>
|
||
<asp:ListItem Text="Fianza" Value="1"></asp:ListItem>
|
||
<asp:ListItem Text="Cheque" Value="2"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="DdlTipoGarantia" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Garantía''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator><ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="RFVEstatus" Width="300px" BehaviorID="_content_VCOEstatus"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<div class="row" style="display: none;">
|
||
<label class="col-md-4 truncate">Estatus Fianza:</label>
|
||
<div class="col-md-8">
|
||
<asp:DropDownList ID="DdlEstatusFianza" runat="server" AppendDataBoundItems="True" Class="table-group-action-input form-control input-inline input-sm select2me" Style="width: 200px;" ValidationGroup="GrpGuardar">
|
||
<asp:ListItem Text="Activa" Value="1" Selected="True"></asp:ListItem>
|
||
<asp:ListItem Text="Liberada" Value="2"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div class="row" style="display: none;">
|
||
<label class="col-md-4 truncate">Folio:</label>
|
||
<div class="col-md-8">
|
||
<asp:TextBox runat="server" ID="TxtFolio"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<div class="row" style="display: none;">
|
||
<div class="col-md-4 truncate">
|
||
Fecha Venc.:
|
||
|
||
</div>
|
||
<div class="col-md-8">
|
||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||
<asp:TextBox Width="110px" ID="txtFechaVenc" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||
</span>
|
||
</div>
|
||
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="txtFechaVenc" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender runat="server" ID="Calendario2" TargetControlID="txtFechaVenc" PopupButtonID="imgCalendarioF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="rfvFechaF" runat="server" ControlToValidate="txtFechaVenc" Display="None" ErrorMessage="El campo <b>''Fecha Venc.''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
||
<asp:CompareValidator ID="cvFechaF" runat="server" ControlToValidate="txtFechaVenc" Display="None" ErrorMessage="El campo <b>''Fecha Venc.''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="vcoRfvFF" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
<ajax:ValidatorCalloutExtender ID="vcoCvFF" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<%-- AGREGAR FIANZA --%>
|
||
<div class="row" runat="server" id="DivFianzas">
|
||
<div class="col-md-12">
|
||
<div class="portlet smmallpadding light bordered">
|
||
<div class="portlet-title">
|
||
<div class="tools">
|
||
<a href="javascript;" data-idchekbox="C_chkexpand6" class=" collapse" data-original-title="" title=""></a><span class="hidden">
|
||
<input id="C_chkexpand6" type="checkbox" name="ctl00$C$chkexpand" checked="checked"></span>
|
||
</div>
|
||
<div class="caption uppercase" style="position: relative;"><i class="fa fa-info-circle"></i>Fianzas</div>
|
||
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
<asp:LinkButton ID="btnAgregarFianza" runat="server" OnClick="btnAgregarFianza_Click" data-toggle="tooltip" data-placement="right" title="" CssClass="btn btn-circle btn-default" Text="<i class='fa fa-plus'></i> Agregar"></asp:LinkButton>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body rowpadding">
|
||
|
||
<div class="row">
|
||
|
||
<div class="col-md-12" style="text-align: center;">
|
||
<asp:UpdatePanel ID="UpGvFianzas" runat="server" UpdateMode="Conditional">
|
||
|
||
<ContentTemplate>
|
||
|
||
<asp:GridView ID="GvFianzas" runat="server" OnRowDataBound="GvFianzas_RowDataBound" DataKeyNames="CveContratoFianza, Folio, CveEstatusFianza, EstatusFianza, FechaVencimiento,Adjunto" GridLines="None" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" CellSpacing="0" Width="100%" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" OnRowDeleting="GvFianzas_RowDeleting">
|
||
<Columns>
|
||
<asp:BoundField DataField="Folio" HeaderText="Folio" ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Left" />
|
||
<asp:BoundField DataField="EstatusFianza" HeaderText="Estatus" ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Left" />
|
||
<asp:BoundField DataField="FechaVencimiento" HeaderText="Fecha Ven." ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
||
|
||
<asp:TemplateField ItemStyle-Width="25%" HeaderText="Acciones" ItemStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="imgEFianzaGv" runat="server" Visible="true" AlternateText="Editar" OnClick="imgEFianzaGv_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||
<asp:LinkButton ID="imgD" runat="server" Visible="true" 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="¿Desea eliminar esta fianza?" data-btn-ok-label="si" />
|
||
<asp:LinkButton data-toggle="tooltip" ClientIDMode="AutoID" title="Descargar Adjunto" ToolTip="Descargar Adjunto" Visible="false" ID="LnkDescargaAdjunto" OnClick="LnkDescargaAdjunto_Click" CssClass="btn btn-circle btn-xs green " runat="server"><i class="fa fa-arrow-circle-down" aria-hidden="true"></i></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<%-- --%>
|
||
|
||
<div class="row" runat="server" id="Div4">
|
||
<div class="col-md-12">
|
||
<div class="portlet smmallpadding light bordered">
|
||
<div class="portlet-title">
|
||
<div class="tools">
|
||
<a href="javascript;" data-idchekbox="C_chkexpand4" class=" collapse" data-original-title="" title=""></a><span class="hidden">
|
||
<input id="C_chkexpand5" type="checkbox" name="ctl00$C$chkexpand" checked="checked"></span>
|
||
</div>
|
||
<div class="caption uppercase" style="position: relative;"><i class="fa fa-info-circle"></i>Contrato Digitalizado</div>
|
||
</div>
|
||
<div class="portlet-body rowpadding">
|
||
<div class="row">
|
||
<div class="col-md-12" style="text-align: center;">
|
||
<asp:UpdatePanel ID="UPAFUL" runat="server" UpdateMode="Conditional">
|
||
|
||
<ContentTemplate>
|
||
<asp:LinkButton runat="server" ID="BtnDescargar" class="btn btn-warning" Visible="false"><i class='fa fa-download' aria-hidden='true'></i> Descargar</asp:LinkButton>
|
||
<asp:TextBox Style="display: none" ID="TxtArchivo" ClientIDMode="Static" runat="server" Width="200px"></asp:TextBox>
|
||
|
||
<button type="button" class="btn btn-primary" runat="server" clientidmode="Static" id="A1" data-toggle="modal" data-target="#ModalUpload" visible="true"><i class="fa fa-upload" aria-hidden="true"></i>Subir Archivo</button>
|
||
|
||
<%-- <a class="Texto" runat="server" clientidmode="Static" id="A1" data-toggle="modal" data-target="#ModalUpload" visible="true">
|
||
<img id="ImgArchivo" runat="server" alt="Archivo" src="/Imagenes/attachment_icon.gif" style="width: 16px; height: 16px; border: 0px none white" />
|
||
</a>--%>
|
||
|
||
|
||
<%-- <a class="Texto" runat="server" clientidmode="Static" id="A2" target="_blank" visible="false">
|
||
<img id="Img1" alt="Archivo" src="/Imagenes/descargar.png" style="width: 16px; height: 16px; border: 0px none white" />
|
||
</a>--%>
|
||
</ContentTemplate>
|
||
<Triggers>
|
||
<asp:PostBackTrigger ControlID="BtnDescargar" />
|
||
</Triggers>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row" runat="server" id="DivImpuestosLocales">
|
||
<div class="col-md-12">
|
||
<div class="portlet smmallpadding light bordered">
|
||
<div class="portlet-title">
|
||
<div class="tools">
|
||
<a href="javascript;" data-idchekbox="C_chkexpand4" class=" collapse" data-original-title="" title=""></a>
|
||
<span class="hidden">
|
||
<input id="C_chkexpand7" type="checkbox" name="ctl00$C$chkexpand" checked="checked">
|
||
</span>
|
||
</div>
|
||
<div class="caption uppercase" style="position: relative;">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Impuestos Locales:</span>
|
||
|
||
<div class="row" id="RowImpuestosLocales" runat="server">
|
||
<div class="col-md-10">
|
||
<asp:CheckBox ID="ChkImpuestosLocales" AutoPostBack="True" OnCheckedChanged="ChkImpuestosLocales_CheckedChanged" runat="server"></asp:CheckBox>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body rowpadding">
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:UpdatePanel ID="UpImpuestos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvImpuestosLocales" ShowHeader="true" runat="server" horizontal-align="Right" GridLines="None" DataKeyNames="CveImpuestoLocal" CssClass="table table-striped table-hover Widthall" Visible="false" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="" ItemStyle-Width="25px">
|
||
<ItemTemplate>
|
||
<asp:CheckBox runat="server" ID="ChkDeduccion" Checked='<%# Eval("Seleccionado") %>'></asp:CheckBox>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Impuesto" ItemStyle-Width="300px">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtDeduccion" runat="server" Text='<%# Eval("ImpuestoLocal")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Porcentaje" ItemStyle-Width="90px" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtPorcentaje" runat="server" Text='<%# Eval("Porcentaje", "{0:N4}%") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row" style="display: none;">
|
||
<label class="col-md-2 truncate">Importe:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtImporte" runat="server" MaxLength="12" Width="200px"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabPres" runat="server" HeaderText="Presupuesto" Visible="true">
|
||
<ContentTemplate>
|
||
|
||
<div runat="server" id="GRidsPresupuestos" visible="False">
|
||
|
||
<ajax:TabContainer ID="TabP" runat="server" Width="100%" CssClass="tabBodyOverride" ActiveTabIndex="0">
|
||
|
||
<ajax:TabPanel ID="TabPV" runat="server" HeaderText="Ventas">
|
||
<ContentTemplate>
|
||
|
||
<asp:UpdatePanel ID="UpTitulos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<asp:Panel ID="PanelContratos" runat="server">
|
||
|
||
<div class="row col-md-12" align="right">
|
||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}');sumagvx();", Gv.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}');sumagvx();", Gv.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
|
||
<table class="table Widthall">
|
||
<tr class="Titulos">
|
||
<td runat="server" id="thOcCliente" style="width: 75px">
|
||
<asp:Literal Text="OC <br/> Cliente" ID="tdOC" runat="server" />
|
||
</td>
|
||
<td style="width: 150px">Cantidad</td>
|
||
<td runat="server" id="thLimitar" style="width: 75px">
|
||
<asp:Literal Text="Limitar" runat="server" ID="tdLimitar" /></td>
|
||
<td runat="server" id="thNoIdentificacionv" style="width: 75px">
|
||
<asp:Literal Text="Clave Interna Cliente" ID="tdCveInterna" runat="server" /></td>
|
||
<td style="width: 400px">Producto/Servicio</td>
|
||
<td style="width: 100px">U. M.</td>
|
||
<td style="width: 150px" runat="server" id="TDObservacion" visible="false">Observación</td>
|
||
<td style="width: 150px">Precio Unitario</td>
|
||
<td style="width: 150px">Total</td>
|
||
<td style="width: 150px" id="THAvance" runat="server" visible="false">Permite Avance</td>
|
||
<%-- <td style="width: 150px" id="tdCol7" runat="server">Permite Estimación </td>--%>
|
||
<td style="width: 100px">Comandos</td>
|
||
</tr>
|
||
<tr class="Titulos">
|
||
<td runat="server" id="tdOcCliente">
|
||
<asp:TextBox ID="TxtOCInterna" runat="server" MaxLength="15" Width="70px"></asp:TextBox>
|
||
</td>
|
||
<td>
|
||
<asp:TextBox ID="TxtCantidad" runat="server" Width="70px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxtCantidad" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:RequiredFieldValidator ID="RFVCantidad" runat="server" ControlToValidate="TxtCantidad" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregar"></asp:RequiredFieldValidator><ajax:ValidatorCalloutExtender ID="CVECantidad" runat="server" HighlightCssClass="vco" TargetControlID="RFVCantidad" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</td>
|
||
<td runat="server" id="tdLimitar2">
|
||
<asp:CheckBox ID="ChkLimitarVenta" runat="server" />
|
||
</td>
|
||
<td runat="server" id="tdNoIdentificacionv">
|
||
<asp:TextBox ID="TxtNoIdentificacionv" runat="server" MaxLength="15" Width="70px"></asp:TextBox>
|
||
</td>
|
||
<td>
|
||
<div style="max-width: 550px;">
|
||
<asp:DropDownList ID="DdlClasificacionAdd" runat="server" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" CssClass="table-group-action-input form-control input-inline input-sm select2me" Style="width: 100%;"></asp:DropDownList>
|
||
<br />
|
||
<ADS:Dropdownlost runat="server" ID="DdlProductows" CssStyle="width: 100%;" CssClassDdl="select2me" DataTextField="PSCodigo" DataValueField="CvePS" />
|
||
</div>
|
||
</td>
|
||
|
||
|
||
|
||
<td>
|
||
<asp:DropDownList ID="DdlUM" runat="server" AutoPostBack="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" CssClass="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;"></asp:DropDownList>
|
||
</td>
|
||
|
||
<td runat="server" id="tdObservaciones" visible="false">
|
||
<asp:TextBox ID="TxtObservacionesDetalles" runat="server" Width="100px"></asp:TextBox>
|
||
</td>
|
||
|
||
<td style="width: 75px">
|
||
<asp:TextBox ID="TxtPU" runat="server" Width="70px"></asp:TextBox><ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="TxtPU" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:RequiredFieldValidator ID="RFVPU" runat="server" ControlToValidate="TxtPU" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''P.U.''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregar"></asp:RequiredFieldValidator><ajax:ValidatorCalloutExtender ID="CVEPU" runat="server" HighlightCssClass="vco" TargetControlID="RFVPU" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</td>
|
||
|
||
|
||
|
||
<td></td>
|
||
<td id="TDAvance" runat="server" visible="false"></td>
|
||
<td>
|
||
<asp:Button Text="Agregar" runat="server" ID="BtnAgregarDetalle" Width="100px" OnClick="BtnAgregarDetalle_Click" ValidationGroup="GrpAgregar" class="btn btn-default" /></td>
|
||
</tr>
|
||
</table>
|
||
</asp:Panel>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
|
||
<asp:UpdatePanel ID="UpGV" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<asp:GridView ID="Gv" ClientIDMode="Static" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron Conceptos" DataKeyNames="CveContratoDetalle,CveUM, CvePS, Cantidad, PU,CveTipoPresupuesto,CveClasificacion" ShowHeader="true" SelectedRowStyle-BackColor="#66CCFF" CssClass="table table-striped table-hover Widthall mysmallbtn" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="OC <br/> Cliente">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LbOCInternaEdit" Text='<%# Eval("OCInterna")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtOCInternaEdit" MaxLength="15" runat="server" Text='<%# Eval("OCInterna") %>' Width="70px"></asp:TextBox>
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="75px" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Cantidad">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtCantidad" Text='<%# Eval("CantidadContratada")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtCantidad" runat="server" Text='<%# Eval("CantidadContratada") %>' Width="90px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtenderCantidad" runat="server" TargetControlID="TxtCantidad" FilterType="Custom, Numbers" ValidChars="." />
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Limitar">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblLimitar" Text='<%# If(Eval("LimitarCantidad").ToString = "True", "Si", "No")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:CheckBox ID="ChkLimitarCantidad" runat="server" Checked='<%# Eval("LimitarCantidad").ToString%>'></asp:CheckBox>
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="75px" HorizontalAlign="Center" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Clave <br/> Interna <br/> Cliente">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblNoIdentificacion" Text='<%# Eval("NoIdentificacion")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtNoIdentificacion" MaxLength="15" runat="server" Text='<%# Eval("NoIdentificacion") %>' Width="70px"></asp:TextBox>
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="75px" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Producto/Servicio" ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtPS" Text='<%# Eval("CodigoPS")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="400px" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="U.M.">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtUM" Text='<%# Eval("UM")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:DropDownList ID="DdlUMEdit" runat="server" AutoPostBack="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" CssClass="table-group-action-input form-control input-inline input-small input-sm" Style="width: 75px !important;"></asp:DropDownList>
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="100px" />
|
||
</asp:TemplateField>
|
||
|
||
|
||
<asp:TemplateField HeaderText="Observacion" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblObservacion" Text='<%# Eval("Observacion")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtObservacion" runat="server" Text='<%# Eval("Observacion") %>' Width="70px"></asp:TextBox>
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="75px" />
|
||
</asp:TemplateField>
|
||
|
||
|
||
|
||
<asp:TemplateField HeaderText="Precio Unitario">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtPU" Text='<%# Eval("PU", "{0:###,###,##0.00##}")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtPU" runat="server" Text='<%# Eval("PU", "{0:###,###,##0.00##}")%>' Width="90px"></asp:TextBox><ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtenderPU" runat="server" TargetControlID="TxtPU" FilterType="Custom, Numbers" ValidChars=".," />
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Total">
|
||
<ItemTemplate>
|
||
<asp:Label ID="LtTotal" CssClass="ltltotalgvx" data-value='<%# Eval("Total")%>' Text='<%# Eval("Total", "{0:###,###,##0.00##}")%>' runat="server"></asp:Label>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Avance" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="CHKPAvance" Enabled="false" AutoPostBack="true" OnCheckedChanged="AvaClick" runat="server" />
|
||
</ItemTemplate>
|
||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<%-- <asp:TemplateField HeaderText="Estimacion">
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="CHKPEstimacion" Enabled="false" AutoPostBack="true" OnCheckedChanged="EstClick" runat="server" />
|
||
</ItemTemplate>
|
||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>--%>
|
||
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Center">
|
||
<EditItemTemplate>
|
||
<div style="width: 65px;">
|
||
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update"
|
||
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpGV" /><asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel"
|
||
CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times'></i>" />
|
||
</div>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit"
|
||
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Eliminar" ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Center">
|
||
<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="Esta seguro de eliminar el concepto?" data-btn-ok-label="si" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
|
||
|
||
<table class="table Widthall">
|
||
<tr class="Titulos">
|
||
<td style="width: 800px; text-align: right;">Total General:</td>
|
||
<td style="width: 150px; text-align: right;">
|
||
<asp:Label Text="0.00" ID="LbTotalGeneral" ClientIDMode="static" runat="server" Width="73px" /></td>
|
||
<td style="width: 100px; text-align: right;"></td>
|
||
</tr>
|
||
</table>
|
||
|
||
<asp:UpdatePanel ID="UpContratos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div id="divContrato" runat="server" clientidmode="Static" visible="False" style="background-color: #4F81BD;">
|
||
<table style="width: 100%" border="1">
|
||
<tr>
|
||
<td style="background-color: white;">
|
||
<table style="width: 100%">
|
||
<tr>
|
||
<td style="text-align: right;">
|
||
<img style="cursor: pointer;" src="/Imagenes/close.gif" alt="Cerrar" onclick="$get('divContrato').style.display='none';" /></td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabPVInsumos" runat="server" HeaderText="Suministros">
|
||
<ContentTemplate>
|
||
|
||
<asp:UpdatePanel ID="UpTitulosInsumos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<asp:Panel ID="PanelContratosInsumos" runat="server">
|
||
|
||
<div class="row col-md-12" align="right">
|
||
<input type="text" id="TxtBusquedaInsumos" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaInsumos','{0}');sumagvx2();", GvInsumos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaInsumos','{0}');sumagvx2();", GvInsumos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
|
||
<table class="table Widthall">
|
||
<tr class="Titulos">
|
||
<td style="width: 150px">Cantidad</td>
|
||
<td style="width: 75px">Limitar</td>
|
||
<td style="width: 75px">Clave Interna</td>
|
||
<td style="width: 400px">Producto/Servicio</td>
|
||
<td style="width: 100px">U. M.</td>
|
||
<td style="width: 150px">Precio Unitario</td>
|
||
<td style="width: 150px">Total</td>
|
||
<td style="width: 150px" id="THAvanceInsumos" runat="server" visible="false">Permite Avance</td>
|
||
<%-- <td style="width: 150px" id="tdCol7" runat="server">Permite Estimación </td>--%>
|
||
<td style="width: 100px">Comandos</td>
|
||
</tr>
|
||
<tr class="Titulos">
|
||
<td>
|
||
<asp:TextBox ID="TxtCantidadInsumos" runat="server" Width="70px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender10" runat="server" TargetControlID="TxtCantidadInsumos" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:RequiredFieldValidator ID="RFVCantidadInsumos" runat="server" ControlToValidate="TxtCantidadInsumos" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarInsumos"></asp:RequiredFieldValidator><ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="RFVCantidadInsumos" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</td>
|
||
<td>
|
||
<asp:CheckBox ID="ChkLimitar" runat="server" />
|
||
</td>
|
||
<td>
|
||
<asp:TextBox ID="TxtNoIdentificacionvInsumos" runat="server" MaxLength="15" Width="70px"></asp:TextBox>
|
||
|
||
</td>
|
||
<td>
|
||
<div style="max-width: 550px;">
|
||
<asp:DropDownList ID="DdlClasificacionAddInsumos" runat="server" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" CssClass="table-group-action-input form-control input-inline input-sm select2me" Style="width: 100%;"></asp:DropDownList>
|
||
<br />
|
||
<ADS:Dropdownlost runat="server" ID="DdlProductowsInsumos" CssStyle="width: 100%;" CssClassDdl="select2me" DataTextField="PSCodigo" DataValueField="CvePS" />
|
||
</div>
|
||
</td>
|
||
<td>
|
||
<asp:DropDownList ID="DdlUMInsumos" runat="server" AutoPostBack="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" CssClass="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;"></asp:DropDownList></td>
|
||
<td style="width: 75px">
|
||
<asp:TextBox ID="TxtPUInsumos" runat="server" Width="70px"></asp:TextBox><ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender12" runat="server" TargetControlID="TxtPUInsumos" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:RequiredFieldValidator ID="RFVPUInsumos" runat="server" ControlToValidate="TxtPUInsumos" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''P.U.''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarInsumos"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="CVEPUInsumos" runat="server" HighlightCssClass="vco" TargetControlID="RFVPUInsumos" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</td>
|
||
<td></td>
|
||
<td id="TDAvanceInsumos" runat="server" visible="false"></td>
|
||
<td>
|
||
<asp:Button Text="Agregar" runat="server" ID="BtnAgregarDetalleInsumos" Width="100px" OnClick="BtnAgregarDetalleInsumos_Click" ValidationGroup="GrpAgregarInsumos" class="btn btn-default" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</asp:Panel>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<asp:UpdatePanel ID="UpGVInsumos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<asp:GridView ID="GvInsumos" ClientIDMode="Static" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron Conceptos" DataKeyNames="CveContratoDetalle,CveUM, CvePS, Cantidad, PU,CveTipoPresupuesto,CveClasificacion" ShowHeader="true" SelectedRowStyle-BackColor="#66CCFF" CssClass="table table-striped table-hover Widthall mysmallbtn" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="Cantidad">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtCantidad" Text='<%# Eval("CantidadContratada")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtCantidad" runat="server" Text='<%# Eval("CantidadContratada") %>' Width="90px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtenderCantidad" runat="server" TargetControlID="TxtCantidad" FilterType="Custom, Numbers" ValidChars="." />
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="150px" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Limitar">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblLimitar" Text='<%# If(Eval("LimitarCantidad").ToString = "True", "Si", "No")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:CheckBox ID="ChkLimitarCantidad" runat="server" Checked='<%# Eval("LimitarCantidad").ToString%>'></asp:CheckBox>
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="75px" HorizontalAlign="Center" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Clave <br/> Interna">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblNoIdentificacion" Text='<%# Eval("NoIdentificacion")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtNoIdentificacion" MaxLength="15" runat="server" Text='<%# Eval("NoIdentificacion") %>' Width="70px"></asp:TextBox>
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="75px" />
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Producto/Servicio" ItemStyle-HorizontalAlign="Left">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtPS" Text='<%# Eval("CodigoPS")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="400px" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="U.M.">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtUM" Text='<%# Eval("UM")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:DropDownList ID="DdlUMEdit" runat="server" AutoPostBack="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" CssClass="table-group-action-input form-control input-inline input-small input-sm" Style="width: 75px !important;"></asp:DropDownList>
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="100px" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Precio Unitario">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtPU" Text='<%# Eval("PU", "{0:###,###,##0.00##}")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtPU" runat="server" Text='<%# Eval("PU", "{0:###,###,##0.00##}")%>' Width="90px"></asp:TextBox><ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtenderPU" runat="server" TargetControlID="TxtPU" FilterType="Custom, Numbers" ValidChars="." />
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Total">
|
||
<ItemTemplate>
|
||
<asp:Label ID="LtTotal" CssClass="ltltotalgvx2" data-value='<%# Eval("Total")%>' Text='<%# Eval("Total", "{0:###,###,##0.00##}")%>' runat="server"></asp:Label>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Avance" Visible="false">
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="CHKPAvance" Enabled="false" AutoPostBack="true" OnCheckedChanged="AvaClick" runat="server" />
|
||
</ItemTemplate>
|
||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<%-- <asp:TemplateField HeaderText="Estimacion">
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="CHKPEstimacion" Enabled="false" AutoPostBack="true" OnCheckedChanged="EstClick" runat="server" />
|
||
</ItemTemplate>
|
||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>--%>
|
||
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Center">
|
||
<EditItemTemplate>
|
||
<div style="width: 65px;">
|
||
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update"
|
||
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpGV" /><asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel"
|
||
CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times'></i>" />
|
||
</div>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit"
|
||
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Eliminar" ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Center">
|
||
<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="Esta seguro de eliminar el concepto?" data-btn-ok-label="si" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
|
||
|
||
<table class="table Widthall">
|
||
<tr class="Titulos">
|
||
<td style="width: 800px; text-align: right;">Total General:</td>
|
||
<td style="width: 150px; text-align: right;">
|
||
<asp:Label Text="0.00" ID="LbTotalGeneralInsumos" ClientIDMode="static" runat="server" Width="73px" /></td>
|
||
<td style="width: 100px; text-align: right;"></td>
|
||
</tr>
|
||
</table>
|
||
|
||
<asp:UpdatePanel ID="UpContratosInsumos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div id="div2" runat="server" clientidmode="Static" visible="False" style="background-color: #4F81BD;">
|
||
<table style="width: 100%" border="1">
|
||
<tr>
|
||
<td style="background-color: white;">
|
||
<table style="width: 100%">
|
||
<tr>
|
||
<td style="text-align: right;">
|
||
<img style="cursor: pointer;" src="/Imagenes/close.gif" alt="Cerrar" onclick="$get('divContrato').style.display='none';" /></td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabPI" runat="server" HeaderText="Interno" Visible="false">
|
||
<HeaderTemplate>Interno </HeaderTemplate>
|
||
<ContentTemplate>
|
||
<asp:UpdatePanel ID="UPPDatos" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:Panel ID="Panel1" runat="server">
|
||
<table class="table Widthall">
|
||
<tr class="Titulos">
|
||
<td style="width: 150px">Cantidad</td>
|
||
|
||
<td style="width: 350px">Producto/Servicio</td>
|
||
<td style="width: 150px">U.M.</td>
|
||
<td style="width: 150px">Precio Unitario</td>
|
||
<td style="width: 150px">Total</td>
|
||
<td style="width: 450px" colspan="3" runat="server" visible='<%#Autorizado%>'>autorizado</td>
|
||
<td style="width: 100px">Comandos</td>
|
||
</tr>
|
||
<tr class="Titulos">
|
||
<td>
|
||
<asp:TextBox ID="TxtCantidadInt" runat="server" Width="70px"></asp:TextBox><ajax:FilteredTextBoxExtender ID="FLTCantidadInt" runat="server" TargetControlID="TxtCantidadInt" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:RequiredFieldValidator ID="RFVCantidadInt" runat="server" ControlToValidate="TxtCantidadInt" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarInt"></asp:RequiredFieldValidator><ajax:ValidatorCalloutExtender ID="VCOCantidadInt" runat="server" HighlightCssClass="vco" TargetControlID="RFVCantidadInt" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</td>
|
||
|
||
<td>
|
||
<div style="max-width: 550px;">
|
||
<asp:DropDownList ID="DdlClasificacionInt" runat="server" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" CssClass="table-group-action-input form-control input-inline input-sm select2me" Style="width: 100%; max-width: 550px;"></asp:DropDownList><br />
|
||
<asp:DropDownList ID="DdlPSAddInt" runat="server" AutoPostBack="true" DataTextField="PS" DataValueField="CvePS" CssClass="table-group-action-input form-control input-inline input-sm select2me" Style="width: 100%; max-width: 550px;"></asp:DropDownList>
|
||
<select id="DdlProductowsInt" runat="server" class="form-control" style="width: 100%;"></select>
|
||
|
||
<asp:Button ID="myhidenbuttonInt" Style="display: none;" runat="server" Text="Button" /><asp:HiddenField ID="HFProductoInt" runat="server" />
|
||
<asp:HiddenField ID="HFTProductoInt" runat="server" />
|
||
</div>
|
||
</td>
|
||
<td>
|
||
<asp:DropDownList ID="DdlUMInt" runat="server" AutoPostBack="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" CssClass="table-group-action-input form-control input-inline input-small input-sm" Style="width: 120px !important;"></asp:DropDownList></td>
|
||
<td style="width: 110px">
|
||
<asp:TextBox ID="TxtPUInt" runat="server" Width="70px"></asp:TextBox><ajax:FilteredTextBoxExtender ID="FLTPUInt" runat="server" TargetControlID="TxtPUInt" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:RequiredFieldValidator ID="RFVPUInt" runat="server" ControlToValidate="TxtPUInt" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''P.U.''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarInt"></asp:RequiredFieldValidator><ajax:ValidatorCalloutExtender ID="VCOPUInt" runat="server" HighlightCssClass="vco" TargetControlID="RFVPUInt" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</td>
|
||
<td></td>
|
||
<td style="width: 150px" runat="server" visible='<%#Autorizado%>'>Cantidad</td>
|
||
<td style="width: 150px" runat="server" visible='<%#Autorizado%>'>Precio Unitario</td>
|
||
<td style="width: 150px" runat="server" visible='<%#Autorizado%>'>Total</td>
|
||
<td>
|
||
<asp:Button Text="Agregar" runat="server" ID="AgregarInt" Width="100px" ValidationGroup="GrpAgregarInt" class="btn btn-default" /></td>
|
||
</tr>
|
||
</table>
|
||
</asp:Panel>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<asp:UpdatePanel ID="UPGVInt" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvInt" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron Conceptos" DataKeyNames="CveContratoDetalle,CveUM, CvePS, Cantidad, PU,CveTipoPresupuesto,CveClasificacion"
|
||
ShowHeader="false" SelectedRowStyle-BackColor="#66CCFF" CssClass="table table-striped table-hover Widthall mysmallbtn" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="Cantidad">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="Literal1" Text='<%# Eval("Cantidad")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtCantidad" runat="server" Text='<%# Eval("Cantidad") %>' Width="90px"></asp:TextBox><ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" TargetControlID="TxtCantidad" FilterType="Custom, Numbers" ValidChars="." />
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="150px" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Producto/Servicio">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="Literal2" Text='<%# Eval("PS")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="350px" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="U.M.">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="Literal3" Text='<%# Eval("UM")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" CssClass="table-group-action-input form-control input-inline input-small input-sm" Style="width: 120px !important;"></asp:DropDownList>
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="150px" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Precio Unitario">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="Literal4" Text='<%# Eval("PU", "{0:###,###,##0.00##}")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TextBox6" runat="server" Text='<%# Eval("PU", "{0:###,###,##0.00##}")%>' Width="90px"></asp:TextBox><ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" runat="server" TargetControlID="TxtPU" FilterType="Custom, Numbers" ValidChars="." />
|
||
</EditItemTemplate>
|
||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Total">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="Literal5" Text='<%# Eval("Total", "{0:###,###,##0.00##}")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Cantidado">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtCantidado" Text='<%# Eval("Cantidad_Original")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="150px" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Precio Unitarioo">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtPUo" Text='<%# Eval("PU_Original", "{0:###,###,##0.00##}")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Total">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtTotalo" Text='<%# Eval("Total_Original", "{0:###,###,##0.00##}")%>' runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="150px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="50px">
|
||
<EditItemTemplate>
|
||
<div style="width: 65px;">
|
||
<asp:LinkButton ID="LinkButton1" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update"
|
||
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpGV" /><asp:LinkButton ID="LinkButton2" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel"
|
||
CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times'></i>" />
|
||
</div>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LinkButton3" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit"
|
||
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Eliminar" ItemStyle-Width="50px">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LinkButton4" 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="Esta seguro de eliminar el concepto?" data-btn-ok-label="si" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
<table class="table table-advance Widthall">
|
||
<tr class="Titulos">
|
||
<td style="width: 800px; text-align: right;">Total General:</td>
|
||
<td style="width: 150px; text-align: right;">
|
||
<asp:Label Text="0.00" ID="LbTotalGeneralInt" runat="server" Width="73px" /></td>
|
||
<td style="width: 100px; text-align: right;"></td>
|
||
</tr>
|
||
</table>
|
||
<asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div id="div1" runat="server" clientidmode="Static" visible="False" style="background-color: #4F81BD;">
|
||
<table style="width: 100%" border="1">
|
||
<tr>
|
||
<td style="background-color: white;">
|
||
<table style="width: 100%">
|
||
<tr>
|
||
<td style="text-align: right;">
|
||
<img style="cursor: pointer;" src="/Imagenes/close.gif" alt="Cerrar" onclick="$get('divContrato').style.display='none';" /></td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
</ajax:TabContainer>
|
||
|
||
<br />
|
||
|
||
<div style="text-align: right;">
|
||
<asp:Button ID="BtnAutorizar" CssClass="btn btn-success" Visible="False" runat="server" Text="Autorizar" data-toggle="confirmation" data-popout="true" data-original-title="confirmar" data-btn-ok-label="si" />
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div runat="server" id="msjpresupuestos">Se deben guardar la informacion General para poder editar el presupuesto</div>
|
||
|
||
</ContentTemplate>
|
||
|
||
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabReporteAvance" Visible="false" runat="server" HeaderText="Avance">
|
||
<ContentTemplate>
|
||
|
||
<div class="row">
|
||
<div class="col-md-12" align="right">
|
||
<input type="text" id="TxtFiltra" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtFiltra','{0}')", GvDatosAvance.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtFiltra','{0}')", GvDatosAvance.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
</div>
|
||
|
||
<asp:UpdatePanel ID="UpDatosAvance" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<div id="dvCa" style="width: 100%; top: 30px">
|
||
<table id="dTable" class="table Widthall ">
|
||
<tr>
|
||
<td width="30%" id="TH1" style="font-size: medium; text-align: center!important; background-color: #b9b9b9;"><strong>Clasificación</strong> </td>
|
||
<td width="15%" id="TH2" style="font-size: medium; text-align: center!important; background-color: #dddddd;"><strong>Contratado</strong> </td>
|
||
<td width="15%" id="TH3" style="font-size: medium; text-align: center!important; background-color: #b9b9b9;"><strong>Avance</strong> </td>
|
||
<td width="15%" id="TH4" style="font-size: medium; text-align: center!important; background-color: #dddddd;"><strong>Faltante</strong> </td>
|
||
<td width="15%" id="TH5" style="font-size: medium; text-align: center!important; background-color: #b9b9b9;"><strong>Avance Por Facturar</strong> </td>
|
||
<td width="10%" id="TH6" style="font-size: medium; text-align: center!important; background-color: #dddddd;"><strong>Anticipo</strong> </td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
|
||
<asp:GridView ID="GvDatosAvance" ClientIDMode="Static" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron datos con los filtros especificados" CssClass="table table-striped table-hover Widthall" BorderColor="#D3D3D3" GridLines="None">
|
||
<Columns>
|
||
<asp:BoundField HeaderText="Producto/Servicio" DataField="CodigoPS" ItemStyle-Width="30%" />
|
||
|
||
<asp:BoundField HeaderText="Cantidad" DataField="ContratoCantidad" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:###,###,##0.00##}" ItemStyle-Width="7.5%" />
|
||
<asp:BoundField HeaderText="Importe $" DataField="ContratoImporte" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:###,###,##0.00##}" ItemStyle-Width="7.5%" />
|
||
|
||
<asp:TemplateField HeaderText="Cantidad" ItemStyle-Width="7.5%" ItemStyle-CssClass="Derecha">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LBAvanceCantidad" OnClick="MuestaModalVentasAvance" Text='<%# Eval("AvanceCantidad", "{0:###,###,##0.00##}") %>' runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Importe $" ItemStyle-Width="7.5%" ItemStyle-CssClass="Derecha">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LBAvanceImporte" OnClick="MuestaModalVentasAvance" Text='<%# Eval("AvanceImporte", "{0:###,###,##0.00##}") %>' runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:BoundField HeaderText="Cantidad" DataField="FaltanteCantidad" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:###,###,##0.00##}" ItemStyle-Width="7.5%" />
|
||
<asp:BoundField HeaderText="Importe $" DataField="FaltanteImporte" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:###,###,##0.00##}" ItemStyle-Width="7.5%" />
|
||
|
||
<asp:TemplateField HeaderText="Cantidad" ItemStyle-Width="7.5%" ItemStyle-CssClass="Derecha">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LBAvanceXFacturarCantidad" OnClick="MuestaModalVentasAvance" Text='<%# Eval("AvanceXFacturarCantidad", "{0:###,###,##0.00##}") %>' runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Importe $" ItemStyle-Width="7.5%" ItemStyle-CssClass="Derecha">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LBAvanceXFacturarImporte" OnClick="MuestaModalVentasAvance" Text='<%# Eval("AvanceXFacturarImporte", "{0:###,###,##0.00##}") %>' runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:BoundField HeaderText="Importe $" DataField="Anticipos" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:###,###,##0.00##}" ItemStyle-Width="10%" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabAvanveDocumento" runat="server" HeaderText="Avance Por Documento">
|
||
<ContentTemplate>
|
||
|
||
<div class="portlet solid grey-cascade portlet-filter">
|
||
<div class="portlet-title portlet-filterT smalltitle">
|
||
<div class="tools">
|
||
</div>
|
||
<div class="titlefiltros caption ">
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:RadioButtonList ID="RBLTipoDocto" AutoPostBack="true" OnSelectedIndexChanged="RBLTipoDocto_SelectedIndexChanged" runat="server" RepeatDirection="Horizontal">
|
||
<asp:ListItem Text="Todos" Value="-1" Selected="True" />
|
||
<asp:ListItem Text="Ingresos" Value="Ing" />
|
||
<asp:ListItem Text="Remision" Value="Rem" />
|
||
<asp:ListItem Text="Anticipos" Value="Ant" />
|
||
</asp:RadioButtonList>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body" style="display: none;">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="col-md-12" align="right">
|
||
<input type="text" id="TxtFiltraAXD" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtFiltraAXD','{0}')", GVAvanceXDocumento.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("TxtFiltraAXD('TxtBusqueda','{0}')", GvDatosAvance.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
</div>
|
||
|
||
<asp:UpdatePanel ID="UPAvanceXDocumento" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GVAvanceXDocumento" ClientIDMode="Static" ShowHeader="true" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron documentos." CssClass="table table-striped table-hover Widthall" BorderColor="#D3D3D3" GridLines="None">
|
||
<Columns>
|
||
<asp:BoundField HeaderText="Tipo Docto" DataField="TipoDocto" ItemStyle-Width="10%" />
|
||
<asp:HyperLinkField HeaderText="Serie-Folio" DataTextField="SerieFolio" Target="_blank" ItemStyle-Width="10%" ItemStyle-CssClass="Texto Izquierda" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" />
|
||
<%--<asp:BoundField HeaderText="Serie-Folio" DataField="SerieFolio" ItemStyle-Width="10%" />--%>
|
||
<asp:BoundField HeaderText="Observaciones" DataField="Observaciones" ItemStyle-Width="30%" />
|
||
<asp:BoundField HeaderText="Fecha" DataField="Fecha" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
||
<asp:BoundField HeaderText="Moneda" DataField="Moneda" ItemStyle-Width="10%" />
|
||
<asp:BoundField HeaderText="SubTotal" DataField="SubTotal" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}" />
|
||
<asp:BoundField HeaderText="IVA" DataField="IVA" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}" />
|
||
<asp:BoundField HeaderText="Total" DataField="Total" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabContratosGastos" runat="server" HeaderText="Gastos">
|
||
<ContentTemplate>
|
||
|
||
<div class="row">
|
||
<div class="col-md-9" style="vertical-align: middle;">
|
||
<div style="z-index: 5; position: relative;">
|
||
<div class="alert alert-warning" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||
<strong style="font-size: 15px; margin-right: 15px;">Nota:</strong> Incluye gastos manuales, salidas de almacén de suministros y de facturas.
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3" align="right">
|
||
<input type="text" id="TxtBusquedaGastos" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaGastos','{0}')", GvContratosGastos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaGastos','{0}')", GvContratosGastos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
</div>
|
||
<asp:UpdatePanel ID="UpContratoGasto" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvContratosGastos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveContratoGasto" EmptyDataText="No se encontraron Gastos" CssClass="table table-striped table-hover Widthall mysmallbtn" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField ItemStyle-Width="10%" HeaderText="Folio">
|
||
|
||
<ItemTemplate>
|
||
<asp:HyperLink ID="LtlFolio" runat="server" Text='<%# Eval("SerieFolio") %>' Target="_blank" NavigateUrl='<%# String.Concat("/Ventas/Ventas.aspx?CveVenta=" + Eval("CveVenta").ToString) %>'></asp:HyperLink>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="40%" HeaderText="Descripción">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Eval("Observaciones") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtDescripcion" runat="server" CssClass="form-control input-sm" CausesValidation="true" MaxLength="200" Text='<%# Eval("Observaciones")%>' ValidationGroup="GrpEditGuardar" Width="90%"></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>''Almacén''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEditGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCODescripcion" runat="server" HighlightCssClass="vco" TargetControlID="RFVDescripcion" Width="100px"></ajax:ValidatorCalloutExtender>
|
||
</EditItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Right" HeaderText="Importe">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlImporte" runat="server" Text='<%# Eval("Importe", "{0:N2}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtImporteC" CssClass="form-control input-sm" runat="server" CausesValidation="true" Text='<%# Eval("Importe", "{0:0.00}") %>' MaxLength="50" ValidationGroup="GrpEditGuardar" Width="184px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumerosImporteGastos2" runat="server" TargetControlID="TxtImporteC" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:RequiredFieldValidator ID="RFVImporte" runat="server" ControlToValidate="TxtImporteC" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importe''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEditGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOImporte" runat="server" HighlightCssClass="vco" TargetControlID="RFVImporte" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<asp:CompareValidator ID="CVImporte" runat="server" ControlToValidate="TxtImporteC" Display="None" ErrorMessage="El campo <b>''Importe''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpEditGuardar"></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOCVImporte" runat="server" HighlightCssClass="vco" TargetControlID="CVImporte" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</EditItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" HeaderText="Fecha">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlFechaIng" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<div class="input-group input-small date date-picker" data-date-format="dd/mm/yyyy">
|
||
<asp:TextBox ID="TxtFecha" runat="server" Text='<%# Eval("Fecha")%>' CssClass="form-control"></asp:TextBox>
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton runat="server" ID="ImgCalendario" class="btn default"><i class="fa fa-calendar"></i></asp:LinkButton>
|
||
</span>
|
||
</div>
|
||
<ajax:MaskedEditExtender ID="MEEFecha" runat="server" TargetControlID="TxtFecha" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender ID="Calendario" runat="server" TargetControlID="TxtFecha" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="RFVFechaDocumento" runat="server" ControlToValidate="TxtFecha" Display="None" ErrorMessage="El campo <b>''Fecha''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpEditGuardar"></asp:RequiredFieldValidator>
|
||
<asp:CompareValidator ID="CVFechaDocumento" runat="server" ControlToValidate="TxtFecha" 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="GrpEditGuardar"></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOFechaDocumento1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaDocumento" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
<ajax:ValidatorCalloutExtender ID="VCOFechaDocumento2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaDocumento" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</EditItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="10%" HeaderText="Editar" ItemStyle-HorizontalAlign="Center">
|
||
<EditItemTemplate>
|
||
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpEditGuardar" />
|
||
<asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel" CssClass="btn btn-circle btn-xs red" Text="<i class='fa fa-times'></i>" />
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" ToolTip="Editar" CommandName="Edit" CssClass="btn btn-circle btn-xs green" Text="<i class='fa fa-pencil'></i>" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-Width="10%" HeaderText="Eliminar" ItemStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" CssClass="btn btn-circle btn-xs 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>
|
||
<asp:TemplateField ItemStyle-Width="10%" HeaderText="Descargar" ItemStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:LinkButton data-toggle="tooltip" ClientIDMode="AutoID" title="Descargar PDF" ToolTip="Descargar PDF" ID="LnkDescargar" OnClick="LnkDescargar_Click1" CssClass="btn btn-circle btn-xs green " runat="server"><i class="fa fa-arrow-circle-down" aria-hidden="true"></i></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabAF" runat="server" HeaderText="Activos Fijos">
|
||
<ContentTemplate>
|
||
<asp:UpdatePanel UpdateMode="Conditional" ID="UpAlmacen" runat="server">
|
||
<ContentTemplate>
|
||
|
||
<div class="portlet solid grey-cascade portlet-filter">
|
||
<div class="portlet-title portlet-filterT smalltitle">
|
||
<div class="tools">
|
||
</div>
|
||
<div class="titlefiltros caption ">
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<asp:RadioButtonList ID="RBLAlmacen" AutoPostBack="true" OnSelectedIndexChanged="RBLAlmacen_SelectedIndexChanged" runat="server" RepeatDirection="Horizontal">
|
||
<asp:ListItem Text="Todos" Value="-1" />
|
||
<asp:ListItem Text="Vigentes" Value="Vig" Selected="True" />
|
||
<asp:ListItem Text="Devueltos" Value="Dev" />
|
||
</asp:RadioButtonList>
|
||
</div>
|
||
<div class="col-md-6" style="text-align: right;">
|
||
<asp:HyperLink ID="HLSurtirMercancia" Target="_blank" CssClass="btn btn-primary" Text="Solicitar surtido de Mercancía" NavigateUrl="#" runat="server" />
|
||
<asp:HyperLink ID="HLSurtirAF" Target="_blank" CssClass="btn btn-primary" Text="Solicitar Activos Fijos" NavigateUrl="#" runat="server" />
|
||
<asp:Button Text="Solicitar Devolución de Pedido" OnClick="BtnDevolucionAlmacen_Click" ID="BtnDevolucionAlmacen" CssClass="btn btn-primary" Visible="false" runat="server" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body" style="display: none;">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<br />
|
||
|
||
|
||
<asp:UpdatePanel runat="server" ID="UPAFResumen" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
|
||
<table>
|
||
|
||
<tr>
|
||
<td style="width: 50px!important">Total: </td>
|
||
<td style="width: 100px!important">
|
||
<asp:Label runat="server" ID="LBLAFTotal" Font-Bold="true"></asp:Label></td>
|
||
<td style="width: 50px!important">Internos: </td>
|
||
<td style="width: 100px!important">
|
||
<asp:Label runat="server" ID="LblAFInternos" Font-Bold="true"></asp:Label></td>
|
||
<td style="width: 50px!important">Externos</td>
|
||
<td style="width: 100px!important">
|
||
<asp:Label runat="server" ID="LblAFExternos" Font-Bold="true"></asp:Label></td>
|
||
<td style="width: 100px!important">Varlor Activo: $</td>
|
||
<td style="width: 100px!important">
|
||
<asp:Label runat="server" ID="LBLAFValorActivo" Font-Bold="true"></asp:Label></td>
|
||
<td style="width: 100px!important"></td>
|
||
<td>Es Interno:
|
||
</td>
|
||
<td>
|
||
<asp:DropDownList runat="server" ID="DdlEsinternoExternoFiltro" Width="120px" CssClass="select2me">
|
||
<asp:ListItem Value="-1">Todos</asp:ListItem>
|
||
<asp:ListItem Value="1">Es Interno</asp:ListItem>
|
||
<asp:ListItem Value="2">Es Externo</asp:ListItem>
|
||
</asp:DropDownList>
|
||
|
||
</td>
|
||
<td>
|
||
<asp:Button runat="server" ID="BtnFiltraInternosExternos" Text="Filtrar" CssClass="btn btn-primary" /></td>
|
||
</tr>
|
||
</table>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<div class="row">
|
||
|
||
<asp:UpdatePanel runat="server" ID="UPHajusteAF" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div id="DivHajusteAF" runat="server" visible="False" class="col-md-8" style="text-align: right;">
|
||
Tipo:
|
||
|
||
<asp:DropDownList runat="server" ID="DdlEsInterno" Width="120px" CssClass="select2me">
|
||
<asp:ListItem Value="1">Es Interno</asp:ListItem>
|
||
<asp:ListItem Value="2">Es Externo</asp:ListItem>
|
||
</asp:DropDownList>
|
||
<asp:Button runat="server" ID="BtnAlmacenEsInterno" Text="Actualizar" OnClick="BtnAlmacenEsInterno_Click" CssClass="btn btn-primary" />
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<div id="DivSinRegistrosAlmacen" runat="server" visible="false" class="col-md-4" style="text-align: center;">
|
||
Aun no se han registrado Activos Fijos.
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<div class="row col-md-12" align="right">
|
||
<input type="text" id="TxtBusquedaGvDatosAlmacen" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaGvDatosAlmacen','{0}')", GvDatosAlmacen.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaGvDatosAlmacen','{0}')", GvDatosAlmacen.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="GvDatosAlmacen" runat="server" AutoGenerateColumns="False" EmptyDataText="Aun no hay registros." ShowHeaderWhenEmpty="true"
|
||
DataKeyNames="CveMovimientoDetalle,CodigoPS" ToolTip="Listado de Movimientos" CssClass="table table-hover table-striped Widthall ScrollAD" data-sort="false" GridLines="None">
|
||
<Columns>
|
||
|
||
<asp:HyperLinkField HeaderText="Pedido" ItemStyle-HorizontalAlign="Center" Target="_blank" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="SerieFolio" ItemStyle-Width="7%" />
|
||
<asp:HyperLinkField HeaderText="Almacen" ItemStyle-HorizontalAlign="Center" Target="_blank" DataNavigateUrlFields="CveMovimiento" ItemStyle-Width="5%" DataNavigateUrlFormatString="/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}" DataTextField="Folio" />
|
||
|
||
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="3%" />
|
||
|
||
<asp:BoundField HeaderText="Producto" DataField="CodigoPS" ItemStyle-Width="40%" />
|
||
|
||
<asp:BoundField HeaderText="Es Interno" DataField="EsInternoTexto" ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center" />
|
||
<asp:BoundField HeaderText="Contrato Externo" DataField="ContratoExterno" ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Left" />
|
||
|
||
<asp:TemplateField HeaderText="Seleccionar" Visible="false" ItemStyle-Width="5%">
|
||
<ItemTemplate>
|
||
<asp:CheckBox ID="ChkEsInterno" Visible="false" runat="server"></asp:CheckBox>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-Width="10%" />
|
||
<asp:BoundField HeaderText="Valor AF" DataField="ValorImporte" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="8%" />
|
||
<asp:HyperLinkField HeaderText="Devolución" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" Target="_blank" DataNavigateUrlFields="CveVentaDevolucion" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="SerieFolioDevolucion" />
|
||
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<br />
|
||
<br />
|
||
<br />
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabPed" runat="server" HeaderText="Pedidos / Devoluciones">
|
||
<ContentTemplate>
|
||
<asp:UpdatePanel UpdateMode="Conditional" ID="UpPedidosDevoluciones" runat="server">
|
||
<ContentTemplate>
|
||
<div class="portlet light smmallpadding traspasorow bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<span class="caption-subject bold uppercase" style="line-height: 2;">Pedidos</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 rowpadding">
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<div class="row" style="margin-left: 0px; margin-top: 5px; margin-bottom: 5px; text-align: right" align="left">
|
||
<div style="margin-right: 15px">
|
||
<input type="text" id="TxtBusquedaP" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaP','{0}')", GvPedidos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaP','{0}')", GvPedidos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
</div>
|
||
<asp:GridView ID="GvPedidos" runat="server" AutoGenerateColumns="False" EmptyDataText="Aun no hay registros." ShowHeaderWhenEmpty="true"
|
||
DataKeyNames="CveMovimientoDetalle,CodigoPS" ToolTip="Listado de Movimientos"
|
||
CssClass="table table-hover table-striped Widthall ScrollAD" data-sort="false" GridLines="None"
|
||
OnRowDataBound="GvPedidos_RowDataBound">
|
||
<Columns>
|
||
<asp:HyperLinkField HeaderText="Pedido" ItemStyle-HorizontalAlign="Center" Target="_blank" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="SerieFolio" ItemStyle-Width="7%" />
|
||
<asp:HyperLinkField HeaderText="Almacen" ItemStyle-HorizontalAlign="Center" Target="_blank" DataNavigateUrlFields="CveMovimiento" ItemStyle-Width="5%" DataNavigateUrlFormatString="/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}" DataTextField="Folio" />
|
||
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="3%" />
|
||
<asp:BoundField HeaderText="Producto" DataField="CodigoPS" ItemStyle-Width="40%" />
|
||
<asp:BoundField HeaderText="Contrato Externo" DataField="ContratoExterno" ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Left" />
|
||
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-Width="10%" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="portlet light smmallpadding traspasorow bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<span class="caption-subject bold uppercase" style="line-height: 2;">Devoluciones</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 rowpadding">
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<div class="row" style="margin-left: 0px; margin-top: 5px; margin-bottom: 5px; text-align: right" align="left">
|
||
<div style="margin-right: 15px">
|
||
<input type="text" id="TxtBusqueda2" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda2','{0}')", GvDevs.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda2','{0}')", GvDevs.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
</div>
|
||
<asp:GridView ID="GvDevs" runat="server" AutoGenerateColumns="False" EmptyDataText="Aun no hay registros." ShowHeaderWhenEmpty="true"
|
||
DataKeyNames="CveMovimientoDetalle,CodigoPS" ToolTip="Listado de Movimientos"
|
||
CssClass="table table-hover table-striped Widthall ScrollAD" data-sort="false" GridLines="None"
|
||
OnRowDataBound="GvDevs_RowDataBound">
|
||
<Columns>
|
||
<asp:HyperLinkField HeaderText="Devolución" ItemStyle-HorizontalAlign="Center" Target="_blank" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="SerieFolio" ItemStyle-Width="7%" />
|
||
<asp:HyperLinkField HeaderText="Almacen" ItemStyle-HorizontalAlign="Center" Target="_blank" DataNavigateUrlFields="CveMovimiento" ItemStyle-Width="5%" DataNavigateUrlFormatString="/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}" DataTextField="Folio" />
|
||
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="3%" />
|
||
<asp:BoundField HeaderText="Producto" DataField="CodigoPS" ItemStyle-Width="40%" />
|
||
<asp:BoundField HeaderText="Contrato Externo" DataField="ContratoExterno" ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Left" />
|
||
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-Width="10%" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright" style="width: 500px;">
|
||
<asp:TextBox ID="TxtCorreoNotificacion" CssClass="form-control" runat="server" MaxLength="300"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="FTECorreoNotificacion" runat="server" FilterType="Numbers, LowercaseLetters, UppercaseLetters, Custom" ValidChars=".;@_-ñ" TargetControlID="TxtCorreoNotificacion" />
|
||
<asp:RegularExpressionValidator ID="REVCorreoNotif" runat="server" CssClass="help-block errorimput" ValidationExpression="(([a-zA-Z0-9ñÑ_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)(\s*;\s*|\s*$))*" ControlToValidate="TxtCorreoNotificacion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Correo de aviso de notificación de pedido o devolución''</b> no es válido, por favor ingrése uno correcto."></asp:RegularExpressionValidator>
|
||
<label for="<%= TxtCorreoNotificacion.ClientID.ToString()%>">Correo de aviso de notificación de pedido o devolución: </label>
|
||
<i></i>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<br />
|
||
<br />
|
||
<br />
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
<ajax:TabPanel ID="TabAddendum" HeaderText="Addendum" runat="server" Visible="false">
|
||
<ContentTemplate>
|
||
<asp:GridView runat="server" ID="GvAddendum" GridLines="None" ShowHeader="true" AutoGenerateColumns="false" DataKeyNames="CveContrato" CssClass="table table-striped table-hover Widthall">
|
||
<Columns>
|
||
<asp:HyperLinkField HeaderText="No. Contrato" DataTextField="NumeroContrato" DataTextFormatString="{0}" DataNavigateUrlFields="CveContrato" DataNavigateUrlFormatString="Contrato.aspx?CveContrato={0}" ItemStyle-Width="250px" />
|
||
<asp:BoundField DataField="DescripcionContrato" HeaderText="Contrato" />
|
||
<asp:BoundField DataField="FechaInicial" HeaderText="Fecha Inicial" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
||
<asp:BoundField DataField="FechaFinal" HeaderText="Fecha Final" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
<ajax:TabPanel ID="TabFacCiclica" runat="server" HeaderText="Facturación Ciclica">
|
||
<ContentTemplate>
|
||
<asp:UpdatePanel ID="UpFacCiclica" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<br />
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="portlet smmallpadding light bordered">
|
||
<div class="portlet-title">
|
||
<div class="tools">
|
||
<a href="javascript;" data-idchekbox="C_chkexpand" class=" collapse" data-original-title="" title=""></a><span class="hidden">
|
||
<input id="C_chkexpand" type="checkbox" name="ctl00$C$chkexpand" checked="checked"></span>
|
||
</div>
|
||
<div class="caption uppercase" style="position: relative;"><i class="fa fa-info-circle"></i>Datos de Facturación</div>
|
||
</div>
|
||
<div class="portlet-body rowpadding">
|
||
<div class="row">
|
||
<label class="col-md-3 truncate ">Aplica Facturación Ciclica:</label>
|
||
<div class="col-md-9">
|
||
<asp:CheckBox ID="ChkAplicaFacCiclica" AutoPostBack="True" OnCheckedChanged="ChkAplicaFacCiclica_CheckedChanged" runat="server"></asp:CheckBox>
|
||
</div>
|
||
</div>
|
||
<div class="row" id="DivFacCiclica" runat="server" visible="false">
|
||
<div class="col-md-12">
|
||
<div class="row">
|
||
<label class="col-md-3 truncate">
|
||
<asp:Label ID="Label6" runat="server" Text="Periodo:"></asp:Label></label>
|
||
<div class="col-md-9">
|
||
<asp:DropDownList ID="DdlPeriodo" runat="server" AppendDataBoundItems="True" AutoPostBack="true" OnSelectedIndexChanged="DdlPeriodo_SelectedIndexChanged" DataTextField="Nombre" DataValueField="CvePeriodo" Class="table-group-action-input form-control input-inline input-sm select2me" Width="75%">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
<div class="row">
|
||
<label class="col-md-3 truncate">
|
||
<asp:Label ID="Label5" runat="server" Text="Dia del mes:"></asp:Label></label>
|
||
<div class="col-md-9">
|
||
<asp:DropDownList ID="DdlDiaFact" runat="server" AppendDataBoundItems="True" Class="table-group-action-input form-control input-inline input-sm select2me" Width="75%">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
<div class="row">
|
||
<label class="col-md-3 truncate ">Facturación Automatica:</label>
|
||
<div class="col-md-9">
|
||
<asp:CheckBox ID="ChkFacAutomatica" runat="server"></asp:CheckBox>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
<div class="row">
|
||
<label class="col-md-3 truncate ">Observación de Facturación:</label>
|
||
<div class="col-md-7">
|
||
<asp:TextBox ID="TxtObservaciones" runat="server" Width="100%" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
||
</div>
|
||
<div class="col-md-2">
|
||
<asp:Button ID="BtnVerPlantilla" runat="server" Text="Ver Plantilla" CssClass="btn btn-sm btn-primary" Width="100%" OnClick="BtnVerPlantilla_Click"/>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-12" style="vertical-align: middle;" align="center">
|
||
<div style="z-index: 5; position: relative;">
|
||
<div id="DivAdvertencia" clientidmode="Static" runat="server" class="alert alert-warning" 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>
|
||
<asp:Literal Text="En las observaciones se puede generar una plantilla a partir de diferentes etiquetas:<br/> {DIA},{MES},{AÑO},{TC},{MESANTERIOR},{INICIOMESANTERIOR},{FINMESANTERIOR}" runat="server" ID="LtlAdvertencia"></asp:Literal>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="portlet smmallpadding light bordered" id="DivCiclosComerciales" runat="server" visible="false">
|
||
<div class="portlet-title">
|
||
<div class="tools">
|
||
<a href="javascript;" data-idchekbox="C_chkexpand" class=" collapse" data-original-title="" title=""></a><span class="hidden">
|
||
<input id="C_chkexpand" type="checkbox" name="ctl00$C$chkexpand" checked="checked"></span>
|
||
</div>
|
||
<div class="caption uppercase" style="position: relative;"><i class="fa fa-info-circle"></i>Ciclos de facturación</div>
|
||
</div>
|
||
<div class="portlet-body rowpadding">
|
||
<div class="row">
|
||
<div class="col-md-12" align="right">
|
||
<input type="text" id="TxtFiltraCiclos" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtFiltraCiclos','{0}')", GvCiclosComerciales.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtFiltraCiclos','{0}')", GvDatosAvance.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:GridView ID="GvCiclosComerciales" ClientIDMode="Static" ShowHeader="true" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron documentos." CssClass="table table-striped table-hover ScrollAD Widthall" data-heighterror="450" data-freezerows="1" BorderColor="#D3D3D3" GridLines="None">
|
||
<Columns>
|
||
<asp:BoundField HeaderText="Fecha Vencimiento" DataField="FechaVenc" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
||
<asp:BoundField HeaderText="Fue Facturado" DataField="FueFacturadoTexto" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" />
|
||
<%-- <asp:BoundField HeaderText="Periodo" DataField="Periodo" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" />--%>
|
||
<asp:HyperLinkField HeaderText="Serie-Folio" DataTextField="VentaFacturada" Target="_blank" ItemStyle-Width="10%" ItemStyle-CssClass="Texto Izquierda" DataNavigateUrlFields="CveVentaFacturada" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" />
|
||
<asp:BoundField HeaderText="Moneda" DataField="MonedaVenta" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" />
|
||
<asp:BoundField HeaderText="Fecha Facturación" DataField="FechaIngVenta" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
||
<%-- <asp:BoundField HeaderText="SubTotal" DataField="SubTotalVenta" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}" />
|
||
<asp:BoundField HeaderText="IVA" DataField="IVAVenta" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}" />
|
||
<asp:BoundField HeaderText="IEPS" DataField="IVAVenta" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}" />--%>
|
||
<asp:BoundField HeaderText="Total" DataField="TotalVenta" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
<ajax:TabPanel ID="TabSistema" runat="server" HeaderText="Sistema">
|
||
<ContentTemplate>
|
||
|
||
<table border="0" class="contenido">
|
||
<tr>
|
||
<td valign="top">
|
||
<div>
|
||
<fieldset>
|
||
<legend><b>Sistema</b></legend>
|
||
<table border="0">
|
||
<tr>
|
||
<td>Fecha de Captura:</td>
|
||
<td>
|
||
<asp:Label ID="LblFechaCaptura" runat="server"></asp:Label></td>
|
||
</tr>
|
||
<tr>
|
||
<td>Usuario Capturó:</td>
|
||
<td>
|
||
<asp:Label ID="LblUsuarioCapturo" runat="server"></asp:Label></td>
|
||
</tr>
|
||
<tr>
|
||
<td>Estatus:</td>
|
||
<td>
|
||
<asp:CheckBox ID="ChkEstatusContrato" runat="server"></asp:CheckBox></td>
|
||
</tr>
|
||
</table>
|
||
</fieldset>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
</ajax:TabContainer>
|
||
|
||
|
||
<div style="text-align: center; padding-top: 20px;">
|
||
<asp:UpdatePanel ID="UpGuardar" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:Button ID="BtnGuardar" runat="server" Text="Guardar" ValidationGroup="GrpGuardar" CssClass="btn btn-primary" Visible=" false" />
|
||
|
||
<asp:Button ID="BtnEliminar" runat="server" Text="Eliminar" Visible="false" CssClass="btn btn-danger" data-toggle="confirmation" data-popout="true" data-original-title="Esta seguro de eliminar el Contrato?" data-btn-ok-label="si" />
|
||
<asp:ValidationSummary ID="VS" runat="server" DisplayMode="BulletList" ShowSummary="true" ValidationGroup="GrpGuardar" />
|
||
|
||
<asp:Button ID="BtnCancelar" CssClass="btn btn-default" runat="server" Text="Cancelar" OnClientClick="javascript:window.location.href='/Contratos/Contratos.aspx';return false" />
|
||
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<br />
|
||
|
||
|
||
<%-- BITACORA--%>
|
||
<div class="row" id="DvBitacora" runat="server">
|
||
<div class="col-md-12 ">
|
||
<div class="portlet light bordered">
|
||
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<span class="caption-subject bold uppercase">Bitácora</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
<asp:HyperLink ID="ImgAddObs" CssClass="caption-subject bold" data-toggle="modal" data-target="#ModalBitacora" runat="server" Text=" <i class='fa fa-commenting font-green' style='font-weight: 700 !important;' ><span class='caption-subject bold'>Agregar</span></i>" Style="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' style='font-weight: 700 !important;' >Agendar</i>" Visible="true" Style="cursor: pointer;" ToolTip="Agendar"></asp:HyperLink>
|
||
</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, CveUsuarioIng" EmptyDataText="No se han capturado comentarios o bitácora" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None" OnRowDeleting="GvEB_RowDeleting">
|
||
<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>
|
||
<asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LinkEliminarBitacora" runat="server" AlternateText="Eliminar" Visible="false" CausesValidation="False" CommandName="Delete" CssClass="btn btn-circle btn-sm red mysmallbtn" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
</Columns>
|
||
<HeaderStyle CssClass="Titulos" />
|
||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||
<RowStyle CssClass="Texto" />
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<br />
|
||
<br />
|
||
|
||
<%--MODAL BITACORA--%>
|
||
<div id="ModalBitacora" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
|
||
<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="UpdatePanel2" 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="txtFileBit" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||
</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>
|
||
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<%-- MODAL FIANZA --%>
|
||
<div id="DvModalFianza" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
<asp:UpdatePanel ID="UPModalFianza" 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="txth4Fianza" runat="server">Fianza</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel runat="server" ID="UpModalBody" UpdateMode="conditional">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="txtFolioFianza" runat="server" CssClass="form-control" MaxLength="500" CausesValidation="true"></asp:TextBox>
|
||
<label style="margin-top: -6px" for="<%= txtFolioFianza.ClientID.ToString()%>">Folio:</label>
|
||
<asp:RequiredFieldValidator ID="RFVtxtFFianza" runat="server" CssClass="help-block errorimput" ControlToValidate="txtFolioFianza" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Folio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlFianza" Width="230px" runat="server" CssClass="form-control input-sm select2me ">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
<asp:ListItem Text="Activa" Value="1"></asp:ListItem>
|
||
<asp:ListItem Text="Liberada" Value="2"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label style="margin-top: -6px" for="<%=DdlFianza.ClientID.ToString()%>">Estatus:</label>
|
||
<asp:RequiredFieldValidator ID="RFVDdlFianza" runat="server" ControlToValidate="DdlFianza" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Estatus''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEFianza" runat="server" HighlightCssClass="vco posicionvalidation" TargetControlID="RFVDdlFianza" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<label for="<%= txtFechaVenFianza.ClientID.ToString() %>" style="font-size: 13px; color: #888888;">Fecha de Vencimiento:</label>
|
||
<div class="row">
|
||
<div class="col-md-4">
|
||
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy" style="width: 110px !important; padding: 0px;">
|
||
<asp:TextBox ID="txtFechaVenFianza" runat="server" Style="width: 90px;" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton ID="imgCalendarioFianza" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||
</span>
|
||
<ajax:MaskedEditExtender ID="MEEtxtFechaVenFianza" runat="server" TargetControlID="txtFechaVenFianza" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender runat="server" ID="CalendarioF" TargetControlID="txtFechaVenFianza" PopupButtonID="imgCalendarioFianza" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="rfvFechaVF" runat="server" CssClass="help-block errorimput" ControlToValidate="txtFechaVenFianza" Display="None" ErrorMessage="El campo <b>''Fecha de Vencimiento''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEFechaVF" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaVF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:TextBox ID="TxtModalAdjuntoArchivo" CssClass="ADSdropzone hidden" data-maxFile="1" runat="server"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
<div class="row">
|
||
<div class="col-md-12" align="center">
|
||
<asp:LinkButton ID="LnkDescargar" OnClick="LnkDescargar_Click" Visible="false" data-toggle="tooltip" data-placement="top" ToolTip="Descargar Adjunto" runat="server"><i class="fa fa-arrow-circle-down" style="color:green" aria-hidden="true"></i></asp:LinkButton>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:LinkButton ID="BtnGuardarFianza" runat="server" Text="Guardar" OnClick="BtnGuardarFianza_Click" CssClass="btn btn-primary" ValidationGroup="GrpObligatorio"></asp:LinkButton>
|
||
<button data-dismiss="modal" class="btn btn-default">Cancelar</button>
|
||
</div>
|
||
</ContentTemplate>
|
||
<Triggers>
|
||
<asp:PostBackTrigger ControlID="LnkDescargar" />
|
||
</Triggers>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<%--MODAL UPLOAD--%>
|
||
<div id="ModalUpload" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
|
||
<div class="modal-content">
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Subir Archivo</h4>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel runat="server" ID="UPAddEventoBitacora" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:Button ID="BtnGuardarArchivo" 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>
|
||
|
||
|
||
<%--VENTAS AVANCE--%>
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<div id="ModalVentasAvance" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
|
||
<div class="modal-content" style="width: 700px;">
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">
|
||
<asp:Label Text="" ID="LbTituloModalVentasAvance" runat="server" /></h4>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel runat="server" ID="UpVentasAvance" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<table>
|
||
<tr>
|
||
<td>Clasificación:</td>
|
||
<td>
|
||
<asp:Label ID="LbClasificacionVentasAvance" Text="123" Font-Bold="true" runat="server" /></td>
|
||
</tr>
|
||
<tr>
|
||
<td>Producto/Servicio:</td>
|
||
<td>
|
||
<asp:Label ID="LbPSVentasAvance" Text="123" Font-Bold="true" runat="server" /></td>
|
||
</tr>
|
||
</table>
|
||
|
||
<div style="overflow-y: auto; height: 400px;">
|
||
<asp:GridView ID="GvDatosVentasAvance" ClientIDMode="Static" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron datos con los filtros especificados" CssClass="table table-striped table-hover Widthall" BorderColor="#D3D3D3" GridLines="None">
|
||
<Columns>
|
||
<asp:HyperLinkField HeaderText="Folio" DataTextField="SerieFolio" Target="_blank" ItemStyle-Width="20%" ItemStyle-CssClass="Texto Izquierda" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" />
|
||
<asp:HyperLinkField HeaderText="Fecha" DataTextField="Fecha" Target="_blank" ItemStyle-Width="10%" ItemStyle-CssClass="Texto" DataTextFormatString="{0:d}" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" />
|
||
<asp:HyperLinkField HeaderText="Sucursal" DataTextField="SubProyecto" Target="_blank" ItemStyle-Width="15%" ItemStyle-CssClass="Texto Izquierda" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" />
|
||
<asp:HyperLinkField HeaderText="Cliente" DataTextField="Cliente" Target="_blank" ItemStyle-Width="35%" ItemStyle-CssClass="Texto Izquierda" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" />
|
||
<asp:HyperLinkField HeaderText="Cantidad" DataTextField="Cantidad" Target="_blank" ItemStyle-Width="5%" ItemStyle-CssClass="Texto Derecha" DataTextFormatString="{0:###,##0.00##}" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" />
|
||
<asp:HyperLinkField HeaderText="Total" DataTextField="SubTotalDetalle" Target="_blank" ItemStyle-Width="20%" ItemStyle-CssClass="Texto Derecha" DataTextFormatString="{0:###,###,##0.00##}" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<%--CARGA EXCEL--%>
|
||
<div id="DivCargaExcel" 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">Agregar Excel</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<h3>Arraste o haga click para subir el archivo Excel</h3>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-11" style="margin-left: 30px; margin-right: 30px; margin-bottom: 200px;">
|
||
<asp:TextBox ID="TxtExcel" CssClass="ADSdropzone hidden" Text="" data-maxFile="1" runat="server"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<div class="row">
|
||
<div class="col-md-2" style="text-align: left">
|
||
<asp:Button ID="Button1" runat="server" CssClass="btn btn-warning" Text="Descargar Formato" />
|
||
</div>
|
||
<div class="col-md-10" style="text-align: right">
|
||
<asp:Button ID="BtnCargaExcel" runat="server" CssClass="btn btn-success" Text="Aceptar"></asp:Button>
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<div id="ModalAgregarGastos" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog" style="width: 450px;">
|
||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpAgregarGastos" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">
|
||
<asp:Literal ID="LtlAddGastos" runat="server">Agregar Gastos</asp:Literal></h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtDescripcion" CssClass="form-control " runat="server" CausesValidation="true" MaxLength="200" ValidationGroup="GrpAdd"></asp:TextBox>
|
||
<label for="<%= TxtDescripcion.ClientID.ToString()%>" style="margin-bottom: 0px;">Descripción:</label>
|
||
<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="GrpAdd"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCODescripcion" runat="server" HighlightCssClass="vco" TargetControlID="RFVDescripcion" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtImporteC" CssClass="form-control " runat="server" CausesValidation="true" MaxLength="50" ValidationGroup="GrpAdd"></asp:TextBox>
|
||
<label for="<%= TxtImporteC.ClientID.ToString()%>">Importe:</label>
|
||
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumerosImporteGastos" runat="server" TargetControlID="TxtImporteC" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:RequiredFieldValidator ID="RFVImporte" runat="server" ControlToValidate="TxtImporteC" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importe''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAdd"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOImporte" runat="server" HighlightCssClass="vco" TargetControlID="RFVImporte" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<asp:CompareValidator ID="CVImporte" runat="server" ControlToValidate="TxtImporteC" Display="None" ErrorMessage="El campo <b>''Importe''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpAdd"></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOCVImporte" runat="server" HighlightCssClass="vco" TargetControlID="CVImporte" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<div class="input-group date date-picker" data-date-format="dd/mm/yyyy">
|
||
<asp:TextBox ID="TxtFecha" runat="server" CssClass="form-control"></asp:TextBox>
|
||
<label for="<%= TxtFecha.ClientID.ToString()%>">Fecha:</label>
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton runat="server" ID="ImgCalendario" class="btn default"><i class="fa fa-calendar"></i></asp:LinkButton>
|
||
</span>
|
||
</div>
|
||
<ajax:MaskedEditExtender ID="MEEFecha" runat="server" TargetControlID="TxtFecha" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender ID="Calendario" runat="server" TargetControlID="TxtFecha" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="RFVFechaDocumento" runat="server" ControlToValidate="TxtFecha" Display="None" ErrorMessage="El campo <b>''Fecha''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpAdd"></asp:RequiredFieldValidator>
|
||
<asp:CompareValidator ID="CVFechaDocumento" runat="server" ControlToValidate="TxtFecha" 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="GrpAdd"></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOFechaDocumento1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaDocumento" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
<ajax:ValidatorCalloutExtender ID="VCOFechaDocumento2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaDocumento" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button ID="LBAgregar" runat="server" class="btn btn-success" Text="Guardar Gasto" ValidationGroup="GrpAdd" />
|
||
<button id="Button2" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div id="ModalCrearApartirDe" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog" style="width: 450px;">
|
||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpCrearApartirDe" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">
|
||
<asp:Literal ID="LtlFiltroEncuestas" runat="server">Crear A Partir De</asp:Literal></h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtCodigoApartirDe" CssClass="form-control " runat="server" MaxLength="100" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVCodigoApartirDe" runat="server" ControlToValidate="TxtCodigoApartirDe" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Código''</b> es necesario, por favor ingréselo." ValidationGroup="GrpCrearApartirDe"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtCodigoApartirDe.ClientID.ToString()%>">Código:</label>
|
||
</div>
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtDescripcionApartirDe" CssClass="form-control " runat="server" MaxLength="100" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVDescripcionApartirDe" runat="server" ControlToValidate="TxtDescripcionApartirDe" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpCrearApartirDe"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtDescripcionApartirDe.ClientID.ToString()%>">Descripción:</label>
|
||
</div>
|
||
|
||
|
||
<div class="form-group form-md-line-input input-iconright date date-picker date date-picker" style="position: relative;">
|
||
<div class="row ">
|
||
|
||
<div class="col-md-5" style="position: relative; margin-left: 10px!important">
|
||
<asp:TextBox ID="txtFechaI4" Style="margin-top: 10px!important" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
||
|
||
<label for="<%= txtFechaI4.ClientID.ToString()%>">Fecha Inicial:</label>
|
||
<span class="input-group-btn " style="position: absolute; right: 41px; top: 0px;">
|
||
<asp:LinkButton ID="imgCalendario4" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server" Style="margin-top: 10px;"></asp:LinkButton>
|
||
</span>
|
||
|
||
<ajax:CalendarExtender runat="server" ID="Calendario4" TargetControlID="txtFechaI4" PopupButtonID="ImgCalendario4" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="rfvFechaI4" runat="server" ControlToValidate="txtFechaI4" CssClass="help-block errorimput" Display="None" ErrorMessage="El campo <b>''Fecha''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpRL"></asp:RequiredFieldValidator>
|
||
<asp:CompareValidator ID="cvFechaI4" runat="server" ControlToValidate="txtFechaI4" 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="GrpCrearApartirDe"></asp:CompareValidator>
|
||
|
||
<ajax:ValidatorCalloutExtender ID="vcoFfvFI4" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI4" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
<ajax:ValidatorCalloutExtender ID="vcoCvFI4" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI4" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
|
||
|
||
<div class="col-md-5" style="position: relative; margin-left: 10px!important">
|
||
<asp:TextBox ID="txtFechaF4" Style="margin-top: 10px!important" CssClass="form-control " runat="server" MaxLength="50" CausesValidation="true"></asp:TextBox>
|
||
<label for="<%= txtFechaF4.ClientID.ToString()%>">Fecha Fin:</label>
|
||
<span class="input-group-btn " style="position: absolute; right: 41px; top: 0px;">
|
||
<asp:LinkButton ID="imgCalendario24" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server" Style="margin-top: 10px;"></asp:LinkButton>
|
||
</span>
|
||
|
||
<ajax:CalendarExtender runat="server" ID="Calendario24" TargetControlID="txtFechaF4" PopupButtonID="ImgCalendario24" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="rfvFechaF4" runat="server" ControlToValidate="txtFechaF4" CssClass="help-block errorimput" Display="None" ErrorMessage="El campo <b>''Fecha''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpRL"></asp:RequiredFieldValidator>
|
||
<asp:CompareValidator ID="cvFechaF4" runat="server" ControlToValidate="txtFechaF4" 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="GrpCrearApartirDe"></asp:CompareValidator>
|
||
|
||
<ajax:ValidatorCalloutExtender ID="vcoFfvFF4" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaF4" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
<ajax:ValidatorCalloutExtender ID="vcoCvFF4" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaF4" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
|
||
</div>
|
||
<div class="col-md-1"></div>
|
||
</div>
|
||
|
||
<br />
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:CheckBox ID="ChkCantidades" CssClass="form-control " runat="server" Checked="true"></asp:CheckBox>
|
||
<label for="<%= ChkCantidades.ClientID.ToString()%>">Incluir Partidas:</label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:CheckBox ID="ChkTrasAF" CssClass="form-control " runat="server" Checked="false"></asp:CheckBox>
|
||
<label for="<%= ChkTrasAF.ClientID.ToString()%>">Incluir Activos Fijos:</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="modal-footer">
|
||
<asp:Button ID="BtnAgregarContratoHijo" runat="server" class="btn btn-success" Text="Crear Contrato" ValidationGroup="GrpCrearApartirDe" />
|
||
<button id="Button3" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<iframe id="my_iframe" style="display: none;"></iframe>
|
||
|
||
</asp:Content>
|
||
|
||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||
|
||
<script src="/Scripts/DataTables.js"></script>
|
||
<script type="text/javascript">
|
||
function sumagvx() {
|
||
// ltltotalgvx
|
||
var valor = 0;
|
||
$('.ltltotalgvx:visible').each(function (index) {
|
||
var tthis = $(this);
|
||
valor += parseFloat(tthis.data('value'))
|
||
});
|
||
$('#LbTotalGeneral').text(FormatoNumero(valor, 2));
|
||
}
|
||
|
||
|
||
|
||
function sumagvx2() {
|
||
// ltltotalgvx
|
||
var valor = 0;
|
||
$('.ltltotalgvx2:visible').each(function (index) {
|
||
var tthis = $(this);
|
||
valor += parseFloat(tthis.data('value'))
|
||
});
|
||
$('#LbTotalGeneralInsumos').text(FormatoNumero(valor, 2));
|
||
}
|
||
|
||
|
||
|
||
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 Download(urlD) {
|
||
document.getElementById('my_iframe').src = urlD;
|
||
};
|
||
|
||
//var RecargaAvances = false;
|
||
//jQuery(document).ready(function () {
|
||
// Sys.Application.add_load(function (s, e) {
|
||
// OrdenarGV();
|
||
// });
|
||
//});
|
||
|
||
|
||
//var dTable;
|
||
//function pageLoad() {
|
||
// var rows = false;
|
||
// var cont = 0;
|
||
|
||
// $("#C_Tab_TabPres_TabP_TabPV_Gv tr").each(function () {
|
||
// cont++;
|
||
// });
|
||
|
||
// if (cont > 2) {
|
||
// if ($.fn.dataTable.isDataTable('#C_Tab_TabPres_TabP_TabPV_Gv')) {
|
||
// // table = $('#C_Tab_TabPres_TabP_TabPV_Gv').DataTable();
|
||
// }
|
||
// else {
|
||
// OrdenarGVPresupuestos()
|
||
// }
|
||
// }
|
||
//}
|
||
//$(window).resize(function () {
|
||
// dTable.columns.adjust().draw();
|
||
//});
|
||
|
||
|
||
|
||
function OrdenarGVPresupuestos() {
|
||
var Tam = TamañoVentana();
|
||
var Alto = Tam.height - 330;
|
||
if (Alto < 100) {
|
||
Alto = 100;
|
||
}
|
||
|
||
$('#<%=Gv.ClientID%>').DataTable({
|
||
retrieve: true,
|
||
scrollY: '300px',
|
||
scrollCollapse: true,
|
||
paging: false,
|
||
searching: false,
|
||
info: false,
|
||
ordering: false
|
||
});
|
||
$('#Gv').parent().parent().children().first().css("position", "static");
|
||
}
|
||
|
||
|
||
|
||
function OrdenarGV() {
|
||
//debugger;
|
||
var currenttehead = $("<thead></thead>");
|
||
$('#<%=GvDatosAvance.ClientID%>').prepend(currenttehead);
|
||
currenttehead.append($('#GvDatosAvance tr:nth-child(1)'));
|
||
$('#GvDatosAvance').DataTable({
|
||
retrieve: true,
|
||
scrollY: '300px',
|
||
scrollCollapse: true,
|
||
paging: false,
|
||
searching: false,
|
||
info: false,
|
||
ordering: false
|
||
});
|
||
$('#GvDatosAvance').parent().parent().children().first().css("position", "static");
|
||
}
|
||
|
||
function OrdenarGVPorDocumento() {
|
||
//debugger;
|
||
$('#GVAvanceXDocumento').DataTable({
|
||
retrieve: true,
|
||
scrollY: '300px',
|
||
scrollCollapse: true,
|
||
paging: false,
|
||
searching: false,
|
||
info: false
|
||
});
|
||
$('#GVAvanceXDocumento').parent().parent().children().first().css("position", "static");
|
||
}
|
||
|
||
//$('#GvDatosAvance').ready(function () {
|
||
// alert("Hola");
|
||
// OrdenarGV();
|
||
//});
|
||
|
||
|
||
//function OrdenarGVVentasAvance() {
|
||
// $('#GvDatosVentasAvance').DataTable({
|
||
// scrollY: '400px',
|
||
// scrollCollapse: true,
|
||
// paging: false,
|
||
// searching: false,
|
||
// info: false,
|
||
// ordering: false
|
||
// });
|
||
// $('#GvDatosVentasAvance').parent().parent().children().first().css("position", "static");
|
||
//}
|
||
|
||
|
||
function ADSReady() {
|
||
$('.ajax__tab_outer').click(function () {
|
||
$.fn.dataTable.tables({ visible: true, api: true }).columns.adjust();
|
||
});
|
||
|
||
}
|
||
|
||
|
||
</script>
|
||
</asp:Content>
|