SMADC01100_TDM회신결과입력.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <baseinfo>
  11. <patinfolist>
  12. <pid/>
  13. <hngnm/>
  14. <sex/>
  15. <age/>
  16. </patinfolist>
  17. <tdminfolist>
  18. <gubun/>
  19. <replrsltflag/>
  20. <testcd/>
  21. <repldd/>
  22. <cnstcnts/>
  23. <recmregmcnts/>
  24. <prestregmcnts/>
  25. <cmt/>
  26. <trghbcoldt/>
  27. <peakbcoldt/>
  28. <trghblodconcen/>
  29. <peakblodconcen/>
  30. <tjudgrslt/>
  31. <pjudgrslt/>
  32. <rgstseqno/>
  33. <formrecseq/>
  34. <pid/>
  35. </tdminfolist>
  36. </baseinfo>
  37. <tdminfo>
  38. </tdminfo>
  39. </main>
  40. <send>
  41. <pid/>
  42. <req>
  43. <data/>
  44. </req>
  45. <replrsltflag/>
  46. <replrsltnoflag/>
  47. </send>
  48. <init>
  49. <tdmrslt/>
  50. <tdmrsltno/>
  51. <formflag>TDM</formflag>
  52. </init>
  53. <hidden/>
  54. </root>
  55. </instance>
  56. <submission id="TRADB00001"/>
  57. <submission id="TRADC01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/baseinfo"/>
  58. <submission id="TXADC01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. pharmacyGetCodeList( new Array("TDM1","TDM2"), new Array("/root/init/tdmrslt","/root/init/tdmrsltno") );
  62. model.refresh();
  63. ]]>
  64. </script>
  65. </model>
  66. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  71. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  72. <script type="javascript" src="../../../ast/pharmacybaseweb/js/pharmacycombolist.js"/>
  73. </xhtml:head>
  74. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  75. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  76. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">TDM회신결과입력</caption>
  77. </group>
  78. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  79. <output id="output6" ref="/root/main/baseinfo/patinfolist/sex" class="output_fix" style="left:530px; top:35px; width:50px; height:19px; "/>
  80. <output id="output7" ref="/root/main/baseinfo/patinfolist/hngnm" class="output_fix" style="left:300px; top:35px; width:150px; height:19px; "/>
  81. <caption id="caption52" class="cell_1" style="left:0px; top:35px; width:70px; height:23px; vertical-align:middle; ">등록번호</caption>
  82. <caption id="caption31" class="cell_1" style="left:585px; top:35px; width:40px; height:23px; vertical-align:middle; ">나이</caption>
  83. <caption id="caption12" class="cell_1" style="left:690px; top:35px; width:70px; height:23px; vertical-align:middle; ">회신결과</caption>
  84. <line id="line27" class="line_3" style="x1:0px; y1:57px; x2:1194px; y2:57px; "/>
  85. <caption id="caption25" class="cell_1" style="left:225px; top:35px; width:70px; height:23px; vertical-align:middle; ">성명</caption>
  86. <caption id="caption14" class="tit_2" style="left:5px; top:65px; width:260px; height:14px; ">환자약동학 자료등록 (회신자료)</caption>
  87. <caption id="caption16" class="cell_1" style="left:455px; top:35px; width:70px; height:23px; vertical-align:middle; ">성별</caption>
  88. <line id="line3" class="line_1" style="x1:0px; y1:30px; x2:1194px; y2:30px; "/>
  89. <caption id="caption7" class="tit_2" style="left:5px; top:10px; width:144px; height:13px; ">환자정보</caption>
  90. <line id="line4" class="line_1" style="x1:0px; y1:80px; x2:1194px; y2:80px; "/>
  91. <line id="line5" class="line_3" style="x1:0px; y1:735px; x2:1194px; y2:735px; "/>
  92. <output id="output1" ref="/root/main/baseinfo/patinfolist/age" class="output_fix" style="left:630px; top:35px; width:55px; height:19px; "/>
  93. <input id="output3" ref="/root/main/baseinfo/patinfolist/pid" class="input_s_essential" style="left:75px; top:35px; width:145px; height:19px; ">
  94. <script type="javascript" ev:event="onkeydown">
  95. <![CDATA[
  96. inputEnterKey("btn_sea","DOMActivate");
  97. ]]>
  98. </script>
  99. </input>
  100. <select1 id="combo4" ref="/root/send/replrsltflag" class="combo_essential" appearance="minimal" cellspacing="5" showvalue="true" style="left:765px; top:35px; width:130px; height:19px; ">
  101. <choices>
  102. <itemset nodeset="/root/init/tdmrslt/TDM1">
  103. <label ref="cdnm"/>
  104. <value ref="cdid"/>
  105. </itemset>
  106. </choices>
  107. <script type="javascript" ev:event="xforms-select">
  108. <![CDATA[
  109. for(var i = 0; i < grd_tdmlist.selectedRows; i++) {
  110. var col = grd_tdmlist.colRef ("replrsltflag");
  111. grd_tdmlist.valueMatrix (grd_tdmlist.selectedRow(i),2) = model.getValue("/root/send/replrsltflag");
  112. grd_tdmlist.addStatus(grd_tdmlist.selectedRow(i), "update");
  113. }
  114. if (i <1) {
  115. messageBox("회신내역을 선택후 확인하시기 바랍니다","I");
  116. }
  117. model.refresh();
  118. ]]>
  119. </script>
  120. </select1>
  121. <button id="btn_sea" class="btn1_letter2" visibility="visible" style="left:175px; top:5px; width:56px; height:22px; ">
  122. <caption>조회</caption>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. model.setValue("/root/send/pid",model.getValue("/root/main/baseinfo/patinfolist/pid"));
  126. submit("TRADC01101");
  127. model.refresh();
  128. ]]>
  129. </script>
  130. </button>
  131. <datagrid id="grd_tdmlist" nodeset="/root/main/baseinfo/tdminfolist[gubun = 'N']" scroll="auto" backcoloralternate="#f0f0f0" caption="회신구분^회신결과^약물명^회신일^자문내용^추천 Regimen^현재 Regimen^참고사항^채혈일(Trough)^채혈일(Peak)^농도(Trough)^농도(Peak)^판정결과(Trough)^판정결과(Peak)^rgstseqno^formrecseq^pid" colsep="^" colwidth="100, 127, 177, 90, 98, 158, 153, 140, 113, 112, 108, 100, 131, 118, 100, 102, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:85px; width:1194px; height:360px; ">
  132. <col ref="gubun" visibility="hidden"/>
  133. <col ref="replrsltflag" type="combo">
  134. <choices>
  135. <itemset nodeset="/root/init/tdmrslt/TDM1">
  136. <label ref="cdnm"/>
  137. <value ref="cdid"/>
  138. </itemset>
  139. </choices>
  140. </col>
  141. <col ref="testcd"/>
  142. <col ref="repldd" format="yyyy-mm-dd" style="text-align:center; "/>
  143. <col ref="cnstcnts" style="text-align:center; "/>
  144. <col ref="recmregmcnts"/>
  145. <col ref="prestregmcnts"/>
  146. <col ref="cmt"/>
  147. <col ref="trghbcoldt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  148. <col ref="peakbcoldt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  149. <col ref="trghblodconcen" style="text-align:center; "/>
  150. <col ref="peakblodconcen" style="text-align:center; "/>
  151. <col ref="tjudgrslt" style="text-align:center; "/>
  152. <col ref="pjudgrslt" style="text-align:center; "/>
  153. <col ref="rgstseqno" visibility="hidden"/>
  154. <col ref="formrecseq"/>
  155. <col ref="pid"/>
  156. <script type="javascript" ev:event="onclick">
  157. <![CDATA[
  158. ]]>
  159. </script>
  160. </datagrid>
  161. <group id="group2" scroll="auto" style="left:250px; top:0px; width:944px; height:29px; ">
  162. <button id="button1" class="btn4_letter4" style="left:786px; top:5px; width:80px; height:22px; ">
  163. <caption>저장취소</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. if ( messageBox("[저장취소] ","Q004")==6 ) {
  167. for(var i = 0; i < grd_tdmlist.selectedRows; i++) {
  168. var col = grd_tdmlist.colRef ("replrsltflag");
  169. grd_tdmlist.valueMatrix (grd_tdmlist.selectedRow(i),col) = "";
  170. grd_tdmlist.addStatus(grd_tdmlist.selectedRow(i), "update");
  171. }
  172. for(var i = 0; i < grd_tdmlist2.selectedRows; i++) {
  173. var col = grd_tdmlist2.colRef ("replrsltflag");
  174. grd_tdmlist2.valueMatrix (grd_tdmlist2.selectedRow(i), col ) = "";
  175. grd_tdmlist2.addStatus(grd_tdmlist2.selectedRow(i), "update");
  176. }
  177. var update = getGridUpdateData(grd_tdmlist) + getGridUpdateData(grd_tdmlist2);
  178. if (update == "") {
  179. messageBox("업데이트 정보가 없습니다.", "I");
  180. return 0;
  181. } else {
  182. model.setValue("/root/send/req/data", update); //회신자료/ 회신제외자료 회신결과 Update
  183. submit("TXADC01101"); //회신자료/ 회신제외자료 회신결과 Update
  184. submit("TRADC01101"); //데이타 재 조회
  185. model.refresh();
  186. }
  187. }
  188. ]]>
  189. </script>
  190. </button>
  191. <button id="btn_cle" class="btn4_letter3" style="left:867px; top:5px; width:68px; height:22px; ">
  192. <caption>초기화</caption>
  193. <script type="javascript" ev:event="DOMActivate">
  194. <![CDATA[
  195. grd_tdmlist.rebuild(); //선택 내용 Clear
  196. grd_tdmlist2.rebuild(); //선택 내용 Clear
  197. submit("TRADC01101");
  198. ]]>
  199. </script>
  200. </button>
  201. <button id="btn_save" class="btn4_letter2" style="left:728px; top:5px; width:56px; height:22px; ">
  202. <caption>저장</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. if ( messageBox("","Q002")==6 ) {
  206. var update = getGridUpdateData(grd_tdmlist) + getGridUpdateData(grd_tdmlist2);
  207. if (update == "") {
  208. messageBox("업데이트 정보가 없습니다.", "I");
  209. return 0;
  210. } else {
  211. model.setValue("/root/send/req/data", update); //회신자료/ 회신제외자료 회신결과 Update
  212. submit("TXADC01101");
  213. }
  214. submit("TRADC01101");
  215. }
  216. ]]>
  217. </script>
  218. </button>
  219. </group>
  220. <caption id="caption1" class="cell_1" style="left:910px; top:35px; width:90px; height:23px; vertical-align:middle; ">회신제외내용</caption>
  221. <select1 id="combo1" ref="/root/send/replrsltnoflag" class="combo_essential" appearance="minimal" cellspacing="5" showvalue="true" style="left:1005px; top:35px; width:140px; height:19px; ">
  222. <choices>
  223. <itemset nodeset="/root/init/tdmrsltno/TDM2">
  224. <label ref="cdnm"/>
  225. <value ref="cdid"/>
  226. </itemset>
  227. </choices>
  228. <script type="javascript" ev:event="xforms-select">
  229. <![CDATA[
  230. for(var i = 0; i < grd_tdmlist2.selectedRows; i++) {
  231. var col = grd_tdmlist2.colRef ("replrsltflag");
  232. grd_tdmlist2.valueMatrix (grd_tdmlist2.selectedRow(i),2) = model.getValue("/root/send/replrsltnoflag");
  233. grd_tdmlist2.addStatus(grd_tdmlist2.selectedRow(i), "update");
  234. }
  235. if (i <1) {
  236. messageBox("회신제외 내역을 선택후 확인하시기 바랍니다","I");
  237. }
  238. model.refresh();
  239. ]]>
  240. </script>
  241. </select1>
  242. <caption id="caption2" class="tit_2" style="left:5px; top:454px; width:260px; height:14px; ">환자약동학 자료등록 (회신제외자료)</caption>
  243. <datagrid id="grd_tdmlist2" nodeset="/root/main/baseinfo/tdminfolist[gubun = 'Y']" scroll="auto" backcoloralternate="#f0f0f0" caption="회신구분^회신제외사유^약물명^회신일^자문내용^추천 Regimen^현재 Regimen^참고사항^채혈일(Trough)^채혈일(Peak)^농도(Trough)^농도(Peak)^판정결과(Trough)^판정결과(Peak)^rgstseqno^formrecseq^pid^formrecseq" colsep="^" colwidth="100, 129, 173, 87, 112, 158, 153, 140, 113, 116, 108, 100, 131, 118, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:475px; width:1194px; height:261px; ">
  244. <col ref="gubun" visibility="hidden"/>
  245. <col ref="replrsltflag" type="combo">
  246. <choices>
  247. <itemset nodeset="/root/init/tdmrsltno/TDM2">
  248. <label ref="cdnm"/>
  249. <value ref="cdid"/>
  250. </itemset>
  251. </choices>
  252. </col>
  253. <col ref="testcd"/>
  254. <col ref="repldd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  255. <col ref="cnstcnts" style="text-align:center; "/>
  256. <col ref="recmregmcnts"/>
  257. <col ref="prestregmcnts"/>
  258. <col ref="cmt"/>
  259. <col ref="trghbcoldt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  260. <col ref="peakbcoldt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  261. <col ref="trghblodconcen" style="text-align:center; "/>
  262. <col ref="peakblodconcen" style="text-align:center; "/>
  263. <col ref="tjudgrslt" style="text-align:center; "/>
  264. <col ref="pjudgrslt" style="text-align:center; "/>
  265. <col ref="rgstseqno" visibility="hidden"/>
  266. <col ref="formrecseq"/>
  267. <col ref="pid"/>
  268. </datagrid>
  269. <button id="button3" class="btn2_letter2" style="left:1140px; top:60px; width:42px; height:19px; ">
  270. <caption>엑셀</caption>
  271. <script type="javascript" ev:event="DOMActivate">
  272. <![CDATA[
  273. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  274. grd_tdmlist.saveExcel(file);
  275. ]]>
  276. </script>
  277. </button>
  278. <button id="button4" class="btn2_letter2" style="left:1140px; top:450px; width:42px; height:19px; ">
  279. <caption>엑셀</caption>
  280. <script type="javascript" ev:event="DOMActivate">
  281. <![CDATA[
  282. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  283. grd_tdmlist2.saveExcel(file);
  284. ]]>
  285. </script>
  286. </button>
  287. </group>
  288. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  289. <button id="button2" class="btn3_letter4" style="left:5px; top:5px; width:116px; height:22px; ">
  290. <caption>코드관리</caption>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. open("SMADC03200",0,0,0,"SMADC03200","/root/init/formflag","/root/init/formflag");
  294. ]]>
  295. </script>
  296. </button>
  297. <button id="button6" class="btn3_letter8" style="left:95px; top:5px; width:128px; height:22px; ">
  298. <caption>TDM회신내용조회</caption>
  299. <script type="javascript" ev:event="DOMActivate">
  300. <![CDATA[
  301. open("SMADC03400 ");
  302. ]]>
  303. </script>
  304. </button>
  305. </group>
  306. </xhtml:body>
  307. </xhtml:html>