SMAEA03600_연속검사예약(핵체내).xrw 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196
  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. <xhtml:title>예약관리(핵체내)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <exculist>
  11. <mainordlist5>
  12. <check/>
  13. <pid/>
  14. <patnm/>
  15. <prcpnm/>
  16. <srchrsrvtm/>
  17. <prcpdd/>
  18. <rgstdepthngnm/>
  19. <excuroomcd/>
  20. <rsrvflagyn/>
  21. <rcptyn/>
  22. <prcpdd/>
  23. <orddepthngnm/>
  24. <orddrnm/>
  25. <calcscorcd/>
  26. <excuroom/>
  27. <prcphopedd/>
  28. <excutm/>
  29. <endtime/>
  30. <rsrvrem/>
  31. <excuroomnm/>
  32. <genrflag/>
  33. <execprcpuniqno/>
  34. <execprcpstatcd/>
  35. <prcpkindcd/>
  36. <excupartcd/>
  37. <indd/>
  38. <actorddd/>
  39. <orddrid/>
  40. <execrid/>
  41. <suppdeptcd/>
  42. <cnclrescd/>
  43. <prcpdelivefact/>
  44. <rsrvplceflag/>
  45. <rsrvexcupossyn/>
  46. <rsrvexmptmplcd/>
  47. <tmpldata/>
  48. <rsrvflag/>
  49. <rsrvdt/>
  50. </mainordlist5>
  51. </exculist>
  52. <rsrvposstmlist>
  53. <rsrvposstm>
  54. <rsrvtm/>
  55. <count/>
  56. <max/>
  57. </rsrvposstm>
  58. <rsrvlistam>
  59. <srchrsrvtm/>
  60. <pid/>
  61. <hngnm/>
  62. <prcpnm/>
  63. </rsrvlistam>
  64. <rsrvlistpm>
  65. <srchrsrvtm/>
  66. <pid/>
  67. <hngnm/>
  68. <prcpnm/>
  69. </rsrvlistpm>
  70. </rsrvposstmlist>
  71. <ordlist>
  72. <patinfo>
  73. <patinfolist/>
  74. </patinfo>
  75. <popupendflag/>
  76. </ordlist>
  77. <subordlist>
  78. <subordlist4>
  79. <memodd/>
  80. <memorem/>
  81. </subordlist4>
  82. </subordlist>
  83. </main>
  84. <send>
  85. <data>
  86. <cmb_info>
  87. <initexecroom>
  88. <excuroomcdid/>
  89. </initexecroom>
  90. </cmb_info>
  91. <srchpid/>
  92. <hngnm/>
  93. <acptlistflag/>
  94. <orddd/>
  95. <rsrvdd/>
  96. <rsrvmm/>
  97. <rsrvss/>
  98. <excuroomcd/>
  99. <suppdeptcd/>
  100. <rsrvdate/>
  101. <srchdate1/>
  102. <srchdate2/>
  103. <largeclass/>
  104. <excuroomnm/>
  105. </data>
  106. <globalinstance>
  107. <instance1/>
  108. </globalinstance>
  109. <req>
  110. <cnclcd/>
  111. <flag/>
  112. <data/>
  113. </req>
  114. <ampmgubn>0</ampmgubn>
  115. <memo>
  116. <memodt1/>
  117. <memodt2/>
  118. <basesuppdeptcd/>
  119. </memo>
  120. </send>
  121. <hidden>
  122. <calendar>
  123. <year/>
  124. <month/>
  125. <weeklist>
  126. <list>
  127. <sun/>
  128. <mon/>
  129. <tue/>
  130. <wed/>
  131. <thu/>
  132. <fri/>
  133. <sat/>
  134. <sun_memo/>
  135. <mon_memo/>
  136. <tue_memo/>
  137. <wed_memo/>
  138. <thu_memo/>
  139. <fri_memo/>
  140. <sat_memo/>
  141. </list>
  142. </weeklist>
  143. <dd/>
  144. </calendar>
  145. <grdcellcolor>
  146. <calrow/>
  147. <calcol/>
  148. <bfcalrow/>
  149. <bfcalcol/>
  150. <color/>
  151. </grdcellcolor>
  152. <cnclcdlist>
  153. <cnclcd/>
  154. </cnclcdlist>
  155. <beforersrvtm>
  156. <rsrvdtlist>
  157. <before/>
  158. </rsrvdtlist>
  159. </beforersrvtm>
  160. <con>
  161. <date/>
  162. </con>
  163. <chkprint/>
  164. <pseursrvinfo>
  165. <seq/>
  166. <suppdeptcd/>
  167. <instcd/>
  168. </pseursrvinfo>
  169. <updtflag/>
  170. <popupmenu>
  171. <seq/>
  172. </popupmenu>
  173. </hidden>
  174. <init>
  175. <curerprescondlist>
  176. <curerprescond>
  177. <userid/>
  178. <usernm/>
  179. </curerprescond>
  180. <rsrvcalendar>
  181. <rsrvdd/>
  182. <count/>
  183. <max/>
  184. </rsrvcalendar>
  185. </curerprescondlist>
  186. <windowloadinstance>
  187. </windowloadinstance>
  188. <cmb_info>
  189. <initexcuroomgrp>
  190. <excuroomgrpcdid/>
  191. <excuroomgrpcdnm/>
  192. </initexcuroomgrp>
  193. </cmb_info>
  194. <M0010list>
  195. <M0010>
  196. <cdid/>
  197. <cdnm/>
  198. </M0010>
  199. </M0010list>
  200. </init>
  201. </root>
  202. </instance>
  203. <script type="javascript" ev:event="xforms-ready">
  204. <![CDATA[
  205. // 초기화
  206. fInitialize();
  207. ]]>
  208. </script>
  209. <submission id="TRAEA01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  210. <submission id="TRAEA01412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/memo" replace="instance" resultref="/root/main/subordlist"/>
  211. <submission id="TRAEA01416" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvposstmlist"/>
  212. <submission id="TRAEA02011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
  213. <submission id="TXAEA02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp"/>
  214. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  215. <submission id="TRAEA03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/calendarinfo"/>
  216. <script type="javascript" ev:event="xforms-model-destruct">
  217. <![CDATA[
  218. if (checkOpener()) {
  219. var updtflag = model.getValue("/root/hidden/updtflag");
  220. if (updtflag == "Y") {
  221. opener.javascript.fGetExamCurePrcpPopList();
  222. }
  223. }
  224. window.close();
  225. ]]>
  226. </script>
  227. </model>
  228. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  229. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  230. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  231. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  232. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  233. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  234. <script type="javascript">
  235. <![CDATA[
  236. // 초기화
  237. function fInitialize() {
  238. // 부서 조회
  239. aezfSetSuppDeptcd();
  240. zbcfGetCodeList( new Array("M0010"), new Array("/root/init/M0010list") , false);
  241. model.setValue("/root/send/data/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  242. model.setValue("/root/send/memo/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  243. submit("TRAEA01401");
  244. model.makeValue("/root/send/data/srchpid", model.getValue("/root/main/exculist/mainordlist5/pid"));
  245. model.makeValue("/root/main/ordlist/patinfolist/pid", model.getValue("/root/main/exculist/mainordlist5/pid"));
  246. model.makeValue("/root/send/data/excuroomcd", model.getValue("/root/main/exculist/mainordlist5/excuroomcd"));
  247. model.makeValue("/root/send/data/excuroomgrp", model.getValue("/root/main/exculist/mainordlist5/excuroomgrpcdid"));
  248. initCalendar();
  249. setCurrentDate();
  250. //처방선택시 자동으로 달력에서 오늘날짜 onclick 이벤트 처리
  251. getRsrvPossTm(grd_calendar);
  252. }
  253. /*
  254. */
  255. function initCalendar() {
  256. var curDate = getCurrentDate().toDate();
  257. model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
  258. model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
  259. model.refresh();
  260. setCalendar(curDate);
  261. }
  262. /* @group : 치료예약(재활)
  263. * @ver : 2007.05.18
  264. * @by : 이선경
  265. * @-----------------------------------
  266. * @type : function
  267. * @access : public
  268. * @desc : 달력에 일자별로 가용현황을 보여준다.
  269. */
  270. function setRsrvPresCondByMonth(dateObj) {
  271. submit("TRAEA02011");
  272. var isMonth = model.getValue("/root/hidden/calendar/month");
  273. var isYear = model.getValue("/root/hidden/calendar/year");
  274. // var isDate = (isYear+isMonth+1).toDate();
  275. // var startDay = isDate.getDay();
  276. var startDay = dateObj.getDay();
  277. for (var i = 1; i < grd_temp.rows; i++) {
  278. var dd = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/rsrvdd");
  279. var colidx = dd.toDate().getDay();
  280. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  281. grd_calendar.valueMatrix(rowidx, colidx+7) = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") + "/" + model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max") ;
  282. }
  283. }
  284. function fGetHospitalCalendar(){
  285. var dd = (model.getValue("/root/hidden/calendar/year")).concat(model.getValue("/root/hidden/calendar/month"));
  286. model.makeNode("/root/send/date");
  287. model.setValue("/root/send/date",dd);
  288. if (submit("TRAEA03203") == true) return true;
  289. else return false;
  290. }
  291. //해당 일자의 병원 일정 정보를 얻어 온다
  292. function fGetCalendarMemo( i )
  293. {
  294. var holiflag = "";
  295. var holinm = "";
  296. holiflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/holiflag");
  297. holinm = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/holinm");
  298. if( holinm == '-' ){
  299. holinm = "";
  300. }
  301. return holinm;
  302. }
  303. //그리드의 폰트 색상을 변경한다.
  304. function fSetTextColor(calRow, calCol, bgColor) {
  305. if( calCol < 7 ){
  306. grd_calendar.cellStyle("color", calRow, calCol) = bgColor;
  307. grd_calendar.cellStyle("color", calRow, calCol + 7) = bgColor;
  308. }else{
  309. grd_calendar.cellStyle("color", calRow, calCol) = bgColor;
  310. grd_calendar.cellStyle("color", calRow, calCol - 7) = bgColor;
  311. }
  312. }
  313. function setCalendar(dateObj) {
  314. //서버로 자료 요청
  315. if ( fGetHospitalCalendar() != true ){
  316. messageBox("병원일정 데이터를 가져올 수", "I004");
  317. }
  318. // 그리드 초기화
  319. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  320. //grd_calendar.rebuild()
  321. dateObj.setDate(1);
  322. var startDay = dateObj.getDay();
  323. var days = dateObj.getMonthDay();
  324. var rows = Math.ceil( ( startDay + days ) / 7 );
  325. for( var i = 0; i < rows; i++ )
  326. grd_calendar.addRow(false);
  327. grd_calendar.rebuild();
  328. grd_calendar.rebuildStyle();
  329. var rowIndex = grd_calendar.fixedRows;
  330. var colIndex = startDay;
  331. var dutflag = '';
  332. for( var i = 1; i <= days; i++ ) {
  333. //write date
  334. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  335. grd_calendar.cellStyle("font-weight", rowIndex, colIndex) = "bold";
  336. //write memo
  337. grd_calendar.valueMatrix(rowIndex , colIndex + 7) = "0/0";
  338. dutflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/dutflag");
  339. if( dutflag == '8' ){ //'0' 평일, '4' 토요일, '8' 휴일
  340. fSetTextColor(rowIndex, colIndex, '#ff0000');
  341. }
  342. colIndex++;
  343. if( colIndex == 7 ) {
  344. colIndex = 0;
  345. rowIndex++;
  346. }
  347. }
  348. model.setValue("/root/send/data/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
  349. setRsrvPresCondByMonth(dateObj);
  350. }
  351. function setCellColor(gridObj) {
  352. var calRow = 0; //현재선택
  353. var calCol = 0; //현재선택
  354. var bfcalRow = 0; //전에 선택
  355. var bfcalCol = 0; //전에 선택
  356. var white = 1; //#ffffff
  357. var green = 2; //#c4e693
  358. calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
  359. calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
  360. bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
  361. bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
  362. // 1. 원래 색으로 돌려놓기
  363. if(model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
  364. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  365. if( bfcalCol < 7 ) {
  366. bfcalCol += 7;
  367. } else {
  368. bfcalCol -= 7;
  369. }
  370. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  371. } else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
  372. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  373. if( bfcalCol < 7 ) {
  374. bfcalCol += 7;
  375. } else {
  376. bfcalCol -= 7;
  377. }
  378. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  379. }
  380. // 2. bf 인스턴스에 선택한 원래 셀 담아두기
  381. if(gridObj.cellStyle("background-color", calRow, calCol) == "white" ) {
  382. model.setValue("/root/hidden/grdcellcolor/color", "1");
  383. }
  384. if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
  385. model.setValue("/root/hidden/grdcellcolor/color", "2");
  386. }
  387. model.setValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
  388. model.setValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
  389. // 3. 선택한 셀에 보라색 주기
  390. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  391. if( calCol < 7 ) {
  392. calCol += 7;
  393. } else {
  394. calCol -= 7;
  395. }
  396. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  397. }
  398. function getRsrvPossTm(gridObj) {
  399. var calRow = model.getValue("/root/hidden/grdcellcolor/calrow");
  400. var calCol = model.getValue("/root/hidden/grdcellcolor/calcol");
  401. if( calCol >= 7 ) {
  402. calCol -= 7;
  403. }
  404. var yyyy = model.getValue("/root/hidden/calendar/year");
  405. var mm = model.getValue("/root/hidden/calendar/month");
  406. var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + gridObj.colAttribute(calCol, "ref"));
  407. if (getStringLength(dd) == 1) {
  408. dd = "0" + dd;
  409. }
  410. model.setValue("/root/send/data/rsrvdd", yyyy + mm + dd);
  411. model.setValue("/root/send/data/rsrvdate",model.getValue("/root/send/data/rsrvdd"));
  412. model.removenode("/root/main/rsrvposstmlist");
  413. if (submit("TRAEA01416", false)) {
  414. var rowCnt = getNodesetCount("/root/main/rsrvposstmlist/rsrvlist");
  415. rowCnt = (rowCnt*1) + 1;
  416. // 임시 예약 건이 있을 경우
  417. var addRowCnt = getNodesetCount("/root/main/rsrvposstmlist/unrsrvlist");
  418. if (addRowCnt > 0) {
  419. addRowCnt = (addRowCnt*1) + 1;
  420. for (i=1; i<addRowCnt; i++) {
  421. model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/rsrvtm", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/rsrvtm") + "00");
  422. model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/pid", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/pid"));
  423. model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/prcpnm", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/prcpnm"));
  424. model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/hngnm", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/hngnm"));
  425. model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/srchrsrvtm", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/rsrvtm") + "00");
  426. model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/rgstdepthngnm", "");
  427. model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/prcpcd", "");
  428. model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/seq", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/seq"));
  429. rowCnt++;
  430. }
  431. }
  432. var rsrvlistamCnt = getNodesetCount("/root/main/rsrvposstmlist/rsrvlist[rsrvtm<120000]");
  433. var rsrvlistpmCnt = getNodesetCount("/root/main/rsrvposstmlist/rsrvlist[rsrvtm>115900]");
  434. if (rsrvlistamCnt >0) {
  435. grd_rsrvlistam.attribute("nodeset") = "/root/main/rsrvposstmlist/rsrvlist[rsrvtm<120000]" ;
  436. grd_rsrvlistam.sort(1, grd_rsrvlistam.colRef("srchrsrvtm"), grd_rsrvlistam.rows, grd_rsrvlistam.colRef("srchrsrvtm")) = "desc";
  437. grd_rsrvlistam.rebuild();
  438. grd_rsrvlistpm.colSort(grd_rsrvlistpm.colRef("srchrsrvtm")) = "asc";
  439. grd_rsrvlistpm.sort(1, grd_rsrvlistpm.colRef("srchrsrvtm"), grd_rsrvlistpm.rows-1, grd_rsrvlistpm.cols-1) = "usersort";
  440. }
  441. if (rsrvlistpmCnt >0) {
  442. grd_rsrvlistpm.attribute("nodeset") = "/root/main/rsrvposstmlist/rsrvlist[rsrvtm>115900]" ;
  443. grd_rsrvlistpm.rebuild();
  444. grd_rsrvlistpm.colSort(grd_rsrvlistpm.colRef("srchrsrvtm")) = "asc";
  445. grd_rsrvlistpm.sort(1, grd_rsrvlistpm.colRef("srchrsrvtm"), grd_rsrvlistpm.rows-1, grd_rsrvlistpm.cols-1) = "usersort";
  446. }
  447. model.refresh();
  448. }
  449. }
  450. /* @group : 통합예약
  451. * @ver : 2007.07.03
  452. * @by : 임혜정
  453. * @-----------------------------------
  454. * @type : function
  455. * @access : public
  456. * @desc : 예약, 취소 버튼의 click 이벤트 처리
  457. */
  458. function exeRsrvTransaction(str) {
  459. var sColSep = "▦";
  460. var sRowSep = "▩";
  461. var rCSV = "";
  462. // PACS연동하기 위해 추가함. 20071017,장준원
  463. rCSV += "pid" + sColSep + "excuroomgrpcd"
  464. + sColSep + "excuroomcd"
  465. + sColSep + "prcpdd"
  466. + sColSep + "execprcpuniqno"
  467. + sColSep + "rsrvflag"
  468. + sColSep + "rsrvdt"
  469. + sColSep + "srchrsrvtm"
  470. + sColSep + "prcpkindcd"
  471. + sColSep + "excupartcd"
  472. + sColSep + "indd"
  473. + sColSep + "actorddd"
  474. + sColSep + "orddeptcd"
  475. + sColSep + "orddrid"
  476. + sColSep + "calcscorcd"
  477. + sColSep + "execrid"
  478. + sColSep + "rsrvrem"
  479. + sColSep + "suppdeptcd"
  480. + sColSep + "cnclresncd"
  481. + sColSep + "pacsnocretyn"
  482. + sColSep + "rgsttm"
  483. + sColSep + "rgstrid"
  484. + sColSep + "prcpdelivefact"
  485. + sColSep + "orddepthngnm"
  486. + sColSep + "prcpnm"
  487. + sColSep + "orddd"
  488. + sColSep + "rgstdepthngnm"
  489. + sColSep + "examroomnm"
  490. + sColSep + "rsrvpsnnocntlyn"
  491. + sColSep + "cnclresncd"
  492. + sColSep + "cnclflag"
  493. + sColSep + "glycosyn"
  494. + sColSep + "glycoscure"
  495. + sColSep + "reqhospcd"
  496. + sColSep + "prcpexecdeptcd"
  497. + sColSep + "rsrvflagyn"
  498. + sColSep + "bf_srchrsrvtm"
  499. + sColSep + "rsrvseq"
  500. + sRowSep;
  501. var rowcnt = getNodesetCount("/root/main/exculist/mainordlist5");
  502. // 선택일자
  503. var rsrvdt = model.getValue("/root/send/data/rsrvdd") + model.getValue("/root/send/data/rsrvmm") + model.getValue("/root/send/data/rsrvss");
  504. var suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
  505. for (i=1; i<=rowcnt; i++) {
  506. var excuroomgrpcdid = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/excuroomgrpcdid");
  507. rCSV += model.getValue("/root/main/exculist/mainordlist5/pid")
  508. + sColSep + excuroomgrpcdid
  509. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/excuroomcd")
  510. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/prcpdd")
  511. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/execprcpuniqno")
  512. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/rsrvflag")
  513. + sColSep + rsrvdt
  514. + sColSep + rsrvdt
  515. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/prcpkindcd")
  516. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/excupartcd")
  517. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/orddd")
  518. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/prcpdd")
  519. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/orddeptcd")
  520. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/orddrid")
  521. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/calcscorcd")
  522. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/execrid")
  523. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/rsrvrem")
  524. + sColSep + suppdeptcd
  525. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/cnclresncd")
  526. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/pacsnocretyn")
  527. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/rgsttm")
  528. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/rgstrid")
  529. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/prcpdelivefact")
  530. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/orddepthngnm")
  531. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/prcpnm")
  532. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/orddd")
  533. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/rgstdepthngnm")
  534. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/examroomnm")
  535. + sColSep + "N"
  536. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/cnclresncd")
  537. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/cnclflag");
  538. if (excuroomgrpcdid == "PET-CT실") {
  539. rCSV += sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/glycosyn");
  540. } else {
  541. rCSV += sColSep + "N";
  542. }
  543. rCSV += sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/glycoscure")
  544. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/reqhospcd")
  545. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/prcpexecdeptcd")
  546. + sColSep + "예약"
  547. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/bf_srchrsrvtm")
  548. + sColSep + model.getValue("/root/main/exculist/mainordlist5["+ i +"]/rsrvseq")
  549. + sRowSep;
  550. }
  551. model.removeNode("/root/send/req/data");
  552. model.makeNode("/root/send/req/data");
  553. model.makeValue("/root/send/req/flag", str);
  554. model.removeNode("/root/temp");
  555. model.makeNode("/root/temp");
  556. setCSVToNode("/root/temp", rCSV);
  557. instance1.selectSingleNode("/root/temp").xml;
  558. model.copyNode("/root/send/req/data", "/root/temp");
  559. submit("TXAEA02001");
  560. }
  561. /* @group : 통합예약관리
  562. * @ver : 2007.08.10
  563. * @by : 임헤정
  564. * @-----------------------------------
  565. * @type : function
  566. * @access : public
  567. * @desc : 오늘날짜 달력에 표시
  568. */
  569. function setCurrentDate() {
  570. var curDate = getCurrentDate().substr(6,2); //오늘날짜
  571. var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  572. if(curDate <10) {
  573. curDate= curDate.substr(1,1);
  574. }
  575. if (curWeek == "sun") {
  576. model.makeValue("/root/hidden/grdcellcolor/calcol",0);
  577. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",0);
  578. } else if (curWeek == "mon") {
  579. model.makeValue("/root/hidden/grdcellcolor/calcol",1);
  580. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",1);
  581. } else if (curWeek == "tue") {
  582. model.makeValue("/root/hidden/grdcellcolor/calcol",2);
  583. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",2);
  584. } else if (curWeek == "wed") {
  585. model.makeValue("/root/hidden/grdcellcolor/calcol",3);
  586. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",3);
  587. } else if (curWeek == "thu") {
  588. model.makeValue("/root/hidden/grdcellcolor/calcol",4);
  589. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",4);
  590. } else if (curWeek == "fri") {
  591. model.makeValue("/root/hidden/grdcellcolor/calcol",5);
  592. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",5);
  593. } else if (curWeek == "sat") {
  594. model.makeValue("/root/hidden/grdcellcolor/calcol",6);
  595. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",6);
  596. }
  597. for(var i = 0 ; i <grd_calendar.rows; i++ ) {
  598. if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
  599. model.makeValue("/root/hidden/grdcellcolor/calrow",i);
  600. model.makeValue("/root/hidden/grdcellcolor/bfcalrow",i);
  601. }
  602. }
  603. model.makeValue("/root/hidden/grdcellcolor/color",1);
  604. setCellColor(grd_calendar);
  605. }
  606. ]]>
  607. </script>
  608. </xhtml:head>
  609. <xhtml:body pagewidth="1090" pageheight="480" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  610. <group id="group1" style="left:0px; top:0px; width:1060px; height:13px; ">
  611. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">연속검사예약관리</caption>
  612. </group>
  613. <group id="group3" overflow="visible" scroll="auto" style="left:0px; top:13px; width:1060px; height:412px; ">
  614. <line id="line4" class="line_1" style="x1:449px; y1:30px; x2:751px; y2:30px; "/>
  615. <line id="line7" class="line_1" style="x1:753px; y1:30px; x2:1055px; y2:30px; "/>
  616. <caption id="caption22" class="tit_2" style="left:449px; top:15px; width:82px; height:13px; ">오전</caption>
  617. <caption id="caption9" class="tit_2" style="left:753px; top:15px; width:82px; height:13px; ">오후</caption>
  618. <datagrid id="grd_rsrvlistam" nodeset="/root/main/rsrvposstmlist/rsrvlistam" caption="시간^등록번호^이름^검사명^가예약순번" colsep="^" colwidth="40, 59, 58, 142, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" style="left:449px; top:35px; width:302px; height:310px; ">
  619. <col ref="srchrsrvtm" format="hh:nn" style="text-align:center; "/>
  620. <col ref="pid"/>
  621. <col ref="hngnm"/>
  622. <col ref="prcpnm"/>
  623. <col ref="seq" visibility="hidden"/>
  624. <script type="javascript" ev:event="onmousedown">
  625. <![CDATA[
  626. if (event.button == 3) { // 3 : 오른쪽 버튼
  627. if (grd_rsrvlistam.isCell(event.target) && grd_rsrvlistam.mouseRow >= grd_rsrvlistam.fixedrows) {
  628. model.makeValue("/root/hidden/popupmenu/seq",grd_rsrvlistam.valueMatrix(grd_rsrvlistam.mouseRow, grd_rsrvlistam.colRef("seq")));
  629. window.setPopupMenu(true, "/root/init/popupmenu/grid02/item", "name", "func", false);
  630. } else {
  631. window.setPopupMenu(false);
  632. }
  633. }
  634. ]]>
  635. </script>
  636. </datagrid>
  637. <datagrid id="grd_rsrvlistpm" nodeset="/root/main/rsrvposstmlist/rsrvlistpm" caption="시간^등록번호^이름^검사명^가예약순번" colsep="^" colwidth="40, 59, 58, 142, 0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:753px; top:35px; width:302px; height:310px; ">
  638. <col ref="srchrsrvtm" format="hh:nn" style="text-align:center; "/>
  639. <col ref="pid"/>
  640. <col ref="hngnm"/>
  641. <col ref="prcpnm"/>
  642. <col ref="seq" visibility="hidden"/>
  643. <script type="javascript" ev:event="onmousedown">
  644. <![CDATA[
  645. if (event.button == 3) { // 3 : 오른쪽 버튼
  646. if (grd_rsrvlistpm.isCell(event.target) && grd_rsrvlistpm.mouseRow >= grd_rsrvlistpm.fixedrows) {
  647. model.makeValue("/root/hidden/popupmenu/seq",grd_rsrvlistpm.valueMatrix(grd_rsrvlistpm.mouseRow, grd_rsrvlistpm.colRef("seq")));
  648. window.setPopupMenu(true, "/root/init/popupmenu/grid02/item", "name", "func", false);
  649. } else {
  650. window.setPopupMenu(false);
  651. }
  652. }
  653. ]]>
  654. </script>
  655. </datagrid>
  656. <caption id="caption12" class="tit_2" style="left:4px; top:15px; width:82px; height:13px; ">예약현항</caption>
  657. <line id="line8" class="line_1" style="x1:0px; y1:30px; x2:444px; y2:30px; "/>
  658. <group id="group2" scroll="auto" style="left:0px; top:34px; width:444px; height:48px; ">
  659. <shape id="rectangle2" class="calendar_header" appearance="rectangle" style="left:0px; top:2px; width:444px; height:43px; "/>
  660. <button id="button31" class="icon_next_year" style="left:205px; top:15px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_y.gif; ">
  661. <caption/>
  662. <script type="javascript" ev:event="DOMActivate">
  663. <![CDATA[
  664. if(model.getValue("/root/send/data/excuroomcd") == "") {
  665. messageBox("검사실","C002");
  666. return;
  667. }
  668. var isMonth = model.getValue("/root/hidden/calendar/month");
  669. var isYear = model.getValue("/root/hidden/calendar/year");
  670. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  671. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  672. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  673. model.refresh();
  674. setCalendar(isDate);
  675. ]]>
  676. </script>
  677. </button>
  678. <button id="button33" class="icon_pre_month" style="left:56px; top:15px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_m.gif; ">
  679. <caption/>
  680. <script type="javascript" ev:event="DOMActivate">
  681. <![CDATA[
  682. if(model.getValue("/root/send/data/excuroomcd") == "") {
  683. messageBox("검사실","C002");
  684. return;
  685. }
  686. var isMonth = model.getValue("/root/hidden/calendar/month");
  687. var isYear = model.getValue("/root/hidden/calendar/year");
  688. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  689. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  690. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  691. model.refresh();
  692. setCalendar(isDate);
  693. ]]>
  694. </script>
  695. </button>
  696. <button id="button35" class="icon_next_month" style="left:181px; top:15px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_m.gif; ">
  697. <caption/>
  698. <script type="javascript" ev:event="DOMActivate">
  699. <![CDATA[
  700. if(model.getValue("/root/send/data/excuroomcd") == "") {
  701. messageBox("검사실","C002");
  702. return;
  703. }
  704. var isMonth = model.getValue("/root/hidden/calendar/month");
  705. var isYear = model.getValue("/root/hidden/calendar/year");
  706. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  707. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  708. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  709. model.refresh();
  710. setCalendar(isDate);
  711. // getCurerPresCond();
  712. ]]>
  713. </script>
  714. </button>
  715. <output id="output1" ref="/root/hidden/calendar/year" class="calendar_output" style="left:83px; top:13px; width:30px; height:19px; "/>
  716. <output id="output2" ref="/root/hidden/calendar/month" class="calendar_output" style="left:135px; top:13px; width:20px; height:19px; "/>
  717. <caption id="caption24" class="calendar_output" style="left:113px; top:13px; width:20px; height:19px; ">년</caption>
  718. <caption id="caption25" class="calendar_output" style="left:155px; top:13px; width:20px; height:19px; ">월</caption>
  719. <button id="button36" class="icon_pre_year" style="left:33px; top:15px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_y.gif; ">
  720. <caption/>
  721. <script type="javascript" ev:event="DOMActivate">
  722. <![CDATA[
  723. if(model.getValue("/root/send/data/excuroomcd") == "") {
  724. messageBox("검사실","C002");
  725. return;
  726. }
  727. var isMonth = model.getValue("/root/hidden/calendar/month");
  728. var isYear = model.getValue("/root/hidden/calendar/year");
  729. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  730. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  731. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  732. model.refresh();
  733. setCalendar(isDate);
  734. // getCurerPresCond();
  735. ]]>
  736. </script>
  737. </button>
  738. <caption id="caption15" class="calendar_output" style="left:245px; top:10px; width:35px; height:28px; ">
  739. <![CDATA[예약
  740. 시간]]>
  741. </caption>
  742. <select1 id="cmb_rsrvmm" ref="/root/send/data/rsrvmm" appearance="minimal" style="left:279px; top:13px; width:50px; height:19px; ">
  743. <choices>
  744. <item>
  745. <label>--</label>
  746. <value/>
  747. </item>
  748. <item>
  749. <label>01</label>
  750. <value>01</value>
  751. </item>
  752. <item>
  753. <label>02</label>
  754. <value>02</value>
  755. </item>
  756. <item>
  757. <label>03</label>
  758. <value>03</value>
  759. </item>
  760. <item>
  761. <label>04</label>
  762. <value>04</value>
  763. </item>
  764. <item>
  765. <label>05</label>
  766. <value>05</value>
  767. </item>
  768. <item>
  769. <label>06</label>
  770. <value>06</value>
  771. </item>
  772. <item>
  773. <label>07</label>
  774. <value>07</value>
  775. </item>
  776. <item>
  777. <label>08</label>
  778. <value>08</value>
  779. </item>
  780. <item>
  781. <label>09</label>
  782. <value>09</value>
  783. </item>
  784. <item>
  785. <label>10</label>
  786. <value>10</value>
  787. </item>
  788. <item>
  789. <label>11</label>
  790. <value>11</value>
  791. </item>
  792. <item>
  793. <label>12</label>
  794. <value>12</value>
  795. </item>
  796. <item>
  797. <label>13</label>
  798. <value>13</value>
  799. </item>
  800. <item>
  801. <label>14</label>
  802. <value>14</value>
  803. </item>
  804. <item>
  805. <label>15</label>
  806. <value>15</value>
  807. </item>
  808. <item>
  809. <label>16</label>
  810. <value>16</value>
  811. </item>
  812. <item>
  813. <label>17</label>
  814. <value>17</value>
  815. </item>
  816. <item>
  817. <label>18</label>
  818. <value>18</value>
  819. </item>
  820. <item>
  821. <label>19</label>
  822. <value>19</value>
  823. </item>
  824. <item>
  825. <label>20</label>
  826. <value>20</value>
  827. </item>
  828. <item>
  829. <label>21</label>
  830. <value>21</value>
  831. </item>
  832. <item>
  833. <label>22</label>
  834. <value>22</value>
  835. </item>
  836. <item>
  837. <label>23</label>
  838. <value>23</value>
  839. </item>
  840. <item>
  841. <label>24</label>
  842. <value>24</value>
  843. </item>
  844. </choices>
  845. </select1>
  846. <select1 id="cmb_rsrvss" ref="/root/send/data/rsrvss" appearance="minimal" style="left:355px; top:13px; width:50px; height:19px; ">
  847. <choices>
  848. <item>
  849. <label>--</label>
  850. <value/>
  851. </item>
  852. <item>
  853. <label>00</label>
  854. <value>00</value>
  855. </item>
  856. <item>
  857. <label>10</label>
  858. <value>10</value>
  859. </item>
  860. <item>
  861. <label>20</label>
  862. <value>20</value>
  863. </item>
  864. <item>
  865. <label>30</label>
  866. <value>30</value>
  867. </item>
  868. <item>
  869. <label>40</label>
  870. <value>40</value>
  871. </item>
  872. <item>
  873. <label>50</label>
  874. <value>50</value>
  875. </item>
  876. </choices>
  877. </select1>
  878. <caption id="caption16" class="calendar_output" style="left:330px; top:13px; width:25px; height:19px; ">시</caption>
  879. <caption id="caption18" class="calendar_output" style="left:405px; top:13px; width:25px; height:19px; ">분</caption>
  880. </group>
  881. <button id="btn_rsrv" class="btn2_letter2" style="left:402px; top:10px; width:42px; height:19px; ">
  882. <caption>예약</caption>
  883. <script type="javascript" ev:event="DOMActivate">
  884. <![CDATA[
  885. var curDate = getCurrentDate().substr(0,8); //오늘날짜
  886. var rsrvdd = model.getValue("/root/send/data/rsrvdd"); //선택일자
  887. var rsrvtm = model.getValue("/root/send/data/rsrvmm") + model.getValue("/root/send/data/rsrvss");
  888. //당일예약
  889. if(curDate == rsrvdd) {
  890. if(getCurrentTime().substr(0,4) > rsrvtm ) { //현재시간 이전시간을 예약
  891. messageBox("예약시간이 과거시간", "E008");
  892. return;
  893. }
  894. } else if (curDate > rsrvdd) { //당일 이전 예약
  895. messageBox("예약일자가 과거일자", "E008");
  896. return;
  897. }
  898. // model.makeValue("/root/main/exculist/mainordlist5/rsrvdt", rsrvdd + rsrvtm); // 예약시간
  899. // model.makeValue("/root/main/exculist/mainordlist5/srchrsrvtm", rsrvdd + rsrvtm); // 예약시간
  900. // var bb = model.getValue("/root/send/globalinstance/instance1");
  901. // model.setValue("/root/main/exculist/mainordlist5/suppdeptcd", bb.getTrim());
  902. var rsrvdt = rsrvdd + rsrvtm;
  903. if( rsrvdt == "-" ) {
  904. messageBox("예약시간을 ","C002");
  905. return;
  906. }
  907. if ( messageBox(rsrvdt.substr(0,4)+"-"+rsrvdt.substr(4,2)+"-"+rsrvdt.substr(6,2)+" "+rsrvdt.substr(8,2)+":"+rsrvdt.substr(10,2)+" 예약내역을","Q002")==6 ) {
  908. exeRsrvTransaction("cont");
  909. var rowcnt = getNodesetCount("/root/main/exculist/mainordlist5");
  910. // 선택일자
  911. var rsrvdt = model.getValue("/root/send/data/rsrvdd") + model.getValue("/root/send/data/rsrvmm") + model.getValue("/root/send/data/rsrvss");
  912. var suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
  913. var year = rsrvdt.substr(0,4);
  914. var month = rsrvdt.substr(4,2);
  915. var day = rsrvdt.substr(6,2);
  916. var week = rsrvdt.substr(0,8).toDate().getDayOfWeek("K");
  917. var hh = rsrvdt.substr(8,2);
  918. var mm = rsrvdt.substr(10,2);
  919. for (i=1; i<=rowcnt; i++) {
  920. var pid = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/pid");
  921. var patnm = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/patnm");
  922. var prcpnm = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/prcpnm");
  923. var tmpldata = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/tmpldata");
  924. //********************************
  925. // ******예약증 출력 20070821******
  926. //********************************
  927. if(tmpldata != "") {
  928. //1. 예약예문내용을 뷰어로 보여주기
  929. rtfviewer.TextRtf = tmpldata;
  930. rtfviewer.ReplaceRtfCode("pid", pid); //등록번호
  931. rtfviewer.ReplaceRtfCode("patnm",patnm); //성명
  932. rtfviewer.ReplaceRtfCode("year",year); //년
  933. rtfviewer.ReplaceRtfCode("month",month); //월
  934. rtfviewer.ReplaceRtfCode("day",day); //일
  935. rtfviewer.ReplaceRtfCode("week",week); //요일
  936. rtfviewer.ReplaceRtfCode("hh",hh); //시
  937. rtfviewer.ReplaceRtfCode("mm",mm); //분
  938. if ( model.getValue("/root/hidden/chkprint") == "" ) {
  939. //3. 현재내용을 파일에 저장
  940. rtfviewer.SaveRtfFile();
  941. //4. 출력
  942. rtfviewer.Print();
  943. }
  944. } else {
  945. messageBox("등록된 예약예문이 ", "I004");
  946. }
  947. }
  948. // 예약 시간 초기화
  949. model.setValue("/root/send/data/rsrvss","");
  950. model.setValue("/root/send/data/rsrvmm","");
  951. opener.javascript.fContExamCureAcpt();
  952. window.close();
  953. } else {
  954. return;
  955. }
  956. ]]>
  957. </script>
  958. </button>
  959. <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="63, 63, 63, 63, 63, 63, 63" extendlastcol="noscroll" focuscolor="transparent" rowsep="|" mergecellsfixedrows="bycolrec" style="left:0px; top:81px; width:444px; height:316px; ">
  960. <row>
  961. <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
  962. <col ref="mon" style="border-bottom-width:0px; "/>
  963. <col ref="tue" style="border-bottom-width:0px; "/>
  964. <col ref="wed" style="border-bottom-width:0px; "/>
  965. <col ref="thu" style="border-bottom-width:0px; "/>
  966. <col ref="fri" style="border-bottom-width:0px; "/>
  967. <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
  968. </row>
  969. <row>
  970. <col class="color_sun" ref="sun_memo" style="border-top-width:0px; "/>
  971. <col ref="mon_memo" style="border-top-width:0px; "/>
  972. <col ref="tue_memo" style="border-top-width:0px; "/>
  973. <col ref="wed_memo" style="border-top-width:0px; "/>
  974. <col ref="thu_memo" style="border-top-width:0px; "/>
  975. <col ref="fri_memo" style="border-top-width:0px; "/>
  976. <col class="color_sat" ref="sat_memo" style="border-top-width:0px; "/>
  977. </row>
  978. <script type="javascript" ev:event="onclick">
  979. <![CDATA[
  980. model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
  981. model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
  982. setCellColor(grd_calendar);
  983. getRsrvPossTm(grd_calendar);
  984. var curDate = getCurrentDate().substr(0,8); //오늘날짜
  985. var rsrvdd =model.getValue("/root/send/data/rsrvdd"); //선택일자
  986. model.setValue("/root/send/memo/memodt1",rsrvdd);
  987. model.setValue("/root/send/memo/memodt2",rsrvdd);
  988. submit("TRAEA01412");
  989. if(curDate <= rsrvdd) {
  990. btn_rsrv.disabled = false;
  991. }
  992. else {
  993. btn_rsrv.disabled = true;
  994. }
  995. ]]>
  996. </script>
  997. </multilinegrid>
  998. <object id="rtfviewer" clsid="{a4bf7e18-5f67-4868-a726-eed421632374}" visibility="hidden" style="left:110px; top:260px; width:120px; height:95px; "/>
  999. <line id="line10" class="line_1" style="x1:449px; y1:366px; x2:1055px; y2:366px; "/>
  1000. <button id="button5" class="btn2_letter4" style="left:991px; top:346px; width:64px; height:19px; ">
  1001. <caption>메모등록</caption>
  1002. <script type="javascript" ev:event="onclick">
  1003. <![CDATA[
  1004. open("SMAEB00500", "","","", "SMAEB00500", "","");
  1005. ]]>
  1006. </script>
  1007. </button>
  1008. <caption id="caption3" class="tit_2" style="left:449px; top:350px; width:113px; height:13px; ">부서별 메모현황</caption>
  1009. <datagrid id="grd_subordlist4" nodeset="/root/main/subordlist/subordlist4" class="datagrid0" caption="일자^메모내용" colsep="^" colwidth="68, 535" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:449px; top:371px; width:606px; height:26px; ">
  1010. <col ref="memodd" format="yyyy-mm-dd"/>
  1011. <col ref="memorem"/>
  1012. </datagrid>
  1013. <select id="chk_print" ref="/root/hidden/chkprint" overflow="visible" appearance="full" style="left:305px; top:12px; width:95px; height:16px; border-style:none; ">
  1014. <choices>
  1015. <item>
  1016. <label>예약증미출력</label>
  1017. <value>Y</value>
  1018. </item>
  1019. </choices>
  1020. </select>
  1021. </group>
  1022. <group id="grp_btn" style="left:0px; top:425px; width:1060px; height:27px; ">
  1023. <button id="btn_cls" class="btn4_letter2" style="left:1002px; top:5px; width:56px; height:22px; ">
  1024. <caption>닫기</caption>
  1025. <script type="javascript" ev:event="DOMActivate">
  1026. <![CDATA[
  1027. if (checkOpener()) {
  1028. var updtflag = model.getValue("/root/hidden/updtflag");
  1029. if (updtflag == "Y") {
  1030. opener.javascript.fGetExamCurePrcpPopList();
  1031. }
  1032. }
  1033. window.close();
  1034. ]]>
  1035. </script>
  1036. </button>
  1037. </group>
  1038. <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:790px; top:155px; width:210px; height:155px; ">
  1039. <col ref="rsrvdd"/>
  1040. <col ref="count"/>
  1041. <col ref="max"/>
  1042. </datagrid>
  1043. </xhtml:body>
  1044. </xhtml:html>