public ActionResult PagosDepositados() { 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/PagosDepositados.js" }; ViewBag.Scripts = Scripts.addScript() + Scripts.setPrivileges(Privileges, sesion); EstadodeCuentaWebModel model = new EstadodeCuentaWebModel(); this.setDatosProfesor(sesion, model); // Datos fiscales model.GetDatosFiscales(); if (model.Email_Sociedad == "") { ViewBag.Email_Sociedad = "*****@*****.**"; } else { ViewBag.Email_Sociedad = model.Email_Sociedad; } // Datos persona // model.getDatos(); ViewBag.Profesor = model.Profesor; /*if (sesion.tipouser == 'U') * ViewBag.SEDES = view.createSelectSedes("Sedes", sesion); * else*/ ViewBag.SEDES = view.createSelectSedesWeb("Sedes", sesion, model.ID_PERSONA); sesion.saveSession(); ViewBag.Table_PagosDepositados = model.GetPagosDepositados(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/PagosDepositados.cshtml")); }
public ActionResult _PagosDepositados(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); sesion.vdata["Sede"] = model.Sede; sesion.vdata["ID_PERSONA"] = model.ID_PERSONA; ViewBag.IDSIU = model.IDSIU; //model.Sede = sesion.vdata["Sede"]; //ViewBag.IDSIU = model.IDSIU; sesion.saveSession(); return(Json(new { pagosDepositados = model.GetPagosDepositados(Request), })); }