public ActionResult ChangeActiveTest(int id = 0) { model.Single = HelperSelector.get(model.ViewName).GetActiveTest(id); model.SingleDate = HelperSelector.get(model.ViewName).GetActiveTestDate(id); activeTest = id; return(redirect()); }
public ActionResult DeleteTest(int id = 0) { int a = HelperSelector.get(model.ViewName).DeleteTest(id); if (a == activeTest) { model.Single = null; } return(redirect()); }
private object GetList(string view, string type, int p_id) { string sort = ""; switch (type) { case "Close": sort = "завершено"; break; case "Plan": sort = "заплановано"; break; case "Lose": sort = "пропущено"; break; } if (model.filter.borderDate == null) { return(HelperSelector.get(view).GetSortedCollection(sort, p_id)); } else { return(HelperSelector.get(view).GetSortedCollection(sort, p_id, model.filter.borderDate ?? default(DateTime))); } }
public ActionResult UpdateHepaticTest(HepaticTest hepat) { HelperSelector.get(model.ViewName).UpdateTest(hepat); model.Single = null; return(redirect()); }
public ActionResult UpdateUrinaTest(UrineTest urina) { HelperSelector.get(model.ViewName).UpdateTest(urina); model.Single = null; return(redirect()); }
public ActionResult UpdateBloodTest(BloodTest blood) { HelperSelector.get(model.ViewName).UpdateTest(blood); model.Single = null; return(redirect()); }
public ActionResult PlanConsultation(DateTime date, int ct_id) { ((ConsultationHelper)HelperSelector.get("Consultation")).PlanNewTest(date, ct_id, pid); return(redirect()); }
public ActionResult PlanTest(DateTime date) { HelperSelector.get(model.ViewName).PlanNewTest(date, pid); return(redirect()); }
public ActionResult UpdateConsultation(Consultation consultation) { HelperSelector.get(model.ViewName).UpdateTest(consultation); model.Single = null; return(redirect()); }
public ActionResult UpdateSputumTest(SputumTest sputum) { HelperSelector.get(model.ViewName).UpdateTest(sputum); model.Single = null; return(redirect()); }