Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -228,7 +228,8 @@ Partial Class AF_CatClasificacionesCaracteristicas
|
||||
TxtLongitudCA.Text = ""
|
||||
Alert("La Nueva Característica de Activo Fijo se guardó correctamente.", TipoMensaje.MsgInformacion)
|
||||
UpTitulosCA.Update()
|
||||
GlobalDTAFCaracteristicas(UsuarioActual.CveEmpresa) = Nothing
|
||||
ViewState("DTCatacteristica") = ObjCaracteristicas.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
||||
|
||||
|
||||
CargaSubTiposActivosFijos()
|
||||
''CargaCaracteristicasClasificaciones()
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
Imports System.Data
|
||||
Imports System.Data.SqlClient
|
||||
Imports ADSNetLibrary.SIGAPI.Models
|
||||
Imports Extensiones
|
||||
Imports HigLabo
|
||||
|
||||
@@ -1356,7 +1357,8 @@ Public Class ClsNominas
|
||||
|
||||
Public Function AddConcepto(Codigo As String, Concepto As String, Tipo As String, Formula As String, Sistema As Boolean, Estado As Boolean, CveConceptoPadre As Integer, CveUsuario As Integer, CveEmpresa As Integer,
|
||||
EsRetencion As Boolean, CveClasificacion As Integer, IdCtaContable As Integer, CveTipoGasto As Integer, TipoCalculo As Boolean, CveConceptoContable As Integer,
|
||||
AplicaFiniquito As Integer, AutomaticoGlobal As Integer, Especie As Integer, Imprimir As Integer, CveSATConcepto As Integer) As Integer
|
||||
AplicaFiniquito As Integer, AutomaticoGlobal As Integer, Especie As Integer, Imprimir As Integer, CveSATConcepto As Integer,
|
||||
ctaImporteNegativoProv As Integer, contabiliza As Integer, CargoOAbono As Integer, cveConceptoContableB As Integer, IdCtaContableB As Integer, CveCuentaB As Integer) As Integer
|
||||
Dim Retorno As Integer = -1
|
||||
|
||||
DataAdapter("PA_Nom_ConceptosAdd")
|
||||
@@ -1383,6 +1385,14 @@ Public Class ClsNominas
|
||||
.Add("Especie", SqlDbType.Bit).Value = Especie
|
||||
.Add("Imprimir", SqlDbType.Bit).Value = Imprimir
|
||||
.Add("CveSATConcepto", SqlDbType.Int).Value = CveSATConcepto
|
||||
|
||||
.Add("CtaImporteNegativoProv", SqlDbType.Int).Value = ctaImporteNegativoProv
|
||||
.Add("Contabiliza", SqlDbType.Int).Value = contabiliza
|
||||
.Add("CargoOAbono", SqlDbType.Int).Value = CargoOAbono
|
||||
.Add("CveConceptoContableB", SqlDbType.Int).Value = cveConceptoContableB
|
||||
.Add("IdCtaContableB", SqlDbType.Int).Value = IdCtaContableB
|
||||
.Add("CveCuentaB", SqlDbType.Int).Value = CveCuentaB
|
||||
|
||||
End With
|
||||
|
||||
Try
|
||||
@@ -1407,7 +1417,8 @@ Public Class ClsNominas
|
||||
|
||||
Public Function UpdateConcepto(Codigo As String, Concepto As String, Tipo As String, Formula As String, Sistema As Boolean, Estado As Boolean, CveConceptoPadre As Integer, CveConcepto As Integer,
|
||||
EsRetencion As Boolean, CveClasificacion As Integer, IdCtaContable As Integer, CveTipoGasto As Integer, TipoCalculo As Boolean, CveConceptoContable As Integer,
|
||||
AplicaFiniquito As Integer, AutomaticoGlobal As Integer, Especie As Integer, Imprimir As Integer, CveSATConcepto As Integer, CveEmpresa As Integer) As Boolean
|
||||
AplicaFiniquito As Integer, AutomaticoGlobal As Integer, Especie As Integer, Imprimir As Integer, CveSATConcepto As Integer, CveEmpresa As Integer,
|
||||
ctaImporteNegativoProv As Integer, contabiliza As Integer, CargoOAbono As Integer, cveConceptoContableB As Integer, IdCtaContableB As Integer, CveCuentaB As Integer) As Boolean
|
||||
Dim Retorno As Boolean = False
|
||||
|
||||
DataAdapter("PA_Nom_ConceptosUpdate")
|
||||
@@ -1433,6 +1444,13 @@ Public Class ClsNominas
|
||||
.Add("Imprimir", SqlDbType.Bit).Value = Imprimir
|
||||
.Add("CveSATConcepto", SqlDbType.Int).Value = CveSATConcepto
|
||||
.Add("CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||
|
||||
.Add("CtaImporteNegativoProv", SqlDbType.Int).Value = ctaImporteNegativoProv
|
||||
.Add("Contabiliza", SqlDbType.Int).Value = contabiliza
|
||||
.Add("CargoOAbono", SqlDbType.Int).Value = CargoOAbono
|
||||
.Add("CveConceptoContableB", SqlDbType.Int).Value = cveConceptoContableB
|
||||
.Add("IdCtaContableB", SqlDbType.Int).Value = IdCtaContableB
|
||||
.Add("CveCuentaB", SqlDbType.Int).Value = CveCuentaB
|
||||
End With
|
||||
|
||||
Try
|
||||
|
||||
@@ -3520,9 +3520,12 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo
|
||||
#End Region
|
||||
|
||||
#Region "ClsRHTurnos"
|
||||
Public Function GetTurnos() As Boolean
|
||||
Public Function GetTurnos(Optional CveEmpresa As Integer = -1) As Boolean
|
||||
Dim Retorno As Boolean = False
|
||||
DataAdapter("PA_RH_TurnoGet")
|
||||
With SqlAdapter.SelectCommand.Parameters
|
||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||
End With
|
||||
Try
|
||||
SqlAdapter.Fill(Data)
|
||||
Retorno = True
|
||||
@@ -3533,7 +3536,8 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo
|
||||
Return Retorno
|
||||
End Function
|
||||
Public Function AddTurno(Turno As String, HorarioDe As String, HorarioA As String, CveUsuario As Integer, CveEmpresa As Integer, CveChecadorHorario As Integer,
|
||||
ToleranciaERetardo As Integer, ToleranciaEFalta As Integer, ToleranciaSRetardo As Integer, ToleranciaSFalta As Integer) As Boolean
|
||||
ToleranciaERetardo As Integer, ToleranciaEFalta As Integer, ToleranciaSRetardo As Integer, ToleranciaSFalta As Integer,
|
||||
Comida As Integer, ComidaDe As String, ComidaA As String) As Boolean
|
||||
|
||||
Dim Retorno As Boolean = False
|
||||
|
||||
@@ -3543,6 +3547,11 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo
|
||||
.Add("@Turno", SqlDbType.VarChar).Value = Turno
|
||||
.Add("@HorarioDe", SqlDbType.Time).Value = HorarioDe
|
||||
.Add("@HorarioA", SqlDbType.Time).Value = HorarioA
|
||||
|
||||
.Add("@Comida", SqlDbType.Int).Value = Comida
|
||||
.Add("@ComidaDe", SqlDbType.Time).Value = ComidaDe
|
||||
.Add("@ComidaA", SqlDbType.Time).Value = ComidaA
|
||||
|
||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||
.Add("@CveChecadorHorario", SqlDbType.Int).Value = CveChecadorHorario
|
||||
@@ -3568,7 +3577,8 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo
|
||||
Return Retorno
|
||||
End Function
|
||||
Public Function UpdateTurno(Turno As String, HorarioDe As String, HorarioA As String, Estatus As Boolean, CveTurno As Integer, CveUsuario As Integer, CveChecadorHorario As Integer,
|
||||
ToleranciaERetardo As Integer, ToleranciaEFalta As Integer, ToleranciaSRetardo As Integer, ToleranciaSFalta As Integer) As Boolean
|
||||
ToleranciaERetardo As Integer, ToleranciaEFalta As Integer, ToleranciaSRetardo As Integer, ToleranciaSFalta As Integer,
|
||||
Comida As Integer, ComidaDe As String, ComidaA As String) As Boolean
|
||||
|
||||
Dim Retorno As Boolean = False
|
||||
|
||||
@@ -3578,6 +3588,11 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo
|
||||
.Add("@Turno", SqlDbType.VarChar).Value = Turno
|
||||
.Add("@HorarioDe", SqlDbType.Time).Value = HorarioDe
|
||||
.Add("@HorarioA", SqlDbType.Time).Value = HorarioA
|
||||
|
||||
.Add("@Comida", SqlDbType.Int).Value = Comida
|
||||
.Add("@ComidaDe", SqlDbType.Time).Value = ComidaDe
|
||||
.Add("@ComidaA", SqlDbType.Time).Value = ComidaA
|
||||
|
||||
.Add("@Estatus", SqlDbType.Bit).Value = Estatus
|
||||
.Add("@CveTurno", SqlDbType.Int).Value = CveTurno
|
||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||
|
||||
@@ -321,8 +321,6 @@ Partial Class Bancos_Transferencias
|
||||
Dim IDCtaContableComplementariaDestino As Integer = 0
|
||||
Dim IdCtaContableDestino As Integer = 0
|
||||
Dim CuentasContablesInvalidasSIG As New StringBuilder
|
||||
Dim CveCuentaOrigen As Integer = 0
|
||||
Dim CveCuentaDestino As Integer = 0
|
||||
Dim RowCuentaOrigen As DataRow = Nothing
|
||||
|
||||
|
||||
@@ -347,18 +345,8 @@ Partial Class Bancos_Transferencias
|
||||
CuentasContablesInvalidas.Append("<br> Cuenta Contable Destino")
|
||||
End If
|
||||
|
||||
'Conta SIG
|
||||
If CveCuentaOrigen < 1 Then
|
||||
CuentasContablesInvalidasSIG.Append("<br> Cuenta Contable Origen")
|
||||
End If
|
||||
|
||||
If CveCuentaDestino < 1 Then
|
||||
CuentasContablesInvalidasSIG.Append("<br> Cuenta Contable Destino")
|
||||
End If
|
||||
|
||||
If Opcion = 1 Then ' CUANDO ES DOMICILIZACION
|
||||
IdCtaContableOrigen = IdCtaContableDestino
|
||||
CveCuentaOrigen = CveCuentaDestino
|
||||
End If
|
||||
|
||||
Dim TipoMovtoDetalle As Boolean = True
|
||||
@@ -369,7 +357,6 @@ Partial Class Bancos_Transferencias
|
||||
TxtImporte.Text.ToDouble, $"Transferencia entre cuentas {TxtObservaciones.Text}", 30, $"Transferencia entre cuentas {TxtObservaciones.Text}", Now, IdCtaContableOrigen, -1, CveIE,
|
||||
ImporteMX:=If(Not UsuarioActual.CveEmpresa.Contiene(13, 83), TxtImporte.Text.ToDouble, ImporteMXOrigen),
|
||||
ImporteME:=If(CveMonedaOrigen > 1, TxtImporte.Text.ToDouble * TC, 0),
|
||||
CveCuenta:=CveCuentaOrigen,
|
||||
CveIEDevolucion:=CveIEDevolucion) Then
|
||||
|
||||
If CveMonedaOrigen > 1 AndAlso Not UsuarioActual.CveEmpresa.Contiene(13, 83) Then
|
||||
@@ -401,7 +388,7 @@ Partial Class Bancos_Transferencias
|
||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovtoDetalle,
|
||||
ImporteDestino, $"Transferencia entre cuentas {TxtObservaciones.Text}", 30, $"Transferencia entre cuentas {TxtObservaciones.Text}", Now, IdCtaContableDestino, -1, CveIEDestino,
|
||||
ImporteMX:=If(Not UsuarioActual.CveEmpresa.Contiene(13, 83), ImporteDestino, ImporteMXDestino),
|
||||
ImporteME:=If(CveMonedaDestino > 1, ImporteDestino, 0), CveCuenta:=CveCuentaDestino) Then
|
||||
ImporteME:=If(CveMonedaDestino > 1, ImporteDestino, 0)) Then
|
||||
MsgError = "Ocurrio un error al ingresar la prepoliza"
|
||||
End If
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ Partial Class MovimientosconProveedores
|
||||
End Property
|
||||
Private Property CveSubProyecto As Integer
|
||||
Get
|
||||
CveSubProyecto = CType(ViewState("CveSubProyecto"), Integer)
|
||||
CveSubProyecto = ViewState("CveSubProyecto").ToString
|
||||
End Get
|
||||
Set(value As Integer)
|
||||
ViewState("CveSubProyecto") = value
|
||||
@@ -108,7 +108,7 @@ Partial Class MovimientosconProveedores
|
||||
End If
|
||||
|
||||
If Request("CveSubProyecto") IsNot Nothing AndAlso IsNumeric(Request("CveSubProyecto")) Then
|
||||
CveSubProyecto = Request("CveSubProyecto").ToEntero
|
||||
CveSubProyecto = Request("CveSubProyecto").ToString.ToEntero
|
||||
End If
|
||||
|
||||
|
||||
@@ -184,7 +184,7 @@ Partial Class MovimientosconProveedores
|
||||
End If
|
||||
'Dim CveSubProyecto As String
|
||||
If Request("CveSubProyecto") IsNot Nothing Then
|
||||
CveSubProyecto = Request("CveSubProyecto").ToEntero
|
||||
CveSubProyecto = Request("CveSubProyecto").ToString.ToEntero
|
||||
Else
|
||||
CveSubProyecto = DdlSubproyecto.SelectedValue.ToEntero
|
||||
End If
|
||||
|
||||
@@ -173,10 +173,10 @@ Partial Class Contabilidad2_RepEstadoResultados
|
||||
TipoReporte = If(TipoReporte = -1, -1, DdlTipoReporte.SelectedValue.ToEntero)
|
||||
|
||||
'Dim ObjConta As New ClsContPAQi(UsuarioActual.Empresa)
|
||||
Dim CveSubProyecto As String = DdlSubproyecto.SelectedValue.ToString
|
||||
Dim CveSubProyecto As Integer = DdlSubproyecto.SelectedValue.ToEntero
|
||||
|
||||
Dim ObjConta As New ClsContabilidad
|
||||
If ObjConta.GetEstadoActividades(FechaI.ToDate, FechaF.ToDate, TipoReporte, CveSubProyecto.ToEntero, UsuarioActual.CveEmpresa, 0) Then
|
||||
If ObjConta.GetEstadoActividades(FechaI.ToDate, FechaF.ToDate, TipoReporte, -1, CveSubProyecto, UsuarioActual.CveEmpresa) Then
|
||||
DtDatos = ObjConta.DtResultados.FiltraParametros("(ImporteActual <> 0 OR ImporteAcumulado <> 0)")
|
||||
Else
|
||||
DtDatos = Nothing
|
||||
|
||||
@@ -99,7 +99,7 @@ public partial class Inventarios_EntregasPorRealizar : ClsPaginas
|
||||
int CvePaqueteriasGuias = row.DataKey("CvePaqueteriaGuia").ToEntero();
|
||||
int Orden = row.DataKey("Orden").ToEntero();
|
||||
|
||||
if (!ObjGeneral.AsignarEntregasPorRealizar(CvePaqueteriasGuias, CvePersonal:CvePersonal, CveAsignacionEntrega: CveAsignacionEntrega, Orden: Orden))
|
||||
if (!ObjGeneral.AsignarEntregasPorRealizar(CvePaqueteriasGuias, CvePersonal:CvePersonal, CveAsignacionEntrega: CveAsignacionEntrega ))
|
||||
{
|
||||
TieneError = true;
|
||||
break;
|
||||
|
||||
@@ -769,7 +769,7 @@ Partial Class Inventarios_RecepcionDevolucion
|
||||
ObjRemisionNC.IEPS = ImporteIEPS
|
||||
ObjRemisionNC.Total = Total
|
||||
ObjRemisionNC.TotalOtrosConceptos = 0
|
||||
ObjRemisionNC.ObservacionesMovimiento = TxtObservaciones.Text
|
||||
ObjRemisionNC.ObservacionesAlmacen = TxtObservaciones.Text
|
||||
|
||||
ObjRemisionNC.DtInventario = DtInventario
|
||||
|
||||
|
||||
@@ -38,11 +38,7 @@ Partial Class Inventarios_RepApartados2
|
||||
DdlCliente.DataBind()
|
||||
DdlCliente.Items.Insert(0, New ListItem(" Todos ", "-1"))
|
||||
|
||||
|
||||
Dim DTVendedores As New DataTable
|
||||
DTVendedores = GlobalDTVendedores(UsuarioActual.CveEmpresa, True)
|
||||
DTVendedores.Merge(GlobalDTVendedores(UsuarioActual.CveEmpresa, False))
|
||||
DdlVendedor.DataSource = DTVendedores
|
||||
DdlVendedor.DataSource = GlobalDTVendedores(UsuarioActual.CveEmpresa, -1)
|
||||
DdlVendedor.DataBind()
|
||||
DdlVendedor.Items.Insert(0, New ListItem(" Todos ", "-1"))
|
||||
|
||||
|
||||
@@ -733,7 +733,6 @@ Partial Class Inventarios_RepEntregasForaneas
|
||||
Dim Imagen As New System.IO.FileInfo($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
||||
params.Add(New ReportParameter("pImg", If(Imagen.Exists, $"file://{Imagen.FullName}", "")))
|
||||
|
||||
Dim Imagen As New System.IO.FileInfo($"{UsuarioActual.Empresa.Ruta}/Logo.png")
|
||||
Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
|
||||
|
||||
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
||||
|
||||
@@ -171,20 +171,20 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
||||
<div class="">
|
||||
<asp:Label runat="server" Text="Concepto padre" AssociatedControlID="DdlConceptoPadre"></asp:Label>
|
||||
<asp:DropDownList ID="DdlConceptoPadre" runat="server" AppendDataBoundItems="True" DataTextField="CodigoConcepto" DataValueField="CveConcepto" Class="form-control select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
||||
<asp:Label runat="server" Text="Concepto contable" AssociatedControlID="DdlConceptoContable"></asp:Label>
|
||||
<asp:DropDownList ID="DdlConceptoContable" runat="server" AppendDataBoundItems="True" DataTextField="ConceptoContable" DataValueField="CveConceptoContable" Class="form-control select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||||
<div class="">
|
||||
<asp:Label runat="server" Text="Concepto SAT" AssociatedControlID="DdlConceptoSAT"></asp:Label>
|
||||
<asp:DropDownList ID="DdlConceptoSAT" runat="server" AppendDataBoundItems="True" DataTextField="NombreClave" DataValueField="CveSATConcepto" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="row " style="display: none">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
||||
<asp:Label runat="server" Text="Clasificación" AssociatedControlID="DdlClasificacion"></asp:Label>
|
||||
@@ -199,84 +199,83 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
||||
<asp:Label runat="server" Text="Concepto SAT" AssociatedControlID="DdlConceptoSAT"></asp:Label>
|
||||
<asp:DropDownList ID="DdlConceptoSAT" runat="server" AppendDataBoundItems="True" DataTextField="NombreClave" DataValueField="CveSATConcepto" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="portlet smmallpadding light bordered" id="Div1" runat="server">
|
||||
<div class="portlet-title">
|
||||
<div class="caption uppercase " style="position: relative;">
|
||||
<i class="fa fa-info-circle font-yellow-gold"></i>
|
||||
<span class="caption-subject font-yellow-gold bold uppercase">Provisión </span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body rowpadding">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<label class=" " style="margin-top: 12px;margin-bottom: 12px;" >Contabiliza:</label><br />
|
||||
<asp:CheckBox ID="ChkContabiliza" CssClass="chksino" Text=" " runat="server" />
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
||||
<asp:Label runat="server" Text="Tipo Provisión" AssociatedControlID="DdlTipoProvision"></asp:Label>
|
||||
<asp:DropDownList ID="DdlTipoProvision" runat="server" AppendDataBoundItems="True" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Value ="1" Text="Normal" />
|
||||
<asp:ListItem Value ="2" Text="Diferente Cta. con valor negativo" />
|
||||
</asp:DropDownList>
|
||||
<asp:UpdatePanel ID="Up" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="portlet smmallpadding light bordered" id="Div1" runat="server">
|
||||
<div class="portlet-title">
|
||||
<div class="caption uppercase " style="position: relative;">
|
||||
<i class="fa fa-info-circle font-yellow-gold"></i>
|
||||
<span class="caption-subject font-yellow-gold bold uppercase">Provisión del concepto </span>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<label class=" " style="margin-top: 6px; margin-bottom: 6px;">Contabiliza:</label>
|
||||
<div class="btn-group">
|
||||
<asp:CheckBox ID="ChkContabiliza" AutoPostBack="true" CssClass="chksino" Text=" " runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6">
|
||||
<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:DropDownList ID="DdlCtaContable" runat="server" AppendDataBoundItems="True" DataTextField="CtaCodigo" DataValueField="CveCuenta" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||||
<asp:Panel class="portlet-body rowpadding" runat="server" ID="DivCtasProvision">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="">
|
||||
<asp:Label runat="server" Text="Concepto contable" AssociatedControlID="DdlConceptoContable"></asp:Label>
|
||||
<asp:DropDownList ID="DdlConceptoContable" runat="server" AppendDataBoundItems="True" DataTextField="ConceptoContable" DataValueField="CveConceptoContable" Class="form-control select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="">
|
||||
<asp:Label runat="server" Text="Cuenta contable" AssociatedControlID="DdlCtaContable"></asp:Label>
|
||||
<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-6">
|
||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
||||
<asp:Label runat="server" Text="Cargo ó Abono" AssociatedControlID="ddlCargooAbono"></asp:Label>
|
||||
<asp:DropDownList ID="ddlCargooAbono" runat="server" AppendDataBoundItems="True" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Value ="0" Text="Cargo" />
|
||||
<asp:ListItem Value ="1" Text="Abono" />
|
||||
</asp:DropDownList>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="">
|
||||
<asp:Label runat="server" Text="Cargo ó Abono" AssociatedControlID="ddlCargooAbono"></asp:Label>
|
||||
<asp:DropDownList ID="ddlCargooAbono" runat="server" AppendDataBoundItems="True" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Value="0" Text="Cargo" />
|
||||
<asp:ListItem Value="1" Text="Abono" />
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class=" " style="margin-top: 6px; margin-bottom: 6px;">Cuenta contable distinta en negativos:</label>
|
||||
<asp:CheckBox ID="chkCtaImporteNegativoProv" AutoPostBack="true" CssClass="chksino" Text=" " runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
||||
<asp:Label runat="server" Text="Cuenta contable B" AssociatedControlID="DdlCtaContableB"></asp:Label>
|
||||
<asp:DropDownList ID="DdlCtaContableB" runat="server" AppendDataBoundItems="True" DataTextField="CtaCodigo" DataValueField="CveCuenta" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<asp:Panel class="row" runat="server" ID="Divctasnegativas">
|
||||
<div class="col-md-6">
|
||||
<div class="">
|
||||
<asp:Label runat="server" Text="Concepto contable" AssociatedControlID="DdlConceptoContableB"></asp:Label>
|
||||
<asp:DropDownList ID="DdlConceptoContableB" runat="server" AppendDataBoundItems="True" DataTextField="ConceptoContable" DataValueField="CveConceptoContable" Class="form-control select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="">
|
||||
<asp:Label runat="server" Text="Cuenta contable B" AssociatedControlID="DdlCtaContableB"></asp:Label>
|
||||
<asp:DropDownList ID="DdlCtaContableB" runat="server" AppendDataBoundItems="True" DataTextField="CtaCodigo" DataValueField="CveCuenta" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<%--<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input form-md-floating-label input-iconright">
|
||||
<asp:Label runat="server" Text="Cargo ó Abono" AssociatedControlID="ddlCargooAbonoB"></asp:Label>
|
||||
<asp:DropDownList ID="ddlCargooAbonoB" runat="server" AppendDataBoundItems="True" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Value ="0" Text="Cargo" />
|
||||
<asp:ListItem Value ="1" Text="Abono" />
|
||||
<asp:ListItem Value="0" Text="Cargo" />
|
||||
<asp:ListItem Value="1" Text="Abono" />
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
</div>--%>
|
||||
</asp:Panel>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
|
||||
<div class="col-md-5">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Extensiones;
|
||||
using System;
|
||||
using System.Activities.Expressions;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
@@ -75,6 +76,8 @@ public partial class Nomina_CatConcepto : ClsPaginas
|
||||
tree_Tables();
|
||||
InicializaDatos();
|
||||
}
|
||||
DivCtasProvision.Visible = ChkContabiliza.Checked;
|
||||
Divctasnegativas.Visible = chkCtaImporteNegativoProv.Checked;
|
||||
}
|
||||
|
||||
#region Arboles conceptos
|
||||
@@ -226,6 +229,11 @@ public partial class Nomina_CatConcepto : ClsPaginas
|
||||
DdlConceptoContable.DataBind();
|
||||
DdlConceptoContable.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||
DdlConceptoContable.SelectedValueExist("-1");
|
||||
|
||||
DdlConceptoContableB.DataSource = get_GlobalDTContaConceptosContables(-1);
|
||||
DdlConceptoContableB.DataBind();
|
||||
DdlConceptoContableB.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||
DdlConceptoContableB.SelectedValueExist("-1");
|
||||
}
|
||||
protected void CargaClasificacion()
|
||||
{
|
||||
@@ -260,6 +268,7 @@ public partial class Nomina_CatConcepto : ClsPaginas
|
||||
if (UsuarioActual.Empresa.TipoContabilidad == 2)
|
||||
{
|
||||
DdlCtaContable.DataValueField = "Id";
|
||||
DdlCtaContableB.DataValueField = "Id";
|
||||
using (ClsContPAQi ObjConta = new ClsContPAQi(UsuarioActual.Empresa))
|
||||
{
|
||||
|
||||
@@ -267,11 +276,15 @@ public partial class Nomina_CatConcepto : ClsPaginas
|
||||
{
|
||||
DdlCtaContable.DataSource = ObjConta.DtResultados;
|
||||
DdlCtaContable.DataBind();
|
||||
DdlCtaContableB.DataSource = ObjConta.DtResultados;
|
||||
DdlCtaContableB.DataBind();
|
||||
}
|
||||
}
|
||||
|
||||
DdlCtaContable.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||
DdlCtaContable.SelectedValueExist("-1");
|
||||
DdlCtaContableB.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||
DdlCtaContableB.SelectedValueExist("-1");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -331,6 +344,15 @@ public partial class Nomina_CatConcepto : ClsPaginas
|
||||
int Especie = ChkEspecie.Checked ? 1 : 0;
|
||||
int Imprimir = ChkImprimir.Checked ? 1 : 0;
|
||||
int CveSATConcepto = DdlConceptoSAT.SelectedValue.ToEntero();
|
||||
|
||||
|
||||
int ctaImporteNegativoProv = (chkCtaImporteNegativoProv.Checked ? 1 : 0);
|
||||
int contabiliza = (ChkContabiliza.Checked ? 1 : 0);
|
||||
int CargoOAbono = ddlCargooAbono.SelectedValue.ToEntero();
|
||||
int cveConceptoContableB = DdlConceptoContableB.SelectedValue.ToEntero();
|
||||
int IdCtaContableB = (DdlCtaContableB.DataValueField == "Id" ? DdlCtaContableB.SelectedValue.ToEntero() : 0);
|
||||
int CveCuentaB = (DdlCtaContableB.DataValueField == "Id" ? 0 : DdlCtaContableB.SelectedValue.ToEntero());
|
||||
|
||||
ClsNominas ObjNomina = new ClsNominas();
|
||||
ObjNomina.IniciaTransacSQL();
|
||||
|
||||
@@ -338,7 +360,9 @@ public partial class Nomina_CatConcepto : ClsPaginas
|
||||
|
||||
if (EsEditar)
|
||||
{
|
||||
TieneError = !ObjNomina.UpdateConcepto(codigo, concepto, tipo, formula, sistema, estado, CveConceptoPadre, CveConcepto, retencion, CveClasificacion, IdCtaContable, CveTipoGasto, tipoCalculo, CveConceptoContable, AplicaFiniquito, AutomaticoGlobal, Especie, Imprimir, CveSATConcepto, UsuarioActual.CveEmpresa);
|
||||
TieneError = !ObjNomina.UpdateConcepto(codigo, concepto, tipo, formula, sistema, estado, CveConceptoPadre, CveConcepto, retencion, CveClasificacion,
|
||||
IdCtaContable, CveTipoGasto, tipoCalculo, CveConceptoContable, AplicaFiniquito, AutomaticoGlobal, Especie, Imprimir, CveSATConcepto,
|
||||
UsuarioActual.CveEmpresa, ctaImporteNegativoProv, contabiliza, CargoOAbono, cveConceptoContableB , IdCtaContableB , CveCuentaB);
|
||||
|
||||
if (!TieneError)
|
||||
{
|
||||
@@ -368,7 +392,9 @@ public partial class Nomina_CatConcepto : ClsPaginas
|
||||
}
|
||||
else
|
||||
{
|
||||
CveConcepto = ObjNomina.AddConcepto(codigo, concepto, tipo, formula, sistema, estado, CveConceptoPadre, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, retencion, CveClasificacion, IdCtaContable, CveTipoGasto, tipoCalculo, CveConceptoContable, AplicaFiniquito, AutomaticoGlobal, Especie, Imprimir, CveSATConcepto);
|
||||
CveConcepto = ObjNomina.AddConcepto(codigo, concepto, tipo, formula, sistema, estado, CveConceptoPadre, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa,
|
||||
retencion, CveClasificacion, IdCtaContable, CveTipoGasto, tipoCalculo, CveConceptoContable, AplicaFiniquito, AutomaticoGlobal, Especie, Imprimir,
|
||||
CveSATConcepto, ctaImporteNegativoProv, contabiliza, CargoOAbono, cveConceptoContableB, IdCtaContableB, CveCuentaB);
|
||||
|
||||
|
||||
|
||||
@@ -460,19 +486,21 @@ public partial class Nomina_CatConcepto : ClsPaginas
|
||||
if (drow["TipoCalculo"].Equals("True")) ChkTipoCalculo.Checked = true;
|
||||
DdlConceptoPadre.SelectedValueExist(drow["CveConceptoPadre"]);
|
||||
DdlConceptoContable.SelectedValueExist(drow["CveConceptoContable"]);
|
||||
DdlConceptoContableB.SelectedValueExist(drow["CveConceptoContableB"]);
|
||||
|
||||
ChkEstado.Checked = drow["Estado"].Equals("Activo");
|
||||
ChkSistema.Checked = drow["Sistema"].Equals("Sí");
|
||||
ChkAutomaticoLiquidacion.Checked = drow["AplicaFiniquito"].ToString().ToUpper().Contiene(new string[] { "1", "TRUE" });
|
||||
ChkContabiliza.Checked = drow["Contabiliza"].ToString().ToUpper().Contiene(new string[] { "1", "TRUE" });
|
||||
chkCtaImporteNegativoProv.Checked = drow["CtaImporteNegativoProv"].ToString().ToUpper().Contiene(new string[] { "1", "TRUE" });
|
||||
ChkAutomaticoGlobal.Checked = drow["AutomaticoGlobal"].ToString().ToUpper().Contiene(new string[] { "1", "TRUE" });
|
||||
ChkEspecie.Checked = drow["Especie"].ToString().ToUpper().Contiene(new string[] { "1", "TRUE" });
|
||||
ChkImprimir.Checked = drow["Imprimir"].ToString().ToUpper().Contiene(new string[] { "1", "TRUE" });
|
||||
|
||||
DdlClasificacion.SelectedValueExist(drow["CveClasificacion"]);
|
||||
DdlTipoProvision.SelectedValueExist(drow["TipoProvision"]);
|
||||
//DdlTipoProvision.SelectedValueExist(drow["TipoProvision"]);
|
||||
ddlCargooAbono.SelectedValueExist(drow["CargoOAbono"]);
|
||||
ddlCargooAbonoB.SelectedValueExist(drow["CargoOAbonoB"]);
|
||||
//ddlCargooAbonoB.SelectedValueExist(drow["CargoOAbonoB"]);
|
||||
DdlTipoGasto.SelectedValueExist(drow["CveTipoGasto"]);
|
||||
//DdlCtaContable.SelectedValueExist(drow["CveCuenta"]);
|
||||
if (DdlCtaContable.DataValueField == "Id")
|
||||
@@ -491,6 +519,10 @@ public partial class Nomina_CatConcepto : ClsPaginas
|
||||
{
|
||||
DdlCtaContableB.SelectedValueExist(drow["CveCuentaB"]);
|
||||
}
|
||||
if (ChkContabiliza.Checked && (DdlCtaContable.SelectedValue.ToEntero() <= 0 || (chkCtaImporteNegativoProv.Checked && DdlCtaContableB.SelectedValue.ToEntero() <= 0)))
|
||||
{
|
||||
Alert("el concepto esta marcado como contabilizable pero no estan asignadas correctamente las cuentas.", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||
}
|
||||
//if (UsuarioActual.Empresa.TipoContabilidad == 1)
|
||||
//{
|
||||
//}
|
||||
|
||||
@@ -68,11 +68,12 @@
|
||||
</asp:UpdatePanel>
|
||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveCircular,Asunto,Usuario" EmptyDataText="No se encontraron Circulares"
|
||||
ToolTip="Listado de Metas Vendedor" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: center; width: 100%" GridLines="None">
|
||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveCircular,Asunto,Usuario,FechaIng" EmptyDataText="No se encontraron Circulares"
|
||||
ToolTip="Listado de Metas Vendedor" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: left; width: 100%" GridLines="None">
|
||||
<Columns>
|
||||
<asp:HyperLinkField HeaderText="Asunto" DataTextField="Asunto" DataNavigateUrlFields="CveCircular" DataNavigateUrlFormatString="/OI/CircularDetalleB.aspx?CveCircular={0}" />
|
||||
<asp:HyperLinkField HeaderText="Usuario" DataTextField="Usuario" DataNavigateUrlFields="CveCircular" DataNavigateUrlFormatString="/OI/CircularDetalleB.aspx?CveCircular={0}" />
|
||||
<asp:HyperLinkField HeaderText="Fecha Ing." DataTextField="FechaIng" DataNavigateUrlFields="CveCircular" DataNavigateUrlFormatString="/OI/CircularDetalleB.aspx?CveCircular={0}" ItemStyle-Width="250px" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
|
||||
@@ -30,7 +30,7 @@ Partial Class OI_Circular
|
||||
|
||||
DdlUsuario.DataSource = GlobalDTUsuarios(CveEmpresa:=UsuarioActual.CveEmpresa)
|
||||
DdlUsuario.DataBind()
|
||||
DdlUsuario.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||
DdlUsuario.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
End Sub
|
||||
Private Sub CargaDatos()
|
||||
Dim ObjOI As New ClsOIEventos
|
||||
@@ -40,6 +40,7 @@ Partial Class OI_Circular
|
||||
End If
|
||||
ObjOI.Dispose()
|
||||
GvDatos.DataBind()
|
||||
UpDatos.Update()
|
||||
End Sub
|
||||
|
||||
Protected Sub btConsultar_Click() Handles btConsultar.Click
|
||||
|
||||
@@ -108,14 +108,14 @@
|
||||
<h3 class="panel-title">Asunto</h3>
|
||||
</div>
|
||||
<div class="bodycorreos">
|
||||
<asp:TextBox ID="TxtAsunto" runat="server" CssClass="form-control "></asp:TextBox>
|
||||
<asp:TextBox ID="TxtAsunto" text="Circular " runat="server" CssClass="form-control"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvAsunto" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAsunto" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpCircular"></asp:RequiredFieldValidator>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="pnlCorreo" style="margin-bottom: 5px;">
|
||||
<div class="headerCorreo headerCorreoCCP" style="background-color: transparent;">
|
||||
<div class="headerCorreo headerCorreoCCP" style="background-color: transparent; float:right;">
|
||||
<h3 class="panel-title ">Adjuntar Archivos:</h3>
|
||||
<asp:TextBox ID="TxtArchivo" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
||||
|
||||
@@ -137,6 +137,7 @@
|
||||
|
||||
<div class="text-center">
|
||||
<asp:Button ID="BtnGuardar" OnClick="BtnGuardar_Click" runat="server" CssClass="btn btn-primary" Text="Guardar" Visible="true" ValidationGroup="GrpCircular" />
|
||||
<asp:Button ID="BtnCancelar" PostBackUrl="Circular.aspx" runat="server" CssClass="btn btn-danger" Style="margin-left: 20px!important;" Text="Cancelar" Visible="true"/>
|
||||
<asp:Button ID="BtnEliminar" OnClick="BtnEliminar_Click" runat="server" CssClass="btn btn-danger" Text="Eliminar" Visible="false" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
||||
</div>
|
||||
|
||||
@@ -173,7 +174,7 @@
|
||||
<div class="row" id="DVModalFiltrosUsuarios" visible="true" runat="server">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group form-md-line-input">
|
||||
<asp:DropDownList runat="server" ID="DdlRoles" DataValueField="CveRol" DataTextField="Rol" CssClass="select2me form-control" Width="100%" OnSelectedIndexChanged="DdlRoles_SelectedIndexChanged" AutoPostBack="true" />
|
||||
<asp:DropDownList runat="server" ID="DdlRoles" DataValueField="CveRol" DataTextField="Rol" CssClass="select2me form-control" Width="100%" OnSelectedIndexChanged="DdlRoles_SelectedIndexChanged" AutoPostBack="true"/>
|
||||
<asp:Label runat="server" Text="Perfil:" AssociatedControlID="DdlRoles"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -221,8 +222,8 @@
|
||||
|
||||
<div class="row" >
|
||||
<div class="row col-md-12" align="right" style="margin-top:5px!important">
|
||||
<input type="text" id="TxtBusquedaCorreos" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaCorreos','{0}')", GVUsuarios.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaCorreos','{0}')", GVUsuarios.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
<input type="text" id="TxtBusquedaCorreos" class="form-control input-sm" onkeyup="filtrarx()" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||
<a href="javascript:;" onclick="filtrarx()" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -315,7 +316,6 @@
|
||||
function chkAll_OncLick(chk) {
|
||||
$('.GVUsuarios tr:visible input[type="checkbox"]').prop("checked", chk.checked);
|
||||
}
|
||||
|
||||
//function showhideUser() {
|
||||
|
||||
// // alert(CveRol);
|
||||
@@ -346,12 +346,20 @@
|
||||
// });
|
||||
// input.addClass('ConEvento');
|
||||
//}
|
||||
//function ADSReady() {
|
||||
function filtrarx() {
|
||||
//console.log('Entre 3')
|
||||
//var filtro = sotext($("div[id^='C_DVModalFiltros'] select:first").attr("id"));
|
||||
//console.log(filtro)
|
||||
FiltrarTablaStrMulti('<%=GVUsuarios.ClientID %>', null, sotext('<%=DdlRoles.ClientID %>'), $('#TxtBusquedaCorreos').val());
|
||||
}
|
||||
function ADSBegin() {
|
||||
// loadeventos();
|
||||
// showhideUser()
|
||||
//}
|
||||
|
||||
|
||||
}
|
||||
//inicializa tablas select2me etc etc.....
|
||||
function ADSReady() {
|
||||
filtrarx();
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
@@ -189,7 +189,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
|
||||
ClsOIEventos ObjOI = new ClsOIEventos();
|
||||
|
||||
if (ObjOI.GetCircularCorreos(intTipoConsulta, UsuarioActual.CveEmpresa,DdlRoles.SelectedValue.ToEntero(),DdlSubProyecto.SelectedValue.ToEntero(), DdlCveClasificacionProveedor.SelectedValue.ToEntero(), DdlSubProyectoPersonal.SelectedValue.ToEntero(),DdlClasificacion.SelectedValue.ToEntero()))
|
||||
if (ObjOI.GetCircularCorreos(intTipoConsulta, UsuarioActual.CveEmpresa, -1, DdlSubProyecto.SelectedValue.ToEntero(), DdlCveClasificacionProveedor.SelectedValue.ToEntero(), DdlSubProyectoPersonal.SelectedValue.ToEntero(), DdlClasificacion.SelectedValue.ToEntero()))
|
||||
{
|
||||
|
||||
if (ObjOI.DtResultados.Rows.Count >= 1000)
|
||||
@@ -203,7 +203,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
|
||||
GVUsuarios.DataSource = dt;
|
||||
|
||||
Alert($"{ObjOI.DtResultados.Rows.Count } registros se limito a 2000 registros, se recomienda usar los filtros.", ModExtensiones.TipoMensaje.ToastAdventencia);
|
||||
Alert($"{ObjOI.DtResultados.Rows.Count} registros se limito a 2000 registros, se recomienda usar los filtros.", ModExtensiones.TipoMensaje.ToastAdventencia);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -216,14 +216,11 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
GVUsuarios.DataSource = null;
|
||||
}
|
||||
|
||||
|
||||
RegistraScript("CveRol = -1; CveSucursal = -1;usuariotext = \"\";");
|
||||
|
||||
|
||||
ObjOI.Dispose();
|
||||
GVUsuarios.DataBind();
|
||||
UpModalSeleccionCorreos.Update();
|
||||
|
||||
}
|
||||
|
||||
protected void GVUsuarios_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
@@ -301,7 +298,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
if (ObjOI.UpdateCircular(CveCircular, TxtAsunto.Text, TxtCircular.Text.Replace("< ","<"), TxtCorreo.Text, TxtCorreoAdicional.Text, AdjuntoValidate))
|
||||
{
|
||||
GuardarArchivo(CveCircular);
|
||||
Alert("Actualizado correctamente");
|
||||
Alert("La circular se ha actualizado correctamente.");
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -313,7 +310,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
if (CircularInsertado > 0)
|
||||
{
|
||||
GuardarArchivo(CircularInsertado);
|
||||
Alert("Ingresado correctamente");
|
||||
Alert("La circular se ha guardado correctamente.");
|
||||
CveCircular = CircularInsertado;
|
||||
|
||||
if (CveCircular > 0)
|
||||
@@ -443,7 +440,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
MandaCorreo(TxtAsunto.Text, Correo, Contador > 0 ? "" : TxtCorreoAdicional.Text, TxtCircular.Text.Replace("< ", "<"), ArchivoBytes, HkArchivo.Text);
|
||||
Contador += 1;
|
||||
}
|
||||
Alert("El correo se envió correctamente");
|
||||
Alert("El correo se envió correctamente.");
|
||||
}
|
||||
catch (Exception )
|
||||
{
|
||||
@@ -522,10 +519,13 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
|
||||
protected void DdlRoles_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
ConsultaCorreos();
|
||||
}
|
||||
//ConsultaCorreos();
|
||||
// Filtro las filas según el dropdown option
|
||||
//RegistraScript("console.log('Entre 1')");
|
||||
//RegistraScript($"FiltrarTablaStrMulti('{GVUsuarios.ClientID}', null, sotext('{DdlRoles.ClientID}'), $('#TxtBusquedaCorreos').val());");
|
||||
}
|
||||
|
||||
protected void DdlSubProyecto_SelectedIndexChanged(object sender, EventArgs e)
|
||||
protected void DdlSubProyecto_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
ConsultaCorreos();
|
||||
}
|
||||
@@ -542,7 +542,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
||||
|
||||
protected void DdlClasificacion_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// ConsultaCorreos();
|
||||
ConsultaCorreos();
|
||||
}
|
||||
|
||||
protected void LnlActualizarCorreos_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -17,6 +17,6 @@ public partial class OI_RepTareas3 : System.Web.UI.Page
|
||||
protected void LnkAddEvento_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
RegistraScript(string.Format("$('#{0}').modal()", iddivAgregar));
|
||||
//RegistraScript(string.Format("$('#{0}').modal()", iddivAgregar));
|
||||
}
|
||||
}
|
||||
@@ -78,7 +78,7 @@ Partial Class OS_CatEstatusOrdenServicio
|
||||
Public Sub CargaDatos()
|
||||
DTUsuarios = GlobalDTUsuarios(CveEmpresa:=UsuarioActual.CveEmpresa)
|
||||
Using ObjEstatusOrdenServicios As New ClsOS
|
||||
If ObjEstatusOrdenServicios.GetEstatusOrdenServicio() Then
|
||||
If ObjEstatusOrdenServicios.GetEstatusOrdenServicio(UsuarioActual.CveEmpresa) Then
|
||||
DtEstatusOS = ObjEstatusOrdenServicios.DtResultados.FiltraParametros(String.Format("CveEmpresa = {0}", UsuarioActual.CveEmpresa))
|
||||
GvDatos.DataSource = DtEstatusOS
|
||||
GlobalDTEstatusOrdenServicios(UsuarioActual.CveEmpresa) = ObjEstatusOrdenServicios.DtResultados
|
||||
|
||||
@@ -14,7 +14,7 @@ Partial Class Prospectos_CatEventosEstructuras
|
||||
CargaEventoTipo()
|
||||
CargaDatos()
|
||||
CargaAnfitrion(DdlAnfitrion)
|
||||
DdlMunicipio.DataSource = GlobalDTGralMunicipios(26)
|
||||
DdlMunicipio.DataSource = GlobalDTGralMunicipios("26")
|
||||
DdlMunicipio.DataBind()
|
||||
End If
|
||||
End Sub
|
||||
@@ -102,7 +102,7 @@ Partial Class Prospectos_CatEventosEstructuras
|
||||
e.Row.FCDropDownList("DdlEventoTipo").DataBind()
|
||||
e.Row.FCDropDownList("DdlEventoTipo").SelectedValue = e.Row.DBCampo("CveEventoTipo")
|
||||
|
||||
e.Row.FCDropDownList("DdlMunicipio").DataSource = GlobalDTGralMunicipios(26)
|
||||
e.Row.FCDropDownList("DdlMunicipio").DataSource = GlobalDTGralMunicipios("26")
|
||||
e.Row.FCDropDownList("DdlMunicipio").DataBind()
|
||||
e.Row.FCDropDownList("DdlMunicipio").SelectedValue = e.Row.DBCampo("CveMunicipio")
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ Partial Class Prospectos_CatProspectosRedesMetas
|
||||
DdlClasificacion.DataSource = GlobalDTProspectosClasificaciones(UsuarioActual.CveEmpresa) : DdlClasificacion.DataBind()
|
||||
DdlZona.DataSource = GlobalDTProspectosSupervisores(UsuarioActual.CveEmpresa) : DdlZona.DataBind()
|
||||
DdlRegion.DataSource = GlobalDTProspectosCoordinadores(DdlZona.SelectedValue.ToEntero, UsuarioActual.CveEmpresa) : DdlRegion.DataBind()
|
||||
DdlMunicipioFiltro.DataSource = GlobalDTGralMunicipios(26) : DdlMunicipioFiltro.DataBind()
|
||||
DdlMunicipioFiltro.DataSource = GlobalDTGralMunicipios("26") : DdlMunicipioFiltro.DataBind()
|
||||
|
||||
CargaDatos()
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ Partial Class Prospectos_Prospectos
|
||||
DdlPaises.SelectedValue = "1"
|
||||
DdlEmpresaPaises.SelectedValue = "1"
|
||||
DdlEmpresaPaises.DataSource = GlobalDTGralPaises : DdlEmpresaPaises.DataBind()
|
||||
DdlFiscalEstados.DataSource = GlobalDTGralEstados(1) : DdlFiscalEstados.DataBind()
|
||||
DdlFiscalEstados.DataSource = GlobalDTGralEstados("1") : DdlFiscalEstados.DataBind()
|
||||
|
||||
'DdlMunicipios.DataSource = GlobalDTGralMunicipios : DdlMunicipios.DataBind()
|
||||
|
||||
@@ -88,7 +88,7 @@ Partial Class Prospectos_Prospectos
|
||||
CargaDatos()
|
||||
'Configuración de Modalidad Update
|
||||
BtnGuardar.Text = "Guardar Cambios"
|
||||
LtlTitulo.Text = "Consulta del Prospecto:"
|
||||
LtlTitulo.Text = "Consulta del Prospecto: "
|
||||
'ImgAddObs.Attributes.Add("onclick", "javascript:$('#DivEventoBitacora').show(1000); PosicionaObjeto(this.id,'DivEventoBitacora');")
|
||||
|
||||
'Else
|
||||
@@ -337,11 +337,11 @@ Partial Class Prospectos_Prospectos
|
||||
|
||||
|
||||
Private Sub CargaEstados(ddl As DropDownList, CvePais As Integer)
|
||||
ddl.DataSource = GlobalDTGralEstados(CvePais) : ddl.DataBind()
|
||||
ddl.DataSource = GlobalDTGralEstados(CvePais.ToString) : ddl.DataBind()
|
||||
End Sub
|
||||
|
||||
Private Sub CargaMunicipios(ddl As DropDownList, CveEstado As Integer)
|
||||
ddl.DataSource = GlobalDTGralMunicipios(CveEstado) : ddl.DataBind()
|
||||
ddl.DataSource = GlobalDTGralMunicipios(CveEstado.ToString) : ddl.DataBind()
|
||||
End Sub
|
||||
|
||||
Protected Sub CargaCaracteristicas()
|
||||
|
||||
@@ -208,11 +208,11 @@ Partial Class Prospectos_ProspectosEstructuras
|
||||
End Sub
|
||||
|
||||
Private Sub CargaEstados(ddl As DropDownList, CvePais As Integer)
|
||||
ddl.DataSource = GlobalDTGralEstados(CvePais) : ddl.DataBind()
|
||||
ddl.DataSource = GlobalDTGralEstados(CvePais.ToString) : ddl.DataBind()
|
||||
End Sub
|
||||
|
||||
Private Sub CargaMunicipios(ddl As DropDownList, CveEstado As Integer)
|
||||
ddl.DataSource = GlobalDTGralMunicipios(CveEstado) : ddl.DataBind()
|
||||
ddl.DataSource = GlobalDTGralMunicipios(CveEstado.ToString) : ddl.DataBind()
|
||||
End Sub
|
||||
|
||||
Protected Sub BtnGuardar_Click(sender As Object, e As System.EventArgs) Handles BtnGuardar.Click
|
||||
|
||||
@@ -201,11 +201,11 @@ Partial Class Prospectos_ProspectosRedes
|
||||
End Sub
|
||||
|
||||
Private Sub CargaEstados(ddl As DropDownList, CvePais As Integer)
|
||||
ddl.DataSource = GlobalDTGralEstados(CvePais) : ddl.DataBind()
|
||||
ddl.DataSource = GlobalDTGralEstados(CvePais.ToString) : ddl.DataBind()
|
||||
End Sub
|
||||
|
||||
Private Sub CargaMunicipios(ddl As DropDownList, CveEstado As Integer)
|
||||
ddl.DataSource = GlobalDTGralMunicipios(CveEstado) : ddl.DataBind()
|
||||
ddl.DataSource = GlobalDTGralMunicipios(CveEstado.ToString) : ddl.DataBind()
|
||||
End Sub
|
||||
|
||||
Protected Sub BtnGuardar_Click(sender As Object, e As System.EventArgs) Handles BtnGuardar.Click
|
||||
|
||||
@@ -36,7 +36,7 @@ Partial Class Prospectos_RedesArbol
|
||||
DdlClasificacion.DataSource = GlobalDTProspectosClasificaciones(UsuarioActual.CveEmpresa) : DdlClasificacion.DataBind()
|
||||
DdlZona.DataSource = GlobalDTProspectosSupervisores(UsuarioActual.CveEmpresa) : DdlZona.DataBind()
|
||||
DdlRegion.DataSource = GlobalDTProspectosCoordinadores(DdlZona.SelectedValue.ToEntero, UsuarioActual.CveEmpresa) : DdlRegion.DataBind()
|
||||
DdlMunicipioFiltro.DataSource = GlobalDTGralMunicipios(26) : DdlMunicipioFiltro.DataBind()
|
||||
DdlMunicipioFiltro.DataSource = GlobalDTGralMunicipios("26") : DdlMunicipioFiltro.DataBind()
|
||||
|
||||
CargaDatos(True)
|
||||
ImgPersonalizar.Attributes.Add("onclick", "$('#DivPersonalizar').show(1000); PosicionaObjeto(this.id,'DivPersonalizar');")
|
||||
|
||||
@@ -155,11 +155,11 @@ Partial Class Prospectos_RedesEncuestas
|
||||
End Sub
|
||||
|
||||
Private Sub CargaEstados(ddl As DropDownList, CvePais As Integer)
|
||||
ddl.DataSource = GlobalDTGralEstados(CvePais) : ddl.DataBind()
|
||||
ddl.DataSource = GlobalDTGralEstados(CvePais.ToString) : ddl.DataBind()
|
||||
End Sub
|
||||
|
||||
Private Sub CargaMunicipios(ddl As DropDownList, CveEstado As Integer)
|
||||
ddl.DataSource = GlobalDTGralMunicipios(CveEstado) : ddl.DataBind()
|
||||
ddl.DataSource = GlobalDTGralMunicipios(CveEstado.ToString) : ddl.DataBind()
|
||||
End Sub
|
||||
|
||||
Protected Sub BtnGuardar_Click(sender As Object, e As System.EventArgs) Handles BtnGuardar.Click
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
</table>
|
||||
<asp:GridView ID="GvTurno" runat="server" GridLines="None" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" CellSpacing="0" Width="100%" AutoGenerateColumns="False"
|
||||
EmptyDataText="No se encontraron registros" ToolTip="Listado de Turnos" data-tableheader="#thheader"
|
||||
DataKeyNames="CveTurno,Turno,CveChecadorHorario,HorarioDe,HorarioA,Estatus,FechaIng,CveUsuario,CveEmpresa,Usuario,ChecadorHorario,ToleranciaERetardo,ToleranciaEFalta,ToleranciaEFalta2,ToleranciaSRetardo,ToleranciaSFalta">
|
||||
DataKeyNames="CveTurno,Turno,CveChecadorHorario,HorarioDe,HorarioA,Comida,ComidaDe,ComidaA,Estatus,FechaIng,CveUsuario,CveEmpresa,Usuario,ChecadorHorario,ToleranciaERetardo,ToleranciaEFalta,ToleranciaEFalta2,ToleranciaSRetardo,ToleranciaSFalta">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="Turno" HeaderText="Turno" ItemStyle-HorizontalAlign="Left" />
|
||||
<%--<asp:BoundField DataField="ChecadorHorario" HeaderText="Checador Horario" ItemStyle-HorizontalAlign="Left" />--%>
|
||||
@@ -125,6 +125,31 @@
|
||||
<ajax:ValidatorCalloutExtender ID="VCOHorarioA2" runat="server" HighlightCssClass="vco" TargetControlID="MEVHorarioA"></ajax:ValidatorCalloutExtender>
|
||||
<label for="<%= TxtHorarioDe.ClientID.ToString()%>">Hora de Salida:</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:CheckBox ID="chkComida" runat="server" CssClass="form-control" />
|
||||
<label for="<%= chkComida.ClientID.ToString()%>">Con Horario de comida:</label>
|
||||
</div>
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtComidade" runat="server" CausesValidation="true" CssClass="form-control" MaxLength="10" Width="104px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVComidade" runat="server" ControlToValidate="TxtComidade" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Hr. Entrada''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOComidade1" runat="server" HighlightCssClass="vco" TargetControlID="RFVComidade" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:MaskedEditExtender ID="MEEComidade" runat="server" TargetControlID="TxtComidade" Mask="99:99:99" MaskType="Time" InputDirection="RightToLeft"></ajax:MaskedEditExtender>
|
||||
<ajax:MaskedEditValidator ID="MEVComidade" runat="server" ControlExtender="MEEComidade" ControlToValidate="TxtComidade" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Hr. Entrada''</b> no tiene el formato correcto, por favor corrija (Formato 24 Horas)." IsValidEmpty="true" MaximumValue="23:59:59" MinimumValue="00:00:00" ToolTip="Formato 24 Horas" ValidationGroup="GrpObligatorio"></ajax:MaskedEditValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOComidade2" runat="server" HighlightCssClass="vco" TargetControlID="MEVComidade"></ajax:ValidatorCalloutExtender>
|
||||
<label for="<%= TxtComidade.ClientID.ToString()%>">Hora de Comida Entrada:</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtComidaA" runat="server" CausesValidation="true" CssClass="form-control" MaxLength="10" Width="104px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RFVComidaA" runat="server" ControlToValidate="TxtComidaA" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Hr. Entrada''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOComidaA1" runat="server" HighlightCssClass="vco" TargetControlID="RFVComidaA" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
<ajax:MaskedEditExtender ID="MEEComidaA" runat="server" TargetControlID="TxtComidaA" Mask="99:99:99" MaskType="Time" InputDirection="RightToLeft"></ajax:MaskedEditExtender>
|
||||
<ajax:MaskedEditValidator ID="MEVComidaA" runat="server" ControlExtender="MEEComidaA" ControlToValidate="TxtComidaA" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Hr. Entrada''</b> no tiene el formato correcto, por favor corrija (Formato 24 Horas)." IsValidEmpty="true" MaximumValue="23:59:59" MinimumValue="00:00:00" ToolTip="Formato 24 Horas" ValidationGroup="GrpObligatorio"></ajax:MaskedEditValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOComidaA2" runat="server" HighlightCssClass="vco" TargetControlID="MEVComidaA"></ajax:ValidatorCalloutExtender>
|
||||
<label for="<%= TxtComidaA.ClientID.ToString()%>">Hora de Comida Salida:</label>
|
||||
</div>
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtRetardo" runat="server" CausesValidation="true" CssClass="form-control" ValidationGroup="GrpObligatorio"></asp:TextBox>
|
||||
<asp:Label AssociatedControlID="TxtRetardo" runat="server" Text="Tolerancia Entrada"></asp:Label>
|
||||
|
||||
@@ -27,7 +27,7 @@ Partial Class RH_CatTurno
|
||||
End Sub
|
||||
Private Sub CargaDatos()
|
||||
Dim ObjRH As New ClsRH()
|
||||
If ObjRH.GetTurnos Then
|
||||
If ObjRH.GetTurnos(UsuarioActual.CveEmpresa) Then
|
||||
GvTurno.DataSource = ObjRH.DtResultados.FiltraParametros(" CveEmpresa =" & UsuarioActual.CveEmpresa)
|
||||
GvTurno.DataBind()
|
||||
End If
|
||||
@@ -36,26 +36,28 @@ Partial Class RH_CatTurno
|
||||
End Sub
|
||||
|
||||
Private Sub BtnAgregarTurno_Click(sender As Object, e As EventArgs) Handles BtnAgregarTurno.Click
|
||||
Dim ObjRH As New ClsRH
|
||||
Dim Estatus As Boolean = False
|
||||
If ChkEstatus.Checked Then Estatus = True
|
||||
If HdnModalidad.Value = "A" Then
|
||||
If ObjRH.AddTurno(TxtTurno.Text, TxtHorarioDe.Text, TxtHorarioA.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, DdlChecadorHorario.SelectedValue.ToEntero(),
|
||||
TxtRetardo.Text.ToEntero(), TxtFretardo.Text.ToEntero() - TxtRetardo.Text.ToEntero(), 0, TxtFsalida.Text.ToEntero()) Then
|
||||
CargaDatos()
|
||||
CargaGlobalDTTurno()
|
||||
Alert("Agregado Correctamente.", TipoMensaje.MsgInformacion)
|
||||
Using ObjRH As New ClsRH
|
||||
Dim Estatus As Boolean = False
|
||||
Dim comida As Integer = If(chkComida.Checked, 1, 0)
|
||||
If ChkEstatus.Checked Then Estatus = True
|
||||
If HdnModalidad.Value = "A" Then
|
||||
If ObjRH.AddTurno(TxtTurno.Text, TxtHorarioDe.Text, TxtHorarioA.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, DdlChecadorHorario.SelectedValue.ToEntero(),
|
||||
TxtRetardo.Text.ToEntero(), TxtFretardo.Text.ToEntero() - TxtRetardo.Text.ToEntero(), 0, TxtFsalida.Text.ToEntero(), comida, TxtComidade.Text, TxtComidaA.Text) Then
|
||||
CargaDatos()
|
||||
CargaGlobalDTTurno()
|
||||
Alert("Agregado Correctamente.", TipoMensaje.MsgInformacion)
|
||||
End If
|
||||
ElseIf HdnModalidad.Value = "U" Then
|
||||
If ObjRH.UpdateTurno(TxtTurno.Text, TxtHorarioDe.Text, TxtHorarioA.Text, Estatus, HdnID.Value.ToEntero(), UsuarioActual.CveUsuario, DdlChecadorHorario.SelectedValue.ToEntero(),
|
||||
TxtRetardo.Text.ToEntero(), TxtFretardo.Text.ToEntero() - TxtRetardo.Text.ToEntero(), 0, TxtFsalida.Text.ToEntero(), comida, TxtComidade.Text, TxtComidaA.Text) Then
|
||||
CargaDatos()
|
||||
CargaGlobalDTTurno()
|
||||
Alert("Actualizado Correctamente.", TipoMensaje.MsgInformacion)
|
||||
End If
|
||||
End If
|
||||
ElseIf HdnModalidad.Value = "U" Then
|
||||
If ObjRH.UpdateTurno(TxtTurno.Text, TxtHorarioDe.Text, TxtHorarioA.Text, Estatus, HdnID.Value.ToEntero(), UsuarioActual.CveUsuario, DdlChecadorHorario.SelectedValue.ToEntero(),
|
||||
TxtRetardo.Text.ToEntero(), TxtFretardo.Text.ToEntero() - TxtRetardo.Text.ToEntero(), 0, TxtFsalida.Text.ToEntero()) Then
|
||||
CargaDatos()
|
||||
CargaGlobalDTTurno()
|
||||
Alert("Actualizado Correctamente.", TipoMensaje.MsgInformacion)
|
||||
End If
|
||||
End If
|
||||
|
||||
End Using
|
||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "divAddTurno"))
|
||||
ObjRH.Dispose()
|
||||
UpDatos.Update()
|
||||
|
||||
End Sub
|
||||
@@ -75,6 +77,11 @@ Partial Class RH_CatTurno
|
||||
TxtFretardo.Text = (GvRow.DataKey("ToleranciaEFalta2").ToEntero()).ToString()
|
||||
TxtFsalida.Text = GvRow.DataKey("ToleranciaSFalta")
|
||||
ChkEstatus.Checked = CBool(GvRow.DataKey("Estatus"))
|
||||
chkComida.Checked = (GvRow.DataKey("Comida") = "1")
|
||||
TxtComidade.Text = GvRow.DataKey("ComidaDe")
|
||||
TxtComidaA.Text = GvRow.DataKey("ComidaA")
|
||||
|
||||
|
||||
UpAddTurno.Update()
|
||||
|
||||
'CargaGlobalDTTurno()
|
||||
|
||||
@@ -69,6 +69,15 @@ function alertatoast(tipo, Mensaje, Funcion, timeout) {
|
||||
function log(mensaje) {
|
||||
console.log(mensaje);
|
||||
}
|
||||
|
||||
function soval(dropdown) {
|
||||
return $('option:selected', '#' + dropdown).val();
|
||||
}
|
||||
|
||||
function sotext(dropdown) {
|
||||
return $('option:selected', '#' + dropdown).text();
|
||||
}
|
||||
|
||||
function FiltrarTabla(idtxt, idtable, idcontador) {
|
||||
if ($('#' + idtxt).val() == '') { $('table#' + idtable + ' tr').css('display', ''); }
|
||||
else {
|
||||
@@ -79,6 +88,38 @@ function FiltrarTabla(idtxt, idtable, idcontador) {
|
||||
$('#' + idcontador).html($('#' + idtable + ' tr:visible').length);
|
||||
}
|
||||
}
|
||||
|
||||
function FiltrarTablaStr(str, idtable, idcontador) {
|
||||
if (str == '' || str == 'Todos') { $('table#' + idtable + ' tr').css('display', ''); }
|
||||
else {
|
||||
$('table#' + idtable + ' tr:not(.ADtr)').css('display', 'none');
|
||||
$('table#' + idtable + ' tr:contains("' + str + '")').css('display', '');
|
||||
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').css('display', '');
|
||||
}
|
||||
if ($('#' + idcontador).length > 0) {
|
||||
$('#' + idcontador).html($('#' + idtable + ' tr:visible').length);
|
||||
}
|
||||
}
|
||||
|
||||
function FiltrarTablaStrMulti(idtable, idcontador /*, str1, str2, str3...*/ ) {
|
||||
if (arguments.length <= 2) { return; }
|
||||
let strc = '';
|
||||
for (let i = 2 /*a partir del 3er argumento obtiene los str*/; i < arguments.length; i++) {
|
||||
let str = arguments[i];
|
||||
if (str != '' && str != 'Todos') {
|
||||
strc += ':contains("' + str + '")';
|
||||
}
|
||||
}
|
||||
$('table#' + idtable + ' tr:not(.ADtr)').css('display', 'none');
|
||||
$('table#' + idtable + ' tr' + strc).css('display', '');
|
||||
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').css('display', '');
|
||||
if (idcontador) {
|
||||
if ($('#' + idcontador).length > 0) {
|
||||
$('#' + idcontador).html($('#' + idtable + ' tr:visible').length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function FiltrarTablaClass(idtxt, idtable, idcontador, resta) {
|
||||
if (resta == null) {
|
||||
resta =1
|
||||
|
||||
@@ -4582,7 +4582,7 @@
|
||||
|
||||
<asp:GridView ID="GvLineasAdicionales" Width="100%" runat="server" GridLines="None"
|
||||
DataKeyNames="CveLineaAdicional,LineaAdicional,CveCliente,CveProveedor,TipoLinea,Importe,CveMoneda,FechaVencimiento,CveUsuario,CveCategoria,FechaIng,CveLineaAdicionalEstatus,Proveedor,DiasVencimiento"
|
||||
CssClass="table table-striped table-advance table-hover ScrollAD " ShowHeader="True" EmptyDataText="No se encontraron resultados." ShowHeaderWhenEmpty="true"
|
||||
CssClass="table table-striped table-advance table-hover mysmallbtn ScrollAD " ShowHeader="True" EmptyDataText="No se encontraron resultados." ShowHeaderWhenEmpty="true"
|
||||
AutoGenerateColumns="False" AllowPaging="False" ShowFooter="False">
|
||||
<Columns>
|
||||
|
||||
@@ -4874,7 +4874,7 @@
|
||||
<div class="portlet-body">
|
||||
<asp:UpdatePanel ID="UPEventoBitacora" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:Button ID="btnupEventoBitacora" OnClick="btnupEventoBitacora_Click" UseSubmitBehavior="false" CssClass="hidden btnupEventoBitacora" runat="server" Text="Button" />
|
||||
<asp:Button ID="btnupEventoBitacora" OnClick="btnupEventoBitacora_Click" UseSubmitBehavior="false" CssClass="hidden btnupEventoBitacora mysmallbtn" runat="server" Text="Button" />
|
||||
<asp:GridView ID="GvEB" runat="server" AutoGenerateColumns="False" EmptyDataText="No se han capturado comentarios o bitácora" CssClass="table table-striped table-advance table-hover Widthall" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
|
||||
@@ -1504,7 +1504,7 @@ Partial Class Clientes
|
||||
' CargaDocs()
|
||||
CargaCombos()
|
||||
CargaDocumentacionCliente()
|
||||
CargaSubProyectosSuscursales()
|
||||
'CargaSubProyectosSuscursales()
|
||||
'CargaMetodosPago33()
|
||||
'CargaFormaPago33()
|
||||
'CargaComboCFDI()
|
||||
|
||||
@@ -827,7 +827,7 @@ Partial Class Ventas_ClientesAbonar
|
||||
CveMoneda = IfNull(Request("CveMoneda"), "1").ToString.ToEntero
|
||||
End If
|
||||
|
||||
CvePrePoliza = ObjMov.AddPrePolizas("Ventas/ClientesAbonar", 11, TxtImporte.Text.Trim.ToDecimal, TxtImporte.Text.Trim.ToDecimal, CveMoneda, TxtFechaDocumento.Text.ToDate, ConceptoPoliza, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||
CvePrePoliza = ObjMov.AddPrePolizas("Ventas/ClientesAbonar", 11, TxtImporte.Text.Trim.ToDecimal, TxtImporte.Text.Trim.ToDecimal, 1, TxtFechaDocumento.Text.ToDate, ConceptoPoliza, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||
|
||||
If RblTipoPago.SelectedValue = "1" Then
|
||||
Dim CveCuentaDeposito As Integer = 0
|
||||
@@ -1151,7 +1151,7 @@ Partial Class Ventas_ClientesAbonar
|
||||
Dim ImporteMN As Decimal = (ImporteMovimiento * tipoCambioPago).RoundSQL
|
||||
Dim IdCtaContable As Integer = 0
|
||||
|
||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteMovimiento, ImporteMN, 134, VentaActual.SerieFolio, VentaActual.SerieFolio, IdCtaContable, CveVenta:=gvr.DataKey("CveVenta").ToEntero, CveSubProyecto:=CveSubProyectoContabilizar, CveProveedor:=DdlProveedorPagoInt.SelectedValue.ToEntero) Then
|
||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteMovimiento, ImporteMN, 134, VentaActual.SerieFolio, VentaActual.SerieFolio, VentaActual.IdCtaContableCliente, CveVenta:=gvr.DataKey("CveVenta").ToEntero, CveSubProyecto:=CveSubProyectoContabilizar, CveProveedor:=DdlProveedorPagoInt.SelectedValue.ToEntero) Then
|
||||
MsgError = "No se pudo insertar la póliza"
|
||||
End If
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user