SMASI03000_삽입기구관련대상자조회.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMASI01500.xrw
  4. * 설 명 : 삽입기구관련대상자조회
  5. * 수정이력 : 2008-06-02 /정희수
  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. //삽입기구종류
  84. zbcfGetCodeList(new Array("A0358"),
  85. new Array("/root/init/A0358list"));
  86. addComboItem("cmb_catheter","","","above");
  87. // 진료과
  88. var instcd = getUserInfo("dutplceinstcd");
  89. var standard_yn = "orduseyn";
  90. var ord_deptflag = 'D';
  91. var rslt_ref = "/root/init/deptlist";
  92. var sort_field = "depthngnm";
  93. var sort_method = "asc";
  94. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  95. //병동
  96. standard_yn = "orduseyn";
  97. ord_deptflag = "W";
  98. rslt_ref = "/root/init/warddeptlist";
  99. sort_field = "deptcd";
  100. sort_method = "asc";
  101. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  102. addComboItem("cmb_wardcd","","","above");
  103. //var rslt_ref = "/root/init/catheter";
  104. //var sort_field = "itemnm";
  105. //var sort_method = "asc";
  106. //submit('TRASI03002');
  107. //addComboItem("cmb_catheter","","","above");
  108. var today = getCurrentDate();
  109. var idate = new Date();
  110. var peveDate = idate.getAddDate(-1, "D");
  111. model.setValue("/root/init/initdate/today", today);
  112. model.makeValue("/root/send/cond/trgtmancnt", "I");
  113. model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  114. model.makeValue("/root/send/cond/todd", today);
  115. model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
  116. model.setValue("/root/main/cond/todd", today);
  117. model.refresh();
  118. }
  119. //상단정보설정
  120. function fUpInfo(){
  121. var sessionPID = getPatientId();
  122. if(sessionPID != model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/pid")){
  123. fReqOpPatPamInfo();
  124. }
  125. }
  126. function fReqOpPatPamInfo(){
  127. var tioflag=model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/ioflag");
  128. // if(tioflag == "I") {
  129. var ioflag="I";
  130. var pid= model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/pid");
  131. var indd=model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/indd");
  132. var cretno=model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/cretno") ;
  133. var seqno=model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/iseqno");
  134. var instcd=getUserInfo("dutplceinstcd");
  135. var srchdd=getCurrentDate();
  136. var param= ioflag + "▦" //입원환자
  137. + pid + "▦"
  138. + indd + "▦"
  139. + cretno + "▦"
  140. + instcd+ "▦"
  141. + srchdd;
  142. setParameter("condparam", param);
  143. // }
  144. // else if(tioflag == "O") {
  145. // var ioflag="O";
  146. // var pid= model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/pid");
  147. // var orddd=model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/indd");
  148. // var cretno=model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/cretno") ;
  149. // var instcd=getUserInfo("dutplceinstcd");
  150. // var srchdd=getCurrentDate();
  151. // var param= ioflag + "▦" //외래환자
  152. // + pid + "▦"
  153. // + orddd + "▦"
  154. // + cretno + "▦"
  155. // + instcd;
  156. // setParameter("condparam", param);
  157. // }
  158. modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  159. }
  160. function fSytsRecRefPopup(){
  161. var sessionPID = getPatientId();
  162. if(sessionPID != model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/pid")){
  163. fReqOpPatPamInfo();
  164. }
  165. setParameter("SMMRI00400_param_pid", sessionPID);
  166. modal("SMMRI00400",1,10,10,"SMMRI00400", "", "/root/hidden/oprecinfo/info");
  167. }
  168. function fPrcpRefPopup() {
  169. var sessionPID = getPatientId();
  170. if(sessionPID != model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid")){
  171. fReqOpPatPamInfo();
  172. }
  173. modal("SPTMP00100", "", "", "", "popup", "/root/send", "/root/main/grid01");
  174. }
  175. function fHospInfcReptPopup() {
  176. var sessionPID = getPatientId();
  177. if(sessionPID != model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/pid")){
  178. fReqOpPatPamInfo();
  179. }
  180. // setParameter("setVal9", model.getValue("/root/main/catpatinfo/catpatlist[" + iRow + "]/recdt"));
  181. // setParameter("setVal10", model.getValue("/root/main/catpatinfo/catpatlist[" + iRow + "]/bdtp"));
  182. open("SMASI00100", 1,10,10, "SMASI00100");
  183. //window.close();
  184. }
  185. /*===============================================================================
  186. @desc : 삽입기구대상자 조회
  187. ===============================================================================*/
  188. function fGetCatPatList(){
  189. if( !isRequiredControls("ipt_fromdd","ipt_todd") ){
  190. return;
  191. }
  192. //조회일자제한(15일-서버부하를 줄이기 위함임)
  193. // var reqTerm = getDateInterval(model.getValue(ipt_fromdd.attribute("ref") ) , model.getValue(ipt_todd.attribute("ref")) );
  194. // if( reqTerm > 31 ) {
  195. // messageBox("최대조회기간을 초과하였습니다. 조회기간을 다시 ", "C001");
  196. // return ;
  197. // }
  198. model.makeNode("/root/send/cond");
  199. model.copyNode("/root/send/reqdata", "/root/main/cond");
  200. openLoadingBar("삽입기구관련대상자조회 ") ;//처리중 화면을 오픈한다.
  201. submit("TRASI03001");
  202. closeLoadingBar() ;//처리중 화면을 close한다.
  203. setTree(grd_catpatlist,2,1,true);
  204. }
  205. ]]>
  206. </script>
  207. </xhtml:head>
  208. <xhtml:body guideline="2,23;" idprefix="import" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  209. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  210. <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
  211. <line id="line4" class="line_3" style="x1:0px; y1:781px; x2:1194px; y2:781px; "/>
  212. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  213. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">삽입기구 관련 대상자 조회</caption>
  214. </group>
  215. </group>
  216. </group>
  217. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  218. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:5px; top:3px; width:56px; height:22px; ">
  219. <caption>출력</caption>
  220. </button>
  221. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  222. <caption>초기화</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. model.removeNodeset("/root/main/catpatinfo");
  226. model.refresh();
  227. ]]>
  228. </script>
  229. </button>
  230. </group>
  231. <group id="grp_biz" scroll="auto" style="left:0px; top:23px; width:1195px; height:737px; ">
  232. <line id="line6" class="line_3" style="x1:0px; y1:113px; x2:1194px; y2:113px; "/>
  233. <line id="line5" class="line_1" style="x1:0px; y1:84px; x2:1194px; y2:84px; "/>
  234. <group id="group6" style="left:1px; top:0px; width:1194px; height:60px; vertical-align:top; ">
  235. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:59px; "/>
  236. <line id="line8" class="line_4" style="x1:1110px; y1:10px; x2:1110px; y2:53px; "/>
  237. <caption id="caption15" class="search_name" style="left:435px; top:10px; width:112px; height:17px; ">삽입기구종류 :</caption>
  238. <caption id="caption21" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">등록번호 :</caption>
  239. <caption id="caption2" class="search_no_b" style="left:220px; top:10px; width:12px; height:17px; ">~</caption>
  240. <caption id="caption1" class="search_name" style="left:780px; top:9px; width:66px; height:17px; ">병동 :</caption>
  241. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:108px; top:11px; width:110px; height:19px; "/>
  242. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:232px; top:11px; width:110px; height:19px; "/>
  243. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_default" maxlength="10" style="left:108px; top:34px; width:110px; height:19px; ">
  244. <script type="javascript" ev:event="DOMFocusOut">
  245. <![CDATA[
  246. // var pidlength = model.getValue("/root/main/cond/pid");
  247. // if( pidlength.length > 0 && pidlength.length < 8) {
  248. // model.alert("등록번호는 8자리 이상입니다.");
  249. // model.setFocus("ipt_pid");
  250. // return;
  251. // }
  252. ]]>
  253. </script>
  254. <script type="javascript" ev:event="onkeypress">
  255. <![CDATA[
  256. inputEnterKey("btn_search", "DOMActivate");
  257. ]]>
  258. </script>
  259. </input>
  260. <select1 id="cmb_catheter" ref="/root/main/cond/catheter" class="combo_search" appearance="minimal" style="left:559px; top:9px; width:130px; height:19px; ">
  261. <choices>
  262. <itemset nodeset="/root/init/A0358list/A0358">
  263. <label ref="cdnm"/>
  264. <value ref="cdid"/>
  265. </itemset>
  266. </choices>
  267. </select1>
  268. <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_search" appearance="minimal" style="left:850px; top:9px; width:105px; height:19px; ">
  269. <choices>
  270. <itemset nodeset="/root/init/warddeptlist/dept">
  271. <label ref="depthngnm"/>
  272. <value ref="deptcd"/>
  273. </itemset>
  274. </choices>
  275. </select1>
  276. <button id="btn_search" class="btn1_letter2" style="left:1126px; top:21px; width:56px; height:22px; ">
  277. <caption>조회</caption>
  278. <script type="javascript" ev:event="DOMActivate">
  279. <![CDATA[
  280. fGetCatPatList();
  281. ]]>
  282. </script>
  283. </button>
  284. <caption id="cap_fromdd" class="search_name" visibility="hidden" style="left:15px; top:9px; width:89px; height:17px; ">기간선택 :</caption>
  285. <caption id="cap_todd" class="search_name" style="left:15px; top:9px; width:89px; height:17px; ">기간선택 :</caption>
  286. </group>
  287. <line id="line1" class="line_1" style="x1:0px; y1:84px; x2:1194px; y2:84px; "/>
  288. <button id="btn_excel" class="btn2_letter2" style="left:1062px; top:63px; width:42px; height:19px; ">
  289. <caption>엑셀</caption>
  290. <script type="javascript" ev:event="DOMActivate">
  291. <![CDATA[
  292. // var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  293. // if (fileName != ""){
  294. // grd_catpatlist.saveExcel(fileName, "삽입기구관련대상자리스트", false, false, "", "", false);
  295. // }
  296. var fileName = window.fileDialog("save", ",", false, "삽입기구관련대상자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  297. if (fileName != ""){
  298. // grd_catpatlist.saveExcel(fileName,"exportfalserows:0;col_19:value;");
  299. grd_catpatlist.saveExcel(fileName, "삽입기구관련대상자", true, true, "", "", false);
  300. var s = fileName.lastIndexOf("\\");
  301. var fileName=fileName.substring(s+1);
  302. var rmsg = messageBox("저장된 Excel을", "Q004");
  303. if( rmsg == 6 ){
  304. window.exec("excel.exe", fileName);
  305. }
  306. }
  307. ]]>
  308. </script>
  309. </button>
  310. <button id="btn_spread" class="btn2_letter2" style="left:1107px; top:63px; width:42px; height:19px; ">
  311. <caption>펼침</caption>
  312. <script type="javascript" ev:event="DOMActivate">
  313. <![CDATA[
  314. setTree(grd_catpatlist,2,1,false);
  315. ]]>
  316. </script>
  317. </button>
  318. <button id="btn_close" class="btn2_letter2" style="left:1152px; top:63px; width:42px; height:19px; ">
  319. <caption>닫침</caption>
  320. <script type="javascript" ev:event="DOMActivate">
  321. <![CDATA[
  322. setTree(grd_catpatlist,2,1,true);
  323. ]]>
  324. </script>
  325. </button>
  326. <datagrid id="grd_catpatlist" nodeset="/root/main/catpatinfo/catpatlist" caption="등록번호^level^성명^성별^나이^삽입기구^삽입일^제거일^진료과^주치의코드^주치의^병동^병실^입원일^퇴원일^진단명^cretno^seqno^instcd" colsep="^" colwidth="90, 40, 76, 35, 50, 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; ">
  327. <col ref="pid"/>
  328. <col ref="levl" visibility="hidden"/>
  329. <col ref="name"/>
  330. <col ref="sexflag"/>
  331. <col ref="age"/>
  332. <col ref="itemnm"/>
  333. <col ref="opdt" format="yyyy-mm-dd"/>
  334. <col ref="cncldt" format="yyyy-mm-dd"/>
  335. <col ref="orddeptcd"/>
  336. <col ref="atdoct" visibility="hidden"/>
  337. <col ref="atdoctnm"/>
  338. <col disabled="true" ref="wardcd"/>
  339. <col ref="roomcd"/>
  340. <col disabled="true" ref="indd" format="yyyy-mm-dd"/>
  341. <col ref="dschdd" format="yyyy-mm-dd"/>
  342. <col ref="diagnm"/>
  343. <col ref="cretno" visibility="hidden"/>
  344. <col ref="seqno" visibility="hidden"/>
  345. <col ref="instcd" visibility="hidden"/>
  346. <script type="javascript" ev:event="onmousedown">
  347. <![CDATA[
  348. setPopupMenu("grd_catpatlist", false, "/root/hidden/popupmenu/grid01/item", "name", "func");
  349. ]]>
  350. </script>
  351. <script type="javascript" ev:event="onaftersort">
  352. <![CDATA[
  353. grd_catpatlist.gridToInstance();
  354. ]]>
  355. </script>
  356. <script type="javascript" ev:event="ondblclick">
  357. <![CDATA[
  358. var levlflag=model.getValue("/root/main/catpatinfo/catpatlist["+grd_catpatlist.row+"]/levl");
  359. if (levlflag == 1){
  360. messageBox("상단정보를 셋팅하거나 팝업창을 띄울때는 펼침을눌러서 하위 리스트를","C002");
  361. return;
  362. }
  363. if((grd_catpatlist.mouseRow > 0) && ( grd_catpatlist.mouseRow <= grd_catpatlist.rows )) {
  364. fReqOpPatPamInfo();
  365. }
  366. ]]>
  367. </script>
  368. <script type="javascript" ev:event="DOMFocusOut">
  369. <![CDATA[
  370. setPopupMenu(false);
  371. ]]>
  372. </script>
  373. <script type="javascript" ev:event="onclick">
  374. <![CDATA[
  375. var iRow = grd_catpatlist.row;
  376. model.resetInstanceNode("/root/hidden/selecteddata");
  377. model.setValue("/root/hidden/selecteddata/selectedpid", model.getValue("/root/main/feverpatrefinfo/catpatlist[" +iRow + "]/pid"));
  378. model.setValue("/root/hidden/selecteddata/selectedindd", model.getValue("/root/main/feverpatrefinfo/catpatlist[" +iRow + "]/indd"));
  379. ]]>
  380. </script>
  381. </datagrid>
  382. <caption id="caption25" class="tit_2" style="left:0px; top:69px; width:178px; height:14px; ">삽입기구사용환자</caption>
  383. </group>
  384. </xhtml:body>
  385. </xhtml:html>