SPAEA01501_예약스케쥴조회(내시경).xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>예약스케쥴조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <totalrsrvlist>
  11. <rsrvposstm>
  12. <rsrvtm/>
  13. <icount/>
  14. <ocount/>
  15. <scount/>
  16. <max/>
  17. </rsrvposstm>
  18. <vacation>
  19. <updtresndesc/>
  20. </vacation>
  21. </totalrsrvlist>
  22. <rsrvprescondlist>
  23. <rsrvprescond>
  24. <rsrvtm/>
  25. <pid/>
  26. <hngnm/>
  27. <age/>
  28. <prcpcd/>
  29. <prcpnm/>
  30. <usernm/>
  31. <prcpdd/>
  32. <rsrvrem/>
  33. <prcpdelivefact/>
  34. <clinccmtcnts/>
  35. <prcpgenrflag/>
  36. <execprcpstatcd/>
  37. <roomcd/>
  38. <fromdd/>
  39. <todd/>
  40. <phonum/>
  41. </rsrvprescond>
  42. </rsrvprescondlist>
  43. </main>
  44. <send>
  45. <globalinstance>
  46. <instance1/>
  47. </globalinstance>
  48. <excuroomcd/>
  49. <rsrvdd/>
  50. <srvdate/>
  51. <popupdata/>
  52. <curdate/>
  53. <rsrvtodd/>
  54. <rsrvfromdd/>
  55. </send>
  56. <init>
  57. <curerprescondlist>
  58. <rsrvcalendar/>
  59. </curerprescondlist>
  60. <roomcmb_info>
  61. <initexecroom>
  62. <excuroomcdid/>
  63. <excuroomcdnm/>
  64. </initexecroom>
  65. </roomcmb_info>
  66. <calenlist>
  67. <calendinfo>
  68. <basedd/>
  69. <dutflag/>
  70. </calendinfo>
  71. </calenlist>
  72. </init>
  73. <hidden>
  74. <calendar>
  75. <year/>
  76. <month/>
  77. <weeklist>
  78. <list>
  79. <sun/>
  80. <mon/>
  81. <tue/>
  82. <wed/>
  83. <thu/>
  84. <fri/>
  85. <sat/>
  86. <sun_memo/>
  87. <mon_memo/>
  88. <tue_memo/>
  89. <wed_memo/>
  90. <thu_memo/>
  91. <fri_memo/>
  92. <sat_memo/>
  93. </list>
  94. </weeklist>
  95. <dd/>
  96. </calendar>
  97. <grdcellcolor>
  98. <calrow/>
  99. <calcol/>
  100. <bfcalrow/>
  101. <bfcalcol/>
  102. <color/>
  103. </grdcellcolor>
  104. <prcpgenrflag>
  105. <gubn/>
  106. </prcpgenrflag>
  107. </hidden>
  108. <temp/>
  109. </root>
  110. </instance>
  111. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  115. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  116. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  118. <script type="javascript" ev:event="xforms-ready">
  119. <![CDATA[
  120. model.setValue("/root/send/excuroomcd",model.getValue("/root/send/popupdata/excuroomcd"));
  121. model.setValue("/root/send/globalinstance/instance1",model.getValue("/root/send/popupdata/suppdeptcd"));
  122. //입원외래 표시
  123. if(model.getValue("/root/send/popupdata/prcpgenrflag") == "I") { //입원
  124. opt_patnm.value ="입원";
  125. }
  126. if(model.getValue("/root/send/popupdata/prcpgenrflag") == "O") { //외래
  127. opt_patnm.value ="외래";
  128. }
  129. if(model.getValue("/root/send/popupdata/prcpgenrflag") == "S") { //수탁
  130. opt_patnm.value ="건진";
  131. }
  132. if(model.getValue("/root/send/popupdata/prcpgenrflag") == "E") { //응급
  133. opt_patnm.value ="응급";
  134. }
  135. //검사실 코드 갖고오기
  136. submit("TRAEA01511");
  137. //처방선택시 자동으로 달력에서 오늘날짜 onclick 이벤트 처리
  138. initCalendar();
  139. setCurrentDate();
  140. getRsrvPossTm(grd_calendar);
  141. ]]>
  142. </script>
  143. <bind id="bind_prcpexecdeptcd" ref="/root/main/ocdlst/item/prcpexecdeptcd" readonly="../prcpexecdeptcd!=''"/>
  144. <submission id="TRAEA01513" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvlist"/>
  145. <submission id="TRAEA01129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
  146. <submission id="TRAEA01514" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/totalrsrvlist"/>
  147. <submission id="TRAEA01511" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/roomcmb_info"/>
  148. <submission id="TRAEA02012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/calenlist"/>
  149. <submission id="TRAEA00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsrvprescondlist"/>
  150. </model>
  151. <script type="javascript">
  152. <![CDATA[
  153. /*******************/
  154. /*** 달력초기화 ***/
  155. /*****************/
  156. function initCalendar() {
  157. var curDate = getCurrentDate().toDate();
  158. model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
  159. model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
  160. //model.refresh();
  161. setCalendar(curDate);
  162. }
  163. /*****************/
  164. /*** 달력세팅 ***/
  165. /***************/
  166. function setCalendar(dateObj) {
  167. // 그리드 초기화
  168. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  169. model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
  170. grd_calendar.rebuild()
  171. dateObj.setDate(1);
  172. var startDay = dateObj.getDay();
  173. var days = dateObj.getMonthDay();
  174. var rows = Math.ceil( ( startDay + days ) / 7 );
  175. for( var i = 0; i < rows; i++ )
  176. grd_calendar.addRow(false);
  177. grd_calendar.rebuild();
  178. var rowIndex = grd_calendar.fixedRows;
  179. var colIndex = startDay;
  180. for( var i = 1; i <= days; i++ ) {
  181. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  182. grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0/0";
  183. colIndex++;
  184. if( colIndex == 7 ) {
  185. colIndex = 0;
  186. rowIndex++;
  187. }
  188. }
  189. model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
  190. model.setValue("/root/send/curdate",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
  191. //20101006 해당검사실 예약환자 리스트 조회 -박재영
  192. model.setValue("/root/send/rsrvtodd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
  193. fCalendar();
  194. setRsrvPresCondByMonth();
  195. }
  196. function fCalendar(){
  197. if (submit("TRAEA02012")){
  198. var isMonth = model.getValue("/root/hidden/calendar/month");
  199. var isYear = model.getValue("/root/hidden/calendar/year");
  200. var isDate = (isYear+isMonth+1).toDate();
  201. var startDay = isDate.getDay();
  202. for (var i = 1; i < datagrid3.rows; i++) {
  203. var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
  204. var colidx = dd.toDate().getDay();
  205. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  206. //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  207. //alert("i==" + i + "==dutflag==" + model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag"));
  208. if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "8"){
  209. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "red";
  210. }else if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "4"){
  211. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "blue";
  212. }else{
  213. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "black";
  214. }
  215. }
  216. grd_calendar.refresh();
  217. }
  218. }
  219. /******************************/
  220. /*** 달력 가용현황 뿌려주기 ***/
  221. /******************************/
  222. function setRsrvPresCondByMonth() {
  223. // submit("TRAEA01107");
  224. submit("TRAEA01129");
  225. var isMonth = model.getValue("/root/hidden/calendar/month");
  226. var isYear = model.getValue("/root/hidden/calendar/year");
  227. var isDate = (isYear+isMonth+1).toDate();
  228. var startDay = isDate.getDay();
  229. for (var i = 1; i < grd_temp.rows; i++) {
  230. var dd = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/rsrvdd");
  231. var colidx = dd.toDate().getDay();
  232. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  233. grd_calendar.valueMatrix(rowidx, colidx+7) = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") + "/" + model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max") ;
  234. //alert("=="+model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") + "==" + model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max")+"==");
  235. var v_count = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count");
  236. var v_max = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max")
  237. //예약가능일자 녹색주기
  238. if( parseFloat(v_count) < parseFloat(v_max )){
  239. // alert("들어왔다!!!");
  240. grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
  241. grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#c4e693"; // #D9EFB9 < #C4E693 < #ABDC65
  242. }
  243. }
  244. }
  245. /***********************/
  246. /*** 오늘날짜 색 주기 ***/
  247. /***********************/
  248. function setCurrentDate() {
  249. var curDate = getCurrentDate().substr(6,2); //오늘날짜
  250. var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  251. if(curDate <10) {
  252. curDate= curDate.substr(1,1);
  253. }
  254. if(curWeek == "sun")
  255. model.setValue("/root/hidden/grdcellcolor/calcol",0);
  256. if(curWeek == "mon")
  257. model.setValue("/root/hidden/grdcellcolor/calcol",1);
  258. if(curWeek == "tue")
  259. model.setValue("/root/hidden/grdcellcolor/calcol",2);
  260. if(curWeek == "wed")
  261. model.setValue("/root/hidden/grdcellcolor/calcol",3);
  262. if(curWeek == "thu")
  263. model.setValue("/root/hidden/grdcellcolor/calcol",4);
  264. if(curWeek == "fri")
  265. model.setValue("/root/hidden/grdcellcolor/calcol",5);
  266. if(curWeek == "sat")
  267. model.setValue("/root/hidden/grdcellcolor/calcol",6);
  268. for(var i = 0 ; i <grd_calendar.rows; i++ ) {
  269. if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) == curDate ) {
  270. model.setValue("/root/hidden/grdcellcolor/calrow",i);
  271. }
  272. }
  273. var calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
  274. var calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol")); ; //현재선택
  275. if( calCol >= 7 )
  276. calCol -= 7;
  277. grd_calendar.cellStyle("background-color", calRow, calCol) = "#ffcc66"; //오늘날짜 노란색
  278. grd_calendar.cellStyle("background-color", calRow, calCol+7) = "#ffcc66"; //오늘날짜 노란색
  279. //setCellColor(grd_calendar);
  280. }
  281. /***********************/
  282. /*** 선택날짜 색 주기 ***/
  283. /***********************/
  284. function setCellColor(gridObj) {
  285. var calRow = 0; //현재선택
  286. var calCol = 0; //현재선택
  287. var bfcalRow = 0; //전에 선택
  288. var bfcalCol = 0; //전에 선택
  289. var white = 1; //#ffffff
  290. var green = 2; //#c4e693
  291. var yellow = 3; //#ffcc66
  292. calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
  293. calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
  294. bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
  295. bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
  296. // 1. 원래 색으로 돌려놓기
  297. if(model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
  298. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  299. if( bfcalCol < 7 )
  300. bfcalCol += 7;
  301. else
  302. bfcalCol -= 7;
  303. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  304. }
  305. else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
  306. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  307. if( bfcalCol < 7 )
  308. bfcalCol += 7;
  309. else
  310. bfcalCol -= 7;
  311. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  312. }else if (model.getValue("/root/hidden/grdcellcolor/color") == "3" ) {
  313. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffcc66";
  314. if( bfcalCol < 7 )
  315. bfcalCol += 7;
  316. else
  317. bfcalCol -= 7;
  318. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffcc66";
  319. }
  320. // 2. bf 인스턴스에 선택한 원래 셀 담아두기
  321. if(gridObj.cellStyle("background-color", calRow, calCol) == "white" ) {
  322. model.setValue("/root/hidden/grdcellcolor/color", "1");
  323. }
  324. if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
  325. model.setValue("/root/hidden/grdcellcolor/color", "2");
  326. }
  327. if(gridObj.cellStyle("background-color", calRow, calCol) == "#ffcc66" ) {
  328. model.setValue("/root/hidden/grdcellcolor/color", "3");
  329. }
  330. model.setValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
  331. model.setValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
  332. //alert("인스턴스 : "+model.getValue("/root/hidden/grdcellcolor/color"));
  333. // 3. 선택한 셀에 보라색 주기
  334. // gridObj.rebuildStyle();
  335. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  336. if( calCol < 7 )
  337. calCol += 7;
  338. else
  339. calCol -= 7;
  340. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  341. }
  342. /***********************/
  343. /*** 선택날짜 색 주기 ***/
  344. /***********************/
  345. function getRsrvPossTm(gridObj) {
  346. var calRow = model.getValue("/root/hidden/grdcellcolor/calrow");
  347. var calCol = model.getValue("/root/hidden/grdcellcolor/calcol");
  348. if( calCol >= 7 )
  349. calCol -= 7;
  350. var yyyy = model.getValue("/root/hidden/calendar/year");
  351. var mm = model.getValue("/root/hidden/calendar/month");
  352. var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + gridObj.colAttribute(calCol, "ref"));
  353. if (getStringLength(dd) == 1) {
  354. dd = "0" + dd;
  355. }
  356. model.setValue("/root/send/rsrvdd", yyyy + mm + dd);
  357. //20101006 해당검사실 예약환자 리스트 조회 -박재영
  358. model.setValue("/root/send/rsrvtodd", yyyy + mm + dd);
  359. // model.setValue("/root/send/rsrvdate",model.getValue("/root/send/rsrvdd"));
  360. // model.setValue("/root/send/acptlistflag", "Y");
  361. if (submit("TRAEA01514")) {
  362. for (var i = 1; i < grd_rsrvposstm.rows; i++) {
  363. var rsrvflag = model.getValue("/root/main/totalrsrvlist/rsrvposstm[" + i + "]/rsrvflag");
  364. if (rsrvflag == "G") {
  365. grd_rsrvposstm.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
  366. } else {
  367. grd_rsrvposstm.rowstyle( i , "data" , "background-color" ) = "#CCFFCC";
  368. }
  369. }
  370. }
  371. //20101006 해당검사실 예약환자 리스트 조회 -박재영
  372. submit("TRAEA00901");
  373. //setRsrvPresCondByMonth();
  374. }
  375. ]]>
  376. </script>
  377. </xhtml:head>
  378. <xhtml:body pagewidth="1190" pageheight="500" guideline="1,1181;1,1009;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  379. <group id="group5" scroll="auto" style="left:10px; top:6px; width:475px; height:434px; ">
  380. <line id="line5" class="line_1" style="x1:2px; y1:81px; x2:284px; y2:81px; "/>
  381. <caption id="caption1" class="tit_2" style="left:5px; top:67px; width:148px; height:13px; ">예약일자</caption>
  382. <group id="grp_calendar" scroll="auto" style="left:2px; top:86px; width:283px; height:27px; ">
  383. <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:1px; top:0px; width:282px; height:27px; "/>
  384. <button id="button32" class="icon_next_year" style="left:238px; top:6px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_y.gif; ">
  385. <caption/>
  386. <script type="javascript" ev:event="DOMActivate">
  387. <![CDATA[
  388. var isMonth = model.getValue("/root/hidden/calendar/month");
  389. var isYear = model.getValue("/root/hidden/calendar/year");
  390. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  391. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  392. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  393. model.refresh();
  394. setCalendar(isDate);
  395. ]]>
  396. </script>
  397. </button>
  398. <button id="btn_premonth" class="icon_pre_month" style="left:78px; top:6px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_m.gif; ">
  399. <caption/>
  400. <script type="javascript" ev:event="DOMActivate">
  401. <![CDATA[
  402. var isMonth = model.getValue("/root/hidden/calendar/month");
  403. var isYear = model.getValue("/root/hidden/calendar/year");
  404. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  405. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  406. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  407. model.refresh();
  408. setCalendar(isDate);
  409. ]]>
  410. </script>
  411. </button>
  412. <button id="button34" class="icon_next_month" style="left:219px; top:6px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_m.gif; ">
  413. <caption/>
  414. <script type="javascript" ev:event="DOMActivate">
  415. <![CDATA[
  416. var isMonth = model.getValue("/root/hidden/calendar/month");
  417. var isYear = model.getValue("/root/hidden/calendar/year");
  418. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  419. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  420. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  421. model.refresh();
  422. setCalendar(isDate);
  423. // getCurerPresCond();
  424. ]]>
  425. </script>
  426. </button>
  427. <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:108px; top:3px; width:30px; height:19px; "/>
  428. <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:158px; top:3px; width:30px; height:19px; "/>
  429. <caption id="caption11" class="calendar_output" style="left:138px; top:3px; width:20px; height:19px; ">년</caption>
  430. <caption id="caption12" class="calendar_output" style="left:188px; top:3px; width:20px; height:19px; ">월</caption>
  431. <button id="button3" class="icon_pre_year" style="left:57px; top:6px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_y.gif; ">
  432. <caption/>
  433. <script type="javascript" ev:event="DOMActivate">
  434. <![CDATA[
  435. var isMonth = model.getValue("/root/hidden/calendar/month");
  436. var isYear = model.getValue("/root/hidden/calendar/year");
  437. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  438. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  439. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  440. model.refresh();
  441. setCalendar(isDate);
  442. // getCurerPresCond();
  443. ]]>
  444. </script>
  445. </button>
  446. </group>
  447. <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="40, 40, 40, 40, 40, 40, 40" dataheight="20" focuscolor="transparent" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" mergecellsfixedrows="bycolrec" style="left:3px; top:113px; width:282px; height:265px; ">
  448. <row>
  449. <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
  450. <col ref="mon" style="border-bottom-width:0px; "/>
  451. <col ref="tue" style="border-bottom-width:0px; "/>
  452. <col ref="wed" style="border-bottom-width:0px; "/>
  453. <col ref="thu" style="border-bottom-width:0px; "/>
  454. <col ref="fri" style="border-bottom-width:0px; "/>
  455. <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
  456. </row>
  457. <row>
  458. <col ref="sun_memo" style="border-top-width:0px; "/>
  459. <col ref="mon_memo" style="border-top-width:0px; "/>
  460. <col ref="tue_memo" style="border-top-width:0px; "/>
  461. <col ref="wed_memo" style="border-top-width:0px; "/>
  462. <col ref="thu_memo" style="border-top-width:0px; "/>
  463. <col ref="fri_memo" style="border-top-width:0px; "/>
  464. <col ref="sat_memo" style="border-top-width:0px; "/>
  465. </row>
  466. <script type="javascript" ev:event="onclick">
  467. <![CDATA[
  468. model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
  469. model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
  470. // model.setValue("/root/send/data/largeclass","R4");
  471. setCellColor(grd_calendar);
  472. getRsrvPossTm(grd_calendar);
  473. // grd_momolist.addRow();
  474. ]]>
  475. </script>
  476. </multilinegrid>
  477. <datagrid id="grd_rsrvposstm" nodeset="/root/main/totalrsrvlist/rsrvposstm" backcoloralternate="transparent" caption="시간^입^외^건^가용^구분" colsep="^" colwidth="42, 28, 28, 28, 31, 31" mergecellsfixedrows="bycolrec" rowsep="|" style="left:287px; top:86px; width:178px; height:292px; text-align:center; ">
  478. <col ref="rsrvtm" format="hh:nn"/>
  479. <col ref="icount"/>
  480. <col ref="ocount"/>
  481. <col ref="scount"/>
  482. <col ref="max"/>
  483. <col ref="rsrvflag" visibility="hidden"/>
  484. <script type="javascript" ev:event="ondblclick">
  485. <![CDATA[
  486. opener.model.makeValue("/root/send/rsrvdd", model.getValue("/root/send/rsrvdd" ) );
  487. opener.model.makeValue("/root/main/rsrvposstmlist/rsrvposstm/possrsrvtm", model.getValue("/root/main/totalrsrvlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm" ) );
  488. opener.model.makeValue("/root/main/subordlist/subordlist1/excuroomcd", model.getValue("/root/send/excuroomcd" ) );
  489. window.close();
  490. ]]>
  491. </script>
  492. </datagrid>
  493. <caption id="caption2" class="tit_2" style="left:290px; top:67px; width:95px; height:13px; ">예약시간</caption>
  494. <line id="line1" class="line_1" style="x1:287px; y1:81px; x2:465px; y2:81px; "/>
  495. <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:175px; top:175px; width:175px; height:170px; ">
  496. <col ref="rsrvdd"/>
  497. <col ref="count"/>
  498. <col ref="max"/>
  499. </datagrid>
  500. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">예약시간 조회</caption>
  501. <caption id="caption7" class="cell_1" style="left:4px; top:22px; width:105px; height:23px; ">검사의(검사실)</caption>
  502. <group id="group2" style="left:3px; top:18px; width:462px; height:40px; vertical-align:top; ">
  503. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:462px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  504. <caption id="caption3" class="search_name" style="left:16px; top:12px; width:86px; height:17px; ">검사실 :</caption>
  505. <select1 id="cmb_excuroom" ref="/root/send/excuroomcd" class="combo_default" visibility="visible" appearance="minimal" style="left:100px; top:11px; width:146px; height:19px; ">
  506. <choices>
  507. <itemset nodeset="/root/init/roomcmb_info/initexecroom">
  508. <label ref="excuroomcdnm"/>
  509. <value ref="excuroomcdid"/>
  510. </itemset>
  511. </choices>
  512. <script type="javascript" ev:event="xforms-select">
  513. <![CDATA[
  514. model.setValue("/root/hidden/grdcellcolor/bfcalrow","");
  515. model.setValue("/root/hidden/grdcellcolor/bfcalrow","");
  516. model.setValue("/root/hidden/grdcellcolor/calrow","");
  517. model.setValue("/root/hidden/grdcellcolor/calcol","");
  518. model.setValue("/root/hidden/grdcellcolor/color","");
  519. //처방선택시 자동으로 달력에서 오늘날짜 onclick 이벤트 처리
  520. initCalendar();
  521. setCurrentDate();
  522. getRsrvPossTm(grd_calendar);
  523. ]]>
  524. </script>
  525. </select1>
  526. <output id="opt_patnm" ref="/root/hidden/prcpgenrflag/gubn" class="output_fix" visibility="hidden" style="left:295px; top:11px; width:64px; height:19px; text-align:center; "/>
  527. </group>
  528. <line id="line2" class="line_1" style="x1:3px; y1:380px; x2:464px; y2:380px; "/>
  529. <line id="line6" class="line_3" style="x1:3px; y1:431px; x2:464px; y2:431px; "/>
  530. <caption id="caption16" class="cell_1" style="left:3px; top:385px; width:66px; height:45px; vertical-align:middle; ">휴검내역</caption>
  531. <textarea id="txt_vacation" ref="/root/main/totalrsrvlist/vacation/updtresndesc" style="left:70px; top:385px; width:394px; height:45px; "/>
  532. </group>
  533. <group id="group1" scroll="auto" style="left:10px; top:444px; width:470px; height:34px; ">
  534. <button id="btn_cfm" class="btn4_letter2" style="left:404px; top:7px; width:56px; height:22px; ">
  535. <caption>확인</caption>
  536. <script type="javascript" ev:event="DOMActivate">
  537. <![CDATA[
  538. opener.model.makeValue("/root/send/rsrvdd", model.getValue("/root/send/rsrvdd" ) );
  539. opener.model.makeValue("/root/main/rsrvposstmlist/rsrvposstm/possrsrvtm", model.getValue("/root/main/totalrsrvlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm" ) );
  540. opener.model.makeValue("/root/main/subordlist/subordlist1/excuroomcd", model.getValue("/root/send/excuroomcd" ) );
  541. window.close();
  542. ]]>
  543. </script>
  544. </button>
  545. <shape id="roundrect2" class="roundrect_example" appearance="roundrect" style="left:0px; top:1px; width:220px; height:30px; "/>
  546. <caption id="caption51" style="left:163px; top:10px; width:50px; height:14px; ">예약가능</caption>
  547. <caption id="caption53" class="color_2" style="left:145px; top:9px; width:15px; height:15px; background-color:#c4e693; "/>
  548. <caption id="caption55" style="left:116px; top:10px; width:32px; height:14px; ">선택</caption>
  549. <caption id="caption35" style="left:99px; top:9px; width:15px; height:15px; background-color:#daa7d9; "/>
  550. <caption id="caption36" style="left:69px; top:10px; width:32px; height:14px; ">오늘</caption>
  551. <caption id="caption47" class="cell_2" style="left:6px; top:6px; width:42px; height:20px; ">범례</caption>
  552. <caption id="caption49" style="left:53px; top:9px; width:15px; height:15px; background-color:#ffcc66; "/>
  553. </group>
  554. <datagrid id="datagrid3" nodeset="/root/init/calenlist/calendinfo" visibility="hidden" caption="caption1^caption2" colsep="^" colwidth="100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:20px; top:210px; width:220px; height:150px; ">
  555. <col ref="basedd"/>
  556. <col ref="dutflag"/>
  557. </datagrid>
  558. <datagrid id="datagrid1" nodeset="/root/main/rsrvprescondlist/rsrvprescond" caption="예약일시^등록번호^환자명^성별/나이^처방코드^처방명^처방과(처방의)^처방일시^예약사항^처방전달사항^임상소견^입원외래구분^처방상태^caption1^caption2^caption3^전화번호" colsep="^" colwidth="106, 65, 73, 65, 100, 280, 124, 105, 129, 200, 200, 82, 85, 19, 12, 16" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:490px; top:5px; width:680px; height:470px; ">
  559. <col ref="rsrvtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  560. <col ref="pid"/>
  561. <col ref="hngnm"/>
  562. <col ref="age" style="text-align:center; "/>
  563. <col ref="prcpcd"/>
  564. <col ref="prcpnm"/>
  565. <col ref="usernm"/>
  566. <col ref="prcpdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  567. <col ref="rsrvrem"/>
  568. <col ref="prcpdelivefact"/>
  569. <col ref="clinccmtcnts"/>
  570. <col disabled="true" ref="prcpgenrflag" type="combo">
  571. <choices>
  572. <itemset nodeset="/root/init2/cmb_info2/prcpgenrflag/M0010">
  573. <label ref="cdnm"/>
  574. <value ref="cdid"/>
  575. </itemset>
  576. </choices>
  577. </col>
  578. <col disabled="true" ref="execprcpstatcd" type="combo">
  579. <choices>
  580. <itemset nodeset="/root/init2/cmb_info2/initexecprcpstatcd/M0011">
  581. <label ref="cdnm"/>
  582. <value ref="cdid"/>
  583. </itemset>
  584. </choices>
  585. </col>
  586. <col ref="roomcd" visibility="hidden"/>
  587. <col ref="fromdd" visibility="hidden"/>
  588. <col ref="todd" visibility="hidden"/>
  589. <col ref="phonum"/>
  590. <!-- *ast_2 진상찬 전화번호추가-->
  591. <script type="javascript" ev:event="onaftersort">
  592. <![CDATA[
  593. // datagrid1.gridToInstance();
  594. // if (model.getValue("/root/init/baseinfo/initmerge/A510[" + 1 + "]/cdid") == "Y"){
  595. // fMerge();
  596. // }
  597. ]]>
  598. </script>
  599. <script type="javascript" ev:event="ondblclick">
  600. <![CDATA[
  601. // var main = getMainViewer();
  602. // var pidValue = model.getValue("/root/main/rsrvprescondlist/rsrvprescond[" + datagrid1.row + "]/pid");
  603. // main.window.model.makeValue("/root/send/data/srchpid", pidValue);
  604. // main.window.javascript.navigate("SMAEA02000", "","","", "SMAEA02000", "/root/send/data/srchpid","/root/send/data/srchpid");
  605. ]]>
  606. </script>
  607. </datagrid>
  608. </xhtml:body>
  609. </xhtml:html>