SMAEA05300_검사실별예약현황조회.xrw 57 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <![CDATA[desupp]]>
  6. <xhtml:title>검사실별 예약현황조회</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <rsrvprescondlist>
  12. <rsrvprescond>
  13. <rsrvtm/>
  14. <pid/>
  15. <hngnm/>
  16. <age/>
  17. <prcpcd/>
  18. <prcpnm/>
  19. <usernm/>
  20. <prcpdd/>
  21. <rsrvrem/>
  22. <prcpdelivefact/>
  23. <clinccmtcnts/>
  24. <prcpgenrflag/>
  25. <execprcpstatcd/>
  26. <roomcd/>
  27. <fromdd/>
  28. <todd/>
  29. <updnm/>
  30. <upddate/>
  31. <specdrnm/>
  32. <wardcd/>
  33. <payflagnm/>
  34. </rsrvprescond>
  35. <rsrvposstm>
  36. <rsrvtm/>
  37. <count/>
  38. <max/>
  39. </rsrvposstm>
  40. </rsrvprescondlist>
  41. <rsrvprescondlist2>
  42. <rsrvprescond>
  43. <rsrvtm/>
  44. <pid/>
  45. <hngnm/>
  46. <age/>
  47. <prcpcd/>
  48. <prcpnm/>
  49. <usernm/>
  50. <prcpdd/>
  51. <rsrvrem/>
  52. <prcpdelivefact/>
  53. <clinccmtcnts/>
  54. <prcpgenrflag/>
  55. <execprcpstatcd/>
  56. <roomcd/>
  57. <fromdd/>
  58. <todd/>
  59. <updnm/>
  60. <upddate/>
  61. <specdrnm/>
  62. <payflagnm/>
  63. </rsrvprescond>
  64. </rsrvprescondlist2>
  65. <sample1>
  66. <deptcd/>
  67. <deptnm/>
  68. </sample1>
  69. <rsrvupdtinfo>
  70. <rsrvupdt>
  71. <rsrvupdtfromdd/>
  72. <rsrvupdtfromtm/>
  73. <rsrvupdttodd/>
  74. <rsrvupdttotm/>
  75. <updtresndesc/>
  76. <updtresncnts/>
  77. <excuroomcd/>
  78. <suppdeptcd/>
  79. <ioflag/>
  80. </rsrvupdt>
  81. </rsrvupdtinfo>
  82. </main>
  83. <send>
  84. <rsrvfromdd/>
  85. <rsrvtodd/>
  86. <suppdeptcd/>
  87. <orddeptcd/>
  88. <rsrvflag/>
  89. <excuroomcd/>
  90. <rsrvstatcd/>
  91. <pid/>
  92. <wardcd/>
  93. <patnm/>
  94. <globalinstance>
  95. <instance1/>
  96. </globalinstance>
  97. <execrid/>
  98. <prsrvfromdd/>
  99. <prsrvtodd/>
  100. <psuppdeptcd/>
  101. <pexcuroomcd/>
  102. <unexecyn/>
  103. <printgubn/>
  104. <data>
  105. <rsrvdd/>
  106. <rsrvdate/>
  107. </data>
  108. <reqdata>
  109. <rsrvfromdd/>
  110. <rsrvtodd/>
  111. <suppdeptcd/>
  112. <excuroomcd/>
  113. <execrid/>
  114. <instcd/>
  115. <room/>
  116. </reqdata>
  117. <ioflag/>
  118. <prcpcd/>
  119. <rsrvid/>
  120. <sdate/>
  121. <tdate/>
  122. </send>
  123. <init1>
  124. <cmb_info>
  125. <initexecroom>
  126. <excuroomcdid/>
  127. <excuroomcdnm/>
  128. </initexecroom>
  129. </cmb_info>
  130. </init1>
  131. <init>
  132. <cmb_info>
  133. <suppdeptlist>
  134. <suppdept>
  135. <suppdeptcd/>
  136. <depthngnm/>
  137. </suppdept>
  138. </suppdeptlist>
  139. <orddeptcdlist>
  140. <dept>
  141. <deptcd/>
  142. <depthngnm/>
  143. </dept>
  144. </orddeptcdlist>
  145. <wardcdlist>
  146. <dept>
  147. <deptcd/>
  148. <depthngnm/>
  149. </dept>
  150. </wardcdlist>
  151. <rsrvflaglist>
  152. </rsrvflaglist>
  153. <excuroomcdlist>
  154. <excuroom>
  155. <basecd/>
  156. <basecdflagdesc/>
  157. </excuroom>
  158. </excuroomcdlist>
  159. <execridlist>
  160. <execr>
  161. <basecd/>
  162. <basecdflagdesc/>
  163. </execr>
  164. </execridlist>
  165. <rsrvidinfo>
  166. </rsrvidinfo>
  167. </cmb_info>
  168. <patinfo/>
  169. <curerprescondlist>
  170. <curerprescond>
  171. <userid/>
  172. <usernm/>
  173. </curerprescond>
  174. <rsrvcalendar>
  175. <rsrvdd/>
  176. <count/>
  177. <max/>
  178. </rsrvcalendar>
  179. <orddeptlist>
  180. <orddeptcd/>
  181. </orddeptlist>
  182. </curerprescondlist>
  183. <calenlist>
  184. <calendinfo>
  185. <basedd/>
  186. <dutflag/>
  187. </calendinfo>
  188. </calenlist>
  189. </init>
  190. <init2>
  191. <cmb_info>
  192. <initexecprcpstatcd>
  193. <M0011>
  194. <cdid/>
  195. <cdnm/>
  196. </M0011>
  197. </initexecprcpstatcd>
  198. <prcpgenrflag>
  199. </prcpgenrflag>
  200. </cmb_info>
  201. </init2>
  202. <hidden>
  203. <calendar>
  204. <year/>
  205. <month/>
  206. <weeklist>
  207. <list>
  208. <sun/>
  209. <mon/>
  210. <tue/>
  211. <wed/>
  212. <thu/>
  213. <fri/>
  214. <sat/>
  215. <sun_memo/>
  216. <mon_memo/>
  217. <tue_memo/>
  218. <wed_memo/>
  219. <thu_memo/>
  220. <fri_memo/>
  221. <sat_memo/>
  222. </list>
  223. </weeklist>
  224. <dd/>
  225. </calendar>
  226. <grdcellcolor>
  227. <calrow/>
  228. <calcol/>
  229. <bfcalrow/>
  230. <bfcalcol/>
  231. <color/>
  232. </grdcellcolor>
  233. <cntflag/>
  234. <rsrvlist>
  235. <rsrvprescond/>
  236. </rsrvlist>
  237. </hidden>
  238. <temp>
  239. <rsrvprescondlist/>
  240. </temp>
  241. <init2>
  242. <cmb_info2>
  243. <initexcuroomcd>
  244. <excuroomcdnm/>
  245. <excuroomcdid/>
  246. </initexcuroomcd>
  247. </cmb_info2>
  248. </init2>
  249. </root>
  250. </instance>
  251. <bind id="bind_orddept" ref="/root/main/rsrvprescondlist/rsrvprescond/orddeptcd" readonly="../orddeptcd!=''"/>
  252. <bind id="bind_orddr" ref="/root/main/rsrvprescondlist/rsrvprescond/orddrid" readonly="../orddrid!=''"/>
  253. <bind id="bind_ward" ref="/root/main/rsrvprescondlist/rsrvprescond/wardcd" readonly="../wardcd!=''"/>
  254. <bind id="bind_room" ref="/root/main/rsrvprescondlist/rsrvprescond/roomcd" readonly="../roomcd!=''"/>
  255. <bind id="bind_excuroom" ref="/root/main/rsrvprescondlist/rsrvprescond/excuroomcd" readonly="../excuroomcd!=''"/>
  256. <script type="javascript" ev:event="xforms-ready">
  257. <![CDATA[
  258. model.removeNodeset("/root/main/rsrvprescondlist/rsrvprescond");
  259. aezfSetSuppDeptcd();
  260. //model.setValue("/root/send/rsrvfromdd", getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD"));
  261. model.setValue("/root/send/rsrvtodd", getCurrentDate());
  262. model.setValue("/root/send/prsrvfromdd", getCurrentDate());
  263. model.setValue("/root/send/prsrvtodd", getCurrentDate());
  264. var instcd = getUserInfo("posinstcd");
  265. var standard_yn = "orduseyn";
  266. var ord_deptflag = "D"; //외래진료실
  267. var rslt_ref = "/root/init/cmb_info/orddeptcdlist";
  268. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  269. ord_deptflag = "W"; //일반병동
  270. rslt_ref = "/root/init/cmb_info/wardcdlist";
  271. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  272. //통합예약사용자가져오기
  273. astGetComboList( new Array("T0001"), new Array("/root/init/cmb_info/rsrvidinfo") );
  274. model.setValue("/root/send/rsrvid", model.getValue("/root/init/cmb_info/rsrvidinfo/T0001"));
  275. zbcfGetCodeList( new Array("M0011","M0010"), new Array("/root/init2/cmb_info/initexecprcpstatcd","/root/init2/cmb_info/prcpgenrflag") );
  276. submit("TRZBC00101", false);
  277. //submit("TRAEA00904", false); //지원부서
  278. submit("TRAEA05301", false); //지원부서
  279. // submit("TRAEA00902", false); //검사실
  280. // submit("TRAEA00903", false); //검사자
  281. // submit("TRAEA01301", false); //검사실
  282. btn_case1.selected = true;
  283. model.setValue("/root/send/suppdeptcd",model.getValue("/root/send/globalinstance/instance1"));
  284. model.setValue("/root/send/psuppdeptcd",model.getValue("/root/send/globalinstance/instance1"));
  285. model.setValue("/root/send/printgubn", "1");
  286. // //*********************************************************************************************************************************************
  287. // //담당 검사실 갖고오기
  288. // submit("TRAEA01115",false);
  289. //
  290. // //담당 검사실 세팅
  291. // model.setValue("/root/send/excuroomcd",model.getValue("/root/init2/cmb_info/initexcuroomcd[1]/excuroomcd"));
  292. // //*********************************************************************************************************************************************
  293. initCalendar();
  294. setCurrentDate();
  295. model.toggle("case1");
  296. model.refresh();
  297. ]]>
  298. </script>
  299. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  300. <submission id="TRAEA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/excuroomcdlist"/>
  301. <submission id="TRAEA00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/execridlist"/>
  302. <submission id="TRAEA00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/suppdeptlist"/>
  303. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init1/cmb_info"/>
  304. <submission id="TRZSD00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  305. <submission id="TRAEA00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsrvprescondlist"/>
  306. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  307. <submission id="TRAEA02012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/calenlist"/>
  308. <submission id="TRAEA00907" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
  309. <submission id="TRAEA01115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init2/cmb_info"/>
  310. <submission id="TRAEA05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/suppdeptlist"/>
  311. <submission id="TRAEA05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsrvprescondlist2"/>
  312. <submission id="TRAEA05303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsrvprescondlist"/>
  313. <submission id="TRAEA00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsrvupdtinfo"/>
  314. <submission id="TRAAA00001"/>
  315. </model>
  316. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  317. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  318. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  319. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  320. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  321. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  322. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  323. <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
  324. <script type="javascript">
  325. <![CDATA[
  326. function getRsrvPossTm(gridObj) {
  327. var calRow = model.getValue("/root/hidden/grdcellcolor/calrow");
  328. var calCol = model.getValue("/root/hidden/grdcellcolor/calcol");
  329. if( calCol >= 7 )
  330. calCol -= 7;
  331. var yyyy = model.getValue("/root/hidden/calendar/year");
  332. var mm = model.getValue("/root/hidden/calendar/month");
  333. var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + gridObj.colAttribute(calCol, "ref"));
  334. if (getStringLength(dd) == 1) {
  335. dd = "0" + dd;
  336. }
  337. model.setValue("/root/send/rsrvtodd", yyyy + mm + dd);
  338. model.setValue("/root/send/data/rsrvdd", yyyy + mm + dd);
  339. model.setValue("/root/send/rsrvfromdd", "");
  340. model.setValue("/root/send/data/rsrvdate",model.getValue("/root/send/data/rsrvdd"));
  341. model.setValue("/root/hidden/cntflag", "");
  342. chk_cntflag.refresh();
  343. datagrid1.rebuildStyle();
  344. submit("TRAEA05303");
  345. }
  346. function initCalendar() {
  347. var curDate = getCurrentDate().toDate();
  348. model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
  349. model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
  350. //model.refresh();
  351. setCalendar(curDate);
  352. }
  353. function setCurrentDate() {
  354. var curDate = getCurrentDate().substr(6,2); //오늘날짜
  355. var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  356. if(curDate <10) {
  357. curDate= curDate.substr(1,1);
  358. }
  359. if(curWeek == "sun")
  360. model.setValue("/root/hidden/grdcellcolor/calcol",0);
  361. if(curWeek == "mon")
  362. model.setValue("/root/hidden/grdcellcolor/calcol",1);
  363. if(curWeek == "tue")
  364. model.setValue("/root/hidden/grdcellcolor/calcol",2);
  365. if(curWeek == "wed")
  366. model.setValue("/root/hidden/grdcellcolor/calcol",3);
  367. if(curWeek == "thu")
  368. model.setValue("/root/hidden/grdcellcolor/calcol",4);
  369. if(curWeek == "fri")
  370. model.setValue("/root/hidden/grdcellcolor/calcol",5);
  371. if(curWeek == "sat")
  372. model.setValue("/root/hidden/grdcellcolor/calcol",6);
  373. for(var i = 0 ; i <grd_calendar.rows; i++ ) {
  374. if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
  375. model.setValue("/root/hidden/grdcellcolor/calrow",i);
  376. }
  377. }
  378. setCellColor(grd_calendar);
  379. }
  380. function setCellColor(gridObj) {
  381. var calRow = 0; //현재선택
  382. var calCol = 0; //현재선택
  383. var bfcalRow = 0; //전에 선택
  384. var bfcalCol = 0; //전에 선택
  385. var white = 1; //#ffffff
  386. var green = 2; //#c4e693
  387. calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
  388. calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
  389. bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
  390. bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
  391. // 1. 원래 색으로 돌려놓기
  392. if(model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
  393. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  394. if( bfcalCol < 7 )
  395. bfcalCol += 7;
  396. else
  397. bfcalCol -= 7;
  398. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  399. }
  400. else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
  401. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  402. if( bfcalCol < 7 )
  403. bfcalCol += 7;
  404. else
  405. bfcalCol -= 7;
  406. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  407. }
  408. // 2. bf 인스턴스에 선택한 원래 셀 담아두기
  409. // if(gridObj.cellStyle("background-color", calRow, calCol) == "white" ) {
  410. //
  411. // model.setValue("/root/hidden/grdcellcolor/color", "1");
  412. // }
  413. // if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
  414. //
  415. // model.setValue("/root/hidden/grdcellcolor/color", "2");
  416. // }
  417. if(gridObj.cellStyle("background-color", calRow, calCol) == "#ffffff" ) {
  418. model.setValue("/root/hidden/grdcellcolor/color", "1");
  419. }
  420. if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
  421. model.setValue("/root/hidden/grdcellcolor/color", "2");
  422. }
  423. model.setValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
  424. model.setValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
  425. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  426. if( calCol < 7 )
  427. calCol += 7;
  428. else
  429. calCol -= 7;
  430. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  431. // 현재일자 색상 표시 2011.07.20 by kya
  432. var curdate = getCurrentDate();
  433. var caldate = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month");
  434. var curday = curdate.substring(6,8);
  435. var calday = "";
  436. if ( curdate.substring(0,6) == caldate ) {
  437. for (i=0; i<gridObj.rows; i++) {
  438. for (j=0; j<gridObj.cols; j++) {
  439. calday = gridObj.valueMatrix(i,j);
  440. if (eval(curday) == calday) {
  441. calRow = i;
  442. calCol =j;
  443. // 현재일자 색상 표시
  444. gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
  445. if ( calCol < 7 ) {
  446. calCol += 7;
  447. } else {
  448. calCol -= 7;
  449. }
  450. gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
  451. }
  452. }
  453. }
  454. }
  455. }
  456. function fGetCalendar(arg){
  457. var isMonth = model.getValue("/root/hidden/calendar/month");
  458. var isYear = model.getValue("/root/hidden/calendar/year");
  459. if(model.getValue("/root/hidden/calendar/month") < arg) {
  460. var num = arg- isMonth ;
  461. var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
  462. }
  463. if(model.getValue("/root/hidden/calendar/month") > arg) {
  464. var num = isMonth - arg ;
  465. var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
  466. }
  467. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  468. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  469. model.refresh();
  470. setCalendar(isDate);
  471. }
  472. function setCalendar(dateObj) {
  473. // 그리드 초기화
  474. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  475. model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
  476. grd_calendar.refresh();
  477. dateObj.setDate(1);
  478. var startDay = dateObj.getDay();
  479. var days = dateObj.getMonthDay();
  480. var rows = Math.ceil( ( startDay + days ) / 7 );
  481. /*
  482. for( var i = 0; i < rows; i++ )
  483. grd_calendar.addRow(false);
  484. grd_calendar.rebuild();
  485. */
  486. if (rows != grd_calendar.rows - 1){
  487. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  488. for( var i = 0; i < rows; i++ ){
  489. grd_calendar.addRow(false);
  490. }
  491. }else{
  492. model.setValue("/root/hidden/calendar/weeklist/list", "");
  493. }
  494. grd_calendar.refresh();
  495. var rowIndex = grd_calendar.fixedRows;
  496. var colIndex = startDay;
  497. for( var i = 1; i <= days; i++ ) {
  498. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  499. grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0/0";
  500. colIndex++;
  501. if( colIndex == 7 ) {
  502. colIndex = 0;
  503. rowIndex++;
  504. }
  505. }
  506. model.setValue("/root/send/data/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
  507. fCalendar();
  508. setRsrvPresCondByMonth();
  509. //submit("TRAEA00901");
  510. }
  511. function fCalendar(){
  512. if (submit("TRAEA02012")){
  513. var isMonth = model.getValue("/root/hidden/calendar/month");
  514. var isYear = model.getValue("/root/hidden/calendar/year");
  515. var isDate = (isYear+isMonth+1).toDate();
  516. var startDay = isDate.getDay();
  517. for (var i = 1; i < datagrid3.rows; i++) {
  518. var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
  519. var colidx = dd.toDate().getDay();
  520. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  521. //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  522. //alert("DD==" + dd + "==colidx==" + rowidx + "==rowidx");
  523. if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "8"){
  524. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "red";
  525. }else if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "4"){
  526. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "blue";
  527. }else{
  528. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "black";
  529. }
  530. }
  531. grd_calendar.refresh();
  532. }
  533. }
  534. function setCalendarinit(dateObj){
  535. dateObj.setDate(1);
  536. var startDay = dateObj.getDay();
  537. var days = dateObj.getMonthDay();
  538. var rowIndex = grd_calendar.fixedRows;
  539. var colIndex = startDay;
  540. for( var i = 1; i <= days; i++ ) {
  541. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  542. grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0/0";
  543. colIndex++;
  544. if( colIndex == 7 ) {
  545. colIndex = 0;
  546. rowIndex++;
  547. }
  548. }
  549. }
  550. function setRsrvPresCondByMonth() {
  551. submit("TRAEA00907", false);
  552. grd_temp.refresh();
  553. var isMonth = model.getValue("/root/hidden/calendar/month");
  554. var isYear = model.getValue("/root/hidden/calendar/year");
  555. var isDate = (isYear+isMonth+1).toDate();
  556. var startDay = isDate.getDay();
  557. for (var i = 1; i < datagrid3.rows; i++) {
  558. var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
  559. var colidx = dd.toDate().getDay();
  560. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  561. //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  562. //alert("DD==" + dd + "==colidx==" + rowidx + "==rowidx");
  563. grd_calendar.cellStyle("background-color", rowidx, colidx) = "white";
  564. grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "white";
  565. }
  566. grd_calendar.refresh();
  567. //grd_calendar.rebuildStyle();
  568. for (var i = 1; i < grd_temp.rows; i++) {
  569. var dd = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/rsrvdd");
  570. var colidx = dd.toDate().getDay();
  571. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  572. grd_calendar.valueMatrix(rowidx, colidx+7) = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") + "/" + model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max") ;
  573. //예약가능일자 녹색주기
  574. //if(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") < model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max")){
  575. /*
  576. if(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") > "0"){
  577. grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
  578. grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#c4e693"; // #D9EFB9 < #C4E693 < #ABDC65
  579. }else{
  580. grd_calendar.cellStyle("background-color", rowidx, colidx) = "#ffffff";
  581. grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#ffffff"; // #D9EFB9 < #C4E693 < #ABDC65
  582. }
  583. */
  584. if(parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count")) < parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max"))){
  585. //alert("==" + parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count")) + "==" + parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max")));
  586. grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
  587. grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#c4e693"; // #D9EFB9 < #C4E693 < #ABDC65
  588. }
  589. }
  590. setCellColor(grd_calendar);
  591. model.setValue("/root/hidden/cntflag", "");
  592. chk_cntflag.refresh();
  593. datagrid1.rebuildStyle();
  594. submit("TRAEA05303");
  595. //2011.08.10 검사실별 휴검관리 조회 추가- 박재영
  596. var sdate = model.getValue("/root/send/data/rsrvdd").substr(0,6)+"01";
  597. var tdate = model.getValue("/root/send/data/rsrvdd").substr(0,6)+"31";
  598. model.setValue("/root/send/sdate",sdate);
  599. model.setValue("/root/send/tdate",tdate);
  600. submit("TRAEA00701");
  601. }
  602. ]]>
  603. </script>
  604. </xhtml:head>
  605. <xhtml:body guideline="1,1197;2,140;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  606. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  607. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:150px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">검사실별 예약현황조회</caption>
  608. </group>
  609. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  610. <group id="group2" class="input_search" style="left:0px; top:10px; width:1195px; height:40px; vertical-align:top; ">
  611. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  612. <line id="line1" style="x1:1130px; y1:6px; x2:1130px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  613. <caption id="caption1" class="search_name" style="left:5px; top:9px; width:86px; height:17px; text-align:left; background-image:../../../com/commonweb/images/search_bullet1.gif; ">지원부서 :</caption>
  614. <caption id="caption5" class="search_name" style="left:215px; top:9px; width:106px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검사/치료실 :</caption>
  615. <caption id="caption7" class="search_name" style="left:444px; top:9px; width:119px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검사자/치료사 :</caption>
  616. <select1 id="combo6" ref="/root/send/execrid" class="combo_search" appearance="minimal" editmode="inputsearch" style="left:565px; top:8px; width:70px; height:19px; ">
  617. <choices>
  618. <itemset nodeset="/root/init/cmb_info/execridlist/execr">
  619. <label ref="basecdflagdesc"/>
  620. <value ref="basecd"/>
  621. </itemset>
  622. </choices>
  623. </select1>
  624. <button id="btn_sea" class="btn1_letter2" style="left:1135px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  625. <caption>조회</caption>
  626. <script type="javascript" ev:event="DOMActivate">
  627. <![CDATA[
  628. if (btn_case1.selected == true) {
  629. model.setValue("/root/hidden/cntflag", "");
  630. chk_cntflag.refresh();
  631. datagrid1.rebuildStyle();
  632. submit("TRAEA05303");
  633. //2011.08.10 검사실별 휴검관리 조회 추가- 박재영
  634. var sdate = model.getValue("/root/send/data/rsrvdd").substr(0,6)+"01";
  635. var tdate = model.getValue("/root/send/data/rsrvdd").substr(0,6)+"31";
  636. model.setValue("/root/send/sdate",sdate);
  637. model.setValue("/root/send/tdate",sdate);
  638. submit("TRAEA00701");
  639. } else {
  640. submit("TRAEA05302");
  641. }
  642. model.refresh();
  643. ]]>
  644. </script>
  645. </button>
  646. <select1 id="cmb_excuroom" ref="/root/send/excuroomcd" class="combo_search" appearance="minimal" editmode="inputsearch" style="left:322px; top:8px; width:115px; height:19px; ">
  647. <choices>
  648. <itemset nodeset="/root/init/cmb_info/excuroomcdlist/excuroom">
  649. <label ref="basecdflagdesc"/>
  650. <value ref="basecd"/>
  651. </itemset>
  652. </choices>
  653. <script type="javascript" ev:event="xforms-value-changed">
  654. <![CDATA[
  655. if (btn_case1.selected == true) {
  656. var isMonth = model.getValue("/root/hidden/calendar/month");
  657. var isYear = model.getValue("/root/hidden/calendar/year");
  658. var isDate = (isYear+isMonth+1).toDate();
  659. setCalendarinit(isDate);
  660. setRsrvPresCondByMonth();
  661. } else {
  662. submit("TRAEA05302");
  663. }
  664. ]]>
  665. </script>
  666. </select1>
  667. <caption id="caption10" class="search_name" style="left:895px; top:9px; width:88px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">실시여부 :</caption>
  668. <select1 id="rbo_gb" ref="/root/send/unexecyn" navindex="1" appearance="full" cols="3" overflow="visible" style="left:982px; top:9px; width:145px; height:19px; border-style:none; ">
  669. <choices>
  670. <item>
  671. <label>전체</label>
  672. <value/>
  673. </item>
  674. <item>
  675. <label>미실시</label>
  676. <value>1</value>
  677. </item>
  678. <item>
  679. <label>실시</label>
  680. <value>2</value>
  681. </item>
  682. </choices>
  683. <script type="javascript" ev:event="onclick">
  684. <![CDATA[
  685. btn_sea.dispatch("DOMActivate");
  686. ]]>
  687. </script>
  688. </select1>
  689. <select1 id="combo1" ref="/root/send/suppdeptcd" appearance="minimal" style="left:92px; top:8px; width:115px; height:19px; ">
  690. <choices>
  691. <itemset nodeset="/root/init/cmb_info/suppdeptlist/suppdept">
  692. <label ref="suppdeptnm"/>
  693. <value ref="suppdeptcd"/>
  694. </itemset>
  695. </choices>
  696. <script type="javascript" ev:event="xforms-value-changed">
  697. <![CDATA[
  698. model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/send/suppdeptcd"));
  699. model.setValue("/root/send/excuroomcd", "");
  700. submit("TRAEA00902", false);
  701. submit("TRAEA00903");
  702. model.resetInstanceNode("/root/main/rsrvprescondlist/rsrvposstm");
  703. datagrid1.rebuildStyle();
  704. model.resetInstanceNode("/root/main/rsrvprescondlist/rsrvprescond");
  705. model.refresh();
  706. var isMonth = model.getValue("/root/hidden/calendar/month");
  707. var isYear = model.getValue("/root/hidden/calendar/year");
  708. var isDate = (isYear+isMonth+1).toDate();
  709. setCalendarinit(isDate);
  710. ]]>
  711. </script>
  712. </select1>
  713. <caption id="caption2" class="search_name" style="left:645px; top:9px; width:60px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구분 :</caption>
  714. <select1 id="rdo_ioflag" ref="/root/send/ioflag" navindex="1" appearance="full" cols="4" overflow="visible" style="left:710px; top:9px; width:175px; height:17px; border-style:none; ">
  715. <choices>
  716. <item>
  717. <label>외래</label>
  718. <value>O</value>
  719. </item>
  720. <item>
  721. <label>입원</label>
  722. <value>I</value>
  723. </item>
  724. <item>
  725. <label>건진</label>
  726. <value>S</value>
  727. </item>
  728. <item>
  729. <label>전체</label>
  730. <value/>
  731. </item>
  732. </choices>
  733. <script type="javascript" ev:event="onclick">
  734. <![CDATA[
  735. btn_sea.dispatch("DOMActivate");
  736. ]]>
  737. </script>
  738. </select1>
  739. </group>
  740. <button id="btn_case1" class="btn_sw" group="tab2" selected="true" style="left:0px; top:50px; width:125px; height:22px; ">
  741. <caption>월별 예약현황(정원)</caption>
  742. <toggle case="case1" ev:event="onclick"/>
  743. <script type="javascript" ev:event="DOMActivate">
  744. <![CDATA[
  745. var excuroomcd = model.getValue("/root/send/excuroomcd");
  746. model.setValue("/root/send/rsrvfromdd", "");
  747. if (excuroomcd == "" ) {
  748. model.resetInstanceNode("/root/main/rsrvprescondlist/rsrvposstm");
  749. datagrid1.rebuildStyle();
  750. model.resetInstanceNode("/root/main/rsrvprescondlist/rsrvprescond");
  751. model.refresh();
  752. var isMonth = model.getValue("/root/hidden/calendar/month");
  753. var isYear = model.getValue("/root/hidden/calendar/year");
  754. var isDate = (isYear+isMonth+1).toDate();
  755. setCalendarinit(isDate);
  756. } else {
  757. var isMonth = model.getValue("/root/hidden/calendar/month");
  758. var isYear = model.getValue("/root/hidden/calendar/year");
  759. var isDate = (isYear+isMonth+1).toDate();
  760. setCalendarinit(isDate);
  761. setRsrvPresCondByMonth();
  762. }
  763. ]]>
  764. </script>
  765. </button>
  766. <button id="btn_case2" class="btn_sw" group="tab2" style="left:125px; top:50px; width:125px; height:22px; ">
  767. <caption>검사실별예약현황</caption>
  768. <toggle case="case2" ev:event="onclick"/>
  769. <script type="javascript" ev:event="DOMActivate">
  770. <![CDATA[
  771. var rsrvfromdd = model.getValue("/root/send/rsrvfromdd");
  772. if (rsrvfromdd == "") {
  773. ipt_fromdd.value = getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD");
  774. model.setValue("/root/send/rsrvfromdd", getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD"));
  775. }
  776. model.refresh();
  777. ]]>
  778. </script>
  779. </button>
  780. <button id="button1" class="btn2_letter9" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1076px; top:75px; width:119px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  781. <caption>일일예약리스트출력</caption>
  782. <script type="javascript" ev:event="DOMActivate">
  783. <![CDATA[
  784. model.setValue("/root/send/reqdata/rsrvfromdd", model.getValue("/root/send/rsrvfromdd"));
  785. model.setValue("/root/send/reqdata/rsrvtodd", model.getValue("/root/send/rsrvtodd"));
  786. model.setValue("/root/send/reqdata/suppdeptcd", model.getValue("/root/send/suppdeptcd"));
  787. model.setValue("/root/send/reqdata/excuroomcd", model.getValue("/root/send/excuroomcd"));
  788. model.setValue("/root/send/reqdata/execrid", model.getValue("/root/send/execrid"));
  789. model.setValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  790. var _room = combo1.label
  791. if(cmb_excuroom.label != '' && cmb_excuroom.label.length >1)
  792. { _room += '('+ cmb_excuroom.label +')'; }
  793. model.setValue("/root/send/reqdata/room", _room);
  794. var printgubn = model.getValue("/root/send/printgubn");
  795. if (printgubn == "1") {
  796. exeReportPreview("RPAEA00910", "XML", "/root/send/reqdata");
  797. } else if (printgubn == "2"){
  798. exeReportPreview("RPAEA00911", "XML", "/root/send/reqdata");
  799. } else {
  800. exeReportPreview("RPAEA00912", "XML", "/root/send/reqdata");
  801. }
  802. ]]>
  803. </script>
  804. </button>
  805. </group>
  806. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  807. <button id="btn_reset" class="btn4_letter3" style="left:1067px; top:3px; width:68px; height:22px; ">
  808. <caption>초기화</caption>
  809. <script type="javascript" ev:event="DOMActivate">
  810. <![CDATA[
  811. model.reset();
  812. ]]>
  813. </script>
  814. </button>
  815. <button id="btn_cls" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  816. <caption>닫기</caption>
  817. <close ev:event="DOMActivate"/>
  818. </button>
  819. </group>
  820. <switch id="switch1" style="left:0px; top:85px; width:1195px; height:645px; ">
  821. <case id="case1" selected="true">
  822. <datagrid id="grd_rsrvposstm" nodeset="/root/main/rsrvprescondlist/rsrvposstm" caption="시간^현황^가용" colsep="^" colwidth="41, 33, 32" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:394px; top:29px; width:144px; height:606px; ">
  823. <col ref="rsrvtm" format="hh:nn" style="text-align:center; "/>
  824. <col ref="count" style="text-align:center; "/>
  825. <col ref="max" style="text-align:center; "/>
  826. </datagrid>
  827. <caption id="caption3" class="tit_2" style="left:540px; top:10px; width:85px; height:13px; ">예약내역</caption>
  828. <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="56, 55, 55, 55, 55, 56, 56" dataheight="20" extendlastcol="noscroll" focuscolor="transparent" rowsep="|" mergecellsfixedrows="bycolrec" style="left:0px; top:85px; width:390px; height:297px; ">
  829. <row>
  830. <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
  831. <col ref="mon" style="border-bottom-width:0px; "/>
  832. <col ref="tue" style="border-bottom-width:0px; "/>
  833. <col ref="wed" style="border-bottom-width:0px; "/>
  834. <col ref="thu" style="border-bottom-width:0px; "/>
  835. <col ref="fri" style="border-bottom-width:0px; "/>
  836. <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
  837. </row>
  838. <row>
  839. <col ref="sun_memo" style="border-top-width:0px; "/>
  840. <col ref="mon_memo" style="border-top-width:0px; "/>
  841. <col ref="tue_memo" style="border-top-width:0px; "/>
  842. <col ref="wed_memo" style="border-top-width:0px; "/>
  843. <col ref="thu_memo" style="border-top-width:0px; "/>
  844. <col ref="fri_memo" style="border-top-width:0px; "/>
  845. <col ref="sat_memo" style="border-top-width:0px; "/>
  846. </row>
  847. <script type="javascript" ev:event="onclick">
  848. <![CDATA[
  849. if(grd_calendar.row != 0 ) {
  850. model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
  851. model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
  852. setCellColor(grd_calendar);
  853. getRsrvPossTm(grd_calendar);
  854. var curDate = getCurrentDate().substr(0,8); //오늘날짜
  855. var rsrvdd =model.getValue("/root/send/data/rsrvdd"); //선택일자
  856. }
  857. ]]>
  858. </script>
  859. </multilinegrid>
  860. <group id="group4" scroll="auto" style="left:0px; top:28px; width:394px; height:55px; ">
  861. <shape id="rectangle2" class="calendar_header" appearance="rectangle" style="left:0px; top:3px; width:390px; height:52px; "/>
  862. <button id="button7" class="icon_month" style="left:20px; top:25px; width:27px; height:27px; ">
  863. <caption>1</caption>
  864. <script type="javascript" ev:event="DOMActivate">
  865. <![CDATA[
  866. if(opt_month.value!== "01") {
  867. fGetCalendar("01");
  868. }
  869. ]]>
  870. </script>
  871. </button>
  872. <button id="button8" class="icon_month" style="left:50px; top:25px; width:27px; height:27px; ">
  873. <caption>2</caption>
  874. <script type="javascript" ev:event="DOMActivate">
  875. <![CDATA[
  876. if(opt_month.value!== "02") {
  877. fGetCalendar("02");
  878. }
  879. ]]>
  880. </script>
  881. </button>
  882. <button id="button9" class="icon_month" style="left:80px; top:25px; width:27px; height:27px; ">
  883. <caption>3</caption>
  884. <script type="javascript" ev:event="DOMActivate">
  885. <![CDATA[
  886. if(opt_month.value!== "03") {
  887. fGetCalendar("03");
  888. }
  889. ]]>
  890. </script>
  891. </button>
  892. <button id="button10" class="icon_month" style="left:110px; top:25px; width:27px; height:27px; ">
  893. <caption>4</caption>
  894. <script type="javascript" ev:event="DOMActivate">
  895. <![CDATA[
  896. if(opt_month.value!== "04") {
  897. fGetCalendar("04");
  898. }
  899. ]]>
  900. </script>
  901. </button>
  902. <button id="button11" class="icon_month" style="left:140px; top:25px; width:27px; height:27px; ">
  903. <caption>5</caption>
  904. <script type="javascript" ev:event="DOMActivate">
  905. <![CDATA[
  906. if(opt_month.value!== "05") {
  907. fGetCalendar("05");
  908. }
  909. ]]>
  910. </script>
  911. </button>
  912. <button id="button12" class="icon_month" style="left:170px; top:25px; width:27px; height:27px; ">
  913. <caption>6</caption>
  914. <script type="javascript" ev:event="DOMActivate">
  915. <![CDATA[
  916. if(opt_month.value!== "06") {
  917. fGetCalendar("06");
  918. }
  919. ]]>
  920. </script>
  921. </button>
  922. <button id="button13" class="icon_month" style="left:200px; top:25px; width:27px; height:27px; ">
  923. <caption>7</caption>
  924. <script type="javascript" ev:event="DOMActivate">
  925. <![CDATA[
  926. if(opt_month.value!== "07") {
  927. fGetCalendar("07");
  928. }
  929. ]]>
  930. </script>
  931. </button>
  932. <button id="button14" class="icon_month" style="left:230px; top:25px; width:27px; height:27px; ">
  933. <caption>8</caption>
  934. <script type="javascript" ev:event="DOMActivate">
  935. <![CDATA[
  936. if(opt_month.value!== "08") {
  937. fGetCalendar("08");
  938. }
  939. ]]>
  940. </script>
  941. </button>
  942. <button id="button18" class="icon_month" style="left:260px; top:25px; width:27px; height:27px; ">
  943. <caption>9</caption>
  944. <script type="javascript" ev:event="DOMActivate">
  945. <![CDATA[
  946. if(opt_month.value!== "09") {
  947. fGetCalendar("09");
  948. }
  949. ]]>
  950. </script>
  951. </button>
  952. <button id="button19" class="icon_month" style="left:290px; top:25px; width:27px; height:27px; ">
  953. <caption>10</caption>
  954. <script type="javascript" ev:event="DOMActivate">
  955. <![CDATA[
  956. if(opt_month.value!== "10") {
  957. fGetCalendar("10");
  958. }
  959. ]]>
  960. </script>
  961. </button>
  962. <button id="button20" class="icon_month" style="left:320px; top:25px; width:27px; height:27px; ">
  963. <caption>11</caption>
  964. <script type="javascript" ev:event="DOMActivate">
  965. <![CDATA[
  966. if(opt_month.value!== "11") {
  967. fGetCalendar("11");
  968. }
  969. ]]>
  970. </script>
  971. </button>
  972. <button id="button21" class="icon_month" style="left:350px; top:25px; width:27px; height:27px; ">
  973. <caption>12</caption>
  974. <script type="javascript" ev:event="DOMActivate">
  975. <![CDATA[
  976. if(opt_month.value!== "12") {
  977. fGetCalendar("12");
  978. }
  979. ]]>
  980. </script>
  981. </button>
  982. <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:200px; top:2px; width:20px; height:19px; "/>
  983. <caption id="caption24" class="calendar_output" style="left:178px; top:2px; width:20px; height:19px; ">년</caption>
  984. <caption id="caption25" class="calendar_output" style="left:220px; top:2px; width:20px; height:19px; ">월</caption>
  985. <button id="button31" class="icon_next_year" style="left:270px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_y.gif; ">
  986. <caption/>
  987. <script type="javascript" ev:event="DOMActivate">
  988. <![CDATA[
  989. var isMonth = model.getValue("/root/hidden/calendar/month");
  990. var isYear = model.getValue("/root/hidden/calendar/year");
  991. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  992. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  993. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  994. model.refresh();
  995. setCalendar(isDate);
  996. // getCurerPresCond();
  997. ]]>
  998. </script>
  999. </button>
  1000. <button id="button33" class="icon_pre_month" visibility="visible" style="left:121px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_m.gif; ">
  1001. <caption/>
  1002. <script type="javascript" ev:event="DOMActivate">
  1003. <![CDATA[
  1004. var isMonth = model.getValue("/root/hidden/calendar/month");
  1005. var isYear = model.getValue("/root/hidden/calendar/year");
  1006. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  1007. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  1008. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  1009. model.refresh();
  1010. /*
  1011. if(model.getValue("/root/send/excuroomcd") == "") {
  1012. messageBox("치료실","C002");
  1013. return;
  1014. }
  1015. */
  1016. setCalendar(isDate);
  1017. ]]>
  1018. </script>
  1019. </button>
  1020. <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:148px; top:2px; width:30px; height:19px; "/>
  1021. <button id="button35" class="icon_next_month" visibility="visible" style="left:246px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_m.gif; ">
  1022. <caption/>
  1023. <script type="javascript" ev:event="DOMActivate">
  1024. <![CDATA[
  1025. var isMonth = model.getValue("/root/hidden/calendar/month");
  1026. var isYear = model.getValue("/root/hidden/calendar/year");
  1027. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  1028. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  1029. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  1030. model.refresh();
  1031. /*
  1032. if(model.getValue("/root/send/excuroomcd") == "") {
  1033. messageBox("치료실","C002");
  1034. return;
  1035. }
  1036. */
  1037. setCalendar(isDate);
  1038. ]]>
  1039. </script>
  1040. </button>
  1041. <button id="button36" class="icon_pre_year" style="left:98px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_y.gif; ">
  1042. <caption/>
  1043. <script type="javascript" ev:event="DOMActivate">
  1044. <![CDATA[
  1045. var isMonth = model.getValue("/root/hidden/calendar/month");
  1046. var isYear = model.getValue("/root/hidden/calendar/year");
  1047. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  1048. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  1049. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  1050. model.refresh();
  1051. setCalendar(isDate);
  1052. // getCurerPresCond();
  1053. ]]>
  1054. </script>
  1055. </button>
  1056. </group>
  1057. <caption id="caption15" class="tit_2" style="left:394px; top:10px; width:85px; height:13px; ">예약시간</caption>
  1058. <line id="line3" class="line_1" style="x1:540px; y1:25px; x2:1190px; y2:25px; "/>
  1059. <line id="line6" class="line_1" style="x1:394px; y1:25px; x2:538px; y2:25px; "/>
  1060. <datagrid id="datagrid1" nodeset="/root/main/rsrvprescondlist/rsrvprescond" caption="예약일시^등록번호^환자명^성별/나이^처방코드^급비^처방명^진료과(진료의)^처방일시^지정의^병동^병실^예약사항^처방전달사항^임상소견^입원외래구분^처방상태^caption1^caption2^caption3^예약자^입력일시^외래진료예약일" colsep="^" colwidth="106, 65, 58, 62, 77, 63, 280, 124, 105, 54, 62, 71, 129, 200, 200, 82, 85, 19, 12, 16, 60, 120,110" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:540px; top:29px; width:650px; height:606px; ">
  1061. <col ref="rsrvtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  1062. <col ref="pid" style="text-align:center; "/>
  1063. <col ref="hngnm"/>
  1064. <col ref="age" style="text-align:center; "/>
  1065. <col ref="prcpcd"/>
  1066. <col ref="payflagnm"/>
  1067. <col ref="prcpnm"/>
  1068. <col ref="usernm"/>
  1069. <col ref="prcpdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  1070. <col ref="specdrnm"/>
  1071. <col ref="wardcd"/>
  1072. <col ref="roomcd"/>
  1073. <col ref="rsrvrem"/>
  1074. <col ref="prcpdelivefact"/>
  1075. <col ref="clinccmtcnts"/>
  1076. <col disabled="true" ref="prcpgenrflag" type="combo">
  1077. <choices>
  1078. <itemset nodeset="/root/init2/cmb_info/prcpgenrflag/M0010">
  1079. <label ref="cdnm"/>
  1080. <value ref="cdid"/>
  1081. </itemset>
  1082. </choices>
  1083. </col>
  1084. <col disabled="true" ref="execprcpstatcd" type="combo">
  1085. <choices>
  1086. <itemset nodeset="/root/init2/cmb_info/initexecprcpstatcd/M0011">
  1087. <label ref="cdnm"/>
  1088. <value ref="cdid"/>
  1089. </itemset>
  1090. </choices>
  1091. </col>
  1092. <col ref="roomcd" visibility="hidden"/>
  1093. <col ref="fromdd" visibility="hidden"/>
  1094. <col ref="todd" visibility="hidden"/>
  1095. <col ref="updnm"/>
  1096. <col ref="upddate"/>
  1097. <col ref="orddd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  1098. <script type="javascript" ev:event="onaftersort">
  1099. <![CDATA[
  1100. datagrid1.gridToInstance();
  1101. ]]>
  1102. </script>
  1103. <script type="javascript" ev:event="ondblclick">
  1104. <![CDATA[
  1105. if (!datagrid1.isCell(event.target)) {
  1106. return;
  1107. }
  1108. if (model.getValue("/root/main/rsrvprescondlist/rsrvprescond[" + datagrid1.row + "]/hngnm") == "") {
  1109. return;
  1110. }
  1111. var pid = model.getValue("/root/main/rsrvprescondlist/rsrvprescond[" + datagrid1.row + "]/pid");
  1112. var main = getMainViewer();
  1113. if (main.document.title == "통합예약관리") {
  1114. main.window.model.makeValue("/root/send/data/srchpid", pid);
  1115. main.window.javascript.navigate("SMAEA02000", "", "", "", "SMAEA02000", "/root/send/data/srchpid", "/root/send/data/srchpid");
  1116. } else if (main.document.title == "검사예약") {
  1117. main.window.model.setValue("/root/send/data/pid", pid);
  1118. setGlobalVariable("menuparam", "T");
  1119. main.window.javascript.navigate("SMPEA00100", "", "", "", "SMPEA00100", "root/send/data/pid", "root/send/data/pid");
  1120. }
  1121. ]]>
  1122. </script>
  1123. </datagrid>
  1124. <datagrid id="datagrid3" nodeset="/root/init/calenlist/calendinfo" visibility="hidden" caption="caption1^caption2" colsep="^" colwidth="100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:400px; top:420px; width:220px; height:150px; ">
  1125. <col ref="basedd"/>
  1126. <col ref="dutflag"/>
  1127. </datagrid>
  1128. <datagrid id="grd_temp" nodeset="/root/init/curerprescondlist/rsrvcalendar" visibility="hidden" caption="일자(dd)^가용현황^max^caption3" colsep="^" colwidth="76, 62, 32" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:630px; top:415px; width:175px; height:170px; ">
  1129. <col ref="rsrvdd"/>
  1130. <col ref="count"/>
  1131. <col ref="max"/>
  1132. </datagrid>
  1133. <caption id="caption8" class="tit_2" style="left:0px; top:10px; width:85px; height:14px; ">예약현황</caption>
  1134. <line id="line5" class="line_1" style="x1:0px; y1:25px; x2:390px; y2:25px; "/>
  1135. <caption id="caption11" class="tit_2" style="left:5px; top:400px; width:157px; height:14px; ">검사실별 휴검관리 조회</caption>
  1136. <line id="line2" class="line_1" style="x1:0px; y1:415px; x2:390px; y2:415px; "/>
  1137. <datagrid id="datagrid4" nodeset="/root/main/rsrvupdtinfo/rsrvupdt" caption="시작일시^시작일시^종료일시^종료일시^사유^최종변경자^최종변경일시^검사실코드^지원부서코드^입원외래구분" colsep="^" colwidth="70, 40, 70, 40, 155, 80, 116, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" navindex="8" style="left:0px; top:420px; width:390px; height:215px; ">
  1138. <col disabled="true" ref="rsrvupdtfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1139. <col disabled="true" ref="rsrvupdtfromtm" format="hh:nn" style="text-align:center; "/>
  1140. <col disabled="true" ref="rsrvupdttodd" format="yyyy-mm-dd" style="text-align:center; "/>
  1141. <col disabled="true" ref="rsrvupdttotm" format="hh:nn" style="text-align:center; "/>
  1142. <col ref="updtresndesc"/>
  1143. <col ref="lastupdtrid" style="text-align:center; "/>
  1144. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1145. <col ref="excuroomcd" visibility="hidden"/>
  1146. <col ref="suppdeptcd" visibility="hidden"/>
  1147. <col ref="ioflag" visibility="hidden"/>
  1148. <script type="javascript" ev:event="DOMFocusIn">
  1149. <![CDATA[
  1150. checkKeyColumn("datagrid2");
  1151. ]]>
  1152. </script>
  1153. </datagrid>
  1154. <select id="chk_cntflag" ref="/root/hidden/cntflag" overflow="visible" appearance="full" style="left:625px; top:8px; width:140px; height:15px; border-style:none; ">
  1155. <choices>
  1156. <item>
  1157. <label>시간별 예약 건수 표시</label>
  1158. <value>Y</value>
  1159. </item>
  1160. </choices>
  1161. <script type="javascript" ev:event="xforms-value-changed">
  1162. <![CDATA[
  1163. var mPath = "/root/main/rsrvprescondlist/rsrvprescond";
  1164. var cnt = instance1.selectNodes(mPath).length;
  1165. if (cnt < 1) {
  1166. return;
  1167. }
  1168. datagrid1.rebuildStyle();
  1169. var hPath = "/root/hidden/rsrvlist/rsrvprescond";
  1170. if (model.getValue("/root/hidden/cntflag") == "Y") {
  1171. // 원본 노드 백업
  1172. model.removenode("/root/temp/rsrvprescondlist");
  1173. model.makeNode("/root/temp/rsrvprescondlist");
  1174. model.copyNode("/root/temp/rsrvprescondlist", "/root/main/rsrvprescondlist");
  1175. // 작업 노드 저장
  1176. model.removenode("/root/hidden/rsrvlist");
  1177. model.makeNode("/root/hidden/rsrvlist");
  1178. model.copyNode("/root/hidden/rsrvlist", "/root/main/rsrvprescondlist");
  1179. sortNodeList(hPath, "rsrvtm", "asc");
  1180. model.removenode("/root/main/rsrvprescondlist");
  1181. model.makeNode("/root/main/rsrvprescondlist");
  1182. var hCnt = 1;
  1183. var addCnt = 1;
  1184. for (var i = 1; i <= cnt; i++) {
  1185. model.duplicate("/root/main/rsrvprescondlist", hPath + "[" + i + "]");
  1186. var hour = model.getValue(hPath + "[" + i + "]/rsrvtm").substr(8, 2);
  1187. var nextHour = "";
  1188. if (i < cnt) {
  1189. nextHour = model.getValue(hPath + "[" + ( i + 1 ) + "]/rsrvtm").substr(8, 2);
  1190. } else {
  1191. nextHour = parseInt(hour) + 1;
  1192. nextHour = nextHour.length == 1 ? "0" + nextHour : String(nextHour);
  1193. }
  1194. if (hour != nextHour) {
  1195. var node = instance1.selectSingleNode(hPath + "[" + i + "]");
  1196. var nodeList = node.childNodes;
  1197. while (n = nodeList.nextNode()) {
  1198. model.makeValue(mPath + "[" + ( i + addCnt ) + "]/" + n.nodeName, "");
  1199. }
  1200. model.setValue(mPath + "[" + ( i + addCnt ) + "]/rsrvtm", hour + ":00 ~ " + nextHour + ":00");
  1201. model.setValue(mPath + "[" + ( i + addCnt ) + "]/pid", hCnt);
  1202. addCnt++;
  1203. hCnt = 1;
  1204. } else {
  1205. hCnt++;
  1206. }
  1207. }
  1208. datagrid1.refresh();
  1209. for (var i = 1; i <= datagrid1.rows; i++) {
  1210. if (model.getValue(mPath + "[" + i + "]/hngnm") == "") {
  1211. datagrid1.rowStyle(i, "all", "background-color") = "#ffff00";
  1212. datagrid1.rowStyle(i, "all", "font-weight") = "bold";
  1213. }
  1214. }
  1215. } else {
  1216. model.copyNode("/root/main/rsrvprescondlist", "/root/temp/rsrvprescondlist");
  1217. datagrid1.refresh();
  1218. }
  1219. ]]>
  1220. </script>
  1221. </select>
  1222. <button id="btn_excel" class="btn2_letter4" style="left:1126px; top:5px; width:64px; height:19px; ">
  1223. <caption>엑셀저장</caption>
  1224. <script type="javascript" ev:event="DOMActivate">
  1225. <![CDATA[
  1226. var filename = "검사실별 예약 현황_" + combo1.label + "_" + model.getValue("/root/send/data/rsrvdd");
  1227. filename = window.fileDialog("save", ",", false, filename, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1228. if (filename == "") {
  1229. messageBox("파일명을 지정해 주십시오.", "C999");
  1230. return;
  1231. }
  1232. datagrid1.saveExcel(filename, "sheetname:예약내역;colhiddenextend:true;rowhiddenextend:false;");
  1233. messageBox("엑셀 저장이 완료되었습니다.", "I999");
  1234. ]]>
  1235. </script>
  1236. </button>
  1237. </case>
  1238. <case id="case2">
  1239. <datagrid id="datagrid2" nodeset="/root/main/rsrvprescondlist2/rsrvprescond" caption="예약일시^등록번호^환자명^성별/나이^핸드폰^처방코드^급/비급^처방명^진료과(진료의)^지정의^처방일시^예약사항^처방전달사항^임상소견^입원외래구분^처방상태^caption1^caption2^caption3^예약자^입력일시" colsep="^" colwidth="106, 65, 65, 65, 106, 100, 59, 268, 124, 51, 105, 129, 200, 200, 82, 85, 19, 12, 16, 60, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:35px; width:1190px; height:605px; ">
  1240. <col ref="rsrvtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  1241. <col ref="pid"/>
  1242. <col ref="hngnm"/>
  1243. <col ref="age" style="text-align:center; "/>
  1244. <col ref="mpphontel" style="text-align:center; "/>
  1245. <col ref="prcpcd"/>
  1246. <col ref="payflagnm"/>
  1247. <col ref="prcpnm"/>
  1248. <col ref="usernm"/>
  1249. <col ref="specdrnm"/>
  1250. <col ref="prcpdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  1251. <col ref="rsrvrem"/>
  1252. <col ref="prcpdelivefact"/>
  1253. <col ref="clinccmtcnts"/>
  1254. <col disabled="true" ref="prcpgenrflag" type="combo">
  1255. <choices>
  1256. <itemset nodeset="/root/init2/cmb_info/prcpgenrflag/M0010">
  1257. <label ref="cdnm"/>
  1258. <value ref="cdid"/>
  1259. </itemset>
  1260. </choices>
  1261. </col>
  1262. <col disabled="true" ref="execprcpstatcd" type="combo">
  1263. <choices>
  1264. <itemset nodeset="/root/init2/cmb_info/initexecprcpstatcd/M0011">
  1265. <label ref="cdnm"/>
  1266. <value ref="cdid"/>
  1267. </itemset>
  1268. </choices>
  1269. </col>
  1270. <col ref="roomcd" visibility="hidden"/>
  1271. <col ref="fromdd" visibility="hidden"/>
  1272. <col ref="todd" visibility="hidden"/>
  1273. <col ref="updnm"/>
  1274. <col ref="upddate"/>
  1275. <script type="javascript" ev:event="onaftersort">
  1276. <![CDATA[
  1277. datagrid1.gridToInstance();
  1278. ]]>
  1279. </script>
  1280. <script type="javascript" ev:event="ondblclick">
  1281. <![CDATA[
  1282. if (!datagrid2.isCell(event.target)) {
  1283. return;
  1284. }
  1285. var pid = model.getValue("/root/main/rsrvprescondlist2/rsrvprescond[" + datagrid2.row + "]/pid");
  1286. var main = getMainViewer();
  1287. if (main.document.title == "통합예약관리") {
  1288. main.window.model.makeValue("/root/send/data/srchpid", pid);
  1289. main.window.javascript.navigate("SMAEA02000", "", "", "", "SMAEA02000", "/root/send/data/srchpid", "/root/send/data/srchpid");
  1290. } else if (main.document.title == "검사예약") {
  1291. main.window.model.setValue("/root/send/data/pid", pid);
  1292. main.window.javascript.navigate("SMPEA00100", "", "", "", "SMPEA00100", "/root/send/data/pid", "/root/send/data/pid");
  1293. }
  1294. ]]>
  1295. </script>
  1296. </datagrid>
  1297. <line id="line4" class="line_1" style="x1:0px; y1:31px; x2:1190px; y2:31px; "/>
  1298. <input id="ipt_fromdd" ref="/root/send/rsrvfromdd" class="input_default" visibility="visible" inputtype="date" style="left:95px; top:5px; width:90px; height:19px; "/>
  1299. <input id="ipt_todd" ref="/root/send/rsrvtodd" class="input_default" visibility="visible" inputtype="date" style="left:210px; top:5px; width:90px; height:19px; "/>
  1300. <caption id="caption4" style="left:190px; top:5px; width:15px; height:19px; text-align:center; ">~</caption>
  1301. <caption id="caption13" class="search_name" style="left:325px; top:5px; width:86px; height:17px; text-align:left; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검사코드 :</caption>
  1302. <caption id="caption14" class="search_name" style="left:545px; top:5px; width:86px; height:17px; text-align:left; background-image:../../../com/commonweb/images/search_bullet1.gif; ">예약자 :</caption>
  1303. <input id="ipt_prcpcd" ref="/root/send/prcpcd" style="left:415px; top:5px; width:120px; height:19px; "/>
  1304. <select1 id="cmb_rsrvid" ref="/root/send/rsrvid" appearance="minimal" style="left:620px; top:5px; width:90px; height:19px; ">
  1305. <choices>
  1306. <itemset nodeset="/root/init/cmb_info/rsrvidinfo/T0001">
  1307. <label ref="cdnm"/>
  1308. <value ref="cdid"/>
  1309. </itemset>
  1310. </choices>
  1311. </select1>
  1312. <caption id="caption9" class="search_name" style="left:5px; top:5px; width:90px; height:17px; ">예약일자 :</caption>
  1313. </case>
  1314. </switch>
  1315. </xhtml:body>
  1316. </xhtml:html>