diff --git a/Bancos/DepositosCaja.aspx.vb b/Bancos/DepositosCaja.aspx.vb index 6f5be6c6d..a33f03cee 100644 --- a/Bancos/DepositosCaja.aspx.vb +++ b/Bancos/DepositosCaja.aspx.vb @@ -104,9 +104,14 @@ Partial Class Bancos_DepositosCaja If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then + lblValorTotal.Text = ObjBancos.DtResultados.SUM("Importe").ToString("###,###,###.00") + RegistraScript($" ValorTotalSeleccionado = {ObjBancos.DtResultados.SUM("Importe")};") + End If + + ObjBancos.Dispose() @@ -372,23 +377,48 @@ Partial Class Bancos_DepositosCaja 'ObtenerTotalImporta() End Sub - Protected Sub GvFacturas_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvFacturas.RowDataBound + Protected Sub GvFacturas_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvFacturas.RowDataBound + 'If e.Row.RowType = DataControlRowType.DataRow Then + + ' If UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso DdlTipoPago.SelectedValue.Contiene("11", "12", "-2") Then + ' e.Row.FCCheckBox("ChkFactura").Checked = True + ' e.Row.FCCheckBox("ChkFactura").Enabled = False + + ' End If + + ' e.Row.FCCheckBox("ChkFactura").Attributes.Add("onclick", String.Format("FnSuma(this,{0});", e.Row.DBCampo("Importe"))) + ' e.Row.FCCheckBox("ChkFactura").InputAttributes.Add("Value", e.Row.DBCampo("Importe")) + + 'End If + + 'If e.Row.RowType = DataControlRowType.Header Then + + ' If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then + ' RegistraScript("$('#C_GvFacturas_ChkSelector').attr('checked', true); $('#C_GvFacturas_ChkSelector').prop('disabled', 'disabled');") + ' 'RegistraScript("$('#C_GvFacturas_ChkSelector').prop('disabled', 'disabled');") + ' End If + + 'End If + + If e.Row.RowType = DataControlRowType.DataRow Then - If UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso DdlTipoPago.SelectedValue.Contiene("11", "12", "-2") Then + If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then e.Row.FCCheckBox("ChkFactura").Checked = True - e.Row.FCCheckBox("ChkFactura").Enabled = False + If DdlTipoPago.SelectedValue.Contiene("11", "12", "-2") Then + e.Row.FCCheckBox("ChkFactura").Enabled = False + End If + + End If + + e.Row.FCCheckBox("ChkFactura").Attributes.Add("onclick", String.Format("FnSuma(this,{0});", e.Row.DBCampo("Importe"))) + e.Row.FCCheckBox("ChkFactura").InputAttributes.Add("Value", e.Row.DBCampo("Importe")) + + End If - End If - - e.Row.FCCheckBox("ChkFactura").Attributes.Add("onclick", String.Format("FnSuma(this,{0});", e.Row.DBCampo("Importe"))) - e.Row.FCCheckBox("ChkFactura").InputAttributes.Add("Value", e.Row.DBCampo("Importe")) - - End If - If e.Row.RowType = DataControlRowType.Header Then - If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then + If UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso DdlTipoPago.SelectedValue.Contiene("11", "12", "-2") Then RegistraScript("$('#C_GvFacturas_ChkSelector').attr('checked', true); $('#C_GvFacturas_ChkSelector').prop('disabled', 'disabled');") 'RegistraScript("$('#C_GvFacturas_ChkSelector').prop('disabled', 'disabled');") End If diff --git a/Empresas/48/Formatos/OC.rdlc b/Empresas/48/Formatos/OC.rdlc index d9cb161f1..898595d80 100644 --- a/Empresas/48/Formatos/OC.rdlc +++ b/Empresas/48/Formatos/OC.rdlc @@ -2717,11 +2717,20 @@ - Ing. Soraida Mesinas Reyes. + Ing. + + Ing. Hector Manuel Diaz Young + +