IDictionaryItemServices.cs 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Bowin.Common.Linq.Entity;
  6. using EMIS.ViewModel.SystemView;
  7. using EMIS.ViewModel;
  8. namespace EMIS.CommonLogic.SystemSetting
  9. {
  10. public interface IDictionaryItemServices
  11. {
  12. /// <summary>
  13. /// 查询对应的数据字典信息View
  14. /// </summary>
  15. /// <param name="configuretView"></param>
  16. /// <param name="dictionaryCode"></param>
  17. /// <param name="isEditable"></param>
  18. /// <param name="isVisible"></param>
  19. /// <param name="pageIndex"></param>
  20. /// <param name="pageSize"></param>
  21. /// <returns></returns>
  22. IGridResultSet<DictionaryItemView> GetDictionaryItemViewGird(ConfiguretView configuretView,
  23. string dictionaryCode, int? isEditable, int? isVisible, int pageIndex, int pageSize);
  24. /// <summary>
  25. /// 查询对应的数据字典信息List
  26. /// </summary>
  27. /// <param name="configuretView"></param>
  28. /// <param name="dictionaryCode"></param>
  29. /// <param name="isEditable"></param>
  30. /// <param name="isVisible"></param>
  31. /// <returns></returns>
  32. IList<DictionaryItemView> GetDictionaryItemViewList(ConfiguretView configuretView,
  33. string dictionaryCode, int? isEditable, int? isVisible);
  34. /// <summary>
  35. /// 根据数据字典元素ID查询对应的数据字典信息DictionaryItemView
  36. /// </summary>
  37. /// <param name="DictionaryItemID"></param>
  38. /// <returns></returns>
  39. DictionaryItemView GetDictionaryItemView(Guid? DictionaryItemID);
  40. /// <summary>
  41. /// 编辑(新增、修改)
  42. /// </summary>
  43. /// <param name="dictionaryItemView"></param>
  44. void DictionaryItemEdit(DictionaryItemView dictionaryItemView);
  45. /// <summary>
  46. /// 删除(只可删除可编辑的信息)
  47. /// </summary>
  48. /// <param name="dictionaryItemIDList"></param>
  49. /// <returns></returns>
  50. bool DictionaryItemDelete(IList<Guid?> dictionaryItemIDList);
  51. /// <summary>
  52. /// 数据字典下拉列表
  53. /// </summary>
  54. /// <param name="configuretView"></param>
  55. /// <param name="dictionaryCode"></param>
  56. /// <param name="pageIndex"></param>
  57. /// <param name="pageSize"></param>
  58. /// <returns></returns>
  59. IGridResultSet<DictionaryItemView> GetDictionaryViewComboGrid(ConfiguretView configuretView,
  60. string dictionaryCode, int pageIndex, int pageSize);
  61. /// <summary>
  62. /// 数据字典下拉列表(市)
  63. /// </summary>
  64. /// <param name="configuretView"></param>
  65. /// <param name="pageIndex"></param>
  66. /// <param name="pageSize"></param>
  67. /// <param name="proviceCode"></param>
  68. /// <returns></returns>
  69. IGridResultSet<DictionaryItemView> GetCityComboGrid(ConfiguretView configuretView,
  70. int pageIndex, int pageSize, string proviceCode = null);
  71. /// <summary>
  72. /// 数据字典下拉列表(县、区)
  73. /// </summary>
  74. /// <param name="configuretView"></param>
  75. /// <param name="pageIndex"></param>
  76. /// <param name="pageSize"></param>
  77. /// <param name="cityCode"></param>
  78. /// <returns></returns>
  79. IGridResultSet<DictionaryItemView> GetDistrictComboGrid(ConfiguretView configuretView,
  80. int pageIndex, int pageSize, string cityCode = null);
  81. }
  82. }