PatientDac.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #region Copyright © 2015 CLIPSOFT Co.,Ltd. All Rights Reserved.
  2. //
  3. // All rights are reserved. Reproduction or transmission in whole or in part,
  4. // in any form or by any means, electronic, mechanical or otherwise, is
  5. // prohibited without the prior written consent of the copyright owner.
  6. //
  7. // Filename:SelectConsentSvcDac.cs
  8. //
  9. #endregion
  10. using CLIP.eForm.Consent.Entity;
  11. using CLIP.eForm.Server.Data;
  12. using IBatisNet.DataMapper;
  13. using System;
  14. using System.Collections;
  15. using System.Collections.Generic;
  16. using System.Linq;
  17. using System.Text;
  18. namespace CLIP.eForm.Consent.Dac {
  19. public class PatientDac : DacBase {
  20. //앞으로 GetPatientInfo()으로 대체될 임시함수
  21. public IList<PatientVO> GetPatientDetailInfo(ISqlMapper mapper, Hashtable param) {
  22. return mapper.QueryForList<PatientVO>("GET_PATIENT_DETAIL_INFO", param);
  23. }
  24. public IList<ClnDateForDropdownVO> GetTrmtDateList(ISqlMapper mapper, Hashtable param) {
  25. return mapper.QueryForList<ClnDateForDropdownVO>("GET_TRMT_DATE_LIST", param);
  26. }
  27. public IList<PatientVO> GetPatientInfo(ISqlMapper mapper, Hashtable param) {
  28. String flag = (String) param["ordType"];
  29. if (flag.Equals("I") || flag.Equals("E") || flag.Equals("D") || flag.Equals("OP")) {
  30. //입원 , 응급
  31. return mapper.QueryForList<PatientVO>("getPatientInfoIn", param);
  32. } else if (flag.Equals("O") || flag.Equals("S")) {
  33. //외래 , 종건
  34. return mapper.QueryForList<PatientVO>("getPatientInfoOut", param);
  35. } else {
  36. return null;
  37. }
  38. }
  39. public string GetOcrTag(ISqlMapper mapper, Hashtable param) {
  40. return mapper.QueryForObject<String>("getOcrTag", param);
  41. }
  42. public IList<string> GetDiagList(ISqlMapper mapper, Hashtable param) {
  43. return mapper.QueryForList<string>("getDiagList", param);
  44. }
  45. public string GetFileName(ISqlMapper mapper, Hashtable param) {
  46. mapper.Insert("setFileName", param);
  47. return mapper.QueryForObject<String>("getFileName", param);
  48. }
  49. public string GetOrgImageFileName(ISqlMapper mapper, Hashtable param) {
  50. return mapper.QueryForObject<String>("getFileName", param);
  51. }
  52. public void delEformData(ISqlMapper mapper, Hashtable param) {
  53. mapper.Insert("delEformData", param);
  54. }
  55. public int UpdateUserSetup(ISqlMapper mapper, Hashtable param) {
  56. //mapper.QueryForObject<Int32>("UPDATE_USERSETUP", param);
  57. return mapper.Update("UPDATE_USERSETUP", param);
  58. }
  59. public int checkPrintablePatient(ISqlMapper mapper, Hashtable param) {
  60. Object res = mapper.QueryForObject("checkPrintablePatient", param);
  61. return Convert.ToInt32(res);
  62. }
  63. public int checkHardcd(ISqlMapper mapper, Hashtable param) {
  64. Object res = mapper.QueryForObject("checkHardcd", param);
  65. return Convert.ToInt32(res);
  66. }
  67. }
  68. }