SMPMI05200_진료과별재원예약환자.xrw 88 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <sess_posinstcd/>
  11. <ioflag/>
  12. <orddeptcd/>
  13. <wardcd/>
  14. <fromdd/>
  15. <todd/>
  16. <holiflag/>
  17. <orddd/>
  18. <orddflag/>
  19. <selectordward/>
  20. <inpatflag/>
  21. <longinflag/>
  22. <indaycnt/>
  23. <insukind/>
  24. <monorddward/>
  25. <emrorddept/>
  26. <sendflag/>
  27. <flag/>
  28. <reportflag/>
  29. <exceptflag/>
  30. </send>
  31. <main>
  32. <wardbedinfo>
  33. <wardcd/>
  34. <roomcd/>
  35. <roomgrdecd/>
  36. <wardgrdecd/>
  37. <assorddeptcd/>
  38. <inpt_indschacptstat/>
  39. <pid/>
  40. <hngnm/>
  41. <sex/>
  42. <orddeptcd/>
  43. </wardbedinfo>
  44. <monwardinfo>
  45. <wardnm/>
  46. <roomcd/>
  47. <avgbedcnt/>
  48. <bedcnt/>
  49. <oprrate/>
  50. <totalinpatcnt/>
  51. </monwardinfo>
  52. <monorddinfo>
  53. <wardcd/>
  54. <wardnm/>
  55. <avgbedcnt/>
  56. <bedcnt/>
  57. <oprrate/>
  58. <totalinpatcnt/>
  59. </monorddinfo>
  60. <moncomnbedinfo>
  61. <wardcd/>
  62. <wardnm/>
  63. <avgbedcnt/>
  64. <bedcnt/>
  65. <oprrate/>
  66. <totalinpatcnt/>
  67. </moncomnbedinfo>
  68. <emrinpatinfo>
  69. <wardcd/>
  70. <wardnm/>
  71. <totalinpatcnt/>
  72. </emrinpatinfo>
  73. <fromdd/>
  74. <todd/>
  75. <drholiordsche>
  76. <drholiordschelist/>
  77. </drholiordsche>
  78. <moninpatordd>
  79. <wardcd/>
  80. <wardnm/>
  81. <avgbedcnt/>
  82. <bedcnt/>
  83. <oprrate/>
  84. <totalinpatcnt/>
  85. </moninpatordd>
  86. </main>
  87. <hidden>
  88. <roomgrdelist>
  89. <roomgrde>
  90. <cdid/>
  91. <cdnm/>
  92. <typecd/>
  93. <yn/>
  94. <cdyn/>
  95. </roomgrde>
  96. </roomgrdelist>
  97. </hidden>
  98. <temp>
  99. <monselect/>
  100. <monorddward/>
  101. </temp>
  102. <init>
  103. <orddeptcd>
  104. <nm/>
  105. <cd/>
  106. </orddeptcd>
  107. <wardcd>
  108. <nm/>
  109. <cd/>
  110. </wardcd>
  111. <roomcd>
  112. <nm/>
  113. <cd/>
  114. </roomcd>
  115. <P0037list>
  116. <P0037>
  117. <cdid/>
  118. <cdnm/>
  119. </P0037>
  120. </P0037list>
  121. <insukind>
  122. <nm/>
  123. <cd/>
  124. </insukind>
  125. <roomgrdecd>
  126. <nm/>
  127. <cd/>
  128. </roomgrdecd>
  129. </init>
  130. <list>
  131. <orddinpat>
  132. <orddeptcd/>
  133. <orddeptnm/>
  134. <bedcnt/>
  135. <deptinpatcnt/>
  136. <deptinpatrate/>
  137. <inpatcnt/>
  138. <vacantcnt/>
  139. <decicnt/>
  140. <inpatrate/>
  141. <ugcyrsrvcnt/>
  142. <rsrvcnt/>
  143. <sumrsrvcnt/>
  144. </orddinpat>
  145. <orddward>
  146. <orddeptcd/>
  147. <orddeptnm/>
  148. <wardcnt/>
  149. <inpatcnt/>
  150. <otherorddin/>
  151. <emptyward/>
  152. <orddrate/>
  153. <otherorddrate/>
  154. </orddward>
  155. <longinpat>
  156. <orddeptcd/>
  157. <orddeptnm/>
  158. <longincnt/>
  159. <inpatcnt/>
  160. <avginpatcnt/>
  161. <insukind/>
  162. <insukindnm/>
  163. </longinpat>
  164. <longinpatlist>
  165. <roomcd/>
  166. <pid/>
  167. <hngnm/>
  168. <indd/>
  169. <insukind/>
  170. <age/>
  171. <longincause/>
  172. <innd/>
  173. <medispclid/>
  174. <atdoctid/>
  175. <totmedcost/>
  176. <totpay/>
  177. <payapp/>
  178. <payme/>
  179. <nopay/>
  180. <ownbamt/>
  181. <gipayment/>
  182. <chapayment/>
  183. <uncollent/>
  184. <dschschdd/>
  185. <dschdelayresn/>
  186. <cretno/>
  187. </longinpatlist>
  188. <wardordd>
  189. <orddeptcd/>
  190. <orddeptnm/>
  191. <wardcd/>
  192. <wardnm/>
  193. <wardcnt/>
  194. <inpatcnt/>
  195. <otherorddin/>
  196. <emptyward/>
  197. <orddrate/>
  198. <otherorddrate/>
  199. </wardordd>
  200. <orddetail>
  201. <wardnm/>
  202. <roomcd/>
  203. <bedcd/>
  204. <patstat/>
  205. <pid/>
  206. <hngnm/>
  207. <sex/>
  208. <orddeptnm/>
  209. <indd/>
  210. <diaghngcd/>
  211. <diaghngnm/>
  212. <medispclid/>
  213. <atdoctid/>
  214. </orddetail>
  215. <wardbedinpat>
  216. <wardcd/>
  217. <totbedcnt/>
  218. <totinpatcnt/>
  219. <wardbedrate/>
  220. <wardnm/>
  221. <orddeptcd/>
  222. <orddeptnm/>
  223. <flag/>
  224. </wardbedinpat>
  225. <orddeptinpat>
  226. <orddeptnm/>
  227. <bedcnt/>
  228. <inpatcnt/>
  229. <operatingrate/>
  230. </orddeptinpat>
  231. </list>
  232. <source>
  233. <orddeptcd/>
  234. <orddeptnm/>
  235. <sendflag/>
  236. <insukindnm/>
  237. </source>
  238. <report>
  239. <rorddinpat>
  240. <orddeptnm/>
  241. <wardnm/>
  242. <bedcnt/>
  243. <inpatcnt/>
  244. <otherdeptinpatcnt/>
  245. <vacantcnt/>
  246. <inpatrate/>
  247. <otherdeptinpatrate/>
  248. </rorddinpat>
  249. <wardinpatrep>
  250. <wardnm/>
  251. <roomcd/>
  252. <bednm/>
  253. <roomgrdecd/>
  254. <pid/>
  255. <hngnm/>
  256. <sex/>
  257. <indd/>
  258. <diagcd/>
  259. <diagnm/>
  260. <medispclnm/>
  261. <atdoctnm/>
  262. <orddeptnm/>
  263. </wardinpatrep>
  264. <emptybed>
  265. <wardnm/>
  266. <roomcd/>
  267. <bednm/>
  268. <roomgrdecd/>
  269. <inrsrvstat/>
  270. </emptybed>
  271. <emerpat>
  272. <pid/>
  273. <hngnm/>
  274. <sex/>
  275. <age/>
  276. <medispclpf/>
  277. <inpredd/>
  278. <oppredd/>
  279. <diaghngnm/>
  280. <operahngnm/>
  281. <lpselect/>
  282. <medispclid/>
  283. <diagcd/>
  284. <wardcd/>
  285. <roomcd/>
  286. <bedcd/>
  287. <pubbed/>
  288. </emerpat>
  289. <genpat>
  290. <pid/>
  291. <hngnm/>
  292. <sex/>
  293. <age/>
  294. <orddrid/>
  295. <inrsrvacptdd/>
  296. <inhopedd/>
  297. <scheopdd/>
  298. <termengnm/>
  299. <opengnm/>
  300. <specordtype/>
  301. <termcd/>
  302. <assgward/>
  303. <assgroom/>
  304. <assgbed/>
  305. <punlicbedyn/>
  306. </genpat>
  307. <emerinpat>
  308. <pid/>
  309. <hngnm/>
  310. <sex/>
  311. <age/>
  312. <indd/>
  313. <diagcd/>
  314. <diagnm/>
  315. <medispclid/>
  316. <medispclnm/>
  317. </emerinpat>
  318. <orddstand>
  319. <orddeptnm/>
  320. <wardnm/>
  321. <roomcd/>
  322. <bedcd/>
  323. <bedid/>
  324. </orddstand>
  325. <relonginpatlist>
  326. <roomcd/>
  327. <pid/>
  328. <hngnm/>
  329. <indd/>
  330. <insukind/>
  331. <age/>
  332. <longincause/>
  333. <innd/>
  334. <medispclid/>
  335. <atdoctid/>
  336. <totmedcost/>
  337. <totpay/>
  338. <payapp/>
  339. <payme/>
  340. <nopay/>
  341. <share/>
  342. <gipayment/>
  343. <chapayment/>
  344. <uncollent/>
  345. </relonginpatlist>
  346. </report>
  347. <init1>
  348. <P0025list>
  349. <P0025/>
  350. </P0025list>
  351. <P0008list>
  352. <P0008/>
  353. </P0008list>
  354. <PAM>
  355. <PK117list>
  356. <PK117>
  357. <cdnm/>
  358. <cdid/>
  359. </PK117>
  360. </PK117list>
  361. </PAM>
  362. </init1>
  363. </root>
  364. </instance>
  365. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  366. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  367. <submission id="TRPMI05200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/list"/>
  368. <submission id="TRPMI05210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/report"/>
  369. <submission id="TRPMI05220" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  370. <submission id="TRPMI05240" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  371. <submission id="TRPMI05245" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  372. <submission id="TRPMI05250" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  373. <submission id="TRPMB00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/drholiordsche"/>
  374. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  375. </model>
  376. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  377. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  378. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  379. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  380. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  381. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  382. <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  383. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  384. <script type="javascript" ev:event="xforms-ready">
  385. <![CDATA[
  386. //메뉴파라미터 확인
  387. var menu = getScreenMenuParameter();
  388. if( menu == 'E' ){ //진료에서 호출할 경우
  389. btn_orddcdlist.selected = false;
  390. btn_wardbed.selected = true;
  391. btn_longinpat.selected = false;
  392. btn_profgonbz.selected = false;
  393. btn_orddwardbed.selected = false;
  394. btn_monorddward.selected = false;
  395. btn_emrorddin.selected = false;
  396. model.toggle("case_wardbed");
  397. btn_orddcdlist.visible = false;
  398. btn_wardbed.visible = false;
  399. btn_longinpat.visible = false;
  400. btn_profgonbz.visible = false;
  401. btn_orddwardbed.visible = false;
  402. btn_monorddward.visible = false;
  403. btn_emrorddin.visible = false;
  404. caption6.text = '진료과별/병동별 병상가동 현황';
  405. }else{
  406. }
  407. fShowComboBox();
  408. //combobox 선택시 case 이동을 위한 버튼 숨김
  409. btn_Sroomcd.visible = false;
  410. btn_Sorddeptcd.visible = false;
  411. btn_Sorddwardbed.visible = false;
  412. btn_Swardorddbed.visible = false;
  413. grd_inrsrvspec.colHidden(11) = true;
  414. model.setValue("/root/send/monorddward" , "orddeptcd");
  415. model.setValue("/root/send/fromdd" , getCurrentDate());
  416. model.setValue("/root/send/todd" , getCurrentDate());
  417. model.setValue("/root/send/orddd","20100101");
  418. model.setValue("/root/send/longinflag" , "orddept");
  419. model.setValue("/root/send/emrorddept" , "12");
  420. fGetUserInfosSampling();//세션정보
  421. model.setValue("/root/send/sess_posinstcd",model.getValue("/root/hidden/session/sess_dutplceinstcd"));
  422. model.setValue("/root/send/ioflag","I");
  423. submit("TRPMI00106");
  424. zbcfGetCodeList(new Array("P0008","P0025","P0037"),new Array("/root/init1/P0008list","/root/init1/P0025list","/root/init/P0037list"));
  425. // 원무공통코드 조회
  426. pamfGetCodeList(new Array("PK117"), new Array("/root/init1/PAM/PK117list"));
  427. var sWard = "■ 특수병상 목록 ■\r\n\r\n";
  428. for (i = 0; i < getNodesetCount("/root/init1/PAM/PK117list/PK117"); i++) {
  429. var ward = model.getValue("/root/init1/PAM/PK117list/PK117[" + i + "]/detl");
  430. if (!isNull(ward)) {
  431. sWard = sWard + ward + "\r\n";
  432. }
  433. }
  434. // 특수병상 제외 대상 표시
  435. // checkbox1.hint = sWard;
  436. // checkbox2.hint = sWard;
  437. ]]>
  438. </script>
  439. <script type="javascript">
  440. <![CDATA[
  441. // case 이동시 검색조건을 바꾸기위한 스크립트
  442. function fShowComboBox() {
  443. if(btn_orddcdlist.selected == true) {
  444. //btn_orddstand.visible = true;
  445. //btn_inpatmanage.visible = true;
  446. //btn_chk.visible = true;
  447. caption13.visible = false;
  448. }else if(btn_orddcdlist.selected == false) {
  449. btn_orddstand.visible = false;
  450. btn_inpatmanage.visible = false;
  451. btn_chk.visible = false;
  452. }if(btn_monorddward.selected == true) {
  453. cmb_roselect.visible = true;
  454. caption10.visible = true;
  455. //caption11.visible = true;
  456. caption12.visible = true;
  457. caption39.visible = true;
  458. fromdd.visible = true;
  459. todd.visible = true;
  460. caption13.visible = false;
  461. //월별진료과별 선택콤보
  462. cmb_roselect.select(0);
  463. var today = getCurrentDate();
  464. fromdd.value = today.substring(0,6) + "01";
  465. todd.value = today.substring(0,6) + today.toDate().getMonthDay();
  466. }else if(btn_monorddward.selected == false) {
  467. cmb_roselect.visible = false;
  468. caption10.visible = false;
  469. //caption11.visible = false;
  470. caption12.visible = false;
  471. caption39.visible = false;
  472. fromdd.visible = false;
  473. todd.visible = false;
  474. }if(btn_profgonbz.selected == true) {
  475. caption15.attribute("left") = "18px";
  476. ipt_fromdd.attribute("left") = "108px";
  477. caption14.attribute("left") = "202px";
  478. ipt_todd.attribute("left") = "218px";
  479. caption14.visible = true;
  480. caption15.visible = true;
  481. ipt_todd.visible = true;
  482. ipt_fromdd.visible = true;
  483. caption13.visible = false;
  484. }else if(btn_profgonbz.selected == false) {
  485. caption14.visible = false;
  486. caption15.visible = false;
  487. ipt_todd.visible = false;
  488. ipt_fromdd.visible = false;
  489. }if(btn_orddwardbed.selected == true) {
  490. caption16.attribute("left") = "18px";
  491. cmb_orddwardbed.attribute("left") = "108px";
  492. caption16.visible = true;
  493. cmb_orddwardbed.visible = true;
  494. //진료과별 병동별 선택콤보
  495. cmb_orddwardbed.select(0);
  496. checkbox1.visible = true;
  497. }else if(btn_orddwardbed.selected == false) {
  498. caption16.visible = false;
  499. cmb_orddwardbed.visible = false;
  500. checkbox1.visible = false;
  501. }if(btn_emrorddin.selected == true) {
  502. caption39.attribute("left") = "18px";
  503. cmb_emrorddept.attribute("left") = "107px";
  504. caption13.attribute("left") = "235px";
  505. fromdd.attribute("left") = "350px";
  506. caption12.attribute("left") = "445px";
  507. todd.attribute("left") = "460px";
  508. cmb_emrorddept.visible = true;
  509. caption39.visible = true;
  510. caption13.visible = true;
  511. caption12.visible = true;
  512. fromdd.visible = true;
  513. todd.visible = true;
  514. var today = getCurrentDate();
  515. fromdd.value = today.substring(0,6) + "01";
  516. todd.value = today.substring(0,6) + today.toDate().getMonthDay();
  517. }else if(btn_emrorddin.selected == false && btn_monorddward.selected == true) {
  518. cmb_emrorddept.visible = false;
  519. caption13.attribute("left") = "275px";
  520. fromdd.attribute("left") = "392px";
  521. caption12.attribute("left") = "487px";
  522. todd.attribute("left") = "502px";
  523. caption39.visible = true;
  524. caption12.visible = true;
  525. caption13.visible = true;
  526. fromdd.visible = true;
  527. todd.visible = true;
  528. }else if(btn_emrorddin.selected == false) {
  529. caption13.visible = false;
  530. cmb_emrorddept.visible = false;
  531. }
  532. if(btn_wardbed.selected == true) {
  533. caption17.visible = true;
  534. rdo_orddward.visible = true;
  535. caption17.attribute("left") = "18px";
  536. rdo_orddward.attribute("left") = "108px";
  537. checkbox2.visible = true;
  538. }else if(btn_wardbed.selected == false) {
  539. caption17.visible = false;
  540. rdo_orddward.visible = false;
  541. checkbox2.visible = false;
  542. }
  543. if(btn_longinpat.selected == true) {
  544. caption17.visible = true;
  545. caption17.attribute("left") = "18px";
  546. cmd_insukind.visible = true;
  547. cmd_insukind.attribute("left") = "109px";
  548. caption18.visible = true;
  549. caption18.attribute("left") = "240px";
  550. caption19.visible = true;
  551. caption19.attribute("left") = "364px";
  552. input_indaycnt.visible = true;
  553. input_indaycnt.attribute("left") = "330px";
  554. grd_longinpat.colHidden(0) = false;
  555. grd_longinpat.colHidden(1) = true;
  556. if(cmd_insukind.value == "orddept" ) {
  557. grd_longinpat.colHidden(0) = false;
  558. grd_longinpat.colHidden(1) = true;
  559. cap_orddept.visible = true;
  560. cap_insukind.visible = false;
  561. grd_longinpat.nodeset = "/root/list/longinpat";
  562. submit("TRPMI05200");
  563. }else if(cmd_insukind.value == "insukind" ) {
  564. grd_longinpat.colHidden(1) = false;
  565. grd_longinpat.colHidden(0) = true;
  566. cap_orddept.visible = false;
  567. cap_insukind.visible = true;
  568. grd_longinpat.nodeset = "/root/list/longinpat";
  569. submit("TRPMI05200");
  570. }
  571. }else if(btn_longinpat.selected == false && btn_wardbed.selected == false){
  572. caption17.visible = false;
  573. cmd_insukind.visible = false;
  574. caption18.visible = false;
  575. caption19.visible = false;
  576. input_indaycnt.visible = false;
  577. }else if(btn_wardbed.selected == true ) {
  578. caption17.visible = true;
  579. cmd_insukind.visible = false;
  580. caption18.visible = false;
  581. caption19.visible = false;
  582. input_indaycnt.visible = false;
  583. }
  584. }
  585. //grid 에 과별 합계구하기
  586. function fSubTot() {
  587. grd_wardorddbed.subtotalposition = "below";
  588. grd_orddwardbed.subtotalPosition = "below";
  589. grd_inrsrvspec.subtotalPosition = "below";
  590. grd_wardbed.subtotalPosition = "below";
  591. grd_monorddward.subtotalPosition = "below";
  592. grd_monorddeptcd.subtotalPosition = "below";
  593. grd_emrorddin.subtotalPosition = "below";
  594. grd_emrorddin.subtotal("sum" , -1 , 1 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  595. grd_emrorddin.subtotal("sum" , -1 , 2 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  596. grd_emrorddin.subtotal("sum" , -1 , 3 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  597. grd_emrorddin.subtotal("sum" , -1 , 4 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  598. grd_emrorddin.subtotal("sum" , -1 , 5 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  599. grd_emrorddin.subtotal("sum" , -1 , 6 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  600. grd_emrorddin.subtotal("sum" , -1 , 7 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  601. grd_emrorddin.subtotal("sum" , -1 , 8 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  602. grd_emrorddin.subtotal("sum" , -1 , 9 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  603. grd_emrorddin.subtotal("sum" , -1 , 10 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  604. grd_emrorddin.subtotal("sum" , -1 , 11 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  605. grd_emrorddin.subtotal("sum" , -1 , 12 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  606. grd_emrorddin.subtotal("sum" , -1 , 13 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  607. grd_emrorddin.subtotal("sum" , -1 , 14 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  608. grd_emrorddin.subtotal("sum" , -1 , 15 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  609. grd_emrorddin.subtotal("sum" , -1 , 16 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  610. grd_emrorddin.subtotal("sum" , -1 , 17 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  611. grd_emrorddin.subtotal("sum" , -1 , 18 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  612. grd_emrorddin.subtotal("sum" , -1 , 19 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  613. grd_emrorddin.subtotal("sum" , -1 , 20 , "format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  614. grd_emrorddin.subtotal("sum" , -1 , 21 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  615. grd_emrorddin.subtotal("sum" , -1 , 22 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  616. grd_emrorddin.subtotal("sum" , -1 , 23 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  617. grd_emrorddin.subtotal("sum" , -1 , 24 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  618. grd_emrorddin.subtotal("sum" , -1 , 25 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  619. grd_emrorddin.subtotal("sum" , -1 , 26 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  620. grd_emrorddin.subtotal("sum" , -1 , 27 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  621. grd_emrorddin.subtotal("sum" , -1 , 28 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  622. grd_emrorddin.subtotal("sum" , -1 , 29 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  623. grd_emrorddin.subtotal("sum" , -1 , 30 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  624. grd_emrorddin.subtotal("sum" , -1 , 31 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  625. grd_emrorddin.subtotal("sum" , -1 , 32 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  626. grd_monorddeptcd.subtotal("sum" , -1 , 1 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  627. grd_monorddeptcd.subtotal("sum" , -1 , 2 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  628. grd_monorddeptcd.subtotal("average" , -1 , 3 ,"format:###%; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  629. grd_monorddeptcd.subtotal("sum" , -1 , 4 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  630. grd_monorddeptcd.subtotal("sum" , -1 , 5 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  631. grd_monorddeptcd.subtotal("sum" , -1 , 6 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  632. grd_monorddeptcd.subtotal("sum" , -1 , 7 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  633. grd_monorddeptcd.subtotal("sum" , -1 , 8 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  634. grd_monorddeptcd.subtotal("sum" , -1 , 9 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  635. grd_monorddeptcd.subtotal("sum" , -1 , 10 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  636. grd_monorddeptcd.subtotal("sum" , -1 , 11 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  637. grd_monorddeptcd.subtotal("sum" , -1 , 12 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  638. grd_monorddeptcd.subtotal("sum" , -1 , 13,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  639. grd_monorddeptcd.subtotal("sum" , -1 , 14 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  640. grd_monorddeptcd.subtotal("sum" , -1 , 15 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  641. grd_monorddeptcd.subtotal("sum" , -1 , 16 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  642. grd_monorddeptcd.subtotal("sum" , -1 , 17 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  643. grd_monorddeptcd.subtotal("sum" , -1 , 18 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  644. grd_monorddeptcd.subtotal("sum" , -1 , 19 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  645. grd_monorddeptcd.subtotal("sum" , -1 , 20 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  646. grd_monorddeptcd.subtotal("sum" , -1 , 21 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  647. grd_monorddeptcd.subtotal("sum" , -1 , 22 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  648. grd_monorddeptcd.subtotal("sum" , -1 , 23 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  649. grd_monorddeptcd.subtotal("sum" , -1 , 24 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  650. grd_monorddeptcd.subtotal("sum" , -1 , 25 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  651. grd_monorddeptcd.subtotal("sum" , -1 , 26 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  652. grd_monorddeptcd.subtotal("sum" , -1 , 27 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  653. grd_monorddeptcd.subtotal("sum" , -1 , 28 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  654. grd_monorddeptcd.subtotal("sum" , -1 , 29 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  655. grd_monorddeptcd.subtotal("sum" , -1 , 30 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  656. grd_monorddeptcd.subtotal("sum" , -1 , 31 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  657. grd_monorddeptcd.subtotal("sum" , -1 , 32 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  658. grd_monorddeptcd.subtotal("sum" , -1 , 33 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  659. grd_monorddeptcd.subtotal("sum" , -1 , 34 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  660. grd_monorddeptcd.subtotal("sum" , -1 , 35 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  661. grd_monorddward.subtotal("sum" , -1 , 2 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  662. grd_monorddward.subtotal("sum" , -1 , 3 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  663. grd_monorddward.subtotal("average" , -1 , 4 ,"format:###%; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  664. grd_monorddward.subtotal("sum" , -1 , 5 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  665. grd_monorddward.subtotal("sum" , -1 , 6 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  666. grd_monorddward.subtotal("sum" , -1 , 7 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  667. grd_monorddward.subtotal("sum" , -1 , 8 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  668. grd_monorddward.subtotal("sum" , -1 , 9 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  669. grd_monorddward.subtotal("sum" , -1 , 10 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  670. grd_monorddward.subtotal("sum" , -1 , 11 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  671. grd_monorddward.subtotal("sum" , -1 , 12 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  672. grd_monorddward.subtotal("sum" , -1 , 13 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  673. grd_monorddward.subtotal("sum" , -1 , 14 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  674. grd_monorddward.subtotal("sum" , -1 , 15 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  675. grd_monorddward.subtotal("sum" , -1 , 16 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  676. grd_monorddward.subtotal("sum" , -1 , 17 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  677. grd_monorddward.subtotal("sum" , -1 , 18 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  678. grd_monorddward.subtotal("sum" , -1 , 19 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  679. grd_monorddward.subtotal("sum" , -1 , 20 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  680. grd_monorddward.subtotal("sum" , -1 , 21 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  681. grd_monorddward.subtotal("sum" , -1 , 22 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  682. grd_monorddward.subtotal("sum" , -1 , 23 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  683. grd_monorddward.subtotal("sum" , -1 , 24 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  684. grd_monorddward.subtotal("sum" , -1 , 25 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  685. grd_monorddward.subtotal("sum" , -1 , 26 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  686. grd_monorddward.subtotal("sum" , -1 , 27 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  687. grd_monorddward.subtotal("sum" , -1 , 28 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  688. grd_monorddward.subtotal("sum" , -1 , 29 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  689. grd_monorddward.subtotal("sum" , -1 , 30 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  690. grd_monorddward.subtotal("sum" , -1 , 31 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  691. grd_monorddward.subtotal("sum" , -1 , 32 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  692. grd_monorddward.subtotal("sum" , -1 , 33 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  693. grd_monorddward.subtotal("sum" , -1 , 34 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  694. grd_monorddward.subtotal("sum" , -1 , 35 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  695. grd_monorddward.subtotal("sum" , -1 , 36 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  696. //grd_wardbed.subtotal("sum",-1, 2 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  697. //grd_wardbed.subtotal("sum",-1, 3 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  698. //grd_wardbed.subtotal("average",-1, 4 ,"format:###%; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  699. grd_inrsrvspec.subtotal("sum",-1, 1 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  700. grd_inrsrvspec.subtotal("sum",-1, 2 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "합계",true);
  701. grd_inrsrvspec.subtotal("average",-1, 3 ,"format:###%; roundmode:round; roundpostion:2", "", 0, "합계",true);
  702. grd_inrsrvspec.subtotal("sum",-1, 4 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "합계",true);
  703. grd_inrsrvspec.subtotal("sum",-1, 5 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "합계",true);
  704. grd_inrsrvspec.subtotal("sum",-1, 6 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "합계",true);
  705. grd_inrsrvspec.subtotal("average",-1, 7 ,"format:###%; roundmode:round; roundpostion:2", "", 0, "합계",true);
  706. grd_inrsrvspec.subtotal("sum",-1, 8 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "합계",true);
  707. grd_inrsrvspec.subtotal("sum",-1, 9 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "합계",true);
  708. grd_inrsrvspec.subtotal("sum",-1, 10 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "합계",true);
  709. grd_orddwardbed.subtotal("sum",-1, 1 ,"format:#,###; roundmode:round; roundpostion:2", "font-weight:bold;", 0, "합계",true);
  710. grd_orddwardbed.subtotal("sum",-1, 2 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "합계",true);
  711. grd_orddwardbed.subtotal("sum",-1, 3 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "합계",true);
  712. grd_orddwardbed.subtotal("sum",-1, 4 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "합계",true);
  713. grd_orddwardbed.subtotal("average",-1, 5 ,"format:###%; roundmode:round; roundpostion:2", "", 0, "합계",true);
  714. grd_orddwardbed.subtotal("average",-1, 6 ,"format:###%; roundmode:round; roundpostion:2", "", 0, "합계",true);
  715. grd_wardorddbed.subtotal("sum",0, 2 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "과별합계",true);
  716. grd_wardorddbed.subtotal("sum",0, 3 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "과별합계",true);
  717. grd_wardorddbed.subtotal("sum",0, 4 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "과별합계",true);
  718. grd_wardorddbed.subtotal("sum",0, 5 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "과별합계",true);
  719. grd_wardorddbed.subtotal("average",0, 6 ,"format:###%; roundmode:round; roundpostion:2", "", 0, "과별합계",true);
  720. grd_wardorddbed.subtotal("average",0, 7 ,"format:###%; roundmode:round; roundpostion:2", "", 0, "과별합계",true);
  721. grd_wardorddbed.multiTotals = true;
  722. grd_wardorddbed.subtotal("sum",-1, 2 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "합계",true);
  723. grd_wardorddbed.subtotal("sum",-1, 3 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "합계",true);
  724. grd_wardorddbed.subtotal("sum",-1, 4 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "합계",true);
  725. grd_wardorddbed.subtotal("sum",-1, 5 ,"format:#,###; roundmode:round; roundpostion:2", "", 0, "합계",true);
  726. grd_wardorddbed.subtotal("average",-1, 6 ,"format:###%; roundmode:round; roundpostion:2", "", 0, "합계",true);
  727. grd_wardorddbed.subtotal("average",-1, 7 ,"format:###%; roundmode:round; roundpostion:2", "", 0, "합계",true);
  728. }
  729. function fMergerCol() {
  730. grd_wardorddbed.mergeCol(2) = false;
  731. grd_wardorddbed.mergeCol(3) = false;
  732. grd_wardorddbed.mergeCol(4) = false;
  733. grd_wardorddbed.mergeCol(5) = false;
  734. grd_wardorddbed.mergeCol(6) = false;
  735. grd_wardorddbed.mergeCol(7) = false;
  736. grd_wardorddbed.mergeCol(8) = false;
  737. grd_wardorddbed.mergeCells = "bycol";
  738. }
  739. ]]>
  740. </script>
  741. </xhtml:head>
  742. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  743. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  744. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:204px; height:14px; ">진료과별 재원 및 예약환자 현황</caption>
  745. </group>
  746. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1175px; height:670px; ">
  747. <switch id="swt_aipmmngt" style="left:0px; top:65px; width:1170px; height:600px; ">
  748. <!-- 진료과별 재원 및 예약환자 현황-->
  749. <case id="case_inrsrvspec" style="left:0px; top:0px; width:1192px; height:600px; ">
  750. <line id="line19" class="line_1" style="x1:0px; y1:25px; x2:1170px; y2:25px; "/>
  751. <datagrid id="grd_inrsrvspec" nodeset="/root/list/orddinpat" scroll="auto" caption="진료과^병상수^과소속 전체 재원환자수^과소속 전체 재원환자수^배정병상기준 재원환자 및 빈병상^배정병상기준 재원환자 및 빈병상^배정병상기준 재원환자 및 빈병상^배정병상기준 재원환자 및 빈병상^입원 예약자 (30일 이내)^입원 예약자 (30일 이내)^입원 예약자 (30일 이내)^응급실|진료과^병상수^재원환자수^가동율^재원환자수^빈병상^(결정)^가동율^긴급환자^일반환자^합 계^재원환자" colsep="^" colwidth="145, 100, 100, 100, 100, 60, 40, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" subtotalposition="below" style="left:0px; top:30px; width:1170px; height:570px; text-align:center; ">
  752. <col ref="orddeptnm" type="output">
  753. <!-- 진료과별 재원및 예약환자현황(병상가동현황)-->
  754. <script type="javascript" ev:event="ondblclick">
  755. <![CDATA[
  756. if (isDataCell()) {
  757. //var sOrddeptnm = grd_inrsrvspec.labelMatrix(grd_inrsrvspec.row,grd_inrsrvspec.col);
  758. //var sOrddeptcd = grd_inrsrvspec.valueMatrix(grd_inrsrvspec.row,grd_inrsrvspec.col);
  759. var row = grd_inrsrvspec.row -1;
  760. var sOrddept = model.getValue("/root/list/orddinpat[" + row + "]/orddeptcd");
  761. model.setValue("/root/send/orddeptcd" , sOrddept);
  762. if(model.getValue("/root/send/orddeptcd") == "2500000000") {
  763. model.setValue("/root/send/reportflag" , "rorddinpat");
  764. submit("TRPMI05210");
  765. exeReportPreview("RPPMI05215", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  766. }else if(model.getValue("/root/send/orddeptcd") != "2500000000"){
  767. model.setValue("/root/send/reportflag" , "rorddinpat");
  768. submit("TRPMI05210");
  769. exeReportPreview("RPPMI05211", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  770. }
  771. }
  772. ]]>
  773. </script>
  774. </col>
  775. <col ref="bedcnt">
  776. <!-- 진료과별 재원및 예약환자현황(병상가동현황)-->
  777. <script type="javascript" ev:event="ondblclick">
  778. <![CDATA[
  779. if (isDataCell()) {
  780. //var sOrddeptcd = grd_inrsrvspec.labelMatrix(grd_inrsrvspec.row,0);
  781. //model.setValue("/root/source/orddeptcd", sOrddeptcd);
  782. //submit("TRPMI05220");
  783. var row = grd_inrsrvspec.row -1;
  784. var sOrddept = model.getValue("/root/list/orddinpat[" + row + "]/orddeptcd");
  785. model.setValue("/root/send/reportflag" , "rorddinpat");
  786. model.setValue("/root/send/orddeptcd" , sOrddept);
  787. exeReportPreview("RPPMI05211", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  788. }
  789. ]]>
  790. </script>
  791. </col>
  792. <col ref="deptinpatcnt">
  793. <script type="javascript" ev:event="ondblclick">
  794. <![CDATA[
  795. if(isDataCell()) {
  796. // var sOrddeptcd = grd_inrsrvspec.valueMatrix(grd_inrsrvspec.row,0);
  797. // var sOrddeptnm = grd_inrsrvspec.labelMatrix(grd_inrsrvspec.row,0);
  798. // model.setValue("/root/source/orddeptnm" , sOrddeptnm);
  799. // model.setValue("/root/send/orddeptcd", sOrddeptcd);
  800. var row = grd_inrsrvspec.row -1;
  801. var sOrddept = model.getValue("/root/list/orddinpat[" + row + "]/orddeptcd");
  802. model.setValue("/root/send/orddeptcd" , sOrddept);
  803. model.setValue("/root/send/inpatflag" ,"orddept");
  804. model.setValue("/root/send/reportflag" , "wardinpatrep");
  805. submit("TRPMI05210");
  806. exeReportPreview("RPPMI05212", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  807. }
  808. ]]>
  809. </script>
  810. </col>
  811. <col ref="deptinpatrate"/>
  812. <col ref="inpatcnt">
  813. <script type="javascript" ev:event="ondblclick">
  814. <![CDATA[
  815. if(isDataCell()) {
  816. // var sOrddeptcd = grd_inrsrvspec.valueMatrix(grd_inrsrvspec.row,0);
  817. // var sOrddeptnm = grd_inrsrvspec.labelMatrix(grd_inrsrvspec.row,0);
  818. // model.setValue("/root/source/orddeptnm" , sOrddeptnm);
  819. // model.setValue("/root/send/orddeptcd", sOrddeptcd);
  820. var row = grd_inrsrvspec.row -1;
  821. var sOrddept = model.getValue("/root/list/orddinpat[" + row + "]/orddeptcd");
  822. model.setValue("/root/send/orddeptcd" , sOrddept);
  823. model.setValue("/root/send/inpatflag" ,"wardbed");
  824. model.setValue("/root/send/reportflag" , "wardinpatrep");
  825. submit("TRPMI05210");
  826. exeReportPreview("RPPMI05212", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  827. }
  828. ]]>
  829. </script>
  830. </col>
  831. <col ref="vacantcnt">
  832. <script type="javascript" ev:event="ondblclick">
  833. <![CDATA[
  834. if(isDataCell()) {
  835. // var sOrddeptcd = grd_inrsrvspec.valueMatrix(grd_inrsrvspec.row,0);
  836. // var sOrddeptnm = grd_inrsrvspec.labelMatrix(grd_inrsrvspec.row,0);
  837. // model.setValue("/root/source/orddeptnm" , sOrddeptnm);
  838. // model.setValue("/root/send/orddeptcd", sOrddeptcd);
  839. var row = grd_inrsrvspec.row -1;
  840. var sOrddept = model.getValue("/root/list/orddinpat[" + row + "]/orddeptcd");
  841. model.setValue("/root/send/orddeptcd" , sOrddept);
  842. model.setValue("/root/send/reportflag" , "emptybed");
  843. submit("TRPMI05210");
  844. exeReportPreview("RPPMI05213", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  845. }
  846. ]]>
  847. </script>
  848. </col>
  849. <col ref="decicnt"/>
  850. <col ref="inpatrate"/>
  851. <col ref="ugcyrsrvcnt"/>
  852. <col ref="rsrvcnt">
  853. <script type="javascript" ev:event="ondblclick">
  854. <![CDATA[
  855. if(isDataCell()) {
  856. // var sOrddeptcd = grd_inrsrvspec.valueMatrix(grd_inrsrvspec.row,0);
  857. // var sOrddeptnm = grd_inrsrvspec.labelMatrix(grd_inrsrvspec.row,0);
  858. // model.setValue("/root/source/orddeptnm" , sOrddeptnm);
  859. // model.setValue("/root/send/orddeptcd", sOrddeptcd);
  860. var row = grd_inrsrvspec.row -1;
  861. var sOrddept = model.getValue("/root/list/orddinpat[" + row + "]/orddeptcd");
  862. model.setValue("/root/send/orddeptcd" , sOrddept);
  863. model.setValue("/root/send/reportflag" , "genpat");
  864. submit("TRPMI05210");
  865. exeReportPreview("RPPMI05214", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  866. }
  867. ]]>
  868. </script>
  869. </col>
  870. <col ref="sumrsrvcnt"/>
  871. <col/>
  872. </datagrid>
  873. <caption id="caption1" class="tit_2" style="left:5px; top:6px; width:206px; height:14px; ">진료과별 재원 및 예약환자 현황</caption>
  874. <button id="btn_print1" class="btn2_letter2" style="left:1050px; top:3px; width:42px; height:19px; ">
  875. <caption>출력</caption>
  876. <script type="javascript" ev:event="DOMActivate">
  877. <![CDATA[
  878. exeReportPreview("RPPMI05210", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  879. ]]>
  880. </script>
  881. </button>
  882. <button id="btn_saveexcel" class="btn2_letter4" style="left:1098px; top:3px; width:64px; height:19px; ">
  883. <caption>엑셀저장</caption>
  884. <script type="javascript" ev:event="DOMActivate">
  885. <![CDATA[
  886. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  887. if (fileName != "")
  888. {
  889. grd_inrsrvspec.saveExcel(fileName, "SheetName", true, true, "", "", true);
  890. }
  891. ]]>
  892. </script>
  893. </button>
  894. <caption id="caption20" style="left:210px; top:3px; width:100px; height:20px; font-weight:bold; color:#0000ff; ">(실시간 현황)</caption>
  895. </case>
  896. <!-- 병동별 병실별 재원환자 현황-->
  897. <case id="case_wardbed" selected="true" style="left:0px; top:0px; width:1192px; height:600px; ">
  898. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1175px; y2:25px; "/>
  899. <datagrid id="grd_wardbed" caption="병동명^진료과^총 Bed수^현 재원수^가동율^flag" colsep="^" colwidth="130, 130, 70, 100, 80, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:402px; height:570px; text-align:center; ">
  900. <col disabled="true" ref="wardnm"/>
  901. <col disabled="true" ref="orddeptnm" type="output"/>
  902. <col ref="totbedcnt"/>
  903. <col ref="totinpatcnt"/>
  904. <col ref="wardbedrate"/>
  905. <col ref="flag" visibility="hidden"/>
  906. <script type="javascript" ev:event="ondblclick">
  907. <![CDATA[
  908. //병동별 병실별 재원환자현황 조회후 결과값 더블클릭시 상세보기
  909. var row = grd_wardbed.row;
  910. var flag = model.getValue("/root/list/wardbedinpat[" + row + "]/flag");
  911. model.setValue("/root/send/flag" , flag);
  912. var sOrddeptcd = model.getValue("/root/list/wardbedinpat[" + row + "]/orddeptcd");
  913. model.setValue("/root/send/orddeptcd" , sOrddeptcd);
  914. submit("TRPMI05220");
  915. ]]>
  916. </script>
  917. </datagrid>
  918. <caption id="caption2" class="tit_2" style="left:5px; top:6px; width:195px; height:15px; ">진료과별 병상가동 현황</caption>
  919. <button id="btn_print2" class="btn2_letter2" style="left:1050px; top:3px; width:42px; height:19px; ">
  920. <caption>출력</caption>
  921. <script type="javascript" ev:event="DOMActivate">
  922. <![CDATA[
  923. submit("TRPMI05200");
  924. exeReportPreview("RPPMI05220", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  925. ]]>
  926. </script>
  927. </button>
  928. <button id="btn_saveexcel2" class="btn2_letter4" style="left:1098px; top:3px; width:64px; height:19px; ">
  929. <caption>엑셀저장</caption>
  930. <script type="javascript" ev:event="DOMActivate">
  931. <![CDATA[
  932. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  933. if (fileName != "")
  934. {
  935. grd_wardbed.saveExcel(fileName, "SheetName", true, true, "", "", true);
  936. }
  937. ]]>
  938. </script>
  939. </button>
  940. <datagrid id="grd_subwardbed" nodeset="/root/main/wardbedinfo" scroll="auto" autoresize="true" caption="병동명^병실명^병실등급^병상명^배정진료과명^상태^등록번호^환자명^Sex^진료과" colsep="^" colwidth="120, 80, 120, 80, 120, 50, 100, 80, 30, 110" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:405px; top:30px; width:765px; height:570px; text-align:center; ">
  941. <col disabled="true" ref="wardcd" type="combo">
  942. <choices>
  943. <itemset nodeset="/root/init/wardcd">
  944. <label ref="nm"/>
  945. <value ref="cd"/>
  946. </itemset>
  947. </choices>
  948. </col>
  949. <col ref="roomcd"/>
  950. <col disabled="true" ref="roomgrdecd" type="combo">
  951. <choices>
  952. <itemset nodeset="/root/init/roomgrdecd">
  953. <label ref="nm"/>
  954. <value ref="cd"/>
  955. </itemset>
  956. </choices>
  957. </col>
  958. <col ref="wardgrdecd"/>
  959. <col ref="assorddeptcd"/>
  960. <col ref="inpt_indschacptstat"/>
  961. <col ref="pid"/>
  962. <col ref="hngnm"/>
  963. <col ref="sex"/>
  964. <col ref="orddeptcd"/>
  965. </datagrid>
  966. <caption id="caption21" style="left:170px; top:3px; width:100px; height:20px; font-weight:bold; color:#0000ff; ">(실시간 현황)</caption>
  967. </case>
  968. <!--진료과별 장기 재원자 현황-->
  969. <case id="case_longinpat" style="left:0px; top:0px; width:1192px; height:600px; ">
  970. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1175px; y2:25px; "/>
  971. <datagrid id="grd_longinpat" caption="진료과^유형^장기재원자수^재원일^1인평균재원일수" colsep="^" colwidth="120, 120, 100, 100, 138" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1170px; height:570px; text-align:center; ">
  972. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
  973. <choices>
  974. <itemset nodeset="/root/init/orddeptcd">
  975. <label ref="nm"/>
  976. <value ref="cd"/>
  977. </itemset>
  978. </choices>
  979. </col>
  980. <col disabled="true" ref="insukind" type="combo">
  981. <choices>
  982. <itemset nodeset="/root/init/insukind">
  983. <label ref="nm"/>
  984. <value ref="cd"/>
  985. </itemset>
  986. </choices>
  987. </col>
  988. <col ref="longincnt"/>
  989. <col ref="inpatcnt"/>
  990. <col ref="avginpatcnt"/>
  991. <script type="javascript" ev:event="ondblclick">
  992. <![CDATA[
  993. if (isDataCell()) {
  994. if(cmd_insukind.value == "orddept") {
  995. var sOrddeptcd = grd_longinpat.valueMatrix(grd_longinpat.row, 0);
  996. var sOrddeptnm = grd_longinpat.labelMatrix(grd_longinpat.row, 0);
  997. model.setValue("/root/send/orddeptcd", sOrddeptcd);
  998. model.setValue("/root/source/orddeptnm", sOrddeptnm);
  999. }else if(cmd_insukind.value == "insukind") {
  1000. var sInsukindnm = grd_longinpat.labelMatrix(grd_longinpat.row , 1);
  1001. var sInsukind = grd_longinpat.valueMatrix(grd_longinpat.row , 1);
  1002. model.setValue("/root/send/insukind" , sInsukind);
  1003. model.setValue("/root/source/insukindnm" , sInsukindnm);
  1004. }
  1005. model.setValue("/root/send/sendflag" , "LD")
  1006. submit("TRPMI05200");
  1007. //submit("TRPMI05210");
  1008. btn_chaninpatlist.dispatch("onclick");
  1009. }
  1010. ]]>
  1011. </script>
  1012. </datagrid>
  1013. <caption id="caption3" class="tit_2" style="left:5px; top:6px; width:214px; height:14px; ">장기 재원환자 관리</caption>
  1014. <button id="btn_print3" class="btn2_letter2" style="left:1050px; top:3px; width:42px; height:19px; ">
  1015. <caption>출력</caption>
  1016. <script type="javascript" ev:event="DOMActivate">
  1017. <![CDATA[
  1018. exeReportPreview("RPPMI05235", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  1019. ]]>
  1020. </script>
  1021. </button>
  1022. <button id="btn_saveexcel3" class="btn2_letter4" style="left:1098px; top:3px; width:64px; height:19px; ">
  1023. <caption>엑셀저장</caption>
  1024. <script type="javascript" ev:event="DOMActivate">
  1025. <![CDATA[
  1026. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1027. if (fileName != "")
  1028. {
  1029. grd_longinpat.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1030. }
  1031. ]]>
  1032. </script>
  1033. </button>
  1034. <caption id="caption22" style="left:140px; top:3px; width:100px; height:20px; font-weight:bold; color:#0000ff; ">(실시간 현황)</caption>
  1035. </case>
  1036. <!-- 진료과별 장기 재원자 현황 상세 리스트-->
  1037. <case id="case_longinpatlist" style="left:0px; top:0px; width:1192px; height:600px; ">
  1038. <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:1175px; y2:25px; "/>
  1039. <caption id="caption4" class="tit_2" style="left:5px; top:6px; width:166px; height:15px; ">진료과별 장기재원자 현황</caption>
  1040. <button id="button5" class="btn2_letter4" style="left:1098px; top:3px; width:64px; height:19px; ">
  1041. <caption>엑셀저장</caption>
  1042. <script type="javascript" ev:event="DOMActivate">
  1043. <![CDATA[
  1044. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1045. if (fileName != "")
  1046. {
  1047. grd_longinpatlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1048. }
  1049. ]]>
  1050. </script>
  1051. </button>
  1052. <button id="button7" class="btn2_letter2" style="left:1050px; top:3px; width:42px; height:19px; ">
  1053. <caption>출력</caption>
  1054. <script type="javascript" ev:event="DOMActivate">
  1055. <![CDATA[
  1056. //submit("TRPMI05210");
  1057. exeReportPreview("RPPMI05230", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  1058. ]]>
  1059. </script>
  1060. </button>
  1061. <datagrid id="grd_longinpatlist" nodeset="/root/list/longinpatlist" caption="병실명^환자번호^이름^입원일자^유형^나이^장기재원사유^재원일수^주치의^전문의^총진료비^급여총액^급여청구^급여본인^비급여^본인부담^기납부액^차인납부^미수금" colsep="^" colwidth="100, 100, 70, 100, 100, 50, 100, 80, 70, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1170px; height:570px; text-align:center; ">
  1062. <col ref="roomcd"/>
  1063. <col ref="pid"/>
  1064. <col ref="hngnm"/>
  1065. <col ref="indd"/>
  1066. <col disabled="true" ref="insukind" type="output"/>
  1067. <col ref="age"/>
  1068. <col ref="dschdelayresn"/>
  1069. <col ref="innd"/>
  1070. <col ref="atdoctid"/>
  1071. <col ref="medispclid"/>
  1072. <col ref="totmedcost"/>
  1073. <col ref="totpay"/>
  1074. <col ref="payapp"/>
  1075. <col ref="payme"/>
  1076. <col ref="nopay"/>
  1077. <col ref="ownbamt"/>
  1078. <col ref="gipayment"/>
  1079. <col ref="chapayment"/>
  1080. <col ref="uncollent"/>
  1081. <script type="javascript" ev:event="ondblclick">
  1082. <![CDATA[
  1083. if( ! isDataCell() ){
  1084. return false;
  1085. }
  1086. var row = grd_longinpatlist.row;
  1087. //model.setValue("/root/list/longinpatlist/cretno" , "1");
  1088. //model.setValue("/root/list/longinpatlist/dschschdd" , "99991231");
  1089. setParameter("SPPMI04002_PID", model.getValue("/root/list/longinpatlist[" + row + "]/pid"));
  1090. setParameter("SPPMI04002_INDD", model.getValue("/root/list/longinpatlist[" + row + "]/indd"));
  1091. setParameter("SPPMI04002_CRETNO", model.getValue("/root/list/longinpatlist[" + row + "]/cretno"));
  1092. setParameter("SPPMI04002_HNGNM", model.getValue("/root/list/longinpatlist[" + row + "]/hngnm"));
  1093. setParameter("SPPMI04002_DSCHSCHDD", model.getValue("/root/list/longinpatlist[" + row + "]/dschschdd")); //퇴원 예정일
  1094. setParameter("SPPMI04002_DSCHDELAYRESN", model.getValue("/root/list/longinpatlist[" + row + "]/dschdelayresn")); //퇴원지연사유
  1095. modal("SPPMI04002", "1","", "", "SPPMI04002", "", "");
  1096. model.setValue("/root/list/longinpatlist[" + row + "]/dschschdd", getParameter("SPPMI04002_DSCHSCHDD"));
  1097. model.setValue("/root/list/longinpatlist[" + row + "]/dschdelayresn", getParameter("SPPMI04002_DSCHDELAYRESN"));
  1098. ]]>
  1099. </script>
  1100. </datagrid>
  1101. <caption id="cap_orddept" ref="/root/source/orddeptnm" style="left:165px; top:4px; width:140px; height:20px; font-weight:bold; "/>
  1102. <caption id="cap_insukind" ref="/root/source/insukindnm" style="left:165px; top:4px; width:125px; height:20px; font-weight:bold; "/>
  1103. </case>
  1104. <!--교수 출장현황-->
  1105. <case id="case_profgonbz" style="left:0px; top:0px; width:1192px; height:600px; ">
  1106. <line id="line4" class="line_1" style="x1:0px; y1:25px; x2:1175px; y2:25px; "/>
  1107. <caption id="caption5" class="tit_2" style="left:5px; top:6px; width:165px; height:14px; ">교수출장현황</caption>
  1108. <button id="btn_print4" class="btn2_letter2" style="left:1050px; top:3px; width:42px; height:19px; ">
  1109. <caption>출력</caption>
  1110. <script type="javascript" ev:event="DOMActivate">
  1111. <![CDATA[
  1112. model.setValue("/root/send/holiflag" , "H");
  1113. model.setValue("/root/send/fromdd" , ipt_fromdd.value);
  1114. model.setValue("/root/send/todd" , ipt_todd.value);
  1115. submit("TRPMB00904");
  1116. exeReportPreview("RPPMI05240", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  1117. ]]>
  1118. </script>
  1119. </button>
  1120. <button id="btn_saveexcel4" class="btn2_letter4" style="left:1098px; top:3px; width:64px; height:19px; ">
  1121. <caption>엑셀저장</caption>
  1122. <script type="javascript" ev:event="DOMActivate">
  1123. <![CDATA[
  1124. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1125. if (fileName != "")
  1126. {
  1127. grd_profgonbz.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1128. }
  1129. ]]>
  1130. </script>
  1131. </button>
  1132. <datagrid id="grd_profgonbz" nodeset="/root/main/drholiordsche/drholiordschelist" caption="진료과^성명^출장시작일^출장종료일^사유" colsep="^" colwidth="120, 100, 120, 120, 100" dataheight="25" defaultrows="2" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:30px; width:1170px; height:570px; text-align:center; vertical-align:middle; ">
  1133. <col ref="orddeptnm"/>
  1134. <col ref="orddrnm"/>
  1135. <col ref="fromdd" format="yyyy-mm-dd"/>
  1136. <col ref="todd" format="yyyy-mm-dd"/>
  1137. <col ref="ordendresnnm" type="output"/>
  1138. </datagrid>
  1139. <caption id="caption23" style="left:110px; top:3px; width:235px; height:20px; font-weight:bold; color:#0000ff; ">(의사별 휴진일정관리 기준)</caption>
  1140. </case>
  1141. <!-- 진료과별 병동별 병상가동현황 - 과별 -->
  1142. <case id="case_orddwardbed" style="left:0px; top:0px; width:1192px; height:600px; ">
  1143. <line id="line5" class="line_1" style="x1:0px; y1:25px; x2:1170px; y2:25px; "/>
  1144. <caption id="caption7" class="tit_2" style="left:5px; top:6px; width:239px; height:14px; ">진료과별 병동별 병상가동현황 - 과별</caption>
  1145. <button id="btn_print5" class="btn2_letter2" style="left:1050px; top:3px; width:42px; height:19px; ">
  1146. <caption>출력</caption>
  1147. <script type="javascript" ev:event="DOMActivate">
  1148. <![CDATA[
  1149. exeReportPreview("RPPMI05250", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  1150. ]]>
  1151. </script>
  1152. </button>
  1153. <button id="btn_saveexcel5" class="btn2_letter4" style="left:1098px; top:3px; width:64px; height:19px; ">
  1154. <caption>엑셀저장</caption>
  1155. <script type="javascript" ev:event="DOMActivate">
  1156. <![CDATA[
  1157. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1158. if (fileName != "")
  1159. {
  1160. grd_orddwardbed.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1161. }
  1162. ]]>
  1163. </script>
  1164. </button>
  1165. <datagrid id="grd_orddwardbed" caption="진료과^병상수^환자수^타과환자^빈병상^가동율^타과율" colsep="^" colwidth="120, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1170px; height:570px; text-align:center; ">
  1166. <col disabled="true" ref="orddeptnm" type="output">
  1167. <script type="javascript" ev:event="ondblclick">
  1168. <![CDATA[
  1169. // 진료과별 병동별 병상가동현황 -과별에서 진료과 더블클릭시 리포트창 띄움
  1170. if (isDataCell()) {
  1171. var sOrddeptnm = grd_orddwardbed.labelMatrix(grd_orddwardbed.row, grd_orddwardbed.col);
  1172. //var sOrddeptcd = grd_orddwardbed.valueMatrix(grd_orddwardbed.row, grd_orddwardbed.col);
  1173. var row = grd_orddwardbed.row;
  1174. var sOrddeptcd = model.getValue("/root/list/orddward[" + row + "]/orddeptcd");
  1175. //if(sOrddeptnm == model.getValue("/root/list/orddward/orddeptnm")) {
  1176. model.setValue("/root/source/orddeptnm", sOrddeptnm);
  1177. model.setValue("/root/send/orddeptcd" , sOrddeptcd);
  1178. model.setValue("/root/send/orddflag" , "orddept");
  1179. model.setValue("/root/send/sendflag" , "OD");
  1180. submit("TRPMI05200");
  1181. exeReportPreview("RPPMI05251", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  1182. // }
  1183. }
  1184. model.refresh();
  1185. ]]>
  1186. </script>
  1187. </col>
  1188. <col ref="wardcnt"/>
  1189. <col ref="inpatcnt"/>
  1190. <col ref="otherorddin">
  1191. <script type="javascript" ev:event="ondblclick">
  1192. <![CDATA[
  1193. if(isDataCell()) {
  1194. var sOrddeptnm = grd_orddwardbed.labelMatrix(grd_orddwardbed.row,0);
  1195. //var sOrddeptcd = grd_orddwardbed.valueMatrix(grd_orddwardbed.row,0);
  1196. var row = grd_orddwardbed.row;
  1197. var sOrddeptcd = model.getValue("/root/list/orddward[" + row + "]/orddeptcd");
  1198. model.setValue("/root/send/orddeptcd" , sOrddeptcd);
  1199. model.setValue("/root/source/orddeptnm" , sOrddeptnm);
  1200. //alert(model.getValue("/root/source/orddeptcd"));
  1201. model.setValue("/root/send/orddflag" , "other");
  1202. model.setValue("/root/send/sendflag" , "OD");
  1203. submit("TRPMI05200");
  1204. exeReportPreview("RPPMI05251", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  1205. }
  1206. model.refresh();
  1207. ]]>
  1208. </script>
  1209. </col>
  1210. <col ref="emptyward"/>
  1211. <col ref="orddrate"/>
  1212. <col ref="otherorddrate"/>
  1213. </datagrid>
  1214. <caption id="caption24" style="left:250px; top:3px; width:100px; height:20px; font-weight:bold; color:#0000ff; ">(실시간 현황)</caption>
  1215. </case>
  1216. <!-- 진료과별 병동별 병상가동현황 - 과별병동별 -->
  1217. <case id="case_wardorddbed" style="left:0px; top:0px; width:1192px; height:600px; ">
  1218. <line id="line6" class="line_1" style="x1:0px; y1:25px; x2:1175px; y2:25px; "/>
  1219. <caption id="caption8" class="tit_2" style="left:5px; top:6px; width:283px; height:14px; ">진료과별 병동별 병상가동 현황 - 과별병동별</caption>
  1220. <button id="button6" class="btn2_letter4" style="left:1098px; top:3px; width:64px; height:19px; ">
  1221. <caption>엑셀저장</caption>
  1222. <script type="javascript" ev:event="DOMActivate">
  1223. <![CDATA[
  1224. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1225. if (fileName != "")
  1226. {
  1227. grd_wardorddbed.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1228. }
  1229. ]]>
  1230. </script>
  1231. </button>
  1232. <datagrid id="grd_wardorddbed" caption="진료과^병동^병상수^환자수^타과환자^빈병상^가동율^타과율" colsep="^" colwidth="120, 100, 100, 100, 100, 100, 100, 100" explorerbar="sort" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1170px; height:570px; text-align:center; ">
  1233. <col ref="orddeptnm" type="output">
  1234. <script type="javascript">
  1235. <![CDATA[
  1236. grd_wardorddbed.colSort(0) = "asc";
  1237. ]]>
  1238. </script>
  1239. </col>
  1240. <col ref="wardnm" type="output"/>
  1241. <col ref="wardcnt"/>
  1242. <col ref="inpatcnt"/>
  1243. <col ref="otherorddin"/>
  1244. <col ref="emptyward"/>
  1245. <col ref="orddrate"/>
  1246. <col ref="otherorddrate"/>
  1247. </datagrid>
  1248. <caption id="caption25" style="left:295px; top:3px; width:100px; height:20px; font-weight:bold; color:#0000ff; ">(실시간 현황)</caption>
  1249. </case>
  1250. <!-- 월별 진료과별 병상가동 현황 - 병실별 -->
  1251. <case id="case_monorddward" style="left:0px; top:0px; width:1192px; height:600px; ">
  1252. <line id="line7" class="line_1" style="x1:0px; y1:25px; x2:1175px; y2:25px; "/>
  1253. <caption id="caption9" class="tit_2" style="left:5px; top:6px; width:265px; height:13px; ">월별 진료과별 병상가동 현황 - 병실별</caption>
  1254. <datagrid id="grd_monorddward" nodeset="/root/main/monwardinfo" caption="병동명^병실명^기본^총병상^가동율^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총가동수" colsep="^" colwidth="100, 100, 60, 60, 60, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 77" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1170px; height:570px; text-align:center; ">
  1255. <col ref="wardnm"/>
  1256. <col ref="roomcd" type="output"/>
  1257. <col ref="avgbedcnt"/>
  1258. <col ref="bedcnt"/>
  1259. <col ref="oprrate"/>
  1260. <col ref="c01"/>
  1261. <col ref="c02"/>
  1262. <col ref="c03"/>
  1263. <col ref="c04"/>
  1264. <col ref="c05"/>
  1265. <col ref="c06"/>
  1266. <col ref="c07"/>
  1267. <col ref="c08"/>
  1268. <col ref="c09"/>
  1269. <col ref="c10"/>
  1270. <col ref="c11"/>
  1271. <col ref="c12"/>
  1272. <col ref="c13"/>
  1273. <col ref="c14"/>
  1274. <col ref="c15"/>
  1275. <col ref="c16"/>
  1276. <col ref="c17"/>
  1277. <col ref="c18"/>
  1278. <col ref="c19"/>
  1279. <col ref="c20"/>
  1280. <col ref="c21"/>
  1281. <col ref="c22"/>
  1282. <col ref="c23"/>
  1283. <col ref="c24"/>
  1284. <col ref="c25"/>
  1285. <col ref="c26"/>
  1286. <col ref="c27"/>
  1287. <col ref="c28"/>
  1288. <col ref="c29"/>
  1289. <col ref="c30"/>
  1290. <col ref="c31"/>
  1291. <col ref="totalinpatcnt"/>
  1292. </datagrid>
  1293. <button id="btn_print6" class="btn2_letter2" style="left:1050px; top:3px; width:42px; height:19px; ">
  1294. <caption>출력</caption>
  1295. <script type="javascript" ev:event="DOMActivate">
  1296. <![CDATA[
  1297. exeReportPreview("RPPMI05260", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  1298. ]]>
  1299. </script>
  1300. </button>
  1301. <button id="btn_saveexcel6" class="btn2_letter4" style="left:1098px; top:3px; width:64px; height:19px; ">
  1302. <caption>엑셀저장</caption>
  1303. <script type="javascript" ev:event="DOMActivate">
  1304. <![CDATA[
  1305. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1306. if (fileName != "")
  1307. {
  1308. grd_monorddward.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1309. }
  1310. ]]>
  1311. </script>
  1312. </button>
  1313. <caption id="caption26" style="left:255px; top:3px; width:100px; height:20px; font-weight:bold; color:#0000ff; ">(병상집계기준)</caption>
  1314. </case>
  1315. <!-- 월별 진료과별 병상가동 현황 - 진료과별 -->
  1316. <case id="case_monorddeptcd" style="left:0px; top:0px; width:1192px; height:600px; ">
  1317. <line id="line8" class="line_1" style="x1:0px; y1:25px; x2:1175px; y2:25px; "/>
  1318. <caption id="caption10" class="tit_2" style="left:5px; top:6px; width:315px; height:13px; ">월별 진료과별 병상가동 현황 - 진료과별</caption>
  1319. <button id="button1" class="btn2_letter2" style="left:1050px; top:3px; width:42px; height:19px; ">
  1320. <caption>출력</caption>
  1321. <script type="javascript" ev:event="DOMActivate">
  1322. <![CDATA[
  1323. exeReportPreview("RPPMI05270", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  1324. ]]>
  1325. </script>
  1326. </button>
  1327. <button id="button3" class="btn2_letter4" style="left:1098px; top:3px; width:64px; height:19px; ">
  1328. <caption>엑셀저장</caption>
  1329. <script type="javascript" ev:event="DOMActivate">
  1330. <![CDATA[
  1331. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1332. if (fileName != "")
  1333. {
  1334. grd_monorddeptcd.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1335. }
  1336. ]]>
  1337. </script>
  1338. </button>
  1339. <datagrid id="grd_monorddeptcd" nodeset="/root/main/monorddinfo" caption="Deptname^기본^총병상^가동율^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총가동수" colsep="^" colwidth="120, 100, 100, 100, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 77" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1170px; height:570px; text-align:center; ">
  1340. <col ref="wardnm" type="output"/>
  1341. <col ref="avgbedcnt"/>
  1342. <col ref="bedcnt"/>
  1343. <col ref="oprrate"/>
  1344. <col ref="c01"/>
  1345. <col ref="c02"/>
  1346. <col ref="c03"/>
  1347. <col ref="c04"/>
  1348. <col ref="c05"/>
  1349. <col ref="c06"/>
  1350. <col ref="c07"/>
  1351. <col ref="c08"/>
  1352. <col ref="c09"/>
  1353. <col ref="c10"/>
  1354. <col ref="c11"/>
  1355. <col ref="c12"/>
  1356. <col ref="c13"/>
  1357. <col ref="c14"/>
  1358. <col ref="c15"/>
  1359. <col ref="c16"/>
  1360. <col ref="c17"/>
  1361. <col ref="c18"/>
  1362. <col ref="c19"/>
  1363. <col ref="c20"/>
  1364. <col ref="c21"/>
  1365. <col ref="c22"/>
  1366. <col ref="c23"/>
  1367. <col ref="c24"/>
  1368. <col ref="c25"/>
  1369. <col ref="c26"/>
  1370. <col ref="c27"/>
  1371. <col ref="c28"/>
  1372. <col ref="c29"/>
  1373. <col ref="c30"/>
  1374. <col ref="c31"/>
  1375. <col ref="totalinpatcnt"/>
  1376. </datagrid>
  1377. <caption id="caption27" style="left:270px; top:3px; width:100px; height:20px; font-weight:bold; color:#0000ff; ">(병상집계기준)</caption>
  1378. </case>
  1379. <!-- 응급실 진료과별 기간별 재원현황 -->
  1380. <case id="case_emrorddin" style="left:0px; top:0px; width:1192px; height:600px; ">
  1381. <line id="line9" class="line_1" style="x1:0px; y1:25px; x2:1170px; y2:25px; "/>
  1382. <caption id="caption11" class="tit_2" style="left:5px; top:6px; width:214px; height:15px; ">응급실 진료과 기간별 재원현황</caption>
  1383. <datagrid id="grd_emrorddin" nodeset="/root/main/emrinpatinfo" caption="Deptname^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총재원수" colsep="^" colwidth="120, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 77" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1170px; height:570px; ">
  1384. <col ref="wardnm" type="output" style="text-align:center; "/>
  1385. <col ref="c01"/>
  1386. <col ref="c02"/>
  1387. <col ref="c03"/>
  1388. <col ref="c04"/>
  1389. <col ref="c05"/>
  1390. <col ref="c06"/>
  1391. <col ref="c07"/>
  1392. <col ref="c08"/>
  1393. <col ref="c09"/>
  1394. <col ref="c10"/>
  1395. <col ref="c11"/>
  1396. <col ref="c12"/>
  1397. <col ref="c13"/>
  1398. <col ref="c14"/>
  1399. <col ref="c15"/>
  1400. <col ref="c16"/>
  1401. <col ref="c17"/>
  1402. <col ref="c18"/>
  1403. <col ref="c19"/>
  1404. <col ref="c20"/>
  1405. <col ref="c21"/>
  1406. <col ref="c22"/>
  1407. <col ref="c23"/>
  1408. <col ref="c24"/>
  1409. <col ref="c25"/>
  1410. <col ref="c26"/>
  1411. <col ref="c27"/>
  1412. <col ref="c28"/>
  1413. <col ref="c29"/>
  1414. <col ref="c30"/>
  1415. <col ref="c31"/>
  1416. <col ref="totalinpatcnt"/>
  1417. </datagrid>
  1418. <button id="button2" class="btn2_letter2" style="left:1050px; top:3px; width:42px; height:19px; ">
  1419. <caption>출력</caption>
  1420. <script type="javascript" ev:event="DOMActivate">
  1421. <![CDATA[
  1422. exeReportPreview("RPPMI05280", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  1423. ]]>
  1424. </script>
  1425. </button>
  1426. <button id="button4" class="btn2_letter4" style="left:1098px; top:3px; width:64px; height:19px; ">
  1427. <caption>엑셀저장</caption>
  1428. <script type="javascript" ev:event="DOMActivate">
  1429. <![CDATA[
  1430. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1431. if (fileName != "")
  1432. {
  1433. grd_emrorddin.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1434. }
  1435. ]]>
  1436. </script>
  1437. </button>
  1438. <caption id="caption28" style="left:220px; top:3px; width:100px; height:20px; font-weight:bold; color:#0000ff; ">(병상집계기준)</caption>
  1439. </case>
  1440. </switch>
  1441. <button id="btn_wardbed" class="btn_sw" group="tab" selected="false" style="left:195px; top:45px; width:170px; height:22px; ">
  1442. <caption>진료과별 병상가동 현황</caption>
  1443. <toggle case="case_wardbed" ev:event="xforms-activate"/>
  1444. <script type="javascript" ev:event="xforms-activate">
  1445. <![CDATA[
  1446. fShowComboBox();
  1447. ]]>
  1448. </script>
  1449. </button>
  1450. <button id="btn_longinpat" class="btn_sw" group="tab" selected="false" style="left:365px; top:45px; width:160px; height:22px; ">
  1451. <caption>진료과별 장기재원자 현황</caption>
  1452. <toggle case="case_longinpat" ev:event="xforms-activate"/>
  1453. <script type="javascript" ev:event="xforms-activate">
  1454. <![CDATA[
  1455. fShowComboBox();
  1456. ]]>
  1457. </script>
  1458. </button>
  1459. <group id="group5" style="left:0px; top:5px; width:1172px; height:35px; vertical-align:top; ">
  1460. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1172px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  1461. <line id="line13" class="line_4" style="x1:1100px; y1:7px; x2:1100px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  1462. <button id="btn_search2" class="btn1_letter2" style="left:1111px; top:7px; width:56px; height:22px; ">
  1463. <caption>조회</caption>
  1464. <script type="javascript" ev:event="DOMActivate">
  1465. <![CDATA[
  1466. if(btn_orddcdlist.selected == true) {
  1467. grd_inrsrvspec.nodeset = "/root/list/orddinpat";
  1468. model.setValue("/root/send/sendflag" , "O");
  1469. submit("TRPMI05200");
  1470. fSubTot();
  1471. //grd_inrsrvspec.subtotal("sum", -1, grd_inrsrvspec.colRef("bedcnt"),"", "", 1, "Total");
  1472. }else if(btn_longinpat.selected == true) {
  1473. grd_longinpat.nodeset = "/root/list/longinpat";
  1474. model.setValue("/root/send/sendflag" , "L");
  1475. submit("TRPMI05200");
  1476. }else if(btn_wardbed.selected == true) {
  1477. if(model.getValue("/root/send/selectordward") == "") {
  1478. messageBox("진료과와 병동중 하나를 ","C002");
  1479. }else {
  1480. grd_wardbed.nodeset = "/root/list/wardbedinpat";
  1481. model.setValue("/root/send/sendflag" , "W");
  1482. submit("TRPMI05200");
  1483. fSubTot();
  1484. }
  1485. }else if(btn_orddwardbed.selected == true && cmb_orddwardbed.value == "orddcd") {
  1486. grd_orddwardbed.nodeset = "/root/list/orddward";
  1487. model.setValue("/root/send/sendflag" , "WO");
  1488. submit("TRPMI05200");
  1489. fSubTot();
  1490. }else if(btn_orddwardbed.selected == true && cmb_orddwardbed.value == "orddwardcd") {
  1491. grd_wardorddbed.nodeset = "/root/list/wardordd";
  1492. model.setValue("/root/send/sendflag" , "OW");
  1493. submit("TRPMI05200");
  1494. //fSubTot();
  1495. fMergerCol();
  1496. // 월별 진료과별 병상가동 현황
  1497. }else if(btn_monorddward.selected == true && cmb_roselect.value == "roomcd") {
  1498. grd_monorddward.nodeset="/root/main/monwardinfo";
  1499. submit("TRPMI05240");
  1500. fSubTot();
  1501. }else if(btn_monorddward.selected == true && cmb_roselect.value == "wardordd"){
  1502. grd_monorddeptcd.nodeset="/root/main/monorddinfo";
  1503. submit("TRPMI05240");
  1504. fSubTot();
  1505. }else if(btn_monorddward.selected == true && cmb_roselect.value == "comnbed"){
  1506. grd_monorddeptcd.nodeset="/root/main/moncomnbedinfo";
  1507. submit("TRPMI05240");
  1508. fSubTot();
  1509. }else if(btn_monorddward.selected == true && cmb_roselect.value == "inpatordd"){
  1510. grd_monorddeptcd.nodeset="/root/main/moninpatordd";
  1511. submit("TRPMI05245");
  1512. fSubTot();
  1513. }else if(btn_emrorddin.selected == true) {
  1514. submit("TRPMI05250");
  1515. fSubTot();
  1516. }else if(btn_profgonbz.selected == true) {
  1517. model.setValue("/root/send/holiflag" , "H");
  1518. model.setValue("/root/send/fromdd" , ipt_fromdd.value);
  1519. model.setValue("/root/send/todd" , ipt_todd.value);
  1520. submit("TRPMB00904");
  1521. model.refresh();
  1522. }
  1523. ]]>
  1524. </script>
  1525. </button>
  1526. <caption id="caption39" class="search_name" visibility="hidden" style="left:18px; top:9px; width:87px; height:17px; ">검색조건 :</caption>
  1527. <select1 id="cmb_roselect" ref="/root/send/monorddward" class="combo_default" visibility="hidden" appearance="minimal" style="left:108px; top:8px; width:150px; height:19px; ">
  1528. <choices>
  1529. <item>
  1530. <label>진료과별(병상기준)</label>
  1531. <value>wardordd</value>
  1532. </item>
  1533. <item>
  1534. <label>진료과별(재원과기준)</label>
  1535. <value>inpatordd</value>
  1536. </item>
  1537. <item>
  1538. <label>병실별</label>
  1539. <value>roomcd</value>
  1540. </item>
  1541. <item>
  1542. <label>공용병상별(재원과기준)</label>
  1543. <value>comnbed</value>
  1544. </item>
  1545. </choices>
  1546. <script type="javascript" ev:event="xforms-select">
  1547. <![CDATA[
  1548. if(cmb_roselect.value == "roomcd") {
  1549. model.removeNodeset("/root/main/monwardinfo");
  1550. model.refresh();
  1551. btn_Sroomcd.dispatch("onclick");
  1552. //btn_search2.dispatch("onclick");
  1553. }else if(cmb_roselect.value == "wardordd" || cmb_roselect.value == "inpatordd"){
  1554. model.removeNodeset("/root/main/monorddinfo");
  1555. model.removeNodeset("/root/main/moninpatordd");
  1556. model.refresh();
  1557. btn_Sorddeptcd.dispatch("onclick");
  1558. btn_Sorddeptcd.selected == true;
  1559. //btn_search2.dispatch("onclick");
  1560. }
  1561. ]]>
  1562. </script>
  1563. </select1>
  1564. <button id="btn_Sroomcd" visibility="hidden" style="left:975px; top:10px; width:15px; height:10px; ">
  1565. <caption>.</caption>
  1566. <toggle case="case_monorddward" ev:event="xforms-activate"/>
  1567. </button>
  1568. <button id="btn_Sorddeptcd" visibility="hidden" style="left:985px; top:20px; width:15px; height:10px; ">
  1569. <caption>.</caption>
  1570. <toggle case="case_monorddeptcd" ev:event="xforms-activate"/>
  1571. </button>
  1572. <input id="fromdd" ref="/root/send/fromdd" class="input_search" visibility="hidden" inputtype="date" style="left:342px; top:8px; width:90px; height:19px; ">
  1573. <script type="javascript">
  1574. <![CDATA[
  1575. var befoDate = getCurrentDate();
  1576. befoDate = befoDate.toDate().getAddDate(1,"M");
  1577. //alert(befoDate);
  1578. ]]>
  1579. </script>
  1580. </input>
  1581. <input id="todd" ref="/root/send/todd" class="input_search" visibility="hidden" inputtype="date" style="left:452px; top:8px; width:90px; height:19px; ">
  1582. <script type="javascript" ev:event="onkeypress">
  1583. <![CDATA[
  1584. if(event.keyCode == "13") {
  1585. // btn_search.dispatch("DOMActivate");
  1586. inputEnterKey("btn_search", "DOMActivate");
  1587. }
  1588. ]]>
  1589. </script>
  1590. </input>
  1591. <caption id="caption12" visibility="hidden" style="left:437px; top:8px; width:15px; height:20px; ">~</caption>
  1592. <caption id="caption13" class="search_name" visibility="hidden" style="left:225px; top:9px; width:128px; height:17px; ">병실조회기간 :</caption>
  1593. <caption id="caption14" visibility="hidden" style="left:219px; top:9px; width:15px; height:19px; text-align:center; vertical-align:middle; ">~</caption>
  1594. <caption id="caption15" class="search_name" visibility="hidden" style="left:38px; top:9px; width:86px; height:17px; ">조회기간 :</caption>
  1595. <input id="ipt_todd" ref="/root/send/todd" class="input_search" visibility="hidden" inputtype="date" style="left:235px; top:8px; width:90px; height:19px; "/>
  1596. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" visibility="hidden" inputtype="date" style="left:128px; top:8px; width:90px; height:19px; "/>
  1597. <select1 id="cmb_orddwardbed" ref="/root/temp/monorddward" class="combo_default" visibility="hidden" appearance="minimal" style="left:560px; top:8px; width:105px; height:19px; ">
  1598. <choices>
  1599. <item>
  1600. <label>과별</label>
  1601. <value>orddcd</value>
  1602. </item>
  1603. <item>
  1604. <label>과별병동별</label>
  1605. <value>orddwardcd</value>
  1606. </item>
  1607. </choices>
  1608. <script type="javascript" ev:event="xforms-select">
  1609. <![CDATA[
  1610. if(cmb_orddwardbed.value == "orddcd") {
  1611. btn_Sorddwardbed.dispatch("onclick");
  1612. }else if(cmb_orddwardbed.value == "orddwardcd"){
  1613. btn_Swardorddbed.dispatch("onclick");
  1614. btn_Swardorddbed.selected == true;
  1615. }
  1616. ]]>
  1617. </script>
  1618. </select1>
  1619. <caption id="caption16" class="search_name" visibility="hidden" style="left:500px; top:9px; width:87px; height:17px; ">검색조건 :</caption>
  1620. <button id="btn_Sorddwardbed" visibility="hidden" style="left:1025px; top:5px; width:10px; height:15px; ">
  1621. <caption>.</caption>
  1622. <toggle case="case_orddwardbed" ev:event="xforms-activate"/>
  1623. </button>
  1624. <button id="btn_Swardorddbed" visibility="hidden" style="left:1040px; top:15px; width:10px; height:5px; ">
  1625. <caption>.</caption>
  1626. <toggle case="case_wardorddbed" ev:event="xforms-activate"/>
  1627. </button>
  1628. <button id="btn_chaninpatlist" visibility="hidden" style="left:735px; top:5px; width:30px; height:10px; ">
  1629. <caption>.</caption>
  1630. <toggle case="case_longinpatlist" ev:event="DOMActivate"/>
  1631. </button>
  1632. <select1 id="rdo_orddward" ref="/root/send/selectordward" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:690px; top:9px; width:135px; height:20px; border-style:none; ">
  1633. <choices>
  1634. <item>
  1635. <label>진료과별</label>
  1636. <value>orddept</value>
  1637. </item>
  1638. <item>
  1639. <label>병동별</label>
  1640. <value>ward</value>
  1641. </item>
  1642. </choices>
  1643. <script type="javascript" ev:event="xforms-value-changed">
  1644. <![CDATA[
  1645. var row = grd_wardbed.row;
  1646. if(rdo_orddward.value == "orddept"){
  1647. caption2.text = "진료과별 병상가동 현황";
  1648. grd_wardbed.colHidden(0) = true;
  1649. grd_subwardbed.colHidden(1) = false;
  1650. grd_subwardbed.colHidden(5) = true;
  1651. grd_wardbed.colHidden(1) = false;
  1652. grd_wardbed.nodeset = "/root/list/wardbedinpat";
  1653. submit("TRPMI05200");
  1654. }else if(rdo_orddward.value == "ward") {
  1655. caption2.text = "병동별 병상가동 현황";
  1656. grd_wardbed.colHidden(1) = true;
  1657. grd_subwardbed.colHidden(1) = true;
  1658. grd_subwardbed.colHidden(5) = false;
  1659. grd_wardbed.colHidden(0) = false;
  1660. grd_wardbed.nodeset = "/root/list/wardbedinpat";
  1661. //model.setValue("/root/list/wardbedinpat/flag" , "W");
  1662. submit("TRPMI05200");
  1663. }
  1664. ]]>
  1665. </script>
  1666. </select1>
  1667. <caption id="caption17" class="search_name" visibility="hidden" style="left:845px; top:9px; width:91px; height:17px; ">검색구분 :</caption>
  1668. <select1 id="cmd_insukind" ref="/root/send/longinflag" visibility="hidden" appearance="minimal" style="left:930px; top:8px; width:105px; height:19px; ">
  1669. <choices>
  1670. <item>
  1671. <label>진료과별</label>
  1672. <value>orddept</value>
  1673. </item>
  1674. <item>
  1675. <label>유형별</label>
  1676. <value>insukind</value>
  1677. </item>
  1678. </choices>
  1679. <script type="javascript" ev:event="xforms-select">
  1680. <![CDATA[
  1681. if(cmd_insukind.value == "orddept" ) {
  1682. grd_longinpat.colHidden(0) = false;
  1683. grd_longinpat.colHidden(1) = true;
  1684. btn_longinpat.dispatch("onclick");
  1685. grd_longinpat.nodeset = "/root/list/longinpat";
  1686. submit("TRPMI05200");
  1687. }else if(cmd_insukind.value == "insukind" ) {
  1688. grd_longinpat.colHidden(1) = false;
  1689. grd_longinpat.colHidden(0) = true;
  1690. btn_longinpat.dispatch("onclick");
  1691. grd_longinpat.nodeset = "/root/list/longinpat";
  1692. submit("TRPMI05200");
  1693. }
  1694. ]]>
  1695. </script>
  1696. </select1>
  1697. <caption id="caption18" class="search_name" visibility="hidden" style="left:905px; top:9px; width:91px; height:17px; ">재원일수 :</caption>
  1698. <input id="input_indaycnt" ref="/root/send/indaycnt" class="input_search" visibility="hidden" style="left:995px; top:8px; width:30px; height:19px; text-align:right; ">
  1699. <script type="javascript">
  1700. <![CDATA[
  1701. model.setValue("/root/send/indaycnt" , 30);
  1702. model.refresh();
  1703. ]]>
  1704. </script>
  1705. </input>
  1706. <caption id="caption19" visibility="hidden" style="left:1030px; top:5px; width:55px; height:25px; ">일이상</caption>
  1707. <select1 id="cmb_emrorddept" ref="/root/send/emrorddept" class="combo_default" visibility="hidden" appearance="minimal" style="left:800px; top:8px; width:105px; height:19px; ">
  1708. <choices>
  1709. <item>
  1710. <label>진료과별12시</label>
  1711. <value>12</value>
  1712. </item>
  1713. <item>
  1714. <label>진료과별12시10분</label>
  1715. <value>1210</value>
  1716. </item>
  1717. </choices>
  1718. <script type="javascript" ev:event="xforms-select">
  1719. <![CDATA[
  1720. if(cmb_emrorddept.value == "12") {
  1721. btn_search2.dispatch("onclick");
  1722. }else if(cmb_emrorddept.value == "1210") {
  1723. btn_search2.dispatch("onclick");
  1724. }
  1725. ]]>
  1726. </script>
  1727. </select1>
  1728. <select id="checkbox1" ref="/root/send/exceptflag" visibility="hidden" overflow="visible" appearance="full" style="left:250px; top:10px; width:70px; height:20px; border-style:none; ">
  1729. <choices>
  1730. <item>
  1731. <label>특수병상 제외</label>
  1732. <value>Y</value>
  1733. </item>
  1734. </choices>
  1735. </select>
  1736. <select id="checkbox2" ref="/root/send/exceptflag" visibility="hidden" overflow="visible" appearance="full" style="left:250px; top:10px; width:70px; height:20px; border-style:none; ">
  1737. <choices>
  1738. <item>
  1739. <label>특수병상 제외</label>
  1740. <value>Y</value>
  1741. </item>
  1742. </choices>
  1743. </select>
  1744. </group>
  1745. <button id="btn_profgonbz" class="btn_sw" group="tab" selected="false" style="left:525px; top:45px; width:90px; height:22px; ">
  1746. <caption>교수출장현황</caption>
  1747. <toggle case="case_profgonbz" ev:event="xforms-activate"/>
  1748. <script type="javascript" ev:event="xforms-activate">
  1749. <![CDATA[
  1750. model.setValue("/root/send/fromdd", model.getValue("/root/main/fromdd"));
  1751. model.setValue("/root/send/todd", model.getValue("/root/main/todd"));
  1752. model.refresh();
  1753. fShowComboBox();
  1754. ]]>
  1755. </script>
  1756. </button>
  1757. <button id="btn_orddcdlist" class="btn_sw" group="tab" selected="true" style="left:0px; top:45px; width:195px; height:22px; ">
  1758. <caption>진료과별 재원 및 예약환자 현황</caption>
  1759. <toggle case="case_inrsrvspec" ev:event="xforms-activate"/>
  1760. <script type="javascript" ev:event="xforms-activate">
  1761. <![CDATA[
  1762. fShowComboBox();
  1763. ]]>
  1764. </script>
  1765. </button>
  1766. <button id="btn_orddwardbed" class="btn_sw" group="tab" selected="false" style="left:615px; top:45px; width:190px; height:22px; ">
  1767. <caption>진료과별 병동별 병상가동 현황</caption>
  1768. <toggle case="case_orddwardbed" ev:event="xforms-activate"/>
  1769. <script type="javascript" ev:event="xforms-activate">
  1770. <![CDATA[
  1771. fShowComboBox();
  1772. ]]>
  1773. </script>
  1774. </button>
  1775. <button id="btn_monorddward" class="btn_sw" group="tab" selected="false" style="left:805px; top:45px; width:175px; height:22px; ">
  1776. <caption>월별 진료과별 병상가동 현황</caption>
  1777. <toggle case="case_monorddeptcd" ev:event="xforms-activate"/>
  1778. <script type="javascript">
  1779. <![CDATA[
  1780. // for(var i = 1; i <= 31; i++) {
  1781. // grd_monorddward.addColumn("ref:mon[" + i + "]; type:output; " , false);
  1782. // grd_monorddward.caption = grd_monorddward.caption + "^"+i;
  1783. // grd_monorddeptcd.addColumn("ref:mono[" + i + "]; type:output; " , false);
  1784. // grd_monorddeptcd.caption = grd_monorddeptcd.caption + "^"+i;
  1785. // }
  1786. // for(var j = 4; j <= 35; j++) {
  1787. // grd_monorddward.colWidth(j) = 30;
  1788. // grd_monorddeptcd.colWidth(j) = 30;
  1789. // }
  1790. ]]>
  1791. </script>
  1792. <script type="javascript" ev:event="xforms-activate">
  1793. <![CDATA[
  1794. model.setValue("/root/send/fromdd" , getCurrentDate());
  1795. model.setValue("/root/send/todd" , getCurrentDate());
  1796. fShowComboBox();
  1797. ]]>
  1798. </script>
  1799. </button>
  1800. <button id="btn_emrorddin" class="btn_sw" group="tab" selected="false" style="left:980px; top:45px; width:190px; height:22px; ">
  1801. <caption>응급실 진료과 기간별 재원현황</caption>
  1802. <toggle case="case_emrorddin" ev:event="xforms-activate"/>
  1803. <script type="javascript">
  1804. <![CDATA[
  1805. // for(var i = 1; i <= 31; i++) {
  1806. // grd_emrorddin.addColumn("ref:emrordd[" + i + "]; type:output; " , false);
  1807. // grd_emrorddin.caption = grd_emrorddin.caption + "^"+i;
  1808. // }
  1809. // for(var j = 1; j <= 31; j++) {
  1810. // grd_emrorddin.colWidth(j) = 30;
  1811. // }
  1812. ]]>
  1813. </script>
  1814. <script type="javascript" ev:event="xforms-activate">
  1815. <![CDATA[
  1816. model.setValue("/root/send/fromdd" , getCurrentDate());
  1817. model.setValue("/root/send/todd" , getCurrentDate());
  1818. fShowComboBox();
  1819. ]]>
  1820. </script>
  1821. </button>
  1822. </group>
  1823. <button id="btn_orddstand" class="btn3_letter8" visibility="hidden" style="left:0px; top:697px; width:128px; height:22px; ">
  1824. <caption>과별기준병상조회</caption>
  1825. <script type="javascript" ev:event="DOMActivate">
  1826. <![CDATA[
  1827. submit("TRPMI05210");
  1828. exeReportPreview("RPPMI05218", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  1829. ]]>
  1830. </script>
  1831. </button>
  1832. <button id="btn_inpatmanage" class="btn3_letter15" visibility="hidden" style="left:132px; top:697px; width:212px; height:22px; ">
  1833. <caption>임상각과 입원관리 담당의사 명단</caption>
  1834. <script type="javascript" ev:event="DOMActivate">
  1835. <![CDATA[
  1836. model.setValue("/root/source/sendflag","inmanage");
  1837. modal("../../../pam/ipatmngtweb/xrw/SPPMI05200", "1","50", "50", "SPPMI05200", "/root/source/sendflag", "/root/source/flag");
  1838. ]]>
  1839. </script>
  1840. </button>
  1841. <button id="btn_chk" class="btn3_letter3" visibility="hidden" style="left:347px; top:697px; width:68px; height:22px; ">
  1842. <caption>CHK</caption>
  1843. <script type="javascript" ev:event="DOMActivate">
  1844. <![CDATA[
  1845. model.setValue("/root/source/sendflag","chk");
  1846. modal("../../../pam/ipatmngtweb/xrw/SPPMI05200", "1","50", "50", "SPPMI05200", "/root/source/sendflag", "/root/source/flag");
  1847. ]]>
  1848. </script>
  1849. </button>
  1850. </xhtml:body>
  1851. </xhtml:html>