/// <summary> /// 获取会诊单数量 /// </summary> /// <param name="userFilter"></param> /// <returns></returns> public string GetConsulationCountByUser() { return(base.ExecuteActionJsonResult("获取列表", () => { //UserFilter userFilter = GetPageData<UserFilter>(0); int cnt = service.GetConsulationCountByUser(UserTokenManager.GetUId(Request["token"])); return new WebApi_Result() { code = 0, data = cnt }; })); }
/// <summary> /// 获取回复会诊单列表 /// </summary> /// <param name="userFilter"></param> /// <returns></returns> public string GetApplyConsultationByUser() { return(base.ExecuteActionJsonResult("获取列表", () => { //UserFilter userFilter = GetPageData<UserFilter>(0); List <CD_Consultation> list = service.GetConsultationByUser(UserTokenManager.GetUId(Request["token"]), "1").Where(f => f.Del != 1).ToList(); if (list.Count <= 0) { return new WebApi_Result() { code = 1, msg = "未查询到任何数据" }; } return new WebApi_Result() { code = 0, data = list, count = list.Count }; })); }
/// <summary> /// 保存病程记录 /// </summary> /// <returns></returns> public string SaveInfo() { return(base.ExecuteActionJsonResult("保存" + Request["ProgressTypeName"] + "信息", () => { CD_ProgressNote entity = GetPageData <CD_ProgressNote>(0); List <ProgressNote_Content_Item> itemList = new List <ProgressNote_Content_Item>(); int curIndex = 0; foreach (string each in Request["RecordContentTitle"].Split(',')) { itemList.Add(new ProgressNote_Content_Item() { Title = each, Content = Request["RecordContent" + curIndex] }); curIndex++; } entity.WardRoundUserId = string.IsNullOrWhiteSpace(entity.WardRoundUserId) ? UserTokenManager.GetUId(Request["token"]) : entity.WardRoundUserId; entity.RecordContent = new JavaScriptSerializer().Serialize(itemList); progressNoteService.SaveInfo(entity); return new WebApi_Result(); })); }