UU跑腿标准版

T_Call_CallRecordsLD.cs 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data;
  4. using System.Linq;
  5. using System.Text;
  6. namespace HySoft.BaseCallCenter.BLL
  7. {
  8. /// <summary>
  9. /// T_Call_CallRecordsLD
  10. /// </summary>
  11. public partial class T_Call_CallRecordsLD
  12. {
  13. private readonly HySoft.BaseCallCenter.DAL.T_Call_CallRecordsLD dal = new HySoft.BaseCallCenter.DAL.T_Call_CallRecordsLD();
  14. public T_Call_CallRecordsLD()
  15. { }
  16. #region BasicMethod
  17. /// <summary>
  18. /// 增加一条数据
  19. /// </summary>
  20. public int Add(HySoft.BaseCallCenter.Model.T_Call_CallRecordsLD model)
  21. {
  22. return dal.Add(model);
  23. }
  24. /// <summary>
  25. /// 更新一条数据
  26. /// </summary>
  27. public bool Update(HySoft.BaseCallCenter.Model.T_Call_CallRecordsLD model)
  28. {
  29. return dal.Update(model);
  30. }
  31. /// <summary>
  32. /// 得到一个对象实体
  33. /// </summary>
  34. public HySoft.BaseCallCenter.Model.T_Call_CallRecordsLD GetModel(int F_CallRLDID)
  35. {
  36. return dal.GetModel(F_CallRLDID);
  37. }
  38. /// <summary>
  39. /// 获得数据列表
  40. /// </summary>
  41. public DataSet GetList(string strWhere)
  42. {
  43. return dal.GetList(strWhere);
  44. }
  45. /// <summary>
  46. /// 获得前几行数据
  47. /// </summary>
  48. public DataSet GetList(int Top, string strWhere, string filedOrder)
  49. {
  50. return dal.GetList(Top, strWhere, filedOrder);
  51. }
  52. /// <summary>
  53. /// 获得数据列表
  54. /// </summary>
  55. public List<HySoft.BaseCallCenter.Model.T_Call_CallRecordsLD> GetModelList(string strWhere)
  56. {
  57. DataSet ds = dal.GetList(strWhere);
  58. return DataTableToList(ds.Tables[0]);
  59. }
  60. /// <summary>
  61. /// 获得数据列表
  62. /// </summary>
  63. public List<HySoft.BaseCallCenter.Model.T_Call_CallRecordsLD> DataTableToList(DataTable dt)
  64. {
  65. List<HySoft.BaseCallCenter.Model.T_Call_CallRecordsLD> modelList = new List<HySoft.BaseCallCenter.Model.T_Call_CallRecordsLD>();
  66. int rowsCount = dt.Rows.Count;
  67. if (rowsCount > 0)
  68. {
  69. HySoft.BaseCallCenter.Model.T_Call_CallRecordsLD model;
  70. for (int n = 0; n < rowsCount; n++)
  71. {
  72. model = dal.DataRowToModel(dt.Rows[n]);
  73. if (model != null)
  74. {
  75. modelList.Add(model);
  76. }
  77. }
  78. }
  79. return modelList;
  80. }
  81. /// <summary>
  82. /// 获得数据列表
  83. /// </summary>
  84. public DataSet GetAllList()
  85. {
  86. return GetList("");
  87. }
  88. /// <summary>
  89. /// 分页获取数据列表
  90. /// </summary>
  91. public int GetRecordCount(string strWhere)
  92. {
  93. return dal.GetRecordCount(strWhere);
  94. }
  95. /// <summary>
  96. /// 分页获取数据列表
  97. /// </summary>
  98. public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
  99. {
  100. return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
  101. }
  102. #endregion BasicMethod
  103. #region ExtensionMethod
  104. #endregion ExtensionMethod
  105. }
  106. }