Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -4653,7 +4653,11 @@ Public Class ClsContabilidad
|
||||
Retorno = SqlAdapter.SelectCommand.Parameters("@CveCuenta").Value.ToString.ToEntero
|
||||
'Retorno = If(Data IsNot Nothing AndAlso Data.Rows.Count > 0, Data.Rows(0)("CveCuenta").ToString.ToEntero, 0)
|
||||
Catch Ex1 As SqlException
|
||||
Me.OnError("Ocurrió un error al Guardar la cuenta.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
If Ex1.Message.Contains("IND_Conta_Cuentas_Codigo_CveEmpresa") Then
|
||||
Me.OnError("No se puede registrar una cuenta ya existente", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
Else
|
||||
Me.OnError("Ocurrió un error al Guardar la cuenta.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
End If
|
||||
Catch ex As Exception
|
||||
Me.OnError("Ocurrió un error al Guardar la cuenta.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
End Try
|
||||
|
||||
@@ -3,6 +3,112 @@
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||
<style>
|
||||
.dataTables_scrollBody table th {
|
||||
padding: 0px !important;
|
||||
padding-right: 4px !important;
|
||||
padding-left: 4px !important;
|
||||
}
|
||||
|
||||
.table-scrollable {
|
||||
margin: 0px !important;
|
||||
}
|
||||
|
||||
.dataTables_scrollFoot {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dataTables_scroll {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.table.dataTable {
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
|
||||
.table table-striped table-hover dataTable no-footer {
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
|
||||
.Excede {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.psagregar > div.comboxes {
|
||||
display: inline-block;
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
.psagregar > div.codigo input {
|
||||
width: 79px;
|
||||
}
|
||||
|
||||
.psagregar > div.codigo {
|
||||
display: inline-block;
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
.psagregar > div.codigo > input[type="submit"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.widget-thumb {
|
||||
padding: 15px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.widget-thumb.bordered {
|
||||
border: 3px solid whitesmoke;
|
||||
}
|
||||
|
||||
.widget-thumb .widget-thumb-heading {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: #8e9daa;
|
||||
margin: 0px 5px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.widget-thumb .widget-thumb-wrap {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.widget-thumb .widget-thumb-wrap .widget-thumb-icon {
|
||||
float: left;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
display: inline-block;
|
||||
font-size: 20px;
|
||||
line-height: 41px;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.widget-thumb .widget-thumb-body {
|
||||
overflow: hidden;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.widget-thumb .widget-thumb-body .widget-thumb-subtitle {
|
||||
padding-top: 2px;
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #8e9daa;
|
||||
}
|
||||
|
||||
.widget-thumb .widget-thumb-body .widget-thumb-body-stat {
|
||||
display: block;
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: #3e4f5e;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||
</asp:Content>
|
||||
@@ -40,7 +146,7 @@
|
||||
<h5>TC:<asp:Literal runat="server" ID="LtTipoCambioActual"></asp:Literal></h5>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<asp:TextBox ID="TxtConceptoFluctuacion" runat="server" ></asp:TextBox>
|
||||
<asp:TextBox ID="TxtConceptoFluctuacion" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -59,6 +165,62 @@
|
||||
<ajax:TabContainer runat="server" ID="T">
|
||||
<ajax:TabPanel runat="server" ID="TabCompras" HeaderText="Compras">
|
||||
<ContentTemplate>
|
||||
<asp:UpdatePanel ID="UpIndicadores" UpdateMode="Conditional" runat="server" Visible="False">
|
||||
<ContentTemplate>
|
||||
<div id="DivIndicadores" visible="true" class="row" runat="server">
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="widget-thumb text-uppercase bordered">
|
||||
<h4 class="widget-thumb-heading">PÉRDIDA</h4>
|
||||
<div class="widget-thumb-wrap">
|
||||
<i class="widget-thumb-icon bg-red fa fa-money"></i>
|
||||
<div class="widget-thumb-body">
|
||||
<span class="widget-thumb-subtitle">MXN</span>
|
||||
<span class="widget-thumb-body-stat">
|
||||
<asp:Literal ID="LtIndicador_ExistenciaPerdida" Text="" runat="server" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="widget-thumb text-uppercase bordered">
|
||||
<h4 class="widget-thumb-heading">GANANCIA</h4>
|
||||
<div class="widget-thumb-wrap">
|
||||
<i class="widget-thumb-icon bg-green fa fa-money"></i>
|
||||
<div class="widget-thumb-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<span class="widget-thumb-subtitle">MXN</span>
|
||||
<span class="widget-thumb-body-stat">
|
||||
<asp:Literal ID="LtIndicador_ValorPesosGanancia" Text="" runat="server" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="widget-thumb text-uppercase bordered">
|
||||
<h4 class="widget-thumb-heading">PÉRDIDA O GANANCIA</h4>
|
||||
<div class="widget-thumb-wrap">
|
||||
<i id="IImagenResultado" runat="server" class=""></i>
|
||||
<div class="widget-thumb-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<span class="widget-thumb-subtitle">MXN</span>
|
||||
<span class="widget-thumb-body-stat">
|
||||
<asp:Literal ID="LtIndicador_CPPesosFinal" Text="" runat="server" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<div style="float: right; margin-right: 50px;">
|
||||
<asp:Button Text="Generar Proveedores" runat="server" ID="BtnGeneraCompras" OnClick="BtnGeneraCompras_Click" Style="margin-left: 30px;" class="btn btn-primary" />
|
||||
</div>
|
||||
@@ -81,6 +243,62 @@
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel runat="server" ID="TabVentas" HeaderText="Ventas">
|
||||
<ContentTemplate>
|
||||
<asp:UpdatePanel ID="UpIndicadoresVentas" UpdateMode="Conditional" runat="server" Visible="false">
|
||||
<ContentTemplate>
|
||||
<div id="DivIndicadoresVentas" visible="true" class="row" runat="server">
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="widget-thumb text-uppercase bordered">
|
||||
<h4 class="widget-thumb-heading">PÉRDIDA</h4>
|
||||
<div class="widget-thumb-wrap">
|
||||
<i class="widget-thumb-icon bg-red fa fa-money"></i>
|
||||
<div class="widget-thumb-body">
|
||||
<span class="widget-thumb-subtitle">MXN</span>
|
||||
<span class="widget-thumb-body-stat">
|
||||
<asp:Literal ID="LtIndicador_PerdidasVentas" Text="" runat="server" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="widget-thumb text-uppercase bordered">
|
||||
<h4 class="widget-thumb-heading">GANANCIA</h4>
|
||||
<div class="widget-thumb-wrap">
|
||||
<i class="widget-thumb-icon bg-green fa fa-money"></i>
|
||||
<div class="widget-thumb-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<span class="widget-thumb-subtitle">MXN</span>
|
||||
<span class="widget-thumb-body-stat">
|
||||
<asp:Literal ID="LtIndicador_GanaciaVentas" Text="" runat="server" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-sm-6 col-xs-12">
|
||||
<div class="widget-thumb text-uppercase bordered">
|
||||
<h4 class="widget-thumb-heading">PÉRDIDA O GANANCIA</h4>
|
||||
<div class="widget-thumb-wrap">
|
||||
<i id="IImagenFinalVentas" runat="server" class=""></i>
|
||||
<div class="widget-thumb-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<span class="widget-thumb-subtitle">MXN</span>
|
||||
<span class="widget-thumb-body-stat">
|
||||
<asp:Literal ID="LtIndicador_FinalVentas" Text="" runat="server" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<div style="float: right; margin-right: 50px;">
|
||||
<asp:Button Text="Generar Clientes" runat="server" ID="BtnGeneraVentas" OnClick="BtnGeneraVentas_Click" Style="margin-left: 30px;" class="btn btn-primary" />
|
||||
</div>
|
||||
@@ -115,9 +333,9 @@
|
||||
EmptyDataText="No se Encontraron Cuentas Bancarias." ToolTip="Listado de Cuentas Bancarias"
|
||||
CssClass="table table-hover table-striped ScrollAD mysmallbtn" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField ItemStyle-Width="50" >
|
||||
<ItemTemplate >
|
||||
<asp:CheckBox ID="ChkGenerarBancos" runat="server"/>
|
||||
<asp:TemplateField ItemStyle-Width="50">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkGenerarBancos" runat="server" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField HeaderText="Banco" DataField="Banco" ItemStyle-Width="250" ItemStyle-HorizontalAlign="Left" />
|
||||
@@ -140,10 +358,10 @@
|
||||
<asp:GridView ID="GvDeudores" Width="99%" runat="server" AutoGenerateColumns="False"
|
||||
DataKeyNames="IdCtaAfectable,TipoCambio,Fluctuacion,RazonSocial,CveIE"
|
||||
EmptyDataText="No se Encontraron Cuentas Bancarias." ToolTip="Listado de Cuentas Bancarias"
|
||||
CssClass="table table-hover table-striped ScrollAD mysmallbtn" GridLines="None" >
|
||||
CssClass="table table-hover table-striped ScrollAD mysmallbtn" GridLines="None">
|
||||
<Columns>
|
||||
<asp:BoundField HeaderText="Deudor" DataField="RazonSocial" ItemStyle-Width="250" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:HyperLinkField HeaderText="Folio" DataTextField="Folio" DataNavigateUrlFields="CveIE" DataNavigateUrlFormatString ="/Bancos/IE.aspx?CveIE={0}" ItemStyle-Width="150" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:HyperLinkField HeaderText="Folio" DataTextField="Folio" DataNavigateUrlFields="CveIE" DataNavigateUrlFormatString="/Bancos/IE.aspx?CveIE={0}" ItemStyle-Width="150" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:BoundField HeaderText="Importe" DataField="Importe" ItemStyle-Width="100" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField HeaderText="Saldo" DataField="Saldo" ItemStyle-Width="100" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField HeaderText="T.C. último ajuste" DataField="TipoCambio" ItemStyle-Width="100" ItemStyle-HorizontalAlign="Right" />
|
||||
@@ -152,7 +370,7 @@
|
||||
</asp:GridView>
|
||||
<asp:Label ID="LblTotalDeudores" runat="server" Text=""></asp:Label>
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
</ajax:TabPanel>
|
||||
<ajax:TabPanel runat="server" ID="TabAcreedores" HeaderText="Compras Acreedores">
|
||||
<ContentTemplate>
|
||||
<div style="float: right; margin-right: 50px;">
|
||||
@@ -187,7 +405,7 @@
|
||||
CssClass="table table-hover table-striped ScrollAD mysmallbtn" GridLines="None">
|
||||
<Columns>
|
||||
<asp:BoundField HeaderText="Acreedor" DataField="RazonSocial" ItemStyle-Width="250" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:HyperLinkField HeaderText="Folio" DataTextField="Folio" DataNavigateUrlFields="CveIE" DataNavigateUrlFormatString ="/Bancos/IE.aspx?CveIE={0}" ItemStyle-Width="150" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:HyperLinkField HeaderText="Folio" DataTextField="Folio" DataNavigateUrlFields="CveIE" DataNavigateUrlFormatString="/Bancos/IE.aspx?CveIE={0}" ItemStyle-Width="150" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:BoundField HeaderText="Importe" DataField="Importe" ItemStyle-Width="100" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField HeaderText="Saldo" DataField="Saldo" ItemStyle-Width="100" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||
<asp:BoundField HeaderText="T.C. último ajuste" DataField="TipoCambio" ItemStyle-Width="100" ItemStyle-HorizontalAlign="Right" />
|
||||
|
||||
@@ -71,6 +71,20 @@ Partial Class Bancos_FluctuacionCambiaria
|
||||
If ObjBancos.GetFluctuaciones(TxtFecha.Text.ToDate, 1, UsuarioActual.CveEmpresa) Then
|
||||
GvCompras.DataSource = ObjBancos.DtResultados
|
||||
'LblTotalCompras.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
||||
Dim Perdida As DataTable = ObjBancos.DtResultados.FiltraParametros("GananciaPerdida = 'PERDIDA' AND TipoRow = 2")
|
||||
Dim Ganancias As DataTable = ObjBancos.DtResultados.FiltraParametros("GananciaPerdida = 'GANANCIA' AND TipoRow = 2")
|
||||
|
||||
Dim PerdidaAux As Double = Perdida.SUM("Fluctuacion").Abs
|
||||
Dim GanaciaAux As Double = Ganancias.SUM("Fluctuacion")
|
||||
|
||||
Dim Final As Double = GanaciaAux - PerdidaAux
|
||||
|
||||
IImagenResultado.Attributes("class") = If(Final > 0, "widget-thumb-icon bg-green-jungle fa fa-usd", "widget-thumb-icon bg-red fa fa-usd")
|
||||
|
||||
LtIndicador_ExistenciaPerdida.Text = PerdidaAux.ToString.FormatoNumero
|
||||
LtIndicador_ValorPesosGanancia.Text = GanaciaAux.ToString.FormatoNumero
|
||||
LtIndicador_CPPesosFinal.Text = Final.Abs.ToString.FormatoNumero
|
||||
|
||||
LblTotal = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
||||
Else
|
||||
GvCompras.DataSource = Nothing
|
||||
@@ -78,6 +92,7 @@ Partial Class Bancos_FluctuacionCambiaria
|
||||
End If
|
||||
ObjBancos.Dispose()
|
||||
GvCompras.DataBind()
|
||||
UpIndicadores.Visible = True
|
||||
If GvCompras.Rows.Count > 0 Then
|
||||
GvCompras.Rows(GvCompras.Rows.Count - 1).CssClass = "SubTotales2"
|
||||
End If
|
||||
@@ -88,7 +103,24 @@ Partial Class Bancos_FluctuacionCambiaria
|
||||
LblTotalVentas.Text = "0.00"
|
||||
If ObjBancos.GetFluctuaciones(TxtFecha.Text.ToDate, 2, UsuarioActual.CveEmpresa) Then
|
||||
GvVentas.DataSource = ObjBancos.DtResultados
|
||||
|
||||
Dim Perdida As DataTable = ObjBancos.DtResultados.FiltraParametros("Fluctuacion < 0")
|
||||
Dim Ganancias As DataTable = ObjBancos.DtResultados.FiltraParametros("Fluctuacion > 0")
|
||||
|
||||
Dim PerdidaAux As Double = Perdida.SUM("Fluctuacion").Abs
|
||||
Dim GanaciaAux As Double = Ganancias.SUM("Fluctuacion")
|
||||
|
||||
Dim Final As Double = GanaciaAux - PerdidaAux
|
||||
|
||||
IImagenFinalVentas.Attributes("class") = If(Final > 0, "widget-thumb-icon bg-green-jungle fa fa-usd", "widget-thumb-icon bg-red fa fa-usd")
|
||||
|
||||
LtIndicador_PerdidasVentas.Text = PerdidaAux.ToString.FormatoNumero
|
||||
LtIndicador_GanaciaVentas.Text = GanaciaAux.ToString.FormatoNumero
|
||||
LtIndicador_FinalVentas.Text = Final.ToString.FormatoNumero
|
||||
|
||||
LblTotalVentas.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
||||
|
||||
UpIndicadoresVentas.Visible = True
|
||||
Else
|
||||
GvVentas.DataSource = Nothing
|
||||
Alert("Ocurrio un error al cargar las compras", TipoMensaje.MsgAdvertencia)
|
||||
|
||||
Reference in New Issue
Block a user