PatientDac.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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.Dfh.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.Dfh.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"))//입원 , 응급
  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 void delEformData(ISqlMapper mapper, Hashtable param) {
  50. mapper.Insert("delEformData", param);
  51. }
  52. public void insertPrintData(ISqlMapper mapper, Hashtable param) {
  53. string var2 = mapper.QueryForObject<String>("getHardCodeYN", param);
  54. if (var2 != null && var2.Equals("Y") && (bool)param["autoprint"]) {
  55. } else {
  56. string var = mapper.QueryForObject<String>("getFormFromdt", param);
  57. param.Add("formfromdt", var);
  58. mapper.Insert("setOcrPrntInfo", param);
  59. if (param["ocrprintyn"].Equals("Y")) {
  60. mapper.Insert("setOcrPrntHistInfo", param);
  61. }
  62. }
  63. }
  64. public int UpdateUserSetup(ISqlMapper mapper, Hashtable param) {
  65. //mapper.QueryForObject<Int32>("UPDATE_USERSETUP", param);
  66. return mapper.Update("UPDATE_USERSETUP", param);
  67. }
  68. }
  69. }