SPMMO10900_Therapy일정관리.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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>Therapy일정관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <therpinfo>
  11. <therplist>
  12. <genrdd/>
  13. <genrno/>
  14. <rsrvdd/>
  15. <hngnm/>
  16. <pid/>
  17. <wardcd/>
  18. <roomcd/>
  19. <orddeptcd/>
  20. <orddrid/>
  21. <doseval/>
  22. </therplist>
  23. </therpinfo>
  24. <cond>
  25. <fromdd/>
  26. <todd/>
  27. <wardcd/>
  28. <pid/>
  29. <hngnm/>
  30. </cond>
  31. <patinfo>
  32. <patinfolist>
  33. <pid/>
  34. <hngnm/>
  35. </patinfolist>
  36. </patinfo>
  37. <iptbox>
  38. <wardcd/>
  39. <roomcd/>
  40. </iptbox>
  41. <popupendflag/>
  42. </main>
  43. <send>
  44. <reqdata/>
  45. <savedata/>
  46. </send>
  47. <hidden>
  48. <srchcond/>
  49. <pid/>
  50. <hngnm/>
  51. <rrgstno1/>
  52. <rrgstno2/>
  53. <newElement/>
  54. </hidden>
  55. <init>
  56. <today/>
  57. <roomlist/>
  58. </init>
  59. <temp/>
  60. </root>
  61. </instance>
  62. <script type="javascript" ev:event="xforms-ready">
  63. <![CDATA[
  64. fInitialize_SPMMO10900();
  65. ]]>
  66. </script>
  67. <script type="javascript" ev:event="xforms-model-construct-done">
  68. <![CDATA[
  69. group1.attribute("height") = 0;
  70. ]]>
  71. </script>
  72. <submission id="TRMMO04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  73. <submission id="TRMMO04104" mediatype="application/x-www-form-urlencoded" method="post"/>
  74. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  75. <submission id="TRMMO04106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/wardlist"/>
  76. <submission id="TRMMO04107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/roomlist"/>
  77. <submission id="TXMMO10901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/therpinfo"/>
  78. <submission id="TRMMO10901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/therpinfo"/>
  79. <bind id="bind1" ref="/root/main/therpinfo/therplist/rsrvdd" readonly="../pid != ''"/>
  80. </model>
  81. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  84. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  85. <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO10900.js"/>
  86. </xhtml:head>
  87. <xhtml:body pagewidth="819" pageheight="791" guideline="1,1194;1,1218;2,783;2,10;1,803;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  88. <caption id="caption22" class="tit_2" style="left:1px; top:48px; width:181px; height:14px; ">I-131 Therapy 일정</caption>
  89. <line id="line1" class="line_1" style="x1:0px; y1:63px; x2:803px; y2:63px; "/>
  90. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:803px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
  91. <button id="btn_req" class="btn1_letter2" style="left:740px; top:10px; width:56px; height:22px; ">
  92. <caption>조회</caption>
  93. <script type="javascript" ev:event="DOMActivate">
  94. <![CDATA[
  95. fReqTherapyInfo();
  96. ]]>
  97. </script>
  98. </button>
  99. <line id="line3" style="x1:725px; y1:8px; x2:725px; y2:35px; border-color:#ffe4bb; border-left-style:solid; "/>
  100. <caption id="caption1" class="search_name" style="left:5px; top:11px; width:91px; height:17px; ">조회기간 :</caption>
  101. <input id="input1" ref="/root/main/cond/fromdd" inputtype="date" style="left:95px; top:10px; width:85px; height:19px; "/>
  102. <input id="input2" ref="/root/main/cond/todd" inputtype="date" style="left:201px; top:10px; width:85px; height:19px; "/>
  103. <caption id="caption2" style="left:185px; top:11px; width:20px; height:20px; ">~</caption>
  104. <caption id="caption4" class="search_name" style="left:515px; top:11px; width:91px; height:17px; ">성 명 :</caption>
  105. <input id="input3" ref="/root/main/cond/hngnm" disabled="true" style="left:600px; top:10px; width:85px; height:19px; ">
  106. <script type="javascript" ev:event="onkeypress">
  107. <![CDATA[
  108. ]]>
  109. </script>
  110. </input>
  111. <caption id="caption5" class="search_name" style="left:322px; top:10px; width:91px; height:17px; ">등록번호 :</caption>
  112. <input id="input4" ref="/root/main/cond/pid" style="left:413px; top:10px; width:88px; height:19px; ">
  113. <script type="javascript" ev:event="onkeypress">
  114. <![CDATA[
  115. inputEnterKey("btn_srchpatnm", "DOMActivate");
  116. ]]>
  117. </script>
  118. </input>
  119. <button id="btn_getpatinfo" class="icon_search" style="left:687px; top:11px; width:16px; height:16px; ">
  120. <caption/>
  121. <script type="javascript" ev:event="DOMActivate">
  122. <![CDATA[
  123. modal("SPPMC02500");
  124. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  125. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  126. model.setValue("/root/main/cond/pid", sPid);
  127. model.setValue("/root/main/cond/hngnm", sHngnm);
  128. model.refresh();
  129. ]]>
  130. </script>
  131. </button>
  132. <datagrid id="grd_therapy" nodeset="/root/main/therpinfo/therplist" caption="genrdd^genrno^일자^성 명^등록번호^진료과^병실^의사ID^의사ID^의사명^Dose(mCi)^Dose(mCi)" colsep="^" colwidth="0, 0, 100, 104, 116, 161, 104, 0, 0, 99, 100" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:68px; width:803px; height:715px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  133. <col ref="genrdd"/>
  134. <col ref="genrno"/>
  135. <col ref="rsrvdd" type="inputdate"/>
  136. <col ref="hngnm" type="inputbutton"/>
  137. <col ref="pid" type="input"/>
  138. <col ref="orddeptcd" type="combo">
  139. <choices>
  140. <itemset nodeset="/root/init/deptlist/orddept">
  141. <label ref="deptnm"/>
  142. <value ref="deptcd"/>
  143. </itemset>
  144. </choices>
  145. </col>
  146. <col ref="roomcd" type="combo" style="text-align:center; ">
  147. <choices>
  148. <itemset nodeset="/root/init/roomlist/roomlist">
  149. <label ref="roomnm"/>
  150. <value ref="roomcd"/>
  151. </itemset>
  152. </choices>
  153. </col>
  154. <col ref="orddrid"/>
  155. <col ref="orddrnm"/>
  156. <col imemode="disabled" ref="orddrnm" format="#"/>
  157. <col imemode="disabled" ref="doseval" type="input" format="#"/>
  158. <script type="javascript" ev:event="onkeypress">
  159. <![CDATA[
  160. if(event.keyCode == 13){
  161. btn_grdpatinfo.dispatch("DOMActivate");
  162. }
  163. ]]>
  164. </script>
  165. <script type="javascript" ev:event="onbuttonclick">
  166. <![CDATA[
  167. var iCol = grd_therapy.col;
  168. if(iCol != 3){
  169. fClkGrdInptBtn();
  170. }
  171. ]]>
  172. </script>
  173. </datagrid>
  174. <group id="group1" style="left:335px; top:116px; width:411px; height:170px; border-color:transparent; border-style:none; ">
  175. <caption id="caption3" class="tit_2" style="left:1px; top:0px; width:144px; height:13px; ">환자정보</caption>
  176. <line id="line2" class="line_1" style="x1:1px; y1:14px; x2:409px; y2:14px; "/>
  177. <datagrid id="grd_patinfopopup" nodeset="/root/init/patnm/patnm" caption="등록번호^성 명^진료과^진료의^진료과코드^의사코드" colsep="^" colwidth="107, 100, 100, 100, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:19px; width:409px; height:121px; ">
  178. <col ref="pid"/>
  179. <col ref="hngnm"/>
  180. <col ref="deptnm"/>
  181. <col ref="drnm"/>
  182. <col ref="deptcd"/>
  183. <col ref="drid"/>
  184. <script type="javascript" ev:event="ondblclick">
  185. <![CDATA[
  186. fClkCfrmBtn();
  187. ]]>
  188. </script>
  189. </datagrid>
  190. <button id="button1" class="btn2_letter2" style="left:320px; top:142px; width:42px; height:19px; ">
  191. <caption>확인</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. fClkCfrmBtn();
  195. ]]>
  196. </script>
  197. </button>
  198. <button id="button2" class="btn2_letter2" style="left:364px; top:142px; width:42px; height:19px; ">
  199. <caption>취소</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. fClkCnClBtn();
  203. ]]>
  204. </script>
  205. </button>
  206. </group>
  207. <button id="btn_srchpatnm" disabled="true" style="left:460px; top:10px; width:50px; height:20px; ">
  208. <caption/>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. reqPatInfo("pid", model.getValue("/root/main/cond/pid"), "ptbs");
  212. model.setValue("/root/main/cond/hngnm", model.getValue("/root/init/patnm/patnm/hngnm"));
  213. model.refresh();
  214. ]]>
  215. </script>
  216. </button>
  217. <button id="btn_grdpatinfo" disabled="true" style="left:567px; top:41px; width:100px; height:20px; ">
  218. <caption/>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. var iPidCol = grd_therapy.colRef("pid");
  222. var iNmCol = grd_therapy.colRef("hngnm");
  223. var iCol = grd_therapy.col;
  224. var iRow =grd_therapy.row;
  225. if(iCol == iPidCol){ //등록번호 조회
  226. //reqPatInfo(paramFlag, tblFlag, param, param2)
  227. fReqPatInfo("pid", model.getValue(sTHERPLIST_PATH + "[" + iRow + "]/pid"), model.getValue(sTHERPLIST_PATH + "[" + iRow + "]/rsrvdd"));
  228. }else if(iCol == iNmCol){ //환자명 조회
  229. fReqPatInfo("hngnm", model.getValue(sTHERPLIST_PATH + "[" + iRow + "]/hngnm"), model.getValue(sTHERPLIST_PATH + "[" + iRow + "]/rsrvdd"));
  230. }
  231. model.recalculate();
  232. ]]>
  233. </script>
  234. </button>
  235. <button id="btn_save" class="btn2_letter2" style="left:759px; top:42px; width:42px; height:19px; ">
  236. <caption>저장</caption>
  237. <script type="javascript" ev:event="DOMActivate">
  238. <![CDATA[
  239. fSaveTherapyInfo();
  240. ]]>
  241. </script>
  242. </button>
  243. <button id="btn_add" class="btn2_letter2" style="left:671px; top:42px; width:42px; height:19px; ">
  244. <caption>추가</caption>
  245. <script type="javascript" ev:event="DOMActivate">
  246. <![CDATA[
  247. fAddRow();
  248. ]]>
  249. </script>
  250. </button>
  251. <button id="btn_del" class="btn2_letter2" style="left:715px; top:42px; width:42px; height:19px; ">
  252. <caption>삭제</caption>
  253. <script type="javascript" ev:event="DOMActivate">
  254. <![CDATA[
  255. fDelRow();
  256. ]]>
  257. </script>
  258. </button>
  259. </xhtml:body>
  260. </xhtml:html>