SMPMI03900_원무입원퇴원재원조회.xrw 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059
  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>입원/퇴원/재원조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <indschacptstat/>
  11. <srchcond/>
  12. <fromdd/>
  13. <todd/>
  14. <data1/>
  15. <sess_posinstcd/>
  16. <ioflag/>
  17. <eryn/>
  18. <vipyn/>
  19. <tdayinexptyn/>
  20. <srchdateyn/>
  21. <srchdate/>
  22. <gubunexpt/>
  23. <hngnm/>
  24. </send>
  25. <main>
  26. <inptlist>
  27. <inddschspec/>
  28. </inptlist>
  29. <patinfo>
  30. <patinfolist>
  31. <pid/>
  32. <hngnm/>
  33. <rrgstno1/>
  34. <rrgstno2/>
  35. </patinfolist>
  36. </patinfo>
  37. </main>
  38. <init>
  39. <P0149list>
  40. <P0149>
  41. <cdid/>
  42. <cdnm/>
  43. </P0149>
  44. </P0149list>
  45. <P0160list>
  46. <P0160>
  47. <cdid/>
  48. <cdnm/>
  49. </P0160>
  50. </P0160list>
  51. <P0002list>
  52. <P0002>
  53. <cdid/>
  54. <cdnm/>
  55. </P0002>
  56. </P0002list>
  57. <P0008list>
  58. <P0008>
  59. <cdid/>
  60. <cdnm/>
  61. </P0008>
  62. </P0008list>
  63. <P0010list>
  64. <P0010>
  65. <cdid/>
  66. <cdnm/>
  67. </P0010>
  68. </P0010list>
  69. <P0070ist>
  70. <P0070>
  71. <cdid/>
  72. <cdnm/>
  73. </P0070>
  74. </P0070ist>
  75. <P0025list>
  76. <P0025>
  77. <cdid/>
  78. <cdnm/>
  79. </P0025>
  80. </P0025list>
  81. <P0006list>
  82. <P0006>
  83. <cdid/>
  84. <cdnm/>
  85. </P0006>
  86. </P0006list>
  87. <P0032list>
  88. <P0032>
  89. <cdid/>
  90. <cdnm/>
  91. </P0032>
  92. </P0032list>
  93. <P0016list>
  94. <P0016>
  95. <cdid/>
  96. <cdnm/>
  97. </P0016>
  98. </P0016list>
  99. <P0026list>
  100. <P0026>
  101. <cdid/>
  102. <cdnm/>
  103. </P0026>
  104. </P0026list>
  105. </init>
  106. <hidden>
  107. <init>
  108. <disccd>
  109. <cd/>
  110. <nm/>
  111. </disccd>
  112. <insukind>
  113. <cd/>
  114. <nm/>
  115. </insukind>
  116. <suppkind>
  117. <cd/>
  118. <nm/>
  119. <up/>
  120. <io/>
  121. </suppkind>
  122. <orddeptcd>
  123. <cd/>
  124. <nm/>
  125. </orddeptcd>
  126. <orddrid>
  127. <cd/>
  128. <nm/>
  129. <dp/>
  130. </orddrid>
  131. <flag>
  132. <prestdd/>
  133. <mskindflag/>
  134. </flag>
  135. <roomgrdecd>
  136. <nm/>
  137. <cd/>
  138. </roomgrdecd>
  139. </init>
  140. <printtype>
  141. <printkind/>
  142. <printfromdd/>
  143. <printtodd/>
  144. </printtype>
  145. </hidden>
  146. <source>
  147. <srchcond/>
  148. <pid/>
  149. <hngnm/>
  150. <rrgstno1/>
  151. <rrgstno2/>
  152. <autoflag/>
  153. </source>
  154. </root>
  155. </instance>
  156. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  157. <submission id="TRPMI00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inptlist"/>
  158. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
  159. <script type="javascript" ev:event="xforms-ready">
  160. <![CDATA[
  161. //-----------------------------------------------------------------------------------------------------------------------------------------------------------
  162. // 2009.06.10 조진희 변경개발요청 수정추가 박재형
  163. // 기존에 SMPMI00700_입원재원퇴원조회를 사용하고 있었는데 다른곳에서 임으로 다 사용하는 바람에 따로 화면을 원무 전용으로 해서 만들어달라고 요청들어옴.
  164. // 하여 SMPMI00700_입원재원퇴원조회를 복사하여 SMPMI03900_원무입원재원퇴원조회를 만들어서 적용할꺼고. 나머지 map, app, mgr, rex쪽은 모두 똑같이 사용한다.
  165. //-----------------------------------------------------------------------------------------------------------------------------------------------------------
  166. zbcfGetCodeList(new Array("P0149","P0160","P0002","P0008","P0010", "P0070", "P0025", "P0026","P0006", "P0032","P0016"), new Array("/root/init/P0149list", "/root/init/P0160list", "/root/init/P0002list", "/root/init/P0008list","/root/init/P0010list","/root/init/P0070list","/root/init/P0025list","/root/init/P0026list","/root/init/P0006list","/root/init/P0032list","/root/init/P0016list"));
  167. //model.setValue("/root/send/sess_posinstcd","012");
  168. model.setValue("/root/send/ioflag", "I");
  169. submit("TRPMI00106");
  170. /*
  171. model.setValue("/root/send/fromdd", getCurrentDate());
  172. model.setValue("/root/send/todd", getCurrentDate());
  173. model.setValue("/root/send/indschacptstat","1");
  174. model.refresh();
  175. */
  176. fInitialize();
  177. makeReportPreview(0, 0, 0, 0, "grp_report");
  178. ]]>
  179. </script>
  180. </model>
  181. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  182. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  183. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  184. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  185. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  186. </xhtml:head>
  187. <script type="javascript">
  188. <![CDATA[
  189. function fSelectRefItem(refitem)
  190. {
  191. // 1. 전체 2. 환자성명 3. 진료과 4. 병동 5. 보험유형 6.유형보조
  192. // 7. 할인계정 8. 입원경로 9. 보호자 10.주소별 11.성별 12. 선택진료 13. VIP
  193. model.setValue("/root/send/data1", "");
  194. model.refresh();
  195. if (refitem == '1') {
  196. ipt_text.visible = false;
  197. cmb_orddeptcd.visible = false;
  198. cmb_wardcd.visible = false;
  199. cmb_insukind.visible = false;
  200. cmb_suppkind.visible = false;
  201. cmb_disccd.visible = false;
  202. cmb_inpath.visible= false;
  203. cmb_sex.visible = false;
  204. cmb_specordyn.visible = false;
  205. cmb_vipyn.visible = false;
  206. } else if (refitem == '2' || refitem == '9' || refitem == '10' || refitem == '14') {
  207. ipt_text.attribute("top") = "8xp";
  208. ipt_text.attribute("left") = "545px";
  209. ipt_text.visible = true;
  210. cmb_orddeptcd.visible = false;
  211. cmb_wardcd.visible = false;
  212. cmb_insukind.visible = false;
  213. cmb_suppkind.visible = false;
  214. cmb_disccd.visible = false;
  215. cmb_inpath.visible= false;
  216. cmb_sex.visible = false;
  217. cmb_specordyn.visible = false;
  218. cmb_vipyn.visible = false;
  219. model.setFocus("ipt_text");
  220. } else if (refitem == '3') {
  221. cmb_orddeptcd.attribute("top") = "8xp";
  222. cmb_orddeptcd.attribute("left") = "545px";
  223. ipt_text.visible = false;
  224. cmb_orddeptcd.visible = true;
  225. cmb_wardcd.visible = false;
  226. cmb_insukind.visible = false;
  227. cmb_suppkind.visible = false;
  228. cmb_disccd.visible = false;
  229. cmb_inpath.visible= false;
  230. cmb_sex.visible = false;
  231. cmb_specordyn.visible = false;
  232. cmb_vipyn.visible = false;
  233. } else if (refitem == '4') {
  234. cmb_wardcd.attribute("top") = "8xp";
  235. cmb_wardcd.attribute("left") = "545px";
  236. ipt_text.visible = false;
  237. cmb_orddeptcd.visible = false;
  238. cmb_wardcd.visible = true;
  239. cmb_insukind.visible = false;
  240. cmb_suppkind.visible = false;
  241. cmb_disccd.visible = false;
  242. cmb_inpath.visible= false;
  243. cmb_sex.visible = false;
  244. cmb_specordyn.visible = false;
  245. cmb_vipyn.visible = false;
  246. } else if (refitem == '5') {
  247. cmb_insukind.attribute("top") = "8xp";
  248. cmb_insukind.attribute("left") = "545px";
  249. ipt_text.visible = false;
  250. cmb_orddeptcd.visible = false;
  251. cmb_wardcd.visible = false;
  252. cmb_insukind.visible = true;
  253. cmb_suppkind.visible = false;
  254. cmb_disccd.visible = false;
  255. cmb_inpath.visible= false;
  256. cmb_sex.visible = false;
  257. cmb_specordyn.visible = false;
  258. cmb_vipyn.visible = false;
  259. } else if (refitem == '6') {
  260. cmb_suppkind.attribute("top") = "8xp";
  261. cmb_suppkind.attribute("left") = "545px";
  262. ipt_text.visible = false;
  263. cmb_orddeptcd.visible = false;
  264. cmb_wardcd.visible = false;
  265. cmb_insukind.visible = false;
  266. cmb_suppkind.visible = true;
  267. cmb_disccd.visible = false;
  268. cmb_inpath.visible= false;
  269. cmb_sex.visible = false;
  270. cmb_specordyn.visible = false;
  271. cmb_vipyn.visible = false;
  272. } else if (refitem == '7') {
  273. cmb_disccd.attribute("top") = "8xp";
  274. cmb_disccd.attribute("left") = "545px";
  275. ipt_text.visible = false;
  276. cmb_orddeptcd.visible = false;
  277. cmb_wardcd.visible = false;
  278. cmb_insukind.visible = false;
  279. cmb_suppkind.visible = false;
  280. cmb_disccd.visible = true;
  281. cmb_inpath.visible= false;
  282. cmb_sex.visible = false;
  283. cmb_specordyn.visible = false;
  284. cmb_vipyn.visible = false;
  285. } else if (refitem == '8') {
  286. cmb_inpath.attribute("top") = "8xp";
  287. cmb_inpath.attribute("left") = "545px";
  288. ipt_text.visible = false;
  289. cmb_orddeptcd.visible = false;
  290. cmb_wardcd.visible = false;
  291. cmb_insukind.visible = false;
  292. cmb_suppkind.visible = false;
  293. cmb_disccd.visible = false;
  294. cmb_inpath.visible= true;
  295. cmb_sex.visible = false;
  296. cmb_specordyn.visible = false;
  297. cmb_vipyn.visible = false;
  298. } else if (refitem == '11') {
  299. cmb_sex.attribute("top") = "8xp";
  300. cmb_sex.attribute("left") = "545px";
  301. ipt_text.visible = false;
  302. cmb_orddeptcd.visible = false;
  303. cmb_wardcd.visible = false;
  304. cmb_insukind.visible = false;
  305. cmb_suppkind.visible = false;
  306. cmb_disccd.visible = false;
  307. cmb_inpath.visible= false;
  308. cmb_sex.visible= true;
  309. cmb_specordyn.visible = false;
  310. cmb_vipyn.visible = false;
  311. } else if (refitem == '12') {
  312. cmb_specordyn.attribute("top") = "8xp";
  313. cmb_specordyn.attribute("left") = "545px";
  314. ipt_text.visible = false;
  315. cmb_orddeptcd.visible = false;
  316. cmb_wardcd.visible = false;
  317. cmb_insukind.visible = false;
  318. cmb_suppkind.visible = false;
  319. cmb_disccd.visible = false;
  320. cmb_inpath.visible= false;
  321. cmb_sex.visible = false;
  322. cmb_specordyn.visible = true;
  323. cmb_vipyn.visible = false;
  324. } else if (refitem == '13') {
  325. cmb_vipyn.attribute("top") = "8xp";
  326. cmb_vipyn.attribute("left") = "545px";
  327. ipt_text.visible = false;
  328. cmb_orddeptcd.visible = false;
  329. cmb_wardcd.visible = false;
  330. cmb_insukind.visible = false;
  331. cmb_suppkind.visible = false;
  332. cmb_disccd.visible = false;
  333. cmb_inpath.visible= false;
  334. cmb_sex.visible = false;
  335. cmb_specordyn.visible = false;
  336. cmb_vipyn.visible = true;
  337. }
  338. }
  339. function fInitialize() {
  340. model.resetInstanceNode("/root/main/inptlist/inddschspec");
  341. model.resetInstanceNode("/root/send");
  342. model.setValue("/root/send/fromdd", getCurrentDate());
  343. model.setValue("/root/send/todd", getCurrentDate());
  344. model.setValue("/root/send/indschacptstat","1");
  345. model.setValue("/root/send/srchcond","2");
  346. fSelectRefItem("2")
  347. model.refresh();
  348. }
  349. function fPrint(pCond) {
  350. var sPrintYN = "false";
  351. var sAutoCloseYN = "false";
  352. var sViewYN = "";
  353. if (pCond == "PREVIEW") {
  354. sPrintYN = "false";
  355. sAutoCloseYN = "false";
  356. sViewYN = "";
  357. }
  358. if (pCond == "PRINT") {
  359. sPrintYN = "true";
  360. sAutoCloseYN = "false";
  361. sViewYN = "grp_report";
  362. }
  363. var iCount = getNodesetCount("/root/main/inptlist/inddschspec");
  364. if (iCount > 0) {
  365. var sInDschKind = model.getValue("/root/send/indschacptstat");
  366. var sPrintFromdd = model.getValue("/root/send/fromdd");
  367. var sPrinttodd = model.getValue("/root/send/todd");
  368. var sPrintKind = "입원일자 :";
  369. if (sInDschKind == "1") sPrintKind = "입원일자 :";
  370. else if (sInDschKind == "3") {
  371. sPrintKind = "재원일자 :";
  372. sPrintFromdd = getCurrentDate();
  373. sPrinttodd = getCurrentDate();
  374. }
  375. else if (sInDschKind == "2") sPrintKind = "퇴원일자 :";
  376. else if (sInDschKind == "4") sPrintKind = "가퇴원일자 :";
  377. else if (sInDschKind == "5") sPrintKind = "퇴원예고일자 :";
  378. else sPrintKind = "출력일자 :";
  379. sPrintFromdd = sPrintFromdd.substr(0, 4) + "-" + sPrintFromdd.substr(4, 2) + "-" + sPrintFromdd.substr(6, 2);
  380. sPrinttodd = sPrinttodd.substr(0, 4) + "-" + sPrinttodd.substr(4, 2) + "-" + sPrinttodd.substr(6, 2);
  381. model.makeValue("/root/hidden/printtype/printkind", sPrintKind);
  382. model.makeValue("/root/hidden/printtype/printfromdd", sPrintFromdd);
  383. model.makeValue("/root/hidden/printtype/printtodd", sPrinttodd);
  384. exeReportPreview("RPPMI00701", "XMLSTR" , "" , "" , sPrintYN , "", "", "", "", sAutoCloseYN, "", sViewYN);
  385. } else {
  386. messageBox("출력할 내용이 없습니다!!", "I");
  387. }
  388. }
  389. ]]>
  390. </script>
  391. <xhtml:body guideline="1,1193;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  392. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  393. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:13px; ">입원/퇴원/재원조회</caption>
  394. </group>
  395. <group id="group3" style="left:0px; top:13px; width:1195px; height:744px; ">
  396. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
  397. <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; "/>
  398. <input id="ipt_text" ref="/root/send/data1" class="input_search" visibility="hidden" imemode="hangul" style="left:543px; top:8px; width:115px; height:19px; ">
  399. <script type="javascript" ev:event="onkeypress">
  400. <![CDATA[
  401. if(model.getValue("/root/send/srchcond") == "2" && event.keyCode == "13") {
  402. model.setValue("/root/source/srchcond", "2");
  403. model.setValue("/root/source/hngnm", ipt_text.currentText);
  404. //JHP 20081110
  405. if(model.getValue("/root/send/indschacptstat") == "3"){
  406. ;
  407. }else{
  408. model.setValue("/root/source/autoflag" , "Y");
  409. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  410. model.setValue("/root/send/data1" , model.getValue("/root/main/patinfo/patinfolist/pid"));
  411. model.setValue("/root/send/srchcond", "14");
  412. cmb_srchcond.refresh();
  413. ipt_text.refresh();
  414. }
  415. }
  416. inputEnterKey("button1", "DOMActivate");
  417. ]]>
  418. </script>
  419. </input>
  420. <caption id="caption1" class="search_name" style="left:4px; top:9px; width:60px; height:17px; ">구분 :</caption>
  421. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  422. <caption>조회</caption>
  423. <script type="javascript" ev:event="DOMActivate">
  424. <![CDATA[
  425. if(model.getValue("/root/send/gubunexpt") == "Y" ){
  426. var chkcond = model.getValue("/root/send/srchcond");
  427. if(chkcond == "2" || chkcond == "14" ){
  428. }else{
  429. messageBox("구분제외는 환자를 지정 하여야 합니다.", "I");
  430. return;
  431. }
  432. }
  433. var sSrchDateYN = model.getValue("/root/send/srchdateyn");
  434. var sCond = model.getValue("/root/send/srchcond");
  435. // 2009.01.06 - 특정인 조회 시 환자번호, 환자명 선택이 아니면
  436. if (sSrchDateYN == "Y" && (sCond != "2" && sCond != "14")) {
  437. messageBox("특정인 조회 시 환자명이나 환자번호를 선택해야 합니다.", "I");
  438. return;
  439. }
  440. if (sCond == "14" || sCond == "2" || sCond == "9") {
  441. var sText = model.getValue("/root/send/data1");
  442. if (!isNull(sText)) {
  443. submit("TRPMI00701");
  444. var iCount = getNodesetCount("/root/main/inptlist/inddschspec");
  445. if (iCount == 0) {
  446. messageBox("조회 결과가 없습니다.", "I");
  447. }
  448. } else {
  449. messageBox("검색할 단어를 입력하십시오!", "I");
  450. model.setFocus("ipt_text");
  451. model.refresh();
  452. }
  453. } else {
  454. submit("TRPMI00701");
  455. var iCount = getNodesetCount("/root/main/inptlist/inddschspec");
  456. if (iCount == 0) {
  457. messageBox("조회 결과가 없습니다.", "I");
  458. }
  459. }
  460. ]]>
  461. </script>
  462. </button>
  463. <line id="line2" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  464. <caption id="caption17" class="search_name" style="left:793px; top:9px; width:86px; height:17px; ">입원일자 :</caption>
  465. <caption id="caption20" class="search_no_b" style="left:985px; top:9px; width:12px; height:17px; ">~</caption>
  466. <caption id="caption3" class="search_name" style="left:335px; top:9px; width:86px; height:17px; ">조회항목 :</caption>
  467. <select1 id="cmb_srchcond" ref="/root/send/srchcond" class="combo_search" appearance="minimal" style="left:424px; top:8px; width:115px; height:19px; ">
  468. <choices>
  469. <item>
  470. <label>전체</label>
  471. <value>1</value>
  472. </item>
  473. <item>
  474. <label>환자번호</label>
  475. <value>14</value>
  476. </item>
  477. <item>
  478. <label>환자성명</label>
  479. <value>2</value>
  480. </item>
  481. <item>
  482. <label>진료과</label>
  483. <value>3</value>
  484. </item>
  485. <item>
  486. <label>병동</label>
  487. <value>4</value>
  488. </item>
  489. <item>
  490. <label>보험유형</label>
  491. <value>5</value>
  492. </item>
  493. <item>
  494. <label>유형보조</label>
  495. <value>6</value>
  496. </item>
  497. <item>
  498. <label>할인계정</label>
  499. <value>7</value>
  500. </item>
  501. <item>
  502. <label>입원경로</label>
  503. <value>8</value>
  504. </item>
  505. <item>
  506. <label>보호자(피보험자)</label>
  507. <value>9</value>
  508. </item>
  509. <item>
  510. <label>성별</label>
  511. <value>11</value>
  512. </item>
  513. <item>
  514. <label>선택진료</label>
  515. <value>12</value>
  516. </item>
  517. <item>
  518. <label>VIP</label>
  519. <value>13</value>
  520. </item>
  521. </choices>
  522. <script type="javascript" ev:event="xforms-select">
  523. <![CDATA[
  524. var refitem = model.getValue("/root/send/srchcond");
  525. model.refresh();
  526. fSelectRefItem(refitem);
  527. ]]>
  528. </script>
  529. </select1>
  530. <input id="ipt_infromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:882px; top:8px; width:100px; height:19px; "/>
  531. <input id="ipt_intodd" ref="/root/send/todd" class="input_search" inputtype="date" style="left:1000px; top:8px; width:100px; height:19px; "/>
  532. <select1 id="rdo_indschacptstat" ref="/root/send/indschacptstat" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:65px; top:10px; width:194px; height:15px; border-style:none; ">
  533. <choices>
  534. <item>
  535. <label>입원</label>
  536. <value>1</value>
  537. </item>
  538. <item>
  539. <label>재원</label>
  540. <value>3</value>
  541. </item>
  542. <item>
  543. <label>퇴원</label>
  544. <value>2</value>
  545. </item>
  546. <item>
  547. <label>가퇴원</label>
  548. <value>4</value>
  549. </item>
  550. </choices>
  551. <script type="javascript" ev:event="xforms-select">
  552. <![CDATA[
  553. var indschacptstat = rdo_indschacptstat.value;
  554. if (indschacptstat == "1") {
  555. model.setValue("/root/send/fromdd", getCurrentDate());
  556. model.setValue("/root/send/todd", getCurrentDate());
  557. }
  558. if (indschacptstat == "2") {
  559. model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD"));
  560. model.setValue("/root/send/todd",getCurrentDate());
  561. }
  562. if (indschacptstat == "3") {
  563. model.setValue("/root/send/fromdd",'19000101');
  564. model.setValue("/root/send/todd",getCurrentDate());
  565. model.setValue("/root/send/srchcond" , "2");
  566. cmb_srchcond.dispatch("xforms-select");
  567. model.setValue("/root/send/srchdate",getCurrentDate());
  568. }
  569. if (indschacptstat == "4") {
  570. model.setValue("/root/send/fromdd", getCurrentDate());
  571. model.setValue("/root/send/todd",getCurrentDate());
  572. }
  573. if (indschacptstat == "2" || indschacptstat == "4" ) {
  574. caption17.value = "퇴원일자 :";
  575. } else {
  576. caption17.value = "입원일자 :";
  577. }
  578. if (indschacptstat == "3") {
  579. caption17.visible = false;
  580. caption20.visible = false;
  581. ipt_infromdd.visible = false;
  582. ipt_intodd.visible = false;
  583. chk_tdayinexptyn.visible = true;
  584. //model.setValue("/root/send/tdayinexptyn" , "Y");
  585. model.setValue("/root/send/srchcond" , "2");
  586. chk_tdayinexptyn.attribute("left") = "713px";
  587. chk_tdayinexptyn.attribute("top") = "10px";
  588. chk_srchdateyn.attribute("left") = "805px";
  589. if(model.getValue("/root/send/srchdateyn") == "Y"){
  590. var left1 = chk_srchdateyn.attribute("left");
  591. var left2 = parseInt(left1.substring(0,3)) + 85;
  592. var left3 = left2 + "px";
  593. ipt_indd.attribute("left") = left3;
  594. ipt_indd.visible = true;
  595. caption17.visible = false;
  596. ipt_infromdd.visible = false;
  597. caption20.visible = false;
  598. ipt_intodd.visible = false;
  599. }else{
  600. ipt_indd.visible = false;
  601. if(model.getValue("/root/send/indschacptstat") != "3"){
  602. caption17.visible = true;
  603. ipt_infromdd.visible = true;
  604. caption20.visible = true;
  605. ipt_intodd.visible = true;
  606. }
  607. }
  608. } else {
  609. ipt_text.visible = false;
  610. caption17.visible = true;
  611. caption20.visible = true;
  612. ipt_infromdd.visible = true;
  613. ipt_intodd.visible = true;
  614. chk_tdayinexptyn.visible = false;
  615. model.setValue("/root/send/srchcond" , "1");
  616. model.setValue("/root/send/tdayinexptyn" , "N");
  617. cmb_orddeptcd.visible = false;
  618. cmb_wardcd.visible = false;
  619. cmb_insukind.visible = false;
  620. cmb_suppkind.visible = false;
  621. cmb_disccd.visible = false;
  622. cmb_inpath.visible= false;
  623. cmb_sex.visible = false;
  624. cmb_specordyn.visible = false;
  625. cmb_vipyn.visible = false;
  626. chk_srchdateyn.attribute("left") = "713px";
  627. if(model.getValue("/root/send/srchdateyn") == "Y"){
  628. var left1 = chk_srchdateyn.attribute("left");
  629. var left2 = parseInt(left1.substring(0,3)) + 85;
  630. var left3 = left2 + "px";
  631. ipt_indd.attribute("left") = left3;
  632. ipt_indd.visible = true;
  633. caption17.visible = false;
  634. ipt_infromdd.visible = false;
  635. caption20.visible = false;
  636. ipt_intodd.visible = false;
  637. }else{
  638. ipt_indd.visible = false;
  639. if(model.getValue("/root/send/indschacptstat") != "3"){
  640. caption17.visible = true;
  641. ipt_infromdd.visible = true;
  642. caption20.visible = true;
  643. ipt_intodd.visible = true;
  644. }
  645. }
  646. }
  647. model.refresh();
  648. ]]>
  649. </script>
  650. </select1>
  651. <select1 id="cmb_sex" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:570px; top:3px; width:115px; height:19px; ">
  652. <choices>
  653. <item>
  654. <label>남</label>
  655. <value>M</value>
  656. </item>
  657. <item>
  658. <label>여</label>
  659. <value>F</value>
  660. </item>
  661. </choices>
  662. </select1>
  663. <select1 id="cmb_orddeptcd" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:560px; top:13px; width:115px; height:19px; ">
  664. <choices>
  665. <itemset nodeset="/root/hidden/init/orddeptcd">
  666. <label ref="nm"/>
  667. <value ref="cd"/>
  668. </itemset>
  669. </choices>
  670. </select1>
  671. <select1 id="cmb_wardcd" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:570px; top:13px; width:115px; height:19px; ">
  672. <choices>
  673. <itemset nodeset="/root/hidden/init/wardcd">
  674. <label ref="nm"/>
  675. <value ref="cd"/>
  676. </itemset>
  677. </choices>
  678. </select1>
  679. <select1 id="cmb_specordyn" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:580px; top:3px; width:115px; height:19px; ">
  680. <choices>
  681. <item>
  682. <label>선택진료</label>
  683. <value>Y</value>
  684. </item>
  685. <item>
  686. <label>비선택진료</label>
  687. <value>N</value>
  688. </item>
  689. </choices>
  690. </select1>
  691. <select1 id="cmb_insukind" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:580px; top:13px; width:115px; height:19px; ">
  692. <choices>
  693. <itemset nodeset="/root/hidden/init/insukind">
  694. <label ref="nm"/>
  695. <value ref="cd"/>
  696. </itemset>
  697. </choices>
  698. </select1>
  699. <select1 id="cmb_vipyn" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:590px; top:3px; width:115px; height:19px; ">
  700. <choices>
  701. <item>
  702. <label>VIP</label>
  703. <value>Y</value>
  704. </item>
  705. <item>
  706. <label>일반</label>
  707. <value>N</value>
  708. </item>
  709. </choices>
  710. </select1>
  711. <select1 id="cmb_suppkind" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:590px; top:13px; width:115px; height:19px; ">
  712. <choices>
  713. <itemset nodeset="/root/hidden/init/suppkind">
  714. <label ref="nm"/>
  715. <value ref="cd"/>
  716. </itemset>
  717. </choices>
  718. </select1>
  719. <select1 id="cmb_disccd" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:600px; top:13px; width:115px; height:19px; ">
  720. <choices>
  721. <itemset nodeset="/root/hidden/init/disccd">
  722. <label ref="nm"/>
  723. <value ref="cd"/>
  724. </itemset>
  725. </choices>
  726. </select1>
  727. <select1 id="cmb_inpath" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:610px; top:13px; width:115px; height:19px; ">
  728. <choices>
  729. <itemset nodeset="/root/init/P0002list/P0002">
  730. <label ref="cdnm"/>
  731. <value ref="cdid"/>
  732. </itemset>
  733. </choices>
  734. </select1>
  735. <select1 id="radio1" ref="/root/send/indschacptstat" appearance="full" overflow="visible" style="left:255px; top:10px; width:75px; height:15px; border-style:none; ">
  736. <choices>
  737. <item>
  738. <label>퇴원예고</label>
  739. <value>5</value>
  740. </item>
  741. </choices>
  742. <script type="javascript" ev:event="xforms-select">
  743. <![CDATA[
  744. var indschacptstat = rdo_indschacptstat.value;
  745. if (indschacptstat == "5") {
  746. //caption17.visible = true;
  747. //caption20.visible = true;
  748. caption17.value = "퇴원예고 :";
  749. model.setValue("/root/send/fromdd", getCurrentDate());
  750. ipt_infromdd.visible = true;
  751. ipt_intodd.visible = true;
  752. chk_tdayinexptyn.visible = false;
  753. model.setValue("/root/send/srchcond" , "1");
  754. model.setValue("/root/send/tdayinexptyn" , "N");
  755. cmb_orddeptcd.visible = false;
  756. cmb_wardcd.visible = false;
  757. cmb_insukind.visible = false;
  758. cmb_suppkind.visible = false;
  759. cmb_disccd.visible = false;
  760. cmb_inpath.visible= false;
  761. cmb_sex.visible = false;
  762. cmb_specordyn.visible = false;
  763. cmb_vipyn.visible = false;
  764. ipt_text.visible = false;
  765. if(model.getValue("/root/send/srchdateyn") == "Y"){
  766. var left1 = chk_srchdateyn.attribute("left");
  767. var left2 = parseInt(left1.substring(0,3)) + 85;
  768. var left3 = left2 + "px";
  769. ipt_indd.attribute("left") = left3;
  770. ipt_indd.visible = true;
  771. caption17.visible = false;
  772. ipt_infromdd.visible = false;
  773. caption20.visible = false;
  774. ipt_intodd.visible = false;
  775. }else{
  776. ipt_indd.visible = false;
  777. if(model.getValue("/root/send/indschacptstat") != "3"){
  778. caption17.visible = true;
  779. ipt_infromdd.visible = true;
  780. caption20.visible = true;
  781. ipt_intodd.visible = true;
  782. }
  783. }
  784. model.refresh();
  785. }
  786. ]]>
  787. </script>
  788. </select1>
  789. <select id="checkbox1" ref="/root/send/vipyn" overflow="visible" appearance="full" style="left:674px; top:10px; width:40px; height:20px; border-style:none; ">
  790. <choices>
  791. <item>
  792. <label>VIP</label>
  793. <value>Y</value>
  794. </item>
  795. </choices>
  796. </select>
  797. <select id="chk_tdayinexptyn" ref="/root/send/tdayinexptyn" visibility="hidden" appearance="full" style="left:790px; top:0px; width:105px; height:20px; border-style:none; ">
  798. <choices>
  799. <item>
  800. <label>당일입원제외</label>
  801. <value>Y</value>
  802. </item>
  803. </choices>
  804. <script type="javascript" ev:event="xforms-select">
  805. <![CDATA[
  806. model.setValue("/root/send/tdayinexptyn", "Y");
  807. ]]>
  808. </script>
  809. <script type="javascript" ev:event="xforms-deselect">
  810. <![CDATA[
  811. model.setValue("/root/send/tdayinexptyn", "N");
  812. ]]>
  813. </script>
  814. </select>
  815. <input id="ipt_indd" ref="/root/send/srchdate" class="input_search" visibility="hidden" inputtype="date" style="left:1005px; top:8px; width:100px; height:19px; "/>
  816. <select id="chk_srchdateyn" ref="/root/send/srchdateyn" visibility="visible" appearance="full" style="left:713px; top:10px; width:85px; height:20px; border-style:none; ">
  817. <choices>
  818. <item>
  819. <label>특정인조회</label>
  820. <value>Y</value>
  821. </item>
  822. </choices>
  823. <script type="javascript" ev:event="xforms-value-changed">
  824. <![CDATA[
  825. // 날짜가 없으면 전체를 조회
  826. //model.setValue("/root/send/srchdate", getCurrentDate());
  827. if(model.getValue("/root/send/srchdateyn") == "Y"){
  828. var left1 = chk_srchdateyn.attribute("left");
  829. var left2 = parseInt(left1.substring(0,3)) + 85;
  830. var left3 = left2 + "px";
  831. ipt_indd.attribute("left") = left3;
  832. ipt_indd.visible = true;
  833. caption17.visible = false;
  834. ipt_infromdd.visible = false;
  835. caption20.visible = false;
  836. ipt_intodd.visible = false;
  837. rdo_indschacptstat.disabled = true;
  838. radio1.disabled = true;
  839. }else{
  840. ipt_indd.visible = false;
  841. if(model.getValue("/root/send/indschacptstat") != "3"){
  842. caption17.visible = true;
  843. ipt_infromdd.visible = true;
  844. caption20.visible = true;
  845. ipt_intodd.visible = true;
  846. }
  847. rdo_indschacptstat.disabled = false;
  848. radio1.disabled = false;
  849. }
  850. model.refresh();
  851. ]]>
  852. </script>
  853. </select>
  854. </group>
  855. <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:300px; height:13px; font-family:돋움; vertical-align:middle; ">입원/퇴원/재원내역</caption>
  856. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  857. <button id="button3" class="btn2_letter4" style="left:1130px; top:50px; width:64px; height:19px; ">
  858. <caption>엑셀저장</caption>
  859. <script type="javascript" ev:event="DOMActivate">
  860. <![CDATA[
  861. var fileName = window.fileDialog("save", ",", false, getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  862. if (fileName != "")
  863. {
  864. grd_inddschspec.saveExcel(fileName, "SheetName", true, true, "", "", false);
  865. }
  866. ]]>
  867. </script>
  868. </button>
  869. <datagrid id="grd_inddschspec" nodeset="/root/main/inptlist/inddschspec" class="datagrid2" caption="격^환자번호^환자성명^환자성명(표)^생년월일^성별^나이^진료과^전문의^병동^병실^병상^입실&#xA;확인^선택&#xA;여부^선택진료서명^입원경로^입원일자^응급실내원일^입원시간^퇴원일자^퇴원시간^퇴원예고일^재원일수^현진료과&#xA;재원일수^예상&#xA;재원기간^퇴원&#xA;예정일^약정&#xA;구분^약정&#xA;잔여일수^사망여부^사망일자^진료의뢰서유무^주소^외국인^주/부^보험유형^보험회사명^보조유형^보조유형사유^승인기간^병실등급^상급&#xA;서명^병실형태^할인^전화(자택)^전화(휴대폰)^진료과약어^입원경로1^종교^담당의^진료과약어^진단명" colsep="^" colwidth="25, 77, 51, 80, 110, 35, 35, 100, 66, 84, 86, 50, 35, 35, 60, 60, 80, 85, 60, 80, 60, 70, 35, 58, 63, 82, 40, 60, 35, 100, 55, 242, 81, 63, 80, 90, 80, 85, 130, 105, 35, 100, 139, 110, 110, 100, 100, 100, 60, 100, 300" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:75px; width:1194px; height:669px; ">
  870. <col ref="isolateinfo" style="text-align:center; "/>
  871. <col editable="false" ref="pid" type="input" style="text-align:center; "/>
  872. <col disabled="true" ref="hngnm" visibility="hidden" style="text-align:center; "/>
  873. <col disabled="true" ref="hngnm2" style="text-align:center; "/>
  874. <!-- col disabled="true" ref="rrgstno" format="999999-9999999" style="text-align:center; "/ -->
  875. <col disabled="true" ref="rrgstno" format="99/99/99" style="text-align:center; "/>
  876. <col disabled="true" ref="sex" style="text-align:center; "/>
  877. <col disabled="true" ref="age" style="text-align:center; "/>
  878. <col disabled="true" ref="orddeptnm" type="output" style="text-align:left; "/>
  879. <col disabled="true" ref="medispclnm" type="output" style="text-align:center; "/>
  880. <col disabled="true" ref="wardcd" type="combo" style="text-align:left; ">
  881. <choices>
  882. <itemset nodeset="/root/hidden/init/wardcd">
  883. <label ref="nm"/>
  884. <value ref="cd"/>
  885. </itemset>
  886. </choices>
  887. </col>
  888. <col disabled="true" ref="roomcd" style="text-align:center; "/>
  889. <col disabled="true" ref="bednm" style="text-align:center; "/>
  890. <col ref="inrmchk" style="text-align:center; "/>
  891. <col ref="specordyn" type="output" style="text-align:center; "/>
  892. <col ref="sasmyn" style="text-align:center; "/>
  893. <col disabled="true" ref="inpath" type="combo" style="text-align:left; ">
  894. <choices>
  895. <itemset nodeset="/root/init/P0002list/P0002">
  896. <label ref="cdnm"/>
  897. <value ref="cdid"/>
  898. </itemset>
  899. </choices>
  900. </col>
  901. <col disabled="true" ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  902. <col disabled="true" ref="erindd" format="yyyy-mm-dd" style="text-align:center; "/>
  903. <col disabled="true" ref="intm" format="hh:nn" style="text-align:center; "/>
  904. <col disabled="true" ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  905. <col disabled="true" ref="dschtm" format="hh:nn" style="text-align:center; "/>
  906. <col disabled="true" ref="dschdclrdt" format="yyyy-mm-dd" style="text-align:center; "/>
  907. <col ref="inhospdays" style="text-align:center; "/>
  908. <col ref="inhospdeptdays" style="text-align:center; "/>
  909. <col ref="fcstinterm" style="text-align:center; "/>
  910. <col ref="dschfcstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  911. <col ref="agmttype" style="text-align:center; "/>
  912. <col ref="agmtdd" style="text-align:center; "/>
  913. <col ref="dethyn" style="text-align:center; "/>
  914. <col ref="dethdt" format="yyyy-mm-dd" style="text-align:center; "/>
  915. <col ref="cnstyn" style="text-align:center; "/>
  916. <col disabled="true" ref="detladdr"/>
  917. <col ref="forgeryn"/>
  918. <col ref="mskind" type="combo" style="text-align:center; ">
  919. <choices>
  920. <itemset nodeset="/root/init/P0006list/P0006">
  921. <label ref="cdnm"/>
  922. <value ref="cdid"/>
  923. </itemset>
  924. </choices>
  925. </col>
  926. <col disabled="true" ref="insukind" type="combo" style="text-align:center; ">
  927. <choices>
  928. <itemset nodeset="/root/hidden/init/insukind">
  929. <label ref="nm"/>
  930. <value ref="cd"/>
  931. </itemset>
  932. </choices>
  933. </col>
  934. <col disabled="true" ref="insucdnm" visibility="hidden"/>
  935. <col disabled="true" ref="suppkind" type="combo" style="text-align:center; ">
  936. <choices>
  937. <itemset nodeset="/root/hidden/init/suppkind">
  938. <label ref="nm"/>
  939. <value ref="cd"/>
  940. </itemset>
  941. </choices>
  942. </col>
  943. <col disabled="true" ref="suppkindresn" type="combo" visibility="hidden" style="text-align:center; ">
  944. <choices>
  945. <itemset nodeset="/root/init/P0032list/P0032">
  946. <label ref="cdnm"/>
  947. <value ref="cdid"/>
  948. </itemset>
  949. </choices>
  950. </col>
  951. <col ref="aprvfromto" style="text-align:center; "/>
  952. <col disabled="true" ref="roomgrdecd" type="combo">
  953. <choices>
  954. <itemset nodeset="/root/hidden/init/roomgrdecd">
  955. <label ref="nm"/>
  956. <value ref="cd"/>
  957. </itemset>
  958. </choices>
  959. </col>
  960. <col ref="roomsignyn" style="text-align:center; "/>
  961. <col disabled="true" ref="roomtypecd" type="combo">
  962. <choices>
  963. <itemset nodeset="/root/init/P0026list/P0026">
  964. <label ref="cdnm"/>
  965. <value ref="cdid"/>
  966. </itemset>
  967. </choices>
  968. </col>
  969. <col disabled="true" ref="disccd" type="output"/>
  970. <col disabled="true" ref="hometel"/>
  971. <col disabled="true" ref="mpphontel"/>
  972. <col visibility="hidden"/>
  973. <col ref="inpath1" visibility="hidden"/>
  974. <col disabled="true" ref="religncd" type="output" visibility="visible"/>
  975. <col ref="orddrnm"/>
  976. <col ref="deptengabbr" visibility="hidden"/>
  977. <col ref="diagnm" type="output" style="text-align:left; "/>
  978. <script type="javascript" ev:event="onaftersort">
  979. <![CDATA[
  980. //sorting 시 인스턴스 구조를 재구성
  981. grd_inddschspec.gridToInstance();
  982. ]]>
  983. </script>
  984. </datagrid>
  985. <button id="button4" class="btn2_letter2" style="left:1085px; top:50px; width:42px; height:19px; ">
  986. <caption>출력</caption>
  987. <script type="javascript" ev:event="DOMActivate">
  988. <![CDATA[
  989. fPrint("PRINT");
  990. ]]>
  991. </script>
  992. </button>
  993. <button id="button5" class="btn2_letter4" style="left:1018px; top:50px; width:64px; height:19px; ">
  994. <caption>미리보기</caption>
  995. <script type="javascript" ev:event="DOMActivate">
  996. <![CDATA[
  997. fPrint("PREVIEW");
  998. ]]>
  999. </script>
  1000. </button>
  1001. <group id="grp_report" visibility="hidden" style="left:865px; top:50px; width:65px; height:15px; "/>
  1002. </group>
  1003. <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
  1004. <button id="button2" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  1005. <caption>초기화</caption>
  1006. <script type="javascript" ev:event="DOMActivate">
  1007. <![CDATA[
  1008. fInitialize();
  1009. ]]>
  1010. </script>
  1011. </button>
  1012. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1013. </group>
  1014. </xhtml:body>
  1015. </xhtml:html>