ISmartForm.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. using PMS.BusinessModels.SmartForm;
  2. using PMS.EntityModels.SmartForm;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace PMS.Interface.SmartForm
  10. {
  11. public interface ISmartForm
  12. {
  13. bool AddCategory(int type, ZNBDFLModel model);
  14. bool DelCategory(ZNBDFLModel model, ref string msg);
  15. /// <summary>
  16. /// 获取分类下来树
  17. /// </summary>
  18. /// <returns></returns>
  19. List<TreeStruct> GetCategory(string id);
  20. #region 表单
  21. /// <summary>
  22. /// 增加数据记录
  23. /// </summary>
  24. /// <param name="model"></param>
  25. /// <param name="BbModel"></param>
  26. /// <returns></returns>
  27. bool Add(ZNBCXXModel model, ZNBCMBModel BbModel);
  28. /// <summary>
  29. /// 更新数据库记录【智能表单信息】
  30. /// </summary>
  31. /// <param name="model"></param>
  32. /// <param name="BbModel"></param>
  33. /// <returns></returns>
  34. bool UpdateSmartForm(ZNBCXXModel model, ZNBCMBModel BbModel);
  35. /// <summary>
  36. /// 查询数据对象并进行赋值【查询智能表单信息】
  37. /// </summary>
  38. /// <param name="id"></param>
  39. /// <returns></returns>
  40. ZNBCXX BdxxSelect(string id);
  41. /// <summary>
  42. /// 表单信息列表查询
  43. /// </summary>
  44. /// <returns></returns>
  45. List<ZNBCXXModel> BdxxSelectList(ZNBCXXModel model);
  46. /// <summary>
  47. /// 复制表单
  48. /// </summary>
  49. /// <param name="id">表单id</param>
  50. /// <param name="CZR">创建人</param>
  51. /// <returns></returns>
  52. bool CopySmartForm(string id, string CZR);
  53. #endregion
  54. #region 表单填写记录
  55. /// <summary>
  56. /// 列表查询【表单填写记录】
  57. /// </summary>
  58. /// <param name="model"></param>
  59. /// <returns></returns>
  60. List<BDTXJL> SelectRecordList(SelectBDTXJLModel model);
  61. /// <summary>
  62. /// 查询所有的分类下面【表单填写记录】
  63. /// </summary>
  64. /// <param name="model"></param>
  65. /// <param name="classID"></param>
  66. /// <returns></returns>
  67. List<BDTXJL> SelectRecordListAll(SelectBDTXJLModel model, string classID);
  68. /// <summary>
  69. /// 填写表单
  70. /// </summary>
  71. /// <param name="model"></param>
  72. /// <returns></returns>
  73. bool AddRecord(BDTXJLModel model);
  74. /// <summary>
  75. /// 获取用户信息
  76. /// </summary>
  77. /// <param name="tel"></param>
  78. /// <returns></returns>
  79. DataTable GetPushAccountInfo(string tel);
  80. /// <summary>
  81. /// 根据人员ID获取系统账户的信息
  82. /// </summary>
  83. /// <returns></returns>
  84. DataTable GetSysAccountInfo(string id);
  85. /// <summary>
  86. /// 更新表单记录
  87. /// </summary>
  88. /// <param name="model"></param>
  89. /// <param name="type">1:更新处理结果,2更新通过、退回状态,3修改填写记录</param>
  90. /// <returns></returns>
  91. bool UpdateRecord(BDTXJLModel model, int type);
  92. /// <summary>
  93. /// 查询我的填报记录
  94. /// </summary>
  95. /// <param name="model"></param>
  96. /// <returns></returns>
  97. List<BDTXJL> MyRecordList(BDTXJLModel model);
  98. #endregion
  99. }
  100. }