Documnetación
This commit is contained in:
353
Edoc/CatDocumentos.aspx
Normal file
353
Edoc/CatDocumentos.aspx
Normal file
@@ -0,0 +1,353 @@
|
||||
<%@ Page Title="RH - Catálogo de Documentos" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="CatDocumentos.aspx.vb" Inherits="RH_CatDocumentos" %>
|
||||
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<style>
|
||||
#C_GvDocumentos > tbody > tr:nth-child(2) > td:nth-child(1){
|
||||
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">
|
||||
Catálogo de Documentos
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
<asp:UpdatePanel runat="server" ID="UpAgregar">
|
||||
<ContentTemplate>
|
||||
<li>
|
||||
<asp:LinkButton runat="server" ID="BtnAgregarDocumento" CssClass="" data-toggle="tooltip"
|
||||
data-placement="left" title="Agregar Documento" Text="<i class='fa fa-plus'></i> Agregar Documento"></asp:LinkButton>
|
||||
</li>
|
||||
<%--<li>
|
||||
<a data-toggle="modal" data-target="#DvTags" ><i class="fa fa-tags" ></i> Etiquetas</a>
|
||||
</li>--%>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:UpdatePanel ID="UpDatosGral" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
|
||||
<asp:UpdatePanel ID="UPBtnDocumentacionNext4" runat="server">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="portlet smmallpadding light bordered" id="DIVDocumentacion" runat="server">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Documentación</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body form">
|
||||
|
||||
<asp:UpdatePanel ID="UPGvDocumentos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<asp:GridView ID="GvDocumentos" runat="server" AutoGenerateColumns="False"
|
||||
DataKeyNames="CveDocumentacion,Documentacion,DocumentacionFormato,Orden,Estatus,CveDocumentacionTipo,DocumentacionTipo,Requerido,DiasLimite,AplicaDiasLimite,AplicaFechaVencimiento,Periodicidad"
|
||||
EmptyDataText="No se encontraron registros de documentos" CssClass="table table-hover table-advance Widthall" GridLines="None">
|
||||
<Columns>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="60px" HeaderText="Documento">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlDocumentacion" runat="server" Text='<%# Eval("Documentacion") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ControlStyle-CssClass="template" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="275" HeaderText="Formato">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlDocumentacionFormato" runat="server" Text='<%# Eval("DocumentacionFormato") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Documentacion Tipo">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlDocumentacionTipo" runat="server" Text='<%# Eval("DocumentacionTipo") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Dias Limite">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlDocumentacionDiasLimite" runat="server" Text='<%# If(Eval("DiasLimite").ToString() = "" Or Eval("DiasLimite").ToString() = "0", "-", Eval("DiasLimite").ToString()) %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Periodicidad">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlPeriodicidad" runat="server" Text='<%# If(Eval("Periodicidad").ToString() = "" Or Eval("Periodicidad").ToString() = "0", "-", Eval("Periodicidad").ToString()) %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Aplica Limite">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlAplicaDiasLimite" runat="server" Text='<%# If(Eval("AplicaDiasLimite").ToString() = "1", "Si", "No") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Aplica Vencimiento">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlDocumentacionAplicaFechaVencimiento" runat="server" Text='<%# If(Eval("AplicaFechaVencimiento").ToString() = "1", "Si", "No") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Estatus">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlDocumentacionEstatus" runat="server" Text='<%# If(Eval("Estatus").ToString() = "True", "Activo", "Inactivo") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Requerido">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlRequerido" runat="server" Text='<%# If(Eval("Requerido").ToString() = "True", "Requerido", "No requerido") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="Orden" ItemStyle-Width="100">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlOrden" runat="server" Text='<%# Eval("Orden") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="50px">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="ImgDownLoad" runat="server"></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="50px">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" ToolTip="Editar documento" CausesValidation="False" OnClick="Edit_ClickDocumentacion"
|
||||
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil' Tittle='Editar Documento' ></i>" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="50px">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lnkEliminar" OnClick="Remove_ClickDocumentacion" runat="server" AlternateText="Editar" ToolTip="Eliminar" CausesValidation="False"
|
||||
CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash' title='Eliminar'></i>" Title="Eliminar Documento" data-toggle="confirmation" data-popout="true" data-original-title="¿Desea eliminar el documento?" data-btn-ok-label="si" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row col-md-12 ">
|
||||
<asp:LinkButton runat="server" Visible="false" CommandArgument="4" ID="BtnDocumentacionNext4" CssClass="btn btn-primary" data-toggle="tooltip" data-placement="left" ValidationGroup="GpoDocumentacion" Text="Guardar"></asp:LinkButton>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
<Triggers>
|
||||
<asp:AsyncPostBackTrigger ControlID="BtnDocumentacionNext4" />
|
||||
</Triggers>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
|
||||
<div id="divAgregarDocumentacion" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog" style="width: 450px;">
|
||||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpModalDocumentacion" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">
|
||||
<h4> <asp:Literal ID="LtlTituloModalDocumentacion" runat="server">Agregar Documento</asp:Literal></h4>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="Txtdocumentacion" CssClass="form-control" MaxLength="100" runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfvTxtdocumentacion" runat="server" ControlToValidate="Txtdocumentacion" ValidationGroup="GrpEscolaridad" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Institución''</b> es necesario, por favor ingréselo."></asp:RequiredFieldValidator>
|
||||
<label for="<%= Txtdocumentacion.ClientID.ToString()%>">Documento:</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlDocumentacionTipo" runat="server" Width="150" CssClass=" select2me form-control " DataValueField="CveDocumentacionTipo" DataTextField="DocumentacionTipo">
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator InitialValue="-1" ID="rfvDdlDocumentacionTipo" ControlToValidate="DdlDocumentacionTipo" CssClass="help-block errorimput" ValidationGroup="GrpEscolaridad" runat="server" ErrorMessage="Seleccione una de las opciones"></asp:RequiredFieldValidator>
|
||||
<label for="<%= DdlDocumentacionTipo.ClientID.ToString()%>">Tipo de documento:</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtOrden" CssClass="form-control" onkeypress="validate(event)" MaxLength="3" runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfvTxtOrden" runat="server" ControlToValidate="TxtOrden" ValidationGroup="GrpEscolaridad" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Institución''</b> es necesario, por favor ingréselo."></asp:RequiredFieldValidator>
|
||||
<ajax:FilteredTextBoxExtender ID="filTxtOrden" runat="server" TargetControlID="TxtOrden" FilterType="Numbers" ValidChars="" />
|
||||
<label for="<%= TxtOrden.ClientID.ToString()%>">Orden:</label>
|
||||
</div>
|
||||
|
||||
|
||||
<%-- <div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtDocumentacionFormato" CssClass="form-control" MaxLength="50" runat="server"></asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender ID="filTxtDocumentacionFormato" runat="server" TargetControlID="TxtDocumentacionFormato" FilterType="Numbers, uppercaseLetters,LowercaseLetters,Custom" ValidChars="_" />
|
||||
<label for="<%= TxtDocumentacionFormato.ClientID.ToString()%>">Nombre de Formato:</label>
|
||||
</div>--%>
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtDiasLimite" CssClass="form-control" onkeypress="validate(event)" MaxLength="2" runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="rfvTxtDiasLimite" runat="server" ControlToValidate="TxtDiasLimite" ValidationGroup="GrpEscolaridad" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo."></asp:RequiredFieldValidator>
|
||||
<ajax:FilteredTextBoxExtender ID="FilTxtDiasLimite" runat="server" TargetControlID="TxtDiasLimite" FilterType="Numbers" ValidChars="" />
|
||||
<label for="<%= TxtOrden.ClientID.ToString()%>">Dias Limite:</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtPeriodicidad" CssClass="form-control" onkeypress="validate(event)" MaxLength="2" runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtPeriodicidad" runat="server" ControlToValidate="TxtPeriodicidad" ValidationGroup="GrpEscolaridad" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo es necesario, por favor ingréselo."></asp:RequiredFieldValidator>
|
||||
<ajax:FilteredTextBoxExtender ID="FILTxtPeriodicidad" runat="server" TargetControlID="TxtPeriodicidad" FilterType="Numbers" ValidChars="" />
|
||||
<label for="<%= TxtPeriodicidad.ClientID.ToString()%>">Periodicidad:</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:CheckBox ID="ChkAplicaDiasLimite" runat="server" Text ="Aplica Dias Limite" />
|
||||
</div>
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:CheckBox ID="ChkAplicaFechaVencimiento" runat="server" Text ="Aplica Fecha de Vencimiento" />
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:CheckBox ID="chkRequerido" runat="server" Text ="Requerido" />
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:CheckBox ID="chkEstatus" runat="server" Text ="Activo" />
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright ">
|
||||
<div class="row ">
|
||||
<div class="col-md-12">
|
||||
<asp:TextBox ID="TxtFileDocumentacion" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<asp:Button ID="BtnAgregarDocumentoModal" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="GrpEscolaridad" />
|
||||
<button id="BtnCancelarEscolaridadModal4" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="DvTags" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog" style="width: 450px;">
|
||||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpEtiquetas" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">
|
||||
<h4> <asp:Literal ID="Literal2" runat="server">Etiquetas</asp:Literal></h4>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Etiqueta</th>
|
||||
<th>Descripción</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>{Nombres}</td><td>Nombre</td></tr>
|
||||
<tr><td>{APaterno}</td><td>Apellido Paterno</td></tr>
|
||||
<tr><td>{AMaterno}</td><td>Apellido Materno</td></tr>
|
||||
<tr><td>{NombreCompleto}</td><td>Nombre Completo</td></tr>
|
||||
<tr><td>{RFC}</td><td></td></tr>
|
||||
<tr><td>{Estatura}</td> <td></td></tr>
|
||||
<tr><td>{Peso}</td><td></td></tr>
|
||||
<tr><td>{LugarNacimiento}</td><td>Lugar de nacimie</td></tr>
|
||||
<tr><td>{Edad}</td><td></td></tr>
|
||||
<tr><td>{NombreTelEmergencia}</td><td>Nombre y telefono al presentarse una emergencia</td></tr>
|
||||
<tr><td>{TipoSangre}</td><td></td></tr>
|
||||
<tr><td>{SubProyecto}</td><td>Se refiere a la sucursal o centro de costos</td></tr>
|
||||
<tr><td>{EstadoCivil}</td><td></td></tr>
|
||||
<tr><td>{Direccion}</td><td></td></tr>
|
||||
<tr><td>{Vivienda}</td><td></td></tr>
|
||||
<tr><td>{ViviendaDueno}</td><td></td></tr>
|
||||
<tr><td>{CreditoInfonavit}</td><td></td></tr>
|
||||
<tr><td>{RentaMensual}</td><td></td></tr>
|
||||
<tr><td>{TransportePublico}</td><td></td></tr>
|
||||
<tr><td>{TrabajadoAnteriormente}</td><td>La persona a trabajado enteriormente en la empresa</td></tr>
|
||||
<tr><td>{TrabajadoAnteriormenteObservaciones}</td><td>Detalle de trabajo enterior en empresa</td></tr>
|
||||
<tr><td>{ParientesEmpresa}</td><td>Se tienen parientes en la empresa</td></tr>
|
||||
<tr><td>{AcusadoDelito}</td><td></td></tr>
|
||||
<tr><td>{AcusadoDelitoObservaciones}</td><td></td></tr>
|
||||
<tr><td>{Calle}</td><td></td></tr>
|
||||
<tr><td>{Colonia}</td><td></td></tr>
|
||||
<tr><td>{CP}</td><td></td></tr>
|
||||
<tr><td>{Telefono}</td><td></td></tr>
|
||||
<tr><td>{Celular}</td><td></td></tr>
|
||||
<tr><td>{Correo}</td><td></td></tr>
|
||||
<tr><td>{NumeroSS}</td><td></td></tr>
|
||||
<tr><td>{Licencia}</td><td></td></tr>
|
||||
<tr><td>{CartillaMilitar}</td><td></td></tr>
|
||||
<tr><td>{CURP}</td><td></td></tr>
|
||||
<tr><td>{CredencialElector}</td><td></td></tr>
|
||||
<tr><td>{FechaIngreso}</td><td></td></tr>
|
||||
<tr><td>{Puesto}</td><td></td></tr>
|
||||
<tr><td>{FechaActual}</td><td></td></tr>
|
||||
<tr><td>{FechaActualDF}</td><td></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button id="btnCerrarEtiquetas" runat="server" type="button" class="btn btn-Default" data-dismiss="modal">Cerrar</button>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script>
|
||||
function validate(evt) {
|
||||
var theEvent = evt || window.event;
|
||||
var key = theEvent.keyCode || theEvent.which;
|
||||
key = String.fromCharCode(key);
|
||||
var regex = /[0-9]|\./;
|
||||
if (!regex.test(key)) {
|
||||
theEvent.returnValue = false;
|
||||
if (theEvent.preventDefault) theEvent.preventDefault();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
414
Edoc/CatDocumentos.aspx.vb
Normal file
414
Edoc/CatDocumentos.aspx.vb
Normal file
@@ -0,0 +1,414 @@
|
||||
|
||||
|
||||
Imports System.Data
|
||||
Imports System.Linq
|
||||
Imports Extensiones
|
||||
Imports System.IO
|
||||
|
||||
Partial Class RH_CatDocumentos
|
||||
Inherits ClsPaginas
|
||||
|
||||
Private Property DTDocumentacion As DataTable
|
||||
Get
|
||||
If ViewState("DTDocumentacion") Is Nothing Then
|
||||
Return New DataTable
|
||||
Else
|
||||
Return DirectCast(ViewState("DTDocumentacion"), DataTable)
|
||||
End If
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
ViewState("DTDocumentacion") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Property Documentacion As String
|
||||
Get
|
||||
If ViewState("Documentacion") Is Nothing Then
|
||||
Return "-1"
|
||||
Else
|
||||
Return ViewState("Documentacion").ToString
|
||||
End If
|
||||
End Get
|
||||
Set(value As String)
|
||||
ViewState("Documentacion") = value
|
||||
End Set
|
||||
End Property
|
||||
Property CveDocumentacion As Integer
|
||||
Get
|
||||
If ViewState("CveDocumentacion") Is Nothing Then
|
||||
Return -1
|
||||
Else
|
||||
Return DirectCast(ViewState("CveDocumentacion"), Integer)
|
||||
End If
|
||||
End Get
|
||||
Set(value As Integer)
|
||||
ViewState("CveDocumentacion") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Private Property DocumentacionTipo As String
|
||||
Get
|
||||
If ViewState("DocumentacionTipo") Is Nothing Then
|
||||
Return ""
|
||||
Else
|
||||
Return ViewState("DocumentacionTipo").ToString
|
||||
End If
|
||||
End Get
|
||||
Set(value As String)
|
||||
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Private Property CveDocumentacionTipo As Integer
|
||||
Get
|
||||
If ViewState("CveDocumentacionTipo") Is Nothing Then
|
||||
Return -1
|
||||
Else
|
||||
Return DirectCast(ViewState("CveDocumentacionTipo"), Integer)
|
||||
End If
|
||||
End Get
|
||||
|
||||
Set(value As Integer)
|
||||
ViewState("CveDocumentacionTipo") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Property ActualizarDocumentacion As Boolean
|
||||
Get
|
||||
If ViewState("ActualizarDocumentacion") Is Nothing Then
|
||||
Return True
|
||||
Else
|
||||
Return DirectCast(ViewState("ActualizarDocumentacion"), Boolean)
|
||||
End If
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
ViewState("ActualizarDocumentacion") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property Estatus As Boolean
|
||||
Get
|
||||
If ViewState("Estatus") Is Nothing Then
|
||||
Return 0
|
||||
Else
|
||||
Return DirectCast(ViewState("Estatus"), Boolean)
|
||||
End If
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
ViewState("Estatus") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Property DocumentacionFormato As String
|
||||
Get
|
||||
If ViewState("DocumentacionFormato") Is Nothing Then
|
||||
Return ""
|
||||
Else
|
||||
Return ViewState("DocumentacionFormato").ToString
|
||||
End If
|
||||
End Get
|
||||
Set(value As String)
|
||||
ViewState("DocumentacionFormato") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property Requerido As Boolean
|
||||
Get
|
||||
If ViewState("Requerido") Is Nothing Then
|
||||
Return True
|
||||
Else
|
||||
Return DirectCast(ViewState("Requerido"), Boolean)
|
||||
End If
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
ViewState("Requerido") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Property Orden As Integer
|
||||
Get
|
||||
If ViewState("Orden") Is Nothing Then
|
||||
Return -1
|
||||
Else
|
||||
Return DirectCast(ViewState("Orden"), Integer)
|
||||
End If
|
||||
End Get
|
||||
Set(value As Integer)
|
||||
ViewState("Orden") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||
If Not Page.IsPostBack Then
|
||||
CargaDocumentacion()
|
||||
CargaComboDocumentacion()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
#Region "D O C U M E N T A C I O N"
|
||||
|
||||
Protected Sub BtnAgregarDocumento_Click(sender As Object, e As EventArgs) Handles BtnAgregarDocumento.Click
|
||||
ResetFormDocumentacion()
|
||||
RegistraScript("$('#divAgregarDocumentacion').modal({ backdrop: 'static', keyboard: false});")
|
||||
End Sub
|
||||
|
||||
Private Sub ResetFormDocumentacion()
|
||||
|
||||
Txtdocumentacion.Text = ""
|
||||
TxtOrden.Text = ""
|
||||
TxtPeriodicidad.Text = ""
|
||||
TxtDiasLimite.Text = ""
|
||||
BtnAgregarDocumentoModal.Text = "Agregar"
|
||||
LtlTituloModalDocumentacion.Text = "Agregar documentación"
|
||||
'TxtDocumentacionFormato.Text = ""
|
||||
DdlDocumentacionTipo.SelectedIndex = 0
|
||||
chkEstatus.Checked = True
|
||||
chkRequerido.Checked = True
|
||||
|
||||
ActualizarDocumentacion = False
|
||||
UpModalDocumentacion.Update()
|
||||
End Sub
|
||||
|
||||
Private Sub CargaDocumentacion()
|
||||
|
||||
Dim objRH As New ClsEdocumentacion
|
||||
|
||||
If objRH.DocumentacionGet(-1, -1, -1, UsuarioActual.Empresa.CveEmpresa) Then
|
||||
|
||||
DTDocumentacion = objRH.DtResultados
|
||||
GvDocumentos.DataSource = objRH.DtResultados
|
||||
Else
|
||||
DTDocumentacion = Nothing
|
||||
GvDocumentos.DataSource = Nothing
|
||||
End If
|
||||
|
||||
objRH.Dispose()
|
||||
GvDocumentos.DataBind()
|
||||
UPGvDocumentos.Update()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub CargaComboDocumentacion()
|
||||
Dim objDocumentacion As New ClsEdocumentacion
|
||||
|
||||
If objDocumentacion.DocumentacionTipoGet(UsuarioActual.CveEmpresa) Then
|
||||
|
||||
DdlDocumentacionTipo.DataSource = objDocumentacion.DtResultados
|
||||
|
||||
End If
|
||||
|
||||
objDocumentacion.Dispose()
|
||||
DdlDocumentacionTipo.DataBind()
|
||||
DdlDocumentacionTipo.Items.Insert(0, New ListItem("Seleccione un tipo", "-1"))
|
||||
End Sub
|
||||
|
||||
Public Sub Edit_ClickDocumentacion(sender As Object, e As EventArgs)
|
||||
|
||||
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||
|
||||
CveDocumentacion = GvRow.DataKey("CveDocumentacion")
|
||||
Documentacion = GvRow.DataKey("Documentacion")
|
||||
DocumentacionFormato = GvRow.DataKey("DocumentacionFormato")
|
||||
CveDocumentacionTipo = GvRow.DataKey("CveDocumentacionTipo")
|
||||
DocumentacionTipo = GvRow.DataKey("DocumentacionTipo")
|
||||
Orden = GvRow.DataKey("Orden")
|
||||
Estatus = GvRow.DataKey("Estatus")
|
||||
Requerido = GvRow.DataKey("Requerido")
|
||||
|
||||
|
||||
Txtdocumentacion.Text = Documentacion
|
||||
TxtOrden.Text = Orden
|
||||
|
||||
TxtDiasLimite.Text = GvRow.DataKey("DiasLimite")
|
||||
ChkAplicaDiasLimite.Checked = GvRow.DataKey("AplicaDiasLimite")
|
||||
TxtPeriodicidad.Text = GvRow.DataKey("Periodicidad")
|
||||
|
||||
ChkAplicaFechaVencimiento.Checked = GvRow.DataKey("AplicaFechaVencimiento")
|
||||
|
||||
DdlDocumentacionTipo.SelectedValueExist(CveDocumentacionTipo)
|
||||
chkEstatus.Checked = Estatus
|
||||
chkRequerido.Checked = Requerido
|
||||
|
||||
|
||||
LtlTituloModalDocumentacion.Text = "Actualizar Documento: " & Documentacion
|
||||
BtnAgregarDocumentoModal.Text = "Actualizar"
|
||||
|
||||
UpModalDocumentacion.Update()
|
||||
ActualizarDocumentacion = True
|
||||
|
||||
RegistraScript("$('#divAgregarDocumentacion').modal({ backdrop: 'static', keyboard: false});")
|
||||
|
||||
End Sub
|
||||
|
||||
Private Function GuardarArchivo(_CveDocumentacion As Integer) As String
|
||||
|
||||
Dim respuesta As String = ""
|
||||
|
||||
Dim FileExtension As String = "-1"
|
||||
Dim Filesgral As List(Of Archivo) = TxtFileDocumentacion.getfiles().Archivos
|
||||
Dim Filename As String = ""
|
||||
|
||||
For Each fileItem As Archivo In Filesgral
|
||||
Try
|
||||
respuesta = fileItem.filenameO
|
||||
FileExtension = IO.Path.GetExtension(String.Format("{0}Temp\{1}", AppDomain.CurrentDomain.BaseDirectory, fileItem.filename)).Replace(".", "")
|
||||
Dim tempArray() As String
|
||||
tempArray = fileItem.filename.ToString().Split("-".ToCharArray())
|
||||
|
||||
Dim rutaDestino As String = UsuarioActual.Empresa.Ruta & "Formatos\" & _CveDocumentacion & "_" & fileItem.filenameO
|
||||
Dim docAnterior As String = UsuarioActual.Empresa.Ruta & "Formatos\" & _CveDocumentacion & "_" & DocumentacionFormato
|
||||
|
||||
If DocumentacionFormato.Trim.Length > 0 Then
|
||||
If File.Exists(docAnterior) Then
|
||||
File.Delete(docAnterior)
|
||||
End If
|
||||
End If
|
||||
|
||||
If Not Directory.Exists(UsuarioActual.Empresa.Ruta & "\Formatos") Then
|
||||
Directory.CreateDirectory(UsuarioActual.Empresa.Ruta & "\Formatos")
|
||||
|
||||
End If
|
||||
|
||||
If System.IO.File.Exists(rutaDestino) Then
|
||||
System.IO.File.Delete(rutaDestino)
|
||||
End If
|
||||
|
||||
System.IO.File.Move(fileItem.FileUrl, rutaDestino)
|
||||
|
||||
Catch ex As Exception
|
||||
OnError("Error al cargar archivo", ex)
|
||||
End Try
|
||||
TxtFileDocumentacion.Text = ""
|
||||
UpModalDocumentacion.Update()
|
||||
Next
|
||||
|
||||
|
||||
Return respuesta
|
||||
End Function
|
||||
|
||||
Public Sub Remove_ClickDocumentacion(sender As Object, e As EventArgs)
|
||||
|
||||
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||
Dim _CveDocumentacion As Integer = GvRow.DataKey("CveDocumentacion")
|
||||
Dim _documetacionFormato As String = GvRow.DataKey("DocumentacionFormato")
|
||||
|
||||
|
||||
|
||||
Dim objEdoc As New ClsEdocumentacion
|
||||
|
||||
If objEdoc.DocumentacionRemove(_CveDocumentacion, UsuarioActual.Empresa.CveEmpresa) Then
|
||||
EliminarDocumentoDisco(_documetacionFormato)
|
||||
Alert("Documento eliminado correctamente", TipoMensaje.MsgInformacion)
|
||||
CargaDocumentacion()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub EliminarDocumentoDisco(documento As String)
|
||||
|
||||
Dim archivo As String = UsuarioActual.Empresa.Ruta & "Formatos\" & documento
|
||||
|
||||
If File.Exists(archivo) Then
|
||||
File.Delete(archivo)
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Protected Sub BtnAgregarDocumentoModal_Click(sender As Object, e As EventArgs) Handles BtnAgregarDocumentoModal.Click
|
||||
|
||||
Dim objRH As New ClsEdocumentacion
|
||||
Dim intCompleto As Integer = 0
|
||||
Dim _estatus As Integer = 0
|
||||
Dim _requerido As Integer = 0
|
||||
Dim _formato As String = ""
|
||||
|
||||
|
||||
If chkEstatus.Checked Then
|
||||
_estatus = 1
|
||||
End If
|
||||
|
||||
If chkRequerido.Checked Then
|
||||
_requerido = 1
|
||||
End If
|
||||
|
||||
If ActualizarDocumentacion Then
|
||||
|
||||
_formato = GuardarArchivo(CveDocumentacion)
|
||||
If objRH.DocumentacionUpdate(CveDocumentacion, Txtdocumentacion.Text.Trim, _formato, DdlDocumentacionTipo.SelectedValue.ToEntero, _estatus, TxtOrden.Text.ToEntero, _requerido, TxtDiasLimite.Text.ToEntero, ChkAplicaDiasLimite.Checked, ChkAplicaFechaVencimiento.Checked, UsuarioActual.Empresa.CveEmpresa,
|
||||
TxtPeriodicidad.Text.ToEntero) Then
|
||||
|
||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "divAgregarDocumentacion"))
|
||||
Alert("Documento Actualizado correctamente.", TipoMensaje.MsgInformacion)
|
||||
CargaDocumentacion()
|
||||
End If
|
||||
|
||||
Else
|
||||
If objRH.DocumentacionAdd(Txtdocumentacion.Text.Trim, _formato, DdlDocumentacionTipo.SelectedValue.ToEntero, _estatus, TxtOrden.Text.ToEntero, _requerido, TxtDiasLimite.Text.ToEntero, ChkAplicaDiasLimite.Checked, ChkAplicaFechaVencimiento.Checked, UsuarioActual.Empresa.CveEmpresa, TxtPeriodicidad.Text.ToEntero) Then
|
||||
|
||||
CveDocumentacion = objRH.DtResultados(0)(0).ToString.ToEntero
|
||||
_formato = GuardarArchivo(CveDocumentacion)
|
||||
If objRH.DocumentacionUpdate(CveDocumentacion, Txtdocumentacion.Text.Trim, _formato, DdlDocumentacionTipo.SelectedValue.ToEntero, _estatus, TxtOrden.Text.ToEntero, _requerido, TxtDiasLimite.Text.ToEntero, ChkAplicaDiasLimite.Checked, ChkAplicaFechaVencimiento.Checked, UsuarioActual.Empresa.CveEmpresa,
|
||||
TxtPeriodicidad.Text.ToEntero) Then
|
||||
|
||||
End If
|
||||
|
||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "divAgregarDocumentacion"))
|
||||
Alert("Documento agregado correctamente.", TipoMensaje.MsgInformacion)
|
||||
CargaDocumentacion()
|
||||
End If
|
||||
End If
|
||||
|
||||
ActualizarDocumentacion = False
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Protected Sub GvDocumentos_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvDocumentos.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
|
||||
Dim _CveDocumentacion As Integer = e.Row.DBCampo("CveDocumentacion").ToString.ToEntero
|
||||
Dim DocumetacionFormato As String = e.Row.DBCampo("DocumentacionFormato").ToString
|
||||
Dim ImgDownLoad As Literal = e.Row.FCLiteral("ImgDownLoad")
|
||||
Dim separado As Char() = {"."}
|
||||
Dim array() As String = DocumetacionFormato.Split(separado)
|
||||
Dim extencion As String = ""
|
||||
|
||||
If array.Length > 0 Then
|
||||
extencion = array(array.Length - 1)
|
||||
End If
|
||||
|
||||
If DocumetacionFormato.Trim.Length > 0 Then
|
||||
|
||||
Dim linkDescarga = "/Empresas/" & UsuarioActual.Empresa.CveEmpresa & "/Formatos/" & _CveDocumentacion & "_" & DocumetacionFormato
|
||||
Dim linkDescargaArchivo = UsuarioActual.Empresa.Ruta & "\Formatos\" & _CveDocumentacion & "_" & DocumetacionFormato
|
||||
If File.Exists(linkDescargaArchivo) Then
|
||||
ImgDownLoad.Visible = True
|
||||
If extencion.Length > 0 Then
|
||||
ImgDownLoad.Text = String.Format(" <a class='btn btn-circle btn-sm blue' href='{0}' target='_black' download='{1}'><i class='fa fa-download' title='Descargar Formato'></i></a>", linkDescarga, DocumetacionFormato)
|
||||
Else
|
||||
ImgDownLoad.Text = String.Format(" <a class='btn btn-circle btn-sm blue' href='{0}' target='_black' download='{1}'><i class='fa fa-download' title='Descargar Formato'></i></a>", linkDescarga, DocumetacionFormato)
|
||||
End If
|
||||
Else
|
||||
ImgDownLoad.Visible = False
|
||||
End If
|
||||
|
||||
Else
|
||||
ImgDownLoad.Visible = False
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
|
||||
|
||||
End Class
|
||||
|
||||
468
Edoc/CatDocumentosContratos.aspx
Normal file
468
Edoc/CatDocumentosContratos.aspx
Normal file
@@ -0,0 +1,468 @@
|
||||
<%@ Page Title="RH - Catálogo de Géneros" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="CatDocumentosContratos.aspx.vb" Inherits="Edoc_CatDocumentosContratos" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<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">
|
||||
Documentos Contratos
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
<asp:UpdatePanel runat="server" ID="UpAgregar">
|
||||
<%-- <ContentTemplate>
|
||||
<li>
|
||||
<asp:LinkButton runat="server" ID="BtnAgregarMotivoD" data-toggle="tooltip" data-placement="left" title="Agregar Tipo Contrato " Text="<i class='fa fa-plus'></i> Agregar Tipo Contrato"></asp:LinkButton>
|
||||
</li>
|
||||
|
||||
</ContentTemplate>--%>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
<asp:UpdatePanel ID="UpTitulos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<table width="872" class="table table-hover table-advance">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th width="116">Tipo de contrato</th>
|
||||
<th width="416">Documento</th>
|
||||
<th width="100">Requerido</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SubContratos</td>
|
||||
<td>ACTA CONSTITUTIVA (PERSONA FISICA NO APLICA)</td>
|
||||
<td>
|
||||
<div class="checkbox"> <label><input type="checkbox" value="" checked></label></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SubContratos</td>
|
||||
<td>IDENTIFICACION REPRESENTANTE LEGAL</td>
|
||||
<td><div class="checkbox"> <label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SubContratos</td>
|
||||
<td>PODER REPRESENTANTE LEGAL</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SubContratos</td>
|
||||
<td>REGISTRO PATRONAL IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SubContratos</td>
|
||||
<td>REGISTRO ANTE EL SAT</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SubContratos</td>
|
||||
<td>PAGOS PROVSIONALES</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SubContratos</td>
|
||||
<td>PAGO DEL IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SubContratos</td>
|
||||
<td>PAGO DEL ESTADO</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SubContratos</td>
|
||||
<td>OPINION DE CUMPLIMIENTO SAT</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SubContratos</td>
|
||||
<td>CARTA DE NO ADEUDO IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SubContratos</td>
|
||||
<td>RELACION DE PERSONAL</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SubContratos</td>
|
||||
<td>RECIBOS XML NOMINA</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SubContratos</td>
|
||||
<td>REGISTRO DE OBRA ANTE EL SIROC (SOLAMENTE AL INICIO)</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>ACTA CONSTITUTIVA (PERSONA FISICA NO APLICA)</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>IDENTIFICACION REPRESENTANTE LEGAL</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>PODER REPRESENTANTE LEGAL</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>REGISTRO PATRONAL IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>REGISTRO ANTE EL SAT</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>PAGOS PROVSIONALES</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>PAGO DEL IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>PAGO DEL ESTADO</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>OPINION DE CUMPLIMIENTO SAT</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>CARTA DE NO ADEUDO IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>RELACION DE PERSONAL</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>RECIBOS XML NOMINA</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>REGISTRO DE OBRA ANTE EL SIROC (SOLAMENTE AL INICIO)</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Limpieza</td>
|
||||
<td>ACTA CONSTITUTIVA (PERSONA FISICA NO APLICA)</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Limpieza</td>
|
||||
<td>IDENTIFICACION REPRESENTANTE LEGAL</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Limpieza</td>
|
||||
<td>PODER REPRESENTANTE LEGAL</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Limpieza</td>
|
||||
<td>REGISTRO PATRONAL IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Limpieza</td>
|
||||
<td>REGISTRO ANTE EL SAT</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Limpieza</td>
|
||||
<td>PAGOS PROVSIONALES</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Limpieza</td>
|
||||
<td>PAGO DEL IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Limpieza</td>
|
||||
<td>PAGO DEL ESTADO</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Limpieza</td>
|
||||
<td>OPINION DE CUMPLIMIENTO SAT</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Limpieza</td>
|
||||
<td>CARTA DE NO ADEUDO IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Limpieza</td>
|
||||
<td>RELACION DE PERSONAL</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Limpieza</td>
|
||||
<td>RECIBOS XML NOMINA</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Limpieza</td>
|
||||
<td>REGISTRO DE OBRA ANTE EL SIROC (SOLAMENTE AL INICIO)</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Materiales</td>
|
||||
<td>ACTA CONSTITUTIVA (PERSONA FISICA NO APLICA)</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Materiales</td>
|
||||
<td>IDENTIFICACION REPRESENTANTE LEGAL</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Materiales</td>
|
||||
<td>PODER REPRESENTANTE LEGAL</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Materiales</td>
|
||||
<td>REGISTRO PATRONAL IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Materiales</td>
|
||||
<td>REGISTRO ANTE EL SAT</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Materiales</td>
|
||||
<td>PAGOS PROVSIONALES</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Materiales</td>
|
||||
<td>PAGO DEL IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Materiales</td>
|
||||
<td>PAGO DEL ESTADO</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Materiales</td>
|
||||
<td>OPINION DE CUMPLIMIENTO SAT</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Materiales</td>
|
||||
<td>CARTA DE NO ADEUDO IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Materiales</td>
|
||||
<td>RELACION DE PERSONAL</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Materiales</td>
|
||||
<td>RECIBOS XML NOMINA</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Materiales</td>
|
||||
<td>REGISTRO DE OBRA ANTE EL SIROC (SOLAMENTE AL INICIO)</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>ACTA CONSTITUTIVA (PERSONA FISICA NO APLICA)</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>IDENTIFICACION REPRESENTANTE LEGAL</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>PODER REPRESENTANTE LEGAL</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>REGISTRO PATRONAL IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>REGISTRO ANTE EL SAT</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>PAGOS PROVSIONALES</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>PAGO DEL IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>PAGO DEL ESTADO</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>OPINION DE CUMPLIMIENTO SAT</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>CARTA DE NO ADEUDO IMSS</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>RELACION DE PERSONAL</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>RECIBOS XML NOMINA</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Acarreos</td>
|
||||
<td>REGISTRO DE OBRA ANTE EL SIROC (SOLAMENTE AL INICIO)</td>
|
||||
<td><div class="checkbox"><label><input type="checkbox" value="" checked></label></div></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<%-- <asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveGenero,Genero,Estatus" EmptyDataText="No se encontraron Géneros Registrados" ToolTip="Listado de Genero" CssClass="table table-striped table-advance table-hover" style="margin-top:-10px; text-align:center;width:100%;" GridLines="None" >
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Género">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlGenero" runat="server" Text='<%# Eval("Genero", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TxtGenero" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Genero") %>' ValidationGroup="GrpGV" Width="234px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVGenero" runat="server" ControlToValidate="TxtGenero" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Genero''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCGenero" runat="server" HighlightCssClass="vco" TargetControlID="RFVGenero" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Estado">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEstado" runat="server" Text='<%# Eval("Estatus") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:CheckBox ID="ChkEstado" runat="server" Checked='<%# If (Eval("Estatus").ToString = "Activo", True, False) %>' />
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng", "{0:d}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Usuario">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Editar">
|
||||
<EditItemTemplate>
|
||||
<center>
|
||||
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpGV" />
|
||||
<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 OnClick="GvDatos_RowEditing" ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Eliminar">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" 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>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
</asp:GridView>--%>
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="DivAgregarTiposContrato" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog" style="width: 450px;">
|
||||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpModalTiposD" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">
|
||||
<asp:Literal ID="LtlTituloModalTiposD" runat="server">Tipo contrato</asp:Literal></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtTipoSubcontrato" CssClass="form-control " runat="server" MaxLength="70" CausesValidation="true"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtTipoSubcontrato" runat="server" ControlToValidate="TxtTipoSubcontrato" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Sub Contrato''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTiposD"></asp:RequiredFieldValidator>
|
||||
<label for="GeneroTxt">Tipo Contrato:</label>
|
||||
<i></i>
|
||||
</div>
|
||||
<br ID="saltoDeLinea" runat="server" />
|
||||
<div ID="CheckActiveSection" runat="server" class="form-group form-md-line-input input-iconright">
|
||||
<label for="ChkEstatus">Estatus:</label>
|
||||
<asp:CheckBox ID="ChkEstatus" runat="server" CssClass="make-switchsd" data-size="small" Text=" " Checked="true" />
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<br />
|
||||
<div class="modal-footer">
|
||||
<asp:Button ID="BtnAgregarTiposDModal" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="GrpTiposD" />
|
||||
<button id="Button" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
|
||||
<script>
|
||||
function MuestraModal() {
|
||||
$('#DivAgregarTiposContrato').modal('show')
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
116
Edoc/CatDocumentosContratos.aspx.vb
Normal file
116
Edoc/CatDocumentosContratos.aspx.vb
Normal file
@@ -0,0 +1,116 @@
|
||||
Option Strict On
|
||||
|
||||
Imports System.Data
|
||||
Imports System.Linq
|
||||
Imports Extensiones
|
||||
|
||||
Partial Class Edoc_CatDocumentosContratos
|
||||
Inherits ClsPaginas
|
||||
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||
|
||||
If Not Page.IsPostBack Then
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
'Protected Sub BtnAgregarMotivo_Click(sender As Object, e As EventArgs) Handles BtnAgregarMotivoD.Click
|
||||
' RegistraScript(String.Format("$('#{0}').modal();", "DivAgregarTiposContrato"))
|
||||
'End Sub
|
||||
|
||||
Protected Sub LbAgregar_Click(sender As Object, e As System.EventArgs) Handles BtnAgregarTiposDModal.Click
|
||||
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
#Region "G V D A T O S"
|
||||
|
||||
'Protected Sub GvDatos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatos.RowDataBound
|
||||
' If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
' If e.Row.RowIndex = 0 Then
|
||||
' e.Row.Cells(0).Width = Unit.Pixel(250)
|
||||
' e.Row.Cells(1).Width = Unit.Pixel(100)
|
||||
' e.Row.Cells(2).Width = Unit.Pixel(100)
|
||||
' e.Row.Cells(3).Width = Unit.Pixel(100)
|
||||
' e.Row.Cells(4).Width = Unit.Pixel(100)
|
||||
' e.Row.Cells(5).Width = Unit.Pixel(61)
|
||||
' End If
|
||||
' e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Left
|
||||
' End If
|
||||
'End Sub
|
||||
|
||||
'Protected Sub GvDatos_RowDeleting(sender As Object, e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GvDatos.RowDeleting
|
||||
' Dim ObjGenero As New ClsRH
|
||||
' If ObjGenero.RemoveGenero(GvDatos.DataKeys(e.RowIndex).Value.ToString.ToEntero) Then
|
||||
' GvDatos.EditIndex = -1
|
||||
' ViewState("DTGenero") = ObjGenero.DtResultados
|
||||
' GlobalDTGenero = ObjGenero.DtResultados
|
||||
' Alert("El Género se eliminó correctamente.", TipoMensaje.MsgInformacion)
|
||||
' End If
|
||||
|
||||
' ObjGenero.Dispose()
|
||||
|
||||
' If ViewState("Orden").ToString() <> String.Empty Then
|
||||
' CargaGrid(ViewState("Orden").ToString())
|
||||
' Else
|
||||
' CargaGrid("")
|
||||
' End If
|
||||
'End Sub
|
||||
|
||||
'Protected Sub GvDatos_RowCancelingEdit(sender As Object, e As System.Web.UI.WebControls.GridViewCancelEditEventArgs) Handles GvDatos.RowCancelingEdit
|
||||
' GvDatos.EditIndex = -1
|
||||
' If ViewState("Orden").ToString() <> String.Empty Then
|
||||
' CargaGrid(ViewState("Orden").ToString())
|
||||
' Else
|
||||
' CargaGrid("")
|
||||
' End If
|
||||
'End Sub
|
||||
|
||||
'Protected Sub GvDatos_RowUpdating(sender As Object, e As EventArgs) Handles BtnEditarTiposDModal.Click
|
||||
' Dim ObjGenero As New ClsRH
|
||||
' Dim Genero As String = GeneroTxt.Text.Trim
|
||||
' Dim Estatus As Boolean = ChkEstatus.Checked
|
||||
' Dim CveGenero As Integer = CveGeneroAEditar
|
||||
|
||||
' If ObjGenero.UpdateGenero(Genero, Estatus, CveGenero) Then
|
||||
' GvDatos.EditIndex = -1
|
||||
' ViewState("DTGenero") = ObjGenero.DtResultados
|
||||
' GlobalDTGenero = ObjGenero.DtResultados
|
||||
' Alert("Los cambios se guardaron correctamente.", TipoMensaje.MsgInformacion)
|
||||
' End If
|
||||
|
||||
' ObjGenero.Dispose()
|
||||
|
||||
' If ViewState("Orden").ToString() <> String.Empty Then
|
||||
' CargaGrid(ViewState("Orden").ToString())
|
||||
' Else
|
||||
' CargaGrid("")
|
||||
' End If
|
||||
'End Sub
|
||||
|
||||
'Public Sub GvDatos_RowEditing(sender As Object, e As EventArgs)
|
||||
' BtnAgregarTiposDModal.Visible = False
|
||||
' BtnEditarTiposDModal.Visible = True
|
||||
' CheckActiveSection.Visible = True
|
||||
' saltoDeLinea.Visible = True
|
||||
|
||||
' Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow) 'obtenemos el renglon que acabamos de seleccionar
|
||||
' GeneroTxt.Text = GvRow.DataKey("Genero")
|
||||
' ChkEstatus.Checked = If(GvRow.DataKey("Estatus") = "Activo", True, False)
|
||||
' CveGeneroAEditar = Convert.ToInt32(GvRow.DataKey("CveGenero")) 'Guardamos en una propiedad el id del registro del cual haremos cambios, se guarda y se utiliza en el metodo "GvDatos_RowUpdating"
|
||||
|
||||
' UpDatos.Update()
|
||||
' If ViewState("Orden").ToString() <> String.Empty Then
|
||||
' CargaGrid(ViewState("Orden").ToString())
|
||||
' Else
|
||||
' CargaGrid("")
|
||||
' End If
|
||||
' RegistraScript(String.Format("$('#{0}').modal();", "DivAgregarTiposD"))
|
||||
'End Sub
|
||||
#End Region
|
||||
|
||||
|
||||
End Class
|
||||
165
Edoc/CatTipoContratos.aspx
Normal file
165
Edoc/CatTipoContratos.aspx
Normal file
@@ -0,0 +1,165 @@
|
||||
<%@ Page Title="RH - Catálogo de Géneros" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="CatTipoContratos.aspx.vb" Inherits="Edoc_CatTipoContrato" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<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">
|
||||
Catálogo Tipos de Contrato
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
<asp:UpdatePanel runat="server" ID="UpAgregar">
|
||||
<ContentTemplate>
|
||||
<li>
|
||||
<asp:LinkButton runat="server" ID="BtnAgregarMotivoD" data-toggle="tooltip" data-placement="left" title="Agregar Tipo Contrato " Text="<i class='fa fa-plus'></i> Agregar Tipo Contrato"></asp:LinkButton>
|
||||
</li>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||
<asp:UpdatePanel ID="UpTitulos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
|
||||
<table style="width:600px!important" class="table table-hover table-advance" >
|
||||
|
||||
<tr>
|
||||
<th>Tipo de Contrato</th>
|
||||
<th>Estatus</th>
|
||||
<th>Usuario</th>
|
||||
<th style="width:100px!important">Comandos</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">SubContratos</td>
|
||||
<td style="text-align: left">Activo</td>
|
||||
<td>Sistema</td>
|
||||
<td><a class="btn btn-circle btn-sm green" onclick="return MuestraModal()"><i class='fa fa-pencil' > </i></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Acarreos</td>
|
||||
<td style="text-align: left">Activo</td>
|
||||
<td>Sistema</td>
|
||||
<td><a class="btn btn-circle btn-sm green" onclick="return MuestraModal()"><i class='fa fa-pencil' > </i></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Limpieza</td>
|
||||
<td style="text-align: left">Activo</td>
|
||||
<td>Sistema</td>
|
||||
<td><a class="btn btn-circle btn-sm green" onclick="return MuestraModal()"><i class='fa fa-pencil' > </i></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Materiales</td>
|
||||
<td style="text-align: left">Activo</td>
|
||||
<td>Sistema</td>
|
||||
<td><a class="btn btn-circle btn-sm green" onclick="return MuestraModal()"><i class='fa fa-pencil' > </i></a></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<%-- <asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveGenero,Genero,Estatus" EmptyDataText="No se encontraron Géneros Registrados" ToolTip="Listado de Genero" CssClass="table table-striped table-advance table-hover" style="margin-top:-10px; text-align:center;width:100%;" GridLines="None" >
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Género">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlGenero" runat="server" Text='<%# Eval("Genero", "{0}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TxtGenero" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Genero") %>' ValidationGroup="GrpGV" Width="234px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVGenero" runat="server" ControlToValidate="TxtGenero" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Genero''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCGenero" runat="server" HighlightCssClass="vco" TargetControlID="RFVGenero" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Estado">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlEstado" runat="server" Text='<%# Eval("Estatus") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:CheckBox ID="ChkEstado" runat="server" Checked='<%# If (Eval("Estatus").ToString = "Activo", True, False) %>' />
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng", "{0:d}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Usuario">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Editar">
|
||||
<EditItemTemplate>
|
||||
<center>
|
||||
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpGV" />
|
||||
<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 OnClick="GvDatos_RowEditing" ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Eliminar">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" 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>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||
</asp:GridView>--%>
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="DivAgregarTiposContrato" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog" style="width: 450px;">
|
||||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpModalTiposD" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">
|
||||
<asp:Literal ID="LtlTituloModalTiposD" runat="server">Tipo contrato</asp:Literal></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtTipoSubcontrato" CssClass="form-control " runat="server" MaxLength="70" CausesValidation="true"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtTipoSubcontrato" runat="server" ControlToValidate="TxtTipoSubcontrato" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Sub Contrato''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTiposD"></asp:RequiredFieldValidator>
|
||||
<label for="GeneroTxt">Tipo Contrato:</label>
|
||||
<i></i>
|
||||
</div>
|
||||
<br ID="saltoDeLinea" runat="server" />
|
||||
<div ID="CheckActiveSection" runat="server" class="form-group form-md-line-input input-iconright">
|
||||
<label for="ChkEstatus">Estatus:</label>
|
||||
<asp:CheckBox ID="ChkEstatus" runat="server" CssClass="make-switchsd" data-size="small" Text=" " Checked="true" />
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<br />
|
||||
<div class="modal-footer">
|
||||
<asp:Button ID="BtnAgregarTiposDModal" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="GrpTiposD" />
|
||||
<button id="Button" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
|
||||
<script>
|
||||
function MuestraModal() {
|
||||
$('#DivAgregarTiposContrato').modal('show')
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
116
Edoc/CatTipoContratos.aspx.vb
Normal file
116
Edoc/CatTipoContratos.aspx.vb
Normal file
@@ -0,0 +1,116 @@
|
||||
Option Strict On
|
||||
|
||||
Imports System.Data
|
||||
Imports System.Linq
|
||||
Imports Extensiones
|
||||
|
||||
Partial Class Edoc_CatTipoContrato
|
||||
Inherits ClsPaginas
|
||||
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||
|
||||
If Not Page.IsPostBack Then
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Protected Sub BtnAgregarMotivo_Click(sender As Object, e As EventArgs) Handles BtnAgregarMotivoD.Click
|
||||
RegistraScript(String.Format("$('#{0}').modal();", "DivAgregarTiposContrato"))
|
||||
End Sub
|
||||
|
||||
Protected Sub LbAgregar_Click(sender As Object, e As System.EventArgs) Handles BtnAgregarTiposDModal.Click
|
||||
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
#Region "G V D A T O S"
|
||||
|
||||
'Protected Sub GvDatos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatos.RowDataBound
|
||||
' If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
' If e.Row.RowIndex = 0 Then
|
||||
' e.Row.Cells(0).Width = Unit.Pixel(250)
|
||||
' e.Row.Cells(1).Width = Unit.Pixel(100)
|
||||
' e.Row.Cells(2).Width = Unit.Pixel(100)
|
||||
' e.Row.Cells(3).Width = Unit.Pixel(100)
|
||||
' e.Row.Cells(4).Width = Unit.Pixel(100)
|
||||
' e.Row.Cells(5).Width = Unit.Pixel(61)
|
||||
' End If
|
||||
' e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Left
|
||||
' End If
|
||||
'End Sub
|
||||
|
||||
'Protected Sub GvDatos_RowDeleting(sender As Object, e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GvDatos.RowDeleting
|
||||
' Dim ObjGenero As New ClsRH
|
||||
' If ObjGenero.RemoveGenero(GvDatos.DataKeys(e.RowIndex).Value.ToString.ToEntero) Then
|
||||
' GvDatos.EditIndex = -1
|
||||
' ViewState("DTGenero") = ObjGenero.DtResultados
|
||||
' GlobalDTGenero = ObjGenero.DtResultados
|
||||
' Alert("El Género se eliminó correctamente.", TipoMensaje.MsgInformacion)
|
||||
' End If
|
||||
|
||||
' ObjGenero.Dispose()
|
||||
|
||||
' If ViewState("Orden").ToString() <> String.Empty Then
|
||||
' CargaGrid(ViewState("Orden").ToString())
|
||||
' Else
|
||||
' CargaGrid("")
|
||||
' End If
|
||||
'End Sub
|
||||
|
||||
'Protected Sub GvDatos_RowCancelingEdit(sender As Object, e As System.Web.UI.WebControls.GridViewCancelEditEventArgs) Handles GvDatos.RowCancelingEdit
|
||||
' GvDatos.EditIndex = -1
|
||||
' If ViewState("Orden").ToString() <> String.Empty Then
|
||||
' CargaGrid(ViewState("Orden").ToString())
|
||||
' Else
|
||||
' CargaGrid("")
|
||||
' End If
|
||||
'End Sub
|
||||
|
||||
'Protected Sub GvDatos_RowUpdating(sender As Object, e As EventArgs) Handles BtnEditarTiposDModal.Click
|
||||
' Dim ObjGenero As New ClsRH
|
||||
' Dim Genero As String = GeneroTxt.Text.Trim
|
||||
' Dim Estatus As Boolean = ChkEstatus.Checked
|
||||
' Dim CveGenero As Integer = CveGeneroAEditar
|
||||
|
||||
' If ObjGenero.UpdateGenero(Genero, Estatus, CveGenero) Then
|
||||
' GvDatos.EditIndex = -1
|
||||
' ViewState("DTGenero") = ObjGenero.DtResultados
|
||||
' GlobalDTGenero = ObjGenero.DtResultados
|
||||
' Alert("Los cambios se guardaron correctamente.", TipoMensaje.MsgInformacion)
|
||||
' End If
|
||||
|
||||
' ObjGenero.Dispose()
|
||||
|
||||
' If ViewState("Orden").ToString() <> String.Empty Then
|
||||
' CargaGrid(ViewState("Orden").ToString())
|
||||
' Else
|
||||
' CargaGrid("")
|
||||
' End If
|
||||
'End Sub
|
||||
|
||||
'Public Sub GvDatos_RowEditing(sender As Object, e As EventArgs)
|
||||
' BtnAgregarTiposDModal.Visible = False
|
||||
' BtnEditarTiposDModal.Visible = True
|
||||
' CheckActiveSection.Visible = True
|
||||
' saltoDeLinea.Visible = True
|
||||
|
||||
' Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow) 'obtenemos el renglon que acabamos de seleccionar
|
||||
' GeneroTxt.Text = GvRow.DataKey("Genero")
|
||||
' ChkEstatus.Checked = If(GvRow.DataKey("Estatus") = "Activo", True, False)
|
||||
' CveGeneroAEditar = Convert.ToInt32(GvRow.DataKey("CveGenero")) 'Guardamos en una propiedad el id del registro del cual haremos cambios, se guarda y se utiliza en el metodo "GvDatos_RowUpdating"
|
||||
|
||||
' UpDatos.Update()
|
||||
' If ViewState("Orden").ToString() <> String.Empty Then
|
||||
' CargaGrid(ViewState("Orden").ToString())
|
||||
' Else
|
||||
' CargaGrid("")
|
||||
' End If
|
||||
' RegistraScript(String.Format("$('#{0}').modal();", "DivAgregarTiposD"))
|
||||
'End Sub
|
||||
#End Region
|
||||
|
||||
|
||||
End Class
|
||||
Reference in New Issue
Block a user