郑许地铁

T_Good_Info.cs 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. using System;
  2. using System.Data;
  3. using System.Collections.Generic;
  4. using ZXDT.CallCenter.Model;
  5. namespace ZXDT.CallCenter.BLL
  6. {
  7. /// <summary>
  8. /// T_Good_Info
  9. /// </summary>
  10. public partial class T_Good_Info
  11. {
  12. private readonly ZXDT.CallCenter.DAL.T_Good_Info dal = new ZXDT.CallCenter.DAL.T_Good_Info();
  13. public T_Good_Info()
  14. { }
  15. #region BasicMethod
  16. /// <summary>
  17. /// 增加一条数据
  18. /// </summary>
  19. public int Add(ZXDT.CallCenter.Model.T_Good_Info model)
  20. {
  21. return dal.Add(model);
  22. }
  23. /// <summary>
  24. /// 更新一条数据
  25. /// </summary>
  26. public bool Update(ZXDT.CallCenter.Model.T_Good_Info model)
  27. {
  28. return dal.Update(model);
  29. }
  30. /// <summary>
  31. /// 删除一条数据
  32. /// </summary>
  33. public bool Delete(int id)
  34. {
  35. return dal.Delete(id);
  36. }
  37. /// <summary>
  38. /// 删除一条数据
  39. /// </summary>
  40. public bool DeleteList(string idlist)
  41. {
  42. return dal.DeleteList(idlist);
  43. }
  44. /// <summary>
  45. /// 得到一个对象实体
  46. /// </summary>
  47. public ZXDT.CallCenter.Model.T_Good_Info GetModel(int id)
  48. {
  49. return dal.GetModel(id);
  50. }
  51. /// <summary>
  52. /// 获得数据列表
  53. /// </summary>
  54. public DataSet GetList(string strWhere)
  55. {
  56. return dal.GetList(strWhere);
  57. }
  58. /// <summary>
  59. /// 归还
  60. /// </summary>
  61. public bool RebackGoods(ZXDT.CallCenter.Model.T_Good_Info model)
  62. {
  63. return dal.RebackGoods(model);
  64. }
  65. #endregion BasicMethod
  66. #region 失物转移发起
  67. public bool TransferGoodList(Model.T_Good_TransInfo model)
  68. {
  69. return dal.TransferGoodList(model);
  70. }
  71. #endregion
  72. #region 失物接收/退回
  73. public bool TransferGoodReceivedList(Model.T_Good_TransInfo model, int status)
  74. {
  75. return dal.TransferGoodReceivedList(model, status);
  76. }
  77. #endregion
  78. #region 销毁
  79. /// <summary>
  80. /// 删除
  81. /// </summary>
  82. /// <param name="idList"></param>
  83. /// <returns></returns>
  84. public bool AdminDeleteGoods(string idList)
  85. {
  86. return dal.AdminDeleteGoods(idList);
  87. }
  88. /// <summary>
  89. /// 销毁
  90. /// </summary>
  91. public bool DeleteGoods(string idList)
  92. {
  93. return dal.DeleteGoods(idList);
  94. }
  95. /// <summary>
  96. /// 自动销毁
  97. /// </summary>
  98. public void DeleteGoodsBySys()
  99. {
  100. dal.DeleteGoodsBySys();
  101. }
  102. #endregion
  103. }
  104. }