SMAEB00900_예약시간관리.xrw 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>예약시간관리</xhtml:title>
  6. <model id="model1">
  7. <![CDATA[//]]>
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <rsrvtmcreate>
  12. <rsrvtmlist>
  13. <rsrvno/>
  14. <rsrvtm/>
  15. <maxoutcnt/>
  16. <maxincnt/>
  17. <maxhealexamcnt/>
  18. <maxtrustcnt/>
  19. <maxallcnt/>
  20. <sum/>
  21. <rsrvdd/>
  22. <excuroomcd/>
  23. <suppdeptcd/>
  24. <openflag/>
  25. <pseudo/>
  26. <sortby/>
  27. <yeyakflag/>
  28. <allday/>
  29. </rsrvtmlist>
  30. </rsrvtmcreate>
  31. <rsrvtmappprescond>
  32. <rsrvtmlist>
  33. <rsrvno/>
  34. <rsrvtm/>
  35. <maxoutcnt/>
  36. <maxincnt/>
  37. <maxhealexamcnt/>
  38. <maxtrustcnt/>
  39. <maxallcnt/>
  40. <sum/>
  41. <rsrvdd/>
  42. <excuroomcd/>
  43. <suppdeptcd/>
  44. </rsrvtmlist>
  45. <rsrvtminfo>
  46. <rsrvtm/>
  47. <outcnt/>
  48. <incnt/>
  49. <healexamcnt/>
  50. <trustcnt/>
  51. <allcnt/>
  52. </rsrvtminfo>
  53. <updtresn>
  54. <updtresndesc/>
  55. </updtresn>
  56. </rsrvtmappprescond>
  57. </main>
  58. <send>
  59. <rsrvdd/>
  60. <excuroomcd/>
  61. <year/>
  62. <month/>
  63. <data2>
  64. <frdt/>
  65. <todt/>
  66. <excuroomcd/>
  67. <suppdeptcd/>
  68. </data2>
  69. <globalinstance>
  70. <instance1/>
  71. </globalinstance>
  72. <data3>
  73. <cmb_info>
  74. <initexecroom>
  75. <excuroomcdid/>
  76. </initexecroom>
  77. <suppdept>
  78. <suppdeptcd/>
  79. </suppdept>
  80. </cmb_info>
  81. </data3>
  82. <req>
  83. <data/>
  84. <flag/>
  85. </req>
  86. </send>
  87. <init>
  88. <cmb_info>
  89. <initexecroom>
  90. <excuroomcdid/>
  91. <excuroomcdnm/>
  92. </initexecroom>
  93. <suppdept>
  94. <suppdeptcd/>
  95. <depthngnm/>
  96. </suppdept>
  97. <initexcuroomcd>
  98. <excuroomcd/>
  99. </initexcuroomcd>
  100. </cmb_info>
  101. <curerprescondlist>
  102. <curerprescond>
  103. <userid/>
  104. <usernm/>
  105. </curerprescond>
  106. <rsrvcalendar>
  107. <rsrvdd/>
  108. <count/>
  109. <max/>
  110. </rsrvcalendar>
  111. </curerprescondlist>
  112. <calenlist>
  113. <calendinfo>
  114. <basedd/>
  115. <dutflag/>
  116. </calendinfo>
  117. </calenlist>
  118. <rsrvidinfo/>
  119. </init>
  120. <hidden>
  121. <tminfo>
  122. <frdt/>
  123. <todt/>
  124. <frtm/>
  125. <totm/>
  126. <term/>
  127. <icnt/>
  128. <ocnt/>
  129. <hcnt/>
  130. <tcnt/>
  131. <allcnt/>
  132. <gweekday/>
  133. <suppdept/>
  134. <rsrvdd/>
  135. <excuroomcd/>
  136. <allday/>
  137. <hofrdt/>
  138. <hotodt/>
  139. <gb>9</gb>
  140. </tminfo>
  141. <data/>
  142. <calendar>
  143. <year/>
  144. <month/>
  145. <weeklist>
  146. <list>
  147. <sun/>
  148. <mon/>
  149. <tue/>
  150. <wed/>
  151. <thu/>
  152. <fri/>
  153. <sat/>
  154. <sun_memo/>
  155. <mon_memo/>
  156. <tue_memo/>
  157. <wed_memo/>
  158. <thu_memo/>
  159. <fri_memo/>
  160. <sat_memo/>
  161. </list>
  162. </weeklist>
  163. </calendar>
  164. <rsrvdd>
  165. <rsrvtmlist>
  166. <rsrvdd/>
  167. <excuroomcd/>
  168. </rsrvtmlist>
  169. </rsrvdd>
  170. </hidden>
  171. </root>
  172. </instance>
  173. <script type="javascript" ev:event="xforms-ready">
  174. <![CDATA[
  175. aezfSetSuppDeptcd();
  176. ipt_startrsrvdd.value = getCurrentDate();
  177. ipt_endrsrvdd.value = getCurrentDate();
  178. //검사실코드 갖고오기
  179. submit("TRAEA01301", false);
  180. if( instance1.selectSingleNode("/root/init/cmb_info/suppdept[suppdeptcd='" + model.getValue("/root/send/globalinstance/instance1") + "']") == null ){
  181. caption15.visible = true;
  182. cmb_deptcd.visible = true;
  183. btn_crettm.disabled = true;
  184. btn_grdadd.disabled = true;
  185. btn_grddel.disabled = true;
  186. btn_save.disabled = true;
  187. button8.disabled = true;
  188. button19.disabled = true;
  189. button7.disabled = true;
  190. button39.disabled = true;
  191. btn_del.disabled = true;
  192. }else{
  193. caption15.visible = false;
  194. cmb_deptcd.visible = false;
  195. btn_crettm.disabled = false;
  196. btn_grdadd.disabled = false;
  197. btn_grddel.disabled = false;
  198. btn_save.disabled = false;
  199. button8.disabled = false;
  200. button19.disabled = false;
  201. button7.disabled = false;
  202. button39.disabled = false;
  203. btn_del.disabled = false;
  204. }
  205. //*********************************************************************************************************************************************
  206. //담당 검사실 갖고오기
  207. submit("TRAEA01115",false);
  208. //담당 검사실 세팅
  209. model.setValue("/root/send/data3/cmb_info/initexecroom/excuroomcdid",model.getValue("/root/init/cmb_info/initexcuroomcd[1]/excuroomcd"));
  210. //*********************************************************************************************************************************************
  211. model.setValue("/root/send/excuroomcd",model.getValue("root/send/data3/cmb_info/initexecroom/excuroomcdid"));
  212. fInitialize();
  213. //요청번호 : 20170420002, 신경과 검사실 업무제한요청건
  214. //20170424 by kya 진료지원 공통코드에서 수정자격 가져오기 'T0002'
  215. fSetAutho();
  216. // 처음 선택된 검사실의 월요일 시간이 조호됨.
  217. btn_mon.dispatch("DOMActivate");
  218. initCalendar();
  219. /*
  220. model.setValue("/root/hidden/tminfo/gweekday","00000001");
  221. fGetTime();
  222. model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
  223. initCalendar();
  224. submit("TRAEB00901", false);
  225. */
  226. fGridSetSum(grd_rsrvtmcreate);
  227. setGridRsrvddCheck();
  228. fRsrvtmmdf("select");
  229. model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
  230. model.refresh();
  231. ]]>
  232. </script>
  233. <submission id="TRAEB00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvtmcreate"/>
  234. <submission id="TXAEB00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden/data"/>
  235. <submission id="TXAEB00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden/data"/>
  236. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  237. <submission id="TRAEB00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvtmappprescond"/>
  238. <submission id="TRAEB00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvtmappprescond"/>
  239. <submission id="TXAEB00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden/data"/>
  240. <submission id="TXAEB00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/data"/>
  241. <submission id="TRAEB00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/rsrvdd"/>
  242. <submission id="TRAEA01107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
  243. <submission id="TRAEA02012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/calenlist"/>
  244. <submission id="TRAEA01115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  245. <submission id="TRAAA00001"/>
  246. </model>
  247. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  248. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  249. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  250. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  251. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  252. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  253. <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
  254. <script type="javascript">
  255. <![CDATA[
  256. function setGridRsrvddCheck() {
  257. // 해당하는 검사실에 따른 예약 달력에 표시
  258. model.setValue("/root/send/year",model.getValue("/root/hidden/calendar/year"));
  259. model.setValue("/root/send/month",model.getValue("/root/hidden/calendar/month"));
  260. submit("TRAEB00903");
  261. for (var i = 1; i < grd_temp.rows; i++) {
  262. var rsrvdd = model.getValue("/root/hidden/rsrvdd/rsrvtmlist[" + i + "]/rsrvdd"); // 예약날짜
  263. var isMonth = model.getValue("/root/hidden/calendar/month"); //현재 월
  264. var isYear = model.getValue("/root/hidden/calendar/year"); //현재 년도
  265. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y'); // 날짜형식으로
  266. var startDay = isDate.getDay(); // 현재 월의 시작 날짜
  267. var colidx = rsrvdd.toDate().getDay(); //시작날짜의 index
  268. for(var h = 1; h<grd_calendar.rows;h++) {
  269. for(var j = 0; j < 7 ; j++) {
  270. var dd = model.getValue("/root/hidden/calendar/weeklist/list["+h+"]/"+grd_calendar.colAttribute(j,"ref"));
  271. if(dd<10)
  272. dd= "0"+dd;
  273. // alert("rsrvdd : #"+rsrvdd.substr(6,2)+"# || dd : #"+dd+"# ("+h+" , "+j+")");
  274. if( dd == rsrvdd.substr(6,2)) {
  275. // alert( dd+ " = "+rsrvdd.substr(6,2));
  276. if(dd<10)
  277. dd=dd.substr(1,1);
  278. // model.setValue("/root/hidden/calendar/weeklist/list["+h+"]/"+grd_calendar.colAttribute(j,"ref"), dd );
  279. model.setValue("/root/hidden/calendar/weeklist/list["+h+"]/"+grd_calendar.colAttribute(j,"ref"), dd +" *");
  280. }
  281. }
  282. }
  283. }
  284. grd_calendar.refresh();
  285. }
  286. function initCalendar() {
  287. var curDate = getCurrentDate().toDate();
  288. model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
  289. model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
  290. model.refresh();
  291. setCalendar(curDate);
  292. }
  293. function setCalendar(dateObj) {
  294. // 그리드 초기화
  295. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  296. //grd_calendar.rebuild()
  297. dateObj.setDate(1);
  298. var startDay = dateObj.getDay();
  299. var days = dateObj.getMonthDay();
  300. var rows = Math.ceil( ( startDay + days ) / 7 );
  301. for( var i = 0; i < rows; i++ )
  302. grd_calendar.addRow(false);
  303. grd_calendar.rebuild();
  304. var rowIndex = grd_calendar.fixedRows;
  305. var colIndex = startDay;
  306. for( var i = 1; i <= days; i++ ) {
  307. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  308. colIndex++;
  309. if( colIndex == 7 ) {
  310. colIndex = 0;
  311. rowIndex++;
  312. }
  313. }
  314. model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
  315. fCalendar();
  316. setRsrvPresCondByMonth();
  317. }
  318. function setRsrvPresCondByMonth() {
  319. submit("TRAEA01107");
  320. var isMonth = model.getValue("/root/hidden/calendar/month");
  321. var isYear = model.getValue("/root/hidden/calendar/year");
  322. var isDate = (isYear+isMonth+1).toDate();
  323. var startDay = isDate.getDay();
  324. for (var i = 1; i < grd_temp1.rows; i++) {
  325. var dd = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/rsrvdd");
  326. var colidx = dd.toDate().getDay();
  327. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  328. grd_calendar.valueMatrix(rowidx, colidx+7) = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") + "/" + model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max") ;
  329. }
  330. }
  331. function fCalendar(){
  332. if (submit("TRAEA02012")){
  333. var isMonth = model.getValue("/root/hidden/calendar/month");
  334. var isYear = model.getValue("/root/hidden/calendar/year");
  335. var isDate = (isYear+isMonth+1).toDate();
  336. var startDay = isDate.getDay();
  337. for (var i = 1; i < datagrid3.rows; i++) {
  338. var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
  339. var colidx = dd.toDate().getDay();
  340. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  341. //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  342. //alert("i==" + i + "==dutflag==" + model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag"));
  343. if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "8"){
  344. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "red";
  345. }else if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "4"){
  346. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "blue";
  347. }else{
  348. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "black";
  349. }
  350. }
  351. grd_calendar.refresh();
  352. }
  353. }
  354. //==============================================================================================
  355. // 요청번호 : 20170420002, 신경과 검사실 업무제한요청건
  356. // 20170424 by kya 진료지원 공통코드에서 수정자격 가져오기 'T0003'
  357. //==============================================================================================
  358. function fSetAutho() {
  359. model.resetInstanceNode("/root/init/rsrvidinfo");
  360. suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
  361. astGetComboList( new Array("T0003"), new Array("/root/init/rsrvidinfo"), suppdeptcd );
  362. submit("TRAAA00001", false);
  363. var idx_rsrv = 0;
  364. var rsrvidCnt = getNodesetCount("/root/init/rsrvidinfo/T0003");
  365. for( var i = 1 ; i<= rsrvidCnt ; i++){
  366. if( model.getValue("/root/init/rsrvidinfo/T0003["+ i +"]/cdid") == getUserId() ){
  367. idx_rsrv++;
  368. }
  369. }
  370. //alert( "idx_rsrv = " + idx_rsrv );
  371. if( idx_rsrv == 0 ){
  372. btn_crettm.disabled = false;
  373. button39.disabled = false;
  374. btn_del.disabled = false;
  375. }else {
  376. btn_crettm.disabled = true;
  377. button39.disabled = true;
  378. btn_del.disabled = true;
  379. }
  380. }
  381. function setCellColor(gridObj) {
  382. var calRow = gridObj.row;
  383. var calCol = gridObj.col;
  384. if( calCol < 7 )
  385. calCol += 7;
  386. else
  387. calCol -= 7;
  388. //gridObj.rebuildStyle();
  389. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  390. }
  391. function fInitialize() {
  392. submit("TRAEA01301");
  393. model.refresh();
  394. }
  395. function fGenTime(gWeekDay){
  396. model.refresh();
  397. var frtm = model.getValue("/root/hidden/tminfo/frtm"); //시작일자
  398. var totm = model.getValue("/root/hidden/tminfo/totm"); //종료일자
  399. var term = model.getValue("/root/hidden/tminfo/term"); //간격
  400. if(!isValidDateTime(frtm, "hhmm")) {
  401. messageBox("시작 시간형식이 정확하지 않습니다. 다시", "C001");
  402. return;
  403. }
  404. if(!isValidDateTime(totm, "hhmm")) {
  405. messageBox("종료 시간형식이 정확하지 않습니다. 다시", "C001");
  406. return;
  407. }
  408. if(frtm > totm) {
  409. messageBox("시작시간이더 큽니다. 다시", "C001");
  410. return;
  411. }
  412. if(term == "") {
  413. messageBox("간격을", "C001");
  414. return;
  415. }
  416. var iTerm = parseInt(term);
  417. var tm = getTimeInterval(frtm, totm) / 60;
  418. if(iTerm > tm) {
  419. messageBox("시작시간과 종료시간의 차가 분간격보다 작습니다. 다시", "C001");
  420. return;
  421. }
  422. if (model.getValue("/root/hidden/tminfo/hofrdt") != ""){
  423. if(!isValidDateTime(model.getValue("/root/hidden/tminfo/hofrdt"), "hhmm")) {
  424. messageBox("휴무 시작 시간형식이 정확하지 않습니다. 다시", "C001");
  425. return;
  426. }
  427. }
  428. if (model.getValue("/root/hidden/tminfo/hotodt") != ""){
  429. if(!isValidDateTime(model.getValue("/root/hidden/tminfo/hotodt"), "hhmm")) {
  430. messageBox("휴무 종료 시간형식이 정확하지 않습니다. 다시", "C001");
  431. return;
  432. }
  433. }
  434. if (model.getValue("/root/hidden/tminfo/hofrdt") != ""){
  435. if (model.getValue("/root/hidden/tminfo/hotodt") == ""){
  436. messageBox("휴무 종료 시간을", "C001");
  437. return;
  438. }
  439. }
  440. if (model.getValue("/root/hidden/tminfo/hotodt") != ""){
  441. if (model.getValue("/root/hidden/tminfo/hofrdt") == ""){
  442. messageBox("휴무 시작 시간을", "C001");
  443. return;
  444. }
  445. }
  446. if (model.getValue("/root/hidden/tminfo/ocnt")== "" && model.getValue("/root/hidden/tminfo/icnt")== "" &&model.getValue("/root/hidden/tminfo/hcnt")== "" &&model.getValue("/root/hidden/tminfo/tcnt")== "" &&model.getValue("/root/hidden/tminfo/allcnt")== "" ){
  447. if (model.getValue("/root/hidden/tminfo/hofrdt") == ""){
  448. messageBox("외래/입원/건진/응급/ALL 중 해당인원을", "C001");
  449. return;
  450. }
  451. }
  452. var ocnt = model.getValue("/root/hidden/tminfo/ocnt");
  453. var icnt = model.getValue("/root/hidden/tminfo/icnt");
  454. var hcnt = model.getValue("/root/hidden/tminfo/hcnt");
  455. var tcnt = model.getValue("/root/hidden/tminfo/tcnt");
  456. var allcnt = model.getValue("/root/hidden/tminfo/allcnt");
  457. if(allcnt != "") {
  458. ocnt="0";
  459. icnt="0";
  460. hcnt="0";
  461. tcnt="0";
  462. }
  463. else if (allcnt =="") {
  464. allcnt ="0";
  465. }
  466. //기존것 삭제
  467. if (model.getValue("/root/hidden/tminfo/gb") != "2"){
  468. model.removeNodeset("/root/main/rsrvtmcreate/rsrvtmlist");
  469. }
  470. /*
  471. if (model.getValue("/root/hidden/tminfo/gb") == "9"){
  472. model.removeNodeset("/root/main/rsrvtmcreate/rsrvtmlist");
  473. }else if (model.getValue("/root/hidden/tminfo/gb") == "1"){
  474. for (var i = grd_rsrvtmcreate.rows;i < 1;i--){
  475. if (model.getValue("/root/main/rsrvtmcreate/rsrvtmlist[" + i + "]/rsrvtm") < "1201"){
  476. grd_rsrvtmcreate.deleteRow(i);
  477. }
  478. }
  479. }else if (model.getValue("/root/hidden/tminfo/gb") == "2"){
  480. for (var i = grd_rsrvtmcreate.rows;i < 1;i--){
  481. if (model.getValue("/root/main/rsrvtmcreate/rsrvtmlist[" + i + "]/rsrvtm") > "1200"){
  482. grd_rsrvtmcreate.deleteRow(i);
  483. }
  484. }
  485. }
  486. */
  487. // model.gridRebuild("grd_rsrvtmlist");
  488. grd_rsrvtmcreate.rebuild();
  489. model.refresh();
  490. frtm = "20040101" + frtm; //시간으로 변환하기 위해서 붙인다.
  491. totm = "20040101" + totm;
  492. var hofrtm = "20040101" + model.getValue("/root/hidden/tminfo/hofrdt");
  493. var hototm = "20040101" + model.getValue("/root/hidden/tminfo/hotodt");
  494. var hofrtm1 = model.getValue("/root/hidden/tminfo/hofrdt");
  495. var hototm1 = model.getValue("/root/hidden/tminfo/hotodt");
  496. var dFrtm = frtm.toDate("YYYYMMDDhhmm");
  497. var dTotm = totm.toDate("YYYYMMDDhhmm");
  498. //var row = 1;
  499. var row = grd_rsrvtmcreate.rows;
  500. var d = dFrtm;
  501. //var i = 1;
  502. var irow = grd_rsrvtmcreate.rows - 1;
  503. var i = model.getValue("/root/main/rsrvtmcreate/rsrvtmlist[" + irow + "]/rsrvno");
  504. if (i == "" || i == null){
  505. i = 1;
  506. }else{
  507. i = parseInt(i) + 1;
  508. }
  509. if (hofrtm1 != ""){
  510. dTotm = hofrtm.toDate("YYYYMMDDhhmm");
  511. }
  512. while(d < dTotm) {
  513. grd_rsrvtmcreate.addRow(false);
  514. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/rsrvno",i);
  515. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/rsrvtm", d.getDateFormat("hhmm"));
  516. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxoutcnt", ocnt);
  517. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxincnt", icnt);
  518. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxhealexamcnt", hcnt);
  519. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxtrustcnt", tcnt);
  520. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxallcnt", allcnt);
  521. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
  522. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/allday","day");
  523. fGridCellSum("grd_rsrvtmcreate", row);
  524. d = d.getAddDate(iTerm, "m");
  525. row++;
  526. i++;
  527. }
  528. //model.gridRefresh("grid1");
  529. if (hototm1 != "" && hototm <= totm ){
  530. d = hototm.toDate("YYYYMMDDhhmm");
  531. dTotm = totm.toDate("YYYYMMDDhhmm");
  532. while(d <= dTotm) {
  533. grd_rsrvtmcreate.addRow(false);
  534. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/rsrvno",i);
  535. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/rsrvtm", d.getDateFormat("hhmm"));
  536. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxoutcnt", ocnt);
  537. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxincnt", icnt);
  538. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxhealexamcnt", hcnt);
  539. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxtrustcnt", tcnt);
  540. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/maxallcnt", allcnt);
  541. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
  542. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist[" + row + "]/allday","day");
  543. fGridCellSum("grd_rsrvtmcreate", row);
  544. d = d.getAddDate(iTerm, "m");
  545. row++;
  546. i++;
  547. }
  548. }
  549. for (var i = 1; i < grd_rsrvtmcreate.rows;i++){
  550. grd_rsrvtmcreate.rowStatus(i) = 1;
  551. }
  552. grd_rsrvtmcreate.refresh();
  553. }
  554. //합계 내기
  555. function fGridCellSum(grid, row){
  556. var list = "";
  557. if(grid == "grd_rsrvtmcreate")
  558. list = "rsrvtmcreate";
  559. if(grid == "grd_rsrvtmappprescond")
  560. list = "rsrvtmappprescond";
  561. var maxoutcnt = model.getValue("/root/main/" + list + "/rsrvtmlist[" + row + "]/maxoutcnt");
  562. //maxoutcnt.lvStripWhite();
  563. var maxincnt = model.getValue("/root/main/" + list + "/rsrvtmlist[" + row + "]/maxincnt");
  564. //maxincnt.lvStripWhite();
  565. var maxhealexamcnt = model.getValue("/root/main/" + list + "/rsrvtmlist[" + row + "]/maxhealexamcnt");
  566. //maxmedexamcnt.lvStripWhite();
  567. var maxtrustcnt = model.getValue("/root/main/" + list + "/rsrvtmlist[" + row + "]/maxtrustcnt");
  568. //maxtrstcnt.lvStripWhite();
  569. var maxallcnt = model.getValue("/root/main/" + list + "/rsrvtmlist[" + row + "]/maxallcnt");
  570. //maxallcnt.lvStripWhite();
  571. var imaxoutcnt = 0;
  572. var imaxincnt = 0;
  573. var imaxhealexamcnt = 0;
  574. var imaxtrustcnt = 0;
  575. var imaxallcnt = 0;
  576. var sum = 0;
  577. if(maxoutcnt != "") imaxoutcnt = parseInt(maxoutcnt);
  578. if(maxincnt != "") imaxincnt = parseInt(maxincnt);
  579. if(maxhealexamcnt != "") imaxhealexamcnt = parseInt(maxhealexamcnt);
  580. if(maxtrustcnt != "") imaxtrustcnt = parseInt(maxtrustcnt);
  581. if(maxallcnt != "") imaxallcnt = parseInt(maxallcnt);
  582. sum = imaxoutcnt + imaxincnt + imaxhealexamcnt + imaxtrustcnt + imaxallcnt;
  583. model.setValue("/root/main/" + list + "/rsrvtmlist[" + row + "]/sum", sum);
  584. grd_rsrvtmcreate.refresh();
  585. }
  586. function fGetTime(){
  587. model.removenode("/root/main/rsrvtmcreate");
  588. //var examroom = model.getValue("/root/hidden/tminfo/examroom");
  589. //if(examroom == "") {
  590. // model.alert("검사실을 선택해 주십시요");
  591. // return;
  592. //}
  593. //var rsrvdd = "0000000" + gWeekDay;
  594. //model.setValue("/root/hidden/tminfo/rsrvdd", rsrvdd);
  595. //model.setValue("/root/hidden/tminfo/suppdept", gSuppDept);
  596. //copyNode("/root/hidden/tminfo", "/root/send/data");
  597. //이부분 부터
  598. // fSetFunction(gMode, "getDefaultYeYakSiGan", "OAC_YeYakSiGanGwanRi_View2");
  599. // fRequestAction("reqAction", gAction, "/root/SendData", "/root/MainData/list1/content");
  600. // for(var i = grd_rsrvtmcreate.fixedrows; i < grd_rsrvtmcreate.rows; i++) {
  601. // fGridCellSum("grd_rsrvtmcreate", i);
  602. // }
  603. grd_rsrvtmcreate.refresh();
  604. grd_rsrvtmcreate.clearStatus();
  605. // model.resetInstanceNode("/root/send");
  606. // TFSetMessage("/root/main");
  607. }
  608. function gridOnCellChanged(grid){
  609. var list = "";
  610. var grd_col = "";
  611. if(grid.attribute("id") == "grd_rsrvtmcreate") {
  612. list = "rsrvtmcreate";
  613. grd_col = grd_rsrvtmcreate.col;
  614. }
  615. if(grid.attribute("id") == "grd_rsrvtmappprescond") {
  616. list = "rsrvtmappprescond";
  617. grd_col = grd_rsrvtmappprescond.col;
  618. }
  619. if(grd_col==7){
  620. model.setValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxoutcnt","0");
  621. model.setValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxincnt","0");
  622. model.setValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxhealexamcnt","0");
  623. model.setValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxtrustcnt","0");
  624. model.setValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/sum", model.getValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxallcnt"));
  625. model.refresh();
  626. }
  627. else
  628. {
  629. var maxoutcnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxoutcnt");
  630. var maxincnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxincnt");
  631. var maxhealexamcnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxhealexamcnt");
  632. var maxtrustcnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxtrustcnt");
  633. var imaxoutcnt = 0;
  634. var imaxincnt = 0;
  635. var imaxhealexamcnt = 0;
  636. var imaxtrustcnt = 0;
  637. var sum = 0;
  638. if(maxoutcnt != "") imaxoutcnt = parseInt(maxoutcnt);
  639. if(maxincnt != "") imaxincnt = parseInt(maxincnt);
  640. if(maxhealexamcnt != "") imaxhealexamcnt = parseInt(maxhealexamcnt);
  641. if(maxtrustcnt != "") imaxtrustcnt = parseInt(maxtrustcnt);
  642. sum = imaxoutcnt + imaxincnt + imaxhealexamcnt + imaxtrustcnt;
  643. model.setValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/maxallcnt","0");
  644. model.setValue("/root/main/"+list+"/rsrvtmlist["+grid.row+"]/sum", sum);
  645. model.refresh();
  646. }
  647. }
  648. function fTimeGen(){
  649. var fromdd = model.getValue("/root/hidden/tminfo/frdt");
  650. var todd = model.getValue("/root/hidden/tminfo/todt");
  651. var term = getDateInterval(fromdd, todd);
  652. if(term > 365) {
  653. model.alert("생성구간이 365일 이상입니다.. 1년으로 제한합니다.");
  654. return;
  655. }
  656. if(fChkDate() == false) return;
  657. }
  658. function fChkDate(){
  659. var frdt = model.getValue("/root/hidden/tminfo/frdt");
  660. var todt = model.getValue("/root/hidden/tminfo/todt");
  661. if(frdt == "") {
  662. model.alert("적용시작일자를 입력해 주십시요");
  663. return false;
  664. }
  665. if(todt == "") {
  666. model.alert("적용종료일자를 입력해 주십시요");
  667. return false;
  668. }
  669. if(frdt > todt) {
  670. model.alert("적용시작일자가 적용종료일자보다 큽니다.");
  671. return false;
  672. }
  673. }
  674. function fGridSetSum(grid){
  675. var list = "";
  676. if(grid.attribute("id") == "grd_rsrvtmcreate")
  677. list = "rsrvtmcreate";
  678. if(grid.attribute("id") == "grd_rsrvtmappprescond")
  679. list = "rsrvtmappprescond";
  680. for(i=1;i<grid.rows;i++)
  681. {
  682. var maxoutcnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+i+"]/maxoutcnt");
  683. var maxincnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+i+"]/maxincnt");
  684. var maxhealexamcnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+i+"]/maxhealexamcnt");
  685. var maxtrustcnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+i+"]/maxtrustcnt");
  686. var maxallcnt = model.getValue("/root/main/"+list+"/rsrvtmlist["+i+"]/maxallcnt");
  687. var rsrvdd = model.getValue("/root/send/rsrvdd");
  688. var suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
  689. var excuroomcd = model.getValue("/root/send/data3/cmb_info/initexecroom/excuroomcdid");
  690. //var excuroomcd = model.getValue("/root/send/excuroomcd");
  691. var imaxoutcnt = 0;
  692. var imaxincnt = 0;
  693. var imaxhealexamcnt = 0;
  694. var imaxtrustcnt = 0;
  695. var imaxallcnt=0;
  696. var sum = 0;
  697. if(maxoutcnt != "") imaxoutcnt = parseInt(maxoutcnt);
  698. if(maxincnt != "") imaxincnt = parseInt(maxincnt);
  699. if(maxhealexamcnt != "") imaxhealexamcnt = parseInt(maxhealexamcnt);
  700. if(maxtrustcnt != "") imaxtrustcnt = parseInt(maxtrustcnt);
  701. if(maxallcnt != "") imaxallcnt = parseInt(maxallcnt);
  702. sum = imaxoutcnt + imaxincnt + imaxhealexamcnt + imaxtrustcnt + imaxallcnt;
  703. model.setValue("/root/main/"+list+"/rsrvtmlist["+i+"]/sum",sum);
  704. model.setValue("/root/main/"+list+"/rsrvtmlist["+i+"]/rsrvdd",rsrvdd);
  705. model.setValue("/root/main/"+list+"/rsrvtmlist["+i+"]/excuroomcd",excuroomcd);
  706. model.setValue("/root/main/"+list+"/rsrvtmlist["+i+"]/suppdeptcd",suppdeptcd);
  707. //grid.refresh();
  708. }
  709. grid.refresh();
  710. }
  711. function fRsrvtmmdf(flag){
  712. if(flag=="modify"){
  713. grd_rsrvtmappprescond.visible = true;
  714. datagrid2.visible = false;
  715. button7.disabled = false;
  716. button8.disabled = false;
  717. button19.disabled = false;
  718. }else if(flag=="select"){
  719. grd_rsrvtmappprescond.visible = false;
  720. datagrid2.visible = true;
  721. button7.disabled = true;
  722. button8.disabled = true;
  723. button19.disabled = true;
  724. }
  725. }
  726. ]]>
  727. </script>
  728. </xhtml:head>
  729. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  730. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">예약시간관리</caption>
  731. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:20px; width:450px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  732. <caption id="caption1" class="search_name" style="left:10px; top:25px; width:73px; height:17px; ">검사실 :</caption>
  733. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:459px; top:20px; width:317px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  734. <caption id="caption5" class="search_name" style="left:465px; top:25px; width:86px; height:17px; ">적용일자 :</caption>
  735. <button id="btn_mon" class="btn_sw" group="tab" selected="true" style="left:5px; top:145px; width:37px; height:22px; ">
  736. <caption>월</caption>
  737. <script type="javascript" ev:event="DOMActivate">
  738. <![CDATA[
  739. model.setValue("/root/hidden/tminfo/gweekday","00000001");
  740. fGetTime();
  741. model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
  742. submit("TRAEB00901");
  743. fGridSetSum( grd_rsrvtmcreate);
  744. model.refresh();
  745. ]]>
  746. </script>
  747. </button>
  748. <button id="btn_tue" class="btn_sw" group="tab" selected="false" style="left:40px; top:145px; width:36px; height:22px; ">
  749. <caption>화</caption>
  750. <script type="javascript" ev:event="DOMActivate">
  751. <![CDATA[
  752. model.setValue("/root/hidden/tminfo/gweekday","00000002");
  753. fGetTime();
  754. model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
  755. submit("TRAEB00901");
  756. fGridSetSum(grd_rsrvtmcreate);
  757. model.refresh();
  758. ]]>
  759. </script>
  760. </button>
  761. <button id="btn_wed" class="btn_sw" group="tab" selected="false" style="left:75px; top:145px; width:36px; height:22px; ">
  762. <caption>수</caption>
  763. <script type="javascript" ev:event="DOMActivate">
  764. <![CDATA[
  765. model.setValue("/root/hidden/tminfo/gweekday","00000003");
  766. fGetTime();
  767. model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
  768. submit("TRAEB00901");
  769. fGridSetSum(grd_rsrvtmcreate);
  770. model.refresh();
  771. ]]>
  772. </script>
  773. </button>
  774. <button id="btn_thu" class="btn_sw" group="tab" selected="false" style="left:110px; top:145px; width:36px; height:22px; ">
  775. <caption>목</caption>
  776. <script type="javascript" ev:event="DOMActivate">
  777. <![CDATA[
  778. model.setValue("/root/hidden/tminfo/gweekday","00000004");
  779. fGetTime();
  780. model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
  781. submit("TRAEB00901");
  782. fGridSetSum(grd_rsrvtmcreate);
  783. model.refresh();
  784. ]]>
  785. </script>
  786. </button>
  787. <button id="btn_fri" class="btn_sw" group="tab" selected="false" style="left:145px; top:145px; width:36px; height:22px; ">
  788. <caption>금</caption>
  789. <script type="javascript" ev:event="DOMActivate">
  790. <![CDATA[
  791. model.setValue("/root/hidden/tminfo/gweekday","00000005");
  792. fGetTime();
  793. model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
  794. submit("TRAEB00901");
  795. fGridSetSum(grd_rsrvtmcreate);
  796. model.refresh();
  797. ]]>
  798. </script>
  799. </button>
  800. <button id="btn_sat" class="btn_sw" group="tab" selected="false" style="left:180px; top:145px; width:36px; height:22px; ">
  801. <caption>토</caption>
  802. <script type="javascript" ev:event="DOMActivate">
  803. <![CDATA[
  804. model.setValue("/root/hidden/tminfo/gweekday","00000006");
  805. fGetTime();
  806. model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
  807. submit("TRAEB00901");
  808. fGridSetSum(grd_rsrvtmcreate);
  809. checkbox1.value = "";
  810. model.refresh();
  811. ]]>
  812. </script>
  813. </button>
  814. <button id="btn_sun" class="btn_sw" group="tab" selected="false" style="left:215px; top:145px; width:36px; height:22px; ">
  815. <caption>일</caption>
  816. <script type="javascript" ev:event="DOMActivate">
  817. <![CDATA[
  818. model.setValue("/root/hidden/tminfo/gweekday","00000007");
  819. fGetTime();
  820. model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/tminfo/gweekday"));
  821. submit("TRAEB00901");
  822. fGridSetSum(grd_rsrvtmcreate);
  823. checkbox1.value = "";
  824. model.refresh();
  825. ]]>
  826. </script>
  827. </button>
  828. <button id="button22" class="btn1_letter6" visibility="hidden" style="left:0px; top:762px; width:104px; height:22px; ">
  829. <caption>예약현황조회</caption>
  830. </button>
  831. <line id="line2" class="line_1" style="x1:459px; y1:73px; x2:894px; y2:74px; "/>
  832. <caption id="caption22" class="tit_2" style="left:902px; top:339px; width:100px; height:13px; ">예약변동내역</caption>
  833. <caption id="caption9" style="left:109px; top:99px; width:25px; height:20px; vertical-align:middle; ">분</caption>
  834. <line id="line3" class="line_1" style="x1:900px; y1:356px; x2:1195px; y2:357px; "/>
  835. <button id="button7" class="btn2_letter2" navindex="21" style="left:853px; top:52px; width:42px; height:19px; ">
  836. <caption>저장</caption>
  837. <script type="javascript" ev:event="DOMActivate">
  838. <![CDATA[
  839. fGridSetSum(grd_rsrvtmappprescond);
  840. model.setValue("/root/send/req/data",getGridUpdateData(grd_rsrvtmappprescond));
  841. if ( messageBox("","Q002")==6 )
  842. {
  843. submit("TXAEB00903");
  844. submit("TRAEB00902");
  845. grd_rsrvtmappprescond.visible = true;
  846. datagrid2.visible = false;
  847. fGridSetSum(grd_rsrvtmappprescond);
  848. initCalendar();
  849. fGridSetSum(grd_rsrvtmcreate);
  850. setGridRsrvddCheck();
  851. model.refresh();
  852. }
  853. else
  854. {
  855. submit("TRAEB00902");
  856. grd_rsrvtmappprescond.visible = true;
  857. datagrid2.visible = false;
  858. fGridSetSum(grd_rsrvtmappprescond);
  859. model.refresh();
  860. return;
  861. }
  862. ]]>
  863. </script>
  864. </button>
  865. <button id="button8" class="btn2_letter3" navindex="19" style="left:743px; top:52px; width:53px; height:19px; ">
  866. <caption>행추가</caption>
  867. <script type="javascript" ev:event="DOMActivate">
  868. <![CDATA[
  869. grd_rsrvtmappprescond.addItem();
  870. grd_rsrvtmappprescond.visible = true;
  871. datagrid2.visible = false;
  872. model.refresh();
  873. ]]>
  874. </script>
  875. </button>
  876. <button id="button19" class="btn2_letter3" navindex="20" style="left:798px; top:52px; width:53px; height:19px; ">
  877. <caption>행삭제</caption>
  878. <script type="javascript" ev:event="DOMActivate">
  879. <![CDATA[
  880. grd_rsrvtmappprescond.addStatus(grd_rsrvtmappprescond.row,"delete");
  881. grd_rsrvtmappprescond.visible = true;
  882. datagrid2.visible = false;
  883. model.refresh();
  884. ]]>
  885. </script>
  886. </button>
  887. <button id="btn_del" class="btn4_letter2" navindex="23" style="left:839px; top:25px; width:56px; height:22px; ">
  888. <caption>삭제</caption>
  889. <script type="javascript" ev:event="DOMActivate">
  890. <![CDATA[
  891. model.setValue("/root/send/data2/frdt",model.getValue("/root/hidden/tminfo/frdt"));
  892. model.setValue("/root/send/data2/todt",model.getValue("/root/hidden/tminfo/todt"));
  893. model.setValue("/root/send/data2/excuroomcd",model.getValue("root/send/data3/cmb_info/initexecroom/excuroomcdid"));
  894. model.setValue("/root/send/excuroomcd",model.getValue("root/send/data3/cmb_info/initexecroom/excuroomcdid"));
  895. model.setValue("/root/send/data2/suppdeptcd",model.getValue("/root/send/globalinstance/instance1"));
  896. if ( messageBox("","Q004")==6 )
  897. {
  898. submit("TXAEB00904");
  899. }
  900. initCalendar();
  901. setGridRsrvddCheck();
  902. fRsrvtmmdf("select");
  903. ]]>
  904. </script>
  905. </button>
  906. <button id="btn_grdadd" class="btn2_letter3" navindex="14" style="left:301px; top:146px; width:53px; height:19px; ">
  907. <caption>행추가</caption>
  908. <script type="javascript" ev:event="DOMActivate">
  909. <![CDATA[
  910. grd_rsrvtmcreate.addRow();
  911. ]]>
  912. </script>
  913. </button>
  914. <button id="btn_grddel" class="btn2_letter3" navindex="15" style="left:357px; top:146px; width:53px; height:19px; ">
  915. <caption>행삭제</caption>
  916. <script type="javascript" ev:event="DOMActivate">
  917. <![CDATA[
  918. for ( var i =0 ; i < grd_rsrvtmcreate.selectedRows ; i++){
  919. grd_rsrvtmcreate.addStatus( grd_rsrvtmcreate.selectedRow(i) ,"delete");
  920. }
  921. ]]>
  922. </script>
  923. </button>
  924. <button id="btn_save" class="btn2_letter2" navindex="16" style="left:412px; top:146px; width:42px; height:19px; ">
  925. <caption>저장</caption>
  926. <script type="javascript" ev:event="DOMActivate">
  927. <![CDATA[
  928. if(checkbox1.value=="Y") {
  929. for(var j=1; j<grd_rsrvtmcreate.rows;j++) {
  930. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist["+j+"]/allday","Y");
  931. }
  932. }else{
  933. //2010.12.27 기존데이터 수정 및 삭제시 전부 삭제되는 현상 수정 - 박재영
  934. // var daycnt = 0;
  935. // for(var j=1; j<grd_rsrvtmcreate.rows;j++) {
  936. // var rowstatus = grd_rsrvtmcreate.rowStatus(j);
  937. // if(rowstatus == 0){
  938. // daycnt++;
  939. // }
  940. // }
  941. // if(daycnt == 0){
  942. for(var j=1; j<grd_rsrvtmcreate.rows;j++) {
  943. model.setValue("/root/main/rsrvtmcreate/rsrvtmlist["+j+"]/allday","day");
  944. }
  945. // }
  946. }
  947. var loop = grd_rsrvtmcreate.rows - grd_rsrvtmcreate.fixedRows;
  948. for ( var i = 1 ; i <= loop ; i++)
  949. {
  950. // alert( grd_rsrvtmcreate.rowStatus(i) );
  951. //0:new ,1 : insert , 2: update, 3:delete
  952. //2010.12.27 기존데이터 수정 및 삭제시 전부 삭제되는 현상 수정 - 박재영
  953. if(grd_rsrvtmcreate.rowStatus(i) == "0" || grd_rsrvtmcreate.rowStatus(i) == "2") {
  954. grd_rsrvtmcreate.addStatus(i,"insert");
  955. }
  956. }
  957. for (var i = 1; i < grd_rsrvtmcreate.rows; i++){
  958. var rsrvno = model.getValue("/root/main/rsrvtmcreate/rsrvtmlist[" + i + "]/rsrvno");
  959. if ( rsrvno == ""){
  960. messageBox("정렬할 No는 필수 입력항목입니다. ", "E999", "");
  961. return;
  962. }
  963. var k = i + 1;
  964. for (var j = k; j < grd_rsrvtmcreate.rows; j++){
  965. rsrvno2 = model.getValue("/root/main/rsrvtmcreate/rsrvtmlist[" + j + "]/rsrvno");
  966. if (i != j){
  967. if (rsrvno == rsrvno2){
  968. messageBox(j + "번째에서 중복된 순번 자료가 존재합니다", "E999", "");
  969. return false;
  970. }
  971. }
  972. }
  973. }
  974. fGridSetSum(grd_rsrvtmcreate);
  975. model.setValue("/root/send/req/data",getGridUpdateData(grd_rsrvtmcreate));
  976. if ( messageBox("","Q002")==6 )
  977. {
  978. submit("TXAEB00901");
  979. // btn_mon.dispatch("DOMActivate");
  980. if( btn_mon.selected == true ) {
  981. btn_mon.dispatch("DOMActivate");
  982. }
  983. if( btn_tue.selected == true ) {
  984. btn_tue.dispatch("DOMActivate");
  985. }
  986. if( btn_wed.selected == true ) {
  987. btn_wed.dispatch("DOMActivate");
  988. }
  989. if( btn_thu.selected == true ) {
  990. btn_thu.dispatch("DOMActivate");
  991. }
  992. if( btn_fri.selected == true ) {
  993. btn_fri.dispatch("DOMActivate");
  994. }
  995. if( btn_sat.selected == true ) {
  996. btn_sat.dispatch("DOMActivate");
  997. }
  998. if( btn_sun.selected == true ) {
  999. btn_sun.dispatch("DOMActivate");
  1000. }
  1001. fGridSetSum(grd_rsrvtmcreate);
  1002. model.refresh();
  1003. }
  1004. else
  1005. {
  1006. btn_mon.dispatch("DOMActivate");
  1007. fGridSetSum(grd_rsrvtmcreate);
  1008. model.refresh();
  1009. return;
  1010. }
  1011. model.setValue("/root/send/req/flag","");
  1012. model.refresh();
  1013. ]]>
  1014. </script>
  1015. </button>
  1016. <select1 id="cmb_excuroom" ref="/root/send/data3/cmb_info/initexecroom/excuroomcdid" class="combo_default" navindex="1" appearance="minimal" style="left:87px; top:25px; width:148px; height:19px; ">
  1017. <choices>
  1018. <itemset nodeset="/root/init/cmb_info/initexecroom">
  1019. <label ref="excuroomcdnm"/>
  1020. <value ref="excuroomcdid"/>
  1021. </itemset>
  1022. </choices>
  1023. <script type="javascript" ev:event="xforms-value-changed">
  1024. <![CDATA[
  1025. model.setValue("/root/send/excuroomcd", model.getValue("/root/send/data3/cmb_info/initexecroom/excuroomcdid"));
  1026. btn_mon.selected = true;
  1027. initCalendar();
  1028. fGridSetSum(grd_rsrvtmcreate);
  1029. setGridRsrvddCheck();
  1030. fRsrvtmmdf("select");
  1031. // model.setValue("/root/hidden/tminfo/gweekday","00000001");
  1032. btn_mon.dispatch("DOMActivate");
  1033. ]]>
  1034. </script>
  1035. </select1>
  1036. <datagrid id="grd_rsrvtmappprescond" nodeset="/root/main/rsrvtmappprescond/rsrvtmlist" scroll="vertical" caption="No^시간^외래^입원^건진^응급^All^합계^rsrvdd^excuroomcd^suppdeptcd" colsep="^" colwidth="36, 60, 50, 50, 50, 50, 50, 50, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:459px; top:77px; width:435px; height:679px; border-color:#e6e5e5; border-style:solid; ">
  1037. <col ref="rsrvno" type="input"/>
  1038. <col ref="rsrvtm" type="input" format="hh:nn" style="text-align:center; "/>
  1039. <col ref="maxoutcnt" type="input" style="text-align:center; "/>
  1040. <col ref="maxincnt" type="input" style="text-align:center; "/>
  1041. <col ref="maxhealexamcnt" type="input" style="text-align:center; "/>
  1042. <col ref="maxtrustcnt" type="input" style="text-align:center; "/>
  1043. <col ref="maxallcnt" type="input" style="text-align:center; "/>
  1044. <col ref="sum" type="input" style="text-align:center; "/>
  1045. <col ref="rsrvdd"/>
  1046. <col ref="excuroomcd"/>
  1047. <col ref="suppdeptcd"/>
  1048. <script type="javascript" ev:event="onendedit">
  1049. <![CDATA[
  1050. gridOnCellChanged(grd_rsrvtmappprescond);
  1051. ]]>
  1052. </script>
  1053. </datagrid>
  1054. <datagrid id="grd_rsrvtmcreate" nodeset="/root/main/rsrvtmcreate/rsrvtmlist" scroll="vertical" caption="No^시간^외래^입원^건진^응급^All^합계^rsrvdd^excuroomcd^suppdeptcd^openflag^pseudo^sortby^yeyakflag^allday" colsep="^" colwidth="44, 60, 50, 50, 50, 50, 50, 56, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:171px; width:450px; height:585px; border-color:#e6e5e5; border-style:solid; ">
  1055. <col ref="rsrvno" type="input"/>
  1056. <col ref="rsrvtm" type="input" format="hh:nn" style="text-align:center; "/>
  1057. <col ref="maxoutcnt" type="input" style="text-align:center; "/>
  1058. <col ref="maxincnt" type="input" style="text-align:center; "/>
  1059. <col ref="maxhealexamcnt" type="input" style="text-align:center; "/>
  1060. <col ref="maxtrustcnt" type="input" style="text-align:center; "/>
  1061. <col ref="maxallcnt" type="input" style="text-align:center; "/>
  1062. <col ref="sum" style="text-align:center; "/>
  1063. <col ref="rsrvdd" type="input"/>
  1064. <col ref="excuroomcd" type="input"/>
  1065. <col ref="suppdeptcd" type="input"/>
  1066. <col ref="openflag" type="input"/>
  1067. <col ref="pseudo"/>
  1068. <col ref="sortby"/>
  1069. <col ref="yeyakflag"/>
  1070. <col ref="allday"/>
  1071. <script type="javascript" ev:event="onendedit">
  1072. <![CDATA[
  1073. gridOnCellChanged(grd_rsrvtmcreate);
  1074. ]]>
  1075. </script>
  1076. <script type="javascript" ev:event="onmouseup">
  1077. <![CDATA[
  1078. if (isDataCell()) {
  1079. }
  1080. ]]>
  1081. </script>
  1082. </datagrid>
  1083. <input id="ipt_starttm" ref="/root/hidden/tminfo/frtm" class="input_default" navindex="3" maxlength="4" format="hh:nn" style="left:64px; top:78px; width:33px; height:19px; "/>
  1084. <input id="ipt_endtm" ref="/root/hidden/tminfo/totm" class="input_default" navindex="4" maxlength="4" format="hh:nn" style="left:159px; top:78px; width:33px; height:19px; "/>
  1085. <input id="ipt_ocnt" ref="/root/hidden/tminfo/ocnt" class="input_default" navindex="7" style="left:64px; top:100px; width:33px; height:19px; text-align:right; "/>
  1086. <input id="ipt_icnt" ref="/root/hidden/tminfo/icnt" class="input_default" navindex="8" style="left:159px; top:100px; width:33px; height:19px; text-align:right; "/>
  1087. <input id="ipt_startrsrvdd" ref="/root/hidden/tminfo/frdt" class="input_default" navindex="17" inputtype="date" style="left:554px; top:25px; width:100px; height:19px; "/>
  1088. <input id="ipt_endrsrvdd" ref="/root/hidden/tminfo/todt" class="input_default" navindex="18" inputtype="date" style="left:669px; top:25px; width:100px; height:19px; "/>
  1089. <group id="grp_calendar" style="left:900px; top:25px; width:295px; height:40px; ">
  1090. <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:295px; height:40px; "/>
  1091. <button id="button31" class="icon_pre_year" style="left:53px; top:12px; width:16px; height:16px; ">
  1092. <caption/>
  1093. <script type="javascript" ev:event="DOMActivate">
  1094. <![CDATA[
  1095. var isMonth = model.getValue("/root/hidden/calendar/month");
  1096. var isYear = model.getValue("/root/hidden/calendar/year");
  1097. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  1098. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  1099. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  1100. model.refresh();
  1101. setCalendar(isDate);
  1102. setGridRsrvddCheck();
  1103. ]]>
  1104. </script>
  1105. </button>
  1106. <button id="button32" class="icon_next_year" style="left:228px; top:12px; width:16px; height:16px; ">
  1107. <caption/>
  1108. <script type="javascript" ev:event="DOMActivate">
  1109. <![CDATA[
  1110. var isMonth = model.getValue("/root/hidden/calendar/month");
  1111. var isYear = model.getValue("/root/hidden/calendar/year");
  1112. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  1113. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  1114. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  1115. model.refresh();
  1116. setCalendar(isDate);
  1117. setGridRsrvddCheck();
  1118. ]]>
  1119. </script>
  1120. </button>
  1121. <button id="btn_premonth" class="icon_pre_month" style="left:72px; top:12px; width:16px; height:16px; ">
  1122. <caption/>
  1123. <script type="javascript" ev:event="DOMActivate">
  1124. <![CDATA[
  1125. var isMonth = model.getValue("/root/hidden/calendar/month");
  1126. var isYear = model.getValue("/root/hidden/calendar/year");
  1127. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  1128. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  1129. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  1130. model.refresh();
  1131. setCalendar(isDate);
  1132. setGridRsrvddCheck();
  1133. ]]>
  1134. </script>
  1135. </button>
  1136. <button id="button34" class="icon_next_month" style="left:209px; top:12px; width:16px; height:16px; ">
  1137. <caption/>
  1138. <script type="javascript" ev:event="DOMActivate">
  1139. <![CDATA[
  1140. var isMonth = model.getValue("/root/hidden/calendar/month");
  1141. var isYear = model.getValue("/root/hidden/calendar/year");
  1142. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  1143. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  1144. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  1145. model.refresh();
  1146. setCalendar(isDate);
  1147. setGridRsrvddCheck();
  1148. ]]>
  1149. </script>
  1150. </button>
  1151. <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:98px; top:9px; width:30px; height:19px; "/>
  1152. <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:148px; top:9px; width:30px; height:19px; "/>
  1153. <caption id="caption12" class="calendar_output" style="left:128px; top:9px; width:20px; height:19px; ">년</caption>
  1154. <caption id="caption13" class="calendar_output" style="left:178px; top:9px; width:20px; height:19px; ">월</caption>
  1155. </group>
  1156. <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="42, 42, 42, 42, 42, 42, 41" dataheight="20" rowsep="|" selectionmode="free" mergecellsfixedrows="bycolrec" style="left:900px; top:65px; width:295px; height:265px; ">
  1157. <row>
  1158. <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
  1159. <col ref="mon" style="border-bottom-width:0px; "/>
  1160. <col ref="tue" style="border-bottom-width:0px; "/>
  1161. <col ref="wed" style="border-bottom-width:0px; "/>
  1162. <col ref="thu" style="border-bottom-width:0px; "/>
  1163. <col ref="fri" style="border-bottom-width:0px; "/>
  1164. <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
  1165. </row>
  1166. <row>
  1167. <col ref="sun_memo" style="border-top-width:0px; "/>
  1168. <col ref="mon_memo" style="border-top-width:0px; "/>
  1169. <col ref="tue_memo" style="border-top-width:0px; "/>
  1170. <col ref="wed_memo" style="border-top-width:0px; "/>
  1171. <col ref="thu_memo" style="border-top-width:0px; "/>
  1172. <col ref="fri_memo" style="border-top-width:0px; "/>
  1173. <col ref="sat_memo" style="border-top-width:0px; "/>
  1174. </row>
  1175. <script type="javascript" ev:event="onclick">
  1176. <![CDATA[
  1177. for (var i = 1; i < grd_calendar.rows; i ++){
  1178. for (var j = 0; j < 14; j ++){
  1179. //grd_calendar.rowstyle(i, "data", "background-color") = "#ffffff";
  1180. grd_calendar.cellStyle("background-color", i, j) = "#ffffff";
  1181. }
  1182. }
  1183. grd_calendar.refresh();
  1184. setCellColor(grd_calendar);
  1185. //달력에서 선택한 날짜값 얻기
  1186. var calRow = grd_calendar.row;
  1187. var calCol = grd_calendar.col;
  1188. if( calCol >= 7 )
  1189. calCol -= 7;
  1190. var yyyy = model.getValue("/root/hidden/calendar/year");
  1191. var mm = model.getValue("/root/hidden/calendar/month");
  1192. var dd = model.getValue("/root/hidden/calendar/weeklist/list["+calRow+"]/"+grd_calendar.colAttribute(calCol,"ref"));
  1193. dd = dd.substr(0, getStringLength(dd) - 2);
  1194. if (getStringLength(dd) == 1) {
  1195. dd = "0" + dd;
  1196. }
  1197. //dd = dd.substr(0,2); // 숫자만 얻기
  1198. var isDate = yyyy + mm + dd;
  1199. model.setValue("/root/send/rsrvdd",isDate);
  1200. submit("TRAEB00904");
  1201. fGridSetSum(grd_rsrvtmappprescond);
  1202. fRsrvtmmdf("select");
  1203. model.refresh();
  1204. ]]>
  1205. </script>
  1206. <script type="javascript" ev:event="onrowchanged">
  1207. <![CDATA[
  1208. setCellColor(grd_calendar);
  1209. ]]>
  1210. </script>
  1211. <script type="javascript" ev:event="oncolchanged">
  1212. <![CDATA[
  1213. setCellColor(grd_calendar);
  1214. ]]>
  1215. </script>
  1216. </multilinegrid>
  1217. <datagrid id="grd_temp" nodeset="/root/hidden/rsrvdd/rsrvtmlist" visibility="hidden" caption="rsrvdd^excuroomcd^rsrvdd^suppdept^excuroomcd^openflag" colsep="^" colwidth="106, 74, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:540px; top:355px; width:215px; height:200px; border-color:#e6e5e5; border-style:solid; ">
  1218. <col ref="rsrvdd" type="input"/>
  1219. <col ref="excuroomcd" type="input"/>
  1220. <col ref="rsrvdd" type="input"/>
  1221. <col ref="excuroomcd" type="input"/>
  1222. <col ref="suppdept" type="input"/>
  1223. <col ref="openflag" type="input"/>
  1224. <script type="javascript" ev:event="onendedit">
  1225. <![CDATA[
  1226. gridOnCellChanged(grd_rsrvtmcreate);
  1227. ]]>
  1228. </script>
  1229. </datagrid>
  1230. <datagrid id="grd_temp1" nodeset="/root/init/curerprescondlist/rsrvcalendar" visibility="hidden" caption="일자(dd)^가용현황^max^caption3" colsep="^" colwidth="81, 62, 32" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:570px; top:430px; width:180px; height:275px; ">
  1231. <col ref="rsrvdd"/>
  1232. <col ref="count"/>
  1233. <col ref="max"/>
  1234. </datagrid>
  1235. <line id="line8" class="line_2" style="x1:5px; y1:98px; x2:455px; y2:98px; "/>
  1236. <caption id="caption2" class="cell_1" style="left:99px; top:78px; width:58px; height:20px; vertical-align:middle; ">종료시간</caption>
  1237. <caption id="caption3" class="cell_1" style="left:99px; top:100px; width:58px; height:20px; vertical-align:middle; ">입원</caption>
  1238. <caption id="caption7" class="cell_1" style="left:5px; top:78px; width:58px; height:20px; vertical-align:middle; ">시작시간</caption>
  1239. <caption id="caption8" class="cell_1" style="left:5px; top:100px; width:58px; height:20px; vertical-align:middle; ">외래</caption>
  1240. <caption id="caption16" class="cell_1" style="left:194px; top:78px; width:53px; height:20px; vertical-align:middle; ">간격</caption>
  1241. <caption id="caption4" class="cell_1" style="left:194px; top:100px; width:53px; height:20px; vertical-align:middle; ">건진</caption>
  1242. <caption id="caption6" class="cell_1" style="left:284px; top:100px; width:53px; height:20px; vertical-align:middle; ">응급</caption>
  1243. <caption id="caption14" class="cell_1" style="left:374px; top:100px; width:48px; height:20px; vertical-align:middle; ">All</caption>
  1244. <input id="ipt_pcnt" ref="/root/hidden/tminfo/tcnt" class="input_default" navindex="10" style="left:339px; top:100px; width:33px; height:19px; text-align:right; "/>
  1245. <input id="ipt_scnt" ref="/root/hidden/tminfo/hcnt" class="input_default" navindex="9" style="left:249px; top:100px; width:33px; height:19px; text-align:right; "/>
  1246. <input id="ipt_allcnt" ref="/root/hidden/tminfo/allcnt" class="input_default" navindex="11" style="left:424px; top:100px; width:31px; height:19px; text-align:right; "/>
  1247. <button id="btn_crettm" class="btn4_letter2" style="left:399px; top:121px; width:56px; height:22px; ">
  1248. <caption>생성</caption>
  1249. <script type="javascript" ev:event="DOMActivate">
  1250. <![CDATA[
  1251. fGenTime();
  1252. ]]>
  1253. </script>
  1254. </button>
  1255. <line id="line6" class="line_3" style="x1:5px; y1:142px; x2:455px; y2:142px; "/>
  1256. <select id="checkbox1" ref="/root/hidden/tminfo/allday" navindex="6" overflow="visible" appearance="full" style="left:311px; top:80px; width:109px; height:15px; border-style:none; ">
  1257. <choices>
  1258. <item>
  1259. <label>월~금 일괄적용</label>
  1260. <value>Y</value>
  1261. </item>
  1262. </choices>
  1263. <script type="javascript" ev:event="xforms-value-changed">
  1264. <![CDATA[
  1265. if (checkbox1.value == "Y"){
  1266. btn_mon.selected = true;
  1267. btn_mon.dispatch("DOMActivate");
  1268. }else{
  1269. btn_sat.selected = true;
  1270. btn_sat.dispatch("DOMActivate");
  1271. }
  1272. ]]>
  1273. </script>
  1274. </select>
  1275. <caption id="caption10" style="left:290px; top:81px; width:20px; height:15px; ">분</caption>
  1276. <input id="ipt_term" ref="/root/hidden/tminfo/term" class="input_default" navindex="5" style="left:249px; top:78px; width:33px; height:19px; text-align:right; "/>
  1277. <caption id="caption15" class="search_name" style="left:240px; top:25px; width:86px; height:17px; ">지원부서 :</caption>
  1278. <select1 id="cmb_deptcd" ref="/root/send/globalinstance/instance1" navindex="2" appearance="minimal" style="left:330px; top:25px; width:120px; height:19px; ">
  1279. <choices>
  1280. <itemset nodeset="/root/init/cmb_info/suppdept">
  1281. <label ref="depthngnm"/>
  1282. <value ref="suppdeptcd"/>
  1283. </itemset>
  1284. </choices>
  1285. <script type="javascript" ev:event="xforms-value-changed">
  1286. <![CDATA[
  1287. model.setValue("/root/send/globalinstance/instance1", cmb_deptcd.value);
  1288. submit("TRAEA01301", false);
  1289. btn_mon.selected = true;
  1290. initCalendar();
  1291. fGridSetSum(grd_rsrvtmcreate);
  1292. setGridRsrvddCheck();
  1293. model.refresh();
  1294. ]]>
  1295. </script>
  1296. </select1>
  1297. <caption id="caption17" class="cell_1" style="left:5px; top:122px; width:58px; height:20px; vertical-align:middle; ">휴무시간</caption>
  1298. <input id="input1" ref="/root/hidden/tminfo/hofrdt" navindex="12" format="hh:nn" style="left:64px; top:122px; width:33px; height:19px; text-align:center; "/>
  1299. <input id="input2" ref="/root/hidden/tminfo/hotodt" navindex="13" format="hh:nn" style="left:124px; top:122px; width:33px; height:19px; text-align:center; "/>
  1300. <caption id="caption18" style="left:103px; top:124px; width:15px; height:20px; text-align:center; ">~</caption>
  1301. <caption id="caption20" class="cell_1" style="left:194px; top:122px; width:53px; height:20px; vertical-align:middle; ">구분</caption>
  1302. <select1 id="radio1" ref="/root/hidden/tminfo/gb" appearance="full" cols="3" overflow="visible" style="left:248px; top:124px; width:147px; height:17px; border-style:none; ">
  1303. <choices>
  1304. <item>
  1305. <label>새로생성</label>
  1306. <value>9</value>
  1307. </item>
  1308. <item>
  1309. <label>이어서생성</label>
  1310. <value>2</value>
  1311. </item>
  1312. </choices>
  1313. </select1>
  1314. <datagrid id="datagrid3" nodeset="/root/init/calenlist/calendinfo" visibility="hidden" caption="caption1^caption2" colsep="^" colwidth="100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:280px; top:435px; width:220px; height:150px; ">
  1315. <col ref="basedd"/>
  1316. <col ref="dutflag"/>
  1317. </datagrid>
  1318. <datagrid id="datagrid1" nodeset="/root/main/rsrvtmappprescond/updtresn" autoresize="true" caption="변동사유" colsep="^" colwidth="292" mergecellsfixedrows="bycolrec" rowsep="|" style="left:900px; top:360px; width:295px; height:396px; ">
  1319. <col ref="updtresndesc"/>
  1320. </datagrid>
  1321. <datagrid id="grd_temproom" nodeset="/root/init/cmb_info/initexcuroomcd" visibility="hidden" caption="caption3" colsep="^" colwidth="127" mergecellsfixedrows="bycolrec" rowsep="|" style="left:145px; top:280px; width:130px; height:135px; ">
  1322. <col ref="excuroomcd"/>
  1323. </datagrid>
  1324. <datagrid id="datagrid2" nodeset="/root/main/rsrvtmappprescond/rsrvtminfo" visibility="hidden" scroll="vertical" caption="시간^외래^입원^건진^응급^합계^rsrvdd^excuroomcd^suppdeptcd" colsep="^" colwidth="64, 68, 65, 65, 68, 66" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:459px; top:77px; width:435px; height:679px; border-color:#e6e5e5; border-style:solid; ">
  1325. <col ref="rsrvtm" format="hh:nn" style="text-align:center; "/>
  1326. <col ref="outcnt" style="text-align:center; "/>
  1327. <col ref="incnt" style="text-align:center; "/>
  1328. <col ref="healexamcnt" style="text-align:center; "/>
  1329. <col ref="trustcnt" style="text-align:center; "/>
  1330. <col ref="allcnt" style="text-align:center; "/>
  1331. </datagrid>
  1332. <caption id="caption11" class="tit_2" style="left:461px; top:58px; width:105px; height:13px; ">적용현황</caption>
  1333. <button id="button90" class="btn5_letter2" style="left:699px; top:52px; width:42px; height:19px; ">
  1334. <caption>수정</caption>
  1335. <script type="javascript" ev:event="DOMActivate">
  1336. <![CDATA[
  1337. fRsrvtmmdf("modify");
  1338. ]]>
  1339. </script>
  1340. </button>
  1341. <line id="line1" class="line_2" style="x1:5px; y1:120px; x2:455px; y2:120px; "/>
  1342. <line id="line5" class="line_1" style="x1:5px; y1:73px; x2:455px; y2:73px; "/>
  1343. <line id="line4" class="line_1" style="x1:5px; y1:166px; x2:455px; y2:166px; "/>
  1344. <caption id="caption21" class="tit_2" style="left:6px; top:58px; width:100px; height:13px; ">예약시간생성</caption>
  1345. <caption id="caption23" style="left:654px; top:26px; width:15px; height:20px; text-align:center; ">~</caption>
  1346. <button id="button39" class="btn4_letter2" navindex="22" style="left:782px; top:25px; width:56px; height:22px; ">
  1347. <caption>생성</caption>
  1348. <script type="javascript" ev:event="DOMActivate">
  1349. <![CDATA[
  1350. fTimeGen();
  1351. model.setValue("/root/send/data2/frdt",model.getValue("/root/hidden/tminfo/frdt"));
  1352. model.setValue("/root/send/data2/todt",model.getValue("/root/hidden/tminfo/todt"));
  1353. model.setValue("/root/send/data2/excuroomcd",model.getValue("root/send/data3/cmb_info/initexecroom/excuroomcdid"));
  1354. model.setValue("/root/send/excuroomcd",model.getValue("root/send/data3/cmb_info/initexecroom/excuroomcdid"));
  1355. model.setValue("/root/send/data2/suppdeptcd",model.getValue("/root/send/globalinstance/instance1"));
  1356. if ( messageBox("","Q004")==6 )
  1357. {
  1358. submit("TXAEB00902");
  1359. }
  1360. initCalendar();
  1361. setGridRsrvddCheck();
  1362. fRsrvtmmdf("select");
  1363. ]]>
  1364. </script>
  1365. </button>
  1366. </xhtml:body>
  1367. </xhtml:html>