SMADC03300_ADR과거력조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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>ADR과거력조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <adrpasthistlist>
  11. <adrpasthistinfo>
  12. <pid/>
  13. <pathngnm/>
  14. <inptdd/>
  15. <resndrugcd/>
  16. <symp/>
  17. <casrslt/>
  18. <sympmnftdd/>
  19. <orddeptnm/>
  20. <clsflag/>
  21. <cmt/>
  22. <rgstrnm/>
  23. <grupjoblncd/>
  24. </adrpasthistinfo>
  25. </adrpasthistlist>
  26. </main>
  27. <send>
  28. <srchfromdd/>
  29. <srchtodd/>
  30. <deptflag/>
  31. <srchorddept/>
  32. <srchdrugcd/>
  33. <srchpid/>
  34. <srchwardcd/>
  35. <srchreqdeptlist/>
  36. </send>
  37. <init>
  38. <orddept>
  39. <dept>
  40. <deptcd/>
  41. <deptnm/>
  42. </dept>
  43. </orddept>
  44. <deptlist>
  45. <ward>
  46. <deptcd/>
  47. <deptnm/>
  48. </ward>
  49. </deptlist>
  50. <reqdeptlist>
  51. <reqdeptinfo>
  52. <deptcd/>
  53. <deptnm/>
  54. </reqdeptinfo>
  55. </reqdeptlist>
  56. </init>
  57. <temp>
  58. <receivedata>
  59. <receiveref>/root/temp/receivedata/drugcd</receiveref>
  60. <drugcd/>
  61. </receivedata>
  62. <tempdeptlist/>
  63. </temp>
  64. </root>
  65. </instance>
  66. <submission id="TRADC02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptflag" replace="instance" resultref="/root/init/orddept"/>
  67. <submission id="TRADC02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/deptlist"/>
  68. <script type="javascript" ev:event="xforms-ready">
  69. <![CDATA[
  70. fInit();
  71. ]]>
  72. </script>
  73. <submission id="TRADC03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/adrpasthistlist"/>
  74. <submission id="TRADC03302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/reqdeptlist"/>
  75. </model>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  80. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  82. <script type="javascript">
  83. <![CDATA[
  84. function fInit() {
  85. model.setValue("/root/send/srchfromdd",getCurrentDate());
  86. model.setValue("/root/send/srchtodd",getCurrentDate());
  87. //부서조회
  88. submit("TRADC03302");
  89. /*
  90. //진료과조회
  91. model.setValue("/root/send/deptflag", "D");
  92. submit("TRADC02103");
  93. astfAddCombo("/root/init/orddept", "dept", "deptcd,deptnm", ",");
  94. //병동
  95. model.setValue("/root/send/deptflag", "W");
  96. submit("TRADC02102");
  97. astfAddCombo("/root/init/deptlist", "ward", "deptcd,deptnm", "T,전체");
  98. */
  99. }
  100. function fGetAdrPastHistList() {
  101. var sDeptlist = model.getValue("/root/send/srchreqdeptlist") ;
  102. if(sDeptlist == "") {
  103. model.setValue("/root/send/srchreqdeptlist", "T");
  104. }
  105. submit("TRADC03301");
  106. if(sDeptlist == "") {
  107. model.setValue("/root/send/srchreqdeptlist", "");
  108. }
  109. model.refresh();
  110. }
  111. ]]>
  112. </script>
  113. </xhtml:head>
  114. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  115. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  116. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">ADR과거력조회</caption>
  117. </group>
  118. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  119. <group id="group2" style="left:0px; top:5px; width:1195px; height:43px; ">
  120. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  121. <line id="line13" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:35px; border-color:#ffe4bb; border-left-style:solid; "/>
  122. <caption id="caption1" class="search_name" style="left:325px; top:13px; width:86px; height:17px; ">등록번호 :</caption>
  123. <caption id="caption3" class="search_name" style="left:15px; top:13px; width:86px; height:17px; ">입력일자 :</caption>
  124. <button id="btn_seamthd" class="btn1_letter2" navindex="6" style="left:1120px; top:12px; width:56px; height:22px; ">
  125. <caption>조회</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. fGetAdrPastHistList();
  129. ]]>
  130. </script>
  131. </button>
  132. <caption id="caption4" class="search_name" style="left:515px; top:13px; width:86px; height:17px; ">진료과 :</caption>
  133. <caption id="caption5" class="search_name" visibility="hidden" style="left:930px; top:5px; width:86px; height:17px; ">병동 :</caption>
  134. <input id="ipt_prcpddstart" ref="/root/send/srchfromdd" class="input_search" navindex="1" inputtype="date" style="left:105px; top:12px; width:90px; height:19px; "/>
  135. <input id="ipt_prcpddend" ref="/root/send/srchtodd" class="input_search" navindex="2" inputtype="date" style="left:216px; top:12px; width:90px; height:19px; "/>
  136. <input id="ipt_pid" ref="/root/send/srchpid" class="input_search" navindex="3" style="left:415px; top:12px; width:85px; height:19px; ">
  137. <script type="javascript" ev:event="onkeydown">
  138. <![CDATA[
  139. if(event.keyCode == 13) {
  140. model.setValue("/root/send/srchpid", ipt_pid.currentText);
  141. ipt_pid.refresh();
  142. fGetAdrPastHistList();
  143. }
  144. ]]>
  145. </script>
  146. </input>
  147. <select1 id="cbo_orddeptcd" ref="/root/send/srchorddept" class="combo_search" visibility="hidden" appearance="minimal" style="left:960px; top:20px; width:140px; height:19px; ">
  148. <choices>
  149. <itemset nodeset="/root/init/orddept/dept">
  150. <label ref="deptnm"/>
  151. <value ref="deptcd"/>
  152. </itemset>
  153. </choices>
  154. </select1>
  155. <caption id="caption6" style="left:200px; top:15px; width:20px; height:15px; ">~</caption>
  156. <select1 id="cmb_ward" ref="/root/send/srchwardcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:1010px; top:5px; width:90px; height:19px; ">
  157. <choices>
  158. <itemset nodeset="/root/init/deptlist/ward">
  159. <label ref="deptnm"/>
  160. <value ref="deptcd"/>
  161. </itemset>
  162. </choices>
  163. </select1>
  164. <input id="ipt_wardnm" ref="/root/temp/tempdeptlist" class="input_search" disabled="true" style="left:590px; top:12px; width:185px; height:19px; "/>
  165. <caption id="caption2" class="search_name" style="left:810px; top:13px; width:86px; height:17px; ">의뢰약물 :</caption>
  166. <input id="ipt_srchdrugcd" ref="/root/send/srchdrugcd" class="input_search" navindex="5" inputtype="button" maxlength="7" style="left:899px; top:12px; width:101px; height:19px; ">
  167. <script type="javascript" ev:event="onkeypress">
  168. <![CDATA[
  169. if(event.keyCode == 13) {
  170. model.setValue("/root/send/srchdrugcd", ipt_srchdrugcd.currentText);
  171. ipt_srchdrugcd.refresh();
  172. fGetAdrPastHistList();
  173. }
  174. ]]>
  175. </script>
  176. <script type="javascript" ev:event="onbuttonclick">
  177. <![CDATA[
  178. // 약품코드 검색
  179. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
  180. var drugcode = model.getValue("/root/temp/receivedata/drugcd");
  181. // 약품명 검색
  182. if (drugcode != "") {
  183. model.makeValue("/root/send/srchdrugcd",drugcode);
  184. }
  185. ipt_srchdrugcd.refresh();
  186. ]]>
  187. </script>
  188. </input>
  189. </group>
  190. <caption id="caption10" class="tit_2" style="left:0px; top:60px; width:120px; height:13px; ">과거력 리스트</caption>
  191. <line id="line4" class="line_1" style="x1:0px; y1:74px; x2:1194px; y2:74px; "/>
  192. <datagrid id="datagrid1" nodeset="/root/main/adrpasthistlist/adrpasthistinfo" caption="등록번호^환자명^입력일자^원인약물^증상^인과관계^등록자^직군^발생일^진료과^분류^비고" colsep="^" colwidth="70, 80, 80, 90, 216, 150, 80, 70, 80, 120, 65, 75" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:79px; width:1194px; height:662px; ">
  193. <col ref="pid" style="text-align:center; "/>
  194. <col ref="pathngnm" style="text-align:center; "/>
  195. <col ref="inptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  196. <col ref="resndrugcd"/>
  197. <col ref="symp"/>
  198. <col disabled="true" ref="casrslt" type="combo" style="text-align:center; ">
  199. <choices>
  200. <item>
  201. <label>Certain(90%)</label>
  202. <value>CT</value>
  203. </item>
  204. <item>
  205. <label>Probable(70%)</label>
  206. <value>PB</value>
  207. </item>
  208. <item>
  209. <label>Possible(50%)</label>
  210. <value>PL</value>
  211. </item>
  212. <item>
  213. <label>Conditional(평가곤란)</label>
  214. <value>CD</value>
  215. </item>
  216. <item>
  217. <label>Unassessible(평가불가)</label>
  218. <value>UA</value>
  219. </item>
  220. </choices>
  221. </col>
  222. <col ref="rgstrnm" style="text-align:center; "/>
  223. <col ref="grupjoblncd" style="text-align:center; "/>
  224. <col ref="sympmnftdd" format="yyyy-mm-dd" style="text-align:center; "/>
  225. <col ref="orddeptnm"/>
  226. <col disabled="true" ref="clsflag" type="combo" style="text-align:center; ">
  227. <choices>
  228. <item>
  229. <label>과거력</label>
  230. <value>A</value>
  231. </item>
  232. <item>
  233. <label>평가중</label>
  234. <value>B</value>
  235. </item>
  236. <item>
  237. <label>평가완료</label>
  238. <value>C</value>
  239. </item>
  240. </choices>
  241. </col>
  242. <col ref="cmt"/>
  243. <script type="javascript" ev:event="onaftersort">
  244. <![CDATA[
  245. datagrid1.gridToInstance();
  246. ]]>
  247. </script>
  248. </datagrid>
  249. <select id="chk_ward" ref="/root/send/srchreqdeptlist" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="2" sep="|" style="left:590px; top:36px; width:185px; height:15px; background-color:#e5eae9; border-style:none; ">
  250. <choices>
  251. <itemset nodeset="/root/init/reqdeptlist/reqdeptinfo">
  252. <label ref="deptnm"/>
  253. <value ref="deptcd"/>
  254. </itemset>
  255. </choices>
  256. <script type="javascript" ev:event="onclick">
  257. <![CDATA[
  258. if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0){
  259. if(isSearchString(model.getValue("/root/send/srchreqdeptlist"), "T")){
  260. var ward = "";
  261. for(var i = 1; i <= getNodesetCount("/root/init/reqdeptlist/reqdeptinfo"); i++){
  262. if(i == (getNodesetCount("/root/init/reqdeptlist/reqdeptinfo"))){
  263. ward += model.getValue("/root/init/reqdeptlist/reqdeptinfo["+i+"]/deptcd");
  264. }else{
  265. ward += model.getValue("/root/init/reqdeptlist/reqdeptinfo["+i+"]/deptcd")+"|";
  266. }
  267. }
  268. model.setValue("/root/send/srchreqdeptlist", ward);
  269. } else {
  270. model.setValue("/root/send/srchreqdeptlist", "");
  271. }
  272. chk_ward.refresh();
  273. }
  274. if(isSearchString(model.getValue("/root/send/srchreqdeptlist"),"T")){
  275. ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
  276. } else {
  277. ipt_wardnm.value = chk_ward.label;
  278. }
  279. //input3.refresh();
  280. //검사실 체크박스 감추기
  281. //chk_excuroom.visible = false;
  282. ]]>
  283. </script>
  284. </select>
  285. <button id="button4" class="icon_search" navindex="4" style="left:778px; top:18px; width:16px; height:16px; ">
  286. <caption/>
  287. <script type="javascript" ev:event="DOMActivate">
  288. <![CDATA[
  289. if(chk_ward.visible){
  290. chk_ward.visible = false;
  291. }else {
  292. chk_ward.visible = true;
  293. }
  294. model.refresh();
  295. ]]>
  296. </script>
  297. </button>
  298. <button id="btn_excel" class="btn2_letter5" navindex="7" style="left:1119px; top:55px; width:75px; height:19px; ">
  299. <caption>EXCEL저장</caption>
  300. <script type="javascript" ev:event="DOMActivate">
  301. <![CDATA[
  302. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls");
  303. if (fileName != "") {
  304. datagrid1.saveExcel(fileName, "", false, false);
  305. messageBox(fileName + " 파일생성이 ", "I002");
  306. }
  307. ]]>
  308. </script>
  309. </button>
  310. </group>
  311. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; "/>
  312. </xhtml:body>
  313. </xhtml:html>