-nerge
This commit is contained in:
240
OC/OC.aspx
240
OC/OC.aspx
@@ -1,4 +1,5 @@
|
|||||||
<%@ Import Namespace="Extensiones" %>
|
<%@ Import Namespace="Extensiones" %>
|
||||||
|
|
||||||
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="OC.aspx.vb" EnableEventValidation="false" Inherits="OC_OC" %>
|
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="OC.aspx.vb" EnableEventValidation="false" Inherits="OC_OC" %>
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="H" runat="Server">
|
<asp:Content ID="Content1" ContentPlaceHolderID="H" runat="Server">
|
||||||
@@ -39,7 +40,7 @@
|
|||||||
<asp:LinkButton ID="LnkCambiarMoneda" Visible="False" runat="server"><i class='fa fa-money'></i>Cambiar Moneda</asp:LinkButton>
|
<asp:LinkButton ID="LnkCambiarMoneda" Visible="False" runat="server"><i class='fa fa-money'></i>Cambiar Moneda</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkDescargarDetalleExcel" Visible="False" runat="server" OnClick="LnkDescargarDetalleExcel_Click"><i class='fa fa-excel'></i> Descargar Partidas</asp:LinkButton>
|
<asp:LinkButton ID="LnkDescargarPSExcel" Visible="False" runat="server" OnClick="LnkDescargarPSExcel_Click"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i>Descargar códigos proveedor</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
<li style="text-align: left!important" runat="server" id="LiLnkGuias" visible="true">
|
<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>
|
<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>
|
||||||
@@ -49,7 +50,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
<Triggers>
|
<Triggers>
|
||||||
<asp:PostBackTrigger ControlID="LnkDescargarDetalleExcel" />
|
<asp:PostBackTrigger ControlID="LnkDescargarPSExcel" />
|
||||||
</Triggers>
|
</Triggers>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
@@ -209,7 +210,9 @@
|
|||||||
<asp:Label runat="server" ID="lblFolio" Font-Bold="true"></asp:Label>
|
<asp:Label runat="server" ID="lblFolio" Font-Bold="true"></asp:Label>
|
||||||
</label>
|
</label>
|
||||||
<b>
|
<b>
|
||||||
<asp:Label runat="server" ID="LblPrioridad" Text="Prioridad:" class="col-md-2" /></b>
|
|
||||||
|
<asp:Label runat="server" ID="LblPrioridad" Text="Prioridad:" class="col-md-2" />
|
||||||
|
</b>
|
||||||
<div class="col-md-4" id="DivPrioridad" runat="server">
|
<div class="col-md-4" id="DivPrioridad" runat="server">
|
||||||
<asp:DropDownList ID="DdlPrioridad" CssClass="select2me" runat="server" Width="150px">
|
<asp:DropDownList ID="DdlPrioridad" CssClass="select2me" runat="server" Width="150px">
|
||||||
<asp:ListItem Selected="True" Text="-" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="-" Value="-1"></asp:ListItem>
|
||||||
@@ -217,12 +220,10 @@
|
|||||||
<asp:ListItem Text="Media" Value="2"></asp:ListItem>
|
<asp:ListItem Text="Media" Value="2"></asp:ListItem>
|
||||||
<asp:ListItem Text="Baja" Value="3"></asp:ListItem>
|
<asp:ListItem Text="Baja" Value="3"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
|
|
||||||
<asp:DropDownList ID="DdlSubProyectoGral" Visible="false" CssClass="form-control select2me" runat="server" Width="85%" DataTextField="SubProyecto" DataValueField="CveSubProyecto"
|
<asp:DropDownList ID="DdlSubProyectoGral" Visible="false" CssClass="form-control select2me" runat="server" Width="85%" DataTextField="SubProyecto" DataValueField="CveSubProyecto"
|
||||||
OnSelectedIndexChanged ="DdlSubProyectoGral_SelectedIndexChanged" AutoPostBack="true" CausesValidation="true">
|
OnSelectedIndexChanged="DdlSubProyectoGral_SelectedIndexChanged" AutoPostBack="true">
|
||||||
|
<asp:ListItem Selected="True" Text="-" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RFVSubProyectoGral" runat="server" ControlToValidate="DdlSubProyectoGral" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Sucursal''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VCESubProyectoGral" runat="server" Enabled="True" HighlightCssClass="vco" TargetControlID="RFVSubProyectoGral" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
@@ -264,7 +265,8 @@
|
|||||||
<%--linea 5--%>
|
<%--linea 5--%>
|
||||||
<div class="row" style="padding-bottom: 0.6em;">
|
<div class="row" style="padding-bottom: 0.6em;">
|
||||||
<b>
|
<b>
|
||||||
<asp:Label runat="server" ID="LblFechaEstimada" Text="F. Estimada:" class="col-md-2" /></b>
|
<asp:Label runat="server" ID="LblFechaEstimada" Text="F. Estimada:" class="col-md-2" />
|
||||||
|
</b>
|
||||||
<div class="col-md-4" id="DivFechaEstimada" runat="server">
|
<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;">
|
<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:TextBox ID="TxtFechaEstimadaEntrega" runat="server" ClientIDMode="Static" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
@@ -282,13 +284,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<label class="col-md-2" runat="server" id="DivLugarEntrega1">Lugar Entrega:</label>
|
<label class="col-md-2" runat="server" id="DivLugarEntrega1">Lugar Entrega:</label>
|
||||||
<div class="col-md-4" runat="server" id="DivLugarEntrega2">
|
<div class="col-md-4" runat="server" id="DivLugarEntrega2">
|
||||||
<asp:UpdatePanel ID="UPPLugarEntrega" runat="server" updatemode="Conditional">
|
<asp:UpdatePanel ID="UPPLugarEntrega" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:CheckBox runat="server" ID="chkSubProyectoEntrega" Visible="false" AutoPostBack="true" OnCheckedChanged="chkSubProyectoEntrega_CheckedChanged" />
|
<asp:CheckBox runat="server" ID="chkSubProyectoEntrega" Visible="false" AutoPostBack="true" OnCheckedChanged="chkSubProyectoEntrega_CheckedChanged" />
|
||||||
<asp:DropDownList ID="DdlSubProyectoEntrega" CssClass=" form-control input-sm select2me" runat="server" DataTextField="SubProyecto" Style="width: 80%;" DataValueField="CveSubProyecto" Visible="false">
|
<asp:DropDownList ID="DdlSubProyectoEntrega" CssClass=" form-control input-sm select2me" runat="server" DataTextField="SubProyecto" Style="width: 80%;" DataValueField="CveSubProyecto" Visible="false">
|
||||||
<asp:ListItem Selected="true" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="true" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:TextBox ID="txtLugarEntrega" runat="server" MaxLength="100" Style="width: 80%;" ></asp:TextBox>
|
<asp:TextBox ID="txtLugarEntrega" runat="server" MaxLength="100" Width="80%"></asp:TextBox>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
@@ -296,13 +298,14 @@
|
|||||||
<div class="row" runat="server" visible="False" id="TrCancelacion">
|
<div class="row" runat="server" visible="False" id="TrCancelacion">
|
||||||
<label class="col-md-2">Cancelacion:</label>
|
<label class="col-md-2">Cancelacion:</label>
|
||||||
<div class="col-md-4">
|
<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>
|
<asp:TextBox ID="TxtMotivoCancelacion" CssClass="form-control input-sm" runat="server" Enabled="false" Width="365px" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%--linea 6--%>
|
<%--linea 6--%>
|
||||||
<asp:UpdatePanel ID="UPProv" runat="server" UpdateMode="Conditional" RenderMode="Inline" style="class=Row">
|
<asp:UpdatePanel ID="UPProv" runat="server" UpdateMode="Conditional" RenderMode="Inline" style="class=row">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div id="PnlProveedor" runat="server" style="padding-bottom: 0.6em;">
|
<div id="PnlProveedor" runat="server" style="padding-bottom: 0.6em;">
|
||||||
|
|
||||||
@@ -399,17 +402,18 @@
|
|||||||
|
|
||||||
<asp:UpdatePanel ID="uppEstatus" runat="server" class="portlet-body form" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="uppEstatus" runat="server" class="portlet-body form" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<table style="text-align: left" width="100%">
|
<table style="text-align: left">
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>Estatus:</b></td>
|
<td><b>Estatus:</b></td>
|
||||||
<td>
|
<td>
|
||||||
<asp:Label ID="LblMsgEstatus" runat="server" Text="" Font-Size="6pt" Font-Italic="True" ForeColor="Red"></asp:Label>
|
<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="100%" style="min-width:104px;"></asp:DropDownList>
|
<asp:DropDownList ID="CboE" CssClass="form-control input-sm" runat="server" AutoPostBack="true" DataTextField="Estatus" DataValueField="CveEstatus" Width="100%" Style="min-width: 104px;"></asp:DropDownList>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr runat="server" id="TrPendientes">
|
<tr runat="server" id="TrPendientes">
|
||||||
<td colspan="2"><strong><b>
|
<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>
|
<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>
|
||||||
@@ -443,11 +447,13 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><b>Capturó:</b></td>
|
<td><b>Capturó:</b></td>
|
||||||
<td>
|
<td>
|
||||||
<asp:Label ID="lblNombreUsuario" runat="server"></asp:Label></td>
|
<asp:Label ID="lblNombreUsuario" runat="server"></asp:Label>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<asp:CheckBox ID="ChkCotizacion" data-size="small" runat="server" Text="Requiere Cotización" AutoPostBack="true" /></td>
|
<asp:CheckBox ID="ChkCotizacion" data-size="small" runat="server" Text="Requiere Cotización" AutoPostBack="true" />
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="TrUsuarioAsignado" runat="server" visible="False">
|
<tr id="TrUsuarioAsignado" runat="server" visible="False">
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
@@ -484,23 +490,20 @@
|
|||||||
<tr id="TrDescuentoEscalonado" runat="server" visible="false">
|
<tr id="TrDescuentoEscalonado" runat="server" visible="false">
|
||||||
<td><b>Descuento:</b></td>
|
<td><b>Descuento:</b></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="row">
|
<asp:TextBox ID="TxtDescuentoEscalonado" runat="server" Width="80px" Height="28px"></asp:TextBox>
|
||||||
<div class="col-md-6">
|
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtDescuentoEscalonado" ValidChars="1234567890+." />
|
||||||
<asp:TextBox ID="TxtDescuentoEscalonado" runat="server" Width="75px" CssClass="form-control input-sm"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtDescuentoEscalonado" ValidChars="1234567890+." /></div>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<asp:Button runat="server" ID="BtnDescuenEscalonado" Text="Aplicar" CssClass="btn btn-primary" OnClick="BtnDescuenEscalonado_Click" />
|
<asp:Button runat="server" ID="BtnDescuenEscalonado" Text="Aplicar" CssClass="btn btn-primary" OnClick="BtnDescuenEscalonado_Click" />
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="TrDescuentoProntoPago" runat="server" visible="false">
|
<tr id="TrDescuentoProntoPago" runat="server" visible="false">
|
||||||
<td><b>%Pronto Pago:</b></td>
|
<td><b>%Desc. Pronto Pago:</b></td>
|
||||||
<td>
|
<td>
|
||||||
<asp:TextBox ID="TxtPorcentajeProntoPago" CssClass="form-control input-sm" runat="server" MaxLength="50" Width="75px" ></asp:TextBox>
|
<asp:TextBox ID="TxtPorcentajeProntoPago" CssClass="form-control " runat="server" MaxLength="50" Width="80px" Height="28px"></asp:TextBox>
|
||||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtPorcentajeProntoPago" ValidChars="1234567890." />
|
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtPorcentajeProntoPago" ValidChars="1234567890." />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
@@ -531,7 +534,9 @@
|
|||||||
<Columns>
|
<Columns>
|
||||||
|
|
||||||
<asp:HyperLinkField DataNavigateUrlFields="CveIE" HeaderText="Folio" DataNavigateUrlFormatString="~/Bancos/IE.aspx?CveIE={0}" DataTextField="Folio" Target="_blank" />
|
<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>
|
<asp:BoundField DataField="Importe" HeaderText="Importe" DataFormatString="{0:C}">
|
||||||
|
<ItemStyle HorizontalAlign="Right" />
|
||||||
|
</asp:BoundField>
|
||||||
|
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
@@ -607,11 +612,11 @@
|
|||||||
<asp:BoundField DataField="Estatus" HeaderText="Estatus" ControlStyle-Width="30%"></asp:BoundField>
|
<asp:BoundField DataField="Estatus" HeaderText="Estatus" ControlStyle-Width="30%"></asp:BoundField>
|
||||||
<asp:TemplateField HeaderText="Usuario">
|
<asp:TemplateField HeaderText="Usuario">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<label class="truncate" style="width: 80px;" title="<%# Eval("Usuario") %>">
|
<label class="truncate" style="width: 100px;" title="<%# Eval("Usuario") %>">
|
||||||
<asp:Literal ID="LblUsuario" runat="server" Text='<%# Eval("Usuario")%>'></asp:Literal>
|
<asp:Literal ID="LblUsuario" runat="server" Text='<%# Eval("Usuario")%>'></asp:Literal>
|
||||||
</label>
|
</label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<ItemStyle Width="40%" />
|
<ItemStyle Width="50%" />
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Fecha">
|
<asp:TemplateField HeaderText="Fecha">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -661,7 +666,7 @@
|
|||||||
Cliente:
|
Cliente:
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<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>
|
<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>
|
<%-- <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>--%>
|
<ajax:ValidatorCalloutExtender ID="VCECliente" runat="server" HighlightCssClass="vco" TargetControlID="RVCliente" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||||||
</div>
|
</div>
|
||||||
@@ -823,13 +828,16 @@
|
|||||||
<th scope="col">Total</th>
|
<th scope="col">Total</th>
|
||||||
<th scope="col">Comandos</th>
|
<th scope="col">Comandos</th>
|
||||||
<th scope="col">
|
<th scope="col">
|
||||||
<asp:Label ID="lblTipoPadreHijo" runat="server" Visible="false"></asp:Label></th>
|
<asp:Label ID="lblTipoPadreHijo" runat="server" Visible="false"></asp:Label>
|
||||||
|
</th>
|
||||||
<th scope="col">
|
<th scope="col">
|
||||||
<asp:Label Text="Compra" ID="LblCompra" runat="server" Visible="false"></asp:Label></th>
|
<asp:Label Text="Compra" ID="LblCompra" runat="server" Visible="false"></asp:Label>
|
||||||
|
</th>
|
||||||
|
<th scope="col"></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="trAddDetalle" runat="server">
|
<tr id="trAddDetalle" runat="server">
|
||||||
<td>
|
<td>
|
||||||
<asp:TextBox ID="TxtCant" runat="server" CssClass=" form-control input-sm " Width="46px" Height="24px" ClientIDMode="Static"></asp:TextBox>
|
<asp:TextBox ID="TxtCant" TabIndex="1" onkeypress="DisableEnterKey(event);" 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="." />
|
<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>
|
<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>
|
<ajax:ValidatorCalloutExtender ID="VCEDecCantidad" runat="server" HighlightCssClass="vco" TargetControlID="CVCant" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
@@ -852,7 +860,8 @@
|
|||||||
<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>
|
<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>
|
||||||
<td>
|
<td>
|
||||||
<asp:TextBox ID="TxtObsPS" CssClass=" form-control input-sm txtobs" runat="server" Rows="2" TextMode="MultiLine" MaxLength="750"></asp:TextBox></td>
|
<asp:TextBox ID="TxtObsPS" CssClass=" form-control input-sm txtobs" runat="server" Rows="2" TextMode="MultiLine" MaxLength="750"></asp:TextBox>
|
||||||
|
</td>
|
||||||
<td runat="server" id="TdProyectoSubPrpyectoDdl">
|
<td runat="server" id="TdProyectoSubPrpyectoDdl">
|
||||||
<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 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>
|
||||||
@@ -887,7 +896,8 @@
|
|||||||
<asp:TextBox ID="LblCodigo" runat="server" Text="" onkeyup="EnterAF(event);" onblur="AFBlur();" ClientIDMode="Static" Width="40px" ValidationGroup="GrpDetalleGuardar"></asp:TextBox>
|
<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>
|
<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>
|
<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>
|
<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>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
@@ -905,7 +915,7 @@
|
|||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
<asp:TextBox ID="txtPrecioUnitario" ClientIDMode="Static" runat="server" Width="55px" Height="24px"></asp:TextBox>
|
<asp:TextBox ID="txtPrecioUnitario" ClientIDMode="Static" runat="server" Width="55px" Height="24px" onkeypress="setFocus(event,'LbAgregar');"></asp:TextBox>
|
||||||
<ajax:FilteredTextBoxExtender ID="SoloNumerosPU" runat="server" TargetControlID="txtPrecioUnitario" FilterType="Custom, Numbers" ValidChars="." />
|
<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>
|
<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>
|
<ajax:ValidatorCalloutExtender ID="VCOPU" runat="server" HighlightCssClass="vco" TargetControlID="CVPU" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
@@ -925,12 +935,8 @@
|
|||||||
<%-- IVA--%>
|
<%-- IVA--%>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="text-align: right; padding-right: 7px; width:70px" runat="server" id="TdRetIVA" visible="false" >
|
<td style="text-align: right; padding-right: 7px; width: 70px" runat="server" id="TdRetIVA" visible="false"></td>
|
||||||
|
<td style="text-align: right; padding-right: 7px; width: 70px" runat="server" id="TdRetISR" visible="false"></td>
|
||||||
</td>
|
|
||||||
<td style="text-align: right; padding-right: 7px; width:70px" runat="server" id="TdRetISR" visible="false">
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td style="text-align: right; padding-right: 7px;">
|
<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>
|
<asp:TextBox runat="server" ID="Total" ClientIDMode="Static" CssClass="alineanum" Width="55px" Height="24px" Enabled="false"></asp:TextBox>
|
||||||
@@ -941,6 +947,8 @@
|
|||||||
</td>
|
</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
|
<td style="vertical-align: bottom;">
|
||||||
|
<asp:LinkButton ID="LnkOrdenarGvPS" runat="server" CssClass="Texto" Text="<i class='fa fa-retweet'></i>" OnClick="OrdenarGvPS" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -952,11 +960,11 @@
|
|||||||
|
|
||||||
|
|
||||||
<asp:GridView ID="GvD" runat="server" AutoGenerateColumns="False" GridLines=" none" BorderColor="Transparent" CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn"
|
<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,CantidadNoEditable,CveCultivoCuadroDetalle" data-tableheader=".GVDHeader" ShowHeader="false" data-rows="0">
|
DataKeyNames="SubProyecto, Cantidad, Importe, Descuento, CveOrdenCompra, CveUnidadMedida, CvePresupuestoEgreso, PS,CveClasificacion, CvePS, CveSubProyecto, CveActivoFijo,Codigo,CodPS,Producto,NumeroParte, CodigoAF, TipoDato, Observacion, CveOrdenCompraDetalle,CveCompra,IVAPorcentaje,RetIVAPorcentaje,RetISRPorcentaje,IEPSPSPorcentaje,IEPSPSIVAPorcentaje,CantidadNoEditable,CveCultivoCuadroDetalle" data-tableheader=".GVDHeader" ShowHeader="false" data-rows="0">
|
||||||
<Columns>
|
<Columns>
|
||||||
|
|
||||||
<%-- 0 --%>
|
<%-- 0 --%>
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField>
|
||||||
<EditItemTemplate>
|
<EditItemTemplate>
|
||||||
<asp:TextBox ID="TxtCantEdit" runat="server" Text='<%# Eval("Cantidad", "{0:#,###.######}")%>' Width="45px" Height="24px"></asp:TextBox>
|
<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="." />
|
<ajax:FilteredTextBoxExtender ID="SoloNumerosCantEdit" runat="server" TargetControlID="TxtCantEdit" FilterType="Custom, Numbers" ValidChars="." />
|
||||||
@@ -967,7 +975,7 @@
|
|||||||
<ajax:ValidatorCalloutExtender ID="VCECant" runat="server" HighlightCssClass="vco" TargetControlID="RFVCantEdit" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCECant" runat="server" HighlightCssClass="vco" TargetControlID="RFVCantEdit" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:#,###.######}")%>' Style="width: 100%; padding-right: 10%;"></asp:Label>
|
<asp:Label ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:#,###.######}")%>' Style="width: 100%"></asp:Label>
|
||||||
<asp:TextBox ID="TxtEMCantEdit" runat="server" Text='<%# Eval("Cantidad", "{0:#,###.######}")%>' Width="45px" Height="24px" Visible="false"></asp:TextBox>
|
<asp:TextBox ID="TxtEMCantEdit" runat="server" Text='<%# Eval("Cantidad", "{0:#,###.######}")%>' Width="45px" Height="24px" Visible="false"></asp:TextBox>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
@@ -990,7 +998,8 @@
|
|||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RFVPSEdit" runat="server" ControlToValidate="DdlPS" InitialValue="-1" Display="None"
|
<asp:RequiredFieldValidator ID="RFVPSEdit" runat="server" ControlToValidate="DdlPS" InitialValue="-1" Display="None"
|
||||||
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Producto o Servicio''</b> es necesario, por favor seleccione uno."
|
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>
|
ValidationGroup="grpEditar">
|
||||||
|
</asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCOPSEdit" runat="server" HighlightCssClass="vco" TargetControlID="RFVPSEdit" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCOPSEdit" runat="server" HighlightCssClass="vco" TargetControlID="RFVPSEdit" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
@@ -1000,7 +1009,8 @@
|
|||||||
<%--DataTextField--%>
|
<%--DataTextField--%>
|
||||||
<asp:DropDownList ID="CboUnidadMedidaEdit" runat="server" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" Style="width: 100%; max-width: 150px;"></asp:DropDownList>
|
<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" Display="None"
|
<asp:RequiredFieldValidator ID="RFVUnidadMedidaEdit" runat="server" InitialValue="-1" ControlToValidate="CboUnidadMedidaEdit" 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="grpEditar"></asp:RequiredFieldValidator>
|
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>
|
<ajax:ValidatorCalloutExtender ID="VCEUnidadMedidaEdit" runat="server" HighlightCssClass="vco" TargetControlID="RFVUnidadMedidaEdit" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -1039,7 +1049,8 @@
|
|||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
|
|
||||||
<asp:RequiredFieldValidator ValidationGroup="grpEditar" ID="RFVSubProyecto" runat="server" InitialValue="-1" ControlToValidate="DdlSubProyectoEdit" Display="None"
|
<asp:RequiredFieldValidator ValidationGroup="grpEditar" ID="RFVSubProyecto" runat="server" InitialValue="-1" ControlToValidate="DdlSubProyectoEdit" Display="None"
|
||||||
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''SubProyecto''</b> es necesario, por favor ingréselo."></asp:RequiredFieldValidator>
|
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>
|
<ajax:ValidatorCalloutExtender ID="VCORFVSubProyecto" runat="server" HighlightCssClass="vco" TargetControlID="RFVSubProyecto" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
|
||||||
|
|
||||||
@@ -1097,7 +1108,7 @@
|
|||||||
<%-- 8 --%>
|
<%-- 8 --%>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlIva" runat="server" Text='<%# If(Not IsDBNull(Eval("IVA")), If(Eval("IVA").ToString <> "0", String.Concat(Eval("IVA", "{0:#,##0.00####}"), "<br/>", If(Not IsDBNull(Eval("IVAPorcentaje")) AndAlso Decimal.Parse(Eval("IVAPorcentaje").ToString) > 0.10001, "16 %", Eval("IVAPorcentaje", "{0:0.### %}"))), ""), "") %>'></asp:Literal>
|
<asp:Literal ID="LtlIva" runat="server" Text='<%# If(Not IsDBNull(Eval("IVA")), If(Eval("IVA").ToString <> "0", String.Concat(Eval("IVA", "{0:#,##0.00####}"), "<br>", If(Not IsDBNull(Eval("IVAPorcentaje")) AndAlso Decimal.Parse(Eval("IVAPorcentaje").ToString) > 0.10001, "16 %", Eval("IVAPorcentaje", "{0:0.### %}"))), ""), "") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<ItemStyle HorizontalAlign="Right" />
|
<ItemStyle HorizontalAlign="Right" />
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
@@ -1198,6 +1209,12 @@
|
|||||||
<asp:DropDownList runat="server" ID="DdlAC4" CssClass="form-control input-sm select2me" AutoPostBack="true" DataTextField="TipoGasto" DataValueField="CveTipoGasto" Width="100px" OnSelectedIndexChanged="CompruebaSaldoAC"></asp:DropDownList>
|
<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>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
<%--20--%>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:TextBox ID="TxtOrden" runat="server" MaxLength="3" Type="number" Width="30px" Text='<%# Eval("Orden") %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
</Columns>
|
</Columns>
|
||||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||||
@@ -1220,7 +1237,8 @@
|
|||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:LinkButton ID="LnkAddCotEva" CssClass="caption-subject bold" runat="server" Text=" <i class='fa fa-commenting font-green' ></i><span class='caption-subject bold'>Agregar</span>" Style="font-weight: 700 !important;cursor: pointer;" ToolTip="Observaciones"></asp:LinkButton><br />
|
<asp:LinkButton ID="LnkAddCotEva" CssClass="caption-subject bold" runat="server" Text=" <i class='fa fa-commenting font-green' ></i><span class='caption-subject bold'>Agregar</span>" Style="font-weight: 700 !important; cursor: pointer;" ToolTip="Observaciones"></asp:LinkButton>
|
||||||
|
<br />
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
@@ -1262,7 +1280,7 @@
|
|||||||
<tr runat="server" id="TrDescuento" class="text-right" visible="false">
|
<tr runat="server" id="TrDescuento" class="text-right" visible="false">
|
||||||
<td><b>Descuento:</b></td>
|
<td><b>Descuento:</b></td>
|
||||||
<td>
|
<td>
|
||||||
<asp:TextBox ID="TxtDescuento" ClientIDMode="Static" onkeyup="FormatoMoneda(this);ValidaDescuento();" onblur="AplicaDescuentoGeneral();" Width="100px" BackColor="#f7f7f7" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
<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="BtnLimpiarDescuento" OnClick="BtnLimpiarDescuento_Click" runat="server" />
|
||||||
<asp:Button Text="" Style="display: none" ClientIDMode="Static" ID="BtnAplicarDescuento" OnClick="BtnAplicarDescuento_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" />
|
<asp:HiddenField ClientIDMode="Static" Value="0" runat="server" ID="HdnDescuento" />
|
||||||
@@ -1278,7 +1296,7 @@
|
|||||||
<tr align="right">
|
<tr align="right">
|
||||||
<td><b>IVA:</b></td>
|
<td><b>IVA:</b></td>
|
||||||
<td style="text-align: right;">
|
<td style="text-align: right;">
|
||||||
<asp:TextBox ID="TxtIVA" ClientIDMode="Static" Visible="false" onkeyup="FormatoMoneda(this);SumaTotal();" onblur="$('#BtnAplicarIVA').click();" Width="100px" BackColor="#eeeeee" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
<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: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" />
|
<asp:Button Text="" Style="display: none" ClientIDMode="Static" ID="BtnAplicarIVA" OnClick="BtnAplicarIVA_Click" runat="server" />
|
||||||
</td>
|
</td>
|
||||||
@@ -1289,7 +1307,7 @@
|
|||||||
<tr runat="server" id="TrIEPS" class="text-right" visible="false">
|
<tr runat="server" id="TrIEPS" class="text-right" visible="false">
|
||||||
<td><b>IEPS:</b></td>
|
<td><b>IEPS:</b></td>
|
||||||
<td>
|
<td>
|
||||||
<asp:TextBox ID="TxtIEPS" Enabled="false" ClientIDMode="Static" onkeyup="FormatoMoneda(this);SumaTotal();" Width="100px" BackColor="#eeeeee" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@@ -1297,7 +1315,7 @@
|
|||||||
<tr runat="server" id="TrRetIVA" class="text-right" visible="false">
|
<tr runat="server" id="TrRetIVA" class="text-right" visible="false">
|
||||||
<td><b>Ret IVA:</b></td>
|
<td><b>Ret IVA:</b></td>
|
||||||
<td>
|
<td>
|
||||||
<asp:TextBox ID="TxtRetIVA" ClientIDMode="Static" onkeyup="FormatoMoneda(this);SumaTotal();" Width="100px" onblur="AplicaRetIVAGeneral();" BackColor="#f7f7f7" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
<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="BtnLimpiarRetIVA" OnClick="BtnLimpiarRetIVA_Click" runat="server" />
|
||||||
<asp:Button Text="" Style="display: none" ClientIDMode="Static" ID="BtnAplicarRetIVA" OnClick="BtnAplicarRetIVA_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" />
|
<asp:HiddenField ClientIDMode="Static" Value="0" runat="server" ID="HdnRetIVA" />
|
||||||
@@ -1318,14 +1336,15 @@
|
|||||||
<td style="text-align: right;">
|
<td style="text-align: right;">
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:TextBox ID="LblTotal" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Width="100px" BackColor="#eeeeee" Text="0.00"></asp:TextBox>
|
<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>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<asp:DropDownList ID="DdlMoneda" runat="server" DataTextField="Moneda" DataValueField="CveMoneda" Width="70px" CssClass="form-control input-sm select2me" ValidationGroup="GrpGuardar" CausesValidation="true"></asp:DropDownList>
|
<asp:DropDownList ID="DdlMoneda" runat="server" DataTextField="Moneda" DataValueField="CveMoneda" Width="70px" CssClass="form-control input-sm select2me" ValidationGroup="GrpGuardar" CausesValidation="true"></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."
|
<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>
|
InitialValue="-1" ValidationGroup="GrpGuardar">
|
||||||
|
</asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCEMoneda" runat="server" HighlightCssClass="vco" TargetControlID="RFVMoneda" Width="300px"></ajax:ValidatorCalloutExtender>
|
<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>
|
<asp:Label ID="LblMoneda" runat="server" Text="" Visible="false"></asp:Label>
|
||||||
</td>
|
</td>
|
||||||
@@ -1418,10 +1437,12 @@
|
|||||||
<asp:TemplateField HeaderText="Descripción">
|
<asp:TemplateField HeaderText="Descripción">
|
||||||
<EditItemTemplate>
|
<EditItemTemplate>
|
||||||
<asp:TextBox ID="TxtDescripDetalleEdit" runat="server" Text='<%# Bind("Descripcion") %>'
|
<asp:TextBox ID="TxtDescripDetalleEdit" runat="server" Text='<%# Bind("Descripcion") %>'
|
||||||
Width="345px"></asp:TextBox>
|
Width="345px">
|
||||||
|
</asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RFVDescripcion" runat="server" ControlToValidate="TxtDescripDetalleEdit"
|
<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."
|
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>
|
ValidationGroup="GrpEditGuardar">
|
||||||
|
</asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCOEmpresa" runat="server" HighlightCssClass="vco"
|
<ajax:ValidatorCalloutExtender ID="VCOEmpresa" runat="server" HighlightCssClass="vco"
|
||||||
TargetControlID="RFVDescripcion" Width="300px">
|
TargetControlID="RFVDescripcion" Width="300px">
|
||||||
</ajax:ValidatorCalloutExtender>
|
</ajax:ValidatorCalloutExtender>
|
||||||
@@ -1664,7 +1685,8 @@
|
|||||||
<asp:RequiredFieldValidator ID="RFVSAUsuarioContado" runat="server" InitialValue="-1" ControlToValidate="DdlSAUsuarioContado" 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="GrpGuardar"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVSAUsuarioContado" runat="server" InitialValue="-1" ControlToValidate="DdlSAUsuarioContado" 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="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCESAUsuarioContado" runat="server" HighlightCssClass="vco" TargetControlID="RFVSAUsuarioContado" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCESAUsuarioContado" runat="server" HighlightCssClass="vco" TargetControlID="RFVSAUsuarioContado" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
</div>
|
</div>
|
||||||
</div><br />
|
</div>
|
||||||
|
<br />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-3">Observaciones:</label>
|
<label class="col-md-3">Observaciones:</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
@@ -1719,7 +1741,9 @@
|
|||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
<asp:Panel runat="server" ID="PnlUsuarioYaAsignado" Visible="false" Style="text-align: left; font-size: 14px; height: 34px; margin-top: 10px">
|
<asp:Panel runat="server" ID="PnlUsuarioYaAsignado" Visible="false" Style="text-align: left; font-size: 14px; height: 34px; margin-top: 10px">
|
||||||
Asignado a:
|
Asignado a:
|
||||||
<asp:Label runat="server" ID="LblUsuarioYaAsignado"/><br /><br />
|
<asp:Label runat="server" ID="LblUsuarioYaAsignado" />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
<asp:Button ID="BtnGuardar" CssClass="btn btn-primary" Style="margin-top: 5px;" runat="server" Text="Guardar" Width="170px" ValidationGroup="GrpGuardar" />
|
<asp:Button ID="BtnGuardar" CssClass="btn btn-primary" Style="margin-top: 5px;" runat="server" Text="Guardar" Width="170px" ValidationGroup="GrpGuardar" />
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
@@ -1787,7 +1811,8 @@
|
|||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<asp:UpdatePanel ID="UpAccionesBitacora" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpAccionesBitacora" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:LinkButton ID="ImgAddObs" CssClass="caption-subject bold" runat="server" Text=" <i class='fa fa-commenting font-green'></i><span class='caption-subject bold'>Agregar</span>" Style="font-weight: 700 !important;cursor: pointer;" ToolTip="Observaciones"></asp:LinkButton><br />
|
<asp:LinkButton ID="ImgAddObs" CssClass="caption-subject bold" runat="server" Text=" <i class='fa fa-commenting font-green'></i><span class='caption-subject bold'>Agregar</span>" Style="font-weight: 700 !important; cursor: pointer;" ToolTip="Observaciones"></asp:LinkButton>
|
||||||
|
<br />
|
||||||
<asp:HyperLink ID="HlEvento" CssClass="thickbox caption-subject bold" runat="server" Text=" <i class='fa fa-calendar-plus-o font-green'></i>Agendar" Visible="false" Style="font-weight: 700 !important; cursor: pointer;" ToolTip="Agendar"></asp:HyperLink>
|
<asp:HyperLink ID="HlEvento" CssClass="thickbox caption-subject bold" runat="server" Text=" <i class='fa fa-calendar-plus-o font-green'></i>Agendar" Visible="false" Style="font-weight: 700 !important; cursor: pointer;" ToolTip="Agendar"></asp:HyperLink>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
@@ -2099,7 +2124,8 @@
|
|||||||
<HeaderTemplate>Descripción</HeaderTemplate>
|
<HeaderTemplate>Descripción</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:LinkButton ID="LnkDescripcion" CssClass="Texto" runat="server" Text='<%# Eval("Descripcion") %>'
|
<asp:LinkButton ID="LnkDescripcion" CssClass="Texto" runat="server" Text='<%# Eval("Descripcion") %>'
|
||||||
OnClick="LnkAFSeleccionar_Click"></asp:LinkButton>
|
OnClick="LnkAFSeleccionar_Click">
|
||||||
|
</asp:LinkButton>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
@@ -2216,7 +2242,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" align="center">
|
<td colspan="2" align="center">
|
||||||
<asp:Button ID="BtnAFAceptar" runat="server" Text="Aceptar" Visible="false" /></td>
|
<asp:Button ID="BtnAFAceptar" runat="server" Text="Aceptar" Visible="false" />
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
@@ -2608,8 +2635,12 @@
|
|||||||
<asp:HyperLinkField DataTextField="FolioCompra" Target="_blank" HeaderText="Folio Compra" ControlStyle-CssClass="Texto" DataNavigateUrlFormatString="/Compras/Compras.aspx?CveCompra={0}" DataNavigateUrlFields="CveCompra" />
|
<asp:HyperLinkField DataTextField="FolioCompra" Target="_blank" HeaderText="Folio Compra" ControlStyle-CssClass="Texto" DataNavigateUrlFormatString="/Compras/Compras.aspx?CveCompra={0}" DataNavigateUrlFields="CveCompra" />
|
||||||
|
|
||||||
|
|
||||||
<asp:BoundField DataField="CantidadOC" HeaderText="Cantidad OC" DataFormatString="{0:n2}" > <ItemStyle HorizontalAlign="Right" /></asp:BoundField>
|
<asp:BoundField DataField="CantidadOC" HeaderText="Cantidad OC" DataFormatString="{0:n2}">
|
||||||
<asp:BoundField DataField="CantidadCompra" HeaderText="Cantidad Compra" DataFormatString="{0:n2}" > <ItemStyle HorizontalAlign="Right" /></asp:BoundField>
|
<ItemStyle HorizontalAlign="Right" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="CantidadCompra" HeaderText="Cantidad Compra" DataFormatString="{0:n2}">
|
||||||
|
<ItemStyle HorizontalAlign="Right" />
|
||||||
|
</asp:BoundField>
|
||||||
|
|
||||||
<%-- <asp:TemplateField HeaderText="Cantidad OC" ItemStyle-HorizontalAlign="Right">
|
<%-- <asp:TemplateField HeaderText="Cantidad OC" ItemStyle-HorizontalAlign="Right">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -2759,7 +2790,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-1 ">Clientes:</label>
|
<label class="col-md-1 ">Clientes:</label>
|
||||||
<div class="col-md-11">
|
<div class="col-md-11">
|
||||||
<ADS:Dropdownlost ID="DdlClienteContrato" Width="100%" CssStyle="width: 100%;" UsaWebService="true" AppendDataBoundItems="true" AutoPostBack="true" CssClass="select2me" data-metodo="getcliente" runat="server" DataTextField="NombreComercial" DataValueField="CveCliente"></ADS:Dropdownlost>
|
<ADS:Dropdownlost ID="DdlClienteContrato" Width="100%" CssStyle="width: 100%;" UsaWebService="true" appenddatabounditems="true" autopostback="true" CssClass="select2me" data-metodo="getcliente" runat="server" DataTextField="NombreComercial" DataValueField="CveCliente"></ADS:Dropdownlost>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -2988,7 +3019,8 @@
|
|||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:TextBox ID="TxtCantidad" Text="" CssClass="txtcant" onkeyup="ValidateCantCon(this)" type="number" step="any"
|
<asp:TextBox ID="TxtCantidad" Text="" CssClass="txtcant" onkeyup="ValidateCantCon(this)" type="number" step="any"
|
||||||
data-cantidad='<%# Eval("CantidadMax")%>' data-pu='<%# Eval("PU")%>' data-cve='<%# Eval("CveContratoDetalle") %>'
|
data-cantidad='<%# Eval("CantidadMax")%>' data-pu='<%# Eval("PU")%>' data-cve='<%# Eval("CveContratoDetalle") %>'
|
||||||
Width="90" runat="server"></asp:TextBox>
|
Width="90" runat="server">
|
||||||
|
</asp:TextBox>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
@@ -3032,7 +3064,61 @@
|
|||||||
<script src="/Metronic/assets/global/plugins/jquery.pulsate.min.js"></script>
|
<script src="/Metronic/assets/global/plugins/jquery.pulsate.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
function setFocus(e, idFocus) {
|
||||||
|
let key = (window.event) ? window.event.keyCode : e.which;
|
||||||
|
if (key == 13) {
|
||||||
|
let Elemento = document.getElementById(idFocus)
|
||||||
|
if (Elemento)
|
||||||
|
Elemento.focus();
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function DisableEnterKey(e) {
|
||||||
|
let key = (window.event) ? window.event.keyCode : e.which;
|
||||||
|
if (key == 13) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function abrirDdlPS() {
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
$('#C_Tab_TabC_DdlP2 > select').select2('open').next().find(':input.select2-search__field').focus();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
//ABRIR EL DROPDOWN DE PS DESPUES DE ASIGNAR CANTIDAD
|
||||||
|
if ('<%= UsuarioActual.Empresa.Funcionalidad(382) %>' == '1' ) {
|
||||||
|
$('#TxtCant').on('keydown', function (e) {
|
||||||
|
if (e.which == 13 || e.which == 9) {
|
||||||
|
let valorNumericoCantidad = parseFloat($('#TxtCant').val());
|
||||||
|
e.preventDefault();
|
||||||
|
if (valorNumericoCantidad > 0) {
|
||||||
|
$('#C_Tab_TabC_DdlP2 > select').select2('open').next().find(':input.select2-search__field').focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#txtPrecioUnitario').on('keydown', function (e) {
|
||||||
|
if (e.which == 13 || e.which == 9) {
|
||||||
|
let valorNumericoPrecio = parseFloat($('#TxtCant').val());
|
||||||
|
e.preventDefault();
|
||||||
|
if (valorNumericoPrecio > 0) {
|
||||||
|
$('#LbAgregar').focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$('#<%= TxtSAImPorcentaje.ClientID%>').keyup(function () {
|
$('#<%= TxtSAImPorcentaje.ClientID%>').keyup(function () {
|
||||||
console.log($(this).val());
|
console.log($(this).val());
|
||||||
var importe = (ToDouble($(this).val()) / 100) * ToDouble($get("LblTotal").value.replace(/,/g, ''));
|
var importe = (ToDouble($(this).val()) / 100) * ToDouble($get("LblTotal").value.replace(/,/g, ''));
|
||||||
@@ -3043,24 +3129,10 @@
|
|||||||
$('#<%= TxtSAImPorcentaje.ClientID%>').val(FormatoNumero(importe, 2).replace(/,/g, ""));
|
$('#<%= TxtSAImPorcentaje.ClientID%>').val(FormatoNumero(importe, 2).replace(/,/g, ""));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
<%--$('#<%= TxtSAImPorcentajeContado.ClientID%>').keyup(function () {
|
|
||||||
console.log($(this).val());
|
|
||||||
var importe = (ToDouble($(this).val()) / 100) * ToDouble($get("LblTotal").value.replace(/,/g, ''));
|
|
||||||
$('#<%= TxtSAImporteContado.ClientID%>').val( FormatoNumero(importe, 2).replace(/,/g, "") );
|
|
||||||
});
|
|
||||||
$('#<%= TxtSAImporteContado.ClientID%>').keyup(function () {
|
|
||||||
var importe = (100 * ToDouble($(this).val())) / ToDouble($get("LblTotal").value.replace(/,/g, ""));
|
|
||||||
$('#<%= TxtSAImPorcentajeContado.ClientID%>').val(FormatoNumero(importe, 2).replace(/,/g, ""));
|
|
||||||
});--%>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$get('HdnWidth').value = $("#DivConceptosContenido").width();
|
$get('HdnWidth').value = $("#DivConceptosContenido").width();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
function SAImPorcentajeContadokeyup() {
|
function SAImPorcentajeContadokeyup() {
|
||||||
var importe = (ToDouble($('#TxtSAImPorcentajeContado').val()) / 100) * ToDouble($get("LblTotal").value.replace(/,/g, ''));
|
var importe = (ToDouble($('#TxtSAImPorcentajeContado').val()) / 100) * ToDouble($get("LblTotal").value.replace(/,/g, ''));
|
||||||
$('#TxtSAImporteContado').val(FormatoNumero(importe, 2).replace(/,/g, ""));
|
$('#TxtSAImporteContado').val(FormatoNumero(importe, 2).replace(/,/g, ""));
|
||||||
@@ -3401,16 +3473,14 @@
|
|||||||
var tr = $('<tr></tr>'); tbody.append(tr);
|
var tr = $('<tr></tr>'); tbody.append(tr);
|
||||||
var td;
|
var td;
|
||||||
for (var key in item) {
|
for (var key in item) {
|
||||||
if (!(key == "text" || key == "id"))
|
if (!(key == "text" || key == "id")) { td = $('<td style="font-weight:bold;">' + key + '</td>'); tr.append(td); }
|
||||||
{ td = $('<td style="font-weight:bold;">' + key + '</td>'); tr.append(td); }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var tr = $('<tr></tr>'); tbody.append(tr);
|
var tr = $('<tr></tr>'); tbody.append(tr);
|
||||||
|
|
||||||
var td;
|
var td;
|
||||||
for (var key in item) {
|
for (var key in item) {
|
||||||
if (!(key == "text" || key == "id"))
|
if (!(key == "text" || key == "id")) { td = $('<td ' + ((item[key] > 0) ? 'style = "font-weight:bold;"' : '') + '>' + item[key] + '</td>'); tr.append(td); }
|
||||||
{ td = $('<td ' + ((item[key] > 0) ? 'style = "font-weight:bold;"' : '') + '>' + item[key] + '</td>'); tr.append(td); }
|
|
||||||
}
|
}
|
||||||
indexd += 1;
|
indexd += 1;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ Imports System.IO
|
|||||||
Imports Extensiones
|
Imports Extensiones
|
||||||
Imports GemBox.Spreadsheet
|
Imports GemBox.Spreadsheet
|
||||||
Imports Newtonsoft.Json
|
Imports Newtonsoft.Json
|
||||||
|
Imports Telerik.Web.Apoc
|
||||||
|
|
||||||
Partial Class OC_OC
|
Partial Class OC_OC
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
@@ -1042,6 +1043,9 @@ Partial Class OC_OC
|
|||||||
If UsuarioActual.Empresa.CveEmpresa = 189 AndAlso CveOrdenCompra <> Nothing AndAlso CveOrdenCompra > 0 Then
|
If UsuarioActual.Empresa.CveEmpresa = 189 AndAlso CveOrdenCompra <> Nothing AndAlso CveOrdenCompra > 0 Then
|
||||||
BtnEdicionMasiva.Visible = True
|
BtnEdicionMasiva.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If CveOrdenCompra > 0 AndAlso UsuarioActual.Empresa.Funcionalidad(382) = "1" OrElse UsuarioActual.CveRol = 1 Then
|
||||||
|
LnkDescargarPSExcel.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
MostrarUsuarioAsignado()
|
MostrarUsuarioAsignado()
|
||||||
@@ -1049,6 +1053,36 @@ Partial Class OC_OC
|
|||||||
|
|
||||||
Me.Form.DefaultButton = ""
|
Me.Form.DefaultButton = ""
|
||||||
|
|
||||||
|
If CveOrdenCompra > 0 Then
|
||||||
|
GvD.Columns(20).Visible = False
|
||||||
|
|
||||||
|
Else
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(382) = "1" Then
|
||||||
|
TxtCant.Text = "1"
|
||||||
|
TxtCant.Focus()
|
||||||
|
RegistraScript("abrirDdlPS();", "A1")
|
||||||
|
UPPDetalle.Update()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
Protected Sub OrdenarGvPS(ByVal sender As Object, ByVal e As EventArgs)
|
||||||
|
|
||||||
|
For Each row As GridViewRow In GvD.Rows
|
||||||
|
DtDetalle.Rows(row.RowIndex)("Orden") = row.FCTextBox("TxtOrden").Text.ToEntero()
|
||||||
|
Next
|
||||||
|
|
||||||
|
Dim resultados = From OrdenDT In DtDetalle
|
||||||
|
Order By OrdenDT("Orden").ToString().ToEntero()
|
||||||
|
Select OrdenDT
|
||||||
|
DtDetalle = resultados.CopyToDataTable
|
||||||
|
|
||||||
|
GvD.DataSource = DtDetalle
|
||||||
|
GvD.DataBind()
|
||||||
|
UPPDetalle.Update()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub ValidaCancelacionConAlamcen()
|
Private Sub ValidaCancelacionConAlamcen()
|
||||||
@@ -1280,7 +1314,11 @@ Partial Class OC_OC
|
|||||||
DtDetalle.Columns.Add("CveTipoGastoObra", GetType(Integer))
|
DtDetalle.Columns.Add("CveTipoGastoObra", GetType(Integer))
|
||||||
DtDetalle.Columns.Add("CveCultivoCuadroDetalle", GetType(Integer))
|
DtDetalle.Columns.Add("CveCultivoCuadroDetalle", GetType(Integer))
|
||||||
DtDetalle.Columns.Add("Cuadro", GetType(String))
|
DtDetalle.Columns.Add("Cuadro", GetType(String))
|
||||||
|
DtDetalle.Columns.Add("Orden", GetType(Integer))
|
||||||
|
|
||||||
|
DtDetalle.Columns.Add("CodPS", GetType(String))
|
||||||
|
DtDetalle.Columns.Add("Producto", GetType(String))
|
||||||
|
DtDetalle.Columns.Add("NumeroParte", GetType(String))
|
||||||
'DtDetalle.Columns.Add("CveOrdenCompraDetalle", GetType(Integer))
|
'DtDetalle.Columns.Add("CveOrdenCompraDetalle", GetType(Integer))
|
||||||
|
|
||||||
' DtDetalle.Columns.Add("ClasificacionOG", GetType(String))
|
' DtDetalle.Columns.Add("ClasificacionOG", GetType(String))
|
||||||
@@ -1481,7 +1519,6 @@ Partial Class OC_OC
|
|||||||
|
|
||||||
TieneInventario = CBool(objOC.DtResultados.Rows(0)("TieneInvOC"))
|
TieneInventario = CBool(objOC.DtResultados.Rows(0)("TieneInvOC"))
|
||||||
DdlMetodoPago.SelectedValueExist(objOC.DtResultados.Rows(0)("MetodoPago"))
|
DdlMetodoPago.SelectedValueExist(objOC.DtResultados.Rows(0)("MetodoPago"))
|
||||||
LnkDescargarDetalleExcel.Visible = True
|
|
||||||
|
|
||||||
If objOC.DtResultados.Rows(0)("CveSubProyectoEntrega").ToString.ToEntero > 0 Then
|
If objOC.DtResultados.Rows(0)("CveSubProyectoEntrega").ToString.ToEntero > 0 Then
|
||||||
DdlSubProyectoEntrega.SelectedValueExist(objOC.DtResultados.Rows(0)("CveSubProyectoEntrega").ToString)
|
DdlSubProyectoEntrega.SelectedValueExist(objOC.DtResultados.Rows(0)("CveSubProyectoEntrega").ToString)
|
||||||
@@ -1797,7 +1834,7 @@ Partial Class OC_OC
|
|||||||
CboE.DataBind()
|
CboE.DataBind()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If objOC.GetOrdenesDetalle(pCveOrdenCompra, UsuarioActual.cveempresa) Then
|
If objOC.GetOrdenesDetalle(pCveOrdenCompra, UsuarioActual.CveEmpresa) Then
|
||||||
DtDetalle = objOC.DtResultados
|
DtDetalle = objOC.DtResultados
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -2270,6 +2307,7 @@ Partial Class OC_OC
|
|||||||
CboUM.DataSource = GlobalDTProductosServiciosEquivalencias(Cvepsgvd, -1, UsuarioActual.CveEmpresa)
|
CboUM.DataSource = GlobalDTProductosServiciosEquivalencias(Cvepsgvd, -1, UsuarioActual.CveEmpresa)
|
||||||
CboUM.DataBind()
|
CboUM.DataBind()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub LbVerInventario_Click(sender As Object, e As EventArgs) Handles LbVerInventario.Click
|
Protected Sub LbVerInventario_Click(sender As Object, e As EventArgs) Handles LbVerInventario.Click
|
||||||
RegistraScript(String.Format("AbrirVentana('/Inventarios/PopUpExistenciasAlmacen.aspx?CvePS={0}',800,547,'N');", DdlP2.SelectedValue))
|
RegistraScript(String.Format("AbrirVentana('/Inventarios/PopUpExistenciasAlmacen.aspx?CvePS={0}',800,547,'N');", DdlP2.SelectedValue))
|
||||||
@@ -2336,15 +2374,17 @@ Partial Class OC_OC
|
|||||||
ObjOC.Dispose()
|
ObjOC.Dispose()
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(382) = "1" Then
|
||||||
|
txtPrecioUnitario.Focus()
|
||||||
|
UPPDetalle.Update()
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region " AGREGAR "
|
#Region " AGREGAR "
|
||||||
Protected Sub LbAgregar_Click(sender As Object, e As EventArgs) Handles LbAgregar.Click
|
Protected Sub LbAgregar_Click(sender As Object, e As EventArgs) Handles LbAgregar.Click
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'VALIDA CVEPS
|
'VALIDA CVEPS
|
||||||
If DdlP2.SelectedValue().ToEntero <= 0 Then
|
If DdlP2.SelectedValue().ToEntero <= 0 Then
|
||||||
Alert("El campo <b>'Producto/Servicio'</b> es necesario, por favor seleccione uno.", TipoMensaje.MsgAdvertencia)
|
Alert("El campo <b>'Producto/Servicio'</b> es necesario, por favor seleccione uno.", TipoMensaje.MsgAdvertencia)
|
||||||
@@ -2357,9 +2397,6 @@ Partial Class OC_OC
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'Valida cantidad en contrato
|
'Valida cantidad en contrato
|
||||||
Dim TieneError As Boolean = False
|
Dim TieneError As Boolean = False
|
||||||
Dim dttemp As New DataTable ' GlobalDTContratos().FiltraParametros(String.Format("CveSubProyecto = {0}", DdlSubProyecto.SelectedValue.ToString))
|
Dim dttemp As New DataTable ' GlobalDTContratos().FiltraParametros(String.Format("CveSubProyecto = {0}", DdlSubProyecto.SelectedValue.ToString))
|
||||||
@@ -2523,6 +2560,7 @@ Partial Class OC_OC
|
|||||||
dr("CveTipoGastoObra") = CveTipoGastoObra
|
dr("CveTipoGastoObra") = CveTipoGastoObra
|
||||||
dr("CveCultivoCuadroDetalle") = CveCultivoCuadroDetalle
|
dr("CveCultivoCuadroDetalle") = CveCultivoCuadroDetalle
|
||||||
dr("Cuadro") = If(CveCultivoCuadroDetalle > 0, Cuadro, "")
|
dr("Cuadro") = If(CveCultivoCuadroDetalle > 0, Cuadro, "")
|
||||||
|
dr("Orden") = DtDetalle.Rows.Count + 1
|
||||||
|
|
||||||
DtDetalle.Rows.Add(dr)
|
DtDetalle.Rows.Add(dr)
|
||||||
DtDetalle.AcceptChanges()
|
DtDetalle.AcceptChanges()
|
||||||
@@ -9609,8 +9647,49 @@ Partial Class OC_OC
|
|||||||
|
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Protected Sub LnkDescargarDetalleExcel_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkDescargarPSExcel_Click(sender As Object, e As EventArgs)
|
||||||
GvD.ExportToExcel("des")
|
|
||||||
|
Dim DtExcel As DataTable = (From row As GridViewRow In GvD.Rows.Cast(Of GridViewRow)
|
||||||
|
Where row.RowType = DataControlRowType.DataRow
|
||||||
|
Select New With
|
||||||
|
{
|
||||||
|
.Codigo = row.DataKey("CodPS"),
|
||||||
|
.CodigoProveedor = row.DataKey("NumeroParte"),
|
||||||
|
.Cantidad = row.DataKey("Cantidad").ToDecimal(),
|
||||||
|
.PU = row.DataKey("Importe").ToDecimal(),
|
||||||
|
.Descuento = row.DataKey("Descuento").ToDecimal(),
|
||||||
|
.PS = row.DataKey("Producto")
|
||||||
|
}).QueryToDataTable(True)
|
||||||
|
|
||||||
|
DtExcel.TableName = "OC"
|
||||||
|
DtExcel.Columns("Codigo").ColumnName = "Código"
|
||||||
|
DtExcel.Columns("CodigoProveedor").ColumnName = "Código de proveedor"
|
||||||
|
|
||||||
|
SpreadsheetInfo.SetLicense(ModExtensiones.SerialGemBoxSpreadsheet)
|
||||||
|
|
||||||
|
Dim FileExcel As New ExcelFile()
|
||||||
|
|
||||||
|
Dim worksheet As ExcelWorksheet = FileExcel.Worksheets.Add(DtExcel.TableName)
|
||||||
|
worksheet.InsertDataTable(DtExcel, New InsertDataTableOptions() With
|
||||||
|
{
|
||||||
|
.ColumnHeaders = True,
|
||||||
|
.StartRow = 0,
|
||||||
|
.StartColumn = 0
|
||||||
|
})
|
||||||
|
worksheet.Rows(0).Style.FillPattern.SetPattern(FillPatternStyle.Solid, SpreadsheetColor.FromArgb(75, 119, 190), SpreadsheetColor.FromArgb(255, 255, 255))
|
||||||
|
worksheet.Rows(0).Style.Font.Color = SpreadsheetColor.FromArgb(255, 255, 255)
|
||||||
|
|
||||||
|
worksheet.Columns(2).Style.NumberFormat = "#,##0.00"
|
||||||
|
worksheet.Columns(3).Style.NumberFormat = "$#,##0.00_);($#,##0.00)"
|
||||||
|
worksheet.Columns(4).Style.NumberFormat = "$#,##0.00_);($#,##0.00)"
|
||||||
|
|
||||||
|
|
||||||
|
Dim columnCount As Integer = worksheet.CalculateMaxUsedColumns()
|
||||||
|
For i As Integer = 0 To columnCount
|
||||||
|
worksheet.Columns(i).AutoFit(1, worksheet.Rows(0), worksheet.Rows(worksheet.Rows.Count - 1))
|
||||||
|
Next
|
||||||
|
|
||||||
|
FileExcel.Save(Response, $"OC_{CveOrdenCompra}.xlsx", SaveOptions.XlsxDefault)
|
||||||
End Sub
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
|||||||
@@ -35,11 +35,11 @@
|
|||||||
<asp:TextBox ID="TxtContrasenia1" runat="server" TextMode="Password"></asp:TextBox>
|
<asp:TextBox ID="TxtContrasenia1" runat="server" TextMode="Password"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RFVContrasenia" runat="server" ErrorMessage="Contraseña Vacía"
|
<asp:RequiredFieldValidator ID="RFVContrasenia" runat="server" ErrorMessage="Contraseña Vacía"
|
||||||
ControlToValidate="TxtContrasenia1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
ControlToValidate="TxtContrasenia1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
<%--<br />
|
<br />
|
||||||
<ajaxToolkit:PasswordStrength ID="ps1" runat="server"
|
<ajaxToolkit:PasswordStrength ID="ps1" runat="server"
|
||||||
TargetControlID="TxtContrasenia1" RequiresUpperAndLowerCaseCharacters="true"
|
TargetControlID="TxtContrasenia1" RequiresUpperAndLowerCaseCharacters="true"
|
||||||
MinimumNumericCharacters="1" MinimumSymbolCharacters="1"
|
MinimumNumericCharacters="1" MinimumSymbolCharacters="1"
|
||||||
StrengthIndicatorType="Text" />--%>
|
StrengthIndicatorType="Text" />
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user