Lineas adicionales, Cat Empresas Visible para usuarios
This commit is contained in:
@@ -5400,7 +5400,8 @@ Public Class ClsPaginas
|
|||||||
#End Region
|
#End Region
|
||||||
#Region "Sistema"
|
#Region "Sistema"
|
||||||
'Cargo las páginas que deben tener restricción
|
'Cargo las páginas que deben tener restricción
|
||||||
PaginaDict.Add("/Sistemas/CatEmpresas.aspx".ToUpper(), 2)
|
'PaginaDict.Add("/Sistemas/CatEmpresas.aspx".ToUpper(), 2)
|
||||||
|
PaginaDict.Add("/Sistemas/CatEmpresas.aspx".ToUpper(), 24)
|
||||||
PaginaDict.Add("/Sistemas/Empresa.aspx".ToUpper(), 2)
|
PaginaDict.Add("/Sistemas/Empresa.aspx".ToUpper(), 2)
|
||||||
PaginaDict.Add("/Sistemas/CatUsuarios.aspx".ToUpper(), 20)
|
PaginaDict.Add("/Sistemas/CatUsuarios.aspx".ToUpper(), 20)
|
||||||
PaginaDict.Add("/Sistemas/Usuarios.aspx".ToUpper(), 20)
|
PaginaDict.Add("/Sistemas/Usuarios.aspx".ToUpper(), 20)
|
||||||
|
|||||||
@@ -312,7 +312,7 @@ Public Class ClsSisEmpresas
|
|||||||
End Try
|
End Try
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetEmpresas(CveEmpresa As Integer, Empresa As String, RFC As String, Telefono As String, Contacto As String) As Boolean
|
Public Function GetEmpresas(CveEmpresa As Integer, Empresa As String, RFC As String, Telefono As String, Contacto As String, Optional CveUsuarioEmpresas As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Sis_EmpresasGet")
|
DataAdapter("PA_Sis_EmpresasGet")
|
||||||
@@ -323,6 +323,7 @@ Public Class ClsSisEmpresas
|
|||||||
.Add("@RFC", SqlDbType.VarChar).Value = RFC
|
.Add("@RFC", SqlDbType.VarChar).Value = RFC
|
||||||
.Add("@Telefono", SqlDbType.VarChar).Value = Telefono
|
.Add("@Telefono", SqlDbType.VarChar).Value = Telefono
|
||||||
.Add("@Contacto", SqlDbType.VarChar).Value = Contacto
|
.Add("@Contacto", SqlDbType.VarChar).Value = Contacto
|
||||||
|
.Add("@CveUsuarioEmpresas", SqlDbType.Int).Value = CveUsuarioEmpresas
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
|
|||||||
@@ -5576,7 +5576,7 @@ Public Class ClsVentas
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetLineasAdicionales(CveLineaAdicional As Integer, CveCliente As Integer, CveProveedor As Integer, TipoLinea As Integer, CveMoneda As Integer,
|
Public Function GetLineasAdicionales(CveLineaAdicional As Integer, CveCliente As Integer, CveProveedor As Integer, TipoLinea As Integer, CveMoneda As Integer,
|
||||||
FechaI As Date, FechaF As Date, CveEstatus As Integer, CveEmpresa As Integer) As Boolean
|
FechaI As Date, FechaF As Date, CveLineaAdicionalEstatus As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Vta_LineasAdicionalesGet")
|
DataAdapter("PA_Vta_LineasAdicionalesGet")
|
||||||
@@ -5589,7 +5589,7 @@ Public Class ClsVentas
|
|||||||
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
|
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
|
||||||
.Add("@FechaI", SqlDbType.Date).Value = FechaI
|
.Add("@FechaI", SqlDbType.Date).Value = FechaI
|
||||||
.Add("@FechaF", SqlDbType.Date).Value = FechaF
|
.Add("@FechaF", SqlDbType.Date).Value = FechaF
|
||||||
.Add("@CveEstatus", SqlDbType.Int).Value = CveEstatus
|
.Add("@CveLineaAdicionalEstatus", SqlDbType.Int).Value = CveLineaAdicionalEstatus
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
@@ -5648,7 +5648,8 @@ Public Class ClsVentas
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function AddLineasAdicionales(LineaAdicional As String, CveCliente As Integer, CveProveedor As Integer, TipoLinea As Integer, Importe As Decimal,
|
Public Function AddLineasAdicionales(LineaAdicional As String, CveCliente As Integer, CveProveedor As Integer, TipoLinea As Integer, Importe As Decimal,
|
||||||
CveMoneda As Integer, FechaVencimiento As Date, CveUsuario As Integer, CveClasificacionPS As Integer, CveEstatus As Integer) As Boolean
|
CveMoneda As Integer, FechaVencimiento As Date, CveUsuario As Integer, CveCategoria As Integer,
|
||||||
|
Optional DiasVencimiento As Integer = -1) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Vta_LineasAdicionalesAdd")
|
DataAdapter("PA_Vta_LineasAdicionalesAdd")
|
||||||
@@ -5663,8 +5664,8 @@ Public Class ClsVentas
|
|||||||
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
|
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
|
||||||
.Add("@FechaVencimiento", SqlDbType.Date).Value = FechaVencimiento
|
.Add("@FechaVencimiento", SqlDbType.Date).Value = FechaVencimiento
|
||||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
.Add("@CveClasificacionPS", SqlDbType.Int).Value = CveClasificacionPS
|
.Add("@CveCategoria", SqlDbType.Int).Value = CveCategoria
|
||||||
.Add("@CveEstatus", SqlDbType.Int).Value = CveEstatus
|
.Add("@DiasVencimiento", SqlDbType.VarChar).Value = DiasVencimiento
|
||||||
|
|
||||||
|
|
||||||
End With
|
End With
|
||||||
@@ -5681,7 +5682,8 @@ Public Class ClsVentas
|
|||||||
|
|
||||||
|
|
||||||
Public Function UpdateLineasAdicionales(CveLineaAdicional As Integer, LineaAdicional As String, CveCliente As Integer, CveProveedor As Integer, TipoLinea As Integer, Importe As Decimal,
|
Public Function UpdateLineasAdicionales(CveLineaAdicional As Integer, LineaAdicional As String, CveCliente As Integer, CveProveedor As Integer, TipoLinea As Integer, Importe As Decimal,
|
||||||
CveMoneda As Integer, FechaVencimiento As Date, CveUsuario As Integer, CveClasificacionPS As Integer, CveEstatus As Integer, CveEmpresa As Integer, Optional Comprobante As String = "-1") As Boolean
|
CveMoneda As Integer, FechaVencimiento As Date, CveUsuario As Integer, CveCategoria As Integer, CveEmpresa As Integer,
|
||||||
|
Optional Comprobante As String = "-1", Optional DiasVencimiento As Integer = -1, Optional CveVenta As Integer = -1, Optional CveLineaAdicionalEstatus As Integer = -1) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Vta_LineasAdicionalesUpdate")
|
DataAdapter("PA_Vta_LineasAdicionalesUpdate")
|
||||||
@@ -5696,10 +5698,12 @@ Public Class ClsVentas
|
|||||||
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
|
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
|
||||||
.Add("@FechaVencimiento", SqlDbType.Date).Value = FechaVencimiento
|
.Add("@FechaVencimiento", SqlDbType.Date).Value = FechaVencimiento
|
||||||
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
.Add("@CveClasificacionPS", SqlDbType.Int).Value = CveClasificacionPS
|
.Add("@CveCategoria", SqlDbType.Int).Value = CveCategoria
|
||||||
.Add("@CveEstatus", SqlDbType.Int).Value = CveEstatus
|
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
.Add("@Comprobante", SqlDbType.VarChar).Value = Comprobante
|
.Add("@Comprobante", SqlDbType.VarChar).Value = Comprobante
|
||||||
|
.Add("@DiasVencimiento", SqlDbType.VarChar).Value = DiasVencimiento
|
||||||
|
.Add("@CveVenta", SqlDbType.VarChar).Value = CveVenta
|
||||||
|
.Add("@CveLineaAdicionalEstatus", SqlDbType.Int).Value = CveLineaAdicionalEstatus
|
||||||
|
|
||||||
|
|
||||||
End With
|
End With
|
||||||
|
|||||||
@@ -655,10 +655,6 @@ Partial Class General_SaldosIniciales
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ Partial Class Sistemas_CatEmpresas
|
|||||||
#End Region
|
#End Region
|
||||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||||
If Not Page.IsPostBack Then
|
If Not Page.IsPostBack Then
|
||||||
If UsuarioActual.CveRol <> 1 Then Response.Redirect("/Inicio.aspx")
|
'If UsuarioActual.CveRol <> 1 Then Response.Redirect("/Inicio.aspx")
|
||||||
ViewState("Orden") = "CveEmpresa ASC"
|
ViewState("Orden") = "CveEmpresa ASC"
|
||||||
ViewState("CveRol") = -1
|
ViewState("CveRol") = -1
|
||||||
|
|
||||||
@@ -117,16 +117,20 @@ Partial Class Sistemas_CatEmpresas
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaGrid(Orden As String)
|
Private Sub CargaGrid(Orden As String)
|
||||||
If Orden <> String.Empty Then
|
|
||||||
Dim DV As New DataView(GlobalDTEmpresas, "", Orden, DataViewRowState.CurrentRows)
|
Using ObjEmpresas As New ClsSisEmpresas()
|
||||||
GvDatos.DataSource = DV.ToTable()
|
|
||||||
DV.Dispose()
|
If ObjEmpresas.GetEmpresas(-1, "-1", "-1", "-1", "-1", UsuarioActual.CveUsuario) Then
|
||||||
Else
|
GvDatos.DataSource = ObjEmpresas.DtResultados
|
||||||
GvDatos.DataSource = GlobalDTEmpresas
|
Else
|
||||||
End If
|
GvDatos.DataSource = Nothing
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Using
|
||||||
|
|
||||||
GvDatos.DataBind()
|
GvDatos.DataBind()
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -948,6 +948,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
|
|
||||||
<asp:TabContainer runat="server" ID="TabPadres">
|
<asp:TabContainer runat="server" ID="TabPadres">
|
||||||
<asp:TabPanel ID="ContPAQ" runat="server" HeaderText="ContPAQ">
|
<asp:TabPanel ID="ContPAQ" runat="server" HeaderText="ContPAQ">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
@@ -1048,7 +1049,8 @@
|
|||||||
</table>
|
</table>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:TabPanel>
|
</asp:TabPanel>
|
||||||
<ajax:TabPanel ID="TabContSIG" runat="server" HeaderText="ContSIG">
|
|
||||||
|
<%--<ajax:TabPanel ID="TabContSIG" runat="server" HeaderText="ContSIG">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<table border="0" width="100%">
|
<table border="0" width="100%">
|
||||||
|
|
||||||
@@ -1146,8 +1148,13 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>--%>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</asp:TabContainer>
|
</asp:TabContainer>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -426,30 +426,30 @@ Partial Class Sistemas_Empresa
|
|||||||
CargaFuncionalidad(221, DdlActivoFijo)
|
CargaFuncionalidad(221, DdlActivoFijo)
|
||||||
|
|
||||||
|
|
||||||
CargaFuncionalidad(232, DdlProveedoresSIG)
|
'CargaFuncionalidad(232, DdlProveedoresSIG)
|
||||||
CargaFuncionalidad(233, DdlClientesSIG)
|
'CargaFuncionalidad(233, DdlClientesSIG)
|
||||||
CargaFuncionalidad(234, DdlDeudoresSIG)
|
'CargaFuncionalidad(234, DdlDeudoresSIG)
|
||||||
CargaFuncionalidad(235, DdlAcreedoresSIG)
|
'CargaFuncionalidad(235, DdlAcreedoresSIG)
|
||||||
CargaFuncionalidad(236, DdlDocxPagarSIG)
|
'CargaFuncionalidad(236, DdlDocxPagarSIG)
|
||||||
CargaFuncionalidad(237, DdlAnticipoClienteSIG)
|
'CargaFuncionalidad(237, DdlAnticipoClienteSIG)
|
||||||
CargaFuncionalidad(238, DdlAnticipoProveedoresSIG)
|
'CargaFuncionalidad(238, DdlAnticipoProveedoresSIG)
|
||||||
CargaFuncionalidad(239, DdlInventarioSIG)
|
'CargaFuncionalidad(239, DdlInventarioSIG)
|
||||||
CargaFuncionalidad(240, DdlGastoSIG)
|
'CargaFuncionalidad(240, DdlGastoSIG)
|
||||||
CargaFuncionalidad(241, DdlBancosSIG)
|
'CargaFuncionalidad(241, DdlBancosSIG)
|
||||||
CargaFuncionalidad(242, DdlCajaSIG)
|
'CargaFuncionalidad(242, DdlCajaSIG)
|
||||||
CargaFuncionalidad(243, DdlFyESIG)
|
'CargaFuncionalidad(243, DdlFyESIG)
|
||||||
CargaFuncionalidad(244, DdlActivoFijoSIG)
|
'CargaFuncionalidad(244, DdlActivoFijoSIG)
|
||||||
|
|
||||||
LbBannerDescarga.OnClientClick = "javascript:AbrirVentana('/Banners/" & .Banner & "', 500, 500, 'N', 'Banner Empresa');"
|
LbBannerDescarga.OnClientClick = "javascript:AbrirVentana('/Banners/" & .Banner & "', 500, 500, 'N', 'Banner Empresa');"
|
||||||
Session("FileUpload") = .Banner
|
Session("FileUpload") = .Banner
|
||||||
|
|
||||||
'LbArchivoKeyDescarga.OnClientClick = "javascript:AbrirVentana('/Key/" & .ArchivoKey & "', 500, 500, 'N', 'ArchivoKey Empresa');"
|
|
||||||
Session("FileUpload") = .ArchivoKey
|
Session("FileUpload") = .ArchivoKey
|
||||||
|
|
||||||
LbBannerDescarga.OnClientClick = "javascript:AbrirVentana('/Cer/" & .ArchivoCer & "', 500, 500, 'N', 'ArchivoCer Empresa');"
|
LbBannerDescarga.OnClientClick = "javascript:AbrirVentana('/Cer/" & .ArchivoCer & "', 500, 500, 'N', 'ArchivoCer Empresa');"
|
||||||
Session("FileUpload") = .ArchivoCer
|
Session("FileUpload") = .ArchivoCer
|
||||||
|
|
||||||
'LbArchivoPfxDescarga.OnClientClick = "javascript:AbrirVentana('/Pfx/" & .ArchivoPfx & "', 500, 500, 'N', 'ArchivoPfx Empresa');"
|
|
||||||
Session("FileUpload") = .ArchivoPfx
|
Session("FileUpload") = .ArchivoPfx
|
||||||
End With
|
End With
|
||||||
|
|
||||||
@@ -665,20 +665,20 @@ Partial Class Sistemas_Empresa
|
|||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 246, DdlClientes)
|
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 246, DdlClientes)
|
||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 237, DdlAnticipoCliente)
|
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 237, DdlAnticipoCliente)
|
||||||
|
|
||||||
'AGREGAR FUNCIONALIDADES
|
''AGREGAR FUNCIONALIDADES
|
||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 232, DdlProveedoresSIG)
|
'If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 232, DdlProveedoresSIG)
|
||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 233, DdlClientesSIG)
|
'If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 233, DdlClientesSIG)
|
||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 239, DdlInventarioSIG)
|
'If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 239, DdlInventarioSIG)
|
||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 240, DdlGastoSIG)
|
'If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 240, DdlGastoSIG)
|
||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 241, DdlBancosSIG)
|
'If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 241, DdlBancosSIG)
|
||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 234, DdlDeudoresSIG)
|
'If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 234, DdlDeudoresSIG)
|
||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 235, DdlAcreedoresSIG)
|
'If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 235, DdlAcreedoresSIG)
|
||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 236, DdlDocxPagarSIG)
|
'If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 236, DdlDocxPagarSIG)
|
||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 237, DdlAnticipoClienteSIG)
|
'If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 237, DdlAnticipoClienteSIG)
|
||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 238, DdlAnticipoProveedoresSIG)
|
'If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 238, DdlAnticipoProveedoresSIG)
|
||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 242, DdlCajaSIG)
|
'If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 242, DdlCajaSIG)
|
||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 243, DdlFyESIG)
|
'If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 243, DdlFyESIG)
|
||||||
If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 244, DdlActivoFijoSIG)
|
'If TextoError = "" Then TextoError = AgregarFuncionalidad(ObjEmpresas, 244, DdlActivoFijoSIG)
|
||||||
|
|
||||||
|
|
||||||
'TRIGGER
|
'TRIGGER
|
||||||
@@ -1057,85 +1057,86 @@ Partial Class Sistemas_Empresa
|
|||||||
DdlCuentaOtrosIngresos.AutoPostBack = False : DdlCuentaOtrosIngresos.Attributes.Remove("onclick") : DdlCuentaOtrosIngresos.CssClass &= " select2me"
|
DdlCuentaOtrosIngresos.AutoPostBack = False : DdlCuentaOtrosIngresos.Attributes.Remove("onclick") : DdlCuentaOtrosIngresos.CssClass &= " select2me"
|
||||||
|
|
||||||
|
|
||||||
'PADRES SIG
|
' 'PADRES SIG
|
||||||
Case "42"
|
'Case "42"
|
||||||
If DdlProveedoresSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
' If DdlProveedoresSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
||||||
Seleccionado = DdlProveedoresSIG.SelectedValue
|
' Seleccionado = DdlProveedoresSIG.SelectedValue
|
||||||
DdlProveedoresSIG.Items.Clear() : DdlProveedoresSIG.Items.Add(New ListItem("Seleccione", "0"))
|
' DdlProveedoresSIG.Items.Clear() : DdlProveedoresSIG.Items.Add(New ListItem("Seleccione", "0"))
|
||||||
DdlProveedoresSIG.DataSource = DtCuentasContablesSIG : DdlProveedoresSIG.DataBind() : DdlProveedoresSIG.SelectedValue = Seleccionado
|
' DdlProveedoresSIG.DataSource = DtCuentasContablesSIG : DdlProveedoresSIG.DataBind() : DdlProveedoresSIG.SelectedValue = Seleccionado
|
||||||
DdlProveedoresSIG.AutoPostBack = False : DdlProveedoresSIG.Attributes.Remove("onclick") : DdlProveedoresSIG.CssClass &= " select2me"
|
' DdlProveedoresSIG.AutoPostBack = False : DdlProveedoresSIG.Attributes.Remove("onclick") : DdlProveedoresSIG.CssClass &= " select2me"
|
||||||
Case "43"
|
'Case "43"
|
||||||
If DdlClientesSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
' If DdlClientesSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
||||||
Seleccionado = DdlClientesSIG.SelectedValue
|
' Seleccionado = DdlClientesSIG.SelectedValue
|
||||||
DdlClientesSIG.Items.Clear() : DdlClientesSIG.Items.Add(New ListItem("Seleccione", "0"))
|
' DdlClientesSIG.Items.Clear() : DdlClientesSIG.Items.Add(New ListItem("Seleccione", "0"))
|
||||||
DdlClientesSIG.DataSource = DtCuentasContablesSIG : DdlClientesSIG.DataBind() : DdlClientesSIG.SelectedValue = Seleccionado
|
' DdlClientesSIG.DataSource = DtCuentasContablesSIG : DdlClientesSIG.DataBind() : DdlClientesSIG.SelectedValue = Seleccionado
|
||||||
DdlClientesSIG.AutoPostBack = False : DdlClientesSIG.Attributes.Remove("onclick") : DdlClientesSIG.CssClass &= " select2me"
|
' DdlClientesSIG.AutoPostBack = False : DdlClientesSIG.Attributes.Remove("onclick") : DdlClientesSIG.CssClass &= " select2me"
|
||||||
Case "44"
|
'Case "44"
|
||||||
If DdlInventarioSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
' If DdlInventarioSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
||||||
Seleccionado = DdlInventarioSIG.SelectedValue
|
' Seleccionado = DdlInventarioSIG.SelectedValue
|
||||||
DdlInventarioSIG.Items.Clear() : DdlInventarioSIG.Items.Add(New ListItem("Seleccione", "0"))
|
' DdlInventarioSIG.Items.Clear() : DdlInventarioSIG.Items.Add(New ListItem("Seleccione", "0"))
|
||||||
DdlInventarioSIG.DataSource = DtCuentasContablesSIG : DdlInventarioSIG.DataBind() : DdlInventarioSIG.SelectedValue = Seleccionado
|
' DdlInventarioSIG.DataSource = DtCuentasContablesSIG : DdlInventarioSIG.DataBind() : DdlInventarioSIG.SelectedValue = Seleccionado
|
||||||
DdlInventarioSIG.AutoPostBack = False : DdlInventarioSIG.Attributes.Remove("onclick") : DdlInventarioSIG.CssClass &= " select2me"
|
' DdlInventarioSIG.AutoPostBack = False : DdlInventarioSIG.Attributes.Remove("onclick") : DdlInventarioSIG.CssClass &= " select2me"
|
||||||
Case "45"
|
'Case "45"
|
||||||
If DdlGastoSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
' If DdlGastoSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
||||||
Seleccionado = DdlGasto.SelectedValue
|
' Seleccionado = DdlGasto.SelectedValue
|
||||||
DdlGastoSIG.Items.Clear() : DdlGastoSIG.Items.Add(New ListItem("Seleccione", "0"))
|
' DdlGastoSIG.Items.Clear() : DdlGastoSIG.Items.Add(New ListItem("Seleccione", "0"))
|
||||||
DdlGastoSIG.DataSource = DtCuentasContablesSIG : DdlGastoSIG.DataBind() : DdlGastoSIG.SelectedValue = Seleccionado
|
' DdlGastoSIG.DataSource = DtCuentasContablesSIG : DdlGastoSIG.DataBind() : DdlGastoSIG.SelectedValue = Seleccionado
|
||||||
DdlGastoSIG.AutoPostBack = False : DdlGastoSIG.Attributes.Remove("onclick") : DdlGastoSIG.CssClass &= " select2me"
|
' DdlGastoSIG.AutoPostBack = False : DdlGastoSIG.Attributes.Remove("onclick") : DdlGastoSIG.CssClass &= " select2me"
|
||||||
Case "46"
|
'Case "46"
|
||||||
If DdlBancosSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
' If DdlBancosSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
||||||
Seleccionado = DdlBancosSIG.SelectedValue
|
' Seleccionado = DdlBancosSIG.SelectedValue
|
||||||
DdlBancosSIG.Items.Clear() : DdlBancosSIG.Items.Add(New ListItem("Seleccione", "0"))
|
' DdlBancosSIG.Items.Clear() : DdlBancosSIG.Items.Add(New ListItem("Seleccione", "0"))
|
||||||
DdlBancosSIG.DataSource = DtCuentasContablesSIG : DdlBancosSIG.DataBind() : DdlBancosSIG.SelectedValue = Seleccionado
|
' DdlBancosSIG.DataSource = DtCuentasContablesSIG : DdlBancosSIG.DataBind() : DdlBancosSIG.SelectedValue = Seleccionado
|
||||||
DdlBancosSIG.AutoPostBack = False : DdlBancosSIG.Attributes.Remove("onclick") : DdlBancosSIG.CssClass &= " select2me"
|
' DdlBancosSIG.AutoPostBack = False : DdlBancosSIG.Attributes.Remove("onclick") : DdlBancosSIG.CssClass &= " select2me"
|
||||||
Case "47"
|
'Case "47"
|
||||||
If DdlDeudoresSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
' If DdlDeudoresSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
||||||
Seleccionado = DdlDeudoresSIG.SelectedValue
|
' Seleccionado = DdlDeudoresSIG.SelectedValue
|
||||||
DdlDeudoresSIG.Items.Clear() : DdlDeudoresSIG.Items.Add(New ListItem("Seleccione", "0"))
|
' DdlDeudoresSIG.Items.Clear() : DdlDeudoresSIG.Items.Add(New ListItem("Seleccione", "0"))
|
||||||
DdlDeudoresSIG.DataSource = DtCuentasContablesSIG : DdlDeudoresSIG.DataBind() : DdlDeudoresSIG.SelectedValue = Seleccionado
|
' DdlDeudoresSIG.DataSource = DtCuentasContablesSIG : DdlDeudoresSIG.DataBind() : DdlDeudoresSIG.SelectedValue = Seleccionado
|
||||||
DdlDeudoresSIG.AutoPostBack = False : DdlDeudoresSIG.Attributes.Remove("onclick") : DdlDeudoresSIG.CssClass &= " select2me"
|
' DdlDeudoresSIG.AutoPostBack = False : DdlDeudoresSIG.Attributes.Remove("onclick") : DdlDeudoresSIG.CssClass &= " select2me"
|
||||||
Case "48"
|
'Case "48"
|
||||||
If DdlAcreedoresSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
' If DdlAcreedoresSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
||||||
Seleccionado = DdlAcreedoresSIG.SelectedValue
|
' Seleccionado = DdlAcreedoresSIG.SelectedValue
|
||||||
DdlAcreedoresSIG.Items.Clear() : DdlAcreedoresSIG.Items.Add(New ListItem("Seleccione", "0"))
|
' DdlAcreedoresSIG.Items.Clear() : DdlAcreedoresSIG.Items.Add(New ListItem("Seleccione", "0"))
|
||||||
DdlAcreedoresSIG.DataSource = DtCuentasContablesSIG : DdlAcreedoresSIG.DataBind() : DdlAcreedoresSIG.SelectedValue = Seleccionado
|
' DdlAcreedoresSIG.DataSource = DtCuentasContablesSIG : DdlAcreedoresSIG.DataBind() : DdlAcreedoresSIG.SelectedValue = Seleccionado
|
||||||
DdlAcreedoresSIG.AutoPostBack = False : DdlAcreedoresSIG.Attributes.Remove("onclick") : DdlAcreedoresSIG.CssClass &= " select2me"
|
' DdlAcreedoresSIG.AutoPostBack = False : DdlAcreedoresSIG.Attributes.Remove("onclick") : DdlAcreedoresSIG.CssClass &= " select2me"
|
||||||
Case "49"
|
'Case "49"
|
||||||
If DdlDocxPagarSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
' If DdlDocxPagarSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
||||||
Seleccionado = DdlDocxPagarSIG.SelectedValue
|
' Seleccionado = DdlDocxPagarSIG.SelectedValue
|
||||||
DdlDocxPagarSIG.Items.Clear() : DdlDocxPagarSIG.Items.Add(New ListItem("Seleccione", "0"))
|
' DdlDocxPagarSIG.Items.Clear() : DdlDocxPagarSIG.Items.Add(New ListItem("Seleccione", "0"))
|
||||||
DdlDocxPagarSIG.DataSource = DtCuentasContablesSIG : DdlDocxPagarSIG.DataBind() : DdlDocxPagarSIG.SelectedValue = Seleccionado
|
' DdlDocxPagarSIG.DataSource = DtCuentasContablesSIG : DdlDocxPagarSIG.DataBind() : DdlDocxPagarSIG.SelectedValue = Seleccionado
|
||||||
DdlDocxPagarSIG.AutoPostBack = False : DdlDocxPagarSIG.Attributes.Remove("onclick") : DdlDocxPagarSIG.CssClass &= " select2me"
|
' DdlDocxPagarSIG.AutoPostBack = False : DdlDocxPagarSIG.Attributes.Remove("onclick") : DdlDocxPagarSIG.CssClass &= " select2me"
|
||||||
Case "50"
|
'Case "50"
|
||||||
If DdlAnticipoClienteSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
' If DdlAnticipoClienteSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
||||||
Seleccionado = DdlAnticipoClienteSIG.SelectedValue
|
' Seleccionado = DdlAnticipoClienteSIG.SelectedValue
|
||||||
DdlAnticipoClienteSIG.Items.Clear() : DdlAnticipoClienteSIG.Items.Add(New ListItem("Seleccione", "0"))
|
' DdlAnticipoClienteSIG.Items.Clear() : DdlAnticipoClienteSIG.Items.Add(New ListItem("Seleccione", "0"))
|
||||||
DdlAnticipoClienteSIG.DataSource = DtCuentasContablesSIG : DdlAnticipoClienteSIG.DataBind() : DdlAnticipoClienteSIG.SelectedValue = Seleccionado
|
' DdlAnticipoClienteSIG.DataSource = DtCuentasContablesSIG : DdlAnticipoClienteSIG.DataBind() : DdlAnticipoClienteSIG.SelectedValue = Seleccionado
|
||||||
DdlAnticipoClienteSIG.AutoPostBack = False : DdlAnticipoClienteSIG.Attributes.Remove("onclick") : DdlAnticipoClienteSIG.CssClass &= " select2me"
|
' DdlAnticipoClienteSIG.AutoPostBack = False : DdlAnticipoClienteSIG.Attributes.Remove("onclick") : DdlAnticipoClienteSIG.CssClass &= " select2me"
|
||||||
Case "51"
|
'Case "51"
|
||||||
If DdlAnticipoProveedoresSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
' If DdlAnticipoProveedoresSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
||||||
Seleccionado = DdlAnticipoProveedoresSIG.SelectedValue
|
' Seleccionado = DdlAnticipoProveedoresSIG.SelectedValue
|
||||||
DdlAnticipoProveedoresSIG.Items.Clear() : DdlAnticipoProveedoresSIG.Items.Add(New ListItem("Seleccione", "0"))
|
' DdlAnticipoProveedoresSIG.Items.Clear() : DdlAnticipoProveedoresSIG.Items.Add(New ListItem("Seleccione", "0"))
|
||||||
DdlAnticipoProveedoresSIG.DataSource = DtCuentasContablesSIG : DdlAnticipoProveedoresSIG.DataBind() : DdlAnticipoProveedoresSIG.SelectedValue = Seleccionado
|
' DdlAnticipoProveedoresSIG.DataSource = DtCuentasContablesSIG : DdlAnticipoProveedoresSIG.DataBind() : DdlAnticipoProveedoresSIG.SelectedValue = Seleccionado
|
||||||
DdlAnticipoProveedoresSIG.AutoPostBack = False : DdlAnticipoProveedoresSIG.Attributes.Remove("onclick") : DdlAnticipoProveedoresSIG.CssClass &= " select2me"
|
' DdlAnticipoProveedoresSIG.AutoPostBack = False : DdlAnticipoProveedoresSIG.Attributes.Remove("onclick") : DdlAnticipoProveedoresSIG.CssClass &= " select2me"
|
||||||
Case "52"
|
'Case "52"
|
||||||
If DdlCajaSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
' If DdlCajaSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
||||||
Seleccionado = DdlCajaSIG.SelectedValue
|
' Seleccionado = DdlCajaSIG.SelectedValue
|
||||||
DdlCajaSIG.Items.Clear() : DdlCajaSIG.Items.Add(New ListItem("Seleccione", "0"))
|
' DdlCajaSIG.Items.Clear() : DdlCajaSIG.Items.Add(New ListItem("Seleccione", "0"))
|
||||||
DdlCajaSIG.DataSource = DtCuentasContablesSIG : DdlCajaSIG.DataBind() : DdlCajaSIG.SelectedValue = Seleccionado
|
' DdlCajaSIG.DataSource = DtCuentasContablesSIG : DdlCajaSIG.DataBind() : DdlCajaSIG.SelectedValue = Seleccionado
|
||||||
DdlCajaSIG.AutoPostBack = False : DdlCajaSIG.Attributes.Remove("onclick") : DdlCajaSIG.CssClass &= " select2me"
|
' DdlCajaSIG.AutoPostBack = False : DdlCajaSIG.Attributes.Remove("onclick") : DdlCajaSIG.CssClass &= " select2me"
|
||||||
Case "53"
|
'Case "53"
|
||||||
If DdlFyESIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
' If DdlFyESIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
||||||
Seleccionado = DdlFyESIG.SelectedValue
|
' Seleccionado = DdlFyESIG.SelectedValue
|
||||||
DdlFyESIG.Items.Clear() : DdlFyESIG.Items.Add(New ListItem("Seleccione", "0"))
|
' DdlFyESIG.Items.Clear() : DdlFyESIG.Items.Add(New ListItem("Seleccione", "0"))
|
||||||
DdlFyESIG.DataSource = DtCuentasContablesSIG : DdlFyESIG.DataBind() : DdlFyESIG.SelectedValue = Seleccionado
|
' DdlFyESIG.DataSource = DtCuentasContablesSIG : DdlFyESIG.DataBind() : DdlFyESIG.SelectedValue = Seleccionado
|
||||||
DdlFyESIG.AutoPostBack = False : DdlFyESIG.Attributes.Remove("onclick") : DdlFyESIG.CssClass &= " select2me"
|
' DdlFyESIG.AutoPostBack = False : DdlFyESIG.Attributes.Remove("onclick") : DdlFyESIG.CssClass &= " select2me"
|
||||||
Case "54"
|
'Case "54"
|
||||||
If DdlActivoFijoSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
' If DdlActivoFijoSIG.Attributes("onclick") <> "" Then CargaCuentasContablesSIG()
|
||||||
Seleccionado = DdlActivoFijoSIG.SelectedValue
|
' Seleccionado = DdlActivoFijoSIG.SelectedValue
|
||||||
DdlActivoFijoSIG.Items.Clear() : DdlActivoFijoSIG.Items.Add(New ListItem("Seleccione", "0"))
|
' DdlActivoFijoSIG.Items.Clear() : DdlActivoFijoSIG.Items.Add(New ListItem("Seleccione", "0"))
|
||||||
DdlActivoFijoSIG.DataSource = DtCuentasContablesSIG : DdlActivoFijoSIG.DataBind() : DdlActivoFijoSIG.SelectedValue = Seleccionado
|
' DdlActivoFijoSIG.DataSource = DtCuentasContablesSIG : DdlActivoFijoSIG.DataBind() : DdlActivoFijoSIG.SelectedValue = Seleccionado
|
||||||
DdlActivoFijoSIG.AutoPostBack = False : DdlActivoFijoSIG.Attributes.Remove("onclick") : DdlActivoFijoSIG.CssClass &= " select2me"
|
' DdlActivoFijoSIG.AutoPostBack = False : DdlActivoFijoSIG.Attributes.Remove("onclick") : DdlActivoFijoSIG.CssClass &= " select2me"
|
||||||
|
|
||||||
|
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
@@ -1171,20 +1172,20 @@ Partial Class Sistemas_Empresa
|
|||||||
DdlCuentaDescuentoVenta.AutoPostBack = True
|
DdlCuentaDescuentoVenta.AutoPostBack = True
|
||||||
DdlCuentaOtrosIngresos.AutoPostBack = True
|
DdlCuentaOtrosIngresos.AutoPostBack = True
|
||||||
|
|
||||||
'CUENTAS PADRES SIG
|
''CUENTAS PADRES SIG
|
||||||
DdlProveedoresSIG.AutoPostBack = True
|
'DdlProveedoresSIG.AutoPostBack = True
|
||||||
DdlClientesSIG.AutoPostBack = True
|
'DdlClientesSIG.AutoPostBack = True
|
||||||
DdlInventarioSIG.AutoPostBack = True
|
'DdlInventarioSIG.AutoPostBack = True
|
||||||
DdlGastoSIG.AutoPostBack = True
|
'DdlGastoSIG.AutoPostBack = True
|
||||||
DdlBancosSIG.AutoPostBack = True
|
'DdlBancosSIG.AutoPostBack = True
|
||||||
DdlDeudoresSIG.AutoPostBack = True
|
'DdlDeudoresSIG.AutoPostBack = True
|
||||||
DdlAcreedoresSIG.AutoPostBack = True
|
'DdlAcreedoresSIG.AutoPostBack = True
|
||||||
DdlDocxPagarSIG.AutoPostBack = True
|
'DdlDocxPagarSIG.AutoPostBack = True
|
||||||
DdlAnticipoClienteSIG.AutoPostBack = True
|
'DdlAnticipoClienteSIG.AutoPostBack = True
|
||||||
DdlAnticipoProveedoresSIG.AutoPostBack = True
|
'DdlAnticipoProveedoresSIG.AutoPostBack = True
|
||||||
DdlCajaSIG.AutoPostBack = True
|
'DdlCajaSIG.AutoPostBack = True
|
||||||
DdlFyESIG.AutoPostBack = True
|
'DdlFyESIG.AutoPostBack = True
|
||||||
DdlActivoFijoSIG.AutoPostBack = True
|
'DdlActivoFijoSIG.AutoPostBack = True
|
||||||
|
|
||||||
|
|
||||||
DdlIVAxAcreditar.Attributes.Add("onclick", "CargaCuentas(1);")
|
DdlIVAxAcreditar.Attributes.Add("onclick", "CargaCuentas(1);")
|
||||||
@@ -1217,20 +1218,20 @@ Partial Class Sistemas_Empresa
|
|||||||
DdlCuentaDescuentoVenta.Attributes.Add("onclick", "CargaCuentas(40);")
|
DdlCuentaDescuentoVenta.Attributes.Add("onclick", "CargaCuentas(40);")
|
||||||
DdlCuentaOtrosIngresos.Attributes.Add("onclick", "CargaCuentas(41);")
|
DdlCuentaOtrosIngresos.Attributes.Add("onclick", "CargaCuentas(41);")
|
||||||
|
|
||||||
'CUENTAS PADRES
|
''CUENTAS PADRES
|
||||||
DdlProveedoresSIG.Attributes.Add("onclick", "CargaCuentas(42);")
|
'DdlProveedoresSIG.Attributes.Add("onclick", "CargaCuentas(42);")
|
||||||
DdlClientesSIG.Attributes.Add("onclick", "CargaCuentas(43);")
|
'DdlClientesSIG.Attributes.Add("onclick", "CargaCuentas(43);")
|
||||||
DdlInventarioSIG.Attributes.Add("onclick", "CargaCuentas(44);")
|
'DdlInventarioSIG.Attributes.Add("onclick", "CargaCuentas(44);")
|
||||||
DdlGastoSIG.Attributes.Add("onclick", "CargaCuentas(45);")
|
'DdlGastoSIG.Attributes.Add("onclick", "CargaCuentas(45);")
|
||||||
DdlBancosSIG.Attributes.Add("onclick", "CargaCuentas(46);")
|
'DdlBancosSIG.Attributes.Add("onclick", "CargaCuentas(46);")
|
||||||
DdlDeudoresSIG.Attributes.Add("onclick", "CargaCuentas(47);")
|
'DdlDeudoresSIG.Attributes.Add("onclick", "CargaCuentas(47);")
|
||||||
DdlAcreedoresSIG.Attributes.Add("onclick", "CargaCuentas(48);")
|
'DdlAcreedoresSIG.Attributes.Add("onclick", "CargaCuentas(48);")
|
||||||
DdlDocxPagarSIG.Attributes.Add("onclick", "CargaCuentas(49);")
|
'DdlDocxPagarSIG.Attributes.Add("onclick", "CargaCuentas(49);")
|
||||||
DdlAnticipoClienteSIG.Attributes.Add("onclick", "CargaCuentas(50);")
|
'DdlAnticipoClienteSIG.Attributes.Add("onclick", "CargaCuentas(50);")
|
||||||
DdlAnticipoProveedoresSIG.Attributes.Add("onclick", "CargaCuentas(51);")
|
'DdlAnticipoProveedoresSIG.Attributes.Add("onclick", "CargaCuentas(51);")
|
||||||
DdlCajaSIG.Attributes.Add("onclick", "CargaCuentas(52);")
|
'DdlCajaSIG.Attributes.Add("onclick", "CargaCuentas(52);")
|
||||||
DdlFyESIG.Attributes.Add("onclick", "CargaCuentas(53);")
|
'DdlFyESIG.Attributes.Add("onclick", "CargaCuentas(53);")
|
||||||
DdlActivoFijoSIG.Attributes.Add("onclick", "CargaCuentas(54);")
|
'DdlActivoFijoSIG.Attributes.Add("onclick", "CargaCuentas(54);")
|
||||||
|
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
|
|
||||||
|
|||||||
@@ -4574,14 +4574,14 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<asp:GridView ID="GvLineasAdicionales" Width="100%" runat="server" GridLines="None"
|
<asp:GridView ID="GvLineasAdicionales" Width="100%" runat="server" GridLines="None"
|
||||||
DataKeyNames="CveLineaAdicional,LineaAdicional,CveCliente,CveProveedor,TipoLinea,Importe,CveMoneda,FechaVencimiento,CveUsuario,CveClasificacionPS,FechaIng,CveEstatus,Proveedor"
|
DataKeyNames="CveLineaAdicional,LineaAdicional,CveCliente,CveProveedor,TipoLinea,Importe,CveMoneda,FechaVencimiento,CveUsuario,CveCategoria,FechaIng,CveLineaAdicionalEstatus,Proveedor,DiasVencimiento"
|
||||||
CssClass="table table-striped table-advance table-hover ScrollAD " ShowHeader="True" EmptyDataText="No se encontraron resultados." ShowHeaderWhenEmpty="true"
|
CssClass="table table-striped table-advance table-hover ScrollAD " ShowHeader="True" EmptyDataText="No se encontraron resultados." ShowHeaderWhenEmpty="true"
|
||||||
AutoGenerateColumns="False" AllowPaging="False" ShowFooter="False">
|
AutoGenerateColumns="False" AllowPaging="False" ShowFooter="False">
|
||||||
<Columns>
|
<Columns>
|
||||||
|
|
||||||
|
|
||||||
<asp:BoundField DataField="LineaAdicional" HeaderText="Linea Adicional" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="LineaAdicional" HeaderText="Linea Adicional" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:BoundField DataField="Proveedor" HeaderText="Proveedor" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="Proveedor" HeaderText="Comercializador" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:BoundField DataField="Importe" HeaderText="Importe" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField DataField="Importe" HeaderText="Importe" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField DataField="Abreviatura" HeaderText="Moneda" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField DataField="Abreviatura" HeaderText="Moneda" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField DataField="FechaVencimiento" HeaderText="F. Vencimiento" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
<asp:BoundField DataField="FechaVencimiento" HeaderText="F. Vencimiento" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
||||||
@@ -6724,16 +6724,17 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright" style="padding-top:-5px!important">
|
<div class="form-group form-md-line-input input-iconright" style="padding-top:-5px!important">
|
||||||
<ADS:Dropdownlost ID="DdlProveedorLineaAdicionalModal" SelectedText="-" IncluyeTodos="false" runat="server" CssStyle="width: 250px; selected2me; margin-top:4px;" Width="250px" DataTextField="RazonSocial" DataValueField="CveProveedor" CssClass="form-control input-sm DdlPS"></ADS:Dropdownlost>
|
<ADS:Dropdownlost ID="DdlProveedorLineaAdicionalModal" SelectedText="-" IncluyeTodos="false" runat="server" CssStyle="width: 250px; selected2me; margin-top:4px;" Width="250px"
|
||||||
<label for="<%= DdlProveedorLineaAdicionalModal.ClientID.ToString()%>">Proveedor: </label>
|
DataTextField="RazonSocial" DataValueField="CveProveedor" CssClass="form-control input-sm DdlPS" ></ADS:Dropdownlost>
|
||||||
|
<label for="<%= DdlProveedorLineaAdicionalModal.ClientID.ToString()%>">Comercializador: </label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:DropDownList ID="DdlTipoLineaAdicionalModal" CssClass="form-control select2me" runat="server" Width="250px">
|
<asp:DropDownList ID="DdlTipoLineaAdicionalModal" CssClass="form-control select2me" runat="server" Width="250px" AutoPostBack="true" OnSelectedIndexChanged="DdlTipoLineaAdicionalModal_SelectedIndexChanged">
|
||||||
<asp:ListItem Text="Seleccione" Value="-1" Selected="True"></asp:ListItem>
|
<asp:ListItem Text="Seleccione" Value="-1" Selected="True"></asp:ListItem>
|
||||||
<asp:ListItem Text="Normal" Value="1"></asp:ListItem>
|
<asp:ListItem Text="Pagaré Especial" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="PO" Value="2"></asp:ListItem>
|
<asp:ListItem Text="PO" Value="2"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RfvDdlTipoLinea" InitialValue="-1" runat="server" ControlToValidate="TxtLineaAdicionalModal" CssClass="help-block errorimput"
|
<asp:RequiredFieldValidator ID="RfvDdlTipoLinea" InitialValue="-1" runat="server" ControlToValidate="TxtLineaAdicionalModal" CssClass="help-block errorimput"
|
||||||
@@ -6796,8 +6797,18 @@
|
|||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<div class="col-md-2">
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright" runat="server" id="DvLineaAdicionalDiasVenciemientoModal" visible="false">
|
||||||
|
<asp:TextBox ID="TxtDiasVencimientoLineaAdicionalModal" CssClass="form-control " runat="server" MaxLength="20" CausesValidation="true" Width="250px"></asp:TextBox>
|
||||||
|
|
||||||
|
<asp:RequiredFieldValidator ID="RfvTxtDiasVencimientoLineaAdicionalModal" runat="server" ControlToValidate="TxtDiasVencimientoLineaAdicionalModal" CssClass="help-block errorimput"
|
||||||
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importe''</b> es necesario, por favor ingréselo." ValidationGroup="GrpLineaAdicional"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtDiasVencimientoLineaAdicionalModal" ValidChars="1234567890" FilterType="Custom" />
|
||||||
|
<label for="<%= TxtDiasVencimientoLineaAdicionalModal.ClientID.ToString()%>">Días de Vencimiento: </label>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -6807,9 +6818,9 @@
|
|||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
|
||||||
<asp:DropDownList ID="DdlClasificacionLienaAdicionalModal" DataValueField="CveClasificacion" DataTextField="Clasificacion" Width="250px" runat="server" CssClass="form-control select2me">
|
<asp:DropDownList ID="DdlCategoriaLineaAdicionalModal" DataValueField="CveCategoria" DataTextField="Categoria" Width="250px" runat="server" CssClass="form-control select2me">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<label for="<%= DdlClasificacion.ClientID.ToString()%>">Clasificación:</label>
|
<label for="<%= DdlClasificacion.ClientID.ToString()%>">Categoria:</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -10359,9 +10359,9 @@ Partial Class Clientes
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
DdlClasificacionLienaAdicionalModal.DataSource = GlobalDTClasificaciones(UsuarioActual.CveEmpresa)
|
DdlCategoriaLineaAdicionalModal.DataSource = GlobalDTGralCategorias(UsuarioActual.CveEmpresa)
|
||||||
DdlClasificacionLienaAdicionalModal.DataBind()
|
DdlCategoriaLineaAdicionalModal.DataBind()
|
||||||
DdlClasificacionLienaAdicionalModal.Items.Insert(0, New ListItem("-", "-1"))
|
DdlCategoriaLineaAdicionalModal.Items.Insert(0, New ListItem("-", "-1"))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -10397,9 +10397,11 @@ Partial Class Clientes
|
|||||||
DdlProveedorLineaAdicionalModal.txtValue.Value = ""
|
DdlProveedorLineaAdicionalModal.txtValue.Value = ""
|
||||||
DdlTipoLineaAdicionalModal.SelectedValueExist(-1)
|
DdlTipoLineaAdicionalModal.SelectedValueExist(-1)
|
||||||
TxtFechaVencimientoLineaAdicionalModal.Text = ""
|
TxtFechaVencimientoLineaAdicionalModal.Text = ""
|
||||||
DdlClasificacionLienaAdicionalModal.SelectedValueExist(-1)
|
DdlCategoriaLineaAdicionalModal.SelectedValueExist(-1)
|
||||||
TxtImporteLineaAdicionalModal.Text = ""
|
TxtImporteLineaAdicionalModal.Text = ""
|
||||||
DdlMonedaLineAdicionalModal.SelectedValueExist(-1)
|
DdlMonedaLineAdicionalModal.SelectedValueExist(-1)
|
||||||
|
TxtDiasVencimientoLineaAdicionalModal.Text = ""
|
||||||
|
DdlTipoLineaAdicionalModal_SelectedIndexChanged(Nothing, Nothing)
|
||||||
|
|
||||||
UpLineaAdicionalmodal.Update()
|
UpLineaAdicionalmodal.Update()
|
||||||
|
|
||||||
@@ -10419,14 +10421,16 @@ Partial Class Clientes
|
|||||||
|
|
||||||
If CveLineaAdicional > 0 Then
|
If CveLineaAdicional > 0 Then
|
||||||
If Not ObjVentas.UpdateLineasAdicionales(CveLineaAdicional, TxtLineaAdicionalModal.Text, CveCliente, DdlProveedorLineaAdicionalModal.SelectedValue.ToEntero, DdlTipoLineaAdicionalModal.SelectedValue.ToEntero, TxtImporteLineaAdicionalModal.Text.ToDecimal,
|
If Not ObjVentas.UpdateLineasAdicionales(CveLineaAdicional, TxtLineaAdicionalModal.Text, CveCliente, DdlProveedorLineaAdicionalModal.SelectedValue.ToEntero, DdlTipoLineaAdicionalModal.SelectedValue.ToEntero, TxtImporteLineaAdicionalModal.Text.ToDecimal,
|
||||||
DdlMonedaLineAdicionalModal.SelectedValue.ToEntero, TxtFechaVencimientoLineaAdicionalModal.Text.ToDate, UsuarioActual.CveUsuario, DdlClasificacionLienaAdicionalModal.SelectedValue.ToEntero, -1, UsuarioActual.CveEmpresa) Then
|
DdlMonedaLineAdicionalModal.SelectedValue.ToEntero, TxtFechaVencimientoLineaAdicionalModal.Text.ToDate, UsuarioActual.CveUsuario, DdlCategoriaLineaAdicionalModal.SelectedValue.ToEntero, UsuarioActual.CveEmpresa,
|
||||||
|
DiasVencimiento:=TxtDiasVencimientoLineaAdicionalModal.Text.ToEntero) Then
|
||||||
ErrorAgregar = True
|
ErrorAgregar = True
|
||||||
Else
|
Else
|
||||||
Alert("Linea Adicional Actualizada Correctamente")
|
Alert("Linea Adicional Actualizada Correctamente")
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
If Not ObjVentas.AddLineasAdicionales(TxtLineaAdicionalModal.Text, CveCliente, DdlProveedorLineaAdicionalModal.SelectedValue.ToEntero, DdlTipoLineaAdicionalModal.SelectedValue.ToEntero, TxtImporteLineaAdicionalModal.Text.ToDecimal,
|
If Not ObjVentas.AddLineasAdicionales(TxtLineaAdicionalModal.Text, CveCliente, DdlProveedorLineaAdicionalModal.SelectedValue.ToEntero, DdlTipoLineaAdicionalModal.SelectedValue.ToEntero, TxtImporteLineaAdicionalModal.Text.ToDecimal,
|
||||||
DdlMonedaLineAdicionalModal.SelectedValue.ToEntero, TxtFechaVencimientoLineaAdicionalModal.Text.ToDate, UsuarioActual.CveUsuario, DdlClasificacionLienaAdicionalModal.SelectedValue.ToEntero, 0) Then
|
DdlMonedaLineAdicionalModal.SelectedValue.ToEntero, TxtFechaVencimientoLineaAdicionalModal.Text.ToDate, UsuarioActual.CveUsuario, DdlCategoriaLineaAdicionalModal.SelectedValue.ToEntero,
|
||||||
|
DiasVencimiento:=TxtDiasVencimientoLineaAdicionalModal.Text.ToEntero) Then
|
||||||
ErrorAgregar = True
|
ErrorAgregar = True
|
||||||
Else
|
Else
|
||||||
Alert("Linea Adicional Agregada Correctamente")
|
Alert("Linea Adicional Agregada Correctamente")
|
||||||
@@ -10455,10 +10459,11 @@ Partial Class Clientes
|
|||||||
DdlProveedorLineaAdicionalModal.txtValue.Value = GvRow.DataKey("CveProveedor")
|
DdlProveedorLineaAdicionalModal.txtValue.Value = GvRow.DataKey("CveProveedor")
|
||||||
DdlTipoLineaAdicionalModal.SelectedValueExist(GvRow.DataKey("TipoLinea").ToEntero)
|
DdlTipoLineaAdicionalModal.SelectedValueExist(GvRow.DataKey("TipoLinea").ToEntero)
|
||||||
TxtFechaVencimientoLineaAdicionalModal.Text = GvRow.DataKey("FechaVencimiento").ToDate.ToString("dd/MM/yyyy")
|
TxtFechaVencimientoLineaAdicionalModal.Text = GvRow.DataKey("FechaVencimiento").ToDate.ToString("dd/MM/yyyy")
|
||||||
DdlClasificacionLienaAdicionalModal.SelectedValueExist(GvRow.DataKey("CveClasificacionPS").ToEntero)
|
DdlCategoriaLineaAdicionalModal.SelectedValueExist(GvRow.DataKey("CveCategoria").ToEntero)
|
||||||
TxtImporteLineaAdicionalModal.Text = GvRow.DataKey("Importe").ToDecimal.ToString("###,###,###.00")
|
TxtImporteLineaAdicionalModal.Text = GvRow.DataKey("Importe").ToDecimal.ToString("###,###,###.00")
|
||||||
DdlMonedaLineAdicionalModal.SelectedValueExist(GvRow.DataKey("CveMoneda").ToEntero)
|
DdlMonedaLineAdicionalModal.SelectedValueExist(GvRow.DataKey("CveMoneda").ToEntero)
|
||||||
|
TxtDiasVencimientoLineaAdicionalModal.Text = GvRow.DataKey("DiasVencimiento").ToEntero.ToString
|
||||||
|
DdlTipoLineaAdicionalModal_SelectedIndexChanged(Nothing, Nothing)
|
||||||
RegistraScript("$('#DVLineasAdicionales').modal('show')")
|
RegistraScript("$('#DVLineasAdicionales').modal('show')")
|
||||||
|
|
||||||
UpLineaAdicionalmodal.Update()
|
UpLineaAdicionalmodal.Update()
|
||||||
@@ -10490,8 +10495,11 @@ Partial Class Clientes
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Protected Sub DdlTipoLineaAdicionalModal_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
DvLineaAdicionalDiasVenciemientoModal.Visible = If(DdlTipoLineaAdicionalModal.SelectedValue.ToEntero = 2, True, False)
|
||||||
|
UpLineaAdicionalmodal.Update()
|
||||||
|
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
|||||||
@@ -129,7 +129,7 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<asp:GridView ID="GvLineasAdicionales" Width="100%" runat="server" GridLines="None"
|
<asp:GridView ID="GvLineasAdicionales" Width="100%" runat="server" GridLines="None"
|
||||||
DataKeyNames="CveLineaAdicional,LineaAdicional,CveCliente,CveProveedor,TipoLinea,Importe,CveMoneda,FechaVencimiento,CveUsuario,CveClasificacionPS,FechaIng,CveEstatus,Proveedor,Comprobante"
|
DataKeyNames="CveLineaAdicional,LineaAdicional,CveCliente,CveProveedor,TipoLinea,Importe,CveMoneda,FechaVencimiento,CveUsuario,CveCategoria,FechaIng,CveLineaAdicionalEstatus,Proveedor,Comprobante,DiasVencimiento,CveVenta"
|
||||||
CssClass="table table-striped table-advance table-hover ScrollAD " ShowHeader="True" EmptyDataText="No se encontraron resultados." ShowHeaderWhenEmpty="true"
|
CssClass="table table-striped table-advance table-hover ScrollAD " ShowHeader="True" EmptyDataText="No se encontraron resultados." ShowHeaderWhenEmpty="true"
|
||||||
AutoGenerateColumns="False" AllowPaging="False" ShowFooter="False"
|
AutoGenerateColumns="False" AllowPaging="False" ShowFooter="False"
|
||||||
OnRowDataBound="GvLineasAdicionales_RowDataBound"
|
OnRowDataBound="GvLineasAdicionales_RowDataBound"
|
||||||
@@ -139,11 +139,14 @@
|
|||||||
|
|
||||||
<asp:BoundField DataField="LineaAdicional" HeaderText="Linea Adicional" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="LineaAdicional" HeaderText="Linea Adicional" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:BoundField DataField="NombreCliente" HeaderText="Cliente" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="NombreCliente" HeaderText="Cliente" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:BoundField DataField="Proveedor" HeaderText="Proveedor" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="Proveedor" HeaderText="Comercializador" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:BoundField DataField="Importe" HeaderText="Importe" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField DataField="Importe" HeaderText="Importe" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField DataField="Abreviatura" HeaderText="Moneda" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField DataField="Abreviatura" HeaderText="Moneda" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField DataField="FechaVencimiento" HeaderText="F. Vencimiento" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
<%--<asp:BoundField DataField="FechaVencimiento" HeaderText="F. Vencimiento" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" Visible="false" />--%>
|
||||||
<asp:BoundField DataField="Estatus" HeaderText="Estatus" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="SerieFolio" HeaderText="Serie Folio" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField DataField="Saldo" HeaderText="Saldo" DataFormatString="{0:n}" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField DataField="DiasVencimiento" HeaderText="Dias de Vencimiento" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField DataField="Estatus" HeaderText="Estatus" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField DataField="Usuario" HeaderText="Usuario" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="Usuario" HeaderText="Usuario" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Opciones" Visible="false" ItemStyle-Width="120px">
|
<asp:TemplateField HeaderText="Opciones" Visible="false" ItemStyle-Width="120px">
|
||||||
@@ -156,7 +159,7 @@
|
|||||||
<asp:LinkButton ID="LnkDescargaComprobante" runat="server" AlternateText="Descarga" CausesValidation="False" CssClass="btn btn-circle btn-sm yellow" Text="<i class='fa fa-download'></i>" OnClick="LnkDescargaComprobante_Click" Visible="false" />
|
<asp:LinkButton ID="LnkDescargaComprobante" runat="server" AlternateText="Descarga" CausesValidation="False" CssClass="btn btn-circle btn-sm yellow" Text="<i class='fa fa-download'></i>" OnClick="LnkDescargaComprobante_Click" Visible="false" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<asp:LinkButton ID="LnkCambiarEstatus" runat="server" AlternateText="Eliminar" CausesValidation="False" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-arrow-right'></i>"
|
<asp:LinkButton ID="LnkCambiarEstatus" runat="server" AlternateText="CambiarEstatus" CausesValidation="False" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-arrow-right'></i>"
|
||||||
data-toggle="confirmation" data-popout="true" data-original-title="¿Cambiar Estado a Enviado?" data-btn-ok-label="si" OnClick="LnkCambiarEstatus_Click" Visible="false" />
|
data-toggle="confirmation" data-popout="true" data-original-title="¿Cambiar Estado a Enviado?" data-btn-ok-label="si" OnClick="LnkCambiarEstatus_Click" Visible="false" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ public partial class Ventas_RepLineasAdicionales : ClsPaginas
|
|||||||
private void InicializaValores()
|
private void InicializaValores()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (Request["OP"] != null && Request["OP"].ToString() == "PO")
|
if (Request["OP"] != null && Request["OP"].ToString() == "PO")
|
||||||
{
|
{
|
||||||
DVProveedor1.Visible = true;
|
DVProveedor1.Visible = true;
|
||||||
DVProveedor2.Visible = true;
|
DVProveedor2.Visible = true;
|
||||||
@@ -221,7 +221,7 @@ public partial class Ventas_RepLineasAdicionales : ClsPaginas
|
|||||||
{
|
{
|
||||||
errorCargaComprobante = true;
|
errorCargaComprobante = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!errorCargaComprobante)
|
if (!errorCargaComprobante)
|
||||||
{
|
{
|
||||||
ClsVentas objVentas = new ClsVentas();
|
ClsVentas objVentas = new ClsVentas();
|
||||||
@@ -248,11 +248,13 @@ public partial class Ventas_RepLineasAdicionales : ClsPaginas
|
|||||||
UpAddComprobancte.Update();
|
UpAddComprobancte.Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void LnkCambiarEstatus_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
GridViewRow GvRow = (GridViewRow)((LinkButton)sender).NamingContainer;
|
GridViewRow GvRow = (GridViewRow)((LinkButton)sender).NamingContainer;
|
||||||
int CveLineaAdicionalActualzarEstatus = GvRow.DataKey("CveLineaAdicional").ToString().ToEntero();
|
int CveLineaAdicionalActualzarEstatus = GvRow.DataKey("CveLineaAdicional").ToString().ToEntero();
|
||||||
int CveVenta = GvRow.DataKey("CveVenta").ToString().ToEntero();
|
int CveVenta = GvRow.DataKey("CveVenta").ToString().ToEntero();
|
||||||
|
|
||||||
bool errorCambioEstatus = false;
|
bool errorCambioEstatus = false;
|
||||||
|
|
||||||
ClsVentas objVentas = new ClsVentas();
|
ClsVentas objVentas = new ClsVentas();
|
||||||
|
|
||||||
@@ -278,12 +280,12 @@ public partial class Ventas_RepLineasAdicionales : ClsPaginas
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected void GvLineasAdicionales_RowDataBound(object sender, GridViewRowEventArgs e)
|
protected void GvLineasAdicionales_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||||
{
|
{
|
||||||
if(e.Row.RowType == DataControlRowType.DataRow)
|
if(e.Row.RowType == DataControlRowType.DataRow)
|
||||||
{
|
{
|
||||||
if(e.Row.DataKey("CveLineaAdicionalEstatus").ToEntero().Contiene(1) && e.Row.DataKey("CveVenta").ToEntero() > 0)
|
if(e.Row.DataKey("CveLineaAdicionalEstatus").ToEntero().Contiene(1) && e.Row.DataKey("CveVenta").ToEntero() > 0)
|
||||||
{
|
{
|
||||||
e.Row.FCLinkButton("LnkCambiarEstatus").Visible = true;
|
e.Row.FCLinkButton("LnkCambiarEstatus").Visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user