4096 lines
365 KiB
Plaintext
4096 lines
365 KiB
Plaintext
<%@ Page Title="AF - Activo Fijo" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="AF.aspx.vb" Inherits="AF_AF" ValidateRequest="false" EnableEventValidation="false" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="E" runat="Server">
|
|
<asp:Literal ID="LtlTitulo" runat="server" Text="Registro de Activos Fijos"></asp:Literal> <asp:Literal ID="LtlActivoFijo" runat="server"></asp:Literal>
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="HB" runat="Server">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="ImgImprimir" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkModalCodigoBarrasQr" runat="server" data-toggle="tooltip" data-placement="left" title="Generar codigo de Barras/QR" Text="<i class='fa fa-qrcode'></i> Codigo de Barras/QR"></asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkAddPlacas" runat="server"><i class="fa fa-plus"></i>Registrar Placas</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkAddLicencias" runat="server"><i class="fa fa-plus"></i>Registrar Licencias</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkAddPolizaSeguro" runat="server"><i class="fa fa-plus"></i>Registrar Póliza de Seguro</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkAddEvento" runat="server"><i class="fa fa-plus"></i>Registrar Evento Programado</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkAddFalla" runat="server"><i class="fa fa-plus"></i>Registrar Falla</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkAddAccidente" runat="server"><i class="fa fa-plus"></i>Registrar Accidente</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkAddActividad" runat="server"><i class="fa fa-plus"></i>Registrar Actividad</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:HyperLink ID="HLAFInv" data-toggle="modal" data-target="#ModalAFInv" title="Agregar desde Inventario" Visible="false" runat="server"><i class="fa fa-cubes"></i> Importar desde Almacén</asp:HyperLink>
|
|
</li>
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="ImgImprimir" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-top: 20px;">
|
|
<tr>
|
|
<td align="left">
|
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<ajax:TabContainer ID="Tab" runat="server" Width="100%">
|
|
<ajax:TabPanel ID="TabAlta" runat="server" HeaderText="Información General">
|
|
<ContentTemplate>
|
|
<asp:UpdatePanel ID="UPG" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="portlet light xspadding bordered ">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Datos del Activo Fijo</span>
|
|
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<a href="" class="collapse" data-original-title="" title=""></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form-horizontal form-row-sepe formnombottom label12">
|
|
<div class="form-body">
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">Código:</label>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group form-md-line-input">
|
|
<asp:TextBox CssClass="form-control input-sm" ID="TxtCodigo" runat="server" MaxLength="50"></asp:TextBox>
|
|
<label></label>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">Descripción:</label>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group form-md-line-input">
|
|
<asp:TextBox CssClass="form-control input-sm" ID="TxtDescripcion" runat="server" MaxLength="500"></asp:TextBox>
|
|
<label></label>
|
|
<asp:RequiredFieldValidator ID="RFVDescripcion" runat="server" ControlToValidate="TxtDescripcion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripcion del ActivoFijo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEDescripcion" runat="server" HighlightCssClass="vco" TargetControlID="RFVDescripcion" Width="300px" BehaviorID="_content_VCEDescripcion"></ajax:ValidatorCalloutExtender>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">Tipo de Activo Fijo:</label>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<asp:DropDownList ID="DdlTipoActivoFijo" runat="server" CssClass="form-control input-sm select2me input-small" AppendDataBoundItems="True" AutoPostBack="True" DataTextField="TipoActivoFijo" DataValueField="CveTipoActivoFijo" Width="206px" ValidationGroup="GrpGuardar">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVTipoActivoFijo" runat="server" ControlToValidate="DdlTipoActivoFijo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Activo Fijo''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOTipoActivoFijo" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoActivoFijo" Width="300px" BehaviorID="_content_VCOTipoActivoFijo"></ajax:ValidatorCalloutExtender>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">SubTipo de Activo Fijo:</label>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<asp:DropDownList ID="DdlSubTipoActivoFijo" CssClass="form-control input-sm select2me input-small" runat="server" AppendDataBoundItems="True" AutoPostBack="True" DataTextField="SubTipoActivoFijo" DataValueField="CveSubTipoActivoFijo" Width="206px" ValidationGroup="GrpGuardar">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVSubTipoActivoFijo" runat="server" ControlToValidate="DdlSubTipoActivoFijo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''SubTipo de Activo Fijo''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOSubTipoActivoFijo" runat="server" HighlightCssClass="vco" TargetControlID="RFVSubTipoActivoFijo" Width="300px" BehaviorID="_content_VCOSubTipoActivoFijo"></ajax:ValidatorCalloutExtender>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="DivDispositivo" runat="server" visible="false">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">Dispositivo:</label>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<asp:DropDownList ID="DdlDispositivo" CssClass="form-control input-sm select2me input-small" runat="server" OnSelectedIndexChanged="DdlDispositivo_SelectedIndexChanged" AppendDataBoundItems="True" AutoPostBack="True" DataTextField="Display" DataValueField="CveDispositivo" Width="206px">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList><i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 ">
|
|
<label class="control-label">Grupo:</label>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<asp:DropDownList ID="DdlGrupo" runat="server" DataValueField="CveGrupo" DataTextField="Grupo" CssClass="form-control input-small select2me">
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-1">
|
|
<asp:Button ID="BtnAgregarGrupo" runat="server" CssClass="btn btn-primary btn-sm" Text="+" Visible="True" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class="control-label">Marca:</label>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<asp:DropDownList ID="DdlMarcas" runat="server" DataValueField="CveMarcaActivoFijo" DataTextField="MarcaActivoFijo" CssClass="form-control input-small select2me" AutoPostBack="true">
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class="control-label">Modelo:</label>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<asp:DropDownList ID="DdlModelos" runat="server" DataValueField="CveModeloActivoFijo" DataTextField="ModeloActivoFijo" CssClass="form-control input-small select2me">
|
|
<asp:ListItem Selected="True" Value="-1" Text="-"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">Valor de Compra:</label>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
<div class="form-group form-md-line-input">
|
|
<asp:TextBox CssClass="form-control input-sm" ID="TxtValorCompra" runat="server" Style="text-align:right;" MaxLength="13"></asp:TextBox>
|
|
<label></label>
|
|
<ajax:FilteredTextBoxExtender ID="FTEValorCompra" runat="server" TargetControlID="TxtValorCompra" FilterType="Custom, Numbers" ValidChars="." BehaviorID="_content_FTEValorCompra" />
|
|
<asp:RequiredFieldValidator ID="RFVValorCompra" runat="server" ControlToValidate="TxtValorCompra" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Valor de Compra''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVValorCompra" runat="server" ControlToValidate="TxtValorCompra" Display="None" ErrorMessage="El campo <b>''Valor de Compra''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOValorCompra1" runat="server" HighlightCssClass="vco" TargetControlID="RFVValorCompra" Width="300px" BehaviorID="_content_VCOValorCompra1"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCOValorCompra2" runat="server" HighlightCssClass="vco" TargetControlID="CVValorCompra" Width="300px" BehaviorID="_content_VCOValorCompra2"></ajax:ValidatorCalloutExtender>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3" runat="server" id="DivValorCompraMN" visible="False">
|
|
<div class="form-group form-md-line-input">
|
|
<div>
|
|
<div class="col-md-3"> MN</div>
|
|
<div class="col-md-9"><asp:TextBox ReadOnly="true" CssClass="form-control input-sm" Style="text-align:right;" ID="TxtValorCompraMN" runat="server" MaxLength="13"></asp:TextBox></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2" style="padding-top: 10px;" runat="server" id="DivCompra" visible="False">
|
|
<asp:HyperLink ID="HLCompra" Target="_blank" Text="Ver Compra" runat="server" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">
|
|
<asp:Label runat="server" ID="LblFechaCompra">Fecha de Compra:</asp:Label></label>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
<div class="form-group">
|
|
<div class="input-group input-sm date date-picker" data-date-format="dd/mm/yyyy" style="width: 100px; padding: 5px 0px;">
|
|
<asp:TextBox ID="TxtFechaCompra" runat="server" CausesValidation="True" CssClass="form-control input-sm" Width="80px"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="MEEFecha" runat="server" TargetControlID="TxtFechaCompra" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" BehaviorID="_content_MEEFecha" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender ID="Calendario" runat="server" TargetControlID="TxtFechaCompra" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" BehaviorID="_content_Calendario"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaCompra" runat="server" ControlToValidate="TxtFechaCompra" Display="None" ErrorMessage="El campo <b>''Fecha''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFechaCompra" runat="server" ControlToValidate="TxtFechaCompra" Display="None" ErrorMessage="El campo <b>''Fecha''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFechaCompra1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaCompra" Width="350px" BehaviorID="_content_VCOFechaCompra1"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFechaCompra2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaCompra" Width="350px" BehaviorID="_content_VCOFechaCompra2"></ajax:ValidatorCalloutExtender>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-5" style="vertical-align: middle;" align="center">
|
|
<div style="z-index: 5; position: relative;">
|
|
<div id="DivAFInvAdvertencia" visible="false" clientidmode="Static" runat="server" class="alert alert-warning" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
|
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
|
<strong style="font-size: 14px; margin-right: 25px;">Importado desde Almacén </strong>
|
|
<asp:Literal Text="" runat="server" ID="LtTipoCambioAdvertencia"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">
|
|
<asp:Label runat="server" ID="LblFechaBaja">Fecha de Baja:</asp:Label></label>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
<div class="form-group">
|
|
<div class="input-group input-sm date date-picker" data-date-format="dd/mm/yyyy" style="width: 100px; padding: 5px 0px;">
|
|
<asp:TextBox ID="TxtFechaBaja" runat="server" CausesValidation="True" CssClass="form-control input-sm" Width="80px"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="LnkTxtFechaBaja" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="METxtFechaBaja" runat="server" TargetControlID="TxtFechaBaja" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" BehaviorID="_content_MEEFecha" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender ID="CETxtFechaBaja" runat="server" TargetControlID="TxtFechaBaja" PopupButtonID="LnkTxtFechaBaja" PopupPosition="BottomRight" BehaviorID="_content_Calendario"></ajax:CalendarExtender>
|
|
|
|
<%-- <asp:RequiredFieldValidator ID="RfvTxtFechaBaja" runat="server" ControlToValidate="TxtFechaBaja" Display="None" ErrorMessage="El campo <b>''Fecha''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVTxtFechaBaja" runat="server" ControlToValidate="TxtFechaBaja" Display="None" ErrorMessage="El campo <b>''Fecha''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender32" runat="server" HighlightCssClass="vco" TargetControlID="RfvTxtFechaBaja" Width="350px" BehaviorID="_content_VCOFechaCompra1"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender33" runat="server" HighlightCssClass="vco" TargetControlID="CVTxtFechaBaja" Width="350px" BehaviorID="_content_VCOFechaCompra2"></ajax:ValidatorCalloutExtender>--%>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">No. Serie o Identificación:</label>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group form-md-line-input">
|
|
<asp:TextBox CssClass="form-control input-sm" ID="TxtNoSerie" runat="server" MaxLength="50"></asp:TextBox>
|
|
<label></label>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">Año:</label>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group form-md-line-input">
|
|
<asp:TextBox CssClass="form-control input-sm" ID="TxtAño" runat="server" MaxLength="4"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTEAño" runat="server" TargetControlID="TxtAño" FilterType="Custom, Numbers" BehaviorID="_content_FTEAño" />
|
|
<label></label>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="divCuentas" runat="server" visible="false">
|
|
<asp:Button ID="BtnVincularCuenta" runat="server" CssClass="btn btn-primary btn-sm" Text="+ Cuenta" Visible="false" />
|
|
<asp:GridView ID="GvCta" runat="server" DataKeyNames="CveCuentaAsignacion,CveConceptoContable,CveCuenta,ConceptoContable,NombreCuenta" AutoGenerateColumns="False" EmptyDataText="" ToolTip="Listado de Historial de Ventas" CssClass="table table-striped table-advance table-hover" Style=" width: 100%;" GridLines="None">
|
|
<Columns>
|
|
<asp:BoundField HeaderText="Concepto Contable" DataField="ConceptoContable" />
|
|
<asp:BoundField HeaderText="Nombre Cuenta" DataField="NombreCuenta" />
|
|
<asp:TemplateField ItemStyle-Width="49px">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="ImgE" runat="server" AlternateText="Editar" CausesValidation="False" OnClick="ActualizaContaCuenta" CssClass="btn btn-circle btn-xs green" Text="<i class='fa fa-pencil'></i>" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
</div>
|
|
|
|
<div class="row" runat="server" id="trCuentaContable" visible="False">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">Cuenta Contable:</label>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="row">
|
|
<asp:DropDownList ID="DdlCtaContable" CssClass="form-control input-sm input-small select2me" runat="server" AppendDataBoundItems="True" Width="80%" DataTextField="CtaCodigo" DataValueField="Id">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="0"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:Button ID="BtnCtaContable" runat="server" CssClass="btn btn-primary btn-sm" Text="+" Visible="False" />
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<asp:GridView ID="GvC" runat="server" GridLines="None" BorderWidth="0px" CssClass="table table-striped table-hover table-advance Widthall" AutoGenerateColumns="False" DataKeyNames="CveCaracteristicaClasificacion,CveCaracteristica,TipoCampo,Requerida" ShowHeader="False">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemStyle BorderStyle="None" />
|
|
<ItemTemplate>
|
|
<asp:Panel ID="PnlClasif" Visible="False" runat="server">
|
|
<div style="width: 100%" class="SubTotales">
|
|
<asp:Label ID="LblClasif" runat="server" Text=""></asp:Label>
|
|
</div>
|
|
</asp:Panel>
|
|
<div style="width: 130px; display: inline-block;">
|
|
<asp:Label ID="LtlCaracteristica" runat="server" Text='<%# Eval("Caracteristica", "{0}:")%>'></asp:Label>
|
|
</div>
|
|
<div style="display: inline-block;">
|
|
<asp:TextBox CssClass="form-control input-sm" ID="TxtValor" runat="server" CausesValidation="true" MaxLength="50" ValidationGroup="GrpGuardar" Visible="false" Width="400px"></asp:TextBox>
|
|
<asp:TextBox CssClass="form-control input-sm" ID="TxtValorNum" runat="server" CausesValidation="true" MaxLength="50" ValidationGroup="GrpGuardar" Visible="false" Width="50px"></asp:TextBox>
|
|
<asp:ImageButton ID="ImgTxtValor" runat="server" AlternateText="Click para ver el Calendario" Height="16px" ImageAlign="AbsMiddle" ImageUrl="/Imagenes/calendar.png" Visible="false" Width="16px" />
|
|
<ajax:MaskedEditExtender ID="MEETxtValor" runat="server" AcceptNegative="Left" DisplayMoney="Left" Enabled="false" Mask="99/99/9999" MaskType="Date" TargetControlID="TxtValor" UserDateFormat="DayMonthYear"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender ID="CETxtValor" runat="server" Enabled="False" PopupButtonID="ImgTxtValor" PopupPosition="BottomRight" TargetControlID="TxtValor"></ajax:CalendarExtender>
|
|
<asp:DropDownList ID="DdlRespuesta" runat="server" Width="206px" DataTextField="CaracteristicaOpcion" CssClass="select2me" DataValueField="CveCaracteristicaOpcion" Visible="false" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
|
<asp:RadioButtonList ID="RbRespuesta" runat="server" Font-family="sans serif" DataTextField="CaracteristicaOpcion" DataValueField="CveCaracteristicaOpcion" RepeatDirection="Vertical" ValidationGroup="GrpGuardar" Visible="false"></asp:RadioButtonList>
|
|
<asp:CheckBox ID="ChbValor" runat="server" ValidationGroup="GrpGuardar" Visible="false" />
|
|
|
|
<asp:RequiredFieldValidator ID="RFVRbRespuesta" runat="server" ControlToValidate="DdlRespuesta" Enabled="false" Display="None" ErrorMessage='<%# Eval("Caracteristica", "El campo: <b>{0}</b>, es Requerido")%>' ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCORbRespuesta" runat="server" HighlightCssClass="vco" TargetControlID="RFVRbRespuesta" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<asp:CompareValidator ID="CVTxtValor" Enabled="false" runat="server" ControlToValidate="TxtValor" Display="None" ErrorMessage='<%# Eval("Caracteristica", "El campo: <b>{0}</b>, es Requerido")%>' Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
|
|
<asp:HiddenField ID="HdnEsOpcion" runat="server" Value='<%# Eval("TipoCampo")%>' />
|
|
<asp:HiddenField ID="HdnCveCaracteristica" runat="server" Value='<%# Eval("CveCaracteristica")%>' />
|
|
<asp:HiddenField ID="HdnCveValor" runat="server" Value="-1" />
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="portlet light xspadding bordered ">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Estatus</span>
|
|
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<a href="" class="collapse" data-original-title="" title=""></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form-horizontal form-row-sepe formnombottom label12">
|
|
<asp:UpdatePanel ID="UPEstatus" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">Estado: </label>
|
|
</div>
|
|
|
|
<div class="col-md-7">
|
|
<div class="form-group">
|
|
<asp:DropDownList CssClass="form-control input-sm input-medium select2me" ID="DdlEstadoActivoFijo" runat="server" AppendDataBoundItems="true" DataTextField="EstadoActivoFijo" DataValueField="CveEstadoActivoFijo" Width="200px" ValidationGroup="GrpGuardar">
|
|
<asp:ListItem Selected="True" Text="Sin Estado Asignado" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVEstadoActivoFijo" runat="server" ControlToValidate="DdlEstadoActivoFijo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Estado Activo Fijo''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOEstadoActivoFijo" runat="server" HighlightCssClass="vco" TargetControlID="RFVEstadoActivoFijo" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">Responsable: </label>
|
|
</div>
|
|
|
|
<div class="col-md-7">
|
|
<div class="form-group">
|
|
<asp:DropDownList CssClass="form-control input-sm input-medium select2me" ID="DdlResponsable" runat="server" AppendDataBoundItems="true" DataTextField="NombreCompleto" DataValueField="CvePersonal" Width="200px" ValidationGroup="GrpGuardar">
|
|
<asp:ListItem Selected="True" Text="Sin Responsable Asignado" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row" runat="server" id="RowProyecto">
|
|
<div class="col-md-4 ">
|
|
<asp:Label runat="server" ID="lblProyecto" class=" control-label">Proyecto: </asp:Label>
|
|
</div>
|
|
|
|
<div class="col-md-7">
|
|
<div class="form-group">
|
|
<asp:DropDownList CssClass="form-control input-sm input-medium select2me" ID="DdlProyecto" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Proyecto" DataValueField="CveProyecto" Width="200px" ValidationGroup="GrpGuardar">
|
|
<asp:ListItem Selected="True" Text="Sin Proyecto asignado" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<asp:Label runat="server" ID="LblSubProyecto" class=" control-label">SubProyecto: </asp:Label>
|
|
</div>
|
|
|
|
<div class="col-md-7">
|
|
<div class="form-group">
|
|
<asp:DropDownList CssClass="form-control input-sm input-medium select2me" ID="DdlSubProyecto" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="200px" ValidationGroup="GrpGuardar" AutoPostBack="true">
|
|
<asp:ListItem Selected="True" Text="Sin SubProyecto asignado" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">Cliente: </label>
|
|
</div>
|
|
|
|
<div class="col-md-7">
|
|
<div class="form-group">
|
|
<ADS:Dropdownlost ID="Ddlclientes" 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>
|
|
<asp:Panel runat="server" ID="LatLong" Visible="false">
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">Latitud: </label>
|
|
</div>
|
|
|
|
<div class="col-md-7">
|
|
<div class="form-group">
|
|
<asp:TextBox ID="TxtLatitud" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">Longitud: </label>
|
|
</div>
|
|
|
|
<div class="col-md-7">
|
|
<div class="form-group">
|
|
<asp:TextBox ID="TxtLongitud" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<label class=" control-label">Cuenta: </label>
|
|
</div>
|
|
|
|
<div class="col-md-7">
|
|
<div class="form-group">
|
|
<asp:TextBox ID="TxtAgroCuenta" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</asp:Panel>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="portlet light xspadding bordered ">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Observaciones / Accesorios</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="" class="collapse" data-original-title="" title=""></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form-horizontal form-row-sepe formnombottom label12">
|
|
<asp:UpdatePanel ID="Updateobs" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<asp:TextBox ID="TxtObservaciones" runat="server" TextMode="multiline" Columns="50" Rows="5"></asp:TextBox>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpAFInvMovimiento" UpdateMode="Conditional" Visible="false">
|
|
<ContentTemplate>
|
|
<div class="portlet light xspadding bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Movimiento de Almacén</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row">
|
|
<div class="col-md-2 bold">Almacén:</div>
|
|
<div class="col-md-10">
|
|
<asp:Label Text="" ID="LbAFInvAlmacen" runat="server" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-2 bold">Folio:</div>
|
|
<div class="col-md-10">
|
|
<asp:HyperLink ID="HLAFInvMovimiento" NavigateUrl="#" Target="_blank" Text="" runat="server" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpAFPadreEHijos" UpdateMode="Conditional" Visible="true">
|
|
<ContentTemplate>
|
|
<div class="portlet light xspadding bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Activo Fijo Padre</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
|
|
<div>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<label class=" control-label">AF Padre:</label>
|
|
|
|
</div>
|
|
<div class="col-md-7">
|
|
<div class="form-group">
|
|
<asp:DropDownList ID="DdlAFPadres" runat="server" AppendDataBoundItems="true" DataTextField="Codigo" DataValueField="CveActivoFijo" Class="table-group-action-input form-control input-inline input-sm select2me" Width="200px"></asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div runat="server" id="DivAFHijos" visible="false">
|
|
<div class="row">
|
|
<div class="col-md-12">AF Hijos:</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:GridView ID="GvAFHijos" runat="server" GridLines="None" data-height="200" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" CellSpacing="0" Width="100%" AutoGenerateColumns="False" EmptyDataText="No existen Activos Fijos Asignados.">
|
|
<Columns>
|
|
<%--<asp:BoundField DataField="Codigo" ItemStyle-Width="30%" HeaderText="Código" ItemStyle-HorizontalAlign="Left" />--%>
|
|
<asp:TemplateField HeaderText="Código">
|
|
<ItemStyle Width="30%" />
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HplCodAFHijo" runat="server" Text='<%# Eval("Codigo") %>' NavigateUrl='<%# Eval("CveActivoFijo", "/AF/AF.aspx?CveActivoFijo={0}")%>' Target="_blank"></asp:HyperLink>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="Descripcion" ItemStyle-Width="70%" HeaderText="Descripción" ItemStyle-HorizontalAlign="Left" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div id="ModalContaCuenta" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Cuenta</h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div>
|
|
<asp:HiddenField ID="HdnCveCuentaAsignacion" runat="server" />
|
|
<asp:DropDownList ID="DdlContaCuenta" CssClass="form-control input-sm input-small select2me" runat="server" AppendDataBoundItems="True" Width="80%" DataTextField="CtaCodigo" DataValueField="CveCuenta">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="0"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:Button ID="Button2" runat="server" CssClass="btn btn-primary btn-sm" Text="+" Visible="False" />
|
|
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnCuentaAsociar" Text="Vincular Cuenta" runat="server" ClientIDMode="Static" OnClick="BtnCuentaAsociar_Click" 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>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel ID="TabComprasInsumos" runat="server" HeaderText="Compras e Insumos">
|
|
<ContentTemplate>
|
|
|
|
<asp:UpdatePanel ID="UpnHistorial" class="portlet-body" runat="server" UpdateMode="Conditional">
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="BtnPDFCompras" />
|
|
<asp:PostBackTrigger ControlID="BtnExcelCompras" />
|
|
</Triggers>
|
|
<ContentTemplate>
|
|
|
|
<div class="portlet box blue-hoki" style="width: 100%;">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="icon-grid"></i>Compras e Insumos
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
|
|
<asp:LinkButton ID="BtnPDFCompras" Visible="false" OnClick="BtnPDFCompras_Click" runat="server" data-toggle="tooltip" Title="PDF" Style="float: right;"><i class="fa fa-file-pdf-o" style="margin-right: 10px; font-size:15px; font-weight:bold; color:dimgray;"></i></asp:LinkButton>
|
|
<asp:LinkButton ID="BtnExcelCompras" Visible="false" OnClick="BtnExcelCompras_Click" runat="server" data-toggle="tooltip" Title="Excel" Style="float: right;"><i style='margin-right: 10px; font-size:15px; font-weight:bold; color:dimgray;' class='fa fa-file-excel-o'></i></asp:LinkButton>
|
|
|
|
<asp:GridView ID="GVHistorial" GridLines="None" BorderWidth="0" CssClass="table table-striped table-hover Widthall table-advance" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron Ventas en el Cliente" ToolTip="Listado de Historial de Ventas">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Factura</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="LtlFactura" CssClass="Texto" runat="server" Text='<%# Eval("Folio") %>' NavigateUrl='<%# Eval("CveCompra", "/Compras/Compras.aspx?CveCompra={0}") %>'></asp:HyperLink>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Fecha</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Cantidad</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>UM</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlUM" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Clasificación</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlIVA" runat="server" Text='<%# Eval("Clasificacion") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Producto o Servicio</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlPS" runat="server" Text='<%# Eval("PS") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Total</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Moneda</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlMoneda" runat="server" Text='<%# Eval("Moneda") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Proveedor</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="LtlProveedor" runat="server" Text='<%# Eval("Proveedor") %>' NavigateUrl='<%# Eval("CveProveedor", "/Compras/Proveedores.aspx?CveProveedor={0}") %>'></asp:HyperLink>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<%-- <AlternatingRowStyle CssClass="TextoAlterno" />
|
|
<HeaderStyle CssClass="Titulos" />--%>
|
|
</asp:GridView>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel ID="TabEventos" runat="server" HeaderText="Documentación y Eventos">
|
|
<ContentTemplate>
|
|
|
|
<%-- Placas --%>
|
|
<div>
|
|
<asp:Literal ID="LtlAgregarPlaca" runat="server"></asp:Literal>
|
|
<div id="DivPlacas" runat="server" class="portlet box blue-hoki" style="width: 100%;">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-cc-stripe"></i>Placas
|
|
</div>
|
|
</div>
|
|
<asp:UpdatePanel ID="UpPlacas" class="portlet-body" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Button ID="Button3" runat="server" ClientIDMode="Static" Text="Resfrecar Eventos" Style="display: none;" />
|
|
|
|
<asp:GridView ID="GvPlacas" runat="server" GridLines="None" data-sort="true" DataKeyNames="CvePlaca,Placa,FechaExpedicion,FechaVencimiento,Observacion" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" CellSpacing="0" Width="100%" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros">
|
|
<Columns>
|
|
<asp:BoundField DataField="Placa" HeaderText="Placa" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Observacion" HeaderText="Observaciones" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="50px" HeaderText="Archivo">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="ImgDownLoad" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Comandos">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="Edit_Click" Text="<i class='fa fa-pencil'></i>" />
|
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" OnClick="Delete_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
<asp:HiddenField ID="HdnModalidad" runat="server" Value="A" ClientIDMode="Static" />
|
|
<asp:HiddenField ID="HdnID" runat="server" Value="-1" ClientIDMode="Static" />
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<%-- Licencias --%>
|
|
<div>
|
|
<asp:Literal ID="LtlAgregarLicencia" runat="server"></asp:Literal>
|
|
<div id="DivLicencias" runat="server" class="portlet box blue-hoki" style="width: 100%;">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-list-alt"></i>Licencias SCT
|
|
</div>
|
|
</div>
|
|
<asp:UpdatePanel ID="UpLicencias" class="portlet-body" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Button ID="Button4" runat="server" ClientIDMode="Static" Text="Resfrecar Eventos" Style="display: none;" />
|
|
|
|
<asp:GridView ID="GvLicencias" runat="server" GridLines="None" data-sort="true" DataKeyNames="CveLicencia,Licencia,FechaExpedicion,FechaVencimiento,Observacion,Adjunto" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" CellSpacing="0" Width="100%" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros">
|
|
<Columns>
|
|
<asp:BoundField DataField="FechaExpedicion" HeaderText="Fecha Expedicion" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
|
<asp:BoundField DataField="FechaExpedicion" HeaderText="Año" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:yyyy}" />
|
|
<asp:BoundField DataField="Licencia" HeaderText="Licencia" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="FechaVencimiento" HeaderText="Fecha Vencimiento" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
|
<asp:BoundField DataField="Observacion" HeaderText="Observaciones" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="50px" HeaderText="Archivo">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="ImgDownLoad" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Comandos">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="EditLicencia_Click" Text="<i class='fa fa-pencil'></i>" />
|
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" OnClick="DeleteLicencia_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
<asp:HiddenField ID="HdnModalidadLicencia" runat="server" Value="A" ClientIDMode="Static" />
|
|
<asp:HiddenField ID="HdnIDLicencia" runat="server" Value="-1" ClientIDMode="Static" />
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<%-- Seguros --%>
|
|
<div>
|
|
<asp:Literal ID="LtlAgregarSeguros" runat="server"></asp:Literal>
|
|
<div id="DivSeguros" runat="server" class="portlet box blue-hoki" style="width: 100%;">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-shield"></i>Pólizas de Seguro
|
|
</div>
|
|
</div>
|
|
<asp:UpdatePanel ID="UpSeguros" class="portlet-body" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Button ID="Button5" runat="server" ClientIDMode="Static" Text="Resfrecar Eventos" Style="display: none;" />
|
|
|
|
<asp:GridView ID="GvPolizas" runat="server" GridLines="None" data-sort="true" DataKeyNames="CvePolizaSeguro,CveProveedor,PolizaSeguro,FechaExpedicion,FechaVencimiento,Observacion,Adjunto" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" CellSpacing="0" Width="100%" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Operadores">
|
|
<Columns>
|
|
<asp:BoundField DataField="FechaExpedicion" HeaderText="Fecha Expedicion" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
|
<asp:BoundField DataField="FechaExpedicion" HeaderText="Año" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:yyyy}" />
|
|
<asp:BoundField DataField="RazonSocial" HeaderText="Compañia" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="PolizaSeguro" HeaderText="Póliza" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="FechaVencimiento" HeaderText="Fecha Vencimiento" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
|
<asp:BoundField DataField="Observacion" HeaderText="Observaciones" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="50px" HeaderText="Archivo">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="ImgDownLoad" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Comandos">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="EditPoliza_Click" Text="<i class='fa fa-pencil'></i>" />
|
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" OnClick="DeletePoliza_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
<asp:HiddenField ID="HdnModalidadPoliza" runat="server" Value="A" ClientIDMode="Static" />
|
|
<asp:HiddenField ID="HdnIDPoliza" runat="server" Value="-1" ClientIDMode="Static" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<%-- Eventos --%>
|
|
<div>
|
|
<div class="portlet box blue-hoki" style="width: 100%;">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-clock-o"></i>Eventos Programados
|
|
</div>
|
|
</div>
|
|
<asp:UpdatePanel ID="UpTitulos" class="portlet-body" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se Encontró Eventos registrado" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" data-sort="true" DataKeyNames="CveEvento" GridLines="None">
|
|
<Columns>
|
|
<asp:BoundField DataField="Asunto" HeaderText="Asunto" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Descripcion" HeaderText="Descripcion" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Prioridad" HeaderText="Prioridad" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="FechaInicio" HeaderText="Fecha Inicio" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
|
<asp:BoundField DataField="FechaFin" HeaderText="Fecha Fin" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel ID="TabDepreciaciones" runat="server" HeaderText="Depreciaciones">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="portlet light xspadding bordered ">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Datos del Activo Fijo</span>
|
|
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<a href="" class="collapse" data-original-title="" title=""></a>
|
|
<a href="" class="reload" data-original-title="" title=""></a>
|
|
<a href="" class="fullscreen" data-original-title="" title=""></a>
|
|
<a href="" class="remove" data-original-title="" title=""></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form-horizontal form-row-sepe formnombottom label12">
|
|
<div class="form-body">
|
|
|
|
<div class="row">
|
|
<div class="col-md-5 ">
|
|
<label class="control-label">Cuenta Depreciación: </label>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group ">
|
|
<asp:DropDownList ID="DdlCtaContableDepreciacion" CssClass="form-control input-sm input-medium select2me" runat="server" AppendDataBoundItems="true" DataTextField="CtaCodigo" DataValueField="Id" Width="206px">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="0"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-5 ">
|
|
<label class=" control-label">% de Depreaciación: </label>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<span style="position: absolute; top: 20px; right: 7px;">(%)</span>
|
|
<div class="form-group form-md-line-input">
|
|
<asp:TextBox CssClass="form-control input-sm" ID="TxtPorDepreciacion" runat="server" MaxLength="9" Text="0"></asp:TextBox><label></label>
|
|
<asp:RequiredFieldValidator ID="RFVRetPorDep" runat="server" ControlToValidate="TxtPorDepreciacion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Porcentaje de Depreciación''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVRetPorDep" runat="server" ControlToValidate="TxtPorDepreciacion" Display="None" ErrorMessage="El campo <b>''Porcentaje de Depreciación''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCRetPorDep1" runat="server" HighlightCssClass="vco" TargetControlID="RFVRetPorDep" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCRetPorDep2" runat="server" HighlightCssClass="vco" TargetControlID="CVRetPorDep" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<%--<div class="row">
|
|
<div class="col-md-5 ">
|
|
<label class=" control-label">Porcentaje de Deducción: </label>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group form-md-line-input">
|
|
<span style="position: absolute; top: 20px; right: 7px;">(%)</span>
|
|
<asp:TextBox CssClass="form-control input-sm" ID="TxtPorDeduccion" runat="server" MaxLength="9" Text="0"></asp:TextBox>
|
|
<label></label>
|
|
<asp:RequiredFieldValidator ID="RFVRetPorDeduc" runat="server" ControlToValidate="TxtPorDeduccion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Porcentaje de Deducción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVRetPorDeduc" runat="server" ControlToValidate="TxtPorDeduccion" Display="None" ErrorMessage="El campo <b>''Porcentaje de Deducción''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCRetPorDeduc1" runat="server" HighlightCssClass="vco" TargetControlID="RFVRetPorDeduc" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCRetPorDeduc2" runat="server" HighlightCssClass="vco" TargetControlID="CVRetPorDeduc" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>--%>
|
|
|
|
<div class="row">
|
|
<div class="col-md-5 ">
|
|
<label>Fecha Compra: </label>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:Literal ID="LtFechaCompra" Text="Test" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-5 ">
|
|
<label>Importe Compra: </label>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:Literal ID="LtImporteCompra" Text="Test" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-5 ">
|
|
<label>Fecha Fin: </label>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:Literal ID="LtFechaFinDepreciación" Text="Test" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-5 ">
|
|
<label>Importe Restante: </label>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:Literal ID="LtImporteRestante" Text="Test" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-5 ">
|
|
<label>Importe Depreciado: </label>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:Literal ID="LtImporteDepreciado" Text="Test" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-5 ">
|
|
<label>Fecha Última Depreciación: </label>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:Literal ID="LtlFechaUltimaDepreciacion" Text="Test" runat="server"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel ID="TabResguardo" runat="server" HeaderText="Resguardos">
|
|
<ContentTemplate>
|
|
<div class="portlet box blue-hoki" style="width: 100%;">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="icon-grid"></i>Resguardo
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<asp:Button ID="BtnCargarResguardo" CssClass=" btn btn-default" runat="server" ClientIDMode="Static" Style="display: none;" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<%--<table border="0" rules="none" class="table table-striped table-hover Widthall">
|
|
<tr class="Titulos">
|
|
<td width="5%">
|
|
<asp:LinkButton ID="LbNombre" runat="server" CausesValidation="false" Text="Responsable"></asp:LinkButton>
|
|
<asp:ImageButton ID="ImgNombre" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" />
|
|
</td>
|
|
<td width="7%">
|
|
<asp:LinkButton ID="LbFolio" runat="server" CausesValidation="false" Text="Folio"></asp:LinkButton>
|
|
<asp:ImageButton ID="ImgFolio" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" />
|
|
</td>
|
|
<td width="8%">
|
|
<asp:LinkButton ID="LbTipo" runat="server" CausesValidation="false" Text="Tipo"></asp:LinkButton>
|
|
<asp:ImageButton ID="ImgTipo" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" />
|
|
</td>
|
|
<td width="10%">
|
|
<asp:LinkButton ID="LbFechaInicio" runat="server" CausesValidation="false" Text="Inició"></asp:LinkButton>
|
|
<asp:ImageButton ID="ImgFechaInicio" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" />
|
|
</td>
|
|
<td width="10%">
|
|
<asp:LinkButton ID="LbFechaFin" runat="server" CausesValidation="false" Text="Finalizó"></asp:LinkButton>
|
|
<asp:ImageButton ID="ImgFechaFin" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" />
|
|
</td>
|
|
<td width="15%">
|
|
<asp:LinkButton ID="LbObservaciones" runat="server" CausesValidation="false" Text="Observaciones"></asp:LinkButton>
|
|
<asp:ImageButton ID="ImgObservaciones" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" />
|
|
</td>
|
|
<td width="15%">
|
|
<asp:LinkButton ID="LbURL" runat="server" CausesValidation="false" Text="Archivo"></asp:LinkButton>
|
|
<asp:ImageButton ID="ImgURL" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" />
|
|
</td>
|
|
<td width="15%">
|
|
<asp:LinkButton ID="LbURL2" runat="server" CausesValidation="false" Text="Archivo 2"></asp:LinkButton>
|
|
<asp:ImageButton ID="ImgURL2" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" />
|
|
</td>
|
|
<td width="5%">
|
|
<asp:LinkButton ID="LbUsuario" runat="server" CausesValidation="false" Text="Usuario"></asp:LinkButton>
|
|
<asp:ImageButton ID="ImgUsuario" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" />
|
|
</td>
|
|
<td width="10%">Editar</td>
|
|
</tr>
|
|
</table>--%>
|
|
<asp:GridView ID="GvResguardos" runat="server" GridLines="None" BorderWidth="0" CssClass="table table-striped table-hover Widthall" AutoGenerateColumns="False" DataKeyNames="CveActivoFijoResguardo" EmptyDataText="No se encontraron Resguardos Registrados" ToolTip="Listado de Resguardos">
|
|
<Columns>
|
|
<asp:HyperLinkField ItemStyle-Width="15%" HeaderText="Responsable" DataNavigateUrlFormatString="/RH/Personal.aspx?CvePersonal={0}" DataNavigateUrlFields="CvePersonal" DataTextField="Nombre"></asp:HyperLinkField>
|
|
<asp:BoundField HeaderText="Tipo" DataField="TipoTexto" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="8%" />
|
|
<asp:BoundField HeaderText="Folio" DataField="Folio" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="7%" />
|
|
<asp:BoundField HeaderText="Proyecto" DataField="SubProyectoDestino" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" />
|
|
<asp:TemplateField ItemStyle-Width="7%" HeaderText="Fecha Inicio" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LblFechaInicio" runat="server" Text='<%# Eval("FechaInicio", "{0:d}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="8%" HeaderText="Fecha Fin" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblFechaFin" runat="server" Text='<%# Eval("FechaFin", "{0:d}") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="10%" HeaderText="Observaciones">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlObservaciones" runat="server" Text='<%# Eval("Observaciones") %>' Width="100%"></asp:Label>
|
|
</ItemTemplate>
|
|
<%-- <EditItemTemplate>
|
|
<asp:TextBox CssClass="form-control input-sm" ID="TxtObservaciones" runat="server" CausesValidation="true" MaxLength="150" Text='<%# Eval("Observaciones") %>' ValidationGroup="GrpGV" Width="144px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVObservaciones" runat="server" ControlToValidate="TxtObservaciones" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Observaciones''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCObservaciones" runat="server" HighlightCssClass="vco" TargetControlID="RFVObservaciones" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>--%>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="10%" HeaderText="Archivo" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LbImprimir1" runat="server" />
|
|
<asp:Literal ID="LtlURL" runat="server"></asp:Literal>
|
|
<asp:ImageButton ID="ImgArchivo" OnClick="ImgArchivo_Click" Width="16px" Height="16px" CommandArgument='<%# Eval("CveActivoFijoResguardo") %>' Visible="false" ImageUrl="/Imagenes/attachment_icon.gif" runat="server" />
|
|
</ItemTemplate>
|
|
<%--<EditItemTemplate>
|
|
<asp:TextBox ID="TxtArchivo" ClientIDMode="Static" runat="server" Visible="false" Width="100px"></asp:TextBox>
|
|
<a class="Texto" runat="server" clientidmode="Static" id="A1" style="display: inherit" onclick="javascript:AbrirVentana('/UploadFile.aspx?Pagina=AF', 700, 600, 'N', 'PopUpBuscar');" visible="true">
|
|
<img id="ImgArchivo" alt="Archivo" src="/Imagenes/attachment_icon.gif" style="width: 16px; height: 16px; border: 0px none white" />
|
|
</a>
|
|
<a class="Texto" runat="server" clientidmode="Static" id="A2" target="_blank" visible="false">
|
|
<img id="Img1" alt="Archivo" src="/Imagenes/descargar.png" style="width: 16px; height: 16px; border: 0px none white" />
|
|
</a>
|
|
<asp:ImageButton AlternateText="Guardar" ClientIDMode="Static" OnClick="BtnGuardaArchivo1_Click" ID="BtnGuardaArchivo1" ImageUrl="/Imagenes/accept.png" Style="visibility: hidden" runat="server" />
|
|
</EditItemTemplate>--%>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="10%" HeaderText="Archivo2" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LbImprimir2" runat="server" />
|
|
<asp:Literal ID="LtlURL2" runat="server"></asp:Literal>
|
|
<asp:ImageButton ID="ImgArchivo2" OnClick="ImgArchivo2_Click" Width="16px" Height="16px" CommandArgument='<%# Eval("CveActivoFijoResguardo") %>' Visible="false" ImageUrl="/Imagenes/attachment_icon.gif" runat="server" />
|
|
<%--<img id="ImgArchivo2" alt="Subir Archivo" src="/Imagenes/attachment_icon.gif" style="width: 16px; height: 16px; border: 0px none white" />--%>
|
|
</ItemTemplate>
|
|
<%-- <EditItemTemplate>
|
|
<asp:TextBox ID="TxtArchivo2" ClientIDMode="Static" runat="server" Visible="false" Width="100px"></asp:TextBox>
|
|
<a class="Texto" runat="server" clientidmode="Static" id="A4" onclick="javascript:AbrirVentana('/UploadFile.aspx?Pagina=AF1', 700, 600, 'N', 'PopUpBuscar');" visible="true">
|
|
<img id="ImgArchivo2" alt="Archivo" src="/Imagenes/attachment_icon.gif" style="width: 16px; height: 16px; border: 0px none white" />
|
|
</a>
|
|
<a class="Texto" runat="server" clientidmode="Static" id="A5" target="_blank" visible="false">
|
|
<img id="Img2" alt="Archivo" src="/Imagenes/descargar.png" style="width: 16px; height: 16px; border: 0px none white" />
|
|
</a>
|
|
<asp:ImageButton AlternateText="Guardar" ClientIDMode="Static" OnClick="BtnGuardaArchivo2_Click" ID="BtnGuardaArchivo2" ImageUrl="/Imagenes/accept.png" Style="visibility: hidden" runat="server" />
|
|
</EditItemTemplate>--%>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="5%" HeaderText="Usuario">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:TemplateField ItemStyle-Width="5%" HeaderText="Editar">
|
|
<EditItemTemplate>
|
|
<center>
|
|
<asp:ImageButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" ImageUrl="/Imagenes/Btn_Update.png" ValidationGroup="GrpGV" />
|
|
<asp:ImageButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel" ImageUrl="/Imagenes/Btn_Cancel.png" />
|
|
</center>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:ImageButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit" ImageUrl="/Imagenes/Btn_Edit.png" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>--%>
|
|
</Columns>
|
|
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel ID="TabIncidentes" runat="server" HeaderText="Incidentes">
|
|
<ContentTemplate>
|
|
<asp:Literal ID="Literal1" runat="server"></asp:Literal>
|
|
<div class="portlet box blue-hoki" style="width: 100%;">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-bolt"></i>Fallas
|
|
</div>
|
|
</div>
|
|
<asp:UpdatePanel ID="UpFallas" class="portlet-body" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<asp:GridView ID="GvFallas" runat="server" GridLines="None" data-sort="true" DataKeyNames="CveFalla,Asunto,Descripcion,Prioridad,AFMedida,FechaFalla,TipoFalla,CorreoNotificacion,CveTipoFalla" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" CellSpacing="0" Width="100%" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros">
|
|
<Columns>
|
|
<asp:BoundField DataField="FechaFalla" HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
|
<asp:BoundField DataField="Asunto" HeaderText="Asunto" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Descripcion" HeaderText="Descripción" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="PrioridadTexto" HeaderText="Prioridad" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="AFMedida" HeaderText="Horómetro / Odómetro" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="TipoFalla" HeaderText="TipoFalla" ItemStyle-HorizontalAlign="left" HtmlEncode="false" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Comandos">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="EditIndicente_Click" Text="<i class='fa fa-pencil'></i>" />
|
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" OnClick="DeleteIncidente_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
<asp:HiddenField ID="HdnModalidadFalla" runat="server" Value="A" ClientIDMode="Static" />
|
|
<asp:HiddenField ID="HdnIDFalla" runat="server" Value="-1" ClientIDMode="Static" />
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
</div>
|
|
|
|
<asp:Literal ID="Literal3" runat="server"></asp:Literal>
|
|
<div class="portlet box blue-hoki" style="width: 100%;">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-exclamation-triangle"></i>Accidentes
|
|
</div>
|
|
</div>
|
|
<asp:UpdatePanel ID="UpAccidentes" runat="server" class="portlet-body" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvAccidentes" runat="server" GridLines="None" data-sort="true" DataKeyNames="CveFalla,Asunto,Descripcion,Prioridad,AFMedida,FechaFalla,TipoFalla,CorreoNotificacion,CveTipoFalla" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" CellSpacing="0" Width="100%" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros">
|
|
<Columns>
|
|
<asp:BoundField DataField="FechaFalla" HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
|
<asp:BoundField DataField="Asunto" HeaderText="Asunto" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Descripcion" HeaderText="Descripción" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="PrioridadTexto" HeaderText="Prioridad" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="AFMedida" HeaderText="Horómetro / Odómetro" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="TipoFalla" HeaderText="TipoFalla" ItemStyle-HorizontalAlign="left" HtmlEncode="false" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Comandos">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="EditAccidente_Click" Text="<i class='fa fa-pencil'></i>" />
|
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" OnClick="DeleteAccidente_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
<asp:HiddenField ID="HdnModalidadAccidente" runat="server" Value="A" ClientIDMode="Static" />
|
|
<asp:HiddenField ID="HdnIDAccidente" runat="server" Value="-1" ClientIDMode="Static" />
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel ID="TabServyMant" runat="server" HeaderText="Servicios y Mto" Visible="false">
|
|
<ContentTemplate>
|
|
<asp:Literal ID="Literal2" runat="server"></asp:Literal>
|
|
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpMantenimientos" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="portlet light xspadding bordered ">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="fa fa-tasks font-green"></i>
|
|
<span class="caption-subject bold uppercase">Mantenimientos</span>
|
|
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<asp:LinkButton runat="server" CssClass="btn btn-circle btn-sm blue" data-original-title="Agregar Mantenimiento" title="Agregar Mantenimiento" ID="LnkAgregarMantenimiento" OnClick="LnkAgregarMantenimiento_Click" Style="font-size: 13px!important"><i class="fa fa-plus-circle" aria-hidden="true"></i>Agregar</asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<%-- <a href="" class="collapse" data-original-title="" title=""></a>
|
|
<a href="" class="reload" data-original-title="" title=""></a>
|
|
<a href="" class="fullscreen" data-original-title="" title=""></a>
|
|
<a href="" class="remove" data-original-title="" title=""></a>--%>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form-horizontal form-row-sepe formnombottom label12">
|
|
<div class="form-body">
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
<asp:GridView ID="GvMantenimientos" runat="server" GridLines="None" BorderWidth="0px" CssClass="table table-striped table-hover table-advance Widthall" OnRowDataBound="GvMantenimientos_RowDataBound"
|
|
AutoGenerateColumns="False" DataKeyNames="CveMantenimiento, CveActivoFijo, Mantenimiento, Observaciones, Fecha, FechaIng, CveUsuario, Codigo, Descripcion,Usuario,Archivo" ShowHeader="true">
|
|
<Columns>
|
|
|
|
<asp:BoundField DataField="Mantenimiento" HeaderText="Mantenimiento" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Observaciones" HeaderText="Observaciones" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Fecha" HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
|
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="35px">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LnkDescargaArcgivo" Visible="false" runat="server" AlternateText="DescargaArchivo" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="LnkDescargaArcgivo_Click" Text="<i class='fa fa-download'></i>" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Opciones" ItemStyle-Width="90px">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LnkGvMantenimientoEdit" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="LnkGvMantenimientoEdit_Click" Text="<i class='fa fa-pencil'></i>" />
|
|
<asp:LinkButton ID="LnkGvMantenimientoRemove" runat="server" AlternateText="Eliminar" OnClick="LnkGvMantenimientoRemove_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel ID="TabActividades" runat="server" HeaderText="Actividades">
|
|
<ContentTemplate>
|
|
<asp:Literal ID="Literal4" runat="server"></asp:Literal>
|
|
<div class="portlet box blue-hoki" style="width: 100%;">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-list-alt"></i>Actividades
|
|
</div>
|
|
</div>
|
|
|
|
<asp:UpdatePanel ID="UPActividades" class="portlet-body" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvActividades" runat="server" GridLines="None" data-sort="true" DataKeyNames="CveBitacora,CveActivoFijo,CveActividad,Actividad,Fecha,Observacion,HorometroInicial,HorometroFinal,CveOperador,HorometroAnterior,HorometroSiguiente" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" CellSpacing="0" Width="100%" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros">
|
|
<Columns>
|
|
<asp:BoundField DataField="Actividad" HeaderText="Actividad" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Observacion" HeaderText="Observacion" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Operador" HeaderText="Operador" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Fecha" HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
|
<asp:BoundField DataField="HorometroInicial" HeaderText="Horómetro/Odómetro Inicial" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="HorometroFinal" HeaderText="Horómetro/Odómetro Final" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Comandos">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="EditActividades_Click" Text="<i class='fa fa-pencil'></i>" />
|
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" OnClick="DeleteActividades_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
<asp:HiddenField ID="HdnActividades" runat="server" Value="A" ClientIDMode="Static" />
|
|
<asp:HiddenField ID="HdnIDActividades" runat="server" Value="-1" ClientIDMode="Static" />
|
|
<asp:HiddenField ID="HdnHorometroAnterior" runat="server" Value="-1" ClientIDMode="Static" />
|
|
<asp:HiddenField ID="HdnHorometroSiguiente" runat="server" Value="-1" ClientIDMode="Static" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel ID="TabGaleria" runat="server" HeaderText="Galería de Imágenes" OnClientClick="clickgaleria">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnCargarArchivo" runat="server" ClientIDMode="Static" Style="display: none;" />
|
|
<asp:Button ID="BtnEliminarImagen" runat="server" ClientIDMode="Static" Style="display: none;" />
|
|
<asp:HiddenField ID="HdnCveImagen" runat="server" Value="-1" ClientIDMode="Static" />
|
|
<asp:HiddenField ID="HdnURL" runat="server" Value="-1" ClientIDMode="Static" />
|
|
|
|
<%--<table border="0" width="535px" cellpadding="0" cellspacing="0">
|
|
<tr align="left">
|
|
<td>
|
|
<table>
|
|
<tr>
|
|
<td><a id="LnkUpload" class="Texto thickbox" href="/Planeacion/CargarArchivo.aspx?TB_iframe=true&height=210&width=350" />Cargar Archivo</a>
|
|
<div runat="server" visible="false">
|
|
<asp:TextBox ID="TextBox1" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
|
</div>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<ul id="myGallery" runat="server" visible="false" clientidmode="Static">
|
|
</ul>
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>--%>
|
|
|
|
<asp:LinkButton ID="HyperLink1" CssClass="btn btn-success" data-toggle="modal" data-target="#Modalupfotos" runat="server" Style="cursor: pointer; float: right;" ToolTip="Observaciones"><i class="fa fa-upload"></i> Cargar Archivo</asp:LinkButton><br />
|
|
<div id="Modalupfotos" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Bitácora</h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpUpFotos" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div>
|
|
<asp:TextBox ID="TxtUpFotos" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnUpFotos" Text="Subir Foto" runat="server" ClientIDMode="Static" CssClass="btn btn-primary" />
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<asp:UpdatePanel ID="upGaleria" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="portfolio-content portfolio-1">
|
|
<div id="js-filters-juicy-projects" class="cbp-l-filters-button">
|
|
|
|
<%--<div data-filter="*" class="cbp-filter-item-active cbp-filter-item btn dark btn-outline uppercase">
|
|
All
|
|
<div class="cbp-filter-counter"></div>
|
|
</div> --%>
|
|
</div>
|
|
<div id="js-grid-juicy-projects" class="cbp">
|
|
<asp:Repeater ID="RptFotos" runat="server">
|
|
<ItemTemplate>
|
|
<div class="cbp-item graphic">
|
|
<div class="cbp-caption">
|
|
<div class="cbp-caption-defaultWrap">
|
|
<img src='<%# String.Format("/ashx/SIGWeb.ashx?Metodo=GetImg&r={0}", Extensiones.Encripta(Eval("URL").ToString)) %>'>
|
|
</div>
|
|
<div class="cbp-caption-activeWrap">
|
|
<div class="cbp-l-caption-alignCenter">
|
|
<div class="cbp-l-caption-body">
|
|
<asp:Button ID="BtnEliminarFoto" OnClick="BtnEliminarFoto_Click" data-toggle="confirmation" data-original-title="¿Estás Seguro?" data-btn-ok-label="Si" CommandArgument='<%# Eval("CveImagenActivoFijo").ToString %>' runat="server" Text="Borrar" CssClass=" btn red uppercase" />
|
|
<a href='<%# String.Format("/ashx/SIGWeb.ashx?Metodo=GetImg&r={0}", Extensiones.Encripta(Eval("URL").ToString)) %>' class="cbp-lightbox cbp-l-caption-buttonRight btn success uppercase">Ver</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="cbp-l-grid-projects-title uppercase text-center">IMAGEN</div>
|
|
<div class="cbp-l-grid-projects-desc uppercase text-center"><%# Container.ItemIndex + 1 %></div>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:Repeater>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
<ajax:TabPanel ID="TabOrdenesdeServicio" Visible="false" runat="server" HeaderText="Ordenes de Servicio">
|
|
<ContentTemplate>
|
|
|
|
<asp:GridView ID="GVOrdenesdeServicio" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False" data-height="400">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Folio">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("Folio")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Fecha">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("Fecha", "{0:dd/MM/yyyy}")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Obra">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("Obra")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Tipo de Servicio">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("TipodeServicio")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Servicio">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("Servicio")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Estatus">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("Estatus")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Duración">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("Duracion")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Atendió">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" Text='<%# Eval("Atendio")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
<ajax:TabPanel ID="TabGPS" HeaderText="GPS" runat="server" Visible="false">
|
|
<ContentTemplate>
|
|
<ajax:TabContainer ID="TabGPSContenido" runat="server" Width="100%">
|
|
<ajax:TabPanel HeaderText="Rastreo" runat="server">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-12 ">
|
|
<div class="portlet light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="fa fa-map-o"></i>
|
|
<span class="caption-subject bold uppercase">Rastreo Continuo:</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
<div id="mapRastreo" style="height: 600px; padding: 0;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
<ajax:TabPanel HeaderText="Histórico" runat="server">
|
|
<ContentTemplate>
|
|
<asp:UpdatePanel ID="UpRastreoHistorico" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:HiddenField ID="HdnHistorico" runat="server" Value="" ClientIDMode="Static" />
|
|
<div class="portlet solid grey-cascade portlet-filter" style="">
|
|
<div class="portlet-title portlet-filterT smalltitle " style="">
|
|
<div class="tools">
|
|
<asp:Button ID="BtnConsultarHistorico" OnClick="BtnConsultarHistorico_Click" runat="server" ValidationGroup="GrpHistorico" Text="Consultar" class="btn btn-primary" />
|
|
</div>
|
|
<div class="titlefiltros caption" style="margin-top: -8px;">
|
|
<ul class="list-inline" style="font-size: 12px;">
|
|
<li>Fecha Inicio:
|
|
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
|
<asp:TextBox ID="TxtFechaIH" runat="server" CssClass="form-control input-sm ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVFechaIH" runat="server" ControlToValidate="TxtFechaIH" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpHistorico"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender19" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaIH" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</li>
|
|
<li>Fecha Fin:
|
|
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy" style="display: inline-block;">
|
|
<asp:TextBox ID="TxtFechaFH" runat="server" CssClass="form-control input-sm ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVFechaFH" runat="server" ControlToValidate="TxtFechaFH" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpHistorico"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender20" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaFH" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12 ">
|
|
<div class="portlet light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="fa fa-map-o"></i>
|
|
<span class="caption-subject bold uppercase">Historico:</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
<div id="mapHistorico" style="height: 600px; padding: 0;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
<%-- <ajax:TabPanel HeaderText="Tiempo Muerto" runat="server">
|
|
<ContentTemplate>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>--%>
|
|
<ajax:TabPanel HeaderText="GeoReferencias" runat="server">
|
|
<ContentTemplate>
|
|
<asp:UpdatePanel runat="server" ID="UpGeocercas" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:HiddenField ID="HdnGeocercas" runat="server" Value="[]" ClientIDMode="Static" />
|
|
<div class="portlet solid grey-cascade portlet-filter" style="">
|
|
<div class="portlet-title portlet-filterT smalltitle " style="">
|
|
<div class="tools">
|
|
<asp:Button ID="BtnConsultarGeoReferencia" OnClick="BtnConsultarGeoReferencia_Click" runat="server" ValidationGroup="GrpGeo" Text="Consultar" class="btn btn-primary" />
|
|
</div>
|
|
<div class="titlefiltros caption" style="margin-top: -8px;">
|
|
<ul class="list-inline" style="font-size: 12px;">
|
|
<li>Fecha Inicio:
|
|
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
|
<asp:TextBox ID="TxtFechaIG" runat="server" CssClass="form-control input-sm ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVFechaIG" runat="server" ControlToValidate="TxtFechaIG" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGeo"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender25" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaIG" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</li>
|
|
<li>Fecha Fin:
|
|
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy" style="display: inline-block;">
|
|
<asp:TextBox ID="TxtFechaFG" runat="server" CssClass="form-control input-sm ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVFechaFG" runat="server" ControlToValidate="TxtFechaFG" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGeo"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender26" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaFG" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12 ">
|
|
<div class="portlet light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="fa fa-map-o"></i>
|
|
<span class="caption-subject bold uppercase">Entradas y Salidas de Geocercas:</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
<div id="mapGeo" style="height: 600px; padding: 0;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
<ajax:TabPanel runat="server" HeaderText="Eventos">
|
|
<ContentTemplate>
|
|
<asp:UpdatePanel ID="UpDriving" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet solid grey-cascade portlet-filter" style="">
|
|
<div class="portlet-title portlet-filterT smalltitle " style="">
|
|
<div class="tools">
|
|
<asp:Button ID="BtnConsultarDriving" OnClick="BtnConsultarDriving_Click" runat="server" ValidationGroup="GrpDriving" Text="Consultar" class="btn btn-primary" />
|
|
</div>
|
|
<div class="titlefiltros caption" style="margin-top: -8px;">
|
|
<ul class="list-inline" style="font-size: 12px;">
|
|
<li>Fecha Inicio:
|
|
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
|
<asp:TextBox ID="TxtFechaID" runat="server" CssClass="form-control input-sm ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVFechaID" runat="server" ControlToValidate="TxtFechaID" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpDriving"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender23" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaID" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</li>
|
|
<li>Fecha Fin:
|
|
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy" style="display: inline-block;">
|
|
<asp:TextBox ID="TxtFechaFD" runat="server" CssClass="form-control input-sm ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVFechaFD" runat="server" ControlToValidate="TxtFechaFD" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpDriving"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender24" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaFD" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4 ">
|
|
<div class="portlet light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="fa fa-car font-green"></i>
|
|
<span class="caption-subject bold uppercase">Eventos de la unidad:</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
<div style="max-height: 392px; overflow-y: scroll">
|
|
<asp:GridView ID="GvEventos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron resultados" GridLines="none" ToolTip="Listado de Eventos" CssClass="table table-striped table-hover Widthall">
|
|
<Columns>
|
|
<asp:BoundField DataField="Evento" ItemStyle-Width="20%" HeaderText="Evento" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="FechaTrama" ItemStyle-Width="20%" HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-8">
|
|
<div class="portlet light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="fa fa-car font-green"></i>
|
|
<span class="caption-subject bold uppercase">Recorridos:</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
<div style="max-height: 392px; overflow-y: scroll">
|
|
<asp:GridView ID="GvIgnicion" runat="server" GridLines="None" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" data-rows="1" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Numero de Vueltas Realizadas">
|
|
<Columns>
|
|
<asp:BoundField DataField="Vehiculo" ItemStyle-Width="12.5%" HeaderText="Vehículo" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="FechaEncendido" ItemStyle-Width="12.5%" HeaderText="Fecha Encendido" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="FechaApagado" ItemStyle-Width="12.5%" HeaderText="Fecha Apagado" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="VMedia" DataFormatString="{0:N2} Km/hr." ItemStyle-Width="12.5%" HeaderText="Velocidad Media" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="VMax" DataFormatString="{0:N2} Km/hr." ItemStyle-Width="12.5%" HeaderText="Velocidad Máxima" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="Kilometraje" DataFormatString="{0:N2} Km." ItemStyle-Width="12.5%" HeaderText="Kilometraje" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="Duracion" ItemStyle-Width="12.5%" HeaderText="Duración" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:TemplateField ItemStyle-Width="12.5%" HeaderText="Dirección Inicial" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlDireccionInicial" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="12.5%" HeaderText="Dirección Final" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlDireccionFinal" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="portlet light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="fa fa-car font-green"></i>
|
|
<span class="caption-subject bold uppercase">Excesos de Velocidad:</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
<div style="max-height: 392px; overflow-y: scroll">
|
|
<asp:GridView ID="GvExcesos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron resultados" GridLines="none" ToolTip="Listado de Eventos" CssClass="table table-striped table-hover Widthall">
|
|
<Columns>
|
|
<asp:BoundField DataField="SPD" ItemStyle-Width="25%" HeaderText="Velocidad" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="VelocidadMaxima" ItemStyle-Width="25%" HeaderText="Velocidad Máxima" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="FechaTrama" ItemStyle-Width="25%" HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="portlet light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="fa fa-car font-green"></i>
|
|
<span class="caption-subject bold uppercase">Ralentí:</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
<div style="max-height: 392px; overflow-y: scroll">
|
|
<asp:GridView ID="GvRalenti" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron resultados" GridLines="none" ToolTip="Listado de Eventos" CssClass="table table-striped table-hover Widthall">
|
|
<Columns>
|
|
<asp:BoundField DataField="Evento" ItemStyle-Width="25%" HeaderText="Estatus" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="TiempoDetenido" ItemStyle-Width="25%" HeaderText="Evento" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField DataField="FechaTrama" ItemStyle-Width="25%" HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
<ajax:TabPanel HeaderText="Combustible" runat="server">
|
|
<ContentTemplate>
|
|
<asp:UpdatePanel ID="UPFiltrosCombustible" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet solid grey-cascade portlet-filter" style="">
|
|
<div class="portlet-title portlet-filterT smalltitle " style="">
|
|
<div class="tools">
|
|
<asp:Button ID="BtnConsultarCombistible" OnClick="BtnConsultarCombistible_Click" runat="server" ValidationGroup="GrpCombustible" Text="Consultar" class="btn btn-primary" />
|
|
</div>
|
|
<div class="titlefiltros caption" style="margin-top: -8px;">
|
|
<ul class="list-inline" style="font-size: 12px;">
|
|
<li>Fecha Inicio:
|
|
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
|
<asp:TextBox ID="TxtFechaIC" runat="server" CssClass="form-control input-sm ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVFechaIC" runat="server" ControlToValidate="TxtFechaIC" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpCombustible"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender21" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaIC" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</li>
|
|
<li>Fecha Fin:
|
|
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy" style="display: inline-block;">
|
|
<asp:TextBox ID="TxtFechaFC" runat="server" CssClass="form-control input-sm ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVFechaFC" runat="server" ControlToValidate="TxtFechaFC" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpCombustible"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender22" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaFC" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body" style="display: none;">
|
|
<asp:HiddenField ID="HdfVGrafica" ClientIDMode="Static" runat="server" />
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel UpdateMode="Conditional" ID="UpReporte" runat="server">
|
|
<ContentTemplate>
|
|
<div runat="server" id="DvReporte" visible="false">
|
|
<asp:UpdatePanel runat="server" ID="UpDash" UpdateMode="conditional">
|
|
<ContentTemplate>
|
|
<div class="Row">
|
|
<div class="col-md-12">
|
|
<div class="portlet light">
|
|
<div class="portlet-title">
|
|
<div class="caption" style="font-size: 17px; width: 80%;">
|
|
<%-- <span style="font-size: 24px; font-weight: bold; text-align: center">Reporte de combustible de unidad:
|
|
<asp:Literal ID="LtlUnidad" runat="server"></asp:Literal></span>--%>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="#" class="fullscreen" data-original-title="" title=""></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<div class="col-md-3">
|
|
<a class="dashboard-stat dashboard-stat-v2 green" href="#">
|
|
<div class="visual">
|
|
<i class="fa fa-tachometer" aria-hidden="true"></i>
|
|
</div>
|
|
<div class="details">
|
|
<div class="number">
|
|
<span data-counter="counterup" data-value="549">
|
|
<asp:Literal runat="server" ID="lblVelocidad"></asp:Literal></span> KM/H
|
|
</div>
|
|
<div class="desc">Velocidad Máxima</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<a class="dashboard-stat dashboard-stat-v2 blue" href="#">
|
|
<div class="visual">
|
|
<i class="material-icons">local_gas_station</i>
|
|
</div>
|
|
<div class="details">
|
|
<div class="number">
|
|
<span data-counter="counterup" data-value="1349">
|
|
<asp:Literal runat="server" ID="lblRendBruto"></asp:Literal></span> KM/L
|
|
</div>
|
|
<div class="desc">Rendimiento</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<a class="dashboard-stat dashboard-stat-v2 yellow" href="#">
|
|
<div class="visual">
|
|
<i class="fa fa-line-chart"></i>
|
|
</div>
|
|
<div class="details">
|
|
<div class="number">
|
|
<span data-counter="counterup" data-value="549">
|
|
<asp:Literal runat="server" ID="LtlDistanciaR"></asp:Literal></span>
|
|
</div>
|
|
<div class="desc">KM Recorridos</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<a class="dashboard-stat dashboard-stat-v2 red" href="#">
|
|
<div class="visual">
|
|
<i class="glyphicon glyphicon-tint" aria-hidden="true"></i>
|
|
</div>
|
|
<div class="details">
|
|
<div class="number">
|
|
<span data-counter="counterup" data-value="12.5">
|
|
<asp:Literal runat="server" ID="LtlCombustibleConsumido"></asp:Literal></span> Lts
|
|
</div>
|
|
<div class="desc">Combustible Consumido</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:UpdatePanel ID="UPTabla" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<!-- BEGIN SAMPLE TABLE PORTLET-->
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="portlet light smmallpadding traspasorow bordered" style="margin-top: 48px">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-list"></i>Desglose
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<div class="table-scrollable">
|
|
<table class="table table-striped table-bordered table-advance table-hover tb">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>Valor</th>
|
|
<th>
|
|
<i class="fa fa-flask"></i>Combustible (Lts) </th>
|
|
<th>
|
|
<i class="fa fa-usd"></i>Total (MXN)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="highlight">
|
|
<div class="success"></div>
|
|
<a style="pointer-events: none; font-weight: bold; color: black">Combustible Inicial</a>
|
|
</td>
|
|
<td></td>
|
|
<td style="text-align: right">
|
|
<asp:Literal ID="LtlCombustibleInicial" runat="server" /></td>
|
|
<td style="text-align: right">
|
|
<asp:Literal ID="LtlCostoInicial" runat="server" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="highlight">
|
|
<div class="info"></div>
|
|
<asp:LinkButton Style="font-weight: bold" Text="Cargas" runat="server" ID="lbCargas"></asp:LinkButton>
|
|
</td>
|
|
<td style="text-align: right">
|
|
<asp:Literal ID="LtlNoCargas" runat="server" /></td>
|
|
<td style="text-align: right">
|
|
<asp:Literal ID="SumaCargas" runat="server" /></td>
|
|
<td style="text-align: right">
|
|
<asp:Literal ID="LtlCostoCargas" runat="server" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="highlight">
|
|
<div class="warning"></div>
|
|
<asp:LinkButton Style="font-weight: bold" Text="Descargas" runat="server" ID="lbDescargas"></asp:LinkButton>
|
|
</td>
|
|
<td style="text-align: right">
|
|
<asp:Literal ID="LtlNoDescargas" runat="server" /></td>
|
|
<td style="text-align: right">
|
|
<asp:Literal ID="SumaDescargas" runat="server" /></td>
|
|
<td style="text-align: right">
|
|
<asp:Literal ID="LtlCostoDescargas" runat="server" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="highlight">
|
|
<div class="info"></div>
|
|
<a style="pointer-events: none; font-weight: bold; color: black">Recorrido</a>
|
|
</td>
|
|
<td style="text-align: right">
|
|
<asp:Literal ID="LtlDistancia" runat="server" /></td>
|
|
<td style="text-align: right">
|
|
<asp:Literal ID="lCombustibleConsumido" runat="server" /></td>
|
|
<td style="text-align: right">
|
|
<asp:Literal ID="LtlCostoConsumo" runat="server" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="highlight">
|
|
<div class="success"></div>
|
|
<a style="pointer-events: none; font-weight: bold; color: black">Combustible Final</a>
|
|
</td>
|
|
<td></td>
|
|
<td style="text-align: right">
|
|
<asp:Literal ID="LtlCombustibleFinal" runat="server" /></td>
|
|
<td style="text-align: right">
|
|
<asp:Literal ID="LtlCostoCombustibleF" runat="server" /></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="portlet-title">
|
|
</div>
|
|
<div class="portlet light smmallpadding traspasorow bordered" style="margin-top: 48px">
|
|
<div class="portlet-title">
|
|
<div class="caption font-red">
|
|
<i class="fa fa-clock-o font-red"></i>
|
|
<span class="caption-subject bold uppercase">TIEMPOS OPERATIVOS</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div runat="server" id="bodyreportes" class="portlet-body rowpadding">
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<label style="font-weight: bold;">Ralentí: </label>
|
|
<br />
|
|
<asp:Literal runat="server" ID="LtlRalenti"></asp:Literal>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<label style="font-weight: bold;">Tiempo Movimiento: </label>
|
|
<br />
|
|
<asp:Literal runat="server" ID="lblMovimiento"></asp:Literal>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<label style="font-weight: bold;">Tiempo Muerto: </label>
|
|
<br />
|
|
<asp:Literal runat="server" ID="lblMuerto"></asp:Literal>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- END SAMPLE TABLE PORTLET-->
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:UpdatePanel runat="server" UpdateMode="conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet ">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-area-chart"></i>Historico
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
<a href="javascript:;" class="fullscreen " style="visibility: hidden;"></a>
|
|
<a href="javascript:;" class="fullscreen " style="visibility: hidden;"></a>
|
|
</div>
|
|
<div class="actions">
|
|
<div style="text-align: left;">
|
|
<b>Mostrar(Encendido/Apagado)</b>
|
|
<asp:CheckBox ID="ChkEncendido" ClientIDMode="Static" Checked="true" Text=" " CssClass="chksino ChkSinFuncion" runat="server" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<asp:HiddenField ID="HdnChartBase64" runat="server" ClientIDMode="Static" Value="" />
|
|
<div id="chartdiv"></div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<!-- EMPIEZA MODAL CARGAS/DESCARGAS -->
|
|
<div id="dvHistorico" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpHistorico" 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="H3" runat="server"><i class="fa fa-bell-o"></i>
|
|
<asp:Literal runat="server" ID="LtlTituloCD" /></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" UpdateMode="conditional" ID="UpdatePanel1">
|
|
<ContentTemplate>
|
|
<div class="row" style="margin-left: 0px; margin-top: 5px; margin-bottom: 5px; text-align: right" align="left">
|
|
<div style="margin-right: 15px">
|
|
<input type="text" id="TxtBusquedaHist" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVHistorico.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVHistorico.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
</div>
|
|
<asp:GridView ID="GVHistorico" runat="server" GridLines="None" DataKeyNames="CveEvento" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-heightfijo="300" data-height="300" data-sort="false" BorderWidth="1" BorderColor="#D3D3D3" CellSpacing="0" Width="100%" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros">
|
|
<Columns>
|
|
<asp:BoundField DataField="Evento" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="center" HeaderText="Evento" ItemStyle-HorizontalAlign="left" />
|
|
<asp:BoundField DataField="FechaTrama" ItemStyle-Width="25%" HeaderStyle-HorizontalAlign="center" HeaderText="Fecha" ItemStyle-HorizontalAlign="center" />
|
|
<asp:BoundField DataField="Volumen" DataFormatString="{0:###,###.00} Lts" HeaderStyle-HorizontalAlign="center" HeaderText="Volumen (Lts)" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="center" />
|
|
<asp:BoundField DataField="Direccion" HeaderStyle-HorizontalAlign="center" HeaderText="Dirección" ItemStyle-Width="35%" ItemStyle-HorizontalAlign="left" />
|
|
<asp:HyperLinkField DataNavigateUrlFields="Lat,Lon" HeaderStyle-HorizontalAlign="center" Target="_blank" Text="Ver" HeaderText="Ver en mapa" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="center" DataNavigateUrlFormatString="https://www.google.com/maps/search/{0},{1}/" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
</ajax:TabContainer>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel ID="TabSistema" runat="server" HeaderText="Sistema">
|
|
<ContentTemplate>
|
|
<table border="0" class="contenido">
|
|
<tr>
|
|
<td valign="top">
|
|
<div>
|
|
<fieldset>
|
|
<legend><b>Sistema</b></legend>
|
|
<table border="0">
|
|
<tr>
|
|
<td>Fecha de Captura:</td>
|
|
<td>
|
|
<asp:Label ID="LblFechaCaptura" runat="server"></asp:Label></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Usuario Capturó:</td>
|
|
<td>
|
|
<asp:Label ID="LblUsuarioCapturo" runat="server"></asp:Label></td>
|
|
</tr>
|
|
</table>
|
|
</fieldset>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel ID="TabProduccion" runat="server" HeaderText="Producción" Visible="false">
|
|
<ContentTemplate>
|
|
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpProduccion" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="portlet light xspadding bordered ">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="fa fa-tasks font-green"></i>
|
|
<span class="caption-subject bold uppercase">Producción</span>
|
|
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<asp:LinkButton runat="server" CssClass="btn btn-circle btn-sm blue" data-original-title="Agregar Producción" title="Agregar Producción" ID="LnkAgregarProduccion" OnClick="LnkAgregarProduccion_Click" Style="font-size: 13px!important"><i class="fa fa-plus-circle" aria-hidden="true"></i>Agregar</asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form-horizontal form-row-sepe formnombottom label12">
|
|
<div class="form-body">
|
|
|
|
|
|
|
|
|
|
|
|
<asp:GridView ID="GvProduccion" runat="server" GridLines="None" BorderWidth="0px" CssClass="table table-striped table-hover table-advance Widthall"
|
|
AutoGenerateColumns="False" DataKeyNames="CveProduccion, CveActivoFijo, CveCultivoCuadroDetalle, Cantidad, Fecha, CveUsuario, FechaIng, Codigo, Descripcion, Usuario, Cuadro" ShowHeader="true">
|
|
<Columns>
|
|
|
|
<asp:BoundField DataField="Cuadro" HeaderText="Cuadro" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Cantidad" HeaderText="Cantidad" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:n2}" />
|
|
<asp:BoundField DataField="Fecha" HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
|
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Opciones">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LnkGvProduccionEdit" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="LnkGvProduccionEdit_Click" Text="<i class='fa fa-pencil'></i>" />
|
|
<asp:LinkButton ID="LnkGvProduccionRemove" runat="server" AlternateText="Eliminar" OnClick="LnkGvProduccionRemove_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
|
|
|
|
<ajax:TabPanel ID="TabPlagaEnfermedad" runat="server" HeaderText="Plagas Enfermedades" Visible="false">
|
|
<ContentTemplate>
|
|
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpPlagaEnfermedad" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="portlet light xspadding bordered ">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="fa fa-tasks font-green"></i>
|
|
<span class="caption-subject bold uppercase">Plagas Enfermedades</span>
|
|
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<asp:LinkButton runat="server" CssClass="btn btn-circle btn-sm blue" data-original-title="Agregar Plaga Enfermedad" title="Agregar Plaga Enfermedad" ID="LnkAgregarPlagaEnfermedad" OnClick="LnkAgregarPlagaEnfermedad_Click" Style="font-size: 13px!important"><i class="fa fa-plus-circle" aria-hidden="true"></i>Agregar</asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form-horizontal form-row-sepe formnombottom ">
|
|
<div class="form-body">
|
|
|
|
|
|
<asp:GridView ID="GvPlagaEnfermedad" runat="server" GridLines="None" BorderWidth="0px" CssClass="table table-striped table-hover table-advance Widthall"
|
|
AutoGenerateColumns="False" DataKeyNames="CvePlagaEnfermedad,CveActivoFijo,Observaciones,Fecha,CveUsuario,FechaIng" ShowHeader="true">
|
|
<Columns>
|
|
|
|
<asp:BoundField DataField="Observaciones" HeaderText="Observaciones" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Fecha" HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
|
<asp:BoundField DataField="Usuario" HeaderText="Usuario" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Opciones">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LnkGvPlagaEnfermedadEdit" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="LnkGvPlagaEnfermedadEdit_Click" Text="<i class='fa fa-pencil'></i>" />
|
|
<asp:LinkButton ID="LnkGvPlagaEnfermedadRemove" runat="server" AlternateText="Eliminar" OnClick="LnkGvPlagaEnfermedadRemove_Click" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
|
|
|
|
|
|
</ajax:TabContainer>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center">
|
|
<asp:UpdatePanel ID="UpGuardar" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnGuardar" CssClass="btn btn-primary" runat="server" Text="Guardar" ValidationGroup="GrpGuardar" />
|
|
<asp:Button ID="BtnEliminar" CssClass="btn btn-danger" runat="server" Text="Eliminar" />
|
|
<asp:ValidationSummary ID="VS" runat="server" DisplayMode="BulletList" ShowSummary="true" ValidationGroup="GrpGuardar" />
|
|
<asp:Button ID="BtnCancelar" CssClass="btn btn-danger" runat="server" Text="Cancelar" OnClientClick="javascript:window.location.href='/AF/CatAF.aspx';return false" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
|
|
<br />
|
|
<table id="TblHistCompras" runat="server" border="0" rules="none" class=" table table-striped table-hover Widthall">
|
|
<tr>
|
|
<td align="left"><b>Historial de Modificaciones</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<asp:UpdatePanel ID="UPHistModificaciones" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GVHistModificaciones" GridLines="None" BorderWidth="0" CssClass=" table table-striped table-hover table-advance Widthall" runat="server" AutoGenerateColumns="False" EmptyDataText="No se han capturado comentarios o bitácora">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Fecha</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Usuario</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Concepto</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlConcepto" runat="server" Text='<%# Eval("ConceptoHistorialBitacora") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Actual</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlActual" runat="server" Text='<%# Eval("Actual") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Anterior</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlAnterior" runat="server" Text='<%# Eval("Anterior") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<HeaderStyle CssClass="Titulos" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
<RowStyle CssClass="Texto" />
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
|
|
<div class="row">
|
|
<div class="col-md-12 ">
|
|
<div class="portlet light bordered">
|
|
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<%--<i class="fa fa-users font-green"></i>--%>
|
|
<span class="caption-subject bold uppercase">Bitacora</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<%--<div class=" font-green" style="cursor: pointer;" runat="server" id="ImgAddObs">
|
|
<i class="fa fa-commenting font-green"></i>
|
|
<span class="caption-subject bold">Agregar</span>
|
|
</div>--%>
|
|
<asp:HyperLink ID="ImgAddObs" CssClass="caption-subject bold font-green" data-toggle="modal" data-target="#ModalBitacora" runat="server" Text=" <i class='fa fa-commenting font-green' ></i><span class='caption-subject bold'>Agregar</span>" Style="font-weight: 700 !important; cursor: pointer;" ToolTip="Observaciones"></asp:HyperLink><br />
|
|
<asp:HyperLink ID="HlEvento" CssClass="thickbox caption-subject bold font-green" runat="server" Text=" <i class='fa fa-calendar-plus-o font-green' ></i>Agendar" Visible="false" Style="cursor: pointer; font-weight: 700 !important;" ToolTip="Agendar"></asp:HyperLink>
|
|
<br /><asp:Literal ID="LtlTareaNueva" runat="server"></asp:Literal>
|
|
<UserControl:TareaNueva runat="server" ID="TareaNueva" />
|
|
<script>
|
|
function OnAddedTareaNueva() {
|
|
$('.btnupEventoBitacora').click();
|
|
}
|
|
</script>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="portlet-body">
|
|
|
|
<asp:UpdatePanel ID="UPEventoBitacora" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvEB" runat="server" AutoGenerateColumns="False" EmptyDataText="No se han capturado comentarios o bitácora" CssClass="table table-striped table-advance table-hover Widthall" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Fecha</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Fecha Agenda</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFechaAgenda" runat="server" Text='<%# Eval("FechaInicio") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Usuario</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Descripción</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlEventoBitacora" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Archivo</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LinkArchivo" Visible="false" runat="server" CssClass="Texto" OnClick="DownloadFile">
|
|
<asp:Image ImageUrl="/Imagenes/Abajo.png" ID="ImgArchivo" runat="server" />
|
|
</asp:LinkButton>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<HeaderStyle CssClass="Titulos" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
<RowStyle CssClass="Texto" />
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<%-- MODAL BITACORA --%>
|
|
<div id="ModalBitacora" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Bitácora</h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UPAddEventoBitacora" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<label>Bitácora/Observaciones</label>
|
|
<br />
|
|
<asp:TextBox CssClass="form-control" ID="TxtEventoDescripcion" class="Widthall" runat="server" TextMode="MultiLine" Columns="60" Rows="4"></asp:TextBox>
|
|
<br />
|
|
</div>
|
|
<div class="col-md-4">
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
|
</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>
|
|
<%-- FIN MODAL BITACORA --%>
|
|
|
|
<%-- Modal Codigo barras QR--%>
|
|
<div id="ModalCodigoBarrasQR" 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:UpdatePanel ID="UpModalTitulo" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Literal ID="LtlModalTitleUpModalTitulo" runat="server">Codigo </asp:Literal>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UpModalUploadCodigoBarras" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<div style="text-align: center">
|
|
<asp:Image ID="ImgModalCodigo" runat="server" Height="150" Width="150" />
|
|
</div>
|
|
<div>
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtCodigoBarrasModal" Enabled="false" CssClass="form-control " runat="server" MaxLength="50"></asp:TextBox>
|
|
<label class="truncate" style="padding-left: 16px;" for="<%= TxtCodigoBarrasModal.ClientID.ToString()%>">Código:</label>
|
|
<i></i>
|
|
</div>
|
|
|
|
<div class="col-md-4 form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DDLCodigoFormato" runat="server" CssClass="form-control input-sm select2me" Width="200" AutoPostBack="true">
|
|
<asp:ListItem Value="All_1D">All_1D</asp:ListItem>
|
|
<asp:ListItem Value="AZTEC">AZTEC</asp:ListItem>
|
|
<asp:ListItem Value="CODABAR">CODABAR</asp:ListItem>
|
|
<asp:ListItem Value="CODE_128">CODE_128</asp:ListItem>
|
|
<asp:ListItem Value="CODE_39">CODE_39</asp:ListItem>
|
|
<asp:ListItem Value="CODE_93">CODE_93</asp:ListItem>
|
|
<asp:ListItem Value="DATA_MATRIX">DATA_MATRIX</asp:ListItem>
|
|
<asp:ListItem Value="EAN_13">EAN_13</asp:ListItem>
|
|
<asp:ListItem Value="EAN_8">EAN_8</asp:ListItem>
|
|
<asp:ListItem Value="IMB">IMB</asp:ListItem>
|
|
<asp:ListItem Value="ITF">ITF</asp:ListItem>
|
|
<asp:ListItem Value="MAXICODE">MAXICODE</asp:ListItem>
|
|
<asp:ListItem Value="MSI">MSI</asp:ListItem>
|
|
<asp:ListItem Value="PDF_417">PDF_417</asp:ListItem>
|
|
<asp:ListItem Value="PLESSEY">PLESSEY</asp:ListItem>
|
|
<asp:ListItem Selected="True" Value="QR_CODE">QR_CODE</asp:ListItem>
|
|
<asp:ListItem Value="RSS_14">RSS_14</asp:ListItem>
|
|
<asp:ListItem Value="RSS_EXPANDED">RSS_EXPANDED</asp:ListItem>
|
|
<asp:ListItem Value="UPC_A">UPC_A</asp:ListItem>
|
|
<asp:ListItem Value="UPC_E">UPC_E</asp:ListItem>
|
|
<asp:ListItem Value="UPC_EAN_EXTENSION">UPC_EAN_EXTENSION</asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DDLCodigoFormato.ClientID.ToString()%>">Formato:</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtAlto" runat="server" MaxLength="30" CssClass="form-control marginFixRow"></asp:TextBox>
|
|
<label for="<%= TxtAlto.ClientID.ToString()%>">Alto:</label>
|
|
<ajax:FilteredTextBoxExtender runat="server" ID="FETxtAlto" TargetControlID="TxtAlto" FilterType="Numbers" InvalidChars=".-," />
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtAncho" runat="server" MaxLength="30" CssClass="form-control marginFixRow"></asp:TextBox>
|
|
<label for="<%= TxtAncho.ClientID.ToString()%>">Ancho:</label>
|
|
<ajax:FilteredTextBoxExtender runat="server" ID="FilteredTextBoxExtender1" TargetControlID="TxtAncho" FilterType="Numbers" InvalidChars=".-," />
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12 form-group form-md-line-input " style="text-align: center!important">
|
|
<asp:LinkButton ID="LnkModalGenerarCodigoBarrasQR" runat="server" Text="Generar" CssClass="btn btn-primary"></asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server" ID="UpModalBotonesCodigos" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<asp:LinkButton ID="LnkDescargaImagen" runat="server" Text="Descargar <i class='fa fa-download' aria-hidden='true'></i>" CssClass="btn btn-primary"></asp:LinkButton>
|
|
<asp:LinkButton ID="LnkDescargaImpresion" runat="server" Text="Imprimir <i class='fa fa-print' aria-hidden='true'></i>" CssClass="btn btn-primary"></asp:LinkButton>
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="LnkDescargaImagen" />
|
|
<asp:PostBackTrigger ControlID="LnkDescargaImpresion" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<%--ARCHIVO RESGUARDO--%>
|
|
<asp:UpdatePanel runat="server" ID="UpAccionF">
|
|
<ContentTemplate>
|
|
<div id="DivArchivo" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog" style="width: 700px;">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<h4 class="modal-title">Agregar archivo</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UPupdateEstrucutran1" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-4 truncate ">Archivo:</div>
|
|
<div class="col-md-8">
|
|
<asp:TextBox ID="TxtUpFormato" CssClass="ADSdropzone hidden" data-maxFile="1" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="btnAddArchivo" runat="server" CssClass="btn btn-primary" Text="Guardar" />
|
|
<button class="btn btn-default" onclick="javascript:SetObjects()" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<%-- MODAL PLACAS --%>
|
|
<div id="DivAddPlacas" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpAddPlacas" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
<h4 class="modal-title" id="myModalLabel" runat="server">Agregar Placa</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpBodyPlacas" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-5">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtPlaca" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="50"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVPlaca" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtPlaca" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Placa''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtPlaca.ClientID.ToString()%>">Placa:</label>
|
|
</div>
|
|
|
|
<div class="form-group input-iconright">
|
|
<asp:TextBox ID="TxtObservacionPlacas" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="255" Rows="3" TextMode="MultiLine"></asp:TextBox>
|
|
<label for="<%= TxtObservacionPlacas.ClientID.ToString()%>">Observación:</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-7">
|
|
<div id="Div1" runat="server" class="col-md-4" style="width: 350px !important; height: 200px !important;">
|
|
<asp:TextBox ID="TxtArchivo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
|
</div>
|
|
<br />
|
|
</div>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel ID="UpFooter" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="BtnAgregarPlaca" runat="server" CssClass="btn btn-primary" ValidationGroup="GrpObligatorio"> <i class='material-icons'>done_all</i>Agregar</asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<%-- MODAL Licencia --%>
|
|
<div id="DivAddLicencias" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpAddLicencias" 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="LabelLicencia" runat="server">Agregar Licencia</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpBodyLicencias" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-5">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtLicencia" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="50"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVLicencia" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtLicencia" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Licencia''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioL"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtLicencia.ClientID.ToString()%>">Licencia:</label>
|
|
</div>
|
|
|
|
<div class="form-group input-iconright">
|
|
<asp:TextBox ID="TxtObservacionLicencia" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="255" TextMode="MultiLine" Rows="3"></asp:TextBox>
|
|
<label for="<%= TxtObservacionLicencia.ClientID.ToString()%>">Observación:</label>
|
|
</div>
|
|
|
|
<label for="<%= TxtFechaExpLicencia.ClientID.ToString()%>">Fecha Expedición:</label>
|
|
<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="TxtFechaExpLicencia" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFLicencia" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="TxtFechaExpLicencia" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender2" TargetControlID="TxtFechaExpLicencia" PopupButtonID="ImgFLicencia" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaExpLicencia" runat="server" ControlToValidate="TxtFechaExpLicencia" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Expedición''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioL"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CvFechaExpLicencia" runat="server" ControlToValidate="TxtFechaExpLicencia" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Expedición''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpObligatorioL"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaExpLicencia" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" HighlightCssClass="vco" TargetControlID="CvFechaExpLicencia" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
|
|
<label for="<%= TxtFechaVencLicencia.ClientID.ToString()%>">Fecha Vencimiento:</label>
|
|
<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="TxtFechaVencLicencia" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgVLicencia" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender3" runat="server" TargetControlID="TxtFechaVencLicencia" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender3" TargetControlID="TxtFechaVencLicencia" PopupButtonID="ImgVLicencia" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaVLicencia" runat="server" ControlToValidate="TxtFechaVencLicencia" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Vencimiento''</b> es necesario, por favor ingréselo." ValidationGroup="GrpSolicitarMateriales"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CvFechaFLicencia" runat="server" ControlToValidate="TxtFechaVencLicencia" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Vencimiento''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpObligatorioL"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaVLicencia" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" HighlightCssClass="vco" TargetControlID="CvFechaFLicencia" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-7">
|
|
<div id="Div2" runat="server" class="col-md-4" style="width: 350px !important; height: 200px !important;">
|
|
<asp:TextBox ID="TxtArchivoLicencia" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
|
</div>
|
|
<br />
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel ID="UpFooterLicencia" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="BtnAgregarLicencia" runat="server" CssClass="btn btn-primary" ValidationGroup="GrpObligatorioL"> <i class='material-icons'>done_all</i>Agregar</asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<%-- MODAL Polizas Seguro --%>
|
|
<div id="DivAddPolizas" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpAddPolizas" 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="LabelPolizas" runat="server">Agregar Pólizas de Seguro</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpBodyPoliza" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-5">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<ADS:Dropdownlost ID="DdlProveedor" Width="100%" CssStyle="width: 100%;" runat="server" UsaWebService="true" data-metodo="getproveedores" DataValueField="CveProveedor" DataTextField="RazonSocial" CssClass="form-control select2me" AppendDataBoundItems="true"></ADS:Dropdownlost>
|
|
<%--<asp:RequiredFieldValidator ID="RFVProveedor" runat="server" ControlToValidate="DdlProveedor" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Compañia''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpObligatorioP"></asp:RequiredFieldValidator>--%>
|
|
<label for="<%= DdlProveedor.ClientID.ToString()%>">Proveedor:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtPolizaSeguro" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="50"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVPoliza" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtPolizaSeguro" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Póliza''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioP"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtPolizaSeguro.ClientID.ToString()%>">Póliza:</label>
|
|
</div>
|
|
|
|
<div class="form-group input-iconright">
|
|
<asp:TextBox ID="TxtObservacionPoliza" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="255" TextMode="MultiLine" Rows="3"></asp:TextBox>
|
|
<label for="<%= TxtObservacionPoliza.ClientID.ToString()%>">Observación:</label>
|
|
</div>
|
|
|
|
<label for="<%= TxtFechaExpPoliza.ClientID.ToString()%>">Fecha Expedición:</label>
|
|
<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="TxtFechaExpPoliza" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFPoliza" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender4" runat="server" TargetControlID="TxtFechaExpPoliza" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender4" TargetControlID="TxtFechaExpPoliza" PopupButtonID="ImgFPoliza" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaEPoliza" runat="server" ControlToValidate="TxtFechaExpPoliza" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Expedición''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioP"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFechaEPoliza" runat="server" ControlToValidate="TxtFechaExpPoliza" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Expedición''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpObligatorioP"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaEPoliza" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaEPoliza" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
|
|
<label for="<%= TxtFechaVenPoliza.ClientID.ToString()%>">Fecha Vencimiento:</label>
|
|
<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="TxtFechaVenPoliza" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFVPoliza" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender5" runat="server" TargetControlID="TxtFechaVenPoliza" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender5" TargetControlID="TxtFechaVenPoliza" PopupButtonID="ImgFVPoliza" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaVPoliza" runat="server" ControlToValidate="TxtFechaVenPoliza" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Vencimiento''</b> es necesario, por favor ingréselo." ValidationGroup="GrpSolicitarMateriales"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFechaPoliza" runat="server" ControlToValidate="TxtFechaVenPoliza" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Vencimiento''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpObligatorioP"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaVPoliza" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaPoliza" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-7">
|
|
<div id="Div3" runat="server" class="col-md-4" style="width: 350px !important; height: 200px !important;">
|
|
<asp:TextBox ID="TxtArchivoPoliza" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
|
</div>
|
|
<br />
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel ID="UpFooterPoliza" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="BtnAgregarPoliza" runat="server" CssClass="btn btn-primary" ValidationGroup="GrpObligatorioP"> <i class='material-icons'>done_all</i>Agregar</asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<%-- MODAL Fallas --%>
|
|
<div id="DivAddFallas" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpAddFallas" 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="LabelIndicente" runat="server">Registrar Fallas</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpBodyFallas" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
|
|
<label for="<%= TxtFechaFalla.ClientID.ToString()%>">Fecha Falla:</label>
|
|
<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="TxtFechaFalla" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFechaFalla" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender6" runat="server" TargetControlID="TxtFechaFalla" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender6" TargetControlID="TxtFechaFalla" PopupButtonID="ImgFechaFalla" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaIncidente" runat="server" ControlToValidate="TxtFechaFalla" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Falla''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioI"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFechaIncidente" runat="server" ControlToValidate="TxtFechaFalla" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Falla''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpObligatorioI"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender11" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaIncidente" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender12" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaIncidente" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtAsuntoFalla" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="50"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVAsunto" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAsuntoFalla" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioI"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtAsuntoFalla.ClientID.ToString()%>">Asunto:</label>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="<%= TxtDescripcionFalla.ClientID.ToString()%>">Descripción:</label>
|
|
<asp:TextBox ID="TxtDescripcionFalla" runat="server" CssClass="form-control" CausesValidation="true" Rows="3" TextMode="MultiLine"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVDescripcionIncidente" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDescripcionFalla" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioI"></asp:RequiredFieldValidator>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtAFMedida" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVOdometro" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAFMedida" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Horómetro / Odómetro:''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioI"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtAFMedida.ClientID.ToString()%>">Horómetro / Odómetro:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtCorreoNotificacion" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVCorreoNotificacion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtCorreoNotificacion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Correo Notificación''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioI"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtCorreoNotificacion.ClientID.ToString()%>">Correo Notificación:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlTipoFallas" runat="server" CssClass="form-control select2me" DataValueField="CveTipoFalla" DataTextField="TipoFalla"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVTipoFallas" runat="server" ControlToValidate="DdlTipoFallas" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Fallas''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpObligatorioI"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlTipoFallas.ClientID.ToString()%>">Tipo Falla:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlPrioridad" runat="server" CssClass="form-control select2me" AppendDataBoundItems="true">
|
|
<asp:ListItem Value="1" Text="Baja"></asp:ListItem>
|
|
<asp:ListItem Value="2" Text="Media"></asp:ListItem>
|
|
<asp:ListItem Value="3" Text="Alta"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpObligatorioI"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlPrioridad.ClientID.ToString()%>">Prioridad:</label>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel ID="UpFooterFalla" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="BtnAgregarFalla" runat="server" CssClass="btn btn-primary" ValidationGroup="GrpObligatorioI"> <i class='material-icons'>done_all</i>Agregar</asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<%-- MODAL Accidentes --%>
|
|
<div id="DivAddAccidentes" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpAddAccidente" 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="LabelAccidente" runat="server">Registrar Accidente</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="Up" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
|
|
<label for="<%= TxtFechaAccidente.ClientID.ToString()%>">Fecha Accidente:</label>
|
|
<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="TxtFechaAccidente" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFechaAccidente" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender8" runat="server" TargetControlID="TxtFechaAccidente" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender8" TargetControlID="TxtFechaAccidente" PopupButtonID="ImgFechaAccidente" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaAccidente" runat="server" ControlToValidate="TxtFechaAccidente" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Accidente''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioA"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVEFechaAccidente" runat="server" ControlToValidate="TxtFechaAccidente" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Accidente''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpObligatorioI"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender15" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaAccidente" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender16" runat="server" HighlightCssClass="vco" TargetControlID="CVEFechaAccidente" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtAsuntoAccidente" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="50"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAsuntoAccidente" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioA"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtAsuntoAccidente.ClientID.ToString()%>">Asunto:</label>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="<%= TxtDescripcionAccidente.ClientID.ToString()%>">Descripción:</label>
|
|
<asp:TextBox ID="TxtDescripcionAccidente" runat="server" CssClass="form-control" CausesValidation="true" Rows="3" TextMode="MultiLine"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVDescripcionAccidente" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDescripcionAccidente" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioA"></asp:RequiredFieldValidator>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtAFMedidaAccidente" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAFMedidaAccidente" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Horómetro / Odómetro:''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioA"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtAFMedidaAccidente.ClientID.ToString()%>">Horómetro / Odómetro:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtCorreoNotificacionAccidente" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtCorreoNotificacionAccidente" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Correo Notificación''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorioA"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtCorreoNotificacionAccidente.ClientID.ToString()%>">Correo Notificación:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlTipoFallaAccidente" runat="server" CssClass="form-control select2me" DataValueField="CveTipoFalla" DataTextField="TipoFalla"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="DdlTipoFallaAccidente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Fallas''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpObligatorioA"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlTipoFallaAccidente.ClientID.ToString()%>">Tipo Falla:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlPrioridadAccidente" runat="server" CssClass="form-control select2me" AppendDataBoundItems="true">
|
|
<asp:ListItem Value="1" Text="Baja"></asp:ListItem>
|
|
<asp:ListItem Value="2" Text="Media"></asp:ListItem>
|
|
<asp:ListItem Value="3" Text="Alta"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="DdlPrioridadAccidente" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpObligatorioA"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlPrioridadAccidente.ClientID.ToString()%>">Prioridad:</label>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="BtnRegistrarAccidente" runat="server" CssClass="btn btn-primary" ValidationGroup="GrpObligatorioA"> <i class='material-icons'>done_all</i>Agregar</asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<%-- MODAL Actividads --%>
|
|
<div id="DivActividades" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpAgregarBitacora" 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="LabelActividad" runat="server">Registrar Actividad</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpBodyActividades" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
|
|
<label for="<%= TxtFechaActividad.ClientID.ToString()%>">Fecha:</label>
|
|
<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="TxtFechaActividad" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFechaActividad" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender9" runat="server" TargetControlID="TxtFechaActividad" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender9" TargetControlID="TxtFechaActividad" PopupButtonID="ImgFechaActividad" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVActividad" runat="server" ControlToValidate="TxtFechaActividad" 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="GrpActividades"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVOActividad" runat="server" ControlToValidate="TxtFechaActividad" 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="GrpActividades"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender17" runat="server" HighlightCssClass="vco" TargetControlID="RFVActividad" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender18" runat="server" HighlightCssClass="vco" TargetControlID="CVOActividad" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlActividad" DataValueField="CveActividad" DataTextField="Actividad" runat="server" CssClass="form-control select2me" AppendDataBoundItems="true"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" CssClass="help-block errorimput" ControlToValidate="DdlActividad" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Actividad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpActividades" InitialValue="-1"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlActividad.ClientID.ToString()%>">Actividad:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlOperador" DataValueField="CveOperador" DataTextField="Operador" runat="server" CssClass="form-control select2me"></asp:DropDownList>
|
|
<label for="<%= DdlOperador.ClientID.ToString()%>">Operador:</label>
|
|
</div>
|
|
|
|
<div class="form-group input-iconright">
|
|
<label for="<%= TxtObservacion.ClientID.ToString()%>">Observación:</label>
|
|
<asp:TextBox ID="TxtObservacion" runat="server" TextMode="MultiLine" MaxLength="500" Rows="3" CssClass="form-control"></asp:TextBox>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtHorometroInicial" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTBETxtKm" TargetControlID="TxtHorometroInicial" FilterType="Numbers" runat="server" />
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtHorometroInicial" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo." ValidationGroup="GrpActividades"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtHorometroInicial.ClientID.ToString()%>" id="LabelInicial" runat="server">Horometro:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtHorometroFinal" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" TargetControlID="TxtHorometroFinal" FilterType="Numbers" runat="server" />
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtHorometroFinal" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo." ValidationGroup="GrpActividades"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ControlToValidate="TxtHorometroFinal" ControlToCompare="TxtHorometroInicial" runat="server" Operator="GreaterThanEqual" ID="CVFinal" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo no puede ser menor al inicial, por favor corrija" ValidationGroup="GrpActividades"></asp:CompareValidator>
|
|
<label for="<%= TxtHorometroFinal.ClientID.ToString()%>" id="LabelFinal" runat="server">Horometro:</label>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel ID="UpFooterActividades" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnAgregarActividades" runat="server" CssClass="btn btn-primary" Text="Agregar" ValidationGroup="GrpActividades" />
|
|
<button id="BtnCancelarBitacora" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="ModalAFInv" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel ID="UpAFInv" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Importar Producto de Almacén</h4>
|
|
</div>
|
|
<div class="modal-body rowpadding">
|
|
<div class="row">
|
|
<div class="col-md-2">Almacén:</div>
|
|
<div class="col-md-10">
|
|
<asp:DropDownList ID="DdlAFInvAlmacen" DataTextField="Almacen" DataValueField="CveAlmacen" CssClass="select2me" AppendDataBoundItems="true" runat="server" Width="200px" ToolTip="Solo se muestran almacenes de Tipo: Material y Activo Fijo"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVAFInvAlmacen" runat="server" ControlToValidate="DdlAFInvAlmacen" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Almacén''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAFInv"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEAFInvAlmacen" runat="server" HighlightCssClass="vco" TargetControlID="RFVAFInvAlmacen" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-2">Producto:</div>
|
|
<div class="col-md-10">
|
|
<ADS:Dropdownlost runat="server" ID="DdlAFInvPS" CssStyle="width: 100%;" CssClass="DdlPS " CssClassDdl="select2me " IncluyeTodos="false" DataTextField="PSCodigo" DataValueField="CvePS" Onselectedindexchange="DdlAFInvPS_SelectedIndexChanged" />
|
|
<%-- <asp:RequiredFieldValidator ID="RFVAFInvPS" runat="server" ControlToValidate="DdlAFInvPS" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Producto''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAFInv"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEAFInvPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVAFInvPS" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
</div>
|
|
</div>
|
|
<div id="DivSerie" runat="server" visible="false" class="row">
|
|
<div class="col-md-2">Serie:</div>
|
|
<div class="col-md-10">
|
|
<asp:TextBox CssClass="form-control input-sm" ID="TxtAFInvSerie" Width="125px" runat="server" />
|
|
<asp:RequiredFieldValidator ID="RFVAFInvSerie" runat="server" ControlToValidate="TxtAFInvSerie" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Serie''</b> es necesario, por favor seleccione uno." InitialValue="" ValidationGroup="GrpAFInv"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEAFInvSerie" runat="server" HighlightCssClass="vco" TargetControlID="RFVAFInvSerie" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div id="DivSeccion" runat="server" visible="false" class="row">
|
|
<div class="col-md-2">Sección:</div>
|
|
<div class="col-md-10">
|
|
<asp:DropDownList ID="DdlSeccionAlmacen" DataTextField="SeccionAlmacen" AppendDataBoundItems="true" DataValueField="CveSeccionAlmacen" Class="form-control input-sm select2me" Style="width: 95% !important" runat="server" CausesValidation="true">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="TxtAFInvSerie" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Serie''</b> es necesario, por favor seleccione uno." InitialValue="" ValidationGroup="GrpAFInv"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender27" runat="server" HighlightCssClass="vco" TargetControlID="RFVAFInvSerie" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button Text="Cargar Producto" ID="BtnAFInv" CssClass="btn btn-primary" ValidationGroup="GrpAFInv" OnClick="BtnAFInv_Click" runat="server" />
|
|
<button id="CancelarAFInv" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
<%-- MODAL GRUPO --%>
|
|
<div id="DivAddGrupo" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpAddGrupo" 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="H1" runat="server">Agregar Grupo</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
<div class="row" style="margin: 5px;">
|
|
<table border="0" cellpadding="0" class="Widthall grides" cellspacing="0">
|
|
<tbody>
|
|
<tr align="left">
|
|
<td style="text-align: left;">
|
|
<div class="form-group form-md-line-input">
|
|
<asp:TextBox ID="TxtGrupoAF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="50"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVGrupoAF" runat="server" ControlToValidate="TxtGrupoAF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Grupo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGrupoAF"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEGrupoAF" runat="server" HighlightCssClass="vco" TargetControlID="RFVGrupoAF" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= TxtGrupoAF.ClientID.ToString()%>">Grupo:</label>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<asp:LinkButton ID="LbAgregar" runat="server" CssClass="btn btn-default" ValidationGroup="GrpGrupoAF" Text="Agregar" />
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<br />
|
|
<div class="row" style="margin: 5px;">
|
|
<asp:UpdatePanel ID="UpGvGrupo" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
|
|
<asp:GridView ID="GvGrupo" runat="server" GridLines="none" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" DataKeyNames="No,CveGrupo" EmptyDataText="Aún no hay registros." AutoGenerateColumns="False" AllowPaging="False" ShowHeaderWhenEmpty="True">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="No" Visible="False">
|
|
<EditItemTemplate>
|
|
<asp:Literal ID="lbNo" runat="server" Text='<%# Eval("No")%>'></asp:Literal>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="lbNo" runat="server" Text='<%# Eval("No")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="200px"></ItemStyle>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Grupo">
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtGrupo" CssClass="form-control" runat="server" Text='<%# Eval("Grupo")%>' CausesValidation="true" MaxLength="50"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVGrupo" runat="server" ControlToValidate="TxtGrupo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Grupo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGrupo"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEGrupo" runat="server" HighlightCssClass="vco" TargetControlID="RFVGrupo" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="lbGrupo" runat="server" Text='<%# Eval("Grupo")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="200px"></ItemStyle>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField>
|
|
<EditItemTemplate>
|
|
<center>
|
|
<asp:LinkButton ID="imgU" ValidationGroup="GrpGrupo" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" />
|
|
<asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel" CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times'></i>" />
|
|
</center>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
|
<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 Grupo?" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
<ItemStyle Width="10px"></ItemStyle>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
</asp:GridView>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel ID="UpFooterGrupo" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="BtnAgregarGrupoAF" runat="server" CssClass="btn btn-primary">Guardar</asp:LinkButton>
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<%-- MODAL OI_EVENTOS --%>
|
|
<div id="DivAddEvento" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpAddEvento" 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="H2" runat="server">Agregar Evento</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpBodyEvento" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtAsuntoEvento" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="255"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVAsuntoEvento" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAsuntoEvento" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEvento"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtAsuntoEvento.ClientID.ToString()%>">Asunto:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlAgedaTipoAdd" runat="server" ClientIDMode="Static" DataTextField="AgendaTipo" DataValueField="CveAgendaTipo" AppendDataBoundItems="true" Width="100%" CssClass="form-control select2me">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVTipoAsunto" runat="server" CssClass="help-block errorimput" ControlToValidate="DdlAgedaTipoAdd" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEvento"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlAgedaTipoAdd.ClientID.ToString()%>">Tipo Asunto:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlPrioridadAdd" runat="server" ClientIDMode="Static" AppendDataBoundItems="true" Width="100%" CssClass="form-control select2me">
|
|
<asp:ListItem Selected="True" Text="Baja" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Media" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Alta" Value="3"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlPrioridadAdd.ClientID.ToString()%>">Prioridad:</label>
|
|
</div>
|
|
|
|
<div class="form-group input-iconright">
|
|
<label for="<%= TxtDescripcionAdd.ClientID.ToString()%>">Descripción:</label>
|
|
<asp:TextBox ID="TxtDescripcionAdd" Text="" CssClass="form-control input-sm" Rows="4" TextMode="MultiLine" ClientIDMode="Static" ValidationGroup="GrpEvento" runat="server" />
|
|
|
|
</div>
|
|
|
|
<label for="<%= TxtFechaInicioEvento.ClientID.ToString()%>">Fecha Inicio:</label>
|
|
<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="TxtFechaInicioEvento" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgInicioEvento" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="TxtFechaInicioEvento" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="TxtFechaInicioEvento" PopupButtonID="ImgInicioEvento" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaInicioEvento" runat="server" ControlToValidate="TxtFechaInicioEvento" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEvento"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVEFechaInicioEvento" runat="server" ControlToValidate="TxtFechaInicioEvento" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpEvento"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaInicioEvento" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="CVEFechaInicioEvento" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
|
|
<label for="<%= TxtFechaFinEvento.ClientID.ToString()%>">Fecha Fin:</label>
|
|
<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="TxtFechaFinEvento" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFinEvento" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender7" runat="server" TargetControlID="TxtFechaFinEvento" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender7" TargetControlID="TxtFechaFinEvento" PopupButtonID="ImgFinEvento" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaFinEvento" runat="server" ControlToValidate="TxtFechaFinEvento" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEvento"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVEFechaFinEvento" runat="server" ControlToValidate="TxtFechaInicioEvento" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpEvento"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender13" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaFinEvento" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender14" runat="server" HighlightCssClass="vco" TargetControlID="CVEFechaFinEvento" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel ID="UpFooterEvento" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="BtnGuardarEvento" runat="server" CssClass="btn btn-primary" ValidationGroup="GrpEvento"> <i class='material-icons'>done_all</i>Agregar</asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<%--MODAL PRODUCCION--%>
|
|
<div id="DVModalProduccion" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpModalProduccion" 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="H4" runat="server">
|
|
<asp:Label runat="server" ID="LblModaProduccionTitulo"></asp:Label></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpdatePanel4" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<div runat="server" id="DVCultivosCuadro" class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlModalCultivosCuadro" CssClass=" form-control input-sm select2me" runat="server" DataTextField="Cuadro" Style="width: 100%; max-width: 600px;"
|
|
DataValueField="CveCultivoCuadroDetalle" ValidationGroup="GrpProduccion">
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RfvDdlModalCultivosCuadro" InitialValue="-1" runat="server" CssClass="help-block errorimput" ControlToValidate="DdlModalCultivosCuadro"
|
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El Cuadro <b>''Cuadro''</b> es necesario, por favor ingréselo." ValidationGroup="GrpProduccion">
|
|
</asp:RequiredFieldValidator>
|
|
<label runat="server" for="<%= DdlModalCultivosCuadro.ClientID.ToString()%>">Cultivo:</label>
|
|
<i></i>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtModalProduccionCantidad" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="20"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RfvTxtModalProduccionCantidad" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtModalProduccionCantidad"
|
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpProduccion">
|
|
</asp:RequiredFieldValidator>
|
|
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtModalProduccionCantidad" FilterType="Custom" ValidChars="1234567890." />
|
|
<label for="<%= TxtModalProduccionCantidad.ClientID.ToString()%>">Cantidad:</label>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
|
|
|
|
|
|
|
|
<label for="<%= TxtModalProduccionFecha.ClientID.ToString()%>">Fecha:</label>
|
|
<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="TxtModalProduccionFecha" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="LnkTxtModalProduccionFecha" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="METxtModalProduccionFecha" runat="server" TargetControlID="TxtModalProduccionFecha" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CETxtModalProduccionFecha" TargetControlID="TxtModalProduccionFecha" PopupButtonID="LnkTxtModalProduccionFecha" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
|
|
<asp:RequiredFieldValidator ID="RfvTxtModalProduccionFecha" runat="server" ControlToValidate="TxtModalProduccionFecha" 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="GrpProduccion"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVOTxtModalProduccionFecha" runat="server" ControlToValidate="TxtModalProduccionFecha" 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="GrpProduccion"></asp:CompareValidator>
|
|
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender28" runat="server" HighlightCssClass="vco" TargetControlID="RfvTxtModalProduccionFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender29" runat="server" HighlightCssClass="vco" TargetControlID="CVOTxtModalProduccionFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="modal-footer">
|
|
|
|
<asp:LinkButton ID="LnkModalAgregarProduccion" runat="server" CssClass="btn btn-primary" ValidationGroup="GrpProduccion" OnClick="LnkModalAgregarProduccion_Click"> <i class='material-icons'>done_all</i>Agregar</asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<%--MODAL MANTENIMIENTO--%>
|
|
<div id="DVModalMantenimiento" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpModalMantenimiento" 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="H5" runat="server">
|
|
<asp:Label runat="server" ID="LblModaMantenimientoTitulo"></asp:Label></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpdatePanel5" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtModalMantenimiento" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="50"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RfvTxtModalMantenimiento" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtModalMantenimiento"
|
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Mantenimiento''</b> es necesario, por favor ingréselo." ValidationGroup="GrpMantenimiento">
|
|
</asp:RequiredFieldValidator>
|
|
<label for="<%= TxtModalMantenimiento.ClientID.ToString()%>">Mantenimiento:</label>
|
|
<i></i>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtModalMantenimientoObservaciones" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="200"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RfvTxtModalMantenimientoObservaciones" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtModalMantenimientoObservaciones"
|
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Observaciones''</b> es necesario, por favor ingréselo." ValidationGroup="GrpMantenimiento">
|
|
</asp:RequiredFieldValidator>
|
|
<label for="<%= TxtModalMantenimientoObservaciones.ClientID.ToString()%>">Observaciones:</label>
|
|
<i></i>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
|
|
|
|
|
|
|
|
<label for="<%= TxtModalMantenimientoFecha.ClientID.ToString()%>">Fecha:</label>
|
|
<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="TxtModalMantenimientoFecha" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="LnkTxtModalMantenimientoFecha" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="METxtModalMantenimientoFecha" runat="server" TargetControlID="TxtModalMantenimientoFecha" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CETxtModalMantenimientoFecha" TargetControlID="TxtModalMantenimientoFecha" PopupButtonID="LnkTxtModalMantenimientoFecha" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
|
|
<asp:RequiredFieldValidator ID="RfvTxtModalMantenimientoFecha" runat="server" ControlToValidate="TxtModalMantenimientoFecha" 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="GrpMantenimiento"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVOTxtModalMantenimientoFecha" runat="server" ControlToValidate="TxtModalMantenimientoFecha" 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="GrpMantenimiento"></asp:CompareValidator>
|
|
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender30" runat="server" HighlightCssClass="vco" TargetControlID="RfvTxtModalMantenimientoFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender31" runat="server" HighlightCssClass="vco" TargetControlID="CVOTxtModalMantenimientoFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:TextBox ID="TxtArchivoMantenimiento" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
|
<br />
|
|
</div>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="modal-footer">
|
|
|
|
<asp:LinkButton ID="LnkModalAgregarMantenimiento" runat="server" CssClass="btn btn-primary" ValidationGroup="GrpMantenimiento" OnClick="LnkModalAgregarMantenimiento_Click">
|
|
<i class='material-icons'>done_all</i>Agregar</asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div id="DVModalPlagaEnfermedad" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpModalPlagaEnfermedad" 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="H6" runat="server">
|
|
<asp:Label runat="server" ID="LblModalTituloPlagaEnfermedad"></asp:Label></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtModalPlagaEnfermedadObservaciones" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="20"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RfvTxtModalPlagaEnfermedadObservaciones" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtModalPlagaEnfermedadObservaciones"
|
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Observaciones''</b> es necesario, por favor ingréselo." ValidationGroup="GrpPlagaEnfermedad">
|
|
</asp:RequiredFieldValidator>
|
|
<label for="<%= TxtModalPlagaEnfermedadObservaciones.ClientID.ToString()%>">Observaciones:</label>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
|
|
<label for="<%= TxtModalPlagaEnfermedadFecha.ClientID.ToString()%>">Fecha:</label>
|
|
<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="TxtModalPlagaEnfermedadFecha" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="LnkTxtModalPlagaEnfermedadFecha" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender10" runat="server" TargetControlID="TxtModalPlagaEnfermedadFecha" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender10" TargetControlID="TxtModalPlagaEnfermedadFecha" PopupButtonID="LnkTxtModalPlagaEnfermedadFecha" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
|
|
<asp:RequiredFieldValidator ID="RfvTxtModalPlagaEnfermedadFecha" runat="server" ControlToValidate="TxtModalPlagaEnfermedadFecha" 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="GrpPlagaEnfermedad"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVOTxtModalPlagaEnfermedadFecha" runat="server" ControlToValidate="TxtModalPlagaEnfermedadFecha" 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="GrpPlagaEnfermedad"></asp:CompareValidator>
|
|
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender34" runat="server" HighlightCssClass="vco" TargetControlID="RfvTxtModalPlagaEnfermedadFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender35" runat="server" HighlightCssClass="vco" TargetControlID="CVOTxtModalPlagaEnfermedadFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
<asp:LinkButton ID="LnkModalAgregarPlagaEnfermedad" runat="server" CssClass="btn btn-primary" ValidationGroup="GrpPlagaEnfermedad" OnClick="LnkModalAgregarPlagaEnfermedad_Click"> <i class='material-icons'>done_all</i>Agregar</asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/Metronic/assets/global/plugins/dropzone/dropzone.js"></script>
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="JS" runat="Server">
|
|
<%-- <link href="/Metronic/assets/global/plugins/dropzone/css/dropzone.css" rel="stylesheet"/>--%>
|
|
<!-- Second, add the Timer and Easing plugins -->
|
|
<script type="text/javascript" src="/Scripts/jquery.timers-1.2.js"></script>
|
|
<script type="text/javascript" src="/Scripts/jquery.easing.1.3.js"></script>
|
|
<script src="/Metronic/assets/global/plugins/jquery.pulsate.min.js"></script>
|
|
<script src="<%= String.Format("https://maps.googleapis.com/maps/api/js?key={0}&libraries=places", Extensiones.GOOGLE_MAPS_API_KEY) %>"></script>
|
|
<script src="/GPS/AF/JS/AF.js"></script>
|
|
<!-- Third, add the GalleryView Javascript and CSS files -->
|
|
<script type="text/javascript" src="/Scripts/jquery.galleryview-3.0-dev.js"></script>
|
|
<link type="text/css" rel="stylesheet" href="/css/jquery.galleryview-3.0-dev.css" />
|
|
<script src="/Metronic/assets/global/plugins/cubeportfolio/js/jquery.cubeportfolio.min.js" type="text/javascript"></script>
|
|
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
|
|
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
|
|
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
|
|
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
|
|
<script type="text/javascript">
|
|
function CargaArchivo(Tipo) {
|
|
if (Tipo == "Resguardo") {
|
|
$("#BtnCargarResguardo").click();
|
|
}
|
|
else if (Tipo == "Imagen") {
|
|
$("#BtnCargarArchivo").click();
|
|
}
|
|
}
|
|
function SetObjects() {
|
|
document.getElementById(TxtUpFormato).value = "[]";
|
|
|
|
}
|
|
function EliminarImagen(CveImagen, URL) {
|
|
alert("");
|
|
$("HdnCveImagen").value = CveImagen;
|
|
$("HdnURL").value = URL;
|
|
$("#BtnEliminarImagen").click();
|
|
}
|
|
</script>
|
|
<script type="text/javascript">
|
|
function RefrecarEvento() {
|
|
$("#BtnRefrescarEventos").click();
|
|
}
|
|
</script>
|
|
<script type="text/javascript">
|
|
|
|
function SetText(ObjFrom, ObjTo) {
|
|
ObjTo.innerText = ObjFrom.value;
|
|
}
|
|
|
|
function SetText2(ObjTo, Value) {
|
|
ObjTo.innerText = Value;
|
|
}
|
|
|
|
function getSelectedText(Obj, IfIsNull) {
|
|
if (Obj.selectedIndex == -1)
|
|
return IfIsNull;
|
|
else
|
|
return Obj.options[Obj.selectedIndex].text;
|
|
}
|
|
|
|
function pageLoad() {
|
|
var isAsyncPostback = Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack();
|
|
if (isAsyncPostback) {
|
|
tb_init('a.thickbox');
|
|
}
|
|
$(document).ready(function () {
|
|
if ($('#DivAFInvAdvertencia')) {
|
|
$("#DivAFInvAdvertencia").pulsate("destroy");
|
|
jQuery('#DivAFInvAdvertencia').pulsate({
|
|
color: "#faebcc"
|
|
});
|
|
}
|
|
});
|
|
}
|
|
|
|
function UPIMgAF(txtid) {
|
|
var domain = window.location.href.replace(window.location.pathname + window.location.search, "");
|
|
this.txt = $('#' + txtid); if (txt.val() == '') { txt.val('[]'); }
|
|
var urlup = txt.data('urlup'); if (urlup) { } else { urlup = domain + "/Ashx/SIGWeb.ashx?Metodo=UPIMgAF"; }
|
|
var urldown = txt.data('urldown'); if (urldown) { } else { urldown = domain + "/Ashx/SIGWeb.ashx"; }
|
|
var urlget = txt.data('urlget'); if (urlget) { } else { urlget = domain + "/temp/"; }
|
|
var maxFilesize = txt.data('maxFilesize'); if (maxFilesize) { } else { maxFilesize = 10; }
|
|
var maxFile = txt.attr('data-maxFile'); if (maxFile) { } else { maxFile = null; }
|
|
var mydiv = $("<div id='" + txtid + "-drop' class='addropzone'></div>");
|
|
var mypaste = $("<div id='" + txtid + "-paste' contenteditable='true' class='mypaste'></div>")
|
|
var apppendin = txt.data('append'); if (apppendin) { $('#' + apppendin).html(mydiv); } else { txt.after(mydiv); }
|
|
mydiv.append(mypaste);
|
|
mydiv.dropzone({
|
|
url: urlup,
|
|
maxFilesize: maxFilesize,
|
|
maxFiles: maxFile,
|
|
uploadMultiple: false,//envia de uno en uno
|
|
init: function () {
|
|
var TxtField = txt;
|
|
var urlDown = urldown;
|
|
|
|
this.on("addedfile", function (file) {
|
|
// Create the remove button
|
|
var removeButton = Dropzone.createElement("<button class='btn btn-sm btn-block'>Quitar archivo</button>");
|
|
// Capture the Dropzone instance as closure.
|
|
|
|
var _this = this;
|
|
_this.urldown = urlDown;
|
|
// Listen to the click event
|
|
removeButton.addEventListener("click", function (e) {
|
|
|
|
// Make sure the button click doesn't submit the form:
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
$.ajax({
|
|
url: _this.urldown,
|
|
type: "POST",
|
|
data: { "Metodo": "Downfile", "nombre": file.obj.filename },
|
|
success: function (data) {
|
|
}
|
|
});
|
|
var objfiles = JSON.parse(TxtField.val());
|
|
for (var i = objfiles.length; i--;) {
|
|
if (objfiles[i].filename == file.obj.filename) objfiles.splice(i, 1);
|
|
}
|
|
TxtField.val(JSON.stringify(objfiles));
|
|
_this.removeFile(file);
|
|
|
|
});
|
|
var titulo = Dropzone.createElement("<div>" + file.name + "</div>");
|
|
// Add the button to the file preview element.
|
|
file.previewElement.appendChild(titulo);
|
|
file.previewElement.appendChild(removeButton);
|
|
});
|
|
this.on("removedfile", function (file) {
|
|
|
|
});
|
|
__This = this;
|
|
document.getElementById(txtid + '-paste').onpaste = function (event) {
|
|
var objfiles = JSON.parse(TxtField.val());
|
|
if (objfiles.length < maxFile) {
|
|
// use event.originalEvent.clipboard for newer chrome versions
|
|
var items = (event.clipboardData || event.originalEvent.clipboardData).items;
|
|
//console.log(JSON.stringify(items)); // will give you the mime types
|
|
// find pasted image among pasted items
|
|
var blob = null;
|
|
for (var i = 0; i < items.length; i++) {
|
|
if (items[i].type.indexOf("image") === 0) {
|
|
blob = items[i].getAsFile();
|
|
}
|
|
}
|
|
// load image if there is a pasted image
|
|
if (blob !== null) {
|
|
|
|
|
|
var reader = new FileReader();
|
|
reader.onload = function (event) {
|
|
$.ajax({
|
|
url: urlup,
|
|
type: "POST",
|
|
data: { "File": event.target.result, "Cve": "ie" },
|
|
success: function (data) {
|
|
var objfiles = JSON.parse(TxtField.val());
|
|
var fileobj = { filename: data + '-ie.png' };
|
|
objfiles.push(fileobj);
|
|
TxtField.val(JSON.stringify(objfiles));
|
|
|
|
var mockFile = { obj: fileobj, name: 'ie.png', size: 0, type: 'image/jpeg', status: Dropzone.ADDED, serverID: 0, accepted: true };
|
|
__This.emit("addedfile", mockFile);
|
|
// __This.emit("thumbnail", mockFile, urlget + data + '-ie.png');
|
|
__This.emit("thumbnail", mockFile, event.target.result);
|
|
__This.files.push(mockFile);
|
|
}
|
|
});
|
|
};
|
|
reader.readAsDataURL(blob);
|
|
}
|
|
} else {
|
|
bootbox.dialog({ message: 'Hay un limite de archivos de ' + maxFile, className: 'header-yellow', title: 'Limite de Archivos excedido', buttons: { main: { label: 'Aceptar', className: 'default', callback: function () { } } } });
|
|
this.html(' ')
|
|
}
|
|
};
|
|
var objfiles = JSON.parse(TxtField.val());
|
|
for (var i = objfiles.length; i--;) {
|
|
objfiles[i].url = urlget + objfiles[i].filename;
|
|
var objname = objfiles[i].filename.split('-', 2)[1];
|
|
var objtype = objname.split('.');
|
|
var objtype = objtype[objtype.length - 1];
|
|
if (objtype == 'jpg' || objtype == 'png') { objtype = 'image/jpeg' }
|
|
var mockFile = { obj: objfiles[i], name: objname, size: 0, type: objtype, status: Dropzone.ADDED, serverID: 0, accepted: true };
|
|
this.emit("addedfile", mockFile);
|
|
if (objtype == 'image/jpeg') { this.emit("thumbnail", mockFile, objfiles[i].url); }
|
|
this.files.push(mockFile);
|
|
}
|
|
this.on("success", function (file, Response) {
|
|
var objfiles = JSON.parse(TxtField.val());
|
|
file.obj = { filename: Response + "-" + file.name };
|
|
objfiles.push(file.obj);
|
|
TxtField.val(JSON.stringify(objfiles));
|
|
});
|
|
this.on("maxfilesexceeded", function (file, Response) {
|
|
this.removeFile(file);
|
|
bootbox.dialog({ message: 'Hay un limite de archivos de ' + maxFile, className: 'header-yellow', title: 'Limite de Archivos excedido', buttons: { main: { label: 'Aceptar', className: 'default', callback: function () { } } } });
|
|
|
|
});
|
|
}
|
|
});
|
|
}
|
|
|
|
function clickgaleria() {
|
|
$("#C_Tab_TabGaleria").css({ "display": "block", "visibility": "auto" });
|
|
initcarusel();
|
|
initcarusel2 = function () { };
|
|
}
|
|
var initcarusel = function () {
|
|
'use strict';
|
|
if ($('#js-grid-juicy-projects').data('hascube') != '1') {
|
|
$('#js-grid-juicy-projects').cubeportfolio({
|
|
filters: '#js-filters-juicy-projects',
|
|
loadMore: '#js-loadMore-juicy-projects',
|
|
loadMoreAction: 'click',
|
|
layoutMode: 'grid',
|
|
defaultFilter: '*',
|
|
animationType: 'quicksand',
|
|
gapHorizontal: 35,
|
|
gapVertical: 30,
|
|
gridAdjustment: 'responsive',
|
|
mediaQueries: [{
|
|
width: 1500,
|
|
cols: 5
|
|
}, {
|
|
width: 1100,
|
|
cols: 4
|
|
}, {
|
|
width: 800,
|
|
cols: 3
|
|
}, {
|
|
width: 480,
|
|
cols: 2
|
|
}, {
|
|
width: 320,
|
|
cols: 1
|
|
}],
|
|
caption: 'overlayBottomReveal',
|
|
displayType: 'sequentially',
|
|
displayTypeSpeed: 80,
|
|
|
|
// lightbox
|
|
lightboxDelegate: '.cbp-lightbox',
|
|
lightboxGallery: true,
|
|
lightboxTitleSrc: 'data-title',
|
|
lightboxCounter: '<div class="cbp-popup-lightbox-counter">{{current}} of {{total}}</div>',
|
|
|
|
// singlePage popup
|
|
singlePageDelegate: '.cbp-singlePage',
|
|
singlePageDeeplinking: true,
|
|
singlePageStickyNavigation: true,
|
|
singlePageCounter: '<div class="cbp-popup-singlePage-counter">{{current}} of {{total}}</div>',
|
|
singlePageCallback: function (url, element) {
|
|
// to update singlePage content use the following method: this.updateSinglePage(yourContent)
|
|
var t = this;
|
|
|
|
$.ajax({
|
|
url: url,
|
|
type: 'GET',
|
|
dataType: 'html',
|
|
timeout: 10000
|
|
})
|
|
.done(function (result) {
|
|
t.updateSinglePage(result);
|
|
})
|
|
.fail(function () {
|
|
t.updateSinglePage('AJAX Error! Please refresh the page!');
|
|
});
|
|
},
|
|
});
|
|
$('#js-grid-juicy-projects').data('hascube', '1')
|
|
}
|
|
}
|
|
var initcarusel2 = initcarusel;
|
|
function playsonidito(NomArchivo) {
|
|
var URL = /Sonidos/ + NomArchivo
|
|
var snd = new Audio(URL);
|
|
snd.play();
|
|
snd.currentTime = 0;
|
|
}
|
|
|
|
</script>
|
|
<script type="text/javascript">
|
|
function stringtodate(dateString) {
|
|
return dateString;
|
|
}
|
|
function CargaGraficaCombustible() {
|
|
var data = [];
|
|
var Gcolor = $('#ChkEncendido').is(':checked') ? "lineColor" : null;
|
|
eval($("#HdfVGrafica").val());
|
|
var chart = AmCharts.makeChart("chartdiv", {
|
|
"type": "serial",
|
|
"theme": "light",
|
|
"marginRight": 40,
|
|
"marginLeft": 40,
|
|
"autoMarginOffset": 20,
|
|
"dataDateFormat": "YYYY-MM-DD HH:NN:SS",
|
|
"valueAxes": [{
|
|
"id": "v1",
|
|
"axisAlpha": 0,
|
|
"position": "left",
|
|
"ignoreAxisWidth": true
|
|
}],
|
|
"balloon": {
|
|
"borderThickness": 1,
|
|
"shadowAlpha": 0
|
|
},
|
|
"graphs": [{
|
|
"id": "g1",
|
|
"balloon": {
|
|
"drop": true,
|
|
"adjustBorderColor": false,
|
|
"color": "#ffffff",
|
|
"type": "smoothedLine"
|
|
},
|
|
"fillAlphas": 0.2,
|
|
"bullet": "round",
|
|
"bulletBorderAlpha": 1,
|
|
"bulletColor": "#FFFFFF",
|
|
"bulletSize": 5,
|
|
"hideBulletsCount": 50,
|
|
"lineThickness": 2,
|
|
"title": "red line",
|
|
//"useLineColorForBulletBorder": true,
|
|
"valueField": "value",
|
|
"lineColorField": Gcolor,
|
|
"fillColorsField": Gcolor,
|
|
"balloonText": "<span style='font-size:18px;'>[[value]]</span>"
|
|
}],
|
|
"chartScrollbar": {},
|
|
"chartCursor": {
|
|
"valueLineEnabled": true,
|
|
"valueLineBalloonEnabled": true,
|
|
"cursorAlpha": 0,
|
|
"zoomable": false,
|
|
"valueZoomable": true,
|
|
"valueLineAlpha": 0.5
|
|
},
|
|
"categoryField": "date",
|
|
"categoryAxis": {
|
|
|
|
"parseDates": false,
|
|
"dashLength": 1,
|
|
"minorGridEnabled": true,
|
|
},
|
|
"export": {
|
|
"enabled": true,
|
|
"menu": []
|
|
},
|
|
"dataProvider": data
|
|
});
|
|
}
|
|
function loadchecked() {
|
|
$(".ChkSinFuncion").change(function () {
|
|
Metronic.blockUI({ animate: true });
|
|
setTimeout(function () {
|
|
try {
|
|
CargaGraficaCombustible();
|
|
} catch (e) {
|
|
|
|
}
|
|
Metronic.unblockUI();
|
|
}, 1);
|
|
});
|
|
$(".ChkSinFuncion").removeClass('ChkSinFuncion')
|
|
}
|
|
Sys.Application.add_load(function (s, e) {
|
|
loadchecked()
|
|
})
|
|
function consultaHistorico() {
|
|
eval(HdnHistorico.value);
|
|
}
|
|
function creaPolygonosGeocercas() {
|
|
var data = JSON.parse(HdnGeocercas.value);
|
|
|
|
for (var i = 0; i < data.Geocercas.length; i++) {
|
|
creaPoligono(data.Geocercas[i].Coordenadas, data.Geocercas[i].Color);
|
|
}
|
|
for (var i = 0; i < data.Puntos.length; i++) {
|
|
CreaMarcadorGeo(data.Puntos[i].Coords, data.Puntos[i].Vehiculo, data.Puntos[i].Info, data.Puntos[i].Icono);
|
|
}
|
|
}
|
|
var PoscionesContinuas = [];
|
|
function IniciarRastreoContinuo() {
|
|
var request = {
|
|
Metodo: "RastreoContinuoAF",
|
|
Params: {
|
|
Posiciones: PoscionesContinuas,
|
|
CveDispositivo: <%= DdlDispositivo.SelectedValue %>,
|
|
CveCliente: <%= Me.CveClienteGPS %>,
|
|
FechaCliente: '<%= String.Format("{0:dd/MM/yyyy HH:mm:ss}", FechaClienteGPS) %>'
|
|
}
|
|
};
|
|
startTimer(request);
|
|
}
|
|
var index = 0;
|
|
function startTimer(request) {
|
|
index++;
|
|
var json = JSON.stringify(request);
|
|
$.ajax({
|
|
data: json,
|
|
url: '/Ashx/SIGGPS.ashx',
|
|
type: 'post',
|
|
beforeSend: function () {
|
|
console.log("procesando.....");
|
|
},
|
|
success: function (response) {
|
|
var datos = JSON.parse(response);
|
|
PoscionesContinuas.push(datos.CoordActual);
|
|
eval(datos.JS);
|
|
}
|
|
});
|
|
|
|
setTimeout(function () { startTimer(request); }, 30000); // callback
|
|
}
|
|
</script>
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="Css" runat="Server">
|
|
<link href="/Metronic/assets/global/plugins/cubeportfolio/css/cubeportfolio.css" rel="stylesheet" type="text/css" />
|
|
<link href="/Metronic/assets/admin/pages/css/portfolio.min.css" rel="stylesheet" type="text/css" />
|
|
<link href="../GPS/AF/CSS/AF.css" rel="stylesheet" type="text/css" />
|
|
<style>
|
|
.cbp img {
|
|
background-color: #FFF;
|
|
}
|
|
|
|
.cbp-popup-lightbox-figure {
|
|
background-color: #FFF;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
|
|
|
|
|