郑许地铁

T_Cus_CustomerExpand.cs 4.1KB

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