This commit is contained in:
@@ -34,18 +34,6 @@ Public Class ClsEdocumentacion
|
||||
End Sub
|
||||
|
||||
|
||||
#End Region
|
||||
#Region "materialidad"
|
||||
|
||||
Public Function Materialidad_Tablero(cveEmpresa As Int32, anio As Int32, mes As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Materialidad_TableroGET", CommandType.StoredProcedure)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, cveEmpresa)
|
||||
addParameters("@Anio", SqlDbType.Int, anio)
|
||||
addParameters("@Mes", SqlDbType.Int, mes)
|
||||
retorno = RunQuery("Ocurrió un error al obtener el Materialidad_Tablero.")
|
||||
Return retorno
|
||||
End Function
|
||||
#End Region
|
||||
#Region "Propiedades"
|
||||
Public ReadOnly Property DSResultados() As DataSet
|
||||
@@ -559,6 +547,18 @@ Public Class ClsEdocumentacion
|
||||
End Function
|
||||
|
||||
|
||||
#Region "materialidad"
|
||||
|
||||
Public Function Materialidad_Tablero(cveEmpresa As Int32, anio As Int32, mes As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Materialidad_TableroGET", CommandType.StoredProcedure)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, cveEmpresa)
|
||||
addParameters("@Anio", SqlDbType.Int, anio)
|
||||
addParameters("@Mes", SqlDbType.Int, mes)
|
||||
retorno = RunQueryds("Ocurrió un error al obtener el materialidad tablero.")
|
||||
Return retorno
|
||||
End Function
|
||||
#End Region
|
||||
#Region "CRUD_Edoc_MaterialidadEnvios"
|
||||
Public Function Edoc_MaterialidadEnviosGet(cveMaterialidadEnvios As Int32, cveCliente As Int32, cveUsuario As Int32, cveEmpresa As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
|
||||
@@ -87,7 +87,66 @@ Public Class ClsNominas
|
||||
|
||||
#End Region
|
||||
|
||||
|
||||
#Region "CRUD_NomFonacot"
|
||||
Public Function NomFonacotGet(CveEmpresa As Integer, cveFonacot As Int32, cvePersonal As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Nom_FonacotGet", CommandType.StoredProcedure)
|
||||
addParameters("@CveFonacot", SqlDbType.Int, cveFonacot)
|
||||
addParameters("@CvePersonal", SqlDbType.Int, cvePersonal)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, CveEmpresa)
|
||||
retorno = RunQuery("Ocurrió un error al obtener el NomFonacot.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function NomFonacotAdd(CveEmpresa As Integer, cvePersonal As Int32, numeroCredito As String, descripcion As String, periodo As Int32, cveTipoCalculo As Int32, importeCredito As Decimal, importeFijo As Decimal, pagosHechos As Decimal, montoAcumulado As Decimal, saldo As Decimal, cveEstatus As Int32, observaciones As String, cveUsuarioIng As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Nom_FonacotAdd", CommandType.StoredProcedure)
|
||||
addParameters("@CvePersonal", SqlDbType.Int, cvePersonal)
|
||||
addParameters("@NumeroCredito", SqlDbType.VarChar, numeroCredito)
|
||||
addParameters("@Descripcion", SqlDbType.VarChar, descripcion)
|
||||
addParameters("@Periodo", SqlDbType.Int, periodo)
|
||||
addParameters("@CveTipoCalculo", SqlDbType.Int, cveTipoCalculo)
|
||||
addParameters("@ImporteCredito", SqlDbType.Money, importeCredito)
|
||||
addParameters("@ImporteFijo", SqlDbType.Money, importeFijo)
|
||||
addParameters("@PagosHechos", SqlDbType.Money, pagosHechos)
|
||||
addParameters("@MontoAcumulado", SqlDbType.Money, montoAcumulado)
|
||||
addParameters("@Saldo", SqlDbType.Money, saldo)
|
||||
addParameters("@CveEstatus", SqlDbType.Int, cveEstatus)
|
||||
addParameters("@Observaciones", SqlDbType.VarChar, observaciones)
|
||||
addParameters("@CveUsuarioIng", SqlDbType.Int, cveUsuarioIng)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, CveEmpresa)
|
||||
retorno = RunQuery("Ocurrió un error al agregar el NomFonacot.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function NomFonacotUp(CveEmpresa As Integer, cveFonacot As Int32, cvePersonal As Int32, numeroCredito As String, descripcion As String, periodo As Int32, cveTipoCalculo As Int32, importeCredito As Decimal, importeFijo As Decimal, pagosHechos As Decimal, montoAcumulado As Decimal, saldo As Decimal, cveEstatus As Int32, observaciones As String, cveUsuarioIng As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Nom_FonacotUp", CommandType.StoredProcedure)
|
||||
addParameters("@CveFonacot", SqlDbType.Int, cveFonacot)
|
||||
addParameters("@CvePersonal", SqlDbType.Int, cvePersonal)
|
||||
addParameters("@NumeroCredito", SqlDbType.VarChar, numeroCredito)
|
||||
addParameters("@Descripcion", SqlDbType.VarChar, descripcion)
|
||||
addParameters("@Periodo", SqlDbType.Int, periodo)
|
||||
addParameters("@CveTipoCalculo", SqlDbType.Int, cveTipoCalculo)
|
||||
addParameters("@ImporteCredito", SqlDbType.Money, importeCredito)
|
||||
addParameters("@ImporteFijo", SqlDbType.Money, importeFijo)
|
||||
addParameters("@PagosHechos", SqlDbType.Money, pagosHechos)
|
||||
addParameters("@MontoAcumulado", SqlDbType.Money, montoAcumulado)
|
||||
addParameters("@Saldo", SqlDbType.Money, saldo)
|
||||
addParameters("@CveEstatus", SqlDbType.Int, cveEstatus)
|
||||
addParameters("@Observaciones", SqlDbType.VarChar, observaciones)
|
||||
addParameters("@CveUsuarioIng", SqlDbType.Int, cveUsuarioIng)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, CveEmpresa)
|
||||
retorno = RunQuery("Ocurrió un error al actualizar el NomFonacot.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function NomFonacotRemove(CveEmpresa As Integer, cveFonacot As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Nom_FonacotRemove", CommandType.StoredProcedure)
|
||||
addParameters("@CveFonacot", SqlDbType.Int, cveFonacot)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, CveEmpresa)
|
||||
retorno = RunQuery("Ocurrió un error al eliminar el NomFonacot.")
|
||||
Return retorno
|
||||
End Function
|
||||
#End Region
|
||||
Public Function IniciaTransacSQL() As SqlTransaction
|
||||
If SqlTransacc Is Nothing Then SqlTransacc = SqlConexion.BeginTransaction()
|
||||
Return SqlTransacc
|
||||
|
||||
@@ -125,6 +125,60 @@ Public Class ClsRH
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
Public Sub addParameters(varsql As String, sqltipe As SqlDbType, valor As Object)
|
||||
SqlAdapter.SelectCommand.Parameters.Add(varsql, sqltipe).Value = valor
|
||||
End Sub
|
||||
Public Function RunQuery(errormsg As String) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
Try
|
||||
SqlAdapter.Fill(Data)
|
||||
retorno = True
|
||||
Catch ex As Exception
|
||||
retorno = False
|
||||
OnError(errormsg, ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||
End Try
|
||||
Return retorno
|
||||
End Function
|
||||
#Region "CRUD_VacacionesEmpresas"
|
||||
Public Function VacacionesEmpresasGet(cveEmpresa As Int32, inicio As Int32, fin As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_RH_VacacionesEmpresasGet", CommandType.StoredProcedure)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, cveEmpresa)
|
||||
addParameters("@Inicio", SqlDbType.Int, inicio)
|
||||
addParameters("@Fin", SqlDbType.Int, fin)
|
||||
retorno = RunQuery("Ocurrió un error al obtener el Vacaciones Empresas.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function VacacionesEmpresasAdd(cveEmpresa As Int32, inicio As Int32, fin As Int32, diasVacaciones As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_RH_VacacionesEmpresasAdd", CommandType.StoredProcedure)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, cveEmpresa)
|
||||
addParameters("@Inicio", SqlDbType.Int, inicio)
|
||||
addParameters("@Fin", SqlDbType.Int, fin)
|
||||
addParameters("@DiasVacaciones", SqlDbType.Int, diasVacaciones)
|
||||
retorno = RunQuery("Ocurrió un error al agregar el Vacaciones Empresas.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function VacacionesEmpresasUp(cveEmpresa As Int32, inicio As Int32, fin As Int32, diasVacaciones As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_RH_VacacionesEmpresasUp", CommandType.StoredProcedure)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, cveEmpresa)
|
||||
addParameters("@Inicio", SqlDbType.Int, inicio)
|
||||
addParameters("@Fin", SqlDbType.Int, fin)
|
||||
addParameters("@DiasVacaciones", SqlDbType.Int, diasVacaciones)
|
||||
retorno = RunQuery("Ocurrió un error al actualizar el Vacaciones Empresas.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function VacacionesEmpresasRemove(cveEmpresa As Int32, inicio As Int32, fin As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_RH_VacacionesEmpresasRemove", CommandType.StoredProcedure)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, cveEmpresa)
|
||||
addParameters("@Inicio", SqlDbType.Int, inicio)
|
||||
addParameters("@Fin", SqlDbType.Int, fin)
|
||||
retorno = RunQuery("Ocurrió un error al eliminar el Vacaciones Empresas.")
|
||||
Return retorno
|
||||
End Function
|
||||
#End Region
|
||||
Public Function AgroOrigenGet(CveEmpresa As Int32, CveOrigen As Integer, Estatus As Integer, CveTipoNomina As Integer, CveSubProyecto As Integer, GPO As Integer) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Agro_OrigenGet", CommandType.StoredProcedure)
|
||||
|
||||
@@ -344,7 +344,6 @@ Public Class ClsSisEmpresas
|
||||
_Empresa.CodigoRegimenFiscal = Data.Rows(0)("CodigoRegimenFiscal").ToString
|
||||
_Empresa.RFC = Data.Rows(0)("RFC").ToString
|
||||
_Empresa.CURP = Data.Rows(0)("CURP").ToString
|
||||
_Empresa.RegistroPatronal = Data.Rows(0)("RegistroPatronal").ToString.ToString
|
||||
_Empresa.Telefono = Data.Rows(0)("Telefono").ToString
|
||||
_Empresa.Contacto = Data.Rows(0)("Contacto").ToString
|
||||
_Empresa.Mail = Data.Rows(0)("Mail").ToString
|
||||
|
||||
@@ -16,7 +16,6 @@ Public Class Empresa
|
||||
Public Property CP As Integer
|
||||
Public Property RFC As String
|
||||
Public Property CURP As String
|
||||
Public Property RegistroPatronal As String
|
||||
Public Property Telefono As String
|
||||
Public Property Contacto As String
|
||||
Public Property Mail As String
|
||||
|
||||
@@ -173,6 +173,7 @@ Public Class LogicNominas
|
||||
End If
|
||||
If continuar AndAlso objPersonal.GetPersonal(CvePersonal, UsuarioActual.CveEmpresa) AndAlso objPersonal.DtResultados.Rows.Count > 0 Then
|
||||
RFC = objPersonal.RFC
|
||||
cfdi.Emisor.RegistroPatronal = objPersonal.DtResultados.Rows(0)("RegistroPatronal").ToString()
|
||||
NombreCompleto = objPersonal.NombreCompleto
|
||||
|
||||
Sindicalizado = objPersonal.DtResultados.Rows(0)("Sindicalizado").ToString().ToUpper().Contiene("TRUE", "1")
|
||||
@@ -310,7 +311,6 @@ Public Class LogicNominas
|
||||
cfdi.Nomina.NumDiasPagados = DiasPagados
|
||||
cfdi.Emisor.Nombre = UsuarioActual.Empresa.Empresa
|
||||
cfdi.Emisor.RFC = UsuarioActual.Empresa.RFC
|
||||
cfdi.Emisor.RegistroPatronal = UsuarioActual.Empresa.RegistroPatronal
|
||||
cfdi.Emisor.RegimenFiscal = UsuarioActual.Empresa.CodigoRegimenFiscal
|
||||
'aplica persona fisica debe de tener CURP
|
||||
If cfdi.Emisor.RegimenFiscal.Contiene("605", "606", "608", "611", "612", "614", "616", "621", "622", "629", "630", "615") Then
|
||||
|
||||
@@ -1958,7 +1958,7 @@ Partial Class Bancos_IE
|
||||
cfdi.Nomina.NumDiasPagados = 1
|
||||
cfdi.Emisor.Nombre = UsuarioActual.Empresa.Empresa
|
||||
cfdi.Emisor.RFC = UsuarioActual.Empresa.RFC
|
||||
cfdi.Emisor.RegistroPatronal = UsuarioActual.Empresa.RegistroPatronal
|
||||
cfdi.Emisor.RegistroPatronal = objPersonal.DtResultados.Rows(0)("RegistroPatronal").ToString()
|
||||
cfdi.Emisor.RegimenFiscal = UsuarioActual.Empresa.CodigoRegimenFiscal
|
||||
|
||||
'aplica persona fisica debe de tener CURP
|
||||
@@ -2277,7 +2277,7 @@ Partial Class Bancos_IE
|
||||
|
||||
' If Msg = String.Empty Then
|
||||
' 'Nodo emisor
|
||||
' Msg = CFDi.ObjCompNomina12.CargarEmisor("", UsuarioActual.Empresa.RegistroPatronal, UsuarioActual.Empresa.RFC)
|
||||
' Msg = CFDi.ObjCompNomina12.CargarEmisor("", objPersonal.DtResultados.Rows(0)("RegistroPatronal").ToString(), UsuarioActual.Empresa.RFC)
|
||||
' 'If Msg = String.Empty Then Msg = CFDi.EmisorRegimen(UsuarioActual.Empresa.CodigoRegimenFiscal)
|
||||
' If Msg = String.Empty Then
|
||||
' 'Nodo Entidad SNCF
|
||||
|
||||
@@ -1967,7 +1967,7 @@ Partial Class Compras_ReembolsosComprobaciones
|
||||
cfdi.Nomina.NumDiasPagados = 1
|
||||
cfdi.Emisor.Nombre = UsuarioActual.Empresa.Empresa
|
||||
cfdi.Emisor.RFC = UsuarioActual.Empresa.RFC
|
||||
cfdi.Emisor.RegistroPatronal = UsuarioActual.Empresa.RegistroPatronal
|
||||
cfdi.Emisor.RegistroPatronal = objPersonal.DtResultados.Rows(0)("RegistroPatronal").ToString()
|
||||
cfdi.Emisor.RegimenFiscal = UsuarioActual.Empresa.CodigoRegimenFiscal
|
||||
|
||||
'aplica persona fisica debe de tener CURP
|
||||
|
||||
@@ -1,18 +1,84 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="TableroMaterialidad.aspx.cs" Inherits="Documentacion_TableroMaterialidad" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" Runat="Server">
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" Runat="Server">
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<style>
|
||||
.Materialidadbody .page-bar .page-breadcrumb > li > a,
|
||||
.Materialidadbody .page-bar .page-breadcrumb > li > span,
|
||||
.Materialidadbody .page-bar .page-breadcrumb > li > i {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.Materialidadbody .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu > li.active > a:hover,
|
||||
.Materialidadbody .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu > li.active.open > a:hover,
|
||||
.Materialidadbody .page-sidebar .page-sidebar-menu > li.active > a:hover,
|
||||
.Materialidadbody .page-sidebar .page-sidebar-menu > li.active.open > a:hover,
|
||||
.Materialidadbody .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu > li.active > a,
|
||||
.Materialidadbody .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu > li.active.open > a,
|
||||
.Materialidadbody .page-sidebar .page-sidebar-menu > li.active > a,
|
||||
.Materialidadbody .page-sidebar .page-sidebar-menu > li.active.open > a,
|
||||
.Materialidadbody .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu > li.active > a:hover,
|
||||
.Materialidadbody .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu > li.active.open > a:hover,
|
||||
.Materialidadbody .page-sidebar .page-sidebar-menu > li.active > a:hover,
|
||||
.Materialidadbody .page-sidebar .page-sidebar-menu > li.active.open > a:hover,
|
||||
.Materialidadbody .page-bar {
|
||||
background-color: #8e5fa2;
|
||||
}
|
||||
|
||||
|
||||
.divMaterialida tr td:nth-child(n+2) {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.divMaterialida tr td:nth-last-child(2) {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.thCliente {
|
||||
color: #FFFFFF;
|
||||
background-color: #258fd7 !important;
|
||||
border-top-color: #22958b !important;
|
||||
}
|
||||
|
||||
.thEmpleado {
|
||||
color: #FFFFFF;
|
||||
background-color: #22958b !important;
|
||||
border-top-color: #22958b !important;
|
||||
}
|
||||
|
||||
/*.divMaterialida div.ADScroller-header {
|
||||
border-right-color: #22958b!important;
|
||||
}*/
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" Runat="Server">
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" Runat="Server">
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" Runat="Server">
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
|
||||
<li>
|
||||
<asp:LinkButton runat="server" ID="BtnAgregarDocumento" OnClick="BtnAgregarDocumento_Click" Text="<i class='fa fa-plus'></i> Agregar tipo documento"></asp:LinkButton>
|
||||
</li>
|
||||
<li>
|
||||
<asp:LinkButton ID="LckOpModalDoctos" OnClick="LckOpModalDoctos_Click" runat="server"><i class="fa fa-upload" aria-hidden="true"></i>Cargar Doctos</asp:LinkButton>
|
||||
<%--<asp:HyperLink ID="HyperLink1" onclick="$('#ModalDoctos').modal();" NavigateUrl="#" runat="server"><i class="fa fa-upload" aria-hidden="true"></i>Cargar Doctos</asp:HyperLink>--%>
|
||||
</li>
|
||||
<li>
|
||||
<asp:LinkButton ID="LckOpModalDoctosPDFXML" OnClick="LckOpModalDoctosPDFXML_Click" runat="server"><i class="fa fa-upload" aria-hidden="true"></i>Cargar XML PDF</asp:LinkButton>
|
||||
<%--<asp:HyperLink ID="HypopenModal" onclick="$('#ModalDoctosxmlpdf').modal();" NavigateUrl="#" runat="server"><i class="fa fa-upload" aria-hidden="true"></i>Cargar XML PDF</asp:HyperLink>--%>
|
||||
</li>
|
||||
<li>
|
||||
<asp:HyperLink ID="hypEnviarDocto" onclick="EnviarCorreo();" CssClass="" runat="server">Enviar</asp:HyperLink></li>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" Runat="Server">
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" Runat="Server">
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||
<asp:UpdatePanel ID="upDatos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
@@ -65,8 +131,10 @@
|
||||
<div class="portlet light xspadding bordered " id="pnlmaterialidad">
|
||||
<div class="portlet-title">
|
||||
<div class="caption ">
|
||||
<i class="fa fa-bookmark font-yellow-gold"></i>
|
||||
<span class="caption-subject font-yellow-gold bold uppercase">Materialidad informacion del periodo </span>
|
||||
<i class="fa fa-bookmark font-purple"></i>
|
||||
<span class="caption-subject font-purple bold uppercase">informacion
|
||||
<asp:Literal ID="LtlPeriodo" runat="server"></asp:Literal>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="tools">
|
||||
@@ -77,10 +145,6 @@
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<div style="float: right;">
|
||||
<asp:TextBox CssClass="TxtBusqueda form-control input-sm" runat="server" onkeyup="FiltrarTablaFreezcol('.TxtBusqueda','.GvNominas')" Style="display: inline-block; margin-right: -20px; width: 150px;"></asp:TextBox>
|
||||
<a href="javascript:;" onclick="FiltrarTablaFreezcol('.TxtBusqueda','.GvNominas')" style="margin-top: -3px;" class="btn btn-circle btn-sm font-bold yellow-gold"><i class="icon-magnifier" style="font-weight: bold;"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom ">
|
||||
<div class="row">
|
||||
@@ -88,8 +152,8 @@
|
||||
<div class="portlet light xspadding bordered " id="pnldl">
|
||||
<div class="portlet-title">
|
||||
<div class="caption ">
|
||||
<i class="fa fa-bookmark font-yellow-gold"></i>
|
||||
<span class="caption-subject font-yellow-gold bold uppercase">Documentos Generales</span>
|
||||
<i class="fa fa-bookmark font-purple"></i>
|
||||
<span class="caption-subject font-purple bold uppercase">Resumen</span>
|
||||
</div>
|
||||
|
||||
<div class="tools">
|
||||
@@ -107,33 +171,79 @@
|
||||
</div>
|
||||
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom ">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 ">
|
||||
<div class="indicador2 red">
|
||||
<div class="col-sm-3">
|
||||
<div class="dashboard-stat purple">
|
||||
<div class="visual"><i class="fa fa-file"></i></div>
|
||||
<div class="value">
|
||||
<asp:Label ID="LblNumProyectos" ClientIDMode="Static" runat="server" Text="0"></asp:Label>
|
||||
<div class="details">
|
||||
<div class="number">Documentos</div>
|
||||
<div class="desc">
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title=""></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Total">
|
||||
<asp:Literal ID="LtlDoctosTotal" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Entregados">
|
||||
<asp:Literal ID="LtlDoctosEntregados" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Restantes">
|
||||
<asp:Literal ID="LtlDoctosRestantes" runat="server"></asp:Literal></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="details">Documentos Generales </div>
|
||||
<div class="more">Documentos <i class="m-icon-swapright m-icon-white"></i></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="col-sm-3">
|
||||
<div class="dashboard-stat red">
|
||||
<div class="visual"><i class="fa fa-file"></i></div>
|
||||
<div class="details">
|
||||
<div class="number">Generales</div>
|
||||
<div class="desc">
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title=""></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Total">
|
||||
<asp:Literal ID="LtlDoctosGralesTotal" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Entregados">
|
||||
<asp:Literal ID="LtlDoctosGralesEntregados" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Restantes">
|
||||
<asp:Literal ID="LtlDoctosGralesRestantes" runat="server"></asp:Literal></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="more">Documentos <i class="m-icon-swapright m-icon-white"></i></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
|
||||
<div class="indicador2 bluesky">
|
||||
<div class="dashboard-stat blue">
|
||||
<div class="visual"><i class="fa fa-file-archive"></i></div>
|
||||
<div class="value">
|
||||
<asp:Label ID="LblSaldoVigente" ClientIDMode="Static" runat="server" Text="0"></asp:Label>
|
||||
<div class="details">
|
||||
<div class="number">Por cliente</div>
|
||||
<div class="desc">
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title=""></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Total">
|
||||
<asp:Literal ID="LtlDoctosXclienteTotal" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Entregados">
|
||||
<asp:Literal ID="LtlDoctosXclienteEntregados" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Restantes">
|
||||
<asp:Literal ID="LtlDoctosXclienteRestantes" runat="server"></asp:Literal></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="details">Cargados </div>
|
||||
<div class="more">Documentos <i class="m-icon-swapright m-icon-white"></i></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="col-sm-3">
|
||||
|
||||
<div class="indicador2 green">
|
||||
<div class="dashboard-stat green">
|
||||
<div class="visual"><i class="fa fa-file-excel"></i></div>
|
||||
<div class="value">
|
||||
<asp:Label ID="LblValorGarantias" ClientIDMode="Static" runat="server" Text="0"></asp:Label>
|
||||
<div class="details">
|
||||
<div class="number">Por empleado</div>
|
||||
<div class="desc">
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title=""></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Total">
|
||||
<asp:Literal ID="LtlDoctosXEmplTotal" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Entregados">
|
||||
<asp:Literal ID="LtlDoctosXEmplEntregados" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Restantes">
|
||||
<asp:Literal ID="LtlDoctosXEmplRestantes" runat="server"></asp:Literal></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="details">Faltantes </div>
|
||||
<div class="more">Documentos <i class="m-icon-swapright m-icon-white"></i></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -147,6 +257,93 @@
|
||||
<ajax:TabContainer ID="TabCGeneral" runat="server">
|
||||
<ajax:TabPanel ID="TabClientes" runat="server" HeaderText="Clientes">
|
||||
<ContentTemplate>
|
||||
<div class="divMaterialida">
|
||||
<table class="table table-striped table-hover Widthall" id="GVMaterialidadHeader">
|
||||
<tr class="Titulos" style="line-height: 0px; height: 2px;">
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th class="thCliente"></th>
|
||||
<th class="thCliente"></th>
|
||||
<th class="thEmpleado"></th>
|
||||
<th class="thEmpleado"></th>
|
||||
<th class="thEmpleado"></th>
|
||||
<th class="thEmpleado"></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr class="Titulos">
|
||||
<th colspan="2"></th>
|
||||
<th class="thCliente" colspan="2">Documentos por cliente</th>
|
||||
<th class="thEmpleado" colspan="4">Documentos por empleado</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</table>
|
||||
<asp:GridView ID="GVMaterialidad" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
||||
data-tableheader="#GVMaterialidadHeader" ShowHeaderWhenEmpty="true" OnRowDataBound="GVMaterialidad_RowDataBound"
|
||||
DataKeyNames="CveCliente,Confactura,ConAsistencia,Cliente,DoctosporClientes,DoctosporClientesFaltantes,Doctosporempleado,DoctosporempleadosFaltantes,NoEmpleados,NominasFaltantes,NominasCapturadas">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Cliente">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lblcliente" OnClick="lblcliente_Click" data-toggle="tooltip" ToolTip="Empleados" runat="server" Text='<%# Eval("Cliente")%>'> </asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="No Empleados">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("NoEmpleados")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-CssClass="thCliente" HeaderText="Total">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("DoctosporClientes")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-CssClass="thCliente" HeaderText="Faltantes">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("DoctosporClientesFaltantes")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-CssClass="thEmpleado" HeaderText="Total">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("Doctosporempleado")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-CssClass="thEmpleado" HeaderText="Faltantes">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("DoctosporempleadosFaltantes")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-CssClass="thEmpleado" HeaderText="Nominas Faltantes">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("NominasFaltantes")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-CssClass="thEmpleado" HeaderText="Nominas Capturadas">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("NominasCapturadas")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LnkDownFiles" Visible='<%# (Eval("CveCliente").ToString()!="0" )%>' runat="server" ToolTip="Descargar Paquete de archivos" data-toggle="tooltip"
|
||||
CssClass="btn btn-circle btn-xs blue" Text="<i class='fa fa-download'></i>" OnClick="LnkDownFiles_Click" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Se envio">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Visible='<%# (Eval("CveCliente").ToString()!="0" )%>' Text='<%# Eval("SeEnvio")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox Checked="true" Visible='<%# (Eval("CveCliente").ToString()!="0" )%>' CssClass="Chkenviardocto" runat="server" data-cvecliente='<%# Eval("CveCliente") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel ID="TaDocumentacion" runat="server" HeaderText="Documentos">
|
||||
@@ -174,9 +371,580 @@
|
||||
</ajax:TabContainer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<asp:TextBox ID="TxtClientescorreo" CssClass="hidden TxtClientescorreo" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtcveClienteCorreo" CssClass="hidden TxtcveClienteCorreo" runat="server"></asp:TextBox>
|
||||
<%--<asp:Button ID="BtnEnviarDoctos" UseSubmitBehavior="false" OnClick="BtnEnviarDoctos_Click" runat="server" Text="Enviar" CssClass="btn btn-primary hidden BtnEnviarDoctos" />--%>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<div id="ModalDoctosxmlpdf" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Agregar documentos XML PDF Timbrados.</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<asp:UpdatePanel runat="server" ID="Upxmlpdf" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="alert alert-warning" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||||
<strong style="font-size: 20px; margin-right: 25px;">Información: </strong>
|
||||
Los documentos cargados serán relacionados en el periodo:
|
||||
<asp:Literal runat="server" ID="LtlPeriodoXMLPDF"></asp:Literal>
|
||||
</div>
|
||||
<div class="portlet light smmallpadding bordered procesardiv">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-download font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Paso 1: Procesar 'ZIP'</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding ">
|
||||
<div>
|
||||
<asp:TextBox ID="Anexoxmlpdf" CssClass="ADSdropzone hidden" data-maxfilesize="500" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<asp:LinkButton ID="LnkCargarZip" CssClass="btn btn-success" OnClick="LnkCargarZip_Click" runat="server">Procesar</asp:LinkButton>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet light smmallpadding bordered guardardiv">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-download font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Paso 2: Guardar</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="expand" data-original-title="" title=""></a>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding" style="display: none">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 col-sm-offset-4">
|
||||
<div class="dashboard-stat red-intense">
|
||||
<div class="visual"><i class="fa fa-bar-chart-o"></i></div>
|
||||
<div class="details">
|
||||
<div class="number">Documentos</div>
|
||||
<div class="desc">
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="XML">
|
||||
<asp:Literal ID="LtlNoXml" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="PDF">
|
||||
<asp:Literal ID="LtlNoPDF" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Todos">
|
||||
<asp:Literal ID="LtlNoDoctos" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Otros">
|
||||
<asp:Literal ID="LtlOtrosDoctos" runat="server"></asp:Literal></label>
|
||||
</div>
|
||||
</div>
|
||||
<a class="more" href="javascript:;" data-toggle="dropdown" data-hover="dropdown" data-close-others="true" tabindex="0">Ver Más <i class="m-icon-swapright m-icon-white"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<asp:Panel runat="server" ID="pnlinconsistencias" Visible="false" CssClass="alert alert-warning" Style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||||
<strong style="font-size: 20px; margin-right: 25px;">Información: </strong>Se encontraron inconsistencias en los documentos cargados, solo se guardaran los archivos sin inconsistencias.
|
||||
</asp:Panel>
|
||||
<ajax:TabContainer ID="Tabsmodal" runat="server" Width="100%" AutoPostBack="True">
|
||||
<ajax:TabPanel ID="TabDoctos" runat="server" HeaderText="Documentos">
|
||||
<ContentTemplate>
|
||||
|
||||
<asp:GridView ID="GVmaterialidadDoctos" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD" AutoGenerateColumns="False" OnRowDataBound="GVmaterialidadDoctos_RowDataBound"
|
||||
DataKeyNames="FolioFiscal,nofiles,archivoXML,archivoPDF,Receptor,RfcReceptor,Emisor,RfcEmisor,SubTotal,Descuento,Total,Serie,Folio,Fecha,FechaPago,FechaInicio,FechaFin,TotalPercepciones,TotalDeducciones,NumDiasPagados,CURP,NSS,TN,NDP,TP,Periodo,PeriodoOk,CvePersonal,CvePeriodo,CveNomina"
|
||||
data-height="250">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Folio Fiscal">
|
||||
<ItemTemplate>
|
||||
<asp:Label CssClass="spanfoliofiscal" runat="server" Text='<%# Eval("FolioFiscal")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Doctos">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("nofiles")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="XML">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("archivoXML").ToString().Length>0?"Si":"No" %>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="PDF">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("archivoPDF").ToString().Length>0?"Si":"No" %>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Empleado">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("Receptor")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="RFC">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("RfcReceptor")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CURP">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("CURP")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="NSS">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("NSS")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Emisor">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("Emisor")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Neto">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("Total","{0:N2}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Periodo">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("PeriodoText")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>
|
||||
Fecha<br />
|
||||
inicio
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("FechaInicio","{0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>
|
||||
Fecha<br />
|
||||
fin
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("FechaFin","{0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>
|
||||
Fecha<br />
|
||||
pago
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("FechaPago","{0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>
|
||||
Días<br />
|
||||
pago
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("NumDiasPagados")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel ID="Tabperiodos" runat="server" HeaderText="Periodos sin registrar">
|
||||
<ContentTemplate>
|
||||
|
||||
<asp:GridView ID="GvPeriodo" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD" AutoGenerateColumns="False"
|
||||
DataKeyNames="FechaInicio,FechaFin,TN,TP" data-height="250">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Fecha Inicio">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblfechaInicio" runat="server" Text='<%# Eval("FechaInicio","{0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha Fin">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblfechaFin" runat="server" Text='<%# Eval("FechaFin","{0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel ID="TabPersonal" runat="server" HeaderText="Personal sin registrar">
|
||||
<ContentTemplate>
|
||||
|
||||
<asp:GridView ID="GvPersonal" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD" AutoGenerateColumns="False"
|
||||
DataKeyNames="CvePersonal,Receptor,CURP,NombreCompleto,Codigo" data-height="250">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Empleado">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblreceptor" runat="server" Text='<%# Eval("Receptor")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CURP">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblcURP" runat="server" Text='<%# Eval("CURP")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel ID="TabConceptos" runat="server" HeaderText="Conceptos sin registrar" Visible="false">
|
||||
</ajax:TabPanel>
|
||||
</ajax:TabContainer>
|
||||
|
||||
<div class="text-center">
|
||||
<asp:LinkButton ID="LnkProcesarDoctos" CssClass="btn btn-success" OnClick="LnkProcesarDoctos_Click" runat="server">Guardar</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<%--<asp:Button ID="BtnAddClienteDocumentoxmlpd" UseSubmitBehavior="false" OnClick="BtnAddClienteDocumentoxmlpd_Click" runat="server" 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="ModalDoctos" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content" style="width: 700px;">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Agregar documento</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<asp:UpdatePanel runat="server" ID="UpModalDoctos" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="alert alert-warning" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||||
<strong style="font-size: 20px; margin-right: 25px;">Información: </strong>
|
||||
Los documentos cargados serán relacionados en el periodo:
|
||||
<asp:Literal runat="server" ID="Literal1"></asp:Literal>
|
||||
</div>
|
||||
|
||||
Tipo documento
|
||||
<asp:DropDownList ID="DdlDocumentacion" DataValueField="CveDocumentacion" DataTextField="Documentacion" Width="100%" runat="server" CssClass="form-control select2me"></asp:DropDownList>
|
||||
<div>
|
||||
<br />
|
||||
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" Text="" runat="server"></asp:TextBox>
|
||||
Observaciones
|
||||
<asp:TextBox ID="TxtObservaciones" TextMode="MultiLine" Rows="4" CssClass="form-control" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="BtnAddClienteDocumento" UseSubmitBehavior="false" OnClick="BtnAddClienteDocumento_Click" runat="server" 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="ModalShowDoctos" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content" style="width: 700px;">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Documentos</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<asp:UpdatePanel runat="server" ID="UpModalshowdoctos" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
|
||||
<span class="doctitulo"></span>
|
||||
<asp:TextBox ID="TxtcveCliente" CssClass="hidden TxtcveCliente" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtcveDocumentacion" CssClass="hidden TxtcveDocumentacion" runat="server"></asp:TextBox>
|
||||
<asp:Button ID="btnshowdoc" UseSubmitBehavior="false" CssClass="hidden btnshowdoc" OnClick="btnshowdoc_Click" runat="server" Text="Button" />
|
||||
|
||||
<div class="portlet light smmallpadding bordered procesardiv">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-download font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Documentos</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding ">
|
||||
<asp:GridView ID="GVdocelect" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall mysmallbtn" AutoGenerateColumns="False"
|
||||
ShowHeaderWhenEmpty="true"
|
||||
EmptyDataText="No se encontraron documentos"
|
||||
DataKeyNames="CveDocumentacionElectronica,CveDocumentacion,Documentacion,DocumentacionFormato,Orden,Adjunto,CveDocumentacionTipo,Requerido,DocumentacionTipo,SCompleto,Estatus,Observacion,Fecha,FechaIng,FechaLimite,FechaVigencia,Usuario,DiasLimite,CveVenta,Observacion2,AplicaDiasLimite,AplicaFechaVencimiento,Modulo">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Documento">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("Observacion2")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Observacion">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblobservacion" runat="server" Text='<%# Eval("Observacion")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField HeaderText="Archivo" ItemStyle-Width="50">
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink ID="HypFile" onclick='<%# string.Format("downfile(\"{0}\",\"{1}\");",Eval("Adjunto"),Eval("Observacion2"))%>' CssClass="btn btn-circle btn-sm blue mysmallbtn" runat="server"><i class="fa fa-download"></i></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LnkEliminardocto" OnClick="LnkEliminardocto_Click" CssClass="btn btn-circle btn-sm red mysmallbtn" Text="<i class='icon-trash'></i>" runat="server" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el documento?" data-btn-ok-label="si" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet light smmallpadding bordered procesardiv">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-download font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Historial</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding ">
|
||||
|
||||
<asp:GridView ID="GVMaterialidadEnvios" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
||||
DataKeyNames="CveMaterialidadEnvios,CveCliente,Periodo,Noarchivos,Observacion,FechaIng,CveUsuario,CveEmpresa">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Fecha ">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblfechaIng" runat="server" Text='<%# Eval("FechaIng","{0:dd/MM/yyyy hh}:{0:mm}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Noarchivos">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblnoarchivos" runat="server" Text='<%# Eval("Noarchivos")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Observacion">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblobservacion" runat="server" Text='<%# Eval("Observacion")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Usuario">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblusuario" runat="server" Text='<%# Eval("Usuario")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<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 tipo 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>
|
||||
<asp:Label AssociatedControlID="Txtdocumentacion" runat="server" Text="Documento:"></asp:Label>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlDocumentacionTipo" runat="server" Width="100%" CssClass=" select2me form-control ">
|
||||
<asp:ListItem Value="51" Text="Generales"></asp:ListItem>
|
||||
<asp:ListItem Value="58" Text="Por cliente"></asp:ListItem>
|
||||
<asp:ListItem Value="59" Text="Por cliente(nivel empleado)"></asp:ListItem>
|
||||
</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>
|
||||
<asp:Label AssociatedControlID="DdlDocumentacionTipo" runat="server" Text="Tipo de documento:"></asp:Label>
|
||||
</div>
|
||||
<div class="hidden">
|
||||
|
||||
<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="" />
|
||||
<asp:Label AssociatedControlID="TxtOrden" runat="server" Text="Orden:"></asp: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="" />
|
||||
<asp:Label AssociatedControlID="TxtDiasLimite" runat="server" Text="Dias Limite:"></asp: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="" />
|
||||
<asp:Label AssociatedControlID="TxtPeriodicidad" runat="server" Text="Periodicidad:"></asp: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="">
|
||||
<asp:TextBox ID="TxtFileDocumentacion" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<asp:Button ID="BtnAgregarDocumentoModal" runat="server" OnClick="BtnAgregarDocumentoModal_Click" class="btn btn-success" Text="Agregar" ValidationGroup="GrpEscolaridad" />
|
||||
<button type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<asp:TextBox ID="TxtDoctoName" CssClass="hidden TxtDoctoName" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtCveDocumentacionElectronica" CssClass="hidden TxtCveDocumentacionElectronica" runat="server"></asp:TextBox>
|
||||
<asp:Button ID="BtnDocumentacionElectronica" UseSubmitBehavior="false" CssClass="hidden BtnDocumentacionElectronica" OnClick="BtnDocumentacionElectronica_Click" runat="server" Text="Button" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" Runat="Server">
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script>$('body').removeClass('Materialidadbody').addClass('Materialidadbody')</script>
|
||||
<script>
|
||||
var showhideprocesarguardar = 0;
|
||||
function openguardar() {
|
||||
if (showhideprocesarguardar == 1) {
|
||||
materialidadshowhide('.guardardiv', 1)
|
||||
materialidadshowhide('.procesardiv', 0)
|
||||
} else {
|
||||
materialidadshowhide('.guardardiv', 0)
|
||||
materialidadshowhide('.procesardiv', 1)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function EnviarCorreo() {
|
||||
let clientes = '';
|
||||
let coma = ''
|
||||
$('.Chkenviardocto').each(
|
||||
function () {
|
||||
if ($(this).find('input').is(':checked')) {
|
||||
clientes += coma + $(this).data("cvecliente");
|
||||
coma = ',';
|
||||
}
|
||||
}
|
||||
)
|
||||
$('.TxtClientescorreo').val(clientes);
|
||||
$('.Btnenviardocto').click();
|
||||
}
|
||||
function downfile(file, DoctoName) {
|
||||
|
||||
$('.TxtDoctoName').val(DoctoName);
|
||||
$('.TxtCveDocumentacionElectronica').val(file);
|
||||
$('.BtnDocumentacionElectronica').click();
|
||||
}
|
||||
function materialidadshowhide(porlet, showhide) {
|
||||
var collapseexpand = $(porlet + ' >.portlet-title .collapse,' + porlet + ' >.portlet-title .expand')
|
||||
collapseexpand.removeClass('collapse')
|
||||
collapseexpand.removeClass('expand')
|
||||
if (showhide == 1) {
|
||||
collapseexpand.addClass('collapse')
|
||||
$(porlet + ' >.portlet-body').show();
|
||||
} else {
|
||||
collapseexpand.addClass('expand')
|
||||
$(porlet + ' >.portlet-body').hide();
|
||||
}
|
||||
}
|
||||
function cargarDocto(cveCliente, cveDocumentacion, cliente, documentacion) {
|
||||
$('.TxtcveCliente').val(cveCliente);
|
||||
$('.TxtcveDocumentacion').val(cveDocumentacion);
|
||||
$('.doctitulo').html(cliente + ' - ' + documentacion);
|
||||
$('.btnshowdoc').click();
|
||||
|
||||
//
|
||||
}
|
||||
function enviarDocto(cveCliente) {
|
||||
$('.TxtcveClienteCorreo').val(cveCliente);
|
||||
$('.BtnEnviarDoctos').click();
|
||||
|
||||
}
|
||||
|
||||
function ADSBegin() {
|
||||
openguardar();
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -118,6 +118,17 @@ public partial class Documentacion_TableroMaterialidad2 : ClsPaginas
|
||||
}
|
||||
|
||||
|
||||
protected void BtnConsultar_Click(object sender, EventArgs e)
|
||||
{
|
||||
cargadatos();
|
||||
}
|
||||
|
||||
protected void BtnEnviarDoctos_Click(object sender, EventArgs e)
|
||||
{
|
||||
Alert("El correo se ha enviado.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected void BtnAddClienteDocumento_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -153,17 +164,6 @@ public partial class Documentacion_TableroMaterialidad2 : ClsPaginas
|
||||
|
||||
}
|
||||
|
||||
protected void BtnEnviarDoctos_Click(object sender, EventArgs e)
|
||||
{
|
||||
Alert("El correo se ha enviado.");
|
||||
}
|
||||
|
||||
protected void BtnConsultar_Click(object sender, EventArgs e)
|
||||
{
|
||||
cargadatos();
|
||||
}
|
||||
|
||||
|
||||
protected void LckOpModalDoctos_Click(object sender, EventArgs e)
|
||||
{
|
||||
DateTime fecha = string.Format("{0}-{1}-01", anio, mes).ToDateTime();
|
||||
@@ -214,7 +214,7 @@ public partial class Documentacion_TableroMaterialidad2 : ClsPaginas
|
||||
xfile.SetAttributeValue("EXT", Path.GetExtension(urfile).ToLower());
|
||||
if (Path.GetExtension(urfile).ToLower() == ".xml")
|
||||
{
|
||||
var xmlobj = ADSistemaLibrary3.SatXml.XmlSatCFDI.readXML(urfile);
|
||||
var xmlobj = ADSistemaLibrary43.SatXml.XmlSatCFDI.readXML(urfile);
|
||||
|
||||
xfile.SetAttributeValue("UUID", xmlobj.complemento.UUID);
|
||||
xfile.SetAttributeValue("Receptor", xmlobj.receptor.Nombre);
|
||||
@@ -421,7 +421,7 @@ public partial class Documentacion_TableroMaterialidad2 : ClsPaginas
|
||||
{
|
||||
|
||||
procesararchivo(xmlobject, string.Format("{0}{1}", anio, mes).ToEntero(), true);
|
||||
procesararchivo(xmlobject, string.Format("{0}{1}", anio, mes).ToEntero(), false);
|
||||
//procesararchivo(xmlobject, string.Format("{0}{1}", anio, mes).ToEntero(), false);
|
||||
}
|
||||
protected void GVmaterialidadDoctos_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
@@ -665,7 +665,7 @@ public class archivoxmlpdf
|
||||
|
||||
}
|
||||
|
||||
namespace ADSistemaLibrary3.SatXml
|
||||
namespace ADSistemaLibrary43.SatXml
|
||||
{
|
||||
public class XmlSatCFDI
|
||||
{
|
||||
|
||||
@@ -954,11 +954,7 @@
|
||||
|
||||
<asp:GridView ID="GvBitacora" OnRowDataBound="GvBitacora_RowDataBound" runat="server" GridLines="None" Width="100%" CssClass="table table-striped table-advance table-hover Widthall ScrollAD Gvbitacora mysmallbtn" data-sort="true" CellSpacing="0" AutoGenerateColumns="False">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng","{0:dd-MM-yyyy}") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="FechaIng" HeaderText="Fecha" DataFormatString="{0:dd-MM-yyyy}" ItemStyle-HorizontalAlign="Center" />
|
||||
<asp:BoundField DataField="Descripcion" HeaderText="Descripción" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:BoundField DataField="Anterior" HeaderText="Anterior" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:BoundField DataField="Actual" HeaderText="Actual" ItemStyle-HorizontalAlign="Left" />
|
||||
@@ -1066,11 +1062,173 @@
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
<asp:LinkButton ID="LnAddFonacot" OnClick="LnAddFonacot_Click" runat="server" Text="Agregar" class="btn yellow-gold" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body form">
|
||||
<div class="row">
|
||||
|
||||
<asp:UpdatePanel runat="server" ID="UpFonacotGrid" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GVNomFonacot" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall"
|
||||
AutoGenerateColumns="False" ShowHeaderWhenEmpty="true" EmptyDataText="No ahi créditos fonacot registrados."
|
||||
DataKeyNames="CveFonacot,CvePersonal,NumeroCredito,Descripcion,Periodo,CveTipoCalculo,ImporteCredito,ImporteFijo,PagosHechos,MontoAcumulado,Saldo,CveEstatus,Observaciones,CveUsuarioIng">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Numero crédito">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblnumeroCredito" runat="server" Text='<%# Eval("NumeroCredito")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Tipo aplicación">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("TipoCalculo")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Descripcion">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbldescripcion" runat="server" Text='<%# Eval("Descripcion")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Importe">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("ImporteFijo", "{0:N2}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Importe crédito">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblimporteCredito" runat="server" Text='<%# Eval("ImporteCredito", "{0:N2}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Saldo">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblsaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Estatus">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblcveEstatus" runat="server" Text='<%#(Eval("CveEstatus").ToString() == "1"? "Activo": "Inactivo") %>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton data-toggle="tooltip" title="Editar" ID="LnkEditarNomFonacot" OnClick="LnkEditarNomFonacot_Click" CssClass="btn btn-circle btn-sm green" runat="server" Text="<i class='fa fa-pencil'></i>"></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LnkEliminarNomFonacot" runat="server" OnClick="LnkEliminarNomFonacot_Click" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el NomFonacot?" data-btn-ok-label="si" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
<div id="ModalFonacot" 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">Fonacot</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<asp:UpdatePanel runat="server" ID="UpModalFonacot" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtFonNumCredito" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonNumCredito" runat="server" Text="Número de crédito"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtFonDescripcion" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonDescripcion" runat="server" Text="Descripción"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="">
|
||||
<asp:Label AssociatedControlID="DdlFonTipoAplicacion" CssClass="ddlInfolabel" runat="server" Text="Tipo Aplicación"></asp:Label>
|
||||
|
||||
<asp:DropDownList ID="DdlFonTipoAplicacion" runat="server" Class="form-control select2me" Width="100%">
|
||||
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="Importe fijo" Value="1"></asp:ListItem>
|
||||
<asp:ListItem Text="Por días Laborados" Value="2"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtFonValor" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonValor" runat="server" Text="Importe"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control TxtFonImporteCredito" ID="TxtFonImporteCredito" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonImporteCredito" runat="server" Text="Importe total crédito"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control TxtFonPagosHechos " ID="TxtFonPagosHechos" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonPagosHechos" runat="server" Text="Pagos Anteriores"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control TxtFonSaldo" Enabled="false" ID="TxtFonSaldo" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonSaldo" runat="server" Text="Saldo"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group form-md-line-input input-iconright " style="width: 120px !important; display: inline-block;">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtFonFechaInicio" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonFechaInicio" runat="server" Text="Fecha Inicio"></asp:Label>
|
||||
<asp:RequiredFieldValidator runat="server" ID="rfvFonFechaFEstFin" ControlToValidate="TxtFonFechaInicio" ErrorMessage="Debe ingresar una fecha" ValidationGroup="vgEstFon" />
|
||||
<ajax:MaskedEditExtender ID="MEEFonFechaFEstFin" runat="server" TargetControlID="TxtFonFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEEFonFechaFEstFin" TargetControlID="TxtFonFechaInicio" PopupButtonID="LnkFonFechaFEstFin" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
</div>
|
||||
<div style="display: inline-block; vertical-align: top; padding-top: 10px;">
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="LnkFonFechaFEstFin" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="">
|
||||
<asp:Label AssociatedControlID="ChkFonacot" runat="server" Text="Estado (Activo)"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:CheckBox ID="ChkFonacot" CssClass="chksino" runat="server" Text=" " />
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:LinkButton ID="LnkGuardarFonacot" OnClick="LnkGuardarFonacot_Click" runat="server" Text="Guardar" class="btn btn-primary" />
|
||||
<button type="button" class="btn btn-danger" onclick="$('#ModalFonacot').modal('hide');return;">Cancelar</button>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<%--<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtFonNumCredito" runat="server" MaxLength="20"></asp:TextBox>
|
||||
@@ -1129,7 +1287,7 @@
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<asp:LinkButton ID="LnkGuardarFonacot" OnClick="LnkGuardarFonacot_Click" runat="server" Text="Guardar" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>--%>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
@@ -2491,6 +2649,100 @@
|
||||
<ajax:TabPanel ID="TTAntiguedad" runat="server" HeaderText="Antiguedad" Visible="false">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="gvAntigudad" runat="server" CssClass="table table-striped table-hover mysmallbtn Widthall GvNominas" GridLines="None"></asp:GridView>
|
||||
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel ID="TabVacacionesEmpresa" runat="server" HeaderText="Vacaciones">
|
||||
<ContentTemplate>
|
||||
<asp:UpdatePanel ID="upDatosVacaEmpre" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet light xspadding bordered" id="pnlVacEmpresa">
|
||||
<div class="portlet-title">
|
||||
<div class="caption ">
|
||||
<i class="fa fa-bookmark font-yellow-gold"></i>
|
||||
<span class="caption-subject bold uppercase font-yellow-gold">Agregar</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="expand" data-original-title="" title=""></a>
|
||||
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body " style="display: none">
|
||||
<div class="row">
|
||||
<div class="col-md-4 truncate ">Inicio</div>
|
||||
<div class="col-md-4">
|
||||
<asp:TextBox ID="TxtVacaInicio" type="number" CssClass="form-control input-sm " runat="server"></asp:TextBox>
|
||||
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxtVacadiasVacaciones" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Dias Vacaciones''</b> es necesario, por favor ingréselo." ValidationGroup="VGMVaca"></asp:RequiredFieldValidator>--%>
|
||||
<%--<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" HighlightCssClass="vco" TargetControlID="RfvVacadiasVacaciones"></ajax:ValidatorCalloutExtender>--%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4 truncate ">Fin</div>
|
||||
<div class="col-md-4">
|
||||
<asp:TextBox ID="TxtVacaFin" type="number" CssClass="form-control input-sm " runat="server"></asp:TextBox>
|
||||
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxtVacadiasVacaciones" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Dias Vacaciones''</b> es necesario, por favor ingréselo." ValidationGroup="VGMVaca"></asp:RequiredFieldValidator>--%>
|
||||
<%--<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" HighlightCssClass="vco" TargetControlID="RfvVacadiasVacaciones"></ajax:ValidatorCalloutExtender>--%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4 truncate ">Dias Vacaciones</div>
|
||||
<div class="col-md-4">
|
||||
<asp:TextBox ID="TxtVacadiasVacaciones" CssClass="form-control input-sm " runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvVacadiasVacaciones" runat="server" ControlToValidate="TxtVacadiasVacaciones" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Dias Vacaciones''</b> es necesario, por favor ingréselo." ValidationGroup="VGMVacaEmpresa"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoVacadiasVacaciones" runat="server" HighlightCssClass="vco" TargetControlID="RfvVacadiasVacaciones"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<asp:Button ID="BtnVacaADD" OnClick="BtnVacaADD_Click" runat="server" Text="Agregar" CssClass="btn btn-primary" ValidationGroup="VGMVacaEmpresa" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet light xspadding bordered" id="pnlgridVacEmpresa">
|
||||
<div class="portlet-title">
|
||||
<div class="caption ">
|
||||
<i class="fa fa-bookmark font-yellow-gold"></i>
|
||||
<span class="caption-subject bold uppercase font-yellow-gold"></span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
<asp:GridView ID="GVVacacionesEmpresas" runat="server" GridLines="None" CssClass="table table-hover table-striped Widthall ScrollAD" AutoGenerateColumns="False"
|
||||
DataKeyNames="CveEmpresa,Inicio,Fin,DiasVacaciones">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Inicio">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblinicio" runat="server" Text='<%# Eval("Inicio")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fin">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblfin" runat="server" Text='<%# Eval("Fin")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Dias Vacaciones">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label5" runat="server" Text='<%# Eval("DiasVacaciones")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%--<asp:TemplateField Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton data-toggle="tooltip" title="Editar" ID="LnkEditar" OnClick="LnkEditarVaca_Click" CssClass="btn btn-circle btn-sm green" runat="server" Text="<i class='fa fa-pencil'></i>"></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>--%>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LnkEliminarVaca" runat="server" OnClick="LnkEliminarVaca_Click" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el VacacionesEmpresas?" data-btn-ok-label="si" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel ID="TTFactorDesctInfonavit" runat="server" HeaderText="Factor descuento Infonavit">
|
||||
@@ -2675,7 +2927,7 @@
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel ID="TTVigSubEmpAnual" runat="server" HeaderText="Subsidio Anual">
|
||||
<ajax:TabPanel ID="TTVigSubEmpAnual" runat="server" HeaderText="Subsidio Anual" Visible="false">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GVVigSubEmpAnual" runat="server" CssClass="table table-striped table-hover mysmallbtn Widthall GvNominas" GridLines="None"></asp:GridView>
|
||||
</ContentTemplate>
|
||||
@@ -2702,6 +2954,7 @@
|
||||
<div class="col-md-4">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtValorUma" CssClass="form-control input-sm " runat="server" type="number" step=".01"></asp:TextBox>
|
||||
<asp:Label runat="server" AssociatedControlID="TxtValorUma">Valor</asp:Label>
|
||||
<asp:RequiredFieldValidator ID="RfvValorUma" runat="server" ControlToValidate="TxtValorUma" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor ingréselo." ValidationGroup="VGAddUma"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoValorUma" runat="server" HighlightCssClass="vco" TargetControlID="RfvValorUma"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
|
||||
@@ -1298,8 +1298,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
CveMotivoCancelacion = rowc["CveSATMotivoCancelacion"].ToString().ToEntero();
|
||||
}
|
||||
|
||||
if (ObjTimbrado.CFDICancelar(UsuarioActual.Empresa, FolioFiscal, Total, RFCReceptor, RFCEmisor, 4, CveSATMotivoCancelacion: CveMotivoCancelacion))//,CveSATMotivoCancelacion:=
|
||||
var reultado = ObjTimbrado.CFDICancelar(UsuarioActual.Empresa, FolioFiscal, Total, RFCReceptor, RFCEmisor, 4, CveSATMotivoCancelacion: CveMotivoCancelacion);
|
||||
if (true)//,CveSATMotivoCancelacion:=
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -1685,6 +1685,16 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
#region SobreRecibo propiedades
|
||||
|
||||
protected int CveFonacot
|
||||
{
|
||||
get
|
||||
{
|
||||
if (ViewState["CveFonacot"] == null) { return 0; }
|
||||
else { return ViewState["CveFonacot"].ToString().ToEntero(); }
|
||||
}
|
||||
|
||||
set { ViewState["CveFonacot"] = value; }
|
||||
}
|
||||
protected int SRCvePersonal
|
||||
{
|
||||
get
|
||||
@@ -1837,12 +1847,13 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
using (ClsRH objpersonal = new ClsRH())
|
||||
{
|
||||
|
||||
if (objpersonal.GetAsistencias(SRCvePersonal, -1, -1, -1, -1,-1, FechaInicioPeriodo, FechaFinPeriodo, UsuarioActual.CveEmpresa))
|
||||
|
||||
if (objpersonal.GetAsistencias(SRCvePersonal, -1, -1, -1, -1, -1, FechaInicioPeriodo, FechaFinPeriodo, UsuarioActual.CveEmpresa))
|
||||
{ GVAsistencia.DataSource = objpersonal.DtResultados.FiltraParametros("Fecha IS NOT NULL"); }
|
||||
else{
|
||||
else
|
||||
{
|
||||
GVAsistencia.DataSource = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
GVAsistencia.DataBind();
|
||||
}
|
||||
@@ -1888,7 +1899,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
bool continuar = false;
|
||||
using (ClsRH ObjPersonal = new ClsRH())
|
||||
{
|
||||
if (ObjPersonal.AddAsistencia(SRCvePersonal, -2, -2, TxtFechaAsistencia.Text.Trim().ToDate(),
|
||||
if (ObjPersonal.AddAsistencia(SRCvePersonal, -2, -2, TxtFechaAsistencia.Text.Trim().ToDate(),
|
||||
DdlTipoAsistenciasB.SelectedValue.ToEntero(), TxtPorPago.Text.Trim().ToDouble(), TxtHorasDobles.Text.Trim().ToDouble(),
|
||||
TxtHorasTriples.Text.Trim().ToDouble(), DdlMotivoHoraExtra.SelectedValue.ToEntero(), TxtObservaciones.Text.Trim(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
@@ -1915,11 +1926,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
foreach (GridViewRow Row in GVAsistencia.Rows)
|
||||
{
|
||||
if (!ObjPersonal.AddAsistencia(SRCvePersonal, -2,-2, Row.FCLiteral("LtlFecha").Text.Trim().ToDate(),
|
||||
Row.FCDropDownList("DdlTipoAsistencias").SelectedValue.ToEntero(),
|
||||
Row.FCTextBox("TxtPorPago").Text.Trim().ToDouble(),
|
||||
Row.FCTextBox("TxtHorasDobles").Text.Trim().ToDouble(), Row.FCTextBox("TxtHorasTriples").Text.Trim().ToDouble(),
|
||||
Row.FCDropDownList("DdlMotivoHoraExtra").SelectedValue.ToEntero(), Row.FCTextBox("TxtObservaciones").Text.Trim(),
|
||||
if (!ObjPersonal.AddAsistencia(SRCvePersonal, -2, -2, Row.FCLiteral("LtlFecha").Text.Trim().ToDate(),
|
||||
Row.FCDropDownList("DdlTipoAsistencias").SelectedValue.ToEntero(),
|
||||
Row.FCTextBox("TxtPorPago").Text.Trim().ToDouble(),
|
||||
Row.FCTextBox("TxtHorasDobles").Text.Trim().ToDouble(), Row.FCTextBox("TxtHorasTriples").Text.Trim().ToDouble(),
|
||||
Row.FCDropDownList("DdlMotivoHoraExtra").SelectedValue.ToEntero(), Row.FCTextBox("TxtObservaciones").Text.Trim(),
|
||||
UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
OcurrioError = true;
|
||||
@@ -1956,7 +1967,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
e.Row.Cells[3].HorizontalAlign = HorizontalAlign.Left;
|
||||
|
||||
//if ((e.Row.DBCampo("Fecha")))
|
||||
e.Row.FCLiteral("LtlFecha").Text = e.Row.DBCampo("Fecha").ToDate().ToShortDateString();
|
||||
e.Row.FCLiteral("LtlFecha").Text = e.Row.DBCampo("Fecha").ToDate().ToShortDateString();
|
||||
if (e.Row.FCLiteral("LtlCliente").Text != "N/A")
|
||||
e.Row.FCLiteral("LtlCliente").Text = "<a class=\"Texto\" href=\"/Ventas/Clientes.aspx?CveCliente=" + e.Row.DBCampo("CveCliente") + "\">" + e.Row.DBCampo("Cliente") + "</a>";
|
||||
e.Row.FCTextBox("TxtPorPago").Text = e.Row.DBCampo("PorcentajePago");
|
||||
@@ -2663,6 +2674,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
TxtmcImporteGrabado.Text = string.Format("{0:N2}", drow["ImporteGravado"]);
|
||||
Txtmcvalor.Text = string.Format("{0:N2}", drow["Valor"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
ChkCalAutomaticoV.Checked = true;
|
||||
ChkCalAutomaticoG.Checked = true;
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2864,6 +2881,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
#endregion
|
||||
cargasobrericiboconceptos();
|
||||
CargaFonacot();
|
||||
#region "Infonavit"
|
||||
{
|
||||
using (ClsRH objper = new ClsRH())
|
||||
@@ -2891,24 +2909,24 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
|
||||
|
||||
frow = objper.DtResultados.FiltroPrimero("CveSistema =4");
|
||||
TxtFonValor.Text = "";
|
||||
DdlFonTipoAplicacion.SelectedValueExist("-1");
|
||||
TxtFonDescripcion.Text = "";
|
||||
TxtFonNumCredito.Text = "";
|
||||
TxtFonFechaInicio.Text = "";
|
||||
ChkFonacot.Checked = false;
|
||||
if (frow != null)
|
||||
{
|
||||
//frow = objper.DtResultados.FiltroPrimero("CveSistema =4");
|
||||
//TxtFonValor.Text = "";
|
||||
//DdlFonTipoAplicacion.SelectedValueExist("-1");
|
||||
//TxtFonDescripcion.Text = "";
|
||||
//TxtFonNumCredito.Text = "";
|
||||
//TxtFonFechaInicio.Text = "";
|
||||
//ChkFonacot.Checked = false;
|
||||
//if (frow != null)
|
||||
//{
|
||||
|
||||
TxtFonValor.Text = String.Format("{0:###,###.##}", frow["Importe"]);
|
||||
DdlFonTipoAplicacion.SelectedValueExist(frow["TipoAplicacion"].ToString());
|
||||
// TxtFonValor.Text = String.Format("{0:###,###.##}", frow["Importe"]);
|
||||
// DdlFonTipoAplicacion.SelectedValueExist(frow["TipoAplicacion"].ToString());
|
||||
|
||||
TxtFonDescripcion.Text = String.Format("{0}", frow["Descripcion02"]);
|
||||
TxtFonNumCredito.Text = String.Format("{0}", frow["Descripcion01"]);
|
||||
TxtFonFechaInicio.Text = String.Format("{0:dd/MM/yyyy}", frow["FInicioAplicacion"]);
|
||||
ChkFonacot.Checked = frow["estatus"].ToString().ToUpper().Contiene("1", "TRUE");
|
||||
}
|
||||
// TxtFonDescripcion.Text = String.Format("{0}", frow["Descripcion02"]);
|
||||
// TxtFonNumCredito.Text = String.Format("{0}", frow["Descripcion01"]);
|
||||
// TxtFonFechaInicio.Text = String.Format("{0:dd/MM/yyyy}", frow["FInicioAplicacion"]);
|
||||
// ChkFonacot.Checked = frow["estatus"].ToString().ToUpper().Contiene("1", "TRUE");
|
||||
//}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -2916,6 +2934,129 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
UpModalConceptos.Update();
|
||||
}
|
||||
|
||||
#region fonacot
|
||||
|
||||
public void LimpiarFonacot()
|
||||
{
|
||||
TxtFonValor.Text = "";
|
||||
TxtFonImporteCredito.Text = "";
|
||||
TxtFonPagosHechos.Text = "";
|
||||
DdlFonTipoAplicacion.SelectedValueExist("-1");
|
||||
TxtFonDescripcion.Text = "";
|
||||
TxtFonNumCredito.Text = "";
|
||||
TxtFonFechaInicio.Text = "";
|
||||
ChkFonacot.Checked = false;
|
||||
}
|
||||
protected void CargaFonacot()
|
||||
{
|
||||
using (ClsNominas onom = new ClsNominas())
|
||||
{
|
||||
onom.NomFonacotGet(UsuarioActual.CveEmpresa, -1, SRCvePersonal);
|
||||
GVNomFonacot.DataSource = onom.DtResultados;
|
||||
GVNomFonacot.DataBind();
|
||||
}
|
||||
UpFonacotGrid.Update();
|
||||
}
|
||||
|
||||
protected void LnAddFonacot_Click(object sender, EventArgs e)
|
||||
{
|
||||
LimpiarFonacot();
|
||||
CveFonacot = -1;
|
||||
RegistraScript("$('#ModalFonacot').modal();");
|
||||
}
|
||||
protected void LnkEditarNomFonacot_Click(object sender, EventArgs e)
|
||||
{
|
||||
GridViewRow gvrow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||
CveFonacot = gvrow.DataKey("CveFonacot").ToEntero();
|
||||
Int32 cvePersonal = gvrow.DataKey("CvePersonal").ToEntero();
|
||||
string numeroCredito = gvrow.DataKey("NumeroCredito");
|
||||
string descripcion = gvrow.DataKey("Descripcion");
|
||||
Int32 periodo = gvrow.DataKey("Periodo").ToEntero();
|
||||
Int32 cveTipoCalculo = gvrow.DataKey("CveTipoCalculo").ToEntero();
|
||||
decimal importeCredito = gvrow.DataKey("ImporteCredito").ToDecimal();
|
||||
decimal importeFijo = gvrow.DataKey("ImporteFijo").ToDecimal();
|
||||
decimal pagosHechos = gvrow.DataKey("PagosHechos").ToDecimal();
|
||||
decimal montoAcumulado = gvrow.DataKey("MontoAcumulado").ToDecimal();
|
||||
decimal saldo = gvrow.DataKey("Saldo").ToDecimal();
|
||||
Int32 cveEstatus = gvrow.DataKey("CveEstatus").ToEntero();
|
||||
string observaciones = gvrow.DataKey("Observaciones");
|
||||
if ((periodo < 10000000))
|
||||
periodo = 20000101;
|
||||
LimpiarFonacot();
|
||||
|
||||
TxtFonValor.Text = importeFijo.ToString();
|
||||
TxtFonImporteCredito.Text = importeCredito.ToString();
|
||||
TxtFonPagosHechos.Text = pagosHechos.ToString();
|
||||
DdlFonTipoAplicacion.SelectedValueExist(cveTipoCalculo.ToString());
|
||||
TxtFonDescripcion.Text = descripcion;
|
||||
TxtFonNumCredito.Text = numeroCredito;
|
||||
TxtFonFechaInicio.Text = string.Format("{2}/{1}/{0}", periodo.ToString().Substring(0, 4), periodo.ToString().Substring(4, 2), periodo.ToString().Substring(6, 2));
|
||||
ChkFonacot.Checked = (cveEstatus == 1);
|
||||
UpModalFonacot.Update();
|
||||
RegistraScript("$('#ModalFonacot').modal();");
|
||||
}
|
||||
|
||||
protected void LnkEliminarNomFonacot_Click(object sender, EventArgs e)
|
||||
{
|
||||
GridViewRow gvrow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||
|
||||
int cveFonacot = gvrow.DataKey("CveFonacot").ToEntero();
|
||||
bool Continuar = false;
|
||||
using (ClsNominas onom = new ClsNominas())
|
||||
{
|
||||
Continuar = onom.NomFonacotRemove(UsuarioActual.CveEmpresa, cveFonacot);
|
||||
}
|
||||
if ((Continuar))
|
||||
{
|
||||
CargaFonacot();
|
||||
Alert("El registro fonacot se ha eliminado");
|
||||
}
|
||||
}
|
||||
protected void LnkGuardarFonacot_Click(object sender, EventArgs e)
|
||||
{
|
||||
decimal importe = TxtFonValor.Text.ToDecimal();
|
||||
decimal importeTotal = TxtFonImporteCredito.Text.ToDecimal();
|
||||
decimal importePagado = TxtFonPagosHechos.Text.ToDecimal();
|
||||
int TipoAplicacion = DdlFonTipoAplicacion.SelectedValue.ToEntero();
|
||||
int NoPagos = 0;
|
||||
double SaldoIni = 0;
|
||||
string descripcion02 = TxtFonDescripcion.Text;
|
||||
string NumCredito = TxtFonNumCredito.Text;
|
||||
string fecha = TxtFonFechaInicio.Text.Replace("_", "");
|
||||
int estatus = ChkFonacot.Checked ? 1 : 0;
|
||||
int periodo = 20000101;
|
||||
if (fecha.Length > 8)
|
||||
{
|
||||
fecha = fecha.ToDateTime().ToString("yyyy/MM/dd");
|
||||
periodo = fecha.ToDateTime().ToString("yyyyMMdd").ToEntero();
|
||||
}
|
||||
else
|
||||
fecha = "";
|
||||
|
||||
bool continuar = false;
|
||||
using (ClsNominas onom = new ClsNominas())
|
||||
{
|
||||
if ((CveFonacot == -1))
|
||||
continuar = onom.NomFonacotAdd(UsuarioActual.CveEmpresa, SRCvePersonal, NumCredito, descripcion02, periodo, TipoAplicacion, importeTotal, importe, importePagado, 0, 0, estatus, "", UsuarioActual.CveUsuario);
|
||||
else
|
||||
continuar = onom.NomFonacotUp(UsuarioActual.CveEmpresa, CveFonacot, SRCvePersonal, NumCredito, descripcion02, periodo, TipoAplicacion, importeTotal, importe, importePagado, 0, 0, estatus, "", UsuarioActual.CveUsuario);
|
||||
}
|
||||
// Old Borrar Caudillo 01/Marzo/2022
|
||||
// Using ObjPersonal As ClsRH = New ClsRH()
|
||||
// If Not ObjPersonal.AddConcepto(CvePersonal, -1, importe, TipoAplicacion, NoPagos, SaldoIni, UsuarioActual.CveUsuario, 4, NumCredito, descripcion02, fecha, "", estatus, UsuarioActual.CveEmpresa) Then continuar = False
|
||||
// End Using
|
||||
|
||||
if (continuar)
|
||||
{
|
||||
Alert("Se actualizo el calculo de fonacot");
|
||||
CargaFonacot();
|
||||
RegistraScript("$('#ModalFonacot').modal('hide');");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public void cargasobrericiboconceptos()
|
||||
{
|
||||
|
||||
@@ -3843,7 +3984,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
public void loadtablas()
|
||||
{
|
||||
|
||||
CargaVacacionesEmpresas();
|
||||
using (ClsNominas objnom = new ClsNominas())
|
||||
{
|
||||
if (objnom.GetTablasNomina(UsuarioActual.CveEmpresa) && objnom.DTSetResultados.Tables.Count > 1)
|
||||
@@ -4035,7 +4176,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
string strTipo = "";
|
||||
string strPeriodoNum = "";
|
||||
string strUbicacion = string.Format("{0}, {1}, {2}, {3}, C.P. {4}", UsuarioActual.Empresa.Direccion, UsuarioActual.Empresa.Colonia, UsuarioActual.Empresa.Ciudad, UsuarioActual.Empresa.Estado, UsuarioActual.Empresa.CP).ToLower();
|
||||
string strRegPatImss = UsuarioActual.Empresa.RegistroPatronal;
|
||||
string strRegPatImss = "";// objPersonal.DtResultados.Rows(0)("RegistroPatronal").ToString();
|
||||
string strRFC = UsuarioActual.Empresa.RFC;
|
||||
string strfecha = DateTime.Now.ToString("dd/MMM/yyyy", System.Globalization.CultureInfo.CreateSpecificCulture("es-MX"));
|
||||
string strhora = DateTime.Now.ToString("HH:mm:ss", System.Globalization.CultureInfo.CreateSpecificCulture("es-MX"));
|
||||
@@ -5553,35 +5694,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
UpMovtosPermanentes.Update();
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void LnkGuardarFonacot_Click(object sender, EventArgs e)
|
||||
{
|
||||
double importe = TxtFonValor.Text.ToDouble();
|
||||
int TipoAplicacion = DdlFonTipoAplicacion.SelectedValue.ToEntero();
|
||||
int NoPagos = 0;
|
||||
double SaldoIni = 0;
|
||||
string descripcion02 = TxtFonDescripcion.Text;
|
||||
string descripcion01 = TxtFonNumCredito.Text;
|
||||
string fecha = TxtFonFechaInicio.Text.Replace("_", "");
|
||||
int estatus = ChkFonacot.Checked ? 1 : 0;
|
||||
if (fecha.Length > 8)
|
||||
fecha = fecha.ToDateTime().ToString("yyyy/MM/dd");
|
||||
else
|
||||
fecha = "";
|
||||
bool continuar = true;
|
||||
using (ClsRH ObjPersonal = new ClsRH())
|
||||
{
|
||||
if (!ObjPersonal.AddConcepto(SRCvePersonal, -1, importe, TipoAplicacion, NoPagos, SaldoIni, UsuarioActual.CveUsuario, 4, descripcion01, descripcion02, fecha, "", estatus, UsuarioActual.CveEmpresa))
|
||||
continuar = false;
|
||||
}
|
||||
if (continuar)
|
||||
{
|
||||
LnkConsultar_Click(null, null);
|
||||
mostrarConceptos();
|
||||
Alert("Se actualizo el calculo de fonacot");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
protected void LnkAutorizar_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -7844,7 +7957,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
decimal Total = TxtTotal.Text.ToDecimal();
|
||||
string RFCReceptor = TxtRFCReceptor.Text;
|
||||
string RFCEmisor = TxtRFCEmisor.Text;
|
||||
if (ObjTimbrado.CFDICancelar(UsuarioActual.Empresa, FolioFiscal, Total, RFCReceptor, RFCEmisor, 4))
|
||||
var resultado = ObjTimbrado.CFDICancelar(UsuarioActual.Empresa, FolioFiscal, Total, RFCReceptor, RFCEmisor, 4);
|
||||
if (true)
|
||||
{
|
||||
Alert($"La nómina con folio fiscal '{FolioFiscal}' fue cancelada ante el SAT", TipoMensaje.MsgInformacion);
|
||||
}
|
||||
@@ -7957,6 +8071,55 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
|
||||
|
||||
protected void CargaVacacionesEmpresas()
|
||||
{
|
||||
using (ClsRH ObjVaca = new ClsRH())
|
||||
{
|
||||
ObjVaca.VacacionesEmpresasGet(UsuarioActual.CveEmpresa, -1, -1);
|
||||
GVVacacionesEmpresas.DataSource = ObjVaca.DtResultados;
|
||||
ObjVaca.Dispose();
|
||||
}
|
||||
GVVacacionesEmpresas.DataBind();
|
||||
upDatosVacaEmpre.Update();
|
||||
}
|
||||
|
||||
|
||||
protected void BtnVacaADD_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
int diasVacaciones = TxtVacadiasVacaciones.Text.ToEntero();
|
||||
int Cinicio = TxtVacaInicio.Text.ToEntero();
|
||||
int Cfin = TxtVacaFin.Text.ToEntero();
|
||||
bool Continuar = false;
|
||||
using (ClsRH ObjVaca = new ClsRH())
|
||||
{
|
||||
|
||||
Continuar = ObjVaca.VacacionesEmpresasAdd(UsuarioActual.CveEmpresa, Cinicio, Cfin, diasVacaciones);
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#DModalVacacionesEmpresas').modal('hide');");
|
||||
CargaVacacionesEmpresas();
|
||||
upDatosVacaEmpre.Update();
|
||||
this.Alert("El Vacaciones_Empresas Se ha agregado");
|
||||
}
|
||||
}
|
||||
|
||||
protected void LnkEliminarVaca_Click(object sender, EventArgs e)
|
||||
{
|
||||
GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||
int CcveEmpresa = gvRow.DataKey("CveEmpresa").ToEntero();
|
||||
int Cinicio = gvRow.DataKey("Inicio").ToEntero();
|
||||
int Cfin = gvRow.DataKey("Fin").ToEntero();
|
||||
bool Continuar = false;
|
||||
using (ClsRH ObjVaca = new ClsRH())
|
||||
{
|
||||
Continuar = ObjVaca.VacacionesEmpresasRemove(CcveEmpresa, Cinicio, Cfin);
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
CargaVacacionesEmpresas();
|
||||
this.Alert("El Vacaciones_Empresas Se ha Eliminado");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
253
RH/Personal.aspx
253
RH/Personal.aspx
@@ -1459,8 +1459,7 @@
|
||||
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlRegistroPatronal" runat="server" Width="100%" DataTextField="RegistroPatronal" CssClass="form-control input-sm select2me" DataValueField="CveRegistroPatronal" >
|
||||
|
||||
<asp:DropDownList ID="DdlRegistroPatronal" runat="server" Width="100%" DataTextField="RegistroPatronal" CssClass="form-control input-sm select2me" DataValueField="CveRegistroPatronal">
|
||||
</asp:DropDownList>
|
||||
<asp:Label runat="server" AssociatedControlID="DdlRegistroPatronal" Text="Registro Patronal:"></asp:Label>
|
||||
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="DdlRiesgoPuesto" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Riesgo Puesto''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>--%>
|
||||
@@ -1672,13 +1671,13 @@
|
||||
</div>
|
||||
<div class="portlet-body form">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtInfoNumCredito" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtInfoNumCredito" runat="server" Text="Número de crédito"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtInfoDescripcion" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtInfoDescripcion" runat="server" Text="Descripción"></asp:Label>
|
||||
@@ -1686,7 +1685,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="col-sm-6">
|
||||
<div class="">
|
||||
<asp:Label AssociatedControlID="DdlInfoTipoAplicacion" CssClass="ddlInfolabel" runat="server" Text="Tipo Aplicación"></asp:Label>
|
||||
|
||||
@@ -1699,7 +1698,7 @@
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtInfoValor" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtInfoValor" runat="server" Text="Valor"></asp:Label>
|
||||
@@ -1707,7 +1706,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group form-md-line-input input-iconright " style="width: 120px !important; display: inline-block;">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtInfoFechaInicio" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtInfoFechaInicio" runat="server" Text="Fecha Inicio"></asp:Label>
|
||||
@@ -1721,12 +1720,12 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-sm-3">
|
||||
<div class=" ">
|
||||
<asp:Label AssociatedControlID="ChkInfo" runat="server" Text="Estado (Activo)"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-sm-3">
|
||||
<asp:CheckBox ID="ChkInfo" CssClass="chksino" runat="server" Text=" " />
|
||||
</div>
|
||||
</div>
|
||||
@@ -1745,68 +1744,172 @@
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
<asp:LinkButton ID="LnkGuardarFonacot" OnClick="LnkGuardarFonacot_Click" runat="server" Text="Guardar" class="btn btn-primary" />
|
||||
<asp:LinkButton ID="LnAddFonacot" OnClick="LnAddFonacot_Click" runat="server" Text="Agregar" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body form">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtFonNumCredito" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonNumCredito" runat="server" Text="Número de crédito"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtFonDescripcion" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonDescripcion" runat="server" Text="Descripción"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="">
|
||||
<asp:Label AssociatedControlID="DdlFonTipoAplicacion" CssClass="ddlInfolabel" runat="server" Text="Tipo Aplicación"></asp:Label>
|
||||
|
||||
<asp:DropDownList ID="DdlFonTipoAplicacion" runat="server" Class="form-control select2me" Width="100%">
|
||||
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="Fonacot (Importe fijo)" Value="3001"></asp:ListItem>
|
||||
<asp:ListItem Text="Fonacot (Por días Laborados)" Value="3002"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtFonValor" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonValor" runat="server" Text="Valor"></asp:Label>
|
||||
<asp:UpdatePanel runat="server" ID="UpFonacotGrid" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GVNomFonacot" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall"
|
||||
AutoGenerateColumns="False" ShowHeaderWhenEmpty="true" EmptyDataText="No ahi créditos fonacot registrados."
|
||||
DataKeyNames="CveFonacot,CvePersonal,NumeroCredito,Descripcion,Periodo,CveTipoCalculo,ImporteCredito,ImporteFijo,PagosHechos,MontoAcumulado,Saldo,CveEstatus,Observaciones,CveUsuarioIng">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Numero crédito">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblnumeroCredito" runat="server" Text='<%# Eval("NumeroCredito")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Tipo aplicación">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("TipoCalculo")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Descripcion">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbldescripcion" runat="server" Text='<%# Eval("Descripcion")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Importe">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("ImporteFijo", "{0:N2}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Importe crédito">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblimporteCredito" runat="server" Text='<%# Eval("ImporteCredito", "{0:N2}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Saldo">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblsaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Estatus">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblcveEstatus" runat="server" Text='<%#If(Eval("CveEstatus").ToString() = "1", "Activo", "Inactivo") %>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton data-toggle="tooltip" title="Editar" ID="LnkEditarNomFonacot" OnClick="LnkEditarNomFonacot_Click" CssClass="btn btn-circle btn-sm green" runat="server" Text="<i class='fa fa-pencil'></i>"></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LnkEliminarNomFonacot" runat="server" OnClick="LnkEliminarNomFonacot_Click" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el NomFonacot?" data-btn-ok-label="si" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
<div id="ModalFonacot" 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">Fonacot</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<asp:UpdatePanel runat="server" ID="UpModalFonacot" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtFonNumCredito" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonNumCredito" runat="server" Text="Número de crédito"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtFonDescripcion" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonDescripcion" runat="server" Text="Descripción"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="">
|
||||
<asp:Label AssociatedControlID="DdlFonTipoAplicacion" CssClass="ddlInfolabel" runat="server" Text="Tipo aplicación"></asp:Label>
|
||||
|
||||
<asp:DropDownList ID="DdlFonTipoAplicacion" runat="server" Class="form-control select2me" Width="100%">
|
||||
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="Importe fijo" Value="1"></asp:ListItem>
|
||||
<asp:ListItem Text="Por días Laborados" Value="2"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtFonValor" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonValor" runat="server" Text="Importe"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control TxtFonImporteCredito" ID="TxtFonImporteCredito" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonImporteCredito" runat="server" Text="Importe total crédito"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control TxtFonPagosHechos " ID="TxtFonPagosHechos" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonPagosHechos" runat="server" Text="Pagos Anteriores"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox CssClass="form-control TxtFonSaldo" Enabled="false" ID="TxtFonSaldo" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonSaldo" runat="server" Text="Saldo"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group form-md-line-input input-iconright " style="width: 120px !important; display: inline-block;">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtFonFechaInicio" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonFechaInicio" runat="server" Text="Fecha Inicio"></asp:Label>
|
||||
<asp:RequiredFieldValidator runat="server" ID="rfvFonFechaFEstFin" ControlToValidate="TxtFonFechaInicio" ErrorMessage="Debe ingresar una fecha" ValidationGroup="vgEstFon" />
|
||||
<ajax:MaskedEditExtender ID="MEEFonFechaFEstFin" runat="server" TargetControlID="TxtFonFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEEFonFechaFEstFin" TargetControlID="TxtFonFechaInicio" PopupButtonID="LnkFonFechaFEstFin" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
</div>
|
||||
<div style="display: inline-block; vertical-align: top; padding-top: 10px;">
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="LnkFonFechaFEstFin" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="">
|
||||
<asp:Label AssociatedControlID="ChkFonacot" runat="server" Text="Estado (Activo)"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:CheckBox ID="ChkFonacot" CssClass="chksino" runat="server" Text=" " />
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:LinkButton ID="LnkGuardarFonacot" OnClick="LnkGuardarFonacot_Click" runat="server" Text="Guardar" class="btn btn-primary" />
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright " style="width: 120px !important; display: inline-block;">
|
||||
<asp:TextBox CssClass="form-control" ID="TxtFonFechaInicio" runat="server" MaxLength="20"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtFonFechaInicio" runat="server" Text="Fecha Inicio"></asp:Label>
|
||||
<asp:RequiredFieldValidator runat="server" ID="rfvFonFechaFEstFin" ControlToValidate="TxtFonFechaInicio" ErrorMessage="Debe ingresar una fecha" ValidationGroup="vgEstFon" />
|
||||
<ajax:MaskedEditExtender ID="MEEFonFechaFEstFin" runat="server" TargetControlID="TxtFonFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CEEFonFechaFEstFin" TargetControlID="TxtFonFechaInicio" PopupButtonID="LnkFonFechaFEstFin" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
</div>
|
||||
<div style="display: inline-block; vertical-align: top; padding-top: 10px;">
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="LnkFonFechaFEstFin" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="">
|
||||
<asp:Label AssociatedControlID="ChkFonacot" runat="server" Text="Estado (Activo)"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<asp:CheckBox ID="ChkFonacot" CssClass="chksino" runat="server" Text=" " />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1936,43 +2039,43 @@
|
||||
<table class="table table-striped table-hover Widthall" id="GvAsistenciaHeader">
|
||||
<%--<thead>--%>
|
||||
<tr class="Titulos">
|
||||
<th style="width:120px">
|
||||
<th style="width: 120px">
|
||||
<asp:LinkButton ID="LbFechaAsistencia" runat="server" CausesValidation="false" Text="Fecha" CommandArgument="" OnClick="LbOrden_Click"></asp:LinkButton>
|
||||
</th>
|
||||
<th style="width:180px">
|
||||
<th style="width: 180px">
|
||||
<asp:LinkButton ID="LbClienteAsistencia" runat="server" CausesValidation="false" Text="Cliente" CommandArgument="Cliente1;1" OnClick="LbOrden_Click">
|
||||
<asp:Literal ID="ImgCliente1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th style="width:110px">
|
||||
<th style="width: 110px">
|
||||
<asp:LinkButton ID="LbProyectoAsistencia" runat="server" CausesValidation="false" Text="Proyecto" CommandArgument="Proyecto1;1" OnClick="LbOrden_Click">
|
||||
<asp:Literal ID="ImgProyecto1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th style="width:110px">
|
||||
<th style="width: 110px">
|
||||
<asp:LinkButton ID="LbSubProyectoAsistencia" runat="server" CausesValidation="false" Text="Sub Proyecto" CommandArgument="SubProyecto1;1" OnClick="LbOrden_Click">
|
||||
<asp:Literal ID="ImgSubProyecto1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||
</asp:LinkButton></th>
|
||||
<th style="width:70px;">
|
||||
<th style="width: 70px;">
|
||||
<asp:LinkButton ID="LbTipoAsistencia" runat="server" CausesValidation="false" Text="Asistencia" CommandArgument="" OnClick="LbOrden_Click">
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th style="width:50px;">
|
||||
<th style="width: 50px;">
|
||||
<asp:LinkButton ID="LbPorPagoAsistencia" runat="server" CausesValidation="false" Text="% Pago" CommandArgument="" OnClick="LbOrden_Click">
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th style="width:56px;">
|
||||
<th style="width: 56px;">
|
||||
<asp:LinkButton ID="LbHorasDoblesAsistencia" runat="server" CausesValidation="false" Text="Hrs Dob." CommandArgument="" OnClick="LbOrden_Click">
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th style="width:56px;">
|
||||
<th style="width: 56px;">
|
||||
<asp:LinkButton ID="LbHorasTriplesAsistencia" runat="server" CausesValidation="false" Text="Hrs Trip." CommandArgument="" OnClick="LbOrden_Click">
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th style="width:110px;">
|
||||
<th style="width: 110px;">
|
||||
<asp:LinkButton ID="LbMotivosHorasExtrasAsistencia" runat="server" CausesValidation="false" Text="Motivos H. Extras" CommandArgument="" OnClick="LbOrden_Click">
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
<th style="width:30px;">
|
||||
<th style="width: 30px;">
|
||||
<asp:LinkButton ID="LbObservacionesAsistencia" runat="server" CausesValidation="false" Text="Obs." CommandArgument="" OnClick="LbOrden_Click">
|
||||
</asp:LinkButton>
|
||||
</th>
|
||||
@@ -4005,8 +4108,8 @@
|
||||
<i class="fa fa-commenting font-green"></i>
|
||||
<span class="caption-subject bold">Agregar</span>
|
||||
</div>--%>
|
||||
<asp:HyperLink ID="ImgAddObs" CssClass="caption-subject bold" data-toggle="modal" data-target="#ModalBitacora" runat="server" Text=" <i class='fa fa-commenting font-green'></i><span class='caption-subject bold'>Agregar</span>" Style="font-weight: 700 !important;cursor: pointer;" ToolTip="Observaciones"></asp:HyperLink><br />
|
||||
<asp:HyperLink ID="HlEvento" CssClass="thickbox caption-subject bold" runat="server" Text=" <i class='fa fa-calendar-plus-o font-green'></i>Agendar" Visible="false" Style="font-weight: 700 !important;cursor: pointer;" ToolTip="Agendar"></asp:HyperLink><br />
|
||||
<asp:HyperLink ID="ImgAddObs" CssClass="caption-subject bold" data-toggle="modal" data-target="#ModalBitacora" runat="server" Text=" <i class='fa fa-commenting font-green'></i><span class='caption-subject bold'>Agregar</span>" Style="font-weight: 700 !important; cursor: pointer;" ToolTip="Observaciones"></asp:HyperLink><br />
|
||||
<asp:HyperLink ID="HlEvento" CssClass="thickbox caption-subject bold" runat="server" Text=" <i class='fa fa-calendar-plus-o font-green'></i>Agendar" Visible="false" Style="font-weight: 700 !important; cursor: pointer;" ToolTip="Agendar"></asp:HyperLink><br />
|
||||
<asp:Literal ID="LtlTareaNueva" runat="server"></asp:Literal>
|
||||
<UserControl:TareaNueva runat="server" ID="TareaNueva" />
|
||||
</div>
|
||||
|
||||
@@ -16,6 +16,18 @@ Partial Class RH_Personal
|
||||
|
||||
#Region "P R O P I E D A D E S"
|
||||
|
||||
Property CveFonacot As Integer
|
||||
Get
|
||||
If ViewState("CveFonacot") Is Nothing Then
|
||||
Return -1
|
||||
Else
|
||||
Return DirectCast(ViewState("CveFonacot"), Integer)
|
||||
End If
|
||||
End Get
|
||||
Set(value As Integer)
|
||||
ViewState("CveFonacot") = value
|
||||
End Set
|
||||
End Property
|
||||
Private Property DTCuentasBancos As DataTable
|
||||
Get
|
||||
Return CType(ViewState("DTCuentasBancos"), DataTable)
|
||||
@@ -900,6 +912,7 @@ Partial Class RH_Personal
|
||||
ViewState("CvePersonal") = -1
|
||||
BtnEliminar.Visible = False
|
||||
CarcaConceptosNomina()
|
||||
CargaFonacot()
|
||||
For Each Gvr As GridViewRow In GVConceptos.Rows
|
||||
If CBool(Gvr.DataKey("Obligatorio")) Then
|
||||
Gvr.FCCheckBox("ChkAplica").Checked = True
|
||||
@@ -1690,6 +1703,7 @@ Partial Class RH_Personal
|
||||
|
||||
'Carga Conceptos de Nómina
|
||||
CarcaConceptosNomina()
|
||||
CargaFonacot()
|
||||
'Carga Pagos no Bancarios
|
||||
CargarPagosNoBancarios()
|
||||
'Carga Resguardos
|
||||
@@ -2555,22 +2569,22 @@ Partial Class RH_Personal
|
||||
End If
|
||||
|
||||
|
||||
frow = ObjPersonal.DtResultados.FiltroPrimero("CveSistema =4")
|
||||
TxtFonValor.Text = ""
|
||||
DdlFonTipoAplicacion.SelectedValueExist("-1")
|
||||
TxtFonDescripcion.Text = ""
|
||||
TxtFonNumCredito.Text = ""
|
||||
TxtFonFechaInicio.Text = ""
|
||||
ChkFonacot.Checked = False
|
||||
If Not IsNothing(frow) Then
|
||||
TxtFonValor.Text = String.Format("{0:###,###.##}", frow("Importe"))
|
||||
DdlFonTipoAplicacion.SelectedValueExist(frow("TipoAplicacion").ToString())
|
||||
'frow = ObjPersonal.DtResultados.FiltroPrimero("CveSistema =4")
|
||||
'TxtFonValor.Text = ""
|
||||
'DdlFonTipoAplicacion.SelectedValueExist("-1")
|
||||
'TxtFonDescripcion.Text = ""
|
||||
'TxtFonNumCredito.Text = ""
|
||||
'TxtFonFechaInicio.Text = ""
|
||||
'ChkFonacot.Checked = False
|
||||
'If Not IsNothing(frow) Then
|
||||
' TxtFonValor.Text = String.Format("{0:###,###.##}", frow("Importe"))
|
||||
' DdlFonTipoAplicacion.SelectedValueExist(frow("TipoAplicacion").ToString())
|
||||
|
||||
TxtFonDescripcion.Text = String.Format("{0}", frow("Descripcion02"))
|
||||
TxtFonNumCredito.Text = String.Format("{0}", frow("Descripcion01"))
|
||||
TxtFonFechaInicio.Text = String.Format("{0:dd/MM/yyyy}", frow("FInicioAplicacion"))
|
||||
ChkFonacot.Checked = frow("estatus").ToString().ToUpper().Contiene("1", "TRUE")
|
||||
End If
|
||||
' TxtFonDescripcion.Text = String.Format("{0}", frow("Descripcion02"))
|
||||
' TxtFonNumCredito.Text = String.Format("{0}", frow("Descripcion01"))
|
||||
' TxtFonFechaInicio.Text = String.Format("{0:dd/MM/yyyy}", frow("FInicioAplicacion"))
|
||||
' ChkFonacot.Checked = frow("estatus").ToString().ToUpper().Contiene("1", "TRUE")
|
||||
'End If
|
||||
Else
|
||||
GVConceptos.DataSource = Nothing
|
||||
End If
|
||||
@@ -6521,30 +6535,115 @@ Partial Class RH_Personal
|
||||
gvrow.FCTextBox("TxtPorPago").Text = "87.5"
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Public Sub LimpiarFonacot()
|
||||
TxtFonValor.Text = ""
|
||||
TxtFonImporteCredito.Text = ""
|
||||
TxtFonPagosHechos.Text = ""
|
||||
DdlFonTipoAplicacion.SelectedValueExist("-1")
|
||||
TxtFonDescripcion.Text = ""
|
||||
TxtFonNumCredito.Text = ""
|
||||
TxtFonFechaInicio.Text = ""
|
||||
ChkFonacot.Checked = False
|
||||
End Sub
|
||||
Protected Sub CargaFonacot()
|
||||
|
||||
Using onom As ClsNominas = New ClsNominas()
|
||||
onom.NomFonacotGet(UsuarioActual.CveEmpresa, -1, CvePersonal)
|
||||
GVNomFonacot.DataSource = onom.DtResultados
|
||||
GVNomFonacot.DataBind()
|
||||
End Using
|
||||
UpFonacotGrid.Update()
|
||||
End Sub
|
||||
|
||||
Protected Sub LnAddFonacot_Click(sender As Object, e As EventArgs)
|
||||
LimpiarFonacot()
|
||||
CveFonacot = -1
|
||||
RegistraScript("$('#ModalFonacot').modal();")
|
||||
End Sub
|
||||
Protected Sub LnkEditarNomFonacot_Click(sender As Object, e As EventArgs)
|
||||
Dim gvrow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||
CveFonacot = gvrow.DataKey("CveFonacot").ToEntero()
|
||||
Dim cvePersonal As Int32 = gvrow.DataKey("CvePersonal").ToEntero()
|
||||
Dim numeroCredito As String = gvrow.DataKey("NumeroCredito")
|
||||
Dim descripcion As String = gvrow.DataKey("Descripcion")
|
||||
Dim periodo As Int32 = gvrow.DataKey("Periodo").ToEntero()
|
||||
Dim cveTipoCalculo As Int32 = gvrow.DataKey("CveTipoCalculo").ToEntero()
|
||||
Dim importeCredito As Decimal = gvrow.DataKey("ImporteCredito").ToDecimal()
|
||||
Dim importeFijo As Decimal = gvrow.DataKey("ImporteFijo").ToDecimal()
|
||||
Dim pagosHechos As Decimal = gvrow.DataKey("PagosHechos").ToDecimal()
|
||||
Dim montoAcumulado As Decimal = gvrow.DataKey("MontoAcumulado").ToDecimal()
|
||||
Dim saldo As Decimal = gvrow.DataKey("Saldo").ToDecimal()
|
||||
Dim cveEstatus As Int32 = gvrow.DataKey("CveEstatus").ToEntero()
|
||||
Dim observaciones As String = gvrow.DataKey("Observaciones")
|
||||
If (periodo < 10000000) Then
|
||||
periodo = 20000101
|
||||
|
||||
End If
|
||||
LimpiarFonacot()
|
||||
|
||||
TxtFonValor.Text = importeFijo.ToString()
|
||||
TxtFonImporteCredito.Text = importeCredito.ToString()
|
||||
TxtFonPagosHechos.Text = pagosHechos.ToString()
|
||||
DdlFonTipoAplicacion.SelectedValueExist(cveTipoCalculo.ToString())
|
||||
TxtFonDescripcion.Text = descripcion
|
||||
TxtFonNumCredito.Text = numeroCredito
|
||||
TxtFonFechaInicio.Text = String.Format("{2}/{1}/{0}", periodo.ToString().Substring(0, 4), periodo.ToString().Substring(4, 2), periodo.ToString().Substring(6, 2))
|
||||
ChkFonacot.Checked = (cveEstatus = 1)
|
||||
UpModalFonacot.Update()
|
||||
RegistraScript("$('#ModalFonacot').modal();")
|
||||
End Sub
|
||||
|
||||
Protected Sub LnkEliminarNomFonacot_Click(sender As Object, e As EventArgs)
|
||||
Dim gvrow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||
|
||||
Dim cveFonacot As Integer = gvrow.DataKey("CveFonacot").ToEntero()
|
||||
Dim Continuar As Boolean = False
|
||||
Using onom As ClsNominas = New ClsNominas()
|
||||
Continuar = onom.NomFonacotRemove(UsuarioActual.CveEmpresa, cveFonacot)
|
||||
End Using
|
||||
If (Continuar) Then
|
||||
CargaFonacot()
|
||||
Alert("El registro fonacot se ha eliminado")
|
||||
End If
|
||||
End Sub
|
||||
Protected Sub LnkGuardarFonacot_Click(sender As Object, e As EventArgs)
|
||||
Dim importe As Double = TxtFonValor.Text.ToDouble()
|
||||
Dim importe As Decimal = TxtFonValor.Text.ToDecimal()
|
||||
Dim importeTotal As Decimal = TxtFonImporteCredito.Text.ToDecimal()
|
||||
Dim importePagado As Decimal = TxtFonPagosHechos.Text.ToDecimal()
|
||||
Dim TipoAplicacion As Integer = DdlFonTipoAplicacion.SelectedValue.ToEntero()
|
||||
Dim NoPagos As Integer = 0
|
||||
Dim SaldoIni As Double = 0
|
||||
Dim descripcion02 As String = TxtFonDescripcion.Text
|
||||
Dim descripcion01 As String = TxtFonNumCredito.Text
|
||||
Dim NumCredito As String = TxtFonNumCredito.Text
|
||||
Dim fecha As String = TxtFonFechaInicio.Text.Replace("_", "")
|
||||
Dim estatus As Integer = If(ChkFonacot.Checked, 1, 0)
|
||||
|
||||
Dim periodo As Integer = 20000101
|
||||
If fecha.Length > 8 Then
|
||||
fecha = fecha.ToDateTime().ToString("yyyy/MM/dd")
|
||||
periodo = fecha.ToDateTime().ToString("yyyyMMdd").ToEntero()
|
||||
Else
|
||||
fecha = ""
|
||||
End If
|
||||
|
||||
Dim continuar As Boolean = True
|
||||
Dim continuar As Boolean = False
|
||||
Using onom As ClsNominas = New ClsNominas()
|
||||
If (CveFonacot = -1) Then
|
||||
continuar = onom.NomFonacotAdd(UsuarioActual.CveEmpresa, CvePersonal, NumCredito, descripcion02, periodo, TipoAplicacion, importeTotal, importe, importePagado, 0, 0, estatus, "", UsuarioActual.CveUsuario)
|
||||
Else
|
||||
continuar = onom.NomFonacotUp(UsuarioActual.CveEmpresa, CveFonacot, CvePersonal, NumCredito, descripcion02, periodo, TipoAplicacion, importeTotal, importe, importePagado, 0, 0, estatus, "", UsuarioActual.CveUsuario)
|
||||
|
||||
Using ObjPersonal As ClsRH = New ClsRH()
|
||||
If Not ObjPersonal.AddConcepto(CvePersonal, -1, importe, TipoAplicacion, NoPagos, SaldoIni, UsuarioActual.CveUsuario, 4, descripcion01, descripcion02, fecha, "", estatus, UsuarioActual.CveEmpresa) Then continuar = False
|
||||
End If
|
||||
End Using
|
||||
' Old Borrar Caudillo 01/Marzo/2022
|
||||
'Using ObjPersonal As ClsRH = New ClsRH()
|
||||
' If Not ObjPersonal.AddConcepto(CvePersonal, -1, importe, TipoAplicacion, NoPagos, SaldoIni, UsuarioActual.CveUsuario, 4, NumCredito, descripcion02, fecha, "", estatus, UsuarioActual.CveEmpresa) Then continuar = False
|
||||
'End Using
|
||||
|
||||
If continuar Then
|
||||
Alert("Se actualizo el calculo de fonacot")
|
||||
CargaFonacot()
|
||||
RegistraScript("$('#ModalFonacot').modal('hide');")
|
||||
End If
|
||||
End Sub
|
||||
Protected Sub LnkCalcularFactor_Click(sender As Object, e As EventArgs)
|
||||
@@ -6804,5 +6903,7 @@ Partial Class RH_Personal
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
|
||||
End Class
|
||||
|
||||
|
||||
@@ -257,7 +257,6 @@ Partial Class Sistemas_Empresa
|
||||
TxtImporte.Text = .Importe.ToString
|
||||
|
||||
'NUEVOS
|
||||
TxtRegistoPatronal.Text = .RegistroPatronal
|
||||
TxtAreaGeografica.Text = .AreaGeografica
|
||||
DdlProtocolo.Text = .Buzon_Tipo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user