郑州颐和随访系统

T_Sys_Patirnt.cs 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace CallCenterApi.BLL
  8. {
  9. public partial class T_Sys_Patirnt
  10. {
  11. private readonly CallCenterApi.DAL.T_Sys_Patirnt dal = new DAL.T_Sys_Patirnt();
  12. public T_Sys_Patirnt()
  13. { }
  14. public
  15. List<CallCenterApi.Model.T_Sys_Patirnt> DataTableToList(DataTable dt)
  16. {
  17. List<CallCenterApi.Model.T_Sys_Patirnt>
  18. modelList = new List<Model.T_Sys_Patirnt>();
  19. int rowsCount = dt.Rows.Count;
  20. if (rowsCount > 0)
  21. {
  22. CallCenterApi.Model.T_Sys_Patirnt model;
  23. for (int n = 0; n < rowsCount; n++)
  24. {
  25. model = dal.DataRowToModel(dt.Rows[n]);
  26. if (model != null)
  27. {
  28. modelList.Add(model);
  29. }
  30. }
  31. }
  32. return modelList;
  33. }
  34. public CallCenterApi.Model.T_Sys_Patirnt GetModel(int PatirntID)
  35. {
  36. return dal.GetModel(PatirntID);
  37. }
  38. }
  39. }