示例#1
0
        public bool ModificarCuota(long id
                                   , long?Dni                    = null
                                   , string ApeYNom              = ""
                                   , string origen               = ""
                                   , int?CodCon                  = null
                                   , decimal?Importe             = null
                                   , int?nroRec                  = null
                                   , DateTime?fecha              = null
                                   , int?control                 = null
                                   , bool?generaPagoFacil        = null
                                   , bool?generaBanelco          = null
                                   , string codigoClienteBanelco = "")
        {
            var value = new Actividad();

            if (!String.IsNullOrEmpty(origen))
            {
                value.Origen = origen;
            }
            if (!String.IsNullOrEmpty(ApeYNom))
            {
                value.ApeYNom = ApeYNom;
            }
            if (Dni.HasValue)
            {
                value.Dni = Dni.Value;
            }
            if (Importe.HasValue)
            {
                value.Importe = Importe.Value;
            }
            if (CodCon.HasValue)
            {
                value.CodCon = CodCon.Value;
            }
            if (control.HasValue)
            {
                value.Control = control.Value;
            }
            if (fecha.HasValue)
            {
                value.fecha = fecha.Value;
            }
            if (nroRec.HasValue)
            {
                value.NroRec = nroRec.Value;
            }

            ActividadData.Update(value);

            return(true);
        }
示例#2
0
        public bool ImputarPagoActividad(long id)
        {
            var actividad = ActividadData.LeerUno(id);

            if (actividad != default(Actividad))
            {
                actividad.NroRec = 1;
                ActividadData.Update(actividad);
                return(true);
            }
            else
            {
                return(false);
            }
        }