SPMMO00710_구두처방확인.xrw 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <prcp>
  11. <prcplist/>
  12. </prcp>
  13. <cond>
  14. <checkflag/>
  15. </cond>
  16. </main>
  17. <init>
  18. <prcpkindcd/>
  19. <prcpclscd/>
  20. <prcpstatcd/>
  21. <hosinprcpresncd/>
  22. <payflagcd/>
  23. <orddept/>
  24. </init>
  25. <prcptemp/>
  26. <temp/>
  27. <send>
  28. <instcd/>
  29. <pid/>
  30. <indd/>
  31. <cretno/>
  32. </send>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-model-construct-done">
  36. <![CDATA[
  37. zbcfGetCodeList(new Array("M0003",
  38. "M0005",
  39. "M0011",
  40. "M0037",
  41. "M0029"),
  42. new Array("/root/init/prcpkindcd",
  43. "/root/init/prcpclscd",
  44. "/root/init/prcpstatcd",
  45. "/root/init/hosinprcpresncd",
  46. "/root/init/payflagcd"));
  47. submit("TRMMO00711");
  48. ]]>
  49. </script>
  50. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  51. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  52. <submission id="TRMMO00711" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prcp"/>
  53. <submission id="TXMMO00711" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/prcp/prcplist" resultref="/root/temp"/>
  54. </model>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  58. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  59. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  60. </xhtml:head>
  61. <xhtml:body pagewidth="1000" pageheight="460" guideline="2,314;">
  62. <datagrid id="grd_prcplist" nodeset="/root/main/prcp/prcplist" dragmode="true" dropmode="true" caption="^처방일시^처방의^입력자^환자번호^환자명^처방코드^처방명^1회용량^1회용량^1회수량^1회수량^횟수^일수^용법/검체^전달^상태^진료과^전문의" colsep="^" colwidth="35, 120, 70, 70, 70, 70, 80, 250, 40, 35, 35, 35, 40, 40, 106, 40, 60, 120, 70" dataheight="23" ellipsis="true" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" selectionmode="byrow" tooltip="true" navindex="1" style="left:7px; top:21px; width:986px; height:409px; focus-rect:hidden; ">
  63. <col checkvalue="Y,N" ref="ableyn" type="checkbox" style="left:0px; top:23px; width:38px; height:23px; text-align:center; word-wrap:word; "/>
  64. <col ref="rgstdt" format="yyyy-mm-dd hh:mm:ss" style="left:1163px; top:23px; width:100px; height:23px; text-align:center; "/>
  65. <col ref="rgstridnm" style="left:1263px; top:23px; width:100px; height:23px; text-align:center; "/>
  66. <col ref="fstrgstrnm" style="left:1263px; top:23px; width:100px; height:23px; text-align:center; "/>
  67. <col ref="pid" style="left:468px; top:23px; width:37px; height:23px; text-align:center; "/>
  68. <col ref="hngnm" style="left:468px; top:23px; width:37px; height:23px; text-align:center; "/>
  69. <col ref="prcpcd" type="output" style="left:93px; top:23px; width:80px; height:23px; text-align:left; "/>
  70. <col ref="prcpnm" style="left:173px; top:23px; width:250px; height:23px; text-align:left; "/>
  71. <col ref="drprcpetc7" style="left:423px; top:23px; width:45px; height:23px; text-align:center; "/>
  72. <col ref="prcpvolunitnm" style="left:468px; top:23px; width:37px; height:23px; text-align:center; "/>
  73. <col ref="drprcpetc8" style="left:423px; top:23px; width:45px; height:23px; text-align:center; "/>
  74. <col ref="prcpqtyunitnm" style="left:542px; top:23px; width:37px; height:23px; text-align:center; "/>
  75. <col ref="prcptims" style="left:579px; top:23px; width:40px; height:23px; text-align:center; "/>
  76. <col ref="prcpdayno" style="left:619px; top:23px; width:37px; height:23px; text-align:center; "/>
  77. <col checkvalue="Y,N" ref="drugmthdspccdnm" type="output" style="left:656px; top:23px; width:75px; height:23px; "/>
  78. <col ref="prcpdelivefact" style="left:813px; top:23px; width:40px; height:23px; "/>
  79. <col disabled="true" ref="prcpstatcd" type="combo" style="left:38px; top:23px; width:55px; height:23px; text-align:center; ">
  80. <choices>
  81. <itemset nodeset="/root/init/prcpstatcd/M0011">
  82. <label ref="cdnm"/>
  83. <value ref="cdid"/>
  84. </itemset>
  85. </choices>
  86. </col>
  87. <col ref="orddeptnm" style="left:173px; top:23px; width:250px; height:23px; text-align:left; "/>
  88. <col ref="orddrnm" style="left:468px; top:23px; width:37px; height:23px; text-align:center; "/>
  89. <script type="javascript" ev:event="onkeydown">
  90. <![CDATA[
  91. //back 버튼 누르면 닫힘
  92. if ( event.keyCode == 8 ) {
  93. window.close();
  94. }
  95. ]]>
  96. </script>
  97. </datagrid>
  98. <line id="line5" class="line_1" style="x1:7px; y1:17px; x2:992px; y2:18px; "/>
  99. <caption id="caption1" class="tit_2" style="left:12px; top:0px; width:171px; height:13px; ">구두처방확인</caption>
  100. <button id="btn_conf" class="btn4_letter8" visibility="visible" style="left:809px; top:435px; width:128px; height:22px; ">
  101. <caption>구두처방 인증저장</caption>
  102. <script type="javascript" ev:event="DOMActivate">
  103. <![CDATA[
  104. var nodeConf = instance1.selectSingleNode("/root/main/prcp/prcplist[ableyn='Y']/prcpdd");
  105. if(nodeConf == null) {
  106. messageBox ( "선택 된 구두처방이 없습니다.", "E999" );
  107. return;
  108. }
  109. submit("TXMMO00711")
  110. window.close();
  111. ]]>
  112. </script>
  113. </button>
  114. <button id="btn_close" class="btn4_letter2" visibility="visible" style="left:939px; top:435px; width:56px; height:22px; ">
  115. <caption>닫기</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. window.close();
  119. ]]>
  120. </script>
  121. </button>
  122. <bool id="bool1" visibility="visible" checkvalue="Y,N" ref="/root/main/cond/checkflag" style="left:11px; top:24px; width:30px; height:20px; ">
  123. <script type="javascript" ev:event="xforms-value-changed">
  124. <![CDATA[
  125. var ableyn = "";
  126. var checkflag = model.getValue("/root/main/cond/checkflag");
  127. if(checkflag == "Y"){
  128. for(var i = 1; i <= grd_prcplist.rows-1; i++){
  129. ableyn = model.getValue("/root/main/prcp/prcplist[" + i + "]/ableyn");
  130. if(ableyn != "Y"){
  131. model.setValue("/root/main/prcp/prcplist[" + i + "]/ableyn", "Y");
  132. }
  133. }
  134. } else {
  135. for(var i = 1; i <= grd_prcplist.rows-1; i++){
  136. ableyn = model.getValue("/root/main/prcp/prcplist[" + i + "]/ableyn");
  137. if(ableyn != "N"){
  138. model.setValue("/root/main/prcp/prcplist[" + i + "]/ableyn", "N");
  139. }
  140. }
  141. }
  142. grd_prcplist.refresh();
  143. ]]>
  144. </script>
  145. </bool>
  146. </xhtml:body>
  147. </xhtml:html>