diff --git a/Contratos/ContratoAvance.aspx b/Contratos/ContratoAvance.aspx index 9d829dce7..45bf7c3d0 100644 --- a/Contratos/ContratoAvance.aspx +++ b/Contratos/ContratoAvance.aspx @@ -100,10 +100,7 @@
- - Agregar - - +
diff --git a/Contratos/ContratoAvance.aspx.vb b/Contratos/ContratoAvance.aspx.vb index 4ff8715fb..451b2c4a4 100644 --- a/Contratos/ContratoAvance.aspx.vb +++ b/Contratos/ContratoAvance.aspx.vb @@ -96,8 +96,8 @@ Partial Class Contratos_ContratoAvance Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load If Not IsPostBack Then - BtnGuardar.Visible = False - btnanexogral.Visible = False + BtnGuardar.Visible = False + CargaContrato() @@ -146,16 +146,16 @@ Partial Class Contratos_ContratoAvance fecha = "" DtDatos = ObjContratos.DtResultados If ObjContratos.DtResultados.Rows.Count > 0 Then - BtnGuardar.Visible = True - btnanexogral.Visible = True + BtnGuardar.Visible = True + End If End If Else If ObjContratos.GetContratosAvanceHistoricos(CveContrato, 2, DdlAvances.SelectedValue) Then fecha = DdlAvances.SelectedValue DtDatos = ObjContratos.DtResultados - BtnGuardar.Visible = False - btnanexogral.Visible = False + BtnGuardar.Visible = False + End If End If ObjContratos.Dispose() @@ -280,7 +280,7 @@ Partial Class Contratos_ContratoAvance Dim TieneError = False Dim CveContratoDetalle As Integer Dim Cantidad As Double - Dim filesgral As List(Of Archivo) = AnexoGral.getfiles().Archivos + 'Dim filesgral As List(Of Archivo) = AnexoGral.getfiles().Archivos Dim guardarArchivos As New List(Of Archivo) For Each gvr As GridViewRow In Gv.Rows @@ -328,9 +328,10 @@ Partial Class Contratos_ContratoAvance Alert("No se logro guardar el Presupuesto favor de intentarlo mas tarde o comuniquese con soporte", TipoMensaje.MsgAdvertencia) Else Dim urlsave As String = String.Format("Empresas\{0}\Contrato\{1}\Anexos", UsuarioActual.CveEmpresa, CveContrato) - For Each fileItem As Archivo In filesgral - fileItem.filename.FilesMove(fileItem.filename, urlsave) - Next + + 'For Each fileItem As Archivo In filesgral + ' fileItem.filename.FilesMove(fileItem.filename, urlsave) + 'Next For Each fileItem As Archivo In guardarArchivos fileItem.filename.FilesMove(fileItem.filename.Replace($".{fileItem.Extencion}", ""), urlsave) @@ -338,7 +339,7 @@ Partial Class Contratos_ContratoAvance ObjContratos.Commit() Alert("se guardo Correctamente") End If - AnexoGral.Text = "[]" + 'AnexoGral.Text = "[]" ObjContratos.Dispose() CargaddlAvance() CargaDatosAvance() diff --git a/Contratos/ContratoObra.aspx b/Contratos/ContratoObra.aspx index 9bdb71224..b710ac331 100644 --- a/Contratos/ContratoObra.aspx +++ b/Contratos/ContratoObra.aspx @@ -75,87 +75,7 @@ -<%--
  • - Concluir Contrato -
  • -
  • - Cancelar Contrato -
  • -
  • - Reactivar Contrato -
  • -
  • - Descargar Formato -
  • -
  • - Crear A Partir De -
  • - -
  • - Importar Listado -
  • - - -
  • - Agregar Gastos -
  • - - -
  • - Avance por Documento PDF -
  • - - -
  • - Descargar Contrato -
  • - -
  • - Informacion PDF -
  • - - -
  • - Gastos PDF -
  • - - -
  • - Suministros PDF -
  • -
  • - Avance PDF -
  • - -
  • - Presupuesto PDF -
  • - -
  • - Activos Fijos PDF -
  • - -
  • - Activos Fijos Excel -
  • -
  • - Pedidos / Devoluciones PDF -
  • - -
  • - Pedidos / Devoluciones Excel -
  • - - - - - - -
  • - Habilitar Ajuste A.F. -
  • -
    -
    --%> + @@ -165,7 +85,7 @@
  • - Agregar PS Control + Agregar PS Interno
  • @@ -955,21 +875,10 @@
    - <%-- - - - - - - - - --%> - - @@ -981,25 +890,7 @@ -<%-- - - - - - - - - --%> - <%-- - - - - - - - - --%> @@ -1206,7 +1097,7 @@
    @@ -1221,25 +1112,7 @@ - <%-- - - - - - - - - --%> - - <%-- - - - - - - - - --%> + @@ -2736,10 +2609,10 @@