/// <summary>
 /// 插入风险评估结果 LY 2015-10-13
 /// </summary>
 /// <param name="UserId"></param>
 /// <param name="AssessmentType"></param>
 /// <param name="AssessmentName"></param>
 /// <param name="AssessmentTime"></param>
 /// <param name="Result"></param>
 /// <param name="revUserId"></param>
 /// <param name="TerminalName"></param>
 /// <param name="TerminalIP"></param>
 /// <param name="DeviceType"></param>
 /// <returns></returns>
 public int SetRiskResult(DataConnection pclsCache, string UserId, string AssessmentType, string AssessmentName, DateTime AssessmentTime, string Result, string revUserId, string TerminalName, string TerminalIP, int DeviceType)
 {
     int SortNo = new RiskInfoMethod().GetMaxSortNo(pclsCache, UserId) + 1;    //SortNo自增
     return new RiskInfoMethod().PsTreatmentIndicatorsSetData(pclsCache, UserId, SortNo, AssessmentType, AssessmentName, AssessmentTime, Result, revUserId, TerminalName, TerminalIP, DeviceType);
 }
 /// <summary>
 /// 根据UserId获取最新风险评估结果 LY 2015-10-13
 /// </summary>
 /// <param name="UserId"></param>
 /// <returns></returns>
 public string GetRiskResult(DataConnection pclsCache, string UserId, string AssessmentType)
 {
     int SortNo = new RiskInfoMethod().GetMaxSortNo(pclsCache, UserId);
     return new RiskInfoMethod().GetResult(pclsCache, UserId, SortNo, AssessmentType);
 }
 public M3Risk AddM3Risk(DataConnection pclsCache, string PatientId, M3RiskInput M3RiskInput, int RecordDate, int RecordTime, string piUserId, string piTerminalName, string piTerminalIP, int piDeviceType)
 {
     M3Risk M3Risk = new M3Risk();
     int ret = 0;
     ret = new RiskInfoMethod().SetM3RiskInput(pclsCache, PatientId, M3RiskInput, RecordDate, RecordTime, piUserId, piTerminalName, piTerminalIP, piDeviceType);
     if (ret == 1)
     {
         M3Risk = new RiskInfoRepository().GetM3Risk(pclsCache, PatientId);
     }
     return M3Risk;
 }