SMAHB01500_예약일정관리.xrw 82 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHB01500.xrw
  4. * 설 명 : 예약일정관리
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.04.13
  8. * 수정이력 : 2007.10.04 김다영 화면권한추가
  9. 2007.10.08 김다영 예약시간 선택 시 해당 일자 예약자 리스트 조회
  10. * 기 타 :
  11. -->
  12. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  13. <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">
  14. <xhtml:head>
  15. <xhtml:title>예약일정관리</xhtml:title>
  16. <model id="model1">
  17. <instance id="instance1">
  18. <root xmlns="">
  19. <main>
  20. <total>
  21. <fromdd/>
  22. <todd/>
  23. <fromtm/>
  24. <totm/>
  25. <termtm/>
  26. <mancnt/>
  27. <womcnt/>
  28. <comcnt/>
  29. <schlst>
  30. <item>
  31. <rsrvdd/>
  32. <rsrvweek/>
  33. <rsrvtm/>
  34. <psnnomancnt/>
  35. <psnnowomcnt/>
  36. <psnnocomcnt/>
  37. <rsrvpsnnomancnt/>
  38. <rsrvpsnnowomcnt/>
  39. <rsrvpsnnocomcnt/>
  40. </item>
  41. </schlst>
  42. <satyn/>
  43. <sunyn/>
  44. </total>
  45. <room>
  46. <fromdd/>
  47. <todd/>
  48. <cnt/>
  49. <satyn/>
  50. <sunyn/>
  51. <schlst>
  52. <item>
  53. <rsrvdd/>
  54. <rsrvweek/>
  55. <testroomcd/>
  56. <psnnocnt/>
  57. </item>
  58. </schlst>
  59. </room>
  60. <cnst>
  61. <fromdd/>
  62. <todd/>
  63. <amfromtm/>
  64. <amtotm/>
  65. <amterm/>
  66. <fmfromtm/>
  67. <fmtotm/>
  68. <fmterm/>
  69. <cnstdrid/>
  70. <srchcnstdrid/>
  71. <week>
  72. <monyn>1</monyn>
  73. <tueyn>2</tueyn>
  74. <wedyn>3</wedyn>
  75. <thuyn>4</thuyn>
  76. <friyn>5</friyn>
  77. <satyn/>
  78. </week>
  79. <schlst>
  80. <item>
  81. <rsrvdd/>
  82. <rsrvweek/>
  83. <rsrvtm/>
  84. <psnnocnt/>
  85. </item>
  86. </schlst>
  87. </cnst>
  88. <schedule>
  89. <srchcnstdrid/>
  90. <srchroomcd/>
  91. <rsrvacptlst>
  92. <item>
  93. <hngnm/>
  94. <pid/>
  95. <rgstno/>
  96. <rsrvtm/>
  97. <pkgnm/>
  98. <lastupdtrid/>
  99. <lastupdtdt/>
  100. <statfg/>
  101. <rsrvdd/>
  102. </item>
  103. </rsrvacptlst>
  104. <rsrvtmlst>
  105. <item>
  106. <rsrvtm/>
  107. <testroomcd/>
  108. <psnnomancnt/>
  109. <rsrvpsnnomancnt/>
  110. <psnnowomcnt/>
  111. <rsrvpsnnowomcnt/>
  112. <psnnocnt/>
  113. <rsrvpsnnocnt/>
  114. </item>
  115. </rsrvtmlst>
  116. </schedule>
  117. <roomschedule>
  118. <roomschlst>
  119. <item>
  120. <rsrvdd/>
  121. <rsrvweek/>
  122. <totalcnt/>
  123. <rsrvcnt/>
  124. <acptcnt/>
  125. <cnclcnt/>
  126. <holdcnt/>
  127. <remcnts/>
  128. <todaychoicnt/>
  129. <roomcd/>
  130. <roomcnt/>
  131. </item>
  132. </roomschlst>
  133. <inqfromdd/>
  134. <inqtodd/>
  135. </roomschedule>
  136. <dayblist>
  137. <remdd/>
  138. <remcnts/>
  139. <instcd/>
  140. </dayblist>
  141. </main>
  142. <send>
  143. <srchinstcd/>
  144. <srchhealexamflag/>
  145. <srchhealexamdetlflag/>
  146. <srchroomcd/>
  147. <srchcnstdrid/>
  148. <srchfromdd/>
  149. <srchtodd/>
  150. <srchcond/>
  151. <save>
  152. <savecnst/>
  153. <saveroom/>
  154. <savetotal/>
  155. <instcd/>
  156. <healexamflag/>
  157. <mode/>
  158. <rsrvdd/>
  159. <cnstdrid/>
  160. <roomcd/>
  161. <healexamdetlflag/>
  162. </save>
  163. <srchcond/>
  164. <srchcond2/>
  165. <srchrsrvmon/>
  166. <srchrsrvdd/>
  167. <srchallroomyn/>
  168. <srchrsrvflag/>
  169. <srchhopedd/>
  170. <srchstatfg/>
  171. <srchrsrvyn/>
  172. <srchrsltcnstrsrvdd/>
  173. <srchdateyn/>
  174. <partchngroomcode>
  175. <healexamflag/>
  176. <healexamdetlflag/>
  177. <fromdd/>
  178. <todd/>
  179. <chnglist/>
  180. </partchngroomcode>
  181. </send>
  182. <init>
  183. <room>
  184. <roomlst>
  185. <itemroom>
  186. <sel/>
  187. <testroomcd/>
  188. <testroomnm/>
  189. <cnt/>
  190. <rsrvyn/>
  191. </itemroom>
  192. </roomlst>
  193. </room>
  194. <cnst>
  195. <drlst>
  196. <itemdr>
  197. <drid/>
  198. <drnm/>
  199. </itemdr>
  200. </drlst>
  201. </cnst>
  202. <baseinfo>
  203. <healexamdetlflag/>
  204. </baseinfo>
  205. </init>
  206. <hidden/>
  207. <temp>
  208. <templst/>
  209. <calendar>
  210. <year/>
  211. <month/>
  212. <weeklist>
  213. <list>
  214. <sun/>
  215. <mon/>
  216. <tue/>
  217. <wed/>
  218. <thu/>
  219. <fri/>
  220. <sat/>
  221. <sun_memo/>
  222. <mon_memo/>
  223. <tue_memo/>
  224. <wed_memo/>
  225. <thu_memo/>
  226. <fri_memo/>
  227. <sat_memo/>
  228. </list>
  229. </weeklist>
  230. </calendar>
  231. <holiday/>
  232. </temp>
  233. </root>
  234. </instance>
  235. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  236. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  237. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  238. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  239. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  240. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  241. <script type="javascript" ev:event="xforms-ready">
  242. <![CDATA[
  243. var flag = getScreenMenuParameter();
  244. m_vHealexamflag = flag.substr(0, 1);
  245. if(flag.length >= 3) {
  246. m_vHealexamdetlflag = flag;
  247. } else {
  248. m_vHealexamdetlflag = flag + '01';
  249. }
  250. model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
  251. model.setValue("/root/send/srchhealexamdetlflag" , m_vHealexamdetlflag);
  252. if(m_vHealexamflag == "G"){
  253. caption2.visible = true;
  254. cmb_healexamdetlflag.visible = true;
  255. zbcfGetCodeList( new Array( "A0070"), new Array("/root/init/baseinfo"));
  256. submit("TRZBC00101");
  257. copyNodesetType("/root/init/baseinfo/healexamdetlflag", "/root/init/baseinfo/A0070", "replace", model, model);
  258. }else if(m_vHealexamflag == "C"){
  259. caption2.visible = true;
  260. cmb_healexamdetlflag.visible = true;
  261. zbcfGetCodeList( new Array("A0069"), new Array("/root/init/baseinfo"));
  262. submit("TRZBC00101");
  263. copyNodesetType("/root/init/baseinfo/healexamdetlflag", "/root/init/baseinfo/A0069", "replace", model, model);
  264. if (m_vHealexamdetlflag == 'C01'){
  265. m_vHealexamplacecd = 'S'
  266. }else if (m_vHealexamdetlflag == 'C03'){
  267. m_vHealexamplacecd = 'K'
  268. }
  269. model.makeValue("/root/send/srchhealexamplacecd", m_vHealexamplacecd );
  270. }else{
  271. caption2.visible = false;
  272. cmb_healexamdetlflag.visible = false;
  273. }
  274. fInitCtrl();
  275. cmb_healexamdetlflag.value = m_vHealexamdetlflag;
  276. model.setValue("/root/main/cnst/cnstdrid", model.getValue("/root/init/cnst/drlst/itemdr[1]/drid"));
  277. model.refresh();
  278. /**==========================================================================================================================
  279. * 화면권한추가
  280. @author : 김다영
  281. @version : 2007-10-04
  282. *==========================================================================================================================*/
  283. btn_searchcnnst.disabled = ! checkAuth("R");
  284. btn_save.disabled = ! checkAuth("X");
  285. btn_print.disabled = ! checkAuth("P");
  286. //T=> 건진전체일정관리, C: 상담의별 인원관리, R: 검사실별 일별 인원관리
  287. fGetSchList("T");
  288. fGetSchList("C");
  289. fGetSchList("R");
  290. ]]>
  291. </script>
  292. <submission id="TRAHB01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/schlst"/>
  293. <submission id="TRAHB01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/room/roomlst"/>
  294. <submission id="TRAHB01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/templst"/>
  295. <submission id="TRAHB01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cnst/drlst"/>
  296. <submission id="TRAHB01507" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/srchdel"/>
  297. <submission id="TRAHB01508" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/dayblist" resultref="/root/main/dayblist"/>
  298. <submission id="TRAHB01509" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/holiday"/>
  299. <submission id="TXAHB01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  300. <submission id="TXAHB01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/partchngroomcode" replace="instance" resultref="/root/hidden"/>
  301. <submission id="TXAHB01506" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cnst"/>
  302. <submission id="TXAHB01509" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/dayblist" resultref="/root/main/dayblist"/>
  303. <submission id="TRAHA00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/schedule/rsrvacptlst"/>
  304. <submission id="TRAHA00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/schedule/rsrvacptlst"/>
  305. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  306. </model>
  307. <script type="javascript">
  308. <![CDATA[
  309. var m_vHealexamflag = "";
  310. var m_vHealexamdetlflag = "";
  311. /**==========================================================================================================================
  312. * 초기화 작업
  313. *==========================================================================================================================*/
  314. function fInitCtrl(){
  315. btn_schmngtcret.selected= true;
  316. model.toggle("case_cret");
  317. //건진전체 일정관리 초기화
  318. var curDt = getCurrentDate();
  319. initCalendar();
  320. //예약현황집계내역 from/to초기화
  321. // model.setValue(ipt_inqfromdd.attribute("ref") , curDt);
  322. // model.setValue(ipt_inqtodd.attribute("ref") , curDt);
  323. // model.removeNodeset(grd_roominqiry.nodeset );
  324. model.setValue( ipt_totfromdd.attribute("ref") , curDt);
  325. model.setValue(ipt_tottodd.attribute("ref") , curDt);
  326. model.setValue(ipt_totfromtm.attribute("ref") , "0800");
  327. model.setValue(ipt_tottotm.attribute("ref") , "1300");
  328. model.setValue(ipt_tottermtm.attribute("ref") , "30");
  329. model.setValue(ipt_totmancnt.attribute("ref") , "10");
  330. model.setValue(ipt_totwomcnt.attribute("ref") , "10");
  331. model.setValue(input1.attribute("ref") , "10");
  332. model.setValue(chx_totsunyn.attribute("ref") , "Y");
  333. fClearSch("T");
  334. //경과상담예약일정관리 초기화
  335. model.setValue( ipt_cnstfromdd.attribute("ref") , curDt);
  336. model.setValue(ipt_cnsttodd.attribute("ref") , curDt);
  337. model.setValue(ipt_cnstamfromtm.attribute("ref") , "0800");
  338. model.setValue(ipt_cnstamtotm.attribute("ref") , "1200");
  339. model.setValue(ipt_cnstfmfromtm.attribute("ref") , "1300");
  340. model.setValue(ipt_cnstfmtotm.attribute("ref") , "1700");
  341. model.setValue(ipt_cnstamterm.attribute("ref") , "30");
  342. model.setValue(ipt_cnstfmterm.attribute("ref") , "30");
  343. model.setValue(chx_mon.attribute("ref") , "1");
  344. model.setValue(chx_tue.attribute("ref") , "2");
  345. model.setValue(chx_wed.attribute("ref") , "3");
  346. model.setValue(chx_thu.attribute("ref") , "4");
  347. model.setValue(chx_fri.attribute("ref") , "5");
  348. model.setValue(chx_sat.attribute("ref") , "6");
  349. fClearSch("C");
  350. model.setValue("/root/send/srchcond", "C" );
  351. submit("TRAHB01504");
  352. //검사실별 일정관리 초기화
  353. model.setValue(ipt_roomfromdd.attribute("ref") , curDt);
  354. model.setValue(ipt_roomtodd.attribute("ref") , curDt);
  355. model.setValue(chx_roomsunyn.attribute("ref") , "Y");
  356. fClearSch("R");
  357. model.setValue(ipt_roomcnt.attribute("ref") , 10);
  358. model.setValue("/root/send/srchrsrvyn" , "Y" );
  359. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
  360. submit("TRAHB01502");
  361. rdo_srchcond2.value = "T";
  362. fSetSrchCtrlState("T");
  363. fGetRsrvSchList(2);
  364. }
  365. /**==========================================================================================================================
  366. * 조회구분별 control 처리
  367. * vMode : T=> 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리
  368. *============================================================================================================================*/
  369. function fSetSrchCtrlState(vMode){
  370. var col_tm = 1;
  371. var col_roomcd = 2;
  372. var col_mancnt = 3;
  373. var col_rsrvmancnt = 4;
  374. var col_womcnt = 5;
  375. var col_rsrvwomcnt = 6;
  376. var col_cnt = 7;
  377. var col_rsrvcnt = 8;
  378. var col_comcnt =9;
  379. var col_rsrvcomcnt =10;
  380. cap_cnstdr.visible = false;
  381. cap_room.visible = false;
  382. cmb_srchcnstdrid.visible = false;
  383. cmb_srchroomcd.visible = false;
  384. chk_srchallroom.visible = false;
  385. for( var i = 1; i < grd_rsrvtmlst.cols; i++){
  386. grd_rsrvtmlst.colHidden(i) = true;
  387. }
  388. if( vMode == "T"){
  389. grd_rsrvtmlst.colHidden(col_tm) = false;
  390. grd_rsrvtmlst.colHidden(col_mancnt) = false;
  391. grd_rsrvtmlst.colHidden(col_rsrvmancnt) = false;
  392. grd_rsrvtmlst.colHidden(col_womcnt) = false;
  393. grd_rsrvtmlst.colHidden(col_rsrvwomcnt) = false;
  394. grd_rsrvtmlst.colHidden(col_comcnt) = false;
  395. grd_rsrvtmlst.colHidden(col_rsrvcomcnt) = false;
  396. }
  397. else
  398. if( vMode == "R" ) {
  399. chk_srchallroom.visible = true;
  400. cap_room.visible = true;
  401. cmb_srchroomcd.visible = true;
  402. grd_rsrvtmlst.colHidden(col_roomcd) = false;
  403. grd_rsrvtmlst.colHidden(col_cnt) = false;
  404. grd_rsrvtmlst.colHidden(col_rsrvcnt) = false;
  405. }
  406. else
  407. if( vMode == "C" ) {
  408. cap_cnstdr.visible = true;
  409. cmb_srchcnstdrid.visible = true;
  410. grd_rsrvtmlst.colHidden(col_tm) = false;
  411. grd_rsrvtmlst.colHidden(col_cnt) = false;
  412. grd_rsrvtmlst.colHidden(col_rsrvcnt) = false;
  413. }
  414. }
  415. /**==========================================================================================================================
  416. * 건진전체 일정 생성
  417. *============================================================================================================================*/
  418. function fMakeTotSch(){
  419. var fromdd = ipt_totfromdd.value;
  420. var todd = ipt_tottodd.value;
  421. if(fCheckTerm(fromdd, todd, "D") < 0) return;
  422. var fromtm = ipt_totfromtm.value;
  423. var totm = ipt_tottotm.value;
  424. if(fCheckTerm(fromtm, totm, "T") < 0) return;
  425. var term = parseInt( ipt_tottermtm.value);
  426. var man = ipt_totmancnt.value;
  427. var wom = ipt_totwomcnt.value;
  428. var com = input1.value;
  429. var cur_cnt = grd_totalschlst.rows;
  430. fMakeSchlst(grd_totalschlst , fromdd, todd, fromtm, totm, term, man, wom, com, true/*sex*/, false/*week*/ );
  431. for(i=cur_cnt; i<grd_totalschlst.rows; i++){
  432. grd_totalschlst.addStatus(i, "insert");
  433. }
  434. grd_totalschlst.refresh();
  435. }
  436. /**==========================================================================================================================
  437. * 종합건진 전체/결과상담 일정관리- 중복일자/시간 check.
  438. *============================================================================================================================*/
  439. function fCheckDupDateTime(vGrdObj, vRsrvdd, vRsrvtm){
  440. if(vGrdObj == null) return false;
  441. var rsv_cnt = vGrdObj.rows;
  442. var sNode = vGrdObj.nodeset+ "[";
  443. for(var i=1; i<rsv_cnt; i++){
  444. if((vRsrvdd == model.getValue(sNode + i + "]/rsrvdd")) && (vRsrvtm == model.getValue(sNode + i + "]/rsrvtm" ))){
  445. return false;
  446. }
  447. }
  448. return true;
  449. }
  450. /**==========================================================================================================================
  451. * 검사실별 일별 인원관리 일정 생성
  452. *============================================================================================================================*/
  453. function fMakeRoomSch(){
  454. var fromdd = ipt_roomfromdd.value;
  455. var todd = ipt_roomtodd.value;
  456. if(fCheckTerm(fromdd, todd, "D") < 0) return;
  457. if(submit("TRAHB01509") == false){
  458. messageBox("병원일정(공휴일여부)을 관리정보를 조회중 오류", "E008");
  459. return;
  460. }
  461. var holiday = "";
  462. var holidayNode = null;
  463. var dateFrom = fromdd.toDate();
  464. var dateTo = todd.toDate();
  465. var cnt = grd_roomlst.rows;
  466. var sNode = grd_roomschlst.nodeset+ "[";
  467. var j = grd_roomschlst.rows ;
  468. var cur_cnt = j;
  469. var roomcd = "";
  470. var psnocnt = "";
  471. var startdd = fromdd;
  472. var ret = "";
  473. for(var i=1; i<grd_roomlst.rows; i++){
  474. if(grd_roomlst.valueMatrix(i, 1) == "N") continue;
  475. roomcd = model.getValue(grd_roomlst.nodeset + "[" + i + "]/testroomcd" );
  476. psnocnt = model.getValue(grd_roomlst.nodeset + "[" + i + "]/cnt" );
  477. if(psnocnt == 0) psnocnt = model.getValue("/root/main/room/cnt");
  478. if(roomcd == "" ) continue;
  479. fromdd = startdd;
  480. dateFrom = fromdd.toDate();
  481. while(getDateInterval(fromdd, todd) >= 0){
  482. //중복값 skip
  483. if(!fCheckRoomDupDate(fromdd, roomcd)){
  484. dateFrom.getAddDate(1);
  485. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  486. continue;
  487. }
  488. ret = dateFrom.getDayOfWeek("N" );
  489. //일요일 skip, 토요일 skip
  490. if(((chx_roomsunyn.value == "Y" ) && (ret == "0")) || ((chx_roomsatyn.value == "Y") && (ret == "6"))){
  491. dateFrom.getAddDate(1);
  492. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  493. continue;
  494. }
  495. //휴일 skip
  496. holidayNode = instance1.selectSingleNode("/root/temp/holiday");
  497. if(holidayNode != null){
  498. holidayNode = instance1.selectNodes("/root/temp/holiday/item");
  499. for(var h=1; h<=holidayNode.length; h++){
  500. holiday = model.getValue("/root/temp/holiday/item[" +h+ "]/basedd" );
  501. if(holiday == dateFrom.getDateFormat("YYYYMMDD")){
  502. dateFrom.getAddDate(1);
  503. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  504. continue;
  505. }
  506. }
  507. }
  508. fCheckNodeExist(sNode + j + "]/rsrvdd" , true);
  509. fCheckNodeExist(sNode + j + "]/rsrvweek" , true);
  510. fCheckNodeExist(sNode + j + "]/testroomcd" , true);
  511. fCheckNodeExist(sNode + j + "]/psnnocnt" , true);
  512. model.setValue(sNode + j + "]/rsrvdd" , fromdd);
  513. model.setValue(sNode + j + "]/rsrvweek" , dateFrom.getDayOfWeek("K"));
  514. model.setValue(sNode + j + "]/testroomcd" , roomcd);
  515. model.setValue(sNode + j + "]/psnnocnt" , psnocnt);
  516. dateFrom.getAddDate(1);
  517. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  518. j++;
  519. }
  520. }
  521. grd_roomschlst.refresh();
  522. for(i=cur_cnt; i<j; i++){
  523. grd_roomschlst.addStatus(i, "insert");
  524. }
  525. grd_roomschlst.refresh();
  526. }
  527. /**==========================================================================================================================
  528. * 검사실별 인원관리-중복일자/검사실 check.
  529. *============================================================================================================================*/
  530. function fCheckRoomDupDate(vRsrvdd, vRoomcd){
  531. var rsv_cnt = grd_roomschlst.rows ;
  532. var sNode = grd_roomschlst.nodeset+ "[";
  533. for(var i=1; i<rsv_cnt; i++){
  534. if((vRsrvdd == model.getValue(sNode + i + "]/rsrvdd")) && (vRoomcd == model.getValue(sNode + i + "]/testroomcd"))) return false;
  535. }
  536. return true;
  537. }
  538. /**==========================================================================================================================
  539. * 상담의별 상담예약일정 생성
  540. *============================================================================================================================*/
  541. function fMakeCnstSch(){
  542. var fromdd = ipt_cnstfromdd.value;
  543. var todd = ipt_cnsttodd.value;
  544. if( fCheckTerm(fromdd, todd, "D") < 0 ) return ;
  545. var cur_cnt = grd_cnstschlst.rows;
  546. var fromtm = ipt_cnstamfromtm.value;
  547. var totm = ipt_cnstamtotm.value;
  548. if( fCheckTerm(fromtm, totm, "T") < 0 ) return ;
  549. var term = parseInt( ipt_cnstamterm.value);
  550. if ((fromtm != '0000') && (totm != '0000')) {
  551. fMakeSchlst(grd_cnstschlst , fromdd, todd, fromtm, totm, term, 1, 0, 0, false, true );
  552. }
  553. var tfromtm = ipt_cnstfmfromtm.value;
  554. var ttotm = ipt_cnstfmtotm.value;
  555. if( fCheckTerm(tfromtm, ttotm, "T") < 0 ) return ;
  556. var tterm = parseInt( ipt_cnstfmterm.value);
  557. if ((tfromtm != '0000') && (ttotm != '0000')) {
  558. fMakeSchlst(grd_cnstschlst , fromdd, todd, tfromtm, ttotm, tterm, 1, 0, 0, false, true );
  559. }
  560. for( i = cur_cnt ; i < grd_cnstschlst.rows ; i++ ){
  561. grd_cnstschlst.addStatus(i, "insert");
  562. }
  563. grd_cnstschlst.refresh();
  564. }
  565. /*===================================================================================================================================================================================================
  566. * grid에 조건에 따른 스케쥴 생성
  567. * vGrdObj : 대상 grid
  568. * fromdd : 시작일시
  569. * todd : 종료일시
  570. * fromtm : 시작시간
  571. * totm : 종료시간
  572. * term : 시간간격
  573. * mancnt : 예약가능인원(남)
  574. * womcnt : 예약가능인원(여)
  575. * comcnt : 예약가능인원(공통)
  576. * bSexFg : 성별구분(false일 경우 예약가능인원은 mancnt로 들어감)
  577. * bWeekFg : 요일check여부(false일 경우 토/일요일만 check, true일 경우 월~토 중 check된 일자만 생성)
  578. *====================================================================================================================================================================================================
  579. */
  580. function fMakeSchlst(vGrdObj, fromdd, todd, fromtm, totm, term, mancnt, womcnt, comcnt, bSexFg, bWeekFg){
  581. if( vGrdObj == null ) return;
  582. if(submit("TRAHB01509") == false){
  583. messageBox("병원일정(공휴일여부)을 관리정보를 조회중 오류", "E008");
  584. return;
  585. }
  586. var holiday = "";
  587. var holidayNode = null;
  588. var i = 0;
  589. var cur_cnt = vGrdObj.rows;
  590. var j = cur_cnt;
  591. var sNode = vGrdObj.nodeset + "[";
  592. var curtm = fromtm;
  593. var ret = "";
  594. var dateFrom = fromdd.toDate();
  595. var dateTo = todd.toDate();
  596. var tmFrom = (fromdd + fromtm).toDate("YYYYMMDDhhmm");
  597. var tmTo = (todd + totm).toDate("YYYYMMDDhhmm");
  598. while(getDateInterval(fromdd, todd) >= 0){
  599. ret = dateFrom.getDayOfWeek("N");
  600. //중복값 skip
  601. if(!fCheckDupDateTime(vGrdObj, fromdd, fromtm)){
  602. dateFrom.getAddDate(1);
  603. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  604. continue;
  605. }
  606. //일요일 skip, 토요일 skip
  607. if(!bWeekFg){
  608. if(((chx_totsunyn.value == "Y" ) && (ret == "0")) || ((chx_totsatyn.value == "Y" ) && (ret == "6" ))){
  609. dateFrom.getAddDate(1);
  610. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  611. continue;
  612. }
  613. }else{
  614. //상담예약스케쥴 : 선택되지 않은 요일은 skip
  615. if((chx_mon.value != ret ) && (chx_tue.value != ret) && (chx_wed.value != ret) && ( chx_thu.value != ret ) && (chx_fri.value != ret ) && (chx_sat.value != ret )){
  616. dateFrom.getAddDate(1);
  617. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  618. continue;
  619. }
  620. }
  621. //휴일 skip
  622. holidayNode = instance1.selectSingleNode("/root/temp/holiday");
  623. if(holidayNode != null){
  624. holidayNode = instance1.selectNodes("/root/temp/holiday/item");
  625. for(var h=1; h<=holidayNode.length; h++){
  626. holiday = model.getValue("/root/temp/holiday/item[" +h+ "]/basedd" );
  627. if(holiday == dateFrom.getDateFormat("YYYYMMDD")){
  628. dateFrom.getAddDate(1);
  629. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  630. continue;
  631. }
  632. }
  633. }
  634. fromtm = curtm;
  635. tmFrom = (fromdd + fromtm).toDate("YYYYMMDDhhmm");
  636. while(getTimeInterval(fromtm, totm) >= 0){
  637. //vGrdObj.addRow();
  638. model.makeNode(sNode + j + "]/rsrvdd");
  639. model.setValue(sNode + j + "]/rsrvdd", fromdd);
  640. model.makeNode(sNode + j + "]/rsrvtm");
  641. model.setValue(sNode + j + "]/rsrvtm", fromtm);
  642. model.makeNode(sNode + j + "]/rsrvweek");
  643. model.setValue(sNode + j + "]/rsrvweek", dateFrom.getDayOfWeek("K"));
  644. if(bSexFg){
  645. model.makeNode(sNode + j + "]/psnnomancnt");
  646. model.makeNode(sNode + j + "]/psnnowomcnt");
  647. model.makeNode(sNode + j + "]/psnnocomcnt");
  648. model.setValue(sNode + j + "]/psnnomancnt", mancnt );
  649. model.setValue(sNode + j + "]/psnnowomcnt", womcnt);
  650. model.setValue(sNode + j + "]/psnnocomcnt", comcnt);
  651. }else{
  652. model.makeNode(sNode + j + "]/psnnocnt");
  653. model.setValue(sNode + j + "]/psnnocnt", mancnt );
  654. }
  655. tmFrom.getAddDate(term, "m");
  656. fromtm = tmFrom.getDateFormat("hhmm");
  657. j++;
  658. }
  659. dateFrom.getAddDate(1);
  660. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  661. }
  662. vGrdObj.refresh();
  663. }
  664. /**==========================================================================================================================
  665. * 일자 check
  666. *============================================================================================================================*/
  667. function fCheckTerm(vFrom, vTo, vDTFlag){
  668. var ret = -1 ;
  669. if( vDTFlag = "D" ){
  670. ret = getDateInterval(vFrom, vTo) ;
  671. }
  672. else {
  673. ret = getTimeInterval(vFrom, vTo);
  674. }
  675. if( ret < 0 ) {
  676. alert("기간설정이 잘못되었습니다.");
  677. }
  678. return ret;
  679. }
  680. /**==========================================================================================================================
  681. * 건진전체예약일정내역 clear
  682. * vMode : T=> 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리
  683. *==========================================================================================================================*/
  684. function fClearSch(vMode){
  685. if( vMode == "T" ) model.removeNodeset("/root/main/total/schlst/item");
  686. else
  687. if( vMode == "R" ) model.removeNodeset("/root/main/room/schlst/item");
  688. else
  689. if( vMode == "C" ) model.removeNodeset("/root/main/cnst/schlst/item");
  690. model.refresh();
  691. }
  692. /**==========================================================================================================================
  693. * 스케줄 조회
  694. * vMode : T=> 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리
  695. *==========================================================================================================================*/
  696. function fGetSchList(vMode){
  697. model.removeNodeset("/root/temp/schlst/item");
  698. model.setValue("/root/send/srchhealexamflag", m_vHealexamflag);
  699. var sFromdd = "";
  700. var sTodd = "";
  701. var sDest = "";
  702. if( vMode == "T" ){
  703. sFromdd = ipt_totfromdd.value;
  704. sTodd = ipt_tottodd.value;
  705. sDest = "/root/main/total/schlst";
  706. }else if( vMode == "R" ){
  707. sFromdd = ipt_roomfromdd.value;
  708. sTodd = ipt_roomtodd.value;
  709. sDest = "/root/main/room/schlst";
  710. //model.setValue("/root/send/srchroomcd", grd_roomlst.valueMatrix(grd_roomlst.row,2) );
  711. }else if( vMode == "C" ){
  712. sFromdd = ipt_cnstfromdd.value;
  713. sTodd = ipt_cnsttodd.value;
  714. sDest = "/root/main/cnst/schlst";
  715. model.setValue("/root/send/srchcnstdrid", model.getValue("/root/main/cnst/cnstdrid"));
  716. }else{
  717. return;
  718. }
  719. model.removeNodeset(sDest + "/item" );
  720. model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
  721. model.setValue("/root/send/srchcond" , vMode);
  722. model.setValue("/root/send/srchfromdd" , sFromdd );
  723. model.setValue("/root/send/srchtodd" , sTodd );
  724. model.setValue("/root/send/srchhealexamdetlflag" , cmb_healexamdetlflag.value);
  725. //if( ! fCheckTerm(sFromdd, sTodd, "D") )return ;
  726. submit("TRAHB01501");
  727. var temp = instance1.selectSingleNode("/root/temp/schlst/item");
  728. if( temp != null ) {
  729. copyNodeType(sDest, "/root/temp/schlst", "replace");
  730. model.refresh();
  731. }
  732. }
  733. /**==========================================================================================================================
  734. * 스케줄 저장
  735. * vMode : T=> 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리
  736. * vCaseFg : 일정생성(I)/ 수정(U) case구분
  737. *==========================================================================================================================*/
  738. function fSaveSch(vMode, vTotGrdObj, vRoomGrdObj, vCnstGrdObj, vCaseFg) {
  739. if( !fCheckSaveSchData(vMode, vTotGrdObj, vRoomGrdObj, vCnstGrdObj) ) {
  740. alert("저장할 내역이 없습니다.");
  741. return ;
  742. }
  743. model.resetInstanceNode("/root/send/save");
  744. model.setValue("/root/send/save/healexamflag", m_vHealexamflag );
  745. if(m_vHealexamflag == "G") {
  746. model.setValue("/root/send/save/healexamdetlflag", cmb_healexamdetlflag.value );
  747. }else{
  748. model.setValue("/root/send/save/healexamdetlflag", cmb_healexamdetlflag.value);
  749. }
  750. model.setValue("/root/send/save/mode", vMode );
  751. var Tmp = "";
  752. if(vCaseFg == "U"){
  753. if(vMode == "C"){
  754. Tmp = cmb_srchcnstdrid.value;
  755. if(Tmp == ""){
  756. messageBox("상담의를 선택하세요", "E999");
  757. return ;
  758. }
  759. model.setValue("/root/send/save/cnstdrid" , Tmp);
  760. }else if(vMode == "R"){
  761. /*
  762. Tmp = cmb_srchroomcd.value;
  763. if( Tmp == "" ) {
  764. messageBox("검사실을 선택하세요", "E999");
  765. return;
  766. }
  767. model.setValue("/root/send/save/roomcd", Tmp);
  768. */
  769. }
  770. model.setValue("/root/send/save/rsrvdd", fGetCalendarDate(grd_calendar));
  771. }else if( vCaseFg = "I" ){
  772. if(vMode == "C"){
  773. Tmp = cmb_cnstdrid.value;
  774. if(Tmp == ""){
  775. messageBox("상담의를 선택하세요", "E999");
  776. return ;
  777. }
  778. model.setValue("/root/send/save/cnstdrid", Tmp);
  779. }
  780. }
  781. if( vMode == "T" ){
  782. model.setValue("/root/send/save/savetotal" , vTotGrdObj.getUpdateData());
  783. }else if( vMode == "R" ){
  784. model.setValue("/root/send/save/saveroom" , vRoomGrdObj.getUpdateData());
  785. }else if( vMode == "C" ){
  786. model.setValue("/root/send/save/savecnst" , vCnstGrdObj.getUpdateData());
  787. }else{
  788. model.setValue("/root/send/save/savetotal" , vTotGrdObj.getUpdateData());
  789. model.setValue("/root/send/save/saveroom" , vRoomGrdObj.getUpdateData());
  790. model.setValue("/root/send/save/savecnst" , vCnstGrdObj.getUpdateData());
  791. }
  792. if(submit("TXAHB01501") == true){
  793. if(vCaseFg == "I"){
  794. fGetSchList(vMode);
  795. }else{
  796. fGetRsrvSchList(2);
  797. fGetRsrvSchList(1);
  798. }
  799. }
  800. }
  801. /**==========================================================================================================================
  802. * 저장대상 데이터 check
  803. * vMode : T=> 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리, 공란: all
  804. *==========================================================================================================================*/
  805. function fCheckSaveSchData(vMode, vTotGrdObj, vRoomGrdObj, vCnstGrdObj){
  806. var vSaveData = "";
  807. if( vMode == "T" ){
  808. vSaveData = getGridUpdateData(vTotGrdObj);
  809. if( vSaveData == "" ) return false;
  810. }
  811. else
  812. if( vMode == "R" ){
  813. vSaveData = getGridUpdateData(vRoomGrdObj);
  814. if( vSaveData == "" ) return false;
  815. }
  816. else
  817. if( vMode == "C" ){
  818. vSaveData =getGridUpdateData( vCnstGrdObj);
  819. if( vSaveData == "" ) return false;
  820. }
  821. else {
  822. if( (getGridUpdateData(vTotGrdObj ) == "" ) && (getGridUpdateData(vRoomGrdObj ) == "" ) && (getGridUpdateData(vCnstGrdObj) == "")
  823. ) return false;
  824. }
  825. return true;
  826. }
  827. /**==========================================================================================================================
  828. * 월별 일별 스케쥴내역 조회. (달력으로 조회~~)
  829. * vMode : 1 : 일자별 시간대별 가능인원 조회( 시간대만 조회)
  830. 2 : 월별 일자별 가능 인원 조회(달력만 조회~)
  831. *==========================================================================================================================*/
  832. function fGetRsrvSchList(vMode ){
  833. model.removeNodeset("/root/temp/templst");
  834. model.removeNodeset(grd_rsrvpatlst.nodeset);
  835. model.removeNodeset(grd_rsrvtmlst.nodeset);
  836. model.setValue("/root/send/srchcond", rdo_srchcond2.value);
  837. var sRsrvMon = model.getValue("/root/temp/calendar/year") + model.getValue("/root/temp/calendar/month") ;
  838. fCheckNodeExist("/root/send/srchhealexamflag" , true);
  839. model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag );
  840. fCheckNodeExist("/root/send/srchrsrvmon" , true);
  841. model.setValue( "/root/send/srchrsrvmon" , sRsrvMon);
  842. model.setValue("/root/send/srchcnstdrid" , cmb_srchcnstdrid.value);
  843. model.setValue("/root/send/srchroomcd" , cmb_srchroomcd.value);
  844. if (cmb_healexamdetlflag.value=="") {
  845. model.setValue("/root/send/srchhealexamdetlflag", m_vHealexamdetlflag);
  846. } else {
  847. model.setValue("/root/send/srchhealexamdetlflag", cmb_healexamdetlflag.value);
  848. }
  849. var sNode = null;
  850. if( vMode == 1 ) {
  851. model.setValue("/root/send/srchhealexamflag", m_vHealexamflag);
  852. model.setValue("/root/send/srchfromdd" , fGetCalendarDate(grd_calendar) );
  853. model.setValue("/root/send/srchtodd" , fGetCalendarDate(grd_calendar) );
  854. submit("TRAHB01501");
  855. sNode = instance1.selectSingleNode("/root/temp/schlst/item");
  856. if( sNode != null ) {
  857. copyNodeListType("/root/main/schedule/rsrvtmlst", "/root/temp/schlst/item", "replace" );
  858. }
  859. }
  860. else
  861. if( vMode == 2 ) {
  862. model.setValue("/root/send/srchrsrvdd" , "" );
  863. submit("TRAHB01503");
  864. sNode = instance1.selectSingleNode("/root/temp/templst/rsrvddlst");
  865. if( sNode != null ){
  866. var dd = null ;
  867. var iCol = null;
  868. var iRow = null;
  869. var firstDay = (sRsrvMon+ "01").toDate().getDay();
  870. sNode = instance1.selectNodes("/root/temp/templst/rsrvddlst");
  871. for( var i = 1 ; i <= sNode.length ; i++){
  872. dd = model.getValue("/root/temp/templst/rsrvddlst[" +i+ "]/rsrvdd" ) ;
  873. iCol = ( sRsrvMon + dd).toDate().getDay();
  874. iRow = Math.ceil( ( firstDay + Number(dd) ) / 7 );
  875. grd_calendar.valueMatrix(iRow , iCol + 7) = model.getValue("/root/temp/templst/rsrvddlst[" +i+ "]/psnnocnt" ) ;
  876. }
  877. }
  878. }
  879. model.refresh();
  880. }
  881. /**==========================================================================================================================
  882. * 예약시간 선택 시 해당 일자 예약자 리스트 조회
  883. @author : 김다영
  884. @version : 2007-10-08
  885. *==========================================================================================================================*/
  886. function fGetRsrvPatList(srchcond2){
  887. //건진전체일정 , 검사실예약인원 리스트 조회
  888. if(rdo_srchcond2.value == "T" || rdo_srchcond2.value == "R"){
  889. model.removeNodeset("/root/main/schedule/rsrvacptlst");
  890. var sRsrvDate = fGetCalendarDate(grd_calendar);
  891. var sHealExamFlag = m_vHealexamflag;
  892. var sStatFg = "C";
  893. model.setValue("/root/send/srchhealexamflag" , sHealExamFlag);
  894. model.setValue("/root/send/srchstatfg" , sStatFg);
  895. model.setValue("/root/send/srchdateyn" , "Y");
  896. model.setValue("/root/send/srchrsltcnstrsrvdd" , sRsrvDate);
  897. model.setValue("/root/send/srchfromdd" , fGetCalendarDate(grd_calendar) );
  898. model.setValue("/root/send/srchtodd" , fGetCalendarDate(grd_calendar) );
  899. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
  900. model.removeNodeset(grd_rsrvpatlst.nodeset);
  901. model.setValue("/root/send/srchcnstdrid" , "");
  902. submit("TRAHA00401");
  903. }
  904. else if(rdo_srchcond2.value == "C"){
  905. model.removeNodeset("/root/main/schedule/rsrvacptlst");
  906. var sRsrvDate = fGetCalendarDate(grd_calendar);
  907. var sHealExamFlag = m_vHealexamflag;
  908. model.setValue("/root/send/srchhealexamflag" , sHealExamFlag);
  909. model.setValue("/root/send/srchrsltcnstrsrvdd" , sRsrvDate);
  910. model.setValue("/root/send/srchfromdd" , fGetCalendarDate(grd_calendar) );
  911. model.setValue("/root/send/srchtodd" , fGetCalendarDate(grd_calendar) );
  912. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
  913. model.removeNodeset(grd_rsrvpatlst.nodeset);
  914. submit("TRAHA00901");
  915. }
  916. }
  917. /**==========================================================================================================================
  918. * 전제삭제 함수
  919. @author : 김다영
  920. @version : 2007-10-08
  921. *==========================================================================================================================*/
  922. function fDeleteAllRows(vGrd) {
  923. for(var i = 1; i < vGrd.rows; i++) {
  924. vGrd.isSelected(i) = true;
  925. }
  926. deleteSelectedRows(vGrd,true);
  927. }
  928. ]]>
  929. </script>
  930. </xhtml:head>
  931. <xhtml:body guideline="1,1195;2,737;2,750;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  932. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  933. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">예약일정관리</caption>
  934. </group>
  935. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1194px; height:744px; ">
  936. <switch id="switch1" widt6h="1195px" style="left:0px; top:25px; width:1194px; height:707px; border-color:#c0a8c8; border-width:1; border-style:solid; ">
  937. <case id="case_cret" selected="true">
  938. <input id="ipt_totfromdd" ref="/root/main/total/fromdd" class="input_essential" inputtype="date" style="left:68px; top:28px; width:100px; height:19px; ">
  939. <script type="javascript" ev:event="onkeyup">
  940. <![CDATA[
  941. fMoveFocus("ipt_tottodd");
  942. ]]>
  943. </script>
  944. <script type="javascript" ev:event="xforms-value-changed">
  945. <![CDATA[
  946. fGetSchList("T");
  947. ]]>
  948. </script>
  949. </input>
  950. <input id="ipt_tottodd" ref="/root/main/total/todd" class="input_essential" inputtype="date" style="left:189px; top:29px; width:100px; height:19px; ">
  951. <script type="javascript" ev:event="onkeyup">
  952. <![CDATA[
  953. fMoveFocus("ipt_totfromtm");
  954. ]]>
  955. </script>
  956. <script type="javascript" ev:event="xforms-value-changed">
  957. <![CDATA[
  958. fGetSchList("T");
  959. ]]>
  960. </script>
  961. </input>
  962. <input id="ipt_totfromtm" ref="/root/main/total/fromtm" class="input_default" imemode="alpha" maxlength="4" format="hh:nn" style="left:68px; top:53px; width:43px; height:19px; ">
  963. <script type="javascript" ev:event="onkeyup">
  964. <![CDATA[
  965. fMoveFocus("ipt_tottotm");
  966. ]]>
  967. </script>
  968. </input>
  969. <input id="ipt_tottotm" ref="/root/main/total/totm" class="input_default" imemode="alpha" maxlength="4" format="hh:nn" style="left:125px; top:53px; width:43px; height:19px; ">
  970. <script type="javascript" ev:event="onkeyup">
  971. <![CDATA[
  972. fMoveFocus("ipt_tottermtm");
  973. ]]>
  974. </script>
  975. </input>
  976. <input id="ipt_tottermtm" ref="/root/main/total/termtm" class="input_default" style="left:207px; top:52px; width:55px; height:19px; ">
  977. <script type="javascript" ev:event="onkeyup">
  978. <![CDATA[
  979. fMoveFocus("ipt_totmancnt");
  980. ]]>
  981. </script>
  982. </input>
  983. <input id="ipt_totmancnt" ref="/root/main/total/mancnt" class="input_default" style="left:96px; top:78px; width:40px; height:19px; ">
  984. <script type="javascript" ev:event="onkeyup">
  985. <![CDATA[
  986. fMoveFocus("ipt_totwomcnt");
  987. ]]>
  988. </script>
  989. </input>
  990. <input id="ipt_totwomcnt" ref="/root/main/total/womcnt" class="input_default" style="left:187px; top:78px; width:40px; height:19px; ">
  991. <script type="javascript" ev:event="onkeyup">
  992. <![CDATA[
  993. fMoveFocus("input1");
  994. ]]>
  995. </script>
  996. </input>
  997. <button id="btn_totalmake" class="btn2_letter2" style="left:350px; top:78px; width:42px; height:19px; ">
  998. <caption>생성</caption>
  999. <script type="javascript" ev:event="DOMActivate">
  1000. <![CDATA[
  1001. openLoadingBar("스케쥴 생성하고 있습니다.");
  1002. fMakeTotSch();
  1003. closeLoadingBar();
  1004. fMoveFocus("btn_totsave");
  1005. ]]>
  1006. </script>
  1007. </button>
  1008. <caption id="caption6" class="cell_1" style="left:5px; top:51px; width:61px; height:23px; vertical-align:middle; ">시간</caption>
  1009. <caption id="caption13" class="search_no_b" style="left:174px; top:30px; width:12px; height:17px; ">~</caption>
  1010. <line id="line6" class="line_1" style="x1:5px; y1:22px; x2:392px; y2:22px; "/>
  1011. <caption id="caption14" class="tit_2" style="left:5px; top:7px; width:170px; height:14px; ">건진전체예약스케쥴생성</caption>
  1012. <caption id="caption16" class="cell_1" style="left:174px; top:50px; width:31px; height:23px; vertical-align:middle; ">간격</caption>
  1013. <caption id="caption31" class="cell_1" style="left:5px; top:27px; width:61px; height:23px; vertical-align:middle; ">기간</caption>
  1014. <caption id="caption38" class="search_no_b" style="left:266px; top:53px; width:18px; height:17px; ">분</caption>
  1015. <caption id="caption45" class="cell_1" style="left:5px; top:76px; width:61px; height:23px; vertical-align:middle; ">인원</caption>
  1016. <caption id="caption70" class="search_no_b" style="left:138px; top:79px; width:18px; height:17px; ">명</caption>
  1017. <datagrid id="grd_totalschlst" nodeset="/root/main/total/schlst/item" caption="일자^요일^시간^남자^여자^공통" colsep="^" colwidth="90, 35, 60, 50, 50, 50" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:127px; width:387px; height:571px; ">
  1018. <col ref="rsrvdd" type="inputdate"/>
  1019. <col ref="rsrvweek"/>
  1020. <col ref="rsrvtm" type="input" format="hh:nn"/>
  1021. <col ref="psnnomancnt" type="input"/>
  1022. <col ref="psnnowomcnt" type="input"/>
  1023. <col ref="psnnocomcnt" type="input"/>
  1024. <script type="javascript" ev:event="xforms-value-changed">
  1025. <![CDATA[
  1026. var idx = grd_totalschlst.row;
  1027. if( idx < 1) return ;
  1028. if( grd_totalschlst.col == 1){
  1029. var rsrvdd = grd_totalschlst.valueMatrix(idx, 1);
  1030. if( ! isValidDateTime(rsrvdd, "YYYYMMDD") ) return ;
  1031. grd_totalschlst.valueMatrix(idx, 2) = rsrvdd.toDate("YYYYMMDD").getDayOfWeek("K");
  1032. }
  1033. ]]>
  1034. </script>
  1035. </datagrid>
  1036. <line id="line12" class="line_2" style="x1:5px; y1:49px; x2:392px; y2:49px; "/>
  1037. <button id="btn_totclear" class="btn2_letter3" style="left:93px; top:102px; width:53px; height:19px; ">
  1038. <caption>초기화</caption>
  1039. <script type="javascript" ev:event="DOMActivate">
  1040. <![CDATA[
  1041. fClearSch("T");
  1042. //fGetSchList("T");
  1043. ]]>
  1044. </script>
  1045. </button>
  1046. <button id="btn_totadd" class="btn2_letter2" style="left:149px; top:102px; width:42px; height:19px; ">
  1047. <caption>추가</caption>
  1048. <script type="javascript" ev:event="DOMActivate">
  1049. <![CDATA[
  1050. grd_totalschlst.addRow();
  1051. grd_totalschlst.col= 1;
  1052. grd_totalschlst.valueMatrix(grd_totalschlst.row, 1) = getCurrentDate();
  1053. grd_totalschlst.editCell();
  1054. ]]>
  1055. </script>
  1056. </button>
  1057. <button id="btn_totdel" class="btn2_letter2" style="left:194px; top:102px; width:42px; height:19px; ">
  1058. <caption>삭제</caption>
  1059. <script type="javascript" ev:event="DOMActivate">
  1060. <![CDATA[
  1061. //grd_totalschlst.addStatus(grd_totalschlst.row, "delete");
  1062. deleteSelectedRows(grd_totalschlst, true);
  1063. ]]>
  1064. </script>
  1065. </button>
  1066. <button id="btn_totalldel" class="btn2_letter4" style="left:239px; top:102px; width:64px; height:19px; ">
  1067. <caption>전체삭제</caption>
  1068. <script type="javascript" ev:event="DOMActivate">
  1069. <![CDATA[
  1070. fDeleteAllRows(grd_totalschlst);
  1071. ]]>
  1072. </script>
  1073. </button>
  1074. <caption id="caption71" class="tit_2" style="left:5px; top:108px; width:88px; height:14px; ">스케줄내역</caption>
  1075. <line id="line13" class="line_1" style="x1:5px; y1:123px; x2:392px; y2:123px; "/>
  1076. <line id="line19" class="line_3" style="x1:5px; y1:99px; x2:392px; y2:99px; "/>
  1077. <caption id="caption11" class="search_no_b" style="left:229px; top:79px; width:18px; height:17px; ">명</caption>
  1078. <caption id="caption12" class="cell_1" style="left:68px; top:76px; width:26px; height:23px; vertical-align:middle; ">남</caption>
  1079. <button id="btn_totsave" class="btn5_letter6" style="left:306px; top:102px; width:86px; height:19px; ">
  1080. <caption>스케줄 저장</caption>
  1081. <script type="javascript" ev:event="DOMActivate">
  1082. <![CDATA[
  1083. model.makeNode("/root/temp/srchdel/srchrow/rowcnt");
  1084. model.setValue("/root/send/srchcond", "T");
  1085. submit("TRAHB01507");
  1086. if(model.getValue("/root/temp/srchdel/srchrow/rowcnt") > 0){
  1087. if(messageBox(model.getValue("/root/temp/srchdel/srchrow/rowcnt") + " 건의 예약일정 내역이 존재합니다. 예약일정 내역을", "Q002") != 6) return;
  1088. fSaveSch("T", grd_totalschlst , null, null, "I") ;
  1089. }else{
  1090. if(messageBox("예약일정 내역을", "Q002") != 6) return;
  1091. fSaveSch("T", grd_totalschlst , null, null, "I") ;
  1092. }
  1093. // if(model.getValue("/root/temp/srchdel/srchrow/rowcnt") == "0"){
  1094. // if(messageBox("건진예약일정내역을", "Q002") != 6) return;
  1095. // fSaveSch("T", grd_totalschlst , null, null, "I") ;
  1096. // }else{
  1097. // if(messageBox(model.getValue("/root/temp/srchdel/srchrow/rowcnt") + " 건의 예약일정내역이 존재합니다. 예약 취소후에 변경, 삭제가 가능 합니다. 저장에", "E009") != 6) return;
  1098. // }
  1099. ]]>
  1100. </script>
  1101. </button>
  1102. <datagrid id="grd_roomschlst" nodeset="/root/main/room/schlst/item" caption="일자^요일^검사실^인원" colsep="^" colwidth="85, 34, 170, 52" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:800px; top:288px; width:387px; height:410px; ">
  1103. <col ref="rsrvdd" type="inputdate"/>
  1104. <col ref="rsrvweek"/>
  1105. <col disabled="true" ref="testroomcd" type="combo">
  1106. <choices>
  1107. <itemset nodeset="/root/init/room/roomlst/itemroom">
  1108. <label ref="testroomnm"/>
  1109. <value ref="testroomcd"/>
  1110. </itemset>
  1111. </choices>
  1112. </col>
  1113. <col ref="psnnocnt" type="input"/>
  1114. <script type="javascript" ev:event="xforms-value-changed">
  1115. <![CDATA[
  1116. var idx = grd_roomschlst.row;
  1117. if( idx < 1) return ;
  1118. if( grd_roomschlst.col == 1){
  1119. var rsrvdd = grd_roomschlst.valueMatrix(idx, 1);
  1120. if( ! isValidDateTime(rsrvdd, "YYYYMMDD") ) return ;
  1121. grd_roomschlst.valueMatrix(idx, 2) = rsrvdd.toDate("YYYYMMDD").getDayOfWeek("K");
  1122. }
  1123. ]]>
  1124. </script>
  1125. </datagrid>
  1126. <line id="line16" class="line_1" style="x1:800px; y1:285px; x2:1187px; y2:285px; "/>
  1127. <line id="line18" class="line_3" style="x1:800px; y1:261px; x2:1187px; y2:261px; "/>
  1128. <caption id="caption36" class="tit_2" style="left:800px; top:7px; width:226px; height:14px; ">검사실별 예약스케줄생성</caption>
  1129. <line id="line20" class="line_1" style="x1:800px; y1:22px; x2:1187px; y2:22px; "/>
  1130. <caption id="caption32" class="cell_1" style="left:801px; top:27px; width:61px; height:23px; vertical-align:middle; ">기간</caption>
  1131. <caption id="caption33" class="search_no_b" style="left:970px; top:30px; width:12px; height:17px; ">~</caption>
  1132. <input id="ipt_roomfromdd" ref="/root/main/room/fromdd" class="input_essential" inputtype="date" style="left:864px; top:28px; width:100px; height:19px; "/>
  1133. <input id="ipt_roomtodd" ref="/root/main/room/todd" class="input_essential" inputtype="date" style="left:985px; top:29px; width:100px; height:19px; ">
  1134. <script type="javascript" ev:event="xforms-value-changed">
  1135. <![CDATA[
  1136. fGetSchList("R");
  1137. ]]>
  1138. </script>
  1139. </input>
  1140. <select id="chx_roomsatyn" ref="/root/main/room/satyn" overflow="visible" appearance="full" style="left:1095px; top:30px; width:80px; height:20px; border-style:none; ">
  1141. <choices>
  1142. <item>
  1143. <label>토요일제외</label>
  1144. <value>Y</value>
  1145. </item>
  1146. </choices>
  1147. </select>
  1148. <select id="chx_roomsunyn" ref="/root/main/room/sunyn" visibility="hidden" overflow="visible" appearance="full" style="left:1050px; top:55px; width:80px; height:20px; border-style:none; ">
  1149. <choices>
  1150. <item>
  1151. <label>일요일제외</label>
  1152. <value>Y</value>
  1153. </item>
  1154. </choices>
  1155. </select>
  1156. <input id="ipt_roomcnt" ref="/root/main/room/cnt" class="input_default" style="left:864px; top:54px; width:100px; height:19px; ">
  1157. <script type="javascript" ev:event="onkeyup">
  1158. <![CDATA[
  1159. if( event.keyCode == 13 ){
  1160. var cnt = ipt_roomcnt.currentText ;
  1161. for( var i = 1; i < grd_roomlst.rows ; i++){
  1162. model.setValue(grd_roomlst.nodeset + "[" + i + "]/cnt" , cnt);
  1163. }
  1164. fMoveFocus("btn_roommake");
  1165. }
  1166. ]]>
  1167. </script>
  1168. </input>
  1169. <button id="btn_roommake" class="btn2_letter2" style="left:1145px; top:54px; width:42px; height:19px; ">
  1170. <caption>생성</caption>
  1171. <script type="javascript" ev:event="DOMActivate">
  1172. <![CDATA[
  1173. openLoadingBar("스케쥴 생성하고 있습니다.");
  1174. fMakeRoomSch();
  1175. closeLoadingBar();
  1176. ]]>
  1177. </script>
  1178. </button>
  1179. <datagrid id="grd_roomlst" nodeset="/root/init/room/roomlst/itemroom" caption="선택^검사실코드^검사실명^인원" colsep="^" colwidth="32, 67, 186, 52" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:800px; top:77px; width:387px; height:183px; ">
  1180. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  1181. <col ref="testroomcd"/>
  1182. <col ref="testroomnm"/>
  1183. <col ref="cnt" type="input"/>
  1184. <script type="javascript" ev:event="ondblclick">
  1185. <![CDATA[
  1186. if(grd_roomlst.row < 1) return;
  1187. fGetSchList("R");
  1188. ]]>
  1189. </script>
  1190. </datagrid>
  1191. <button id="btn_roomclear" class="btn2_letter3" style="left:887px; top:265px; width:53px; height:19px; ">
  1192. <caption>초기화</caption>
  1193. <script type="javascript" ev:event="DOMActivate">
  1194. <![CDATA[
  1195. fClearSch("R");
  1196. fGetSchList("R");
  1197. ]]>
  1198. </script>
  1199. </button>
  1200. <button id="btn_roomadd" class="btn2_letter2" style="left:943px; top:265px; width:42px; height:19px; ">
  1201. <caption>추가</caption>
  1202. <script type="javascript" ev:event="DOMActivate">
  1203. <![CDATA[
  1204. grd_roomschlst.addRow();
  1205. grd_roomschlst.col = 1;
  1206. grd_roomschlst.valueMatrix(grd_roomschlst.row, 1) = getCurrentDate();
  1207. grd_roomschlst.editCell();
  1208. ]]>
  1209. </script>
  1210. </button>
  1211. <button id="btn_roomdel" class="btn2_letter2" style="left:988px; top:265px; width:42px; height:19px; ">
  1212. <caption>삭제</caption>
  1213. <script type="javascript" ev:event="DOMActivate">
  1214. <![CDATA[
  1215. deleteSelectedRows(grd_roomschlst, true);
  1216. ]]>
  1217. </script>
  1218. </button>
  1219. <button id="btn_roomsave" class="btn5_letter6" style="left:1100px; top:265px; width:86px; height:19px; ">
  1220. <caption>스케줄 저장</caption>
  1221. <script type="javascript" ev:event="DOMActivate">
  1222. <![CDATA[
  1223. if(messageBox("검사실별 일별 예약인원 설정내역을", "Q002") != 6) return;
  1224. fSaveSch("R", null , grd_roomschlst, null, "I");
  1225. //fGetSchList("R");
  1226. ]]>
  1227. </script>
  1228. </button>
  1229. <caption id="caption37" class="tit_2" style="left:800px; top:271px; width:82px; height:14px; ">스케줄내역</caption>
  1230. <line id="line21" class="line_2" style="x1:800px; y1:50px; x2:1187px; y2:50px; "/>
  1231. <caption id="caption7" class="search_no_b" style="left:113px; top:55px; width:12px; height:17px; ">~</caption>
  1232. <select id="chx_totsatyn" ref="/root/main/total/satyn" overflow="visible" appearance="full" style="left:300px; top:29px; width:80px; height:20px; border-style:none; ">
  1233. <choices>
  1234. <item>
  1235. <label>토요일제외</label>
  1236. <value>Y</value>
  1237. </item>
  1238. </choices>
  1239. </select>
  1240. <select id="chx_totsunyn" ref="/root/main/total/sunyn" visibility="hidden" overflow="visible" appearance="full" style="left:305px; top:50px; width:80px; height:20px; border-style:none; ">
  1241. <choices>
  1242. <item>
  1243. <label>일요일제외</label>
  1244. <value>Y</value>
  1245. </item>
  1246. </choices>
  1247. </select>
  1248. <button id="btn_roomalldel" class="btn2_letter4" style="left:1033px; top:265px; width:64px; height:19px; ">
  1249. <caption>전체삭제</caption>
  1250. <script type="javascript" ev:event="DOMActivate">
  1251. <![CDATA[
  1252. fDeleteAllRows(grd_roomschlst);
  1253. ]]>
  1254. </script>
  1255. </button>
  1256. <caption id="caption34" class="cell_1" style="left:801px; top:52px; width:61px; height:23px; vertical-align:middle; ">인원</caption>
  1257. <line id="line7" class="line_3" style="x1:800px; y1:75px; x2:1187px; y2:75px; "/>
  1258. <line id="line17" class="line_2" style="x1:5px; y1:74px; x2:392px; y2:74px; "/>
  1259. <caption id="caption35" class="cell_1" style="left:159px; top:76px; width:26px; height:23px; vertical-align:middle; ">여</caption>
  1260. <caption id="caption39" class="search_no_b" style="left:970px; top:55px; width:18px; height:17px; ">명</caption>
  1261. <line id="line8" class="line_1" style="x1:395px; y1:147px; x2:793px; y2:147px; "/>
  1262. <select id="chx_thu" ref="/root/main/cnst/week/thuyn" overflow="visible" appearance="full" cols="6" style="left:576px; top:54px; width:44px; height:20px; border-style:none; ">
  1263. <choices>
  1264. <item>
  1265. <label>목</label>
  1266. <value>4</value>
  1267. </item>
  1268. </choices>
  1269. </select>
  1270. <datagrid id="grd_cnstschlst" nodeset="/root/main/cnst/schlst/item" caption="일자^요일^시간^인원" colsep="^" colwidth="108, 49, 97, 95" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:395px; top:152px; width:398px; height:546px; ">
  1271. <col ref="rsrvdd" type="inputdate"/>
  1272. <col ref="rsrvweek"/>
  1273. <col ref="rsrvtm" type="input" format="hh:nn"/>
  1274. <col ref="psnnocnt" type="input" format="999"/>
  1275. </datagrid>
  1276. <line id="line10" class="line_3" style="x1:395px; y1:121px; x2:793px; y2:121px; "/>
  1277. <button id="btn_cnstclear" class="btn2_letter3" style="left:494px; top:127px; width:53px; height:19px; ">
  1278. <caption>초기화</caption>
  1279. <script type="javascript" ev:event="DOMActivate">
  1280. <![CDATA[
  1281. fClearSch("C");
  1282. fGetSchList("C");
  1283. ]]>
  1284. </script>
  1285. </button>
  1286. <caption id="caption30" class="search_no_b" style="left:542px; top:103px; width:18px; height:17px; ">~</caption>
  1287. <line id="line11" class="line_1" style="x1:395px; y1:22px; x2:793px; y2:22px; "/>
  1288. <caption id="caption20" class="tit_2" style="left:395px; top:132px; width:98px; height:13px; ">스케줄내역</caption>
  1289. <select id="chx_sat" ref="/root/main/cnst/week/satyn" overflow="visible" appearance="full" cols="6" style="left:660px; top:54px; width:44px; height:20px; border-style:none; ">
  1290. <choices>
  1291. <item>
  1292. <label>토</label>
  1293. <value>6</value>
  1294. </item>
  1295. </choices>
  1296. </select>
  1297. <select id="chx_tue" ref="/root/main/cnst/week/tueyn" overflow="visible" appearance="full" cols="6" style="left:488px; top:54px; width:44px; height:20px; border-style:none; ">
  1298. <choices>
  1299. <item>
  1300. <label>화</label>
  1301. <value>2</value>
  1302. </item>
  1303. </choices>
  1304. </select>
  1305. <input id="ipt_cnstfromdd" ref="/root/main/cnst/fromdd" class="input_essential" inputtype="date" style="left:443px; top:28px; width:95px; height:19px; ">
  1306. <script type="javascript" ev:event="onkeyup">
  1307. <![CDATA[
  1308. fMoveFocus("ipt_cnsttodd");
  1309. ]]>
  1310. </script>
  1311. <script type="javascript" ev:event="xforms-value-changed">
  1312. <![CDATA[
  1313. fGetSchList("C");
  1314. ]]>
  1315. </script>
  1316. </input>
  1317. <input id="ipt_cnsttodd" ref="/root/main/cnst/todd" class="input_essential" inputtype="date" style="left:557px; top:28px; width:95px; height:19px; ">
  1318. <script type="javascript" ev:event="onkeyup">
  1319. <![CDATA[
  1320. fMoveFocus("cmb_cnstdrid");
  1321. ]]>
  1322. </script>
  1323. <script type="javascript" ev:event="xforms-value-changed">
  1324. <![CDATA[
  1325. fGetSchList("C");
  1326. ]]>
  1327. </script>
  1328. </input>
  1329. <select1 id="cmb_cnstdrid" ref="/root/main/cnst/cnstdrid" class="combo_essential" appearance="minimal" style="left:704px; top:28px; width:88px; height:19px; ">
  1330. <choices>
  1331. <itemset nodeset="/root/init/cnst/drlst/itemdr">
  1332. <label ref="drnm"/>
  1333. <value ref="drid"/>
  1334. </itemset>
  1335. </choices>
  1336. <script type="javascript" ev:event="xforms-value-changed">
  1337. <![CDATA[
  1338. fMoveFocus("ipt_cnstamfromtm");
  1339. fGetSchList("C");
  1340. ]]>
  1341. </script>
  1342. </select1>
  1343. <input id="ipt_cnstamfromtm" ref="/root/main/cnst/amfromtm" class="input_default" format="hh:nn" style="left:492px; top:77px; width:46px; height:19px; ">
  1344. <script type="javascript" ev:event="onkeyup">
  1345. <![CDATA[
  1346. fMoveFocus("ipt_cnstamtotm");
  1347. ]]>
  1348. </script>
  1349. </input>
  1350. <input id="ipt_cnstamtotm" ref="/root/main/cnst/amtotm" class="input_default" format="hh:nn" style="left:557px; top:77px; width:46px; height:19px; ">
  1351. <script type="javascript" ev:event="onkeyup">
  1352. <![CDATA[
  1353. fMoveFocus("ipt_cnstamterm");
  1354. ]]>
  1355. </script>
  1356. </input>
  1357. <input id="ipt_cnstamterm" ref="/root/main/cnst/amterm" class="input_default" format="nn" style="left:655px; top:77px; width:46px; height:19px; ">
  1358. <script type="javascript" ev:event="onkeyup">
  1359. <![CDATA[
  1360. fMoveFocus("ipt_cnstfmfromtm");
  1361. ]]>
  1362. </script>
  1363. </input>
  1364. <input id="ipt_cnstfmfromtm" ref="/root/main/cnst/fmfromtm" class="input_default" format="hh:nn" style="left:492px; top:101px; width:46px; height:19px; ">
  1365. <script type="javascript" ev:event="onkeyup">
  1366. <![CDATA[
  1367. fMoveFocus("ipt_cnstfmtotm");
  1368. ]]>
  1369. </script>
  1370. </input>
  1371. <input id="ipt_cnstfmtotm" ref="/root/main/cnst/fmtotm" class="input_default" format="hh:nn" style="left:557px; top:101px; width:46px; height:19px; ">
  1372. <script type="javascript" ev:event="onkeyup">
  1373. <![CDATA[
  1374. fMoveFocus("ipt_cnstfmterm");
  1375. ]]>
  1376. </script>
  1377. </input>
  1378. <input id="ipt_cnstfmterm" ref="/root/main/cnst/fmterm" class="input_default" format="nn" style="left:655px; top:101px; width:46px; height:19px; ">
  1379. <script type="javascript" ev:event="onkeyup">
  1380. <![CDATA[
  1381. fMoveFocus("btn_cnstmake");
  1382. ]]>
  1383. </script>
  1384. </input>
  1385. <button id="btn_cnstmake" class="btn2_letter2" style="left:751px; top:100px; width:42px; height:19px; ">
  1386. <caption>생성</caption>
  1387. <script type="javascript" ev:event="DOMActivate">
  1388. <![CDATA[
  1389. openLoadingBar("스케쥴 생성하고 있습니다.");
  1390. fMakeCnstSch();
  1391. closeLoadingBar();
  1392. fMoveFocus("btn_savecnst");
  1393. ]]>
  1394. </script>
  1395. </button>
  1396. <button id="btn_savecnst" class="btn5_letter6" style="left:706px; top:127px; width:86px; height:19px; ">
  1397. <caption>스케줄 저장</caption>
  1398. <script type="javascript" ev:event="DOMActivate">
  1399. <![CDATA[
  1400. model.makeNode("/root/temp/srchdel/srchrow/rowcnt");
  1401. model.setValue("/root/send/srchcond", "C");
  1402. submit("TRAHB01507");
  1403. if(model.getValue("/root/temp/srchdel/srchrow/rowcnt") > 0){
  1404. if(messageBox(model.getValue("/root/temp/srchdel/srchrow/rowcnt") + " 건의 상담예약 내역이 존재합니다. 상담예약 내역을", "Q002") != 6) return;
  1405. fSaveSch("C", null , null, grd_cnstschlst , "I");
  1406. }else{
  1407. if(messageBox("상담예약 내역을", "Q002") != 6) return;
  1408. fSaveSch("C", null , null, grd_cnstschlst , "I");
  1409. }
  1410. // if(model.getValue("/root/temp/srchdel/srchrow/rowcnt") == "0"){
  1411. // if(messageBox("상담의별 예약스케쥴 내역을", "Q002") != 6) return;
  1412. // fSaveSch("C", null , null, grd_cnstschlst , "I");
  1413. // }else{
  1414. // if(messageBox(model.getValue("/root/temp/srchdel/srchrow/rowcnt") + " 건의 예약상담 내역이 존재합니다. 상담취소후에 변경, 삭제가 가능 합니다. 저장에", "E009") != 6) return;
  1415. // }
  1416. ]]>
  1417. </script>
  1418. </button>
  1419. <caption id="caption21" class="cell_1" style="left:395px; top:27px; width:46px; height:23px; vertical-align:middle; ">일자</caption>
  1420. <select id="chx_wed" ref="/root/main/cnst/week/wedyn" overflow="visible" appearance="full" cols="6" style="left:532px; top:54px; width:44px; height:20px; border-style:none; ">
  1421. <choices>
  1422. <item>
  1423. <label>수</label>
  1424. <value>3</value>
  1425. </item>
  1426. </choices>
  1427. </select>
  1428. <caption id="caption22" class="cell_1" style="left:606px; top:100px; width:46px; height:23px; vertical-align:middle; ">간격</caption>
  1429. <line id="line14" class="line_2" style="x1:395px; y1:49px; x2:793px; y2:49px; "/>
  1430. <caption id="caption23" class="search_no_b" style="left:542px; top:30px; width:12px; height:17px; ">~</caption>
  1431. <caption id="caption4" class="cell_1" style="left:606px; top:73px; width:46px; height:23px; vertical-align:middle; ">간격</caption>
  1432. <caption id="caption24" class="tit_2" style="left:394px; top:7px; width:208px; height:13px; ">상담예약스케줄 생성</caption>
  1433. <caption id="caption5" class="search_no_b" style="left:703px; top:78px; width:18px; height:17px; ">분</caption>
  1434. <caption id="caption25" class="search_no_b" style="left:542px; top:78px; width:18px; height:17px; ">~</caption>
  1435. <line id="line2" class="line_2" style="x1:395px; y1:97px; x2:793px; y2:97px; "/>
  1436. <caption id="caption26" class="cell_1" style="left:443px; top:99px; width:46px; height:23px; vertical-align:middle; ">오후</caption>
  1437. <caption id="caption27" class="cell_1" style="left:395px; top:51px; width:46px; height:23px; vertical-align:middle; ">요일</caption>
  1438. <line id="line4" class="line_2" style="x1:395px; y1:74px; x2:793px; y2:74px; "/>
  1439. <caption id="caption28" class="cell_1" style="left:655px; top:26px; width:46px; height:23px; vertical-align:middle; ">상담의</caption>
  1440. <select id="chx_mon" ref="/root/main/cnst/week/monyn" overflow="visible" appearance="full" cols="6" style="left:443px; top:54px; width:44px; height:20px; border-style:none; ">
  1441. <choices>
  1442. <item>
  1443. <label>월</label>
  1444. <value>1</value>
  1445. </item>
  1446. </choices>
  1447. </select>
  1448. <caption id="caption29" class="search_no_b" style="left:703px; top:103px; width:18px; height:17px; ">분</caption>
  1449. <caption id="caption18" class="cell_1" style="left:443px; top:74px; width:46px; height:23px; vertical-align:middle; ">오전</caption>
  1450. <select id="chx_fri" ref="/root/main/cnst/week/friyn" overflow="visible" appearance="full" cols="6" style="left:620px; top:54px; width:44px; height:20px; border-style:none; ">
  1451. <choices>
  1452. <item>
  1453. <label>금</label>
  1454. <value>5</value>
  1455. </item>
  1456. </choices>
  1457. </select>
  1458. <caption id="caption15" class="cell_1" style="left:395px; top:76px; width:46px; height:45px; vertical-align:middle; ">시간</caption>
  1459. <button id="button1" class="btn2_letter4" style="left:639px; top:127px; width:64px; height:19px; ">
  1460. <caption>전체삭제</caption>
  1461. <script type="javascript" ev:event="DOMActivate">
  1462. <![CDATA[
  1463. fDeleteAllRows(grd_cnstschlst);
  1464. ]]>
  1465. </script>
  1466. </button>
  1467. <button id="button4" class="btn2_letter2" style="left:594px; top:127px; width:42px; height:19px; ">
  1468. <caption>삭제</caption>
  1469. <script type="javascript" ev:event="DOMActivate">
  1470. <![CDATA[
  1471. deleteSelectedRows(grd_cnstschlst, true);
  1472. ]]>
  1473. </script>
  1474. </button>
  1475. <button id="button5" class="btn2_letter2" style="left:549px; top:127px; width:42px; height:19px; ">
  1476. <caption>추가</caption>
  1477. <script type="javascript" ev:event="DOMActivate">
  1478. <![CDATA[
  1479. grd_cnstschlst.addRow();
  1480. grd_cnstschlst.col = 1;
  1481. grd_cnstschlst.valueMatrix(grd_cnstschlst.row, 1) = getCurrentDate();
  1482. grd_cnstschlst.editCell();
  1483. ]]>
  1484. </script>
  1485. </button>
  1486. <input id="input1" ref="/root/main/total/comcnt" class="input_default" style="left:288px; top:78px; width:40px; height:19px; ">
  1487. <script type="javascript" ev:event="onkeyup">
  1488. <![CDATA[
  1489. fMoveFocus("btn_totalmake");
  1490. ]]>
  1491. </script>
  1492. </input>
  1493. <caption id="caption10" class="search_no_b" style="left:330px; top:79px; width:18px; height:17px; ">명</caption>
  1494. <caption id="caption41" class="cell_1" style="left:250px; top:76px; width:36px; height:23px; vertical-align:middle; ">공통</caption>
  1495. <button id="button3" class="btn5_letter6" style="left:1099px; top:2px; width:86px; height:19px; ">
  1496. <caption>부분영역저장</caption>
  1497. <script type="javascript" ev:event="DOMActivate">
  1498. <![CDATA[
  1499. // 경고메세지
  1500. messageBox(" !!!!!!!!!! 주의 요망 !!!!!!!!!! \n검사실 기간, 인원 재차 ","I007");
  1501. // 부분영역수정저장가능하게 수정요청함.
  1502. if( messageBox("설정하신 ##기간##, 선택하신 검사실 ##인원##으로", "Q002") != 6) return ;
  1503. var fromdd = model.getValue("/root/main/room/fromdd");
  1504. var todd = model.getValue("/root/main/room/todd");
  1505. if(fromdd >= todd){
  1506. messageBox("시작일이 종료일보다 클 수 ","I004");
  1507. return;
  1508. }
  1509. model.setValue("/root/send/partchngroomcode/healexamflag", m_vHealexamflag );
  1510. model.setValue("/root/send/partchngroomcode/healexamdetlflag", m_vHealexamdetlflag );
  1511. model.setValue("/root/send/partchngroomcode/fromdd", fromdd);
  1512. model.setValue("/root/send/partchngroomcode/todd", todd);
  1513. model.setValue("/root/send/partchngroomcode/chnglist", grd_roomlst.getUpdateData());
  1514. submit("TXAHB01502");
  1515. ]]>
  1516. </script>
  1517. </button>
  1518. </case>
  1519. <case id="case_modify">
  1520. <group id="group2" style="left:5px; top:10px; width:1183px; height:35px; vertical-align:top; ">
  1521. <shape id="shape2" class="roundrect" style="left:0px; top:0px; width:1183px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  1522. <caption id="caption3" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
  1523. <button id="btn_searchcnnst" class="btn1_letter2" style="left:1115px; top:5px; width:56px; height:22px; ">
  1524. <caption>조회</caption>
  1525. <script type="javascript" ev:event="DOMActivate">
  1526. <![CDATA[
  1527. fGetRsrvSchList(2);
  1528. ]]>
  1529. </script>
  1530. </button>
  1531. <line id="line5" class="line_4" style="x1:1084px; y1:5px; x2:1084px; y2:27px; "/>
  1532. <caption id="cap_cnstdr" class="search_name" visibility="hidden" style="left:530px; top:9px; width:86px; height:17px; ">상담의 :</caption>
  1533. <caption id="cap_room" class="search_name" visibility="hidden" style="left:530px; top:10px; width:75px; height:17px; ">검사실 :</caption>
  1534. <select1 id="cmb_srchroomcd" ref="/root/main/schedule/srchroomcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:605px; top:8px; width:175px; height:19px; ">
  1535. <choices>
  1536. <itemset nodeset="/root/init/room/roomlst/itemroom">
  1537. <label ref="testroomnm"/>
  1538. <value ref="testroomcd"/>
  1539. </itemset>
  1540. </choices>
  1541. <script type="javascript" ev:event="xforms-select">
  1542. <![CDATA[
  1543. fHRefreshCalender("M", 0);
  1544. fGetRsrvSchList(2);
  1545. ]]>
  1546. </script>
  1547. </select1>
  1548. <select1 id="rdo_srchcond2" ref="/root/send/srchcond2" class="radio_search" appearance="full" cellspacing="30" cols="3" overflow="visible" style="left:105px; top:9px; width:405px; height:16px; border-style:none; ">
  1549. <choices>
  1550. <item>
  1551. <label>건진전체일정</label>
  1552. <value>T</value>
  1553. </item>
  1554. <item>
  1555. <label>상담예약일정</label>
  1556. <value>C</value>
  1557. </item>
  1558. <item>
  1559. <label>검사실예약인원</label>
  1560. <value>R</value>
  1561. </item>
  1562. </choices>
  1563. <script type="javascript" ev:event="xforms-select">
  1564. <![CDATA[
  1565. fHRefreshCalender("M", 0);
  1566. fSetSrchCtrlState(rdo_srchcond2.value );
  1567. fGetRsrvSchList(2);
  1568. ]]>
  1569. </script>
  1570. </select1>
  1571. <select1 id="cmb_srchcnstdrid" ref="/root/main/schedule/srchcnstdrid" class="combo_search" visibility="hidden" appearance="minimal" style="left:605px; top:8px; width:140px; height:19px; ">
  1572. <choices>
  1573. <itemset nodeset="/root/init/cnst/drlst/itemdr">
  1574. <label ref="drnm"/>
  1575. <value ref="drid"/>
  1576. </itemset>
  1577. </choices>
  1578. <script type="javascript" ev:event="xforms-select">
  1579. <![CDATA[
  1580. fHRefreshCalender("M", 0);
  1581. fGetRsrvSchList(2);
  1582. ]]>
  1583. </script>
  1584. </select1>
  1585. <select id="chk_srchallroom" ref="/root/send/srchallroomyn" class="checkbox_search" overflow="visible" appearance="full" style="left:785px; top:9px; width:100px; height:20px; border-style:none; ">
  1586. <choices>
  1587. <item>
  1588. <label>전체검사실</label>
  1589. <value>Y</value>
  1590. </item>
  1591. </choices>
  1592. <script type="javascript" ev:event="xforms-select">
  1593. <![CDATA[
  1594. if( chk_srchallroom.value == "Y" ){
  1595. cmb_srchroomcd.value = "";
  1596. fHRefreshCalender("M", 0);
  1597. fGetRsrvSchList(2);
  1598. }
  1599. ]]>
  1600. </script>
  1601. <script type="javascript" ev:event="xforms-deselect">
  1602. <![CDATA[
  1603. cmb_srchroomcd.select(0);
  1604. fHRefreshCalender("M", 0);
  1605. fGetRsrvSchList(2);
  1606. ]]>
  1607. </script>
  1608. </select>
  1609. </group>
  1610. <caption id="caption17" class="tit_2" style="left:11px; top:57px; width:110px; height:14px; ">예약내역</caption>
  1611. <line id="line9" class="line_1" style="x1:5px; y1:72px; x2:532px; y2:72px; "/>
  1612. <line id="line15" class="line_2" style="x1:5px; y1:382px; x2:532px; y2:382px; "/>
  1613. <multilinegrid id="grd_calendar" nodeset="/root/temp/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="75, 75, 75, 75, 75, 75, 75" extendlastcol="noscroll" focuscolor="transparent" rowheight="300" rowsep="|" selectionmode="free" mergecellsfixedrows="bycolrec" style="left:5px; top:116px; width:527px; height:265px; ">
  1614. <row>
  1615. <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
  1616. <col ref="mon" style="border-bottom-width:0px; "/>
  1617. <col ref="tue" style="border-bottom-width:0px; "/>
  1618. <col ref="wed" style="border-bottom-width:0px; "/>
  1619. <col ref="thu" style="border-bottom-width:0px; "/>
  1620. <col ref="fri" style="border-bottom-width:0px; "/>
  1621. <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
  1622. </row>
  1623. <row>
  1624. <col ref="sun_memo" style="border-top-width:0px; "/>
  1625. <col ref="mon_memo" style="border-top-width:0px; "/>
  1626. <col ref="tue_memo" style="border-top-width:0px; "/>
  1627. <col ref="wed_memo" style="border-top-width:0px; "/>
  1628. <col ref="thu_memo" style="border-top-width:0px; "/>
  1629. <col ref="fri_memo" style="border-top-width:0px; "/>
  1630. <col ref="sat_memo" style="border-top-width:0px; "/>
  1631. </row>
  1632. <script type="javascript" ev:event="onclick">
  1633. <![CDATA[
  1634. setCellColor(grd_calendar);
  1635. fGetRsrvSchList(1);
  1636. fGetRsrvPatList();
  1637. //달력의 선택한 일자 일자비고일자에 셋팅.
  1638. model.makeValue("/root/main/dayblist/remdd" , fGetCalendarDate(grd_calendar));
  1639. ipt_remdd.refresh();
  1640. btn_srch_dayb.dispatch("DOMActivate");
  1641. ]]>
  1642. </script>
  1643. <script type="javascript" ev:event="onrowchanged">
  1644. <![CDATA[
  1645. setCellColor(grd_calendar);
  1646. ]]>
  1647. </script>
  1648. <script type="javascript" ev:event="oncolchanged">
  1649. <![CDATA[
  1650. setCellColor(grd_calendar);
  1651. ]]>
  1652. </script>
  1653. </multilinegrid>
  1654. <datagrid id="grd_rsrvtmlst" nodeset="/root/main/schedule/rsrvtmlst/item" caption="시간^검사실코드^예약가능인원(남)^예약인원(남)^예약가능인원(여)^예약인원(여)^예약가능인원^예약인원" colsep="^" colwidth="58, 111, 100, 100, 100, 100, 100, 100" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:537px; top:77px; width:649px; height:304px; ">
  1655. <col ref="rsrvtm" type="input" format="hh:nn" style="text-align:center; "/>
  1656. <col disabled="true" ref="testroomcd" type="combo">
  1657. <choices>
  1658. <itemset nodeset="/root/init/room/roomlst/itemroom">
  1659. <label ref="testroomnm"/>
  1660. <value ref="testroomcd"/>
  1661. </itemset>
  1662. </choices>
  1663. </col>
  1664. <col ref="psnnomancnt" type="input" style="text-align:right; "/>
  1665. <col ref="rsrvpsnnomancnt" style="text-align:right; "/>
  1666. <col ref="psnnowomcnt" type="input" style="text-align:right; "/>
  1667. <col ref="rsrvpsnnowomcnt" style="text-align:right; "/>
  1668. <col ref="psnnocnt" type="input" style="text-align:right; "/>
  1669. <col ref="rsrvpsnnocnt" style="text-align:right; "/>
  1670. </datagrid>
  1671. <datagrid id="grd_rsrvpatlst" nodeset="/root/main/schedule/rsrvacptlst/item" caption="환자명^등록번호^주민번호^예약시간^건진명^최종수정자^최종수정일시" colsep="^" colwidth="93, 80, 127, 78, 181, 100, 161, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:4px; top:450px; width:1183px; height:249px; ">
  1672. <col ref="hngnm"/>
  1673. <col ref="pid"/>
  1674. <col ref="rgstno" style="text-align:center; "/>
  1675. <col ref="rsrvtm" format="hh:nn" style="text-align:center; "/>
  1676. <col ref="pkgnm"/>
  1677. <col ref="lastupdtrid" style="text-align:center; "/>
  1678. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1679. <col ref="rsrvdd" visibility="hidden"/>
  1680. </datagrid>
  1681. <button id="btn_modify" class="btn5_letter2" style="left:1144px; top:52px; width:42px; height:19px; ">
  1682. <caption>저장</caption>
  1683. <script type="javascript" ev:event="DOMActivate">
  1684. <![CDATA[
  1685. if(messageBox( rdo_srchcond2.label + " 변경내역을 " , "Q002" ) != 6) return;
  1686. fSaveSch(rdo_srchcond2.value , grd_rsrvtmlst , grd_rsrvtmlst, grd_rsrvtmlst , "U") ;
  1687. ]]>
  1688. </script>
  1689. </button>
  1690. <button id="btn_tmdel" class="btn2_letter5" style="left:1067px; top:52px; width:75px; height:19px; ">
  1691. <caption>선택행삭제</caption>
  1692. <script type="javascript" ev:event="DOMActivate">
  1693. <![CDATA[
  1694. deleteSelectedRows(grd_rsrvtmlst, true);
  1695. ]]>
  1696. </script>
  1697. </button>
  1698. <button id="btn_tmadd" class="btn2_letter3" style="left:1012px; top:52px; width:53px; height:19px; ">
  1699. <caption>행추가</caption>
  1700. <script type="javascript" ev:event="DOMActivate">
  1701. <![CDATA[
  1702. grd_rsrvtmlst.addRow();
  1703. grd_rsrvtmlst.col = 1;
  1704. grd_rsrvtmlst.valueMatrix(grd_rsrvtmlst.row, 1) = getCurrentTime().substr(0, 4);
  1705. grd_rsrvtmlst.editCell();
  1706. ]]>
  1707. </script>
  1708. </button>
  1709. <line id="line22" class="line_1" style="x1:537px; y1:72px; x2:1186px; y2:72px; "/>
  1710. <caption id="caption40" class="tit_2" style="left:540px; top:57px; width:159px; height:14px; ">시간대별인원</caption>
  1711. <group id="grp_calendar" style="left:5px; top:77px; width:528px; height:40px; ">
  1712. <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:527px; height:40px; "/>
  1713. <button id="btn_preyear" class="icon_pre_year" style="left:165px; top:12px; width:16px; height:16px; ">
  1714. <caption/>
  1715. <script type="javascript" ev:event="DOMActivate">
  1716. <![CDATA[
  1717. fHRefreshCalender("Y", -1);
  1718. fGetRsrvSchList(2);
  1719. ]]>
  1720. </script>
  1721. </button>
  1722. <button id="btn_nextyear" class="icon_next_year" style="left:340px; top:12px; width:16px; height:16px; ">
  1723. <caption/>
  1724. <script type="javascript" ev:event="DOMActivate">
  1725. <![CDATA[
  1726. fHRefreshCalender("Y", 1);
  1727. fGetRsrvSchList(2);
  1728. ]]>
  1729. </script>
  1730. </button>
  1731. <button id="btn_premonth" class="icon_pre_month" style="left:184px; top:12px; width:16px; height:16px; ">
  1732. <caption/>
  1733. <script type="javascript" ev:event="DOMActivate">
  1734. <![CDATA[
  1735. fHRefreshCalender("M", -1);
  1736. fGetRsrvSchList(2);
  1737. ]]>
  1738. </script>
  1739. </button>
  1740. <button id="btn_nextmonth" class="icon_next_month" style="left:321px; top:12px; width:16px; height:16px; ">
  1741. <caption/>
  1742. <script type="javascript" ev:event="DOMActivate">
  1743. <![CDATA[
  1744. fHRefreshCalender("M",1);
  1745. fGetRsrvSchList(2);
  1746. ]]>
  1747. </script>
  1748. </button>
  1749. <output id="opt_year" ref="/root/temp/calendar/year" class="calendar_output" style="left:210px; top:9px; width:30px; height:19px; "/>
  1750. <output id="opt_month" ref="/root/temp/calendar/month" class="calendar_output" style="left:260px; top:9px; width:30px; height:19px; "/>
  1751. <caption id="caption8" class="calendar_output" style="left:240px; top:9px; width:20px; height:19px; ">년</caption>
  1752. <caption id="caption9" class="calendar_output" style="left:290px; top:9px; width:20px; height:19px; ">월</caption>
  1753. </group>
  1754. <line id="line23" class="line_2" style="x1:537px; y1:382px; x2:1186px; y2:382px; "/>
  1755. <button id="btn_scheduletmclear" class="btn2_letter3" style="left:955px; top:52px; width:53px; height:19px; ">
  1756. <caption>초기화</caption>
  1757. <script type="javascript" ev:event="DOMActivate">
  1758. <![CDATA[
  1759. fGetRsrvSchList(1);
  1760. ]]>
  1761. </script>
  1762. </button>
  1763. <caption id="caption1" class="tit_2" style="left:5px; top:389px; width:159px; height:13px; ">일자별 비고</caption>
  1764. <line id="line1" class="line_1" style="x1:5px; y1:404px; x2:1188px; y2:404px; "/>
  1765. <textarea id="tar_remcnts" ref="/root/main/dayblist/remcnts" style="left:5px; top:409px; width:1183px; height:40px; "/>
  1766. <button id="button2" class="btn5_letter2" style="left:1144px; top:384px; width:42px; height:19px; ">
  1767. <caption>저장</caption>
  1768. <script type="javascript" ev:event="DOMActivate">
  1769. <![CDATA[
  1770. model.makeValue("/root/main/dayblist/instcd" , getUserInfo("dutplceinstcd"));
  1771. model.makeValue("/root/main/dayblist/instcd" , getUserInfo("dutplceinstcd"));
  1772. submit("TXAHB01509",false);
  1773. if(model.getValue("/root/main/dayblist/remdd") == ""){
  1774. //해당 일자에 데이터가 없으므로 노드와 일자를 셋팅해줌
  1775. model.makeNode("/root/main/dayblist/remcnts");
  1776. model.makeValue("/root/main/dayblist/remdd" , fGetCalendarDate(grd_calendar));
  1777. }
  1778. tar_remcnts.refresh();
  1779. ipt_remdd.refresh();
  1780. ]]>
  1781. </script>
  1782. </button>
  1783. <button id="btn_srch_dayb" class="btn2_letter2" style="left:1100px; top:384px; width:42px; height:19px; ">
  1784. <caption>조회</caption>
  1785. <script type="javascript" ev:event="DOMActivate">
  1786. <![CDATA[
  1787. model.makeValue("/root/main/dayblist/instcd" , getUserInfo("dutplceinstcd"));
  1788. submit("TRAHB01508",false);
  1789. if(model.getValue("/root/main/dayblist/remdd") == ""){
  1790. //해당 일자에 데이터가 없으므로 노드와 일자를 셋팅해줌
  1791. model.makeNode("/root/main/dayblist/remcnts");
  1792. model.makeValue("/root/main/dayblist/remdd" , fGetCalendarDate(grd_calendar));
  1793. }
  1794. tar_remcnts.refresh();
  1795. ipt_remdd.refresh();
  1796. ]]>
  1797. </script>
  1798. </button>
  1799. <input id="ipt_remdd" ref="/root/main/dayblist/remdd" inputtype="date" style="left:100px; top:384px; width:100px; height:19px; ">
  1800. <script type="javascript" ev:event="xforms-value-changed">
  1801. <![CDATA[
  1802. btn_srch_dayb.dispatch("DOMActivate");
  1803. ]]>
  1804. </script>
  1805. </input>
  1806. </case>
  1807. </switch>
  1808. <button id="btn_schmngtcret" class="btn_sw" group="tab" selected="true" style="left:0px; top:4px; width:120px; height:22px; ">
  1809. <caption>건진예약일정관리</caption>
  1810. <script type="javascript" ev:event="onclick">
  1811. <![CDATA[
  1812. model.toggle("case_cret");
  1813. ]]>
  1814. </script>
  1815. </button>
  1816. <button id="btn_schmngtmodify" class="btn_sw" group="tab" selected="false" style="left:120px; top:4px; width:120px; height:22px; ">
  1817. <caption>예약일정수정/조회</caption>
  1818. <script type="javascript" ev:event="onclick">
  1819. <![CDATA[
  1820. model.toggle("case_modify");
  1821. model.setValue("/root/main/schedule/srchcnstdrid", model.getValue("/root/init/cnst/drlst/itemdr[1]/drid"));
  1822. ]]>
  1823. </script>
  1824. </button>
  1825. <caption id="caption2" class="search_name" visibility="hidden" style="left:255px; top:5px; width:86px; height:17px; ">건진구분 :</caption>
  1826. <select1 id="cmb_healexamdetlflag" ref="/root/init/baseinfo/healexamdetlflag" class="combo_default" visibility="hidden" appearance="minimal" style="left:343px; top:5px; width:110px; height:19px; ">
  1827. <choices>
  1828. <itemset nodeset="/root/init/baseinfo/healexamdetlflag">
  1829. <label ref="cdnm"/>
  1830. <value ref="cdid"/>
  1831. </itemset>
  1832. </choices>
  1833. <script type="javascript" ev:event="xforms-value-changed">
  1834. <![CDATA[
  1835. if (cmb_healexamdetlflag.value == 'C01') {
  1836. m_vHealexamplacecd = 'S'
  1837. } else if (cmb_healexamdetlflag.value == 'C03') {
  1838. m_vHealexamplacecd = 'K'
  1839. }
  1840. model.makeValue("/root/send/srchhealexamdetlflag", cmb_healexamdetlflag.value );
  1841. model.makeValue("/root/send/srchhealexamplacecd", m_vHealexamplacecd );
  1842. fInitCtrl();
  1843. model.setValue("/root/main/cnst/cnstdrid", model.getValue("/root/init/cnst/drlst/itemdr[1]/drid"));
  1844. cmb_cnstdrid.refresh();
  1845. grd_roomlst.refresh();
  1846. btn_searchcnnst.disabled = ! checkAuth("R");
  1847. btn_save.disabled = ! checkAuth("X");
  1848. btn_print.disabled = ! checkAuth("P");
  1849. fGetSchList("T");
  1850. fGetSchList("C");
  1851. fGetSchList("R");
  1852. ]]>
  1853. </script>
  1854. </select1>
  1855. </group>
  1856. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  1857. <button id="button26" class="btn3_letter4" style="left:59px; top:5px; width:80px; height:22px; ">
  1858. <caption>화면이동</caption>
  1859. </button>
  1860. <button id="btn_print" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  1861. <caption>출력</caption>
  1862. </button>
  1863. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:5px; width:56px; height:22px; ">
  1864. <caption>저장</caption>
  1865. </button>
  1866. </group>
  1867. </xhtml:body>
  1868. </xhtml:html>