public static CaseDetail getInstanceByCaseId(long case_id) { CaseDetail result = new CaseDetail(); case_info ci = new CaseService().getCaseByCaseId(case_id); if (ci==null) { return null; } result.case_id = ci.case_id; result.note = ci.case_note; result.case_gen_time = ci.case_gen_time; result.doctor = new PatientLogin().getUserById(ci.dentist_id); result.patient = new PatientLogin().getUserById(ci.patient_id); result.treatWithCountList = TreatWithCount.getListByCaseId(ci.case_id); return result; }
public JsonResult addCase(CaseDetail cd) { cd.insert(); return Json(new { code= 1 ,msg ="毛哥nice"}); }