市长热线演示版

T_Exp_ExtensionBase.cs 4.3KB

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