No Description

T_Sys_SeatPermissionConfig.cs 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace CallCenterApi.BLL
  8. {
  9. public partial class T_Sys_SeatPermissionConfig
  10. {
  11. private readonly DAL.T_Sys_SeatPermissionConfig dal = new DAL.T_Sys_SeatPermissionConfig();
  12. public T_Sys_SeatPermissionConfig()
  13. { }
  14. #region BasicMethod
  15. /// <summary>
  16. /// 得到最大ID
  17. /// </summary>
  18. public int GetMaxId()
  19. {
  20. return dal.GetMaxId();
  21. }
  22. /// <summary>
  23. /// 是否存在该记录
  24. /// </summary>
  25. public bool Exists(int F_Id)
  26. {
  27. return dal.Exists(F_Id);
  28. }
  29. /// <summary>
  30. /// 是否存在该记录
  31. /// </summary>
  32. public bool Exists()
  33. {
  34. return dal.Exists();
  35. }
  36. /// <summary>
  37. /// 增加一条数据
  38. /// </summary>
  39. public int Add(Model.T_Sys_SeatPermissionConfig model)
  40. {
  41. return dal.Add(model);
  42. }
  43. /// <summary>
  44. /// 更新一条数据
  45. /// </summary>
  46. public bool Update(Model.T_Sys_SeatPermissionConfig model)
  47. {
  48. return dal.Update(model);
  49. }
  50. /// <summary>
  51. /// 删除一条数据
  52. /// </summary>
  53. public bool Delete(int F_Id)
  54. {
  55. return dal.Delete(F_Id);
  56. }
  57. /// <summary>
  58. /// 删除一条数据
  59. /// </summary>
  60. public bool DeleteList(string F_Idlist)
  61. {
  62. return dal.DeleteList(F_Idlist);
  63. }
  64. /// <summary>
  65. /// 得到一个对象实体
  66. /// </summary>
  67. public Model.T_Sys_SeatPermissionConfig GetModel(int F_Id)
  68. {
  69. return dal.GetModel(F_Id);
  70. }
  71. /// <summary>
  72. /// 得到一个对象实体
  73. /// </summary>
  74. public Model.T_Sys_SeatPermissionConfig GetModel()
  75. {
  76. return dal.GetModel();
  77. }
  78. /// <summary>
  79. /// 获得数据列表
  80. /// </summary>
  81. public DataSet GetList(string strWhere)
  82. {
  83. return dal.GetList(strWhere);
  84. }
  85. /// <summary>
  86. /// 获得前几行数据
  87. /// </summary>
  88. public DataSet GetList(int Top, string strWhere, string filedOrder)
  89. {
  90. return dal.GetList(Top, strWhere, filedOrder);
  91. }
  92. /// <summary>
  93. /// 获得数据列表
  94. /// </summary>
  95. public List<Model.T_Sys_SeatPermissionConfig> GetModelList(string strWhere)
  96. {
  97. DataSet ds = dal.GetList(strWhere);
  98. return DataTableToList(ds.Tables[0]);
  99. }
  100. /// <summary>
  101. /// 获得数据列表
  102. /// </summary>
  103. public List<Model.T_Sys_SeatPermissionConfig> DataTableToList(DataTable dt)
  104. {
  105. List<Model.T_Sys_SeatPermissionConfig> modelList = new List<Model.T_Sys_SeatPermissionConfig>();
  106. int rowsCount = dt.Rows.Count;
  107. if (rowsCount > 0)
  108. {
  109. Model.T_Sys_SeatPermissionConfig model;
  110. for (int n = 0; n < rowsCount; n++)
  111. {
  112. model = dal.DataRowToModel(dt.Rows[n]);
  113. if (model != null)
  114. {
  115. modelList.Add(model);
  116. }
  117. }
  118. }
  119. return modelList;
  120. }
  121. /// <summary>
  122. /// 获得数据列表
  123. /// </summary>
  124. public DataSet GetAllList()
  125. {
  126. return GetList("");
  127. }
  128. /// <summary>
  129. /// 分页获取数据列表
  130. /// </summary>
  131. public int GetRecordCount(string strWhere)
  132. {
  133. return dal.GetRecordCount(strWhere);
  134. }
  135. /// <summary>
  136. /// 分页获取数据列表
  137. /// </summary>
  138. public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
  139. {
  140. return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
  141. }
  142. /// <summary>
  143. /// 分页获取数据列表
  144. /// </summary>
  145. //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
  146. //{
  147. //return dal.GetList(PageSize,PageIndex,strWhere);
  148. //}
  149. #endregion BasicMethod
  150. #region ExtensionMethod
  151. #endregion ExtensionMethod
  152. }
  153. }