SystemCheckResultBll.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*-------------------------------------------------------------------------
  2. * 功能描述:SystemCheckResultBll
  3. * 作者:xulisong
  4. * 创建时间: 2019/3/1 8:45:17
  5. * 版本号:v1.0
  6. * -------------------------------------------------------------------------*/
  7. using System;
  8. using System.Collections;
  9. using System.Collections.Generic;
  10. using System.Linq;
  11. using System.Text;
  12. using System.Threading.Tasks;
  13. using Saga.Framework.DB;
  14. using SAGA.MBIAssistData.Model;
  15. namespace SAGA.MBIAssistData
  16. {
  17. public class SystemCheckResultBll : Bll<SystemCheckResult>
  18. {
  19. public SystemCheckResultBll()
  20. {
  21. Init(this.GetType().FullName, this.GetType().Assembly.FullName);
  22. }
  23. public List<SystemCheckResult> FindResults(string reportId)
  24. {
  25. this.CheckDAL();
  26. string condion = string.Format("ReportId='{0}'", reportId);
  27. return Find(condion);
  28. }
  29. public bool UpdateMisinformationFlag(bool misinformationFlag, string key)
  30. {
  31. this.CheckDAL();
  32. Hashtable hastable = new Hashtable();
  33. hastable.Add("IsMisinformation", misinformationFlag);
  34. return Update(hastable, key);
  35. }
  36. public bool UpdateCorrectedFlag(bool correctedFlag, string key)
  37. {
  38. Hashtable hastable = new Hashtable();
  39. hastable.Add("IsCorrected", correctedFlag);
  40. return Update(hastable, key);
  41. }
  42. }
  43. }