public ActionResult MainFunctionaryRegisterHome() { CatalogueBusiness appointmentBusiness = new CatalogueBusiness(); ViewBag.places = appointmentBusiness.GetCatalogueFunctionary("puesto"); ViewBag.areas = appointmentBusiness.GetCatalogueFunctionary("area"); ViewBag.offices = appointmentBusiness.GetCatalogueFunctionary("oficina"); return(View("MainFunctionaryRegisterHome")); }
public ActionResult MainFunctionaryRegisterAdministrator() { CatalogueBusiness catalogueBusiness = new CatalogueBusiness(); ViewBag.places = catalogueBusiness.GetCatalogueFunctionary("puesto"); ViewBag.areas = catalogueBusiness.GetCatalogueFunctionary("area"); ViewBag.offices = catalogueBusiness.GetCatalogueFunctionary("oficina"); ViewBag.assistance = catalogueBusiness.GetCatalogueFunctionary("asistencia"); return(View("MainFunctionaryRegisterAdministrator")); }
public ActionResult MainFunctionaryModifyHome() { string cedula = Request.Params["Cedula"]; Session["idAppointment"] = Request.Params["id"]; CatalogueBusiness catalogueBusiness = new CatalogueBusiness(); ViewBag.places = catalogueBusiness.GetCatalogueFunctionary("puesto"); ViewBag.areas = catalogueBusiness.GetCatalogueFunctionary("area"); ViewBag.offices = catalogueBusiness.GetCatalogueFunctionary("oficina"); ViewBag.assistance = catalogueBusiness.GetCatalogueFunctionary("asistencia"); UserBusiness functionaryBusiness = new UserBusiness(); ViewBag.data = functionaryBusiness.GetFunctionaryByCedula(Int32.Parse(cedula)); return(View("MainFunctionaryModifyHome")); }
public ActionResult ScheduleDatesAdministrator() { CatalogueModels catalogueProcess = new CatalogueModels(); catalogueProcess.Table = "proceso"; CatalogueBusiness appointmentBusiness = new CatalogueBusiness(); UserBusiness userBusiness = new UserBusiness(); ViewBag.professional = userBusiness.GetListProfessionals(); ViewBag.subprocess = appointmentBusiness.GetCatalogueFunctionary("subproceso"); ViewBag.process = appointmentBusiness.GetListCatalogue(catalogueProcess); return(View()); }
public ActionResult ConsultDateAdministrator() { CatalogueModels catalogueProcess = new CatalogueModels(); catalogueProcess.Table = "proceso"; CatalogueBusiness catalogueBusiness = new CatalogueBusiness(); ViewBag.process = catalogueBusiness.GetListCatalogue(catalogueProcess); ViewBag.offices = catalogueBusiness.GetCatalogueFunctionary("oficina"); UserBusiness userBusiness = new UserBusiness(); ViewBag.professional = userBusiness.GetListProfessionals(); AppointmentBusiness appointmentBusiness = new AppointmentBusiness(); ViewBag.appointments = appointmentBusiness.GetAppointmentsByFilter(); catalogueProcess.Table = "asistencia"; ViewBag.assistance = catalogueBusiness.GetListCatalogue(catalogueProcess); return(View("ConsultDateAdministrator")); }
public ActionResult MainFunctionaryRegisterHome(UserModels functionary) { // UserBusiness functionaryBusiness = new UserBusiness(); // functionaryBusiness.RegisterFunctionary(functionary); CatalogueModels catalogueProcess = new CatalogueModels(); catalogueProcess.Table = "proceso"; UserBusiness userBusiness = new UserBusiness(); ViewBag.professional = userBusiness.GetListProfessionals(); CatalogueBusiness catalogueBusiness = new CatalogueBusiness(); ViewBag.subprocess = catalogueBusiness.GetCatalogueFunctionary("subproceso"); ViewBag.process = catalogueBusiness.GetListCatalogue(catalogueProcess); Session["functionary"] = functionary; Session["email"] = functionary.Mail; ViewBag.functionary = functionary; return(View("ScheduleDatesHome")); }