人民医院API

T_Sys_Class.cs 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /** 版本信息模板在安装目录下,可自行修改。
  2. * T_Sys_Class.cs
  3. *
  4. * 功 能: N/A
  5. * 类 名: T_Sys_Class
  6. *
  7. * Ver 变更日期 负责人 变更内容
  8. * ───────────────────────────────────
  9. * V0.01 2022/9/5 16:45:47 N/A 初版
  10. *
  11. * Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
  12. *┌──────────────────────────────────┐
  13. *│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
  14. *│ 版权所有:动软卓越(北京)科技有限公司              │
  15. *└──────────────────────────────────┘
  16. */
  17. using System;
  18. using System.Data;
  19. using System.Collections.Generic;
  20. using RMYY_CallCenter_Api.Model;
  21. namespace RMYY_CallCenter_Api.Bll
  22. {
  23. /// <summary>
  24. /// T_Sys_Class
  25. /// </summary>
  26. public partial class T_Sys_Class
  27. {
  28. private readonly RMYY_CallCenter_Api.Dal.T_Sys_Class dal=new RMYY_CallCenter_Api.Dal.T_Sys_Class();
  29. public T_Sys_Class()
  30. {}
  31. #region BasicMethod
  32. /// <summary>
  33. /// 增加一条数据
  34. /// </summary>
  35. public int Add(RMYY_CallCenter_Api.Model.T_Sys_Class model)
  36. {
  37. return dal.Add(model);
  38. }
  39. /// <summary>
  40. /// 更新一条数据
  41. /// </summary>
  42. public bool Update(RMYY_CallCenter_Api.Model.T_Sys_Class model)
  43. {
  44. return dal.Update(model);
  45. }
  46. /// <summary>
  47. /// 删除一条数据
  48. /// </summary>
  49. public bool Delete(int F_Id)
  50. {
  51. return dal.Delete(F_Id);
  52. }
  53. /// <summary>
  54. /// 删除一条数据
  55. /// </summary>
  56. public bool DeleteList(string F_Idlist )
  57. {
  58. return dal.DeleteList(F_Idlist );
  59. }
  60. /// <summary>
  61. /// 得到一个对象实体
  62. /// </summary>
  63. public RMYY_CallCenter_Api.Model.T_Sys_Class GetModel(int F_Id)
  64. {
  65. return dal.GetModel(F_Id);
  66. }
  67. /// <summary>
  68. /// 获得数据列表
  69. /// </summary>
  70. public DataSet GetList(string strWhere)
  71. {
  72. return dal.GetList(strWhere);
  73. }
  74. /// <summary>
  75. /// 获得前几行数据
  76. /// </summary>
  77. public DataSet GetList(int Top,string strWhere,string filedOrder)
  78. {
  79. return dal.GetList(Top,strWhere,filedOrder);
  80. }
  81. /// <summary>
  82. /// 获得数据列表
  83. /// </summary>
  84. public List<RMYY_CallCenter_Api.Model.T_Sys_Class> GetModelList(string strWhere)
  85. {
  86. DataSet ds = dal.GetList(strWhere);
  87. return DataTableToList(ds.Tables[0]);
  88. }
  89. /// <summary>
  90. /// 获得数据列表
  91. /// </summary>
  92. public List<RMYY_CallCenter_Api.Model.T_Sys_Class> DataTableToList(DataTable dt)
  93. {
  94. List<RMYY_CallCenter_Api.Model.T_Sys_Class> modelList = new List<RMYY_CallCenter_Api.Model.T_Sys_Class>();
  95. int rowsCount = dt.Rows.Count;
  96. if (rowsCount > 0)
  97. {
  98. RMYY_CallCenter_Api.Model.T_Sys_Class model;
  99. for (int n = 0; n < rowsCount; n++)
  100. {
  101. model = dal.DataRowToModel(dt.Rows[n]);
  102. if (model != null)
  103. {
  104. modelList.Add(model);
  105. }
  106. }
  107. }
  108. return modelList;
  109. }
  110. /// <summary>
  111. /// 获得数据列表
  112. /// </summary>
  113. public DataSet GetAllList()
  114. {
  115. return GetList("");
  116. }
  117. /// <summary>
  118. /// 分页获取数据列表
  119. /// </summary>
  120. public int GetRecordCount(string strWhere)
  121. {
  122. return dal.GetRecordCount(strWhere);
  123. }
  124. /// <summary>
  125. /// 分页获取数据列表
  126. /// </summary>
  127. public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
  128. {
  129. return dal.GetListByPage( strWhere, orderby, startIndex, endIndex);
  130. }
  131. /// <summary>
  132. /// 分页获取数据列表
  133. /// </summary>
  134. //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
  135. //{
  136. //return dal.GetList(PageSize,PageIndex,strWhere);
  137. //}
  138. #endregion BasicMethod
  139. #region ExtensionMethod
  140. #endregion ExtensionMethod
  141. }
  142. }