SPAER01901_조영제대체처방발행.xrw 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>조영제 동의서</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <altcalcscorcdlist>
  11. <cdlist/>
  12. </altcalcscorcdlist>
  13. </main>
  14. <send>
  15. <data>
  16. <calcscorcd/>
  17. </data>
  18. <data1>
  19. <excucd/>
  20. </data1>
  21. </send>
  22. <init>
  23. <inittitle>조영제 사용 동의서가 필요한 처방입니다.</inittitle>
  24. <inittitle2>처방의 대체 코드를 선택하여 주십시오.</inittitle2>
  25. <calcscorcdnmlist>
  26. <calcscorcdnm>
  27. <cdnm/>
  28. </calcscorcdnm>
  29. </calcscorcdnmlist>
  30. <calcscorcd/>
  31. <angioaltprcpcdlist>
  32. <angioaltprcpcd>
  33. <cdid/>
  34. </angioaltprcpcd>
  35. </angioaltprcpcdlist>
  36. <excucdnmlist>
  37. <excucdnm>
  38. <cdnm/>
  39. <cdid/>
  40. </excucdnm>
  41. </excucdnmlist>
  42. </init>
  43. <hidden/>
  44. </root>
  45. </instance>
  46. <script type="javascript" ev:event="xforms-model-construct">
  47. <![CDATA[
  48. ]]>
  49. </script>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. if( model.getValue("/root/init/calcscorcd") == "") {
  53. messageBox("조영제 사용 동의서가 필요한 처방코드가 존재하지 않습니다.", "I999");
  54. window.close();
  55. return;
  56. }
  57. model.setValue("/root/send/data1/excucd", model.getValue("/root/init/calcscorcd"));
  58. submit("TRAER01903");
  59. if ( model.getValue("/root/init/angioaltprcpcdlist/angioaltprcpcd/cdid") == "" ) {
  60. // alert('없당');
  61. return;
  62. }
  63. //alert(model.getValue("/root/init/angioaltprcpcdlist/angioaltprcpcd/cdid"));
  64. var angioaltprcpcd = model.getValue("/root/init/angioaltprcpcdlist/angioaltprcpcd/cdid");
  65. var str = angioaltprcpcd.split("^");
  66. var row = 1;
  67. model.makeValue("/root/init/excucdnmlist/excucdnm[1]/cdid", "");
  68. model.makeValue("/root/init/excucdnmlist/excucdnm[1]/cdnm", "선택");
  69. for(var i =0 ; i < str.length-1 ; i++ ) {
  70. var aa = str[i];
  71. //alert(aa);
  72. row++ ;
  73. model.makeValue("/root/init/excucdnmlist/excucdnm[" + row + "]/cdid", aa.getTrim());
  74. model.makeValue("/root/init/excucdnmlist/excucdnm[" + row + "]/cdnm", aa.getTrim());
  75. }
  76. model.refresh();
  77. ]]>
  78. </script>
  79. <submission id="TRAER01902" ref="/root/send/data/calcscorcd" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/init/calcscorcdnmlist"/>
  80. <submission id="TRAER01903" ref="/root/send/data1/excucd" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/init/angioaltprcpcdlist"/>
  81. </model>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  85. <script type="javascript">
  86. <![CDATA[
  87. ]]>
  88. </script>
  89. </xhtml:head>
  90. <xhtml:body pagewidth="430" pageheight="220" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  91. <caption id="caption2" class="tit_1" style="left:65px; top:20px; width:217px; height:13px; vertical-align:middle; ">조영제 대체처방 발행</caption>
  92. <line id="line8" class="line_1" style="x1:0px; y1:122px; x2:400px; y2:122px; "/>
  93. <caption id="caption20" class="tit_2" style="left:6px; top:107px; width:118px; height:13px; ">대체 코드</caption>
  94. <caption id="caption1" ref="/root/init/inittitle" style="left:0px; top:25px; width:345px; height:25px; font-size:12pt; font-weight:bold; color:#0000ff; ">caption1</caption>
  95. <caption id="cpt_calcscorcd" ref="/root/init/calcscorcd" style="left:0px; top:60px; width:115px; height:25px; font-size:11pt; font-weight:bold; text-align:center; ">caption3</caption>
  96. <caption id="caption3" ref="/root/init/inittitle2" style="left:115px; top:60px; width:290px; height:25px; font-size:11pt; font-weight:bold; text-align:left; ">caption3</caption>
  97. <select1 id="cmb_altprcpcd" ref="/root/send/data/calcscorcd" navindex="29" class="combo_search" appearance="minimal" style="left:0px; top:130px; width:155px; height:19px; ">
  98. <choices>
  99. <itemset nodeset="/root/init/excucdnmlist/excucdnm">
  100. <label ref="cdnm"/>
  101. <value ref="cdid"/>
  102. </itemset>
  103. </choices>
  104. <script type="javascript" ev:event="xforms-value-changed">
  105. <![CDATA[
  106. if ( cmb_altprcpcd.value == "" ) {
  107. model.setValue("/root/init/calcscorcdnmlist/calcscorcdnm/cdnm", "");
  108. model.refresh();
  109. return;
  110. }
  111. //alert(cmb_altprcpcd.value);
  112. model.setValue("/root/send/data/calcscorcd", cmb_altprcpcd.value);
  113. submit("TRAER01902");
  114. ]]>
  115. </script>
  116. </select1>
  117. <input id="ipt_hngnm" ref="/root/init/calcscorcdnmlist/calcscorcdnm/cdnm" style="left:0px; top:155px; width:400px; height:25px; font-weight:bold; "/>
  118. <button id="btn_cls" class="btn4_letter2" style="left:342px; top:180px; width:56px; height:22px; ">
  119. <caption>닫기</caption>
  120. <close ev:event="DOMActivate"/>
  121. </button>
  122. <button id="button1" class="btn4_letter2" style="left:280px; top:180px; width:56px; height:22px; ">
  123. <caption>확인</caption>
  124. <script type="javascript" ev:event="DOMActivate">
  125. <![CDATA[
  126. opener.javascript.setParameter("SPAER01901_prcpcd", model.getValue ( "/root/send/data/calcscorcd" ));
  127. window.close();
  128. ]]>
  129. </script>
  130. </button>
  131. </xhtml:body>
  132. </xhtml:html>