This commit is contained in:
@@ -242,7 +242,7 @@ Public Class ClsProductosServicios
|
|||||||
CveUnidadMedida = Data.Rows(0)("CveUnidadMedida").ToString.ToEntero
|
CveUnidadMedida = Data.Rows(0)("CveUnidadMedida").ToString.ToEntero
|
||||||
CveSATPS = Data.Rows(0)("CveSATPS").ToString.ToEntero
|
CveSATPS = Data.Rows(0)("CveSATPS").ToString.ToEntero
|
||||||
Me.SATClavePS = Data.Rows(0)("SATClavePS").ToString
|
Me.SATClavePS = Data.Rows(0)("SATClavePS").ToString
|
||||||
SATDescripcion = Data.Rows(0)("SATDescripcion").ToString
|
'SATDescripcion = Data.Rows(0)("SATDescripcion").ToString
|
||||||
Me.CveTipoPS = Data.Rows(0)("CveTipoPS").ToString.ToEntero
|
Me.CveTipoPS = Data.Rows(0)("CveTipoPS").ToString.ToEntero
|
||||||
Me.Codigo = Data.Rows(0)("Codigo").ToString
|
Me.Codigo = Data.Rows(0)("Codigo").ToString
|
||||||
Me.Codigo2 = Data.Rows(0)("Codigo2").ToString
|
Me.Codigo2 = Data.Rows(0)("Codigo2").ToString
|
||||||
@@ -260,7 +260,8 @@ Public Class ClsProductosServicios
|
|||||||
Estado2 = Data.Rows(0)("Estado2").ToString.ToEntero
|
Estado2 = Data.Rows(0)("Estado2").ToString.ToEntero
|
||||||
Fecha = Data.Rows(0)("Fecha").ToString.ToDate
|
Fecha = Data.Rows(0)("Fecha").ToString.ToDate
|
||||||
Usuario = Data.Rows(0)("Usuario").ToString
|
Usuario = Data.Rows(0)("Usuario").ToString
|
||||||
AlmacenSeccion = Data.Rows(0)("AlmacenSeccion").ToString
|
|
||||||
|
'AlmacenSeccion = Data.Rows(0)("AlmacenSeccion").ToString
|
||||||
AplicaIEPS = (Data.Rows(0)("AplicaIEPS").ToString) = "True"
|
AplicaIEPS = (Data.Rows(0)("AplicaIEPS").ToString) = "True"
|
||||||
IEPSGrabaIVA = (Data.Rows(0)("IEPSGrabaIVA").ToString) = "True"
|
IEPSGrabaIVA = (Data.Rows(0)("IEPSGrabaIVA").ToString) = "True"
|
||||||
IEPSPorcentaje = Data.Rows(0)("IEPSPorcentaje").ToString.ToDouble
|
IEPSPorcentaje = Data.Rows(0)("IEPSPorcentaje").ToString.ToDouble
|
||||||
@@ -282,7 +283,7 @@ Public Class ClsProductosServicios
|
|||||||
|
|
||||||
Me.CveEmpresa = Data.Rows(0)("CveEmpresa").ToString.ToEntero
|
Me.CveEmpresa = Data.Rows(0)("CveEmpresa").ToString.ToEntero
|
||||||
CveMetodoInventario = Data.Rows(0)("Inv_CveMetodoInventario").ToString.ToEntero
|
CveMetodoInventario = Data.Rows(0)("Inv_CveMetodoInventario").ToString.ToEntero
|
||||||
VentaMinima = Data.Rows(0)("VentaMinima").ToString.ToDecimal
|
'VentaMinima = Data.Rows(0)("VentaMinima").ToString.ToDecimal
|
||||||
CveMoneda = Data.Rows(0)("CveMoneda").ToString.ToEntero
|
CveMoneda = Data.Rows(0)("CveMoneda").ToString.ToEntero
|
||||||
RetISR = Data.Rows(0)("RetISR").ToString.ToDouble
|
RetISR = Data.Rows(0)("RetISR").ToString.ToDouble
|
||||||
|
|
||||||
|
|||||||
@@ -429,22 +429,22 @@ Public Class WS_PuntoVenta
|
|||||||
Return Respuesta
|
Return Respuesta
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
'<WebMethod()>
|
<WebMethod()>
|
||||||
'Public Function GetSucursales(CveEmpresa As Integer) As RespuestaWS
|
Public Function GetSubProyectos(CveEmpresa As Integer) As RespuestaWS
|
||||||
' Dim objSucursales As New ClsSucursales
|
Dim objProyecto As New ClsSubProyectos
|
||||||
' Dim Respuesta As New RespuestaWS
|
Dim Respuesta As New RespuestaWS
|
||||||
|
|
||||||
' If objSucursales.GetSucursales() Then
|
If objProyecto.GetSubProyectos(CveEmpresa) Then
|
||||||
' Respuesta.Datos = objSucursales.DtResultados.FiltraParametros(String.Format("CveEmpresa = {0}", CveEmpresa))
|
Respuesta.Datos = objProyecto.DtResultados
|
||||||
' Respuesta.Datos.TableName = "Resultados"
|
Respuesta.Datos.TableName = "Resultados"
|
||||||
' Respuesta.HuboError = False
|
Respuesta.HuboError = False
|
||||||
' Else
|
Else
|
||||||
' Respuesta.Descripcion = "HUBO UN ERROR"
|
Respuesta.Descripcion = "HUBO UN ERROR"
|
||||||
' End If
|
End If
|
||||||
|
|
||||||
' objSucursales.Dispose()
|
objProyecto.Dispose()
|
||||||
' Return Respuesta
|
Return Respuesta
|
||||||
'End Function
|
End Function
|
||||||
|
|
||||||
<WebMethod()>
|
<WebMethod()>
|
||||||
Public Function GetClientes(CveEmpresa As Integer) As RespuestaWS
|
Public Function GetClientes(CveEmpresa As Integer) As RespuestaWS
|
||||||
@@ -478,7 +478,7 @@ Public Class WS_PuntoVenta
|
|||||||
objFolios.Dispose()
|
objFolios.Dispose()
|
||||||
Return Respuesta
|
Return Respuesta
|
||||||
End Function
|
End Function
|
||||||
|
'Candiddato a borrar
|
||||||
'COMENTADO IPP: CAMBIO LA FORMA DE USAR LAS PROMOCIONES | 2 NOVIEMBRE 2016
|
'COMENTADO IPP: CAMBIO LA FORMA DE USAR LAS PROMOCIONES | 2 NOVIEMBRE 2016
|
||||||
'<WebMethod()>
|
'<WebMethod()>
|
||||||
'Public Function GetVta_PromocionesDetalle(CvePS As Integer, Fecha As String, CveSucursal As Integer, CveEmpresa As Integer) As RespuestaWS
|
'Public Function GetVta_PromocionesDetalle(CvePS As Integer, Fecha As String, CveSucursal As Integer, CveEmpresa As Integer) As RespuestaWS
|
||||||
@@ -498,11 +498,11 @@ Public Class WS_PuntoVenta
|
|||||||
'End Function
|
'End Function
|
||||||
|
|
||||||
<WebMethod()>
|
<WebMethod()>
|
||||||
Public Function GetVta_Promociones(Fecha As String, CveEmpresa As Integer) As RespuestaWS
|
Public Function GetVta_Promociones(Fecha As String, CveSubProyecto As Integer, CveEmpresa As Integer) As RespuestaWS
|
||||||
Dim objPromociones As New ClsVentas
|
Dim objPromociones As New ClsVentas
|
||||||
Dim Respuesta As New RespuestaWS
|
Dim Respuesta As New RespuestaWS
|
||||||
|
|
||||||
If objPromociones.GetPromociones(-1, Fecha, -1, -1, 1, CveEmpresa, -1) Then
|
If objPromociones.GetPromociones(-1, Fecha, -1, -1, 1, CveEmpresa, CveSubProyecto) Then
|
||||||
Respuesta.Datos = objPromociones.DtResultados
|
Respuesta.Datos = objPromociones.DtResultados
|
||||||
Respuesta.Datos.TableName = "Resultados"
|
Respuesta.Datos.TableName = "Resultados"
|
||||||
Respuesta.HuboError = False
|
Respuesta.HuboError = False
|
||||||
@@ -618,39 +618,39 @@ Public Class WS_PuntoVenta
|
|||||||
Return Respuesta
|
Return Respuesta
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
'<WebMethod()>
|
<WebMethod()>
|
||||||
''Public Function GetProductosServiciosCaracteristicas(CveEmpresa As Integer, CveSucursal As Integer) As RespuestaWS
|
Public Function GetProductosServiciosCaracteristicas(CveEmpresa As Integer, CveSubProyecto As Integer) As RespuestaWS
|
||||||
'' Dim objPSCaracteristicas As New ClsGralProductosServiciosCaracteristicas
|
Dim objPSCaracteristicas As New ClsGralProductosServiciosCaracteristicas
|
||||||
'' Dim Respuesta As New RespuestaWS
|
Dim Respuesta As New RespuestaWS
|
||||||
|
|
||||||
'' If objPSCaracteristicas.GetProductosServiciosCaracteristicas(CveEmpresa, CveSucursal) Then
|
If objPSCaracteristicas.GetProductosServiciosCaracteristicas(CveEmpresa, CveSubProyecto) Then
|
||||||
'' Respuesta.Datos = objPSCaracteristicas.DtResultados
|
Respuesta.Datos = objPSCaracteristicas.DtResultados
|
||||||
'' Respuesta.Datos.TableName = "Resultados"
|
Respuesta.Datos.TableName = "Resultados"
|
||||||
'' Respuesta.HuboError = False
|
Respuesta.HuboError = False
|
||||||
'' Else
|
Else
|
||||||
'' Respuesta.Descripcion = "HUBO UN ERROR"
|
Respuesta.Descripcion = "HUBO UN ERROR"
|
||||||
'' End If
|
End If
|
||||||
|
|
||||||
'' objPSCaracteristicas.Dispose()
|
objPSCaracteristicas.Dispose()
|
||||||
'' Return Respuesta
|
Return Respuesta
|
||||||
''End Function
|
End Function
|
||||||
|
|
||||||
'<WebMethod()>
|
<WebMethod()>
|
||||||
''Public Function GetProductosServiciosCaracteristicasOpciones(CveEmpresa As Integer, CveSucursal As Integer) As RespuestaWS
|
Public Function GetProductosServiciosCaracteristicasOpciones(CveEmpresa As Integer, CveSubProyecto As Integer) As RespuestaWS
|
||||||
'' Dim objPSCaracteristicas As New ClsGralProductosServiciosCaracteristicas
|
Dim objPSCaracteristicas As New ClsGralProductosServiciosCaracteristicas
|
||||||
'' Dim Respuesta As New RespuestaWS
|
Dim Respuesta As New RespuestaWS
|
||||||
|
|
||||||
'' If objPSCaracteristicas.GetProductosServiciosCaracteristicasOpciones(CveEmpresa, CveSucursal) Then
|
If objPSCaracteristicas.GetProductosServiciosCaracteristicasOpciones(CveEmpresa, CveSubProyecto) Then
|
||||||
'' Respuesta.Datos = objPSCaracteristicas.DtResultados
|
Respuesta.Datos = objPSCaracteristicas.DtResultados
|
||||||
'' Respuesta.Datos.TableName = "Resultados"
|
Respuesta.Datos.TableName = "Resultados"
|
||||||
'' Respuesta.HuboError = False
|
Respuesta.HuboError = False
|
||||||
'' Else
|
Else
|
||||||
'' Respuesta.Descripcion = "HUBO UN ERROR"
|
Respuesta.Descripcion = "HUBO UN ERROR"
|
||||||
'' End If
|
End If
|
||||||
|
|
||||||
'' objPSCaracteristicas.Dispose()
|
objPSCaracteristicas.Dispose()
|
||||||
'' Return Respuesta
|
Return Respuesta
|
||||||
''End Function
|
End Function
|
||||||
|
|
||||||
<WebMethod()>
|
<WebMethod()>
|
||||||
Public Function GetProductosServiciosPaquetes(CveEmpresa As Integer) As RespuestaWS
|
Public Function GetProductosServiciosPaquetes(CveEmpresa As Integer) As RespuestaWS
|
||||||
@@ -736,18 +736,28 @@ Public Class WS_PuntoVenta
|
|||||||
|
|
||||||
<WebMethod()>
|
<WebMethod()>
|
||||||
Public Function GetUsuarios(CveEmpresa As Integer) As RespuestaWS
|
Public Function GetUsuarios(CveEmpresa As Integer) As RespuestaWS
|
||||||
Dim objUsuarios As New ClsSisUsuarios
|
|
||||||
Dim Respuesta As New RespuestaWS
|
Dim Respuesta As New RespuestaWS
|
||||||
|
Respuesta.HuboError = False
|
||||||
|
|
||||||
If objUsuarios.GetUsuarios(-1) Then
|
Using objUsuarios As New ClsSisUsuarios
|
||||||
Respuesta.Datos = objUsuarios.DtResultados.FiltraParametros(String.Format("CveEmpresa = {0} AND Estatus = 1 AND CveSucursal > 0", CveEmpresa.ToString))
|
|
||||||
Respuesta.Datos.TableName = "Resultados"
|
If objUsuarios.GetUsuarios(-1) Then
|
||||||
Respuesta.HuboError = False
|
Respuesta.Datos = objUsuarios.DtResultados.FiltraParametros(String.Format("CveEmpresa = {0} AND Estatus = 1 ", CveEmpresa))
|
||||||
Else
|
Respuesta.Datos.TableName = "Resultados"
|
||||||
Respuesta.Descripcion = "HUBO UN ERROR"
|
Else
|
||||||
End If
|
Respuesta.HuboError = True
|
||||||
|
Respuesta.Descripcion = "HUBO UN ERROR"
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
Using objsubproy As New ClsSubProyectos
|
||||||
|
If objsubproy.GetSubProyectosUsuarios(CveEmpresa:=CveEmpresa) Then
|
||||||
|
|
||||||
|
Respuesta.Datos2 = objsubproy.DtResultados
|
||||||
|
Respuesta.Datos2.TableName = "Resultados"
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Using
|
||||||
|
|
||||||
objUsuarios.Dispose()
|
|
||||||
Return Respuesta
|
Return Respuesta
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|||||||
@@ -74,21 +74,38 @@ Public Class wsSIG
|
|||||||
Dim Retorno As UsuarioWs = Nothing
|
Dim Retorno As UsuarioWs = Nothing
|
||||||
Dim ArrCadena As String() = DecriptaCadena(Cadena, "AES")
|
Dim ArrCadena As String() = DecriptaCadena(Cadena, "AES")
|
||||||
|
|
||||||
If ArrCadena IsNot Nothing AndAlso ArrCadena.Count = 5 Then
|
If ArrCadena IsNot Nothing AndAlso ArrCadena.Count.Contiene(New Integer() {5, 7}) Then
|
||||||
Dim Usuario, Contrasenia, IMEI, Version As String
|
Dim Usuario, Contrasenia, IMEI, Version As String
|
||||||
|
Dim CveSubProyecto As Integer = 0
|
||||||
|
Dim reqCveSubProyecto As Integer = -1
|
||||||
|
Dim CveEmpresa As Integer = -1
|
||||||
|
Dim validatesubproyecto As Boolean = False
|
||||||
Dim Fecha As DateTime
|
Dim Fecha As DateTime
|
||||||
Usuario = ArrCadena(0) : Contrasenia = ArrCadena(1) : IMEI = ArrCadena(2) : Version = ArrCadena(3) : Fecha = ArrCadena(4).ToString.ToDate
|
Usuario = ArrCadena(0) : Contrasenia = ArrCadena(1) : IMEI = ArrCadena(2) : Version = ArrCadena(3) : Fecha = ArrCadena(4).ToString.ToDate
|
||||||
|
If ArrCadena.Length > 6 Then
|
||||||
|
reqCveSubProyecto = ArrCadena(5).ToString.ToEntero()
|
||||||
|
CveEmpresa = ArrCadena(6).ToString.ToEntero()
|
||||||
|
validatesubproyecto = True
|
||||||
|
End If
|
||||||
'si la fecha que me envía es de cuando menos hace un minuto, se permite accesar, para que no se copie ese parámetro y se esté recuperando información "medida de seguridad"
|
'si la fecha que me envía es de cuando menos hace un minuto, se permite accesar, para que no se copie ese parámetro y se esté recuperando información "medida de seguridad"
|
||||||
If Fecha > Now.AddSeconds(TiempoValido) Then
|
If Fecha > Now.AddSeconds(TiempoValido) Then
|
||||||
|
|
||||||
Dim ttDato As Usuario
|
Dim ttDato As Usuario = Nothing
|
||||||
Dim tUsuario As New ClsSisUsuarios
|
Using tUsuario As New ClsSisUsuarios()
|
||||||
|
ttDato = tUsuario.ValidaUsuario(Usuario, Encripta(Contrasenia), IMEI, CveEmpresa)
|
||||||
ttDato = tUsuario.ValidaUsuario(Usuario, Encripta(Contrasenia), IMEI)
|
End Using
|
||||||
|
If validatesubproyecto Then
|
||||||
|
|
||||||
|
Using objsubproy As New ClsSubProyectos()
|
||||||
|
If objsubproy.GetSubProyectosUsuarios(CveUsuario:=ttDato.CveUsuario, CveSubProyecto:=reqCveSubProyecto) Then
|
||||||
|
If objsubproy.DtResultados.FiltroPrimero(String.Format("CveSubProyecto={0}", reqCveSubProyecto)) IsNot Nothing Then
|
||||||
|
CveSubProyecto = reqCveSubProyecto
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
End If
|
||||||
If ttDato IsNot Nothing Then
|
If ttDato IsNot Nothing Then
|
||||||
Retorno = New UsuarioWs
|
Retorno = New UsuarioWs()
|
||||||
|
|
||||||
Retorno.CveUsuario = ttDato.CveUsuario
|
Retorno.CveUsuario = ttDato.CveUsuario
|
||||||
'Retorno.Usuario = ttDato.Usuario
|
'Retorno.Usuario = ttDato.Usuario
|
||||||
@@ -98,13 +115,12 @@ Public Class wsSIG
|
|||||||
Retorno.CveEmpresa = ttDato.CveEmpresa
|
Retorno.CveEmpresa = ttDato.CveEmpresa
|
||||||
'Retorno.Empresa = ttDato.NombreEmpresa
|
'Retorno.Empresa = ttDato.NombreEmpresa
|
||||||
Retorno.CveVendedor = ttDato.CveVendedor
|
Retorno.CveVendedor = ttDato.CveVendedor
|
||||||
Retorno.CveSucursal = ttDato.CveSucursal
|
Retorno.CveSucursal = CveSubProyecto
|
||||||
'Retorno.Contraseña = ttDato.Contraseña
|
'Retorno.Contraseña = ttDato.Contraseña
|
||||||
'Retorno.IMEI = IMEI
|
'Retorno.IMEI = IMEI
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
tUsuario.Dispose()
|
|
||||||
Else
|
Else
|
||||||
Cadena.GuardaLog()
|
Cadena.GuardaLog()
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -281,7 +281,7 @@
|
|||||||
} else {
|
} else {
|
||||||
CargaGraficaPastel();
|
CargaGraficaPastel();
|
||||||
}
|
}
|
||||||
$('.LblTituloGrafica').text($(obj).parent().parent().text());
|
$('.LblTituloGrafica').text($(obj).closest('tr').text().trim());
|
||||||
}
|
}
|
||||||
function CargaGraficaBarras() {
|
function CargaGraficaBarras() {
|
||||||
let data = cdatos;
|
let data = cdatos;
|
||||||
|
|||||||
@@ -300,7 +300,6 @@
|
|||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
|
||||||
@@ -322,7 +321,7 @@
|
|||||||
} else {
|
} else {
|
||||||
CargaGraficaPastel();
|
CargaGraficaPastel();
|
||||||
}
|
}
|
||||||
$('.LblTituloGrafica').text($(obj).parent().parent().text());
|
$('.LblTituloGrafica').text($(obj).closest('tr').text().trim());
|
||||||
}
|
}
|
||||||
function CargaGraficaBarras() {
|
function CargaGraficaBarras() {
|
||||||
let data = cdatos;
|
let data = cdatos;
|
||||||
@@ -396,7 +395,7 @@
|
|||||||
function cargaGraficaBarras2() {
|
function cargaGraficaBarras2() {
|
||||||
//Hypgrafica
|
//Hypgrafica
|
||||||
$("#DivModalGrafica").modal();
|
$("#DivModalGrafica").modal();
|
||||||
$('.LblTituloGrafica').text('grafica');
|
$('.LblTituloGrafica').text('Grafica');
|
||||||
let items = []
|
let items = []
|
||||||
let data;
|
let data;
|
||||||
let series = [];
|
let series = [];
|
||||||
@@ -518,7 +517,6 @@
|
|||||||
<script>
|
<script>
|
||||||
function LimpiaCeros(Divisor) {
|
function LimpiaCeros(Divisor) {
|
||||||
$('.ceros').each(function (i, obj) {
|
$('.ceros').each(function (i, obj) {
|
||||||
debugger;
|
|
||||||
|
|
||||||
if ($(this).html() == '0.00' || $(this).html() == '0.00%') {
|
if ($(this).html() == '0.00' || $(this).html() == '0.00%') {
|
||||||
$(this).html('-');
|
$(this).html('-');
|
||||||
@@ -540,7 +538,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function FormatoNumeroIPP(Importe, Decimales) {
|
function FormatoNumeroIPP(Importe, Decimales) {
|
||||||
debugger;
|
|
||||||
if (typeof Decimales === 'undefined') { Decimales = 2; }
|
if (typeof Decimales === 'undefined') { Decimales = 2; }
|
||||||
|
|
||||||
if (isNaN(parseInt(Importe))) return "NaN";
|
if (isNaN(parseInt(Importe))) return "NaN";
|
||||||
|
|||||||
@@ -227,7 +227,7 @@
|
|||||||
} else {
|
} else {
|
||||||
CargaGraficaPastel();
|
CargaGraficaPastel();
|
||||||
}
|
}
|
||||||
$('.LblTituloGrafica').text($(obj).parent().parent().text().trim());
|
$('.LblTituloGrafica').text($(obj).closest('tr').text().trim());
|
||||||
}
|
}
|
||||||
function CargaGraficaBarras() {
|
function CargaGraficaBarras() {
|
||||||
let data = cdatos;
|
let data = cdatos;
|
||||||
|
|||||||
@@ -14,6 +14,18 @@
|
|||||||
width: 16px;
|
width: 16px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*#grafInfo .chksino label {
|
||||||
|
margin-left: -95px;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
.chksino label::before {
|
||||||
|
content: 'B';
|
||||||
|
}
|
||||||
|
|
||||||
|
.chksino label::after {
|
||||||
|
content: 'L';
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||||
@@ -784,16 +796,26 @@
|
|||||||
CssClass="ADSCROLLER2 table table-striped table-advance table-hover" data-cols="1" data-heightmenos="300"
|
CssClass="ADSCROLLER2 table table-striped table-advance table-hover" data-cols="1" data-heightmenos="300"
|
||||||
Style="margin-top: -10px; text-align: center;" GridLines="None">
|
Style="margin-top: -10px; text-align: center;" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField>
|
<%--<asp:TemplateField HeaderStyle-HorizontalAlign="Left">
|
||||||
|
<HeaderTemplate>
|
||||||
|
<asp:HyperLink ID="Hypgraficagral" runat="server" CssClass="Texto Hypgraficagral" NavigateUrl="javascript:void(0);" onclick="return cargaGraficaBarras2('Analisis centro de costos');"><i class="fa fa-bar-chart" aria-hidden="true"></i></asp:HyperLink>
|
||||||
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<%--<asp:Label ID="LbNombre" runat="server" Text='<%# Eval("Nombre")%>'></asp:Label>--%>
|
<asp:CheckBox ID="chkgraf" CssClass="chkgraf" runat="server" />
|
||||||
<asp:HyperLink ID="Hypgrafica" runat="server" CssClass="Texto Hypgrafica" NavigateUrl="javascript:void(0);" onclick="return HandlerGraf(this, event);" ><i class="fa fa-bar-chart" aria-hidden="true"></i></asp:HyperLink>
|
<asp:HyperLink ID="Hypgrafica" runat="server" CssClass="Texto Hypgrafica" NavigateUrl="javascript:void(0);" onclick="return HandlerGraf(this, event);"><i class="fa fa-bar-chart" aria-hidden="true"></i></asp:HyperLink>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>--%>
|
||||||
|
<asp:TemplateField HeaderStyle-HorizontalAlign="Left">
|
||||||
|
<HeaderTemplate>
|
||||||
|
<%--<asp:HyperLink ID="Hypgraficagral" runat="server" CssClass="Texto Hypgraficagral" NavigateUrl="javascript:void(0);" onclick="return cargaGraficaBarras2('Analisis centro de costos');"><i class="fa fa-bar-chart" aria-hidden="true"></i></asp:HyperLink>--%>
|
||||||
|
<asp:Label ID="LbTitulo" runat="server" Style="padding-left: 20px;" Font-Size="14px" Text="INGRESOS Y OTROS BENEFICIOS"></asp:Label>
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox ID="chkgraf" CssClass="chkgraf" runat="server" />
|
||||||
|
<asp:HyperLink ID="Hypgrafica" runat="server" CssClass="Texto Hypgrafica" NavigateUrl="javascript:void(0);" onclick="return HandlerGraf(this, event);"><i class="fa fa-bar-chart" aria-hidden="true"></i></asp:HyperLink>
|
||||||
<asp:HyperLink ID="HLNombre" runat="server" Text='<%# Eval("Nombre")%>' CssClass="Texto" Target="_blank"></asp:HyperLink>
|
<asp:HyperLink ID="HLNombre" runat="server" Text='<%# Eval("Nombre")%>' CssClass="Texto" Target="_blank"></asp:HyperLink>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<ItemStyle HorizontalAlign="Left" />
|
<ItemStyle HorizontalAlign="Left" />
|
||||||
<HeaderTemplate>
|
|
||||||
<asp:Label ID="LbTitulo" runat="server" Style="padding-left: 20px;" Font-Size="14px" Text="INGRESOS Y OTROS BENEFICIOS"></asp:Label>
|
|
||||||
</HeaderTemplate>
|
|
||||||
<HeaderStyle HorizontalAlign="Left" Width="291px" />
|
<HeaderStyle HorizontalAlign="Left" Width="291px" />
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
@@ -857,14 +879,14 @@
|
|||||||
<Columns>
|
<Columns>
|
||||||
|
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<ItemTemplate>
|
|
||||||
<asp:HyperLink ID="Hypgrafica" runat="server" CssClass="Texto Hypgrafica" NavigateUrl="javascript:void(0);" onclick="return HandlerGraf(this, event);"><i class="fa fa-bar-chart" aria-hidden="true"></i></asp:HyperLink>
|
|
||||||
<asp:Label ID="LbNombre" runat="server" Text='<%# Eval("Nombre")%>'></asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
<ItemStyle HorizontalAlign="Left" />
|
<ItemStyle HorizontalAlign="Left" />
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
<asp:Label ID="LbTitulo" runat="server" Style="padding-left: 20px;" Font-Size="14px" Text="GASTOS Y OTRAS PÉRDIDAS"></asp:Label>
|
<asp:Label ID="LbTitulo" runat="server" Style="padding-left: 20px;" Font-Size="14px" Text="GASTOS Y OTRAS PÉRDIDAS"></asp:Label>
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:HyperLink ID="Hypgrafica" runat="server" CssClass="Texto Hypgrafica" NavigateUrl="javascript:void(0);" onclick="return HandlerGraf(this, event);"><i class="fa fa-bar-chart" aria-hidden="true"></i></asp:HyperLink>
|
||||||
|
<asp:Label ID="LbNombre" runat="server" Text='<%# Eval("Nombre")%>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
<HeaderStyle HorizontalAlign="Left" Width="400px" />
|
<HeaderStyle HorizontalAlign="Left" Width="400px" />
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
@@ -1035,6 +1057,40 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="DivModalGraficaGral" class="modal ADS fade" role="dialog">
|
||||||
|
<asp:UpdatePanel class="modal-dialog modal-lg" style="width: 1300px" runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
|
<h4 class="modal-title">
|
||||||
|
<asp:Label CssClass="LblTituloGraficaGral" runat="server" ClientIDMode="Static" Text="">Analisis centro de costos</asp:Label>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-1"></div>
|
||||||
|
<label class="col-md-2 truncate" style="display: inline-block; padding-top: 8px; font-weight: bold;">Seleccione el tipo de grafica:</label>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<asp:RadioButtonList ID="rdblistgrafica" CssClass="rdblistgrafica" runat="server" RepeatDirection="Horizontal">
|
||||||
|
<asp:ListItem Selected="True" Text="Barras" Value="1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Lineas" Value="2"></asp:ListItem>
|
||||||
|
</asp:RadioButtonList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="grafInfo">
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
<div id="chartdivgral"></div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
|
||||||
@@ -1052,9 +1108,9 @@
|
|||||||
$("#DivModalGrafica").modal();
|
$("#DivModalGrafica").modal();
|
||||||
cdatos = $(obj).data('values');
|
cdatos = $(obj).data('values');
|
||||||
if (currentid == 1) {
|
if (currentid == 1) {
|
||||||
CargaGraficaBarras();
|
CargaGraficaBarras();
|
||||||
} else {
|
} else {
|
||||||
CargaGraficaPastel();
|
CargaGraficaPastel();
|
||||||
}
|
}
|
||||||
$('.LblTituloGrafica').text($(obj).parent().text());
|
$('.LblTituloGrafica').text($(obj).parent().text());
|
||||||
}
|
}
|
||||||
@@ -1114,16 +1170,217 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
function ADSBegin() {
|
function ADSBegin() {
|
||||||
$('.DdlGrafica').on('select2:select', function (e) {
|
$('.DdlGrafica').on('select2:select', function (e) {
|
||||||
var data = e.params.data;
|
var data = e.params.data;
|
||||||
currentid = data.id;
|
currentid = data.id;
|
||||||
if (currentid == 1) {
|
if (currentid == 1) {
|
||||||
CargaGraficaBarras();
|
CargaGraficaBarras();
|
||||||
} else {
|
} else {
|
||||||
CargaGraficaPastel();
|
CargaGraficaPastel();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$('.DdlGrafica').removeClass('DdlGrafica')
|
$(".rdblistgrafica:not(.clicked) input").change(cargaGraficaBarras2);
|
||||||
|
|
||||||
|
$('.rdblistgrafica').addClass('clicked')
|
||||||
|
$('.DdlGrafica').removeClass('DdlGrafica')
|
||||||
|
|
||||||
|
|
||||||
|
initamgrafica();
|
||||||
}
|
}
|
||||||
|
let objetos;
|
||||||
|
let Colores = ["#FF0F00", "#FF6600", "#F8FF01", "#04D215", "#2A0CD0", "#8A0CCF", "#CD0D74", "#754DEB", "#DDDDDD", "#999999", "#000000"];
|
||||||
|
|
||||||
|
function cargaGraficaBarras2(Titulo) {
|
||||||
|
$('.LblTituloGraficaGral').text(Titulo);
|
||||||
|
cargaGraficaBarras2();
|
||||||
|
}
|
||||||
|
function cargaGraficaBarras2() {
|
||||||
|
|
||||||
|
//Hypgrafica
|
||||||
|
$("#DivModalGraficaGral").modal();
|
||||||
|
let infogral = $('#grafInfo');
|
||||||
|
infogral.find('>*').remove();
|
||||||
|
let items = []
|
||||||
|
let data;
|
||||||
|
let icolor = 0;
|
||||||
|
let tipografica = $('.rdblistgrafica input:checked').val();
|
||||||
|
$('.chkgraf input:checked').each(function () {
|
||||||
|
data = $(this).closest('tr').find('.Hypgrafica').data('values')
|
||||||
|
let name = $(this).closest('tr').text().trim()
|
||||||
|
items.push({ id: icolor, data: data, name: name, Color: Colores[icolor], tipografica })
|
||||||
|
gettitlegraf(infogral, icolor, Colores[icolor], name, tipografica);
|
||||||
|
icolor = icolor + 1;
|
||||||
|
if (icolor >= Colores.length) { icolor = 0; }
|
||||||
|
});
|
||||||
|
objetos = items;
|
||||||
|
|
||||||
|
$(".chkonchange input").each(function () {
|
||||||
|
let _this = $(this)
|
||||||
|
_this.change(function () {
|
||||||
|
let _this = $(this)
|
||||||
|
let id = Number(_this.data('id'))
|
||||||
|
objetos[id].tipografica = _this.is(':checked') ? 1 : 2;
|
||||||
|
ShowGraf2();
|
||||||
|
})
|
||||||
|
});
|
||||||
|
ShowGraf2();
|
||||||
|
}
|
||||||
|
function gettitlegraf(infogral, id, Color, name, tipografica) {
|
||||||
|
let strtipografica = '<span class="chksino chkonchange" ><input id="chk' + id + '" ' + (tipografica == 1 ? 'checked="checked"' : '"') + ' data-id="' + id + '" type="checkbox" name="nchk' + id + '"><label for="chk' + id + '"> </label></span>';
|
||||||
|
|
||||||
|
let contenedor = $("<div class='row'></div>");
|
||||||
|
let divcolspan = $("<div class='col-md-1'></div>");
|
||||||
|
let divcolor = $('<div class="col-md-1"><div style="width:20px;height:10px;background-color:' + Color + ';"></div> </div>');
|
||||||
|
let divtexto = $("<div class='col-md-8'>" + name + "</div>");
|
||||||
|
let divtipografica = $("<div class='col-md-1'>" + strtipografica + "</div>");
|
||||||
|
infogral.append(contenedor);
|
||||||
|
contenedor.append(divcolspan); contenedor.append(divcolor); contenedor.append(divtexto); contenedor.append(divtipografica);
|
||||||
|
}
|
||||||
|
function ShowGraf2() {
|
||||||
|
let items = objetos;
|
||||||
|
let series = [];
|
||||||
|
if (items) {
|
||||||
|
data = items[0].data;
|
||||||
|
series.push((
|
||||||
|
(items[0].tipografica == 1) ?
|
||||||
|
{
|
||||||
|
"balloonText": "[[title]]: <b>[[value]]</b> [[Moneda]]",
|
||||||
|
"colorField": "Color",
|
||||||
|
"fillAlphas": 1,
|
||||||
|
"lineAlpha": 0.1,
|
||||||
|
"type": "column",
|
||||||
|
"title": items[0].name,
|
||||||
|
"valueField": 'Valor'
|
||||||
|
} :
|
||||||
|
{
|
||||||
|
"balloonText": "[[title]]: <b>[[value]]</b> [[Moneda]]",
|
||||||
|
"colorField": "Color",
|
||||||
|
"bullet": "round",
|
||||||
|
"dashLength": 3,
|
||||||
|
"colorField": "color",
|
||||||
|
"type": "line",
|
||||||
|
"title": items[0].name,
|
||||||
|
"valueField": "Valor"
|
||||||
|
}
|
||||||
|
));
|
||||||
|
|
||||||
|
for (var i = 0; i < data.length; i++) {
|
||||||
|
data[i]['Color'] = items[0].Color
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var indexcol = 1; indexcol < items.length; indexcol++) {
|
||||||
|
let cdatos = items[indexcol].data;
|
||||||
|
let valueField = 'Valor' + indexcol;
|
||||||
|
let colorField = 'Color' + indexcol;
|
||||||
|
let tipografica = "column";
|
||||||
|
for (var i = 0; i < cdatos.length; i++) {
|
||||||
|
data[i][valueField] = cdatos[i].Valor
|
||||||
|
data[i][colorField] = items[indexcol].Color
|
||||||
|
}
|
||||||
|
series.push((
|
||||||
|
(items[indexcol].tipografica == 1) ?
|
||||||
|
{
|
||||||
|
"balloonText": "[[title]]: <b>[[value]]</b> [[Moneda]]",
|
||||||
|
"colorField": colorField,
|
||||||
|
"fillAlphas": 1,
|
||||||
|
"lineAlpha": 0.1,
|
||||||
|
"type": "column",
|
||||||
|
"title": items[indexcol].name,
|
||||||
|
"valueField": valueField
|
||||||
|
} :
|
||||||
|
{
|
||||||
|
"balloonText": "[[title]]: <b>[[value]]</b> [[Moneda]]",
|
||||||
|
"colorField": colorField,
|
||||||
|
"bullet": "round",
|
||||||
|
"dashLength": 3,
|
||||||
|
"colorField": "color",
|
||||||
|
"type": "line",
|
||||||
|
"title": items[indexcol].name,
|
||||||
|
"valueField": valueField
|
||||||
|
}
|
||||||
|
));
|
||||||
|
}
|
||||||
|
var chart = AmCharts.makeChart("chartdivgral", {
|
||||||
|
"type": "serial",
|
||||||
|
"theme": "light",
|
||||||
|
"dataProvider": data,
|
||||||
|
"startDuration": 2, "legend": {
|
||||||
|
|
||||||
|
"generateFromData": true // "data": data.map(function(num) { return {title:num.Texto ,color:num.Color}; })
|
||||||
|
},
|
||||||
|
"valueAxes": [{
|
||||||
|
"position": "left",
|
||||||
|
"title": "Ventas"
|
||||||
|
}],
|
||||||
|
"graphs": series,
|
||||||
|
"depth3D": 20,
|
||||||
|
"angle": 30,
|
||||||
|
"chartCursor": {
|
||||||
|
"categoryBalloonEnabled": false,
|
||||||
|
"cursorAlpha": 0,
|
||||||
|
"zoomable": false
|
||||||
|
},
|
||||||
|
"categoryField": "Texto",
|
||||||
|
"categoryAxis": {
|
||||||
|
"gridPosition": "start",
|
||||||
|
"labelRotation": 90
|
||||||
|
},
|
||||||
|
"export": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function initamgrafica() {
|
||||||
|
AmCharts.addInitHandler(function (chart) {
|
||||||
|
function handleCustomMarkerToggle(legendEvent) {
|
||||||
|
var dataProvider = legendEvent.chart.dataProvider;
|
||||||
|
var itemIndex;
|
||||||
|
legendEvent.chart.toggleLegend = true;
|
||||||
|
if (undefined !== legendEvent.dataItem.hidden && legendEvent.dataItem.hidden) {
|
||||||
|
legendEvent.dataItem.hidden = false;
|
||||||
|
dataProvider.push(legendEvent.dataItem.storedObj);
|
||||||
|
legendEvent.dataItem.storedObj = undefined;
|
||||||
|
dataProvider.sort(function (lhs, rhs) {
|
||||||
|
return lhs.dataIdx - rhs.dataIdx;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
legendEvent.dataItem.hidden = true;
|
||||||
|
for (var i = 0; i < dataProvider.length; ++i) {
|
||||||
|
if (dataProvider[i].dataIdx === legendEvent.dataItem.dataIdx) {
|
||||||
|
itemIndex = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
legendEvent.dataItem.storedObj = dataProvider[itemIndex];
|
||||||
|
dataProvider.splice(itemIndex, 1);
|
||||||
|
}
|
||||||
|
legendEvent.chart.validateData();
|
||||||
|
}
|
||||||
|
if (!chart.legend || !chart.legend.enabled || !chart.legend.generateFromData) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var categoryField = chart.categoryField;
|
||||||
|
var colorField = chart.graphs[0].lineColorField || chart.graphs[0].fillColorsField || chart.graphs[0].colorField;
|
||||||
|
var legendData = chart.dataProvider.map(function (data, idx) {
|
||||||
|
var markerData = {
|
||||||
|
"title": data[categoryField],
|
||||||
|
"color": data[colorField],
|
||||||
|
"dataIdx": idx
|
||||||
|
};
|
||||||
|
if (!markerData.color) {
|
||||||
|
markerData.color = chart.graphs[0].lineColor;
|
||||||
|
}
|
||||||
|
data.dataIdx = idx;
|
||||||
|
return markerData;
|
||||||
|
});
|
||||||
|
|
||||||
|
chart.legend.data = legendData;
|
||||||
|
chart.legend.switchable = true;
|
||||||
|
chart.legend.addListener("clickMarker", handleCustomMarkerToggle);
|
||||||
|
|
||||||
|
}, ["serial"]);
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|||||||
@@ -2656,14 +2656,14 @@ select.select2-offscreen, select.select2-offscreen:focus {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
content: "Arrastre el archivo";
|
content: "Arrastre el archivo";
|
||||||
color: #808080;
|
color: #808080;
|
||||||
font-size: 30px;
|
font-size: 20px;
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
.addropzone.dz-clickable:after {
|
.addropzone.dz-clickable:after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: "o presione doble click";
|
content: "o presione doble click";
|
||||||
color: #808080;
|
color: #808080;
|
||||||
font-size: 30px;
|
font-size: 20px;
|
||||||
margin-top: 45px;
|
margin-top: 45px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,13 @@
|
|||||||
content: "Pegar aquí";
|
content: "Pegar aquí";
|
||||||
}
|
}
|
||||||
|
|
||||||
.addropzone.dz-clickable:before {
|
.addropzone.dz-clickable:before{
|
||||||
margin-top: 40px;
|
margin-top: 15px;
|
||||||
|
}
|
||||||
|
.addropzone.dz-clickable:before,
|
||||||
|
.addropzone.dz-clickable:after {
|
||||||
|
font-size: 20px;
|
||||||
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pnlCorreo {
|
.pnlCorreo {
|
||||||
@@ -79,18 +84,19 @@
|
|||||||
|
|
||||||
<div class="pnlCorreo" style="margin-bottom: 5px;">
|
<div class="pnlCorreo" style="margin-bottom: 5px;">
|
||||||
<div class="headerCorreo">
|
<div class="headerCorreo">
|
||||||
<h3 class="panel-title" style="display: inline-block;">Para</h3> <asp:LinkButton ID="LnkAgregar" OnClick="LnkAgregar_Click" CssClass="btn btn-default" runat="server"><i class="fa fa-plus"></i></asp:LinkButton>
|
<h3 class="panel-title" style="display: inline-block;">Para</h3>
|
||||||
|
<asp:LinkButton ID="LnkAgregar" OnClick="LnkAgregar_Click" CssClass="btn btn-default" runat="server"><i class="fa fa-plus"></i></asp:LinkButton>
|
||||||
</div>
|
</div>
|
||||||
<div class="bodycorreos">
|
<div class="bodycorreos">
|
||||||
<asp:Literal ID="LtlPara" runat="server"></asp:Literal>
|
<asp:Literal ID="LtlPara" runat="server"></asp:Literal>
|
||||||
<asp:TextBox ID="TxtCorreo" Enabled ="false" runat="server" CssClass="form-control " TextMode="MultiLine" Rows="3"></asp:TextBox>
|
<asp:TextBox ID="TxtCorreo" Enabled="false" runat="server" CssClass="form-control " TextMode="MultiLine" Rows="3"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RfvCorreo" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtCorreo" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Correo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpCircular"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RfvCorreo" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtCorreo" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Correo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpCircular"></asp:RequiredFieldValidator>
|
||||||
<%--<ajax:ValidatorCalloutExtender ID="VCEFolio" runat="server" HighlightCssClass="vco" TargetControlID="RfvCorreo" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
<%--<ajax:ValidatorCalloutExtender ID="VCEFolio" runat="server" HighlightCssClass="vco" TargetControlID="RfvCorreo" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||||||
<%--
|
<%--
|
||||||
<asp:LinkButton ID="Lnkuser1" runat="server" CssClass="linkCorreo" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar Correo?" data-btn-ok-label="si">Jorge caudillo(jcaudillo@adsistemas.mx)</asp:LinkButton>;
|
<asp:LinkButton ID="Lnkuser1" runat="server" CssClass="linkCorreo" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar Correo?" data-btn-ok-label="si">Jorge caudillo(jcaudillo@adsistemas.mx)</asp:LinkButton>;
|
||||||
<asp:LinkButton ID="Lnkuser2" runat="server" CssClass="linkCorreo" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar Correo?" data-btn-ok-label="si">Julian Moreno(Julianmoreno@adsistemas.mx)</asp:LinkButton>;
|
<asp:LinkButton ID="Lnkuser2" runat="server" CssClass="linkCorreo" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar Correo?" data-btn-ok-label="si">Julian Moreno(Julianmoreno@adsistemas.mx)</asp:LinkButton>;
|
||||||
<asp:LinkButton ID="LnkAgregar" OnClick="LnkAgregar_Click" CssClass="btn btn-default" runat="server"><i class="fa fa-plus"></i></asp:LinkButton>
|
<asp:LinkButton ID="LnkAgregar" OnClick="LnkAgregar_Click" CssClass="btn btn-default" runat="server"><i class="fa fa-plus"></i></asp:LinkButton>
|
||||||
--%>
|
--%>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -119,14 +125,14 @@
|
|||||||
<h3 class="panel-title ">Adjuntar Archivos:</h3>
|
<h3 class="panel-title ">Adjuntar Archivos:</h3>
|
||||||
<asp:TextBox ID="TxtArchivo" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtArchivo" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
||||||
|
|
||||||
<div id="archivosDiv" runat="server" class="row" visible="false">
|
<div id="archivosDiv" runat="server" class="row" visible="false">
|
||||||
<div class="col-md-1" style="width: 30%">
|
<div class="col-md-1" style="width: 30%">
|
||||||
<asp:Label runat="server" ID="Label1">Archivo cargado:</asp:Label>
|
<asp:Label runat="server" ID="Label1">Archivo cargado:</asp:Label>
|
||||||
</div>
|
|
||||||
<div class="col-md-1" style="width: 70%">
|
|
||||||
<asp:HyperLink runat="server" ID="HkArchivo" Style="color: #23527c;"></asp:HyperLink>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-1" style="width: 70%">
|
||||||
|
<asp:HyperLink runat="server" ID="HkArchivo" Style="color: #23527c;"></asp:HyperLink>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bodycorreos ">
|
<div class="bodycorreos ">
|
||||||
<asp:TextBox ID="TxtCircular" runat="server" CssClass="form-control ADSckeditor" TextMode="MultiLine" Rows="3"></asp:TextBox>
|
<asp:TextBox ID="TxtCircular" runat="server" CssClass="form-control ADSckeditor" TextMode="MultiLine" Rows="3"></asp:TextBox>
|
||||||
@@ -135,10 +141,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-center">
|
<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="BtnGuardar" OnClick="BtnGuardar_Click" runat="server" CssClass="btn btn-primary" Text="Guardar" Visible="true" ValidationGroup="GrpCircular" />
|
||||||
<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" />
|
<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>
|
</div>
|
||||||
|
|
||||||
<div id='<%= iddivAgregarPara %>' class="modal ADS fade" role="dialog">
|
<div id='<%= iddivAgregarPara %>' class="modal ADS fade" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
|
|||||||
@@ -24,7 +24,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.addropzone.dz-clickable:before {
|
.addropzone.dz-clickable:before {
|
||||||
margin-top: 40px;
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
.addropzone.dz-clickable:before, .addropzone.dz-clickable:after {
|
||||||
|
color: #808080;
|
||||||
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pnlCorreo {
|
.pnlCorreo {
|
||||||
|
|||||||
@@ -52,8 +52,13 @@
|
|||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.filediv .addropzone.dz-clickable:before, .filediv .addropzone.dz-clickable:after {
|
||||||
|
color: #808080;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
.filediv .addropzone {
|
.filediv .addropzone {
|
||||||
min-height: 100px;
|
min-height: 130px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divArchivo {
|
.divArchivo {
|
||||||
@@ -124,11 +129,12 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
.porcentajelabel{
|
|
||||||
color: #ed5565;
|
.porcentajelabel {
|
||||||
font-size: 64px;
|
color: #ed5565;
|
||||||
font-weight:bold;
|
font-size: 64px;
|
||||||
}
|
font-weight: bold;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<link href="/Metronic/assets/global/plugins/ion.rangeslider/css/ion.rangeSlider.css" rel="stylesheet" type="text/css" />
|
<link href="/Metronic/assets/global/plugins/ion.rangeslider/css/ion.rangeSlider.css" rel="stylesheet" type="text/css" />
|
||||||
@@ -150,7 +156,7 @@
|
|||||||
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkAgregarCheckList" OnClick="LnkAgregarCheckList_Click" runat="server"><i class="fa fa-plus"></i> Agregar checkList</asp:LinkButton></li>
|
<asp:LinkButton ID="LnkAgregarCheckList" OnClick="LnkAgregarCheckList_Click" runat="server"><i class="fa fa-plus"></i> Agregar checklist</asp:LinkButton></li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkcambiarEstatus" OnClick="LnkcambiarEstatus_Click" runat="server"><i class="fa fa-exchange"></i>Cambiar estatus</asp:LinkButton></li>
|
<asp:LinkButton ID="LnkcambiarEstatus" OnClick="LnkcambiarEstatus_Click" runat="server"><i class="fa fa-exchange"></i>Cambiar estatus</asp:LinkButton></li>
|
||||||
<li>
|
<li>
|
||||||
@@ -254,9 +260,9 @@
|
|||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:DropDownList ID="DdlPrioridad" runat="server" CssClass="form-control select2me input-sm" Width="100%">
|
<asp:DropDownList ID="DdlPrioridad" runat="server" CssClass="form-control select2me input-sm" Width="100%">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Baja" Value="1" ></asp:ListItem>
|
<asp:ListItem Text="Baja" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Media" Value="2" ></asp:ListItem>
|
<asp:ListItem Text="Media" Value="2"></asp:ListItem>
|
||||||
<asp:ListItem Text="Alta" Value="3" ></asp:ListItem>
|
<asp:ListItem Text="Alta" Value="3"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
<asp:Label runat="server" AssociatedControlID="DdlPrioridad">Prioridad:</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="DdlPrioridad">Prioridad:</asp:Label>
|
||||||
@@ -291,7 +297,7 @@
|
|||||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body rowpadding" >
|
<div class="portlet-body rowpadding">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
@@ -302,7 +308,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<asp:Button ID="LnkSinfuncion" OnClick="LnkSinfuncion_Click" UseSubmitBehavior="false" CssClass="btn btn-default LnkSinfuncion hidden" runat="server"></asp:Button>
|
<asp:Button ID="LnkSinfuncion" OnClick="LnkSinfuncion_Click" UseSubmitBehavior="false" CssClass="btn btn-default LnkSinfuncion hidden" runat="server"></asp:Button>
|
||||||
<asp:LinkButton ID="LnkAgregarchklistitem" OnClick="LnkAgregarchklistitem_Click" ValidationGroup="GrpTareachklist" CssClass="btn btn-primary" runat="server">Agregar</asp:LinkButton>
|
<asp:LinkButton ID="LnkAgregarchklistitem" OnClick="LnkAgregarchklistitem_Click" ValidationGroup="GrpTareachklist" CssClass="btn btn-success" runat="server">Agregar</asp:LinkButton>
|
||||||
<%--<a class="btn btn-default">Agregar</a>--%>
|
<%--<a class="btn btn-default">Agregar</a>--%>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -366,7 +372,7 @@
|
|||||||
|
|
||||||
<asp:Label runat="server" AssociatedControlID="DdlEventoEstatus">Estatus:</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="DdlEventoEstatus">Estatus:</asp:Label>
|
||||||
</div>
|
</div>
|
||||||
<asp:Label ID="lblEstatus" Style="font-size: 25px;position:absolute;" runat="server" Text="Label"></asp:Label>
|
<asp:Label ID="lblEstatus" Style="font-size: 25px; position: absolute;" runat="server" Text="Label"></asp:Label>
|
||||||
<div class="text-right porcentajelabel">
|
<div class="text-right porcentajelabel">
|
||||||
<asp:Label ID="LblPorcentaje" CssClass="LblPorcentaje" runat="server" Text="0"></asp:Label>%
|
<asp:Label ID="LblPorcentaje" CssClass="LblPorcentaje" runat="server" Text="0"></asp:Label>%
|
||||||
</div>
|
</div>
|
||||||
@@ -531,7 +537,7 @@
|
|||||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body rowpadding" >
|
<div class="portlet-body rowpadding">
|
||||||
<asp:UpdatePanel ID="UpActividades" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpActividades" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvActividades" runat="server" AutoGenerateColumns="False" CssClass="table table-striped table-advance table-hover Widthall ScrollAD GvActividades"
|
<asp:GridView ID="GvActividades" runat="server" AutoGenerateColumns="False" CssClass="table table-striped table-advance table-hover Widthall ScrollAD GvActividades"
|
||||||
@@ -724,10 +730,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtComentarioTerminarpadre" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="1"></asp:TextBox>
|
<asp:TextBox ID="TxtComentarioTerminarpadre" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="1"></asp:TextBox>
|
||||||
<asp:Label runat="server" Text="Agregar Comentario" AssociatedControlID="TxtComentarioTerminarpadre"></asp:Label>
|
<asp:Label runat="server" Text="Agregar Comentario" AssociatedControlID="TxtComentarioTerminarpadre"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -752,9 +758,9 @@
|
|||||||
<asp:Literal ID="Literal4" runat="server">Agregar relación</asp:Literal></h4>
|
<asp:Literal ID="Literal4" runat="server">Agregar relación</asp:Literal></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div >
|
<div>
|
||||||
<asp:Label runat="server" AssociatedControlID="DdlViculos">Relacionar Con:</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="DdlViculos">Relacionar Con:</asp:Label>
|
||||||
<asp:RadioButtonList ID="DdlViculos" RepeatDirection="Horizontal" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlViculos_SelectedIndexChanged">
|
<asp:RadioButtonList ID="DdlViculos" RepeatDirection="Horizontal" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DdlViculos_SelectedIndexChanged">
|
||||||
|
|
||||||
<asp:ListItem Value="2" Selected="true" Text=" Cliente"></asp:ListItem>
|
<asp:ListItem Value="2" Selected="true" Text=" Cliente"></asp:ListItem>
|
||||||
<asp:ListItem Value="3" Text=" Personal"></asp:ListItem>
|
<asp:ListItem Value="3" Text=" Personal"></asp:ListItem>
|
||||||
@@ -902,12 +908,12 @@
|
|||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
<asp:Panel ID="PnlPersonal" CssClass="form-group form-md-line-input" Visible="false" runat="server">
|
<asp:Panel ID="PnlPersonal" CssClass="form-group form-md-line-input" Visible="false" runat="server">
|
||||||
|
|
||||||
<asp:DropDownList ID="DdlPersonal" runat="server" AppendDataBoundItems="true" DataTextField="NombreCompleto" DataValueField="CvePersonal" CssClass="form-control input-sm input-medium select2me" Width="100%"></asp:DropDownList>
|
<asp:DropDownList ID="DdlPersonal" runat="server" AppendDataBoundItems="true" DataTextField="NombreCompleto" DataValueField="CvePersonal" CssClass="form-control input-sm input-medium select2me" Width="100%"></asp:DropDownList>
|
||||||
<asp:Label runat="server" AssociatedControlID="DdlPersonal">Personal:</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="DdlPersonal">Personal:</asp:Label>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
<asp:Panel ID="PnlProveedor" CssClass="form-group form-md-line-input" Visible="false" runat="server">
|
<asp:Panel ID="PnlProveedor" CssClass="form-group form-md-line-input" Visible="false" runat="server">
|
||||||
<ADS:Dropdownlost ID="DdlProveedores" UsaWebService="true" runat="server" CssStyle="width: 100%;" DataTextField="RazonSocial" DataValueField="CveProveedor" CssClass="form-control"></ADS:Dropdownlost>
|
<ADS:Dropdownlost ID="DdlProveedores" UsaWebService="true" runat="server" CssStyle="width: 100%;" DataTextField="RazonSocial" DataValueField="CveProveedor" CssClass="form-control"></ADS:Dropdownlost>
|
||||||
<asp:Label runat="server" AssociatedControlID="DdlProveedores">Proveedores:</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="DdlProveedores">Proveedores:</asp:Label>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1137,10 +1143,12 @@
|
|||||||
function CambiarTitulo(cadena) {
|
function CambiarTitulo(cadena) {
|
||||||
let TTitulo = $('#E_LtlTitulo')
|
let TTitulo = $('#E_LtlTitulo')
|
||||||
let texto = TTitulo.text();
|
let texto = TTitulo.text();
|
||||||
let splited = texto.split(" ");
|
if (texto != 'Nueva tarea') {
|
||||||
let size = splited[splited.length - 1].length;
|
let splited = texto.split(" ");
|
||||||
texto = texto.substring(0, texto.length - size) + cadena;
|
let size = splited[splited.length - 1].length;
|
||||||
TTitulo.text(texto);
|
texto = texto.substring(0, texto.length - size) + cadena;
|
||||||
|
TTitulo.text(texto);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
var avancecambio = 0;
|
var avancecambio = 0;
|
||||||
function barraavance() {
|
function barraavance() {
|
||||||
@@ -1154,7 +1162,7 @@
|
|||||||
step: .01,
|
step: .01,
|
||||||
//[disable]
|
//[disable]
|
||||||
onChange: (function () {
|
onChange: (function () {
|
||||||
setTimeout(function () { let avance = $(".TxtAvance").val(); if ( avance != Valorxyz) { avancecambio = 1; $('.LblPorcentaje').text(avance)} }, 50);
|
setTimeout(function () { let avance = $(".TxtAvance").val(); if (avance != Valorxyz) { avancecambio = 1; $('.LblPorcentaje').text(avance) } }, 50);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
|||||||
LnkcambiarEstatus.Visible = false;
|
LnkcambiarEstatus.Visible = false;
|
||||||
LnkAgregarTema.Visible = false;
|
LnkAgregarTema.Visible = false;
|
||||||
portletEstatus.Visible = false;
|
portletEstatus.Visible = false;
|
||||||
LtlTitulo.Text = "Tarea Nueva";
|
LtlTitulo.Text = "Nueva tarea";
|
||||||
TxtArchivo.Visible = true;
|
TxtArchivo.Visible = true;
|
||||||
CveUsuarioDe = UsuarioActual.CveUsuario;
|
CveUsuarioDe = UsuarioActual.CveUsuario;
|
||||||
}
|
}
|
||||||
@@ -139,17 +139,18 @@ public partial class OI_TareaDetalle : ClsPaginas
|
|||||||
}
|
}
|
||||||
private void Setpermisos()
|
private void Setpermisos()
|
||||||
{
|
{
|
||||||
|
bool permisedestatus = (CveEventoEstatus > 1 && CveEventoEstatus < 4);
|
||||||
bool esmiembro = UsuarioActual.CveUsuario.Contiene(LCveUsuarioCCP.ToArray<int>());
|
bool esmiembro = UsuarioActual.CveUsuario.Contiene(LCveUsuarioCCP.ToArray<int>());
|
||||||
bool esdeel = UsuarioActual.CveUsuario == CveUsuarioDe;
|
bool esdeel = UsuarioActual.CveUsuario == CveUsuarioDe;
|
||||||
bool esPara = UsuarioActual.CveUsuario == CveUsuarioPara;
|
bool esPara = UsuarioActual.CveUsuario == CveUsuarioPara;
|
||||||
Permisos = new OI_TareaDetalle_Permisos
|
Permisos = new OI_TareaDetalle_Permisos
|
||||||
{
|
{
|
||||||
EntrarOI = (EsNuevo || esmiembro),
|
EntrarOI = (EsNuevo || esmiembro),
|
||||||
CheckList = (EsNuevo || esdeel || esPara) && CveEventoEstatus < 4,
|
CheckList = (EsNuevo || esdeel || esPara) && permisedestatus,
|
||||||
EdicionGeneral = (EsNuevo || esdeel) && CveEventoEstatus < 4,
|
EdicionGeneral = (EsNuevo || esdeel) && permisedestatus,
|
||||||
Bitacora = esmiembro && CveEventoEstatus < 4,
|
Bitacora = esmiembro && permisedestatus,
|
||||||
Avance = esPara && CveEventoEstatus < 4,
|
Avance = esPara && permisedestatus,
|
||||||
Reasignar = esPara && CveEventoEstatus < 4,
|
Reasignar = esPara && permisedestatus,
|
||||||
Estatus1_2_3 = esPara,
|
Estatus1_2_3 = esPara,
|
||||||
Estatus4_5 = esdeel
|
Estatus4_5 = esdeel
|
||||||
};
|
};
|
||||||
@@ -229,9 +230,9 @@ public partial class OI_TareaDetalle : ClsPaginas
|
|||||||
{
|
{
|
||||||
DDlEstatus.Items.Remove(item);
|
DDlEstatus.Items.Remove(item);
|
||||||
}
|
}
|
||||||
LnkcambiarEstatus.Visible = LnkcambiarEstatus.Visible && (Permisos.Estatus1_2_3 || Permisos.Estatus4_5);
|
LnkcambiarEstatus.Visible = LnkcambiarEstatus.Visible && ((Permisos.Estatus1_2_3 && CveEventoEstatus < 4) || Permisos.Estatus4_5);
|
||||||
|
|
||||||
if (CveEventoEstatus >= 4)
|
if ( permisedestatus)
|
||||||
{
|
{
|
||||||
LnkAgregarTema.Visible = false;
|
LnkAgregarTema.Visible = false;
|
||||||
LnkUpUsuarios.Visible = false;
|
LnkUpUsuarios.Visible = false;
|
||||||
@@ -1021,6 +1022,11 @@ public partial class OI_TareaDetalle : ClsPaginas
|
|||||||
//if (DdlEventoEstatus.SelectedValue.ToEntero == 3 | DdlEventoEstatus.SelectedValue.ToEntero == 1)
|
//if (DdlEventoEstatus.SelectedValue.ToEntero == 3 | DdlEventoEstatus.SelectedValue.ToEntero == 1)
|
||||||
// EnviarCorreoCambioEstatus(false);
|
// EnviarCorreoCambioEstatus(false);
|
||||||
//CargaDatos();
|
//CargaDatos();
|
||||||
|
if (CveEstatus == 4)
|
||||||
|
{
|
||||||
|
TxtAvance.Text = "100";
|
||||||
|
LblPorcentaje.Text = string.Format("{0:##0.##}", "100".ToDecimal());
|
||||||
|
}
|
||||||
string mensaje = string.Format("Se cambió el Estatus de \"{0}\" a \"{1}\"", DdlEventoEstatus.SelectedItem.Text, DDlEstatus.SelectedItem.Text);
|
string mensaje = string.Format("Se cambió el Estatus de \"{0}\" a \"{1}\"", DdlEventoEstatus.SelectedItem.Text, DDlEstatus.SelectedItem.Text);
|
||||||
DdlEventoEstatus.SelectedValueExist(DDlEstatus.SelectedValue);
|
DdlEventoEstatus.SelectedValueExist(DDlEstatus.SelectedValue);
|
||||||
lblEstatus.Text = DdlEventoEstatus.SelectedItem.Text;
|
lblEstatus.Text = DdlEventoEstatus.SelectedItem.Text;
|
||||||
@@ -1323,11 +1329,28 @@ public partial class OI_TareaDetalle : ClsPaginas
|
|||||||
int CveUsuario = gvRow.DataKey("CveUsuario").ToString().ToEntero();
|
int CveUsuario = gvRow.DataKey("CveUsuario").ToString().ToEntero();
|
||||||
gvRow.FCCheckBox("ChkPara").Checked = false;
|
gvRow.FCCheckBox("ChkPara").Checked = false;
|
||||||
CheckBox chkCCpara = gvRow.FCCheckBox("ChkCCP");
|
CheckBox chkCCpara = gvRow.FCCheckBox("ChkCCP");
|
||||||
|
CheckBox chkpara = gvRow.FCCheckBox("ChkPara");
|
||||||
|
|
||||||
|
chkpara.Checked = false;
|
||||||
chkCCpara.Checked = false;
|
chkCCpara.Checked = false;
|
||||||
if (CveUsuario == CveUsuarioPara)
|
chkCCpara.Enabled = true;
|
||||||
|
chkpara.Enabled = true;
|
||||||
|
|
||||||
|
if ((CveUsuario == CveUsuarioPara) || (CveUsuario == CveUsuarioDe))
|
||||||
|
{
|
||||||
|
if (CveUsuario == CveUsuarioPara)
|
||||||
|
{
|
||||||
|
chkpara.Checked = true;
|
||||||
|
}
|
||||||
|
if (CveUsuario == CveUsuarioDe)
|
||||||
|
{
|
||||||
|
chkCCpara.Checked = true;
|
||||||
|
chkCCpara.Enabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (CveUsuario.Contiene(LCveUsuarioCCP.ToArray<int>()))
|
||||||
{
|
{
|
||||||
chkCCpara.Checked = true;
|
chkCCpara.Checked = true;
|
||||||
chkCCpara.Enabled = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1363,6 +1386,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
|||||||
if (CveUsuario == CveUsuarioDe)
|
if (CveUsuario == CveUsuarioDe)
|
||||||
{
|
{
|
||||||
chkCCpara.Checked = true;
|
chkCCpara.Checked = true;
|
||||||
|
chkCCpara.Enabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (CveUsuario.Contiene(LCveUsuarioCCP.ToArray<int>()))
|
else if (CveUsuario.Contiene(LCveUsuarioCCP.ToArray<int>()))
|
||||||
|
|||||||
@@ -454,7 +454,7 @@ Partial Class Sistemas_Empresa
|
|||||||
End Sub
|
End Sub
|
||||||
Protected Sub BtnGuardar_Click(sender As Object, e As System.EventArgs) Handles BtnGuardar.Click
|
Protected Sub BtnGuardar_Click(sender As Object, e As System.EventArgs) Handles BtnGuardar.Click
|
||||||
Dim ObjEmpresas As New ClsSisEmpresas
|
Dim ObjEmpresas As New ClsSisEmpresas
|
||||||
Dim ObjGral As New ClsGenerales(ObjEmpresas.IniciaTransacSQL())
|
Dim ObjGral As New ClsGenerales()
|
||||||
Dim ObjContPAQ As ClsContPAQi = Nothing
|
Dim ObjContPAQ As ClsContPAQi = Nothing
|
||||||
Dim Indicador As New ClsIndicadores(ObjEmpresas.IniciaTransacSQL())
|
Dim Indicador As New ClsIndicadores(ObjEmpresas.IniciaTransacSQL())
|
||||||
|
|
||||||
@@ -487,6 +487,7 @@ Partial Class Sistemas_Empresa
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
ViewState("CveEmpresa") = ObjEmpresas.CveEmpresa
|
ViewState("CveEmpresa") = ObjEmpresas.CveEmpresa
|
||||||
|
InicializaClasificacionIVA()
|
||||||
TextoOK = "La nueva Empresa se guardó correctamente."
|
TextoOK = "La nueva Empresa se guardó correctamente."
|
||||||
Else
|
Else
|
||||||
TextoError = "Ocurrió un error al agregar la empresa"
|
TextoError = "Ocurrió un error al agregar la empresa"
|
||||||
@@ -1549,7 +1550,7 @@ Partial Class Sistemas_Empresa
|
|||||||
If Not File.Exists(pfxname) Then
|
If Not File.Exists(pfxname) Then
|
||||||
Archivopfx = ""
|
Archivopfx = ""
|
||||||
Password = ""
|
Password = ""
|
||||||
End If
|
End If
|
||||||
Dim objempresa As New ClsSisEmpresas
|
Dim objempresa As New ClsSisEmpresas
|
||||||
objempresa.UpEmpresaFiel(ViewState("CveEmpresa").ToString().ToEntero(), Password, $"{Archivopfx}.pfx")
|
objempresa.UpEmpresaFiel(ViewState("CveEmpresa").ToString().ToEntero(), Password, $"{Archivopfx}.pfx")
|
||||||
objempresa.Dispose()
|
objempresa.Dispose()
|
||||||
|
|||||||
@@ -10,15 +10,17 @@
|
|||||||
|
|
||||||
.fileTarea .addropzone {
|
.fileTarea .addropzone {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
min-height: 100px;
|
min-height: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fileTarea .addropzone.dz-clickable:before {
|
.fileTarea .addropzone.dz-clickable:before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: "Arrastre el archivo";
|
content: "Arrastre el archivo";
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
.fileTarea .addropzone.dz-clickable:before,.fileTarea .addropzone.dz-clickable:after {
|
||||||
color: #808080;
|
color: #808080;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
margin-top: 30px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fileTarea .addropzone .dz-preview, .fileTarea .dropzone-previews .dz-preview {
|
.fileTarea .addropzone .dz-preview, .fileTarea .dropzone-previews .dz-preview {
|
||||||
@@ -116,9 +118,9 @@
|
|||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:DropDownList ID="DdlPrioridad" runat="server" CssClass="form-control select2me input-sm" Width="100%">
|
<asp:DropDownList ID="DdlPrioridad" runat="server" CssClass="form-control select2me input-sm" Width="100%">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Baja" Value="1" class="itembaja"></asp:ListItem>
|
<asp:ListItem Text="Baja" Value="1" ></asp:ListItem>
|
||||||
<asp:ListItem Text="Media" Value="2" class="itemmedia"></asp:ListItem>
|
<asp:ListItem Text="Media" Value="2" ></asp:ListItem>
|
||||||
<asp:ListItem Text="Alta" Value="3" class="itemalta"></asp:ListItem>
|
<asp:ListItem Text="Alta" Value="3" ></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
<asp:Label runat="server" AssociatedControlID="DdlPrioridad">Prioridad:</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="DdlPrioridad">Prioridad:</asp:Label>
|
||||||
|
|||||||
Reference in New Issue
Block a user