SMADT30800_PMP관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>PMP관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <pmplist>
  11. <pmplist>
  12. <inptdd/>
  13. <prtlnm/>
  14. <prtldg/>
  15. <ht/>
  16. <wt/>
  17. <bsa/>
  18. <spcffact/>
  19. </pmplist>
  20. <patlist>
  21. <pid/>
  22. <hngnm/>
  23. <age/>
  24. <rgstno/>
  25. <roomcd/>
  26. <patcls/>
  27. <orddeptnm/>
  28. <orddrnm/>
  29. <indd/>
  30. <dschdd/>
  31. <inpath/>
  32. <hometel/>
  33. <addr/>
  34. </patlist>
  35. </pmplist>
  36. <pharlist>
  37. <pharlist>
  38. <writid/>
  39. <writnm/>
  40. </pharlist>
  41. </pharlist>
  42. </main>
  43. <init>
  44. </init>
  45. <send>
  46. <reqdata/>
  47. <savedata/>
  48. </send>
  49. <hidden>
  50. <userinfo>
  51. <userid/>
  52. <usernm/>
  53. </userinfo>
  54. </hidden>
  55. </root>
  56. </instance>
  57. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  60. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  61. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  62. <script type="javascript" ev:event="xforms-ready">
  63. <![CDATA[
  64. if(opener.javascript.getParameter("SMADT30800_pid") != "") {
  65. model.setValue("/root/main/pmplist/patlist/pid", opener.javascript.getParameter("SMADT30800_pid"));
  66. model.refresh();
  67. btn_req.dispatch("DOMActivate");
  68. }
  69. ]]>
  70. </script>
  71. <submission id="TRADT30801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/pmplist"/>
  72. <submission id="TRADT00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/usersrchinfo" replace="instance" resultref="/root/hidden/userinfo"/>
  73. <submission id="TXADT30801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/pmplist"/>
  74. <script type="javascript">
  75. <![CDATA[
  76. function fSetIBW(){
  77. var ht = model.getValue( "/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/ht")/100;
  78. if (model.getValue( "/root/main/pmplist/patlist/sex") =="M"){
  79. model.setValue ( "/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wt", 22* ht * ht );
  80. } else {
  81. model.setValue ( "/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wt", 21* ht * ht );
  82. }
  83. model.refresh();
  84. }
  85. function fCalcVol(){
  86. var kg = model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wt");
  87. bsa = Math.pow( (parseFloat( model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/ht") ) *parseFloat( kg ) /3600), 0.5);
  88. bsa= Math.round( bsa * 100) /100;
  89. model.setValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/bsa", bsa);
  90. model.refresh();
  91. }
  92. ]]>
  93. </script>
  94. </model>
  95. </xhtml:head>
  96. <xhtml:body pagewidth="900" pageheight="810" guideline="1,864;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  97. <caption id="caption6" class="tit_1" style="left:1px; top:0px; width:525px; height:13px; ">PMP관리</caption>
  98. <group id="group3" scroll="auto" style="left:3px; top:15px; width:867px; height:765px; ">
  99. <line id="line2" class="line_1" style="x1:1px; y1:18px; x2:864px; y2:18px; "/>
  100. <input id="ipt_writeid" ref="/root/main/pharlist/pharlist/writid" class="input_essential" autonext="false" maxlength="10" style="left:525px; top:38px; width:72px; height:19px; ">
  101. <script type="javascript" ev:event="onkeyup">
  102. <![CDATA[
  103. if(event.keyCode == "13") {
  104. setInputNodeCurText();
  105. if(model.getValue("/root/main/pharlist/pharlist/writid") != "") {
  106. var writid = model.getValue("/root/main/pharlist/pharlist/writid");
  107. model.makeValue("/root/send/usersrchinfo/srchuserid",writid);
  108. var success = submit("TRADT00105");
  109. if (success) {
  110. model.setValue("/root/main/pharlist/pharlist/writid", model.getValue("/root/main/pharlist/pharlist/writid"));
  111. model.setValue("/root/main/pharlist/pharlist/writnm",model.getValue("/root/hidden/userinfo/item/usernm"));
  112. model.refresh();
  113. // 반환된 약사정보(이름) 체크
  114. if(model.getValue("/root/main/pharlist/pharlist/writnm") != "") {
  115. btn_save.disabled = false;
  116. } else {
  117. messageBox("입력한 사번으로 이름 확인을", "E009");
  118. model.setFocus("ipt_writeid");
  119. btn_save.disabled = true;
  120. return;
  121. }
  122. }
  123. } else {
  124. messageBox("사번은", "I003");
  125. btn_save.disabled = true;
  126. return;
  127. }
  128. }
  129. ]]>
  130. </script>
  131. </input>
  132. <input id="ipt_writenm" ref="/root/main/pharlist/pharlist/writnm" class="output_fix" style="left:638px; top:38px; width:75px; height:19px; "/>
  133. <caption id="caption19" class="cell_1" style="left:600px; top:36px; width:35px; height:23px; vertical-align:middle; ">이름</caption>
  134. <caption id="caption21" class="cell_1" style="left:488px; top:36px; width:35px; height:23px; vertical-align:middle; ">사번</caption>
  135. <line id="line5" class="line_1" style="x1:1px; y1:216px; x2:864px; y2:216px; "/>
  136. <caption id="caption1" class="tit_2" style="left:2px; top:3px; width:82px; height:13px; ">환자정보</caption>
  137. <shape id="roundrect1" class="roundrect_btnset" appearance="roundrect" ellipseheight="20" el3lipsewidth="20" style="left:1px; top:23px; width:429px; height:182px; background-color:#f2fafe; border-color:#7cbbdd; "/>
  138. <output id="opt_hngnm" ref="/root/main/pmplist/patlist/hngnm" class="output_fix" appearance="output" style="left:88px; top:55px; width:80px; height:19px; "/>
  139. <caption id="caption10" class="cell_1" style="left:213px; top:77px; width:80px; height:23px; vertical-align:middle; ">환자분류</caption>
  140. <caption id="caption11" class="cell_1" style="left:5px; top:177px; width:80px; height:23px; vertical-align:middle; ">주소</caption>
  141. <caption id="caption3" class="cell_1" style="left:213px; top:52px; width:80px; height:23px; vertical-align:middle; ">주민번호</caption>
  142. <caption id="caption15" class="cell_1" style="left:5px; top:52px; width:80px; height:23px; vertical-align:middle; ">환자명</caption>
  143. <caption id="caption7" class="cell_1" style="left:5px; top:77px; width:80px; height:23px; vertical-align:middle; ">병실명</caption>
  144. <caption id="caption16" class="cell_1" style="left:5px; top:127px; width:80px; height:23px; vertical-align:middle; ">입원일</caption>
  145. <output id="opt_rgstno" ref="/root/main/pmplist/patlist/rgstno" class="output_fix" appearance="output" style="left:297px; top:55px; width:119px; height:19px; "/>
  146. <caption id="caption8" class="cell_1" style="left:5px; top:152px; width:80px; height:23px; vertical-align:middle; ">내원경로</caption>
  147. <caption id="caption17" class="cell_1" style="left:213px; top:127px; width:80px; height:23px; vertical-align:middle; ">퇴원일</caption>
  148. <caption id="caption18" class="cell_1" style="left:213px; top:152px; width:80px; height:23px; vertical-align:middle; ">전화번호</caption>
  149. <caption id="caption9" class="cell_1" style="left:5px; top:27px; width:80px; height:23px; vertical-align:middle; ">등록번호</caption>
  150. <output id="opt_addr" ref="/root/main/pmplist/patlist/addr" class="output_fix" appearance="output" style="left:88px; top:179px; width:329px; height:19px; "/>
  151. <caption id="caption2" class="cell_1" style="left:5px; top:102px; width:80px; height:23px; vertical-align:middle; ">진료과</caption>
  152. <caption id="caption4" class="cell_1" style="left:213px; top:102px; width:80px; height:23px; vertical-align:middle; ">진료의사</caption>
  153. <output id="opt_roomcd" ref="/root/main/pmplist/patlist/roomcd" class="output_fix" appearance="output" style="left:88px; top:80px; width:120px; height:19px; "/>
  154. <output id="opt_orddept" ref="/root/main/pmplist/patlist/orddeptnm" class="output_fix" appearance="output" style="left:88px; top:105px; width:120px; height:19px; "/>
  155. <output id="opt_patcls" ref="/root/main/pmplist/patlist/patcls" class="output_fix" appearance="output" style="left:297px; top:80px; width:120px; height:19px; "/>
  156. <output id="opt_indd" ref="/root/main/pmplist/patlist/indd" class="output_fix" appearance="output" style="left:88px; top:130px; width:120px; height:19px; "/>
  157. <output id="opt_chospath" ref="/root/main/pmplist/patlist/inpath" class="output_fix" appearance="output" style="left:88px; top:154px; width:120px; height:19px; "/>
  158. <output id="opt_orddrid" ref="/root/main/pmplist/patlist/orddrnm" class="output_fix" appearance="output" style="left:297px; top:105px; width:120px; height:19px; "/>
  159. <caption id="caption5" style="left:500px; top:70px; width:250px; height:28px; ">
  160. <![CDATA[사원번호를 입력하고 Enter Key를
  161. 눌러야 저장 Button이 활성화 됩니다.]]>
  162. </caption>
  163. <button id="btn_pnt" class="btn4_letter2" style="left:594px; top:110px; width:56px; height:22px; ">
  164. <caption>출력</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. exeReportPreview("RPADT30800", "XMLSTR", "RPADT30800", "", "true","","","","","false", "", "");
  168. ]]>
  169. </script>
  170. </button>
  171. <button id="btn_save" class="btn4_letter2" disabled="true" style="left:535px; top:110px; width:56px; height:22px; ">
  172. <caption>저장</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. model.makeValue("/root/send/savedata/pmplist", grid_pmplist.getUpdateData());
  176. /*model.makeValue("/root/send/savedata/sickclscd", model.getValue("/root/main/pmplist/patlist/sickclscd"));
  177. model.makeValue("/root/send/savedata/ioflag", model.getValue("/root/main/pmplist/patlist/ioflag"));
  178. model.makeValue("/root/send/savedata/orddeptcd", model.getValue("/root/main/pmplist/patlist/orddeptcd"));*/
  179. model.makeValue("/root/send/savedata/pid", model.getValue("/root/main/pmplist/patlist/pid"));
  180. model.makeValue("/root/send/savedata/writid", model.getValue("/root/main/pharlist/pharlist/writid"));
  181. submit("TXADT30801");
  182. ]]>
  183. </script>
  184. </button>
  185. <datagrid id="grid_pmplist" nodeset="/root/main/pmplist/pmplist" autoresize="true" caption="입력일자^프로토콜^차수^키(cm)^몸무게(kg)^몸무게(kg)^BSA^특이사항^pmpseqno^처리자" colsep="^" colwidth="85, 90, 75, 45, 50, 42, 55, 323, 0, 75" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:220px; width:864px; height:530px; ">
  186. <col ref="inptdd" type="inputdate" format="yyyy-mm-dd"/>
  187. <col ref="prtlnm" type="input" navindex="1"/>
  188. <col ref="prtldg" type="input"/>
  189. <col ref="ht" type="input" style="text-align:right; "/>
  190. <col ref="wtflag" type="combo">
  191. <choices>
  192. <item>
  193. <label>체중</label>
  194. <value>1</value>
  195. </item>
  196. <item>
  197. <label>IBW</label>
  198. <value>2</value>
  199. </item>
  200. </choices>
  201. </col>
  202. <col ref="wt" type="input" format="####.99" style="text-align:right; "/>
  203. <col ref="bsa" type="input" style="text-align:right; "/>
  204. <col ref="spcffact" type="input"/>
  205. <col ref="pmpseqno"/>
  206. <col ref="prcpid"/>
  207. <script type="javascript" ev:event="onkeyup">
  208. <![CDATA[
  209. if(event.keyCode == 13) {
  210. grid_pmplist.col = grid_pmplist.col+1;
  211. }
  212. ]]>
  213. </script>
  214. <script type="javascript" ev:event="onendedit">
  215. <![CDATA[
  216. if(model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wtflag") == "1") {
  217. if( model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wt") != "" && model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/ht") != "") {
  218. fCalcVol();
  219. }
  220. }
  221. if(model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wtflag") == "2") {
  222. if(model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/ht") != "") {
  223. fSetIBW();
  224. fCalcVol();
  225. }
  226. }
  227. ]]>
  228. </script>
  229. <script type="javascript" ev:event="xforms-value-changed">
  230. <![CDATA[
  231. if(model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wtflag") == "1") {
  232. if( model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wt") != "" && model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/ht") != "") {
  233. fCalcVol();
  234. }
  235. }
  236. if(model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wtflag") == "2") {
  237. if(model.getValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/ht") != "") {
  238. fSetIBW();
  239. fCalcVol();
  240. }
  241. }
  242. ]]>
  243. </script>
  244. </datagrid>
  245. <button id="btn_add" class="btn2_letter3" style="left:680px; top:195px; width:53px; height:19px; ">
  246. <caption>행추가</caption>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. grid_pmplist.addRow();
  250. model.setValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/inptdd", getCurrentDate());
  251. model.setValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wtflag", "1");
  252. grid_pmplist.refresh();
  253. ]]>
  254. </script>
  255. </button>
  256. <button id="btn_del" class="btn2_letter3" style="left:790px; top:195px; width:53px; height:19px; ">
  257. <caption>행삭제</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. grid_pmplist.addStatus(grid_pmplist.row, "delete");
  261. ]]>
  262. </script>
  263. </button>
  264. <button id="btn_inrt" class="btn2_letter3" style="left:735px; top:195px; width:53px; height:19px; ">
  265. <caption>행삽입</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. if(grid_pmplist.row != -1) {
  269. grid_pmplist.insertRow(grid_pmplist.row, "below");
  270. model.setValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/inptdd", getCurrentDate());
  271. model.setValue("/root/main/pmplist/pmplist["+ grid_pmplist.row +"]/wtflag", "1");
  272. grid_pmplist.refresh();
  273. }
  274. ]]>
  275. </script>
  276. </button>
  277. <input id="ipt_pid" ref="/root/main/pmplist/patlist/pid" style="left:88px; top:30px; width:120px; height:19px; ">
  278. <script type="javascript" ev:event="onkeyup">
  279. <![CDATA[
  280. if(event.keyCode == "13") {
  281. setInputNodeCurText();
  282. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/pmplist/patlist/pid"));
  283. submit("TRADT30801");
  284. }
  285. ]]>
  286. </script>
  287. </input>
  288. <output id="output1" ref="/root/main/pmplist/patlist/age" class="output_fix" appearance="output" style="left:171px; top:55px; width:37px; height:19px; "/>
  289. <button id="btn_req" visibility="hidden" style="left:215px; top:30px; width:55px; height:20px; ">
  290. <caption>button1</caption>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/pmplist/patlist/pid"));
  294. submit("TRADT30801");
  295. ]]>
  296. </script>
  297. </button>
  298. </group>
  299. <output id="opt_dschdd" ref="/root/main/pmplist/patlist/dschdd" class="output_fix" appearance="output" style="left:300px; top:144px; width:120px; height:19px; "/>
  300. <output id="opt_phno" ref="/root/main/pmplist/patlist/hometel" class="output_fix" appearance="output" style="left:300px; top:169px; width:120px; height:19px; "/>
  301. </xhtml:body>
  302. </xhtml:html>