SMAEA00900_예약현황조회.xrw 59 KB

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