/// <summary> /// 插入体力评价报告 /// </summary> /// <param name="physicalPower"></param> public int AddPhysicalPower(PhysicalPower physicalPower) { int row = new PhysicalPowerDAO().AddPhysicalPower(physicalPower); //插入至上传表 UploadManagementDAO uploadManagementDao = new UploadManagementDAO(); uploadManagementDao.Insert(new UploadManagement(new PhysicalPowerDAO().getIdByGmtCreate(physicalPower.Gmt_Create), "bdl_physicalpower", 0)); if (row == 1) { int pk_pp_id = new PhysicalPowerDAO().getIdByGmtCreate(physicalPower.Gmt_Create); Console.WriteLine(pk_pp_id); } return(row); }
/// <summary> /// /// </summary> /// <param name="uploadManagement">传入上传管理者实体</param> /// <returns>返回可以用来上传的辅助对象</returns> public ServiceResult GetServiceResult(UploadManagement uploadManagement) { //service返回结果对象 ServiceResult serviceResult = new ServiceResult(); //提前载入唯一Setter SetterDAO setterDAO = new SetterDAO(); Setter setter = setterDAO.getSetter(); //需要加入解密逻辑 TODO string mac = ""; //try //{ // byte[] deBytes = AesUtil.Decrypt(Encoding.GetEncoding("GBK").GetBytes(setter.Set_Unique_Id), // ProtocolConstant.USB_DOG_PASSWORD); // mac = Encoding.GetEncoding("GBK").GetString(deBytes); //} //catch (Exception ex) //{ // mac = setter.Set_Unique_Id.Replace(":", ""); //} byte[] a = ProtocolUtil.StringToBcd(setter.Set_Unique_Id); byte[] b = AesUtil.Decrypt(a, ProtocolConstant.USB_DOG_PASSWORD); mac = Encoding.GetEncoding("GBK").GetString(b).Replace(":", "-"); ///if识别出表,设置发送路径,select出实体,转化至DTO,json打成string,返回 //识别是否是权限用户添加 if (uploadManagement.UM_DataTable == "bdl_auth") { AuthDAO authDAO = new AuthDAO(); Auther auther = authDAO.Load(uploadManagement.UM_DataId); if (auther == null) { return(null); } AutherDTO autherDTO = new AutherDTO(setter, auther, mac); //serviceResult.URL = "clientController/addClient.action"; serviceResult.Data = JsonTools.Obj2JSONStrNew <AutherDTO>(autherDTO); } //bdl_customdata表 else if (uploadManagement.UM_DataTable == "bdl_customdata") { CustomDataDAO customDataDAO = new CustomDataDAO(); CustomData customData = customDataDAO.Load(uploadManagement.UM_DataId); if (customData == null) { return(null); } CustomDataDTO customDataDTO = new CustomDataDTO(customData, mac); serviceResult.Data = JsonTools.Obj2JSONStrNew <CustomDataDTO>(customDataDTO); } //bdl_datacode表 else if (uploadManagement.UM_DataTable == "bdl_datacode") { DataCodeDAO dataCodedao = new DataCodeDAO(); DataCode dataCode = dataCodedao.Load(uploadManagement.UM_DataId); if (dataCode == null) { return(null); } DataCodeDTO dataCodeDTO = new DataCodeDTO(dataCode, mac); serviceResult.Data = JsonTools.Obj2JSONStrNew <DataCodeDTO>(dataCodeDTO); } //bdl_deviceset表 else if (uploadManagement.UM_DataTable == "bdl_deviceset") { DeviceSetDAO deviceSetDAO = new DeviceSetDAO(); DeviceSet deviceSet = deviceSetDAO.Load(uploadManagement.UM_DataId); if (deviceSet == null) { return(null); } DeviceSetDTO deviceSetDTO = new DeviceSetDTO(deviceSet, mac); serviceResult.Data = JsonTools.Obj2JSONStrNew <DeviceSetDTO>(deviceSetDTO); } //bdl_devicesort表 else if (uploadManagement.UM_DataTable == "bdl_devicesort") { DeviceSortDAO deviceSortDAO = new DeviceSortDAO(); DeviceSort deviceSort = deviceSortDAO.Load(uploadManagement.UM_DataId); if (deviceSort == null) { return(null); } DeviceSortDTO deviceSortDTO = new DeviceSortDTO(deviceSort, mac); serviceResult.Data = JsonTools.Obj2JSONStrNew <DeviceSortDTO>(deviceSortDTO); } //bdl_onlinedevice表 else if (uploadManagement.UM_DataTable == "bdl_onlinedevice") { OnlineDeviceDAO onlineDeviceDAO = new OnlineDeviceDAO(); OnlineDevice onlineDevice = onlineDeviceDAO.Load(uploadManagement.UM_DataId); if (onlineDevice == null) { return(null); } OnlineDeviceDTO onlineDeviceDTO = new OnlineDeviceDTO(onlineDevice, mac); serviceResult.Data = JsonTools.Obj2JSONStrNew <OnlineDeviceDTO>(onlineDeviceDTO); } //bdl_set表 else if (uploadManagement.UM_DataTable == "bdl_set") { SetterDAO setterDAO1 = new SetterDAO(); Setter setter1 = setterDAO1.Load(uploadManagement.UM_DataId); if (setter1 == null) { return(null); } SetterDTO setterDTO = new SetterDTO(setter1, mac); serviceResult.Data = JsonTools.Obj2JSONStrNew <SetterDTO>(setterDTO); } //病人表 else if (uploadManagement.UM_DataTable == "bdl_user") { UserDAO userDAO = new UserDAO(); User user = userDAO.Load(uploadManagement.UM_DataId); if (user == null) { return(null); } UserDTO userDTO = new UserDTO(user, mac); //serviceResult.URL = "bigData/bodyStrongUser"; serviceResult.Data = JsonTools.Obj2JSONStrNew <UserDTO>(userDTO); } //症状表 else if (uploadManagement.UM_DataTable == "bdl_symptominfo") { SymptomInfoDao symptomInfoDao = new SymptomInfoDao(); var result = symptomInfoDao.Load(uploadManagement.UM_DataId); if (result == null) { return(null); } SymptomInfoDTO symptomInfoDTO = new SymptomInfoDTO(result, mac); //serviceResult.URL = "bigData/symptomInfo"; serviceResult.Data = JsonTools.Obj2JSONStrNew <SymptomInfoDTO>(symptomInfoDTO); } //训练处方总表 else if (uploadManagement.UM_DataTable == "bdl_traininfo") { TrainInfoDAO trainInfoDAO = new TrainInfoDAO(); var result = trainInfoDAO.Load(uploadManagement.UM_DataId); if (result == null) { return(null); } TrainInfoDTO trainInfoDTO = new TrainInfoDTO(result, mac); //serviceResult.URL = "bigData/trainInfo"; serviceResult.Data = JsonTools.Obj2JSONStrNew <TrainInfoDTO>(trainInfoDTO); } //总表中的一条数据对某台设备的具体处方 else if (uploadManagement.UM_DataTable == "bdl_deviceprescription") { DevicePrescriptionDAO devicePrescriptionDAO = new DevicePrescriptionDAO(); var result = devicePrescriptionDAO.Load(uploadManagement.UM_DataId); if (result == null) { return(null); } DevicePrescriptionDTO devicePrescriptionDTO = new DevicePrescriptionDTO(result, mac); //serviceResult.URL = "bigData/devicePrescription"; serviceResult.Data = JsonTools.Obj2JSONStrNew <DevicePrescriptionDTO>(devicePrescriptionDTO); } //具体处方的具体反馈 else if (uploadManagement.UM_DataTable == "bdl_prescriptionresult") { PrescriptionResultDAO prescriptionResultDAO = new PrescriptionResultDAO(); var result = prescriptionResultDAO.Load(uploadManagement.UM_DataId); if (result == null) { return(null); } PrescriptionResultDTO prescriptionResultDTO = new PrescriptionResultDTO(result, mac); //serviceResult.URL = "bigData/prescriptionResult"; serviceResult.Data = JsonTools.Obj2JSONStrNew <PrescriptionResultDTO>(prescriptionResultDTO); } else if (uploadManagement.UM_DataTable == "bdl_physicalpower") { PhysicalPowerDAO physicalPowerDAO = new PhysicalPowerDAO(); var result = physicalPowerDAO.Load(uploadManagement.UM_DataId); if (result == null) { return(null); } PhysicalPowerDTO physicalPowerDTO = new PhysicalPowerDTO(result, mac); //serviceResult.URL = "bigData/physicalPower"; serviceResult.Data = JsonTools.Obj2JSONStrNew <PhysicalPowerDTO>(physicalPowerDTO); } else if (uploadManagement.UM_DataTable == "bdl_error") { ErrorDao errorDao = new ErrorDao(); var result = errorDao.Load(uploadManagement.UM_DataId); if (result == null) { return(null); } ErrorDTO errorDTO = new ErrorDTO(result, mac); //serviceResult.URL = "bigData/physicalPower"; serviceResult.Data = JsonTools.Obj2JSONStrNew <ErrorDTO>(errorDTO); } return(serviceResult); }
public List <PhysicalPower> GetByUserId(User user) { List <PhysicalPower> symptomInfos = new PhysicalPowerDAO().GetByUserId(user.Pk_User_Id); return(symptomInfos); }
private void Load_Data() { l1.Content = user.User_Name; l2.Content = user.Pk_User_Id; implementation_date.Content = physicaleDto.Gmt_Create.ToString(); PhysicalPower physicalPower = new PhysicalPowerDAO().Load(physicaleDto.ID); //身高 string[] ppHigh = Regex.Replace(physicalPower.PP_High, @"param\d", "").Split(new char[] { ',' }); height_first.Text = ppHigh[1]; if (LanguageUtils.EqualsResource(ppHigh[3], "PhysicalEvaluationFormView.Picture(front/lateral)")) { height_condition.IsChecked = true; } height_duty.Text = ppHigh[4]; //体重 string[] ppWeight = Regex.Replace(physicalPower.PP_Weight, @"param\d", "").Split(new char[] { ',' }); weight_first.Text = ppWeight[1]; if (ppWeight[3] != "") { weight_condition.IsChecked = true; weight_condition_text.Text = ppWeight[3].Split(new char[] { ':' })[1]; } weight_duty.Text = ppWeight[4]; //握力 string[] ppGrip = Regex.Replace(physicalPower.PP_Grip, @"param\d", "").Split(new char[] { ',' }); if (LanguageUtils.EqualsResource(ppGrip[0], "PhysicalEvaluationFormView.L")) { grip_left.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppGrip[0], "PhysicalEvaluationFormView.R")) { grit_right.IsChecked = true; } grip_first.Text = ppGrip[1]; grip_second.Text = ppGrip[2]; if (LanguageUtils.EqualsResource(ppGrip[3], "PhysicalEvaluationFormView.Standing")) { grid_stand.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppGrip[3], "PhysicalEvaluationFormView.Seated")) { grid_sit.IsChecked = true; } grip_duty.Text = ppGrip[4]; //睁眼单脚站立 string[] ppEyeOpenStand = Regex.Replace(physicalPower.PP_EyeOpenStand, @"param\d", "").Split(new char[] { ',' }); if (LanguageUtils.EqualsResource(ppEyeOpenStand[0], "PhysicalEvaluationFormView.L")) { stand_left.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppEyeOpenStand[0], "PhysicalEvaluationFormView.R")) { stand_right.IsChecked = true; } stand_first.Text = ppEyeOpenStand[1]; stand_second.Text = ppEyeOpenStand[2]; if (LanguageUtils.EqualsResource(ppEyeOpenStand[3], "PhysicalEvaluationFormView.nosupport")) { stand_nosupport.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppEyeOpenStand[3], "PhysicalEvaluationFormView.Supportedbyassistance")) { stand_support.IsChecked = true; } else if (ppEyeOpenStand[3] != "") { string[] strings = ppEyeOpenStand[3].Split(new char[] { '(' }); stand_toolsupport.IsChecked = true; string stand2 = strings[1].Substring(0, strings[1].Length - 1); //第一个框 if (LanguageUtils.EqualsResource(strings[0], "PhysicalEvaluationFormView.T-Kane")) { stand_comBox1.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.T-Kane"); } else if (LanguageUtils.EqualsResource(strings[0], "PhysicalEvaluationFormView.Qtr-Cane")) { stand_comBox1.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Qtr-Cane"); } else if (LanguageUtils.EqualsResource(strings[0], "PhysicalEvaluationFormView.Walker")) { stand_comBox1.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Walker"); } else if (LanguageUtils.EqualsResource(strings[0], "PhysicalEvaluationFormView.Other")) { stand_comBox1.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Other"); } //第二个框 if (LanguageUtils.EqualsResource(stand2, "PhysicalEvaluationFormView.RightFrontal")) { stand_comBox2.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.RightFrontal"); } else if (LanguageUtils.EqualsResource(stand2, "PhysicalEvaluationFormView.RightLateral")) { stand_comBox2.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.RightLateral"); } else if (LanguageUtils.EqualsResource(stand2, "PhysicalEvaluationFormView.LeftFrontal")) { stand_comBox2.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.LeftFrontal"); } else if (LanguageUtils.EqualsResource(stand2, "PhysicalEvaluationFormView.LeftLateral")) { stand_comBox2.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.LeftLateral"); } else if (LanguageUtils.EqualsResource(stand2, "PhysicalEvaluationFormView.BothFrontal")) { stand_comBox2.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.BothFrontal"); } else if (LanguageUtils.EqualsResource(stand2, "PhysicalEvaluationFormView.BothLateral")) { stand_comBox2.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.BothLateral"); } } stand_duty.Text = ppEyeOpenStand[4]; //功能性前伸 string[] ppFunctionProtract = Regex.Replace(physicalPower.PP_FunctionProtract, @"param\d", "").Split(new char[] { ',' }); if (LanguageUtils.EqualsResource(ppFunctionProtract[0], "PhysicalEvaluationFormView.Bothhands")) { protrack_twohands.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppFunctionProtract[0], "PhysicalEvaluationFormView.L")) { protrack_left.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppFunctionProtract[0], "PhysicalEvaluationFormView.R")) { protrack_right.IsChecked = true; } protrack_first.Text = ppFunctionProtract[1]; protrack_second.Text = ppFunctionProtract[2]; if (LanguageUtils.EqualsResource(ppFunctionProtract[3], "PhysicalEvaluationFormView.Difficulttorisearmstoshoulder(ShoulderFlex)")) { protrack_curvature.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppFunctionProtract[3], "PhysicalEvaluationFormView.SeatedPosition")) { protrack_sit.IsChecked = true; } protrack_duty.Text = ppFunctionProtract[4]; //坐姿体前屈 string[] ppSitandReach = Regex.Replace(physicalPower.PP_SitandReach, @"param\d", "").Split(new char[] { ',' }); if (LanguageUtils.EqualsResource(ppSitandReach[0], "PhysicalEvaluationFormView.L")) { c17.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppSitandReach[0], "PhysicalEvaluationFormView.R")) { c18.IsChecked = true; } c_first.Text = ppSitandReach[1]; c_second.Text = ppSitandReach[2]; if (LanguageUtils.EqualsResource(ppSitandReach[3], "PhysicalEvaluationFormView.KneeFlexion")) { c19.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppSitandReach[3], "PhysicalEvaluationFormView.NoKneeFlexion")) { c20.IsChecked = true; } c_duty.Text = ppSitandReach[4]; //Time UP & GO string[] ppTimeUpGo = Regex.Replace(physicalPower.PP_TimeUpGo, @"param\d", "").Split(new char[] { ',' }); if (LanguageUtils.EqualsResource(ppTimeUpGo[0], "PhysicalEvaluationFormView.Basic")) { c21.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppTimeUpGo[0], "PhysicalEvaluationFormView.Modified")) { c22.IsChecked = true; } time_first.Text = ppTimeUpGo[1]; time_second.Text = ppTimeUpGo[2]; if (LanguageUtils.EqualsResource(ppTimeUpGo[3], "PhysicalEvaluationFormView.Independent")) { c23.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppTimeUpGo[3], "PhysicalEvaluationFormView.T-Kane")) { c24.IsChecked = true; comBox3.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.T-Kane"); } else if (LanguageUtils.EqualsResource(ppTimeUpGo[3], "PhysicalEvaluationFormView.Qtr-Cane")) { c24.IsChecked = true; comBox3.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Qtr-Cane"); } else if (LanguageUtils.EqualsResource(ppTimeUpGo[3], "PhysicalEvaluationFormView.Walker")) { c24.IsChecked = true; comBox3.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Walker"); } else if (LanguageUtils.EqualsResource(ppTimeUpGo[3], "PhysicalEvaluationFormView.Other")) { c24.IsChecked = true; comBox3.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Other"); } else if (ppTimeUpGo[3] != "") { c25.IsChecked = true; text1.Text = ppTimeUpGo[3]; } time_duty.Text = ppTimeUpGo[4]; //5m步行,通常 string[] ppWalk5MileGeneral = Regex.Replace(physicalPower.PP_Walk5MileGeneral, @"param\d", "").Split(new char[] { ',' }); if (LanguageUtils.EqualsResource(ppWalk5MileGeneral[0], "PhysicalEvaluationFormView.Basic")) { c26.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppWalk5MileGeneral[0], "PhysicalEvaluationFormView.Modified")) { c27.IsChecked = true; } five1_first.Text = ppWalk5MileGeneral[1]; five1_second.Text = ppWalk5MileGeneral[2]; if (LanguageUtils.EqualsResource(ppWalk5MileGeneral[3], "PhysicalEvaluationFormView.Independent")) { c28.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppWalk5MileGeneral[3], "PhysicalEvaluationFormView.T-Kane")) { c29.IsChecked = true; comBox4.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.T-Kane"); } else if (LanguageUtils.EqualsResource(ppWalk5MileGeneral[3], "PhysicalEvaluationFormView.Qtr-Cane")) { c29.IsChecked = true; comBox4.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Qtr-Cane"); } else if (LanguageUtils.EqualsResource(ppWalk5MileGeneral[3], "PhysicalEvaluationFormView.Walker")) { c29.IsChecked = true; comBox4.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Walker"); } else if (LanguageUtils.EqualsResource(ppWalk5MileGeneral[3], "PhysicalEvaluationFormView.Other")) { c29.IsChecked = true; comBox4.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Other"); } else if (ppWalk5MileGeneral[3] != "") { c30.IsChecked = true; text2.Text = ppWalk5MileGeneral[3]; } five1_duty.Text = ppWalk5MileGeneral[4]; //5m步行,最快 string[] ppWalk5MileFast = Regex.Replace(physicalPower.PP_Walk5MileFast, @"param\d", "").Split(new char[] { ',' }); if (LanguageUtils.EqualsResource(ppWalk5MileFast[0], "PhysicalEvaluationFormView.Basic")) { c31.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppWalk5MileFast[0], "PhysicalEvaluationFormView.Modified")) { c32.IsChecked = true; } five2_first.Text = ppWalk5MileFast[1]; five2_second.Text = ppWalk5MileFast[2]; if (LanguageUtils.EqualsResource(ppWalk5MileFast[3], "PhysicalEvaluationFormView.Independent")) { c33.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppWalk5MileFast[3], "PhysicalEvaluationFormView.T-Kane")) { c34.IsChecked = true; comBox5.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.T-Kane"); } else if (LanguageUtils.EqualsResource(ppWalk5MileFast[3], "PhysicalEvaluationFormView.Qtr-Cane")) { c34.IsChecked = true; comBox5.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Qtr-Cane"); } else if (LanguageUtils.EqualsResource(ppWalk5MileFast[3], "PhysicalEvaluationFormView.Walker")) { c34.IsChecked = true; comBox5.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Walker"); } else if (LanguageUtils.EqualsResource(ppWalk5MileFast[3], "PhysicalEvaluationFormView.Other")) { c34.IsChecked = true; comBox5.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Other"); } else if (ppWalk5MileFast[3] != "") { c35.IsChecked = true; text3.Text = ppWalk5MileFast[3]; } five2_duty.Text = ppWalk5MileFast[4]; //10m步行 string[] ppWalk10Mile = Regex.Replace(physicalPower.PP_Walk10Mile, @"param\d", "").Split(new char[] { ',' }); string methodStr = ""; if (ppWalk10Mile[0].Contains("通常") || ppWalk10Mile[0].Contains("Normal")) { methodStr = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Normal"); } else if (ppWalk10Mile[0].Contains("最快") || ppWalk10Mile[0].Contains("utmost")) { methodStr = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.utmost"); } method.Text = methodStr; if (ppWalk10Mile[0].Contains("基本方法") || ppWalk10Mile[0].Contains("Basic")) { c36.IsChecked = true; } else if (ppWalk10Mile[0].Contains("常规外方法") || ppWalk10Mile[0].Contains("Modified")) { c37.IsChecked = true; } ten_first.Text = ppWalk10Mile[1]; ten_second.Text = ppWalk10Mile[2]; if (LanguageUtils.EqualsResource(ppWalk10Mile[3], "PhysicalEvaluationFormView.Independent")) { c38.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppWalk10Mile[3], "PhysicalEvaluationFormView.T-Kane")) { c39.IsChecked = true; comBox6.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.T-Kane"); } else if (LanguageUtils.EqualsResource(ppWalk10Mile[3], "PhysicalEvaluationFormView.Qtr-Cane")) { c39.IsChecked = true; comBox6.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Qtr-Cane"); } else if (LanguageUtils.EqualsResource(ppWalk10Mile[3], "PhysicalEvaluationFormView.Walker")) { c39.IsChecked = true; comBox6.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Walker"); } else if (LanguageUtils.EqualsResource(ppWalk10Mile[3], "PhysicalEvaluationFormView.Other")) { c39.IsChecked = true; comBox6.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Other"); } else if (ppWalk10Mile[3] != "") { c40.IsChecked = true; text4.Text = ppWalk10Mile[3]; } ten_duty.Text = ppWalk10Mile[4]; //6分钟步行 string[] ppWalk6Minute = Regex.Replace(physicalPower.PP_Walk6Minute, @"param\d", "").Split(new char[] { ',' }); six_first.Text = ppWalk6Minute[1]; six_second.Text = ppWalk6Minute[2]; if (LanguageUtils.EqualsResource(ppWalk6Minute[3], "PhysicalEvaluationFormView.Independent")) { c43.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppWalk6Minute[3], "PhysicalEvaluationFormView.T-Kane")) { c44.IsChecked = true; comBox7.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.T-Kane"); } else if (LanguageUtils.EqualsResource(ppWalk6Minute[3], "PhysicalEvaluationFormView.Qtr-Cane")) { c44.IsChecked = true; comBox7.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Qtr-Cane"); } else if (LanguageUtils.EqualsResource(ppWalk6Minute[3], "PhysicalEvaluationFormView.Walker")) { c44.IsChecked = true; comBox7.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Walker"); } else if (LanguageUtils.EqualsResource(ppWalk6Minute[3], "PhysicalEvaluationFormView.Other")) { c44.IsChecked = true; comBox7.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Other"); } else if (ppWalk6Minute[3] != "") { c45.IsChecked = true; text5.Text = ppWalk6Minute[3]; } six_duty.Text = ppWalk6Minute[4]; //2分钟踏步 string[] ppStep2Minute = Regex.Replace(physicalPower.PP_Step2Minute, @"param\d", "").Split(new char[] { ',' }); two_first.Text = ppStep2Minute[1]; two_second.Text = ppStep2Minute[2]; if (LanguageUtils.EqualsResource(ppStep2Minute[3], "PhysicalEvaluationFormView.Independent")) { c46.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppStep2Minute[3], "PhysicalEvaluationFormView.T-Kane")) { c47.IsChecked = true; comBox8.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.T-Kane"); } else if (LanguageUtils.EqualsResource(ppStep2Minute[3], "PhysicalEvaluationFormView.Qtr-Cane")) { c47.IsChecked = true; comBox8.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Qtr-Cane"); } else if (LanguageUtils.EqualsResource(ppStep2Minute[3], "PhysicalEvaluationFormView.Walker")) { c47.IsChecked = true; comBox8.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Walker"); } else if (LanguageUtils.EqualsResource(ppStep2Minute[3], "PhysicalEvaluationFormView.Other")) { c47.IsChecked = true; comBox8.Text = LanguageUtils.GetCurrentLanuageStrByKey("PhysicalEvaluationFormView.Other"); } else if (ppStep2Minute[3] != "") { c48.IsChecked = true; text6.Text = ppStep2Minute[3]; } two_duty.Text = ppStep2Minute[4]; //2分钟抬腿 string[] ppLegRaise2Minute = Regex.Replace(physicalPower.PP_LegRaise2Minute, @"param\d", "").Split(new char[] { ',' }); twoleg_first.Text = ppLegRaise2Minute[1]; twoleg_second.Text = ppLegRaise2Minute[2]; if (LanguageUtils.EqualsResource(ppLegRaise2Minute[3], "PhysicalEvaluationFormView.Standing")) { c49.IsChecked = true; } else if (LanguageUtils.EqualsResource(ppLegRaise2Minute[3], "PhysicalEvaluationFormView.Seated")) { c50.IsChecked = true; } twoleg_duty.Text = ppLegRaise2Minute[4]; //使用者感想 string ppUserMemo = physicalPower.PP_UserMemo; user_think.Text = ppUserMemo; //工作人员感想 string ppWorkerMemo = physicalPower.PP_WorkerMemo; worker_think.Text = ppWorkerMemo; }