Personalizar columnas en reporte de compras y su detalle
This commit is contained in:
@@ -45,7 +45,8 @@
|
|||||||
border: none;
|
border: none;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
#chartdiv {
|
|
||||||
|
#chartdiv {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 500px;
|
height: 500px;
|
||||||
}
|
}
|
||||||
@@ -63,9 +64,13 @@
|
|||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel</asp:LinkButton>
|
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<asp:UpdatePanel runat="server">
|
||||||
<div id="DivBtnPersonalizar" runat="server" style="cursor: pointer" onclick="PosicionaObjeto('C_BtnConsultar','DivPersonalizar','',-170); $('#DivPersonalizar').show(1000);"><i class="fa fa-list-ul"></i> Personalizar</div>
|
<ContentTemplate>
|
||||||
</li>
|
<li>
|
||||||
|
<asp:HyperLink NavigateUrl="#" data-toggle="modal" data-target="#DivPersonalizar" ID="ImgPersonalizar" runat="server"> <i class="fa fa-pencil"></i> Personalizar</asp:HyperLink>
|
||||||
|
</li>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
<li>
|
<li>
|
||||||
<asp:HyperLink NavigateUrl="javascript:;" data-toggle="modal" data-target="#DivTipoCambio" ID="ImgTipoCambio" runat="server"> <i class="fa fa-money"></i> Ver Dlls en pesos</asp:HyperLink>
|
<asp:HyperLink NavigateUrl="javascript:;" data-toggle="modal" data-target="#DivTipoCambio" ID="ImgTipoCambio" runat="server"> <i class="fa fa-money"></i> Ver Dlls en pesos</asp:HyperLink>
|
||||||
</li>
|
</li>
|
||||||
@@ -90,13 +95,14 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-1 ">Proveedor:</div>
|
<div class="col-md-1 ">Proveedor:</div>
|
||||||
<div class="col-md-2 ">
|
<div class="col-md-2 ">
|
||||||
<ADS:Dropdownlost ID="DdlProveedores" runat="server" CssStyle="width: 100%;" Width="100%" DataTextField="RazonSocial" DataValueField="CveProveedor" ></ADS:Dropdownlost>
|
<ADS:Dropdownlost ID="DdlProveedores" runat="server" CssStyle="width: 100%;" Width="100%" DataTextField="RazonSocial" DataValueField="CveProveedor"></ADS:Dropdownlost>
|
||||||
<%--<asp:DropDownList CssClass=" select2me" Width="100%" ID="DdlProveedores" runat="server" AppendDataBoundItems="true" DataTextField="RazonSocial" DataValueField="CveProveedor">
|
<%--<asp:DropDownList CssClass=" select2me" Width="100%" ID="DdlProveedores" runat="server" AppendDataBoundItems="true" DataTextField="RazonSocial" DataValueField="CveProveedor">
|
||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>--%>
|
</asp:DropDownList>--%>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Fecha Inicio:
|
Fecha Inicio:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1" style="min-width: 115px">
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
@@ -114,6 +120,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Fecha Fin:
|
Fecha Fin:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1" style="min-width: 115px">
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
@@ -234,12 +241,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-1">Tipo Docto:</div>
|
<div class="col-md-1">Tipo Docto:</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList CssClass="select2me" Width="100%" ID="DdlTipoDocto" runat="server" AppendDataBoundItems="true" >
|
<asp:DropDownList CssClass="select2me" Width="100%" ID="DdlTipoDocto" runat="server" AppendDataBoundItems="true">
|
||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Factura" Value="Fac"></asp:ListItem>
|
<asp:ListItem Text="Factura" Value="Fac"></asp:ListItem>
|
||||||
<asp:ListItem Text="Nota de Crédito" Value="NC"></asp:ListItem>
|
<asp:ListItem Text="Nota de Crédito" Value="NC"></asp:ListItem>
|
||||||
<asp:ListItem Text="Devolución" Value="DEV"></asp:ListItem>
|
<asp:ListItem Text="Devolución" Value="DEV"></asp:ListItem>
|
||||||
<asp:ListItem Text="Anticipo" Value="Ant" ></asp:ListItem>
|
<asp:ListItem Text="Anticipo" Value="Ant"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -255,6 +262,7 @@
|
|||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Grupo
|
Grupo
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlGrupo" runat="server" Text='<%# Eval("GPO") %>'></asp:Literal>
|
<asp:Literal ID="LtlGrupo" runat="server" Text='<%# Eval("GPO") %>'></asp:Literal>
|
||||||
@@ -263,6 +271,7 @@
|
|||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Cantidad
|
Cantidad
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:N0}") %>'></asp:Literal>
|
<asp:Literal ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:N0}") %>'></asp:Literal>
|
||||||
@@ -271,6 +280,7 @@
|
|||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Sub Total
|
Sub Total
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlSubTotal" runat="server" Text='<%# Eval("SubTotal", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlSubTotal" runat="server" Text='<%# Eval("SubTotal", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -280,6 +290,7 @@
|
|||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Descuento
|
Descuento
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlDescuento" runat="server" Text='<%# Eval("Descuento", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlDescuento" runat="server" Text='<%# Eval("Descuento", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -289,6 +300,7 @@
|
|||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Amortización
|
Amortización
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlAmortizacion" runat="server" Text='<%# Eval("Amortizacion", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlAmortizacion" runat="server" Text='<%# Eval("Amortizacion", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -298,15 +310,27 @@
|
|||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
IVA
|
IVA
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlIVA" runat="server" Text='<%# Eval("IVA", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlIVA" runat="server" Text='<%# Eval("IVA", "{0:N2}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<ItemStyle HorizontalAlign="Right" />
|
<ItemStyle HorizontalAlign="Right" />
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField Visible="false">
|
||||||
|
<HeaderTemplate>
|
||||||
|
IEPS
|
||||||
|
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlIEPS" runat="server" Text='<%# Eval("IEPS", "{0:N2}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
<ItemStyle HorizontalAlign="Right" />
|
||||||
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Ret. IVA
|
Ret. IVA
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlRetIVA" runat="server" Text='<%# Eval("RetIVA", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlRetIVA" runat="server" Text='<%# Eval("RetIVA", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -316,6 +340,7 @@
|
|||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Ret. ISR
|
Ret. ISR
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlRetISR" runat="server" Text='<%# Eval("RetISR", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlRetISR" runat="server" Text='<%# Eval("RetISR", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -325,6 +350,7 @@
|
|||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Total
|
Total
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -334,6 +360,7 @@
|
|||||||
<asp:TemplateField Visible="false">
|
<asp:TemplateField Visible="false">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Sub. Máximo
|
Sub. Máximo
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlMaxSubTotal" runat="server" Text='<%# Eval("MAX_SubTotal", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlMaxSubTotal" runat="server" Text='<%# Eval("MAX_SubTotal", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -343,6 +370,7 @@
|
|||||||
<asp:TemplateField Visible="false">
|
<asp:TemplateField Visible="false">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Sub. Promedio
|
Sub. Promedio
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlAVGSubTotal" runat="server" Text='<%# Eval("AVG_SubTotal", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlAVGSubTotal" runat="server" Text='<%# Eval("AVG_SubTotal", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -352,6 +380,7 @@
|
|||||||
<asp:TemplateField Visible="false">
|
<asp:TemplateField Visible="false">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Sub. Mínimo
|
Sub. Mínimo
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlMinSubTotal" runat="server" Text='<%# Eval("MIN_SubTotal", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlMinSubTotal" runat="server" Text='<%# Eval("MIN_SubTotal", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -361,6 +390,7 @@
|
|||||||
<asp:TemplateField Visible="false">
|
<asp:TemplateField Visible="false">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Tot. Máximo
|
Tot. Máximo
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlMaxTotal" runat="server" Text='<%# Eval("MAX_Total", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlMaxTotal" runat="server" Text='<%# Eval("MAX_Total", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -370,6 +400,7 @@
|
|||||||
<asp:TemplateField Visible="false">
|
<asp:TemplateField Visible="false">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Tot. Promedio
|
Tot. Promedio
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlAVGTotal" runat="server" Text='<%# Eval("AVG_Total", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlAVGTotal" runat="server" Text='<%# Eval("AVG_Total", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -379,6 +410,7 @@
|
|||||||
<asp:TemplateField Visible="false">
|
<asp:TemplateField Visible="false">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Tot. Mínimo
|
Tot. Mínimo
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlMinTotal" runat="server" Text='<%# Eval("MIN_Total", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlMinTotal" runat="server" Text='<%# Eval("MIN_Total", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -393,18 +425,24 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<asp:UpdatePanel runat="server" ID="UPPersonalizar" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" ID="UPPersonalizar" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div id="DivPersonalizar" style="width: 315px; background-color: White; border: solid 1px black; color: Black; display: none; position: absolute;">
|
<div id="DivPersonalizar" class="modal fade" role="dialog">
|
||||||
<table>
|
<div class="modal-dialog">
|
||||||
<tr class="Titulos">
|
|
||||||
<td style="width: 310px">
|
<!-- Modal content-->
|
||||||
<asp:Label ID="LblTitulo1" runat="server" ClientIDMode="Static" Text="Personalizar Columnas"></asp:Label>
|
<div class="modal-content">
|
||||||
</td>
|
<div class="modal-header">
|
||||||
<td style="padding-right: 4px; padding-top: 4px" valign="top">
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
<img alt="" src="/Imagenes/close.gif" style="cursor: pointer;" onclick="$('#DivPersonalizar').hide(1000);" /></td>
|
<h4 class="modal-title">
|
||||||
</tr>
|
<asp:Label ID="Label2" runat="server" ClientIDMode="Static" Text="Personalizar Columnas"></asp:Label></h4>
|
||||||
<tr>
|
</div>
|
||||||
<td colspan="2">
|
<div class="modal-body">
|
||||||
<table class="table table-striped table-advance table-hover">
|
<table style="width:100%" class="table table-striped table-advance table-hover">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<asp:CheckBox ID="ChkIVA" runat="server" Text="IVA" /></td>
|
||||||
|
<td>
|
||||||
|
<asp:CheckBox ID="ChkIEPS" runat="server" Text="IEPS" /></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<asp:CheckBox ID="ChkRetIVA" runat="server" Text="Ret. IVA" /></td>
|
<asp:CheckBox ID="ChkRetIVA" runat="server" Text="Ret. IVA" /></td>
|
||||||
@@ -430,17 +468,15 @@
|
|||||||
<asp:CheckBox ID="ChkMinTot" runat="server" Text="Total Mínimo" /></td>
|
<asp:CheckBox ID="ChkMinTot" runat="server" Text="Total Mínimo" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
<div class="modal-footer">
|
||||||
<tr style="text-align: center; height: 25px">
|
|
||||||
<td colspan="2">
|
|
||||||
<asp:Button ID="BtnPersonalizar" runat="server" Text="Personalizar" class="btn btn-primary" />
|
<asp:Button ID="BtnPersonalizar" runat="server" Text="Personalizar" class="btn btn-primary" />
|
||||||
<input type="button" value="Cancelar" onclick="$('#DivPersonalizar').hide(1000);" class="btn btn-default grey-cascade" />
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
</div>
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -472,7 +508,8 @@
|
|||||||
|
|
||||||
<div class="row" style="margin-left: 10px;" runat="server" id="LiEspecifico" visible="false">
|
<div class="row" style="margin-left: 10px;" runat="server" id="LiEspecifico" visible="false">
|
||||||
Especifico:
|
Especifico:
|
||||||
<asp:TextBox ID="TxtEspecifico" runat="server" Width="55px" />
|
|
||||||
|
<asp:TextBox ID="TxtEspecifico" runat="server" Width="55px" />
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ Partial Class Compras_RepCompras
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaCombos()
|
Private Sub CargaCombos()
|
||||||
|
txtFechaI.Text = $"01/01/{Now.Year}"
|
||||||
'CargaProveedores
|
'CargaProveedores
|
||||||
DdlProveedores.setEsWebService(True)
|
DdlProveedores.setEsWebService(True)
|
||||||
DdlProveedores.Attributes.Add("data-metodo", "getproveedores")
|
DdlProveedores.Attributes.Add("data-metodo", "getproveedores")
|
||||||
@@ -169,12 +170,9 @@ Partial Class Compras_RepCompras
|
|||||||
|
|
||||||
|
|
||||||
Private Sub ConfiguraEmpresa()
|
Private Sub ConfiguraEmpresa()
|
||||||
'Dim ObjEmpresa As New ClsEmpresas()
|
ChkIVA.Checked = True
|
||||||
'If ObjEmpresa.GetEmpresas(UsuarioActual.CveEmpresa, "-1", "-1", "-1", "-1") Then
|
If Not UsuarioActual.Empresa.MostrarRetIVA Then GvDatos.Columns(7).Visible = False
|
||||||
If Not UsuarioActual.Empresa.MostrarRetIVA Then GvDatos.Columns(6).Visible = False
|
If Not UsuarioActual.Empresa.MostrarRetISR Then GvDatos.Columns(8).Visible = False
|
||||||
If Not UsuarioActual.Empresa.MostrarRetISR Then GvDatos.Columns(7).Visible = False
|
|
||||||
'End If
|
|
||||||
'ObjEmpresa.Dispose()
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaSubProyecto()
|
Private Sub CargaSubProyecto()
|
||||||
@@ -211,11 +209,13 @@ Partial Class Compras_RepCompras
|
|||||||
CargaDatos()
|
CargaDatos()
|
||||||
ConfiguraEmpresa()
|
ConfiguraEmpresa()
|
||||||
UPDatos.Update()
|
UPDatos.Update()
|
||||||
|
UPPersonalizar.Update()
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub BtnTipoCambio_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnTipoCambio_Click(sender As Object, e As EventArgs)
|
||||||
CargaDatos()
|
CargaDatos()
|
||||||
ConfiguraEmpresa()
|
ConfiguraEmpresa()
|
||||||
UPDatos.Update()
|
UPDatos.Update()
|
||||||
|
UPPersonalizar.Update()
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaDatos()
|
Private Sub CargaDatos()
|
||||||
Dim ObjCompras As New ClsCompras()
|
Dim ObjCompras As New ClsCompras()
|
||||||
@@ -311,54 +311,66 @@ Partial Class Compras_RepCompras
|
|||||||
#Region "PERSONALIZAR"
|
#Region "PERSONALIZAR"
|
||||||
|
|
||||||
Protected Sub BtnPersonalizar_Click(sender As Object, e As System.EventArgs) Handles BtnPersonalizar.Click
|
Protected Sub BtnPersonalizar_Click(sender As Object, e As System.EventArgs) Handles BtnPersonalizar.Click
|
||||||
If ChkRetIVA.Checked Then
|
If ChkIVA.Checked Then
|
||||||
|
GvDatos.Columns(5).Visible = True
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(5).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ChkIEPS.Checked Then
|
||||||
GvDatos.Columns(6).Visible = True
|
GvDatos.Columns(6).Visible = True
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(6).Visible = False
|
GvDatos.Columns(6).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkRetISR.Checked Then
|
If ChkRetIVA.Checked Then
|
||||||
GvDatos.Columns(7).Visible = True
|
GvDatos.Columns(7).Visible = True
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(7).Visible = False
|
GvDatos.Columns(7).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkMinSub.Checked Then
|
If ChkRetISR.Checked Then
|
||||||
GvDatos.Columns(9).Visible = True
|
GvDatos.Columns(8).Visible = True
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(9).Visible = False
|
GvDatos.Columns(8).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkAVGSub.Checked Then
|
If ChkMinSub.Checked Then
|
||||||
GvDatos.Columns(10).Visible = True
|
GvDatos.Columns(10).Visible = True
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(10).Visible = False
|
GvDatos.Columns(10).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkMaxSub.Checked Then
|
If ChkAVGSub.Checked Then
|
||||||
GvDatos.Columns(11).Visible = True
|
GvDatos.Columns(11).Visible = True
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(11).Visible = False
|
GvDatos.Columns(11).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkMinTot.Checked Then
|
If ChkMaxSub.Checked Then
|
||||||
GvDatos.Columns(12).Visible = True
|
GvDatos.Columns(12).Visible = True
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(12).Visible = False
|
GvDatos.Columns(12).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkAvgTot.Checked Then
|
If ChkMinTot.Checked Then
|
||||||
GvDatos.Columns(13).Visible = True
|
GvDatos.Columns(13).Visible = True
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(13).Visible = False
|
GvDatos.Columns(13).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ChkMaxTot.Checked Then
|
If ChkAvgTot.Checked Then
|
||||||
GvDatos.Columns(14).Visible = True
|
GvDatos.Columns(14).Visible = True
|
||||||
Else
|
Else
|
||||||
GvDatos.Columns(14).Visible = False
|
GvDatos.Columns(14).Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If ChkMaxTot.Checked Then
|
||||||
|
GvDatos.Columns(15).Visible = True
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(15).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
UPDatos.Update()
|
UPDatos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkPdf" OnClick="LnkPdf_Click" runat="server"> <i class="fa fa-ad-pdf"></i> Generar PDF</asp:LinkButton>
|
<asp:LinkButton ID="LnkPdf" OnClick="LnkPdf_Click" runat="server"> <i class="fa fa-ad-pdf"></i> Generar PDF</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkExportar" runat="server">
|
<asp:LinkButton ID="LnkExportar" runat="server">
|
||||||
<i class="fa fa-ad-excel"></i> Exportar Excel
|
<i class="fa fa-ad-excel"></i> Exportar Excel
|
||||||
@@ -17,6 +18,13 @@
|
|||||||
<i class="fa fa-print"></i> Imprimir Remesa
|
<i class="fa fa-print"></i> Imprimir Remesa
|
||||||
</asp:LinkButton>
|
</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
|
<asp:UpdatePanel runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
<li>
|
||||||
|
<asp:HyperLink NavigateUrl="#" data-toggle="modal" data-target="#DivPersonalizar" ID="ImgPersonalizar" runat="server"> <i class="fa fa-pencil"></i> Personalizar</asp:HyperLink>
|
||||||
|
</li>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
<li>
|
<li>
|
||||||
<asp:HyperLink NavigateUrl="javascript:;" data-toggle="modal" data-target="#DivTipoCambio" ID="ImgTipoCambio" runat="server"> <i class="fa fa-money"></i> Ver Dlls en pesos</asp:HyperLink>
|
<asp:HyperLink NavigateUrl="javascript:;" data-toggle="modal" data-target="#DivTipoCambio" ID="ImgTipoCambio" runat="server"> <i class="fa fa-money"></i> Ver Dlls en pesos</asp:HyperLink>
|
||||||
</li>
|
</li>
|
||||||
@@ -104,7 +112,8 @@
|
|||||||
border: none;
|
border: none;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
#chartdiv {
|
|
||||||
|
#chartdiv {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 500px;
|
height: 500px;
|
||||||
}
|
}
|
||||||
@@ -125,15 +134,16 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-1 ">Proveedor:</div>
|
<div class="col-md-1 ">Proveedor:</div>
|
||||||
<div class="col-md-2 ">
|
<div class="col-md-2 ">
|
||||||
<ADS:Dropdownlost ID="DdlProveedores" runat="server" CssStyle="width: 100%;" Width="100%" DataTextField="RazonSocial" DataValueField="CveProveedor" ></ADS:Dropdownlost>
|
<ADS:Dropdownlost ID="DdlProveedores" runat="server" CssStyle="width: 100%;" Width="100%" DataTextField="RazonSocial" DataValueField="CveProveedor"></ADS:Dropdownlost>
|
||||||
<%--<asp:DropDownList CssClass=" select2me" Width="100%" ID="DdlProveedores" runat="server" AppendDataBoundItems="true" DataTextField="RazonSocial" DataValueField="CveProveedor">
|
<%--<asp:DropDownList CssClass=" select2me" Width="100%" ID="DdlProveedores" runat="server" AppendDataBoundItems="true" DataTextField="RazonSocial" DataValueField="CveProveedor">
|
||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>--%>
|
</asp:DropDownList>--%>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Fecha Inicio:
|
Fecha Inicio:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1" style="min-width:115px">
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
<asp:TextBox Width="80px" ID="txtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
<asp:TextBox Width="80px" ID="txtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
@@ -149,8 +159,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Fecha Fin:
|
Fecha Fin:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1" style="min-width:115px">
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
<asp:TextBox Width="80px" ID="txtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
<asp:TextBox Width="80px" ID="txtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
@@ -202,7 +213,7 @@
|
|||||||
<asp:ListBox ID="DdlSubProyecto" SelectionMode="Multiple" data-text="Todos" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server"></asp:ListBox>
|
<asp:ListBox ID="DdlSubProyecto" SelectionMode="Multiple" data-text="Todos" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server"></asp:ListBox>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1" title="Fecha Inicio de Captura">F. I. Captura</div>
|
<div class="col-md-1" title="Fecha Inicio de Captura">F. I. Captura</div>
|
||||||
<div class="col-md-1" style="min-width:115px">
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy" style="padding: 0px; width: 100px !important">
|
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy" style="padding: 0px; width: 100px !important">
|
||||||
<asp:TextBox Width="80px" ID="TxtFechaICaptura" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
<asp:TextBox Width="80px" ID="TxtFechaICaptura" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
@@ -217,7 +228,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1" title="Fecha Fin de Captura">F. F. Captura:</div>
|
<div class="col-md-1" title="Fecha Fin de Captura">F. F. Captura:</div>
|
||||||
<div class="col-md-1" style="min-width:115px">
|
<div class="col-md-1" style="min-width: 115px">
|
||||||
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy" style="padding: 0px; width: 100px !important">
|
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy" style="padding: 0px; width: 100px !important">
|
||||||
<asp:TextBox Width="80px" ID="TxtFechaFCaptura" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
<asp:TextBox Width="80px" ID="TxtFechaFCaptura" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
@@ -233,7 +244,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-1">Tipo de Proveedor:</div>
|
<div class="col-md-1">Tipo de Proveedor:</div>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<asp:DropDownList ID="DdlTipoProveedor" runat="server" CssClass=" select2me" AppendDataBoundItems="true" Width="100%">
|
<asp:DropDownList ID="DdlTipoProveedor" runat="server" CssClass=" select2me" AppendDataBoundItems="true" Width="100%">
|
||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Proveedor" Value="1"></asp:ListItem>
|
<asp:ListItem Text="Proveedor" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Acreedor" Value="2"></asp:ListItem>
|
<asp:ListItem Text="Acreedor" Value="2"></asp:ListItem>
|
||||||
@@ -263,12 +274,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-1">Tipo Docto:</div>
|
<div class="col-md-1">Tipo Docto:</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList CssClass="select2me" Width="100%" ID="DdlTipoDocto" runat="server" AppendDataBoundItems="true" >
|
<asp:DropDownList CssClass="select2me" Width="100%" ID="DdlTipoDocto" runat="server" AppendDataBoundItems="true">
|
||||||
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Factura" Value="Fac"></asp:ListItem>
|
<asp:ListItem Text="Factura" Value="Fac"></asp:ListItem>
|
||||||
<asp:ListItem Text="Nota de Crédito" Value="NC"></asp:ListItem>
|
<asp:ListItem Text="Nota de Crédito" Value="NC"></asp:ListItem>
|
||||||
<asp:ListItem Text="Anticipo" Value="Ant" ></asp:ListItem>
|
<asp:ListItem Text="Anticipo" Value="Ant"></asp:ListItem>
|
||||||
<asp:ListItem Text="Devolución" Value="DEV"></asp:ListItem>
|
<asp:ListItem Text="Devolución" Value="DEV"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -284,14 +295,16 @@
|
|||||||
<asp:TemplateField ItemStyle-Width="60">
|
<asp:TemplateField ItemStyle-Width="60">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Fecha
|
Fecha
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-Width="100">
|
<asp:TemplateField ItemStyle-Width="100">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Serie/Folio
|
Serie/Folio
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:HyperLink ID="HplSerieFolio" runat="server" Text='<%# Eval("SerieFolio") %>' CssClass="Texto" NavigateUrl='<%# Eval("CveCompra", "/Compras/Compras.aspx?CveCompra={0}") %>'></asp:HyperLink>
|
<asp:HyperLink ID="HplSerieFolio" runat="server" Text='<%# Eval("SerieFolio") %>' CssClass="Texto" NavigateUrl='<%# Eval("CveCompra", "/Compras/Compras.aspx?CveCompra={0}") %>'></asp:HyperLink>
|
||||||
@@ -300,6 +313,7 @@
|
|||||||
<asp:TemplateField ItemStyle-Width="20">
|
<asp:TemplateField ItemStyle-Width="20">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Cant.
|
Cant.
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlCant" runat="server" Text='<%# Eval("Cantidad", "{0:N0}") %>'></asp:Literal>
|
<asp:Literal ID="LtlCant" runat="server" Text='<%# Eval("Cantidad", "{0:N0}") %>'></asp:Literal>
|
||||||
@@ -308,6 +322,7 @@
|
|||||||
<asp:TemplateField ItemStyle-Width="80">
|
<asp:TemplateField ItemStyle-Width="80">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
SubTotal
|
SubTotal
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlSubTotal" runat="server" Text='<%# Eval("SubTotal", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlSubTotal" runat="server" Text='<%# Eval("SubTotal", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -316,14 +331,25 @@
|
|||||||
<asp:TemplateField ItemStyle-Width="80">
|
<asp:TemplateField ItemStyle-Width="80">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
IVA
|
IVA
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlIVA" runat="server" Text='<%# Eval("IVA", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlIVA" runat="server" Text='<%# Eval("IVA", "{0:N2}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-Width="80">
|
||||||
|
<HeaderTemplate>
|
||||||
|
IEPS
|
||||||
|
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlIEPS" runat="server" Text='<%# Eval("IEPS", "{0:N2}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-Width="80">
|
<asp:TemplateField ItemStyle-Width="80">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Descuentos
|
Descuentos
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlDescuentos" runat="server" Text='<%# Eval("Descuento", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlDescuentos" runat="server" Text='<%# Eval("Descuento", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -332,6 +358,7 @@
|
|||||||
<asp:TemplateField ItemStyle-Width="80">
|
<asp:TemplateField ItemStyle-Width="80">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Total
|
Total
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'></asp:Literal>
|
||||||
@@ -340,6 +367,7 @@
|
|||||||
<asp:TemplateField ItemStyle-Width="60">
|
<asp:TemplateField ItemStyle-Width="60">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Moneda
|
Moneda
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlUM" runat="server" Text='<%# Eval("Abreviatura")%>'></asp:Literal>
|
<asp:Literal ID="LtlUM" runat="server" Text='<%# Eval("Abreviatura")%>'></asp:Literal>
|
||||||
@@ -349,6 +377,7 @@
|
|||||||
<asp:TemplateField ItemStyle-Width="200">
|
<asp:TemplateField ItemStyle-Width="200">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Proveedor
|
Proveedor
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlProveedor" runat="server" Text='<%# Eval("RazonSocial") %>'></asp:Literal>
|
<asp:Literal ID="LtlProveedor" runat="server" Text='<%# Eval("RazonSocial") %>'></asp:Literal>
|
||||||
@@ -357,6 +386,7 @@
|
|||||||
<asp:TemplateField ItemStyle-Width="30">
|
<asp:TemplateField ItemStyle-Width="30">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Folio Inv
|
Folio Inv
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlFolioInv" runat="server" Text='<%# Eval("FolioInv") %>'></asp:Literal>
|
<asp:Literal ID="LtlFolioInv" runat="server" Text='<%# Eval("FolioInv") %>'></asp:Literal>
|
||||||
@@ -365,6 +395,7 @@
|
|||||||
<asp:TemplateField ItemStyle-Width="60">
|
<asp:TemplateField ItemStyle-Width="60">
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Fecha Movimiento
|
Fecha Movimiento
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlFechaInv" runat="server" Text='<%# Eval("FechaInv", "{0:d}") %>'></asp:Literal>
|
<asp:Literal ID="LtlFechaInv" runat="server" Text='<%# Eval("FechaInv", "{0:d}") %>'></asp:Literal>
|
||||||
@@ -397,7 +428,8 @@
|
|||||||
|
|
||||||
<div class="row" style="margin-left: 10px;" runat="server" id="LiEspecifico" visible="false">
|
<div class="row" style="margin-left: 10px;" runat="server" id="LiEspecifico" visible="false">
|
||||||
Especifico:
|
Especifico:
|
||||||
<asp:TextBox ID="TxtEspecifico" runat="server" Width="55px" />
|
|
||||||
|
<asp:TextBox ID="TxtEspecifico" runat="server" Width="55px" />
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
@@ -413,7 +445,60 @@
|
|||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
<asp:UpdatePanel runat="server" ID="UPPersonalizar" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div id="DivPersonalizar" class="modal fade" role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
|
||||||
|
<!-- Modal content-->
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
|
<h4 class="modal-title">
|
||||||
|
<asp:Label ID="Label2" runat="server" ClientIDMode="Static" Text="Personalizar Columnas"></asp:Label></h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<table style="width: 100%" class="table table-striped table-advance table-hover">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<asp:CheckBox ID="ChkIVA" runat="server" Text="IVA" /></td>
|
||||||
|
<td>
|
||||||
|
<asp:CheckBox ID="ChkIEPS" runat="server" Text="IEPS" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<asp:CheckBox ID="ChkDesc" runat="server" Text="Descuentos" /></td>
|
||||||
|
<td>
|
||||||
|
<asp:CheckBox ID="ChkTotal" runat="server" Text="Total" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<asp:CheckBox ID="ChkAbre" runat="server" Text="Moneda" /></td>
|
||||||
|
<td>
|
||||||
|
<asp:CheckBox ID="ChkRazon" runat="server" Text="Proveedor" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<asp:CheckBox ID="ChkFolio" runat="server" Text="Folio Inv" /></td>
|
||||||
|
<td>
|
||||||
|
<asp:CheckBox ID="ChkFecha" runat="server" Text="Fecha Movimiento" /></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<asp:Button ID="BtnPersonalizar" runat="server" Text="Personalizar" class="btn btn-primary" />
|
||||||
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
<div id="DivModalGrafica" class="modal ADS fade" role="dialog">
|
<div id="DivModalGrafica" class="modal ADS fade" role="dialog">
|
||||||
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UPModalProd" UpdateMode="Conditional">
|
<asp:UpdatePanel class="modal-dialog modal-lg" runat="server" ID="UPModalProd" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|||||||
@@ -159,6 +159,16 @@ Partial Class Compras_RepComprasDetalle
|
|||||||
End If
|
End If
|
||||||
DdlTipoProveedor.SelectedValueExist(CveTipoProveedor)
|
DdlTipoProveedor.SelectedValueExist(CveTipoProveedor)
|
||||||
DdlTipoDocto.SelectedValueExist(TipoDocto)
|
DdlTipoDocto.SelectedValueExist(TipoDocto)
|
||||||
|
|
||||||
|
ChkIVA.Checked = True
|
||||||
|
ChkIEPS.Checked = True
|
||||||
|
ChkDesc.Checked = True
|
||||||
|
ChkTotal.Checked = True
|
||||||
|
ChkAbre.Checked = True
|
||||||
|
ChkRazon.Checked = True
|
||||||
|
ChkFolio.Checked = True
|
||||||
|
ChkFecha.Checked = True
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaGrupo()
|
Private Sub CargaGrupo()
|
||||||
@@ -586,6 +596,58 @@ Partial Class Compras_RepComprasDetalle
|
|||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
Protected Sub BtnPersonalizar_Click(sender As Object, e As System.EventArgs) Handles BtnPersonalizar.Click
|
||||||
|
If ChkIVA.Checked Then
|
||||||
|
GvDatos.Columns(4).Visible = True
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(4).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ChkIEPS.Checked Then
|
||||||
|
GvDatos.Columns(5).Visible = True
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(5).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ChkDesc.Checked Then
|
||||||
|
GvDatos.Columns(6).Visible = True
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(6).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ChkTotal.Checked Then
|
||||||
|
GvDatos.Columns(7).Visible = True
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(7).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ChkAbre.Checked Then
|
||||||
|
GvDatos.Columns(8).Visible = True
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(8).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ChkRazon.Checked Then
|
||||||
|
GvDatos.Columns(9).Visible = True
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(9).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ChkFolio.Checked Then
|
||||||
|
GvDatos.Columns(10).Visible = True
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(10).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ChkFecha.Checked Then
|
||||||
|
GvDatos.Columns(11).Visible = True
|
||||||
|
Else
|
||||||
|
GvDatos.Columns(11).Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
UPDatos.Update()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
Reference in New Issue
Block a user