Exemplo n.º 1
0
 public IActionResult GetMyHistoryDiagnosis(string searchText, int?pageIndex = 1, int?pageSize = 20)
 {
     try
     {
         if (UserSelf == null)
         {
             throw new ComException(ExceptionTypes.Error_Unauthorized, "未登录用户不支持");
         }
         var data = _treatSvr.GetMyHistoryDiagnosis(searchText, UserSelf.DoctorId, UserSelf.StationId, pageIndex.Value, pageSize.Value).ToList();
         var mdd  = data.Select(m => new{
             m.SelDiagnosisId,
             m.DiagnosisId,
             DiagnosisName = _treatSvr.GetDiagnosisById(m.DiagnosisId).DiagnoisisName,
             m.SelectNum,
             m.LatestTime
         });
         var rlt = MyDynamicResult(mdd);
         return(Ok(rlt));
     }
     catch (Exception ex) { return(Ok(MyDynamicResult(ex))); }
 }
Exemplo n.º 2
0
 public IActionResult GetDiagnosisById(int zdid)
 {
     return(Json(_treatSvr.GetDiagnosisById(zdid)));
 }