Merge branch 'master' of http://oirigoyen@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -180,6 +180,10 @@ Public Class ADSBase
|
||||
If Not IsNothing(pr.SqlDataType) Then
|
||||
If Not IsNothing(pr.ParameterDirection) Then
|
||||
SqlAdapter.SelectCommand.Parameters.Add(pr.ParameterName, pr.SqlDataType).Direction = pr.ParameterDirection
|
||||
If (Not IsNothing(pr.SqlValue)) Then
|
||||
|
||||
SqlAdapter.SelectCommand.Parameters.Add(pr.ParameterName, pr.SqlDataType).Value = If(Not IsNothing(pr.SqlValue), pr.SqlValue, DBNull.Value)
|
||||
End If
|
||||
Else
|
||||
SqlAdapter.SelectCommand.Parameters.Add(pr.ParameterName, pr.SqlDataType).Value = If(Not IsNothing(pr.SqlValue), pr.SqlValue, DBNull.Value)
|
||||
End If
|
||||
|
||||
@@ -2482,12 +2482,13 @@ Public Class ClsNominas
|
||||
Return retorno
|
||||
End Function
|
||||
|
||||
|
||||
Public Function CalculoISRAnual(ejercicio As Integer, cveEmpresa As Integer) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Nom_CalculoISRAnual", CommandType.StoredProcedure)
|
||||
addParameters("@Ejercicio", SqlDbType.Int, ejercicio)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, cveEmpresa)
|
||||
retorno = RunQuery("Ocurrió un error al obtener el PA_Nom_CalculoISRAnual.")
|
||||
retorno = RunQuery("Ocurrió un error al obtener el Calculo ISR anual.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function GetNominaAcumulado(Ejercicio As Integer, CveProyecto As Integer, CveSubProyecto As Integer, CveTurno As Integer, CvePeriodoI As Integer, CvePeriodoF As Integer, CveEmpresa As Integer, Optional RegimenContratacion As Integer = 1, Optional CvePersonal As Integer = -1, Optional CveTipoPeriodo As Integer = -1) As Boolean
|
||||
@@ -3180,7 +3181,61 @@ Public Class ClsNominas
|
||||
retorno = RunQuery("Ocurrió un error al obtener el PA_Agro_Embarque_PalletGet.")
|
||||
Return retorno
|
||||
End Function
|
||||
#Region "Visor sat"
|
||||
|
||||
Public Function SATSolicitudTimbreNominaGral(IDsolicitud As Integer, cveEmpresa As Integer) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("[PA_SAT_SolicitudTimbreNominaGral]", CommandType.StoredProcedure)
|
||||
addParameters("@IDsolicitud", SqlDbType.Int, IDsolicitud)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, cveEmpresa)
|
||||
retorno = RunQuery("Ocurrió un error al obtener el Calculo ISR anual.")
|
||||
Return retorno
|
||||
End Function
|
||||
#Region "CRUD_SolicitudesNominas"
|
||||
Public Function SolicitudesNominasGet(idSolicitudNominas As Integer, CveEmpresa As Integer) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Gral_SAT_SolicitudesNominasGet", CommandType.StoredProcedure)
|
||||
addParameters("@idSolicitudNominas", SqlDbType.Int, idSolicitudNominas)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, CveEmpresa)
|
||||
retorno = RunQuery("Ocurrió un error al obtener el SolicitudesNominas.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function SolicitudesNominasAdd(idSolicitudCFDI As Integer, idSolicitudMetadata As Integer, estatus As Integer, observaciones As String, fechaInicio As DateTime, fechaFin As DateTime, cveUsuarioIng As Int32, cveEmpresa As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Gral_SAT_SolicitudesNominasAdd", CommandType.StoredProcedure)
|
||||
addParameters("@idSolicitudCFDI", SqlDbType.Int, idSolicitudCFDI)
|
||||
addParameters("@idSolicitudMetadata", SqlDbType.Int, idSolicitudMetadata)
|
||||
addParameters("@Estatus", SqlDbType.Int, estatus)
|
||||
addParameters("@Observaciones", SqlDbType.VarChar, observaciones)
|
||||
addParameters("@FechaInicio", SqlDbType.DateTime, fechaInicio)
|
||||
addParameters("@FechaFin", SqlDbType.DateTime, fechaFin)
|
||||
addParameters("@CveUsuarioIng", SqlDbType.Int, cveUsuarioIng)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, cveEmpresa)
|
||||
retorno = RunQuery("Ocurrió un error al agregar el SolicitudesNominas.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function SolicitudesNominasUp(idSolicitudNominas As Int32, idSolicitudCFDI As Int32, idSolicitudMetadata As Int32, estatus As Int32, observaciones As String, cveEmpresa As Int32) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Gral_SAT_SolicitudesNominasUp", CommandType.StoredProcedure)
|
||||
addParameters("@idSolicitudNominas", SqlDbType.Int, idSolicitudNominas)
|
||||
addParameters("@idSolicitudCFDI", SqlDbType.Int, idSolicitudCFDI)
|
||||
addParameters("@idSolicitudMetadata", SqlDbType.Int, idSolicitudMetadata)
|
||||
addParameters("@Estatus", SqlDbType.Int, estatus)
|
||||
addParameters("@Observaciones", SqlDbType.VarChar, observaciones)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, cveEmpresa)
|
||||
retorno = RunQuery("Ocurrió un error al actualizar el SolicitudesNominas.")
|
||||
Return retorno
|
||||
End Function
|
||||
Public Function SolicitudesNominasRemove(idSolicitudNominas As Int32, CveEmpresa As Integer) As Boolean
|
||||
Dim retorno As Boolean = False
|
||||
DataAdapter("PA_Gral_SAT_SolicitudesNominasRemove", CommandType.StoredProcedure)
|
||||
addParameters("@idSolicitudNominas", SqlDbType.Int, idSolicitudNominas)
|
||||
addParameters("@CveEmpresa", SqlDbType.Int, CveEmpresa)
|
||||
retorno = RunQuery("Ocurrió un error al eliminar el SolicitudesNominas.")
|
||||
Return retorno
|
||||
End Function
|
||||
#End Region
|
||||
#End Region
|
||||
#Region "IDisposable Support"
|
||||
' IDisposable
|
||||
Protected Overridable Sub Dispose(ByVal disposing As Boolean)
|
||||
|
||||
@@ -144,6 +144,25 @@ Public Class ClsVentas
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
Public Function GuardaTimbre(CveVenta As Integer, CveNomina As Integer, UUID As String) As Boolean
|
||||
Dim Retorno As Boolean = False
|
||||
DataAdapter("PA_GuardaTimbreGet")
|
||||
|
||||
With SqlAdapter.SelectCommand.Parameters
|
||||
.Add("@CveVenta", SqlDbType.Int).Value = CveVenta
|
||||
.Add("@CveNomina", SqlDbType.Int).Value = CveNomina
|
||||
.Add("@UUID", SqlDbType.VarChar).Value = UUID
|
||||
End With
|
||||
|
||||
Try
|
||||
SqlAdapter.Fill(Data)
|
||||
Retorno = True
|
||||
Catch ex As Exception
|
||||
OnError("Ocurrió un error al guardar los dataos del timbre.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||
End Try
|
||||
|
||||
Return Retorno
|
||||
End Function
|
||||
Public Function GetVenta(CveVenta As Integer, CveEmpresa As Integer, Optional VerificaAlmacen As Boolean = True) As Boolean
|
||||
Dim Retorno As Boolean = False
|
||||
DataAdapter("PA_VentasGet")
|
||||
|
||||
@@ -211,7 +211,7 @@ Public Class Timbrado
|
||||
Public Function CFDICancelar(Empresa As Empresa, FolioFiscal As String, Total As Decimal, RFCReceptor As String, RFCEmisor As String, Optional CvePACCancelacion As Integer = 2, Optional ValidaFactura As Boolean = True, Optional CveSATMotivoCancelacion As Integer = -1, Optional FolioSustitucion As String = "") As RespuestaCancelacionSAT
|
||||
Dim Retorno As New RespuestaCancelacionSAT
|
||||
Dim MsgCancelacion As New StringBuilder
|
||||
|
||||
'dim Error
|
||||
If CvePACCancelacion = 3 Then
|
||||
ValidaFactura = False
|
||||
End If
|
||||
@@ -1238,7 +1238,7 @@ Public Class Timbrado
|
||||
If Ret <> "" Then MensajeErrorCFDI = Ret
|
||||
Retorno = If(Ret = "", True, False)
|
||||
End If
|
||||
|
||||
'Dim error
|
||||
|
||||
|
||||
End Select
|
||||
|
||||
@@ -287,12 +287,12 @@
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Cliente">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lblcliente" OnClick="lblcliente_Click" data-toggle="tooltip" ToolTip="Empleados" runat="server" Text='<%# Eval("Cliente")%>'> </asp:LinkButton>
|
||||
<%# string.Format("<a href='/Ventas/Clientes.aspx?CveCliente={0}' target='_blank'>{1}</a>", Eval("CveCliente"), Eval("Cliente")) %>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="No Empleados">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("NoEmpleados")%>'> </asp:Label>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton OnClick="lblcliente_Click" data-toggle="tooltip" ToolTip="Empleados" runat="server" Text='<%# Eval("NoEmpleados")%>'> </asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-CssClass="thCliente" HeaderText="Total">
|
||||
@@ -449,7 +449,7 @@
|
||||
|
||||
<asp:TextBox ID="TxtClientescorreo" CssClass="hidden TxtClientescorreo" runat="server"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtcveClienteCorreo" CssClass="hidden TxtcveClienteCorreo" runat="server"></asp:TextBox>
|
||||
<%--<asp:Button ID="BtnEnviarDoctos" UseSubmitBehavior="false" OnClick="BtnEnviarDoctos_Click" runat="server" Text="Enviar" CssClass="btn btn-primary hidden BtnEnviarDoctos" />--%>
|
||||
<asp:Button ID="BtnEnviarDoctos" UseSubmitBehavior="false" OnClick="BtnEnviarDoctos_Click" runat="server" Text="Enviar" CssClass="btn btn-primary hidden BtnEnviarDoctos" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<div id="ModalShowempleados" class="modal ADS fade" role="dialog">
|
||||
@@ -459,14 +459,14 @@
|
||||
<div class="modal-content" style="width: 700px;">
|
||||
<div class="modal-header ">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Documentos</h4>
|
||||
<h4 class="modal-title">Empleados</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<asp:UpdatePanel runat="server" ID="UpShowempleados" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<asp:GridView ID="GVClienteEmpleado" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD" AutoGenerateColumns="False"
|
||||
<asp:GridView ID="GVClienteEmpleado" runat="server" GridLines="None" CssClass="table table-hover table-striped Widthall ScrollAD" AutoGenerateColumns="False"
|
||||
DataKeyNames="CveCliente,CvePersonal,ConAsistencia,NominasFaltantes,NominasCapturadas,Cliente,CodigoNombreCompleto">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Empleado">
|
||||
|
||||
@@ -90,10 +90,13 @@ public partial class Documentacion_TableroMaterialidad : ClsPaginas
|
||||
anio = Txtanio.Text.ToEntero();
|
||||
mes = ddlMes.SelectedValue.ToEntero();
|
||||
DateTime fecha = String.Format("{0}-{1}{2}-01", anio, (mes < 10 ? "0" : ""), mes).ToDateTime();
|
||||
using (ClsEdocumentacion edoc = new ClsEdocumentacion())
|
||||
//using (ClsEdocumentacion edoc = new ClsEdocumentacion())
|
||||
using (ADSBase edoc = new ADSBase())
|
||||
{
|
||||
LtlPeriodo.Text = fecha.ToString("MMMM yyyy", CultureInfo.CreateSpecificCulture("es-MX"));
|
||||
edoc.Materialidad_Tablero(UsuarioActual.CveEmpresa, anio, mes);
|
||||
//edoc.Materialidad_Tablero(UsuarioActual.CveEmpresa, anio, mes);
|
||||
edoc.RunConsulta(String.Format("EXEC PA_Materialidad_TableroGET @CveEmpresa ={0}, @Anio={1}, @Mes={2}", UsuarioActual.CveEmpresa, anio, mes));
|
||||
DataSet ds = edoc.DTSetResultados;
|
||||
if (edoc.DtResultados.Rows.Count > 0)
|
||||
{
|
||||
DataRow drow = edoc.DtResultados.Rows[0];
|
||||
@@ -114,31 +117,36 @@ public partial class Documentacion_TableroMaterialidad : ClsPaginas
|
||||
LtlDoctosXEmplEntregados.Text = String.Format("{0}", drow["DoctosOkE"]);
|
||||
LtlDoctosXEmplRestantes.Text = String.Format("{0}", drow["DoctosRE"]);
|
||||
}
|
||||
if (edoc.DSResultados.Tables.Count > 1)
|
||||
if (ds.Tables.Count > 1)
|
||||
{
|
||||
GVMaterialidad.DataSource = edoc.DSResultados.Tables[1];
|
||||
GVMaterialidad.DataSource = ds.Tables[1];
|
||||
GVMaterialidad.DataBind();
|
||||
}
|
||||
if (edoc.DSResultados.Tables.Count > 2)
|
||||
if (ds.Tables.Count >2)
|
||||
{
|
||||
GvDoctosfaltantes.DataSource = edoc.DSResultados.Tables[2].FiltraParametros("ISOK =0", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GvDoctosfaltantes.DataSource = ds.Tables[2].FiltraParametros("ISOK =0", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GvDoctosfaltantes.DataBind();
|
||||
GvDoctosGrales.DataSource = edoc.DSResultados.Tables[2].FiltraParametros("Tipo=1", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GvDoctosGrales.DataSource = ds.Tables[2].FiltraParametros("Tipo=1", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GvDoctosGrales.DataBind();
|
||||
GvDoctosClientes.DataSource = edoc.DSResultados.Tables[2].FiltraParametros("Tipo=2", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GvDoctosClientes.DataSource = ds.Tables[2].FiltraParametros("Tipo=2", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GvDoctosClientes.DataBind();
|
||||
GVDoctosPersonal.DataSource = edoc.DSResultados.Tables[2].FiltraParametros("Tipo=3", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GVDoctosPersonal.DataBind();
|
||||
GVDoctosPersonal.DataSource = ds.Tables[2].FiltraParametros("Tipo=3", "", new string[] { "CveDocumentacion", "Tipo", "CvePersonal", "ISOK", "Documentacion", "CodigoNombreCompleto" });
|
||||
GVDoctosPersonal.DataBind();
|
||||
}
|
||||
if (edoc.DSResultados.Tables.Count > 3)
|
||||
if (ds.Tables.Count > 3)
|
||||
{
|
||||
DtEmpleados = edoc.DSResultados.Tables[3];
|
||||
DtEmpleados = ds.Tables[3];
|
||||
}
|
||||
if (ds.Tables.Count > 4)
|
||||
{
|
||||
DdlDocumentacion.DataSource = ds.Tables[4];
|
||||
DdlDocumentacion.DataBind();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
protected void BtnConsultar_Click(object sender, EventArgs e)
|
||||
@@ -731,6 +739,12 @@ public partial class Documentacion_TableroMaterialidad : ClsPaginas
|
||||
decimal TotalDeducciones { get; set; }
|
||||
|
||||
}
|
||||
|
||||
protected void BtnEnviarDoctos_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Alert("El correo se ha enviado.");
|
||||
}
|
||||
}
|
||||
|
||||
namespace ADSistemaLibrary3.SatXml
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h3>Arraste o haga click para subir el archivo Excel</h3>
|
||||
<h3>Arrastre o haga click para subir el archivo Excel</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
@@ -2049,11 +2049,92 @@ Partial Class General_SaldosIniciales
|
||||
Alert("El nombre de la veintenueveava columna debe ser 'Tipo Contrato'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(29).ColumnName = "Departamento" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(30).ColumnName = "Tipo Periodo" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(31).ColumnName = "Escolaridad" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(32).ColumnName = "Salario Diario" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(33).ColumnName = "Tipo Salario" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(34).ColumnName = "Salario variable" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(35).ColumnName = "Sindicalizado" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(36).ColumnName = "SubProyecto" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(37).ColumnName = "RegimenContratacion" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(38).ColumnName = "Area Geografica" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(39).ColumnName = "Prima vacacional" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(40).ColumnName = "Dias aguinaldo" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(41).ColumnName = "Metodo Pago" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(42).ColumnName = "SDI" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(43).ColumnName = "Nominista" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
If Not dt.Columns(44).ColumnName = "Registro Patronal" Then
|
||||
Alert("El nombre de la veintenueveava columna debe ser ''. Favor de corregirlo", TipoMensaje.MsgError)
|
||||
Return False
|
||||
End If
|
||||
End Function
|
||||
Protected Sub UpPersonal(dt As DataTable)
|
||||
|
||||
Dim NumRows As Integer = 0
|
||||
Dim dtregistrospatronales As New DataTable
|
||||
Dim dTSubProyectos As New DataTable
|
||||
Dim dTDepartamentos As New DataTable
|
||||
Dim dTTurno As New DataTable
|
||||
Dim ObjRH As New ClsRH
|
||||
|
||||
Dim dtpuestos = GlobalDTRHPuestos(UsuarioActual.CveEmpresa)
|
||||
dtpuestos.CaseSensitive = False
|
||||
If ObjRH.GetRegistrosPatronales(-1, UsuarioActual.CveEmpresa, -1) Then
|
||||
dtregistrospatronales = ObjRH.DtResultados
|
||||
dtregistrospatronales.CaseSensitive = False
|
||||
dTSubProyectos = GlobalDTSubProyectos(-1, -1, UsuarioActual.CveEmpresa, -1)
|
||||
dTDepartamentos = GlobalDTDepartamentos().FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa}")
|
||||
dTTurno = GlobalDTTurno().FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa}")
|
||||
dTSubProyectos.CaseSensitive = False
|
||||
dTDepartamentos.CaseSensitive = False
|
||||
dTTurno.CaseSensitive = False
|
||||
End If
|
||||
Try
|
||||
ObjRH.IniciaTransacSQL()
|
||||
Dim ErrorRH As Boolean = False
|
||||
@@ -2063,6 +2144,7 @@ Partial Class General_SaldosIniciales
|
||||
|
||||
For Each Row As DataRow In dt.Rows
|
||||
Dim myarraystr As String()
|
||||
Dim RegistroPatronal As String = Row("Registro Patronal").ToString().ToUpper()
|
||||
Dim Codigo As String = Row("Código").ToString
|
||||
Dim ApellidoPaterno As String = Row("Apellido Paterno").ToString
|
||||
Dim ApellidoMaterno As String = Row("Apellido Materno").ToString
|
||||
@@ -2086,7 +2168,7 @@ Partial Class General_SaldosIniciales
|
||||
Dim CURP As String = Row("CURP").ToString
|
||||
Dim ClabeInterbancaria As String = Row("CLABE").ToString
|
||||
Dim EstatusPersonal As String = Row("Estatus Personal").ToString.ToUpper
|
||||
|
||||
Dim SubProyecto As String = Row("SubProyecto").ToString.ToUpper
|
||||
'Nuevas
|
||||
Dim Estado As String = Row("Estado").ToString
|
||||
Dim NombrePadre As String = Row("Nombre Padre").ToString
|
||||
@@ -2112,6 +2194,7 @@ Partial Class General_SaldosIniciales
|
||||
Dim CveEstadoCivil As Integer = 0
|
||||
Dim CveEstatusPersonal As Integer = 0
|
||||
' Dim CveSucursal As Integer = GlobalDTSucursales(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveSucursal").ToString.ToEntero
|
||||
Dim CveRegistroPatronal As Integer
|
||||
Dim CvePuesto As Integer
|
||||
Dim CveTurno As Integer
|
||||
Dim CveDepartamento As Integer
|
||||
@@ -2121,43 +2204,67 @@ Partial Class General_SaldosIniciales
|
||||
Dim CveEscolaridad As Integer
|
||||
Dim CveMetodoPago As Integer
|
||||
Dim CveUsuarioNomina As Integer
|
||||
Dim CveSubProyecto As Integer
|
||||
|
||||
myarraystr = Puesto.Split(":"c)
|
||||
If (myarraystr.Length > 0) Then
|
||||
If (myarraystr.Length > 1) Then
|
||||
CvePuesto = myarraystr(0).ToEntero()
|
||||
CvePuesto = dtpuestos.FiltroPrimeroValor("CvePuesto", $"(CvePuesto) = ({CvePuesto})").ToString.ToEntero
|
||||
Else
|
||||
CvePuesto = GlobalDTRHPuestos(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CvePuesto", $"UPPER(Puesto) = ('{Puesto}')").ToString.ToEntero
|
||||
CvePuesto = dtpuestos.FiltroPrimeroValor("CvePuesto", $"(Puesto) = ('{Puesto}')").ToString.ToEntero
|
||||
|
||||
End If
|
||||
|
||||
CveRegistroPatronal = dtregistrospatronales.FiltroPrimeroValor("CveRegistroPatronal", $"(RegistroPatronal) = ('{RegistroPatronal}')").ToString.ToEntero
|
||||
If CvePuesto = 0 Then
|
||||
CvePuesto = -1
|
||||
End If
|
||||
|
||||
myarraystr = Turno.Split(":"c)
|
||||
If (myarraystr.Length > 0) Then
|
||||
If (myarraystr.Length > 1) Then
|
||||
CveTurno = myarraystr(0).ToEntero()
|
||||
CveTurno = dTTurno.FiltroPrimeroValor("CveTurno", $"CveTurno = {CveTurno}").ToString.ToEntero
|
||||
Else
|
||||
CveTurno = GlobalDTTurno().FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa}").FiltroPrimeroValor("CveTurno", $"Turno = '{Turno}'").ToString.ToEntero
|
||||
CveTurno = dTTurno.FiltroPrimeroValor("CveTurno", $"Turno = '{Turno}'").ToString.ToEntero
|
||||
End If
|
||||
If CveTurno = 0 Then
|
||||
CveTurno = -1
|
||||
End If
|
||||
|
||||
|
||||
|
||||
myarraystr = SubProyecto.Split(":"c)
|
||||
If (myarraystr.Length > 1) Then
|
||||
CveSubProyecto = myarraystr(0).ToEntero()
|
||||
CveSubProyecto = dTSubProyectos.FiltroPrimeroValor("CveSubProyecto", $"CveSubProyecto = {CveSubProyecto}").ToString().ToEntero()
|
||||
Else
|
||||
CveSubProyecto = dTSubProyectos.FiltroPrimeroValor("CveSubProyecto", $"SubProyecto = '{SubProyecto}'").ToString().ToEntero()
|
||||
End If
|
||||
If CveSubProyecto = 0 Then
|
||||
CveSubProyecto = -1
|
||||
End If
|
||||
|
||||
|
||||
|
||||
|
||||
myarraystr = Departamento.Split(":"c)
|
||||
If (myarraystr.Length > 0) Then
|
||||
If (myarraystr.Length > 1) Then
|
||||
CveDepartamento = myarraystr(0).ToEntero()
|
||||
CveDepartamento = dTDepartamentos.FiltroPrimeroValor("CveDepartamento", $"CveDepartamento = {CveDepartamento}").ToString.ToEntero
|
||||
Else
|
||||
|
||||
CveDepartamento = GlobalDTDepartamentos().FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa}").FiltroPrimeroValor("CveDepartamento", $"Departamento = '{Departamento}'").ToString.ToEntero
|
||||
CveDepartamento = DTDepartamentos.FiltroPrimeroValor("CveDepartamento", $"Departamento = '{Departamento}'").ToString.ToEntero
|
||||
End If
|
||||
If CveDepartamento <= 0 Then
|
||||
CveDepartamento = -1
|
||||
End If
|
||||
|
||||
myarraystr = Estado.Split(":"c)
|
||||
If (myarraystr.Length > 0) Then
|
||||
If (myarraystr.Length > 1) Then
|
||||
CveEstado = myarraystr(0).ToEntero()
|
||||
CveEstado = GlobalDTGralEstados("MEX").FiltroPrimeroValor("CveEstado", $"CveEstado = {CveEstado}").ToString.ToEntero
|
||||
Else
|
||||
CveEstado = GlobalDTGralEstados("MEX").FiltroPrimeroValor("CveEstado", $"Clave = '{Estado}'").ToString.ToEntero
|
||||
CveEstado = GlobalDTGralEstados("MEX").FiltroPrimeroValor("CveEstado", $"NombreEstado = '{Estado}'").ToString.ToEntero
|
||||
End If
|
||||
If CveEstado = 0 Then
|
||||
CveEstado = -1
|
||||
@@ -2166,16 +2273,27 @@ Partial Class General_SaldosIniciales
|
||||
myarraystr = TipoContrato.Split(":"c)
|
||||
If (myarraystr.Length > 1) Then
|
||||
CveTipoContrato = myarraystr(0).ToEntero()
|
||||
CveTipoContrato = GlobalDTTiposContrato().FiltroPrimeroValor("CveTipoContrato", $"CveTipoContrato = {CveTipoContrato}").ToString.ToEntero
|
||||
Else
|
||||
CveTipoContrato = GlobalDTTiposContrato().FiltroPrimeroValor("CveTipoContrato", $"TipoContrato = '{TipoContrato}'").ToString.ToEntero
|
||||
End If
|
||||
If CveTipoContrato = 0 Then
|
||||
CveTipoContrato = -1
|
||||
|
||||
myarraystr = TipoContrato.Split("-"c)
|
||||
If (myarraystr.Length > 1) Then
|
||||
CveTipoContrato = myarraystr(0).Trim().ToEntero()
|
||||
|
||||
End If
|
||||
If CveTipoContrato = 0 Then
|
||||
CveTipoContrato = -1
|
||||
End If
|
||||
End If
|
||||
|
||||
myarraystr = TipoPeriodo.Split(":"c)
|
||||
If (myarraystr.Length > 0) Then
|
||||
If (myarraystr.Length > 1) Then
|
||||
CveTipoPeriodo = myarraystr(0).ToEntero()
|
||||
CveTipoPeriodo = GlobalDTTipoPeriodo().FiltroPrimeroValor("CveTipoPeriodo", $"CveTipoPeriodo = {CveTipoPeriodo}").ToString.ToEntero
|
||||
Else
|
||||
CveTipoPeriodo = GlobalDTTipoPeriodo().FiltroPrimeroValor("CveTipoPeriodo", $"TipoPeriodo = '{TipoPeriodo}'").ToString.ToEntero
|
||||
End If
|
||||
@@ -2184,14 +2302,15 @@ Partial Class General_SaldosIniciales
|
||||
End If
|
||||
|
||||
myarraystr = Escolaridad.Split(":"c)
|
||||
If (myarraystr.Length > 0) Then
|
||||
If (myarraystr.Length > 1) Then
|
||||
CveEscolaridad = myarraystr(0).ToEntero()
|
||||
CveEscolaridad = GlobalDTEscolaridad().FiltroPrimeroValor("CveEscolaridad", $"CveEscolaridad = {CveEscolaridad}").ToString.ToEntero
|
||||
Else
|
||||
CveEscolaridad = GlobalDTEscolaridad().FiltroPrimeroValor("CveEscolaridad", $"Escolaridad = '{Escolaridad}'").ToString.ToEntero
|
||||
End If
|
||||
If CveEscolaridad = 0 Then
|
||||
CveEscolaridad = -1
|
||||
End If
|
||||
'If CveEscolaridad = 0 Then
|
||||
' CveEscolaridad = -1
|
||||
'End If
|
||||
|
||||
|
||||
|
||||
@@ -2199,8 +2318,9 @@ Partial Class General_SaldosIniciales
|
||||
|
||||
|
||||
myarraystr = MetodoPago.Split(":"c)
|
||||
If (myarraystr.Length > 0) Then
|
||||
If (myarraystr.Length > 1) Then
|
||||
CveMetodoPago = myarraystr(0).ToEntero()
|
||||
CveMetodoPago = GlobalDTMetodosPago().FiltroPrimeroValor("CveMetodoPago", $"CveMetodoPago = {CveMetodoPago}").ToString.ToEntero
|
||||
Else
|
||||
CveMetodoPago = GlobalDTMetodosPago().FiltroPrimeroValor("CveMetodoPago", $"ClaveSAT = '{MetodoPago}'").ToString.ToEntero
|
||||
End If
|
||||
@@ -2209,8 +2329,9 @@ Partial Class General_SaldosIniciales
|
||||
End If
|
||||
|
||||
myarraystr = Nominista.Split(":"c)
|
||||
If (myarraystr.Length > 0) Then
|
||||
If (myarraystr.Length > 1) Then
|
||||
CveUsuarioNomina = myarraystr(0).ToEntero()
|
||||
CveUsuarioNomina = GlobalDTUsuarios(-1, -1).FiltroPrimeroValor("CveUsuario", $"CveUsuario = {CveUsuarioNomina}").ToString.ToEntero
|
||||
Else
|
||||
CveUsuarioNomina = GlobalDTUsuarios(-1, -1).FiltroPrimeroValor("CveUsuario", $"Nombre = '{Nominista}'").ToString.ToEntero
|
||||
End If
|
||||
@@ -2233,12 +2354,13 @@ Partial Class General_SaldosIniciales
|
||||
Exit For
|
||||
End If
|
||||
|
||||
If Not CveRegistroPatronal > 0 Then Alert($"No se encontró el Registropatronal: {RegistroPatronal} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||
If Not CvePuesto > 0 Then Alert($"No se encontró el Puesto: {Puesto} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||
If Not CveTurno > 0 Then Alert($"No se encontró el turno: {Turno} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||
If Not CveEstado > 0 Then Alert($"No se encontró el Estado: {Estado} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||
If Not CveTipoContrato > 0 Then Alert($"No se encontró el Tipo Contrato: {TipoContrato} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||
If Not CveTipoPeriodo > 0 Then Alert($"No se encontró el Tipo Periodo: {TipoPeriodo} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||
If Not CveEscolaridad > 0 Then Alert($"No se encontró el Escolaridad: {Escolaridad} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||
'If Not CveEscolaridad > 0 Then Alert($"No se encontró el Escolaridad: {Escolaridad} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||
If Not CveMetodoPago > 0 Then Alert($"No se encontró el Método de Pago: {MetodoPago} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||
If Not CveUsuarioNomina > 0 Then CveUsuarioNomina = -1 'Alert("No se encontró el Nominista: " + Nominista + " Renglón: " + NumRow, TipoMensaje.MsgAdvertencia) : ErrorRH = True : Exit For
|
||||
|
||||
@@ -2255,9 +2377,12 @@ Partial Class General_SaldosIniciales
|
||||
If Sexo.ToUpper.Contains("Masculino") Then CveGenero = 1 Else CveGenero = 2
|
||||
If AltaIMSS.ToUpper.Contiene("SI", "1") Then AltaIMSS = "True" Else AltaIMSS = "False"
|
||||
myarraystr = EstadoCivil.Split(":"c)
|
||||
If (myarraystr.Length > 0) Then
|
||||
If (myarraystr.Length > 1) Then
|
||||
CveEstadoCivil = myarraystr(0).ToEntero()
|
||||
End If
|
||||
If CveEstadoCivil = 0 Then
|
||||
CveEstadoCivil = 1
|
||||
End If
|
||||
'Select Case EstadoCivil
|
||||
' Case "SOLTERO"
|
||||
' CveEstadoCivil = 1
|
||||
@@ -2277,6 +2402,9 @@ Partial Class General_SaldosIniciales
|
||||
If (myarraystr.Length > 0) Then
|
||||
CveEstatusPersonal = myarraystr(0).ToEntero()
|
||||
End If
|
||||
If CveEstatusPersonal = 0 Then
|
||||
CveEstatusPersonal = 1
|
||||
End If
|
||||
'Select Case EstatusPersonal
|
||||
' Case "ACTIVO"
|
||||
' CveEstatusPersonal = 1
|
||||
@@ -2296,8 +2424,8 @@ Partial Class General_SaldosIniciales
|
||||
End If
|
||||
If Not ObjRH.AddPersonal(Codigo, ApellidoPaterno, ApellidoMaterno, Nombre, CorreoElectronico, FechaIn, CveTipoPeriodo, NumeroSS, CBool(AltaIMSS), SalarioDiario.ToDouble, SalarioDiario.ToDouble, SDI.ToDouble, SDI.ToDouble,
|
||||
-1, -1, -1, CveMetodoPago, FechaIn, FechaFn.ToString, CveTipoContrato, Direccion, CveTurno, CvePuesto, CveDepartamento, -1, CveEscolaridad, CveEstadoCivil, CveGenero, -1, FechaBaja, CveEstatusPersonal, FechaNac,
|
||||
LugarNacimiento, Direccion, "", "", "", CodigoPostal, Ciudad, CveEstado, Telefono, Celular, RFC, CURP, NombrePadre, NombreMadre, -1, CveSATRiesgoPuesto, CveSATRegimenContratacion, -1, -1, "", -1,
|
||||
ClabeInterbancaria, "", CveJornada, CveJornada, "", -1, "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveUsuarioNomina) Then
|
||||
LugarNacimiento, Direccion, "", "", "", CodigoPostal, Ciudad, CveEstado, Telefono, Celular, RFC, CURP, NombrePadre, NombreMadre, -1, CveSATRiesgoPuesto, CveSATRegimenContratacion, -1, CveSubProyecto, "", -1,
|
||||
ClabeInterbancaria, "", CveJornada, CveJornada, "", -1, "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveUsuarioNomina, CveRegistroPatronal:=CveRegistroPatronal) Then
|
||||
ErrorRH = True
|
||||
Exit For
|
||||
Else
|
||||
@@ -2614,7 +2742,7 @@ Partial Class General_SaldosIniciales
|
||||
libro.Cell(crow, ccol).Value = "Tipo Salario" : libro.Range(crow + 1, ccol, 50000, ccol).SetDataValidation().List(Catalogos.Range(2, colTipoSalario, rowTipoSalario, colTipoSalario), True) : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Salario variable" : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Sindicalizado" : libro.Range(crow + 1, ccol, 50000, ccol).SetDataValidation().List(Catalogos.Range(2, colsindicalizado, rowsindicalizado, colsindicalizado), True) : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "SubProyecto " : libro.Range(crow + 1, ccol, 50000, ccol).SetDataValidation().List(Catalogos.Range(2, colsubproyecto, rowsubproyecto, colsubproyecto), True) : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "SubProyecto" : libro.Range(crow + 1, ccol, 50000, ccol).SetDataValidation().List(Catalogos.Range(2, colsubproyecto, rowsubproyecto, colsubproyecto), True) : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "RegimenContratacion" : libro.Range(crow + 1, ccol, 50000, ccol).SetDataValidation().List(Catalogos.Range(2, colRegimenContratacion, rowRegimenContratacion, colRegimenContratacion), True) : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Area Geografica" : libro.Range(crow + 1, ccol, 50000, ccol).SetDataValidation().List(Catalogos.Range(2, colAreaGeografica, rowAreaGeografica, colAreaGeografica), True) : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Prima vacacional" : ccol = ccol + 1
|
||||
@@ -2622,6 +2750,7 @@ Partial Class General_SaldosIniciales
|
||||
libro.Cell(crow, ccol).Value = "Metodo Pago" : libro.Range(crow + 1, ccol, 50000, ccol).SetDataValidation().List(Catalogos.Range(2, colmetodopago, rowmetodopago, colmetodopago), True) : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "SDI" : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Nominista" : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Registro Patronal" : ccol = ccol + 1
|
||||
|
||||
|
||||
libro.Range(crow, 1, crow, ccol - 1).Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(79, 129, 189))
|
||||
|
||||
34
Inicio.aspx
34
Inicio.aspx
@@ -137,7 +137,6 @@
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<asp:UpdatePanel ID="UPPIndicador" UpdateMode="Conditional" runat="server">
|
||||
<ContentTemplate>
|
||||
<div style="background-color: #F9F9F9;">
|
||||
@@ -314,7 +313,7 @@
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12" style="text-align: center;">
|
||||
<asp:Label ID="LblEmpresaCRM" runat="server" Text="" style="font-size: 16px; display: none; text-align: center;"></asp:Label>
|
||||
<asp:Label ID="LblEmpresaCRM" runat="server" Text="" Style="font-size: 16px; display: none; text-align: center;"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -672,7 +671,7 @@
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>--%>
|
||||
<%-- <div class="col-md-2 col-sm-2">
|
||||
<%-- <div class="col-md-2 col-sm-2">
|
||||
<div class="portlet light ">
|
||||
<div class="portlet-title">
|
||||
<div class="caption">
|
||||
@@ -937,7 +936,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="NominasSinTimbrar" class="modal ADS fade " role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
@@ -955,9 +954,9 @@
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtNomPendientesxTimbrar','{0}')", GVNomPendientesxTimbrar.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
</div>
|
||||
|
||||
<asp:GridView ID="GVNomPendientesxTimbrar" runat="server" AutoGenerateColumns="true" EmptyDataText="No se encontraron factura canceladas pendientes"
|
||||
<asp:GridView ID="GVNomPendientesxTimbrar" runat="server" AutoGenerateColumns="true" EmptyDataText="No se encontraron factura canceladas pendientes"
|
||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" Style="text-align: center;" GridLines="None" Width="99%">
|
||||
<Columns>
|
||||
<Columns>
|
||||
</Columns>
|
||||
<RowStyle CssClass="Texto" />
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
@@ -1085,7 +1084,7 @@
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField HeaderText="Serie Folio" DataField="SerieFolio" ItemStyle-Width="10%" />
|
||||
<asp:BoundField HeaderText="Proveedor" DataField="NombreProveedor" ItemStyle-Width="50%" />
|
||||
<asp:BoundField HeaderText="Proveedor" DataField="NombreProveedor" ItemStyle-Width="50%" />
|
||||
<asp:BoundField HeaderText="Importe" DataField="Total" DataFormatString="{0:N2}" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" />
|
||||
<%--<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" HeaderText=" ">
|
||||
@@ -1360,8 +1359,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id="DvUnoaUno" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<asp:UpdatePanel ID="UpModalUnoaUno" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||
@@ -1394,7 +1391,7 @@
|
||||
<ItemTemplate>
|
||||
<h4>
|
||||
<asp:Label ID="lblPregunta" CssClass="bold" runat="server" Text='<%# Eval("Pregunta")%>'> </asp:Label></h4>
|
||||
<asp:Label CssClass="unoaunoold" runat="server" Text='<%# Eval("RespuestaOld")%>'> </asp:Label>
|
||||
<asp:Label CssClass="unoaunoold" runat="server" Text='<%# Eval("RespuestaOld")%>'> </asp:Label>
|
||||
<asp:TextBox ID="TxtComentarios" CssClass="form-control" Text='<%# Eval("Respuesta")%>' TextMode="MultiLine" Rows="2" runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtComentarios" runat="server" ControlToValidate="TxtComentarios" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />Responda el cuestionario para poder guardar" ValidationGroup="GrpGuardarUnoAUno"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VcoTxtCFecha" runat="server" HighlightCssClass="vco" PopupPosition="BottomLeft" TargetControlID="RfvTxtComentarios" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
@@ -1419,7 +1416,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="DvCorreoSinEnviar" class="modal ADS fade" role="dialog">
|
||||
<div id="DvCorreoSinEnviar" class="modal ADS fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<asp:UpdatePanel ID="UpdatePanel1" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
@@ -1432,21 +1429,21 @@
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<label># No Enviadas: </label>
|
||||
<label># No Enviadas: </label>
|
||||
<asp:Label runat="server" ID="lblVentasSinEnviar" Text="0" Font-Bold="true"></asp:Label>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6" style="text-align: right">
|
||||
<input type="text" id="TxtBusquedaVenta" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaVenta','{0}')", GvVentasEmail.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaCentroCosto','{0}')", GvVentasEmail.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
<input type="text" id="TxtBusquedaVenta" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaVenta','{0}')", GvVentasEmail.ClientID) %>" style="display: inline-block; width: 150px;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaCentroCosto','{0}')", GvVentasEmail.ClientID) %>" style="margin-top: -3px; margin-left: -13px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<asp:GridView ID="GvVentasEmail" runat="server" GridLines="None" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" CellSpacing="0" Width="100%" AutoGenerateColumns="False" data-heighterror="800" EmptyDataText="No se encontraron registros">
|
||||
<Columns>
|
||||
<asp:HyperLinkField HeaderText="Serie-Folio" ItemStyle-Width="15%" DataNavigateUrlFields="CveVenta" DataTextField="SerieFolio" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" Target="_blank" />
|
||||
<asp:BoundField DataField="Fecha" ItemStyle-Width="15%" HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}"/>
|
||||
|
||||
<asp:BoundField DataField="NombreComercial" ItemStyle-Width="60%" HeaderText="Nombre" ItemStyle-HorizontalAlign="left" />
|
||||
<asp:BoundField DataField="Fecha" ItemStyle-Width="15%" HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
||||
|
||||
<asp:BoundField DataField="NombreComercial" ItemStyle-Width="60%" HeaderText="Nombre" ItemStyle-HorizontalAlign="left" />
|
||||
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
@@ -1458,7 +1455,6 @@
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="JS" runat="Server">
|
||||
|
||||
@@ -1733,7 +1729,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
function RadionButtonSelectedValueSet(name, SelectdValue) {
|
||||
function RadionButtonSelectedValueSet(name, SelectdValue) {
|
||||
$('input[name="' + name + '"][value="' + SelectdValue + '"]').prop('checked', true);
|
||||
}
|
||||
|
||||
|
||||
@@ -2989,3 +2989,9 @@ select.select2-offscreen, select.select2-offscreen:focus {
|
||||
div.mypaste * {
|
||||
display: none;
|
||||
}
|
||||
.btn-circle.btn-sm btn-xs .btn-sm > i {
|
||||
font-size: 9px;
|
||||
}
|
||||
.btn-circle.btn-sm btn-xs {
|
||||
line-height: 1;
|
||||
}
|
||||
@@ -29,13 +29,17 @@
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkdownExcel" OnClick="LnkdownExcel_Click" runat="server"><i class="fa fa-download" aria-hidden="true"></i>Excel</asp:LinkButton>
|
||||
</li>
|
||||
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
|
||||
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkOpenModalAutoriza" OnClick="LnkOpenModalAutoriza_Click" runat="server"><i class="fa fa-check" aria-hidden="true"></i> Autoriza</asp:LinkButton>
|
||||
</li>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<li>
|
||||
<asp:LinkButton ID="LnkFormatoCargaAnual" OnClick="LnkFormatoCargaAnual_Click" runat="server"><i class="fa fa-download" aria-hidden="true"></i>Formato Anual</asp:LinkButton>
|
||||
</li>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||
</asp:Content>
|
||||
|
||||
@@ -117,7 +117,7 @@ public partial class Nomina_CalculoISRAnual : ClsPaginas
|
||||
{
|
||||
|
||||
column = 1;
|
||||
libro.Cell(row, column++).Value = drow["Aplica"].ToString()=="1"?"Si":"No";
|
||||
libro.Cell(row, column++).Value = drow["Aplica"].ToString() == "1" ? "Si" : "No";
|
||||
libro.Cell(row, column++).Value = drow["causa"];
|
||||
libro.Cell(row, column++).Value = drow["Codigo"];
|
||||
libro.Cell(row, column++).Value = drow["NombreCompleto"];
|
||||
@@ -138,9 +138,9 @@ public partial class Nomina_CalculoISRAnual : ClsPaginas
|
||||
}
|
||||
}
|
||||
|
||||
libro.SheetView.Freeze(initrowdata-1, 5);
|
||||
libro.SheetView.Freeze(initrowdata - 1, 5);
|
||||
libro.ColumnsUsed().AdjustToContents();
|
||||
libro.Range(initrowdata-1, 6, initrowdata-1, column).Style.Alignment.Horizontal = ClosedXML.Excel.XLAlignmentHorizontalValues.Center;
|
||||
libro.Range(initrowdata - 1, 6, initrowdata - 1, column).Style.Alignment.Horizontal = ClosedXML.Excel.XLAlignmentHorizontalValues.Center;
|
||||
libro.Range(initrowdata, 8, row, column).Style.Alignment.Horizontal = ClosedXML.Excel.XLAlignmentHorizontalValues.Right;
|
||||
libro.Range(initrowdata, 8, row, column).SetDataType(ClosedXML.Excel.XLDataType.Number);
|
||||
libro.Range(initrowdata, 8, row, column).Style.NumberFormat.Format = "$#,###,###,###,###,###,0.00";
|
||||
@@ -193,7 +193,7 @@ public partial class Nomina_CalculoISRAnual : ClsPaginas
|
||||
{
|
||||
using (ClsNominas onom = new ClsNominas())
|
||||
{
|
||||
if(onom.PersonalAplicaCalculoAnual(UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario, CvePersonal, 0, TxtMotivo.Text))
|
||||
if (onom.PersonalAplicaCalculoAnual(UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario, CvePersonal, 0, TxtMotivo.Text))
|
||||
{
|
||||
Alert("El empleado sera omitido del calculo anual");
|
||||
RegistraScript("$('#DModalcancelarEmpleado').modal('hide');");
|
||||
@@ -204,15 +204,15 @@ public partial class Nomina_CalculoISRAnual : ClsPaginas
|
||||
|
||||
protected void LnkOpenModalAutoriza_Click(object sender, EventArgs e)
|
||||
{
|
||||
using(ClsNominas onom = new ClsNominas())
|
||||
using (ClsNominas onom = new ClsNominas())
|
||||
{
|
||||
if (onom.GetConceptos(UsuarioActual.CveEmpresa, "-1", -1, -1, -1))
|
||||
{
|
||||
DdlConceptoCargo.DataSource = onom.DtResultados;
|
||||
DdlConceptoCompensar.DataSource = onom.DtResultados;
|
||||
DdlConceptoCargo.DataBind();
|
||||
DdlConceptoCompensar.DataBind();
|
||||
DataRow drow = onom.DtResultados.FiltroPrimero(string.Format("CveSistema ={0}",46));
|
||||
DdlConceptoCompensar.DataBind();
|
||||
DataRow drow = onom.DtResultados.FiltroPrimero(string.Format("CveSistema ={0}", 46));
|
||||
if (drow != null)
|
||||
{
|
||||
DdlConceptoCargo.SelectedValueExist(drow["CveConcepto"]);
|
||||
@@ -221,7 +221,7 @@ public partial class Nomina_CalculoISRAnual : ClsPaginas
|
||||
if (drow != null)
|
||||
{
|
||||
DdlConceptoCompensar.SelectedValueExist(drow["CveConcepto"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
RegistraScript("$('#DModalAutoriza').modal();");
|
||||
@@ -231,12 +231,12 @@ public partial class Nomina_CalculoISRAnual : ClsPaginas
|
||||
protected void LnkAutoriza_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool continuar = true;
|
||||
int numpagos = TxtNumerodePagos.Text.ToEntero();
|
||||
int numpagos = TxtNumerodePagos.Text.ToEntero();
|
||||
|
||||
|
||||
System.Xml.Linq.XDocument xmlarchivos = new System.Xml.Linq.XDocument();
|
||||
XElement xfolder = new XElement("personal");
|
||||
foreach (GridViewRow item in GVCalculoISRAnual.Rows )
|
||||
foreach (GridViewRow item in GVCalculoISRAnual.Rows)
|
||||
{
|
||||
XElement xempleado = new XElement("empleado");
|
||||
xempleado.SetAttributeValue("CvePersonal", item.DataKey("CvePersonal"));
|
||||
@@ -245,8 +245,8 @@ public partial class Nomina_CalculoISRAnual : ClsPaginas
|
||||
|
||||
xfolder.Add(xempleado);
|
||||
}
|
||||
xmlarchivos.Add(xfolder);
|
||||
string xmlpeople= xmlarchivos.ToString();
|
||||
xmlarchivos.Add(xfolder);
|
||||
string xmlpeople = xmlarchivos.ToString();
|
||||
|
||||
using (ClsNominas onom = new ClsNominas())
|
||||
{
|
||||
@@ -260,4 +260,77 @@ public partial class Nomina_CalculoISRAnual : ClsPaginas
|
||||
|
||||
RegistraScript(string.Format("console.log('{0}');debugger", xmlpeople));
|
||||
}
|
||||
|
||||
protected void LnkFormatoCargaAnual_Click(object sender, EventArgs e)
|
||||
{
|
||||
int Ejercicio = DdlEjercicios.SelectedValue.ToEntero();
|
||||
string rutaformato = string.Format("{0}\\Grales\\{1}", Extensiones.ModExtensiones.DirectorioEmpresas, "FormatoCalculoAnual.xlsx").Replace("/", "\\").Replace("\\\\", "\\");
|
||||
ClosedXML.Excel.XLWorkbook wb = new ClosedXML.Excel.XLWorkbook(rutaformato);
|
||||
var hojaBase = wb.Worksheet(1);
|
||||
var hojaEmpleados = wb.Worksheet(2);
|
||||
hojaEmpleados.Name = "Empleados";
|
||||
// Copy the worksheet to a new sheet in this workbook
|
||||
//hojaBase.CopyTo("E1");
|
||||
hojaBase.Cell(6, 21).Value = Ejercicio;
|
||||
int index = 1;
|
||||
using (ClsNominas onom = new ClsNominas())
|
||||
{
|
||||
onom.CalculoISRAnual(Ejercicio, UsuarioActual.Empresa.CveEmpresa);
|
||||
foreach (DataRow droi in onom.DtResultados.Rows)
|
||||
{
|
||||
|
||||
//o15
|
||||
//as45
|
||||
if (droi["Aplica"].ToString() == "1")
|
||||
{
|
||||
var Choja = hojaBase.CopyTo(String.Format("E_{0:000}", index++));
|
||||
hojaEmpleados.Cell(index, 1).Value = droi["NombreCompleto"];
|
||||
hojaEmpleados.Cell(index, 1).Hyperlink = new ClosedXML.Excel.XLHyperlink(Choja.Cell(10, 9));
|
||||
|
||||
Choja.Cell(256, 9).Value = droi["NombreCompleto"];
|
||||
Choja.Cell(10, 37).Value = droi["CURP"];
|
||||
Choja.Cell(10, 6).Value = droi["RFC"];
|
||||
Choja.Cell(13, 2).Value = droi["APaterno"];
|
||||
Choja.Cell(13, 19).Value = droi["AMaterno"];
|
||||
Choja.Cell(13, 36).Value = droi["Nombres"];
|
||||
Choja.Cell(216, 15).Value = droi["BaseGravada"];
|
||||
Choja.Cell(220, 15).Value = droi["BaseExcenta"];
|
||||
Choja.Cell(224, 15).Value = droi["IngresosTotales"];
|
||||
Choja.Cell(233, 15).Value = droi["ISRRetenido"];
|
||||
|
||||
|
||||
Choja.Cell(37, 15).Value = droi["IngresosTotales"];
|
||||
Choja.Cell(48, 15).Value = droi["BaseExcenta"];
|
||||
Choja.Cell(60, 15).Value = droi["BaseGravada"];
|
||||
Choja.Cell(66, 45).Value = droi["ISRRetenido"];
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
hojaBase.Delete();
|
||||
|
||||
|
||||
|
||||
System.IO.Stream fs = new System.IO.MemoryStream();
|
||||
wb.SaveAs(fs);
|
||||
fs.Position = 0;
|
||||
System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();
|
||||
using (System.IO.Stream input = fs)
|
||||
|
||||
{
|
||||
input.CopyTo(memoryStream);
|
||||
}
|
||||
memoryStream.Position = 0;
|
||||
|
||||
Response.Clear();
|
||||
Response.Buffer = true;
|
||||
|
||||
Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
||||
Response.AddHeader("content-disposition", string.Format("attachment;filename={0}.xlsx", "Calculo Anual"));
|
||||
Response.BinaryWrite(memoryStream.ToArray());
|
||||
Response.End();
|
||||
|
||||
}
|
||||
}
|
||||
65
Nomina/CargaArchivosNomina.aspx
Normal file
65
Nomina/CargaArchivosNomina.aspx
Normal file
@@ -0,0 +1,65 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="CargaArchivosNomina.aspx.cs" Inherits="Nomina_CargaArchivosNomina" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||
</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" ID="UpDetallesDia" UpdateMode="Conditional">
|
||||
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-upload font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Paso 1: cargar plantilla </span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding ">
|
||||
<asp:Label runat="server" Text="Label">ingrese el archivo a cargar</asp:Label>
|
||||
<asp:TextBox ID="TxtArchivoXls" CssClass="ADSdropzone hidden" data-maxFilesize="100" runat="server"></asp:TextBox>
|
||||
<div class="text-right">
|
||||
<asp:LinkButton ID="LnkCargarArchivo" CssClass="btn btn-success" OnClick="LnkCargarArchivo_Click" runat="server">Cargar excel</asp:LinkButton>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="fa fa-upload font-green"></i>
|
||||
<span class="caption-subject bold uppercase">Paso 2: subirarchivo</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding ">
|
||||
<asp:GridView ID="GVDatos" data-cols="6" CssClass="table table-hover table-advance ScrollAD" runat="server"></asp:GridView>
|
||||
<div class="text-right">
|
||||
<asp:LinkButton ID="LnkSubirArchivo" CssClass="btn btn-success" OnClick="LnkSubirArchivo_Click" runat="server">Subir Archivo</asp:LinkButton>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
</asp:Content>
|
||||
|
||||
218
Nomina/CargaArchivosNomina.aspx.cs
Normal file
218
Nomina/CargaArchivosNomina.aspx.cs
Normal file
@@ -0,0 +1,218 @@
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using ClosedXML.Excel;
|
||||
using Extensiones;
|
||||
|
||||
public partial class Nomina_CargaArchivosNomina : System.Web.UI.Page
|
||||
{
|
||||
#region propiedades
|
||||
|
||||
private string URLFile
|
||||
{
|
||||
get
|
||||
{
|
||||
if (ViewState["URLFile"] == null) { return ""; }
|
||||
else { return ViewState["URLFile"].ToString(); }
|
||||
}
|
||||
|
||||
set { ViewState["URLFile"] = value; }
|
||||
}
|
||||
private string extension
|
||||
{
|
||||
get
|
||||
{
|
||||
if (ViewState["extension"] == null) { return ""; }
|
||||
else { return ViewState["extension"].ToString(); }
|
||||
}
|
||||
|
||||
set { ViewState["extension"] = value; }
|
||||
}
|
||||
|
||||
private string workname
|
||||
{
|
||||
get
|
||||
{
|
||||
if (ViewState["workname"] == null) { return ""; }
|
||||
else { return ViewState["workname"].ToString(); }
|
||||
}
|
||||
|
||||
set { ViewState["workname"] = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void LnkCargarArchivo_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
List<Archivo> filesgral = TxtArchivoXls.getfiles().Archivos;
|
||||
//workBooks = new List<ADSWorksBooks>();
|
||||
foreach (Archivo fileItem in filesgral)
|
||||
{
|
||||
extension = System.IO.Path.GetExtension(string.Format(@"{0}Temp\{1}", AppDomain.CurrentDomain.BaseDirectory, fileItem.filename)).Replace(".", "");
|
||||
URLFile = fileItem.FileUrl;
|
||||
}
|
||||
using (var workbook = new XLWorkbook(URLFile))
|
||||
{
|
||||
int position = 1;
|
||||
foreach (IXLWorksheet wokitem in workbook.Worksheets)
|
||||
{
|
||||
workname = wokitem.Name;
|
||||
//workBooks.Add(new ADSWorksBooks() { Name = wokitem.Name, position = position++ });
|
||||
}
|
||||
|
||||
}
|
||||
//DdlWorkBooks.DataSource = workBooks;
|
||||
//DdlWorkBooks.DataBind();
|
||||
//if (workBooks.Count > 0)
|
||||
//{
|
||||
// DdlWorkBooks.SelectedIndex = 1;
|
||||
// DdlWorkBooks_SelectedIndexChanged(null, null);
|
||||
//}
|
||||
|
||||
DataSet ds = new DataSet();
|
||||
DataTable dtDatos = new DataTable();
|
||||
DataTable dt = GetDatosExcel();
|
||||
ds.DataSetName = "DSDatos";
|
||||
dtDatos.TableName = "TCol";
|
||||
dt.TableName = "TData";
|
||||
|
||||
dtDatos.Columns.Add(new DataColumn("Columnas", typeof(string)));
|
||||
dtDatos.Columns.Add(new DataColumn("LEN", typeof(int)));
|
||||
foreach (DataColumn item in dt.Columns)
|
||||
{
|
||||
DataRow drow = dtDatos.NewRow();
|
||||
drow["Columnas"] = item.ColumnName;
|
||||
int longitud = 0;
|
||||
foreach (DataRow dr in dt.Rows)
|
||||
{
|
||||
int length = dr[item.ColumnName].ToString().Length;
|
||||
|
||||
longitud = length > longitud ? length : longitud;
|
||||
}
|
||||
drow["LEN"] = longitud;
|
||||
dtDatos.Rows.Add(drow);
|
||||
}
|
||||
|
||||
ds.Tables.Add(dtDatos);
|
||||
ds.Tables.Add(dt);
|
||||
string xml = ds.GetXml();
|
||||
|
||||
using (ClsNominas objbase = new ClsNominas())
|
||||
{
|
||||
if (objbase.ExcelToBD(xml))
|
||||
{
|
||||
this.Alert("Información capturada", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||
}
|
||||
}
|
||||
GVDatos.DataSource = dt;
|
||||
GVDatos.DataBind();
|
||||
|
||||
}
|
||||
public DataTable GetDatosExcel()
|
||||
{
|
||||
|
||||
DataTable dtDatos = new DataTable();
|
||||
ConcurrentDictionary<string, string> ColumnsTitles = new ConcurrentDictionary<string, string>();
|
||||
using (var workbook = new XLWorkbook(URLFile))
|
||||
{
|
||||
IXLWorksheet workSheet = workbook.Worksheet(2);
|
||||
DateTime d = new DateTime();
|
||||
bool continuarFila = true;
|
||||
string validaValor;
|
||||
|
||||
int contadorValida = 0;
|
||||
bool haveTitles = true;//chkcontieneTitulos.Checked;
|
||||
int FilaInicial = 2;// TxtInicia.Text.ToEntero() > 0 ? TxtInicia.Text.ToEntero() : 1;
|
||||
int ColumnaFinal = 62; //48;//TxtColumnas.Text.ToEntero();
|
||||
int cFila = FilaInicial;
|
||||
int cCol = 1;
|
||||
|
||||
while (cCol <= ColumnaFinal)
|
||||
{
|
||||
string Valor = cCol.ToString();
|
||||
if (haveTitles)
|
||||
{
|
||||
Valor = workSheet.Cell(cFila, cCol).Value != null && workSheet.Cell(cFila, cCol).Value.GetType() == d.GetType() ? string.Format("{0:yyyy/MM/dd}", workSheet.Cell(cFila, cCol).Value) : workSheet.Cell(cFila, cCol).Value.ToString();
|
||||
Valor = validtitle(Valor);
|
||||
}
|
||||
if (!ColumnsTitles.TryAdd(Valor, Valor))
|
||||
{
|
||||
int x = 2;
|
||||
while (!ColumnsTitles.TryAdd(string.Format("{0}_{1}", Valor, x), Valor)) { x++; }
|
||||
Valor = string.Format("{0}_{1}", Valor, x);
|
||||
}
|
||||
dtDatos.Columns.Add(new DataColumn(Valor, typeof(string)));
|
||||
cCol++;
|
||||
}
|
||||
if (haveTitles)
|
||||
{
|
||||
cFila++;
|
||||
}
|
||||
while (continuarFila)
|
||||
{
|
||||
DataRow drow = dtDatos.NewRow();
|
||||
cCol = 1;
|
||||
validaValor = "";
|
||||
while (cCol <= ColumnaFinal)
|
||||
{
|
||||
string Valor = workSheet.Cell(cFila, cCol).Value != null && workSheet.Cell(cFila, cCol).Value.GetType() == d.GetType() ? string.Format("{0:yyyy/MM/dd}", workSheet.Cell(cFila, cCol).Value) : workSheet.Cell(cFila, cCol).Value.ToString();
|
||||
validaValor = string.Format("{0}{1}", validaValor, Valor);
|
||||
drow[cCol - 1] = Valor;
|
||||
cCol++;
|
||||
}
|
||||
if (validaValor.Trim() == "")
|
||||
{
|
||||
contadorValida++;
|
||||
if (contadorValida > 30)
|
||||
{
|
||||
continuarFila = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
contadorValida = 0;
|
||||
dtDatos.Rows.Add(drow);
|
||||
}
|
||||
cFila++;
|
||||
if (cFila >= 1048576)
|
||||
{
|
||||
continuarFila = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return dtDatos;
|
||||
}
|
||||
public string validtitle(string Valor)
|
||||
{
|
||||
|
||||
Valor = Valor.Replace(" ", "_");
|
||||
Valor = Valor.Replace("$$$$", "_Money_");
|
||||
Valor = Valor.Replace("$$$", "_Money_");
|
||||
Valor = Valor.Replace("$$", "_Money_");
|
||||
Valor = Valor.Replace("$", "_Money_");
|
||||
Valor = Valor.Replace(".", string.Empty);
|
||||
Regex reg = new Regex("[*'\",&#^@]");
|
||||
Valor = reg.Replace(Valor, string.Empty);
|
||||
if (Valor.Trim().Length == 0)
|
||||
{
|
||||
Valor = "Val";
|
||||
}
|
||||
return Valor;
|
||||
}
|
||||
|
||||
protected void LnkSubirArchivo_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
1248
Nomina/Nomina.aspx
1248
Nomina/Nomina.aspx
File diff suppressed because it is too large
Load Diff
@@ -215,6 +215,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
DataTable dtperinc = null;
|
||||
using (ClsNominas objnom = new ClsNominas())
|
||||
{
|
||||
objnom.GetNominasSinTimbrar(-1, UsuarioActual.CveEmpresa);
|
||||
@@ -225,6 +226,14 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
RegistraScript("$('#ModalNominaPendiente').modal();");
|
||||
}
|
||||
|
||||
if (objnom.GetConceptos(UsuarioActual.CveEmpresa))
|
||||
{
|
||||
dtNomConceptos = objnom.DtResultados;
|
||||
}
|
||||
if (objnom.PersonalIncapacidadCatalogos())
|
||||
{
|
||||
dtperinc = objnom.DtResultados;
|
||||
}
|
||||
|
||||
}
|
||||
DmodalCancelartimbre.Visible = (UsuarioActual.CveUsuario == 100);
|
||||
@@ -271,17 +280,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
PermisoEmitir = false;
|
||||
PermisoCancelarEmitido = false;
|
||||
}
|
||||
DataTable dtperinc = null;
|
||||
using (ClsNominas onom = new ClsNominas())
|
||||
using (ClsRH onom = new ClsRH())
|
||||
{
|
||||
|
||||
if (onom.GetConceptos(UsuarioActual.CveEmpresa))
|
||||
if (onom.GetRegistrosPatronales(-1, UsuarioActual.CveEmpresa, 1))
|
||||
{
|
||||
dtNomConceptos = onom.DtResultados;
|
||||
}
|
||||
if (onom.PersonalIncapacidadCatalogos())
|
||||
{
|
||||
dtperinc = onom.DtResultados;
|
||||
DdlRegistroPatronal.DataSource = onom.DtResultados;
|
||||
DdlRegistroPatronal.DataBind();
|
||||
}
|
||||
}
|
||||
if (dtperinc != null)
|
||||
@@ -1286,12 +1290,18 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
if (Nom.GetNom_Nominas(CveNomina, -1, -1, -1, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
Timbrado ObjTimbrado = new Timbrado();
|
||||
|
||||
DataRow nrow = Nom.DtResultados.Rows[0];
|
||||
bool secancelo11 = false;
|
||||
bool secancelo12 = false;
|
||||
string FolioFiscal = Nom.FolioFiscal;
|
||||
decimal Total = Nom.Total.ToString().ToDecimal();
|
||||
string RFCReceptor = Nom.RFC;
|
||||
string RFCEmisor = UsuarioActual.Empresa.RFC;
|
||||
string SerieFolio = Nom.SerieFolio;
|
||||
string SerieFolioFiniquito = string.Format ("{0}F-{1}", nrow["Serie"], nrow["Folio"]);
|
||||
bool SeTimbroFiniquito = nrow["SeTimbroFiniquito"].ToString().ToUpper().Contiene(new string[] {"1","TRUE"});
|
||||
string FolioFiscalFiniquito = nrow["FolioFiscalFiniquito"].ToString();
|
||||
//SeTimbroFiniquito,N.FolioFiscalFiniquito
|
||||
DataRow rowc = get_GlobalDTMotivosCancelacionEmpresa(UsuarioActual.CveEmpresa).FiltroPrimero(string.Format("CveMotivoCancelacion={0}", DdlMotivoCancelacion.SelectedValue));
|
||||
int CveMotivoCancelacion = -1;
|
||||
if (rowc != null)
|
||||
@@ -1318,15 +1328,57 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
Alert("Ocurrió un error al mover el archivo fiscal cancelado");
|
||||
}
|
||||
|
||||
Nom.UpdateEstatusNomNominas(2, UsuarioActual.Empresa.CvePAC, "", ("01/01/2000").ToDate(), ("01/01/2000").ToDate(), CveNomina, 0, 0, 0, 0, 0);
|
||||
|
||||
Alert($"La nómina con folio fiscal '{FolioFiscal}' fue cancelada ante el SAT", TipoMensaje.MsgInformacion);
|
||||
secancelo11 = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
string.Format("Error al cancelar nomina {0}", FolioFiscal).GuardaLog();
|
||||
//ObjTimbrado.MensajeErrorCFDI.GuardaLog();
|
||||
}
|
||||
if (!SeTimbroFiniquito)
|
||||
{
|
||||
secancelo12 = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
reultado = ObjTimbrado.CFDICancelar(UsuarioActual.Empresa, FolioFiscalFiniquito, Total, RFCReceptor, RFCEmisor, 4, CveSATMotivoCancelacion: CveMotivoCancelacion);
|
||||
if (reultado.Verificado)//,CveSATMotivoCancelacion:=
|
||||
{
|
||||
try
|
||||
{
|
||||
string ruta = string.Format("{0}XML\\Nomina\\", UsuarioActual.Empresa.Ruta);
|
||||
string archivo = string.Format("{0}{1}.xml", ruta, SerieFolioFiniquito);
|
||||
int contador = 1;
|
||||
string archivonew = string.Format("{0}{1}_{2}.xml", ruta, SerieFolioFiniquito, contador++);
|
||||
while (System.IO.File.Exists(archivonew))
|
||||
{
|
||||
archivonew = string.Format("{0}{1}_{2}.xml", ruta, SerieFolioFiniquito, contador++);
|
||||
}
|
||||
File.Move(archivo, archivonew);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
Alert("Ocurrió un error al mover el archivo fiscal cancelado");
|
||||
}
|
||||
|
||||
ObjTimbrado.MensajeErrorCFDI.GuardaLog();
|
||||
secancelo12 = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
string.Format("Error al cancelar nomina {0}", FolioFiscalFiniquito).GuardaLog();
|
||||
//ObjTimbrado.MensajeErrorCFDI.GuardaLog();
|
||||
}
|
||||
|
||||
}
|
||||
if (secancelo11 && secancelo12)
|
||||
{
|
||||
|
||||
Nom.UpdateEstatusNomNominas(2, UsuarioActual.Empresa.CvePAC, "", ("01/01/2000").ToDate(), ("01/01/2000").ToDate(), CveNomina);
|
||||
Alert($"La nómina con folio fiscal '{FolioFiscal}' fue cancelada ante el SAT", TipoMensaje.MsgInformacion);
|
||||
}else
|
||||
{
|
||||
Alert($"no se pudo cancelar el folio fiscal<br>{ObjTimbrado.MensajeErrorCFDI}", TipoMensaje.MsgAdvertencia);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2201,6 +2253,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
DdlFormapagovacaciones_SelectedIndexChanged(null, null);
|
||||
ChkVacPrimaVacacional.Checked = true;
|
||||
ChkVacCobrarIMSS.Checked = true;
|
||||
RegistraScript("$('#ModalSRVacaciones').modal()");
|
||||
}
|
||||
|
||||
protected void DdlFormapagovacaciones_SelectedIndexChanged(object sender, EventArgs e)
|
||||
@@ -2316,6 +2369,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
//CargaVacacionesResumenPeriodoActual();
|
||||
//VacacionesMandaCorreoSupervisor("Solicitud Vacaciones " + NombreCompleto, VacSupervisorCorreo, VacSupervisorNombre, NombreCompleto, fInicio, fFin);
|
||||
Alert("Las vacaciones se han solicitado");
|
||||
RegistraScript("$('#ModalSRVacaciones').modal('hide')");
|
||||
}
|
||||
}
|
||||
else { Alert("La fecha Inicial debe ser inferior a la fecha final.", TipoMensaje.MsgAdvertencia); }
|
||||
@@ -5579,6 +5633,10 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
TxtMontoLimite.Text = "";
|
||||
TxtFechaAplicacion.Text = "";
|
||||
ChkEstatus.Visible = true;
|
||||
ChkEstatus.Checked = true;
|
||||
UpMovtosPermanentesModal.Update();
|
||||
RegistraScript("$('#ModalMovtoPermanente').modal()");
|
||||
|
||||
}
|
||||
|
||||
protected void LnkAddMovto_Click(object sender, EventArgs e)
|
||||
@@ -5604,6 +5662,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
UpMovtosPermanentes.Update();
|
||||
this.Alert("Se ha agregado el movimiento permanente");
|
||||
}
|
||||
RegistraScript("$('#ModalMovtoPermanente').modal('hide')");
|
||||
|
||||
}
|
||||
|
||||
@@ -5626,7 +5685,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#DModalMovtoPermanente').modal('hide');");
|
||||
this.RegistraScript("$('#ModalMovtoPermanente').modal('hide');");
|
||||
CargaMovtoPermanente();
|
||||
UpMovtosPermanentes.Update();
|
||||
this.Alert("Se ha actualizado el movimiento permanente");
|
||||
@@ -5640,7 +5699,26 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
pnlVecesAplicar.Visible = DdlTipoDescto.SelectedValue.ToEntero() < 3;
|
||||
}
|
||||
|
||||
protected void LnkEditarMovtoPermanente_Click(object sender, EventArgs e)
|
||||
protected void LnkremoveMovtoPermanente_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||
CcveMovtoPermanente = gvRow.DataKey("CveMovtoPermanente").ToEntero();
|
||||
bool Continuar = false;
|
||||
using (ClsNominas ObjMovt = new ClsNominas())
|
||||
{
|
||||
Continuar = ObjMovt.RemoveMovtoPermanente(CcveMovtoPermanente);
|
||||
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
this.RegistraScript("$('#ModalMovtoPermanente').modal('hide');");
|
||||
CargaMovtoPermanente();
|
||||
UpMovtosPermanentes.Update();
|
||||
this.Alert("Se ha eliminadó el movimiento permanente");
|
||||
}
|
||||
}
|
||||
protected void LnkEditarMovtoPermanente_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||
@@ -5685,16 +5763,16 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
DdlCtaContable.SelectedValueExist(CveCuenta);
|
||||
}
|
||||
ChkEstatus.Checked = estatus;
|
||||
this.RegistraScript("$('#DModalMovtoPermanente').modal();");
|
||||
RegistraScript("$('#ModalMovtoPermanente').modal()");
|
||||
|
||||
|
||||
pnlAddupMovto.Visible = true;
|
||||
LnkAddMovto.Visible = false;
|
||||
LnkUpMovto.Visible = true;
|
||||
UpMovtosPermanentes.Update();
|
||||
UpMovtosPermanentesModal.Update();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
protected void LnkAutorizar_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -6944,7 +7022,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
DdlSRINCcveControlIncapacidad.SelectedValueExist(cveControlIncapacidad.ToString());
|
||||
TxtSRINCdescripcion.Text = descripcion.ToString();
|
||||
LnkAgregarIncapacidad.Visible = false;
|
||||
//LnkActualizarIncapacidad.Visible = true;
|
||||
LnkActualizarIncapacidad.Visible = true;
|
||||
RegistraScript("$('#ModalSRIncapacidad').modal()");
|
||||
}
|
||||
protected void LnkshowaaddIncapacidad_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -6952,6 +7031,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
LnkAgregarIncapacidad.Visible = true;
|
||||
LnkActualizarIncapacidad.Visible = false;
|
||||
CcvePersonalIncapacidad = 0;
|
||||
RegistraScript("$('#ModalSRIncapacidad').modal()");
|
||||
}
|
||||
protected void LnkAgregarIncapacidad_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -6976,6 +7056,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
CargaPersonalIncapacidad();
|
||||
UpsrIncapacidadpersonal.Update();
|
||||
this.Alert("La incapacidad se ha agregado.", TipoMensaje.ToastInformacion);
|
||||
RegistraScript("$('#ModalSRIncapacidad').modal('hide')");
|
||||
}
|
||||
}
|
||||
protected void LnkActualizarIncapacidad_Click(object sender, EventArgs e)
|
||||
@@ -7002,6 +7083,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
CargaPersonalIncapacidad();
|
||||
UpsrIncapacidadpersonal.Update();
|
||||
this.Alert("La incapacidad se ha actualizado.", TipoMensaje.ToastInformacion);
|
||||
RegistraScript("$('#ModalSRIncapacidad').modal('hide')");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -8073,7 +8155,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
protected void CargaVacacionesEmpresas()
|
||||
{
|
||||
using (ClsRH ObjVaca = new ClsRH())
|
||||
using (ClsRH ObjVaca = new ClsRH())
|
||||
{
|
||||
ObjVaca.VacacionesEmpresasGet(UsuarioActual.CveEmpresa, -1, -1);
|
||||
GVVacacionesEmpresas.DataSource = ObjVaca.DtResultados;
|
||||
@@ -8089,12 +8171,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
int diasVacaciones = TxtVacadiasVacaciones.Text.ToEntero();
|
||||
int Cinicio = TxtVacaInicio.Text.ToEntero();
|
||||
int Cfin = TxtVacaFin.Text.ToEntero();
|
||||
int Cfin = TxtVacaFin.Text.ToEntero();
|
||||
bool Continuar = false;
|
||||
using (ClsRH ObjVaca = new ClsRH())
|
||||
{
|
||||
|
||||
Continuar = ObjVaca.VacacionesEmpresasAdd(UsuarioActual.CveEmpresa, Cinicio, Cfin, diasVacaciones);
|
||||
Continuar = ObjVaca.VacacionesEmpresasAdd(UsuarioActual.CveEmpresa, Cinicio, Cfin, diasVacaciones);
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
|
||||
@@ -1040,6 +1040,13 @@
|
||||
<asp:Label runat="server" AssociatedControlID="DdlRiesgoPuesto" Text="Riesgo Puesto:"></asp:Label>
|
||||
<asp:RequiredFieldValidator ID="RFVRiesgoPuesto" runat="server" ControlToValidate="DdlRiesgoPuesto" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Riesgo Puesto''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardarAddS"></asp:RequiredFieldValidator>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlRegistroPatronal" runat="server" Width="100%" DataTextField="RegistroPatronal" CssClass="form-control input-sm select2me" DataValueField="CveRegistroPatronal">
|
||||
</asp:DropDownList>
|
||||
<asp:Label runat="server" AssociatedControlID="DdlRegistroPatronal" Text="Registro Patronal:"></asp:Label>
|
||||
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="DdlRiesgoPuesto" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Riesgo Puesto''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>--%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
|
||||
@@ -65,6 +65,15 @@ Partial Class RH_CatPersonal
|
||||
CargaMedioTransporte()
|
||||
LoadDefaultValues()
|
||||
|
||||
Dim ObjRH As New ClsRH
|
||||
|
||||
If ObjRH.GetRegistrosPatronales(-1, UsuarioActual.CveEmpresa, 1) Then
|
||||
DdlRegistroPatronal.DataSource = ObjRH.DtResultados
|
||||
Else
|
||||
DdlRegistroPatronal.DataSource = Nothing
|
||||
End If
|
||||
DdlRegistroPatronal.DataBind()
|
||||
ObjRH.Dispose()
|
||||
|
||||
' GvDatos.Rows(0).FCLabel("LtlSubProyectoConfigurado").Text = LblSubProyectoAsignado.Text
|
||||
If Not IsNothing(GvDatos.HeaderRow) AndAlso Not IsNothing(GvDatos.HeaderRow.Cells) AndAlso GvDatos.HeaderRow.Cells.Count > 0 Then
|
||||
@@ -1029,6 +1038,7 @@ Partial Class RH_CatPersonal
|
||||
crow = 1
|
||||
ccol = 1
|
||||
|
||||
|
||||
libro.Cell(crow, ccol).Value = "Código" : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Apellido Paterno" : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Apellido Materno" : ccol = ccol + 1
|
||||
@@ -1064,14 +1074,15 @@ Partial Class RH_CatPersonal
|
||||
libro.Cell(crow, ccol).Value = "Tipo Salario" : libro.Range(crow + 1, ccol, 50000, ccol).SetDataValidation().List(Catalogos.Range(2, colTipoSalario, rowTipoSalario, colTipoSalario), True) : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Salario variable" : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Sindicalizado" : libro.Range(crow + 1, ccol, 50000, ccol).SetDataValidation().List(Catalogos.Range(2, colsindicalizado, rowsindicalizado, colsindicalizado), True) : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "SubProyecto " : libro.Range(crow + 1, ccol, 50000, ccol).SetDataValidation().List(Catalogos.Range(2, colsubproyecto, rowsubproyecto, colsubproyecto), True) : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "SubProyecto" : libro.Range(crow + 1, ccol, 50000, ccol).SetDataValidation().List(Catalogos.Range(2, colsubproyecto, rowsubproyecto, colsubproyecto), True) : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "RegimenContratacion" : libro.Range(crow + 1, ccol, 50000, ccol).SetDataValidation().List(Catalogos.Range(2, colRegimenContratacion, rowRegimenContratacion, colRegimenContratacion), True) : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Area Geografica" : libro.Range(crow + 1, ccol, 50000, ccol).SetDataValidation().List(Catalogos.Range(2, colAreaGeografica, rowAreaGeografica, colAreaGeografica), True) : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Prima vacacional" : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Dias aguinaldo" : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Metodo Pago" : libro.Range(crow + 1, ccol, 50000, ccol).SetDataValidation().List(Catalogos.Range(2, colmetodopago, rowmetodopago, colmetodopago), True) : ccol = ccol + 1
|
||||
|
||||
|
||||
libro.Cell(crow, ccol).Value = "SDI" : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Nominista" : ccol = ccol + 1
|
||||
libro.Cell(crow, ccol).Value = "Registro Patronal" : ccol = ccol + 1
|
||||
|
||||
|
||||
libro.Range(crow, 1, crow, ccol - 1).Style.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(79, 129, 189))
|
||||
@@ -1174,7 +1185,7 @@ Partial Class RH_CatPersonal
|
||||
DdlSupervisor.SelectedValue.ToEntero, "", "", DdlJornada.SelectedValue.ToEntero, -1, "-1",
|
||||
0, "Seleccione", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, CveUniforme:=-1,
|
||||
TelefonoExtension:="", CelularPersonal:="", TelefonoMarcadoRapido:="", ContactoAlterno:="", CveTipodeSalario:=DDlTipoSalario.SelectedValue.ToEntero(), Sindicalizado:=isSindicalizado, CvePais:=151,
|
||||
CveMedioTransporte:=DdlMedioTransporte.SelectedValue.ToEntero()
|
||||
CveMedioTransporte:=DdlMedioTransporte.SelectedValue.ToEntero(), CveRegistroPatronal:=DdlRegistroPatronal.SelectedValue.ToEntero()
|
||||
) Then
|
||||
Dim filesgral As List(Of Archivo) = TxtFoto.getfiles().Archivos
|
||||
Dim filemove As String = ""
|
||||
|
||||
@@ -387,7 +387,7 @@
|
||||
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Bene.">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox runat="server" ID="ChkBeneficiario" Checked='<%# Eval("Beneficiario")%>' Enabled="false" />
|
||||
<asp:CheckBox runat="server" ID="ChkBeneficiario" Checked='<%# (Eval("Beneficiario").ToString().ToUpper() = "TRUE") Or (Eval("Beneficiario").ToString() = "1") %>' Enabled="false" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
|
||||
@@ -1062,6 +1062,13 @@ Partial Class RH_Personal
|
||||
Dim drow As DataRow = dt.NewRow()
|
||||
drow("CveTipoTrabajador") = "-1"
|
||||
drow("TipoTrabajadorB") = "Seleccione"
|
||||
If UsuarioActual.CveEmpresa <> 158 Then
|
||||
drow("CveTipoTrabajador") = "2"
|
||||
drow("TipoTrabajadorB") = "Operativo"
|
||||
drow("CveTipoTrabajador") = "3"
|
||||
drow("TipoTrabajadorB") = "Administrativo"
|
||||
|
||||
End If
|
||||
dt.Rows.InsertAt(drow, 0)
|
||||
If DdlTipoTrabajador.Items.Count() > 0 Then
|
||||
DdlTipoTrabajador.SelectedValueExist("-1")
|
||||
|
||||
21
SAT/Default.aspx
Normal file
21
SAT/Default.aspx
Normal file
@@ -0,0 +1,21 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="SAT_Default" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||
|
||||
</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:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
</asp:Content>
|
||||
|
||||
14
SAT/Default.aspx.cs
Normal file
14
SAT/Default.aspx.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class SAT_Default : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
373
SAT/SolicitudesNominaSat.aspx
Normal file
373
SAT/SolicitudesNominaSat.aspx
Normal file
@@ -0,0 +1,373 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="SolicitudesNominaSat.aspx.cs" Inherits="SAT_SolicitudesNominaSat" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<style>
|
||||
.GVSolicitudTimbreNominaGral tr td:nth-child(4) {
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||
Visor solicitudes Nomina
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<li> <asp:LinkButton ID="LnkShowSolicitudes" OnClick="LnkShowSolicitudes_Click" runat="server">Solicitudes</asp:LinkButton></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 ID="upDatosChec" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet solid grey-cascade portlet-filter">
|
||||
<div class="portlet-title portlet-filterT smalltitle">
|
||||
<div class="titlefiltros caption">
|
||||
<div class="row">
|
||||
<%--<label class="col-md-1">Ejercicio: </label>
|
||||
<div class="col-md-1">
|
||||
<asp:DropDownList ID="DdlUsuario" runat="server" Style="width: 100% !important;" CssClass="select2me" DataValueField="CveUsuario" DataTextField="Nombre">
|
||||
<asp:ListItem Value="1" Text="1:01/01/2021 - 31/12/2021"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>--%>
|
||||
|
||||
<label class="col-md-1 mediocol">del:</label>
|
||||
<div class="col-md-1">
|
||||
<%--<asp:TextBox ID="TxtPeriodoInicio" Text="0" CssClass="form-control" runat="server"></asp:TextBox>--%>
|
||||
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 138px !important; padding: 0px; margin-bottom: -10px;">
|
||||
<asp:TextBox ID="TxtRpdFechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 80px" runat="server"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="LnkRpdFechaInicio" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MaskedEditExtender3" runat="server" TargetControlID="TxtRpdFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender3" TargetControlID="TxtRpdFechaInicio" PopupButtonID="LnkRpdFechaInicio" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="rfvRpdFechaInicio" runat="server" ControlToValidate="TxtRpdFechaInicio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor ingréselo." ValidationGroup="VGReporterepperde"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="rfvRpdFechaInicio"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-md-1 mediocol">al:</label>
|
||||
<div class="col-md-1">
|
||||
<%--<asp:TextBox ID="TxtPeriodoFin" Text="99" CssClass="form-control" runat="server"></asp:TextBox>--%>
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 138px !important; padding: 0px; margin-bottom: -10px;">
|
||||
<asp:TextBox ID="TxtRpdFechaFin" CssClass="form-control input-sm ADSMaskDate" Style="width: 80px" runat="server"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="LnkFechaFin" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
<ajax:MaskedEditExtender ID="MaskedEditExtender5" runat="server" TargetControlID="TxtRpdFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender4" TargetControlID="TxtRpdFechaFin" PopupButtonID="LnkFechaFin" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="rfvRpdFechaFin" runat="server" ControlToValidate="TxtRpdFechaFin" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor ingréselo." ValidationGroup="VGReporterepperde"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="rfvRpdFechaFin"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<asp:LinkButton ID="LnkConsultar" OnClick="LnkConsultar_Click" runat="server" Text="Consultar" Visible="true" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="expand" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body" style="display: none">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<div class="dashboard-stat purple">
|
||||
<div class="visual"><i class="fa fa-file"></i></div>
|
||||
<div class="details">
|
||||
<div class="number">Timbres Fiscales</div>
|
||||
<div class="desc">
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title=""></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Total">
|
||||
<asp:Literal ID="LtlDoctosTotal" runat="server"></asp:Literal>3573</label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Activos">
|
||||
<asp:Literal ID="LtlDoctosEntregados" runat="server"></asp:Literal>3281</label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Cancelados">
|
||||
<asp:Literal ID="LtlDoctosRestantes" runat="server"></asp:Literal>292</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="more">Documentos <i class="m-icon-swapright m-icon-white"></i></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="dashboard-stat red">
|
||||
<div class="visual"><i class="fa fa-file"></i></div>
|
||||
<div class="details">
|
||||
<div class="number">Neto Pagado</div>
|
||||
<div class="desc">
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title=""></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Importe">
|
||||
<asp:Literal ID="LtlDoctosGralesTotal" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Activo">
|
||||
<asp:Literal ID="LtlDoctosGralesEntregados" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Cancelado">
|
||||
<asp:Literal ID="LtlDoctosGralesRestantes" runat="server"></asp:Literal></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="more">Documentos <i class="m-icon-swapright m-icon-white"></i></div>
|
||||
</div>
|
||||
</div>
|
||||
<%-- <div class="col-sm-3">
|
||||
|
||||
<div class="dashboard-stat blue">
|
||||
<div class="visual"><i class="fa fa-file-archive"></i></div>
|
||||
<div class="details">
|
||||
<div class="number">Por cliente</div>
|
||||
<div class="desc">
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title=""></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Total">
|
||||
<asp:Literal ID="LtlDoctosXclienteTotal" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Entregados">
|
||||
<asp:Literal ID="LtlDoctosXclienteEntregados" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Restantes">
|
||||
<asp:Literal ID="LtlDoctosXclienteRestantes" runat="server"></asp:Literal></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="more">Documentos <i class="m-icon-swapright m-icon-white"></i></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
|
||||
<div class="dashboard-stat green">
|
||||
<div class="visual"><i class="fa fa-file-excel"></i></div>
|
||||
<div class="details">
|
||||
<div class="number">Por empleado</div>
|
||||
<div class="desc">
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title=""></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Total">
|
||||
<asp:Literal ID="LtlDoctosXEmplTotal" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Entregados">
|
||||
<asp:Literal ID="LtlDoctosXEmplEntregados" runat="server"></asp:Literal></label>
|
||||
<label class="indicadortipo4 col-md-6 tooltips" data-original-title="Restantes">
|
||||
<asp:Literal ID="LtlDoctosXEmplRestantes" runat="server"></asp:Literal></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="more">Documentos <i class="m-icon-swapright m-icon-white"></i></div>
|
||||
</div>
|
||||
</div>--%>
|
||||
</div>
|
||||
|
||||
<div class="portlet light xspadding bordered " id="pnldl">
|
||||
<div class="portlet-title">
|
||||
<div class="caption ">
|
||||
<i class="fa fa-bookmark font-yellow-gold"></i>
|
||||
<span class="caption-subject font-yellow-gold bold uppercase">Información timbre fiscal </span>
|
||||
</div>
|
||||
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
||||
</div>
|
||||
<div style="float: right;">
|
||||
<asp:TextBox CssClass="TxtBusqueda form-control input-sm" runat="server" onkeyup="FiltrarTablaV2('.TxtBusqueda','.ADScroller-body .GVSolicitudTimbreNominaGral')" Style="display: inline-block; margin-right: -20px; width: 150px;"></asp:TextBox>
|
||||
<a href="javascript:;" onclick="FiltrarTablaV2('.TxtBusqueda','.ADScroller-body .GVSolicitudTimbreNominaGral')" style="margin-top: -3px;" class="btn btn-circle btn-sm font-bold yellow-gold"><i class="icon-magnifier" style="font-weight: bold;"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom ">
|
||||
<asp:GridView ID="GVSolicitudTimbreNominaGral" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall GVSolicitudTimbreNominaGral" AutoGenerateColumns="true"
|
||||
DataKeyNames="Periodo,Version CFDI,Version Nómina,UUID,UUIDs relacionados,Tipo relacion,Tipo nomina,Serie,Folio,Fecha emision,Fecha certificacion,Fecha cancelacion,Fecha pago,Fecha inicial pago,Fecha final pago,Dias pagados,RFC emisor,Razon emisor,Registro patronal,RFC receptor,Razon receptor,Fecha inicio relacion laboral,Tipo contrato,Tipo jornada,Tipo regimen,Num empleado,Antiguedad,Sindicalizado,ClaveEntFed,Banco,Cuenta bancaria,CURP,No Seguro social,Departamento,Puesto,Periodicidad pago,Salario base cot apor,Salario diario integrado,Estado">
|
||||
<Columns></Columns>
|
||||
</asp:GridView>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
<div id="ModalViewSolicitudes" class="modal ADS fade" role="dialog">
|
||||
<asp:UpdatePanel ID="UPModalViewSolicitudes" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Solicitudes CFDI</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<br />
|
||||
<div class="portlet light xspadding bordered " id="PnlAgregar">
|
||||
<div class="portlet-title">
|
||||
<div class="caption ">
|
||||
<i class="fa fa-bookmark font-yellow-gold"></i>
|
||||
<span class="caption-subject font-yellow-gold bold uppercase">Solicitar información al sat</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="expand" data-original-title="" title=""></a>
|
||||
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom " style="display: none">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-4" data-date-format="dd/mm/yyyy" style="padding-right: 0px;">
|
||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
||||
<asp:TextBox ID="txtFechaIAdd" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||
<asp:Label runat="server" Text="Fecha Inicio" AssociatedControlID="txtFechaIAdd"></asp:Label>
|
||||
</div>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaIAdd" runat="server" TargetControlID="txtFechaIAdd" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="txtFechaIAdd" PopupButtonID="LnkFechaIAdd" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="rfvFechaIAdd" runat="server" ControlToValidate="txtFechaIAdd" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="VGAdd"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="cvFechaIAdd" runat="server" ControlToValidate="txtFechaIAdd" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaIAdd" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaIAdd" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2" style="padding-top: 14px; padding-left: 0px;">
|
||||
<div class="input-group input-sm input-small date date-picker " style="padding-left: 0px;" data-date-format="dd/mm/yyyy">
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="LnkFechaIAdd" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4" data-date-format="dd/mm/yyyy" style="padding-right: 0px;">
|
||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
||||
<asp:TextBox ID="txtFechaFAdd" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||
<asp:Label runat="server" Text="Fecha Fin" AssociatedControlID="txtFechaFAdd"></asp:Label>
|
||||
</div>
|
||||
<ajax:MaskedEditExtender ID="MEEFechaFAdd" runat="server" TargetControlID="txtFechaFAdd" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender2" TargetControlID="txtFechaFAdd" PopupButtonID="LnkFechaFAdd" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="rfvFechaFAdd" runat="server" ControlToValidate="txtFechaFAdd" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="VGAdd"></asp:RequiredFieldValidator>
|
||||
<asp:CompareValidator ID="cvFechaFAdd" runat="server" ControlToValidate="txtFechaFAdd" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaFAdd" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaFAdd" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
</div>
|
||||
<div class ="text-right">
|
||||
<asp:LinkButton ID="LnkSolicitarSat" OnClick="LnkSolicitarSat_Click" runat="server">Solicitar</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet light xspadding bordered " id="PnlPendientes">
|
||||
<div class="portlet-title">
|
||||
<div class="caption ">
|
||||
<i class="fa fa-bookmark font-yellow-gold"></i>
|
||||
<span class="caption-subject font-yellow-gold bold uppercase">Solicitudes pendientes de respuesta del SAT </span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom ">
|
||||
|
||||
<asp:GridView ID="GVSolicitudesPendientes" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
||||
ShowHeaderWhenEmpty="true" EmptyDataText="No se encontraron registros"
|
||||
DataKeyNames="idSolicitudNominas,idSolicitudCFDI,idSolicitudMetadata,Estatus,Observaciones,FechaInicio,FechaFin,FechaIng,CveUsuarioIng,CveEmpresa">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Folio">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("idSolicitudNominas")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha Inicio">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblfechaInicio" runat="server" Text='<%# Eval("FechaInicio","{0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha Fin">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblfechaFin" runat="server" Text='<%# Eval("FechaFin","{0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Estatus">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblestatus" runat="server" Text='<%# Eval("EstatusText")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Observaciones">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblobservaciones" runat="server" Text='<%# Eval("Observaciones")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha solicitud">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("FechaIng","{0:dd/MM/yyyy HH:mm}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Solicitó">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("UsuarioIng")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet light xspadding bordered " id="PnlTerminads">
|
||||
<div class="portlet-title">
|
||||
<div class="caption ">
|
||||
<i class="fa fa-bookmark font-yellow-gold"></i>
|
||||
<span class="caption-subject font-yellow-gold bold uppercase">solicitudes respondidas por el sat</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom ">
|
||||
<asp:GridView ID="GVSolicitudesNominas" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall" AutoGenerateColumns="False"
|
||||
ShowHeaderWhenEmpty="true" EmptyDataText="No se encontraron registros"
|
||||
DataKeyNames="idSolicitudNominas,idSolicitudCFDI,idSolicitudMetadata,Estatus,Observaciones,FechaInicio,FechaFin,FechaIng,CveUsuarioIng,CveEmpresa">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Folio">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("idSolicitudNominas")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha Inicio">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblfechaInicio" runat="server" Text='<%# Eval("FechaInicio","{0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha Fin">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblfechaFin" runat="server" Text='<%# Eval("FechaFin","{0:dd/MM/yyyy}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="No CFDI">
|
||||
<ItemTemplate>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Observaciones">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblobservaciones" runat="server" Text='<%# Eval("Observaciones")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Fecha solicitud">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("FechaIng","{0:dd/MM/yyyy HH:mm}")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Solicitó">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" Text='<%# Eval("UsuarioIng")%>'> </asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
</asp:Content>
|
||||
|
||||
79
SAT/SolicitudesNominaSat.aspx.cs
Normal file
79
SAT/SolicitudesNominaSat.aspx.cs
Normal file
@@ -0,0 +1,79 @@
|
||||
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 SAT_SolicitudesNominaSat : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
TxtRpdFechaInicio.Text = string.Format("01/01/{0}", DateTime.Now.Year - 1);
|
||||
TxtRpdFechaFin.Text = string.Format("31/12/{0}", DateTime.Now.Year - 1);
|
||||
LnkConsultar_Click(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
protected void LnkConsultar_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (ClsNominas nom =new ClsNominas())
|
||||
{
|
||||
nom.SATSolicitudTimbreNominaGral(-1, -1);
|
||||
GVSolicitudTimbreNominaGral.DataSource = nom.DtResultados;
|
||||
GVSolicitudTimbreNominaGral.DataBind();
|
||||
}
|
||||
upDatosChec.Update();
|
||||
//SATSolicitudTimbreNominaGral
|
||||
}
|
||||
private void cargasolicitudes()
|
||||
{
|
||||
using (ClsNominas nom = new ClsNominas())
|
||||
{
|
||||
if (nom.SolicitudesNominasGet(-1, 119))
|
||||
{
|
||||
|
||||
GVSolicitudesPendientes.DataSource = nom.DtResultados.FiltraParametros("Estatus =0");
|
||||
GVSolicitudesPendientes.DataBind();
|
||||
GVSolicitudesNominas.DataSource = nom.DtResultados.FiltraParametros("Estatus =1");
|
||||
GVSolicitudesNominas.DataBind();
|
||||
}
|
||||
}
|
||||
UPModalViewSolicitudes.Update();
|
||||
}
|
||||
protected void LnkShowSolicitudes_Click(object sender, EventArgs e)
|
||||
{
|
||||
cargasolicitudes();
|
||||
this.RegistraScript("$('#ModalViewSolicitudes').modal();");
|
||||
}
|
||||
|
||||
protected void LnkSolicitarSat_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
int idSolicitudCFDI = 0;
|
||||
int idSolicitudMetadata = 0;
|
||||
int estatus = 0;
|
||||
string observaciones = "";
|
||||
DateTime fechaInicio = txtFechaIAdd.Text.ToDateTime();
|
||||
DateTime fechaFin = txtFechaFAdd.Text.ToDateTime();
|
||||
int cveUsuarioIng = 1360;
|
||||
int cveEmpresa = 119;
|
||||
bool Continuar = false;
|
||||
using (ClsNominas nom = new ClsNominas())
|
||||
{
|
||||
Continuar = nom.SolicitudesNominasAdd(idSolicitudCFDI, idSolicitudMetadata, estatus, observaciones, fechaInicio, fechaFin, cveUsuarioIng, cveEmpresa);
|
||||
}
|
||||
if (Continuar)
|
||||
{
|
||||
txtFechaIAdd.Text = "";
|
||||
txtFechaFAdd.Text = "";
|
||||
this.RegistraScript("$('#DModalSolicitudesNominas').modal('hide');");
|
||||
cargasolicitudes();
|
||||
this.Alert("se a envia la solicitud al sat, le enviaremos un correo en cuanto tengamos una respuesta",ModExtensiones.TipoMensaje.ToastInformacion );
|
||||
}
|
||||
}
|
||||
}
|
||||
14
vwd.webinfo
14
vwd.webinfo
@@ -434,6 +434,20 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user