SPMNR03300_투약시간관리.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. <drugmthdlist>
  11. <drugmthdlist>
  12. <mthdcd/>
  13. <drugmthdday/>
  14. <drugmthdtime/>
  15. <c_drugmthdday/>
  16. <c_drugmthdtime/>
  17. <medrexecflag/>
  18. </drugmthdlist>
  19. </drugmthdlist>
  20. <drugmthdinfo>
  21. <tims/>
  22. <abbrnm/>
  23. <s_interval/>
  24. <h_interval/>
  25. <m_interval/>
  26. <change_flag/>
  27. <drugtmspec/>
  28. <abbrcd/>
  29. <prcphopedd/>
  30. <indd/>
  31. <calctims/>
  32. </drugmthdinfo>
  33. </main>
  34. <send>
  35. <reqdata/>
  36. <savedata/>
  37. </send>
  38. <init/>
  39. <hidden>
  40. <param1/>
  41. <param2/>
  42. <rtn_param/>
  43. <mthdinfo>
  44. <pid/>
  45. <prcpdd/>
  46. <prcpno/>
  47. <prcphistno/>
  48. <execprcpno/>
  49. <carebasedd/>
  50. <carebasetm/>
  51. <prcpcd/>
  52. <execprcptims/>
  53. <carebasetmspec/>
  54. <status/>
  55. <execprcpuniqno/>
  56. </mthdinfo>
  57. </hidden>
  58. <temp>
  59. <timeinfo>
  60. <timelist>
  61. <timecd/>
  62. <timenm/>
  63. </timelist>
  64. </timeinfo>
  65. </temp>
  66. </root>
  67. </instance>
  68. <script type="javascript" ev:event="xforms-ready">
  69. <![CDATA[
  70. fInitialize();
  71. ]]>
  72. </script>
  73. <submission id="TXMNR03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden/message"/>
  74. <submission id="TRMNR03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/timeinfo"/>
  75. </model>
  76. <script type="javascript" src="../../../emr/caremedirecweb/js/SPMNR03300.js"/>
  77. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  82. </xhtml:head>
  83. <xhtml:body pagewidth="650" pageheight="510" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  84. <caption id="caption22" class="tit_2" style="left:5px; top:16px; width:100px; height:13px; ">투약시간 관리</caption>
  85. <caption id="caption13" class="cell_1" style="left:275px; top:337px; width:55px; height:23px; vertical-align:middle; ">시작</caption>
  86. <caption id="caption4" class="tit_2" style="left:280px; top:317px; width:100px; height:13px; ">Interval 지정</caption>
  87. <caption id="caption5" class="cell_1" style="left:397px; top:337px; width:55px; height:23px; vertical-align:middle; ">Interval</caption>
  88. <line id="line1" class="line_1" style="x1:0px; y1:266px; x2:270px; y2:266px; "/>
  89. <caption id="caption7" style="left:487px; top:338px; width:30px; height:20px; vertical-align:middle; ">시간</caption>
  90. <caption id="caption8" style="left:572px; top:338px; width:13px; height:20px; vertical-align:middle; ">분</caption>
  91. <line id="line4" class="line_1" style="x1:275px; y1:332px; x2:585px; y2:332px; "/>
  92. <line id="line5" class="line_3" style="x1:275px; y1:360px; x2:625px; y2:360px; "/>
  93. <caption id="caption1" style="left:554px; top:338px; width:23px; height:20px; vertical-align:middle; ">분</caption>
  94. <datagrid id="grd_mthd" nodeset="/root/main/drugmthdlist/drugmthdlist" caption="용법^기존^기존^변경^변경^구&#xA;분|용법^Day^기준시간^Day^기준시간^구&#xA;분" colsep="^" colwidth="0, 40, 70, 40, 70, 27" defaultrows="0" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" navindex="1" style="left:0px; top:270px; width:270px; height:220px; ">
  95. <col ref="mthdcd" type="output" visibility="hidden" style="text-align:center; "/>
  96. <col ref="drugmthdday" type="output" style="text-align:center; "/>
  97. <col ref="drugmthdtime" type="output" format="hh:nn" maxlength="4" style="text-align:center; "/>
  98. <col imemode="alpha" ref="c_drugmthdday" type="input" style="text-align:center; "/>
  99. <col autonext="false" imemode="alpha" ref="c_drugmthdtime" type="input" format="hh:nn" maxlength="4" style="text-align:center; "/>
  100. <col ref="medrexecflag" style="text-align:center; "/>
  101. <script type="javascript" ev:event="xforms-value-changed">
  102. <![CDATA[
  103. //----------------------------------------(20080927)
  104. // Day : -3~3
  105. // 기준시간 : 0~2400까지
  106. var pGrd = grd_mthd;
  107. var col = pGrd.col;
  108. var row = pGrd.row;
  109. //alert(pGrd.row);
  110. //시간
  111. if (col == pGrd.colRef("c_drugmthdday") ) {
  112. if ( pGrd.valueMatrix(row,col) < -3 ) {
  113. alert("Day는 -3 ~ 3 일 사이에 변경가능합니다");
  114. pGrd.valueMatrix(row,col) = "-3";
  115. model.refresh();
  116. return;
  117. }
  118. if ( pGrd.valueMatrix(row,col) > 3) {
  119. alert("Day는 -3 ~ 3 일 사이에 변경가능합니다");
  120. pGrd.valueMatrix(row,col) = "3";
  121. model.refresh();
  122. return;
  123. }
  124. }
  125. //time
  126. if (col == pGrd.colRef("c_drugmthdtime") ) {
  127. if ( pGrd.valueMatrix(row,col) < 0 ) {
  128. alert("기준시간은 0 ~ 2400 시간 사이에 변경가능합니다");
  129. pGrd.valueMatrix(row,col) = "0001";
  130. model.refresh();
  131. return;
  132. }
  133. // if (pGrd.valueMatrix(row,col) = "0000")
  134. // pGrd.valueMatrix(row,col) = "0001";
  135. if ( pGrd.valueMatrix(row,col) > 2400 ) {
  136. alert("기준시간은 0 ~ 2400 시간 사이에 변경가능합니다");
  137. pGrd.valueMatrix(row,col) = "2400";
  138. model.refresh();
  139. return;
  140. }
  141. }
  142. //----------------------------------------(20080927)
  143. grd_mthd.row = grd_mthd.row + 1;
  144. grd_mthd.dispatch("onentercell")
  145. ]]>
  146. </script>
  147. </datagrid>
  148. <output id="opt_tims" ref="/root/main/drugmthdinfo/tims" style="left:57px; top:38px; width:25px; height:19px; text-align:left; vertical-align:middle; "/>
  149. <output id="opt_mthd" ref="/root/main/drugmthdinfo/abbrnm" visibility="hidden" style="left:460px; top:65px; width:168px; height:19px; text-align:left; vertical-align:middle; "/>
  150. <input id="ipt_hinterval" ref="/root/main/drugmthdinfo/h_interval" class="input_default" navindex="3" imemode="alpha" maxlength="2" style="left:455px; top:338px; width:30px; height:19px; text-align:center; "/>
  151. <input id="ipt_sinterval" ref="/root/main/drugmthdinfo/s_interval" class="input_default" navindex="2" imemode="alpha" format="hh:nn" style="left:333px; top:338px; width:60px; height:19px; text-align:center; "/>
  152. <input id="ipt_minterval" ref="/root/main/drugmthdinfo/m_interval" class="input_default" navindex="4" imemode="alpha" maxlength="2" style="left:520px; top:338px; width:30px; height:19px; text-align:center; "/>
  153. <button id="btn_save" class="btn5_letter2" navindex="7" style="left:225px; top:245px; width:42px; height:19px; ">
  154. <caption>저장</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. fSaveDrugmthd();
  158. ]]>
  159. </script>
  160. </button>
  161. <button id="btn_interval" class="btn2_letter2" navindex="7" style="left:580px; top:312px; width:42px; height:19px; ">
  162. <caption>반영</caption>
  163. <script type="javascript" ev:event="DOMActivate">
  164. <![CDATA[
  165. fSaveInterval();
  166. ]]>
  167. </script>
  168. </button>
  169. <caption id="caption3" class="tit_2" style="left:280px; top:317px; width:100px; height:13px; ">Interval 지정</caption>
  170. <line id="line2" class="line_1" style="x1:275px; y1:332px; x2:625px; y2:332px; "/>
  171. <button id="button1" class="btn2_letter2" navindex="7" style="left:580px; top:245px; width:42px; height:19px; ">
  172. <caption>반영</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. fTimeApply();
  176. ]]>
  177. </script>
  178. </button>
  179. <line id="line3" class="line_1" style="x1:275px; y1:265px; x2:625px; y2:265px; "/>
  180. <select1 id="cmb_mthd" ref="/root/main/drugmthdinfo/drugtmspec" class="combo_search" navindex="1" appearance="minimal" style="left:276px; top:271px; width:305px; height:19px; ">
  181. <choices>
  182. <itemset nodeset="/root/temp/timeinfo/timelist">
  183. <label ref="timenm"/>
  184. <value ref="timecd"/>
  185. </itemset>
  186. </choices>
  187. </select1>
  188. <caption id="caption9" class="cell_1" style="left:0px; top:37px; width:55px; height:23px; vertical-align:middle; ">횟수 :</caption>
  189. <output id="output1" ref="/root/main/drugmthdinfo/abbrcd" visibility="hidden" style="left:280px; top:65px; width:90px; height:19px; text-align:left; vertical-align:middle; "/>
  190. <line id="line6" class="line_3" style="x1:0px; y1:60px; x2:625px; y2:60px; "/>
  191. <line id="line7" class="line_3" style="x1:277px; y1:291px; x2:625px; y2:291px; "/>
  192. <line id="line8" class="line_1" style="x1:0px; y1:32px; x2:625px; y2:32px; "/>
  193. <output id="out_prcphopedd" ref="/root/main/drugmthdinfo/prcphopedd" visibility="hidden" style="left:372px; top:65px; width:85px; height:19px; text-align:left; vertical-align:middle; "/>
  194. <caption id="caption10" class="cell_1" style="left:105px; top:37px; width:49px; height:23px; vertical-align:middle; ">입원일</caption>
  195. <output id="out_indd" ref="/root/main/drugmthdinfo/indd" visibility="visible" style="left:155px; top:38px; width:90px; height:19px; text-align:left; vertical-align:middle; "/>
  196. <caption id="caption2" class="tit_2" style="left:0px; top:250px; width:100px; height:13px; ">시간대 정보</caption>
  197. <caption id="caption11" class="tit_2" style="left:0px; top:83px; width:100px; height:13px; ">처방리스트</caption>
  198. <line id="line10" class="line_1" style="x1:0px; y1:98px; x2:625px; y2:98px; "/>
  199. <datagrid id="grd_prcplist" nodeset="/root/hidden/param1/list" caption="처방코드^처방명^용법명^처방적용일^" colsep="^" colwidth="93, 258, 172, 77" defaultrows="0" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" navindex="1" style="left:0px; top:103px; width:625px; height:130px; ">
  200. <col ref="prcpcd" type="output" style="text-align:left; "/>
  201. <col ref="prcpnm" type="output" style="text-align:left; "/>
  202. <col ref="drugmthdspccd" type="output" style="text-align:left; "/>
  203. <col ref="prcphopedd" type="output" style="text-align:center; "/>
  204. </datagrid>
  205. <line id="line9" class="line_3" style="x1:270px; y1:269px; x2:270px; y2:491px; "/>
  206. <caption id="caption12" class="tit_2" style="left:278px; top:249px; width:100px; height:13px; ">공통 지정</caption>
  207. </xhtml:body>
  208. </xhtml:html>