Rep CxP Detalle / EntradasSalidas: limpiar chequeo de estado personalizado de Grid
- Arregla un bug en CxP donde mostraba la opcion de descargar Excel personalizado sin que el usuario hubiera personalizado el Grid anteriormente
This commit is contained in:
@@ -227,7 +227,7 @@
|
||||
<Columns>
|
||||
|
||||
<%--0--%>
|
||||
<asp:HyperLinkField DataNavigateUrlFields="CvePS,CveMoneda,CveProveedor,CveConcepto,FechaI,FechaF,CveAlmacen,CvePersonal,Tipo" DataNavigateUrlFormatString="~/Inventarios/RepExistenciasCostos.aspx?CvePS={0}&CveMoneda={1}&CveProveedor={2}&CveConcepto={3}&FechaI={4}&FechaF={5}&CveAlmacen={6}&CvePersonal={7}&Tipo={8}" Target="_blank" ItemStyle-Width="10%" HeaderText="Código" ControlStyle-CssClass="Texto" ItemStyle-HorizontalAlign="Left" DataTextField="Codigo" />
|
||||
<asp:HyperLinkField DataNavigateUrlFields="CvePS,CveMoneda,CveProveedor,CveConcepto,FechaI,FechaF,CveAlmacen,CvePersonal,Tipo" DataNavigateUrlFormatString="~/Inventarios/RepExistenciasCostos.aspx?CvePS={0}&CveMoneda={1}&CveProveedor={2}&CveConcepto={3}&FechaI={4}&FechaF={5}&CveAlmacen={6}&CvePersonal={7}&Tipo={8}" Target="_blank" ItemStyle-Width="10%" HeaderText="Código" ControlStyle-CssClass="Texto" ItemStyle-HorizontalAlign="Left" DataTextField="Codigo" />
|
||||
<%--1--%>
|
||||
<asp:HyperLinkField DataNavigateUrlFields="CvePS,CveMoneda,CveProveedor,CveConcepto,FechaI,FechaF,CveAlmacen,CvePersonal,Tipo" DataNavigateUrlFormatString="~/Inventarios/RepExistenciasCostos.aspx?CvePS={0}&CveMoneda={1}&CveProveedor={2}&CveConcepto={3}&FechaI={4}&FechaF={5}&CveAlmacen={6}&CvePersonal={7}&Tipo={8}" Target="_blank" ItemStyle-Width="10%" HeaderText="Código2" ControlStyle-CssClass="Texto" ItemStyle-HorizontalAlign="Left" Visible="False" DataTextField="Codigo2" />
|
||||
<%--2--%>
|
||||
|
||||
@@ -54,21 +54,11 @@ Partial Class Inventarios_ReporteEntradasSalidas
|
||||
Return (UsuarioActual.CveEmpresa.Contiene(72, 80))
|
||||
End Get
|
||||
End Property
|
||||
Private Property Personalizo As Integer
|
||||
Get
|
||||
Return ViewState("Personalizo").ToString.ToEntero
|
||||
End Get
|
||||
|
||||
Set(value As Integer)
|
||||
ViewState("Personalizo") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#End Region
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
If Not IsPostBack Then
|
||||
Personalizo = 0
|
||||
|
||||
If UsuarioActual.CveEmpresa.Contiene(119) Then
|
||||
LnkFormatoInventario.Visible = True
|
||||
@@ -435,7 +425,7 @@ Partial Class Inventarios_ReporteEntradasSalidas
|
||||
#End Region
|
||||
|
||||
#Region "PERSONALIZAR"
|
||||
Private Sub MostrarOcultarColumnas()
|
||||
Private Sub MostrarOcultarColumnas(Optional Personalizo As Boolean = True)
|
||||
GvM.Columns(1).Visible = ChkCodigoAlterno.Checked
|
||||
GvM.Columns(2).Visible = ChkCodigoBarras.Checked
|
||||
GvM.Columns(3).Visible = ChkClasificacion2.Checked
|
||||
@@ -510,12 +500,12 @@ Partial Class Inventarios_ReporteEntradasSalidas
|
||||
dvCan.Style.Add("width", "21%")
|
||||
End If
|
||||
|
||||
Personalizo = 1
|
||||
If Personalizo = 1 Then
|
||||
If Personalizo Then
|
||||
LnkExcelPersonalizado.Visible = True
|
||||
Else
|
||||
LnkExcelPersonalizado.Visible = False
|
||||
End If
|
||||
UPAcciones.Update()
|
||||
|
||||
UpEncabezado.Update()
|
||||
UPPMov.Update()
|
||||
@@ -524,7 +514,6 @@ Partial Class Inventarios_ReporteEntradasSalidas
|
||||
Private Sub BtnPersonalizar_Click(sender As Object, e As EventArgs) Handles BtnPersonalizar.Click
|
||||
MostrarOcultarColumnas()
|
||||
RegistraScript("$('#DivPersonalizar').modal('hide')")
|
||||
UPAcciones.Update()
|
||||
'CargaDatos()
|
||||
End Sub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user