Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -87,7 +87,7 @@ Public Class ClsClientes
|
|||||||
Public Property Codigo As String
|
Public Property Codigo As String
|
||||||
Public Property LimiteCredito As Double
|
Public Property LimiteCredito As Double
|
||||||
'Public Property NumCtaPago As String
|
'Public Property NumCtaPago As String
|
||||||
'Public Property CveMetodoPago As Integer
|
Public Property CveMetodoPago As Integer
|
||||||
Public Property AplicaFEMSA As Boolean
|
Public Property AplicaFEMSA As Boolean
|
||||||
Public Property FEMSA_NumSociedad As String
|
Public Property FEMSA_NumSociedad As String
|
||||||
Public Property FEMSA_NumProveedor As String
|
Public Property FEMSA_NumProveedor As String
|
||||||
|
|||||||
@@ -6438,5 +6438,24 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function UpdateProveedorPoliza(CveOrdenCompra As Integer, CveProveedor As Integer, Concepto As String) As Boolean
|
||||||
|
Dim Retorno = False
|
||||||
|
|
||||||
|
DataAdapter("PA_Conta_ActualizarProveedor")
|
||||||
|
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveOrdenCompra", SqlDbType.Int).Value = CveOrdenCompra
|
||||||
|
.Add("@CveProveedor", SqlDbType.Int).Value = CveProveedor
|
||||||
|
.Add("@Proveedor", SqlDbType.VarChar).Value = Concepto
|
||||||
|
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
Me.OnError("Ocurrió un error al obtener traspasar las Prepolizas", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
End Class
|
End Class
|
||||||
@@ -130,7 +130,8 @@ Public Class ClsNominas
|
|||||||
.CommandText = pStrSQL
|
.CommandText = pStrSQL
|
||||||
.CommandType = TipoComando
|
.CommandType = TipoComando
|
||||||
End With
|
End With
|
||||||
Data = New DataTable
|
Data = New DataTable()
|
||||||
|
DTSet = New DataSet()
|
||||||
If SqlTransacc IsNot Nothing Then SqlAdapter.SelectCommand.Transaction = SqlTransacc
|
If SqlTransacc IsNot Nothing Then SqlAdapter.SelectCommand.Transaction = SqlTransacc
|
||||||
End Sub
|
End Sub
|
||||||
#Region "Conexiones"
|
#Region "Conexiones"
|
||||||
@@ -311,7 +312,7 @@ Public Class ClsNominas
|
|||||||
End Function
|
End Function
|
||||||
Public Function GetCalculoAguinaldo(ejercicio As Int32, cveEmpresa As Int32, importe As Double, CveTipoPeriodo As Integer, CvePeriodo As Integer) As Boolean
|
Public Function GetCalculoAguinaldo(ejercicio As Int32, cveEmpresa As Int32, importe As Double, CveTipoPeriodo As Integer, CvePeriodo As Integer) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_NomCalcularAguinaldo", CommandType.StoredProcedure)
|
DataAdapter("PA_Nom_CalcularAguinaldo", CommandType.StoredProcedure)
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = cveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = cveEmpresa
|
||||||
.Add("@Ejercicio", SqlDbType.Int).Value = ejercicio
|
.Add("@Ejercicio", SqlDbType.Int).Value = ejercicio
|
||||||
@@ -327,24 +328,28 @@ Public Class ClsNominas
|
|||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function Autorizaperiodoconta(CvePeriodo As Int32, CveEmpresa As Int32) As Boolean
|
Public Function RegistraProvision(CvePeriodo As Int32, CveEmpresa As Int32) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_Nom_Autorizaperiodoconta", CommandType.StoredProcedure)
|
DataAdapter("PA_Nom_RegistraProvision", CommandType.StoredProcedure)
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CvePeriodo", SqlDbType.Int).Value = CvePeriodo
|
.Add("@CvePeriodo", SqlDbType.Int).Value = CvePeriodo
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(DTSet)
|
||||||
|
Data = New DataTable
|
||||||
|
If DTSet.Tables.Count > 0 Then
|
||||||
|
Data = DTSet.Tables(0)
|
||||||
|
End If
|
||||||
retorno = True
|
retorno = True
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
OnError("Ocurrió un error al autorizar periodo.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
OnError("Ocurrió un error al registrar la provisión de nomina.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetDispersiondenomina(CvePeriodo As Int32, CveEmpresa As Int32) As Boolean
|
Public Function GetDispersionnomina(CvePeriodo As Int32, CveEmpresa As Int32) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_PA_NomDispersiondenomina", CommandType.StoredProcedure)
|
DataAdapter("PA_Nom_Dispersionnomina", CommandType.StoredProcedure)
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CvePeriodo", SqlDbType.Int).Value = CvePeriodo
|
.Add("@CvePeriodo", SqlDbType.Int).Value = CvePeriodo
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
@@ -359,7 +364,7 @@ Public Class ClsNominas
|
|||||||
End Function
|
End Function
|
||||||
Public Function GetCalculoUtilidades(ejercicio As Int32, cveEmpresa As Int32, importe As Double, importeA As Double) As Boolean
|
Public Function GetCalculoUtilidades(ejercicio As Int32, cveEmpresa As Int32, importe As Double, importeA As Double) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_NomCalcularUtilidades", CommandType.StoredProcedure)
|
DataAdapter("PA_Nom_CalcularUtilidades", CommandType.StoredProcedure)
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = cveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = cveEmpresa
|
||||||
.Add("@Ejercicio", SqlDbType.Int).Value = ejercicio
|
.Add("@Ejercicio", SqlDbType.Int).Value = ejercicio
|
||||||
@@ -2549,7 +2554,7 @@ Public Class ClsNominas
|
|||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function AddMovtoPermanente(cveConcepto As Int32, cvePersonal As Int32, descripcion As String, tipoDescuento As Int32, valor As Double, vecesAplicar As Int32, montoLimite As Decimal, fechaInicioAplicacion As String, estatus As Boolean) As Boolean
|
Public Function AddMovtoPermanente(cveConcepto As Int32, cvePersonal As Int32, descripcion As String, tipoDescuento As Int32, valor As Double, vecesAplicar As Int32, montoLimite As Decimal, fechaInicioAplicacion As String, estatus As Boolean, CveCuenta As Integer) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_AddMovtoPermanente", CommandType.StoredProcedure)
|
DataAdapter("PA_AddMovtoPermanente", CommandType.StoredProcedure)
|
||||||
|
|
||||||
@@ -2563,20 +2568,21 @@ Public Class ClsNominas
|
|||||||
.Add("@montoLimite", SqlDbType.Decimal).Value = (montoLimite)
|
.Add("@montoLimite", SqlDbType.Decimal).Value = (montoLimite)
|
||||||
.Add("@fechaInicioAplicacion", SqlDbType.VarChar).Value = (fechaInicioAplicacion)
|
.Add("@fechaInicioAplicacion", SqlDbType.VarChar).Value = (fechaInicioAplicacion)
|
||||||
.Add("@estatus", SqlDbType.Bit).Value = (estatus)
|
.Add("@estatus", SqlDbType.Bit).Value = (estatus)
|
||||||
|
.Add("@CveCuenta", SqlDbType.Int).Value = (CveCuenta)
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
retorno = True
|
retorno = True
|
||||||
Catch sqEx As SqlException
|
Catch sqEx As SqlException
|
||||||
retorno = False
|
retorno = False
|
||||||
OnError("Ocurrió un error al agregar los Movtos Permanentes.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
OnError("Ocurrió un error al agregar los movimientos permanentes.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
retorno = False
|
retorno = False
|
||||||
OnError("Ocurrió un error al agregar los Movtos Permanentes.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
OnError("Ocurrió un error al agregar los movimientos permanentes.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function UpMovtoPermanente(cveMovtoPermanente As Int32, cveConcepto As Int32, cvePersonal As Int32, descripcion As String, tipoDescuento As Int32, valor As Double, vecesAplicar As Int32, montoLimite As Decimal, fechaInicioAplicacion As String, estatus As Boolean) As Boolean
|
Public Function UpMovtoPermanente(cveMovtoPermanente As Int32, cveConcepto As Int32, cvePersonal As Int32, descripcion As String, tipoDescuento As Int32, valor As Double, vecesAplicar As Int32, montoLimite As Decimal, fechaInicioAplicacion As String, estatus As Boolean, CveCuenta As Integer) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_UpMovtoPermanente", CommandType.StoredProcedure)
|
DataAdapter("PA_UpMovtoPermanente", CommandType.StoredProcedure)
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -2590,16 +2596,21 @@ Public Class ClsNominas
|
|||||||
.Add("@montoLimite", SqlDbType.Decimal).Value = (montoLimite)
|
.Add("@montoLimite", SqlDbType.Decimal).Value = (montoLimite)
|
||||||
.Add("@fechaInicioAplicacion", SqlDbType.VarChar).Value = (fechaInicioAplicacion)
|
.Add("@fechaInicioAplicacion", SqlDbType.VarChar).Value = (fechaInicioAplicacion)
|
||||||
.Add("@estatus", SqlDbType.Bit).Value = (estatus)
|
.Add("@estatus", SqlDbType.Bit).Value = (estatus)
|
||||||
|
.Add("@CveCuenta", SqlDbType.Int).Value = (CveCuenta)
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
retorno = True
|
retorno = True
|
||||||
Catch sqEx As SqlException
|
Catch sqEx As SqlException
|
||||||
retorno = False
|
retorno = False
|
||||||
OnError("Ocurrió un error al agregar los Movtos Permanentes.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
If (sqEx.Message.Contains("FK_Conta_CuentasAsignaciones_Conta_ConceptosContables")) Then
|
||||||
|
OnError("Es necesario asignar el concepto contable al concepto de nomina para poder realizar la vinculacion de la cuenta.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
Else
|
||||||
|
OnError("Ocurrió un error al actualizar los movimientos permanentes.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End If
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
retorno = False
|
retorno = False
|
||||||
OnError("Ocurrió un error al agregar los Movtos Permanentes.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
OnError("Ocurrió un error al actualizar los movimientos permanentes.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
|
|||||||
@@ -35,11 +35,33 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
|||||||
context.Response.Close()
|
context.Response.Close()
|
||||||
context.Response.End()
|
context.Response.End()
|
||||||
Else
|
Else
|
||||||
context.Response.ContentType = "text/plain"
|
If context.Request("metodo").Contiene("Contabilizapoliza", "RevisaConexion") Then
|
||||||
|
context.Response.ContentType = "text/json"
|
||||||
|
Else
|
||||||
|
context.Response.ContentType = "text/plain"
|
||||||
|
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Try
|
Try
|
||||||
Select Case context.Request("metodo")
|
Select Case context.Request("metodo")
|
||||||
|
Case "Contabilizapoliza"
|
||||||
|
Dim CvePrePoliza As Integer = context.Request("CvePrePoliza").ToString().ToEntero()
|
||||||
|
Dim CveUsuario As Integer = context.Request("CveUsuario").ToString().ToEntero()
|
||||||
|
Dim CveEmpresa As Integer = context.Request("CveEmpresa").ToString().ToEntero()
|
||||||
|
GuardaLog(String.Format("?metodo=Contabilizapoliza&CvePrePoliza={0}&CveUsuario={1}&CveEmpresa ={2}", CvePrePoliza, CveUsuario, CveEmpresa))
|
||||||
|
ActualizaPrePoliza(context)
|
||||||
|
Dim obj As New ADSNetLibrary.SIGAPI.Models.ResponseModel(Of Object)()
|
||||||
|
obj.Result = DateTime.Now.ToString()
|
||||||
|
Dim retorno = JsonConvert.SerializeObject(obj).ToString()
|
||||||
|
context.Response.Write(retorno)
|
||||||
|
context.Response.StatusCode = 200
|
||||||
|
Case "RevisaConexion"
|
||||||
|
Dim obj As New ADSNetLibrary.SIGAPI.Models.ResponseModel(Of Object)()
|
||||||
|
obj.Result = DateTime.Now.ToString()
|
||||||
|
Dim retorno = JsonConvert.SerializeObject(obj).ToString()
|
||||||
|
context.Response.Write(retorno)
|
||||||
|
context.Response.StatusCode = 200
|
||||||
Case "getps"
|
Case "getps"
|
||||||
GETPS(context)
|
GETPS(context)
|
||||||
Case "getps2"
|
Case "getps2"
|
||||||
|
|||||||
@@ -857,9 +857,9 @@ Partial Class ContabilidadC_RegPrePoliza
|
|||||||
Next
|
Next
|
||||||
|
|
||||||
If CvePeriodo > 0 Then
|
If CvePeriodo > 0 Then
|
||||||
If Not ObjNom.UpdateProvisionNomina(CvePeriodo, CvePrePoliza, UsuarioActual.CveEmpresa) Then
|
'If Not ObjNom.UpdateProvisionNomina(CvePeriodo, CvePrePoliza, UsuarioActual.CveEmpresa) Then
|
||||||
MsgError = "No se pudo actualizar el periodo de la nómina"
|
' MsgError = "No se pudo actualizar el periodo de la nómina"
|
||||||
End If
|
'End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ObjMov.ValidacionPrePolizaCuadre(CvePrePoliza, 1) Then
|
If ObjMov.ValidacionPrePolizaCuadre(CvePrePoliza, 1) Then
|
||||||
|
|||||||
@@ -156,7 +156,7 @@
|
|||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpAccciones" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpAccciones" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkAutorizar" Visible="false" OnClick="LnkAutorizar_Click" runat="server"><i class="fa fa-thumbs-up" aria-hidden="true"></i>Autorizar</asp:LinkButton>
|
<asp:LinkButton ID="LnkAutorizar" Visible="false" OnClick="LnkAutorizar_Click" runat="server"><i class="fa fa-thumbs-up" aria-hidden="true"></i>Autorizar</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
@@ -220,13 +220,13 @@
|
|||||||
<li>
|
<li>
|
||||||
<asp:HyperLink ID="HypPDFSTimbrados" Visible="false" onclick="GETPDF(-1,0)" NavigateUrl="#" runat="server"><i class="fa fa-download" aria-hidden="true"></i>Recibos timbrados</asp:HyperLink>
|
<asp:HyperLink ID="HypPDFSTimbrados" Visible="false" onclick="GETPDF(-1,0)" NavigateUrl="#" runat="server"><i class="fa fa-download" aria-hidden="true"></i>Recibos timbrados</asp:HyperLink>
|
||||||
</li>
|
</li>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
<Triggers>
|
<triggers>
|
||||||
<asp:PostBackTrigger ControlID="LnkListaRaya" />
|
<asp:PostBackTrigger ControlID="LnkListaRaya" />
|
||||||
<asp:PostBackTrigger ControlID="LnkFormatoTabular" />
|
<asp:PostBackTrigger ControlID="LnkFormatoTabular" />
|
||||||
<asp:PostBackTrigger ControlID="LnkLayoutContable" />
|
<asp:PostBackTrigger ControlID="LnkLayoutContable" />
|
||||||
|
|
||||||
</Triggers>
|
</triggers>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
@@ -234,7 +234,7 @@
|
|||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
|
|
||||||
<div class="portlet solid grey-cascade portlet-filter">
|
<div class="portlet solid grey-cascade portlet-filter">
|
||||||
<div class="portlet-title portlet-filterT smalltitle">
|
<div class="portlet-title portlet-filterT smalltitle">
|
||||||
@@ -335,10 +335,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
|
|
||||||
<ajax:TabContainer ID="Tab" runat="server" Width="100%" AutoPostBack="True">
|
<ajax:TabContainer ID="Tab" runat="server" Width="100%" AutoPostBack="True">
|
||||||
<ajax:TabPanel ID="TabNominas" runat="server" HeaderText="Nominas">
|
<ajax:TabPanel ID="TabNominas" runat="server" HeaderText="Nominas">
|
||||||
@@ -552,14 +552,14 @@
|
|||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>
|
||||||
</ajax:TabContainer>
|
</ajax:TabContainer>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
|
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
<div id="DModalModAsistencia" class="modal ADS fade" role="dialog">
|
<div id="DModalModAsistencia" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UpModalAsistencia" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpModalAsistencia" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content rowpadding">
|
<div class="modal-content rowpadding">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
@@ -617,7 +617,7 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -626,7 +626,7 @@
|
|||||||
<div id="ModalConceptos" class="modal ADS fade" role="dialog">
|
<div id="ModalConceptos" class="modal ADS fade" role="dialog">
|
||||||
|
|
||||||
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UpModalConceptos" UpdateMode="Conditional">
|
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UpModalConceptos" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header ">
|
<div class="modal-header ">
|
||||||
<h4 class="modal-title">Sobre Recibo</h4>
|
<h4 class="modal-title">Sobre Recibo</h4>
|
||||||
@@ -779,7 +779,7 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Importe">
|
<asp:TemplateField HeaderText="Importe">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtlImporte" runat="server" Text='<%# Eval("ImporteP", "${0:N}") %>' Style="word-break: break-all;"></asp:Label>
|
<asp:Label ID="LtlImporte" runat="server" Text='<%# Eval("ImporteP", "${0:N}") %>' Style="word-break: break-all;display: inline-block;" ></asp:Label>
|
||||||
<asp:LinkButton ID="LnkImporte" OnClick="LnkConcepto_Click" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="LnkImporte" OnClick="LnkConcepto_Click" runat="server"></asp:LinkButton>
|
||||||
<div style="display: inline-block; width: 29px;">
|
<div style="display: inline-block; width: 29px;">
|
||||||
<asp:LinkButton ID="LnkImportexCalculo" OnClick="LnkImportexCalculo_Click" runat="server" CssClass="btn btn-circle btn-sm btn-xs red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el importe fijo?" data-btn-ok-label="si"></asp:LinkButton>
|
<asp:LinkButton ID="LnkImportexCalculo" OnClick="LnkImportexCalculo_Click" runat="server" CssClass="btn btn-circle btn-sm btn-xs red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el importe fijo?" data-btn-ok-label="si"></asp:LinkButton>
|
||||||
@@ -1009,7 +1009,7 @@
|
|||||||
|
|
||||||
<asp:GridView ID="GVMovtoPermanente" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall " AutoGenerateColumns="False"
|
<asp:GridView ID="GVMovtoPermanente" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD Widthall " AutoGenerateColumns="False"
|
||||||
ShowHeader="false" EmptyDataText="No se encontraron Movimientos"
|
ShowHeader="false" EmptyDataText="No se encontraron Movimientos"
|
||||||
DataKeyNames="CveMovtoPermanente,CveConcepto,CvePersonal,Descripcion,TipoDescuento,Valor,VecesAplicar,MontoLimite,FechaInicioAplicacion,Estatus,FechaRegistro">
|
DataKeyNames="CveMovtoPermanente,CveConcepto,CveCuenta,CvePersonal,Descripcion,TipoDescuento,Valor,VecesAplicar,MontoLimite,FechaInicioAplicacion,Estatus,FechaRegistro">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -1120,12 +1120,13 @@
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
||||||
<asp:Label runat="server" Text="Cuenta contable" AssociatedControlID="DdlCtaContable"></asp:Label>
|
<asp:Label runat="server" Text="Cuenta contable" AssociatedControlID="DdlCtaContable"></asp:Label>
|
||||||
<asp:DropDownList ID="DdlCtaContable" runat="server" AppendDataBoundItems="True" DataTextField="CtaCodigo" DataValueField="Id" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
<asp:DropDownList ID="DdlCtaContable" runat="server" AppendDataBoundItems="True" DataTextField="CtaCodigo" DataValueField="CveCuenta" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
¿Activo?
|
<div style=" padding-top: 10px; padding-bottom: 14px; ">
|
||||||
<br />
|
¿Activo?
|
||||||
|
</div>
|
||||||
<asp:CheckBox ID="ChkEstatus" CssClass="chksino " Text=" " runat="server" />
|
<asp:CheckBox ID="ChkEstatus" CssClass="chksino " Text=" " runat="server" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
@@ -1579,16 +1580,16 @@
|
|||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
<Triggers>
|
<triggers>
|
||||||
<%--<asp:PostBackTrigger ControlID="BtnImprimirsobrerecibo" />--%>
|
<%--<asp:PostBackTrigger ControlID="BtnImprimirsobrerecibo" />--%>
|
||||||
</Triggers>
|
</triggers>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<div id="ModalUpConcepto" class="modal ADS fade" role="dialog">
|
<div id="ModalUpConcepto" class="modal ADS fade" role="dialog">
|
||||||
|
|
||||||
<asp:UpdatePanel class="modal-dialog " runat="server" ID="UPpanelModalUpConcepto" UpdateMode="Conditional">
|
<asp:UpdatePanel class="modal-dialog " runat="server" ID="UPpanelModalUpConcepto" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header ">
|
<div class="modal-header ">
|
||||||
<h4 class="modal-title">Modificar o agregar concepto :
|
<h4 class="modal-title">Modificar o agregar concepto :
|
||||||
@@ -1629,13 +1630,13 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<div id="ModalTablas" class="modal ADS fade" role="dialog">
|
<div id="ModalTablas" class="modal ADS fade" role="dialog">
|
||||||
|
|
||||||
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UpModalTablas" UpdateMode="Conditional">
|
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UpModalTablas" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header ">
|
<div class="modal-header ">
|
||||||
<h4 class="modal-title">
|
<h4 class="modal-title">
|
||||||
@@ -1880,13 +1881,13 @@
|
|||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<div id="ModalCalculoISR" class="modal ADS fade" role="dialog">
|
<div id="ModalCalculoISR" class="modal ADS fade" role="dialog">
|
||||||
|
|
||||||
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UpCalculoISR" UpdateMode="Conditional">
|
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UpCalculoISR" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header ">
|
<div class="modal-header ">
|
||||||
<h4 class="modal-title">
|
<h4 class="modal-title">
|
||||||
@@ -1989,13 +1990,13 @@
|
|||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="DModalNominas" class="modal ADS fade" role="dialog">
|
<div id="DModalNominas" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UpCargarNomina" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpCargarNomina" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content rowpadding">
|
<div class="modal-content rowpadding">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
@@ -2096,16 +2097,16 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
<Triggers>
|
<triggers>
|
||||||
<asp:PostBackTrigger ControlID="LnkFormato" />
|
<asp:PostBackTrigger ControlID="LnkFormato" />
|
||||||
</Triggers>
|
</triggers>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="DModalCargaASistenciaMasiva" class="modal ADS fade" role="dialog">
|
<div id="DModalCargaASistenciaMasiva" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UpModalAsistenciaMasiva" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpModalAsistenciaMasiva" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content rowpadding">
|
<div class="modal-content rowpadding">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
@@ -2141,12 +2142,12 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<div id="DSimulador" class="modal ADS fade" role="dialog">
|
<div id="DSimulador" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UpSimulador" class="modal-dialog modal-lg" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpSimulador" class="modal-dialog modal-lg" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content rowpadding">
|
<div class="modal-content rowpadding">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
@@ -2330,7 +2331,7 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -2346,7 +2347,7 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
<asp:UpdatePanel ID="upperiodoreporte" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="upperiodoreporte" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
@@ -2355,7 +2356,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
@@ -2382,20 +2383,20 @@
|
|||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtRpdFechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtRpdFechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtRIFechaInicio">Fecha Inicio</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtRIFechaInicio">Fecha Inicio</asp:Label>
|
||||||
<ajax:MaskedEditExtender ID="MaskedEditExtender3" runat="server" TargetControlID="TxtRpdFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<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" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
<ajax:calendarextender runat="server" id="CalendarExtender3" targetcontrolid="TxtRpdFechaInicio" 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>
|
<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>
|
<ajax:validatorcalloutextender id="ValidatorCalloutExtender1" runat="server" highlightcssclass="vco" targetcontrolid="rfvRpdFechaInicio"></ajax:validatorcalloutextender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtRpdFechaFin" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtRpdFechaFin" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtRIFechaFin">Fecha Fin</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtRIFechaFin">Fecha Fin</asp:Label>
|
||||||
<ajax:MaskedEditExtender ID="MaskedEditExtender5" runat="server" TargetControlID="TxtRpdFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<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" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
<ajax:calendarextender runat="server" id="CalendarExtender4" targetcontrolid="TxtRpdFechaFin" 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>
|
<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>
|
<ajax:validatorcalloutextender id="ValidatorCalloutExtender2" runat="server" highlightcssclass="vco" targetcontrolid="rfvRpdFechaFin"></ajax:validatorcalloutextender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -2424,20 +2425,20 @@
|
|||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtRIFechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtRIFechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtRIFechaInicio">Fecha Inicio</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtRIFechaInicio">Fecha Inicio</asp:Label>
|
||||||
<ajax:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="TxtRIFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<ajax:maskededitextender id="MaskedEditExtender1" runat="server" targetcontrolid="TxtRIFechaInicio" mask="99/99/9999" masktype="Date" displaymoney="Left" acceptnegative="Left"></ajax:maskededitextender>
|
||||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="TxtRIFechaInicio" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
<ajax:calendarextender runat="server" id="CalendarExtender1" targetcontrolid="TxtRIFechaInicio" popupposition="BottomRight" enabled="True" format="dd/MM/yyyy"></ajax:calendarextender>
|
||||||
<asp:RequiredFieldValidator ID="rfvRIFechaInicio" runat="server" ControlToValidate="TxtRIFechaInicio" 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="VGReporteInicidencia"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="rfvRIFechaInicio" runat="server" ControlToValidate="TxtRIFechaInicio" 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="VGReporteInicidencia"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VcorfvRIFechaInicio" runat="server" HighlightCssClass="vco" TargetControlID="rfvRIFechaInicio"></ajax:ValidatorCalloutExtender>
|
<ajax:validatorcalloutextender id="VcorfvRIFechaInicio" runat="server" highlightcssclass="vco" targetcontrolid="rfvRIFechaInicio"></ajax:validatorcalloutextender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtRIFechaFin" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtRIFechaFin" CssClass="form-control input-sm ADSMaskDate" Style="width: 118px" runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtRIFechaFin">Fecha Fin</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtRIFechaFin">Fecha Fin</asp:Label>
|
||||||
<ajax:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="TxtRIFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
<ajax:maskededitextender id="MaskedEditExtender2" runat="server" targetcontrolid="TxtRIFechaFin" mask="99/99/9999" masktype="Date" displaymoney="Left" acceptnegative="Left"></ajax:maskededitextender>
|
||||||
<ajax:CalendarExtender runat="server" ID="CalendarExtender2" TargetControlID="TxtRIFechaFin" PopupPosition="BottomRight" Enabled="True" Format="dd/MM/yyyy"></ajax:CalendarExtender>
|
<ajax:calendarextender runat="server" id="CalendarExtender2" targetcontrolid="TxtRIFechaFin" popupposition="BottomRight" enabled="True" format="dd/MM/yyyy"></ajax:calendarextender>
|
||||||
<asp:RequiredFieldValidator ID="rfvRIFechaFin" runat="server" ControlToValidate="TxtRIFechaFin" 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="VGReporteInicidencia"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="rfvRIFechaFin" runat="server" ControlToValidate="TxtRIFechaFin" 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="VGReporteInicidencia"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VcorfvRIFechaFin" runat="server" HighlightCssClass="vco" TargetControlID="rfvRIFechaFin"></ajax:ValidatorCalloutExtender>
|
<ajax:validatorcalloutextender id="VcorfvRIFechaFin" runat="server" highlightcssclass="vco" targetcontrolid="rfvRIFechaFin"></ajax:validatorcalloutextender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -2452,7 +2453,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="DmodalCompareSua" class="modal ADS fade" role="dialog">
|
<div id="DmodalCompareSua" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UpArchivoSua" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpArchivoSua" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content rowpadding">
|
<div class="modal-content rowpadding">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
@@ -2792,15 +2793,15 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
<Triggers>
|
<triggers>
|
||||||
<asp:PostBackTrigger ControlID="LnkDownExcelSua" />
|
<asp:PostBackTrigger ControlID="LnkDownExcelSua" />
|
||||||
</Triggers>
|
</triggers>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<div id="DmodalGetSua" class="modal ADS fade" role="dialog">
|
<div id="DmodalGetSua" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel ID="UpModalGetSUA" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpModalGetSUA" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<div class="modal-content rowpadding">
|
<div class="modal-content rowpadding">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
@@ -2876,7 +2877,7 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<asp:TextBox ID="TxtCvePeriodo" CssClass="TxtCvePeriodo hidden" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtCvePeriodo" CssClass="TxtCvePeriodo hidden" runat="server"></asp:TextBox>
|
||||||
@@ -2884,13 +2885,13 @@
|
|||||||
<asp:Button ID="BtnGeneratepdf" CssClass="BtnGeneratepdf hidden" OnClick="BtnGeneratepdf_Click" UseSubmitBehavior="false" runat="server" Text="Button" />
|
<asp:Button ID="BtnGeneratepdf" CssClass="BtnGeneratepdf hidden" OnClick="BtnGeneratepdf_Click" UseSubmitBehavior="false" runat="server" Text="Button" />
|
||||||
|
|
||||||
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<contenttemplate>
|
||||||
<asp:Button ID="BtnGenerateXml" CssClass="BtnGenerateXml hidden" OnClick="BtnGenerateXml_Click" UseSubmitBehavior="false" runat="server" Text="Button" />
|
<asp:Button ID="BtnGenerateXml" CssClass="BtnGenerateXml hidden" OnClick="BtnGenerateXml_Click" UseSubmitBehavior="false" runat="server" Text="Button" />
|
||||||
<span class="ltlxml">
|
<span class="ltlxml">
|
||||||
<asp:Literal ID="LtlXml" runat="server"></asp:Literal></span>
|
<asp:Literal ID="LtlXml" runat="server"></asp:Literal></span>
|
||||||
<span class="ltlxmlfin">
|
<span class="ltlxmlfin">
|
||||||
<asp:Literal ID="LtlXmlfin" runat="server"></asp:Literal></span>
|
<asp:Literal ID="LtlXmlfin" runat="server"></asp:Literal></span>
|
||||||
</ContentTemplate>
|
</contenttemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
|||||||
@@ -396,7 +396,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
int CvePrePolizaProvision = drow["CvePrePolizaProvision"].ToString().ToEntero();
|
int CvePrePolizaProvision = drow["CvePrePolizaProvision"].ToString().ToEntero();
|
||||||
int CvePrePolizaProvisionAsimilados = drow["CvePrePolizaAsimilables"].ToString().ToEntero();
|
int CvePrePolizaProvisionAsimilados = drow["CvePrePolizaAsimilables"].ToString().ToEntero();
|
||||||
LnkConceptoEmpleado.Visible = (Estatus == 1);
|
LnkConceptoEmpleado.Visible = (Estatus == 1);
|
||||||
LnkRegistrarProvision.Visible = (Estatus >= 2) && CvePrePolizaProvision <= 0;
|
LnkRegistrarProvision.Visible = (Estatus >= 2);// && CvePrePolizaProvision <= 0;
|
||||||
LnkConceptoEmpleado.Visible = (Estatus < 2);
|
LnkConceptoEmpleado.Visible = (Estatus < 2);
|
||||||
LnkCargaAsistenciaMasiva.Visible = (Estatus < 2);
|
LnkCargaAsistenciaMasiva.Visible = (Estatus < 2);
|
||||||
LnkModalPlantillaNomina.Visible = (Estatus < 2);
|
LnkModalPlantillaNomina.Visible = (Estatus < 2);
|
||||||
@@ -1101,12 +1101,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
{
|
{
|
||||||
Nom.IniciaTransacSQL();
|
Nom.IniciaTransacSQL();
|
||||||
//AutorizaNom_Nominas
|
//AutorizaNom_Nominas
|
||||||
if (continuar && (continuar=Nom.RemoveNom_Nominas(Cve)))
|
if (continuar && (continuar = Nom.RemoveNom_Nominas(Cve)))
|
||||||
{
|
{
|
||||||
Alert("Los movimientos de la nómina fueron eliminados", TipoMensaje.MsgInformacion); cargaDatos();
|
Alert("Los movimientos de la nómina fueron eliminados", TipoMensaje.MsgInformacion); cargaDatos();
|
||||||
Nom.Commit();
|
Nom.Commit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void LnkCancelar_Click(object sender, EventArgs e)
|
protected void LnkCancelar_Click(object sender, EventArgs e)
|
||||||
@@ -1634,7 +1634,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
{
|
{
|
||||||
using (ClsNominas onom = new ClsNominas())
|
using (ClsNominas onom = new ClsNominas())
|
||||||
{
|
{
|
||||||
if (continuar=onom.DeleteNom_NominasDetalles(SRCveConcepto, SRCvePersonal, CvePeriodoSeleccionado))
|
if (continuar = onom.DeleteNom_NominasDetalles(SRCveConcepto, SRCvePersonal, CvePeriodoSeleccionado))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2404,7 +2404,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
bool isEditedD = e.Row.DataKey("isEditedD").ToEntero() > 0;
|
bool isEditedD = e.Row.DataKey("isEditedD").ToEntero() > 0;
|
||||||
bool isSavedP = e.Row.DataKey("isSavedP").ToEntero() > 0;
|
bool isSavedP = e.Row.DataKey("isSavedP").ToEntero() > 0;
|
||||||
bool isSavedD = e.Row.DataKey("isSavedD").ToEntero() > 0;
|
bool isSavedD = e.Row.DataKey("isSavedD").ToEntero() > 0;
|
||||||
|
|
||||||
//isEditedD
|
//isEditedD
|
||||||
// Controles
|
// Controles
|
||||||
Label LtlConcepto = e.Row.FCLabel("LtlConcepto");
|
Label LtlConcepto = e.Row.FCLabel("LtlConcepto");
|
||||||
@@ -4509,10 +4509,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
decimal montoLimite = TxtMontoLimite.Text.ToDecimal();
|
decimal montoLimite = TxtMontoLimite.Text.ToDecimal();
|
||||||
string fechaInicioAplicacion = TxtFechaAplicacion.Text.ToDate().ToString("yyyy/MM/dd");
|
string fechaInicioAplicacion = TxtFechaAplicacion.Text.ToDate().ToString("yyyy/MM/dd");
|
||||||
bool estatus = ChkEstatus.Checked;
|
bool estatus = ChkEstatus.Checked;
|
||||||
|
int CveCuenta =DdlCtaContable.SelectedValue.ToEntero();
|
||||||
bool Continuar;
|
bool Continuar;
|
||||||
using (ClsNominas ObjMovt = new ClsNominas())
|
using (ClsNominas ObjMovt = new ClsNominas())
|
||||||
{
|
{
|
||||||
Continuar = ObjMovt.AddMovtoPermanente(cveConcepto, SRCvePersonal, descripcion, tipoDescuento, valor, vecesAplicar, montoLimite, fechaInicioAplicacion, estatus);
|
Continuar = ObjMovt.AddMovtoPermanente(cveConcepto, SRCvePersonal, descripcion, tipoDescuento, valor, vecesAplicar, montoLimite, fechaInicioAplicacion, estatus, CveCuenta);
|
||||||
|
|
||||||
}
|
}
|
||||||
if (Continuar)
|
if (Continuar)
|
||||||
@@ -4520,7 +4521,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
this.RegistraScript("$('#DModalMovtoPermanente').modal('hide');");
|
this.RegistraScript("$('#DModalMovtoPermanente').modal('hide');");
|
||||||
CargaMovtoPermanente();
|
CargaMovtoPermanente();
|
||||||
UpMovtosPermanentes.Update();
|
UpMovtosPermanentes.Update();
|
||||||
this.Alert("El Movto_Permanente Se ha agregado");
|
this.Alert("Se ha agregado el movimiento permanente");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -4535,10 +4536,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
decimal montoLimite = TxtMontoLimite.Text.ToDecimal();
|
decimal montoLimite = TxtMontoLimite.Text.ToDecimal();
|
||||||
string fechaInicioAplicacion = TxtFechaAplicacion.Text.ToDate().ToString("yyyy/MM/dd");
|
string fechaInicioAplicacion = TxtFechaAplicacion.Text.ToDate().ToString("yyyy/MM/dd");
|
||||||
bool estatus = ChkEstatus.Checked;
|
bool estatus = ChkEstatus.Checked;
|
||||||
|
int CveCuenta = DdlCtaContable.SelectedValue.ToEntero();
|
||||||
bool Continuar;
|
bool Continuar;
|
||||||
using (ClsNominas ObjMovt = new ClsNominas())
|
using (ClsNominas ObjMovt = new ClsNominas())
|
||||||
{
|
{
|
||||||
Continuar = ObjMovt.UpMovtoPermanente(CcveMovtoPermanente, cveConcepto, SRCvePersonal, descripcion, tipoDescuento, valor, vecesAplicar, montoLimite, fechaInicioAplicacion, estatus);
|
Continuar = ObjMovt.UpMovtoPermanente(CcveMovtoPermanente, cveConcepto, SRCvePersonal, descripcion, tipoDescuento, valor, vecesAplicar, montoLimite, fechaInicioAplicacion, estatus, CveCuenta);
|
||||||
|
|
||||||
}
|
}
|
||||||
if (Continuar)
|
if (Continuar)
|
||||||
@@ -4546,7 +4548,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
this.RegistraScript("$('#DModalMovtoPermanente').modal('hide');");
|
this.RegistraScript("$('#DModalMovtoPermanente').modal('hide');");
|
||||||
CargaMovtoPermanente();
|
CargaMovtoPermanente();
|
||||||
UpMovtosPermanentes.Update();
|
UpMovtosPermanentes.Update();
|
||||||
this.Alert("El Movto_Permanente Se ha agregado");
|
this.Alert("Se ha actualizado el movimiento permanente");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -4564,6 +4566,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
CcveMovtoPermanente = gvRow.DataKey("CveMovtoPermanente").ToEntero();
|
CcveMovtoPermanente = gvRow.DataKey("CveMovtoPermanente").ToEntero();
|
||||||
int cveConcepto = gvRow.DataKey("CveConcepto").ToEntero();
|
int cveConcepto = gvRow.DataKey("CveConcepto").ToEntero();
|
||||||
int cvePersonal = gvRow.DataKey("CvePersonal").ToEntero();
|
int cvePersonal = gvRow.DataKey("CvePersonal").ToEntero();
|
||||||
|
int CveCuenta = gvRow.DataKey("CveCuenta").ToEntero();
|
||||||
string descripcion = gvRow.DataKey("Descripcion");
|
string descripcion = gvRow.DataKey("Descripcion");
|
||||||
int tipoDescuento = gvRow.DataKey("TipoDescuento").ToEntero();
|
int tipoDescuento = gvRow.DataKey("TipoDescuento").ToEntero();
|
||||||
double valor = gvRow.DataKey("Valor").ToDouble();
|
double valor = gvRow.DataKey("Valor").ToDouble();
|
||||||
@@ -4590,6 +4593,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
TxtVecesAplicar.Text = vecesAplicar.ToString();
|
TxtVecesAplicar.Text = vecesAplicar.ToString();
|
||||||
TxtMontoLimite.Text = montoLimite.ToString();
|
TxtMontoLimite.Text = montoLimite.ToString();
|
||||||
TxtFechaAplicacion.Text = $"{fechaInicioAplicacion:dd/MM/yyyy}";
|
TxtFechaAplicacion.Text = $"{fechaInicioAplicacion:dd/MM/yyyy}";
|
||||||
|
DdlCtaContable.SelectedValueExist("-1");
|
||||||
|
DdlCtaContable.SelectedValueExist(CveCuenta);
|
||||||
ChkEstatus.Checked = estatus;
|
ChkEstatus.Checked = estatus;
|
||||||
this.RegistraScript("$('#DModalMovtoPermanente').modal();");
|
this.RegistraScript("$('#DModalMovtoPermanente').modal();");
|
||||||
|
|
||||||
@@ -6183,16 +6188,65 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
{
|
{
|
||||||
using (ClsNominas objnom = new ClsNominas())
|
using (ClsNominas objnom = new ClsNominas())
|
||||||
{
|
{
|
||||||
if (objnom.Autorizaperiodoconta(CvePeriodoSeleccionado, UsuarioActual.CveEmpresa))
|
if (objnom.RegistraProvision(CvePeriodoSeleccionado, UsuarioActual.CveEmpresa))
|
||||||
{
|
{
|
||||||
int CvePrePolizaProvision = 0; int CvePrePolizaasmilidos = 0;
|
int CvePrePolizaProvision = 0; int CvePrePolizaasmilidos = 0;
|
||||||
if (objnom.DtResultados.Rows.Count > 0)
|
if (objnom.DTSetResultados.Tables.Count > 1 && objnom.DTSetResultados.Tables[1].Rows.Count == 0)
|
||||||
{
|
{
|
||||||
CvePrePolizaProvision = objnom.DtResultados.Rows[0]["CvePrePoliza"].ToString().ToEntero();
|
|
||||||
CvePrePolizaasmilidos = objnom.DtResultados.Rows[0]["CvePrePolizaAsimilables"].ToString().ToEntero();
|
if (objnom.DtResultados.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
CvePrePolizaProvision = objnom.DtResultados.Rows[0]["CvePrePoliza"].ToString().ToEntero();
|
||||||
|
CvePrePolizaasmilidos = objnom.DtResultados.Rows[0]["CvePrePolizaAsimilables"].ToString().ToEntero();
|
||||||
|
}
|
||||||
|
string mensaje = string.Format("La provision a sido autorizada.<br/><a href=\"../Contabilidad/RegPrePoliza.aspx?CvePrePoliza={0}&Tipo=NOMPROV\">Provision </a><br/>", CvePrePolizaProvision );
|
||||||
|
if (CvePrePolizaasmilidos>0)
|
||||||
|
{
|
||||||
|
mensaje = string.Format("{0} <a href=\"../Contabilidad/RegPrePoliza.aspx?CvePrePoliza={1}&Tipo=NOMPROV\"> Asimilados</a>", mensaje, CvePrePolizaasmilidos);
|
||||||
|
|
||||||
|
}
|
||||||
|
Alert(mensaje);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (objnom.DTSetResultados.Tables.Count > 1)
|
||||||
|
{
|
||||||
|
StringBuilder str = new StringBuilder();
|
||||||
|
str.Append("<table>");
|
||||||
|
str.Append("<tbody>");
|
||||||
|
//ConceptoContable ConceptoNomina CodigoNombreCompleto
|
||||||
|
|
||||||
|
str.Append("<tr>");
|
||||||
|
str.Append("<th>");
|
||||||
|
str.Append("Concepto Contable");
|
||||||
|
str.Append("</th>");
|
||||||
|
str.Append("<th>");
|
||||||
|
str.Append("Concepto Nomina");
|
||||||
|
str.Append("</th>");
|
||||||
|
str.Append("<th>");
|
||||||
|
str.Append("Personal");
|
||||||
|
str.Append("</th>");
|
||||||
|
str.Append("</tr>");
|
||||||
|
foreach (DataRow item in objnom.DTSetResultados.Tables[1].Rows)
|
||||||
|
{
|
||||||
|
|
||||||
|
str.Append("<tr>");
|
||||||
|
str.Append("<td>");
|
||||||
|
str.Append(item["ConceptoContable"]);
|
||||||
|
str.Append("</td>");
|
||||||
|
str.Append("<td>");
|
||||||
|
str.Append(item["ConceptoNomina"]);
|
||||||
|
str.Append("</td>");
|
||||||
|
str.Append("<td>");
|
||||||
|
str.Append(item["CodigoNombreCompleto"]);
|
||||||
|
str.Append("</td>");
|
||||||
|
str.Append("</tr>");
|
||||||
|
}
|
||||||
|
str.Append("</tbody>");
|
||||||
|
str.Append("</table>");
|
||||||
|
Alert(string.Format("<div>no se pudo registrar la provisión, existen cuentas sin vincular.</div> {0}", str));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
string mensaje = string.Format("La provision a sido autorizada.<br/><a href=\"../Contabilidad/RegPrePoliza.aspx?CvePrePoliza={0}&Tipo=NOMPROV\">Provision </a><br/><a href=\"../Contabilidad/RegPrePoliza.aspx?CvePrePoliza={0}&Tipo=NOMPROV\"> Asimilados</a>", CvePrePolizaProvision, CvePrePolizaasmilidos);
|
|
||||||
Alert(mensaje);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6306,7 +6360,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
|
|
||||||
using (ClsNominas objnom = new ClsNominas())
|
using (ClsNominas objnom = new ClsNominas())
|
||||||
{
|
{
|
||||||
if (objnom.GetDispersiondenomina(CvePeriodoSeleccionado, UsuarioActual.CveEmpresa))
|
if (objnom.GetDispersionnomina(CvePeriodoSeleccionado, UsuarioActual.CveEmpresa))
|
||||||
{
|
{
|
||||||
CrearLayout(objnom.DtResultados);
|
CrearLayout(objnom.DtResultados);
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
2859
Nomina/Nomina2.aspx
2859
Nomina/Nomina2.aspx
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -2706,17 +2706,22 @@ Partial Class OC
|
|||||||
'UPDATE'
|
'UPDATE'
|
||||||
ElseIf CveOrdenCompra > 0 Then
|
ElseIf CveOrdenCompra > 0 Then
|
||||||
Dim FueModificada As Boolean = False
|
Dim FueModificada As Boolean = False
|
||||||
|
Dim Proveedor As String = ""
|
||||||
'siempre se esta guardando el proveedor
|
'siempre se esta guardando el proveedor
|
||||||
If Not ChkCotizacion.Checked OrElse (UsuarioActual.Empresa.Funcionalidad(565) = "1" AndAlso CveConfianzaProveedor > 0) Then
|
If Not ChkCotizacion.Checked OrElse (UsuarioActual.Empresa.Funcionalidad(565) = "1" AndAlso CveConfianzaProveedor > 0) Then
|
||||||
CveProveedor = DdlProveedores.SelectedValue.ToEntero
|
CveProveedor = DdlProveedores.SelectedValue.ToEntero
|
||||||
|
Proveedor = DdlProveedores.SelectedText.ToString
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not OC.UpdateOrdenCompra(-1, TxtDescrip.Text, TxtJustificacion.Text, DdlPrioridad.SelectedValue.ToEntero, ChkCotizacion.Checked, If(TxtFechaEstimadaEntrega.Text.Trim = "", "-1", TxtFechaEstimadaEntrega.Text.Trim),
|
If OC.UpdateOrdenCompra(-1, TxtDescrip.Text, TxtJustificacion.Text, DdlPrioridad.SelectedValue.ToEntero, ChkCotizacion.Checked, If(TxtFechaEstimadaEntrega.Text.Trim = "", "-1", TxtFechaEstimadaEntrega.Text.Trim),
|
||||||
LugarEntrega, DdlMoneda.SelectedValue.ToEntero, CveProveedor, CveOrdenCompra, UsuarioActual.CveUsuario, Ddlcliente.txtValue.Value.ToEntero,
|
LugarEntrega, DdlMoneda.SelectedValue.ToEntero, CveProveedor, CveOrdenCompra, UsuarioActual.CveUsuario, Ddlcliente.txtValue.Value.ToEntero,
|
||||||
DdlVendedor.SelectedValue.ToEntero, txtobsprioridad.Text, IVA:=IVA, RetIVA:=TxtRetIVA.Text.ToDecimal, RetISR:=TxtRetISR.Text.ToDecimal, FolioAdicional:=TxtFolioAdicional.Text, EntregaDirecta:=If(ChkEntregaDirecta.Checked, 1, -1), CveDireccionEnvio:=If(DdlDireccionEnvio.Visible, DdlDireccionEnvio.SelectedValue.ToEntero, -1),
|
DdlVendedor.SelectedValue.ToEntero, txtobsprioridad.Text, IVA:=IVA, RetIVA:=TxtRetIVA.Text.ToDecimal, RetISR:=TxtRetISR.Text.ToDecimal, FolioAdicional:=TxtFolioAdicional.Text, EntregaDirecta:=If(ChkEntregaDirecta.Checked, 1, -1), CveDireccionEnvio:=If(DdlDireccionEnvio.Visible, DdlDireccionEnvio.SelectedValue.ToEntero, -1),
|
||||||
Guia:=TxtGuia.Text.Trim, IEPS:=TxtIEPS.Text.ToDecimal, UsoCFDI:=DdlUsoCFDI.SelectedValue.ToEntero, Promocion:=Promocion, pCveProveedorSucursal:=DdlProveedorSucursal.SelectedValue.ToEntero, CveProveedorContacto:=CveProveedorContacto,
|
Guia:=TxtGuia.Text.Trim, IEPS:=TxtIEPS.Text.ToDecimal, UsoCFDI:=DdlUsoCFDI.SelectedValue.ToEntero, Promocion:=Promocion, pCveProveedorSucursal:=DdlProveedorSucursal.SelectedValue.ToEntero, CveProveedorContacto:=CveProveedorContacto,
|
||||||
PorcentajeIVA:=Math.Round(DdlIVA.SelectedValue.ToDouble - 1, 2)) Then
|
PorcentajeIVA:=Math.Round(DdlIVA.SelectedValue.ToDouble - 1, 2)) Then
|
||||||
|
If Not ObjConta.UpdateProveedorPoliza(CveOrdenCompra, CveProveedor, Proveedor) Then
|
||||||
|
TieneError = True
|
||||||
|
End If
|
||||||
|
Else
|
||||||
TieneError = True
|
TieneError = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -320,7 +320,7 @@ Partial Class Site
|
|||||||
Dim ClassActive As String
|
Dim ClassActive As String
|
||||||
CveModuloPadreSeleccionado = 0 : CveModuloHijoSeleccionado = 0 : CveModuloNietoSeleccionado = 0
|
CveModuloPadreSeleccionado = 0 : CveModuloHijoSeleccionado = 0 : CveModuloNietoSeleccionado = 0
|
||||||
|
|
||||||
Dim strdomain = Request.Url.AbsoluteUri.Replace(Request.Url.PathAndQuery, "")
|
Dim strdomain = Request.Url.AbsoluteUri.Replace(Request.Url.PathAndQuery, "").Replace("https://", "http://")
|
||||||
If Request.Url.Port <> 80 Then
|
If Request.Url.Port <> 80 Then
|
||||||
strdomain = strdomain.Replace(String.Format(":{0}", Request.Url.Port), "")
|
strdomain = strdomain.Replace(String.Format(":{0}", Request.Url.Port), "")
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -645,7 +645,9 @@ Partial Class Ventas_RepVentas
|
|||||||
Private Sub GenerarPDF(Optional Formato As String = "PDF")
|
Private Sub GenerarPDF(Optional Formato As String = "PDF")
|
||||||
If DtVentas IsNot Nothing Then
|
If DtVentas IsNot Nothing Then
|
||||||
Dim StrFiltro As New StringBuilder
|
Dim StrFiltro As New StringBuilder
|
||||||
StrFiltro.AppendFormat(" <b>Agrupado por</b>: {0}", DdlGrupo.SelectedItem.Text)
|
StrFiltro.AppendFormat(" <b>Agrupado por</b>: {0}", DdlGrupo.SelectedItem.Text)
|
||||||
|
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/RepVentas.rdlc", UsuarioActual.Empresa.Ruta))
|
||||||
|
Dim ruta As String = ""
|
||||||
|
|
||||||
If DdlTipoComprobante.GetSelectedText <> "" Then StrFiltro.AppendFormat(" <b>Tipo Documento</b>: {0}", DdlTipoComprobante.GetSelectedText)
|
If DdlTipoComprobante.GetSelectedText <> "" Then StrFiltro.AppendFormat(" <b>Tipo Documento</b>: {0}", DdlTipoComprobante.GetSelectedText)
|
||||||
If txtFechaI.Text <> "" Then StrFiltro.AppendFormat(" <b>Fecha Inicio </b>: {0}", txtFechaI.Text.ToDate.ToShortDateString)
|
If txtFechaI.Text <> "" Then StrFiltro.AppendFormat(" <b>Fecha Inicio </b>: {0}", txtFechaI.Text.ToDate.ToShortDateString)
|
||||||
@@ -653,7 +655,7 @@ Partial Class Ventas_RepVentas
|
|||||||
|
|
||||||
If DdlProyecto.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Proyecto</b>: {0}", DdlProyecto.SelectedItem.Text)
|
If DdlProyecto.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Proyecto</b>: {0}", DdlProyecto.SelectedItem.Text)
|
||||||
If DdlSubProyecto.GetSelectedText <> "" Then StrFiltro.AppendFormat(" <b>SubProyecto</b>: {0}", DdlSubProyecto.GetSelectedText)
|
If DdlSubProyecto.GetSelectedText <> "" Then StrFiltro.AppendFormat(" <b>SubProyecto</b>: {0}", DdlSubProyecto.GetSelectedText)
|
||||||
If DdlClientes.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Cliente</b>: {0}", DdlClientes.SelectedText)
|
If DdlClientes.SelectedValue <> "" Then StrFiltro.AppendFormat(" <b>Cliente</b>: {0}", DdlClientes.SelectedText)
|
||||||
If DdlVendedor.GetSelectedText <> "" Then StrFiltro.AppendFormat(" <b>Vendedor</b>: {0}", DdlVendedor.GetSelectedText)
|
If DdlVendedor.GetSelectedText <> "" Then StrFiltro.AppendFormat(" <b>Vendedor</b>: {0}", DdlVendedor.GetSelectedText)
|
||||||
If DdlEstatus.GetSelectedText <> "" Then StrFiltro.AppendFormat(" <b>Estatus</b>: {0}", DdlEstatus.GetSelectedText)
|
If DdlEstatus.GetSelectedText <> "" Then StrFiltro.AppendFormat(" <b>Estatus</b>: {0}", DdlEstatus.GetSelectedText)
|
||||||
If DdlSubProyectoEjecucion.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Proyecto Ejecución</b>: {0}", DdlSubProyectoEjecucion.SelectedItem.Text)
|
If DdlSubProyectoEjecucion.SelectedValue <> "-1" Then StrFiltro.AppendFormat(" <b>Proyecto Ejecución</b>: {0}", DdlSubProyectoEjecucion.SelectedItem.Text)
|
||||||
@@ -682,8 +684,15 @@ Partial Class Ventas_RepVentas
|
|||||||
params.Add(New ReportParameter("LogoPath", logouri))
|
params.Add(New ReportParameter("LogoPath", logouri))
|
||||||
Else
|
Else
|
||||||
params.Add(New ReportParameter("LogoPath", ""))
|
params.Add(New ReportParameter("LogoPath", ""))
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Archivo.Exists Then
|
||||||
|
ruta = UsuarioActual.Empresa.Ruta & "Formatos/RepVentas.rdlc"
|
||||||
|
Else
|
||||||
|
ruta = "Empresas/Grales/Formatos/RepVentas.rdlc"
|
||||||
End If
|
End If
|
||||||
ImprimirPDF("Empresas/Grales/Formatos/RepVentas.rdlc", dt, params, String.Format("ReporteVentas-{0}", Now.ToDateTime.ToShortDateString), Formato:=Formato)
|
|
||||||
|
ImprimirPDF(ruta, dt, params, String.Format("ReporteVentas-{0}", Now.ToDateTime.ToShortDateString), Formato:=Formato)
|
||||||
Else
|
Else
|
||||||
Alert("No hay datos consultados", TipoMensaje.MsgAdvertencia)
|
Alert("No hay datos consultados", TipoMensaje.MsgAdvertencia)
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -250,6 +250,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user