电子药箱通讯服务端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ShouShuShiBLL.cs 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using RDH.Data;
  7. using RDH.Data.BLL;
  8. using RDH.Data.Models;
  9. namespace Rdh.SocketServer.Client.BLL
  10. {
  11. public class ShouShuShiBLL
  12. {
  13. public IEnumerable<OperationRoom> ListOperationRoomByStation(params String[] stationCode)
  14. {
  15. List<OperationRoom> rooms = null;
  16. using (ConnectionSessionScope scope = new ConnectionSessionScope())
  17. {
  18. OperationRoomBLL operationRoomBLL = new OperationRoomBLL();
  19. rooms = operationRoomBLL.ListModels(100, 0);
  20. }
  21. if (stationCode == null || stationCode.Length == 0)
  22. {
  23. return rooms;
  24. }
  25. if (rooms != null
  26. && rooms.Count > 0)
  27. {
  28. return rooms.Where(x => x.Ext02 != null && stationCode.Contains(x.Ext02.Trim()));
  29. }
  30. return rooms;
  31. }
  32. public IEnumerable<PatientOperationInfo> ListOperattionInfoByRoom(String roomCode)
  33. {
  34. using (ConnectionSessionScope scope = new ConnectionSessionScope())
  35. {
  36. PatientOperationInfoBLL patientOperationInfoBLL = new PatientOperationInfoBLL();
  37. return patientOperationInfoBLL.ListPatientOperationByRoom(roomCode);
  38. }
  39. }
  40. public IEnumerable<ItemBarcodeLibrary> ListBarcodeInfo(params String[] barocdes)
  41. {
  42. using (ConnectionSessionScope scope = new ConnectionSessionScope())
  43. {
  44. ItemBarcodeLibraryBLL itemBarcodeLibraryBLL = new ItemBarcodeLibraryBLL();
  45. return itemBarcodeLibraryBLL.GetBarcodeLibrary(barocdes);
  46. }
  47. }
  48. }
  49. }