人民医院API

T_IntegratedScheduling_Evaluate.cs 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. /** 版本信息模板在安装目录下,可自行修改。
  2. * T_IntegratedScheduling_Evaluate.cs
  3. *
  4. * 功 能: N/A
  5. * 类 名: T_IntegratedScheduling_Evaluate
  6. *
  7. * Ver 变更日期 负责人 变更内容
  8. * ───────────────────────────────────
  9. * V0.01 2022/10/20 15:05:51 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_IntegratedScheduling_Evaluate
  25. /// </summary>
  26. public partial class T_IntegratedScheduling_Evaluate
  27. {
  28. private readonly RMYY_CallCenter_Api.DAL.T_IntegratedScheduling_Evaluate dal=new RMYY_CallCenter_Api.DAL.T_IntegratedScheduling_Evaluate();
  29. public T_IntegratedScheduling_Evaluate()
  30. {}
  31. #region BasicMethod
  32. /// <summary>
  33. /// 得到最大ID
  34. /// </summary>
  35. public int GetMaxId()
  36. {
  37. return dal.GetMaxId();
  38. }
  39. /// <summary>
  40. /// 是否存在该记录
  41. /// </summary>
  42. public bool Exists(int F_EvaluateId)
  43. {
  44. return dal.Exists(F_EvaluateId);
  45. }
  46. /// <summary>
  47. /// 增加一条数据
  48. /// </summary>
  49. public int Add(RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Evaluate model)
  50. {
  51. return dal.Add(model);
  52. }
  53. /// <summary>
  54. /// 更新一条数据
  55. /// </summary>
  56. public bool Update(RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Evaluate model)
  57. {
  58. return dal.Update(model);
  59. }
  60. /// <summary>
  61. /// 删除一条数据
  62. /// </summary>
  63. public bool Delete(int F_EvaluateId)
  64. {
  65. return dal.Delete(F_EvaluateId);
  66. }
  67. /// <summary>
  68. /// 删除一条数据
  69. /// </summary>
  70. public bool DeleteList(string F_EvaluateIdlist )
  71. {
  72. return dal.DeleteList(F_EvaluateIdlist );
  73. }
  74. /// <summary>
  75. /// 得到一个对象实体
  76. /// </summary>
  77. public RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Evaluate GetModel(int F_EvaluateId)
  78. {
  79. return dal.GetModel(F_EvaluateId);
  80. }
  81. /// <summary>
  82. /// 得到一个对象实体,从缓存中
  83. /// </summary>
  84. //public RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Evaluate GetModelByCache(int F_EvaluateId)
  85. //{
  86. // string CacheKey = "T_IntegratedScheduling_EvaluateModel-" + F_EvaluateId;
  87. // object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
  88. // if (objModel == null)
  89. // {
  90. // try
  91. // {
  92. // objModel = dal.GetModel(F_EvaluateId);
  93. // if (objModel != null)
  94. // {
  95. // int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
  96. // Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
  97. // }
  98. // }
  99. // catch{}
  100. // }
  101. // return (RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Evaluate)objModel;
  102. //}
  103. /// <summary>
  104. /// 获得数据列表
  105. /// </summary>
  106. public DataSet GetList(string strWhere)
  107. {
  108. return dal.GetList(strWhere);
  109. }
  110. /// <summary>
  111. /// 获得前几行数据
  112. /// </summary>
  113. public DataSet GetList(int Top,string strWhere,string filedOrder)
  114. {
  115. return dal.GetList(Top,strWhere,filedOrder);
  116. }
  117. /// <summary>
  118. /// 获得数据列表
  119. /// </summary>
  120. public List<RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Evaluate> GetModelList(string strWhere)
  121. {
  122. DataSet ds = dal.GetList(strWhere);
  123. return DataTableToList(ds.Tables[0]);
  124. }
  125. /// <summary>
  126. /// 获得数据列表
  127. /// </summary>
  128. public List<RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Evaluate> DataTableToList(DataTable dt)
  129. {
  130. List<RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Evaluate> modelList = new List<RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Evaluate>();
  131. int rowsCount = dt.Rows.Count;
  132. if (rowsCount > 0)
  133. {
  134. RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Evaluate model;
  135. for (int n = 0; n < rowsCount; n++)
  136. {
  137. model = dal.DataRowToModel(dt.Rows[n]);
  138. if (model != null)
  139. {
  140. modelList.Add(model);
  141. }
  142. }
  143. }
  144. return modelList;
  145. }
  146. /// <summary>
  147. /// 获得数据列表
  148. /// </summary>
  149. public DataSet GetAllList()
  150. {
  151. return GetList("");
  152. }
  153. /// <summary>
  154. /// 分页获取数据列表
  155. /// </summary>
  156. public int GetRecordCount(string strWhere)
  157. {
  158. return dal.GetRecordCount(strWhere);
  159. }
  160. /// <summary>
  161. /// 分页获取数据列表
  162. /// </summary>
  163. public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
  164. {
  165. return dal.GetListByPage( strWhere, orderby, startIndex, endIndex);
  166. }
  167. /// <summary>
  168. /// 分页获取数据列表
  169. /// </summary>
  170. //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
  171. //{
  172. //return dal.GetList(PageSize,PageIndex,strWhere);
  173. //}
  174. #endregion BasicMethod
  175. #region ExtensionMethod
  176. #endregion ExtensionMethod
  177. }
  178. }