--Hyperlink en reporte
This commit is contained in:
@@ -112,7 +112,11 @@
|
||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" AutoGenerateColumns="False"
|
||||
EmptyDataText="No se encontraron registros" data-sort="true" Width="99%" DataKeyNames="CveCliente,CveMoneda,CveSubProyecto,FechaI,FechaF,FechaICorte,FechaFCorte,TipoCambio,TCEspecifico,ConSaldo">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="NombreComercial" ItemStyle-Width="30%" HeaderText="Cliente" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:TemplateField ItemStyle-Width="30%" HeaderText="Cliente" ItemStyle-HorizontalAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:HyperLink runat="server" ID="HLFolio" Target="_blank" Text='<%# Eval("NombreComercial")%>'></asp:HyperLink>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="TipoTexto" ItemStyle-Width="7%" HeaderText="Tipo" ItemStyle-HorizontalAlign="Center" />
|
||||
<asp:BoundField DataField="AplicadoAnticipos" ItemStyle-Width="21%" HeaderText="Apl. Anticipo" DataFormatString="{0:C}" ItemStyle-HorizontalAlign="right" />
|
||||
<asp:BoundField DataField="AplicadoNC" ItemStyle-Width="21%" HeaderText="Apl. NC" DataFormatString="{0:C}" ItemStyle-HorizontalAlign="right" />
|
||||
|
||||
@@ -210,6 +210,30 @@ public partial class Ventas_RepAnticipo_NC_IXCAplicados : ClsPaginas
|
||||
}
|
||||
}
|
||||
|
||||
if (e.Row.DBCampo("CveCliente").ToEntero() > 0)
|
||||
{
|
||||
if (e.Row.DBCampo("Tipo").ToEntero() == 0)
|
||||
{
|
||||
e.Row.CssClass = "SubTotales";
|
||||
}
|
||||
|
||||
switch (e.Row.DBCampo("Tipo"))
|
||||
{
|
||||
case "0":
|
||||
e.Row.FCHyperLink("HLFolio").NavigateUrl = string.Format("/Ventas/Clientes.aspx?CveCliente={0}", e.Row.DBCampo("CveCliente").ToEntero());
|
||||
break;
|
||||
case "1":
|
||||
e.Row.FCHyperLink("HLFolio").NavigateUrl = string.Format("/Ventas/Ventas.aspx?CveVenta={0}", e.Row.DBCampo("Id").ToEntero());
|
||||
break;
|
||||
case "2":
|
||||
e.Row.FCHyperLink("HLFolio").NavigateUrl = string.Format("/Ventas/Ventas.aspx?CveVenta={0}", e.Row.DBCampo("Id").ToEntero());
|
||||
break;
|
||||
case "3":
|
||||
e.Row.FCHyperLink("HLFolio").NavigateUrl = string.Format("/Bancos/IE.aspx?CveIE={0}", e.Row.DBCampo("Id").ToEntero());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user