public ActionResult ConstanciasRetencionAnual()
        {
            if ((sesion = SessionDB.start(Request, Response, false, db)) == null)
            {
                return(Content("-1"));
            }

            try
            {
                Main view = new Main();
                ViewBag.MainUser = this.CreateMenuInfoUser(sesion);
                Scripts.SCRIPTS  = new string[]
                {
                    "js/Pagos/EstadodeCuentaWeb/ECW_RetencionesAnuales.js"
                };

                ViewBag.Scripts = Scripts.addScript() + Scripts.setPrivileges(Privileges, sesion);

                EstadodeCuentaWebModel model = new EstadodeCuentaWebModel();

                this.setDatosProfesor(sesion, model);

                // Datos persona
                model.GetDatos();
                ViewBag.Profesor = model.Profesor;
                ViewBag.SEDES    = view.createSelectSedesWeb("Sedes", sesion, model.ID_PERSONA);

                sesion.vdata["CVE_TIPOFACTURA"] = model.CveTipoFactura;
                sesion.saveSession();

                ViewBag.ConstanciasRetencionAnual = model.ConstanciasRetencionAnual(Request);

                Log.write(this, "Start", LOG.CONSULTA, "Ingresa Pantalla Estado de cuenta Web", sesion);
            }
            catch (Exception e)
            {
                ViewBag.Notification = Notification.Error(e.Message);
                Log.write(this, "Start", LOG.ERROR, "Ingresa Pantalla Estado de cuenta Web" + e.Message, sesion);  //MODIFICAR LA REFERENCIA DE LA PAGINA A INGRESAR
            }
            return(View(Factory.View.Access + "Pagos/EstadodeCuentaWeb/ConstanciasRetencionAnual.cshtml"));
        }
        public ActionResult _ConstanciasRetencionAnual(EstadodeCuentaWebModel model)
        {
            if ((sesion = SessionDB.start(Request, Response, false, db, SESSION_BEHAVIOR.AJAX)) == null)
            {
                return(Content("-1"));
            }

            sesion.vdata["Sede"] = Request.Params["filter_Sede"];
            this.setDatosProfesor(sesion, model);
            //model.Sede = sesion.vdata["Sede"];
            //ViewBag.IDSIU = model.IDSIU;
            sesion.vdata["Sede"]       = model.Sede;
            sesion.vdata["ID_PERSONA"] = model.ID_PERSONA;
            ViewBag.IDSIU = model.IDSIU;
            sesion.saveSession();

            return(Json(new
            {
                ConstanciasRetencionAnual = model.ConstanciasRetencionAnual(Request),
            }));
        }