SMPMI03700_재원병실현황.xrw 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>재원병실현황</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <roomflag>0000</roomflag>
  11. <sess_posinstcd/>
  12. <roomcd/>
  13. <ioflag/>
  14. <eryn/>
  15. <wardcd1/>
  16. </send>
  17. <main>
  18. <gridpatlist>
  19. <patlist/>
  20. </gridpatlist>
  21. <gridlist>
  22. <roominfolist/>
  23. <trsinfo>
  24. <sum_0001/>
  25. <bed_0001/>
  26. <bed_0002/>
  27. <bed_0003/>
  28. <sum_0004/>
  29. <bed_0004/>
  30. <sum_0005/>
  31. <bed_0005/>
  32. <sum_0006/>
  33. <bed_0006/>
  34. <sum_0007/>
  35. <bed_0007/>
  36. <sum_0008/>
  37. <bed_0008/>
  38. <sum_0009/>
  39. <bed_0009/>
  40. <sum_0010/>
  41. <bed_0010/>
  42. <sum_0011/>
  43. <bed_0011/>
  44. <sum_0012/>
  45. <bed_0012/>
  46. <sum_0013/>
  47. <bed_0013/>
  48. <sum_0014/>
  49. <bed_0014/>
  50. <bed_0015/>
  51. <bed_0016/>
  52. <bed_0017/>
  53. <bed_0018/>
  54. <bed_0019/>
  55. <sum_0020/>
  56. <bed_0020/>
  57. <bed_0021/>
  58. <sum_0022/>
  59. <bed_0022/>
  60. <sum_0023/>
  61. <bed_0023/>
  62. <sum_0024/>
  63. <bed_0024/>
  64. <sum_0020/>
  65. <bed_0020/>
  66. </trsinfo>
  67. </gridlist>
  68. </main>
  69. <hidden>
  70. <init>
  71. <disccd>
  72. <cd/>
  73. <nm/>
  74. </disccd>
  75. <insukind>
  76. <cd/>
  77. <nm/>
  78. </insukind>
  79. <suppkind>
  80. <cd/>
  81. <nm/>
  82. <up/>
  83. <io/>
  84. </suppkind>
  85. <orddeptcd>
  86. <cd/>
  87. <nm/>
  88. </orddeptcd>
  89. <orddrid>
  90. <cd/>
  91. <nm/>
  92. <dp/>
  93. </orddrid>
  94. <flag>
  95. <prestdd/>
  96. <mskindflag/>
  97. </flag>
  98. <wardcd>
  99. <cd/>
  100. <nm/>
  101. </wardcd>
  102. <roomcd>
  103. <cd/>
  104. <nm/>
  105. <wd/>
  106. </roomcd>
  107. <roomgrdecd>
  108. <cd/>
  109. <nm/>
  110. </roomgrdecd>
  111. </init>
  112. <sort>
  113. <nm/>
  114. <cd/>
  115. </sort>
  116. </hidden>
  117. <init>
  118. <P0025list>
  119. <P0025>
  120. <cdid/>
  121. <cdnm/>
  122. </P0025>
  123. </P0025list>
  124. <P0026list>
  125. <P0026>
  126. <cdid/>
  127. <cdnm/>
  128. </P0026>
  129. </P0026list>
  130. <P0338list>
  131. <P0338>
  132. <cdid/>
  133. <cdnm/>
  134. </P0338>
  135. </P0338list>
  136. <P0313list>
  137. <P0313>
  138. <cdnm/>
  139. <cdid/>
  140. </P0313>
  141. </P0313list>
  142. <P0325list>
  143. <P0325>
  144. <cdnm/>
  145. <cdid/>
  146. </P0325>
  147. </P0325list>
  148. <PAM>
  149. <P0041list>
  150. <P0041>
  151. <cdid/>
  152. <cdnm/>
  153. <detl/>
  154. </P0041>
  155. </P0041list>
  156. </PAM>
  157. </init>
  158. </root>
  159. </instance>
  160. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  161. <script type="javascript" ev:event="xforms-ready">
  162. <![CDATA[
  163. zbcfGetCodeList(new Array("P0025","P0026","P0338","P0313","P0325"), new Array("/root/init/P0025list","/root/init/P0026list","/root/init/P0338list","/root/init/P0313list","/root/init/P0325list"))
  164. // 2009.09.10 - zzui : 병실정보 응급의료센터 제외
  165. pamfGetCodeList(new Array("P0041"), new Array("/root/init/PAM/P0041list", "/root/init/PAM/P0041list"));
  166. //세션정보 추출하기
  167. fGetUserInfosSampling();
  168. model.setValue("/root/send/sess_posinstcd", model.getValue("/root/hidden/session/posinstcd"));
  169. model.setValue("/root/send/ioflag","I");
  170. submit("TRPMI00106");
  171. fRoomChk();
  172. // 2009.09.01 - 전체병실조회
  173. model.setValue("/root/send/roomcd", "");
  174. // 2009.09.10 - zzui - 병실정보 응급의료센터 제외 - 시작
  175. var erYN = model.getValue("/root/init/PAM/P0041list/P0041[cdid = 'G01']/cdnm");
  176. model.setValue("/root/send/eryn", erYN);
  177. // 2009.09.10 - zzui - 병실정보 응급의료센터 제외 - 끝
  178. if(cm_gubun.value == "0000"){
  179. //model.setValue("/root/send/roomflag", "");
  180. model.setValue("/root/send/roomflag", "");
  181. }
  182. submit("TRPMI03702");
  183. if(cm_gubun.value == ""){
  184. cm_gubun.value = "0000";
  185. }
  186. model.refresh();
  187. ]]>
  188. </script>
  189. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
  190. <submission id="TRPMI03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/gridlist"/>
  191. <submission id="TRPMI03702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/gridpatlist"/>
  192. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  193. </model>
  194. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  195. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  196. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  197. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  198. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  199. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  200. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  201. <script type="javascript">
  202. <![CDATA[
  203. //세션정보 추출하기
  204. function fGetUserInfosSampling(){
  205. var sUserInfosS = getUserInfos();
  206. sUserInfosS = sUserInfosS + "|";
  207. var UserInfosS_Array = sUserInfosS.split("|");
  208. var userid = UserInfosS_Array[0]; //사용자번호
  209. var usernm = UserInfosS_Array[1]; //사용자이름
  210. //var posinstcd = UserInfosS_Array[2]; //소속기관코드
  211. //var posinstnm = UserInfosS_Array[3]; //소속기관명
  212. var posinstcd = UserInfosS_Array[6]; //근무지기관코드 2009.04.15
  213. var posinstnm = UserInfosS_Array[7]; //근무지기관명 2009.04.15
  214. var posdeptcd = UserInfosS_Array[4]; //소속부서코드
  215. var posdeptnm = UserInfosS_Array[5]; //소속부서명
  216. model.makeNode("/root/hidden/session/" + "userid");
  217. model.makeNode("/root/hidden/session/" + "usernm");
  218. model.makeNode("/root/hidden/session/" + "posinstcd");
  219. model.makeNode("/root/hidden/session/" + "posinstnm");
  220. model.makeNode("/root/hidden/session/" + "posdeptcd");
  221. model.makeNode("/root/hidden/session/" + "posdeptnm")
  222. if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
  223. //if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "";
  224. model.setValue("/root/hidden/session/userid",userid);
  225. model.setValue("/root/hidden/session/usernm",usernm);
  226. model.setValue("/root/hidden/session/posinstcd",posinstcd);
  227. model.setValue("/root/hidden/session/posinstnm",posinstnm);
  228. model.setValue("/root/hidden/session/posdeptcd",posdeptcd);
  229. model.setValue("/root/hidden/session/posdeptnm",posdeptnm);
  230. model.refresh();
  231. }
  232. function fRoomChk() {
  233. if(cm_gubun.value == "0001"){
  234. model.setValue("/root/send/eryn", "Y");
  235. }
  236. else{
  237. // 2009.09.10 - zzui - 병실정보 응급의료센터 제외 - 시작
  238. var erYN = model.getValue("/root/init/PAM/P0041list/P0041[cdid = 'G01']/cdnm");
  239. model.setValue("/root/send/eryn", erYN);
  240. // 2009.09.10 - zzui - 병실정보 응급의료센터 제외 - 끝
  241. }
  242. submit("TRPMI03701");
  243. grd_list.rebuild();
  244. grid_list2.rebuild();
  245. grd_list.subtotalPosition = "above"; //below
  246. grd_list.subtotal("sum", -1, 5, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
  247. grd_list.subtotal("sum", -1, 6, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
  248. grd_list.subtotal("sum", -1, 7, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
  249. model.removeNodeset("/root/main/gridpatlist");
  250. model.makeNode("/root/main/gridpatlist/patlist");
  251. grd_list.mergeCellsFixedCols = "bycol";
  252. model.refresh();
  253. }
  254. ]]>
  255. </script>
  256. </xhtml:head>
  257. <xhtml:body guideline="2,57;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  258. <group id="group1" style="left:0px; top:0px; width:1192px; height:13px; ">
  259. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">재원병상현황</caption>
  260. </group>
  261. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1194px; height:744px; ">
  262. <group id="group2" style="left:0px; top:10px; width:1193px; height:35px; vertical-align:top; ">
  263. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  264. <caption id="caption2" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">병실구분 :</caption>
  265. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  266. <caption>조회</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. model.removeNodeset("/root/main/gridlist");
  270. model.makeNode("/root/main/gridlist/roominfolist");
  271. fRoomChk();
  272. var sFlag = model.getValue("/root/send/roomflag");
  273. if (sFlag == "0000") {
  274. // 2009.09.01 - 전체병실조회
  275. model.setValue("/root/send/roomcd", "");
  276. // 2009.09.10 - zzui - 병실정보 응급의료센터 제외 - 시작
  277. var erYN = model.getValue("/root/init/PAM/P0041list/P0041[cdid = 'G01']/cdnm");
  278. model.setValue("/root/send/eryn", erYN);
  279. // 2009.09.10 - zzui - 병실정보 응급의료센터 제외 - 끝
  280. submit("TRPMI03702");
  281. }
  282. model.refresh();
  283. ]]>
  284. </script>
  285. </button>
  286. <line id="line13" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  287. <select1 id="cm_gubun" ref="/root/send/roomflag" class="combo_s_essential" appearance="minimal" style="left:105px; top:8px; width:200px; height:19px; ">
  288. <choices>
  289. <item>
  290. <label>전체</label>
  291. <value>0000</value>
  292. </item>
  293. <item>
  294. <label>응급실</label>
  295. <value>0001</value>
  296. </item>
  297. <item>
  298. <label>수술실</label>
  299. <value>0004</value>
  300. </item>
  301. <item>
  302. <label>내과중환자실</label>
  303. <value>0005</value>
  304. </item>
  305. <item>
  306. <label>외과중환자실</label>
  307. <value>0006</value>
  308. </item>
  309. <item>
  310. <label>신생아중환자실</label>
  311. <value>0008</value>
  312. </item>
  313. <item>
  314. <label>신경과중환자실</label>
  315. <value>0009</value>
  316. </item>
  317. <item>
  318. <label>신경외과중환자실</label>
  319. <value>0011</value>
  320. </item>
  321. <item>
  322. <label>흉부중환자실</label>
  323. <value>0022</value>
  324. </item>
  325. <item>
  326. <label>일반중환자실</label>
  327. <value>0023</value>
  328. </item>
  329. <item>
  330. <label>일반병실</label>
  331. <value>0024</value>
  332. </item>
  333. </choices>
  334. <script type="javascript" ev:event="xforms-select">
  335. <![CDATA[
  336. fRoomChk();
  337. var sFlag = model.getValue("/root/send/roomflag");
  338. if (sFlag == "0000") {
  339. // 2009.09.01 - 전체병실조회
  340. model.setValue("/root/send/roomcd", "");
  341. if(cm_gubun.value == "0000"){
  342. model.setValue("/root/send/roomflag", "");
  343. }
  344. submit("TRPMI03702");
  345. }
  346. if(cm_gubun.value == ""){
  347. cm_gubun.value = "0000";
  348. }
  349. model.refresh();
  350. ]]>
  351. </script>
  352. </select1>
  353. </group>
  354. <caption id="caption20" class="tit_2" style="left:5px; top:170px; width:100px; height:13px; ">병실정보</caption>
  355. <line id="line8" class="line_1" style="x1:0px; y1:185px; x2:720px; y2:185px; "/>
  356. <datagrid id="grd_list" nodeset="/root/main/gridlist/roominfolist" class="datagrid2" caption="병동^병실^병실전화번호^형태^등급^병상수^재원병상수^잔여병상수^wardcd1" colsep="^" colwidth="105, 70, 80, 90, 130, 80, 40, 46, 100" extendlastcol="scroll" fixedcols="1" mergecellsfixedcols="bycolrec" rowsep="|" tooltip="true" navindex="1" style="left:0px; top:190px; width:720px; height:550px; ">
  357. <col disabled="true" ref="wardcd" type="output" style="text-align:center; "/>
  358. <col disabled="true" ref="roomcd" type="output" style="text-align:center; "/>
  359. <col disabled="true" ref="roomtelno" type="output" style="text-align:center; "/>
  360. <col disabled="true" ref="roomtypecd" type="combo">
  361. <choices>
  362. <itemset nodeset="/root/init/P0026list/P0026">
  363. <label ref="cdnm"/>
  364. <value ref="cdid"/>
  365. </itemset>
  366. </choices>
  367. </col>
  368. <col disabled="true" ref="roomgrdecd" type="combo">
  369. <choices>
  370. <itemset nodeset="/root/hidden/init/roomgrdecd">
  371. <label ref="nm"/>
  372. <value ref="cd"/>
  373. </itemset>
  374. </choices>
  375. </col>
  376. <col disabled="true" ref="bedcnt" type="output" style="text-align:center; "/>
  377. <col disabled="true" ref="inpatcnt" type="output" style="text-align:center; "/>
  378. <col disabled="true" ref="remaindercnt" type="output" style="text-align:center; "/>
  379. <col ref="wardcd1" visibility="hidden"/>
  380. <script type="javascript" ev:event="onclick">
  381. <![CDATA[
  382. if (isDataCell()) {
  383. var scurrentrow = grd_list.row;
  384. if(cm_gubun.value == "0000"){
  385. model.setValue("/root/send/roomflag", "");
  386. }
  387. if(cm_gubun.value == "0001"){
  388. model.setValue("/root/send/eryn", "Y");
  389. }
  390. else{
  391. // 2009.09.10 - zzui - 병실정보 응급의료센터 제외 - 시작
  392. var erYN = model.getValue("/root/init/PAM/P0041list/P0041[cdid = 'G01']/cdnm");
  393. model.setValue("/root/send/eryn", erYN);
  394. // 2009.09.10 - zzui - 병실정보 응급의료센터 제외 - 끝
  395. }
  396. model.setValue("/root/send/roomcd", model.getValue("/root/main/gridlist/roominfolist["+ (scurrentrow - 1) +"]/roomcd"));
  397. submit("TRPMI03702");
  398. }
  399. if(cm_gubun.value == ""){
  400. cm_gubun.value = "0000";
  401. }
  402. ]]>
  403. </script>
  404. </datagrid>
  405. <line id="line1" class="line_1" style="x1:724px; y1:185px; x2:1194px; y2:185px; "/>
  406. <caption id="caption5" class="tit_2" style="left:729px; top:170px; width:100px; height:13px; ">재원환자내역</caption>
  407. <datagrid id="datagrid1" nodeset="/root/main/gridpatlist/patlist" class="datagrid2" caption="환자번호^성명^입원일자^성별^나이^진료과^전문의^보험유형^보조유형^퇴원예고일시^퇴원통보일시^주민번호" colsep="^" colwidth="80, 60, 77, 39, 38, 100, 91, 83, 100, 111, 111, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:724px; top:190px; width:470px; height:550px; ">
  408. <col disabled="true" ref="pid" type="output"/>
  409. <col disabled="true" ref="hngnm" type="output"/>
  410. <col disabled="true" ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  411. <col disabled="true" ref="sex" style="text-align:center; "/>
  412. <col disabled="true" ref="age" style="text-align:center; "/>
  413. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
  414. <choices>
  415. <itemset nodeset="/root/hidden/init/orddeptcd">
  416. <label ref="nm"/>
  417. <value ref="cd"/>
  418. </itemset>
  419. </choices>
  420. </col>
  421. <col disabled="true" ref="medispclid" type="combo" style="text-align:center; ">
  422. <choices>
  423. <itemset nodeset="/root/hidden/init/orddrid">
  424. <label ref="nm"/>
  425. <value ref="cd"/>
  426. </itemset>
  427. </choices>
  428. </col>
  429. <col disabled="true" ref="insukind" type="combo" style="text-align:center; ">
  430. <choices>
  431. <itemset nodeset="/root/hidden/init/insukind">
  432. <label ref="nm"/>
  433. <value ref="cd"/>
  434. </itemset>
  435. </choices>
  436. </col>
  437. <col disabled="true" ref="suppkind" type="combo" style="text-align:center; ">
  438. <choices>
  439. <itemset nodeset="/root/hidden/init/suppkind">
  440. <label ref="nm"/>
  441. <value ref="cd"/>
  442. </itemset>
  443. </choices>
  444. </col>
  445. <col ref="dschdclrdt" format="yyyy-mm-dd hh:nn"/>
  446. <col ref="dschnotidt" format="yyyy-mm-dd hh:nn"/>
  447. <col disabled="true" ref="rrgstno" style="text-align:center; "/>
  448. <script type="javascript" ev:event="onclick">
  449. <![CDATA[
  450. var sortnm = model.getValue("/root/hidden/sort/nm");
  451. var sortcd = model.getValue("/root/hidden/sort/cd");
  452. var col = datagrid1.col;
  453. var row = datagrid1.row;
  454. if(row == '0'){
  455. if(col == '1'|| col == '2' || col == '3' || col == '6' || col == '8' || col == '9'){
  456. if(col == '1'){
  457. var colref = "pid";
  458. } else if(col == '2'){
  459. var colref = "hngnm";
  460. } else if(col == '3'){
  461. var colref = "indd";
  462. } else if(col == '6'){
  463. var colref = "orddeptcd";
  464. } else if(col == '8'){
  465. var colref = "insukind";
  466. } else if(col == '9'){
  467. var colref = "suppkind";
  468. }
  469. if(sortnm == colref){
  470. if(sortcd == 'asc'){
  471. sortcd = "desc";
  472. }else{
  473. sortcd = "asc";
  474. }
  475. }else{
  476. if(sortcd == 'asc'){
  477. sortcd = "desc";
  478. }else{
  479. sortcd = "asc";
  480. }
  481. }
  482. sortNodeList("/root/main/gridpatlist/patlist", colref, sortcd);
  483. model.setValue("/root/hidden/sort/nm",colref);
  484. model.setValue("/root/hidden/sort/cd",sortcd);
  485. model.refresh();
  486. }
  487. }
  488. ]]>
  489. </script>
  490. </datagrid>
  491. <line id="line2" class="line_1" style="x1:0px; y1:67px; x2:1193px; y2:67px; "/>
  492. <caption id="caption1" class="tit_2" style="left:5px; top:52px; width:100px; height:14px; ">응급전송정보</caption>
  493. <button id="button3" class="btn2_letter2" style="left:678px; top:165px; width:42px; height:19px; ">
  494. <caption>엑셀</caption>
  495. <script type="javascript" ev:event="DOMActivate">
  496. <![CDATA[
  497. var fileName = window.fileDialog("save", ",", false, "병실정보" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  498. if (fileName != "")
  499. {
  500. grd_list.saveExcel(fileName, "SheetName", true, true, "", "", false);
  501. }
  502. ]]>
  503. </script>
  504. </button>
  505. <button id="button7" class="btn2_letter4" style="left:1127px; top:165px; width:64px; height:19px; ">
  506. <caption>엑셀저장</caption>
  507. <script type="javascript" ev:event="DOMActivate">
  508. <![CDATA[
  509. var today = getCurrentDate(); // 엑셀파일이름에오늘날짜를 넣기위해 받아옴
  510. // 그리드 제목을 선택하면 저장이 안된다.
  511. if (datagrid1.rows == 1) {
  512. return;
  513. }
  514. var fileName = window.fileDialog("save", ",", false, "재원병상현황-재원환자내역_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  515. if (fileName != "") {
  516. datagrid1.saveExcel(fileName, "재원환자내역", true, true, "", "", false);
  517. }
  518. ]]>
  519. </script>
  520. </button>
  521. </group>
  522. <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; "/>
  523. <datagrid id="grid_list2" nodeset="/root/main/gridlist/trsinfo" class="datagrid2" caption="응급실^응급실^수술실^수술실^내과중환자실^내과중환자실^외과중환자실^외과중환자실^외과입원실^외과입원실^신생아중환자실^신생아중환자실^신경과중환자실^신경과중환자실^신경과입원실^신경과입원실^신경외과중환자실^신경외과중환자실^약물중환자실^약물중환자실^화상중환자실^화상중환자실^외상중환자실^외상중환자실^흉부중환자실^흉부중환자실^일반중환자실^일반중환자실^일반병실^일반병실^인큐베이터^인큐베이터^전체재원환자수&#xA;(응급, 수술실제외)^전체병상수&#xA;(응급,수술실제외)^응급당직" colsep="^" colwidth="50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 55, 55, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 110, 110, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:85px; width:1193px; height:80px; ">
  524. <col ref="sum_0001" style="text-align:center; "/>
  525. <col ref="bed_0001" style="text-align:center; "/>
  526. <col ref="sum_0004" style="text-align:center; "/>
  527. <col ref="bed_0004" style="text-align:center; "/>
  528. <col ref="sum_0005" style="text-align:center; "/>
  529. <col ref="bed_0005" style="text-align:center; "/>
  530. <col ref="sum_0006" style="text-align:center; "/>
  531. <col ref="bed_0006" style="text-align:center; "/>
  532. <col ref="sum_0007" style="text-align:center; "/>
  533. <col ref="bed_0007" style="text-align:center; "/>
  534. <col ref="sum_0008" style="text-align:center; "/>
  535. <col ref="bed_0008" style="text-align:center; "/>
  536. <col ref="sum_0009" style="text-align:center; "/>
  537. <col ref="bed_0009" style="text-align:center; "/>
  538. <col ref="sum_0010" style="text-align:center; "/>
  539. <col ref="bed_0010" style="text-align:center; "/>
  540. <col ref="sum_0011" style="text-align:center; "/>
  541. <col ref="bed_0011" style="text-align:center; "/>
  542. <col ref="sum_0012" style="text-align:center; "/>
  543. <col ref="bed_0012" style="text-align:center; "/>
  544. <col ref="sum_0013" style="text-align:center; "/>
  545. <col ref="bed_0013" style="text-align:center; "/>
  546. <col ref="sum_0014" style="text-align:center; "/>
  547. <col ref="bed_0014" style="text-align:center; "/>
  548. <col ref="sum_0022" style="text-align:center; "/>
  549. <col ref="bed_0022" style="text-align:center; "/>
  550. <col ref="sum_0023"/>
  551. <col ref="bed_0023"/>
  552. <col ref="sum_0024" style="text-align:center; "/>
  553. <col ref="bed_0024" style="text-align:center; "/>
  554. <col ref="sum_0020" style="text-align:center; "/>
  555. <col ref="bed_0020" style="text-align:center; "/>
  556. <col ref="bed_incnt" style="text-align:center; "/>
  557. <col ref="bed_allcnt" style="text-align:center; "/>
  558. <col ref="bed_0002" style="text-align:left; "/>
  559. </datagrid>
  560. </xhtml:body>
  561. </xhtml:html>