From 4e1b04f878c6df66bd43f813a88b893e04da7ea1 Mon Sep 17 00:00:00 2001 From: Rakcsle Supertramp Date: Thu, 17 Dec 2020 17:27:02 -0700 Subject: [PATCH] Contratos Usuarios detalle --- Contratos/ContratoObra.aspx | 21 +++++++++++++---- Contratos/ContratoObra.aspx.vb | 42 ++++++++++++++++++++++++++++++++- Sistemas/UsuarioDetalle.aspx | 18 ++++++++++++-- Sistemas/UsuarioDetalle.aspx.vb | 24 +++++++++++++++---- 4 files changed, 94 insertions(+), 11 deletions(-) diff --git a/Contratos/ContratoObra.aspx b/Contratos/ContratoObra.aspx index ef3d982e3..ea4c94e5d 100644 --- a/Contratos/ContratoObra.aspx +++ b/Contratos/ContratoObra.aspx @@ -1365,7 +1365,7 @@ @@ -1375,12 +1375,12 @@ - + - + @@ -2391,7 +2391,8 @@
- + + @@ -2401,6 +2402,18 @@ + + + + + + + + + + + +
diff --git a/Contratos/ContratoObra.aspx.vb b/Contratos/ContratoObra.aspx.vb index f627ea687..84bf44ec2 100644 --- a/Contratos/ContratoObra.aspx.vb +++ b/Contratos/ContratoObra.aspx.vb @@ -2299,7 +2299,7 @@ Partial Class Contratos_ContratoObra If e.Row.DBCampo("CveClasificacion").ToString.ToEntero = 0 Then e.Row.CssClass = "Totales white" - ElseIf e.Row.DBCampo("CvePS").ToString.ToEntero = 0 Then + ElseIf e.Row.DBCampo("CveContratoDetalle").ToString.Length = 0 And e.Row.DBCampo("CveClasificacion").ToString.ToEntero <> 0 Then e.Row.CssClass = "SubTotales" End If @@ -2313,10 +2313,13 @@ Partial Class Contratos_ContratoObra End If End Sub + Protected Sub MuestaModalVentasAvance(sender As Object, e As EventArgs) Dim GvRow As GridViewRow = CType(((CType(sender, LinkButton)).NamingContainer), GridViewRow) + GvDatosVentasAvance.Visible = True + GvDatosVentasAvanceInterno.Visible = False 'Dim Btn = CType(sender, LinkButton) 'Dim Parametros = Btn.CommandArgument.Split("|"c) @@ -2347,6 +2350,43 @@ Partial Class Contratos_ContratoObra UpVentasAvance.Update() End Sub + + + Protected Sub MuestaModalVentasAvanceInterno(sender As Object, e As EventArgs) + + Dim GvRow As GridViewRow = CType(((CType(sender, LinkButton)).NamingContainer), GridViewRow) + + + GvDatosVentasAvance.Visible = False + GvDatosVentasAvanceInterno.Visible = True + + + Dim CveClasificacion As Integer = GvRow.DataKey("CveClasificacion").ToEntero + Dim CvePS As Integer = GvRow.DataKey("CvePS").ToEntero + Dim CodigoPS As String = GvRow.DataKey("CodigoPS") + Dim Clasificacion As String = GvRow.DataKey("Clasificacion") + + Dim ObjContratos As New ClsContratos + + If ObjContratos.GetVentasAvanceObra(CveContrato, CveClasificacion, CvePS, 2) Then + GvDatosVentasAvanceInterno.DataSource = ObjContratos.DtResultados + RegistraScript("$('#ModalVentasAvance').modal('show');RecargaAvances = true;") + Else + Alert("Ocurrió un error al obtener el Listado de Ventas de Avance. Por favor vuelva a intentar", TipoMensaje.MsgError) + End If + + ObjContratos.Dispose() + GvDatosVentasAvanceInterno.DataBind() + + LbTituloModalVentasAvance.Text = "Compras de Avance" + + LbClasificacionVentasAvance.Text = Clasificacion + LbPSVentasAvance.Text = CodigoPS + + UpVentasAvance.Update() + + End Sub + #End Region #Region " TAB: REPORTE AVANCES POR DOCUMENTO " diff --git a/Sistemas/UsuarioDetalle.aspx b/Sistemas/UsuarioDetalle.aspx index 065bfcd50..e8217723e 100644 --- a/Sistemas/UsuarioDetalle.aspx +++ b/Sistemas/UsuarioDetalle.aspx @@ -57,7 +57,11 @@
  • - Clonar Usuario + + <%--Clonar Usuario --%> + + Clonar Usuario +
  • Actualizar Gestor Cobranza @@ -2398,7 +2402,17 @@
    -
    +
    + + +
    +

    + +

    +
    + + +
    diff --git a/Sistemas/UsuarioDetalle.aspx.vb b/Sistemas/UsuarioDetalle.aspx.vb index 64e54fe8e..67eb0733e 100644 --- a/Sistemas/UsuarioDetalle.aspx.vb +++ b/Sistemas/UsuarioDetalle.aspx.vb @@ -3701,9 +3701,16 @@ Partial Class Sistemas_UsuarioDetalle End If - ObjUsuarios.Dispose() - End If - + ObjUsuarios.Dispose() + + LblClonarMensaje.Text = $"En el usuario {TxtUsuario.Text} se reemplazará la información del usuario {DdlUsuarioClonar.SelectedItem.Text} con las siguientes secciones que seleccione." + Else + LblClonarMensaje.Text = "" + End If + + + + UpClonarUsuario.Update() End Sub Protected Sub BtnClonar_Click(sender As Object, e As EventArgs) @@ -4832,5 +4839,14 @@ Partial Class Sistemas_UsuarioDetalle End Try Return resultado - End Function + End Function + + Protected Sub LnkClonarUsuario_Click(sender As Object, e As EventArgs) + + RegistraScript("$('#DivClonar').modal('show');") + LblClonarMensaje.Text = "" + UpClonarUsuario.Update() + + End Sub + End Class