SMAHA04210_검사실별예약현황조회.xrw 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900
  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. <![CDATA[desupp]]>
  6. <xhtml:title>검사실별 예약현황조회</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <sublist>
  12. <item>
  13. <healexamdetlflag/>
  14. <pid/>
  15. <hngnm/>
  16. <statflag/>
  17. <rrgstno/>
  18. <rsrvdd/>
  19. <acptdd/>
  20. <hometel/>
  21. <mpphontel/>
  22. <email/>
  23. </item>
  24. </sublist>
  25. </main>
  26. <send>
  27. <rsrvfromdd/>
  28. <rsrvtodd/>
  29. <rsrvflag/>
  30. <excuroomcd/>
  31. <globalinstance>
  32. <instance1/>
  33. </globalinstance>
  34. <prsrvfromdd/>
  35. <prsrvtodd/>
  36. <psuppdeptcd/>
  37. <pexcuroomcd/>
  38. <unexecyn/>
  39. <printgubn/>
  40. <healexamdetlflag/>
  41. <data>
  42. <rsrvdd/>
  43. <rsrvdate/>
  44. </data>
  45. <reqdata>
  46. <rsrvfromdd/>
  47. <rsrvtodd/>
  48. <suppdeptcd/>
  49. <excuroomcd/>
  50. <execrid/>
  51. <instcd/>
  52. <room/>
  53. </reqdata>
  54. </send>
  55. <init>
  56. <cmb_info>
  57. <excuroomcdlist>
  58. <excuroom>
  59. <testroomcd/>
  60. <testroomnm/>
  61. </excuroom>
  62. </excuroomcdlist>
  63. </cmb_info>
  64. <curerprescondlist>
  65. <curerprescond>
  66. <userid/>
  67. <usernm/>
  68. </curerprescond>
  69. <rsrvcalendar>
  70. <rsrvdd/>
  71. <count/>
  72. <max/>
  73. </rsrvcalendar>
  74. <orddeptlist>
  75. <orddeptcd/>
  76. </orddeptlist>
  77. </curerprescondlist>
  78. <calenlist>
  79. <calendinfo>
  80. <basedd/>
  81. <dutflag/>
  82. </calendinfo>
  83. </calenlist>
  84. <baseinfo>
  85. <statflag/>
  86. <healexamdetlflag/>
  87. </baseinfo>
  88. <baseinfo1>
  89. <healexamdetlflag/>
  90. </baseinfo1>
  91. </init>
  92. <init2>
  93. <cmb_info>
  94. <initexecprcpstatcd>
  95. <M0011>
  96. <cdid/>
  97. <cdnm/>
  98. </M0011>
  99. </initexecprcpstatcd>
  100. <prcpgenrflag>
  101. </prcpgenrflag>
  102. </cmb_info>
  103. </init2>
  104. <hidden>
  105. <calendar>
  106. <year/>
  107. <month/>
  108. <weeklist>
  109. <list>
  110. <sun/>
  111. <mon/>
  112. <tue/>
  113. <wed/>
  114. <thu/>
  115. <fri/>
  116. <sat/>
  117. <sun_memo/>
  118. <mon_memo/>
  119. <tue_memo/>
  120. <wed_memo/>
  121. <thu_memo/>
  122. <fri_memo/>
  123. <sat_memo/>
  124. </list>
  125. </weeklist>
  126. <dd/>
  127. </calendar>
  128. <grdcellcolor>
  129. <calrow/>
  130. <calcol/>
  131. <bfcalrow/>
  132. <bfcalcol/>
  133. <color/>
  134. </grdcellcolor>
  135. </hidden>
  136. <temp>
  137. </temp>
  138. <init2>
  139. <cmb_info2>
  140. <initexcuroomcd>
  141. <excuroomcdnm/>
  142. <excuroomcdid/>
  143. </initexcuroomcd>
  144. </cmb_info2>
  145. </init2>
  146. </root>
  147. </instance>
  148. <bind id="bind_orddept" ref="/root/main/rsrvprescondlist/rsrvprescond/orddeptcd" readonly="../orddeptcd!=''"/>
  149. <bind id="bind_orddr" ref="/root/main/rsrvprescondlist/rsrvprescond/orddrid" readonly="../orddrid!=''"/>
  150. <bind id="bind_ward" ref="/root/main/rsrvprescondlist/rsrvprescond/wardcd" readonly="../wardcd!=''"/>
  151. <bind id="bind_room" ref="/root/main/rsrvprescondlist/rsrvprescond/roomcd" readonly="../roomcd!=''"/>
  152. <bind id="bind_excuroom" ref="/root/main/rsrvprescondlist/rsrvprescond/excuroomcd" readonly="../excuroomcd!=''"/>
  153. <submission id="TRZSD00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  154. <submission id="TRAHA04213" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/sublist"/>
  155. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  156. <submission id="TRAEA02012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/calenlist"/>
  157. <submission id="TRAHA04212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
  158. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  159. <submission id="TRAHA04211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/excuroomcdlist"/>
  160. <script type="javascript" ev:event="xforms-ready">
  161. <![CDATA[
  162. model.removeNodeset("/root/main/rsrvprescondlist/rsrvprescond");
  163. model.setValue("/root/send/rsrvfromdd", getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD"));
  164. model.setValue("/root/send/rsrvtodd", getCurrentDate());
  165. model.setValue("/root/send/prsrvfromdd", getCurrentDate());
  166. model.setValue("/root/send/prsrvtodd", getCurrentDate());
  167. zbcfGetCodeList( new Array("A0107", "A0069", "A0070"), new Array("/root/init/baseinfo/statflag", "/root/init/baseinfo/healexamdetlflag", "/root/init/baseinfo1/healexamdetlflag") );
  168. submit("TRZBC00101");
  169. copyNodesetType("/root/init/baseinfo/healexamdetlflag/A0069", "/root/init/baseinfo1/healexamdetlflag/A0070", "after", model, model);
  170. addComboItem("cmb_healexamdetlflag","전체","","above");
  171. model.setValue("/root/send/rsrvflag", "1");
  172. cmb_healexamdetlflag.select(0);
  173. model.refresh();
  174. submit("TRAHA04211", false); //검사실
  175. //model.setValue("/root/send/data/rsrvdd", getCurrentDate());
  176. initCalendar();
  177. setCurrentDate();
  178. model.refresh();
  179. ]]>
  180. </script>
  181. </model>
  182. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  183. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  184. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  185. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  186. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  187. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  188. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  189. <script type="javascript">
  190. <![CDATA[
  191. function getRsrvPossTm(gridObj) {
  192. var calRow = model.getValue("/root/hidden/grdcellcolor/calrow");
  193. var calCol = model.getValue("/root/hidden/grdcellcolor/calcol");
  194. if( calCol >= 7 )
  195. calCol -= 7;
  196. var yyyy = model.getValue("/root/hidden/calendar/year");
  197. var mm = model.getValue("/root/hidden/calendar/month");
  198. var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + gridObj.colAttribute(calCol, "ref"));
  199. if (getStringLength(dd) == 1) {
  200. dd = "0" + dd;
  201. }
  202. model.setValue("/root/send/rsrvtodd", yyyy + mm + dd);
  203. model.setValue("/root/send/data/rsrvdd", yyyy + mm + dd);
  204. model.setValue("/root/send/data/rsrvdate",model.getValue("/root/send/data/rsrvdd"));
  205. submit("TRAHA04213",false);
  206. model.refresh();
  207. }
  208. function initCalendar() {
  209. var curDate = getCurrentDate().toDate();
  210. model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
  211. model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
  212. //model.refresh();
  213. setCalendar(curDate);
  214. }
  215. function setCurrentDate() {
  216. var curDate = getCurrentDate().substr(6,2); //오늘날짜
  217. var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  218. if(curDate <10) {
  219. curDate= curDate.substr(1,1);
  220. }
  221. if(curWeek == "sun")
  222. model.setValue("/root/hidden/grdcellcolor/calcol",0);
  223. if(curWeek == "mon")
  224. model.setValue("/root/hidden/grdcellcolor/calcol",1);
  225. if(curWeek == "tue")
  226. model.setValue("/root/hidden/grdcellcolor/calcol",2);
  227. if(curWeek == "wed")
  228. model.setValue("/root/hidden/grdcellcolor/calcol",3);
  229. if(curWeek == "thu")
  230. model.setValue("/root/hidden/grdcellcolor/calcol",4);
  231. if(curWeek == "fri")
  232. model.setValue("/root/hidden/grdcellcolor/calcol",5);
  233. if(curWeek == "sat")
  234. model.setValue("/root/hidden/grdcellcolor/calcol",6);
  235. for(var i = 0 ; i <grd_calendar.rows; i++ ) {
  236. if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
  237. model.setValue("/root/hidden/grdcellcolor/calrow",i);
  238. }
  239. }
  240. setCellColor(grd_calendar);
  241. }
  242. function setCellColor(gridObj) {
  243. var calRow = 0; //현재선택
  244. var calCol = 0; //현재선택
  245. var bfcalRow = 0; //전에 선택
  246. var bfcalCol = 0; //전에 선택
  247. var white = 1; //#ffffff
  248. var green = 2; //#c4e693
  249. calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
  250. calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
  251. bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
  252. bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
  253. // 1. 원래 색으로 돌려놓기
  254. if(model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
  255. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  256. if( bfcalCol < 7 )
  257. bfcalCol += 7;
  258. else
  259. bfcalCol -= 7;
  260. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  261. }
  262. else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
  263. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  264. if( bfcalCol < 7 )
  265. bfcalCol += 7;
  266. else
  267. bfcalCol -= 7;
  268. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  269. }
  270. // 2. bf 인스턴스에 선택한 원래 셀 담아두기
  271. if(gridObj.cellStyle("background-color", calRow, calCol) == "white" ) {
  272. model.setValue("/root/hidden/grdcellcolor/color", "1");
  273. }
  274. if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
  275. model.setValue("/root/hidden/grdcellcolor/color", "2");
  276. }
  277. model.setValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
  278. model.setValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
  279. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  280. if( calCol < 7 )
  281. calCol += 7;
  282. else
  283. calCol -= 7;
  284. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  285. }
  286. function fGetCalendar(arg){
  287. var isMonth = model.getValue("/root/hidden/calendar/month");
  288. var isYear = model.getValue("/root/hidden/calendar/year");
  289. if(model.getValue("/root/hidden/calendar/month") < arg) {
  290. var num = arg- isMonth ;
  291. var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
  292. }
  293. if(model.getValue("/root/hidden/calendar/month") > arg) {
  294. var num = isMonth - arg ;
  295. var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
  296. }
  297. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  298. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  299. model.refresh();
  300. setCalendar(isDate);
  301. }
  302. function setCalendar(dateObj) {
  303. // 그리드 초기화
  304. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  305. model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
  306. grd_calendar.refresh();
  307. dateObj.setDate(1);
  308. var startDay = dateObj.getDay();
  309. var days = dateObj.getMonthDay();
  310. var rows = Math.ceil( ( startDay + days ) / 7 );
  311. /*
  312. for( var i = 0; i < rows; i++ )
  313. grd_calendar.addRow(false);
  314. grd_calendar.rebuild();
  315. */
  316. if (rows != grd_calendar.rows - 1){
  317. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  318. for( var i = 0; i < rows; i++ ){
  319. grd_calendar.addRow(false);
  320. }
  321. }else{
  322. model.setValue("/root/hidden/calendar/weeklist/list", "");
  323. }
  324. grd_calendar.refresh();
  325. var rowIndex = grd_calendar.fixedRows;
  326. var colIndex = startDay;
  327. for( var i = 1; i <= days; i++ ) {
  328. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  329. grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0/0";
  330. colIndex++;
  331. if( colIndex == 7 ) {
  332. colIndex = 0;
  333. rowIndex++;
  334. }
  335. }
  336. model.setValue("/root/send/data/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
  337. fCalendar();
  338. setRsrvPresCondByMonth();
  339. //submit("TRAHA04213");
  340. }
  341. function fCalendar(){
  342. if (submit("TRAEA02012")){
  343. var isMonth = model.getValue("/root/hidden/calendar/month");
  344. var isYear = model.getValue("/root/hidden/calendar/year");
  345. var isDate = (isYear+isMonth+1).toDate();
  346. var startDay = isDate.getDay();
  347. for (var i = 1; i < datagrid3.rows; i++) {
  348. var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
  349. var colidx = dd.toDate().getDay();
  350. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  351. //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  352. //alert("DD==" + dd + "==colidx==" + rowidx + "==rowidx");
  353. if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "8"){
  354. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "red";
  355. }else if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "4"){
  356. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "blue";
  357. }else{
  358. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "black";
  359. }
  360. }
  361. grd_calendar.refresh();
  362. }
  363. }
  364. function setCalendarinit(dateObj){
  365. dateObj.setDate(1);
  366. var startDay = dateObj.getDay();
  367. var days = dateObj.getMonthDay();
  368. var rowIndex = grd_calendar.fixedRows;
  369. var colIndex = startDay;
  370. for( var i = 1; i <= days; i++ ) {
  371. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  372. grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0/0";
  373. colIndex++;
  374. if( colIndex == 7 ) {
  375. colIndex = 0;
  376. rowIndex++;
  377. }
  378. }
  379. }
  380. function setRsrvPresCondByMonth() {
  381. if (model.getValue("/root/send/data/rsrvdd") == ""){
  382. return;
  383. }
  384. submit("TRAHA04212", false);
  385. grd_temp.refresh();
  386. var isMonth = model.getValue("/root/hidden/calendar/month");
  387. var isYear = model.getValue("/root/hidden/calendar/year");
  388. var isDate = (isYear+isMonth+1).toDate();
  389. var startDay = isDate.getDay();
  390. for (var i = 1; i < datagrid3.rows; i++) {
  391. var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
  392. var colidx = dd.toDate().getDay();
  393. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  394. //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  395. //alert("DD==" + dd + "==colidx==" + rowidx + "==rowidx");
  396. grd_calendar.cellStyle("background-color", rowidx, colidx) = "white";
  397. grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "white";
  398. }
  399. grd_calendar.refresh();
  400. //grd_calendar.rebuildStyle();
  401. for (var i = 1; i < grd_temp.rows; i++) {
  402. var dd = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/rsrvdd");
  403. var colidx = dd.toDate().getDay();
  404. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  405. grd_calendar.valueMatrix(rowidx, colidx+7) = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") + "/" + model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max") ;
  406. //예약가능일자 녹색주기
  407. //if(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") < model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max")){
  408. /*
  409. if(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") > "0"){
  410. grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
  411. grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#c4e693"; // #D9EFB9 < #C4E693 < #ABDC65
  412. }else{
  413. grd_calendar.cellStyle("background-color", rowidx, colidx) = "#ffffff";
  414. grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#ffffff"; // #D9EFB9 < #C4E693 < #ABDC65
  415. }
  416. */
  417. if(parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count")) < parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max"))){
  418. //alert("==" + parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count")) + "==" + parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max")));
  419. grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
  420. grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#c4e693"; // #D9EFB9 < #C4E693 < #ABDC65
  421. }
  422. }
  423. setCellColor(grd_calendar);
  424. submit("TRAHA04213");
  425. }
  426. ]]>
  427. </script>
  428. </xhtml:head>
  429. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  430. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  431. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:150px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">검사실별 예약현황조회</caption>
  432. </group>
  433. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  434. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  435. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:34px; background-color:#fffbf2; border-color:#ffd799; "/>
  436. <line id="line1" style="x1:1085px; y1:4px; x2:1085px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  437. <caption id="caption5" class="search_name" style="left:520px; top:8px; width:106px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검사/치료실 :</caption>
  438. <caption id="caption11" class="search_name" style="left:320px; top:8px; width:86px; height:17px; text-align:left; background-image:../../../com/commonweb/images/search_bullet1.gif; ">예약일자 :</caption>
  439. <button id="btn_sea" class="btn1_letter2" style="left:1100px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  440. <caption>조회</caption>
  441. <script type="javascript" ev:event="DOMActivate">
  442. <![CDATA[
  443. submit("TRAHA04213");
  444. model.refresh();
  445. ]]>
  446. </script>
  447. </button>
  448. <input id="ipt_fromdd" ref="/root/send/rsrvfromdd" class="input_default" visibility="hidden" inputtype="date" style="left:945px; top:5px; width:90px; height:19px; "/>
  449. <input id="ipt_todd" ref="/root/send/rsrvtodd" class="input_default" visibility="visible" inputtype="date" style="left:408px; top:8px; width:90px; height:19px; "/>
  450. <select1 id="cmb_excuroom" ref="/root/send/excuroomcd" class="combo_search" appearance="minimal" editmode="inputsearch" style="left:628px; top:7px; width:137px; height:19px; ">
  451. <choices>
  452. <itemset nodeset="/root/init/cmb_info/excuroomcdlist/excuroom">
  453. <label ref="testroomnm"/>
  454. <value ref="testroomcd"/>
  455. </itemset>
  456. </choices>
  457. <script type="javascript" ev:event="xforms-value-changed">
  458. <![CDATA[
  459. var isMonth = model.getValue("/root/hidden/calendar/month");
  460. var isYear = model.getValue("/root/hidden/calendar/year");
  461. var isDate = (isYear+isMonth+1).toDate();
  462. setCalendarinit(isDate);
  463. setRsrvPresCondByMonth();
  464. ]]>
  465. </script>
  466. </select1>
  467. <select1 id="radio1" ref="/root/send/rsrvflag" appearance="full" cols="2" overflow="visible" style="left:805px; top:8px; width:100px; height:20px; border-style:none; ">
  468. <choices>
  469. <item>
  470. <label>예약</label>
  471. <value>1</value>
  472. </item>
  473. <item>
  474. <label>접수</label>
  475. <value>2</value>
  476. </item>
  477. </choices>
  478. <script type="javascript" ev:event="xforms-value-changed">
  479. <![CDATA[
  480. var isMonth = model.getValue("/root/hidden/calendar/month");
  481. var isYear = model.getValue("/root/hidden/calendar/year");
  482. var isDate = (isYear+isMonth+1).toDate();
  483. setCalendarinit(isDate);
  484. setRsrvPresCondByMonth();
  485. ]]>
  486. </script>
  487. </select1>
  488. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:112px; height:17px; ">건진상세구분 :</caption>
  489. <select1 id="cmb_healexamdetlflag" ref="/root/send/healexamdetlflag" class="combo_default" navindex="1" appearance="minimal" style="left:133px; top:8px; width:172px; height:19px; ">
  490. <choices>
  491. <itemset nodeset="/root/init/baseinfo/healexamdetlflag/A0069">
  492. <label ref="cdnm"/>
  493. <value ref="cdid"/>
  494. </itemset>
  495. </choices>
  496. <script type="javascript" ev:event="xforms-value-changed">
  497. <![CDATA[
  498. var isMonth = model.getValue("/root/hidden/calendar/month");
  499. var isYear = model.getValue("/root/hidden/calendar/year");
  500. var isDate = (isYear+isMonth+1).toDate();
  501. setCalendarinit(isDate);
  502. setRsrvPresCondByMonth();
  503. ]]>
  504. </script>
  505. </select1>
  506. </group>
  507. <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  508. <button id="btn_excel" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1126px; top:48px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  509. <caption>엑셀저장</caption>
  510. <script type="javascript" ev:event="DOMActivate">
  511. <![CDATA[
  512. var file = window.fileDialog("save","","true","","xls","Excel Files(*.xls)|*.xls");
  513. if(file == "") return;
  514. grd_sublist.saveExcel(file, "sheet1");
  515. ]]>
  516. </script>
  517. </button>
  518. <caption id="caption12" class="tit_2" style="left:5px; top:55px; width:134px; height:13px; ">예약현황</caption>
  519. <shape id="roundrect2" class="roundrect_example" visibility="hidden" appearance="roundrect" ellipsewidth="10" ellipseheight="7" style="left:80px; top:50px; width:380px; height:19px; "/>
  520. <output id="opt_patientinfo" ref="/root/init/patinfo" visibility="hidden" style="left:80px; top:50px; width:380px; height:19px; "/>
  521. <group id="group4" scroll="auto" style="left:0px; top:73px; width:394px; height:55px; ">
  522. <shape id="rectangle2" class="calendar_header" appearance="rectangle" style="left:0px; top:3px; width:390px; height:52px; "/>
  523. <button id="button7" class="icon_month" style="left:20px; top:25px; width:27px; height:27px; ">
  524. <caption>1</caption>
  525. <script type="javascript" ev:event="DOMActivate">
  526. <![CDATA[
  527. if(opt_month.value!== "01") {
  528. fGetCalendar("01");
  529. }
  530. ]]>
  531. </script>
  532. </button>
  533. <button id="button8" class="icon_month" style="left:50px; top:25px; width:27px; height:27px; ">
  534. <caption>2</caption>
  535. <script type="javascript" ev:event="DOMActivate">
  536. <![CDATA[
  537. if(opt_month.value!== "02") {
  538. fGetCalendar("02");
  539. }
  540. ]]>
  541. </script>
  542. </button>
  543. <button id="button9" class="icon_month" style="left:80px; top:25px; width:27px; height:27px; ">
  544. <caption>3</caption>
  545. <script type="javascript" ev:event="DOMActivate">
  546. <![CDATA[
  547. if(opt_month.value!== "03") {
  548. fGetCalendar("03");
  549. }
  550. ]]>
  551. </script>
  552. </button>
  553. <button id="button10" class="icon_month" style="left:110px; top:25px; width:27px; height:27px; ">
  554. <caption>4</caption>
  555. <script type="javascript" ev:event="DOMActivate">
  556. <![CDATA[
  557. if(opt_month.value!== "04") {
  558. fGetCalendar("04");
  559. }
  560. ]]>
  561. </script>
  562. </button>
  563. <button id="button11" class="icon_month" style="left:140px; top:25px; width:27px; height:27px; ">
  564. <caption>5</caption>
  565. <script type="javascript" ev:event="DOMActivate">
  566. <![CDATA[
  567. if(opt_month.value!== "05") {
  568. fGetCalendar("05");
  569. }
  570. ]]>
  571. </script>
  572. </button>
  573. <button id="button12" class="icon_month" style="left:170px; top:25px; width:27px; height:27px; ">
  574. <caption>6</caption>
  575. <script type="javascript" ev:event="DOMActivate">
  576. <![CDATA[
  577. if(opt_month.value!== "06") {
  578. fGetCalendar("06");
  579. }
  580. ]]>
  581. </script>
  582. </button>
  583. <button id="button13" class="icon_month" style="left:200px; top:25px; width:27px; height:27px; ">
  584. <caption>7</caption>
  585. <script type="javascript" ev:event="DOMActivate">
  586. <![CDATA[
  587. if(opt_month.value!== "07") {
  588. fGetCalendar("07");
  589. }
  590. ]]>
  591. </script>
  592. </button>
  593. <button id="button14" class="icon_month" style="left:230px; top:25px; width:27px; height:27px; ">
  594. <caption>8</caption>
  595. <script type="javascript" ev:event="DOMActivate">
  596. <![CDATA[
  597. if(opt_month.value!== "08") {
  598. fGetCalendar("08");
  599. }
  600. ]]>
  601. </script>
  602. </button>
  603. <button id="button18" class="icon_month" style="left:260px; top:25px; width:27px; height:27px; ">
  604. <caption>9</caption>
  605. <script type="javascript" ev:event="DOMActivate">
  606. <![CDATA[
  607. if(opt_month.value!== "09") {
  608. fGetCalendar("09");
  609. }
  610. ]]>
  611. </script>
  612. </button>
  613. <button id="button19" class="icon_month" style="left:290px; top:25px; width:27px; height:27px; ">
  614. <caption>10</caption>
  615. <script type="javascript" ev:event="DOMActivate">
  616. <![CDATA[
  617. if(opt_month.value!== "10") {
  618. fGetCalendar("10");
  619. }
  620. ]]>
  621. </script>
  622. </button>
  623. <button id="button20" class="icon_month" style="left:320px; top:25px; width:27px; height:27px; ">
  624. <caption>11</caption>
  625. <script type="javascript" ev:event="DOMActivate">
  626. <![CDATA[
  627. if(opt_month.value!== "11") {
  628. fGetCalendar("11");
  629. }
  630. ]]>
  631. </script>
  632. </button>
  633. <button id="button21" class="icon_month" style="left:350px; top:25px; width:27px; height:27px; ">
  634. <caption>12</caption>
  635. <script type="javascript" ev:event="DOMActivate">
  636. <![CDATA[
  637. if(opt_month.value!== "12") {
  638. fGetCalendar("12");
  639. }
  640. ]]>
  641. </script>
  642. </button>
  643. <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:200px; top:2px; width:20px; height:19px; "/>
  644. <caption id="caption24" class="calendar_output" style="left:178px; top:2px; width:20px; height:19px; ">년</caption>
  645. <caption id="caption25" class="calendar_output" style="left:220px; top:2px; width:20px; height:19px; ">월</caption>
  646. <button id="button31" class="icon_next_year" style="left:270px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_y.gif; ">
  647. <caption/>
  648. <script type="javascript" ev:event="DOMActivate">
  649. <![CDATA[
  650. var isMonth = model.getValue("/root/hidden/calendar/month");
  651. var isYear = model.getValue("/root/hidden/calendar/year");
  652. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  653. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  654. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  655. model.refresh();
  656. setCalendar(isDate);
  657. // getCurerPresCond();
  658. ]]>
  659. </script>
  660. </button>
  661. <button id="button33" class="icon_pre_month" visibility="visible" style="left:121px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_m.gif; ">
  662. <caption/>
  663. <script type="javascript" ev:event="DOMActivate">
  664. <![CDATA[
  665. var isMonth = model.getValue("/root/hidden/calendar/month");
  666. var isYear = model.getValue("/root/hidden/calendar/year");
  667. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  668. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  669. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  670. model.refresh();
  671. /*
  672. if(model.getValue("/root/send/excuroomcd") == "") {
  673. messageBox("치료실","C002");
  674. return;
  675. }
  676. */
  677. setCalendar(isDate);
  678. ]]>
  679. </script>
  680. </button>
  681. <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:148px; top:2px; width:30px; height:19px; "/>
  682. <button id="button35" class="icon_next_month" visibility="visible" style="left:246px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_m.gif; ">
  683. <caption/>
  684. <script type="javascript" ev:event="DOMActivate">
  685. <![CDATA[
  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. /*
  693. if(model.getValue("/root/send/excuroomcd") == "") {
  694. messageBox("치료실","C002");
  695. return;
  696. }
  697. */
  698. setCalendar(isDate);
  699. ]]>
  700. </script>
  701. </button>
  702. <button id="button36" class="icon_pre_year" style="left:98px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_y.gif; ">
  703. <caption/>
  704. <script type="javascript" ev:event="DOMActivate">
  705. <![CDATA[
  706. var isMonth = model.getValue("/root/hidden/calendar/month");
  707. var isYear = model.getValue("/root/hidden/calendar/year");
  708. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  709. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  710. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  711. model.refresh();
  712. setCalendar(isDate);
  713. // getCurerPresCond();
  714. ]]>
  715. </script>
  716. </button>
  717. </group>
  718. <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="56, 55, 55, 55, 55, 56, 56" dataheight="20" extendlastcol="noscroll" focuscolor="transparent" rowsep="|" mergecellsfixedrows="bycolrec" style="left:0px; top:130px; width:390px; height:297px; ">
  719. <row>
  720. <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
  721. <col ref="mon" style="border-bottom-width:0px; "/>
  722. <col ref="tue" style="border-bottom-width:0px; "/>
  723. <col ref="wed" style="border-bottom-width:0px; "/>
  724. <col ref="thu" style="border-bottom-width:0px; "/>
  725. <col ref="fri" style="border-bottom-width:0px; "/>
  726. <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
  727. </row>
  728. <row>
  729. <col ref="sun_memo" style="border-top-width:0px; "/>
  730. <col ref="mon_memo" style="border-top-width:0px; "/>
  731. <col ref="tue_memo" style="border-top-width:0px; "/>
  732. <col ref="wed_memo" style="border-top-width:0px; "/>
  733. <col ref="thu_memo" style="border-top-width:0px; "/>
  734. <col ref="fri_memo" style="border-top-width:0px; "/>
  735. <col ref="sat_memo" style="border-top-width:0px; "/>
  736. </row>
  737. <script type="javascript" ev:event="onclick">
  738. <![CDATA[
  739. if(grd_calendar.row != 0 ) {
  740. model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
  741. model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
  742. setCellColor(grd_calendar);
  743. getRsrvPossTm(grd_calendar);
  744. var curDate = getCurrentDate().substr(0,8); //오늘날짜
  745. var rsrvdd = model.getValue("/root/send/data/rsrvdd"); //선택일자
  746. }
  747. ]]>
  748. </script>
  749. </multilinegrid>
  750. <datagrid id="grd_sublist" nodeset="/root/main/sublist/item" caption="건진상세구분^등록번호^환자명^상태^주민번호^예약일자^접수일자^연락처^휴대번호^E-Mail" colsep="^" colwidth="100, 81, 71, 88, 103, 81, 80, 100, 91, 138" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:395px; top:75px; width:798px; height:665px; ">
  751. <col ref="healexamdetlflag" type="combo">
  752. <choices>
  753. <itemset nodeset="/root/init/baseinfo/healexamdetlflag/A0069">
  754. <label ref="cdnm"/>
  755. <value ref="cdid"/>
  756. </itemset>
  757. </choices>
  758. </col>
  759. <col ref="pid"/>
  760. <col ref="hngnm"/>
  761. <col disabled="true" ref="statflag" type="combo">
  762. <choices>
  763. <itemset nodeset="/root/init/baseinfo/statflag/A0107">
  764. <label ref="cdnm"/>
  765. <value ref="cdid"/>
  766. </itemset>
  767. </choices>
  768. </col>
  769. <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
  770. <col ref="rsrvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  771. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  772. <col ref="hometel"/>
  773. <col ref="mpphontel" style="text-align:center; "/>
  774. <col ref="email"/>
  775. </datagrid>
  776. </group>
  777. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  778. <button id="btn_reset" class="btn4_letter3" style="left:1067px; top:3px; width:68px; height:22px; ">
  779. <caption>초기화</caption>
  780. <script type="javascript" ev:event="DOMActivate">
  781. <![CDATA[
  782. model.reset();
  783. ]]>
  784. </script>
  785. </button>
  786. <button id="btn_cls" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  787. <caption>닫기</caption>
  788. <close ev:event="DOMActivate"/>
  789. </button>
  790. </group>
  791. <datagrid id="datagrid3" nodeset="/root/init/calenlist/calendinfo" visibility="hidden" caption="caption1^caption2" colsep="^" colwidth="100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:645px; top:545px; width:220px; height:150px; ">
  792. <col ref="basedd"/>
  793. <col ref="dutflag"/>
  794. </datagrid>
  795. <datagrid id="grd_temp" nodeset="/root/init/curerprescondlist/rsrvcalendar" visibility="hidden" caption="일자(dd)^가용현황^max^caption3" colsep="^" colwidth="76, 62, 32" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:895px; top:545px; width:175px; height:170px; ">
  796. <col ref="rsrvdd"/>
  797. <col ref="count"/>
  798. <col ref="max"/>
  799. </datagrid>
  800. </xhtml:body>
  801. </xhtml:html>