MRD01100.xjs 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  3. * System Name : KNUH2.0
  4. * Job Name : EMR
  5. * Creator :
  6. * Make Date : 2015-01-06
  7. * Description :
  8. *---------------------------------------------------------------------------------------
  9. * Modify Date Modifier Modify Description
  10. *---------------------------------------------------------------------------------------
  11. * 2015-01-06 TF->XP
  12. *
  13. *---------------------------------------------------------------------------------------
  14. ****************************************************************************************/
  15. //=======================================================================================
  16. // Function
  17. //---------------------------------------------------------------------------------------
  18. /****************************************************************************************
  19. * Function : fInitialize
  20. * Description : 화면 초기화 실행
  21. * Argument :
  22. * :
  23. * return type :
  24. * Creator :
  25. ****************************************************************************************/
  26. function finitialize() {
  27. var vNowDD = utlf_getCurrentDate();
  28. // var dethdt = opener.frmf_getParameter("dethdt");
  29. ds_main_cond.setColumn(0,"fromdd",vNowDD.substr(0,6)+ "01");
  30. ds_main_cond.setColumn(0,"todd", vNowDD);
  31. ds_main_dethreglist.clear();
  32. fsearch();
  33. //fgetuseradmin();
  34. }
  35. /****************************************************************************************
  36. * Function : fsearch
  37. * Description : 사망환자를 조회하기
  38. * Argument :
  39. * :
  40. * return type :
  41. * Creator :
  42. ****************************************************************************************/
  43. function fsearch() {
  44. // submit("TRMRD01100");
  45. var oParam = {};
  46. oParam.id = "TRMRD01100";
  47. oParam.service = "dschanalyapp.DschAnaly";
  48. oParam.method = "reqGetDethregList";
  49. oParam.inds = "cond=ds_main_cond";
  50. oParam.outds = "ds_main_dethreglist=dethreglist";
  51. oParam.async = false;
  52. //oParam.callback = null;
  53. tranf_submit(oParam);
  54. ds_main_dethreglist.rowposition = -1;
  55. }
  56. /****************************************************************************************
  57. * Function : fgetuseradmin
  58. * Description : 의료정보사용자에 한하여 주민번호 둿자리 **으로변경
  59. * : 다른사용자일 경우 주민번호 둿자리 **으로변경,의료정보팀 사용자만 볼 수있음
  60. * Argument :
  61. * :
  62. * return type :
  63. * Creator :
  64. ****************************************************************************************/
  65. function fgetuseradmin() {
  66. // var row = ds_main_dethreglist.rowposition;
  67. // var result = fUserAdmin();
  68. // var jumin = ds_main_dethreglist.getColumn(row,"jumin");
  69. // if(result==0){
  70. // btn_ok.visible = "false";
  71. // btn_cancel.visible = "false";
  72. // //다른사람이 로그인시 주민등록번호 뒷자리 숨김
  73. // grd_dethreglist.colAttribute(5, "secretstartposition") = "7";
  74. // grd_dethreglist.colAttribute(5, "secretendposition") = "14";
  75. // model.refresh();
  76. // }else if(result==1){
  77. // btn_ok.visible = "true";
  78. // btn_cancel.visible = "true";
  79. // //의료정보팀이 로그인시 주민등록번호 뒷자리 보이기
  80. // grd_dethreglist.colAttribute(5, "secretstartposition") = "-1";
  81. // grd_dethreglist.colAttribute(5, "secretendposition") = "-1";
  82. // }
  83. }
  84. /****************************************************************************************
  85. * Function : fUserAdmin
  86. * Description : 의료정보팀 사용자 명단???
  87. * Argument :
  88. * :
  89. * return type :
  90. * Creator :
  91. ****************************************************************************************/
  92. function fUserAdmin() {
  93. // var userid = sysf_getUserId();
  94. // if(userid!=""){
  95. // userid = userid.getTrim();
  96. // }
  97. // //의료정보팀 사용자 명단
  98. // if( userid =="18700017"||userid=="19300004"||userid =="07140074"||userid =="07140032"|`|userid =="07131118"||userid =="04140029"||userid =="99030631"||userid =="06140004"||userid =="96130527"||userid =="10410171"||userid =="07140370"||userid =="20800697"||userid =="20800701"||userid =="10505048"||
  99. // userid =="19000027"||userid=="99030741"||userid =="98130305"||userid =="99141410"||userid =="94031295"||userid =="20800699"||userid =="05130125"||userid =="10510026"||userid =="97031209"||userid =="10700111"||userid =="07131125"||userid =="10410140"||userid =="10713191"||userid =="10410133"||
  100. // userid =="10005500"||userid=="10406783"||userid =="20700138"||userid =="07140340"||userid =="03140207"||userid =="10410157"||userid =="10611358"||userid =="10711210"||userid =="18300001"||userid =="10608220"||userid =="19400043"||userid =="10216423"||userid =="07130887"||userid =="20800700"||
  101. // userid =="18200007"||userid=="19600034"||userid =="20700115"||userid =="19600044"||userid =="05130132"||userid =="00140386"||userid =="07140240"||userid =="20500046"||userid =="20600105"||userid =="20800698"||userid =="02130759"||userid =="07140016"||userid =="10211758"||userid =="07140284"||
  102. // userid =="10216409"||userid=="20800035"||userid =="90030238"||userid =="92055156"||userid =="04130570"||userid =="10708357"||userid =="19700042"||userid =="18900014"||userid =="07131149"||userid =="00130121"||userid =="07130756"||userid =="03140223"||userid =="10101174"||userid =="07130894"||
  103. // userid =="20800082"||userid=="20600067"||userid =="10608213"
  104. // )
  105. // {
  106. // return 1 ;
  107. // } else {
  108. // return 0 ;
  109. // }
  110. }
  111. /****************************************************************************************
  112. * Function : fsearch
  113. * Description : 사망환자분석과 연계
  114. * Argument :
  115. * :
  116. * return type :
  117. * Creator :
  118. ****************************************************************************************/
  119. function fSendDethinfo() {
  120. var rowpos = ds_main_dethreglist.rowposition;
  121. var pid = ds_main_dethreglist.getColumn(rowpos,"pid");
  122. var pname = ds_main_dethreglist.getColumn(rowpos,"pname");
  123. var jumin = ds_main_dethreglist.getColumn(rowpos,"jumin");
  124. var dethdd = ds_main_dethreglist.getColumn(rowpos,"dethdd");
  125. var dethtm = ds_main_dethreglist.getColumn(rowpos,"dethtm");
  126. var depthngnm = ds_main_dethreglist.getColumn(rowpos,"depthngnm");
  127. var usernm = ds_main_dethreglist.getColumn(rowpos,"usernm");
  128. if(!utlf_isNull(dethdd)) {
  129. //opener.window.javascript.ftest(pid,pname, jumin, dethdt, dethtm, depthngnm, usernm);
  130. opener.frmf_setParameter("SPMRD00500_pid", pid);
  131. this.close();
  132. }
  133. }]]></Script>