This commit is contained in:
@@ -71,6 +71,7 @@ Public Class ClsEdocumentacion
|
||||
End With
|
||||
If Not SqlTransacc Is Nothing Then SqlAdapter.SelectCommand.Transaction = SqlTransacc
|
||||
Data = New DataTable
|
||||
DSet = New DataSet()
|
||||
End Sub
|
||||
#Region "Conexiones"
|
||||
|
||||
@@ -515,6 +516,98 @@ Public Class ClsEdocumentacion
|
||||
#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
|
||||
Public Function RunQueryds(errormsg As String) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
Try
|
||||
SqlAdapter.Fill(DSet)
|
||||
retorno = True
|
||||
Catch ex As Exception
|
||||
retorno = False
|
||||
OnError(errormsg, ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||
End Try
|
||||
Return retorno
|
||||
End Function
|
||||
|
||||
|
||||
#Region "CRUD_Edoc_Materialidad"
|
||||
|
||||
Public Function TableroMaterialidadGET(cveEmpresa As Integer, anio As Integer, mes As Integer) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Edoc_TableroMaterialidad", 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 PA_Edoc_TableroMaterialidad.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function TableroMaterialidadDetalleGET(cveEmpresa As Integer, anio As Integer, mes As Integer, cveCliente As Integer) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Edoc_TableroMaterialidadDetalle", CommandType.StoredProcedure)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, cveEmpresa)
|
||||
addParameters("@Anio", SqlDbType.Int, anio)
|
||||
addParameters("@Mes", SqlDbType.Int, mes)
|
||||
addParameters("@CveCliente", SqlDbType.Int, cveCliente)
|
||||
retorno = RunQueryds("Ocurrió un error al obtener el PA_Edoc_TableroMaterialidad.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function Edoc_MaterialidadGet(cveDocMaterialidad As Int32, cveDocumentacion As Integer) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Edoc_MaterialidadGet", CommandType.StoredProcedure)
|
||||
addParameters("@CveDocMaterialidad", SqlDbType.Int, cveDocMaterialidad)
|
||||
addParameters("@CveDocumentacion", SqlDbType.Int, cveDocumentacion)
|
||||
retorno = RunQuery("Ocurrió un error al obtener el Edoc_Materialidad.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function Edoc_MaterialidadAdd(cveDocumentacion As Int32, adjunto As String, cveCliente As Integer, anio As Int32, mes As Int32, cveUsuario As Int32, fechaingreso As DateTime) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Edoc_MaterialidadAdd", CommandType.StoredProcedure)
|
||||
addParameters("@CveDocumentacion", SqlDbType.Int, cveDocumentacion)
|
||||
addParameters("@Adjunto", SqlDbType.VarChar, adjunto)
|
||||
addParameters("@CveCliente", SqlDbType.Int, cveCliente)
|
||||
addParameters("@Anio", SqlDbType.Int, anio)
|
||||
addParameters("@Mes", SqlDbType.Int, mes)
|
||||
addParameters("@CveUsuario", SqlDbType.Int, cveUsuario)
|
||||
retorno = RunQuery("Ocurrió un error al agregar el Edoc_Materialidad.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function Edoc_MaterialidadUp(cveDocMaterialidad As Int32, cveDocumentacion As Int32, adjunto As String, cveCliente As Integer, anio As Int32, mes As Int32, cveUsuario As Int32, fechaingreso As DateTime) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Edoc_MaterialidadUp", CommandType.StoredProcedure)
|
||||
addParameters("@CveDocMaterialidad", SqlDbType.Int, cveDocMaterialidad)
|
||||
addParameters("@Adjunto", SqlDbType.VarChar, adjunto)
|
||||
addParameters("@CveCliente", SqlDbType.Int, cveCliente)
|
||||
addParameters("@Anio", SqlDbType.Int, anio)
|
||||
addParameters("@Mes", SqlDbType.Int, mes)
|
||||
addParameters("@CveUsuario", SqlDbType.Int, cveUsuario)
|
||||
retorno = RunQuery("Ocurrió un error al actualizar el Edoc_Materialidad.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function Edoc_MaterialidadRemove(cveDocMaterialidad As Int32, CveEmpresa As Integer) As Boolean
|
||||
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Edoc_MaterialidadRemove", CommandType.StoredProcedure)
|
||||
addParameters("@CveDocMaterialidad", SqlDbType.Int, cveDocMaterialidad)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, CveEmpresa)
|
||||
retorno = RunQuery("Ocurrió un error al eliminar el Edoc_Materialidad.")
|
||||
Return retorno
|
||||
End Function
|
||||
#End Region
|
||||
|
||||
|
||||
#Region " P A R A M E T R O S "
|
||||
|
||||
Public Function AddDocumentacionParametros(CveDocumentacion As Integer, Parametro As String, Descripcion As String, CveEmpresa As Integer, CveUsaurio As Integer) As Boolean
|
||||
|
||||
@@ -8,9 +8,9 @@ Public Class ClsNominas
|
||||
#Region "Campos"
|
||||
'SQL ClsNominas_Nominas
|
||||
Private SqlConexion As SqlConnection
|
||||
Private SqlAdapter As SqlDataAdapter
|
||||
Public SqlAdapter As SqlDataAdapter
|
||||
Private SqlCommand As SqlCommand
|
||||
Private SqlTransacc As SqlTransaction
|
||||
Public SqlTransacc As SqlTransaction
|
||||
Private Data As DataTable
|
||||
Private disposedValue As Boolean = False ' Para detectar llamadas redundantes
|
||||
Protected DTSet As DataSet
|
||||
@@ -86,9 +86,12 @@ Public Class ClsNominas
|
||||
Public Property FechaPago As Date
|
||||
|
||||
#End Region
|
||||
Public Sub IniciaTransacSQL()
|
||||
SqlTransacc = SqlConexion.BeginTransaction()
|
||||
End Sub
|
||||
|
||||
|
||||
Public Function IniciaTransacSQL() As SqlTransaction
|
||||
If SqlTransacc Is Nothing Then SqlTransacc = SqlConexion.BeginTransaction()
|
||||
Return SqlTransacc
|
||||
End Function
|
||||
Public Sub Commit()
|
||||
SqlTransacc.Commit()
|
||||
End Sub
|
||||
@@ -2258,10 +2261,32 @@ Public Class ClsNominas
|
||||
retorno = True
|
||||
Catch sqEx As SqlException
|
||||
retorno = False
|
||||
OnError("Ocurrió un error al Realizar el calculo de nomina.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
OnError("Ocurrió un error al realizar el calculo de nomina.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
Catch ex As Exception
|
||||
retorno = False
|
||||
OnError("Ocurrió un error al Realizar el calculo de nomina.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
OnError("Ocurrió un error al realizar el calculo de nomina.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
End Try
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function GetNominasSinTimbrar(CvePeriodo As Integer, CveEmpresa As Integer) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
Try
|
||||
DTSet = New DataSet()
|
||||
DataAdapter("PA_Nom_NominaSinTimbrar", CommandType.StoredProcedure)
|
||||
With SqlAdapter.SelectCommand.Parameters
|
||||
.Add("@CvePeriodo", SqlDbType.Int).Value = CvePeriodo
|
||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||
End With
|
||||
|
||||
|
||||
SqlAdapter.Fill(DTSet)
|
||||
retorno = True
|
||||
Catch sqEx As SqlException
|
||||
retorno = False
|
||||
OnError("Ocurrió un error al obtener la nomina sin timbrar.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
Catch ex As Exception
|
||||
retorno = False
|
||||
OnError("Ocurrió un error al obtener la nomina sin timbrar.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
End Try
|
||||
Return retorno
|
||||
End Function
|
||||
|
||||
@@ -5148,6 +5148,9 @@ Public Class ClsPaginas
|
||||
PaginaDict.Add("/RH/RepVacaciones.aspx".ToUpper(), 422)
|
||||
PaginaDict.Add("/RH/CatChecadorTipo.aspx".ToUpper(), 427)
|
||||
PaginaDict.Add("/RH/CatChecadorHorarios.aspx".ToUpper(), 428)
|
||||
PaginaDict.Add("/Documentacion/TableroMaterialidad.aspx".ToUpper(), -1)
|
||||
PaginaDict.Add("/Documentacion/TableroMaterialidadDetalle.aspx".ToUpper(), -1)
|
||||
|
||||
|
||||
PaginaDict.Add("/RH/RepChecadorPreAsistencia.aspx".ToUpper(), 628)
|
||||
PaginaDict.Add("/RH/CatCaptaciones.aspx".ToUpper(), 629)
|
||||
|
||||
@@ -1966,10 +1966,13 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo
|
||||
_CvePersonal = SqlAdapter.SelectCommand.Parameters("@RETURN_VALUE").Value.ToString.ToEntero
|
||||
Retorno = True
|
||||
Catch Ex1 As SqlException
|
||||
'dbo.Vw_Val_Nom_Curps
|
||||
If Ex1.Message.Contains("Número: 2627;") Then
|
||||
Alert("El Nuevo Personal no se guardo debido a que actualmente se encuentra registrado", TipoMensaje.MsgAdvertencia)
|
||||
Alert("El nuevo personal no se guardo debido a que actualmente se encuentra registrado", TipoMensaje.MsgAdvertencia)
|
||||
ElseIf Ex1.Message.Contains("Chk_RH_PersonalSalarioIMSS") Then
|
||||
Alert("El Nuevo Personal no se guardo debido a que se presento un problema al calcular el salario", TipoMensaje.MsgAdvertencia)
|
||||
Alert("El nuevo personal no se guardo debido a que se presento un problema al calcular el salario", TipoMensaje.MsgAdvertencia)
|
||||
ElseIf Ex1.Message.Contains("dbo.Vw_Val_Nom_Curps") Then
|
||||
Alert(String.Format("El nuevo personal no se guardo, ya existe un personal con esta curp '{0}'", CURP), TipoMensaje.MsgAdvertencia)
|
||||
Else
|
||||
Me.OnError("Ocurrió un error al guardar el nuevo Personal.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
End If
|
||||
|
||||
@@ -116,7 +116,9 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
||||
Case "sendMailLPM"
|
||||
context.Response.Write(sendMailLPM(context))
|
||||
Case "getSATColomias"
|
||||
getSatColonias(context)
|
||||
getSATColonias(context)
|
||||
Case "GetFilesDirectory"
|
||||
GetFilesDirectory(context)
|
||||
End Select
|
||||
Catch ex As Exception
|
||||
ex.GuardaLog(ex.Message)
|
||||
@@ -1358,7 +1360,30 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
||||
End Function
|
||||
#End Region
|
||||
|
||||
Private Function GetFilesDirectory(ByVal context As HttpContext) As String
|
||||
Dim retorno As String = ""
|
||||
Dim urlhost As String = context.Request.Url.Host.ToUpper()
|
||||
If (urlhost = "LOCALHOST") Then
|
||||
Dim directorio As String = IfNull(context.Request("directorio"), "").ToString()
|
||||
|
||||
Dim xmlarchivos As System.Xml.Linq.XDocument = New System.Xml.Linq.XDocument()
|
||||
Dim xfolder As XElement = New XElement("folder")
|
||||
For Each urfile In System.IO.Directory.GetFiles(directorio)
|
||||
Dim xfile As New XElement("archivo", urfile)
|
||||
xfile.SetAttributeValue("EXT", Path.GetExtension(urfile))
|
||||
xfolder.Add(xfile)
|
||||
|
||||
Next
|
||||
xmlarchivos.Add(xfolder)
|
||||
retorno = xmlarchivos.ToString()
|
||||
context.Response.ContentType = "text/xml"
|
||||
context.Response.Write(retorno)
|
||||
context.Response.StatusCode = 200
|
||||
Else
|
||||
context.Response.StatusCode = 500
|
||||
End If
|
||||
Return retorno
|
||||
End Function
|
||||
|
||||
#Region "Get SAT Colonmias"
|
||||
Private Function getSATColonias(ByVal context As HttpContext) As String
|
||||
|
||||
266
Documentacion/TableroMaterialidad.aspx
Normal file
266
Documentacion/TableroMaterialidad.aspx
Normal file
@@ -0,0 +1,266 @@
|
||||
<%@ 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>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<style>
|
||||
#C_Tab_Tlablero tr th:nth-child(1) {
|
||||
text-align: left
|
||||
}
|
||||
|
||||
#C_Tab_Tlablero tr td:nth-child(n+2) {
|
||||
text-align: center
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||
Materialidad
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<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>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="portlet solid grey-cascade portlet-filter">
|
||||
<div class="portlet-title portlet-filterT portletfiltrostitlee">
|
||||
<div class="tools">
|
||||
<asp:Button ID="BtnConsultar" runat="server" OnClick="BtnConsultar_Click" CausesValidation="true" CssClass=" btn btn-primary " Text="Consultar" ValidationGroup="GrpFiltrar"></asp:Button>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="titlefiltros caption ">
|
||||
<div class="row">
|
||||
<div class="col-md-1" style="font-size: medium; max-width: 100px!important">Año:</div>
|
||||
<div class="col-md-2 " style="max-width: 283px!important">
|
||||
<asp:TextBox ID="Txtanio" runat="server" Text="2021" Style="display: inline-block;" type="number" CssClass=" form-control input-sm select2me" CausesValidation="true" MaxLength="30" ValidationGroup="GrpFiltrar" Width="100%"></asp:TextBox>
|
||||
</div>
|
||||
|
||||
<div class="col-md-1 " style="font-size: medium; max-width: 100px!important">Mes:</div>
|
||||
<div class=" col-md-2 " style="max-width: 180px!important">
|
||||
<asp:DropDownList ID="ddlMes" Width="100%" runat="server" CssClass="form-control select2me">
|
||||
<asp:ListItem Value="01" Text="01 - Enero"></asp:ListItem>
|
||||
<asp:ListItem Value="02" Text="02 - Febrero"></asp:ListItem>
|
||||
<asp:ListItem Value="03" Text="03 - Marzo"></asp:ListItem>
|
||||
<asp:ListItem Value="04" Text="04 - Abril"></asp:ListItem>
|
||||
<asp:ListItem Value="05" Text="05 - Mayo"></asp:ListItem>
|
||||
<asp:ListItem Value="06" Text="06 - Junio"></asp:ListItem>
|
||||
<asp:ListItem Value="07" Text="07 - Julio"></asp:ListItem>
|
||||
<asp:ListItem Value="08" Text="08 - Agosto"></asp:ListItem>
|
||||
<asp:ListItem Value="09" Text="09 - Septiembre"></asp:ListItem>
|
||||
<asp:ListItem Value="10" Text="10 - Octubre"></asp:ListItem>
|
||||
<asp:ListItem Value="11" Selected="true" Text="11 - Noviembre"></asp:ListItem>
|
||||
<asp:ListItem Value="12" Text="12 - Diciembre"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="portlet-body">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<table class=" table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
cellspacing="0" data-heighterror="330" data-freezecols="0" data-freezerows="1"
|
||||
id="C_Tab_Tlablero">
|
||||
<tbody>
|
||||
<tr>
|
||||
<asp:Repeater ID="RPTTableroHeader" runat="server">
|
||||
<HeaderTemplate>
|
||||
<!-- CvePersonal,CveEmpresa,InicioPeriodo,FinPeriodo,Antiguedad,Ejercicio,FechaIngreso,Dias,DiasDisfrutados,DiasPrima,DiasVacaciones-->
|
||||
|
||||
<th>Cliente</th>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<th><%# DataBinder.Eval(Container.DataItem, "Documentacion") %> </th>
|
||||
|
||||
<%--
|
||||
<tr>
|
||||
<td><%# String.Format("{0:dd/MM/yyyy} - {1:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "InicioPeriodo"), DataBinder.Eval(Container.DataItem, "FinPeriodo")) %> </td>
|
||||
<td><%# DataBinder.Eval(Container.DataItem, "Antiguedad") %> </td>
|
||||
<td><%# DataBinder.Eval(Container.DataItem, "DiasVacaciones") %> </td>
|
||||
<td><%# DataBinder.Eval(Container.DataItem, "Dias") %> </td>
|
||||
<td><%# DataBinder.Eval(Container.DataItem, "DiasDisfrutados") %> </td>
|
||||
<td><%# DataBinder.Eval(Container.DataItem, "DiasPrima") %> </td>
|
||||
<td></td>
|
||||
</tr>--%>
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
</FooterTemplate>
|
||||
|
||||
</asp:Repeater>
|
||||
<th>XML Timbrados</th>
|
||||
<th>PDF Timbrados</th>
|
||||
<th style="width: 85px;"></th>
|
||||
</tr>
|
||||
|
||||
|
||||
<asp:Repeater ID="RptDatos" runat="server" OnItemDataBound="RptDatos_ItemDataBound">
|
||||
<ItemTemplate>
|
||||
<tr>
|
||||
<td><%# DataBinder.Eval(Container.DataItem, "NombreComercial") %></td>
|
||||
<asp:Repeater ID="rptdocumentacion" runat="server">
|
||||
<ItemTemplate>
|
||||
<td><%#
|
||||
DataBinder.Eval( ((RepeaterItem)Container.Parent.Parent).DataItem ,string.Format("V_{0}",DataBinder.Eval(Container.DataItem, "CveDocumentacion"))).ToString() =="-1" ? "N/A":
|
||||
string.Format("<a onclick=\"cargarDocto({2},{1},'{4}','{3}')\">{0}</a>",
|
||||
(DataBinder.Eval( ((RepeaterItem)Container.Parent.Parent).DataItem ,string.Format("V_{0}",DataBinder.Eval(Container.DataItem, "CveDocumentacion"))).ToString() =="0"?
|
||||
|
||||
|
||||
"No":
|
||||
|
||||
|
||||
"Si")
|
||||
|
||||
,DataBinder.Eval(Container.DataItem, "CveDocumentacion"),DataBinder.Eval(((RepeaterItem)Container.Parent.Parent).DataItem, "CveCliente")
|
||||
,DataBinder.Eval(Container.DataItem, "Documentacion"),DataBinder.Eval(((RepeaterItem)Container.Parent.Parent).DataItem, "NombreComercial")
|
||||
)
|
||||
|
||||
|
||||
%> </td>
|
||||
|
||||
</ItemTemplate>
|
||||
|
||||
</asp:Repeater>
|
||||
<td>
|
||||
<%# string.Format("<a href=\"/Documentacion/TableroMaterialidadDetalle.ASPX?CveCliente={2}&anio={3}&mes={4}\" >{1}/{0}</a>",DataBinder.Eval(Container.DataItem, "Personal"),DataBinder.Eval(Container.DataItem, "PersonalXML"),DataBinder.Eval(Container.DataItem, "CveCliente"),anio,mes) %>
|
||||
</td>
|
||||
<td>
|
||||
<%# string.Format("<a href=\"/Documentacion/TableroMaterialidadDetalle.ASPX?CveCliente={2}&anio={3}&mes={4}\" >{1}/{0}</a>",DataBinder.Eval(Container.DataItem, "Personal"),DataBinder.Eval(Container.DataItem, "PersonalPDF"),DataBinder.Eval(Container.DataItem, "CveCliente"),anio,mes) %>
|
||||
</td>
|
||||
<td>
|
||||
<%# string.Format("<a class=\"btn btn-primary\" onclick=\"enviarDocto({0})\">Enviar</a>",DataBinder.Eval(Container.DataItem, "CveCliente"),anio,mes) %>
|
||||
</td>
|
||||
</tr>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<div id="ModalDoctosxmlpdf" 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 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>
|
||||
<asp:TextBox ID="Anexoxmlpd" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="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="LtlPeriodo"></asp:Literal>
|
||||
</div>
|
||||
|
||||
|
||||
<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>
|
||||
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" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="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>
|
||||
<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>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script>
|
||||
function cargarDocto(cveCliente, cveDocumentacion, cliente, documentacion) {
|
||||
$('.TxtcveCliente').val(cveCliente)
|
||||
$('.TxtcveDocumentacion').val(cveDocumentacion)
|
||||
$('.doctitulo').html(cliente + ' - ' + documentacion);
|
||||
$('#ModalDoctos').modal()
|
||||
}
|
||||
function enviarDocto(cveCliente) {
|
||||
$('.TxtcveClienteCorreo').val(cveCliente);
|
||||
$('.BtnEnviarDoctos').click();
|
||||
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
97
Documentacion/TableroMaterialidad.aspx.cs
Normal file
97
Documentacion/TableroMaterialidad.aspx.cs
Normal file
@@ -0,0 +1,97 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Extensiones;
|
||||
|
||||
public partial class Documentacion_TableroMaterialidad :ClsPaginas
|
||||
{
|
||||
#region "Propiedades"
|
||||
|
||||
public int anio
|
||||
{
|
||||
get { return ViewState["anio"] != null ? ViewState["anio"].ToString().ToEntero() : 0; }
|
||||
set { ViewState["anio"] = value; }
|
||||
}
|
||||
public int mes
|
||||
{
|
||||
get { return ViewState["mes"] != null ? ViewState["mes"].ToString().ToEntero() : 0; }
|
||||
set { ViewState["mes"] = value; }
|
||||
}
|
||||
#endregion
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
cargadatos();
|
||||
}
|
||||
}
|
||||
DataTable dt;
|
||||
public void cargadatos()
|
||||
{
|
||||
using (ClsEdocumentacion edoc = new ClsEdocumentacion())
|
||||
{
|
||||
if(edoc.TableroMaterialidadGET(UsuarioActual.CveEmpresa,(anio= Txtanio.Text.ToEntero()), (mes= ddlMes.SelectedValue.ToEntero())) && edoc.DSResultados.Tables.Count >1)
|
||||
{
|
||||
RptDatos.DataSource = edoc.DSResultados.Tables[0];
|
||||
dt = edoc.DSResultados.Tables[1];
|
||||
RPTTableroHeader.DataSource = edoc.DSResultados.Tables[1];
|
||||
RPTTableroHeader.DataBind();
|
||||
RptDatos.DataBind();
|
||||
DdlDocumentacion.DataSource = dt;
|
||||
DdlDocumentacion.DataBind();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
protected void RptDatos_ItemDataBound(object sender, RepeaterItemEventArgs e)
|
||||
{
|
||||
DataRowView item = (DataRowView)(e.Item.DataItem);
|
||||
Repeater rpt =((Repeater)e.Item.FindControl("rptdocumentacion"));
|
||||
rpt.DataSource = dt;
|
||||
rpt.DataBind();
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected void BtnAddClienteDocumento_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
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 BtnAddClienteDocumentoxmlpd_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void LckOpModalDoctos_Click(object sender, EventArgs e)
|
||||
{
|
||||
DateTime fecha = string.Format("{0}-{1}-01", anio, mes).ToDateTime();
|
||||
LtlPeriodo.Text = fecha.ToString("MMMM yyyy", System.Globalization.CultureInfo.CreateSpecificCulture("es-MX"));//string.Format("");
|
||||
UpModalDoctos.Update();
|
||||
RegistraScript("$('#ModalDoctos').modal();");
|
||||
}
|
||||
|
||||
protected void LckOpModalDoctosPDFXML_Click(object sender, EventArgs e)
|
||||
{
|
||||
DateTime fecha = string.Format("{0}-{1}-01", anio, mes).ToDateTime();
|
||||
LtlPeriodoXMLPDF.Text = fecha.ToString("MMMM yyyy", System.Globalization.CultureInfo.CreateSpecificCulture("es-MX"));
|
||||
RegistraScript("$('#ModalDoctos').modal();");
|
||||
Upxmlpdf.Update();
|
||||
}
|
||||
}
|
||||
114
Documentacion/TableroMaterialidadDetalle.aspx
Normal file
114
Documentacion/TableroMaterialidadDetalle.aspx
Normal file
@@ -0,0 +1,114 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="TableroMaterialidadDetalle.aspx.cs" Inherits="Documentacion_TableroMaterialidadDetalle" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
|
||||
<style>
|
||||
.GVData tr th:nth-child(1),
|
||||
.GVData tr th:nth-child(2) {
|
||||
text-align: left
|
||||
}
|
||||
|
||||
.GVData tr td:nth-child(n+3) {
|
||||
text-align: center
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||
Materialidad personal
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="portlet solid grey-cascade portlet-filter">
|
||||
<div class="portlet-title portlet-filterT portletfiltrostitlee">
|
||||
<div class="tools">
|
||||
<asp:Button ID="BtnConsultar" runat="server" OnClick="BtnConsultar_Click" CausesValidation="true" CssClass=" btn btn-primary " Text="Consultar" ValidationGroup="GrpFiltrar"></asp:Button>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="titlefiltros caption ">
|
||||
<div class="row">
|
||||
<div class="col-md-1" style="font-size: medium; max-width: 100px!important">Cliente:</div>
|
||||
<div class="col-md-2 " style="max-width: 283px!important">
|
||||
<ADS:Dropdownlost CssClassDdl="form-control input-sm select2me" ID="DdlCliente" Width="100%" data-metodo="getcliente" runat="server"
|
||||
DataTextField="Nombre" DataValueField="CveCliente" CssStyle="width: 100%;"></ADS:Dropdownlost>
|
||||
</div>
|
||||
<div class="col-md-1" style="font-size: medium; max-width: 100px!important">Año:</div>
|
||||
<div class="col-md-2 " style="max-width: 283px!important">
|
||||
<asp:TextBox ID="Txtanio" runat="server" Text="2021" Style="display: inline-block;" type="number" CssClass=" form-control input-sm select2me" CausesValidation="true" MaxLength="30" ValidationGroup="GrpFiltrar" Width="100%"></asp:TextBox>
|
||||
</div>
|
||||
<div class="col-md-1 " style="font-size: medium; max-width: 100px!important">MES:</div>
|
||||
<div class=" col-md-2 " style="max-width: 283px!important">
|
||||
|
||||
<asp:DropDownList ID="ddlMes" Width="100%" runat="server" CssClass="form-control select2me">
|
||||
<asp:ListItem Value="01" Text="01 - Enero"></asp:ListItem>
|
||||
<asp:ListItem Value="02" Text="02 - Febrero"></asp:ListItem>
|
||||
<asp:ListItem Value="03" Text="03 - Marzo"></asp:ListItem>
|
||||
<asp:ListItem Value="04" Text="04 - Abril"></asp:ListItem>
|
||||
<asp:ListItem Value="05" Text="05 - Mayo"></asp:ListItem>
|
||||
<asp:ListItem Value="06" Text="06 - Junio"></asp:ListItem>
|
||||
<asp:ListItem Value="07" Text="07 - Julio"></asp:ListItem>
|
||||
<asp:ListItem Value="08" Text="08 - Agosto"></asp:ListItem>
|
||||
<asp:ListItem Value="09" Text="09 - Septiembre"></asp:ListItem>
|
||||
<asp:ListItem Value="10" Text="10 - Octubre"></asp:ListItem>
|
||||
<asp:ListItem Value="11" Selected="true" Text="11 - Noviembre"></asp:ListItem>
|
||||
<asp:ListItem Value="12" Text="12 - Diciembre"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="portlet-body">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<asp:GridView ID="GVData" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall GVData" AutoGenerateColumns="False"
|
||||
DataKeyNames="CvePersonal,Codigo,NombreCompleto,CveClienteAsignado,docsXML,docsPDF">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Codigo">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblcodigo" runat="server" Text='<%# Eval("Codigo")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Nombre Completo">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblnombreCompleto" runat="server" Text='<%# Eval("NombreCompleto")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="XML">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbldocsXML" runat="server" Text='<%# Eval("docsXML")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="PDF">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbldocsPDF" runat="server" Text='<%# Eval("docsPDF")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
</asp:Content>
|
||||
|
||||
70
Documentacion/TableroMaterialidadDetalle.aspx.cs
Normal file
70
Documentacion/TableroMaterialidadDetalle.aspx.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Extensiones;
|
||||
|
||||
public partial class Documentacion_TableroMaterialidadDetalle : ClsPaginas
|
||||
{
|
||||
#region "Propiedades"
|
||||
public int CveCliente
|
||||
{
|
||||
get { return ViewState["CveCliente"] != null ? ViewState["CveCliente"].ToString().ToEntero() : 0; }
|
||||
set { ViewState["CveCliente"] = value; }
|
||||
}
|
||||
|
||||
public int anio
|
||||
{
|
||||
get { return ViewState["anio"] != null ? ViewState["anio"].ToString().ToEntero() : 0; }
|
||||
set { ViewState["anio"] = value; }
|
||||
}
|
||||
public int mes
|
||||
{
|
||||
get { return ViewState["mes"] != null ? ViewState["mes"].ToString().ToEntero() : 0; }
|
||||
set { ViewState["mes"] = value; }
|
||||
}
|
||||
#endregion
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
if (Request["CveCliente"] != null && Request["CveCliente"].ToString().ToEntero() > 0)
|
||||
{
|
||||
CveCliente = Request["CveCliente"].ToString().ToEntero();
|
||||
DdlCliente.SelectedValue = CveCliente.ToString();
|
||||
}
|
||||
if (Request["anio"] != null && Request["anio"].ToString().ToEntero() > 0)
|
||||
{
|
||||
anio = Request["anio"].ToString().ToEntero();
|
||||
Txtanio.Text = anio.ToString();
|
||||
}
|
||||
if (Request["mes"] != null && Request["mes"].ToString().ToEntero() > 0)
|
||||
{
|
||||
mes = Request["mes"].ToString().ToEntero();
|
||||
ddlMes.SelectedValueExist(mes.ToString());
|
||||
}
|
||||
cargadatos();
|
||||
}
|
||||
}
|
||||
public void cargadatos()
|
||||
{
|
||||
using (ClsEdocumentacion edoc = new ClsEdocumentacion())
|
||||
{
|
||||
if (edoc.TableroMaterialidadDetalleGET(UsuarioActual.CveEmpresa, (anio = Txtanio.Text.ToEntero()), (mes = ddlMes.SelectedValue.ToEntero()), CveCliente) && edoc.DSResultados.Tables.Count > 0)
|
||||
{
|
||||
GVData.DataSource = edoc.DSResultados.Tables[0];
|
||||
GVData.DataBind();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
protected void BtnConsultar_Click(object sender, EventArgs e)
|
||||
{
|
||||
cargadatos();
|
||||
}
|
||||
}
|
||||
@@ -147,7 +147,7 @@
|
||||
Fecha<br />ingreso
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("FechaInicio", "{0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||
<asp:Label ID="lblfechaingreso" runat="server" Text='<%# Eval("FechaInicio", "{0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Right" />
|
||||
</asp:TemplateField>
|
||||
@@ -183,7 +183,7 @@
|
||||
Días <br /> aguinaldo
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("diasPropAgui", "{0:N2}")%>'> </asp:Label>
|
||||
<asp:Label ID="lbldiasAguinaldoprop" runat="server" Text='<%# Eval("diasPropAgui", "{0:N2}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Right" CssClass="" />
|
||||
</asp:TemplateField>
|
||||
|
||||
@@ -174,7 +174,7 @@ public partial class Nomina_Aguinaldo : ClsPaginas
|
||||
{
|
||||
CveConceptoISR = rowcz["CveConcepto"].ToString().ToEntero();
|
||||
}
|
||||
DataRow rowcy = objNomina.DtResultados.FiltroPrimero("CveConceptoContable=174");
|
||||
DataRow rowcy = objNomina.DtResultados.FiltroPrimero("CveConceptoContable=174 AND Tipo ='D'");
|
||||
if ((rowcz != null))
|
||||
{
|
||||
CveConceptoDescuento = rowcy["CveConcepto"].ToString().ToEntero();
|
||||
@@ -201,15 +201,15 @@ public partial class Nomina_Aguinaldo : ClsPaginas
|
||||
Importe = gvrow.FCLabel("lblsueldoAguinaldoCompleto").Text.ToDecimal();
|
||||
ImporteGravado = gvrow.FCLabel("lblAguinaldoGravado").Text.ToDecimal();
|
||||
ImporteExento = Importe - ImporteGravado;
|
||||
ImporteValor = gvrow.FCLabel("diasPropAgui").Text.ToEntero();
|
||||
ImporteValor = gvrow.FCLabel("lbldiasAguinaldoprop").Text.ToEntero();
|
||||
|
||||
ImporteDescuento = gvrow.FCTextBox("TxtDescuento").Text.ToDecimal();
|
||||
|
||||
ImporteISR = gvrow.FCLabel("lblISRAguinaldo").Text.ToDecimal();
|
||||
|
||||
|
||||
// foreach (DataRow row in DTAguinaldos.Rows)
|
||||
//{
|
||||
|
||||
// foreach (DataRow row in DTAguinaldos.Rows)
|
||||
//{
|
||||
//DiasLaborados = row["DiasLaborados"].ToString().ToEntero();
|
||||
CvePeriodo = CvePeriodoSeleccionado;
|
||||
/*
|
||||
@@ -237,7 +237,7 @@ public partial class Nomina_Aguinaldo : ClsPaginas
|
||||
else
|
||||
{
|
||||
if (objNomina.AddNom_Nominas(-1, 1, CvePersonal, CvePeriodoSeleccionado, Importe.ToString().ToDouble(), 0, 0, Importe.ToString().ToDouble(), CveMoneda, 1, CveMetodoPago, DateTime.Now, "Deducciones nómina",
|
||||
"", "", "", "", 0, 0, 0, new DateTime(), new DateTime(), new DateTime(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||
"", "", "", "", 0, 0, 0, new DateTime(), new DateTime(), new DateTime(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, false))
|
||||
{
|
||||
CveNomina = objNomina.CveNomina;
|
||||
}
|
||||
@@ -254,15 +254,15 @@ public partial class Nomina_Aguinaldo : ClsPaginas
|
||||
if (CveNomina > 0)
|
||||
{
|
||||
|
||||
if (continuar &&!objNomina.AddUPNom_NominasDetalles(objNomina.CveNomina, CvePeriodoSeleccionado, CvePersonal, CveConcepto, Importe, ImporteGravado, ImporteExento, ImporteValor, UsuarioActual.CveUsuario, false, 1, 1, 1))
|
||||
if (continuar && !objNomina.AddUPNom_NominasDetalles(objNomina.CveNomina, CvePeriodoSeleccionado, CvePersonal, CveConcepto, Importe, ImporteGravado, ImporteExento, ImporteValor, UsuarioActual.CveUsuario, false, 1, 1, 1))
|
||||
{
|
||||
continuar = false;
|
||||
}
|
||||
if (continuar && !objNomina.AddUPNom_NominasDetalles(objNomina.CveNomina, CvePeriodoSeleccionado, CvePersonal, CveConceptoISR, ImporteISR, 0, 0, ImporteGravado, UsuarioActual.CveUsuario, false, 1, 1, 1))
|
||||
if (continuar && !objNomina.AddUPNom_NominasDetalles(objNomina.CveNomina, CvePeriodoSeleccionado, CvePersonal, CveConceptoISR, ImporteISR, 0, ImporteISR, ImporteGravado, UsuarioActual.CveUsuario, false, 1, 1, 1))
|
||||
{
|
||||
continuar = false;
|
||||
}
|
||||
if (continuar && ImporteDescuento >0 && !objNomina.AddUPNom_NominasDetalles(objNomina.CveNomina, CvePeriodoSeleccionado, CvePersonal, CveConceptoDescuento, ImporteDescuento, 0, 0, 0, UsuarioActual.CveUsuario, false, 1, 1, 1))
|
||||
if (continuar && ImporteDescuento > 0 && !objNomina.AddUPNom_NominasDetalles(objNomina.CveNomina, CvePeriodoSeleccionado, CvePersonal, CveConceptoDescuento, ImporteDescuento, 0, ImporteDescuento, 0, UsuarioActual.CveUsuario, false, 1, 1, 1))
|
||||
{
|
||||
continuar = false;
|
||||
}
|
||||
@@ -283,14 +283,20 @@ public partial class Nomina_Aguinaldo : ClsPaginas
|
||||
//{
|
||||
// continuar = objNomina.CambiaEstatusPeriodo(CvePeriodoSeleccionado, (int)enumNominasEstatus.Activa, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa);
|
||||
//}
|
||||
|
||||
if (continuar)
|
||||
{
|
||||
objNomina.Commit();
|
||||
//objNomina.Commit();
|
||||
}
|
||||
else
|
||||
{
|
||||
mensaje = string.Format(" {0} ", mensaje);
|
||||
objNomina.RollBack();
|
||||
}
|
||||
|
||||
|
||||
|
||||
objNomina.Dispose();
|
||||
}
|
||||
}
|
||||
@@ -302,7 +308,7 @@ public partial class Nomina_Aguinaldo : ClsPaginas
|
||||
if (continuar)
|
||||
{
|
||||
RegistraScript("$('#ModalAutorizar').modal('hide');");
|
||||
Alert("Se ha generado el aguinaldo");
|
||||
Alert("Se ha generado el aguinaldo.");
|
||||
BtnCalcular_Click(null, null);
|
||||
}
|
||||
}
|
||||
@@ -503,7 +509,7 @@ public partial class Nomina_Aguinaldo : ClsPaginas
|
||||
}
|
||||
if (gvrowTotal != null)
|
||||
{
|
||||
gvrowTotal.FCLabel("lblISRAguinaldo").Text = string.Format("${0:N2}", ISRTOTAL );
|
||||
gvrowTotal.FCLabel("lblISRAguinaldo").Text = string.Format("${0:N2}", ISRTOTAL);
|
||||
gvrowTotal.FCLabel("lblAguinaldoGravado").Text = string.Format("${0:N2}", aguinaldogravadoTotal);
|
||||
gvrowTotal.FCLabel("lblDescuento").Text = string.Format("${0:N2}", descuentoTotal);
|
||||
gvrowTotal.FCLabel("lblsueldoAguinaldoCompleto").Text = string.Format("${0:N2}", aguinaldoTotal);
|
||||
@@ -527,35 +533,69 @@ public partial class Nomina_Aguinaldo : ClsPaginas
|
||||
int filatitulo = fila;
|
||||
libro.SheetView.Freeze(filatitulo, 1);
|
||||
libro.Cell(fila, 1).Value = "Empleado";
|
||||
libro.Cell(fila, 2).Value = "Salario diario";
|
||||
libro.Cell(fila, 3).Value = "Días laborados";
|
||||
libro.Cell(fila, 4).Value = "Días aguinaldo";
|
||||
libro.Cell(fila, 5).Value = "Aguinaldo completo";
|
||||
libro.Cell(fila, 6).Value = "Aguinaldo gravado";
|
||||
libro.Cell(fila, 7).Value = "Aguinaldo exento";
|
||||
libro.Cell(fila, 8).Value = "I.S.R.";
|
||||
libro.Cell(fila, 9).Value = "Aguinaldo por pagar";
|
||||
libro.Cell(fila, 2).Value = "Fecha ingreso";//lblfechaingreso
|
||||
libro.Cell(fila, 3).Value = "Salario diario";
|
||||
libro.Cell(fila, 4).Value = "Días laborados";
|
||||
libro.Cell(fila, 5).Value = "Días base";
|
||||
libro.Cell(fila, 6).Value = "Días aguinaldo";//lbldiasAguinaldoprop
|
||||
libro.Cell(fila, 7).Value = "Aguinaldo completo";
|
||||
libro.Cell(fila, 8).Value = "Aguinaldo gravado";
|
||||
libro.Cell(fila, 9).Value = "Aguinaldo exento";
|
||||
libro.Cell(fila, 10).Value = "Fraccion I"; //lblFraccion1
|
||||
libro.Cell(fila, 11).Value = "Fraccion II"; //lblFraccion2
|
||||
libro.Cell(fila, 12).Value = "Fraccion III"; //lblFraccion3
|
||||
libro.Cell(fila, 13).Value = "Fraccion IV"; //lblFraccion4
|
||||
libro.Cell(fila, 14).Value = "I.S.R.";
|
||||
libro.Cell(fila, 15).Value = "Descuento"; //TxtDescuento
|
||||
libro.Cell(fila, 16).Value = "Aguinaldo por pagar";
|
||||
|
||||
libro.Range(fila, 1, fila, 8).Style.Font.FontColor = ClosedXML.Excel.XLColor.White;
|
||||
libro.Range(fila, 1, fila, 8).Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(79, 129, 189));
|
||||
libro.Range(fila, 1, fila, 16).Style.Font.FontColor = ClosedXML.Excel.XLColor.White;
|
||||
libro.Range(fila, 1, fila, 16).Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(79, 129, 189));
|
||||
foreach (GridViewRow gvrow in GVCalcularAguinaldo.Rows)
|
||||
{
|
||||
fila = fila + 1;
|
||||
|
||||
|
||||
if (!(gvrow.DataKey("CvePersonal").ToEntero() > 0))
|
||||
{
|
||||
if (gvrow.DataKey("CveSubProyecto").ToEntero() > 0)
|
||||
{
|
||||
libro.Range(fila, 1, fila, 16).Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(217, 217, 217));
|
||||
}
|
||||
else
|
||||
{
|
||||
libro.Range(fila, 1, fila, 16).Style.Font.FontColor = ClosedXML.Excel.XLColor.White;
|
||||
libro.Range(fila, 1, fila, 16).Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(128, 128, 128));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
libro.Cell(fila, 1).Value = gvrow.FCLabel("lblnombreCompleto").Text;
|
||||
libro.Cell(fila, 2).Value = gvrow.FCLabel("TxtsueldoDiario").Text.ToDecimal();
|
||||
libro.Cell(fila, 3).Value = gvrow.FCLabel("TxtdiasLaborados").Text.ToDecimal();
|
||||
libro.Cell(fila, 4).Value = gvrow.FCLabel("TxtdiasAguinaldo").Text.ToDecimal();
|
||||
libro.Cell(fila, 5).Value = gvrow.FCLabel("lblsueldoAguinaldoCompleto").Text.ToDecimal();
|
||||
libro.Cell(fila, 6).Value = gvrow.FCLabel("lblAguinaldoGravado").Text.ToDecimal();
|
||||
libro.Cell(fila, 7).Value = gvrow.FCLabel("lblsueldoAguinaldoCompleto").Text.ToDecimal() - gvrow.FCLabel("lblAguinaldoGravado").Text.ToDecimal();
|
||||
libro.Cell(fila, 8).Value = gvrow.FCLabel("lblISRAguinaldo").Text.ToDecimal();
|
||||
libro.Cell(fila, 9).Value = gvrow.FCLabel("lblAguinaldo").Text.ToDecimal();
|
||||
libro.Cell(fila, 2).Value = gvrow.FCLabel("lblfechaingreso").Text;
|
||||
libro.Cell(fila, 3).Value = gvrow.FCLabel("TxtsueldoDiario").Text.ToDecimal();
|
||||
libro.Cell(fila, 4).Value = gvrow.FCLabel("TxtdiasLaborados").Text.ToDecimal();
|
||||
libro.Cell(fila, 5).Value = gvrow.FCLabel("TxtdiasAguinaldo").Text.ToDecimal();
|
||||
libro.Cell(fila, 6).Value = gvrow.FCLabel("lbldiasAguinaldoprop").Text.ToDecimal();
|
||||
libro.Cell(fila, 7).Value = gvrow.FCLabel("lblsueldoAguinaldoCompleto").Text.ToDecimal();
|
||||
libro.Cell(fila, 8).Value = gvrow.FCLabel("lblAguinaldoGravado").Text.ToDecimal();
|
||||
libro.Cell(fila, 9).Value = gvrow.FCLabel("lblsueldoAguinaldoCompleto").Text.ToDecimal() - gvrow.FCLabel("lblAguinaldoGravado").Text.ToDecimal();
|
||||
|
||||
libro.Cell(fila, 10).Value = gvrow.FCLabel("lblFraccion1").Text.ToDecimal();
|
||||
libro.Cell(fila, 11).Value = gvrow.FCLabel("lblFraccion2").Text.ToDecimal();
|
||||
libro.Cell(fila, 12).Value = gvrow.FCLabel("lblFraccion3").Text.ToDecimal();
|
||||
libro.Cell(fila, 13).Value = gvrow.FCLabel("lblFraccion4").Text.ToDecimal();
|
||||
|
||||
|
||||
libro.Cell(fila, 14).Value = gvrow.FCLabel("lblISRAguinaldo").Text.ToDecimal();
|
||||
libro.Cell(fila, 15).Value = gvrow.FCTextBox("TxtDescuento").Text.ToDecimal();
|
||||
libro.Cell(fila, 16).Value = gvrow.FCLabel("lblAguinaldo").Text.ToDecimal();
|
||||
}
|
||||
|
||||
libro.Range(filatitulo, 1, fila, 9).Columns();
|
||||
libro.Range(filatitulo + 1, 2, fila + 1, 8).DataType = ClosedXML.Excel.XLDataType.Number;
|
||||
libro.Range(filatitulo + 1, 2, fila + 1, 2).Style.NumberFormat.Format = "$###,###,###,##0.00";
|
||||
libro.Range(filatitulo + 1, 5, fila + 1, 9).Style.NumberFormat.Format = "$###,###,###,##0.00";
|
||||
libro.Range(filatitulo, 1, fila, 16).Columns();
|
||||
libro.Range(filatitulo + 1, 3, fila + 1, 16).DataType = ClosedXML.Excel.XLDataType.Number;
|
||||
libro.Range(filatitulo + 1, 3, fila + 1, 3).Style.NumberFormat.Format = "$###,###,###,##0.00";
|
||||
libro.Range(filatitulo + 1, 7, fila + 1, 16).Style.NumberFormat.Format = "$###,###,###,##0.00";
|
||||
libro.ColumnsUsed().AdjustToContents();
|
||||
|
||||
System.IO.Stream fs = new System.IO.MemoryStream();
|
||||
@@ -605,8 +645,10 @@ class ClsClaseBaseD : IDisposable
|
||||
// REGISTRAR CONEXIÓN
|
||||
private int CveConexion = 0;
|
||||
|
||||
public ClsClaseBaseD(ClsClaseBaseD adsObj = null)
|
||||
public ClsClaseBaseD(ClsClaseBaseD adsObj = null, SqlTransaction sqlTransacc = null, SqlDataAdapter sqlAdapter =null)
|
||||
{
|
||||
|
||||
|
||||
if (adsObj != null && adsObj.SqlAdapter != null && adsObj.SqlAdapter.SelectCommand != null && adsObj.SqlAdapter.SelectCommand.Transaction != null)
|
||||
{
|
||||
SqlConexion = adsObj.SqlConexion;
|
||||
@@ -615,19 +657,29 @@ class ClsClaseBaseD : IDisposable
|
||||
}
|
||||
else
|
||||
{
|
||||
SqlConexion = new SqlConnection();
|
||||
SqlConexion.ConnectionString = ConfigurationManager.ConnectionStrings["Conexion"].ConnectionString;
|
||||
try
|
||||
if (sqlTransacc != null)
|
||||
{
|
||||
SqlConexion.Open();
|
||||
SqlAdapter = new SqlDataAdapter("", SqlConexion);
|
||||
ConexionAdd();
|
||||
SqlConexion = sqlTransacc.Connection;
|
||||
SqlAdapter = sqlAdapter;
|
||||
EsTransaccion = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
else
|
||||
{
|
||||
this.OnError("Ocurrió un error al intentar conectarse a la base de datos.", ex);
|
||||
SqlConexion = new SqlConnection();
|
||||
SqlConexion.ConnectionString = ConfigurationManager.ConnectionStrings["Conexion"].ConnectionString;
|
||||
try
|
||||
{
|
||||
SqlConexion.Open();
|
||||
SqlAdapter = new SqlDataAdapter("", SqlConexion);
|
||||
ConexionAdd();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.OnError("Ocurrió un error al intentar conectarse a la base de datos.", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void SqlDataAdapter(string StrSQL, CommandType TipoComando = CommandType.StoredProcedure)
|
||||
|
||||
@@ -405,7 +405,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<label style="top: 0; margin-bottom: 0; font-size: 13px; color: #888888; display: block;">Fecha</label>
|
||||
<label style="top: 0; margin-bottom: 0; font-size: 13px; color: #888888; display: block;">Entrada</label>
|
||||
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block; padding-left: 0px;">
|
||||
<asp:TextBox ID="TxtFechaIngreso" runat="server" CssClass="form-control input-sm ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVFechaIngreso" runat="server" ControlToValidate="txtFechaIngreso" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpFechas"></asp:RequiredFieldValidator>
|
||||
@@ -421,6 +421,26 @@
|
||||
<div class="col-md-4">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<label style="top: 0; margin-bottom: 0; font-size: 13px; color: #888888; display: block;">Salida</label>
|
||||
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block; padding-left: 0px;">
|
||||
<asp:TextBox ID="TxtFechaSalida" runat="server" CssClass="form-control input-sm ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvFechaSalida" runat="server" ControlToValidate="TxtFechaSalida" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpFechas"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoFechaSalida" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaSalida" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label style="top: 0; margin-bottom: 0; font-size: 13px; color: #888888; display: block;">Segundos</label>
|
||||
<div class="input-group input-sm date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block; padding-left: 0px;">
|
||||
<asp:TextBox ID="TxtSegundosFechaSalida" runat="server" CssClass="form-control input-sm " CausesValidation="true" MaxLength="18"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<asp:CheckBox ID="chkcontinuarAgregando" Checked="true" TextAlign="Left" Text="Continuar agregando:" runat="server" />
|
||||
</div>
|
||||
|
||||
@@ -28,8 +28,8 @@ public partial class Nomina_ChecadorAsistencia : ClsPaginas
|
||||
DdlTurno.DataBind();
|
||||
|
||||
CargaTiposPeriodo();
|
||||
TxtRpdFechaInicio.Text = "01/09/2021";
|
||||
TxtRpdFechaFin.Text = "15/09/2021";
|
||||
TxtRpdFechaInicio.Text = string.Format("{0:dd/MM/yyyy}",DateTime.Now );
|
||||
TxtRpdFechaFin.Text = string.Format("{0:dd/MM/yyyy}", DateTime.Now);
|
||||
DdlTipoAsistencias.DataSource = GlobalDTAsistenciasInasistencias.FiltraParametros(string.Format("CveEmpresa = {0}", UsuarioActual.CveEmpresa));
|
||||
DdlTipoAsistencias.DataBind();
|
||||
|
||||
@@ -359,9 +359,11 @@ public partial class Nomina_ChecadorAsistencia : ClsPaginas
|
||||
protected void LnkAgregarRegistro_Click(object sender, EventArgs e)
|
||||
{
|
||||
DateTime fechaing = string.Format("{0:dd-MM-yyyy} {0:HH}:{0:mm}:{1:00}", TxtFechaIngreso.Text.ToDateTimeExcat(), TxtSegundos.Text.ToEntero()).ToDateTimeExcat("dd-MM-yyyy HH:mm:ss");
|
||||
DateTime fechasal = string.Format("{0:dd-MM-yyyy} {0:HH}:{0:mm}:{1:00}", TxtFechaSalida.Text.ToDateTimeExcat(), TxtSegundosFechaSalida.Text.ToEntero()).ToDateTimeExcat("dd-MM-yyyy HH:mm:ss");
|
||||
bool continuar = false;
|
||||
List<RequestAddChecadorRegistro> items = new List<RequestAddChecadorRegistro>();
|
||||
items.Add(new RequestAddChecadorRegistro() { CveChecador = DdlChecador.SelectedValue.ToEntero(), CvePersonal = DdlmcPersonal.SelectedValue.ToEntero(), ChecadorID = -1, Fecha = fechaing });
|
||||
items.Add(new RequestAddChecadorRegistro() { CveChecador = DdlChecador.SelectedValue.ToEntero(), CvePersonal = DdlmcPersonal.SelectedValue.ToEntero(), ChecadorID = -1, Fecha = fechasal });
|
||||
using (ClsRH objrh = new ClsRH())
|
||||
{
|
||||
objrh.IniciaTransacSQL();
|
||||
|
||||
@@ -1848,8 +1848,58 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id="ModalNominaPendiente" class="modal ADS fade" role="dialog">
|
||||
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="modal-content">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title">
|
||||
<asp:Label ID="Label4" runat="server" Text="">Nóminas autorizadas sin timbrar.</asp:Label></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
|
||||
|
||||
<asp:GridView ID="GVNominaPendiente" runat="server" CssClass="table table-striped table-advance table-hover mysmallbtn ScrollAD Widthall GvNominas"
|
||||
Style="text-align: center;" GridLines="None" data-rows="2" data-heighterror="500" ShowHeaderWhenEmpty="true" ShowHeader="true" AutoGenerateColumns="false">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Código">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("Codigo")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Empleado" ItemStyle-CssClass="text-left">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("NombreCompleto")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Periodo" ItemStyle-CssClass="text-left">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("PeriodoTexto")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Tipo" ItemStyle-CssClass="text-left">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("PeriodoTipe")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<asp:LinkButton ID="LinkButton1" OnClick="LnkGuardarConceptosProvision_Click" CssClass="btn btn-primary" runat="server">Guardar</asp:LinkButton>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
|
||||
<div id="ModalRegistraProvision" class="modal ADS fade" role="dialog">
|
||||
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UpRegistroProvision" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
@@ -1865,7 +1915,7 @@
|
||||
|
||||
|
||||
|
||||
<asp:GridView ID="GVProvision" runat="server" DataKeyNames="CveConcepto,CvePersonal" OnRowDataBound="GVProvision_RowDataBound" CssClass="table table-striped table-advance table-hover mysmallbtn ScrollAD Widthall GvNominas"
|
||||
<asp:GridView ID="GVProvision" runat="server" DataKeyNames="CveConcepto,CvePersonal,CveConceptoContable" OnRowDataBound="GVProvision_RowDataBound" CssClass="table table-striped table-advance table-hover mysmallbtn ScrollAD Widthall GvNominas"
|
||||
Style="text-align: center;" GridLines="None" data-rows="2" data-heighterror="360" ShowHeaderWhenEmpty="true" ShowHeader="true" AutoGenerateColumns="false">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Concepto Contable">
|
||||
@@ -1883,7 +1933,7 @@
|
||||
<asp:Label runat="server" Text='<%# Eval("CodigoNombreCompleto")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Asignar a Concepto :" Visible="false">
|
||||
<asp:TemplateField HeaderText="Asignar a Concepto :" >
|
||||
<ItemTemplate>
|
||||
<asp:DropDownList ID="DdlCconceptosContables" CssClass="form-control input-sm select2me select2me" runat="server" AppendDataBoundItems="true" DataTextField="ConceptoContable" DataValueField="CveConceptoContable"></asp:DropDownList>
|
||||
</ItemTemplate>
|
||||
|
||||
@@ -193,6 +193,18 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
using (ClsNominas objnom =new ClsNominas())
|
||||
{
|
||||
objnom.GetNominasSinTimbrar(-1, UsuarioActual.CveEmpresa);
|
||||
GVNominaPendiente.DataSource = objnom.DTSetResultados.Tables[0];
|
||||
GVNominaPendiente.DataBind();
|
||||
if (GVNominaPendiente.Rows.Count > 0)
|
||||
{
|
||||
RegistraScript("$('#ModalNominaPendiente').modal();");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
DmodalCancelartimbre.Visible = (UsuarioActual.CveUsuario == 100);
|
||||
LnkOpenCancelarTimbre.Visible = (UsuarioActual.CveUsuario == 100);
|
||||
LnkVerCalculoISR.Visible = (UsuarioActual.CveUsuario == 100 || UsuarioActual.CveEmpresa == 119);
|
||||
@@ -7185,7 +7197,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
DdlCconceptosContables.DataSource = ContaConceptossource;
|
||||
DdlCconceptosContables.DataBind();
|
||||
DdlCconceptosContables.SelectedValueExist("174");
|
||||
DdlCconceptosContables.SelectedValueExist(e.Row.DataKey("CveConceptoContable"));
|
||||
ddllist.DataValueField = DdlCtaContable.DataValueField;
|
||||
ddllist.DataSource = Contasource;
|
||||
ddllist.DataBind();
|
||||
|
||||
@@ -1155,7 +1155,6 @@ Partial Class RH_CatPersonal
|
||||
TelefonoExtension:="", CelularPersonal:="", TelefonoMarcadoRapido:="", ContactoAlterno:="", CveTipodeSalario:=DDlTipoSalario.SelectedValue.ToEntero(), Sindicalizado:=isSindicalizado, CvePais:=151,
|
||||
CveMedioTransporte:=DdlMedioTransporte.SelectedValue.ToEntero()
|
||||
) Then
|
||||
|
||||
Dim filesgral As List(Of Archivo) = TxtFoto.getfiles().Archivos
|
||||
Dim filemove As String = ""
|
||||
For Each fileItem As Archivo In filesgral
|
||||
@@ -1171,6 +1170,7 @@ Partial Class RH_CatPersonal
|
||||
|
||||
ObjPersonal.AgroDepartamentoPersonalUp(UsuarioActual.CveEmpresa, DDlAgroDepartamento.SelectedValue.ToEntero(), ObjPersonal.CvePersonal, If(ChkCharolaForanea.Checked, 1, 0))
|
||||
|
||||
TxtFoto.Text = "[]"
|
||||
Alert(String.Format("El empleado a sido agregado satisfactoriamente <a href=""/RH/Personal.aspx?CvePersonal={0}"">Ver empleado</a>", ObjPersonal.CvePersonal), TipoMensaje.ToastInformacion, "", 0)
|
||||
continuar = True
|
||||
ISChange = True
|
||||
|
||||
@@ -617,7 +617,7 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright" id="Div1" runat="server">
|
||||
|
||||
|
||||
<asp:DropDownList ID="DdlVendedor" runat="server" CssClass="form-control select2me" Width="200px" DataTextField="Vendedor" DataValueField="CveVendedor"></asp:DropDownList>
|
||||
<asp:LinkButton ID="LnkAgregarVendedorSucursal" Visible="false" runat="server" data-toggle="tooltip" data-placement="right" title="Agregar vendedor por sucursal." CssClass="btn btn-circle btn-default" Text="<i class='fa fa-plus'></i> Agregar por Sucursal"></asp:LinkButton>
|
||||
<label for="<%= DdlVendedor.ClientID.ToString()%>">Vendedor:</label>
|
||||
@@ -793,7 +793,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body form">
|
||||
<asp:GridView ID="GvDireccionesEnvio" runat="server" Width="100%" GridLines="None"
|
||||
<asp:GridView ID="GvDireccionesEnvio" runat="server" Width="100%" GridLines="None"
|
||||
DataKeyNames="CveDireccionEnvio,CveCliente,CveClienteSucursal,EnvioDireccion,EnvioColonia,EnvioCiudad,EnvioEstado,EnvioCP,CveUsuario,Estatus,EnvioNoExt,EnvioNoInt,EnvioContacto,EnvioDepartamento,EnvioTel,CvePais,CveEstado,CveMunicipio,CveLocalidad,CveColonia"
|
||||
CssClass="table table-striped table-advance table-hover mysmallbtn ScrollAD" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de direcciones de envio">
|
||||
<Columns>
|
||||
@@ -1067,7 +1067,7 @@
|
||||
|
||||
<asp:CheckBox ID="ChkDesglosarIEPS" Checked="true" CssClass="make-switchsd" data-size="small" runat="server" />
|
||||
</div>
|
||||
<div class="form-group form-md-line-input" id="DivNoDesglosaIVA" runat="server">
|
||||
<div class="form-group form-md-line-input" id="DivNoDesglosaIVA" runat="server">
|
||||
El cliente No desglosa IVA:
|
||||
<asp:CheckBox ID="ChkNoDesglosaIVA" Checked="false" CssClass="make-switchsd" data-size="small" runat="server" />
|
||||
</div>
|
||||
@@ -2084,7 +2084,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -3427,7 +3427,7 @@
|
||||
<asp:UpdatePanel ID="UpDatosAvance" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<asp:Button ID="BtnCargaContratos" runat="server" ClientIDMode="Static" Text="CargaCuentas" Style="display: none;" OnClick="BtnCargaContratos_Click" />
|
||||
<asp:Button ID="BtnCargaContratos" runat="server" ClientIDMode="Static" Text="CargaCuentas" Style="display: none;" OnClick="BtnCargaContratos_Click" />
|
||||
|
||||
<div id="dvCa" style="width: 100%; top: 30px">
|
||||
<table id="dTable" class="table Widthall ">
|
||||
@@ -3949,186 +3949,217 @@
|
||||
<%-- ---------------------------- --%>
|
||||
<ajax:TabPanel ID="TabDocumentacion" runat="server" HeaderText="Documentación">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
<asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet light xspadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Documentación del Cliente</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
<asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet light xspadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Documentación del Cliente</span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
<asp:UpdatePanel ID="UPGvDocumentosCliente" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="portlet-body">
|
||||
<asp:GridView ID="GvDocumentosCliente" runat="server" AutoGenerateColumns="False" Style="max-width: 900px!important; width: 100%"
|
||||
DataKeyNames="CveDocumentacion,Documentacion,Orden,CveDocumentacionElectronica,Adjunto,Estatus,Observacion,Fecha,FechaIng,Usuario,FechaLimite,DocumentacionFormato,FechaVigencia,DiasLimite,AplicaDiasLimite,AplicaFechaVencimiento"
|
||||
EmptyDataText="No se encontraron registros de documentos" CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" data-sort="true" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="center" ItemStyle-Width="20px">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="ImgRequired" runat="server"></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ControlStyle-CssClass="template" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="300px" HeaderText="Documento">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="LtlDocumentacion" runat="server" Text='<%# Eval("Documentacion") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Completo" ItemStyle-Width="40px" Visible="true">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="chkEstatus" runat="server" CssClass="md-checksd" Enabled="false"></asp:CheckBox>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Observaciones" ItemStyle-Width="100">
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtObservaciones" OnTextChanged="TxtObservaciones_TextChanged" AutoPostBack="true" Width="300" MaxLength="100" runat="server" Text='<%# Eval("Observacion") %>'></asp:TextBox>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Vigencia" ItemStyle-Width="115">
|
||||
<ItemTemplate>
|
||||
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy" style="width: 115px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaVigencia" CssClass="form-control" Width="100" MaxLength="10" runat="server" Text='<%# Eval("FechaVigencia") %>'></asp:TextBox>
|
||||
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="imgCalendario" Style="margin-left: -5px!important" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
|
||||
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="TxtFechaVigencia" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario7" TargetControlID="TxtFechaVigencia" Enabled="True" PopupButtonID="imgCalendario"></ajax:CalendarExtender>
|
||||
<asp:CompareValidator ID="cvTxtFechaVigencia" runat="server" ControlToValidate="TxtFechaVigencia" Display="None" ErrorMessage="El campo <b>''Fecha Limite''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpRL"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoCvFI5" runat="server" HighlightCssClass="vco" TargetControlID="cvTxtFechaVigencia" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Fecha limite" ItemStyle-Width="100" Visible="False">
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtFechaLimite" Width="100" OnTextChanged="TxtObservaciones_TextChanged" AutoPostBack="true" onKeyPress="return handleInput(this.value)" MaxLength="100" runat="server" Text='<%# Eval("FechaLimite") %>'></asp:TextBox>
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario6" TargetControlID="TxtFechaLimite" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="rfvFechaI6" Enabled="false" runat="server" ControlToValidate="TxtFechaLimite" Display="None" ErrorMessage="El campo <b>''Fecha limite''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpRL"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="cvFechaI6" runat="server" ControlToValidate="TxtFechaLimite" Display="None" ErrorMessage="El campo <b>''Fecha Limite''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpRL"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoFfvFI4" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI6" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoCvFI4" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI6" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="50px">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="ImgDownLoadFormato" CssClass="btn btn-circle btn-sm orange" OnClick="DownLoadFormato_ClickDocumentacion" runat="server"
|
||||
Text="<i class='fa fa-download' style='color:white' title='Descargar formato'></i>" CausesValidation="False" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="50px">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="ImgUpload" runat="server" OnClick="UploadModal_ClickDocumentacionFirmaContrato" AlternateText="Editar" CausesValidation="False"
|
||||
CssClass="btn btn-circle btn-sm green" Text="<i title='Subir documento' class='fa fa-upload' title='Subir documento' ></i>" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="50px">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LnkDownLoadDoc" CssClass="btn btn-circle btn-sm blue" OnClick="DownLoad_ClickDocumentacion" runat="server"
|
||||
Text="<i class='fa fa-download' style='color:white' title='Descargar Documento'></i>" CausesValidation="False" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="50px">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LnkGvDocumentosEliminar" Visible="false" OnClick="Update_ClickDocumentacionRemove" runat="server" AlternateText="Eliminar" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="confirmar" data-btn-ok-label="si" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
|
||||
<asp:UpdatePanel ID="UPGvDocumentosCliente" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<asp:GridView ID="GvDocumentosCliente" runat="server" AutoGenerateColumns="False" Style="max-width: 900px!important; width: 100%"
|
||||
DataKeyNames="CveDocumentacion,Documentacion,Orden,CveDocumentacionElectronica,Adjunto,Estatus,Observacion,Fecha,FechaIng,Usuario,FechaLimite,DocumentacionFormato,FechaVigencia,DiasLimite,AplicaDiasLimite,AplicaFechaVencimiento"
|
||||
EmptyDataText="No se encontraron registros de documentos" CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" data-sort="true" GridLines="None">
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<asp:UpdatePanel ID="UpDocumentacion" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<asp:GridView ID="GvDocsVentas" runat="server" AutoGenerateColumns="False" DataKeyNames="CveDocumentacion,CveDocumentacionElectronica,FechaLimite" EmptyDataText="No se encontraron Documentos Registrados" CssClass="table table-striped table-advance table-hover Widthall" GridLines="None" ClientIDMode="Static">
|
||||
<Columns>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="center" ItemStyle-Width="20px">
|
||||
<asp:TemplateField HeaderText="">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="ImgRequired" runat="server"></asp:Literal>
|
||||
<asp:CheckBox ID="ChkDoc" Checked='<%# Eval("CveDocumentacionElectronica").ToString <> "-1" %>' runat="server" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ControlStyle-CssClass="template" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="300px" HeaderText="Documento">
|
||||
<asp:TemplateField HeaderText="Documento">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="LtlDocumentacion" runat="server" Text='<%# Eval("Documentacion") %>'></asp:Label>
|
||||
<asp:Literal ID="LtlD" runat="server" Text='<%# Eval("Documentacion") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Completo" ItemStyle-Width="40px" Visible="true">
|
||||
<asp:TemplateField HeaderText="Original">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="chkEstatus" runat="server" CssClass="md-checksd" Enabled="false"></asp:CheckBox>
|
||||
<asp:TextBox ID="TxtObs" MaxLength="50" runat="server" Text='<%# Eval("Observacion") %>' Width="60px"></asp:TextBox>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Observaciones" ItemStyle-Width="100">
|
||||
<asp:TemplateField HeaderText="Copia">
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtObservaciones" OnTextChanged="TxtObservaciones_TextChanged" AutoPostBack="true" Width="300" MaxLength="100" runat="server" Text='<%# Eval("Observacion") %>'></asp:TextBox>
|
||||
<asp:TextBox ID="TxtObs2" MaxLength="50" runat="server" Text='<%# Eval("Observacion2") %>' Width="60px"></asp:TextBox>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Vigencia" ItemStyle-Width="115">
|
||||
<ItemTemplate>
|
||||
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy" style="width: 115px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaVigencia" CssClass="form-control" Width="100" MaxLength="10" runat="server" Text='<%# Eval("FechaVigencia") %>'></asp:TextBox>
|
||||
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="imgCalendario" Style="margin-left: -5px!important" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
|
||||
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="TxtFechaVigencia" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario7" TargetControlID="TxtFechaVigencia" Enabled="True" PopupButtonID="imgCalendario"></ajax:CalendarExtender>
|
||||
<asp:CompareValidator ID="cvTxtFechaVigencia" runat="server" ControlToValidate="TxtFechaVigencia" Display="None" ErrorMessage="El campo <b>''Fecha Limite''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpRL"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoCvFI5" runat="server" HighlightCssClass="vco" TargetControlID="cvTxtFechaVigencia" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Fecha limite" ItemStyle-Width="100" Visible="False">
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtFechaLimite" Width="100" OnTextChanged="TxtObservaciones_TextChanged" AutoPostBack="true" onKeyPress="return handleInput(this.value)" MaxLength="100" runat="server" Text='<%# Eval("FechaLimite") %>'></asp:TextBox>
|
||||
|
||||
|
||||
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario6" TargetControlID="TxtFechaLimite" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="rfvFechaI6" Enabled="false" runat="server" ControlToValidate="TxtFechaLimite" Display="None" ErrorMessage="El campo <b>''Fecha limite''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpRL"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="cvFechaI6" runat="server" ControlToValidate="TxtFechaLimite" Display="None" ErrorMessage="El campo <b>''Fecha Limite''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpRL"></asp:CompareValidator>
|
||||
|
||||
<ajax:ValidatorCalloutExtender ID="vcoFfvFI4" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI6" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoCvFI4" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI6" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="50px">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="ImgDownLoadFormato" CssClass="btn btn-circle btn-sm orange" OnClick="DownLoadFormato_ClickDocumentacion" runat="server"
|
||||
Text="<i class='fa fa-download' style='color:white' title='Descargar formato'></i>" CausesValidation="False" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="50px">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="ImgUpload" runat="server" OnClick="UploadModal_ClickDocumentacionFirmaContrato" AlternateText="Editar" CausesValidation="False"
|
||||
CssClass="btn btn-circle btn-sm green" Text="<i title='Subir documento' class='fa fa-upload' title='Subir documento' ></i>" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="50px">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LnkDownLoadDoc" CssClass="btn btn-circle btn-sm blue" OnClick="DownLoad_ClickDocumentacion" runat="server"
|
||||
Text="<i class='fa fa-download' style='color:white' title='Descargar Documento'></i>" CausesValidation="False" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="50px">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LnkGvDocumentosEliminar" Visible="false" OnClick="Update_ClickDocumentacionRemove" runat="server" AlternateText="Eliminar" CausesValidation="False" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="confirmar" data-btn-ok-label="si" />
|
||||
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<%-- <asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="50px">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="ImgE" OnClick="Update_ClickDocumentacionAntidoping" runat="server" ToolTip="Aplicar Cambios" AlternateText="Editar" CausesValidation="False"
|
||||
CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-check' title='Aplicar Cambios'></i>" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>--%>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<asp:UpdatePanel ID="UpDocumentacion" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
|
||||
<asp:GridView ID="GvDocsVentas" runat="server" AutoGenerateColumns="False" DataKeyNames="CveDocumentacion,CveDocumentacionElectronica,FechaLimite" EmptyDataText="No se encontraron Documentos Registrados" CssClass="table table-striped table-advance table-hover Widthall" GridLines="None" ClientIDMode="Static">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkDoc" Checked='<%# Eval("CveDocumentacionElectronica").ToString <> "-1" %>' runat="server" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Documento">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlD" runat="server" Text='<%# Eval("Documentacion") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Original">
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtObs" MaxLength="50" runat="server" Text='<%# Eval("Observacion") %>' Width="60px"></asp:TextBox>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Copia">
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtObs2" MaxLength="50" runat="server" Text='<%# Eval("Observacion2") %>' Width="60px"></asp:TextBox>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6" style="text-align: center;">
|
||||
<asp:Button ID="BtnGuardarDocumentacion" runat="server" Text="Guardar Documentación" CssClass="btn btn-primary btn-sm" Visible="false" />
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6" style="text-align: center;">
|
||||
<asp:Button ID="BtnGuardarDocumentacion" runat="server" Text="Guardar Documentación" CssClass="btn btn-primary btn-sm" Visible="false" />
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet light xspadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Materialidad</span>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<asp:GridView ID="GVDocMaterialidad" runat="server" AutoGenerateColumns="False" Style="max-width: 900px!important; width: 100%"
|
||||
DataKeyNames="CveDocumentacion,Documentacion,Orden,CveDocumentacionElectronica,Adjunto,Estatus,Observacion,Fecha,FechaIng,Usuario,FechaLimite,DocumentacionFormato,FechaVigencia,DiasLimite,AplicaDiasLimite,AplicaFechaVencimiento"
|
||||
EmptyDataText="No se encontraron registros de documentos" CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" data-sort="true" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField ControlStyle-CssClass="template" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="300px" HeaderText="Documento">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="LtlDocumentacion" runat="server" Text='<%# Eval("Documentacion") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Enviar" ItemStyle-Width="40px" Visible="true">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="chkEstatus" runat="server" CssClass="md-checksd" Checked='<%# Eval("CveDocumentacionElectronica").ToString() <> "-1" %>'></asp:CheckBox>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Observaciones" ItemStyle-Width="100" Visible="false">
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtObservaciones" OnTextChanged="TxtObservaciones_TextChanged" AutoPostBack="true" Width="300" MaxLength="100" runat="server" Text='<%# Eval("Observacion") %>'></asp:TextBox>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Vigencia" ItemStyle-Width="115" Visible="false">
|
||||
<ItemTemplate>
|
||||
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy" style="width: 115px !important; padding: 0px;">
|
||||
<asp:TextBox ID="TxtFechaVigencia" CssClass="form-control" Width="100" MaxLength="10" runat="server" Text='<%# Eval("FechaVigencia") %>'></asp:TextBox>
|
||||
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="imgCalendario" Style="margin-left: -5px!important" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
|
||||
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="TxtFechaVigencia" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario7" TargetControlID="TxtFechaVigencia" Enabled="True" PopupButtonID="imgCalendario"></ajax:CalendarExtender>
|
||||
<asp:CompareValidator ID="cvTxtFechaVigencia" runat="server" ControlToValidate="TxtFechaVigencia" Display="None" ErrorMessage="El campo <b>''Fecha Limite''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpRL"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoCvFI5" runat="server" HighlightCssClass="vco" TargetControlID="cvTxtFechaVigencia" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Fecha limite" ItemStyle-Width="100" Visible="False">
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtFechaLimite" Width="100" OnTextChanged="TxtObservaciones_TextChanged" AutoPostBack="true" onKeyPress="return handleInput(this.value)" MaxLength="100" runat="server" Text='<%# Eval("FechaLimite") %>'></asp:TextBox>
|
||||
<ajax:CalendarExtender runat="server" ID="Calendario6" TargetControlID="TxtFechaLimite" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="rfvFechaI6" Enabled="false" runat="server" ControlToValidate="TxtFechaLimite" Display="None" ErrorMessage="El campo <b>''Fecha limite''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="GrpRL"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="cvFechaI6" runat="server" ControlToValidate="TxtFechaLimite" Display="None" ErrorMessage="El campo <b>''Fecha Limite''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpRL"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoFfvFI4" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI6" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="vcoCvFI4" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI6" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<div style="text-align: center;">
|
||||
|
||||
<asp:Button ID="LnkGuardarMaterialidad" OnClick="LnkGuardarMaterialidad_Click" runat="server" Text="Guardar Documentación" CssClass="btn btn-primary btn-sm" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
@@ -5042,14 +5073,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row " runat="server" id="DVDireccionCliente1" visible="false" >
|
||||
<div class="row " runat="server" id="DVDireccionCliente1" visible="false">
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtEnvioEstado" runat="server" Width="100%" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtEnvioEstado" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Estado''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<label for="<%= TxtEnvioEstado.ClientID.ToString()%>">Estado:</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -5066,7 +5097,7 @@
|
||||
|
||||
<div class="row ">
|
||||
<div class="col-md-6" runat="server" id="DVDireccionCliente2" visible="false">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtEnvioColonia" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtEnvioColonia" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Colonia''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<label for="<%= TxtEnvioColonia.ClientID.ToString()%>">Colonia:</label>
|
||||
@@ -5075,8 +5106,8 @@
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtEnvioCP" runat="server" Width="100%" CssClass="form-control" CausesValidation="true" TextMode="Number" onblur="DirclienteValidaCodigoPostal()" onkeypress="if(event.key === 'Enter'){return false;}"></asp:TextBox>
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtEnvioCP" runat="server" Width="100%" CssClass="form-control" CausesValidation="true" TextMode="Number" onblur="DirclienteValidaCodigoPostal()" onkeypress="if(event.key === 'Enter'){return false;}"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtEnvioCP" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Código Postal''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<label for="<%= TxtEnvioCP.ClientID.ToString()%>">Código Postal:</label>
|
||||
</div>
|
||||
@@ -5085,74 +5116,74 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlDirClientePais" AutoPostBack="true" AppendDataBoundItems="true" OnSelectedIndexChanged="DdlDirClientePais_SelectedIndexChanged" runat="server" DataTextField="Descripcion" DataValueField="CvePais" CssClass="form-control select2me" Width="100%" CausesValidation="true" >
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVDdlDirClientePais" InitialValue="-1" runat="server" CssClass="help-block errorimput" ControlToValidate="DdlDirClientePais" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Pais''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<label for="<%= DdlDirClientePais.ClientID.ToString()%>">Pais:</label>
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlDirClientePais" AutoPostBack="true" AppendDataBoundItems="true" OnSelectedIndexChanged="DdlDirClientePais_SelectedIndexChanged" runat="server" DataTextField="Descripcion" DataValueField="CvePais" CssClass="form-control select2me" Width="100%" CausesValidation="true">
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVDdlDirClientePais" InitialValue="-1" runat="server" CssClass="help-block errorimput" ControlToValidate="DdlDirClientePais" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Pais''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<label for="<%= DdlDirClientePais.ClientID.ToString()%>">Pais:</label>
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlDirClienteEstado" AutoPostBack="true" AppendDataBoundItems="true" OnSelectedIndexChanged="DdlDirClienteEstado_SelectedIndexChanged" runat="server" DataTextField="NombreEstado" DataValueField="CveEstado" CssClass="form-control select2me" Width="100%" CausesValidation="true" >
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVDdlDirClienteEstado" InitialValue="-1" runat="server" CssClass="help-block errorimput" ControlToValidate="DdlDirClienteEstado" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Estado''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<label for="<%= DdlDirClienteEstado.ClientID.ToString()%>">Estado:</label>
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlDirClienteEstado" AutoPostBack="true" AppendDataBoundItems="true" OnSelectedIndexChanged="DdlDirClienteEstado_SelectedIndexChanged" runat="server" DataTextField="NombreEstado" DataValueField="CveEstado" CssClass="form-control select2me" Width="100%" CausesValidation="true">
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVDdlDirClienteEstado" InitialValue="-1" runat="server" CssClass="help-block errorimput" ControlToValidate="DdlDirClienteEstado" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Estado''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<label for="<%= DdlDirClienteEstado.ClientID.ToString()%>">Estado:</label>
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlDirClienteMunicipio" AutoPostBack="true" AppendDataBoundItems="true" OnSelectedIndexChanged="DdlDirClienteMunicipio_SelectedIndexChanged" runat="server" DataTextField="Descripcion" DataValueField="CveMunicipio" CssClass="form-control select2me" Width="100%" CausesValidation="true" >
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVDdlDirClienteMunicipio" InitialValue="-1" runat="server" CssClass="help-block errorimput" ControlToValidate="DdlDirClienteMunicipio" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Municipio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<label for="<%= DdlDirClienteMunicipio.ClientID.ToString()%>">Municipio:</label>
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlDirClienteMunicipio" AutoPostBack="true" AppendDataBoundItems="true" OnSelectedIndexChanged="DdlDirClienteMunicipio_SelectedIndexChanged" runat="server" DataTextField="Descripcion" DataValueField="CveMunicipio" CssClass="form-control select2me" Width="100%" CausesValidation="true">
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVDdlDirClienteMunicipio" InitialValue="-1" runat="server" CssClass="help-block errorimput" ControlToValidate="DdlDirClienteMunicipio" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Municipio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<label for="<%= DdlDirClienteMunicipio.ClientID.ToString()%>">Municipio:</label>
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList runat="server" ID="DdlDirClienteLocalidad" CssClass="form-control select2me" DataValueField="CveLocalidad" DataTextField="NombreLocalidad" Width="100%" CausesValidation="true" ></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RfvDdlDirClienteLocalidad" InitialValue="-1" runat="server" CssClass="help-block errorimput" ControlToValidate="DdlDirClienteLocalidad" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Localidad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<label for="<%= DdlDirClienteLocalidad.ClientID.ToString()%>">Localidad:</label>
|
||||
<i></i>
|
||||
</div>
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList runat="server" ID="DdlDirClienteLocalidad" CssClass="form-control select2me" DataValueField="CveLocalidad" DataTextField="NombreLocalidad" Width="100%" CausesValidation="true"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RfvDdlDirClienteLocalidad" InitialValue="-1" runat="server" CssClass="help-block errorimput" ControlToValidate="DdlDirClienteLocalidad" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Localidad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<label for="<%= DdlDirClienteLocalidad.ClientID.ToString()%>">Localidad:</label>
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlDirClienteColonia" runat="server" AppendDataBoundItems="true" DataTextField="NombreAsentamiento" DataValueField="CveColonia" CssClass="form-control select2me" Width="100%" AutoPostBack="true" OnSelectedIndexChanged="DdlDirClienteColonia_SelectedIndexChanged" CausesValidation="true">
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVDdlDirClienteColonia" InitialValue="-1" runat="server" CssClass="help-block errorimput" ControlToValidate="DdlDirClienteColonia" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Colonia''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<label for="<%= DdlDirClienteColonia.ClientID.ToString()%>">Colonia:</label>
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlDirClienteColonia" runat="server" AppendDataBoundItems="true" DataTextField="NombreAsentamiento" DataValueField="CveColonia" CssClass="form-control select2me" Width="100%" AutoPostBack="true" OnSelectedIndexChanged="DdlDirClienteColonia_SelectedIndexChanged" CausesValidation="true" >
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVDdlDirClienteColonia" InitialValue="-1" runat="server" CssClass="help-block errorimput" ControlToValidate="DdlDirClienteColonia" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Colonia''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<label for="<%= DdlDirClienteColonia.ClientID.ToString()%>">Colonia:</label>
|
||||
<i></i>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
@@ -5178,9 +5209,9 @@
|
||||
|
||||
|
||||
|
||||
<div style="display:none">
|
||||
<asp:Button ID="BtnDirClienteValidar" ClientIDMode="Static" runat="server" CssClass="btn btn-primary" OnClick="BtnDirClienteValidar_Click" Text="validar" />
|
||||
</div>
|
||||
<div style="display: none">
|
||||
<asp:Button ID="BtnDirClienteValidar" ClientIDMode="Static" runat="server" CssClass="btn btn-primary" OnClick="BtnDirClienteValidar_Click" Text="validar" />
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
@@ -6451,7 +6482,7 @@
|
||||
</div>
|
||||
<%--FIN MODAL CLIENTE PERSONAL ENTREGA--%>
|
||||
|
||||
<div id="DivVendedoresSucursales" class="modal ADS fade" role="dialog">
|
||||
<div id="DivVendedoresSucursales" class="modal ADS fade" role="dialog">
|
||||
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpVendedoresSucursales" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="modal-content">
|
||||
@@ -6497,7 +6528,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
|
||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -7470,7 +7501,7 @@
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<script src="<%= String.Format("https://maps.googleapis.com/maps/api/js?key={0}&libraries=drawing&libraries=places", Extensiones.GOOGLE_MAPS_API_KEY) %>"></script>
|
||||
|
||||
@@ -7017,18 +7017,22 @@ Partial Class Clientes
|
||||
#Region "D O C U M E N T A C I O N "
|
||||
|
||||
Private Sub CargaDocumentacionCliente()
|
||||
Dim objRH As New ClsEdocumentacion()
|
||||
|
||||
Dim objRH As New ClsEdocumentacion()
|
||||
|
||||
If objRH.DocumentacionElectronicaGet(-1, If(CveCliente = -1, 0, CveCliente), -1, UsuarioActual.Empresa.CveEmpresa, -1, Modulo:=2) Then
|
||||
DTDocumentacion = objRH.DtResultados
|
||||
GvDocumentosCliente.DataSource = objRH.DtResultados
|
||||
End If
|
||||
If objRH.DocumentacionElectronicaGet(-1, If(CveCliente = -1, 0, CveCliente), -1, UsuarioActual.Empresa.CveEmpresa, -1, Modulo:=-2) Then
|
||||
GVDocMaterialidad.DataSource = objRH.DtResultados.FiltraParametros("Modulo IN (5,6)")
|
||||
End If
|
||||
objRH.Dispose()
|
||||
'If DTDocumentacion.FiltraParametros(" CveDocumentacionTipo = 7 ").Rows.Count > 0 Then
|
||||
' GvDocumentosCliente.DataSource = DTDocumentacion.FiltraParametros(" CveDocumentacionTipo = 7 ")
|
||||
'Else
|
||||
' GvDocumentosCliente.DataSource = Nothing
|
||||
'End If
|
||||
GVDocMaterialidad.DataBind()
|
||||
GvDocumentosCliente.DataBind()
|
||||
|
||||
UPGvDocumentosCliente.Update()
|
||||
@@ -10908,5 +10912,33 @@ Partial Class Clientes
|
||||
Private Sub RecargaGlobalDTVendedorSucursal()
|
||||
GlobalDTClientesVendedoresSubProyectos(UsuarioActual.CveEmpresa) = Nothing
|
||||
End Sub
|
||||
|
||||
Protected Sub LnkGuardarMaterialidad_Click(sender As Object, e As EventArgs)
|
||||
Using objRH As New ClsEdocumentacion()
|
||||
|
||||
For Each gvrow As GridViewRow In GVDocMaterialidad.Rows
|
||||
Dim CveDocumentacionElectronica As Integer = gvrow.DataKey("CveDocumentacionElectronica").ToEntero()
|
||||
Dim CveDocumentacion As Integer = gvrow.DataKey("CveDocumentacion").ToEntero()
|
||||
Dim FechaLimite As Date = gvrow.FCTextBox("TxtFechaLimite").Text.ToDate()
|
||||
Dim estatus As Boolean = gvrow.FCCheckBox("chkEstatus").Checked
|
||||
|
||||
If estatus Then
|
||||
If CveDocumentacionElectronica = -1 Then
|
||||
If objRH.DocumentacionElectronicaAdd(CveDocumentacion, -1, CveCliente, -1, 1, ObservacionDocumentacion, "", UsuarioActual.CveUsuario, FechaLimite) > 0 Then
|
||||
|
||||
End If
|
||||
End If
|
||||
Else
|
||||
If CveDocumentacionElectronica > 1 Then
|
||||
If objRH.DocumentacionElectronicaRemove(CveDocumentacionElectronica, -1) Then
|
||||
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
Alert("Los cambios se guardaron satisfactoriamente.")
|
||||
End Using
|
||||
|
||||
End Sub
|
||||
End Class
|
||||
|
||||
|
||||
@@ -372,6 +372,8 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user