1016 lines
76 KiB
Plaintext
1016 lines
76 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RecepcionUsados.aspx.vb" Inherits="Inventarios_RecepcionUsados" %>
|
|
|
|
<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
<style>
|
|
#C_TxtHoraInicio_picker {
|
|
position: fixed !important;
|
|
}
|
|
|
|
@media(min-width:545px) {
|
|
.infomov {
|
|
width: 545px;
|
|
}
|
|
|
|
.infomov .col-md-1, .infomov .col-md-2, .infomov .col-md-6 {
|
|
float: left;
|
|
padding-right: 5px;
|
|
}
|
|
|
|
.infomov .col-md-1 {
|
|
width: 75px;
|
|
}
|
|
|
|
.infomov .col-md-1:nth-child(1) {
|
|
width: 103px;
|
|
}
|
|
|
|
.infomov .col-md-2 {
|
|
width: 182px;
|
|
}
|
|
|
|
.infomov .col-md-5 {
|
|
width: 439px;
|
|
}
|
|
}
|
|
|
|
#C_myhidenbutton {
|
|
display: none;
|
|
}
|
|
|
|
.psagregar {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.psagregar > div.comboxes {
|
|
display: inline-block;
|
|
width: 90%;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Recepción/Entrega de Usados
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:HyperLink ID="HplImprimir" runat="server" Visible="false"><i class="fa fa-print"></i> Imprimir</asp:HyperLink>
|
|
</li>
|
|
<li>
|
|
<asp:HyperLink ID="HplTraspaso" Target="_blank" runat="server" Visible="false"><i class="fa fa-truck" aria-hidden="true"></i> Traspaso Almacen</asp:HyperLink>
|
|
</li>
|
|
<%-- <li style="text-align: left!important" runat="server" id="LiLnkGuias" visible="false">
|
|
<asp:LinkButton runat="server" ID="LnkAgregarGuia" CssClass="" data-toggle="tooltip" data-placement="left" OnClick="LnkAgregarGuia_Click"
|
|
title="Paqueteria Guías." Text="<i class='fa fa-truck'></i> Paqueteria Guías"></asp:LinkButton>
|
|
</li>--%>
|
|
<li>
|
|
<asp:HyperLink ID="HplPrePoliza" Target="_blank" runat="server" Visible="false"> Ver PrePóliza</asp:HyperLink>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton runat="server" ID="LnkAgregarUsado" CssClass="" data-toggle="tooltip" data-placement="left" OnClick="LnkAgregarUsado_Click"
|
|
Text="<i class='fa fa-plus'></i> Agregar Usado"></asp:LinkButton>
|
|
</li>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<div class="row" style="margin-left: 0px; margin-right: 0px;">
|
|
<asp:UpdatePanel ID="UpGenerales" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="col-md-6">
|
|
<div class="portlet smmallpadding light bordered infomov" style="width: 100%">
|
|
<div class="portlet-title">
|
|
<div class="tools">
|
|
<a href="javascript;" data-idchekbox="<%= chkexpand.ClientID%>" class=" <%= IIf(chkexpand.Checked = True, "collapse", "expand")%>"></a>
|
|
<asp:CheckBox ID="chkexpand" Checked="true" CssClass="hidden" runat="server" />
|
|
</div>
|
|
<div class="caption uppercase" style="position: relative;">
|
|
<i class="fa fa-info-circle"></i>Información del movimiento
|
|
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body" <%= IIf(chkexpand.Checked = True, "", "style='display:none;'")%>>
|
|
<div id="tbEncabezado" runat="server" class="rowpadding" visible="true">
|
|
<div class="row" style="display: none;">
|
|
|
|
<label class="col-md-1 truncate" style="width: 110px">Movimiento:</label>
|
|
<div class="col-md-2">
|
|
<asp:RadioButtonList runat="server" ID="RBLOpcion" RepeatDirection="Horizontal" AutoPostBack="true" Font-Size="18pt">
|
|
<asp:ListItem Selected="True" Value="2">Entrada</asp:ListItem>
|
|
<asp:ListItem Value="3">Salida</asp:ListItem>
|
|
</asp:RadioButtonList>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
|
|
<label class="col-md-1 truncate" style="width: 110px">Almacén:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlAlmacen" AutoPostBack="true" AppendDataBoundItems="true" OnSelectedIndexChanged="DdlAlmacen_SelectedIndexChanged" runat="server" CssClass="form-control input-sm select2me" Style="max-width: 200px" DataTextField="Almacen" DataValueField="CveAlmacen"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator InitialValue="-1" ID="RfvAlmacen" Display="None" ValidationGroup="GrpGuardar" runat="server" ControlToValidate="DdlAlmacen" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Almacen''</b> es necesario, por favor seleccione uno."></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="RfvAlmacen" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
|
|
<%-- <label class="col-md-1 truncate" style="width: 110px" id="DivConcepto1" runat="server">Concepto:</label>
|
|
<div class="col-md-2 " id="DivConcepto2" runat="server">
|
|
<asp:DropDownList ID="DdlConcepto" DataTextField="Concepto" CssClass="form-control input-sm select2me" AutoPostBack="true" DataValueField="CveConcepto" runat="server" Style="max-width: 200px"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator InitialValue="-1" ID="RfvConcepto" Display="None" ValidationGroup="GrpGuardar" runat="server" ControlToValidate="DdlConcepto" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Concepto''</b> es necesario, por favor seleccione uno."></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VcoConcepto" runat="server" HighlightCssClass="vco" TargetControlID="RfvConcepto" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>--%>
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div id="DivCliente" runat="server" visible="true">
|
|
<label class="col-md-1 truncate" style="width: 110px">Cliente:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlClientes" AutoPostBack="true" OnSelectedIndexChanged="DdlClientes_SelectedIndexChanged" AppendDataBoundItems="true" runat="server" CssClass="form-control input-sm select2me" Style="max-width: 200px" DataTextField="NombreComercial" DataValueField="CveCliente"></asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="DivClienteSucursal" runat="server" visible="false">
|
|
<label class="col-md-1 truncate" style="width: 110px">Sucursal:</label>
|
|
<div class="col-md-2 " id="DivDdlClienteSucursal" runat="server">
|
|
<asp:DropDownList ID="DdlClientesSucursales" AutoPostBack="true" AppendDataBoundItems="true" runat="server" CssClass="form-control input-sm select2me" Style="max-width: 200px" DataTextField="SucursalCliente" DataValueField="CveClienteSucursal">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator InitialValue="-1" ID="RfvSucursalCliente" Display="None" ValidationGroup="GrpGuardar" runat="server" ControlToValidate="DdlClientesSucursales" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />Es campo <b>''Sucursal''</b> es necesario, por favor seleccione uno."></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VcoClienteSucursal" runat="server" HighlightCssClass="vco" TargetControlID="RfvSucursalCliente" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="DivFactura" runat="server" visible="false">
|
|
<label class="col-md-1 truncate" style="width: 110px">Factura:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlFactura" AutoPostBack="true" runat="server" CssClass="form-control input-sm select2me" Style="max-width: 200px" DataTextField="SerieFolio" DataValueField="CveVenta" OnSelectedIndexChanged="DdlFactura_SelectedIndexChanged">
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="DivDepartamentoEntrega" runat="server" visible="False">
|
|
<label class="col-md-1 truncate" style="width: 110px">
|
|
<asp:Label runat="server" ID="LblDepartamentoEntrega"> Depto. entrega:</asp:Label>
|
|
</label>
|
|
<div class="col-md-2">
|
|
<asp:TextBox ID="TxtDepartamentoEntrega" runat="server" MaxLength="50" Width="100%"></asp:TextBox>
|
|
</div>
|
|
|
|
<label class="col-md-1 truncate" style="width: 110px">
|
|
<asp:Label runat="server" ID="LblPedidoContrato">Con./Pedido:</asp:Label>
|
|
</label>
|
|
<div class="col-md-2">
|
|
<asp:TextBox ID="TxtPedidoContrato" runat="server" MaxLength="50" Width="100%"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="col-md-1 truncate" style="width: 110px">Fecha:</label>
|
|
<div class="col-md-2">
|
|
<div style="display: inline-block; vertical-align: text-bottom;">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFecha" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFecha" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MEEFecha" runat="server" TargetControlID="TxtFecha" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CEFecha" TargetControlID="TxtFecha" PopupButtonID="ImgFecha" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFecha" runat="server" ControlToValidate="TxtFecha" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFecha" runat="server" ControlToValidate="TxtFecha" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFecha1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFecha2" runat="server" HighlightCssClass="vco" TargetControlID="CVFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
|
|
<asp:RangeValidator ID="RVFecha" runat="server" ControlToValidate="TxtFecha" Display="None" Type="Date" MinimumValue="01/01/2000" MaximumValue="01/01/2000" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> no puede ser mayor al dia actual. Por favor verifcar." ValidationGroup="GrpGuardar"></asp:RangeValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFecha3" runat="server" HighlightCssClass="vco" TargetControlID="RVFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<label class="col-md-1 truncate" style="display: none">Hora:</label>
|
|
<div class="col-md-1" style="display: none">
|
|
<div style="width: 85px;">
|
|
<ew:TimePicker ID="TxtHoraInicio" TimeStyle-CssClass="Texto" runat="server" ControlDisplay="TextBoxImage" CssClass="inputtimepicker" ImageUrl="/Imagenes/timepicker.png" PopupWidth="100px" Width="50px" DisableTextBoxEntry="True" PopupHeight="150px" RoundUpMinutes="True" MilitaryTime="True" Culture="Spanish (Mexico)"></ew:TimePicker>
|
|
<ew:CustomValidator ID="CVHoraInicio" runat="server" ClientValidationFunction="RevisaHora" ControlToValidate="TxtHoraInicio" Display="None" ErrorMessage="El campo <b>''Hora''</b> es necesario, por favor seleccione la hora correcta." ValidationGroup="Guardar" ValidateEmptyText="true"></ew:CustomValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VcoHoraInicio" runat="server" HighlightCssClass="vco" TargetControlID="CVHoraInicio" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<label class="col-md-1 truncate" style="width: 110px" id="DivFolio1" runat="server">Folio:</label>
|
|
<div class="col-md-2" id="DivFolio2" runat="server">
|
|
<asp:TextBox ID="TxtFolio" runat="server" Style="" Width="100%"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="SoloNumerosFolio" runat="server" TargetControlID="TxtFolio" FilterType="Numbers" />
|
|
</div>
|
|
</div>
|
|
<div class="row" id="divDestino" runat="server" visible="False">
|
|
<label class="col-md-1 truncate">
|
|
<asp:Label runat="server" ID="Label1">Destino:</asp:Label>
|
|
</label>
|
|
<div class="col-md-2">
|
|
<asp:Literal ID="LtlAlmacenDestino" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="divMonedaSeccion" runat="server" visible="False">
|
|
<label class="col-md-1 truncate" style="width: 110px">Moneda:</label>
|
|
<div class="col-md-2 ">
|
|
<asp:DropDownList ID="DdlMoneda" runat="server" Style="max-width: 200px" CssClass="form-control input-sm select2me" DataTextField="Moneda" DataValueField="CveMoneda"></asp:DropDownList>
|
|
</div>
|
|
<label class="col-md-1 truncate" style="width: 110px">Sección:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlSeccion" runat="server" CssClass="form-control input-sm" Style="max-width: 200px" DataTextField="Seccion" DataValueField="CveSeccion"></asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="divGuia" runat="server" visible="False">
|
|
<label class="col-md-1 truncate" style="width: 110px">
|
|
<asp:Label runat="server" ID="LblGuia">Guía:</asp:Label>
|
|
</label>
|
|
<div class="col-md-2">
|
|
<asp:TextBox ID="TxtGuia" runat="server" MaxLength="20" Width="100%"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
<div class="row" runat="server" id="TrResponsable">
|
|
<label class="col-md-1" style="width: 110px">Recibe:</label>
|
|
<div class="col-md-3">
|
|
<asp:TextBox runat="server" Text="" ID="TxtResponsable" Width="100%" />
|
|
<%--<asp:DropDownList ID="DdlResponsable" runat="server" DataTextField="Nombre" DataValueField="CveUsuario" CssClass="form-control input-sm" Style="width: 200px !important;"></asp:DropDownList>--%>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-1 truncate" style="width: 110px">
|
|
Observaciones:
|
|
|
|
</label>
|
|
<div class="col-md-5">
|
|
<asp:TextBox ID="TxtObservaciones" TextMode="MultiLine" Rows="2" CssClass="form-control input-sm" runat="server" MaxLength="232"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="TrPersonal" runat="server" visible="false">
|
|
<label class="col-md-1 truncate">Personal</label>
|
|
<div class="col-md-5">
|
|
<asp:DropDownList ID="DdlPersonal" CssClass="form-control select2me" runat="server" DataTextField="CodigoNombreCompleto" DataValueField="CvePersonal"></asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="TrProveedor" runat="server" visible="false">
|
|
<label class="col-md-1 truncate">Proveedor</label>
|
|
<div class="col-md-5">
|
|
<asp:DropDownList ID="DdlProveedor" CssClass="form-control select2me" runat="server" DataTextField="RazonSocial" DataValueField="CveProveedor"></asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="TrTipoCargado" runat="server" visible="false">
|
|
<label class="col-md-1 truncate" id="LblTipo" runat="server"></label>
|
|
<div class="col-md-5">
|
|
<asp:Literal ID="LtTipo" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
<div class="row" runat="server" id="TrSubProyectoActivoFijo" visible="false">
|
|
<label class="col-md-1 truncate">Proyecto:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlSubProyecto" CssClass=" form-control input-sm select2me" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Style="max-width: 250px"></asp:DropDownList>
|
|
<asp:RangeValidator ID="RVSubProyecto" runat="server" ControlToValidate="DdlSubProyecto" MinimumValue="0" MaximumValue="9999999" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Sub Proyecto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RangeValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOSubProyecto" runat="server" HighlightCssClass="vco" TargetControlID="RVSubProyecto" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="row" runat="server" id="DivRemision" visible="false">
|
|
<label class="col-md-1 truncate" style="width: 110px">Remision:</label>
|
|
<div class="col-md-2">
|
|
<asp:TextBox ID="TxtRemision" runat="server" Enabled="false" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div id="DivRecepcionUsados" runat="server" 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">Remisiones por Recibir</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<asp:Panel runat="server" DefaultButton="BtnConsultarPendientes">
|
|
|
|
|
|
<b>Sucursal:</b>
|
|
<asp:DropDownList ID="DdlSubProyectos" runat="server" CssClass="form-control input-sm select2me" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="90px"></asp:DropDownList>
|
|
|
|
<asp:TextBox ID="TxtFechaPendientes" runat="server" CausesValidation="true" MaxLength="10" ValidationGroup="GrpPendientes" Width="70px" ClientIDMode="Static"></asp:TextBox>
|
|
<asp:LinkButton ID="ImgFechaPendientes" Style="background-color: white;" class="btn default " Text="<i style='width:16px; height:16px;' class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
<ajax:MaskedEditExtender ID="MEEFechaPendientes" runat="server" TargetControlID="TxtFechaPendientes" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CEFechaPendientes" TargetControlID="TxtFechaPendientes" PopupButtonID="ImgFechaPendientes" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaPendientes" runat="server" ControlToValidate="TxtFechaPendientes" 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="GrpPendientes"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFechaPendientes" runat="server" ControlToValidate="TxtFechaPendientes" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpPendientes"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFecha1Pendientes" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaPendientes" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFecha2Pendientes" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaPendientes" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<asp:Button Text="Recarga" Width="75px" ID="BtnConsultarPendientes" OnClick="BtnConsultarPendientes_Click" CssClass="btn btn-primary" runat="server" ValidationGroup="GrpPendientes" />
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</asp:Panel>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<asp:GridView ID="GVPendientes" runat="server" DataKeyNames="CveVenta" EmptyDataText="Aun no hay registros." AutoGenerateColumns="False" ShowHeader="true" ShowHeaderWhenEmpty="True" HeaderStyle-CssClass="Titulos" CssClass="table table-striped table-hover Widthall ScrollAD" data-height="200" data-freezerows="1" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Serie-Folio" ItemStyle-Width="20%">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" ID="LblFolio" Text='<%# Eval("SerieFolio")%>' />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="NombreComercial" HeaderText="Cliente"/>
|
|
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:LinkButton Text="Recibir" ID="BtnRecibir" CommandArgument="-1" OnClick="BtnRecibir_Click" CssClass="btn btn-primary btn-xs" runat="server" />
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center" Width="20%" />
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<%--INVENTARIO INICIAL--%>
|
|
<asp:UpdatePanel runat="server" ID="UpCodigoBarras" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="col-md-3">
|
|
<div class="portlet smmallpadding light bordered" id="DivCodigoBarras" runat="server" visible="False">
|
|
<div class="portlet-title">
|
|
<div class="tools">
|
|
<a href="javascript;" data-idchekbox="<%= chkexpand2.ClientID%>" class=" <%= IIf(chkexpand2.Checked = True, "collapse", "expand")%>"></a>
|
|
</div>
|
|
<div class="caption uppercase" style="position: relative;">
|
|
<i class="fa fa-info-circle"></i>Agregar Producto
|
|
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<asp:Panel ID="PnlII" runat="server" DefaultButton="BtnAddCodigo">
|
|
<div class="row">
|
|
<label class="col-md-4">Cantidad</label>
|
|
<div class="col-md-8">
|
|
<asp:TextBox runat="server" ID="TxtCantidadProducto" Text="1" Width="50px" Enabled="false"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-md-4">NoParte</label>
|
|
<div class="col-md-8">
|
|
<asp:TextBox runat="server" ID="TxtCodigo" ClientIDMode="Static"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-md-4">UPC/EAN</label>
|
|
<div class="col-md-8">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Panel ID="PanelCodigoBarras" runat="server" DefaultButton="BtnCodigoBarras">
|
|
<asp:TextBox runat="server" ID="TxtCodigoBarras" ClientIDMode="Static"></asp:TextBox>
|
|
<asp:Button Text="" ID="BtnCodigoBarras" OnClick="BtnCodigoBarras_Click" Style="display: none" runat="server" />
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<div runat="server" id="TdSeriePS" visible="false" class="row" style="margin-top: 5px;">
|
|
<label class="col-md-4">Serie</label>
|
|
<div class="col-md-8">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Panel ID="PanelSerie" runat="server" DefaultButton="BtnSeriePS">
|
|
<asp:TextBox runat="server" ID="TxtCodigoSerie"></asp:TextBox>
|
|
<asp:Button Text="" ID="BtnSeriePS" OnClick="BtnSeriePS_Click" Style="display: none" runat="server" />
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="row" style="margin-top: 5px;">
|
|
<div class="col-md-12" style="text-align: center;">
|
|
<asp:Button ID="BtnAddCodigo" runat="server" Text="Guardar" CssClass="btn btn-primary" Width="75%" />
|
|
</div>
|
|
</div>
|
|
</asp:Panel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel runat="server" ID="UpRegistroTipoCambio" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="col-md-4">
|
|
|
|
<div class="portlet smmallpadding light bordered" id="DivRegistro" runat="server" visible="false">
|
|
<div class="portlet-title">
|
|
<div class="tools">
|
|
<a href="javascript;" data-idchekbox="<%= chkexpand2.ClientID%>" class=" <%= IIf(chkexpand2.Checked = True, "collapse", "expand")%>"></a>
|
|
<asp:CheckBox ID="chkexpand2" Checked="true" CssClass="hidden" runat="server" />
|
|
</div>
|
|
<div class="caption uppercase" style="position: relative;">
|
|
<i class="fa fa-info-circle"></i>Información de registro
|
|
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<div class="row">
|
|
<label class="col-md-3 truncate">
|
|
Usuario:
|
|
|
|
</label>
|
|
<div class="col-md-6">
|
|
<asp:Label ID="LblUsuarioRegistro" runat="server"></asp:Label>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row" style="margin-top: 10px;">
|
|
<label class="col-md-3 truncate">
|
|
Fecha:
|
|
|
|
</label>
|
|
<div class="col-md-6">
|
|
<asp:Label ID="LblFechaRegistro" runat="server"></asp:Label>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 10px;">
|
|
<label class="col-md-3 truncate">
|
|
Referencia:
|
|
|
|
</label>
|
|
<div class="col-md-6">
|
|
<asp:HyperLink ID="HplCompra" Target="_blank" runat="server" Visible="False" CssClass="Texto">Ver Compra</asp:HyperLink>
|
|
<asp:HyperLink ID="HplVenta" Target="_blank" runat="server" Visible="False" CssClass="Texto">Ver Venta</asp:HyperLink>
|
|
<asp:HyperLink ID="HplPoliza" Target="_blank" runat="server" Visible="False" CssClass="Texto">Ver Póliza</asp:HyperLink>
|
|
<asp:HyperLink ID="HplOrdenCompra" Target="_blank" runat="server" Visible="False" CssClass="Texto">Ver Orden Compra</asp:HyperLink>
|
|
<asp:HiddenField ID="HdnCveOrdenCompra" runat="server" />
|
|
</div>
|
|
</div>
|
|
<div class="row" runat="server" id="RowConsignacion" visible="false" style="margin-top: 10px;">
|
|
<label class="col-md-3 truncate">
|
|
Consignación:
|
|
|
|
</label>
|
|
<div class="col-md-6">
|
|
<asp:HyperLink ID="HLConsignacion" Target="_blank" NavigateUrl="#" Text="" runat="server" />
|
|
<%--<asp:Label Text="" ID="LbConsignacion" runat="server" />--%>
|
|
</div>
|
|
</div>
|
|
<div class="row" runat="server" id="RowTipoCambio" visible="false" style="margin-top: 10px;">
|
|
<label class="col-md-3 truncate">
|
|
Tipo Cambio:
|
|
|
|
</label>
|
|
<div class="col-md-6">
|
|
<asp:Label Text="" ID="LbTipoCambio" runat="server" />
|
|
</div>
|
|
</div>
|
|
<div class="row" runat="server" id="RowMtoRel" visible="false" style="margin-top: 10px;">
|
|
<label class="col-md-3 truncate">
|
|
Mto. Rel.:
|
|
|
|
</label>
|
|
<div class="col-md-6">
|
|
<asp:HyperLink ID="lnkMtoRelaioando" CssClass="Texto" runat="server" Target="_blank">ver</asp:HyperLink>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="portlet smmallpadding light bordered" id="DivTipoCambio" runat="server" visible="false">
|
|
<div class="portlet-title">
|
|
<div class="tools">
|
|
<a href="javascript;" data-idchekbox="<%= chkexpand3.ClientID%>" class=" <%= IIf(chkexpand3.Checked = True, "collapse", "expand")%>"></a>
|
|
<asp:CheckBox ID="chkexpand3" Checked="true" CssClass="hidden" runat="server" />
|
|
</div>
|
|
<div class="caption uppercase" style="position: relative;">
|
|
<i class="fa fa-info-circle"></i>Tipo de Cambio
|
|
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<table style="width: 100%">
|
|
<tr>
|
|
<td>Moneda:</td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlMonedaTC" AutoPostBack="true" OnSelectedIndexChanged="DdlMonedaTC_SelectedIndexChanged" CssClass="form-control input-sm select2me" runat="server" CausesValidation="true" ValidationGroup="GrpTipoCambio">
|
|
<asp:ListItem Selected="True" Text="Pesos" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Dólares" Value="2"></asp:ListItem>
|
|
</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="GrpTipoCambio"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOMoneda" runat="server" HighlightCssClass="vco" TargetControlID="RFVMoneda" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
<tr id="TrTC1" visible="false" runat="server">
|
|
<td>Tipo de Cambio:</td>
|
|
<td>
|
|
<asp:TextBox ID="TxtTipoCambio" onkeyup="FormatoMoneda(this);" runat="server" Width="60px" CausesValidation="true" MaxLength="10" ValidationGroup="GrpTipoCambio"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVTipoCambio" runat="server" ControlToValidate="TxtTipoCambio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Cambio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTipoCambio"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCETipoCambio" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoCambio" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
<tr id="TrTC2" visible="false" runat="server">
|
|
<td colspan="2" align="center">
|
|
<asp:Button ID="BtnAplicarTC" OnClick="BtnAplicarTC_Click" Text="Aplicar Tipo Cambio" CssClass="btn btn-primary" ValidationGroup="GrpTipoCambio" runat="server" Visible="false" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<div class="row" runat="server" id="DivCodigoSeriePS" visible="false">
|
|
<div class="col-md-4 pull-right">
|
|
<table style="float: right;">
|
|
<tr>
|
|
<td><i class="fa fa-barcode" style="font-size: 1.8em; margin-top: 8px;" aria-hidden="true" data-toggle="tooltip" title="Código Barras"></i></td>
|
|
<td>
|
|
<asp:Panel ID="PanelCodigo" runat="server" DefaultButton="BtnCodigoPS">
|
|
<asp:TextBox ID="TxtCodigoPS" ClientIDMode="Static" Text="" runat="server" />
|
|
<%--<asp:Button Text="" ID="BtnCodigoPS" OnClick="BtnCodigoPS_Click" Style="display: none" runat="server" />--%>
|
|
</asp:Panel>
|
|
</td>
|
|
<td runat="server" visible="false" id="TdSeriePSAdd">
|
|
<asp:Panel ID="Panel2" runat="server" DefaultButton="BtnSeriePSAdd">
|
|
<asp:TextBox ID="TxtSeriePS" Text="" runat="server" />
|
|
<%-- <asp:Button Text="" ID="BtnSeriePSAdd" OnClick="BtnSeriePSAdd_Click" Style="display: none" runat="server" />--%>
|
|
</asp:Panel>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div style="width: 70%" align="right">
|
|
<asp:Label ID="LbTotalMovimientos" Text="Total de Movimientos: 0" runat="server" />
|
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvM.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvM.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
</div>
|
|
<asp:UpdatePanel ID="UppGrid" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:HiddenField runat="server" ID="HdnCodAFEdit" Value="-1" ClientIDMode="Static" />
|
|
<asp:GridView ID="GvM" runat="server" GridLines="none" Width="70%"
|
|
CssClass="table table-hover ADScroller btn-xs" ShowHeader="True"
|
|
EmptyDataText="Aún no hay registros." DataKeyNames="No,CveMovimientoDetalle,CvePS,PU,Cantidad"
|
|
AutoGenerateColumns="False" AllowPaging="False" ShowFooter="True" ShowHeaderWhenEmpty="True">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="" ItemStyle-Font-Size="6pt">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="lbNo" runat="server" Text='<%# Eval("No")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="28px"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Cantidad">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="lbCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:#,##0.######}")%>'> </asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="43px"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Producto" ReadOnly="true" DataField="CodigoPS" ItemStyle-Width="200px" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:TemplateField HeaderText="Unidad" ItemStyle-HorizontalAlign="Left">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LblUnidad" runat="server" Text='<%# Eval("UnidadMedida")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="73px"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Observaciones">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="lblObservaciones" runat="server" Text='<%# Eval("Observaciones")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="PU">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="lbPU" runat="server" Text='<%# Eval("PU", "{0:#,##0.######}")%>'> </asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="43px"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LnkActuallizarUsado" runat="server" AlternateText="Editar" CausesValidation="False" OnClick="LnkActuallizarUsado_Click" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
|
<asp:LinkButton ID="lnkRemove" runat="server" AlternateText="Eliminar" OnClick="DeleteRow" CommandArgument='<%# Eval("No")%>' CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea eliminar el concepto?" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
<ItemStyle Width="140px"></ItemStyle>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div id="DivTotal" runat="server" visible="false">
|
|
<div class="input-group">
|
|
<span class="input-group-addon">$</span>
|
|
<asp:TextBox ID="TxtTotal" ClientIDMode="Static" Text="0.00" CssClass="form-control input-sm" runat="server" Enabled="false" />
|
|
</div>
|
|
<ajax:FilteredTextBoxExtender ID="FTIRNC" runat="server" TargetControlID="TxtTotal" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
</div>
|
|
<div class="col-md-8"></div>
|
|
</div>
|
|
<br />
|
|
<div style="width: 100%; text-align: center;">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:HiddenField ID="HdnIdPoliza" Value="0" runat="server" />
|
|
<asp:Button ID="BtnGuardar" runat="server" ValidationGroup="GrpGuardar" Text="Guardar" CssClass="btn btn-primary" />
|
|
<asp:Button ID="BtnEliminar" runat="server" Text="Eliminar" Visible="False" CssClass="btn btn-danger" data-toggle="confirmation" data-popout="true" data-original-title="confirmar" data-btn-ok-label="si" />
|
|
<asp:Button ID="BtnContabilizar" runat="server" ValidationGroup="" Text="Contabilizar" Visible="False" CssClass="btn btn-primary" />
|
|
<asp:Button ID="BtnNuevo" runat="server" ValidationGroup="" Text="Nuevo" CssClass="btn btn-success" />
|
|
<asp:Button ID="BtnGeneraPrepoliza" runat="server" Visible="false" ValidationGroup="" Text="GeneraPrePoliza" CssClass="btn btn-success" />
|
|
<br />
|
|
<br />
|
|
<div runat="server" id="DivMensaje" visible="false">
|
|
<p>
|
|
<code>
|
|
<asp:Literal Text="" ID="LtMensaje" runat="server" />
|
|
</code>
|
|
</p>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<br />
|
|
<%-- EMPIEZA: BITACORA --%>
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
|
|
<div class="portlet xspadding light bordered" id="DivBitacora" runat="server" visible="false" style="display: none">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<span class="caption-subject bold uppercase">Bitácora</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<asp:HyperLink ID="ImgAddObs" CssClass="caption-subject bold" data-toggle="modal" data-target="#ModalBitacora" runat="server" Text=" <i class='fa fa-commenting font-green' style='font-weight: 700 !important;' ><span class='caption-subject bold'>Agregar</span></i>" Style="cursor: pointer;" ToolTip="Observaciones"></asp:HyperLink><br />
|
|
<asp:HyperLink ID="HlEvento" CssClass="thickbox caption-subject bold" runat="server" Text=" <i class='fa fa-calendar-plus-o font-green' style='font-weight: 700 !important;' >Agendar</i>" Visible="false" Style="cursor: pointer;" ToolTip="Agendar"></asp:HyperLink>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
|
|
<asp:UpdatePanel ID="UPEventoBitacora" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvBitacora" 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="16%" />
|
|
<asp:BoundField HeaderText="Fecha Agenda" DataField="FechaInicio" ItemStyle-Width="16%" />
|
|
<asp:BoundField HeaderText="Usuario" DataField="Usuario" ItemStyle-Width="16%" />
|
|
<asp:BoundField HeaderText="Descripción" DataField="Descripcion" ItemStyle-Width="55%" />
|
|
<asp:TemplateField HeaderText="Archivo" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LinkArchivo" Visible="false" runat="server" CssClass="Texto" OnClick="DownloadFile">
|
|
<asp:Image ImageUrl="/Imagenes/Abajo.png" ID="ImgArchivo" runat="server" />
|
|
</asp:LinkButton>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div id="ModalBitacora" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Bitácora</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UPAddEventoBitacora" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<label>Bitácora/Observaciones</label>
|
|
<br />
|
|
<asp:TextBox CssClass="form-control" ID="TxtEventoDescripcion" class="Widthall" runat="server" TextMode="MultiLine" Columns="60" Rows="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>
|
|
</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>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<%-- TERMINA: BITACORA --%>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Panel runat="server" DefaultButton="BtnGuardarCantidadEspecial">
|
|
<div id="ModalCantidad" 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">
|
|
<asp:Label ID="LbCantidadEspecial" Text="Cantidad: 1234 - Producto Equis" runat="server" />
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-5" style="text-align: right;">
|
|
Cantidad
|
|
</div>
|
|
<div class="col-md-7">
|
|
<asp:TextBox ClientIDMode="Static" ID="TxtCantidadEspecial" Text="" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnGuardarCantidadEspecial" runat="server" ClientIDMode="Static" Text="Aceptar" CssClass="btn btn-primary" />
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<div id="DivModalAgregar" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpModalAgregar" 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="HTituloDispostivo" runat="server">Agregar</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
<div class="form-group form-md-line-input ">
|
|
|
|
<label for='<%= txtCantidad.ClientID %>'>Cantidad:</label>
|
|
<asp:TextBox ID="txtCantidad" CssClass="form-control input-sm" Width="55px" MaxLength="15" runat="server" ValidationGroup="GprAgregarUsado"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="SoloNumerosCantidad" runat="server" TargetControlID="txtCantidad" FilterType=" Numbers" />
|
|
<asp:RequiredFieldValidator ID="RFVCantidad" runat="server" ControlToValidate="txtCantidad" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingréselo." ValidationGroup="GprAgregarUsado"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOCantidad1" runat="server" HighlightCssClass="vco" TargetControlID="RFVCantidad" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<asp:CustomValidator ID="CVCantidad" runat="server" ClientValidationFunction="ValidaDecimal6digits" ControlToValidate="TxtCantidad" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> no tiene el formato correcto (6 decimales). Por favor rectifique y vuelva a intentar." ValidateEmptyText="True" ValidationGroup="GprAgregarUsado"></asp:CustomValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCECantidad" runat="server" HighlightCssClass="vco" TargetControlID="CVCantidad" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<i></i>
|
|
|
|
</div>
|
|
<%--<div class="form-group form-md-line-input ">
|
|
<label for='<%= DdlClasificacion.ClientID %>'>Clasificación:</label>
|
|
|
|
<asp:DropDownList ID="DdlClasificacion" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Width="100%" Class="form-control input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Seleccione la Clasificación (Todas)" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>--%>
|
|
<div class="form-group form-md-line-input ">
|
|
<asp:DropDownList runat="server" ID="DdlProducto2" AutoPostBack="true" AppendDataBoundItems="true" Class="form-control select2me" Style="width: 200px !important;" DataTextField="PSCodigo" DataValueField="CvePS" OnSelectedIndexChanged="DdlProducto2_SelectedIndexChanged" />
|
|
<asp:HiddenField ID="HdnCveTamaño" runat="server" />
|
|
<label for='<%= DdlProducto2.ClientID %>'>Producto:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input ">
|
|
<br />
|
|
<label for='<%= DdlUnidad.ClientID %>'>Unidad de Medida:</label><br />
|
|
<asp:DropDownList ID="DdlUnidad" runat="server" Class="form-control input-sm select2me" Style="width: 75px !important;" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida"></asp:DropDownList>
|
|
<asp:CompareValidator ID="CVUnidad" runat="server" ControlToValidate="ddlUnidad" Type="Integer" Operator="GreaterThan" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Unidad Medida''</b> es necesario, por favor selecione una." Display="None" ValueToCompare="0" ValidationGroup="GprAgregarUsado"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" HighlightCssClass="vco" TargetControlID="CVUnidad" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input " runat="server" visible="false">
|
|
<label for='<%= txtPrecio.ClientID %>'>PU:</label>
|
|
<asp:TextBox ID="txtPrecio" CssClass="form-control input-sm" runat="server" Width="55px" Text="0"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="ftbe" runat="server" TargetControlID="txtPrecio" FilterType="Custom, Numbers" ValidChars="+-.," />
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input ">
|
|
<label for='<%= TxtObservacionesdetalle.ClientID %>'>Observaciones:</label>
|
|
<asp:TextBox ID="TxtObservacionesdetalle" CssClass="form-control input-sm" runat="server" MaxLength="200"></asp:TextBox>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="LnkModalAgregarUsado" runat="server" CssClass="btn btn-success" Text="Agregar" OnClick="LnkModalAgregarUsado_Click" ValidationGroup="GprAgregarUsado"></asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<asp:Button ID="BtnGenerarRNC" runat="server" ClientIDMode="Static" Text="RNC" Style="display: none;" />
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script type="text/javascript">
|
|
|
|
function GenerarRNC() {
|
|
$('#BtnGenerarRNC').click();
|
|
}
|
|
|
|
function CargaActivoFijo(CveAF, Codigo) {
|
|
$get("HdnCveActivoFijo").value = CveAF;
|
|
$get("HdnCodigoAF").value = Codigo;
|
|
$('#BtnVinculaAF').click();
|
|
}
|
|
|
|
function CargaActivoFijoEdit(CveAF, Codigo, ri) {
|
|
debugger;
|
|
$get("C_Tab_tabConceptos_GvD_HdnCveActivoFijo_" + ri).value = CveAF;
|
|
$get("C_Tab_tabConceptos_GvD_HdnCodigoAF_" + ri).value = Codigo;
|
|
$get("C_Tab_tabConceptos_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;
|
|
|
|
if (Txt.value != '')
|
|
$('#BtnVinculaAFEdit').click();
|
|
}
|
|
|
|
function EnterAFEditOK(Cve, Codigo) {
|
|
$get(H1.id).value = Cve;
|
|
$get(H2.id).value = Codigo;
|
|
$get(T.id).value = (Codigo == -1) ? "" : Codigo;
|
|
}
|
|
|
|
var CodigoAF = "";
|
|
|
|
function EnterAF(event) {
|
|
if (event.which == 13 || event.keyCode == 13) {
|
|
Focus = false;
|
|
$get("HdnCveActivoFijo").value = -2;
|
|
$('#BtnVinculaAF').click();
|
|
CodigoAF = $get('LblCodigo').value;
|
|
}
|
|
|
|
}
|
|
|
|
function AFBlur() {
|
|
$get("HdnCveActivoFijo").value = -2;
|
|
|
|
if ($get('LblCodigo').value != '' && $get('LblCodigo').value != CodigoAF) {
|
|
$('#BtnVinculaAF').click();
|
|
CodigoAF = $get('LblCodigo').value;
|
|
}
|
|
}
|
|
|
|
function playsonidito(NomArchivo) {
|
|
var URL = /Sonidos/ + NomArchivo
|
|
var snd = new Audio(URL);
|
|
snd.play();
|
|
snd.currentTime = 0;
|
|
}
|
|
|
|
function Focus() {
|
|
$('#TxtCodigoBarras').focus()
|
|
}
|
|
|
|
function Focus2() {
|
|
$('#TxtCodigo').focus()
|
|
}
|
|
|
|
function FocusAdd() {
|
|
$('#TxtCodigoPS').focus()
|
|
}
|
|
|
|
function CantidadEspecial() {
|
|
$('#ModalCantidad').modal('show');
|
|
$('#TxtCantidadEspecial').focus()
|
|
}
|
|
|
|
Sys.Application.add_load(function (s, e) {
|
|
|
|
|
|
|
|
|
|
|
|
<%-- if ($("#<%= DdlProductows.ClientID%>")) {
|
|
if (!($('#<%= HFProducto.ClientID %>').val() === '')) {
|
|
AddItem($('#<%= HFTProducto.ClientID%>').val(), $('#<%= HFProducto.ClientID %>').val());
|
|
}
|
|
}
|
|
if ($("#<%= DdlProductows.ClientID%>").data('creado') === '1') { } else {
|
|
$("#<%= DdlProductows.ClientID%>").data('creado', '1')
|
|
$("#<%= DdlProductows.ClientID%>").select2({
|
|
ajax: {
|
|
url: "/Ashx/SIGWeb.ashx",
|
|
dataType: 'json',
|
|
delay: 250,
|
|
data: function (params) {
|
|
return {
|
|
Name: params.term, // search term
|
|
Metodo: 'getps'
|
|
};
|
|
},
|
|
processResults: function (data, params) {
|
|
// parse the results into the format expected by Select2
|
|
// since we are using custom formatting functions we do not need to
|
|
// alter the remote JSON data, except to indicate that infinite
|
|
// scrolling can be used
|
|
params.page = params.page || 1;
|
|
|
|
return {
|
|
results: data,
|
|
pagination: {
|
|
more: (params.page * 30) < data.total_count
|
|
}
|
|
};
|
|
},
|
|
cache: true
|
|
},
|
|
escapeMarkup: function (markup) { return markup; }, // let our custom formatter work
|
|
minimumInputLength: 3
|
|
});
|
|
}
|
|
if ($("#<%= DdlProductows.ClientID%>")) {
|
|
if (!($('#<%= HFProducto.ClientID %>').val() === '')) {
|
|
AddItem($('#<%= HFTProducto.ClientID%>').val(), $('#<%= HFProducto.ClientID %>').val());
|
|
}
|
|
$("#<%= DdlProductows.ClientID%>").on("select2:select", function (e) { console.log(e); $('#<%= HFProducto.ClientID %>').val(e.params.data.id); $('#<%= HFTProducto.ClientID%>').val(e.params.data.text); $('#<%= myhidenbutton.ClientID %>').click(); });
|
|
}
|
|
|
|
if ($("#<%= DdlProducto.ClientID%>")) {
|
|
$("#<%= DdlProducto.ClientID%>").on("select2:select", function (e) { console.log(e); $('#<%= HFProducto.ClientID %>').val(e.params.data.id); $('#<%= HFTProducto.ClientID%>').val(e.params.data.text); });
|
|
|
|
}--%>
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
</asp:Content>
|
|
|