diff --git a/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/DataSet1.rsd b/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/DataSet1.rsd new file mode 100644 index 000000000..e9d7e551a --- /dev/null +++ b/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/DataSet1.rsd @@ -0,0 +1,112 @@ + + + + + dsOracle + + + false + false + false + true + + + select + + CASE + WHEN to_number(a.comision)/100>=700 + THEN to_number(a.total_pagado) / 100 -- SI + ELSE 0 -- NO + END comision_mayor, + + CASE + WHEN to_number(a.comision)/100<700 + THEN to_number(a.total_pagado) / 100 -- SI + ELSE 0 -- NO + END comision_menor, + + to_number(a.comision) / 100 comision, p.valor, + a.cod_recaudador, + r.nombre_recaudador, + a.fecha_control, a.fecha_c_pago, + + CASE + WHEN to_number(a.comision)/100>=700 + THEN 1 -- SI + ELSE 0 -- NO + END com_mayor, + + CASE + WHEN to_number(a.comision)/100<700 + THEN 1 -- SI + ELSE 0 -- NO + END com_menor + +from mtx_archivos_recaudadores a + + left join mtx_parametros_recaudador p + on a.cod_recaudador=p.cod_recaudador and p.parametro = 'Corte_Comision' + + inner join mtx_recaudadores r + on a.cod_recaudador=r.cod_recaudador + +--inner join ptx_servicios s +--on s.numero_servicio = substr(a.numero_recibo,2,7) + +where a.cod_recaudador = p.cod_recaudador + +-- and p.parametro = 'Corte_Comision' +-- and a.cod_recaudador = r.cod_recaudador +-- and s.numero_servicio = substr(a.numero_recibo,2,7) +-- and s.sec_nis = substr(a.numero_recibo,9,2) + + and a.fecha_c_pago between '01/01/2000' and '01/01/2022' + + and (a.cod_recaudador = + + DECODE(:p_recaudador, '0', a.cod_recaudador, :p_recaudador)) + + + + COMISION_MAYOR + System.Double + + + COMISION_MENOR + System.Double + + + COMISION + System.Double + + + VALOR + System.String + + + COD_RECAUDADOR + System.String + + + NOMBRE_RECAUDADOR + System.String + + + FECHA_CONTROL + System.DateTime + + + FECHA_C_PAGO + System.DateTime + + + COM_MAYOR + System.Double + + + COM_MENOR + System.Double + + + + \ No newline at end of file diff --git a/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/RRecaudacion.rdl b/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/RRecaudacion.rdl new file mode 100644 index 000000000..fe12099ef --- /dev/null +++ b/ControlGestiones/ControlGestion.Reporting/ControlGestion.Reporting/RRecaudacion.rdl @@ -0,0 +1,867 @@ + + + Segoe UI + 0 + + + + dsRecaudacion + + + =Parameters!p_recaudador.Value + true + + + + + + COD_RECAUDADOR + System.String + + + FECHA_CONTABLE + System.DateTime + + + REMESA + System.String + + + MONTO + System.Double + + + COMISION + System.Double + + + MONTO_RETENCION + System.Decimal + + + + + + + + + + + + + 2.89687cm + + + 2.75229cm + + + 3.58542cm + + + 3.71646cm + + + 2.80333cm + + + + + 0.41479cm + + + + + true + true + + + + + Recaudador + + + + + + + Textbox1 + + + DarkBlue + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Remesa + + + + + + + Textbox3 + + + DarkBlue + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Monto Recibidos + + + + + + + Textbox11 + + + DarkBlue + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Monto Comision + + + + + + + Textbox5 + + + DarkBlue + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Retencion 2% + + + + + + + Textbox9 + + + DarkBlue + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Fields!COD_RECAUDADOR.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!REMESA.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!MONTO.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!COMISION.Value + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!MONTO_RETENCION.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + After + + + + + + + dsRecaudacion + 0.68474cm + 0.55245cm + 1.01479cm + 15.75437cm + + + + + + true + true + + + + + Total del Dia: + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Sum(Fields!MONTO.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Sum(Fields!COMISION.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Sum(Fields!MONTO_RETENCION.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Fecha Contable: + + + + =First(Fields!FECHA_CONTABLE.Value, "dsRecaudacion") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + 3.16667in + + + LightGrey + + + 8.4876in + + + 3.20145cm + true + true + + + true + true + + + + + INSTITUTO COSTARRICENSE DE ACUEDUCTOS Y ALCANTARILLADOS + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Recaudacion Diaria por Agente Recaudador + + + + + + 2pt + 2pt + 2pt + 2pt + + + + Embedded + aya_logo + FitProportional + 0.6846cm + 0.55245cm + 1.5cm + 1.84396cm + 2 + + + + + + true + true + + + + + Generado el: + + + + =Globals!ExecutionTime + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + LightGrey + + + 29.7cm + 21cm + 2cm + 2cm + 2cm + 2cm + 0.13cm + + + + + + + Textbox32 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + # Recs. + + + + + + + Textbox34 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Monto <= 35000 + + + + + + + Textbox19 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + # Recs. + + + + + + + Textbox41 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Monto > 35000 + + + + + + + Textbox21 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Monto Comisión + + + + + + + Textbox23 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.95719cm + + + + + true + true + + + + + =Fields!FECHA_C_PAGO.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!COMISION_MENOR.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!COMISION_MAYOR.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!COMISION.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + After + + + + + + + true + DataSet1 + 1.12889cm + 0.77797cm + 1.91438cm + 15.62426cm + + + + + + true + true + + + + + RECAUDADOR: + + + + =First(Fields!COD_RECAUDADOR.Value, "DataSet1") + + + + + + + Textbox22 + 0.3175cm + 0.3937cm + 0.52917cm + 3.83366cm + 1 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + CODIGO: + + + + + + + Textbox22 + 0.3175cm + 7.18141cm + 0.52917cm + 1.65333cm + 2 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + CORTE COMISION: + + + + + + + Textbox22 + 0.3175cm + 9.22435cm + 0.52917cm + 3.55833cm + 3 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + 35000 + + + + + + + Textbox26 + 0.3175cm + 12.95907cm + 0.60854cm + 1.97498cm + 4 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + TOTAL POR REC: + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Sum(Fields!COMISION_MENOR.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Sum(Fields!COMISION.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Sum(Fields!COMISION_MAYOR.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + 2.02501cm + 0.12912cm + 0cm + 16.69521cm + 9 + + + + + + 5.03125in + + + + + + + + + -- Comisiones por Recibos Cobrados -- + + + + + + + + + -- por Fecha de Pago -- + + + + + + + Textbox31 + 1.01698cm + 1.79917cm + 14.23458cm + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Fecha Edición: + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Globals!ExecutionTime + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Periodo del: + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + al: + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + 1-ENE-2000 + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + 1-ENE-2022 + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Página + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Globals!OverallPageNumber + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + de + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Globals!OverallTotalPages + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + Black + + 1pt + + + + 29.7cm + 21cm + 2cm + 2cm + 2cm + 2cm + 0.13cm +