SPASI03000_삽입기구조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPASI00300.xrw
  4. * 설 명 : 삽입기구조회
  5. * 수정이력 : 2010-07-06 /허권주
  6. * 기 타 :
  7. -->
  8. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  9. <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">
  10. <xhtml:head>
  11. <xhtml:title>삽입기구관련대상자조회</xhtml:title>
  12. <model id="model1">
  13. <instance id="instance1">
  14. <root xmlns="">
  15. <main>
  16. <catpatinfo/>
  17. <cond>
  18. <fromdd/>
  19. <todd/>
  20. <pid/>
  21. <catheter/>
  22. <wardcd/>
  23. </cond>
  24. </main>
  25. <send>
  26. <reqdata/>
  27. </send>
  28. <hidden>
  29. <popupmenu>
  30. <grid01>
  31. <item>
  32. <name>통합기록조회</name>
  33. <func>fSytsRecRefPopup</func>
  34. </item>
  35. <item>
  36. <name>병원감염보고서등록</name>
  37. <func>fHospInfcReptPopup</func>
  38. </item>
  39. </grid01>
  40. </popupmenu>
  41. <selecteddata>
  42. <selectedpid/>
  43. <selectedindd/>
  44. <selectedrgstdt/>
  45. </selecteddata>
  46. </hidden>
  47. <init>
  48. <initdate>
  49. <today/>
  50. </initdate>
  51. <deptlist>
  52. </deptlist>
  53. <warddeptlist>
  54. </warddeptlist>
  55. <A0358list>
  56. </A0358list>
  57. <list/>
  58. </init>
  59. </root>
  60. </instance>
  61. <script type="javascript" ev:event="xforms-ready">
  62. <![CDATA[
  63. fInitialize();
  64. model.removeNodeset("/root/main/catpatinfo");
  65. model.refresh();
  66. ]]>
  67. </script>
  68. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  69. <submission id="TRASI03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/catpatinfo"/>
  70. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  71. <submission id="TRASI03002" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/list"/>
  72. </model>
  73. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  77. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  78. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  79. <script type="javascript">
  80. <![CDATA[
  81. function fInitialize() {
  82. // 부모창에서 환자 등록번호 조회
  83. var pid = opener.model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid");
  84. model.setValue("/root/main/cond/pid", pid);
  85. // 공통코드를 조회한다.
  86. //삽입기구종류
  87. zbcfGetCodeList(new Array("A0358"),
  88. new Array("/root/init/A0358list"));
  89. addComboItem("cmb_catheter","","","above");
  90. // 진료과
  91. var instcd = getUserInfo("dutplceinstcd");
  92. var standard_yn = "orduseyn";
  93. var ord_deptflag = 'D';
  94. var rslt_ref = "/root/init/deptlist";
  95. var sort_field = "depthngnm";
  96. var sort_method = "asc";
  97. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  98. //병동
  99. standard_yn = "orduseyn";
  100. ord_deptflag = "W";
  101. rslt_ref = "/root/init/warddeptlist";
  102. sort_field = "deptcd";
  103. sort_method = "asc";
  104. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  105. addComboItem("cmb_wardcd","","","above");
  106. //var rslt_ref = "/root/init/catheter";
  107. //var sort_field = "itemnm";
  108. //var sort_method = "asc";
  109. //submit('TRASI03002');
  110. //addComboItem("cmb_catheter","","","above");
  111. var today = getCurrentDate();
  112. var idate = new Date();
  113. var peveDate = idate.getAddDate(-1, "D");
  114. model.setValue("/root/init/initdate/today", today);
  115. model.makeValue("/root/send/cond/trgtmancnt", "I");
  116. model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  117. model.makeValue("/root/send/cond/todd", today);
  118. model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
  119. model.setValue("/root/main/cond/todd", today);
  120. model.refresh();
  121. }
  122. /*===============================================================================
  123. @desc : 삽입기구대상자 조회
  124. ===============================================================================*/
  125. function fGetCatPatList(){
  126. if( !isRequiredControls("ipt_fromdd","ipt_todd", "ipt_pid") ){
  127. return;
  128. }
  129. //조회일자제한(15일-서버부하를 줄이기 위함임)
  130. // var reqTerm = getDateInterval(model.getValue(ipt_fromdd.attribute("ref") ) , model.getValue(ipt_todd.attribute("ref")) );
  131. // if( reqTerm > 31 ) {
  132. // messageBox("최대조회기간을 초과하였습니다. 조회기간을 다시 ", "C001");
  133. // return ;
  134. // }
  135. model.makeNode("/root/send/cond");
  136. model.copyNode("/root/send/reqdata", "/root/main/cond");
  137. openLoadingBar("삽입기구관련대상자조회 ") ;//처리중 화면을 오픈한다.
  138. submit("TRASI03001");
  139. closeLoadingBar() ;//처리중 화면을 close한다.
  140. setTree(grd_catpatlist,2,1,true);
  141. }
  142. function fRtrnVal() {
  143. var row = grd_catpatlist.row;
  144. var levlflag=model.getValue("/root/main/catpatinfo/catpatlist["+row+"]/levl");
  145. if (levlflag == 1){
  146. messageBox("상단정보를 셋팅하거나 팝업창을 띄울때는 펼침을눌러서 하위 리스트를","C002");
  147. return;
  148. }
  149. var itemcd = model.getValue("/root/main/catpatinfo/catpatlist["+row+"]/itemcd");
  150. var opdt = model.getValue("/root/main/catpatinfo/catpatlist["+row+"]/opdt");
  151. var cncldt = model.getValue("/root/main/catpatinfo/catpatlist["+row+"]/cncldt");
  152. if ( opdt != "" && opdt.length >= 8 && cncldt != "" && cncldt.length >= 8 ) {
  153. opdt = opdt.substring(0, 8);
  154. cncldt = cncldt.substring(0, 8);
  155. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/catecd", itemcd);
  156. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/cateusdt", opdt);
  157. opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/cateuedt", cncldt);
  158. opener.javascript.fCalcuDayno("device");
  159. opener.model.refresh();
  160. }
  161. window.close();
  162. }
  163. ]]>
  164. </script>
  165. </xhtml:head>
  166. <xhtml:body guideline="2,23;" idprefix="import" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  167. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  168. <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
  169. <line id="line4" class="line_3" style="x1:0px; y1:781px; x2:1194px; y2:781px; "/>
  170. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  171. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">삽입기구 관련 대상자 조회</caption>
  172. </group>
  173. </group>
  174. </group>
  175. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  176. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:5px; top:3px; width:56px; height:22px; ">
  177. <caption>출력</caption>
  178. </button>
  179. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  180. <caption>초기화</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. model.removeNodeset("/root/main/catpatinfo");
  184. model.refresh();
  185. ]]>
  186. </script>
  187. </button>
  188. </group>
  189. <group id="grp_biz" scroll="auto" style="left:0px; top:23px; width:1195px; height:737px; ">
  190. <line id="line6" class="line_3" style="x1:0px; y1:113px; x2:1194px; y2:113px; "/>
  191. <line id="line5" class="line_1" style="x1:0px; y1:84px; x2:1194px; y2:84px; "/>
  192. <group id="group6" style="left:1px; top:0px; width:1194px; height:60px; vertical-align:top; ">
  193. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:59px; "/>
  194. <line id="line8" class="line_4" style="x1:1110px; y1:10px; x2:1110px; y2:53px; "/>
  195. <caption id="caption15" class="search_name" style="left:435px; top:10px; width:112px; height:17px; ">삽입기구종류 :</caption>
  196. <caption id="caption21" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">등록번호 :</caption>
  197. <caption id="caption2" class="search_no_b" style="left:220px; top:10px; width:12px; height:17px; ">~</caption>
  198. <caption id="caption1" class="search_name" style="left:780px; top:9px; width:66px; height:17px; ">병동 :</caption>
  199. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:108px; top:11px; width:110px; height:19px; "/>
  200. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:232px; top:11px; width:110px; height:19px; "/>
  201. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_default" disabled="true" maxlength="10" style="left:108px; top:34px; width:110px; height:19px; ">
  202. <script type="javascript" ev:event="DOMFocusOut">
  203. <![CDATA[
  204. // var pidlength = model.getValue("/root/main/cond/pid");
  205. // if( pidlength.length > 0 && pidlength.length < 8) {
  206. // model.alert("등록번호는 8자리 이상입니다.");
  207. // model.setFocus("ipt_pid");
  208. // return;
  209. // }
  210. ]]>
  211. </script>
  212. <script type="javascript" ev:event="onkeypress">
  213. <![CDATA[
  214. inputEnterKey("btn_search", "DOMActivate");
  215. ]]>
  216. </script>
  217. </input>
  218. <select1 id="cmb_catheter" ref="/root/main/cond/catheter" class="combo_search" appearance="minimal" style="left:559px; top:9px; width:130px; height:19px; ">
  219. <choices>
  220. <itemset nodeset="/root/init/A0358list/A0358">
  221. <label ref="cdnm"/>
  222. <value ref="cdid"/>
  223. </itemset>
  224. </choices>
  225. </select1>
  226. <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_search" appearance="minimal" style="left:850px; top:9px; width:105px; height:19px; ">
  227. <choices>
  228. <itemset nodeset="/root/init/warddeptlist/dept">
  229. <label ref="depthngnm"/>
  230. <value ref="deptcd"/>
  231. </itemset>
  232. </choices>
  233. </select1>
  234. <button id="btn_search" class="btn1_letter2" style="left:1126px; top:21px; width:56px; height:22px; ">
  235. <caption>조회</caption>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. fGetCatPatList();
  239. ]]>
  240. </script>
  241. </button>
  242. <caption id="cap_fromdd" class="search_name" visibility="hidden" style="left:15px; top:9px; width:89px; height:17px; ">기간선택 :</caption>
  243. <caption id="cap_todd" class="search_name" style="left:15px; top:9px; width:89px; height:17px; ">기간선택 :</caption>
  244. </group>
  245. <line id="line1" class="line_1" style="x1:0px; y1:84px; x2:1194px; y2:84px; "/>
  246. <button id="btn_excel" class="btn2_letter2" style="left:1062px; top:63px; width:42px; height:19px; ">
  247. <caption>선택</caption>
  248. <script type="javascript" ev:event="DOMActivate">
  249. <![CDATA[
  250. // 부모창으로 삽입기구코드, 삽입일, 제거일 데이터 전달 후 클로즈 처리
  251. fRtrnVal();
  252. ]]>
  253. </script>
  254. </button>
  255. <button id="btn_spread" class="btn2_letter2" style="left:1107px; top:63px; width:42px; height:19px; ">
  256. <caption>펼침</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. setTree(grd_catpatlist,2,1,false);
  260. ]]>
  261. </script>
  262. </button>
  263. <button id="btn_close" class="btn2_letter2" style="left:1152px; top:63px; width:42px; height:19px; ">
  264. <caption>닫침</caption>
  265. <script type="javascript" ev:event="DOMActivate">
  266. <![CDATA[
  267. setTree(grd_catpatlist,2,1,true);
  268. ]]>
  269. </script>
  270. </button>
  271. <datagrid id="grd_catpatlist" nodeset="/root/main/catpatinfo/catpatlist" caption="등록번호^level^성명^성별^나이^삽입기구코드^삽입기구^삽입일^제거일^진료과^주치의코드^주치의^병동^병실^입원일^퇴원일^진단명^cretno^seqno^instcd" colsep="^" colwidth="90, 40, 76, 35, 50, 80, 100, 100, 100, 90, 70, 73, 93, 73, 80, 80, 200, 100, 100, 100" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:89px; width:1194px; height:641px; ">
  272. <col ref="pid"/>
  273. <col ref="levl" visibility="hidden"/>
  274. <col ref="name"/>
  275. <col ref="sexflag"/>
  276. <col ref="age"/>
  277. <col ref="itemcd" visibility="hidden"/>
  278. <col ref="itemnm"/>
  279. <col ref="opdt" format="yyyy-mm-dd"/>
  280. <col ref="cncldt" format="yyyy-mm-dd"/>
  281. <col ref="orddeptcd"/>
  282. <col ref="atdoct" visibility="hidden"/>
  283. <col ref="atdoctnm"/>
  284. <col disabled="true" ref="wardcd"/>
  285. <col ref="roomcd"/>
  286. <col disabled="true" ref="indd" format="yyyy-mm-dd"/>
  287. <col ref="dschdd" format="yyyy-mm-dd"/>
  288. <col ref="diagnm"/>
  289. <col ref="cretno" visibility="hidden"/>
  290. <col ref="seqno" visibility="hidden"/>
  291. <col ref="instcd" visibility="hidden"/>
  292. <script type="javascript" ev:event="onmousedown">
  293. <![CDATA[
  294. //setPopupMenu("grd_catpatlist", false, "/root/hidden/popupmenu/grid01/item", "name", "func");
  295. ]]>
  296. </script>
  297. <script type="javascript" ev:event="onaftersort">
  298. <![CDATA[
  299. grd_catpatlist.gridToInstance();
  300. ]]>
  301. </script>
  302. <script type="javascript" ev:event="ondblclick">
  303. <![CDATA[
  304. // 부모창으로 삽입기구코드, 삽입일, 제거일 데이터 전달 후 클로즈 처리
  305. fRtrnVal();
  306. ]]>
  307. </script>
  308. <script type="javascript" ev:event="DOMFocusOut">
  309. <![CDATA[
  310. //setPopupMenu(false);
  311. ]]>
  312. </script>
  313. <script type="javascript" ev:event="onclick">
  314. <![CDATA[
  315. var iRow = grd_catpatlist.row;
  316. model.resetInstanceNode("/root/hidden/selecteddata");
  317. model.setValue("/root/hidden/selecteddata/selectedpid", model.getValue("/root/main/feverpatrefinfo/catpatlist[" +iRow + "]/pid"));
  318. model.setValue("/root/hidden/selecteddata/selectedindd", model.getValue("/root/main/feverpatrefinfo/catpatlist[" +iRow + "]/indd"));
  319. ]]>
  320. </script>
  321. </datagrid>
  322. <caption id="caption25" class="tit_2" style="left:0px; top:69px; width:178px; height:14px; ">삽입기구사용환자</caption>
  323. </group>
  324. </xhtml:body>
  325. </xhtml:html>