diff --git a/Compras/RepAnt-NC-EXCDetalle.aspx b/Compras/RepAnt-NC-EXCDetalle.aspx index 7b6df6250..aa996826f 100644 --- a/Compras/RepAnt-NC-EXCDetalle.aspx +++ b/Compras/RepAnt-NC-EXCDetalle.aspx @@ -136,7 +136,7 @@ CssClass="table table-striped table-advance table-hover Widthall ScrollAD" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" data-sort="true" Width="99%" DataKeyNames="CveProveedor,CveMoneda,Saldo,Folio,CveCompra,RazonSocial,CveCompraAmortizacion,SerieFolioAmortizacion,SerieFolio,Total, - Fecha,FechaAmortizacion,SubTotal,SubTotalAmortizacion,ImporteAmortizacion,CveIE,Tipo,SaldoAcumulativo"> + Fecha,FechaAmortizacion,SubTotal,SubTotalAmortizacion,ImporteAmortizacion,CveIE,Tipo,SaldoAcumulativo,Dias"> @@ -146,6 +146,7 @@ + diff --git a/Compras/RepAnt-NC-EXCDetalle.aspx.cs b/Compras/RepAnt-NC-EXCDetalle.aspx.cs index ef30fc45b..18d583117 100644 --- a/Compras/RepAnt-NC-EXCDetalle.aspx.cs +++ b/Compras/RepAnt-NC-EXCDetalle.aspx.cs @@ -181,7 +181,7 @@ public partial class Compras_RepAnt_NC_EXCDetalle : ClsPaginas { e.Row.CssClass = "SubTotales3"; e.Row.Cells[2].Text = e.Row.DBCampo("Moneda").ToString(); - e.Row.Cells[4].Text = "$" + e.Row.DataKey("Total").FormatoNumero(); + e.Row.Cells[5].Text = "$" + e.Row.DataKey("Total").FormatoNumero(); } else if (e.Row.DataKey("CveProveedor").ToEntero() < 1) { @@ -198,21 +198,21 @@ public partial class Compras_RepAnt_NC_EXCDetalle : ClsPaginas e.Row.Cells[2].Text = "Egresos X Comprobar"; break; } - e.Row.Cells[4].Text = "$" + e.Row.DataKey("Total").FormatoNumero(); + e.Row.Cells[5].Text = "$" + e.Row.DataKey("Total").FormatoNumero(); } else if (e.Row.DataKey("CveCompraAmortizacion").ToEntero() < 1 && e.Row.DataKey("CveCompra").ToEntero() < 1 && e.Row.DataKey("CveIE").ToEntero() < 1) { e.Row.CssClass = "Totales"; e.Row.Cells[2].Text = e.Row.DataKey("RazonSocial"); - e.Row.Cells[7].Text = ""; - e.Row.Cells[4].Text = "$" + e.Row.DataKey("Total").FormatoNumero(); + e.Row.Cells[8].Text = ""; + e.Row.Cells[5].Text = "$" + e.Row.DataKey("Total").FormatoNumero(); } else if (e.Row.DataKey("CveCompraAmortizacion").ToEntero() < 1 && e.Row.DataKey("CveCompra").ToEntero() > 0) { e.Row.CssClass = "SubTotales"; e.Row.Cells[2].Text = e.Row.DataKey("SerieFolio"); e.Row.Cells[3].Text = e.Row.DataKey("Fecha").ToDate().ToShortDateString(); - e.Row.Cells[4].Text = "$" + e.Row.DataKey("Total").FormatoNumero(); + e.Row.Cells[5].Text = "$" + e.Row.DataKey("Total").FormatoNumero(); Liga = $"/Compras/Compras.aspx?&CveCompra={e.Row.DataKey("CveCompra")}"; e.Row.Cells[2].Text = "" + e.Row.Cells[2].Text + ""; } @@ -221,7 +221,7 @@ public partial class Compras_RepAnt_NC_EXCDetalle : ClsPaginas e.Row.CssClass = "SubTotales"; e.Row.Cells[2].Text = e.Row.DataKey("SerieFolio"); e.Row.Cells[3].Text = e.Row.DataKey("Fecha").ToDate().ToShortDateString(); - e.Row.Cells[4].Text = "$" + e.Row.DataKey("Total").FormatoNumero(); + e.Row.Cells[5].Text = "$" + e.Row.DataKey("Total").FormatoNumero(); Liga = $"/Bancos/IE.aspx?&CveIE={e.Row.DataKey("CveIE")}"; e.Row.Cells[2].Text = "" + e.Row.Cells[2].Text + ""; } @@ -229,9 +229,9 @@ public partial class Compras_RepAnt_NC_EXCDetalle : ClsPaginas { e.Row.Cells[2].Text = e.Row.DataKey("SerieFolioAmortizacion"); e.Row.Cells[3].Text = e.Row.DataKey("FechaAmortizacion").ToDate().ToShortDateString(); - e.Row.Cells[4].Text = "$" + e.Row.DataKey("ImporteAmortizacion").FormatoNumero(); e.Row.Cells[5].Text = "$" + e.Row.DataKey("ImporteAmortizacion").FormatoNumero(); - e.Row.Cells[6].Text = "$" + e.Row.DataKey("SaldoAcumulativo").FormatoNumero(); + e.Row.Cells[6].Text = "$" + e.Row.DataKey("ImporteAmortizacion").FormatoNumero(); + e.Row.Cells[7].Text = "$" + e.Row.DataKey("SaldoAcumulativo").FormatoNumero(); Liga = $"/Compras/Compras.aspx?&CveCompra={e.Row.DataKey("CveCompraAmortizacion")}"; e.Row.Cells[2].Text = "" + e.Row.Cells[2].Text + ""; } diff --git a/Compras/RepCxP.aspx.vb b/Compras/RepCxP.aspx.vb index 4d85db105..53d703549 100644 --- a/Compras/RepCxP.aspx.vb +++ b/Compras/RepCxP.aspx.vb @@ -160,18 +160,9 @@ Partial Class Compras_RepCxP 'ObjSisUsuarios.Dispose() For Each lItem As ListItem In DdlGrupo.Items - - - If lItem.Value.ToEntero = 9 Then lItem.Text = LblSubProyectofiltro.Text & "-Sucursal" End If - - If lItem.Value.ToEntero = 11 Then - lItem.Text = LblSubProyectofiltro.Text & " Proveedor" - End If - - Next diff --git a/Compras/RepCxPDetalle.aspx b/Compras/RepCxPDetalle.aspx index 19ca4835b..1c49878a4 100644 --- a/Compras/RepCxPDetalle.aspx +++ b/Compras/RepCxPDetalle.aspx @@ -261,17 +261,8 @@ CssClass="table table-striped table-advance table-hover Widthall ScrollAD" GridLines="None"> <%--0--%> - - - Folio - - - - - - <%--1--%> - + Tipo Doc. @@ -279,6 +270,17 @@ + + <%--1--%> + + + + Folio + + + + + <%--2--%> @@ -340,6 +342,17 @@ <%--8--%> + + + + Moneda + + + + + + + <%--9--%> Saldo @@ -349,7 +362,7 @@ - <%--9--%> + <%--10--%> Fecha Venc. @@ -358,7 +371,8 @@ - <%--10--%> + + <%--11--%> Días Venc. @@ -367,7 +381,8 @@ - <%--11--%> + + <%--12--%> Proveedor @@ -376,7 +391,8 @@ - <%--12--%> + + <%--13--%> Cuenta @@ -385,7 +401,8 @@ - <%--13--%> + + <%--14--%> Observaciones @@ -394,13 +411,14 @@ - <%--14--%> + + <%--15--%> - <%--15--%> + <%--16--%> Descripción @@ -441,9 +459,9 @@ - - + + @@ -452,19 +470,20 @@ - - + + - + + diff --git a/Compras/RepCxPDetalle.aspx.vb b/Compras/RepCxPDetalle.aspx.vb index 8f8cd00fc..84ad7bd28 100644 --- a/Compras/RepCxPDetalle.aspx.vb +++ b/Compras/RepCxPDetalle.aspx.vb @@ -332,23 +332,15 @@ Partial Class RepCxPDetalle Ddlmoneda.SelectedValueExist(CveMoneda) - GvDatos.Columns(10).Visible = (UsuarioActual.Empresa.Funcionalidad(131).ToEntero > 0 Or UsuarioActual.Empresa.Funcionalidad(134).ToEntero > 0) + GvDatos.Columns(11).Visible = (UsuarioActual.Empresa.Funcionalidad(131).ToEntero > 0 Or UsuarioActual.Empresa.Funcionalidad(134).ToEntero > 0) For Each lItem As ListItem In DdlGrupo.Items - - If lItem.Value.ToEntero = 9 Then lItem.Text = LblSubProyectofiltro.Text & "-Sucursal" End If - - If lItem.Value.ToEntero = 11 Then - lItem.Text = LblSubProyectofiltro.Text & " Proveedor" - End If - - Next @@ -416,9 +408,9 @@ Partial Class RepCxPDetalle If DdlGrupo.SelectedValue.ToEntero = 5 And UsuarioActual.Empresa.UsaContabilidad Then 'cuando es grupo por proveedor, se muestra la cuneta contable TMP_DTDatos = CargaCuentasContables(TMP_DTDatos) - GvDatos.Columns(12).Visible = True + GvDatos.Columns(13).Visible = True Else - GvDatos.Columns(12).Visible = False + GvDatos.Columns(13).Visible = False End If DtDatos = TMP_DTDatos @@ -509,16 +501,7 @@ Partial Class RepCxPDetalle e.Row.CssClass = "Totales" ElseIf e.Row.DBCampo("RazonSocial") = "" Then e.Row.CssClass = "SubTotales" - End If - - - 'If e.Row.DBCampo("CveSubProyecto") = "-1" And e.Row.DBCampo("Orden") = "" Then - ' e.Row.CssClass = "Totales" - 'ElseIf e.Row.DBCampo("Orden") = "" And e.Row.DBCampo("CveSubProyecto") <> "0" Then - ' e.Row.CssClass = "SubTotales" - 'End If - - + End If Else If e.Row.DBCampo("RazonSocial") = "" And e.Row.DBCampo("SerieFolio") = "" Then e.Row.CssClass = "SubTotales" @@ -527,14 +510,14 @@ Partial Class RepCxPDetalle If e.Row.DBCampo("Agrupador") = "" And e.Row.DBCampo("TipoDocto") <> "Ant" Then e.Row.CssClass = "Totales" e.Row.Cells(1).HorizontalAlign = HorizontalAlign.Center - e.Row.FCLabel("LtlTipoDocto").ForeColor = Drawing.Color.White + e.Row.FCHyperLink("HplFolio").ForeColor = Drawing.Color.White If e.Row.DBCampo("CveMoneda") = "1" Then - e.Row.FCLabel("LtlTipoDocto").Text = "Total Pesos" + e.Row.FCHyperLink("HplFolio").Text = "Total Pesos" ElseIf e.Row.DBCampo("CveMoneda") = "2" Then - e.Row.FCLabel("LtlTipoDocto").Text = "Total Dólares" + e.Row.FCHyperLink("HplFolio").Text = "Total Dólares" Else - e.Row.FCLabel("LtlTipoDocto").Text = "Total" + e.Row.FCHyperLink("HplFolio").Text = "Total" End If End If @@ -542,12 +525,17 @@ Partial Class RepCxPDetalle End If + + If e.Row.DBCampo("CveCompra") = "" Then + e.Row.FCLabel("LblMoneda").Text = "" + End If + If e.Row.DBCampo("CveCompra") = "" And e.Row.DBCampo("Agrupador") <> "" Then - e.Row.FCLabel("LtlTipoDocto").Text = e.Row.DBCampo("Agrupador") + e.Row.FCHyperLink("HplFolio").Text = e.Row.DBCampo("Agrupador") e.Row.Cells(1).HorizontalAlign = HorizontalAlign.Left If e.Row.DBCampo("Agrupador").Length > 25 Then - e.Row.FCLabel("LtlTipoDocto").Text = String.Format("{0}...", e.Row.DBCampo("Agrupador").Substring(0, 25)) - End If + e.Row.FCHyperLink("HplFolio").Text = String.Format("{0}...", e.Row.DBCampo("Agrupador").Substring(0, 25)) + End If Else If (e.Row.DBCampo("TipoDocto").ToString = "Ant") Then @@ -586,20 +574,18 @@ Partial Class RepCxPDetalle #Region "PERSONALIZAR" Protected Sub MostrarOcultarColumnas() - If ChkFolio.Checked Then + If ChkTipoDocto.Checked Then GvDatos.Columns(0).Visible = True Else GvDatos.Columns(0).Visible = False End If - - - If ChkTipoDocto.Checked Then + If ChkFolio.Checked Then GvDatos.Columns(1).Visible = True Else GvDatos.Columns(1).Visible = False - End If - + End If + If ChkSubTotal.Checked Then GvDatos.Columns(3).Visible = True Else @@ -628,51 +614,60 @@ Partial Class RepCxPDetalle GvDatos.Columns(7).Visible = True Else GvDatos.Columns(7).Visible = False - End If - - If ChkSaldo.Checked Then + End If + + + If ChkMoneda.Checked Then GvDatos.Columns(8).Visible = True Else GvDatos.Columns(8).Visible = False End If - If ChkFechaVencimiento.Checked Then + + + If ChkSaldo.Checked Then GvDatos.Columns(9).Visible = True Else GvDatos.Columns(9).Visible = False - End If - - If ChkDiasVencidos.Checked Then + End If + + If ChkFechaVencimiento.Checked Then GvDatos.Columns(10).Visible = True Else GvDatos.Columns(10).Visible = False End If - If ChkProveedor.Checked Then + If ChkDiasVencidos.Checked Then GvDatos.Columns(11).Visible = True Else GvDatos.Columns(11).Visible = False End If - If ChkCuenta.Checked Then + If ChkProveedor.Checked Then GvDatos.Columns(12).Visible = True Else GvDatos.Columns(12).Visible = False End If - If ChkObservaciones.Checked Then + If ChkCuenta.Checked Then GvDatos.Columns(13).Visible = True Else GvDatos.Columns(13).Visible = False End If - If UsuarioActual.Empresa.Funcionalidad(131).ToEntero > 0 Or UsuarioActual.Empresa.Funcionalidad(134).ToEntero > 0 Then + If ChkObservaciones.Checked Then GvDatos.Columns(14).Visible = True Else - GvDatos.Columns(14).Visible = False + GvDatos.Columns(14).Visible = False End If - GvDatos.Columns(15).Visible = ChkDescripcion.Checked + If UsuarioActual.Empresa.Funcionalidad(131).ToEntero > 0 Or UsuarioActual.Empresa.Funcionalidad(134).ToEntero > 0 Then + GvDatos.Columns(15).Visible = True + Else + GvDatos.Columns(15).Visible = False + End If + + GvDatos.Columns(16).Visible = ChkDescripcion.Checked Personalizo = 1 If Personalizo = 1 Then diff --git a/Empresas/Grales/Formatos/RepCxPDetalle.rdlc b/Empresas/Grales/Formatos/RepCxPDetalle.rdlc index b5758f5ea..750223686 100644 --- a/Empresas/Grales/Formatos/RepCxPDetalle.rdlc +++ b/Empresas/Grales/Formatos/RepCxPDetalle.rdlc @@ -6,17 +6,20 @@ - 2.16611cm + 1.63217cm - 5.37696cm + 4.77075cm - 2.31479cm + 2.24172cm 2.4348cm + + 2.30119cm + 2.32401cm @@ -27,7 +30,7 @@ 1.4305cm - 8.07426cm + 6.98629cm 2.89369cm @@ -39,14 +42,14 @@ - + true true - Folio + Tipo Doc. - Textbox12 + Textbox5 - Textbox5 + Textbox12 + + + + + + Textbox13 + + + + Black + + 1pt + + + Black + + 1pt + + + Black + + 1pt + + + Black + + 1pt + + Silver + 2pt + 2pt + 2pt + 2pt + + + + @@ -544,40 +603,6 @@ 0.49417cm - - - - true - true - - - - - =Fields!SerieFolio.Value - - - - - - - - - =IIF(Fields!SerieFolio.Value = "",IIF(Fields!Agrupador.Value = "","#67809F", "Silver"),"Transparent") - 2pt - 2pt - 2pt - 2pt - - - - @@ -587,8 +612,7 @@ - =IIF(Fields!TipoDocto.Value = "",IIF(Fields!Agrupador.Value = "", -IIF(Fields!CveMoneda.Value = "1", "Total Pesos","Total Dólares"),Fields!Agrupador.Value),Fields!TipoDocto.Value) + =Fields!SerieFolio.Value + + + + + + SerieFolio + + + =IIF(Fields!SerieFolio.Value = "",IIF(Fields!Agrupador.Value = "","#67809F", "Silver"),"Transparent") + 2pt + 2pt + 2pt + 2pt + + + + @@ -627,6 +687,7 @@ IIF(Fields!CveMoneda.Value = "1", "Total Pesos","Total Dólares"),Fields!Agrupad @@ -685,6 +746,41 @@ IIF(Fields!CveMoneda.Value = "1", "Total Pesos","Total Dólares"),Fields!Agrupad + + + + true + true + + + + + =IIF(Fields!SerieFolio.Value ="", "",Fields!Moneda.Value) + + + + + + + Moneda + + + =IIF(Fields!SerieFolio.Value = "",IIF(Fields!Agrupador.Value = "","#67809F", "Silver"),"Transparent") + 2pt + 2pt + 2pt + 2pt + + + + @@ -874,6 +970,7 @@ IIF(Fields!CveMoneda.Value = "1", "Total Pesos","Total Dólares"),Fields!Agrupad + @@ -1324,6 +1421,10 @@ IIF(Fields!CveMoneda.Value = "1", "Total Pesos","Total Dólares"),Fields!Agrupad Total System.Double + + Moneda + System.String + Saldo System.Double