地铁二期项目正式开始

usernotice.cs 3.9KB

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