public string GetPatientAllInfo(string uid) { UsersModel Patient = new UsersModel(); UsersProvider db = new UsersProvider(); if (string.IsNullOrEmpty(uid)) { uid = Session[USRID].ToString(); } Patient = db.GetPatientInfor(uid); return(JsonConvert.SerializeObject(Patient)); }
public string GetApplyFor() { ApplyProvider db = new ApplyProvider(); UsersProvider udb = new UsersProvider(); UsersModel patientOtherInfo = new UsersModel(); patientOtherInfo = udb.GetPatientInfor(Session[USRID].ToString()); patientOtherInfo.UserID = Session[USRID].ToString(); patientOtherInfo.IsGeneDetect = string.IsNullOrEmpty(patientOtherInfo.IsGeneDetect) ? "1" : patientOtherInfo.IsGeneDetect; patientOtherInfo.Tumortage = string.IsNullOrEmpty(patientOtherInfo.Tumortage) ? "1" : patientOtherInfo.Tumortage; patientOtherInfo.IsDiseaseDiagnosis = string.IsNullOrEmpty(patientOtherInfo.IsDiseaseDiagnosis) ? "1" : patientOtherInfo.IsDiseaseDiagnosis; patientOtherInfo.IsAccordFiveMouth = string.IsNullOrEmpty(patientOtherInfo.IsAccordFiveMouth) ? "1" : patientOtherInfo.IsAccordFiveMouth; //检查是否预约通过审核 string patientStatus = db.CheckPatientStatus(Session[USRID].ToString()); var data = new { patientStatus = patientStatus, patientOtherInfo = patientOtherInfo }; return(JsonConvert.SerializeObject(data)); }
public string GetPatinetALlInfo(string uid) { UsersModel patient = new UsersModel(); UsersProvider udb = new UsersProvider(); patient = udb.GetPatientInfor(uid); CommentModels comment = new CommentModels(); comment.CommentPatientID = uid; comment.CommentOperater = Session[USRID].ToString(); List <CommentModels> commentsList = db.GetCommentsList(uid); List <UploadFileModels> fileList = fileDB.GetUploadFilesByPatientID(uid); var result = new { patient = patient, comments = comment, commentsList = commentsList, filesList = fileList }; return(JsonConvert.SerializeObject(result)); }