Anexo de Catálogo Centro Costo ordenar grafica por valor, Movimientos Auxiliares del Catálogo enviar tipo movimiento
This commit is contained in:
@@ -359,7 +359,13 @@
|
|||||||
let currentid = 1;
|
let currentid = 1;
|
||||||
function HandlerGraf(obj, evt) {
|
function HandlerGraf(obj, evt) {
|
||||||
$("#DivModalGrafica").modal();
|
$("#DivModalGrafica").modal();
|
||||||
cdatos = $(obj).data('values');
|
|
||||||
|
//cdatos = $(obj).data('values');
|
||||||
|
|
||||||
|
cdatos = $(obj).data('values').sort(function (a, b) {
|
||||||
|
return b.Valor - a.Valor;
|
||||||
|
});
|
||||||
|
|
||||||
if (currentid == 1) {
|
if (currentid == 1) {
|
||||||
CargaGraficaBarras();
|
CargaGraficaBarras();
|
||||||
} else {
|
} else {
|
||||||
@@ -369,6 +375,9 @@
|
|||||||
}
|
}
|
||||||
function CargaGraficaBarras() {
|
function CargaGraficaBarras() {
|
||||||
let data = cdatos;
|
let data = cdatos;
|
||||||
|
//let data = cdatos.sort(function (a, b) {
|
||||||
|
// return b.Valor - a.Valor;
|
||||||
|
//});
|
||||||
var chart = AmCharts.makeChart("chartdiv", {
|
var chart = AmCharts.makeChart("chartdiv", {
|
||||||
"type": "serial",
|
"type": "serial",
|
||||||
"theme": "light",
|
"theme": "light",
|
||||||
@@ -406,6 +415,11 @@
|
|||||||
|
|
||||||
function CargaGraficaPastel() {
|
function CargaGraficaPastel() {
|
||||||
let data = cdatos;
|
let data = cdatos;
|
||||||
|
|
||||||
|
//let data = cdatos.sort(function (a, b) {
|
||||||
|
// return b.Valor - a.Valor;
|
||||||
|
//});
|
||||||
|
|
||||||
var chart = AmCharts.makeChart("chartdiv", {
|
var chart = AmCharts.makeChart("chartdiv", {
|
||||||
"type": "pie",
|
"type": "pie",
|
||||||
"theme": "light",
|
"theme": "light",
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ Partial Class Contabilidad2_RepAnexoCatalogoCC
|
|||||||
|
|
||||||
Dim CveCunetaRow As Integer = e.Row.DataKey("CveCuenta").ToEntero
|
Dim CveCunetaRow As Integer = e.Row.DataKey("CveCuenta").ToEntero
|
||||||
If e.Row.Cells(2).Text.ToDecimal <> 0 Then
|
If e.Row.Cells(2).Text.ToDecimal <> 0 Then
|
||||||
e.Row.Cells(2).Text = $"<a { If(e.Row.Cells(2).Text.ToDecimal < 0, "style='color:Red;'", "style='color:#337ab7;'") } target='_blank' href='./RepMovimientosAuxiliaresCatalogo.aspx?CveCuenta={CveCunetaRow}&FF={txtFechaF.Text}&FI={txtFechaI.Text}&ER=1&CveSubProyecto=-1' >{ If(DdlDivisor.SelectedValue.ToEntero > 1, e.Row.Cells(2).Text.ToDecimal.ToString("###,###,##0"), e.Row.Cells(2).Text.ToDecimal.ToString("###,###,###.00")) }</a>"
|
e.Row.Cells(2).Text = $"<a { If(e.Row.Cells(2).Text.ToDecimal < 0, "style='color:Red;'", "style='color:#337ab7;'") } target='_blank' href='./RepMovimientosAuxiliaresCatalogo.aspx?CveCuenta={CveCunetaRow}&FF={txtFechaF.Text}&FI={txtFechaI.Text}&ER=1&CveSubProyecto=-1&OpcionCuenta=3' >{ If(DdlDivisor.SelectedValue.ToEntero > 1, e.Row.Cells(2).Text.ToDecimal.ToString("###,###,##0"), e.Row.Cells(2).Text.ToDecimal.ToString("###,###,###.00")) }</a>"
|
||||||
Else
|
Else
|
||||||
e.Row.Cells(2).Text = $"-"
|
e.Row.Cells(2).Text = $"-"
|
||||||
End If
|
End If
|
||||||
@@ -255,7 +255,7 @@ Partial Class Contabilidad2_RepAnexoCatalogoCC
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Importe <> 0 Then
|
If Importe <> 0 Then
|
||||||
e.Row.Cells(Index).Text = $"<a { If(Importe < 0, "style='color:Red;'", "style='color:#337ab7;'") } target='_blank' href='./RepMovimientosAuxiliaresCatalogo.aspx?CveCuenta={CveCunetaRow}&FF={txtFechaF.Text}&FI={txtFechaI.Text}&ER=1&CveSubProyecto={ If(DRow("CveSubProyecto").ToString.ToEntero > 0, DRow("CveSubProyecto").ToString, "-1")}' >{ If(DdlDivisor.SelectedValue.ToEntero > 1, Importe.ToString("###,###,##0"), Importe.ToString("###,###,###.00")) }</a>"
|
e.Row.Cells(Index).Text = $"<a { If(Importe < 0, "style='color:Red;'", "style='color:#337ab7;'") } target='_blank' href='./RepMovimientosAuxiliaresCatalogo.aspx?CveCuenta={CveCunetaRow}&FF={txtFechaF.Text}&FI={txtFechaI.Text}&ER=1&CveSubProyecto={ If(DRow("CveSubProyecto").ToString.ToEntero > 0, DRow("CveSubProyecto").ToString, "-1")}&OpcionCuenta=3' >{ If(DdlDivisor.SelectedValue.ToEntero > 1, Importe.ToString("###,###,##0"), Importe.ToString("###,###,###.00")) }</a>"
|
||||||
End If
|
End If
|
||||||
Index += 1
|
Index += 1
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
Cuenta:
|
Cuenta:
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlCuentas" runat="server" AppendDataBoundItems="true" DataTextField="CuentaFormatoNombre" DataValueField="CveCuenta" CssClass="form-control input-sm select2me" Enabled="false">
|
<asp:DropDownList ID="DdlCuentas" runat="server" AppendDataBoundItems="true" DataTextField="CuentaFormatoNombre" DataValueField="CveCuenta" CssClass="form-control input-sm select2me" Enabled="false">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
@@ -97,11 +97,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="portlet-body" <%= IIf(chkexpand.Checked = True, "", "style=""display:none;""")%>>
|
<div class="portlet-body" <%= IIf(chkexpand.Checked = True, "", "style=""display:none;""")%>>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 ">
|
||||||
Tipo Movto
|
Tipo Movto
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 truncate">
|
<div class="col-md-2 ">
|
||||||
<asp:DropDownList ID="DdlOpcionCuentas" runat="server" DataTextField="Cuenta" DataValueField="CveCuenta" TabIndex="4" CssClass="form-control input-sm select2me" Width="100%">
|
<asp:DropDownList ID="DdlOpcionCuentas" runat="server" DataTextField="Cuenta" DataValueField="CveCuenta" TabIndex="4" CssClass="select2me" Width="100%">
|
||||||
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Con movimientos" Value="1"></asp:ListItem>
|
<asp:ListItem Text="Con movimientos" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Saldo actual no igual a cero" Value="2"></asp:ListItem>
|
<asp:ListItem Text="Saldo actual no igual a cero" Value="2"></asp:ListItem>
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
<asp:ListItem Text="Con movimientos o saldo no igual a cero" Value="4"></asp:ListItem>
|
<asp:ListItem Text="Con movimientos o saldo no igual a cero" Value="4"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate" id="tdTipoReporte" visible="false" runat="server">
|
<div class="col-md-1 " id="tdTipoReporte" visible="false" runat="server">
|
||||||
Tipo
|
Tipo
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2" id="tdTipoReporte2" visible="false" runat="server">
|
<div class="col-md-2" id="tdTipoReporte2" visible="false" runat="server">
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ Partial Class Conta_RepMovimientosAuxiliaresCatalogo
|
|||||||
' DdlTipoReporte.SelectedValue = TipoReporte.ToString
|
' DdlTipoReporte.SelectedValue = TipoReporte.ToString
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
DdlOpcionCuentas.SelectedValueExist(IfNull(Request("OpcionCuenta"), "-1")) 'OpcionCuenta
|
||||||
''If DdlTipoCuentas.Items.FindByValue(IdCuenta.ToString) IsNot Nothing Then
|
''If DdlTipoCuentas.Items.FindByValue(IdCuenta.ToString) IsNot Nothing Then
|
||||||
'' DdlTipoCuentas.SelectedValue = IdCuenta.ToString
|
'' DdlTipoCuentas.SelectedValue = IdCuenta.ToString
|
||||||
''Else
|
''Else
|
||||||
|
|||||||
Reference in New Issue
Block a user