688 lines
49 KiB
Plaintext
688 lines
49 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="EventoDetalle.aspx.vb" Inherits="OI_EventoDetalle" %>
|
|
|
|
<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="cc1" %>
|
|
<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
<asp:Label ID="LblTitulo" runat="server" Text=""></asp:Label>
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
<asp:HiddenField ID="HdnTipo" runat="server" ClientIDMode="Static" />
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<div class="portlet light smmallpadding bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Tarea</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row" runat="server" id="RowFolio" visible="false">
|
|
<label class="col-sm-2"># Folio/tarea:</label>
|
|
<div class="col-sm-5 row ">
|
|
<asp:Label runat="server" ID="lblFolio" Font-Bold="true"></asp:Label>
|
|
|
|
</div>
|
|
<div class="col-sm-5 row " style="text-align:left!important">
|
|
<asp:LinkButton ID="LnkLigaCve" CssClass="Texto" runat="server" ></asp:LinkButton>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="row" id="TrAsunto" visible="false" runat="server">
|
|
<label class="col-sm-2">Asunto:</label>
|
|
<div class="col-sm-10">
|
|
<asp:TextBox ID="TxtAsunto" runat="server" CssClass="form-control input-sm" MaxLength="100" ValidationGroup="Guarda"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVAsunto" runat="server" ControlToValidate="TxtAsunto" Display="None" ErrorMessage="El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOAsunto" runat="server" TargetControlID="RFVAsunto" HighlightCssClass="vco" Width="250px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="TrAgendaTipo" visible="false" runat="server">
|
|
<label class="col-sm-2">Tipo Asunto:</label>
|
|
<div class="col-sm-10">
|
|
<asp:DropDownList ID="DdlAgendaTipo" runat="server" Class="form-control input-sm input-small" DataValueField="CveAgendaTipo" DataTextField="AgendaTipo">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="TrDescripcion" visible="false" runat="server">
|
|
<label class="col-sm-2">Descripción:</label>
|
|
<div class="col-sm-10">
|
|
<asp:TextBox ID="TxtDescripcion" runat="server" CssClass="form-control input-sm" MaxLength="500" TextMode="MultiLine" Height="50px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="rfvDescripcion" runat="server" ControlToValidate="txtDescripcion" Display="None" ErrorMessage="El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="vcoDescripcion" runat="server" TargetControlID="rfvDescripcion" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="TrPrioridad" visible="false" runat="server">
|
|
<label class="col-sm-2">Prioridad:</label>
|
|
<div class="col-sm-10">
|
|
<asp:DropDownList ID="DdlPrioridad" runat="server" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 136px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Baja" Value="1" style="color: #00CC00;"></asp:ListItem>
|
|
<asp:ListItem Text="Media" Value="2" style="color: #000000;"></asp:ListItem>
|
|
<asp:ListItem Text="Alta" Value="3" style="color: #FF0000;"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOPrio" runat="server" TargetControlID="RFVPrioridad" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="TrRevision" visible="false" runat="server">
|
|
<label class="col-sm-2">Revisión:</label>
|
|
<div class="col-sm-10">
|
|
<asp:UpdatePanel runat="server" ID="UpRevision" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:DropDownList ID="DdlRevision" runat="server" Class="table-group-action-input form-control input-inline input-small input-sm" DataValueField="CveRevision" DataTextField="Revision">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<%--<asp:Image ID="ImgAddRevision" ToolTip="Agregar Revision" OnClientClick="$get('DivRevision').style.display='';" ImageUrl="/Imagenes/Btn_Add.png" runat="server" />--%>
|
|
<img id="ImgAddRevision" runat="server" alt="Agregar Revision" style="cursor: pointer;" src="/Imagenes/Btn_Add.png" onclick="$get('DivRevision').style.display='';" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-sm-2">Orden:</label>
|
|
<div class="col-sm-10">
|
|
<asp:UpdatePanel runat="server" ID="UpOrden" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:TextBox ID="TxtOrden" CssClass="form-control input-sm input-small" runat="server" />
|
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtOrden" FilterType="Custom, Numbers" ValidChars="." />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="TrFechaInicio" visible="false" runat="server">
|
|
<label class="col-sm-2 truncate">Fecha Inicio:</label>
|
|
<div class="col-sm-3">
|
|
<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="TxtFechaInicio" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></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>
|
|
<ajax:MaskedEditExtender ID="MEEFechaInicio" runat="server" TargetControlID="TxtFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="TxtFechaInicio" PopupButtonID="ImgCalendario" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="El campo <b>''Fecha Inicio''</b> es requerido por la aplicación, por favor ingrese una Fecha Inicio." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="El campo <b>''FechaInicio''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFfvFI" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaInicio" Width="250px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCOCVFI" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaInicio" Width="250px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<label class="col-sm-1">Hora:</label>
|
|
<div class="col-sm-3">
|
|
<cc1:TimeSelector ID="TxtHoraInicio" runat="server" DisplaySeconds="false" DisplayButtons="false">
|
|
</cc1:TimeSelector>
|
|
<asp:CustomValidator ID="CVHoraInicio" runat="server" ClientValidationFunction="RevisaHora" ControlToValidate="TxtHoraInicio" Display="None" ErrorMessage="El campo <b>''Hora''</b> es necesario, por favor seleccione la hora correcta." ValidationGroup="Guardar" ValidateEmptyText="true"></asp:CustomValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VcoHoraInicio" runat="server" HighlightCssClass="vco" TargetControlID="CVHoraInicio" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="TrFechaFin" visible="false" runat="server">
|
|
<label class="col-sm-2 truncate">Fecha Fin:</label>
|
|
<div class="col-sm-3">
|
|
<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="TxtFechaFin" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgCalFechaFin" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MEEFechaFin" runat="server" TargetControlID="TxtFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CEFechaFin" TargetControlID="TxtFechaFin" PopupButtonID="ImgCalFechaFin" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="El campo <b>''Fecha Fin''</b> es requerido por la aplicación, por favor ingrese una Fecha Fin." ValidationGroup="Guarda"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="El campo <b>''Fecha Fin''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFechaFin1" runat="server" HighlightCssClass="VCO" TargetControlID="RFVFechaFin" Width="250px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFechaFin2" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaFin" Width="250px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<label class="col-sm-1">Hora:</label>
|
|
<div class="col-sm-3">
|
|
<cc1:TimeSelector ID="TxtHoraFin" runat="server" DisplaySeconds="false" DisplayButtons="false">
|
|
</cc1:TimeSelector>
|
|
<asp:CustomValidator ID="CVHoraFin" runat="server" ClientValidationFunction="RevisaHora" ControlToValidate="TxtHoraFin" Display="None" ErrorMessage="El campo <b>''Hora''</b> es necesario, por favor seleccione la hora correcta." ValidationGroup="Guardar" ValidateEmptyText="true"></asp:CustomValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VcoHoraFin" runat="server" HighlightCssClass="vco" TargetControlID="CVHoraFin" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div></div>
|
|
<div id="TrFechaRealTermino" visible="false" runat="server" class="row">
|
|
<label class="col-sm-2 truncate">Fecha Real de Término: </label>
|
|
<div class="col-sm-10">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFechaRealTermino" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgCalFechaRealTermino" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MEEFechaRealTermino" runat="server" TargetControlID="TxtFechaRealTermino" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CEFechaRealTermino" TargetControlID="TxtFechaRealTermino" PopupButtonID="ImgCalFechaRealTermino" Format="dd/MM/yyyy" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:CompareValidator ID="CVFechaRealTermino" runat="server" ControlToValidate="TxtFechaRealTermino" Display="None" ErrorMessage="El campo <b>''Fecha Real de Término''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Guarda"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFechaRealTermino2" runat="server" HighlightCssClass="VCO" TargetControlID="CVFechaRealTermino" Width="250px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="TrTipoReferencia" visible="false" runat="server">
|
|
<label class="col-sm-2 truncate">Tipo de Referencia: </label>
|
|
<div class="col-sm-10">
|
|
<asp:TextBox ID="TxtTipoReferencia" runat="server" MaxLength="5" ValidationGroup="Guarda" CssClass="form-control input-sm input-small"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row" id="TrReferencia" visible="false" runat="server">
|
|
<label class="col-sm-2 truncate">Referencia: </label>
|
|
<div class="col-sm-10">
|
|
<asp:TextBox ID="TxtReferencia" runat="server" MaxLength="50" ValidationGroup="Guarda" CssClass="form-control input-sm"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="TrReferenciaLiga" visible="false" runat="server">
|
|
<div class="col-sm-10 col-sm-offset-2">
|
|
<asp:HyperLink ID="HplReferencia" runat="server"></asp:HyperLink></div>
|
|
</div>
|
|
<div class="row" id="TrArchivo" visible="false" runat="server">
|
|
<label class="col-sm-2 truncate">Archivo </label>
|
|
<div class="col-sm-10">
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td>
|
|
<asp:UpdatePanel ID="UPAFUL" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<asp:TextBox ID="TxtArchivo" ClientIDMode="Static" runat="server" Width="200px"></asp:TextBox>
|
|
|
|
<%-- <asp:HyperLink ID="ImgAddObs" Visible="true" class="Texto" data-toggle="modal" data-target="#ModalUpload" runat="server" Text=" <span style='font-weight: 700 !important;'>Archivo</span>" Style="cursor: pointer;" ToolTip="Observaciones"></asp:HyperLink>--%>
|
|
|
|
|
|
<a class="Texto" runat="server" clientidmode="Static" id="A1" data-toggle="modal" data-target="#ModalUpload" visible="true" >
|
|
<img id="ImgArchivo" runat="server" alt="Archivo" src="/Imagenes/attachment_icon.gif" style="width: 16px; height: 16px; border: 0px none white" />
|
|
</a>
|
|
|
|
<a class="Texto" runat="server" clientidmode="Static" id="A2" target="_blank" visible="false">
|
|
<img id="Img1" alt="Archivo" src="/Imagenes/descargar.png" style="width: 16px; height: 16px; border: 0px none white" />
|
|
</a>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<ul id="myGallery" runat="server" clientidmode="Static">
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="col-md-4" id="TdUsuarios" runat="server" visible="false">
|
|
<div id="TrEstatus" runat="server" visible="true">
|
|
<asp:UpdatePanel ID="uppEstatus" runat="server" UpdateMode="Conditional" class="portlet light smmallpadding bordered">
|
|
<ContentTemplate>
|
|
<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="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row">
|
|
<div class="col-sm-8" style="text-align: center; vertical-align: central;">
|
|
<asp:DropDownList ID="DdlEventoEstatus" Visible="true" runat="server" DataValueField="CveEventoEstatus" CssClass="form-control input-sm" Style="width: 100px !important;" DataTextField="EventoEstatus">
|
|
</asp:DropDownList>
|
|
<asp:LinkButton ID="lbCambiaEstatus" runat="server" Text="Cambia Estatus"></asp:LinkButton>
|
|
<asp:Label ID="LblEstatusEvento" Visible="false" Font-Bold="true" runat="server" Text=""></asp:Label>
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<asp:ImageButton OnClick="LinkReenviar_Click" ImageUrl="/Imagenes/ReEnviar.PNG" Style="margin-left: 20px;" runat="server" ToolTip="Reenviar Tarea" Visible="false" ID="LinkReenviar" Width="30" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel runat="server" class="portlet box grey-cascade">
|
|
<ContentTemplate>
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-user-plus"></i>Usuario(s)
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body" style="padding: 0px;">
|
|
<div id="divSeleccionUsuarios" runat="server">
|
|
<div class="text-right">
|
|
<asp:TextBox runat="server" ID="filtroGVtext" onkeyup="FiltrarGV();" ClientIDMode="Static" Style="height: 25px; margin-top: 5px; margin-bottom: 5px;"></asp:TextBox>
|
|
<a href="javascript:;" onclick="FiltrarGV();return false;" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
<%--<asp:Button ID="btnfiltro" Text="Buscar" runat="server" CssClass="btn btn-sm green" Style="margin-bottom: 2px; height:22px;" OnClientClick="FiltrarGV();return false;"></asp:Button>--%>
|
|
|
|
</div>
|
|
<table class="table table-striped table-hover Widthall ">
|
|
<thead>
|
|
<tr>
|
|
<th align="center" class="Titulos" width="50px">Para</th>
|
|
<th align="center" class="Titulos" width="50px">
|
|
<div class="Widthall truncate">C. C. Para</div>
|
|
</th>
|
|
<th class="Titulos">Usuario</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
<div id="DivUsr" runat="server" style="height: 200px; overflow-y: scroll;">
|
|
|
|
<asp:GridView ID="GVUsuarios" runat="server" AutoGenerateColumns="false" ShowHeader="false" Width="100%" DataKeyNames="CveUsuario,Nombre,Correo,Empresa" CssClass="table table-striped table-advance table-hover Widthall" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="ChkPara" runat="server" Width="50px" />
|
|
<ajax:MutuallyExclusiveCheckBoxExtender ID="MECBE" runat="server" TargetControlID="ChkPara" Key="Para"></ajax:MutuallyExclusiveCheckBoxExtender>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="ChkCCP" Checked="false" runat="server" Width="50px" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlRol" runat="server" Text='<%# Eval("Rol") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<div id="divUsuarios" runat="server" visible="false" class="portlet box grey-cascade">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-user-plus"></i>Usuarios
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
<div class="actions">
|
|
<asp:UpdatePanel runat="server" class="btn-group">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnEditarUsuarios" CssClass="btn btn-default" Text="Editar" runat="server" OnClick="BtnEditarUsuarios_Click" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body" style="padding: 0px;">
|
|
<table border="0" style="width: 100%; border-collapse: collapse;">
|
|
<tr>
|
|
<td style="font-weight: bold; height: 20px; background-color: gray; color: white; width: 60px">De:</td>
|
|
<td style="background-color: silver; color: white;">
|
|
<asp:Label runat="server" Font-Bold="true" ID="lblUsuarioDe"></asp:Label></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-weight: bold; height: 20px; background-color: gray; color: white; width: 60px">Para:</td>
|
|
<td style="background-color: silver; color: white;">
|
|
<asp:Label runat="server" Font-Bold="true" ID="lblUsuarioPara"></asp:Label></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-top: 10px; vertical-align: top; font-weight: bold; height: 20px; background-color: gray; color: white; width: 60px">CCP:</td>
|
|
<td>
|
|
<asp:GridView ID="gvUsuariosVista" runat="server" ShowHeader="false" AutoGenerateColumns="false" Width="100%" DataKeyNames="CveUsuario,Nombre,Correo" CssClass="table table-striped table-advance table-hover" Style="text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemStyle Height="20px" HorizontalAlign="Left" />
|
|
<HeaderStyle HorizontalAlign="Left" BackColor="Silver" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlNombre" runat="server" Text='<%# Eval("Nombre") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<asp:UpdatePanel ID="upGuardar" style="text-align: center;" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Button ID="btnGuardar" runat="server" Text="Guardar" ValidationGroup="Guarda" class="btn btn-primary" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<asp:UpdatePanel runat="server" ID="UPPObs" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Panel ID="PnlEncObs" runat="server" Visible="false">
|
|
<div id="divObs" tabindex="-1" role="dialog" style="width: 980px; background-color: White; border: solid 1px black; color: Black; display: inline;">
|
|
<table border="1" style="border-collapse: collapse;" width="980px" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td>
|
|
<table border="1" style="border-collapse: collapse;" width="980px" cellpadding="0" cellspacing="0">
|
|
<tr class="Titulos">
|
|
<td style="width: 92px">Fecha:</td>
|
|
<td style="width: 202px">Usuario:</td>
|
|
<td>Observaciones:</td>
|
|
<td style="width: 32px">Arch.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center">
|
|
<asp:Label ID="lblFechaObs" runat="server"></asp:Label>
|
|
</td>
|
|
<td align="center">
|
|
<asp:Label ID="lblUsuarioObs" runat="server"></asp:Label>
|
|
</td>
|
|
<td> <asp:TextBox ID="TxtOBs" ClientIDMode="Static" runat="server" TextMode="MultiLine" Rows="2" Width="638px" MaxLength="1000"></asp:TextBox>
|
|
<%-- <asp:RequiredFieldValidator ID="RFVObs" runat="server" Display="None" ControlToValidate="TxtOBs" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Observaciones''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardaBit"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEOBs" runat="server" HighlightCssClass="vco" TargetControlID="RFVObs" Width="300px" />--%>
|
|
</td>
|
|
<td align="center">
|
|
<asp:UpdatePanel ID="UpImgBit" runat="server" UpdateMode="Conditional" ><ContentTemplate>
|
|
|
|
<a class="Texto" runat="server" clientidmode="Static" id="SubirArchivo" data-toggle="modal" data-target="#ModalUploadBit" >
|
|
|
|
|
|
<img id="ImgArchivoObs" runat="server" alt="Archivo" src="/Imagenes/attachment_icon.gif" style="width: 16px; height: 16px; border: 0px none white" /></a>
|
|
|
|
</ContentTemplate></asp:UpdatePanel>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td id="trBtnAddObs" style="display: none; text-align: center; width: 980px;">
|
|
<table width="100%">
|
|
<tr>
|
|
<td align="right" style="width: 40%">
|
|
<asp:CheckBox ID="ChkRegresaraEstatusAnterior" ClientIDMode="Static" runat="server" Text="Regresar a Pendiente" /></td>
|
|
<td align="left" style="width: 40%">
|
|
<asp:CheckBox ID="ChkPasarEstatusSiguiente" ClientIDMode="Static" runat="server" Text="Pasar a Revisado" /></td>
|
|
<td align="left" style="width: 20%">
|
|
<asp:CheckBox ID="ChkPasarEstatusCancelado" ClientIDMode="Static" runat="server" Text="CANCELAR" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3" align="center">
|
|
<asp:Button ID="BtnAddObs" runat="server" Text="Aceptar" ClientIDMode="Static" ValidationGroup="GrpGuardaBit" class="btn btn-primary" />
|
|
<caption>
|
|
<input id="BtnCancelObs" style="display: none;" type="button" value="Cancelar" onclick="$get('divObs').style.display = 'none';" class="btn btn-danger" />
|
|
</caption>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel ID="UPPDatosObs" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvObservaciones" runat="server" AutoGenerateColumns="False" Width="980px" ShowHeader="false" CssClass="table table-striped table-advance table-hover" Style="text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:BoundField DataField="FechaIng" DataFormatString="{0:d}" HeaderText="Fecha">
|
|
<ItemStyle Width="90px" HorizontalAlign="Center" />
|
|
</asp:BoundField>
|
|
<asp:BoundField DataField="NombreUsuario" DataFormatString=" {0}" HeaderText="Usuario">
|
|
<ItemStyle Width="200px" />
|
|
</asp:BoundField>
|
|
<asp:BoundField DataField="EventoComentario" DataFormatString=" {0}" HeaderText="Observación"></asp:BoundField>
|
|
<asp:TemplateField HeaderText="">
|
|
<ItemTemplate>
|
|
<asp:HyperLink Target="_blank" ID="HplA" runat="server" Visible='<%# Eval("Archivo").ToString <> "" %>'><img src="/Imagenes/descargar.png" alt="Descargar" style="height:18px;border:0;"/></asp:HyperLink>
|
|
<asp:ImageButton ID="ImBtnPub" ToolTip="Publicar Documento" Visible="False" ImageUrl="/Imagenes/PublicarDoc.jpg" Height="18px" runat="server" />
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Center" Width="30px" />
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<div id="DivRevision" runat="server" clientidmode="Static" width="500px" style="z-index: 999; border: solid 1px black; background-color: white; color: Black; display: none; position: fixed; top: 180px; left: 35%;">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
|
<tr class="Titulos">
|
|
<td width="450px" align="center">Registrar Revisión</td>
|
|
<td style="padding-right: 0px;" valign="top">
|
|
<img alt="" src="/imagenes/cerrarX.jpg" style="cursor: pointer;" onclick="$get('DivRevision').style.display='none';" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table width="100%" border="0">
|
|
<tr>
|
|
<td>Descripción</td>
|
|
<td>
|
|
<asp:TextBox ID="TxtDescripcionRevision" Text="" Width="450px" Rows="4" TextMode="MultiLine" ClientIDMode="Static" ValidationGroup="GrpGuardar" runat="server" />
|
|
<asp:RequiredFieldValidator ID="RFVDescripcionRevision" runat="server" ControlToValidate="TxtDescripcionRevision" InitialValue="" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEDescripcionRevision" runat="server" HighlightCssClass="vco" TargetControlID="RFVDescripcionRevision" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" colspan="2">
|
|
<asp:Button ID="BtnAgregarRevision" runat="server" Text="Agregar" ValidationGroup="GrpGuardar" Width="100px" OnClick="BtnAgregarRevision_Click" class="btn btn-primary" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
<div id="ModalUpload" 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">Subir Archivo</h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UPAddEventoBitacora" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
<%--<div>
|
|
|
|
</div>--%>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnGuardarArchivo" runat="server" ClientIDMode="Static" Text="Guardar" CssClass="btn btn-primary" />
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="ModalUploadBit" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
|
|
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Subir Archivo</h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:TextBox ID="txtFileBit" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
<%--<div>
|
|
|
|
</div>--%>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="btnFileBit" 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>
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script language="javascript" type="text/javascript">
|
|
var idConFocus = "-1";
|
|
|
|
function ConvierteCapital() {
|
|
__doPostBack('lnkNull', '');
|
|
}
|
|
|
|
function RevisaTextArea() {
|
|
var Texto = document.getElementById('TxtAsunto');
|
|
if (Texto)
|
|
if (Texto.value.length > 1000)
|
|
Texto.value = Texto.value.substring(0, 999);
|
|
}
|
|
|
|
function MostrarOpcionesObs() {
|
|
// $get('divObs').focus();
|
|
$get('TxtOBs').rows = "5";
|
|
$get('trBtnAddObs').style.display = 'inline';
|
|
$get('trBtnAddObs').style.width = "980px";
|
|
}
|
|
|
|
|
|
document.onclick = function (e) {
|
|
e = e || event
|
|
var target = e.target || e.srcElement
|
|
var elemento = document.getElementById('divObs');
|
|
var elemento2 = document.getElementById('TxtOBs');
|
|
|
|
do {
|
|
if (elemento == target || elemento2 == target) {
|
|
MostrarOpcionesObs();
|
|
return;
|
|
}
|
|
target = target.parentNode;
|
|
} while (target)
|
|
|
|
OcultarOpcionesObs();
|
|
}
|
|
|
|
|
|
function OcultarOpcionesObs() {
|
|
if (idConFocus == "ChkRegresaraEstatusAnterior" || idConFocus == "ChkPasarEstatusSiguiente" || idConFocus == "SubirArchivo") {
|
|
//alert("Tiene el foco");
|
|
} else {
|
|
if ($get('TxtOBs')) $get('trBtnAddObs').rows = "2";
|
|
if ($get('trBtnAddObs')) $get('trBtnAddObs').style.display = 'none';
|
|
}
|
|
}
|
|
|
|
function chkCambioEstatus(IDchkSel) {
|
|
var chkSel = $get(IDchkSel);
|
|
|
|
if (chkSel.id == 'ChkRegresaraEstatusAnterior') {
|
|
if ($get('ChkPasarEstatusSiguiente') != null) { $get('ChkPasarEstatusSiguiente').checked = false; }
|
|
if ($get('ChkPasarEstatusCancelado') != null) { $get('ChkPasarEstatusCancelado').checked = false; }
|
|
}
|
|
|
|
if (chkSel.id == 'ChkPasarEstatusSiguiente') {
|
|
if ($get('ChkRegresaraEstatusAnterior') != null) { $get('ChkRegresaraEstatusAnterior').checked = false; }
|
|
if ($get('ChkPasarEstatusCancelado') != null) { $get('ChkPasarEstatusCancelado').checked = false; }
|
|
}
|
|
|
|
if (chkSel.id == 'ChkPasarEstatusCancelado') {
|
|
if ($get('ChkRegresaraEstatusAnterior') != null) { $get('ChkRegresaraEstatusAnterior').checked = false; }
|
|
if ($get('ChkPasarEstatusSiguiente') != null) { $get('ChkPasarEstatusSiguiente').checked = false; }
|
|
}
|
|
}
|
|
</script>
|
|
<script type="text/javascript">
|
|
function CargaArchivo(Tipo) {
|
|
|
|
alert('dssdsd');
|
|
if (Tipo == "Resguardo") {
|
|
$("#BtnCargarResguardo").click();
|
|
}
|
|
else if (Tipo == "Imagen") {
|
|
$("#BtnCargarArchivo").click();
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<script>
|
|
function FiltrarGV() {
|
|
var texto = $('#filtroGVtext').val();
|
|
$('#<%=GVUsuarios.ClientID%> > tbody > tr').css({'display':'none'});
|
|
$("#<%=GVUsuarios.ClientID%> > tbody > tr:contains('" + texto + "')").css({ 'display': '' });
|
|
|
|
$('#<%=GVUsuarios.ClientID%> > tbody > tr:nth-child(1)').css({ 'display': 'none' });
|
|
}
|
|
</script>
|
|
|
|
|
|
</asp:Content>
|