SMPMI03600_VIP재원환자조회.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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>VIP재원환자조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <srchcond/>
  11. <fromdd/>
  12. <todd/>
  13. <data1/>
  14. <sess_posinstcd/>
  15. <erexptyn/>
  16. <tdayinexptyn/>
  17. <data2/>
  18. </send>
  19. <main>
  20. <patinfo>
  21. <patinfolist>
  22. <pid/>
  23. <hngnm/>
  24. <rrgstno1/>
  25. <rrgstno2/>
  26. </patinfolist>
  27. </patinfo>
  28. <vipinpatlist>
  29. <vipinpatspec/>
  30. </vipinpatlist>
  31. </main>
  32. <init>
  33. <P0149list>
  34. <P0149>
  35. <cdid/>
  36. <cdnm/>
  37. </P0149>
  38. </P0149list>
  39. <P0016list>
  40. <P0016>
  41. <cdid/>
  42. <cdnm/>
  43. </P0016>
  44. </P0016list>
  45. </init>
  46. <hidden>
  47. <init>
  48. <disccd>
  49. <cd/>
  50. <nm/>
  51. </disccd>
  52. <insukind>
  53. <cd/>
  54. <nm/>
  55. </insukind>
  56. <suppkind>
  57. <cd/>
  58. <nm/>
  59. <up/>
  60. <io/>
  61. </suppkind>
  62. <orddeptcd>
  63. <cd/>
  64. <nm/>
  65. </orddeptcd>
  66. <orddrid>
  67. <cd/>
  68. <nm/>
  69. <dp/>
  70. </orddrid>
  71. <flag>
  72. <prestdd/>
  73. <mskindflag/>
  74. </flag>
  75. </init>
  76. <printtype>
  77. <printkind/>
  78. <printfromdd/>
  79. <printtodd/>
  80. </printtype>
  81. </hidden>
  82. <source>
  83. <srchcond/>
  84. <pid/>
  85. <hngnm/>
  86. <rrgstno1/>
  87. <rrgstno2/>
  88. </source>
  89. </root>
  90. </instance>
  91. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  92. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
  93. <submission id="TRPMI03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/vipinpatlist"/>
  94. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source" resultref="/root/main/patinfo"/>
  95. <submission id="TXPMI03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="root/rsltflag"/>
  96. <script type="javascript" ev:event="xforms-ready">
  97. <![CDATA[
  98. zbcfGetCodeList(new Array("P0149","P0016"), new Array("/root/init/P0149list", "/root/init/P0016list"));
  99. submit("TRPMI00106", false);
  100. model.setValue("/root/send/fromdd", getCurrentDate());
  101. model.setValue("/root/send/todd", '99991231');
  102. model.setValue("/root/send/srchcond" , "1");
  103. caption1.visible = false;
  104. ipt_pid.visible = false;
  105. opt_hngnm.visible = false;
  106. opt_rrgstno1.visible = false;
  107. opt_rrgstno2.visible = false;
  108. btn_pid.visible = false;
  109. makeReportPreview(0, 0, 10, 10, "grp_report");
  110. model.refresh();
  111. ]]>
  112. </script>
  113. </model>
  114. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  116. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  119. <script type="javascript">
  120. <![CDATA[
  121. function fSelectRefItem(refitem)
  122. {
  123. // 1. 전체 2.환자번호 4.진료과 5.병동
  124. model.setValue("/root/send/data1", "");
  125. if (refitem == '1') {
  126. caption1.visible = false;
  127. ipt_pid.visible = false;
  128. opt_hngnm.visible = false;
  129. opt_rrgstno1.visible = false;
  130. opt_rrgstno2.visible = false;
  131. btn_pid.visible = false;
  132. ipt_text.visible = false;
  133. cmb_orddeptcd.visible = false;
  134. cmb_wardcd.visible = false;
  135. cmb_disccd.visible = false;
  136. cmb_sex.visible = false;
  137. } else if (refitem == '2' ) {
  138. caption1.visible = true;
  139. ipt_pid.visible = true;
  140. opt_hngnm.visible = true;
  141. opt_rrgstno1.visible = true;
  142. opt_rrgstno2.visible = true;
  143. btn_pid.visible = true;
  144. ipt_text.attribute("top") = "8xp";
  145. ipt_text.attribute("left") = "435px";
  146. ipt_text.visible = true;
  147. cmb_orddeptcd.visible = false;
  148. cmb_wardcd.visible = false;
  149. cmb_disccd.visible = false;
  150. cmb_sex.visible = false;
  151. model.setFocus("ipt_text");
  152. } else if (refitem == '4') {
  153. caption1.visible = false;
  154. ipt_pid.visible = false;
  155. opt_hngnm.visible = false;
  156. opt_rrgstno1.visible = false;
  157. opt_rrgstno2.visible = false;
  158. btn_pid.visible = false;
  159. cmb_orddeptcd.attribute("top") = "8xp";
  160. cmb_orddeptcd.attribute("left") = "435px";
  161. ipt_text.visible = false;
  162. cmb_orddeptcd.visible = true;
  163. cmb_wardcd.visible = false;
  164. cmb_disccd.visible = false;
  165. cmb_sex.visible = false;
  166. } else if (refitem == '5') {
  167. caption1.visible = false;
  168. ipt_pid.visible = false;
  169. opt_hngnm.visible = false;
  170. opt_rrgstno1.visible = false;
  171. opt_rrgstno2.visible = false;
  172. btn_pid.visible = false;
  173. cmb_wardcd.attribute("top") = "8xp";
  174. cmb_wardcd.attribute("left") = "435px";
  175. ipt_text.visible = false;
  176. cmb_orddeptcd.visible = false;
  177. cmb_wardcd.visible = true;
  178. cmb_disccd.visible = false;
  179. cmb_sex.visible = false;
  180. }
  181. model.refresh();
  182. }
  183. function fInitialize() {
  184. model.resetInstanceNode("/root/main/vipinptlist/vipinddschspec");
  185. model.resetInstanceNode("/root/send");
  186. model.resetInstanceNode("/root/main/vipinpatlist/vipinpatspec");
  187. model.setValue("/root/send/fromdd", getCurrentDate());
  188. model.setValue("/root/send/todd", getCurrentDate());
  189. model.setValue("/root/send/srchcond","1");
  190. fSelectRefItem("1")
  191. model.refresh();
  192. }
  193. function fPrint(pCond) {
  194. var sPrintYN = "false";
  195. var sAutoCloseYN = "false";
  196. var sViewYN = "";
  197. if (pCond == "PREVIEW") {
  198. sPrintYN = "false";
  199. sAutoCloseYN = "false";
  200. sViewYN = "";
  201. }
  202. if (pCond == "PRINT") {
  203. sPrintYN = "true";
  204. sAutoCloseYN = "false";
  205. sViewYN = "grp_report";
  206. }
  207. var iCount = getNodesetCount("/root/main/vipinpatlist/vipinpatspec");
  208. if (iCount > 0) {
  209. var sPrintFromdd = model.getValue("/root/send/fromdd");
  210. var sPrinttodd = model.getValue("/root/send/todd");
  211. sPrintFromdd = sPrintFromdd.substr(0, 4) + "-" + sPrintFromdd.substr(4, 2) + "-" + sPrintFromdd.substr(6, 4);
  212. model.makeValue("/root/hidden/printtype/printkind", "VIP재원");
  213. model.makeValue("/root/hidden/printtype/printfromdd", sPrintFromdd);
  214. model.makeValue("/root/hidden/printtype/printtodd", sPrinttodd);
  215. exeReportPreview("RPPMI03601", "XMLSTR" , "" , "" , sPrintYN , "", "", "", "", sAutoCloseYN, "", sViewYN);
  216. } else {
  217. messageBox("출력할 내용이 없습니다!!", "I");
  218. }
  219. }
  220. ]]>
  221. </script>
  222. </xhtml:head>
  223. <xhtml:body guideline="1,1193;1,1195;2,52;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  224. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  225. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:13px; ">VIP재원환자조회</caption>
  226. </group>
  227. <group id="group3" style="left:0px; top:13px; width:1195px; height:744px; ">
  228. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
  229. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  230. <input id="ipt_text" ref="/root/send/data1" class="input_search" visibility="hidden" imemode="hangul" style="left:435px; top:8px; width:115px; height:19px; ">
  231. <script type="javascript" ev:event="onkeypress">
  232. <![CDATA[
  233. inputEnterKey("button1", "DOMActivate");
  234. ]]>
  235. </script>
  236. </input>
  237. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  238. <caption>조회</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. var sCond = model.getValue("/root/send/indschacptstat");
  242. if (sCond == "2" || sCond == "3" || sCond == "7") {
  243. var sText = model.getValue("/root/send/data1");
  244. if (!isNull(sText)) {
  245. submit("TRPMI03601");
  246. var iCount = getNodesetCount("/root/main/vipinpatlist/vipinpatspec");
  247. if (iCount == 0) {
  248. messageBox("조회 결과가 없습니다.", "I");
  249. }
  250. } else {
  251. messageBox("검색할 단어를 입력하십시오!", "I");
  252. model.setFocus("ipt_text");
  253. model.refresh();
  254. }
  255. } else {
  256. submit("TRPMI03601");
  257. var iCount = getNodesetCount("/root/main/vipinpatlist/vipinpatspec");
  258. if (iCount == 0) {
  259. messageBox("조회 결과가 없습니다.", "I");
  260. }
  261. }
  262. ]]>
  263. </script>
  264. </button>
  265. <line id="line2" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  266. <caption id="caption17" class="search_name" style="left:5px; top:10px; width:86px; height:17px; ">조회일자 :</caption>
  267. <caption id="caption3" class="search_name" style="left:215px; top:10px; width:86px; height:17px; ">조회항목 :</caption>
  268. <select1 id="cmb_srchcond" ref="/root/send/srchcond" class="combo_search" appearance="minimal" style="left:310px; top:8px; width:115px; height:19px; ">
  269. <choices>
  270. <item>
  271. <label>전체</label>
  272. <value>1</value>
  273. </item>
  274. <item>
  275. <label>환자번호</label>
  276. <value>2</value>
  277. </item>
  278. <item>
  279. <label>진료과</label>
  280. <value>4</value>
  281. </item>
  282. <item>
  283. <label>병동</label>
  284. <value>5</value>
  285. </item>
  286. </choices>
  287. <script type="javascript" ev:event="xforms-select">
  288. <![CDATA[
  289. var refitem = model.getValue("/root/send/srchcond");
  290. // model.refresh();
  291. fSelectRefItem(refitem);
  292. ]]>
  293. </script>
  294. </select1>
  295. <input id="ipt_infromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:95px; top:8px; width:100px; height:19px; "/>
  296. <select1 id="cmb_sex" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:450px; top:8px; width:115px; height:19px; ">
  297. <choices>
  298. <item>
  299. <label>남</label>
  300. <value>M</value>
  301. </item>
  302. <item>
  303. <label>여</label>
  304. <value>F</value>
  305. </item>
  306. </choices>
  307. </select1>
  308. <select1 id="cmb_orddeptcd" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:465px; top:8px; width:115px; height:19px; ">
  309. <choices>
  310. <itemset nodeset="/root/hidden/init/orddeptcd">
  311. <label ref="nm"/>
  312. <value ref="cd"/>
  313. </itemset>
  314. </choices>
  315. </select1>
  316. <select1 id="cmb_wardcd" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:475px; top:8px; width:115px; height:19px; ">
  317. <choices>
  318. <itemset nodeset="/root/hidden/init/wardcd">
  319. <label ref="nm"/>
  320. <value ref="cd"/>
  321. </itemset>
  322. </choices>
  323. </select1>
  324. <select1 id="cmb_disccd" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:485px; top:8px; width:115px; height:19px; ">
  325. <choices>
  326. <itemset nodeset="/root/hidden/init/disccd">
  327. <label ref="nm"/>
  328. <value ref="cd"/>
  329. </itemset>
  330. </choices>
  331. </select1>
  332. <input id="ipt_pid" ref="/root/main/patinfo/patinfolist/pid" class="input_default" style="left:838px; top:8px; width:77px; height:19px; ">
  333. <script type="javascript" ev:event="onkeypress">
  334. <![CDATA[
  335. if (event.keyCode == "8") {
  336. model.resetInstanceNode("/root/send");
  337. fInitialize();
  338. }
  339. if(event.keyCode == "13") {
  340. vcheck_pid = ipt_pid.currentText;
  341. //환자번호 null체크
  342. if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
  343. messageBox("환자등록번호가 입력되지","E007");
  344. return;
  345. }
  346. //환자번호 조건으로 인적정보 조회
  347. model.setValue("/root/source/srchcond", "1");
  348. model.setValue("/root/source/pid", vcheck_pid);
  349. //환자기본정보 node clear
  350. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  351. //환자등록번호 체크
  352. if(submit("TRPMC02500")){
  353. var vcheck_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  354. if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
  355. //조회내역 체크
  356. messageBox("존재하지 않는 등록번호","E008");//E008=입니다
  357. fInitialize();
  358. return;
  359. }
  360. //조회되는 항목들 clear
  361. model.resetInstanceNode("/root/main/baseinfo");
  362. model.setValue("/root/send/data1" , model.getValue("/root/main/patinfo/patinfolist/pid") );
  363. button1.dispatch("DOMActivate");
  364. }
  365. else {
  366. messageBox("존재하지 않는 등록번호","E008");//E008=입니다
  367. model.setFocus("ipt_pid");
  368. model.refresh();
  369. return;
  370. }
  371. }//End if(event.keyCode == "13") {
  372. ]]>
  373. </script>
  374. </input>
  375. <output id="opt_hngnm" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:917px; top:8px; width:65px; height:19px; "/>
  376. <button id="btn_pid" class="icon_search" style="left:1086px; top:9px; width:16px; height:16px; ">
  377. <caption/>
  378. <script type="javascript" ev:event="DOMActivate">
  379. <![CDATA[
  380. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  381. ]]>
  382. </script>
  383. </button>
  384. <caption id="caption1" class="search_name" style="left:749px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  385. <output id="opt_rrgstno1" ref="/root/main/patinfo/patinfolist/rrgstno1" class="output_fix" style="left:984px; top:8px; width:46px; height:19px; "/>
  386. <output id="opt_rrgstno2" ref="/root/main/patinfo/patinfolist/rrgstno2" class="output_fix" style="left:1032px; top:8px; width:52px; height:19px; "/>
  387. <select id="checkbox1" ref="/root/send/erexptyn" overflow="visible" appearance="full" style="left:570px; top:11px; width:15px; height:10px; border-style:none; ">
  388. <choices>
  389. <item>
  390. <label>응급제외</label>
  391. <value>Y</value>
  392. </item>
  393. </choices>
  394. </select>
  395. <select id="checkbox2" ref="/root/send/tdayinexptyn" overflow="visible" appearance="full" style="left:645px; top:11px; width:15px; height:10px; border-style:none; ">
  396. <choices>
  397. <item>
  398. <label>당일입원 제외</label>
  399. <value>Y</value>
  400. </item>
  401. </choices>
  402. </select>
  403. </group>
  404. <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:300px; height:13px; font-family:돋움; vertical-align:middle; ">VIP재원환자내역</caption>
  405. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  406. <button id="button3" class="btn2_letter4" style="left:1130px; top:50px; width:64px; height:19px; ">
  407. <caption>엑셀저장</caption>
  408. <script type="javascript" ev:event="DOMActivate">
  409. <![CDATA[
  410. var fileName = window.fileDialog("save", ",", false, getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  411. if (fileName != "")
  412. {
  413. grd_vipinpatspec.saveExcel(fileName, "SheetName", true, true, "", "", false);
  414. }
  415. ]]>
  416. </script>
  417. </button>
  418. <datagrid id="grd_vipinpatspec" nodeset="/root/main/vipinpatlist/vipinpatspec" class="datagrid2" caption="환자번호^입원일자^환자성명^사생활보호^동년도입원&#xA;횟수(전체)^성별^나이^진료과^전문의^병실^상 병 명^VIP내용^계정^종교" colsep="^" colwidth="69, 80, 78, 80, 68, 35, 35, 100, 66, 71, 242, 259, 57, 66" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:75px; width:1194px; height:669px; ">
  419. <col disabled="true" ref="pid" style="text-align:center; "/>
  420. <col disabled="true" ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  421. <col disabled="true" ref="hngnm" style="text-align:center; "/>
  422. <col disabled="true" ref="privacyyn" style="color:#ff0000; text-align:center; "/>
  423. <col disabled="true" ref="incnt" style="text-align:center; "/>
  424. <col disabled="true" ref="sex" style="text-align:center; "/>
  425. <col disabled="true" ref="age" style="text-align:center; "/>
  426. <col disabled="true" ref="depthngnm" style="text-align:left; "/>
  427. <col disabled="true" ref="orddrnm" style="text-align:left; "/>
  428. <col disabled="true" ref="roomcd" style="text-align:left; "/>
  429. <col disabled="true" ref="diagnosisnm" style="text-align:left; "/>
  430. <col class="gridinput" ref="vipcnts" type="input" style="text-align:left; "/>
  431. <col disabled="true" ref="disccd" style="text-align:left; "/>
  432. <col ref="religncd"/>
  433. <script type="javascript" ev:event="onaftersort">
  434. <![CDATA[
  435. //sorting 시 인스턴스 구조를 재구성
  436. grd_vipinpatspec.gridToInstance();
  437. ]]>
  438. </script>
  439. </datagrid>
  440. <button id="button4" class="btn2_letter2" style="left:1085px; top:50px; width:42px; height:19px; ">
  441. <caption>출력</caption>
  442. <script type="javascript" ev:event="DOMActivate">
  443. <![CDATA[
  444. fPrint("PRINT");
  445. ]]>
  446. </script>
  447. </button>
  448. <button id="button5" class="btn2_letter4" style="left:1018px; top:50px; width:64px; height:19px; ">
  449. <caption>미리보기</caption>
  450. <script type="javascript" ev:event="DOMActivate">
  451. <![CDATA[
  452. fPrint("PREVIEW");
  453. ]]>
  454. </script>
  455. </button>
  456. <group id="grp_report" visibility="hidden" style="left:865px; top:50px; width:65px; height:15px; "/>
  457. </group>
  458. <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
  459. <button id="button2" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  460. <caption>초기화</caption>
  461. <script type="javascript" ev:event="DOMActivate">
  462. <![CDATA[
  463. fInitialize();
  464. ]]>
  465. </script>
  466. </button>
  467. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  468. <button id="button6" class="btn4_letter2" style="left:1068px; top:5px; width:56px; height:22px; ">
  469. <caption>저장</caption>
  470. <script type="javascript" ev:event="DOMActivate">
  471. <![CDATA[
  472. // model.alert(grd_vipinpatspec.getUpdateData());
  473. model.setValue("/root/send/data2", grd_vipinpatspec.getUpdateData());
  474. if (submit("TXPMI03601")) {
  475. model.resetInstanceNode("/root/send/data2");
  476. // 재조회
  477. button1.dispatch("DOMActivate");
  478. }
  479. ]]>
  480. </script>
  481. </button>
  482. </group>
  483. </xhtml:body>
  484. </xhtml:html>