agregando las consultas de cuentas y conceptos
This commit is contained in:
@@ -4707,6 +4707,23 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function GetCuentasyConceptos(CveCliente As Integer) As Boolean
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
DataAdapter("PA_Conta_GetCuentasyConceptos")
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveCliente", SqlDbType.Int).Value = CveCliente
|
||||||
|
End With
|
||||||
|
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al consultar las cuentas y conceptos", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Function UpdateCuentaCompaq(CveCuenta As Integer, IdCompaq As Integer, CveEmpresa As Integer) As Boolean
|
Public Function UpdateCuentaCompaq(CveCuenta As Integer, IdCompaq As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
|
|||||||
@@ -1058,6 +1058,32 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="portlet light xspadding bordered">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption font-green">
|
||||||
|
<i class="icon-pin font-green"></i>
|
||||||
|
<span class="caption-subject bold uppercase">Cuentas y conceptos</span>
|
||||||
|
</div>
|
||||||
|
<div class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body form-horizontal form-row-sepe">
|
||||||
|
<div class="form-body">
|
||||||
|
<asp:UpdatePanel runat="server" ID="UpCuentaConceptos" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:GridView ID="GvCuentasContable" runat="server" DataKeyNames="ConceptoContable,NombreCuenta" AutoGenerateColumns="False" EmptyDataText="No se encontraron Ventas en el Cliente" ToolTip="Listado de Historial de Ventas" CssClass="table table-striped table-advance table-hover" Style="text-align: center; min-width: 783px; width: 100%;" GridLines="None">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField HeaderText="Concepto Contable" DataField="ConceptoContable"/>
|
||||||
|
<asp:BoundField HeaderText="Nombre Cuenta" DataField="NombreCuenta"/>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -778,7 +778,7 @@ Partial Class Clientes
|
|||||||
If Request("ATI") IsNot Nothing AndAlso IsNumeric(Request("ATI")) Then
|
If Request("ATI") IsNot Nothing AndAlso IsNumeric(Request("ATI")) Then
|
||||||
Tab.ActiveTabIndex = Request("ATI").ToEntero
|
Tab.ActiveTabIndex = Request("ATI").ToEntero
|
||||||
End If
|
End If
|
||||||
|
CargaCuentasyConceptos()
|
||||||
Else
|
Else
|
||||||
'Configuración de Modalidad Insert
|
'Configuración de Modalidad Insert
|
||||||
|
|
||||||
@@ -1037,6 +1037,15 @@ Partial Class Clientes
|
|||||||
DdlMonedaExtranjeraAnticipos.Attributes.Add("onclick", "CargaCuentas(9);")
|
DdlMonedaExtranjeraAnticipos.Attributes.Add("onclick", "CargaCuentas(9);")
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
Private Sub CargaCuentasyConceptos()
|
||||||
|
Dim ObjConta As New ClsContabilidad
|
||||||
|
If ObjConta.GetCuentasyConceptos(CveCliente) Then
|
||||||
|
GvCuentasContable.DataSource = ObjConta.DtResultados
|
||||||
|
End If
|
||||||
|
ObjConta.Dispose()
|
||||||
|
GvCuentasContable.DataBind()
|
||||||
|
UpCuentaConceptos.Update()
|
||||||
|
End Sub
|
||||||
Protected Sub BtnCargarCuentas_Click(sender As Object, e As EventArgs) Handles BtnCargarCuentas.Click
|
Protected Sub BtnCargarCuentas_Click(sender As Object, e As EventArgs) Handles BtnCargarCuentas.Click
|
||||||
If UsuarioActual.Empresa.ServerContPAQi = "" Then Exit Sub
|
If UsuarioActual.Empresa.ServerContPAQi = "" Then Exit Sub
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user