示例#1
0
        public IHttpActionResult UpdatePatientStatus([FromBody] PatientQueueModel patient)
        {
            var response = service.UpdatePatientStatus(patient);

            IBaiduTTSService baiduService = IOCContainer.Instance.Resolve <IBaiduTTSService>();
            var ctx = GlobalHost.ConnectionManager.GetHubContext <ScreenDisplayHub>();

            var dbPatient = service.GetCheckRoomName(patient);

            if (dbPatient == null)
            {
                dbPatient = patient;
            }

            var broadcartContent = "请 " + dbPatient.SerialNumber + "号 " + dbPatient.ResidentName + "到" + dbPatient.DeptName +
                                   dbPatient.CheckRoomName + "诊室就诊!";

            var url = baiduService.GetBaiduUri(broadcartContent);

            //入列:
            PersonQueue Model = new PersonQueue(broadcartContent, url);

            PersonEnqueue(Model);

            //ctx.Clients.Group("12345678").clientAddGroupMessage(broadcartContent, url);


            return(Ok(response));
        }
示例#2
0
 public string GetBaiduUri(string tex)
 {
     return(servicebaidu.GetBaiduUri(tex));
 }