333 lines
24 KiB
Plaintext
333 lines
24 KiB
Plaintext
<%@ Page Title="R.H. - Buscar Personal" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="PopUpBuscarPersonal.aspx.vb" Inherits="RH_PopUpBuscarPersonal" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
#C_GvCaracteristicas_LtlCaracteristica_0{
|
|
min-width: 275px!important;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Búsqueda de Personal
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
|
|
<asp:HiddenField ID="hdnEsThickbox" runat="server" ClientIDMode="Static" />
|
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnCargarClientes" runat="server" ClientIDMode="Static" Text="CargarClientes" Style="display: none;" />
|
|
<asp:Panel ID="PnlPrincipal" runat="server" DefaultButton="BtnBuscar" Width="750px">
|
|
<table class="Widthall">
|
|
<tr>
|
|
<th class="Titulos" colspan="6">Filtros para búsqueda</th>
|
|
</tr>
|
|
<tr align="left">
|
|
<td class="text-right"><b>Código:</b></td>
|
|
<td>
|
|
<asp:TextBox ID="TxtCodigo" runat="server" MaxLength="12" Width="100px"></asp:TextBox></td>
|
|
<td class="text-right"><b>Nombre:</b></td>
|
|
<td colspan="3">
|
|
<asp:TextBox ID="TxtNombre" runat="server" MaxLength="100" Width="362px" autofocus></asp:TextBox></td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td class="text-right"><b>NSS:</b></td>
|
|
<td>
|
|
<asp:TextBox ID="TxtNSS" runat="server" MaxLength="11" Width="100px"></asp:TextBox></td>
|
|
<td class="text-right"><b>Puesto:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlPuestos" runat="server" AppendDataBoundItems="true" DataTextField="Puesto" DataValueField="CvePuesto" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
<td class="text-right"><b>RFC:</b></td>
|
|
<td>
|
|
<asp:TextBox ID="TxtRFC" runat="server" MaxLength="13" Width="100px"></asp:TextBox></td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td class="text-right"><b>Tipo de Período:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlTipoPeriodo" runat="server" AppendDataBoundItems="true" DataTextField="TipoPeriodo" DataValueField="CveTipoPeriodo" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
<td class="text-right"><b>Tipo de Contrato:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlTipoContrato" runat="server" AppendDataBoundItems="true" DataTextField="TipoContrato" DataValueField="CveTipoContrato" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
<td class="text-right"><b>Departamento:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlDepartamentos" runat="server" AppendDataBoundItems="true" DataTextField="Departamento" DataValueField="CveDepartamento" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td class="text-right"><b>Género:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlGenero" runat="server" AppendDataBoundItems="true" DataTextField="Genero" DataValueField="CveGenero" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
<td class="text-right"><b>Estado Civil:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlEstadoCivil" runat="server" AppendDataBoundItems="true" DataTextField="EstadoCivil" DataValueField="CveEstadoCivil" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
<td class="text-right"><b>Escolaridad:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlEscolaridad" runat="server" AppendDataBoundItems="true" DataTextField="Escolaridad" DataValueField="CveEscolaridad" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td class="text-right"><b>Horario:</b></td>
|
|
<td>
|
|
<asp:TextBox ID="TxtHorarioDe" runat="server" CausesValidation="true" MaxLength="10" Width="100px"></asp:TextBox>
|
|
<ajax:MaskedEditExtender ID="MEEHorarioDe" runat="server" TargetControlID="TxtHorarioDe" Mask="99:99:99" MaskType="Time" InputDirection="RightToLeft"></ajax:MaskedEditExtender>
|
|
<ajax:MaskedEditValidator ID="MEVHorarioDe" runat="server" ControlExtender="MEEHorarioDe" ControlToValidate="TxtHorarioDe" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Hr. Entrada''</b> no tiene el formato correcto, por favor corrija (Formato 24 Horas)." IsValidEmpty="true" MaximumValue="23:59:59" MinimumValue="00:00:00" ToolTip="Formato 24 Horas" ValidationGroup="GrpBuscar"></ajax:MaskedEditValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOHorarioDe2" runat="server" HighlightCssClass="vco" TargetControlID="MEVHorarioDe"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td class="text-right"><b>Turno:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlTurnos" runat="server" AppendDataBoundItems="true" DataTextField="Turno" DataValueField="CveTurno" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
<td class="text-right"><b>Cliente:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlClienteAsignado" runat="server" AppendDataBoundItems="true" DataTextField="Nombre" DataValueField="CveCliente" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td class="text-right"><b>Proyecto:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlProyecto" runat="server" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Proyecto" DataValueField="CveProyecto" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
<td class="text-right"><b>Sub Proyecto:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlSubProyecto" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
<td class="text-right"><b>Ruta:</b></td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlRuta" runat="server" AppendDataBoundItems="true" DataTextField="Ruta" DataValueField="CveRuta" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="text-right"><b>Estatus:</b></td>
|
|
<td colspan="5">
|
|
<asp:DropDownList ID="DdlEstatus" runat="server" AppendDataBoundItems="true" DataTextField="EstatusPersonal" DataValueField="CveEstatusPersonal" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
<tr style="vertical-align:top;"><td colspan="2">
|
|
|
|
<asp:GridView ID="GvCrt1" runat="server" GridLines="None" BorderWidth="0" CssClass="table table-hover table-advance Widthall" AutoGenerateColumns="False"
|
|
DataKeyNames="CveCaracteristica,Caracteristica" ShowHeader="False">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemStyle BorderStyle="None" />
|
|
<ItemTemplate>
|
|
<asp:Panel ID="PnlClasif" Visible="False" runat="server">
|
|
<div style="width: 100%" class="SubTotales">
|
|
<b><asp:Literal ID="LblCaracteristica" runat="server" Text=""></asp:Literal></b>
|
|
</div>
|
|
</asp:Panel>
|
|
<div style="width:105px!important; display: inline-block; text-align:right;">
|
|
<asp:Literal ID="LtlCrt" runat="server" Text='<%# Eval("Caracteristica", "<b>{0}:</b>")%>'></asp:Literal>
|
|
</div>
|
|
<div style="display: inline-block;">
|
|
<asp:DropDownList ID="DdlValor" runat="server" Visible="false" DataValueField="CveCaracteristicaOpcion" DataTextField ="CaracteristicaOpcion" Width="100px" CssClass="form-control input-inline input-sm" ></asp:DropDownList>
|
|
<asp:TextBox CssClass="form-control input-sm" ID="TxtValor" runat="server" CausesValidation="true" MaxLength="50" Visible="false" Width="100px"></asp:TextBox>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
|
|
</td>
|
|
<td colspan="2">
|
|
<asp:GridView ID="GvCrt2" runat="server" GridLines="None" BorderWidth="0" CssClass="table table-hover table-advance Widthall" AutoGenerateColumns="False"
|
|
DataKeyNames="CveCaracteristica,Caracteristica" ShowHeader="False">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemStyle BorderStyle="None" />
|
|
<ItemTemplate>
|
|
<asp:Panel ID="PnlClasif" Visible="False" runat="server">
|
|
<div style="width: 100%" class="SubTotales">
|
|
<b><asp:Literal ID="LblCaracteristica" runat="server" Text=""></asp:Literal></b>
|
|
</div>
|
|
</asp:Panel>
|
|
<div style="width:110px!important; display: inline-block;">
|
|
<asp:Literal ID="LtlCrt" runat="server" Text='<%# Eval("Caracteristica", "<b>{0}:</b>")%>'></asp:Literal>
|
|
</div>
|
|
<div style="display: inline-block;">
|
|
<asp:DropDownList ID="DdlValor" runat="server" Visible="false" DataValueField="CveCaracteristicaOpcion" DataTextField ="CaracteristicaOpcion" Width="100px" CssClass="form-control input-inline input-sm" ></asp:DropDownList>
|
|
<asp:TextBox CssClass="form-control input-sm" ID="TxtValor" runat="server" CausesValidation="true" MaxLength="50" Visible="false" Width="100px"></asp:TextBox>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</td>
|
|
<td colspan="2">
|
|
<asp:GridView ID="GvCrt3" runat="server" GridLines="None" BorderWidth="0" CssClass="table table-hover table-advance Widthall" AutoGenerateColumns="False"
|
|
DataKeyNames="CveCaracteristica,Caracteristica" ShowHeader="False">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemStyle BorderStyle="None" />
|
|
<ItemTemplate>
|
|
<asp:Panel ID="PnlClasif" Visible="False" runat="server">
|
|
<div style="width: 100%" class="SubTotales">
|
|
<b><asp:Literal ID="LblCaracteristica" runat="server" Text=""></asp:Literal></b>
|
|
</div>
|
|
</asp:Panel>
|
|
<div style="width:110px!important; display: inline-block; text-align:right;">
|
|
<asp:Literal ID="LtlCrt" runat="server" Text='<%# Eval("Caracteristica", "<b>{0}:</b>")%>'></asp:Literal>
|
|
</div>
|
|
<div style="display: inline-block;">
|
|
<asp:DropDownList ID="DdlValor" runat="server" Visible="false" DataValueField="CveCaracteristicaOpcion" DataTextField ="CaracteristicaOpcion" Width="100px" CssClass="form-control input-inline input-sm" ></asp:DropDownList>
|
|
<asp:TextBox CssClass="form-control input-sm" ID="TxtValor" runat="server" CausesValidation="true" MaxLength="50" Visible="false" Width="100px"></asp:TextBox>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td style="text-align: center;" colspan="6">
|
|
<asp:Button ID="BtnBuscar" runat="server" Text="Buscar" ValidationGroup="GrpBuscar" class="btn btn-primary" /> <asp:Button ID="BtnNuevoPersonal" runat="server" Text="Nuevo" OnClientClick="window.opener.location='/RH/Personal.aspx';window.close(); return false;" class="btn btn-success" /></td>
|
|
</tr>
|
|
</table>
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<table id="TblBusqueda" runat="server" border="0" visible="false">
|
|
<tr>
|
|
<td align="left">Número de registros encontrados: <b><asp:Literal ID="LtlTotalRegistros" runat="server"></asp:Literal></b></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div id="DivBeneficiarios" style="overflow-y: auto; width: 750px; height: 175px;">
|
|
<asp:GridView ID="GV" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron registros" ToolTip="Listado de Contratos encontrados." CssClass="table table-striped table-advance table-hover" Style="text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>N°</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCodigo" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Nombre</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlNombre" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>F. Ingreso</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFechaIng" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Periodo</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTipoPeriodo" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Turno</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTurno" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Departamento</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlDepartamento" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Puesto</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlPuesto" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Estatus</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlEstatus" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<%--<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
<HeaderStyle CssClass="Titulos" />--%>
|
|
</asp:GridView>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script language="javascript" type="text/javascript">
|
|
function Ir(c) {
|
|
opener.location.href = '/RH/Personal.aspx?CvePersonal=' + c;
|
|
window.close();
|
|
}
|
|
function Ir2(c) {
|
|
if (document.getElementById("hdnEsThickbox").value == "S") {
|
|
parent.CargaPersonal(c);
|
|
parent.tb_remove();
|
|
}
|
|
else {
|
|
window.opener.CargaPersonal(c);
|
|
window.close();
|
|
}
|
|
}
|
|
|
|
function Ir3(c) {
|
|
opener.location.href = '/RH/Reclutamiento.aspx?CvePersonal=' + c;
|
|
window.close();
|
|
}
|
|
|
|
function IrOI(c) {
|
|
debugger;
|
|
window.opener.CargaPersonal(c);
|
|
window.close();
|
|
}
|
|
|
|
function CargaClientes() {
|
|
$("#BtnCargarClientes").click();
|
|
}
|
|
</script>
|
|
</asp:Content>
|