Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -740,8 +740,9 @@ Partial Class Contabilidad2_CatCuentas
|
||||
Dim params As New List(Of ReportParameter)
|
||||
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
||||
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
||||
Dim dtt As DataTable = DtDatos.Copy().FiltraParametros(" Codigo NOT IN ('_ACTIVO','_BPASIVO','_CAPITAL','_UTILIDAD','_RACREEDOR','_RDEUDOR','_CUADRE','_PASIVO','_ORDEN') ")
|
||||
|
||||
ImprimirPDF("Empresas/Grales/Formatos/Cuentas.rdlc", DtDatos, params, "Cuentas", Formato)
|
||||
ImprimirPDF("Empresas/Grales/Formatos/Cuentas.rdlc", dtt, params, "Cuentas", Formato)
|
||||
'ImprimirPDFStimul("Empresas/Grales/Formatos/Cuentas.mrt", DtDatos, params, NombreArchivo:="Cuentas", RDSName:="Cuentas", Formato:=Formato)
|
||||
Else
|
||||
Alert("No hay datos consultados", TipoMensaje.MsgAdvertencia)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-5">
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet light xspadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption font-green">
|
||||
<i class="icon-pin font-green"></i>
|
||||
@@ -81,7 +81,15 @@
|
||||
</table>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="row" id="divMsg" runat="server" visible="false">
|
||||
<div class="col-md-12" style="text-align: center;">
|
||||
<div class="alert alert-warning" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
||||
<button type="button" class="close" data-dismiss="alert" style="margin-top: 5px;" aria-hidden="true"></button>
|
||||
<strong style="font-size: 20px; margin-right: 25px;">Información: </strong>
|
||||
<asp:Literal Text=" solo se consideran los niveles 1 y 2." runat="server" ID="LtTipoCambioAdvertencia"></asp:Literal>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12" style="text-align: center;">
|
||||
<asp:Button ID="BtnGenerar" OnClick="BtnGenerar_Click" Text="Generar XML" Width="200px" CssClass="btn btn-primary" runat="server" />
|
||||
|
||||
@@ -109,12 +109,11 @@ Partial Class Contabilidad_ContabilidadElectronica
|
||||
DtCuentas = ObjConpaq.DtResultados
|
||||
End If
|
||||
ObjConpaq.Dispose()
|
||||
|
||||
End If
|
||||
|
||||
If DtCuentas IsNot Nothing AndAlso DtCuentas.Rows.Count > 0 Then
|
||||
Dim Str As New StringBuilder
|
||||
|
||||
Dim Str As New StringBuilder
|
||||
'CABECERA
|
||||
Str.Append("<?xml version=""1.0"" encoding=""UTF-8""?>")
|
||||
Str.Append("<catalogocuentas:Catalogo xsi:schemaLocation=""http://www.sat.gob.mx/esquemas/ContabilidadE/1_3/CatalogoCuentas http://www.sat.gob.mx/esquemas/ContabilidadE/1_3/CatalogoCuentas/CatalogoCuentas_1_3.xsd"" Version=""1.3"" ")
|
||||
@@ -288,8 +287,11 @@ Partial Class Contabilidad_ContabilidadElectronica
|
||||
End If
|
||||
|
||||
If DtCuentas IsNot Nothing AndAlso DtCuentas.Rows.Count > 0 Then
|
||||
Dim Str As New StringBuilder
|
||||
|
||||
If UsuarioActual.CveEmpresa = 119 Then
|
||||
DtCuentas = DtCuentas.FiltraParametros("Nivel IN (1,2) ")
|
||||
End If
|
||||
Dim Str As New StringBuilder
|
||||
'CABECERA
|
||||
Str.Append("<?xml version=""1.0"" encoding=""UTF-8""?>")
|
||||
Str.Append("<bnc:Balanza ")
|
||||
@@ -381,6 +383,9 @@ Partial Class Contabilidad_ContabilidadElectronica
|
||||
trTipoEnvio.Visible = False
|
||||
ElseIf DdlTipoReporte.SelectedValue = "2" Then
|
||||
trTipoEnvio.Visible = True
|
||||
If UsuarioActual.CveEmpresa = 119 Then
|
||||
divMsg.Visible = True
|
||||
End If
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
<asp:Button ID="BtnContabilizarCompras" runat="server" CssClass="btn btn-success" Text="Contabilizar" />
|
||||
</div>
|
||||
|
||||
<asp:GridView ID="GvPrePolizaCompras" runat="server" AutoGenerateColumns="False" Width="100%" CssClass="table table-advance table-hover" Style="text-align: center;" ForeColor="Black" DataKeyNames="CvePrePoliza,Fecha,CveTipoPoliza,IdPoliza" OnRowDataBound="OnRowDataBound" GridLines="None" ShowHeader="false">
|
||||
<asp:GridView ID="GvPrePolizaCompras" runat="server" AutoGenerateColumns="False" Width="100%" CssClass="table table-advance table-hover" Style="text-align: center;" ForeColor="Black" DataKeyNames="CvePrePoliza,Fecha,CveTipoPoliza,IdPoliza,Modulo" OnRowDataBound="OnRowDataBound" GridLines="None" ShowHeader="false">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
|
||||
@@ -163,6 +163,15 @@ public partial class Contabilidad_ContabilizacionCompras : ClsPaginas
|
||||
{
|
||||
e.Row.FCLinkButton("LBActualizarTC").Visible = true;
|
||||
}
|
||||
|
||||
if (UsuarioActual.CveEmpresa == 119 && e.Row.DBCampo("Modulo").ToString() == "Compras Comproba")
|
||||
{
|
||||
e.Row.FCCheckBox("Chk").Enabled = false;
|
||||
e.Row.FCCheckBox("Chk").Checked = false;
|
||||
e.Row.FCCheckBox("Chk").ToolTip = "Comprobación";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -436,7 +436,7 @@
|
||||
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom ">
|
||||
|
||||
<asp:GridView ID="GvPrePoliza" runat="server" AutoGenerateColumns="False" CssClass="table table-striped table-advance table-hover mysmallbtn GvPrePoliza" GridLines="None"
|
||||
DataKeyNames="CvePrePolizaDetalle,CvePrePoliza,IdMov, CveConceptoContable, CveSubProyecto, CveTipoGasto,Referencia,CveVenta,CveCompra, CveProveedor, CveCliente, CvePersonal, CveCuenta, PorcentajeImpuesto,TipoMovto,EsComplementaria,EsMonedaExtranjera,Concepto,CveClasificacion,ContadoCuenta,ContadoTipoTransaccion,ContadoNumeroFolio,ContadoBeneficiario,ContadoObservaciones,ContadoImporte,TC,ImporteME,ImporteMN,Cargo,Abono,CveIE,Modificado" Width="100%" >
|
||||
DataKeyNames="CvePrePolizaDetalle,CvePrePoliza,IdMov, CveConceptoContable, CveSubProyecto, CveTipoGasto,Referencia,CveVenta,CveCompra, CveProveedor, CveCliente, CvePersonal, CveCuenta, PorcentajeImpuesto,TipoMovto,EsComplementaria,EsMonedaExtranjera,Concepto,CveClasificacion,ContadoCuenta,ContadoTipoTransaccion,ContadoNumeroFolio,ContadoBeneficiario,ContadoObservaciones,ContadoImporte,TC,ImporteME,ImporteMN,Cargo,Abono,CveIE,CveActivoFijo,Modificado" Width="100%" >
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>Movimiento</HeaderTemplate>
|
||||
@@ -744,6 +744,15 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" runat="server" id="DvModalConceptoActivoFijo" visible="false">
|
||||
<div class="col-xs-2" style="text-align: left">Activo Fijo:</div>
|
||||
<div class="col-xs-4" style="text-align: left">
|
||||
<asp:Dropdownlist ID="DdlAF" CssStyle="width: 100%;" CssClass ="select2me" runat="server" AppendDataBoundItems="true" DataTextField="Descripcion" DataValueField="CveActivoFijo" Width="405px" ></asp:Dropdownlist>
|
||||
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row" runat="server" id="DvModalconceptoVenta" visible="false">
|
||||
<div class="col-xs-2" style="text-align: left">Venta:</div>
|
||||
|
||||
@@ -392,6 +392,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
||||
.Add("CveCompra", Type.GetType("System.Int32"))
|
||||
.Add("CveCliente", Type.GetType("System.Int32"))
|
||||
.Add("CveVenta", Type.GetType("System.Int32"))
|
||||
.Add("CveActivoFijo", Type.GetType("System.Int32"))
|
||||
.Add("CveIE", Type.GetType("System.Int32"))
|
||||
.Add("CveClasificacion", Type.GetType("System.Int32"))
|
||||
.Add("MultipleSubProyecto", Type.GetType("System.Boolean"))
|
||||
@@ -1097,7 +1098,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
||||
CvePersonal:=gvr.DataKey("CvePersonal").ToEntero, CveClasificacion:=gvr.DataKey("CveClasificacion").ToEntero,
|
||||
ImporteME:=ImporteME, TipoCambio:=TipoCambio,
|
||||
CveTipoGasto:=tCveTipoGasto,
|
||||
CveCliente:=gvr.DataKey("CveCliente").ToEntero, CveVenta:=gvr.DataKey("CveVenta").ToEntero, CveCuenta:=tCveCuenta, PorcentajeImpuesto:=gvr.DataKey("PorcentajeImpuesto").ToDecimal) Then
|
||||
CveCliente:=gvr.DataKey("CveCliente").ToEntero, CveVenta:=gvr.DataKey("CveVenta").ToEntero, CveActivoFijo:=gvr.DataKey("CveActivoFijo").ToEntero, CveCuenta:=tCveCuenta, PorcentajeImpuesto:=gvr.DataKey("PorcentajeImpuesto").ToDecimal) Then
|
||||
ContRegInsertados = ContRegInsertados + 1
|
||||
|
||||
Else
|
||||
@@ -1502,6 +1503,13 @@ Partial Class ContabilidadC_RegPrePolizaS
|
||||
DvModalconceptoCliente.Visible = False
|
||||
End If
|
||||
|
||||
If AplicaActivoFijo Then
|
||||
CargaActivosFijos()
|
||||
DvModalConceptoActivoFijo.Visible = True
|
||||
Else
|
||||
DvModalConceptoActivoFijo.Visible = False
|
||||
End If
|
||||
|
||||
If AplicaBancos AndAlso Not AplicaComplementaria Then
|
||||
TxtCargoE.AutoPostBack = True
|
||||
TxtAbonoE.AutoPostBack = True
|
||||
@@ -1530,6 +1538,8 @@ Partial Class ContabilidadC_RegPrePolizaS
|
||||
Else
|
||||
DivMonedaExtranjera.Visible = False
|
||||
End If
|
||||
|
||||
|
||||
CargaCuentaConcepto(CveConceptoContableInsertar)
|
||||
|
||||
End If
|
||||
@@ -1626,6 +1636,15 @@ Partial Class ContabilidadC_RegPrePolizaS
|
||||
DdlClasificacionesE.DataBind()
|
||||
DdlClasificacionesE.Items.Insert(0, New ListItem(" - ", "-1"))
|
||||
End Sub
|
||||
|
||||
Private Sub CargaActivosFijos()
|
||||
DdlAF.Items.Clear()
|
||||
DdlAF.DataSource = GlobalDTActivoFijos(UsuarioActual.CveEmpresa)
|
||||
DdlAF.DataBind()
|
||||
'DdlAF.setEsWebService(True)
|
||||
'DdlAF.Attributes.Add("data-metodo", "getcliente")
|
||||
|
||||
End Sub
|
||||
Private Sub DdlProveedoresE_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlProveedoresE.SelectedIndexChanged
|
||||
CargaComprasE(DdlProveedoresE.SelectedValue.ToEntero, HdnCveCompra.Value.ToEntero)
|
||||
End Sub
|
||||
@@ -1743,6 +1762,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
||||
dr("CvePersonal") = DdlPersonalE.SelectedValue.ToEntero
|
||||
dr("CveCliente") = DdlClientesE.SelectedValue.ToEntero
|
||||
dr("CveVenta") = DdlVentasE.SelectedValue.ToEntero
|
||||
dr("CveActivoFijo") = DdlAF.SelectedValue.ToEntero
|
||||
dr("FolioFactura") = If(DdlComprasE.Visible = True AndAlso DdlComprasE.SelectedItem IsNot Nothing, DdlComprasE.SelectedItem.ToString, If(DdlVentasE.Visible = True AndAlso DdlVentasE.SelectedItem IsNot Nothing, DdlVentasE.SelectedItem.ToString, ""))
|
||||
dr("Modificado") = True
|
||||
dr("TC") = TxtTipoCambio.Text.ToDecimal
|
||||
@@ -1861,6 +1881,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
||||
dr("CveClasificacion") = -1
|
||||
dr("CveCliente") = DdlClientes.SelectedValue.ToEntero
|
||||
dr("CveVenta") = DdlVentas.SelectedValue.ToEntero
|
||||
dr("CveActivoFijo") = DdlAF.SelectedValue.ToEntero
|
||||
End If
|
||||
GvMov.DataSource = DtMovimientos
|
||||
GvMov.DataBind()
|
||||
@@ -1888,6 +1909,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
||||
dr("CvePersonal") = DdlPersonal.SelectedValue.ToEntero
|
||||
dr("CveCliente") = DdlClientes.SelectedValue.ToEntero
|
||||
dr("CveVenta") = DdlVentas.SelectedValue.ToEntero
|
||||
dr("CveActivoFijo") = DdlAF.SelectedValue.ToEntero
|
||||
|
||||
TxtTotalAbonos.Text = (TxtTotalAbonos.Text.ToDecimal + TxtAbono.Text.ToDecimal).ToString.FormatoNumero
|
||||
TxtTotalCargos.Text = (TxtTotalCargos.Text.ToDecimal + TxtCargo.Text.ToDecimal).ToString.FormatoNumero
|
||||
@@ -1932,6 +1954,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
||||
dr("CveClasificacion") = -1
|
||||
dr("CveCliente") = DdlClientes.SelectedValue.ToEntero
|
||||
dr("CveVenta") = DdlVentas.SelectedValue.ToEntero
|
||||
dr("CveActivoFijo") = DdlAF.SelectedValue.ToEntero
|
||||
|
||||
TxtTotalAbonos.Text = (TxtTotalAbonos.Text.ToDecimal + TxtAbono.Text.ToDecimal).ToString.FormatoNumero
|
||||
TxtTotalCargos.Text = (TxtTotalCargos.Text.ToDecimal + TxtCargo.Text.ToDecimal).ToString.FormatoNumero
|
||||
@@ -1942,9 +1965,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
||||
GvMov.DataBind()
|
||||
UPMovs.Update()
|
||||
Actualizar = False
|
||||
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
TxtCargo.Text = ""
|
||||
@@ -2125,6 +2146,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
||||
'DdlClientes.txtText.Value = DrM("CveCliente").ToString
|
||||
|
||||
DdlVentas.SelectedValueExist(DrM("CveVenta").ToString)
|
||||
DdlAF.SelectedValueExist(DrM("CveActivoFijo").ToString)
|
||||
LbCancelarEdicion.Visible = True
|
||||
LbAgregar.Text = "Actualizar"
|
||||
|
||||
@@ -2566,7 +2588,6 @@ Partial Class ContabilidadC_RegPrePolizaS
|
||||
DtMovimientos.Clear()
|
||||
Exit For
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
If CveConceptoContable = 69 Then
|
||||
@@ -2596,6 +2617,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
||||
dr("CveClasificacion") = CveClasificacion
|
||||
dr("CveCliente") = -1
|
||||
dr("CveVenta") = -1
|
||||
dr("CveActivoFijo") = -1
|
||||
dr("CveCuenta") = CveCuentaExcel
|
||||
dr("CveTipoGasto") = -1
|
||||
dr("CvePrePolizaDetalle") = -1
|
||||
|
||||
@@ -6,7 +6,6 @@ Imports System.Data
|
||||
Imports Extensiones
|
||||
Imports Microsoft.Reporting.WebForms
|
||||
Imports ClosedXML.Excel
|
||||
Imports Profact.TimbraCFDI40
|
||||
Imports System.IO
|
||||
Imports System.Drawing
|
||||
Imports System.Web.Services
|
||||
@@ -434,12 +433,12 @@ Partial Class Contabilidad2_RepBalanzaComprobacion
|
||||
|
||||
Dim ultimaFila As DataRow = DtDatos.Rows(DtDatos.Rows.Count - 1)
|
||||
|
||||
Dim LastSaldoID As Decimal = ultimaFila("SaldoID").ToString.ToDecimal
|
||||
Dim LastTotalAbonos As Decimal = ultimaFila("TotalAbonos").ToString.ToDecimal
|
||||
Dim LastTotalCargos As Decimal = ultimaFila("TotalCargos").ToString.ToDecimal
|
||||
Dim LastSaldoAD As Decimal = ultimaFila("SaldoAD").ToString.ToDecimal
|
||||
Dim LastSaldoIA As Decimal = ultimaFila("SaldoIA").ToString.ToDecimal
|
||||
Dim LastSaldoAA As Decimal = ultimaFila("SaldoAA").ToString.ToDecimal
|
||||
Dim LastSaldoID As Decimal = ultimaFila("SaldoICargo").ToString.ToDecimal
|
||||
Dim LastTotalAbonos As Decimal = ultimaFila("Abonos").ToString.ToDecimal
|
||||
Dim LastTotalCargos As Decimal = ultimaFila("Cargos").ToString.ToDecimal
|
||||
Dim LastSaldoAD As Decimal = ultimaFila("SaldoFCargo").ToString.ToDecimal
|
||||
Dim LastSaldoIA As Decimal = ultimaFila("SaldoIAbono").ToString.ToDecimal
|
||||
Dim LastSaldoAA As Decimal = ultimaFila("SaldoFAbono").ToString.ToDecimal
|
||||
|
||||
WSReporte.Cell(CuerrentRow, 2).Value = "Sumas Iguales"
|
||||
WSReporte.Cell(CuerrentRow, 3).Value = LastSaldoID
|
||||
|
||||
Reference in New Issue
Block a user