visualización
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<div class="portlet light smmallpadding bordered">
|
<div class="portlet light xspadding bordered">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<i class="fa fa-info-circle"></i>Datos Generales
|
<i class="fa fa-info-circle"></i>Datos Generales
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<div class="portlet light smmallpadding bordered">
|
<div class="portlet light xspadding bordered">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<i class="fa fa-info-circle"></i>Configuración
|
<i class="fa fa-info-circle"></i>Configuración
|
||||||
@@ -109,8 +109,8 @@
|
|||||||
<label class="col-md-4 truncate">Fecha Inicio:</label>
|
<label class="col-md-4 truncate">Fecha Inicio:</label>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<div style="display: inline-block; vertical-align: text-bottom;">
|
<div style="display: inline-block; vertical-align: text-bottom;">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
<asp:TextBox ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
<asp:TextBox ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 78px" MaxLength="10"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
<asp:LinkButton ID="ImgFechaI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="ImgFechaI" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
</span>
|
</span>
|
||||||
@@ -130,8 +130,8 @@
|
|||||||
<label class="col-md-4 truncate">Fecha Fin:</label>
|
<label class="col-md-4 truncate">Fecha Fin:</label>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<div style="display: inline-block; vertical-align: text-bottom;">
|
<div style="display: inline-block; vertical-align: text-bottom;">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
<asp:TextBox ID="TxtFechaF" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
<asp:TextBox ID="TxtFechaF" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 78px" MaxLength="10"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
<asp:LinkButton ID="ImgFechaF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="ImgFechaF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
</span>
|
</span>
|
||||||
@@ -252,7 +252,7 @@
|
|||||||
<br />
|
<br />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="portlet light smmallpadding bordered">
|
<div class="portlet light xspadding bordered">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption" style="align-items: center">
|
<div class="caption" style="align-items: center">
|
||||||
<i class="fa fa-info-circle"></i>Presupuestos
|
<i class="fa fa-info-circle"></i>Presupuestos
|
||||||
@@ -271,10 +271,10 @@
|
|||||||
DataKeyNames="CvePresupuestoDetalle,CveAgrupador,CveTipoGasto,Tipo">
|
DataKeyNames="CvePresupuestoDetalle,CveAgrupador,CveTipoGasto,Tipo">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Clasificación" DataField="Agrupador" />
|
<asp:BoundField HeaderText="Clasificación" DataField="Agrupador" />
|
||||||
<asp:TemplateField HeaderText="Importe" HeaderStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Right">
|
<asp:TemplateField HeaderText="Importe" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LblImporteClasiTotal" runat="server" Visible="false"></asp:Label>
|
<asp:Label ID="LblImporteClasiTotal" runat="server" Visible="false"></asp:Label>
|
||||||
<asp:TextBox ID="TxtImporteClasi" runat="server" Text='<%#Eval("Importe") %>' CssClass="form-control input-sm"></asp:TextBox>
|
<asp:TextBox ID="TxtImporteClasi" runat="server" Text='<%#Eval("Importe") %>' CssClass="form-control input-sm" Width="125px" style="text-align:right;"></asp:TextBox>
|
||||||
<ajax:FilteredTextBoxExtender ID="SoloNumerosCantidad" runat="server" TargetControlID="TxtImporteClasi" FilterType="Custom, Numbers" ValidChars=".," />
|
<ajax:FilteredTextBoxExtender ID="SoloNumerosCantidad" runat="server" TargetControlID="TxtImporteClasi" FilterType="Custom, Numbers" ValidChars=".," />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<FooterTemplate>
|
<FooterTemplate>
|
||||||
@@ -337,14 +337,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body rowpadding ">
|
<div class="portlet-body rowpadding ">
|
||||||
<!--<div class=" row">
|
|
||||||
<div class="col-md-3">Concepto</div>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<asp:DropDownList ID="ddlConceptocomisionNeto" runat="server" DataTextField="CodigoConcepto" DataValueField="CveConcepto" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
-->
|
|
||||||
<asp:TextBox ID="TxtCargarPresup" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtCargarPresup" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -147,16 +147,8 @@ Partial Class Contratos_Presupuestos
|
|||||||
Dim DrContrato = ObjContrato.DtResultados.Copy(0)
|
Dim DrContrato = ObjContrato.DtResultados.Copy(0)
|
||||||
If DrContrato IsNot Nothing Then
|
If DrContrato IsNot Nothing Then
|
||||||
|
|
||||||
Dim ImporteOriginal = DrContrato("Importe").ToString.ToDecimal
|
Dim ImporteOriginal = DrContrato("Importe").ToString.ToDecimal
|
||||||
'Dim ImporteVigente = DrContrato("ImporteVigente").ToString.ToDecimal
|
|
||||||
'Dim CveMoneda = DrContrato("CveMoneda").ToString.ToEntero
|
|
||||||
|
|
||||||
'DdlMoneda.SelectedValueExist(CveMoneda)
|
|
||||||
|
|
||||||
'HdnTotal.Value = ImporteVigente.FormatoNumero
|
|
||||||
|
|
||||||
|
|
||||||
'LblTotal.Text = String.Format("{0:C}", ImporteVigente)
|
|
||||||
TxtPresupuesto.Text = DrContrato("Nombre").ToString
|
TxtPresupuesto.Text = DrContrato("Nombre").ToString
|
||||||
TxtDescripcion.Text = DrContrato("Observacion").ToString
|
TxtDescripcion.Text = DrContrato("Observacion").ToString
|
||||||
|
|
||||||
@@ -471,34 +463,8 @@ Partial Class Contratos_Presupuestos
|
|||||||
ObjPres.IniciaTransacSQL()
|
ObjPres.IniciaTransacSQL()
|
||||||
Dim TieneError As Boolean = False
|
Dim TieneError As Boolean = False
|
||||||
|
|
||||||
TieneError = Not ObjPres.UpdateEstatusPresupuesto(CvePresupuesto, EstatusFinal)
|
TieneError = Not ObjPres.UpdateEstatusPresupuesto(CvePresupuesto, EstatusFinal)
|
||||||
'If ObjPres.UpdateEstatusPresupuesto(CvePresupuesto, EstatusFinal) Then
|
|
||||||
' If ObjPres.GetPresupuestosDetalle(CvePresupuesto, -1, UsuarioActual.CveEmpresa) Then
|
|
||||||
' DtClasificaciones = ObjPres.DtResultados
|
|
||||||
' End If
|
|
||||||
|
|
||||||
' If DtClasificaciones IsNot Nothing Then
|
|
||||||
' Dim DtDetalle = DtClasificaciones.FiltraParametros("CvePresupuestoDetalle > 0", DistinctColumns:={"CvePresupuestoDetalle", "ImporteVigente"})
|
|
||||||
' If DtDetalle.Rows.Count > 0 Then
|
|
||||||
|
|
||||||
' For Each Dr As DataRow In DtDetalle.Rows
|
|
||||||
' Dim CvePresupuestoDetalle As Integer = Dr("CvePresupuestoDetalle").ToString.ToEntero
|
|
||||||
' Dim Importe As Decimal = Dr("ImporteVigente").ToString.ToDecimal
|
|
||||||
' Dim Fecha = Now
|
|
||||||
' Dim Tipo = 1
|
|
||||||
' Dim CveCompra As Integer = -1
|
|
||||||
' Dim Justificacion = "-1"
|
|
||||||
' TieneError = Not ObjPres.AddPresupuestoMovimiento(CvePresupuesto, CveCompra, Tipo, Importe, Fecha, Justificacion)
|
|
||||||
' If TieneError Then
|
|
||||||
' Exit For
|
|
||||||
' End If
|
|
||||||
' Next
|
|
||||||
' End If
|
|
||||||
' End If
|
|
||||||
'Else
|
|
||||||
' TieneError = True
|
|
||||||
'End If
|
|
||||||
|
|
||||||
If TieneError Then
|
If TieneError Then
|
||||||
ObjPres.RollBack()
|
ObjPres.RollBack()
|
||||||
Alert("Ocurrió un error al autorizar el presupuesto.", TipoMensaje.MsgError)
|
Alert("Ocurrió un error al autorizar el presupuesto.", TipoMensaje.MsgError)
|
||||||
@@ -552,7 +518,6 @@ Partial Class Contratos_Presupuestos
|
|||||||
Dim DTExcel As New DataTable
|
Dim DTExcel As New DataTable
|
||||||
Dim ErrorArchivo = False
|
Dim ErrorArchivo = False
|
||||||
Dim ErrorExcel = False
|
Dim ErrorExcel = False
|
||||||
|
|
||||||
DTExcel = ReadExcelFile(Ruta + FileName, True)
|
DTExcel = ReadExcelFile(Ruta + FileName, True)
|
||||||
|
|
||||||
If Not ErrorArchivo Then
|
If Not ErrorArchivo Then
|
||||||
@@ -574,16 +539,13 @@ Partial Class Contratos_Presupuestos
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Try
|
Try
|
||||||
Dim txtImporte As TextBox = Nothing
|
|
||||||
Dim txtObservacion As TextBox = Nothing
|
|
||||||
Dim i As Integer = 0
|
Dim i As Integer = 0
|
||||||
For Each row As GridViewRow In GvPresupuestos.Rows
|
For Each row As GridViewRow In GvPresupuestos.Rows
|
||||||
If (i < DTExcel.Rows.Count) Then
|
If (i < DTExcel.Rows.Count) Then
|
||||||
txtImporte = row.FCTextBox("TxtImporteClasi")
|
If DTExcel.Rows(i)("Importe").ToString.Trim <> "" Then row.FCTextBox("TxtImporteClasi").Text = DTExcel.Rows(i)("Importe").ToString.FormatoNumero
|
||||||
txtObservacion = row.FCTextBox("TxtObservacion")
|
row.FCTextBox("TxtObservacion").Text = DTExcel.Rows(i)("Observaciones").ToString
|
||||||
txtImporte.Text = DTExcel.Rows(i).Field(Of String)(1).ToString
|
|
||||||
txtObservacion.Text = DTExcel.Rows(i).Field(Of String)(2).ToString
|
|
||||||
i += 1
|
i += 1
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|||||||
@@ -180,9 +180,9 @@
|
|||||||
<div class="titlefiltros caption ">
|
<div class="titlefiltros caption ">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-1" style="max-width: 90px">Fecha Inicio:</div>
|
<div class="col-md-1" style="max-width: 90px">Fecha Inicio:</div>
|
||||||
<div class="col-md-2" style="max-width: 130px">
|
<div class="col-md-2" style="max-width: 120px">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 90px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 90px !important; padding: 0px;">
|
||||||
<asp:TextBox ID="TxtFiltrosFechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 88px" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtFiltrosFechaInicio" CssClass="form-control input-sm ADSMaskDate" Style="width: 78px" runat="server"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
<asp:LinkButton ID="LnkFechaI" class="btn default " Text=" <i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="LnkFechaI" class="btn default " Text=" <i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
</span>
|
</span>
|
||||||
@@ -193,9 +193,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1" style="max-width: 75px">Fecha Fin:</div>
|
<div class="col-md-1" style="max-width: 75px">Fecha Fin:</div>
|
||||||
<div class="col-md-2" style="max-width: 130px">
|
<div class="col-md-2" style="max-width: 120px">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 90px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 90px !important; padding: 0px;">
|
||||||
<asp:TextBox ID="TxtFiltrosFechaFin" CssClass="form-control input-sm ADSMaskDate" Style="width: 88px" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtFiltrosFechaFin" CssClass="form-control input-sm ADSMaskDate" Style="width: 78px" runat="server"></asp:TextBox>
|
||||||
<span class="input-group-btn ">
|
<span class="input-group-btn ">
|
||||||
<asp:LinkButton ID="LnkFechaF" class="btn default " Text=" <i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
<asp:LinkButton ID="LnkFechaF" class="btn default " Text=" <i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ Partial Class Contratos_RepPresupuestos
|
|||||||
#Region " INICIALIZA VALORES "
|
#Region " INICIALIZA VALORES "
|
||||||
Private Sub InicializaValores()
|
Private Sub InicializaValores()
|
||||||
|
|
||||||
TxtFiltrosFechaInicio.Text = $"01/09/{Now.Year - 1}"
|
TxtFiltrosFechaInicio.Text = $"01/08/{Now.Year - 1}"
|
||||||
TxtFiltrosFechaFin.Text = $"31/08/{Now.Year}"
|
TxtFiltrosFechaFin.Text = $"31/07/{Now.Year}"
|
||||||
|
|
||||||
DdlTipoGasto.DataSource = GlobalDTTiposGastos(UsuarioActual.CveEmpresa)
|
DdlTipoGasto.DataSource = GlobalDTTiposGastos(UsuarioActual.CveEmpresa)
|
||||||
DdlTipoGasto.DataBind()
|
DdlTipoGasto.DataBind()
|
||||||
|
|||||||
Reference in New Issue
Block a user