Beispiel #1
0
        async void View_OnChangePatient(object sender, Views.PatientCheckEventArgs e)
        {
            //Model.SaveTodayCheckPatient(e.InhosID);

            CJia.iSmartMedical.MobileMedicDoctorService.QueryResentPatientCountResponse countResponse = await service.QueryResentPatientCountAsync(iCommon.DoctorID + e.InhosID, iCommon.Today, "近期病人");

            List <Dictionary <string, string> > dicList = Entity.XmlToListDic(countResponse.Body.QueryResentPatientCountResult);
            int count = int.Parse(dicList[0]["RecentPatientCount"]);

            if (count == 0)
            {
                CJia.iSmartMedical.MobileMedicDoctorService.InsertDoctorPatientsResponse insertPatient = await service.InsertDoctorPatientsAsync(iCommon.DoctorID + e.InhosID, iCommon.DoctorID, e.InhosID, "近期病人", iCommon.Today);

                List <Dictionary <string, string> > dicList1 = Entity.XmlToListDic(insertPatient.Body.InsertDoctorPatientsResult);
                //if (dicList1[0]["isInsert"] == "true")
                //{
                //    MessageDialog msgdlg = new MessageDialog("添加成功");
                //    msgdlg.ShowAsync();
                //}
            }
        }
 void View_OnChangePatient(object sender, Views.PatientCheckEventArgs e)
 {
     Model.SaveTodayCheckPatient(e.InhosID);
 }