SPMMB03700_수술예약스케줄관리.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>수술예약스케줄관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. </cond>
  12. <list>
  13. <out/>
  14. <in/>
  15. <er/>
  16. <op/>
  17. <pat/>
  18. <cnst/>
  19. </list>
  20. <schemain>
  21. <schemainlist/>
  22. <dutdatelist/>
  23. <carlendarlist/>
  24. </schemain>
  25. </main>
  26. <send>
  27. <search>
  28. <instcd/>
  29. <opschedt/>
  30. <perfdeptcd/>
  31. <baseym/>
  32. <scheperfdrid/>
  33. </search>
  34. <keeprow/>
  35. <keepcol/>
  36. </send>
  37. <hidden>
  38. <calendar>
  39. <year/>
  40. <month/>
  41. <perfdeptnm/>
  42. </calendar>
  43. </hidden>
  44. <init>
  45. <userscrnenvinfo/>
  46. </init>
  47. <temp>
  48. <list>
  49. <out/>
  50. <in/>
  51. <er/>
  52. <op/>
  53. <pat/>
  54. <cnst/>
  55. </list>
  56. </temp>
  57. <listval>
  58. <refdata/>
  59. <sizedata/>
  60. </listval>
  61. <popupmenu>
  62. <menu>
  63. <item>
  64. <name>컬럼 삭제</name>
  65. <func>fDelColOfGrd</func>
  66. </item>
  67. </menu>
  68. </popupmenu>
  69. </root>
  70. </instance>
  71. <submission id="TRMMO05708" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/schemain"/>
  72. <submission id="TRRPD20001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutdate" resultref="/root/main/dutdate"/>
  73. <script type="javascript" ev:event="xforms-ready">
  74. <![CDATA[
  75. fInitialize();
  76. ]]>
  77. </script>
  78. </model>
  79. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  83. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  85. <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMB03600.js"/>
  86. <script type="javascript">
  87. <![CDATA[
  88. // 초기화
  89. function fInitialize(){
  90. var opschedt = opener.javascript.getParameter("SMMMO05700_param_opschedt");
  91. var perfdeptcd = opener.javascript.getParameter("SMMMO05700_param_perfdeptcd");
  92. var perfdeptnm = opener.javascript.getParameter("SMMMO05700_param_perfdeptnm");
  93. var scheperfdrid = opener.javascript.getParameter("SMMMO05700_param_scheperfdrid");
  94. var scheperfdrnm = opener.javascript.getParameter("SMMMO05700_param_scheperfdrnm");
  95. model.setValue("/root/send/search/instcd" , getUserInfo("dutplceinstcd") );
  96. model.setValue("/root/send/search/opschedt" , opschedt );
  97. model.setValue("/root/send/search/perfdeptcd" , perfdeptcd );
  98. model.setValue("/root/send/search/baseym" , opschedt.substring(0,6) );
  99. model.setValue("/root/send/search/scheperfdrid" , scheperfdrid );
  100. if( scheperfdrid != "" )
  101. model.setValue("/root/hidden/calendar/perfdeptnm" , "【" + perfdeptnm + " - " + scheperfdrnm + " 】" );
  102. else
  103. model.setValue("/root/hidden/calendar/perfdeptnm" , "【" + perfdeptnm + " - 전체 】" );
  104. model.setValue("/root/hidden/calendar/year" , opschedt.substring(0,4) );
  105. model.setValue("/root/hidden/calendar/month" , opschedt.substring(4,6) );
  106. // 조회
  107. fSearch();
  108. model.refresh();
  109. }
  110. // 조회
  111. function fSearch() {
  112. if(submit("TRMMO05708")){
  113. setCalendar();
  114. fSetColorHoliday();
  115. }
  116. }
  117. function setCellColor(gridObj) {
  118. var calRow = gridObj.row;
  119. var calCol = gridObj.col;
  120. var keepRow = model.getValue("/root/send/keeprow");
  121. var keepCol = model.getValue("/root/send/keepcol");
  122. var tmpCalCol;
  123. if( calCol < 7 )
  124. tmpCalCol = calCol + 7;
  125. else
  126. tmpCalCol = calCol - 7;
  127. fSetColorDay();
  128. gridObj.cellStyle("background-color", calRow, calCol, calRow, calCol) = "#ffcc66";
  129. model.refresh();
  130. }
  131. function fSetColorDay(){
  132. for( var i = 1; i <= grd_calendar.rows; i++ ){
  133. for( var j = 1; j <= grd_calendar.cols; j++ ){
  134. grd_calendar.cellStyle("background-color", i, j, i, j) = "transparent";
  135. }
  136. }
  137. }
  138. // 일자별 표시기능
  139. function fSetColorHoliday(){
  140. var dutCnt = getNodesetCount("/root/main/schemain/dutdatelist");
  141. var array = new Array("sun", "mon","tue","wed","thu","fri","sat");
  142. var dd = "";
  143. var holinm = "";
  144. var value = "";
  145. var daytxt = "";
  146. for( var i = 1; i <= grd_calendar.rows; i++ ){
  147. daytxt = "";
  148. for( var j = 0; j < array.length ; j++ ){
  149. value = grd_calendar.valueMatrix(i,grd_calendar.colRef(array[j]));
  150. if( value.length == 1 ) daytxt = "0" + value;
  151. else daytxt= value;
  152. for( var a = 1; a <= dutCnt; a++ ){
  153. dd = model.getValue("/root/main/schemain/dutdatelist[" + a + "]/schday");
  154. holinm = model.getValue("/root/main/schemain/dutdatelist[" + a + "]/holinm");
  155. if( daytxt == dd ){
  156. if( model.getValue("/root/main/schemain/dutdatelist[" + a + "]/dutflag") == "8" ){
  157. grd_calendar.cellstyle("color", i, grd_calendar.colRef(array[j]), i, grd_calendar.colRef(array[j])) = "#ff0000";
  158. if(holinm != "") grd_calendar.valueMatrix(i,grd_calendar.colRef(array[j])) = value + " ( " + holinm + " )";
  159. }else if( model.getValue("/root/main/schemain/dutdatelist[" + a + "]/dutflag") == "4" ){
  160. grd_calendar.cellstyle("color", i, grd_calendar.colRef(array[j]), i, grd_calendar.colRef(array[j])) = "#3366ff";
  161. }else if( model.getValue("/root/main/schemain/dutdatelist[" + a + "]/dutflag") == "0" ){
  162. grd_calendar.cellstyle("color", i, grd_calendar.colRef(array[j]), i, grd_calendar.colRef(array[j])) = "#000000";
  163. }
  164. }
  165. }
  166. }
  167. }
  168. model.refresh();
  169. }
  170. function setCalendar(){
  171. model.removeNode("/root/hidden/calendar/weeklist");
  172. model.makeNode("/root/hidden/calendar/weeklist");
  173. var scheCnt = getNodesetCount("/root/main/schemain/schemainlist");
  174. var carCnt = getNodesetCount("/root/main/schemain/carlendarlist");
  175. var array = new Array("mon","tue","wed","thu","fri","sat","sun");
  176. for( var a = 1; a <= carCnt; a++ ){
  177. model.makeNode("/root/hidden/calendar/weeklist/list");
  178. model.makeValue("/root/hidden/calendar/weeklist/list[" + a + "]/mon", model.getValue("/root/main/schemain/carlendarlist[" + a + "]/mon") );
  179. model.makeValue("/root/hidden/calendar/weeklist/list[" + a + "]/tue", model.getValue("/root/main/schemain/carlendarlist[" + a + "]/tue") );
  180. model.makeValue("/root/hidden/calendar/weeklist/list[" + a + "]/wed", model.getValue("/root/main/schemain/carlendarlist[" + a + "]/wed") );
  181. model.makeValue("/root/hidden/calendar/weeklist/list[" + a + "]/thu", model.getValue("/root/main/schemain/carlendarlist[" + a + "]/thu") );
  182. model.makeValue("/root/hidden/calendar/weeklist/list[" + a + "]/fri", model.getValue("/root/main/schemain/carlendarlist[" + a + "]/fri") );
  183. model.makeValue("/root/hidden/calendar/weeklist/list[" + a + "]/sat", model.getValue("/root/main/schemain/carlendarlist[" + a + "]/sat") );
  184. model.makeValue("/root/hidden/calendar/weeklist/list[" + a + "]/sun", model.getValue("/root/main/schemain/carlendarlist[" + a + "]/sun") );
  185. for( var b = 0; b < array.length ; b++ ){
  186. model.makeNode("/root/hidden/calendar/weeklist/list[" + a + "]/" + array[b] + "_memo");
  187. model.makeNode("/root/hidden/calendar/weeklist/list[" + a + "]/" + array[b] + "_memo2");
  188. model.makeNode("/root/hidden/calendar/weeklist/list[" + a + "]/" + array[b] + "_memo3");
  189. model.makeNode("/root/hidden/calendar/weeklist/list[" + a + "]/" + array[b] + "_memo4");
  190. model.makeNode("/root/hidden/calendar/weeklist/list[" + a + "]/" + array[b] + "_memo5");
  191. }
  192. }
  193. var dd = "";
  194. var mon = "";
  195. var tue = "";
  196. var wed = "";
  197. var thu = "";
  198. var fri = "";
  199. var sat = "";
  200. var sun = "";
  201. var mondd = "";
  202. var tuedd = "";
  203. var weddd = "";
  204. var thudd = "";
  205. var fridd = "";
  206. var satdd = "";
  207. var sundd = "";
  208. var moncnt = 0;
  209. var tuecnt = 0;
  210. var wedcnt = 0;
  211. var thucnt = 0;
  212. var fricnt = 0;
  213. var satcnt = 0;
  214. var suncnt = 0;
  215. for( var i = 1; i <= carCnt ; i++ ){
  216. moncnt = 0;
  217. tuecnt = 0;
  218. wedcnt = 0;
  219. thucnt = 0;
  220. fricnt = 0;
  221. satcnt = 0;
  222. suncnt = 0;
  223. for( var j = 1; j <= scheCnt ; j++ ){
  224. dd = model.getValue("/root/main/schemain/schemainlist[" + j + "]/opschedd").substring(6,8);
  225. mon = model.getValue("/root/hidden/calendar/weeklist/list[" + i + "]/mon");
  226. tue = model.getValue("/root/hidden/calendar/weeklist/list[" + i + "]/tue");
  227. wed = model.getValue("/root/hidden/calendar/weeklist/list[" + i + "]/wed");
  228. thu = model.getValue("/root/hidden/calendar/weeklist/list[" + i + "]/thu");
  229. fri = model.getValue("/root/hidden/calendar/weeklist/list[" + i + "]/fri");
  230. sat = model.getValue("/root/hidden/calendar/weeklist/list[" + i + "]/sat");
  231. sun = model.getValue("/root/hidden/calendar/weeklist/list[" + i + "]/sun");
  232. if( mon.length == 1 ) mon = "0" + mon;
  233. if( tue.length == 1 ) tue = "0" + tue;
  234. if( wed.length == 1 ) wed = "0" + wed;
  235. if( thu.length == 1 ) thu = "0" + thu
  236. if( fri.length == 1 ) fri = "0" + fri;
  237. if( sat.length == 1 ) sat = "0" + sat;
  238. if( sun.length == 1 ) sun = "0" + sun;
  239. if( mon == dd ){
  240. if( moncnt == 0 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/mon_memo" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  241. if( moncnt == 1 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/mon_memo2" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  242. if( moncnt == 2 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/mon_memo3" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  243. if( moncnt == 3 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/mon_memo4" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  244. if( moncnt == 4 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/mon_memo5" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  245. if( moncnt == 5 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/mon" , model.getValue("/root/hidden/calendar/weeklist/list[" + i + "]/mon") + " ★" );
  246. moncnt++;
  247. }
  248. if( tue == dd ){
  249. if( tuecnt == 0 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/tue_memo" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  250. if( tuecnt == 1 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/tue_memo2" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  251. if( tuecnt == 2 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/tue_memo3" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  252. if( tuecnt == 3 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/tue_memo4" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  253. if( tuecnt == 4 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/tue_memo5" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  254. if( tuecnt == 5 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/tue" , model.getValue("/root/hidden/calendar/weeklist/list[" + i + "]/tue") + " ★" );
  255. tuecnt++;
  256. }
  257. if( wed == dd ){
  258. if( wedcnt == 0 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/wed_memo" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  259. if( wedcnt == 1 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/wed_memo2" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  260. if( wedcnt == 2 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/wed_memo3" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  261. if( wedcnt == 3 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/wed_memo4" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  262. if( wedcnt == 4 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/wed_memo5" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  263. if( wedcnt == 5 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/wed" , model.getValue("/root/hidden/calendar/weeklist/list[" + i + "]/wed") + " ★" );
  264. wedcnt++;
  265. }
  266. if( thu == dd ){
  267. if( thucnt == 0 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/thu_memo" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  268. if( thucnt == 1 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/thu_memo2" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  269. if( thucnt == 2 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/thu_memo3" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  270. if( thucnt == 3 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/thu_memo4" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  271. if( thucnt == 4 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/thu_memo5" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  272. if( thucnt == 5 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/thu" , model.getValue("/root/hidden/calendar/weeklist/list[" + i + "]/thu") + " ★" );
  273. thucnt++;
  274. }
  275. if( fri == dd ){
  276. if( fricnt == 0 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/fri_memo" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  277. if( fricnt == 1 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/fri_memo2" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  278. if( fricnt == 2 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/fri_memo3" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  279. if( fricnt == 3 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/fri_memo4" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  280. if( fricnt == 4 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/fri_memo5" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  281. if( fricnt == 5 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/fri" , model.getValue("/root/hidden/calendar/weeklist/list[" + i + "]/fri") + " ★" );
  282. fricnt++;
  283. }
  284. if( sat == dd ){
  285. if( satcnt == 0 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/sat_memo" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  286. if( satcnt == 1 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/sat_memo2" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  287. if( satcnt == 2 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/sat_memo3" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  288. if( satcnt == 3 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/sat_memo4" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  289. if( satcnt == 4 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/sat_memo5" , model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  290. if( satcnt == 5 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/sat" , model.getValue("/root/hidden/calendar/weeklist/list[" + i + "]/sat") + " ★" );
  291. satcnt++;
  292. }
  293. if( sun == dd ){
  294. if( suncnt == 0 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/sun_memo", model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  295. if( suncnt == 1 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/sun_memo2", model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  296. if( suncnt == 2 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/sun_memo3", model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  297. if( suncnt == 3 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/sun_memo4", model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  298. if( suncnt == 4 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/sun_memo5", model.getValue("/root/main/schemain/schemainlist[" + j + "]/schetxt") );
  299. if( suncnt == 5 ) model.setValue("/root/hidden/calendar/weeklist/list[" + i + "]/sun" , model.getValue("/root/hidden/calendar/weeklist/list[" + i + "]/sun") + " ★" );
  300. suncnt++;
  301. }
  302. }
  303. }
  304. model.refresh();
  305. }
  306. ]]>
  307. </script>
  308. </xhtml:head>
  309. <xhtml:body scroll="auto" pagewidth="1210" pageheight="880" guideline="1,1197;2,873;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  310. <button id="button3" class="btn6_letter2" style="left:1125px; top:30px; width:56px; height:22px; ">
  311. <caption>닫기</caption>
  312. <script type="javascript" ev:event="DOMActivate">
  313. <![CDATA[
  314. window.close();
  315. ]]>
  316. </script>
  317. </button>
  318. <caption id="caption11" class="tit_1" style="left:0px; top:13px; width:220px; height:2px; vertical-align:middle; ">수술 예약 스케줄 관리</caption>
  319. <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="70, 207, 207, 207, 207, 207, 70" ellipsis="true" extendlastcol="scroll" focuscolor="transparent" rowsep="|" tooltip="true" mergecellsfixedrows="bycolrec" style="left:0px; top:62px; width:1185px; height:793px; ">
  320. <row>
  321. <col class="color_sun" ref="sun" style="font-weight:bold; text-align:left; border-bottom-width:0px; "/>
  322. <col ref="mon" style="font-weight:bold; text-align:left; border-bottom-width:0px; "/>
  323. <col ref="tue" style="font-weight:bold; text-align:left; border-bottom-width:0px; "/>
  324. <col ref="wed" style="font-weight:bold; text-align:left; border-bottom-width:0px; "/>
  325. <col ref="thu" style="font-weight:bold; text-align:left; border-bottom-width:0px; "/>
  326. <col ref="fri" style="font-weight:bold; text-align:left; border-bottom-width:0px; "/>
  327. <col class="color_sat" ref="sat" style="font-weight:bold; text-align:left; border-bottom-width:0px; "/>
  328. </row>
  329. <row>
  330. <col ref="sun_memo" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  331. <col ref="mon_memo" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  332. <col ref="tue_memo" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  333. <col ref="wed_memo" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  334. <col ref="thu_memo" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  335. <col ref="fri_memo" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  336. <col ref="sat_memo" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  337. </row>
  338. <script type="javascript" ev:event="onclick">
  339. <![CDATA[
  340. ]]>
  341. </script>
  342. <script type="javascript" ev:event="onrowchanged">
  343. <![CDATA[
  344. setCellColor(grd_calendar);
  345. ]]>
  346. </script>
  347. <script type="javascript" ev:event="oncolchanged">
  348. <![CDATA[
  349. setCellColor(grd_calendar);
  350. ]]>
  351. </script>
  352. <row>
  353. <col ref="sun_memo2" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  354. <col ref="mon_memo2" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  355. <col ref="tue_memo2" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  356. <col ref="wed_memo2" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  357. <col ref="thu_memo2" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  358. <col ref="fri_memo2" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  359. <col ref="sat_memo2" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  360. </row>
  361. <row>
  362. <col ref="sun_memo3" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  363. <col ref="mon_memo3" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  364. <col ref="tue_memo3" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  365. <col ref="wed_memo3" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  366. <col ref="thu_memo3" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  367. <col ref="fri_memo3" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  368. <col ref="sat_memo3" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  369. </row>
  370. <row>
  371. <col ref="sun_memo4" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  372. <col ref="mon_memo4" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  373. <col ref="tue_memo4" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  374. <col ref="wed_memo4" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  375. <col ref="thu_memo4" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  376. <col ref="fri_memo4" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  377. <col ref="sat_memo4" style="text-align:left; border-top-width:0px; border-bottom-width:0px; "/>
  378. </row>
  379. <row>
  380. <col ref="sun_memo5" style="text-align:left; border-top-width:0px; "/>
  381. <col ref="mon_memo5" style="text-align:left; border-top-width:0px; "/>
  382. <col ref="tue_memo5" style="text-align:left; border-top-width:0px; "/>
  383. <col ref="wed_memo5" style="text-align:left; border-top-width:0px; "/>
  384. <col ref="thu_memo5" style="text-align:left; border-top-width:0px; "/>
  385. <col ref="fri_memo5" style="text-align:left; border-top-width:0px; "/>
  386. <col ref="sat_memo5" style="text-align:left; border-top-width:0px; "/>
  387. </row>
  388. <script type="javascript" ev:event="ondblclick">
  389. <![CDATA[
  390. if( grd_calendar.col == grd_calendar.colRef("sun") || grd_calendar.col == grd_calendar.colRef("mon") ||
  391. grd_calendar.col == grd_calendar.colRef("tue") || grd_calendar.col == grd_calendar.colRef("wed") ||
  392. grd_calendar.col == grd_calendar.colRef("thu") || grd_calendar.col == grd_calendar.colRef("fri") ||
  393. grd_calendar.col == grd_calendar.colRef("sat") ){
  394. var month = model.getValue("/root/hidden/calendar/month");
  395. var year = model.getValue("/root/hidden/calendar/year");
  396. setParameter("SPMMB03700_param_opschedt" , year+month );
  397. setParameter("SPMMB03700_param_opscheday" , grd_calendar.valueMatrix(grd_calendar.row, grd_calendar.col).substring(0,2) );
  398. setParameter("SPMMB03700_param_perfdrid" , model.getValue("/root/send/search/scheperfdrid"));
  399. setParameter("SPMMB03700_param_perfdeptcd" , model.getValue("/root/send/search/perfdeptcd"));
  400. open("SPMMB03800");
  401. }
  402. ]]>
  403. </script>
  404. </multilinegrid>
  405. <datagrid id="grd_schemainlist" nodeset="/root/main/schemain/schemainlist" visibility="hidden" caption="날짜^예약TEXT" colsep="^" colwidth="90, 316, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:495px; width:550px; height:241px; ">
  406. <col ref="opschedd" style="text-align:center; "/>
  407. <col ref="schetxt" style="text-align:left; "/>
  408. <col ref="instcd"/>
  409. </datagrid>
  410. <group id="grp_calendar" style="left:770px; top:3px; width:285px; height:50px; background-color:#ffeeff; border-color:#ffccff; border-width:3px; border-style:solid; ">
  411. <output id="opt_month" ref="/root/hidden/calendar/month" autoresize="true" style="left:164px; top:-1px; width:50px; height:19px; font-family:맑은 고딕; font-size:22pt; font-weight:bold; color:#006600; text-align:right; vertical-align:top; letter-spacing:1; "/>
  412. <output id="opt_year" ref="/root/hidden/calendar/year" autoresize="true" style="left:34px; top:-1px; width:78px; height:19px; font-family:맑은 고딕; font-size:22pt; font-weight:bold; color:#006600; text-align:right; vertical-align:top; letter-spacing:1; "/>
  413. <caption id="caption3" style="left:211px; top:0px; width:35px; height:35px; font-family:맑은 고딕; font-size:20pt; font-weight:bold; color:#006600; vertical-align:top; ">월</caption>
  414. <caption id="caption2" style="left:114px; top:0px; width:35px; height:35px; font-family:맑은 고딕; font-size:20pt; font-weight:bold; color:#006600; vertical-align:top; ">년</caption>
  415. </group>
  416. <button id="button1" class="btn3_letter2" style="left:1065px; top:5px; width:56px; height:22px; ">
  417. <caption>출력</caption>
  418. <script type="javascript" ev:event="DOMActivate">
  419. <![CDATA[
  420. exeReportPreview("RPMMO03700", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  421. ]]>
  422. </script>
  423. </button>
  424. <line id="line3" class="line_1" style="x1:0px; y1:58px; x2:1185px; y2:58px; "/>
  425. <caption id="caption1" ref="/root/hidden/calendar/perfdeptnm" style="left:480px; top:15px; width:280px; height:35px; font-family:맑은 고딕; font-size:14pt; font-weight:bold; color:#cc0000; text-align:right; "/>
  426. <button id="button2" class="btn3_letter2" style="left:1125px; top:5px; width:56px; height:22px; ">
  427. <caption>엑셀</caption>
  428. <script type="javascript" ev:event="DOMActivate">
  429. <![CDATA[
  430. var fileName = window.fileDialog("save", ",", false, "수술예약스케줄_" + getCurrentDate() , "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  431. if (fileName != "")
  432. {
  433. grd_calendar.saveExcel(fileName, "exporttype:multi");
  434. }
  435. ]]>
  436. </script>
  437. </button>
  438. <button id="button4" class="btn1_letter2" style="left:1065px; top:30px; width:56px; height:22px; ">
  439. <caption>조회</caption>
  440. <script type="javascript" ev:event="DOMActivate">
  441. <![CDATA[
  442. fSearch();
  443. ]]>
  444. </script>
  445. </button>
  446. <caption id="caption4" style="left:5px; top:36px; width:295px; height:20px; font-weight:bold; color:#0033cc; ">※ 수술예약스케줄은 최대 5건까지 표현됩니다.</caption>
  447. <caption id="caption5" style="left:287px; top:39px; width:275px; height:15px; font-weight:bold; color:#006600; ">( 상세조회시, 날짜를 더블클릭 )</caption>
  448. </xhtml:body>
  449. </xhtml:html>