/// <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)); }
/// <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)); }