3063 lines
238 KiB
Plaintext
3063 lines
238 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="OC.aspx.vb" EnableEventValidation="false" Inherits="OC" %>
|
||
|
||
<asp:Content ID="Content1" ContentPlaceHolderID="H" runat="Server">
|
||
|
||
<asp:UpdatePanel runat="server" ID="UpAcciones" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<li>
|
||
<asp:HyperLink ID="HLImprimir" Target="_blank" runat="server" Visible="false"> <i class="fa fa-print"></i> Imprimir</asp:HyperLink>
|
||
</li>
|
||
|
||
<li>
|
||
<asp:HyperLink ID="HLImprimirCotizacion" Target="_blank" runat="server" Visible="false"> <i class="fa fa-print"></i> Imprimir Cotización</asp:HyperLink>
|
||
</li>
|
||
|
||
<li>
|
||
<asp:HyperLink ID="generarAnticipo" Style="width: 170px;" Visible="false" Target="_blank" runat="server"><i class="fa fa-plus"></i> Generar Anticipo</asp:HyperLink>
|
||
</li>
|
||
|
||
<li>
|
||
<asp:HyperLink ID="HLGenerarVenta" Visible="false" Target="_blank" runat="server"><i class="fa fa-money"></i> Generar Venta</asp:HyperLink>
|
||
</li>
|
||
<li>
|
||
<asp:HyperLink ID="HLGenerarRecepcion" Visible="false" Target="_blank" runat="server"><i class="fa fa-truck"></i>Recibir Mercancía</asp:HyperLink>
|
||
</li>
|
||
|
||
<li>
|
||
<a id="BtnSolicitudAnticipo" runat="server" visible="false" data-toggle="modal" href="#ModalSolicitarAnticipo"><i class="fa fa-dollar"></i>Solicitar Anticipo </a>
|
||
</li>
|
||
<li>
|
||
<asp:HyperLink ID="HyperLink1" NavigateUrl="#" Visible="true" data-toggle="modal" data-target="#DivAgregarPS" runat="server"><i class='fa fa-plus'></i> Agregar PS</asp:HyperLink>
|
||
</li>
|
||
<li>
|
||
<asp:HyperLink ID="HlAgregarExcel" NavigateUrl="#" Visible="false" data-toggle="modal" data-target="#DivCargaExcel" runat="server"><i class='fa fa-server'></i> Importar Listado</asp:HyperLink>
|
||
</li>
|
||
<li>
|
||
<asp:LinkButton ID="LbDescargarExcel" Visible="false" runat="server"><i class='fa fa-file-excel-o'></i> Descargar Formato</asp:LinkButton>
|
||
</li>
|
||
<li>
|
||
<a id="BtnGeneraContrato" runat="server" visible="false" data-toggle="modal" href="#ModalContrato"><i class="fa fa-book"></i>Generar por Contrato </a>
|
||
</li>
|
||
<li>
|
||
<asp:LinkButton ID="LbVerificarExistencia" Visible="True" runat="server"><i class='fa fa-list-alt'></i> Verificar Existencias</asp:LinkButton>
|
||
</li>
|
||
<li>
|
||
<asp:LinkButton ID="LnkCambiarMoneda" Visible="False" runat="server"><i class='fa fa-money'></i> Cambiar Moneda</asp:LinkButton>
|
||
</li>
|
||
<li style="text-align: left!important" runat="server" id="LiLnkGuias" visible="true">
|
||
<asp:LinkButton runat="server" ID="LnkAgregarGuia" CssClass="" data-toggle="tooltip" data-placement="left" OnClick="LnkAgregarGuia_Click" title="Paquetería Guías." Text="<i class='fa fa-truck'></i> Paqueteria Guías" Visible="false"></asp:LinkButton>
|
||
</li>
|
||
</ContentTemplate>
|
||
<Triggers>
|
||
<asp:PostBackTrigger ControlID="LbDescargarExcel" />
|
||
</Triggers>
|
||
</asp:UpdatePanel>
|
||
</asp:Content>
|
||
|
||
|
||
<asp:Content ID="Content5" ContentPlaceHolderID="Css" runat="Server">
|
||
<style>
|
||
.tooltip-inner {
|
||
max-width: 750px !important;
|
||
font-size: 14px;
|
||
}
|
||
|
||
#gvCotizaciones > tbody > tr.Titulos > th:nth-child(4) > a {
|
||
text-align: center;
|
||
}
|
||
|
||
#gvCotizaciones > tbody > tr > th {
|
||
}
|
||
|
||
.txtobs {
|
||
width: 90%;
|
||
}
|
||
|
||
.gvconceptos > tbody > tr > td:nth-child(1), .gvconceptos > tbody > tr > th:nth-child(1),
|
||
.gvconceptos > tbody > tr > td:nth-child(3), .gvconceptos > tbody > tr > th:nth-child(3),
|
||
.gvconceptos > tbody > tr > td:nth-child(6), .gvconceptos > tbody > tr > th:nth-child(6) {
|
||
width: 50px;
|
||
}
|
||
|
||
.gvconceptos > tbody > tr > td:nth-child(2), .gvconceptos > tbody > tr > th:nth-child(2) {
|
||
width: 220px;
|
||
}
|
||
|
||
.gvconceptos > tbody > tr > td:nth-child(4), .gvconceptos > tbody > tr > th:nth-child(4) {
|
||
width: 200px;
|
||
}
|
||
|
||
.gvconceptos > tbody > tr > td:nth-child(5), .gvconceptos > tbody > tr > th:nth-child(5) {
|
||
width: 152px;
|
||
}
|
||
|
||
.gvconceptos > tbody > tr > td:nth-child(7), .gvconceptos > tbody > tr > th:nth-child(7),
|
||
.gvconceptos > tbody > tr > td:nth-child(8), .gvconceptos > tbody > tr > th:nth-child(8),
|
||
.gvconceptos > tbody > tr > td:nth-child(9), .gvconceptos > tbody > tr > th:nth-child(9) {
|
||
width: 70px;
|
||
text-align: right;
|
||
}
|
||
|
||
.gvconceptos > tbody > tr > td:nth-child(11), .gvconceptos > tbody > tr > th:nth-child(11),
|
||
.gvconceptos > tbody > tr > td:nth-child(12), .gvconceptos > tbody > tr > th:nth-child(12) {
|
||
width: 1px;
|
||
}
|
||
|
||
.gvconceptos > tbody > tr > td:nth-child(10), .gvconceptos > tbody > tr > th:nth-child(10) {
|
||
width: 125px;
|
||
text-align: right;
|
||
}
|
||
|
||
.gvconceptos > tbody > tr > th:nth-child(10) {
|
||
text-align: center;
|
||
}
|
||
|
||
.gvconceptos > tbody > tr > td:nth-child(9) div {
|
||
width: 87px;
|
||
}
|
||
|
||
|
||
.gvconceptos > tbody > tr > td:nth-child(12), .gvconceptos > tbody > tr > th:nth-child(12),
|
||
.gvconceptos > tbody > tr > td:nth-child(13), .gvconceptos > tbody > tr > th:nth-child(13),
|
||
.gvconceptos > tbody > tr > td:nth-child(14), .gvconceptos > tbody > tr > th:nth-child(14),
|
||
.gvconceptos > tbody > tr > td:nth-child(15), .gvconceptos > tbody > tr > th:nth-child(15),
|
||
.gvconceptos > tbody > tr > td:nth-child(16), .gvconceptos > tbody > tr > th:nth-child(16) {
|
||
width: 1px;
|
||
}
|
||
|
||
.arrow {
|
||
left: 20%;
|
||
}
|
||
|
||
.popover {
|
||
width: 500px !important;
|
||
max-width: 500px !important;
|
||
}
|
||
|
||
.modalBackground {
|
||
background-color: Black;
|
||
filter: alpha(opacity=90);
|
||
opacity: 0.8;
|
||
}
|
||
|
||
.modalPopup {
|
||
background-color: #FFFFFF;
|
||
padding-bottom: 10px;
|
||
}
|
||
|
||
.select2anothertable {
|
||
position: absolute;
|
||
left: 100%;
|
||
background-color: white;
|
||
/*top: 50px;*/ top: 21px;
|
||
/*max-height: 200px;*/ max-height: 229px;
|
||
/*background-color: #dcdcdc;*/
|
||
overflow: hidden;
|
||
}
|
||
|
||
.select2anothertable > table > tbody > tr > td:nth-of-type(odd) {
|
||
background-color: rgba(220, 220, 220, 0.45);
|
||
}
|
||
|
||
.select2anothertable > table > tbody > tr > td {
|
||
line-height: 21px;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.select2anothertable > table > tbody > tr.active {
|
||
background-color: #5897fb;
|
||
}
|
||
</style>
|
||
</asp:Content>
|
||
<asp:Content ID="Content2" ContentPlaceHolderID="E" runat="Server">
|
||
<asp:Label ID="lblTitulo" runat="server"></asp:Label>
|
||
</asp:Content>
|
||
<asp:Content ID="Content3" ContentPlaceHolderID="C" runat="Server">
|
||
|
||
|
||
<asp:UpdatePanel runat="server" ID="uppBtns" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:Button ID="btnCargaCotizaciones" OnClick="btnCargaCotizaciones_Click" runat="server" ClientIDMode="Static" Style="display: none;" />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<asp:UpdatePanel ID="UPPEmp" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Datos de Orden </span>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript;" class="collapse" data-original-title="" title=""></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body form">
|
||
<div class="labeltruncate labeltext labelbold">
|
||
<%--linea 1--%>
|
||
<div class="row" style="padding-bottom: 0.6em;">
|
||
<label class="col-md-2">Folio:</label>
|
||
<label class="col-md-4">
|
||
<asp:Label runat="server" ID="lblFolio" Font-Bold="true"></asp:Label>
|
||
</label>
|
||
<b>
|
||
<asp:Label runat="server" ID="LblPrioridad" Text="Prioridad:" class="col-md-2" /></b>
|
||
<div class="col-md-4" id="DivPrioridad" runat="server">
|
||
<asp:DropDownList ID="DdlPrioridad" CssClass="select2me" runat="server" Width="150px">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
<asp:ListItem Text="Alta" Value="1"></asp:ListItem>
|
||
<asp:ListItem Text="Media" Value="2"></asp:ListItem>
|
||
<asp:ListItem Text="Baja" Value="3"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<%--linea 2--%>
|
||
<div class="row" runat="server" id="option72" visible="false" style="padding-bottom: 0.6em;">
|
||
<div runat="server" visible="False" id="DivFolioAdicional">
|
||
<label class="col-md-2"><b>Folio Adicional:</b></label>
|
||
<div class="col-md-4">
|
||
<asp:TextBox ID="TxtFolioAdicional" CssClass="form-control input-sm" runat="server" Width="100px"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<label id="LblObsPrioridad" runat="server" class="col-md-2">Obs. prioridad:</label>
|
||
<div id="divtxtprioridad" runat="server" class="col-md-4">
|
||
<asp:TextBox ID="txtobsprioridad" CssClass="form-control input-sm" runat="server"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<%--linea 3--%>
|
||
<div class="row" style="padding-bottom: 0.6em;">
|
||
<label class="col-md-2">Descripción:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtDescrip" CssClass="form-control input-sm" runat="server" Width="370px" ValidationGroup="GrpGuardar" />
|
||
<asp:RequiredFieldValidator ID="RFVDescrip" runat="server" ControlToValidate="TxtDescrip" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEDescrip" runat="server" Enabled="True" HighlightCssClass="vco" TargetControlID="RFVDescrip" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<%--linea 4--%>
|
||
<div class="row" style="padding-bottom: 0.6em;">
|
||
<label class="col-md-2">Justificación:</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtJustificacion" CssClass="form-control input-sm" runat="server" Style="width: 370px; height: 40px;" ValidationGroup="GrpGuardar" TextMode="MultiLine" Rows="5" />
|
||
<asp:RequiredFieldValidator ID="RFVJustif" runat="server" ControlToValidate="TxtJustificacion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Justificación''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEJustificacion" runat="server" Enabled="True" HighlightCssClass="vco" TargetControlID="RFVJustif" Width="300px">
|
||
</ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<%--linea 5--%>
|
||
<div class="row" style="padding-bottom: 0.6em;">
|
||
<b>
|
||
<asp:Label runat="server" ID="LblFechaEstimada" Text="Fecha Estimada:" class="col-md-2" /></b>
|
||
<div class="col-md-4" id="DivFechaEstimada" runat="server">
|
||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 80% !important; padding: 0px;">
|
||
<asp:TextBox ID="TxtFechaEstimadaEntrega" runat="server" ClientIDMode="Static" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||
<asp:HiddenField ID="HdnEjercicioAC" runat="server" Value="-1" />
|
||
<asp:Button Text="" ID="BtnCambiaFecha" OnClick="BtnCambiaFecha_Click" ClientIDMode="Static" Style="display: none;" runat="server" />
|
||
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton ID="ImgFechaEstimadaEntrega" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||
</span>
|
||
<ajax:MaskedEditExtender ID="MEEFechaEstimadaEntrega" runat="server" TargetControlID="TxtFechaEstimadaEntrega" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender runat="server" ID="CEFechaEstimadaEntrega" TargetControlID="TxtFechaEstimadaEntrega" PopupButtonID="ImgFechaEstimadaEntrega" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
<asp:CompareValidator ID="CvFechaEstimadaEntrega" runat="server" ControlToValidate="TxtFechaEstimadaEntrega" Display="None" Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Estimada''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)."></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VcoFechaEstimadaEntrega" runat="server" Enabled="True" HighlightCssClass="vco" TargetControlID="CvFechaEstimadaEntrega" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<label class="col-md-2" runat="server" id="DivLugarEntrega1">Lugar Entrega:</label>
|
||
<div class="col-md-4" runat="server" id="DivLugarEntrega2">
|
||
<asp:TextBox ID="txtLugarEntrega" runat="server" MaxLength="100" Width="100%"></asp:TextBox>
|
||
</div>
|
||
<div class="row" runat="server" visible="False" id="TrCancelacion">
|
||
<label class="col-md-2">Cancelacion:</label>
|
||
<div class="col-md-4">
|
||
<asp:TextBox ID="TxtMotivoCancelacion" CssClass="form-control input-sm" runat="server" Enabled="false" Width="365px" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<%--linea 6--%>
|
||
<asp:UpdatePanel ID="UPProv" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div id="PnlProveedor" runat="server" style="padding-bottom: 0.6em;">
|
||
|
||
<div class="row">
|
||
<label class="col-md-2">Proveedor:</label>
|
||
<div class="col-md-9">
|
||
<%--<asp:DropDownList ID="DdlProveedores" CssClass="select2me" AutoPostBack="True" Style="width: 100%;" runat="server" DataTextField="NombreCortoProveedor" DataValueField="CveProveedor">
|
||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>--%>
|
||
<ADS:Dropdownlost runat="server" ID="DdlProveedores" CssStyle="width: 100%;" CssClassDdl="select2me " DataTextField="NombreCortoProveedor" DataValueField="CveProveedor" />
|
||
<%--<asp:RangeValidator ID="RVProveedores" CssClass="form-control" runat="server" ControlToValidate="DdlProveedores" Display="None" Type="Integer" MinimumValue="1" MaximumValue="2147483647" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Proveedor''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RangeValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOProveedores" runat="server" HighlightCssClass="vco" TargetControlID="RVProveedores" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||
<asp:ImageButton ID="ImgCambiaProv" Visible="false" ImageUrl="/Imagenes/accept.png" runat="server" />
|
||
</div>
|
||
<div class="col-md-1" style="padding-left: 0px;">
|
||
<asp:Label ID="LblLeyendaProveedorIVA" runat="server" Width="100%" Text="" Font-Italic="True"></asp:Label>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div id="DivProveedorSucursal" runat="server" visible="false" style="">
|
||
<label class="col-md-2"><b>Sucursal:</b> </label>
|
||
<div class="col-md-4">
|
||
<asp:DropDownList ID="DdlProveedorSucursal" OnSelectedIndexChanged="DdlProveedorSucursal_SelectedIndexChanged" AutoPostBack="true" CssClass="form-control input-sm select2me" Style="display: inline-block;" runat="server" AppendDataBoundItems="true" DataTextField="ProveedorSucursal" DataValueField="CveProveedorSucursal">
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div id="DivProveedorContacto" runat="server" visible="false" style="">
|
||
<label class="col-md-2"><b>Contacto:</b> </label>
|
||
<div class="col-md-4">
|
||
<asp:DropDownList ID="DdlProveedorContacto" CssClass="form-control input-sm select2me" Style="display: inline-block;" runat="server" AppendDataBoundItems="true" DataTextField="Nombre" DataValueField="CveProveedorContacto">
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<asp:UpdatePanel ID="UpDdlIVA" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<label class="col-md-2"><b>IVA A Facturar:</b> </label>
|
||
<div class="col-md-2">
|
||
<asp:DropDownList ID="DdlIVA" AutoPostBack="true" OnSelectedIndexChanged="DdlIVA_SelectedIndexChanged" CssClass="select2me" Style="width: 100%; display: inline-block;" runat="server" data-toggle="tooltip" data-placement="left" ToolTip="Si el producto aplica IVA, se tomara en cuenta el porcentaje seleccionado.">
|
||
<asp:ListItem Value="1.08">8%</asp:ListItem>
|
||
<asp:ListItem Value="1.16" Selected="True">16%</asp:ListItem>
|
||
<asp:ListItem Value="1">0%</asp:ListItem>
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<%--linea 7--%>
|
||
<div class="row">
|
||
<%--<label class="col-md-2">Guia:</label>--%>
|
||
<div class="col-md-4">
|
||
<asp:TextBox ID="TxtGuia" CssClass="form-control input-sm" runat="server" Style="width: 100%;" ValidationGroup="GrpGuardar" Visible="false" />
|
||
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<div class="col-md-3">
|
||
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Estatus </span>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript;" class="collapse" data-original-title="" title=""></a>
|
||
</div>
|
||
</div>
|
||
|
||
<asp:UpdatePanel ID="uppEstatus" runat="server" class="portlet-body form" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<table style="text-align: left">
|
||
<tr>
|
||
<td><b>Estatus:</b></td>
|
||
<td>
|
||
<asp:Label ID="LblMsgEstatus" runat="server" Text="" Font-Size="6pt" Font-Italic="True" ForeColor="Red"></asp:Label>
|
||
<asp:DropDownList ID="CboE" CssClass="form-control input-sm" runat="server" AutoPostBack="true" DataTextField="Estatus" DataValueField="CveEstatus" Width="104px"></asp:DropDownList>
|
||
</td>
|
||
</tr>
|
||
<tr runat="server" id="TrPendientes">
|
||
<td colspan="2"><strong><b>
|
||
<asp:LinkButton ID="lblPendientes" Style="font-weight: bold!important" runat="server" CssClass="label label-sm label-warning" Text=""></asp:LinkButton></b> </strong></td>
|
||
|
||
|
||
</tr>
|
||
<tr runat="server" id="TRCotizacion" visible="false">
|
||
<td><b>Cotización:</b></td>
|
||
<td>
|
||
<asp:HyperLink ID="HLCotizacion" Target="_blank" runat="server"> </asp:HyperLink>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><b>Vendedor:</b></td>
|
||
<td></td>
|
||
</tr>
|
||
<tr>
|
||
<td><b>F. Registro:</b></td>
|
||
<td>
|
||
<asp:TextBox ID="TxtFecha" ClientIDMode="Static" runat="server" CssClass="TextBoxAsLabel" Width="90px"></asp:TextBox>
|
||
<ajax:MaskedEditExtender ID="MEEFecha" runat="server" TargetControlID="TxtFecha" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender runat="server" ID="CEFecha" TargetControlID="TxtFecha" PopupButtonID="ImgFecha" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
<asp:RequiredFieldValidator ID="RFVFecha" runat="server" ControlToValidate="TxtFecha" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<asp:CompareValidator ID="CvFechaRegistro" runat="server" ControlToValidate="TxtFecha" Display="None" Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Estimada''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)."></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCFechaRegistro" runat="server" Enabled="True" HighlightCssClass="vco" TargetControlID="CvFechaRegistro" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</td>
|
||
</tr>
|
||
<tr align="left" id="trContabilizada" runat="server" visible="False">
|
||
<td><b>Contabilizada:</b> </td>
|
||
<td>
|
||
<asp:HyperLink ID="HplCompraContabilizada" Target="_blank" runat="server" Text="No"></asp:HyperLink>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><b>Capturó:</b></td>
|
||
<td>
|
||
<asp:Label ID="lblNombreUsuario" runat="server"></asp:Label></td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2">
|
||
<asp:CheckBox ID="ChkCotizacion" data-size="small" runat="server" Text="Requiere Cotización" AutoPostBack="true" /></td>
|
||
</tr>
|
||
<tr id="TrUsuarioAsignado" runat="server" visible="False">
|
||
<td colspan="2">
|
||
<asp:Label ID="LblUsuarioAsignado" runat="server" Text=""></asp:Label></td>
|
||
</tr>
|
||
<tr>
|
||
<td></td>
|
||
<td>
|
||
<asp:HiddenField ID="hdnCveSuperior" runat="server" Value="-1" />
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">CFDI Versión 3.3</span>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><b>Uso CFDI:</b></td>
|
||
<td>
|
||
<asp:DropDownList ID="DdlUsoCFDI" CssClass="form-control select2me" runat="server" Width="100%" AppendDataBoundItems="true" CausesValidation="true" DataTextField="UsoCFDIDescripcion" DataValueField="CveUsoCFDI">
|
||
<asp:ListItem Selected="True" Text="-" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:UpdatePanel ID="UpIEAnticipo" UpdateMode="Conditional" runat="server">
|
||
<ContentTemplate>
|
||
<div runat="server" visible="false" class="portlet light xspadding bordered" id="PorletIEAnticipo">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Anticipo</span>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript:;" class="collapse"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body ">
|
||
|
||
|
||
|
||
|
||
<asp:GridView ID="GvAnticpos" runat="server" GridLines="None" CssClass="table xspadding table-striped table-advance table-hover Widthall" AutoGenerateColumns="False" Width="250px">
|
||
<Columns>
|
||
|
||
<asp:HyperLinkField DataNavigateUrlFields="CveIE" HeaderText="Folio" DataNavigateUrlFormatString="~/Bancos/IE.aspx?CveIE={0}" DataTextField="Folio" Target="_blank" />
|
||
<asp:BoundField DataField="Importe" HeaderText="Importe" DataFormatString="{0:C}" > <ItemStyle HorizontalAlign="Right" /></asp:BoundField>
|
||
|
||
</Columns>
|
||
</asp:GridView>
|
||
|
||
|
||
<%-- <div class="row">
|
||
<div class="col-md-2 bold">Folio:</div>
|
||
<div class="col-md-4">
|
||
<asp:Literal Text="" ID="LtFolioIEAnticipo" runat="server" />
|
||
</div>
|
||
<div class="col-md-4">
|
||
<b>$ </b>
|
||
<asp:Literal Text="" ID="LtImporteIEAnticipo" runat="server" />
|
||
</div>
|
||
</div>--%>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
<%--PROMOCION--%>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:UpdatePanel ID="UpPromociones" UpdateMode="Conditional" runat="server">
|
||
<ContentTemplate>
|
||
<div runat="server" visible="false" class="portlet light xspadding bordered" id="PorletPromociones">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">PROMOCIONES</span>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript:;" class="collapse"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body ">
|
||
<div class="row">
|
||
<div class="col-md-4">
|
||
<asp:CheckBox Text="Promoción" onclick="if($('#C_ChkPromocion').prop('checked')){$('#C_TxtPromocion').show()}else{$('#C_TxtPromocion').hide()}" CssClass="md-checksd" TextAlign="Left" Font-Bold="true" ID="ChkPromocion" runat="server" />
|
||
</div>
|
||
<div class="col-md-8">
|
||
<asp:TextBox ID="TxtPromocion" CssClass="form-control input-sm" Style="display: none;" runat="server" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<asp:UpdatePanel ID="uppSeguimientoEstatus" class="col-md-3" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div runat="server" id="fsSeguimiento" class="portlet light xspadding bordered" visible="false">
|
||
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Historial de Seguimiento </span>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript;" class="collapse" data-original-title="" title=""></a>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="portlet-body form" style="height: 140px; overflow: auto;">
|
||
<asp:GridView ID="gvEstatus" runat="server" GridLines="None" CssClass="table xspadding table-striped table-advance table-hover Widthall" AutoGenerateColumns="False" Width="100%">
|
||
<Columns>
|
||
<asp:BoundField DataField="Estatus" HeaderText="Estatus" ControlStyle-Width="30%"></asp:BoundField>
|
||
<asp:TemplateField HeaderText="Usuario">
|
||
<ItemTemplate>
|
||
<label class="truncate" style="width: 100px;" title="<%# Eval("Usuario") %>">
|
||
<asp:Literal ID="LblUsuario" runat="server" Text='<%# Eval("Usuario")%>'></asp:Literal>
|
||
</label>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="50%" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Fecha">
|
||
<ItemTemplate>
|
||
<div class="truncate" style="width: 70px;" title="<%# Eval("Fecha") %>">
|
||
<asp:Literal ID="LblFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}")%>'></asp:Literal>
|
||
</div>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="20%" />
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<div style="z-index: 5; position: relative;">
|
||
<div class="alert alert-danger alert-dismissable" runat="server" id="DivEventoUrgente" visible="false" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||
<strong style="font-size: 20px; margin-right: 25px;">Atención! </strong>
|
||
<asp:HyperLink ID="hplEventoUrgente" NavigateUrl="#pie_de_pagina" runat="server"> Ver Bitácora</asp:HyperLink>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:UpdatePanel ID="UpVendedor" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div runat="server" id="DivVendedor" visible="false" class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">DATOS DE VENTA</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript:;" class="collapse"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<div class="row">
|
||
<div class="col-md-1" style="max-width: 60px;">
|
||
Cliente:
|
||
</div>
|
||
<div class="col-md-2">
|
||
<ADS:Dropdownlost ID="Ddlcliente" Width="100%" CssStyle="width: 100%;" UsaWebService="true" AppendDataBoundItems="true" AutoPostBack="true" CssClass="select2me" data-metodo="getcliente" runat="server" DataTextField="NombreComercial" DataValueField="CveCliente"></ADS:Dropdownlost>
|
||
<%-- <asp:RangeValidator ID="RVCliente" CssClass="form-control" runat="server" ControlToValidate="Ddlcliente" Display="None" Type="Integer" MinimumValue="1" MaximumValue="2147483647" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cliente''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RangeValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCECliente" runat="server" HighlightCssClass="vco" TargetControlID="RVCliente" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||
</div>
|
||
<div class="col-md-1" style="max-width: 75px;">
|
||
Vendedor:
|
||
|
||
</div>
|
||
<div class="col-md-2">
|
||
<div style="width: 90% !important; float: left;">
|
||
<asp:DropDownList ID="DdlVendedor" CssClass="select2me" AppendDataBoundItems="true" runat="server" DataTextField="Vendedor" DataValueField="CveVendedor" Width="100%"></asp:DropDownList>
|
||
</div>
|
||
<div style="width: 10% !important; float: right; padding-left: 5px;">
|
||
<asp:ImageButton ID="ImgCambiaClienteVendedor" data-toggle="tooltip" title="Actualizar Cliente/Vendedor" Visible="false" ImageUrl="/Imagenes/accept.png" runat="server" />
|
||
</div>
|
||
</div>
|
||
<div id="DivEntregaDirecta" runat="server" visible="true" class="col-md-2" style="max-width: 145px;">
|
||
<asp:CheckBox ID="ChkEntregaDirecta" CssClass="md-checksd" AutoPostBack="true" OnCheckedChanged="ChkEntregaDirecta_CheckedChanged" Text="Entrega Directa" TextAlign="Right" runat="server" Checked="false" />
|
||
</div>
|
||
<div runat="server" id="DivLugarEntregaDirecta1" visible="false" class="col-md-2" style="max-width: 120px;">
|
||
Lugar Entrega:
|
||
|
||
</div>
|
||
<div runat="server" id="DivLugarEntregaDirecta2" visible="false" class="col-md-2">
|
||
<asp:DropDownList ID="DdlDireccionEnvio" CssClass="select2me" runat="server" Width="300px" Visible="false" DataTextField="DireccionEnvio" DataValueField="CveDireccionEnvio"></asp:DropDownList>
|
||
<asp:TextBox Text="" ID="TxtLugarEntregaDirecta" CssClass="form-control input-sm" runat="server" />
|
||
</div>
|
||
<div runat="server" id="DivAddDireccionEnvio" visible="false" style="text-align: right" class="col-md-2">
|
||
<asp:LinkButton ID="BtnAgregarDireccionModal" runat="server" data-toggle="tooltip" data-placement="right" title="Agregar dirección de envio." CssClass="btn btn-circle btn-default" Text="<i class='fa fa-plus'></i> Agregar"></asp:LinkButton>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
<asp:UpdatePanel ID="UPPTab" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<ajax:TabContainer ID="Tab" runat="server" ActiveTabIndex="0" Width="100%">
|
||
|
||
<ajax:TabPanel HeaderText="Conceptos" runat="server" ID="TabC" Visible="true">
|
||
<ContentTemplate>
|
||
|
||
|
||
<asp:UpdatePanel runat="server" ID="UpPresupuestosAC" UpdateMode="Conditional" Visible="False">
|
||
<ContentTemplate>
|
||
<div class="portlet xspadding light bordered" clientidmode="Static" id="DivPresupuestoEgresosGeneral">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Presupuesto Egresos General</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript:;" class="collapse"></a>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body form">
|
||
<div class="row">
|
||
<div class=" col-md-3">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList runat="server" CssClass="form-control input-sm select2me" Width="100%" ID="DdlACGeneral5" AutoPostBack="true" DataTextField="CodigoClasificacion" DataValueField="CveClasificacion" OnSelectedIndexChanged="CambiaACGeneral"></asp:DropDownList>
|
||
<label>Clasificación </label>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
<div class=" col-md-2">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList runat="server" CssClass="form-control input-sm select2me" Width="100%" ID="DdlACGeneral1" AutoPostBack="true" DataTextField="ProgramaOperativo" DataValueField="CveProgramaOperativo" OnSelectedIndexChanged="CambiaACGeneral"></asp:DropDownList>
|
||
<label class="truncate">Programa Operativo </label>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
<div class=" col-md-2">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList runat="server" CssClass="form-control input-sm select2me" Width="100%" ID="DdlACGeneral2" AutoPostBack="true" DataTextField="UnidadAdministrativa" DataValueField="CveUnidadAdministrativa" OnSelectedIndexChanged="CambiaACGeneral"></asp:DropDownList>
|
||
|
||
<label class="truncate">Unidad Administrativa</label>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
<div class=" col-md-2">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList runat="server" CssClass="form-control input-sm select2me" Width="100%" ID="DdlACGeneral3" AutoPostBack="true" DataTextField="FuenteFinanciamiento" DataValueField="CveFuenteFinanciamiento" OnSelectedIndexChanged="CambiaACGeneral"></asp:DropDownList>
|
||
|
||
<label class="truncate">Fuente Financiamiento</label>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
<div class=" col-md-2">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList runat="server" CssClass="form-control input-sm select2me" Width="100%" ID="DdlACGeneral4" AutoPostBack="true" DataTextField="TipoGasto" DataValueField="CveTipoGasto" OnSelectedIndexChanged="CambiaACGeneral"></asp:DropDownList>
|
||
<label class="truncate">Tipo Gasto</label>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
<div class=" col-md-1">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<%--<i style="top: 6px; font-size: 14px; right: 0px;">$</i>--%>
|
||
<asp:Label runat="server" Style="font-size: 12px; right: 0px; margin-top: 20px;" CssClass="form-control pull-right" ID="LbACGeneralSaldo"></asp:Label>
|
||
<label>Saldo </label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<div class="pull-right" style="width: 150px;">
|
||
<asp:CheckBox ID="ChkACGeneral" CssClass="md-checksd" Text="Aplicar a todo" runat="server" Checked="true" />
|
||
</div>
|
||
<br />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div style="float: right; margin-bottom: 5px;">
|
||
<asp:Button Text="Ver Presupuesto Egresos" ID="BtnVerPE" ClientIDMode="Static" Visible="false" CssClass="btn btn-success" runat="server" OnClientClick="$get('DivPresupuestoEgresosGeneral').style.display = ''; $get('BtnVerPE').style.display = 'none'; return false;" />
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<asp:UpdatePanel ID="UPPDetalle" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<%-- style="overflow-x: auto; min-width: 980px; width: 100%;" --%>
|
||
<div id="DivConceptosContenido" runat="server">
|
||
<asp:HiddenField ID="HdnWidth" Value="0" runat="server" ClientIDMode="Static" />
|
||
|
||
<table cellspacing="0" rules="none " class="table table-striped GVDHeader Widthall" border="0" style="border-collapse: collapse;">
|
||
<tbody>
|
||
<tr>
|
||
<th scope="col">Cantidad</th>
|
||
<th scope="col" id="ThComercializadora" runat="server" visible="false">Tipo OC
|
||
|
||
<br />
|
||
|
||
</th>
|
||
<th>Clasificación (<asp:HyperLink ID="HplAddClasificacion" NavigateUrl="/Ventas/CatClasificaciones.aspx" runat="server">+</asp:HyperLink>)
|
||
|
||
|
||
Producto o Servicio(<asp:HyperLink ID="HplPS" NavigateUrl="/Ventas/CatPS.aspx" runat="server">+</asp:HyperLink>)</th>
|
||
<th scope="col">Unidad</th>
|
||
<th scope="col">Observación</th>
|
||
<th scope="col">
|
||
<asp:Label ID="TtituloProyecto" Text="" runat="server" />
|
||
<asp:Label ID="TituloSubProyecto" Text="" runat="server" />
|
||
</th>
|
||
<th scope="col" id="ThActivoFijo" runat="server">Activo Fijo</th>
|
||
<th runat="server" visible="false" id="CabeceraPOA" scope="col">POA</th>
|
||
<th scope="col">P.U.</th>
|
||
<th scope="col" id="THDescuento" visible="false" runat="server">Desc.</th>
|
||
<th scope="col">Total</th>
|
||
<th scope="col">Comandos</th>
|
||
<th scope="col">
|
||
<asp:Label ID="lblTipoPadreHijo" runat="server" Visible="false"></asp:Label></th>
|
||
<th scope="col">
|
||
<asp:Label Text="Compra" ID="LblCompra" runat="server" Visible="false"></asp:Label></th>
|
||
</tr>
|
||
<tr id="trAddDetalle" runat="server">
|
||
<td>
|
||
<asp:TextBox ID="TxtCant" runat="server" CssClass=" form-control input-sm " Width="46px" Height="24px" ClientIDMode="Static"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumerosCant" runat="server" TargetControlID="TxtCant" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:CustomValidator ID="CVCant" runat="server" ClientValidationFunction="ValidaDecimal6digitsEmpty" ControlToValidate="TxtCant" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> no tiene el formato correcto. Por favor corrija e intente de nuevo (Formato numérico con máximo seis decimales)" ValidateEmptyText="True" ValidationGroup="GrpDetalleGuardar"></asp:CustomValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEDecCantidad" runat="server" HighlightCssClass="vco" TargetControlID="CVCant" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
|
||
<asp:RequiredFieldValidator ID="RFVCant" runat="server" ControlToValidate="TxtCant" 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="GrpDetalleGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCECant" runat="server" HighlightCssClass="vco" TargetControlID="RFVCant" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</td>
|
||
<td>
|
||
<asp:DropDownList ID="DdlClasificacion" runat="server" CssClass=" form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Style="width: 100%; max-width: 600px;">
|
||
<asp:ListItem Selected="True" Text="Seleccione la Clasificación (Todas)" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
|
||
<ADS:Dropdownlost runat="server" ID="DdlP2" CssClassDdl="select2me" CssStyle="width: 100%;" DataTextField="PSCodigo" DataValueField="CvePS" data-estatus="1" />
|
||
</td>
|
||
<td>
|
||
<asp:DropDownList ID="CboUnidadMedida" CssClass="form-control input-sm " runat="server" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" Style="width: 100%; max-width: 150px;"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVUnidadMedida" runat="server" ControlToValidate="CboUnidadMedida" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Unidad de Medida''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDetalleGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEUnidadMedida" runat="server" HighlightCssClass="vco" TargetControlID="RFVUnidadMedida" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
|
||
<asp:TextBox ID="AddUnidadMedida" runat="server" CssClass="btn btn-primary btn-sm" Text="+" Visible="false" Style="width: 100%; max-width: 150px; margin-top: 2px;"></asp:TextBox>
|
||
</td>
|
||
<td>
|
||
<asp:TextBox ID="TxtObsPS" CssClass=" form-control input-sm txtobs" runat="server" Rows="2" TextMode="MultiLine" MaxLength="750"></asp:TextBox></td>
|
||
<td>
|
||
<asp:DropDownList ID="DdlProyecto" CssClass=" form-control input-sm select2me" runat="server" AppendDataBoundItems="true" Style="width: 100%; max-width: 600px;" AutoPostBack="true" DataTextField="Proyecto" DataValueField="CveProyecto">
|
||
</asp:DropDownList>
|
||
<asp:DropDownList ID="DdlSubProyecto" CssClass=" form-control input-sm select2me" runat="server" OnSelectedIndexChanged="DdlSubProyecto_SelectedIndexChanged" DataTextField="SubProyecto" Style="width: 100%; max-width: 600px;" DataValueField="CveSubProyecto" ValidationGroup="GrpDetalleGuardar">
|
||
<asp:ListItem Selected="true" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<asp:DropDownList ID="DdlSucursal" Style="display: none;" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto">
|
||
<asp:ListItem Selected="true" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<asp:RangeValidator ID="RVSubProyecto" runat="server" ControlToValidate="DdlSubProyecto" Display="None" Type="Integer" MinimumValue="1" MaximumValue="2147483647" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''SubProyecto''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpDetalleGuardar"></asp:RangeValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCORVSubProyecto" runat="server" HighlightCssClass="vco" TargetControlID="RVSubProyecto" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<asp:RequiredFieldValidator ID="RFVSubProyecto" runat="server" InitialValue="-1" ControlToValidate="DdlSubProyecto" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''SubProyecto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDetalleGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCORFVSubProyecto" runat="server" HighlightCssClass="vco" TargetControlID="RFVSubProyecto" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
|
||
</td>
|
||
<td id="TdActivoFijo" runat="server">
|
||
<asp:UpdatePanel ID="UPPNumEcon" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:Button Text="VinculaAF" Style="display: none;" OnClick="BtnVinculaAF_Click" ClientIDMode="Static" ID="BtnVinculaAF" runat="server" />
|
||
<asp:HiddenField ID="HdnCveActivoFijo" Value="-1" runat="server" ClientIDMode="Static" />
|
||
<asp:HiddenField ID="HdnCodigoAF" Value="-1" runat="server" ClientIDMode="Static" />
|
||
|
||
<asp:TextBox ID="LblCodigo" runat="server" Text="" onkeyup="EnterAF(event);" onblur="AFBlur();" ClientIDMode="Static" Width="40px" ValidationGroup="GrpDetalleGuardar"></asp:TextBox>
|
||
<asp:RequiredFieldValidator Enabled="false" ID="RFVcodigo" runat="server" ControlToValidate="LblCodigo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Activo Fijo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDetalleGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEcodigo" runat="server" HighlightCssClass="vco" TargetControlID="RFVcodigo" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<asp:HyperLink ID="HplMaq" runat="server" ClientIDMode="Static"><img alt="Activo Fijo" width="20px" height="20px" src="/Imagenes/Maquinaria.jpg" style="cursor:pointer;" onclick="$('#ajaxidmodal #myFrame').css({ width: 900 }); $('#ajaxidmodal ').css({ width: 900 });AbrirVentana('/AF/PopUpBuscarAF.aspx?OPCION=OC',1000,600,'N');"/></asp:HyperLink>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</td>
|
||
<td style="text-align: center;">
|
||
<asp:UpdatePanel ID="UpPoaClave" Visible="false" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<b>#<asp:Label ID="LblCvePOA" runat="server" Text="" ClientIDMode="Static" Width="40px"></asp:Label></b>
|
||
<asp:HiddenField ID="HdnCveCuentaPorEjercer" runat="server" ClientIDMode="Static" />
|
||
<asp:HiddenField ID="HdnCveCuentaComprometido" runat="server" ClientIDMode="Static" />
|
||
<img alt="POA" width="15px" height="15px" src="/Imagenes/Money_add.png" style="cursor: pointer;" onclick="$get('divPOA').style.display='';PosicionaObjeto('HplMaq','divPOA');" />
|
||
</td>
|
||
|
||
<td>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
<asp:TextBox ID="txtPrecioUnitario" ClientIDMode="Static" runat="server" Width="55px" Height="24px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumerosPU" runat="server" TargetControlID="txtPrecioUnitario" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:CustomValidator ID="CVPU" runat="server" ClientValidationFunction="ValidaDecimal6digitsEmpty" ControlToValidate="txtPrecioUnitario" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''P.U.''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico con máximo seis decimales)." ValidateEmptyText="True" ValidationGroup="GrpDetalleGuardar"></asp:CustomValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOPU" runat="server" HighlightCssClass="vco" TargetControlID="CVPU" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<asp:RequiredFieldValidator ID="RfvPrecioUnitario" runat="server" ControlToValidate="txtPrecioUnitario" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''P.U.(precio unitario)''</b> es necesario, por favor ingréselo." ValidationGroup="GrpDetalleGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VcePrecioUnitario" runat="server" HighlightCssClass="vco" TargetControlID="RfvPrecioUnitario" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<br />
|
||
<asp:Label ID="LblUltimoCosto" Font-Italic="true" runat="server" Visible="false" ToolTip="Último Costo" Font-Size="Smaller"></asp:Label>
|
||
</td>
|
||
<td id="TDDescuento" runat="server" visible="false">
|
||
<asp:TextBox runat="server" ID="TxtDescuentoAdd" ClientIDMode="Static" CssClass="alineanum" Width="55px" Height="24px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumerosDescuento" runat="server" TargetControlID="TxtDescuentoAdd" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:CustomValidator ID="CVDescuento" runat="server" ClientValidationFunction="ValidaDecimal6digitsEmpty" ControlToValidate="TxtDescuentoAdd" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descuento''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico con máximo seis decimales)." ValidateEmptyText="True" ValidationGroup="GrpDetalleGuardar"></asp:CustomValidator>
|
||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="CVDescuento" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
|
||
</td>
|
||
<td style="text-align: right; padding-right: 7px;">
|
||
<asp:TextBox runat="server" ID="Total" ClientIDMode="Static" CssClass="alineanum" Width="55px" Height="24px" Enabled="false"></asp:TextBox>
|
||
</td>
|
||
<td style="text-align: center;">
|
||
<asp:LinkButton ID="LbAgregar" ClientIDMode="Static" runat="server" CssClass="btn btn-default" ValidationGroup="GrpDetalleGuardar"><i class="fa fa-plus"></i> Agregar</asp:LinkButton>
|
||
<asp:LinkButton ID="LbVerInventario" ClientIDMode="Static" runat="server" CssClass="btn btn-circle btn-sm purple" Text="<i class='icon-magnifier'></i>"></asp:LinkButton>
|
||
</td>
|
||
<td></td>
|
||
<td></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<%--ActivoFijo--%>
|
||
<asp:Button ID="BtnVinculaAFEdit" ClientIDMode="Static" OnClick="BtnVinculaAFEdit_Click" Style="display: none;" runat="server" />
|
||
<asp:HiddenField runat="server" ID="HdnCodAFEdit" Value="$('#DivConceptosContenido').width()" ClientIDMode="Static" />
|
||
|
||
|
||
|
||
<asp:GridView ID="GvD" runat="server" AutoGenerateColumns="False" GridLines=" none" BorderColor="Transparent" CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn"
|
||
DataKeyNames="SubProyecto, Cantidad, Importe, Descuento, CveOrdenCompra, CveUnidadMedida, CvePresupuestoEgreso, PS,CveClasificacion, CvePS, CveSubProyecto, CveActivoFijo, CodigoAF, TipoDato, Observacion, CveOrdenCompraDetalle,CveCompra,IVAPorcentaje,RetIVAPorcentaje,RetISRPorcentaje,IEPSPSPorcentaje,IEPSPSIVAPorcentaje" data-tableheader=".GVDHeader" ShowHeader="false" data-rows="0">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtCantEdit" runat="server" Text='<%# Eval("Cantidad", "{0:#,###.######}")%>' Width="45px" Height="24px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumerosCantEdit" runat="server" TargetControlID="TxtCantEdit" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:CustomValidator ID="CVCantEdit" runat="server" ClientValidationFunction="ValidaDecimal6digitsEmpty" ControlToValidate="TxtCantEdit" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico con máximo seis decimales)." ValidateEmptyText="True" ValidationGroup="grpEditar"></asp:CustomValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEDecCantidadEdit" runat="server" HighlightCssClass="vco" TargetControlID="CVCantEdit" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
|
||
<asp:RequiredFieldValidator ID="RFVCantEdit" runat="server" ControlToValidate="TxtCantEdit" 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="grpEditar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCECant" runat="server" HighlightCssClass="vco" TargetControlID="RFVCantEdit" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:Label ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:#,###.######}")%>' Style="width: 100%"></asp:Label>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<span style="border-bottom: 1px solid gray;">
|
||
<asp:Label ID="LblClasificacion" runat="server" Text='<%# Eval("Clasificacion") %>'></asp:Label>
|
||
</span>
|
||
<br />
|
||
<asp:Label ID="LblPS" runat="server" Text='<%# Eval("PS") %>'></asp:Label>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:DropDownList ID="DdlClasificacion" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" CssClass="form-control input-sm select2me" Style="width: 100%; max-width: 600px;" OnSelectedIndexChanged="DdlClasificacion_SelectedIndexChanged1">
|
||
<asp:ListItem Selected="True" Text="Seleccione la Clasificación (Todas)" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<asp:DropDownList ID="DdlPS" runat="server" AppendDataBoundItems="true" AutoPostBack="true" CssClass=" form-control input-sm select2me" DataTextField="PSCodigo" DataValueField="CvePS" Style="width: 100%; max-width: 600px;" ValidationGroup="grpEditar" OnSelectedIndexChanged="DdlPS_SelectedIndexChanged1">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
<asp:ListItem Text="*** Actualizar listado de Productos o Servicios ***" Value="-2"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVPSEdit" runat="server" ControlToValidate="DdlPS" InitialValue="-1" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Producto o Servicio''</b> es necesario, por favor seleccione uno." ValidationGroup="grpEditar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOPSEdit" runat="server" HighlightCssClass="vco" TargetControlID="RFVPSEdit" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</EditItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<EditItemTemplate>
|
||
<%--DataTextField--%>
|
||
<asp:DropDownList ID="CboUnidadMedidaEdit" runat="server" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" Style="width: 100%; max-width: 150px;"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVUnidadMedidaEdit" runat="server" InitialValue="-1" ControlToValidate="CboUnidadMedidaEdit" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Unidad de Medida''</b> es necesario, por favor ingréselo." ValidationGroup="grpEditar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEUnidadMedidaEdit" runat="server" HighlightCssClass="vco" TargetControlID="RFVUnidadMedidaEdit" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LA" runat="server" Text='<%# Bind("UM") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlObsPS" runat="server" Text='<%# Eval("Observacion")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtObsPS" CssClass="txtobs" runat="server" Rows="2" Text='<%# Eval("Observacion") %>' TextMode="MultiLine" MaxLength="750" Style=""></asp:TextBox>
|
||
</EditItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlSubProyecto" runat="server" Text='<%# String.Format("{0}<br/>{1}", Eval("Proyecto"), Eval("SubProyecto")) %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:DropDownList ID="DdlProyectoEdit" runat="server" Style="width: 100%" AppendDataBoundItems="true" AutoPostBack="true" CssClass=" form-control input-sm select2me" DataTextField="Proyecto" DataValueField="CveProyecto" ValidationGroup="grpEditar" OnSelectedIndexChanged="DdlProyectoEdit_SelectedIndexChanged">
|
||
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<asp:DropDownList ID="DdlSubProyectoEdit" Style="width: 100%" runat="server" AppendDataBoundItems="true" CssClass=" form-control input-sm select2me" DataTextField="SubProyecto" DataValueField="CveSubProyecto" ValidationGroup="grpEditar">
|
||
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<asp:RequiredFieldValidator ValidationGroup="grpEditar" ID="RFVSubProyecto" runat="server" InitialValue="-1" ControlToValidate="DdlSubProyectoEdit" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''SubProyecto''</b> es necesario, por favor ingréselo."></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCORFVSubProyecto" runat="server" HighlightCssClass="vco" TargetControlID="RFVSubProyecto" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</EditItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<EditItemTemplate>
|
||
<asp:HiddenField ID="HdnCveActivoFijo" Value="-1" runat="server" />
|
||
<asp:HiddenField ID="HdnCodigoAF" Value="-1" runat="server" />
|
||
|
||
<asp:TextBox ID="LblEditCodigo" runat="server" Text='<%# Bind("CodigoAF")%>' Width="40px"></asp:TextBox>
|
||
<asp:HyperLink ID="HplMaq" runat="server" ClientIDMode="Static">
|
||
<%--<img runat="server" id="ImgAF" alt="Activo Fijo" width="20" height="20" src="/Imagenes/Maquinaria.jpg" style="cursor:pointer;"/>--%>
|
||
<asp:Image runat="server" ID="ImgAF" AlternateText="Activo Fijo" Width="20" Height="20" ImageUrl="/Imagenes/Maquinaria.jpg" Style="cursor: pointer;" />
|
||
</asp:HyperLink>
|
||
<%--<asp:HyperLink ID="HplMaq" runat="server" ClientIDMode="Static"><img alt="Maquinaria" width="20px" height="20px" src="/Imagenes/Maquinaria.jpg" style="cursor:pointer;" onclick="$get('divActivosFijos').style.display='';PosicionaObjeto('HplMaq','divActivosFijos');"/></asp:HyperLink>--%>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LitMaq" runat="server" Text='<%# Bind("CodigoAF")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%-- <asp:TemplateField Visible="False">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="CvePOA2" ClientIDMode="Static" runat="server" CssClass="Texto" Text='<%# Bind("CvePresupuestoEgreso")%>' ToolTip="Error al cargar los datos del Programa Operativo"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="45px" />
|
||
</asp:TemplateField>--%>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Label ToolTip='<%# If(Not IsDBNull(Eval("Importe")) AndAlso CDbl(Eval("Importe").ToString) <> -1, Eval("Importe"), "")%>' ID="LtlImporte" runat="server" Text='<%# If(Not IsDBNull(Eval("Importe")) AndAlso CDbl(Eval("Importe").ToString) <> -1, Eval("Importe", "{0:#,##0.00####}"), "")%>'></asp:Label>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:Literal ID="LtlImporte" runat="server" Text='<%# If(Not IsDBNull(Eval("Importe")) AndAlso CDbl(Eval("Importe").ToString) <> -1, Eval("Importe", "{0:#,##0.00####}"), "")%>' Visible="false"></asp:Literal>
|
||
<asp:TextBox ID="TxtImporteEdit" runat="server" CausesValidation="true" ClientIDMode="Static" MaxLength="12" Text='<%# If(Not IsDBNull(Eval("Importe")) AndAlso CDbl(Eval("Importe").ToString) <> -1, Eval("Importe", "{0:#,##0.00####}"), "")%>' ValidationGroup="grpEditar" Width="55px" Height="24px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumerosPUEdit" runat="server" TargetControlID="TxtImporteEdit" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:CustomValidator ID="CVPUEdit" runat="server" ClientValidationFunction="ValidaDecimal6digitsEmpty" ControlToValidate="TxtImporteEdit" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''P.U.''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico con máximo seis decimales)." ValidateEmptyText="True" ValidationGroup="grpEditar"></asp:CustomValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOPUEdit" runat="server" HighlightCssClass="vco" TargetControlID="CVPUEdit" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</EditItemTemplate>
|
||
<ItemStyle HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField Visible="false">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlDescuento" runat="server" Text='<%# Eval("Descuento", "{0:N2}")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtDescuentoEdit" runat="server" onkeyup="ValidaDescuentoDetalle(this);" CausesValidation="true" MaxLength="12" Text='<%# Eval("Descuento", "{0:#,##0.00####}")%>' ValidationGroup="grpEditar" Width="55px" Height="24px"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumerosDescuentoEdit" runat="server" TargetControlID="TxtDescuentoEdit" FilterType="Custom, Numbers" ValidChars="." />
|
||
<asp:CustomValidator ID="CVDescuentoEdit" runat="server" ClientValidationFunction="ValidaDecimal6digitsEmpty" ControlToValidate="TxtDescuentoEdit" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descuento''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico con máximo seis decimales)." ValidateEmptyText="True" ValidationGroup="grpEditar"></asp:CustomValidator>
|
||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1Edit" runat="server" HighlightCssClass="vco" TargetControlID="CVDescuentoEdit" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</EditItemTemplate>
|
||
<ItemStyle HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlTotal" runat="server" Text='<%# If(Not IsDBNull(Eval("Importe")) AndAlso CDbl(Eval("Importe").ToString) <> -1, Eval("Total", "{0:#,##0.00####}"), "") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
<ItemStyle HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<EditItemTemplate>
|
||
<%--<asp:ImageButton ID="ImgUpdate" runat="server" CausesValidation="True" CommandName="Update" ImageUrl="/Imagenes/Btn_Update.png" Text="Update" /> <asp:ImageButton ID="ImgCancel" runat="server" CausesValidation="False" CommandName="Cancel" ImageUrl="/Imagenes/Btn_Cancel.png" Text="Cancel" />--%>
|
||
<div>
|
||
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="false" CommandName="Update"
|
||
ValidationGroup="grpEditar" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" />
|
||
<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>
|
||
<div>
|
||
<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>" />
|
||
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete"
|
||
CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="confirmar" data-btn-ok-label="si" />
|
||
</div>
|
||
<%-- <asp:ImageButton ID="ImgEdit" runat="server" CausesValidation="False" CommandName="Edit" ImageUrl="/Imagenes/Btn_Edit.png" Text="Edit" />
|
||
<asp:ImageButton ID="ImgDelete" runat="server" CausesValidation="False" OnClientClick="return confirm('Está seguro que desea eliminar el movimiento?')" CommandName="Delete" ImageUrl="/Imagenes/Btn_Delete.png" Text="Edit" />--%>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField Visible="false">
|
||
<ItemTemplate>
|
||
<%--<asp:HyperLink ID="HLLiga" runat="server" Text="" CssClass="Texto" />--%>
|
||
<asp:Literal ID="LtlLiga" runat="server"></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField Visible="false">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlCompra" runat="server" Visible='<%# Eval("CveCompra").ToString <> "" %>'></asp:Literal>
|
||
<asp:LinkButton OnClick="LnkCompra_Click" ID="LnkCompra" Visible="false" runat="server"> Ver</asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Clasificación" Visible="False" ShowHeader="true">
|
||
<ItemTemplate>
|
||
<asp:DropDownList runat="server" ID="DdlAC5" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="CodigoClasificacion" DataValueField="CveClasificacion" Width="150px" OnSelectedIndexChanged="CompruebaSaldoAC"></asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Programa Operativo" Visible="False" ShowHeader="true">
|
||
<ItemTemplate>
|
||
<asp:HiddenField runat="server" ID="HdnCvePresupuestoEgreso" Value="-1" />
|
||
<asp:HiddenField runat="server" ID="HdnIdCuentaComprometido" Value="-1" />
|
||
<asp:HiddenField runat="server" ID="HdnIdCuentaPorEjercer" Value="-1" />
|
||
<asp:HiddenField runat="server" ID="HdnIdCuentaDevengado" Value="-1" />
|
||
<asp:HiddenField runat="server" ID="HdnIdCuentaMatriz" Value="-1" />
|
||
<asp:DropDownList runat="server" ID="DdlAC1" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="ProgramaOperativo" DataValueField="CveProgramaOperativo" Width="150px" OnSelectedIndexChanged="CompruebaSaldoAC"></asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Unidad Administrativa" Visible="False" ShowHeader="true">
|
||
<ItemTemplate>
|
||
<asp:DropDownList runat="server" ID="DdlAC2" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="UnidadAdministrativa" DataValueField="CveUnidadAdministrativa" Width="150px" OnSelectedIndexChanged="CompruebaSaldoAC"></asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Fuente Financiamiento" Visible="False" ShowHeader="true">
|
||
<ItemTemplate>
|
||
<asp:DropDownList runat="server" ID="DdlAC3" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="FuenteFinanciamiento" DataValueField="CveFuenteFinanciamiento" Width="150px" OnSelectedIndexChanged="CompruebaSaldoAC"></asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Tipo Gasto" Visible="False" ShowHeader="true">
|
||
<ItemTemplate>
|
||
<asp:DropDownList runat="server" ID="DdlAC4" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="TipoGasto" DataValueField="CveTipoGasto" Width="100px" OnSelectedIndexChanged="CompruebaSaldoAC"></asp:DropDownList>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%--<asp:TemplateField></asp:TemplateField>
|
||
<asp:TemplateField></asp:TemplateField>--%>
|
||
</Columns>
|
||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||
<%--<RowStyle CssClass="Texto" />
|
||
<AlternatingRowStyle CssClass="TextoAlterno" />--%>
|
||
</asp:GridView>
|
||
|
||
<asp:UpdatePanel ID="UpIvas" runat="server" class="text-right" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="row" id="RowCotizaciones" runat="server" visible="false">
|
||
<div class="col-md-12 ">
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<%--<i class="fa fa-users font-green"></i>--%>
|
||
<span class="caption-subject bold uppercase">Cotizaciones Rapidas</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:LinkButton ID="LnkAddCotEva" CssClass="caption-subject bold" 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:LinkButton><br />
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<asp:UpdatePanel ID="UpBitacoraEva" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvBitacoraEva" runat="server" AutoGenerateColumns="False" EmptyDataText="No se han capturado cotizaciones rapidas" CssClass="table table-striped table-hover Widthall" GridLines="None">
|
||
<Columns>
|
||
<asp:BoundField HeaderText="Descripción" DataField="Descripcion" ItemStyle-HorizontalAlign="Left" />
|
||
<asp:BoundField HeaderText="Fecha" DataField="FechaIng" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="175px" ItemStyle-HorizontalAlign="Center" />
|
||
<asp:BoundField HeaderText="Usuario" DataField="Usuario" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Center" />
|
||
<asp:TemplateField HeaderText="Archivo" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="50px">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LinkArchivo" Visible="false" runat="server" Text="<i class='fa fa-download' aria-hidden='true'></i>" OnClick="DownloadFile"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div style="display: inline-block;">
|
||
<table border="0" rules="none" class="TextTab well ">
|
||
<tr class="text-right">
|
||
<td width="120px"><b>Subtotal:</b></td>
|
||
<td width="100px" style="text-align: right;">
|
||
<asp:Label ID="LblSubTotal" runat="server" ClientIDMode="Static" BorderStyle="None" Style="text-align: right;" Text="0.00"></asp:Label>
|
||
</td>
|
||
<td width="80px"></td>
|
||
</tr>
|
||
<tr runat="server" id="TrDescuento" class="text-right" visible="false">
|
||
<td><b>Descuento:</b></td>
|
||
<td>
|
||
<asp:TextBox ID="TxtDescuento" ClientIDMode="Static" onkeyup="FormatoMoneda(this);ValidaDescuento();" onblur="AplicaDescuentoGeneral();" Width="100px" Font-Size="10.5" BackColor="#f7f7f7" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
||
<asp:Button Text="" Style="display: none" ClientIDMode="Static" ID="BtnLimpiarDescuento" OnClick="BtnLimpiarDescuento_Click" runat="server" />
|
||
<asp:Button Text="" Style="display: none" ClientIDMode="Static" ID="BtnAplicarDescuento" OnClick="BtnAplicarDescuento_Click" runat="server" />
|
||
<asp:HiddenField ClientIDMode="Static" Value="0" runat="server" ID="HdnDescuento" />
|
||
</td>
|
||
</tr>
|
||
<tr class="text-right">
|
||
<td width="120px"><b>Subtotal 2:</b></td>
|
||
<td width="100px" style="text-align: right;">
|
||
<asp:Label ID="LblSubTotal2" runat="server" ClientIDMode="Static" BorderStyle="None" Style="text-align: right;" Text="0.00"></asp:Label>
|
||
</td>
|
||
<td width="80px"></td>
|
||
</tr>
|
||
<tr align="right">
|
||
<td><b>IVA:</b></td>
|
||
<td style="text-align: right;">
|
||
<asp:TextBox ID="TxtIVA" ClientIDMode="Static" Visible="false" onkeyup="FormatoMoneda(this);SumaTotal();" onblur="$('#BtnAplicarIVA').click();" Width="100px" Font-Size="10.5" BackColor="#eeeeee" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
||
<asp:Label ID="LblIVA" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00"></asp:Label>
|
||
<asp:Button Text="" Style="display: none" ClientIDMode="Static" ID="BtnAplicarIVA" OnClick="BtnAplicarIVA_Click" runat="server" />
|
||
</td>
|
||
<td align="left">
|
||
<asp:ImageButton ID="ImgAplicaRetenciones" OnClick="ImgAplicaRetenciones_Click" data-toggle="tooltip" title="Aplica Retenciones/IEPS" ImageUrl="/Metronic/assets/global/img/portlet-collapse-icon.png" Visible="false" runat="server" />
|
||
</td>
|
||
</tr>
|
||
<tr runat="server" id="TrIEPS" class="text-right" visible="false">
|
||
<td><b>IEPS:</b></td>
|
||
<td>
|
||
<asp:TextBox ID="TxtIEPS" Enabled="false" ClientIDMode="Static" onkeyup="FormatoMoneda(this);SumaTotal();" Width="100px" Font-Size="10.5" BackColor="#eeeeee" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
||
</td>
|
||
</tr>
|
||
<tr runat="server" id="TrRetIVA" class="text-right" visible="false">
|
||
<td><b>Ret IVA:</b></td>
|
||
<td>
|
||
<asp:TextBox ID="TxtRetIVA" ClientIDMode="Static" onkeyup="FormatoMoneda(this);SumaTotal();" Width="100px" onblur="AplicaRetIVAGeneral();" Font-Size="10.5" BackColor="#f7f7f7" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
||
<asp:Button Text="" Style="display: none" ClientIDMode="Static" ID="BtnLimpiarRetIVA" OnClick="BtnLimpiarRetIVA_Click" runat="server" />
|
||
<asp:Button Text="" Style="display: none" ClientIDMode="Static" ID="BtnAplicarRetIVA" OnClick="BtnAplicarRetIVA_Click" runat="server" />
|
||
<asp:HiddenField ClientIDMode="Static" Value="0" runat="server" ID="HdnRetIVA" />
|
||
</td>
|
||
</tr>
|
||
<tr runat="server" id="TrRetISR" class="text-right" visible="false">
|
||
<td><b>Ret ISR:</b></td>
|
||
<td>
|
||
<asp:TextBox ID="TxtRetISR" ClientIDMode="Static" onkeyup="FormatoMoneda(this);SumaTotal();" Width="100px" onblur="AplicaRetISRGeneral();" Font-Size="10.5" BackColor="#f7f7f7" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
||
<asp:Button Text="" Style="display: none" ClientIDMode="Static" ID="BtnAplicarRetISR" OnClick="BtnAplicarRetISR_Click" runat="server" />
|
||
<asp:HiddenField ClientIDMode="Static" Value="0" runat="server" ID="HdnRetISR" />
|
||
</td>
|
||
</tr>
|
||
<tr align="right">
|
||
<td><b>Total:</b></td>
|
||
<td style="text-align: right;">
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:TextBox ID="LblTotal" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Width="100px" Font-Size="10.5" BackColor="#eeeeee" Text="0.00"></asp:TextBox>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</td>
|
||
<td>
|
||
<asp:DropDownList ID="DdlMoneda" runat="server" DataTextField="Moneda" DataValueField="CveMoneda" Width="70px" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVMoneda" runat="server" ControlToValidate="DdlMoneda" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Moneda''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEMoneda" runat="server" HighlightCssClass="vco" TargetControlID="RFVMoneda" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<asp:Label ID="LblMoneda" runat="server" Text="" Visible="false"></asp:Label>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<asp:HiddenField ID="HdnEditCveActivoFijo" runat="server" ClientIDMode="Static" />
|
||
<asp:HiddenField ID="HdnEditCodigo" runat="server" ClientIDMode="Static" />
|
||
</div>
|
||
</ContentTemplate>
|
||
<Triggers>
|
||
<asp:AsyncPostBackTrigger ControlID="LbAgregar" EventName="Click" />
|
||
</Triggers>
|
||
</asp:UpdatePanel>
|
||
|
||
</ContentTemplate>
|
||
|
||
</ajax:TabPanel>
|
||
|
||
|
||
<ajax:TabPanel HeaderText="Cotizaciones" runat="server" ID="tabCotizaciones" Enabled="false">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
</div>
|
||
<div class="col-md-6" style="text-align: right!important">
|
||
<asp:HyperLink ID="hplCargarCotExcel" Font-Size="13" CssClass="Texto" NavigateUrl="#" data-toggle="modal" data-target="#DivCargaExcelCotizaciones" runat="server" Text="<i class='fa fa-file-excel-o'></i> Cargar Cotización"></asp:HyperLink>
|
||
|
||
<asp:HyperLink ID="hplAgregarCotizacion" Font-Size="13" CssClass="Texto thickbox" runat="server" Text="<i class='fa fa-plus'></i> Agregar Cotizacion" Style="cursor: pointer;" ToolTip="Agregar Cotizacion"></asp:HyperLink>
|
||
|
||
<asp:HyperLink ID="hplEnviarCorreo" Font-Size="13" CssClass="Texto thickbox" runat="server" Text="<i class='fa fa-envelope'></i> Enviar cotización por correo" Style="cursor: pointer;" ToolTip="Enviar cotización por correo"></asp:HyperLink>
|
||
</div>
|
||
<div class="col-md-6">
|
||
</div>
|
||
</div>
|
||
<asp:UpdatePanel ID="uppCotizaciones" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="gvCotizacionesANT" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontro ninguna Cotización" Visible="false" GridLines="None" BorderWidth="0" CssClass="table table-striped table-hover table-advance Widthall">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<ItemTemplate>
|
||
<asp:HyperLink ID="HplFolio" CssClass="Texto thickbox" runat="server" Text='<%# Eval("Folio")%>' Style="cursor: pointer;" ToolTip="Ver Cotizacion" NavigateUrl='<%# String.Format("/OC/RepCotizacionesDetalle.aspx?CveOrdenCompra={0}&CveCotizacion={1}&TB_iframe=true&height=370&width=600;", Eval("CveOrdenCompra"), Eval("CveCotizacion"))%>'></asp:HyperLink>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:BoundField DataField="Folio" HeaderText="Folio"></asp:BoundField>
|
||
<asp:BoundField DataField="NombreComercial" HeaderText="Nombre Comercial"></asp:BoundField>
|
||
<asp:BoundField DataField="RazonSocial" HeaderText="Razon Social"></asp:BoundField>
|
||
<asp:TemplateField HeaderText="Fecha">
|
||
<ItemTemplate>
|
||
<div class="truncate" style="width: 65px" title="<%# Eval("Fecha") %>">
|
||
<asp:Literal ID="LblFecha" runat="server" Text='<%# Bind("Fecha") %>'></asp:Literal>
|
||
</div>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="65px" />
|
||
</asp:TemplateField>
|
||
<asp:BoundField DataField="Total" HeaderText="Total" DataFormatString="{0:N2}"></asp:BoundField>
|
||
<asp:TemplateField HeaderText="Adjunto">
|
||
<ItemTemplate>
|
||
<asp:HyperLink ID="HplAdjunto" Target="_blank" NavigateUrl='<%# "/Empresas/" & UsuarioActual.CveEmpresa.ToString & "/Cotizaciones/" & Eval("Adjunto").ToString%>' runat="server" Text='<%# If(Eval("Adjunto").ToString = "", "", "Ver")%>'></asp:HyperLink>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
<HeaderStyle CssClass="Titulos"></HeaderStyle>
|
||
<RowStyle CssClass="Texto" />
|
||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||
</asp:GridView>
|
||
<br />
|
||
|
||
<asp:HiddenField Value="-1" runat="server" ID="HdnCveCotizacion" ClientIDMode="Static" />
|
||
<asp:GridView ID="gvCotizaciones" runat="server" DataKeyNames="CveOrdenCompra,CveOrdenCompraDetalle,Descripcion" ClientIDMode="Static" Visible="true"
|
||
AutoGenerateColumns="False" EmptyDataText="No se encontraron adjuntos" ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall "
|
||
data-sort="true" data-freezerows="1" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="Cantidad">
|
||
<ItemTemplate>
|
||
<asp:Label ID="Literal" runat="server" Text='<%# Bind("Cantidad", "{0:N2}") %>'></asp:Label>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="50px" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Unidad">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LA" runat="server" Text='<%# Bind("Abreviatura") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="50px" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Descripción">
|
||
<EditItemTemplate>
|
||
<asp:TextBox ID="TxtDescripDetalleEdit" runat="server" Text='<%# Bind("Descripcion") %>'
|
||
Width="345px"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVDescripcion" runat="server" ControlToValidate="TxtDescripDetalleEdit"
|
||
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="GrpEditGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOEmpresa" runat="server" HighlightCssClass="vco"
|
||
TargetControlID="RFVDescripcion" Width="300px">
|
||
</ajax:ValidatorCalloutExtender>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LDescrip" runat="server" Text='<%# Bind("Descripcion") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
<ItemStyle Width="350px" HorizontalAlign="Left" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario" HeaderStyle-HorizontalAlign="Center">
|
||
<EditItemTemplate>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:Button ID="Btn1" CssClass="btn btn-primary" Enabled="true" runat="server" Text="" Width="100px" CommandName="RegProv" />
|
||
</ItemTemplate>
|
||
<ItemStyle Width="100px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
|
||
<EditItemTemplate>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:Button ID="Btn2" CssClass="btn btn-primary" Enabled="true" runat="server" Text="" Width="100px" CommandName="RegProv" />
|
||
</ItemTemplate>
|
||
<ItemStyle Width="100px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
|
||
<EditItemTemplate>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:Button ID="Btn3" CssClass="btn btn-primary" Enabled="true" runat="server" Text="" Width="100px" CommandName="RegProv" />
|
||
</ItemTemplate>
|
||
<ItemStyle Width="100px" CssClass="truncate" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
|
||
<EditItemTemplate>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:Button ID="Btn4" CssClass="btn btn-primary" Enabled="true" runat="server" Text="" Width="100px" CommandName="RegProv" />
|
||
</ItemTemplate>
|
||
<ItemStyle Width="100px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
|
||
<EditItemTemplate>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:Button ID="Btn5" CssClass="btn btn-primary" Enabled="true" runat="server" Text="" Width="100px" CommandName="RegProv" />
|
||
</ItemTemplate>
|
||
<ItemStyle Width="100px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
|
||
<EditItemTemplate>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:Button ID="Btn6" CssClass="btn btn-primary" Enabled="true" runat="server" Text="" Width="100px" CommandName="RegProv" />
|
||
</ItemTemplate>
|
||
<ItemStyle Width="100px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
|
||
<EditItemTemplate>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:Button ID="Btn7" CssClass="btn btn-primary" Enabled="true" runat="server" Text="" Width="100px" CommandName="RegProv" />
|
||
</ItemTemplate>
|
||
<ItemStyle Width="100px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
|
||
<EditItemTemplate>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:Button ID="Btn8" CssClass="btn btn-primary" Enabled="true" runat="server" Text="" Width="100px" CommandName="RegProv" />
|
||
</ItemTemplate>
|
||
<ItemStyle Width="100px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
|
||
<EditItemTemplate>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:Button ID="Btn9" CssClass="btn btn-primary" Enabled="true" runat="server" Text="" Width="100px" CommandName="RegProv" />
|
||
</ItemTemplate>
|
||
<ItemStyle Width="100px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ShowHeader="False" Visible="false" HeaderText="Precio Unitario">
|
||
<EditItemTemplate>
|
||
</EditItemTemplate>
|
||
<ItemTemplate>
|
||
<asp:Button ID="Btn10" CssClass="btn btn-primary" Enabled="true" runat="server" Text="" Width="100px" CommandName="RegProv" />
|
||
</ItemTemplate>
|
||
<ItemStyle Width="100px" HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
|
||
</Columns>
|
||
|
||
<HeaderStyle CssClass="Titulos" Height="25px"></HeaderStyle>
|
||
<%--<RowStyle CssClass="Texto" />
|
||
<AlternatingRowStyle CssClass="TextoAlterno" />--%>
|
||
</asp:GridView>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
<ajax:TabPanel HeaderText="Almacen" runat="server" ID="TabAlmacen" Visible="false">
|
||
<ContentTemplate>
|
||
<asp:UpdatePanel ID="UpAlmacen" UpdateMode="Conditional" runat="server">
|
||
<ContentTemplate>
|
||
<asp:GridView runat="server" ID="GVInv" AutoGenerateColumns="false" EmptyDataText="Aun no hay registros." ShowHeaderWhenEmpty="True" Width="100%" CssClass="table table-striped table-hover" GridLines="None">
|
||
<Columns>
|
||
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="15%" />
|
||
<asp:BoundField HeaderText="Unidad" DataField="UnidadMedida" ItemStyle-Width="15%" />
|
||
<asp:TemplateField HeaderText="Producto">
|
||
<ItemTemplate>
|
||
<asp:Literal Text='<%# Eval("CodigoPS") %>' ID="LtProducto" runat="server" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-Width="10%" Visible="false" />
|
||
<asp:BoundField HeaderText="Lote" DataField="Lote" ItemStyle-Width="10%" Visible="false" />
|
||
<asp:BoundField HeaderText="FechaCaducidad" DataField="FechaCaducidad" DataFormatString="{0:d}" ItemStyle-Width="10%" Visible="false" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</ContentTemplate>
|
||
</ajax:TabPanel>
|
||
|
||
</ajax:TabContainer>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
|
||
<%-- DIV CANCELAR OC --%>
|
||
<div id="DivCancelarCompra" class="modal fade">
|
||
<div class="modal-dialog">
|
||
<asp:UpdatePanel ID="UpCancelarOC" runat="server" class="modal-content rowpadding" tabindex="-1" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header">
|
||
<h4>
|
||
<asp:Label Text="Cancelar Orden de Compra" ID="LbTitulo" runat="server" />
|
||
</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel ID="UpCancelar" UpdateMode="Conditional" runat="server">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<label class="col-md-3">Fecha de Cancelación:</label>
|
||
<div class="col-md-8">
|
||
<div class="input-group date date-picker" data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||
<asp:TextBox ID="TxtFechaCancelacion" runat="server" CssClass="form-control" Width="80px" CausesValidation="true" MaxLength="10" ValidationGroup="GrpCancelarCompra"></asp:TextBox>
|
||
<span class="input-group-btn ">
|
||
<asp:LinkButton ID="ImgCalendarioDel" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||
</span>
|
||
<ajax:MaskedEditExtender ID="MEEFechaCancelacion" runat="server" TargetControlID="TxtFechaCancelacion" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||
<ajax:CalendarExtender ID="CalendarioCancelacion" runat="server" TargetControlID="TxtFechaCancelacion" PopupButtonID="ImgCalendarioDel" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||
|
||
<asp:CompareValidator ID="CVFechaCancelacion" runat="server" ControlToValidate="TxtFechaCancelacion" Display="None" Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpCancelarCompra" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Cancelación''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)."></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOFecha2Cancelacion" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaCancelacion" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
|
||
<asp:CompareValidator ID="CVFechaCancelacionMin" runat="server" ControlToCompare="TxtFecha" ControlToValidate="TxtFechaCancelacion" Display="None" Operator="GreaterThanEqual" Type="Date" ValidationGroup="GrpCancelarCompra" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Cancelación''</b>tiene que ser mayor o igual a la fecha del documento."></asp:CompareValidator>
|
||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaCancelacionMin" Width="350px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-3">Motivo de Cancelación:</label>
|
||
<div class="col-md-8">
|
||
<asp:TextBox ID="TxtCancelar" runat="server" Rows="5" Columns="50" ClientIDMode="Static" TextMode="MultiLine"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<%--data-toggle="confirmation" data-btn-ok-label="Si" data-title="Está seguro que desea cancelar la orden de compra?"--%>
|
||
<asp:Button ID="BtnCancelar" runat="server" Text="Cancelar Orden Compra" ClientIDMode="Static" CssClass="btn btn-danger" ValidationGroup="GrpCancelarCompra" />
|
||
<button type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
<%-- FIN DIV CANCELAR OC --%>
|
||
|
||
<br />
|
||
<div class="row">
|
||
<div class="col-md-3">
|
||
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Opciones </span>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript;" class="expand" data-original-title="" title=""></a>
|
||
</div>
|
||
</div>
|
||
|
||
<asp:UpdatePanel runat="server" ID="uppOpciones" class="portlet-body form" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<table>
|
||
<tr>
|
||
<td style="text-align: center;">
|
||
<asp:Panel runat="server" ID="PnlUsuarioAsignado" Visible="False">
|
||
Asignar a:
|
||
|
||
<asp:DropDownList ID="DdlUsuariosAsignado" CssClass="select2me" Width="200px" DataTextField="Nombre" DataValueField="CveUsuario" runat="server"></asp:DropDownList>
|
||
</asp:Panel>
|
||
<asp:Panel runat="server" ID="PnlUsuarioYaAsignado" Visible="false" Style="text-align:left;font-size:14px;height:34px;margin-top:10px">
|
||
Asignado a:
|
||
<asp:Label runat="server" ID="LblUsuarioYaAsignado"/><br /><br />
|
||
</asp:Panel>
|
||
<asp:Button ID="BtnGuardar" CssClass="btn btn-primary" Style="margin-top: 5px;" runat="server" Text="Guardar" Width="170px" ValidationGroup="GrpGuardar" />
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:TextBox ID="TxtGrid" runat="server" ReadOnly="true" Width="5px" BorderWidth="0" BorderColor="White" ForeColor="White"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVGrid" runat="server" ControlToValidate="TxtGrid" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />Cuando menos debe tener un <b>''Producto''</b>" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEGrid" runat="server" HighlightCssClass="vco" TargetControlID="RFVGrid" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td style="text-align: center;">
|
||
<asp:Button ID="BtnCancelarPrevio" OnClientClick="ShowDivCancelarCompra();" Text="Cancelar Compra" CssClass="btn btn-danger" runat="server" Width="170px" />
|
||
<%--<div runat="server" id="BtnCancelarPrevio" class="btn btn-danger" onclick="$get('DivCancelarCompra').style.display='';">Cancelar</div>--%>
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td style="text-align: center;">
|
||
<asp:Button ID="BtnCrearApartirDe" Text="Crear a partir de" CssClass="btn btn-primary" runat="server" Width="170px" Visible="false" />
|
||
<%--<div runat="server" id="BtnCancelarPrevio" class="btn btn-danger" onclick="$get('DivCancelarCompra').style.display='';">Cancelar</div>--%>
|
||
</td>
|
||
</tr>
|
||
|
||
</table>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3" runat="server" id="DivVentaRelacionada" visible="false">
|
||
<div class="portlet light xspadding bordered">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<i class="icon-pin font-green"></i>
|
||
<span class="caption-subject bold uppercase">Venta Relacionada </span>
|
||
</div>
|
||
<div class="tools">
|
||
<a href="javascript;" class="expand" data-original-title="" title=""></a>
|
||
</div>
|
||
</div>
|
||
<asp:GridView runat="server" ID="GvVentaRelacionadas" AutoGenerateColumns="False" DataKeyNames="CveVenta,SerieFolio"
|
||
CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None" ShowHeader="False">
|
||
<Columns>
|
||
<asp:HyperLinkField DataTextField="SerieFolio" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<a name="pie_de_pagina"></a>
|
||
<div class="row">
|
||
<div class="col-md-12 ">
|
||
<div class="portlet light xspadding 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:UpdatePanel ID="UpAccionesBitacora" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:LinkButton ID="ImgAddObs" CssClass="caption-subject bold" 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:LinkButton><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="false" Style="cursor: pointer;" ToolTip="Agendar"></asp:HyperLink>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="portlet-body">
|
||
<asp:UpdatePanel ID="UPEventoBitacora" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvEB" runat="server" AutoGenerateColumns="False" EmptyDataText="No se han capturado comentarios o bitácora" CssClass="table table-striped table-hover Widthall" GridLines="None">
|
||
<Columns>
|
||
<asp:BoundField HeaderText="Fecha" DataField="FechaIng" ItemStyle-Width="175px" />
|
||
<asp:BoundField HeaderText="Fecha Agenda" DataField="FechaInicio" ItemStyle-Width="175px" />
|
||
<asp:BoundField HeaderText="Usuario" DataField="Usuario" ItemStyle-Width="150px" />
|
||
<asp:BoundField HeaderText="Descripción" DataField="Descripcion" />
|
||
<asp:BoundField HeaderText="Prioridad" DataField="Prioridad" ItemStyle-Width="100px" />
|
||
<asp:TemplateField HeaderText="Archivo" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="50px">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LinkArchivo" Visible="false" runat="server" Text="<i class='fa fa-download' aria-hidden='true'></i>" OnClick="DownloadFile"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<br />
|
||
|
||
|
||
<div id="DivModalExistenciaTotal" 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">Existencias</h4>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel runat="server" ID="UPExist" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:GridView ID="GvExist" runat="server" AutoGenerateColumns="true" GridLines="None" BorderWidth="0" CssClass="table table-striped table-hover Widthall">
|
||
</asp:GridView>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div id="ModalBitacora" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
<!-- Modal content-->
|
||
<div class="modal-content">
|
||
<asp:UpdatePanel runat="server" ID="UpTituloBitacora" UpdateMode="Conditional" class="modal-header">
|
||
<ContentTemplate>
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title" runat="server" id="HBitacora">Bitácora</h4>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel runat="server" ID="UPAddEventoBitacora" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-8">
|
||
<label runat="server" id="LblBitacora">Bitácora/Observaciones</label>
|
||
<br />
|
||
<asp:TextBox CssClass="form-control" ID="TxtEventoDescripcion" class="Widthall" runat="server" TextMode="MultiLine" Columns="60" Rows="4"></asp:TextBox>
|
||
<br />
|
||
<asp:CheckBox ID="ChkEventoPrioridad" CssClass="md-checksd2" Text="Bitácora de Atención" runat="server" />
|
||
</div>
|
||
<div class="col-md-4">
|
||
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<asp:HiddenField runat="server" ID="HdnEsCotizacion" Value="0" />
|
||
</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>
|
||
<%-- End Modal --%>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
|
||
<asp:UpdatePanel ID="uppHistorial" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="portlet xspadding light bordered" runat="server" id="fsHistorial" visible="false">
|
||
<div class="portlet-title">
|
||
<div class="caption font-green">
|
||
<%--<i class="fa fa-users font-green"></i>--%>
|
||
<span class="caption-subject bold uppercase">Historial</span>
|
||
</div>
|
||
<div class="actions">
|
||
<div class="btn-group">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="portlet-body">
|
||
<asp:GridView ID="GVH" runat="server" AutoGenerateColumns="False" GridLines="None" BorderWidth="0" Width="100%" CssClass="table table-striped table-hover Widthall ScrollAD" data-sort="true">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblFecha" runat="server" Text='<%# Eval("FechaIng")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:BoundField DataField="ConceptoHistorialBitacora" HeaderText="Concepto" />
|
||
<asp:BoundField DataField="Anterior" HeaderText="Antes" />
|
||
<asp:BoundField DataField="Actual" HeaderText="Después" />
|
||
<asp:BoundField DataField="Usuario" HeaderText="Usuario" />
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<asp:Panel ID="divPOA" runat="server" ClientIDMode="Static" DefaultButton="BtnBuscarAF" Width="900px" BackColor="White" Style="border: solid 1px black; color: Black; display: none; position: absolute; top: 480px; left: 280px;">
|
||
<asp:UpdatePanel runat="server" ID="UpdatePanel2" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<fieldset>
|
||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||
<tr class="Titulos">
|
||
<td style="width: 760px;">Programa Operativo</td>
|
||
<td style="float: right; padding-right: 3px;">Importe:
|
||
|
||
<asp:TextBox ID="TxtImporte" ClientIDMode="Static" runat="server" Width="50px" CssClass="alineanum" Enabled="false"></asp:TextBox>
|
||
</td>
|
||
<td style="padding-right: 4px;" valign="top">
|
||
<img alt="" src="/imagenes/cerrarX.jpg" style="cursor: pointer;" onclick="$get('divPOA').style.display='none';" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||
<tr style="height: 30px;">
|
||
<td style="float: left;">Fuente F:
|
||
|
||
<asp:DropDownList ID="CboFuenteFinanciamiento" runat="server" DataTextField="FuenteFinanciamiento" DataValueField="CveFuenteFinanciamiento" Width="100px"></asp:DropDownList>
|
||
</td>
|
||
<td style="float: left;">Unidad Admtiva:
|
||
|
||
<asp:DropDownList ID="CboUnidadAdministrativa" runat="server" DataTextField="UnidadAdministrativa" DataValueField="CveUnidadAdministrativa" Width="100px"></asp:DropDownList>
|
||
</td>
|
||
<td style="float: left;">Tipo Gasto:
|
||
|
||
<asp:DropDownList ID="CboTipoGasto" runat="server" DataTextField="TipoGasto" DataValueField="CveTipoGasto" Width="100px"></asp:DropDownList>
|
||
</td>
|
||
<td style="float: left;">Clasificador:
|
||
|
||
<asp:DropDownList ID="CboClasificacionOG" runat="server" DataTextField="CodigoClasificacion" DataValueField="CveClasificacion" Width="100px"></asp:DropDownList>
|
||
</td>
|
||
<td style="float: right;">
|
||
<asp:Button ID="Button1" runat="server" Text="Consultar" Width="100px" OnClick="consultarAC_Click" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<table>
|
||
<tr>
|
||
<td>
|
||
<asp:GridView ID="GvAC" runat="server" OnRowDataBound="GvAC_RowDataBound" DataKeyNames="CvePresupuestoEgreso,IdCuentaPorEjercer,IdCuentaComprometido, Total" AutoGenerateColumns="False">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Clave</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="POA1" CssClass="Texto" runat="server" Text='<%# Eval("CvePresupuestoEgreso")%>' OnClick="SeleccionarPOA_Click"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Proyecto</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="POA2" CssClass="Texto" runat="server" Text='<%# Eval("ProgramaOperativo")%>' OnClick="SeleccionarPOA_Click"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Fuente F.</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="POA3" CssClass="Texto" runat="server" Text='<%# Eval("FuenteFinanciamiento")%>' OnClick="SeleccionarPOA_Click"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Unidad Admtiva.</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="POA4" CssClass="Texto" runat="server" Text='<%# Eval("UnidadAdministrativa")%>' OnClick="SeleccionarPOA_Click"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Tipo Gasto</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="POA5" CssClass="Texto" runat="server" Text='<%# Eval("TipoGasto")%>' OnClick="SeleccionarPOA_Click"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Clasificador</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="POA6" CssClass="Texto" runat="server" Text='<%# Eval("Clasificacion")%>' OnClick="SeleccionarPOA_Click"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Total</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="POA7" runat="server" CssClass="Texto" Text='<%# Eval("Total", "{0:N2}")%>' OnClick="SeleccionarPOA_Click"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
<ItemStyle HorizontalAlign="Right" />
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
<HeaderStyle CssClass="Titulos"></HeaderStyle>
|
||
</asp:GridView>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</fieldset>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</asp:Panel>
|
||
|
||
<asp:Panel ID="divActivosFijos" runat="server" ClientIDMode="Static" DefaultButton="BtnBuscarAF" Width="580px" BackColor="White" Style="border: solid 1px black; color: Black; display: none; position: absolute;">
|
||
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UPPBuscar">
|
||
<ContentTemplate>
|
||
<table border="0" width="580px" cellpadding="0" cellspacing="1">
|
||
<tr class="Titulos">
|
||
<td colspan="2">
|
||
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="TbBuscar" style="cursor: move;">
|
||
<tr>
|
||
<td style="width: 510px">Vinculación de Activos Fijos</td>
|
||
<td style="padding-right: 4px; padding-top: 4px" valign="top">
|
||
<img alt="" src="/imagenes/cerrarX.jpg" style="cursor: pointer;" onclick="$get('divActivosFijos').style.display='none';" /></td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
<tr>
|
||
<td colspan="2"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<table width="100%" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td style="width: 140px;">Código:</td>
|
||
<td>
|
||
<asp:TextBox ID="TxtAFCodigo" runat="server" MaxLength="12" Width="150px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Descripción:</td>
|
||
<td>
|
||
<asp:TextBox ID="TxtAFDescripcion" runat="server" MaxLength="70" Width="200px"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVDescripcion" runat="server" ControlToValidate="TxtAFDescripcion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripcion del ActivoFijo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarAF"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEDescripcion" runat="server" HighlightCssClass="vco" TargetControlID="RFVDescripcion" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Tipo de Activo Fijo:</td>
|
||
<td>
|
||
<asp:DropDownList ID="DdlAFTipoActivoFijo" runat="server" AutoPostBack="true" DataTextField="TipoActivoFijo" DataValueField="CveTipoActivoFijo" Width="206px" ValidationGroup="GrpGuardarAF">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVTipoActivoFijo" runat="server" ControlToValidate="DdlAFTipoActivoFijo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Activo Fijo''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardarAF"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOTipoActivoFijo" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoActivoFijo" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>SubTipo de Activo Fijo:</td>
|
||
<td>
|
||
<asp:DropDownList ID="DdlAFSubTipoActivoFijo" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="SubTipoActivoFijo" DataValueField="CveSubTipoActivoFijo" Width="206px" ValidationGroup="GrpGuardarAF">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVSubTipoActivoFijo" runat="server" ControlToValidate="DdlAFSubTipoActivoFijo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''SubTipo de Activo Fijo''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardarAF"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOSubTipoActivoFijo" runat="server" HighlightCssClass="vco" TargetControlID="RFVSubTipoActivoFijo" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<asp:Button ID="BtnBuscarAF" runat="server" Text="Buscar" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2">
|
||
<div style="height: 105px; overflow: auto;">
|
||
<asp:GridView ID="GVAF" runat="server" AutoGenerateColumns="false" DataKeyNames="CveActivoFijo,CodigoAF" EmptyDataText="No se encontraron registros" ToolTip="Listado de Activos Fijos Encontrados.">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Código</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LtlNoSerie" CssClass="Texto" runat="server" Text='<%# Eval("CodigoAF")%>' OnClick="LnkAFSeleccionar_Click"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Descripción</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LnkDescripcion" CssClass="Texto" runat="server" Text='<%# Eval("Descripcion") %>'
|
||
OnClick="LnkAFSeleccionar_Click"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Tipo AF</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LtlTipoAF" CssClass="Texto" runat="server" Text='<%# Eval("TipoActivoFijo") %>' OnClick="LnkAFSeleccionar_Click"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>SubTipoAF</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LtlSubTipoAF" CssClass="Texto" runat="server" Text='<%# Eval("SubTipoActivoFijo")%>' OnClick="LnkAFSeleccionar_Click"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%-- <asp:TemplateField>
|
||
<HeaderTemplate>Modelo</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LtlModelo" CssClass="Texto" runat="server" Text='<%# Eval("ModeloActivoFijo") %>' OnClick="LnkAFSeleccionar_Click"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Marca</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="LtlMarca" CssClass="Texto" runat="server" Text='<%# Eval("MarcaActivoFijo")%>' OnClick="LnkAFSeleccionar_Click"></asp:LinkButton>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>--%>
|
||
</Columns>
|
||
<RowStyle CssClass="Texto" />
|
||
<SelectedRowStyle CssClass="tabla_seleccionado"></SelectedRowStyle>
|
||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||
</asp:GridView>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<asp:HiddenField ID="HdnAFCveActivoFijo" runat="server" />
|
||
<asp:HiddenField ID="HdnAFCodigo" runat="server" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" align="center">
|
||
<hr />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" align="center"></td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2">
|
||
<div style="height: 125px; overflow: auto;">
|
||
<asp:GridView ID="GVAFC" runat="server" AutoGenerateColumns="False" Caption="<b>Últimas Compras</b>" EmptyDataText="No se encontraron compras o insumos del activo fijo">
|
||
<Columns>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Factura</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:HyperLink ID="LtlFactura" CssClass="Texto" runat="server" Text='<%# Eval("Folio") %>' NavigateUrl='<%# Eval("CveCompra", "/Compras/Compras.aspx?CveCompra={0}") %>'></asp:HyperLink>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Fecha</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Cantidad</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:N2}") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>UM</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlUM" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Clasificación</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlIVA" runat="server" Text='<%# Eval("Clasificacion") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Producto o Servicio</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlPS" runat="server" Text='<%# Eval("PS") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Total</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlTotal" runat="server" Text='<%# If(CDbl(Eval("Total")) = 0, "", Eval("Total", "{0:N2}")) %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Moneda</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtlMoneda" runat="server" Text='<%# Eval("Moneda") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField>
|
||
<HeaderTemplate>Proveedor</HeaderTemplate>
|
||
<ItemTemplate>
|
||
<asp:HyperLink ID="LtlProveedor" runat="server" Text='<%# Eval("Proveedor") %>' NavigateUrl='<%# Eval("CveProveedor", "/Compras/Proveedores.aspx?CveProveedor={0}") %>'></asp:HyperLink>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
<RowStyle CssClass="Texto" />
|
||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||
<HeaderStyle CssClass="TitulosChico" />
|
||
</asp:GridView>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" align="center">
|
||
<asp:Button ID="BtnAFAceptar" runat="server" Text="Aceptar" Visible="false" /></td>
|
||
</tr>
|
||
</table>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</asp:Panel>
|
||
|
||
|
||
<%--CANCELAR--%>
|
||
<%--<div style="display: none; width: 420px; background-color: white;" id="divCE" class="modal-content">
|
||
<table border="0" cellspacing="0" width="350px" runat="server" id="tbCancelar">
|
||
<tr>
|
||
<td>Motivo Cancelación:</td>
|
||
<td>
|
||
<asp:TextBox ID="TxtCancelar" runat="server" Rows="5" Columns="50" ClientIDMode="Static" TextMode="MultiLine"></asp:TextBox></td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" style="text-align: center">
|
||
<asp:Button ID="BtnCancelar" runat="server" Text="Cancelar Orden Compra" ClientIDMode="Static" CssClass="btn btn-danger" data-toggle="confirmation" data-btn-ok-label="Si" data-title="Está seguro que desea cancelar la orden de compra?" />
|
||
<div id="BtnCerrarCancelar" class="btn btn-default" onclick="$get('divCE').style.display='none';">Cerrar</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>--%>
|
||
|
||
|
||
<div id="ModalSolicitarAnticipo" class="modal ADS fade" role="dialog">
|
||
<asp:UpdatePanel ID="UpSolicitarAnticipo" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">Solicitar Anticipo</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="row ">
|
||
<label class="col-md-2">Importe:</label>
|
||
<div class="col-md-4 form-group">
|
||
<div class="input-group">
|
||
<asp:TextBox ID="TxtSAImPorcentaje" min="0" max="100" step="any" CssClass="form-control input-sm" type="number" runat="server"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVSAImPorcentaje" runat="server" ControlToValidate="TxtSAImPorcentaje" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Porcentaje''</b> es necesario, por favor ingréselo." ValidationGroup="GrpModalSolicitarAnticipo"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCESAImPorcentaje" runat="server" Enabled="True" HighlightCssClass="vco" TargetControlID="RFVSAImPorcentaje" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<span class="input-group-addon">
|
||
<i style="font-weight: 700;">%</i>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-4 col-md-offset-1 form-group">
|
||
<div class="input-group">
|
||
<span class="input-group-addon">
|
||
<i class="fa fa-dollar"></i>
|
||
</span>
|
||
<asp:TextBox ID="TxtSAImporte" min="0" max='<%=LblTotal.Text.ToString()%>' CssClass="form-control input-sm" type="number" step="any" pattern="(\d{3})([\.])(\d{2})" runat="server"></asp:TextBox>
|
||
<asp:RangeValidator ID="RVSAImprote" CssClass="form-control" runat="server" ControlToValidate="TxtSAImporte" Display="None" Type="Double" MinimumValue="1.00" MaximumValue="2147483647" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importe''</b> debe ser mayor a cero." ValidationGroup="GrpModalSolicitarAnticipo"></asp:RangeValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCESAImporte" runat="server" HighlightCssClass="vco" TargetControlID="RVSAImprote" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
|
||
</div>
|
||
<div class="input-group" style="text-align:right!important">
|
||
<asp:Label runat="server" ID="LblSaldoOCAnticipo"></asp:Label>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
<hr />
|
||
<div class="row">
|
||
<label class="col-md-2">Usuario:</label>
|
||
<div class="col-md-9">
|
||
<asp:DropDownList ID="DdlSAUsuario" CssClass="form-control input-sm select2me" DataTextField="Nombre" DataValueField="CveUsuario" runat="server"></asp:DropDownList>
|
||
<asp:RequiredFieldValidator ID="RFVSAUsuario" runat="server" InitialValue="-1" ControlToValidate="DdlSAUsuario" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Usuario''</b> es necesario, por favor ingréselo." ValidationGroup="GrpModalSolicitarAnticipo"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCESAUsuario" runat="server" HighlightCssClass="vco" TargetControlID="RFVSAUsuario" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
</div>
|
||
</div>
|
||
<hr />
|
||
<div class="row">
|
||
<label class="col-md-2">Observaciones:</label>
|
||
<div class="col-md-9">
|
||
<asp:TextBox ID="TxtSAObservaciones" CssClass="form-control input-sm" runat="server" Style="width: 370px; height: 40px;" ValidationGroup="GrpModalSolicitarAnticipo" TextMode="MultiLine" Rows="5" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button id="CancelarSolicitarAnticipo" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||
<asp:Button Text="Guardar" ID="BtnSolicitarAnticipo" CssClass="btn btn-primary" ValidationGroup="GrpModalSolicitarAnticipo" runat="server" />
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
|
||
<div id="DivEliminarCotizacion" class="modal fade" tabindex="-1" aria-hidden="true">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header" style="background-color: #258FD7; height: 30px; padding-top: 3px;">
|
||
<button type="button" class="close" data-dismiss="modal" style="top: 3px !important; margin-top: 6px !important;" aria-hidden="true"></button>
|
||
<h4 class="modal-title" style="color: #FFF;">Solicitar Anticipo</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="scroller" style="height: 300px" data-always-visible="1" data-rail-visible1="1">
|
||
<div class="row ">
|
||
<label class="col-md-3">Importe</label>
|
||
<div class="col-md-4 form-group">
|
||
<div class="input-group">
|
||
<asp:TextBox ID="TextBox1" min="0" max="100" step="any" CssClass="form-control input-sm" type="number" runat="server"></asp:TextBox>
|
||
<span class="input-group-addon">
|
||
<i style="font-weight: 700;">%</i>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-4 col-md-offset-1 form-group">
|
||
<div class="input-group">
|
||
<span class="input-group-addon">
|
||
<i class="fa fa-dollar"></i>
|
||
</span>
|
||
<asp:TextBox ID="TextBox2" runat="server" min="0" max='<%= LblTotal.Text.ToString()%>' CssClass="form-control input-sm" type="number" step="any" pattern="(\d{3})([\.])(\d{2})"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<hr />
|
||
<div class="row">
|
||
|
||
<label class="col-md-3">Usuario</label>
|
||
<div class="col-md-9">
|
||
<asp:DropDownList ID="DropDownList1" CssClass="form-control input-sm select2me" DataTextField="Nombre" DataValueField="CveUsuario" runat="server"></asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<hr />
|
||
<div class="row">
|
||
|
||
<label class="col-md-3">Observaciones</label>
|
||
<div class="col-md-9">
|
||
<asp:TextBox ID="TextBox3" CssClass="form-control input-sm" runat="server" Style="width: 370px; height: 40px;" ValidationGroup="GrpGuardar" TextMode="MultiLine" Rows="5" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button ID="Button2" CssClass="btn green" runat="server" Text="Guardar" />
|
||
<button type="button" data-dismiss="modal" class="btn btn-">Cancel</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="divEliminarCotizacion" class="modal fade">
|
||
<div class="modal-dialog" style="max-height: 500px; max-width: 500px;">
|
||
<asp:UpdatePanel ID="UpEliminarCotizacion" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
|
||
<h3 class="modal-title">Eliminar Cotización</h3>
|
||
</div>
|
||
<div class="modal-body">
|
||
<%-- <div class="row">
|
||
<label class="col-md-2">Actual</label>
|
||
<div class="col-md-10">
|
||
<asp:TextBox ID="TxtPSAlias" ClientIDMode="Static" runat="server" Width="400px"></asp:TextBox>
|
||
<asp:HiddenField ID="HdnAliasInd" ClientIDMode="Static" runat="server" />
|
||
</div>
|
||
</div>--%>
|
||
<%--<label class="col-md-12">Motivo de Eliminación:</label>--%>
|
||
<div class="row">
|
||
<label class="col-md-12">Motivo de eliminación:</label>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:TextBox TextMode="MultiLine" Height="80" ID="TxtMotivoEliminacion" runat="server" CssClass="Widthall"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button ID="BtnEliminarCotizacion" runat="server" CssClass="btn btn-success" Text="Eliminar" />
|
||
<button type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<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="BtnDescargar" 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>
|
||
|
||
<%-- MODAL OC X SUTIR--%>
|
||
<div id="DivOCxSurtir" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
<asp:UpdatePanel ID="UpOCxSurtir" 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="myModalLabel3">Conceptos por vincular</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel ID="UpDatosOCxSurtir" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:GridView ID="GvDatosOCxSurtir" CssClass="table table-advance table-striped table-hover Widthall" runat="server" AutoGenerateColumns="False" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="Producto/Servicio">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtCodigoPS" runat="server" Text='<%# Eval("CodigoPS")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Cantidad OC" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtCantidadOC" runat="server" Text='<%# Eval("CantidadOC")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Cantidad Compra" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtCantidadCompra" runat="server" Text='<%# Eval("CantidadCompra")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Pendiente" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtPendiente" runat="server" Text='<%# Eval("Pendiente")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
<%-- FIN OC X SURTIR --%>
|
||
|
||
<%-- MODAL DIRECCION ENVIO --%>
|
||
<div id="divAddDireccionEnvio" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
<asp:UpdatePanel ID="UpAddDireccion" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
<span aria-hidden="true">×</span>
|
||
</button>
|
||
<h4 class="modal-title" id="myModalLabel">Dirección de envío</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel ID="UpBodyDireccion" UpdateMode="Conditional" runat="server">
|
||
<ContentTemplate>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtEnvioContacto" runat="server" Width="100%" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RFVContacto" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtEnvioContacto" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Contacto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtEnvioContacto.ClientID.ToString()%>">Contacto:</label>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtEnvioDireccion" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtEnvioDireccion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Direccion''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtEnvioDireccion.ClientID.ToString()%>">Calle:</label>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input">
|
||
<asp:TextBox ID="TxtEnvioNoExt" runat="server" CssClass="form-control" MaxLength="15"></asp:TextBox>
|
||
<label for="<%= TxtEnvioNoExt.ClientID.ToString()%>">No. Ext. </label>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input">
|
||
<asp:TextBox ID="TxtEnvioNoInt" runat="server" CssClass="form-control" MaxLength="50"></asp:TextBox>
|
||
<label for="<%= TxtEnvioNoInt.ClientID.ToString()%>">No. Int.</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtEnvioColonia" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtEnvioColonia" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Colonia''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtEnvioColonia.ClientID.ToString()%>">Colonia:</label>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtEnvioCiudad" runat="server" Width="100%" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtEnvioCiudad" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Ciudad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtEnvioCiudad.ClientID.ToString()%>">Ciudad:</label>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtEnvioEstado" runat="server" Width="100%" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtEnvioEstado" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Estado''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtEnvioEstado.ClientID.ToString()%>">Estado:</label>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtEnvioCP" runat="server" Width="100%" CssClass="form-control" CausesValidation="true" TextMode="Number"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtEnvioCP" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Código Postal''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtEnvioCP.ClientID.ToString()%>">Código Postal:</label>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtEnvioTel" runat="server" Width="100%" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtEnvioTel" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Telefono''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>--%>
|
||
<ajax:MaskedEditExtender ID="MaskedEditExtender6" runat="server" TargetControlID="TxtEnvioTel" ClearMaskOnLostFocus="false" MaskType="None" Mask="(999) 999-9999" MessageValidatorTip="true" InputDirection="LeftToRight" ErrorTooltipEnabled="True"></ajax:MaskedEditExtender>
|
||
<label for="<%= TxtEnvioTel.ClientID.ToString()%>">Telefono:</label>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:CheckBox ID="ChkEstatus" runat="server" CssClass="form-control" Checked="true" />
|
||
<label for="<%= ChkEstatus.ClientID.ToString()%>">Estatus:</label>
|
||
</div>
|
||
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlClienteSucursalEnvio" runat="server" CssClass="form-control select2me" DataValueField="CveClienteSucursal" DataTextField="SucursalCliente"></asp:DropDownList>
|
||
<label for="<%= DdlClienteSucursalEnvio.ClientID.ToString()%>">Sucursal:</label>
|
||
</div>
|
||
<%--<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtDepartamento" runat="server" Width="100%" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||
<label for="<%= TxtDepartamento.ClientID.ToString()%>">Departamento:</label>
|
||
</div>--%>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
<div class="modal-footer">
|
||
<asp:UpdatePanel ID="UpFooter" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:LinkButton ID="BtnAgregarDireccion" runat="server" CssClass="btn btn-success" Text="Agregar" ValidationGroup="GrpObligatorio"></asp:LinkButton>
|
||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
<%-- FIN MODAL DIRECCION ENVIO--%>
|
||
|
||
<%-- MODAL OC X SUTIR--%>
|
||
<div id="DivOCVinculada" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
<asp:UpdatePanel ID="UpOCVinculada" 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="myModalLabel4">Compras Vinculados</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel ID="UpBodyOCVinculada" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<asp:GridView ID="GvOCVinculada" CssClass="table table-advance table-striped table-hover Widthall" runat="server" AutoGenerateColumns="False" GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="Producto/Servicio">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtCodigoPS" runat="server" Text='<%# Eval("CodigoPS")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:HyperLinkField DataTextField="FolioCompra" Target="_blank" HeaderText="Folio Compra" ControlStyle-CssClass="Texto" DataNavigateUrlFormatString="/Compras/Compras.aspx?CveCompra={0}" DataNavigateUrlFields="CveCompra" />
|
||
<asp:TemplateField HeaderText="Cantidad OC" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtCantidadOC" runat="server" Text='<%# Eval("CantidadOC")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Cantidad Compra" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtCantidadCompra" runat="server" Text='<%# Eval("CantidadCompra")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<%--<asp:TemplateField HeaderText="Pendiente" ItemStyle-HorizontalAlign="Right">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LtPendiente" runat="server" Text='<%# Eval("Pendiente")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>--%>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
<%-- FIN OC X SURTIR --%>
|
||
|
||
|
||
<asp:Button ID="BtnMostrarClasificaciones" runat="server" Style="visibility: hidden; display: none;" />
|
||
<asp:Button ID="BtnCerrarClasificaciones" runat="server" CssClass="btn btn-danger" Style="visibility: hidden; display: none;" />
|
||
|
||
<!-- ModalPopupExtender -->
|
||
<ajax:ModalPopupExtender ID="MPContrato" runat="server" PopupControlID="PanelContrato" TargetControlID="BtnMostrarClasificaciones"
|
||
CancelControlID="BtnCerrarClasificaciones" BackgroundCssClass="modalBackground">
|
||
</ajax:ModalPopupExtender>
|
||
|
||
|
||
<asp:Panel ID="PanelContrato" runat="server" CssClass="modalPopup" align="center" Style="display: none; padding: 10px;">
|
||
|
||
<asp:UpdatePanel ID="UpClasifTipo" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div id="AccionContrato" runat="server">
|
||
<p>
|
||
Tipo de Clasificación:
|
||
|
||
</p>
|
||
<asp:RadioButtonList ID="RblOpcionClasificacion" runat="server" CssClass="rbl" RepeatDirection="Vertical" RepeatLayout="Table">
|
||
<asp:ListItem Text="Compra de Material para Venta" Value="1"></asp:ListItem>
|
||
<asp:ListItem Text="Gastos o Compras Administrativas" Value="2"></asp:ListItem>
|
||
</asp:RadioButtonList>
|
||
|
||
<asp:LinkButton ID="BtnIniciarContrato" runat="server" CssClass="btn btn-success" Text="Aceptar" />
|
||
|
||
|
||
</div>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</asp:Panel>
|
||
<div id="DivAgregarPS" class="modal fade">
|
||
<div class="modal-dialog">
|
||
<asp:UpdatePanel ID="UpAgregarPS" runat="server" class="modal-content rowpadding" tabindex="-1" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header">
|
||
<h4>
|
||
<asp:Label Text="Agregar Producto/Servicio" ID="Label1" runat="server" />
|
||
</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtCodigo" CssClass="form-control " runat="server" MaxLength="50"></asp:TextBox>
|
||
<label class="truncate" for="<%= TxtCodigo.ClientID.ToString()%>">Número de Parte / Código:</label>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtPS" CssClass="form-control Mayuscula" runat="server" MaxLength="846"></asp:TextBox>
|
||
<label class="truncate" for="<%= TxtPS.ClientID.ToString()%>">Descripción del Producto / Servicio:</label>
|
||
<asp:RequiredFieldValidator ID="RFVPS" runat="server" ControlToValidate="TxtPS" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Producto Servicio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpNuevoPS"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCEPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVPS" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlTipoPS" CssClass="form-control input-sm select2me" runat="server" Width="206px" Height="22px">
|
||
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
||
<asp:ListItem Text="Producto" Value="2"></asp:ListItem>
|
||
<asp:ListItem Text="Servicio" Value="1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= DdlTipoPS.ClientID.ToString()%>">Tipo PS:</label>
|
||
<asp:RequiredFieldValidator ID="RFVTipoPS" runat="server" ControlToValidate="DdlTipoPS" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpNuevoPS"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCETipoPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoPS" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<i></i>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlUnidadMedida" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="false" CausesValidation="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" Width="206px">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= DdlUnidadMedida.ClientID.ToString()%>">Unidad de Medida:</label>
|
||
<asp:RequiredFieldValidator ID="RFVUnidadMedidaPS" runat="server" ControlToValidate="DdlUnidadMedida" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Unidad de Medida''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpNuevoPS"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCOUnidadMedidaPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVUnidadMedidaPS" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
<i></i>
|
||
</div>
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:DropDownList ID="DdlClasificacionPS" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="false" CausesValidation="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Width="206px">
|
||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||
</asp:DropDownList>
|
||
<label for="<%= DdlClasificacionPS.ClientID.ToString()%>">Clasificación Contable:</label>
|
||
<asp:RequiredFieldValidator ID="RFVClasiPS" runat="server" ControlToValidate="DdlClasificacionPS" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Clasificación Contable''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpNuevoPS"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="RFVClasiPS" Width="300px"></ajax:ValidatorCalloutExtender>
|
||
|
||
<i></i>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button ID="BtnAgregarPSNuevo" runat="server" Text="Agregar P/S" OnClick="BtnAgregarPS_Click" ClientIDMode="Static" CssClass="btn btn-danger" ValidationGroup="GrpNuevoPS" />
|
||
<button type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="ModalContrato" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog" style="width: 800px; !important">
|
||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpContrato" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">
|
||
<asp:Literal ID="Literal1" runat="server">Agregar Producto desde Contrato</asp:Literal></h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<div class="portlet-body rowpadding">
|
||
<div class="row">
|
||
<label class="col-md-1 ">Clientes:</label>
|
||
<div class="col-md-11">
|
||
<asp:DropDownList ID="DdlClientes" CssClass="form-control select2me" runat="server" AutoPostBack="true" Width="100%" AppendDataBoundItems="true" DataTextField="Nombre" DataValueField="CveCliente"></asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<label class="col-md-1 ">Contrato:</label>
|
||
<div class="col-md-11">
|
||
<asp:DropDownList ID="DdlContratos" CssClass="form-control select2me" runat="server" AutoPostBack="true" Width="100%" AppendDataBoundItems="true" DataTextField="ContratoCompleto" DataValueField="CveContrato">
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div class="row" id="DivProyecto" runat="server">
|
||
<asp:Label ID="LblProyecto" runat="server" class="col-md-1 ">Proyecto:</asp:Label>
|
||
<div class="col-md-11">
|
||
<asp:DropDownList ID="DdlProyectoContrato" CssClass="form-control select2me" runat="server" OnSelectedIndexChanged="DdlProyectoContrato_SelectedIndexChanged" Width="100%" AutoPostBack="true" AppendDataBoundItems="true" DataTextField="Proyecto" DataValueField="CveProyecto">
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<asp:Label ID="LblSubProyecto" runat="server" class="col-md-1 ">SubProyecto:</asp:Label>
|
||
<div class="col-md-11">
|
||
<asp:DropDownList ID="DdlSubProyectoContrato" CssClass="form-control select2me" runat="server" Width="100%" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto">
|
||
</asp:DropDownList>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="text-right col-md-offset-8 col-md-4">
|
||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvContratos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvContratos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<asp:GridView ID="GvContratos" ShowHeader="true" runat="server" AutoGenerateColumns="False" DataKeyNames="CvePS, CveUM, UM, Cantidad, PU, CodigoPS, CveContratoDetalle,CveClasificacion,ClasificacionPS" EmptyDataText="No se encontraron Productos registrados" ToolTip="Listado de Productos" CssClass="table table-striped table-advance table-hover mysmallbtn ScrollAD Widthall" data-sort="true" GridLines="None">
|
||
<Columns>
|
||
<%--<asp:BoundField HeaderText="Cliente OC" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Center" DataField="OCInterna" ItemStyle-Width="10%" />--%>
|
||
<%--<asp:BoundField HeaderText="Cant." HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Center" DataField="Cantidad" ItemStyle-Width="5%" />--%>
|
||
<asp:BoundField HeaderText="Unidad" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Center" DataField="UM" ItemStyle-Width="12%" />
|
||
<asp:BoundField HeaderText="Cve Interna" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Center" DataField="NoIdentificacion" ItemStyle-Width="12%" />
|
||
<asp:BoundField HeaderText="Producto" HeaderStyle-HorizontalAlign="Left" DataField="CodigoPS" ItemStyle-Width="58%" />
|
||
<%--<asp:BoundField HeaderText="Precio" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" DataField="PU" ItemStyle-Width="10%" DataFormatString="{0:c}" />--%>
|
||
<asp:TemplateField HeaderText="Cant." ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:TextBox runat="server" ID="TxtCantContrato" Width="40"></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumerosContrato" runat="server" TargetControlID="TxtCantContrato" ValidChars="." FilterType="Custom,Numbers" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField HeaderText="Precio" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
|
||
<ItemTemplate>
|
||
<asp:TextBox runat="server" ID="TxtPrecioContrato" Width="70" Text='<%# Eval("UltimoCosto")%>'></asp:TextBox>
|
||
<ajax:FilteredTextBoxExtender ID="SoloNumerosContrato2" runat="server" TargetControlID="TxtPrecioContrato" ValidChars="." FilterType="Custom,Numbers" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
</Columns>
|
||
</asp:GridView>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<asp:Button ID="BtnAgregarContrato" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="Agregar" />
|
||
<button id="BtnCancelarContrato" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
<%--CARGA EXCEL--%>
|
||
<div id="DivCargaExcelCotizaciones" 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">Cargar Cotizaciones</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="row v-center">
|
||
<div class="col-md-6 v-center">
|
||
<label class="col-md-6 v-center truncate">Proveedor:</label>
|
||
<div class="col-md-6 v-center">
|
||
<%--<asp:DropDownList ID="DdlProveedorCot" runat="server" Width="100%" CssClass="select2me" DataTextField="RazonSocial" DataValueField="CveProveedor"></asp:DropDownList>--%>
|
||
<ADS:Dropdownlost runat="server" ID="DdlProveedorCot" CssStyle="width: 100%;" CssClassDdl="select2me " DataTextField="NombreCortoProveedor" DataValueField="CveProveedor" />
|
||
|
||
<%-- <asp:RequiredFieldValidator ID="RFVProveedorExcel" runat="server" ControlToValidate="DdlProveedorCot" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Proveedor''</b> es necesario, por favor selecionarlo." ValidationGroup="GrpCargarExcel"></asp:RequiredFieldValidator>
|
||
<ajax:ValidatorCalloutExtender ID="VCProveedor" runat="server" HighlightCssClass="vco" TargetControlID="RFVProveedorExcel" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<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;">
|
||
<asp:TextBox ID="TxtExcelCot" 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:UpdatePanel ID="UpDescargar" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<asp:Button ID="BtnDescargarFormatoCot" OnClick="BtnDescargarFormatoCot_Click" runat="server" CssClass="btn btn-warning" Text="Descargar Formato" />
|
||
</ContentTemplate>
|
||
<Triggers>
|
||
<asp:PostBackTrigger ControlID="BtnDescargarFormatoCot" />
|
||
</Triggers>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="col-md-10" style="text-align: right">
|
||
<asp:UpdatePanel runat="server">
|
||
<ContentTemplate>
|
||
<asp:Button ID="BtnCargaExcelCot" runat="server" OnClick="BtnCargaExcelCot_Click" CssClass="btn btn-success" Text="Aceptar" ValidationGroup="GrpCargarExcel"></asp:Button>
|
||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="DivCambiarMoneda" class="modal ADS fade">
|
||
<div class="modal-dialog">
|
||
<asp:UpdatePanel ID="UpdatePanel3" runat="server" class="modal-content rowpadding" tabindex="-1" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4>
|
||
<asp:Label Text="Cambiar Moneda" ID="LblCambioMonedaTitle" runat="server" />
|
||
</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<asp:UpdatePanel ID="UpCambiarMonedaBody" UpdateMode="Conditional" runat="server">
|
||
<ContentTemplate>
|
||
<div class="row" style="width: 100%">
|
||
<label class="col-md-1" style="width: 100%">Desea Cambiar el Tipo de Moneda:</label>
|
||
</div>
|
||
<br />
|
||
<div class="row" runat="server" id="DivTCRow" style="width: 100%">
|
||
<label class="col-md-3">Tipo de Cambio:</label>
|
||
<div class="col-md-3">
|
||
<asp:TextBox ID="TxtTCCambioMoneda" runat="server" Width="100%" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<%--data-toggle="confirmation" data-btn-ok-label="Si" data-title="Está seguro que desea cancelar la orden de compra?"--%>
|
||
<asp:Button ID="BtnCambiarMoneda" runat="server" Text="Aplicar Cambio" ClientIDMode="Static" CssClass="btn btn-success" ValidationGroup="GrpCancelarCompra" />
|
||
<button type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
<script src="/Metronic/assets/global/plugins/dropzone/dropzone.js"></script>
|
||
</asp:Content>
|
||
<asp:Content ID="Content4" ContentPlaceHolderID="JS" runat="server">
|
||
<script src="/Metronic/assets/global/plugins/jquery.pulsate.min.js"></script>
|
||
<script type="text/javascript">
|
||
|
||
$(document).ready(function () {
|
||
$('#<%= TxtSAImPorcentaje.ClientID%>').keyup(function () {
|
||
console.log($(this).val());
|
||
var importe = (ToDouble($(this).val()) / 100) * ToDouble($get("LblTotal").value.replace(",", ""));
|
||
$('#<%= TxtSAImporte.ClientID%>').val(FormatoNumero(importe, 2).replace(",", ""));
|
||
});
|
||
$('#<%= TxtSAImporte.ClientID%>').keyup(function () {
|
||
var importe = (100 * ToDouble($(this).val())) / ToDouble($get("LblTotal").value.replace(",", ""));
|
||
$('#<%= TxtSAImPorcentaje.ClientID%>').val(FormatoNumero(importe, 2).replace(",", ""));
|
||
});
|
||
|
||
$get('HdnWidth').value = $("#DivConceptosContenido").width();
|
||
|
||
});
|
||
|
||
function showDivEC(CveCotizacion) {
|
||
$('#<%=TxtMotivoEliminacion.ClientID%>').val("");
|
||
$('#divEliminarCotizacion').modal();
|
||
$get('HdnCveCotizacion').value = CveCotizacion;
|
||
}
|
||
function hideDivEC() {
|
||
$('#divEliminarCotizacion').modal('hide');
|
||
}
|
||
function fncCE(t) {
|
||
if (t.value == 4) {
|
||
$get('divCE').style.display = '';
|
||
PosicionaObjeto(t.id, 'divCE');
|
||
$get('ImgE').style.display = 'none';
|
||
}
|
||
else {
|
||
$get('divCE').style.display = 'none';
|
||
$get('ImgE').style.display = '';
|
||
}
|
||
|
||
}
|
||
function fncCan(t) {
|
||
|
||
if (t.value != '') {
|
||
$get('BtnCancelar').disabled = false;
|
||
}
|
||
else {
|
||
$get('BtnCancelar').disabled = true;
|
||
}
|
||
}
|
||
|
||
|
||
function myItemSelectedHandler(source, eventArgs) {
|
||
|
||
alert(eventArgs.get_value());
|
||
|
||
}
|
||
|
||
function SetText(ObjFrom, ObjTo) {
|
||
ObjTo.value = ObjFrom.value;
|
||
}
|
||
|
||
function CargaDatosCotizaciones() {
|
||
$('#btnCargaCotizaciones').click();
|
||
return true;
|
||
}
|
||
|
||
|
||
function obtenertotal() {
|
||
var total = 0;
|
||
|
||
total = $get('txtPrecioUnitario').value.replace(",", "") * 1;
|
||
total = total * $get('TxtCant').value.replace(",", "") * 1;
|
||
$get("Total").value = FormatoNumero(total, 2);
|
||
$get("TxtImporte").value = FormatoNumero(total, 2);
|
||
}
|
||
|
||
function show(div_id, width, height) {
|
||
//Generar URL para thickbox
|
||
var thickboxURL = "#TB_inline?height=" + height + "&width=" + width + "&inlineId=" + div_id + ""; //&modal=true
|
||
//Llamar a método de thickbox que muestra un popup con la URL generada
|
||
tb_show(null, thickboxURL, null);
|
||
}
|
||
|
||
function pageLoad() {
|
||
var isAsyncPostback = Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack();
|
||
if (isAsyncPostback) {
|
||
tb_init('a.thickbox');
|
||
}
|
||
|
||
}
|
||
|
||
function CargaProveedor(CveProveedor) {
|
||
$get("HdnCveProveedor").value = CveProveedor;
|
||
$('#BtnBuscarProveedor').click();
|
||
return true;
|
||
}
|
||
|
||
function CargaActivoFijo(CveAF, Codigo) {
|
||
$get("HdnCveActivoFijo").value = CveAF;
|
||
$get("HdnCodigoAF").value = Codigo;
|
||
$('#BtnVinculaAF').click();
|
||
}
|
||
|
||
function CargaActivoFijoEdit(CveAF, Codigo, ri) {
|
||
debugger;
|
||
$get("C_Tab_TabC_GvD_HdnCveActivoFijo_" + ri).value = CveAF;
|
||
$get("C_Tab_TabC_GvD_HdnCodigoAF_" + ri).value = Codigo;
|
||
$get("C_Tab_TabC_GvD_LblEditCodigo_" + ri).value = Codigo;
|
||
}
|
||
|
||
var H1 = "";
|
||
var H2 = "";
|
||
var T = "";
|
||
|
||
function EnterAFEdit(event, Txt, Hdn1, Hdn2) {
|
||
if (event.which == 13 || event.keyCode == 13) {
|
||
H1 = Hdn1;
|
||
H2 = Hdn2;
|
||
T = Txt;
|
||
|
||
$get("HdnCodAFEdit").value = Txt.value;
|
||
|
||
$('#BtnVinculaAFEdit').click();
|
||
}
|
||
}
|
||
|
||
|
||
function AFBlurEdit(Txt, Hdn1, Hdn2) {
|
||
H1 = Hdn1;
|
||
H2 = Hdn2;
|
||
T = Txt;
|
||
|
||
$get("HdnCodAFEdit").value = Txt.value;
|
||
|
||
$('#BtnVinculaAFEdit').click();
|
||
}
|
||
|
||
function EnterAFEditOK(Cve, Codigo) {
|
||
debugger;
|
||
$get(H1.id).value = Cve;
|
||
$get(H2.id).value = Codigo;
|
||
$get(T.id).value = (Codigo == -1) ? "" : Codigo;
|
||
}
|
||
|
||
function EnterAF(event) {
|
||
if (event.which == 13 || event.keyCode == 13) {
|
||
$get("HdnCveActivoFijo").value = -2;
|
||
$('#BtnVinculaAF').click();
|
||
}
|
||
}
|
||
|
||
|
||
//Subir archivo
|
||
function uploadComplete() {
|
||
$get("HdnArchivoEstatus").value = "ok";
|
||
alert("El Archivo se guardó correctamente.");
|
||
}
|
||
function uploadError() {
|
||
$get("HdnArchivoEstatus").value = "error";
|
||
alert("Ocurrió un error al intentar subir el archivo, por favor intentelo de nuevo.");
|
||
}
|
||
|
||
function AFBlur() {
|
||
$get("HdnCveActivoFijo").value = -2;
|
||
$('#BtnVinculaAF').click();
|
||
}
|
||
|
||
function SumaTotal() {
|
||
debugger;
|
||
var subtotal = ToDouble($get("LblSubTotal").innerText);
|
||
var porcentajeIVA = $get('#C_Tab_TabC_DdlIVA option:selected') == null ? 0 : ToDouble($('#C_Tab_TabC_DdlIVA option:selected').val());
|
||
var descuento = $get("TxtDescuento") == null ? 0 : ToDouble($get("TxtDescuento").value);
|
||
var iva = $get("TxtIVA") == null ? 0 : ToDouble($get("TxtIVA").value);
|
||
var iva2 = $get("LblIVA") == null ? 0 : ToDouble($get("LblIVA").innerText);
|
||
iva = iva2 > iva ? iva2 : iva;
|
||
var retiva = $get("TxtRetIVA") == null ? 0 : ToDouble($get("TxtRetIVA").value);
|
||
var retisr = $get("TxtRetISR") == null ? 0 : ToDouble($get("TxtRetISR").value);
|
||
var ieps = $get("TxtIEPS") == null ? 0 : ToDouble($get("TxtIEPS").value);
|
||
|
||
//if (ieps > 0)
|
||
//var ivac = (subtotal - descuento + ieps) * ((porcentajeIVA -1) > 0? porcentajeIVA -1 : 0.16);
|
||
|
||
//if ($get("TxtIVA").value > 0) {
|
||
// $get("TxtIVA").value = FormatoNumero( iva, 2) ;
|
||
//}else{
|
||
// $get("LblIVA").innerText = FormatoNumero( iva, 2) ;
|
||
//}
|
||
|
||
$get("LblTotal").value = FormatoNumero(subtotal - descuento + iva + ieps - retiva - retisr, 2);
|
||
}
|
||
|
||
//RETENCIONES
|
||
function AplicaRetIVAGeneral() {
|
||
if (ToDouble($get("TxtRetIVA").value) != ToDouble($get("HdnRetIVA").value)) {
|
||
//var r = confirm("¿Esta seguro de aplicar el descuento en general?");
|
||
bootbox.confirm("¿Esta seguro de aplicar el RetIVA en general?", function (result) {
|
||
if (result == true) {
|
||
$('#BtnAplicarRetIVA').click();
|
||
$get("HdnRetIVA").value = $get("TxtRetIVA").value;
|
||
} else {
|
||
$('#BtnLimpiarRetIVA').click();
|
||
$get("TxtRetIVA").value = "0.00"
|
||
}
|
||
});
|
||
}
|
||
}
|
||
|
||
function AplicaRetISRGeneral() {
|
||
if (ToDouble($get("TxtRetISR").value) != ToDouble($get("HdnRetISR").value)) {
|
||
//var r = confirm("¿Esta seguro de aplicar el descuento en general?");
|
||
bootbox.confirm("¿Esta seguro de aplicar el RetISR en general?", function (result) {
|
||
if (result == true) {
|
||
$('#BtnAplicarRetISR').click();
|
||
$get("HdnRetISR").value = $get("TxtRetISR").value;
|
||
} else {
|
||
$('#BtnLimpiarRetISR').click();
|
||
$get("TxtRetISR").value = "0.00"
|
||
}
|
||
});
|
||
}
|
||
}
|
||
|
||
//DESCUENTOS
|
||
function AplicaDescuentoGeneral() {
|
||
if (ToDouble($get("TxtDescuento").value) != ToDouble($get("HdnDescuento").value)) {
|
||
//var r = confirm("¿Esta seguro de aplicar el descuento en general?");
|
||
bootbox.confirm("¿Esta seguro de aplicar el descuento en general?", function (result) {
|
||
if (result == true) {
|
||
$('#BtnAplicarDescuento').click();
|
||
$get("HdnDescuento").value = $get("TxtDescuento").value;
|
||
} else {
|
||
$('#BtnLimpiarDescuento').click();
|
||
$get("TxtDescuento").value = "0.00"
|
||
}
|
||
});
|
||
}
|
||
}
|
||
|
||
function ValidaDescuento() {
|
||
if (ToDouble($get("TxtDescuento").value) > ToDouble($get("LblSubTotal").innerText)) {
|
||
$get("TxtDescuento").value = $get("LblSubTotal").innerText
|
||
}
|
||
}
|
||
|
||
function ValidaDescuentoDetalle(descuento, importe) {
|
||
if (ToDouble(descuento.value) > ToDouble(importe.value)) {
|
||
descuento.value = importe.value
|
||
}
|
||
}
|
||
|
||
|
||
//PRESUPUESTO EGRESOS POR EJERCICIO
|
||
var EjercicioAC = 0;
|
||
function CambiaFecha() {
|
||
var Ejercicio = $get('TxtFecha').value.substring(6, 10);
|
||
|
||
if (Ejercicio > 2000 && Ejercicio != EjercicioAC) {
|
||
$get("BtnCambiaFecha").click();
|
||
EjercicioAC = Ejercicio;
|
||
}
|
||
}
|
||
|
||
|
||
//Cancelar Compra
|
||
function ShowDivCancelarCompra() {
|
||
$('#<%= TxtFechaCancelacion.ClientID%>').val($get("TxtFecha").value);
|
||
$('#DivCancelarCompra').modal();
|
||
}
|
||
function HideDivCancelarCompra() {
|
||
$('#DivCancelarCompra').modal('hide');
|
||
}
|
||
|
||
$("[data-toggle=popover]").popover({
|
||
html: true,
|
||
title: function () {
|
||
return $('#popover-title').html();
|
||
}
|
||
});
|
||
|
||
function ValidaGuardar() {
|
||
$('.popover').remove();
|
||
$("#C_BtnGuardar").removeAttr("aria-describedby");
|
||
setTimeout(
|
||
function () {
|
||
var Text = '';
|
||
|
||
if ($get('C_lblFolio').innerText.substring(0, 3) == 'OC ') {
|
||
Text = '<b> Orden Compra</b><br/><br/>';
|
||
} else if ($get('C_lblFolio').innerText.substring(0, 3) == 'REQ') {
|
||
Text = '<b> Requisición</b><br/><br/>';
|
||
}
|
||
|
||
if ($("#C_DdlProveedores").length) {
|
||
if (ToDouble($("#C_DdlProveedores option:selected").val()) > 0) {
|
||
Text += '<b>Proveedor:</b> ' + $("#C_DdlProveedores option:selected").text() + '<br/>';
|
||
}
|
||
}
|
||
|
||
if ($("#C_Ddlcliente").length) {
|
||
if (ToDouble($("#C_Ddlcliente option:selected").val()) > 0) {
|
||
Text += '<b>Cliente:</b> ' + $("#C_Ddlcliente option:selected").text() + '<br/>';
|
||
}
|
||
}
|
||
|
||
if ($("#C_DdlVendedor").length) {
|
||
if (ToDouble($("#C_DdlVendedor option:selected").val()) > 0) {
|
||
Text += '<b>Vendedor:</b> ' + $("#C_DdlVendedor option:selected").text() + '<br/>';
|
||
}
|
||
}
|
||
|
||
if ($("#TxtFecha").length) {
|
||
Text += '<b>Fecha:</b> ' + $get("TxtFecha").value + '<br/>';
|
||
}
|
||
|
||
if ($("#LblTotal").length) {
|
||
Text += '<b>Total:</b> ' + $get("LblTotal").value + '<br/>';
|
||
}
|
||
|
||
$('.popover-title').html(Text);
|
||
}, 10);
|
||
}
|
||
|
||
//EXISTENCIAS ALMACEN
|
||
$('.DdlPS').on("select2:open", function (e) { $('.select2-container.select2-container--default .select2-dropdown .select2anothertable').remove(); });
|
||
$("body").on("mouseenter", ".select2-container.select2-container--default.select2-container--open .select2-dropdown li", function (event) {
|
||
var $this = $(this);
|
||
var ind = $this.index();
|
||
$(".select2-container.select2-container--default.select2-container--open .select2-dropdown .select2anothertable tr.active").removeClass('active');
|
||
$(".select2-container.select2-container--default.select2-container--open .select2-dropdown .select2anothertable tr:nth-child(" + (ind + 2) + ")").addClass('active');
|
||
//log($this);
|
||
});
|
||
var scrollfuncion = function () {
|
||
var stop = this.scrollTop;
|
||
$(".select2-container.select2-container--default.select2-container--open .select2-dropdown .select2anothertable").scrollTop(stop);
|
||
}
|
||
|
||
function CargaExistenciaAlmacenes(data, params) {
|
||
var div = $('<div class="select2anothertable"></div>');
|
||
$('.select2-container.select2-container--default.select2-container--open .select2-dropdown .select2anothertable').remove();
|
||
$('.select2-container.select2-container--default.select2-container--open .select2-dropdown').prepend(div);
|
||
var table = $('<table></table>'); div.append(table);
|
||
var tbody = $('<tbody></tbody>'); table.append(tbody);
|
||
$(".select2-container--default .select2-results>.select2-results__options").off("scroll", scrollfuncion);
|
||
$(".select2-container--default .select2-results>.select2-results__options").scroll(scrollfuncion);
|
||
var indexd = 0;
|
||
data.forEach(function (item) {
|
||
if (indexd == 0) {
|
||
var tr = $('<tr></tr>'); tbody.append(tr);
|
||
var td;
|
||
for (var key in item) {
|
||
if (!(key == "text" || key == "id"))
|
||
{ td = $('<td style="font-weight:bold;">' + key + '</td>'); tr.append(td); }
|
||
}
|
||
}
|
||
var tr = $('<tr></tr>'); tbody.append(tr);
|
||
|
||
var td;
|
||
for (var key in item) {
|
||
if (!(key == "text" || key == "id"))
|
||
{ td = $('<td ' + ((item[key] > 0) ? 'style = "font-weight:bold;"' : '') + '>' + item[key] + '</td>'); tr.append(td); }
|
||
}
|
||
indexd += 1;
|
||
});
|
||
}
|
||
|
||
|
||
$('#<%= DdlSAUsuario.ClientID %>').html();
|
||
|
||
/**
|
||
* VALIDA QUE LA CANTIDAD MODIFICADA (t) SEA MAYOR A LA CANTIDAD LIMITADA (c)
|
||
* @param t Txt
|
||
* @param c Cantidad
|
||
*/
|
||
function ValidarCantidadMenor(t, c) {
|
||
t.value = (t.value > c ? t.value : c)
|
||
}
|
||
|
||
|
||
</script>
|
||
|
||
|
||
</asp:Content>
|