This commit is contained in:
@@ -242,7 +242,7 @@ Public Class ClsProductosServicios
|
||||
CveUnidadMedida = Data.Rows(0)("CveUnidadMedida").ToString.ToEntero
|
||||
CveSATPS = Data.Rows(0)("CveSATPS").ToString.ToEntero
|
||||
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.Codigo = Data.Rows(0)("Codigo").ToString
|
||||
Me.Codigo2 = Data.Rows(0)("Codigo2").ToString
|
||||
@@ -260,7 +260,8 @@ Public Class ClsProductosServicios
|
||||
Estado2 = Data.Rows(0)("Estado2").ToString.ToEntero
|
||||
Fecha = Data.Rows(0)("Fecha").ToString.ToDate
|
||||
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"
|
||||
IEPSGrabaIVA = (Data.Rows(0)("IEPSGrabaIVA").ToString) = "True"
|
||||
IEPSPorcentaje = Data.Rows(0)("IEPSPorcentaje").ToString.ToDouble
|
||||
@@ -282,7 +283,7 @@ Public Class ClsProductosServicios
|
||||
|
||||
Me.CveEmpresa = Data.Rows(0)("CveEmpresa").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
|
||||
RetISR = Data.Rows(0)("RetISR").ToString.ToDouble
|
||||
|
||||
|
||||
@@ -429,22 +429,22 @@ Public Class WS_PuntoVenta
|
||||
Return Respuesta
|
||||
End Function
|
||||
|
||||
'<WebMethod()>
|
||||
'Public Function GetSucursales(CveEmpresa As Integer) As RespuestaWS
|
||||
' Dim objSucursales As New ClsSucursales
|
||||
' Dim Respuesta As New RespuestaWS
|
||||
<WebMethod()>
|
||||
Public Function GetSubProyectos(CveEmpresa As Integer) As RespuestaWS
|
||||
Dim objProyecto As New ClsSubProyectos
|
||||
Dim Respuesta As New RespuestaWS
|
||||
|
||||
' If objSucursales.GetSucursales() Then
|
||||
' Respuesta.Datos = objSucursales.DtResultados.FiltraParametros(String.Format("CveEmpresa = {0}", CveEmpresa))
|
||||
' Respuesta.Datos.TableName = "Resultados"
|
||||
' Respuesta.HuboError = False
|
||||
' Else
|
||||
' Respuesta.Descripcion = "HUBO UN ERROR"
|
||||
' End If
|
||||
If objProyecto.GetSubProyectos(CveEmpresa) Then
|
||||
Respuesta.Datos = objProyecto.DtResultados
|
||||
Respuesta.Datos.TableName = "Resultados"
|
||||
Respuesta.HuboError = False
|
||||
Else
|
||||
Respuesta.Descripcion = "HUBO UN ERROR"
|
||||
End If
|
||||
|
||||
' objSucursales.Dispose()
|
||||
' Return Respuesta
|
||||
'End Function
|
||||
objProyecto.Dispose()
|
||||
Return Respuesta
|
||||
End Function
|
||||
|
||||
<WebMethod()>
|
||||
Public Function GetClientes(CveEmpresa As Integer) As RespuestaWS
|
||||
@@ -478,7 +478,7 @@ Public Class WS_PuntoVenta
|
||||
objFolios.Dispose()
|
||||
Return Respuesta
|
||||
End Function
|
||||
|
||||
'Candiddato a borrar
|
||||
'COMENTADO IPP: CAMBIO LA FORMA DE USAR LAS PROMOCIONES | 2 NOVIEMBRE 2016
|
||||
'<WebMethod()>
|
||||
'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
|
||||
|
||||
<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 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.TableName = "Resultados"
|
||||
Respuesta.HuboError = False
|
||||
@@ -618,39 +618,39 @@ Public Class WS_PuntoVenta
|
||||
Return Respuesta
|
||||
End Function
|
||||
|
||||
'<WebMethod()>
|
||||
''Public Function GetProductosServiciosCaracteristicas(CveEmpresa As Integer, CveSucursal As Integer) As RespuestaWS
|
||||
'' Dim objPSCaracteristicas As New ClsGralProductosServiciosCaracteristicas
|
||||
'' Dim Respuesta As New RespuestaWS
|
||||
<WebMethod()>
|
||||
Public Function GetProductosServiciosCaracteristicas(CveEmpresa As Integer, CveSubProyecto As Integer) As RespuestaWS
|
||||
Dim objPSCaracteristicas As New ClsGralProductosServiciosCaracteristicas
|
||||
Dim Respuesta As New RespuestaWS
|
||||
|
||||
'' If objPSCaracteristicas.GetProductosServiciosCaracteristicas(CveEmpresa, CveSucursal) Then
|
||||
'' Respuesta.Datos = objPSCaracteristicas.DtResultados
|
||||
'' Respuesta.Datos.TableName = "Resultados"
|
||||
'' Respuesta.HuboError = False
|
||||
'' Else
|
||||
'' Respuesta.Descripcion = "HUBO UN ERROR"
|
||||
'' End If
|
||||
If objPSCaracteristicas.GetProductosServiciosCaracteristicas(CveEmpresa, CveSubProyecto) Then
|
||||
Respuesta.Datos = objPSCaracteristicas.DtResultados
|
||||
Respuesta.Datos.TableName = "Resultados"
|
||||
Respuesta.HuboError = False
|
||||
Else
|
||||
Respuesta.Descripcion = "HUBO UN ERROR"
|
||||
End If
|
||||
|
||||
'' objPSCaracteristicas.Dispose()
|
||||
'' Return Respuesta
|
||||
''End Function
|
||||
objPSCaracteristicas.Dispose()
|
||||
Return Respuesta
|
||||
End Function
|
||||
|
||||
'<WebMethod()>
|
||||
''Public Function GetProductosServiciosCaracteristicasOpciones(CveEmpresa As Integer, CveSucursal As Integer) As RespuestaWS
|
||||
'' Dim objPSCaracteristicas As New ClsGralProductosServiciosCaracteristicas
|
||||
'' Dim Respuesta As New RespuestaWS
|
||||
<WebMethod()>
|
||||
Public Function GetProductosServiciosCaracteristicasOpciones(CveEmpresa As Integer, CveSubProyecto As Integer) As RespuestaWS
|
||||
Dim objPSCaracteristicas As New ClsGralProductosServiciosCaracteristicas
|
||||
Dim Respuesta As New RespuestaWS
|
||||
|
||||
'' If objPSCaracteristicas.GetProductosServiciosCaracteristicasOpciones(CveEmpresa, CveSucursal) Then
|
||||
'' Respuesta.Datos = objPSCaracteristicas.DtResultados
|
||||
'' Respuesta.Datos.TableName = "Resultados"
|
||||
'' Respuesta.HuboError = False
|
||||
'' Else
|
||||
'' Respuesta.Descripcion = "HUBO UN ERROR"
|
||||
'' End If
|
||||
If objPSCaracteristicas.GetProductosServiciosCaracteristicasOpciones(CveEmpresa, CveSubProyecto) Then
|
||||
Respuesta.Datos = objPSCaracteristicas.DtResultados
|
||||
Respuesta.Datos.TableName = "Resultados"
|
||||
Respuesta.HuboError = False
|
||||
Else
|
||||
Respuesta.Descripcion = "HUBO UN ERROR"
|
||||
End If
|
||||
|
||||
'' objPSCaracteristicas.Dispose()
|
||||
'' Return Respuesta
|
||||
''End Function
|
||||
objPSCaracteristicas.Dispose()
|
||||
Return Respuesta
|
||||
End Function
|
||||
|
||||
<WebMethod()>
|
||||
Public Function GetProductosServiciosPaquetes(CveEmpresa As Integer) As RespuestaWS
|
||||
@@ -736,18 +736,28 @@ Public Class WS_PuntoVenta
|
||||
|
||||
<WebMethod()>
|
||||
Public Function GetUsuarios(CveEmpresa As Integer) As RespuestaWS
|
||||
Dim objUsuarios As New ClsSisUsuarios
|
||||
Dim Respuesta As New RespuestaWS
|
||||
Respuesta.HuboError = False
|
||||
|
||||
Using objUsuarios As New ClsSisUsuarios
|
||||
|
||||
If objUsuarios.GetUsuarios(-1) Then
|
||||
Respuesta.Datos = objUsuarios.DtResultados.FiltraParametros(String.Format("CveEmpresa = {0} AND Estatus = 1 AND CveSucursal > 0", CveEmpresa.ToString))
|
||||
Respuesta.Datos = objUsuarios.DtResultados.FiltraParametros(String.Format("CveEmpresa = {0} AND Estatus = 1 ", CveEmpresa))
|
||||
Respuesta.Datos.TableName = "Resultados"
|
||||
Respuesta.HuboError = False
|
||||
Else
|
||||
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
|
||||
End Function
|
||||
|
||||
|
||||
@@ -74,21 +74,38 @@ Public Class wsSIG
|
||||
Dim Retorno As UsuarioWs = Nothing
|
||||
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 CveSubProyecto As Integer = 0
|
||||
Dim reqCveSubProyecto As Integer = -1
|
||||
Dim CveEmpresa As Integer = -1
|
||||
Dim validatesubproyecto As Boolean = False
|
||||
Dim Fecha As DateTime
|
||||
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"
|
||||
If Fecha > Now.AddSeconds(TiempoValido) Then
|
||||
|
||||
Dim ttDato As Usuario
|
||||
Dim tUsuario As New ClsSisUsuarios
|
||||
|
||||
ttDato = tUsuario.ValidaUsuario(Usuario, Encripta(Contrasenia), IMEI)
|
||||
Dim ttDato As Usuario = Nothing
|
||||
Using tUsuario As New ClsSisUsuarios()
|
||||
ttDato = tUsuario.ValidaUsuario(Usuario, Encripta(Contrasenia), IMEI, CveEmpresa)
|
||||
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
|
||||
Retorno = New UsuarioWs
|
||||
Retorno = New UsuarioWs()
|
||||
|
||||
Retorno.CveUsuario = ttDato.CveUsuario
|
||||
'Retorno.Usuario = ttDato.Usuario
|
||||
@@ -98,13 +115,12 @@ Public Class wsSIG
|
||||
Retorno.CveEmpresa = ttDato.CveEmpresa
|
||||
'Retorno.Empresa = ttDato.NombreEmpresa
|
||||
Retorno.CveVendedor = ttDato.CveVendedor
|
||||
Retorno.CveSucursal = ttDato.CveSucursal
|
||||
Retorno.CveSucursal = CveSubProyecto
|
||||
'Retorno.Contraseña = ttDato.Contraseña
|
||||
'Retorno.IMEI = IMEI
|
||||
|
||||
End If
|
||||
|
||||
tUsuario.Dispose()
|
||||
Else
|
||||
Cadena.GuardaLog()
|
||||
End If
|
||||
|
||||
@@ -281,7 +281,7 @@
|
||||
} else {
|
||||
CargaGraficaPastel();
|
||||
}
|
||||
$('.LblTituloGrafica').text($(obj).parent().parent().text());
|
||||
$('.LblTituloGrafica').text($(obj).closest('tr').text().trim());
|
||||
}
|
||||
function CargaGraficaBarras() {
|
||||
let data = cdatos;
|
||||
|
||||
@@ -300,7 +300,6 @@
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||
|
||||
@@ -322,7 +321,7 @@
|
||||
} else {
|
||||
CargaGraficaPastel();
|
||||
}
|
||||
$('.LblTituloGrafica').text($(obj).parent().parent().text());
|
||||
$('.LblTituloGrafica').text($(obj).closest('tr').text().trim());
|
||||
}
|
||||
function CargaGraficaBarras() {
|
||||
let data = cdatos;
|
||||
@@ -396,7 +395,7 @@
|
||||
function cargaGraficaBarras2() {
|
||||
//Hypgrafica
|
||||
$("#DivModalGrafica").modal();
|
||||
$('.LblTituloGrafica').text('grafica');
|
||||
$('.LblTituloGrafica').text('Grafica');
|
||||
let items = []
|
||||
let data;
|
||||
let series = [];
|
||||
@@ -518,7 +517,6 @@
|
||||
<script>
|
||||
function LimpiaCeros(Divisor) {
|
||||
$('.ceros').each(function (i, obj) {
|
||||
debugger;
|
||||
|
||||
if ($(this).html() == '0.00' || $(this).html() == '0.00%') {
|
||||
$(this).html('-');
|
||||
@@ -540,7 +538,6 @@
|
||||
}
|
||||
|
||||
function FormatoNumeroIPP(Importe, Decimales) {
|
||||
debugger;
|
||||
if (typeof Decimales === 'undefined') { Decimales = 2; }
|
||||
|
||||
if (isNaN(parseInt(Importe))) return "NaN";
|
||||
|
||||
@@ -227,7 +227,7 @@
|
||||
} else {
|
||||
CargaGraficaPastel();
|
||||
}
|
||||
$('.LblTituloGrafica').text($(obj).parent().parent().text().trim());
|
||||
$('.LblTituloGrafica').text($(obj).closest('tr').text().trim());
|
||||
}
|
||||
function CargaGraficaBarras() {
|
||||
let data = cdatos;
|
||||
|
||||
@@ -14,6 +14,18 @@
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
/*#grafInfo .chksino label {
|
||||
margin-left: -95px;
|
||||
}*/
|
||||
|
||||
.chksino label::before {
|
||||
content: 'B';
|
||||
}
|
||||
|
||||
.chksino label::after {
|
||||
content: 'L';
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<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"
|
||||
Style="margin-top: -10px; text-align: center;" GridLines="None">
|
||||
<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>
|
||||
<%--<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>
|
||||
</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>
|
||||
</ItemTemplate>
|
||||
<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" />
|
||||
</asp:TemplateField>
|
||||
|
||||
@@ -857,14 +879,14 @@
|
||||
<Columns>
|
||||
|
||||
<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" />
|
||||
<HeaderTemplate>
|
||||
<asp:Label ID="LbTitulo" runat="server" Style="padding-left: 20px;" Font-Size="14px" Text="GASTOS Y OTRAS PÉRDIDAS"></asp:Label>
|
||||
</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" />
|
||||
</asp:TemplateField>
|
||||
|
||||
@@ -1035,6 +1057,40 @@
|
||||
</asp:UpdatePanel>
|
||||
</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 ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
|
||||
@@ -1123,7 +1179,208 @@
|
||||
CargaGraficaPastel();
|
||||
}
|
||||
});
|
||||
$(".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>
|
||||
</asp:Content>
|
||||
|
||||
@@ -2656,14 +2656,14 @@ select.select2-offscreen, select.select2-offscreen:focus {
|
||||
position: absolute;
|
||||
content: "Arrastre el archivo";
|
||||
color: #808080;
|
||||
font-size: 30px;
|
||||
font-size: 20px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
.addropzone.dz-clickable:after {
|
||||
position: absolute;
|
||||
content: "o presione doble click";
|
||||
color: #808080;
|
||||
font-size: 30px;
|
||||
font-size: 20px;
|
||||
margin-top: 45px;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,12 @@
|
||||
}
|
||||
|
||||
.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 {
|
||||
@@ -79,7 +84,8 @@
|
||||
|
||||
<div class="pnlCorreo" style="margin-bottom: 5px;">
|
||||
<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 class="bodycorreos">
|
||||
<asp:Literal ID="LtlPara" runat="server"></asp:Literal>
|
||||
|
||||
@@ -24,7 +24,11 @@
|
||||
}
|
||||
|
||||
.addropzone.dz-clickable:before {
|
||||
margin-top: 40px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.addropzone.dz-clickable:before, .addropzone.dz-clickable:after {
|
||||
color: #808080;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.pnlCorreo {
|
||||
|
||||
@@ -52,8 +52,13 @@
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.filediv .addropzone.dz-clickable:before, .filediv .addropzone.dz-clickable:after {
|
||||
color: #808080;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.filediv .addropzone {
|
||||
min-height: 100px;
|
||||
min-height: 130px;
|
||||
}
|
||||
|
||||
.divArchivo {
|
||||
@@ -124,6 +129,7 @@
|
||||
height: 100%;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.porcentajelabel {
|
||||
color: #ed5565;
|
||||
font-size: 64px;
|
||||
@@ -150,7 +156,7 @@
|
||||
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<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>
|
||||
<asp:LinkButton ID="LnkcambiarEstatus" OnClick="LnkcambiarEstatus_Click" runat="server"><i class="fa fa-exchange"></i>Cambiar estatus</asp:LinkButton></li>
|
||||
<li>
|
||||
@@ -302,7 +308,7 @@
|
||||
</div>
|
||||
<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: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>--%>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1137,11 +1143,13 @@
|
||||
function CambiarTitulo(cadena) {
|
||||
let TTitulo = $('#E_LtlTitulo')
|
||||
let texto = TTitulo.text();
|
||||
if (texto != 'Nueva tarea') {
|
||||
let splited = texto.split(" ");
|
||||
let size = splited[splited.length - 1].length;
|
||||
texto = texto.substring(0, texto.length - size) + cadena;
|
||||
TTitulo.text(texto);
|
||||
}
|
||||
}
|
||||
var avancecambio = 0;
|
||||
function barraavance() {
|
||||
let item = $(".TxtAvance:not(.ionRangeSlider)")
|
||||
|
||||
@@ -126,7 +126,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
LnkcambiarEstatus.Visible = false;
|
||||
LnkAgregarTema.Visible = false;
|
||||
portletEstatus.Visible = false;
|
||||
LtlTitulo.Text = "Tarea Nueva";
|
||||
LtlTitulo.Text = "Nueva tarea";
|
||||
TxtArchivo.Visible = true;
|
||||
CveUsuarioDe = UsuarioActual.CveUsuario;
|
||||
}
|
||||
@@ -139,17 +139,18 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
}
|
||||
private void Setpermisos()
|
||||
{
|
||||
bool permisedestatus = (CveEventoEstatus > 1 && CveEventoEstatus < 4);
|
||||
bool esmiembro = UsuarioActual.CveUsuario.Contiene(LCveUsuarioCCP.ToArray<int>());
|
||||
bool esdeel = UsuarioActual.CveUsuario == CveUsuarioDe;
|
||||
bool esPara = UsuarioActual.CveUsuario == CveUsuarioPara;
|
||||
Permisos = new OI_TareaDetalle_Permisos
|
||||
{
|
||||
EntrarOI = (EsNuevo || esmiembro),
|
||||
CheckList = (EsNuevo || esdeel || esPara) && CveEventoEstatus < 4,
|
||||
EdicionGeneral = (EsNuevo || esdeel) && CveEventoEstatus < 4,
|
||||
Bitacora = esmiembro && CveEventoEstatus < 4,
|
||||
Avance = esPara && CveEventoEstatus < 4,
|
||||
Reasignar = esPara && CveEventoEstatus < 4,
|
||||
CheckList = (EsNuevo || esdeel || esPara) && permisedestatus,
|
||||
EdicionGeneral = (EsNuevo || esdeel) && permisedestatus,
|
||||
Bitacora = esmiembro && permisedestatus,
|
||||
Avance = esPara && permisedestatus,
|
||||
Reasignar = esPara && permisedestatus,
|
||||
Estatus1_2_3 = esPara,
|
||||
Estatus4_5 = esdeel
|
||||
};
|
||||
@@ -229,9 +230,9 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
{
|
||||
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;
|
||||
LnkUpUsuarios.Visible = false;
|
||||
@@ -1021,6 +1022,11 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
//if (DdlEventoEstatus.SelectedValue.ToEntero == 3 | DdlEventoEstatus.SelectedValue.ToEntero == 1)
|
||||
// EnviarCorreoCambioEstatus(false);
|
||||
//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);
|
||||
DdlEventoEstatus.SelectedValueExist(DDlEstatus.SelectedValue);
|
||||
lblEstatus.Text = DdlEventoEstatus.SelectedItem.Text;
|
||||
@@ -1323,12 +1329,29 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
int CveUsuario = gvRow.DataKey("CveUsuario").ToString().ToEntero();
|
||||
gvRow.FCCheckBox("ChkPara").Checked = false;
|
||||
CheckBox chkCCpara = gvRow.FCCheckBox("ChkCCP");
|
||||
CheckBox chkpara = gvRow.FCCheckBox("ChkPara");
|
||||
|
||||
chkpara.Checked = false;
|
||||
chkCCpara.Checked = false;
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1363,6 +1386,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
||||
if (CveUsuario == CveUsuarioDe)
|
||||
{
|
||||
chkCCpara.Checked = true;
|
||||
chkCCpara.Enabled = false;
|
||||
}
|
||||
}
|
||||
else if (CveUsuario.Contiene(LCveUsuarioCCP.ToArray<int>()))
|
||||
|
||||
@@ -454,7 +454,7 @@ Partial Class Sistemas_Empresa
|
||||
End Sub
|
||||
Protected Sub BtnGuardar_Click(sender As Object, e As System.EventArgs) Handles BtnGuardar.Click
|
||||
Dim ObjEmpresas As New ClsSisEmpresas
|
||||
Dim ObjGral As New ClsGenerales(ObjEmpresas.IniciaTransacSQL())
|
||||
Dim ObjGral As New ClsGenerales()
|
||||
Dim ObjContPAQ As ClsContPAQi = Nothing
|
||||
Dim Indicador As New ClsIndicadores(ObjEmpresas.IniciaTransacSQL())
|
||||
|
||||
@@ -487,6 +487,7 @@ Partial Class Sistemas_Empresa
|
||||
|
||||
End If
|
||||
ViewState("CveEmpresa") = ObjEmpresas.CveEmpresa
|
||||
InicializaClasificacionIVA()
|
||||
TextoOK = "La nueva Empresa se guardó correctamente."
|
||||
Else
|
||||
TextoError = "Ocurrió un error al agregar la empresa"
|
||||
|
||||
@@ -10,15 +10,17 @@
|
||||
|
||||
.fileTarea .addropzone {
|
||||
margin-bottom: 10px;
|
||||
min-height: 100px;
|
||||
min-height: 120px;
|
||||
}
|
||||
|
||||
.fileTarea .addropzone.dz-clickable:before {
|
||||
position: absolute;
|
||||
content: "Arrastre el archivo";
|
||||
margin-top: 20px;
|
||||
}
|
||||
.fileTarea .addropzone.dz-clickable:before,.fileTarea .addropzone.dz-clickable:after {
|
||||
color: #808080;
|
||||
font-size: 20px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.fileTarea .addropzone .dz-preview, .fileTarea .dropzone-previews .dz-preview {
|
||||
@@ -116,9 +118,9 @@
|
||||
<div class="form-group form-md-line-input">
|
||||
<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 Text="Baja" Value="1" class="itembaja"></asp:ListItem>
|
||||
<asp:ListItem Text="Media" Value="2" class="itemmedia"></asp:ListItem>
|
||||
<asp:ListItem Text="Alta" Value="3" class="itemalta"></asp:ListItem>
|
||||
<asp:ListItem Text="Baja" Value="1" ></asp:ListItem>
|
||||
<asp:ListItem Text="Media" Value="2" ></asp:ListItem>
|
||||
<asp:ListItem Text="Alta" Value="3" ></asp:ListItem>
|
||||
</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:Label runat="server" AssociatedControlID="DdlPrioridad">Prioridad:</asp:Label>
|
||||
|
||||
Reference in New Issue
Block a user