SPAEA02201_임시예약(핵의학).xrw 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>임시예약</xhtml:title>
  6. <model id="model1">
  7. <![CDATA[>]]>
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <example>Sample</example>
  11. <send>
  12. <globalinstance>
  13. <instance1/>
  14. </globalinstance>
  15. <date/>
  16. <suppdeptcd/>
  17. <data>
  18. <suppdeptcd/>
  19. <schergstdd/>
  20. <pid/>
  21. <instcd/>
  22. <rtno/>
  23. <schergsttm/>
  24. <schedesc/>
  25. <curersrvflag/>
  26. <hour/>
  27. <second/>
  28. <gubun/>
  29. <excucd/>
  30. </data>
  31. <rsrvdd/>
  32. <seq/>
  33. <excuroomgrpcdid/>
  34. <sdate/>
  35. <tdate/>
  36. <excuroomcd/>
  37. <printflag/>
  38. <duprsrvflag/>
  39. <req/>
  40. </send>
  41. <main>
  42. <patinfo>
  43. <patinfolist/>
  44. </patinfo>
  45. <PatInfo>
  46. <rsrvdd/>
  47. <instcd/>
  48. <seq/>
  49. <suppdeptcd/>
  50. <srchrsrvhh/>
  51. <srchrsrvmm/>
  52. <ampmflag/>
  53. <pid/>
  54. <hngnm/>
  55. <rrgstno1/>
  56. <rrgstno2/>
  57. <age/>
  58. <sex/>
  59. <tel/>
  60. <addr/>
  61. <rsrvrem/>
  62. <flag/>
  63. <reqdeptnm/>
  64. <reqapntdrnm/>
  65. <reqhospcd/>
  66. <excuroomcd/>
  67. <excucd/>
  68. <rsrvprescondappyn>Y</rsrvprescondappyn>
  69. <excucdnm/>
  70. <excuroomcdnm/>
  71. <suppdeptcdnm/>
  72. <duprsrvflag/>
  73. <excupatrem/>
  74. </PatInfo>
  75. <send/>
  76. <rsrvinfo>
  77. <rsrvlist>
  78. <rsrvdd/>
  79. <srchrsrvtm/>
  80. <pid/>
  81. <hngnm/>
  82. <rrgstno/>
  83. <sexage/>
  84. <basecdflagdesc/>
  85. <excucdnm/>
  86. <rsrvrem/>
  87. <instcd/>
  88. <seq/>
  89. <suppdeptcd/>
  90. <calcscorcd/>
  91. <excuroomcd/>
  92. <tel/>
  93. <addr/>
  94. <ampmflag/>
  95. <flag/>
  96. <reqdeptnm/>
  97. <reqapntdrnm/>
  98. <reqhospcd/>
  99. <excupatrem/>
  100. <lastupdtrnm/>
  101. <lastupdtdt/>
  102. </rsrvlist>
  103. </rsrvinfo>
  104. <rsrvupdtinfo>
  105. <rsrvupdt>
  106. <rsrvupdtfromdd/>
  107. <rsrvupdtfromtm/>
  108. <rsrvupdttodd/>
  109. <rsrvupdttotm/>
  110. <basecdflagdesc/>
  111. <updtresndesc/>
  112. <updtresncnts/>
  113. <excuroomcd/>
  114. <suppdeptcd/>
  115. <ioflag/>
  116. </rsrvupdt>
  117. </rsrvupdtinfo>
  118. </main>
  119. <hidden>
  120. <calendar>
  121. <year/>
  122. <month/>
  123. <weeklist>
  124. <list>
  125. <sun/>
  126. <mon/>
  127. <tue/>
  128. <wed/>
  129. <thu/>
  130. <fri/>
  131. <sat/>
  132. <sun_memo/>
  133. <mon_memo/>
  134. <tue_memo/>
  135. <wed_memo/>
  136. <thu_memo/>
  137. <fri_memo/>
  138. <sat_memo/>
  139. </list>
  140. </weeklist>
  141. </calendar>
  142. <sppmc02500>
  143. <cond>
  144. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  145. <srchcond/>
  146. <pid/>
  147. <hngnm/>
  148. <rrgstno1/>
  149. <rrgstno2/>
  150. </cond>
  151. </sppmc02500>
  152. <updtflag/>
  153. </hidden>
  154. <init>
  155. <cmb_info>
  156. <initexecroom>
  157. <excuroomcdid/>
  158. <excuroomcdnm/>
  159. </initexecroom>
  160. </cmb_info>
  161. <curerprescondlist>
  162. <curerprescond>
  163. <userid/>
  164. <usernm/>
  165. </curerprescond>
  166. <rsrvcalendar>
  167. <rsrvdd/>
  168. <count/>
  169. <max/>
  170. </rsrvcalendar>
  171. </curerprescondlist>
  172. <pseursrvinfo>
  173. <seq/>
  174. </pseursrvinfo>
  175. <baseinfo>
  176. <inithospcd/>
  177. </baseinfo>
  178. </init>
  179. <temp1>
  180. <tmpllist>
  181. <tmplinfo>
  182. <tmpldata/>
  183. </tmplinfo>
  184. </tmpllist>
  185. <codelist>
  186. <item>
  187. <suppdeptcd/>
  188. </item>
  189. </codelist>
  190. </temp1>
  191. </root>
  192. </instance>
  193. <!--onLoading-->
  194. <script type="javascript" ev:event="xforms-ready">
  195. <![CDATA[
  196. /*
  197. model.setValue("root/send/data/rtno","-");//default 값 셋팅
  198. model.setValue("root/send/globalinstance/instance1","2360500000")
  199. model.setValue("root/send/data/suppdeptcd","2360500000") //사이버나이프
  200. model.setValue("root/send/data/curersrvflag","Y");//치료플래그(defualt값 셋팅)
  201. */
  202. var spcDate = getCurrentDate(); ////현재일자 세팅
  203. if ( model.getValue("/root/properties/menu/menuparam") == "C") { // 건진제외
  204. model.setValue("/root/send/globalinstance/instance1", "2370124000");
  205. model.setValue("/root/send/suppdeptcd","2370124000"); //건진내시경
  206. model.setValue("/root/main/PatInfo/excucd","E7660SG"); //Sedative Colon-Fiberscopry(수면내시경
  207. model.setValue("/root/main/PatInfo/excuroomcd","2370124001"); //건진대장내시경
  208. model.setValue("/root/send/duprsrvflag","Y"); //중복예약허용
  209. } else if ( opener.javascript.getParameter("menuparam") == "R") { // 통합예약 2013.02.05 추가
  210. model.setValue("/root/send/globalinstance/instance1", opener.javascript.getParameter("suppdeptcd"));
  211. model.setValue("/root/send/suppdeptcd",opener.javascript.getParameter("suppdeptcd") );
  212. model.setValue("/root/send/excuroomcd", opener.javascript.getParameter("excuroomcd"));
  213. model.setValue("/root/main/PatInfo/excuroomcd", opener.javascript.getParameter("excuroomcd"));
  214. model.setValue("/root/main/PatInfo", opener.javascript.getParameter("PatInfo"));
  215. } else if ( model.getValue("root/init/pseursrvinfo/menuparam") == "R") { // 통합예약 검사현황에서 분기
  216. //20140903 추가
  217. model.setValue("/root/send/globalinstance/instance1", model.getvalue("root/init/pseursrvinfo/suppdeptcd"));
  218. model.setValue("/root/send/suppdeptcd", model.getvalue("root/init/pseursrvinfo/suppdeptcd")); //
  219. model.setValue("/root/main/PatInfo/excucd",model.getvalue("root/init/pseursrvinfo/calcscorcd")); //처방코드
  220. model.setValue("/root/send/excuroomcd", model.getvalue("root/init/pseursrvinfo/excuroomcd"));
  221. model.setValue("/root/main/PatInfo/excuroomcd",model.getvalue("root/init/pseursrvinfo/excuroomcd"));
  222. model.setValue("/root/send/duprsrvflag","N"); //중복예약허용
  223. model.setValue("/root/send/printflag","Y"); //예약증출력
  224. model.setValue("/root/send/data/pid", model.getvalue("root/init/pseursrvinfo/pid"));
  225. model.setValue("/root/main/PatInfo/hngnm",model.getvalue("root/init/pseursrvinfo/hngnm"));
  226. model.setValue("/root/main/PatInfo/age",model.getvalue("root/init/pseursrvinfo/age"));
  227. model.setValue("/root/main/PatInfo/sex",model.getvalue("root/init/pseursrvinfo/sex"));
  228. model.setValue("/root/main/PatInfo/rrgstno1",model.getvalue("root/init/pseursrvinfo/rrgstno1"));
  229. model.setValue("/root/main/PatInfo/rrgstno2",model.getvalue("root/init/pseursrvinfo/rrgstno2"));
  230. var rsrvdt = model.getvalue("root/init/pseursrvinfo/rsrvdt");
  231. var rsrvdd = rsrvdt.substr(0,8)
  232. model.setValue("/root/main/PatInfo/rsrvdd", rsrvdd );
  233. model.setValue("/root/send/rsrvdd",rsrvdd );
  234. //20140904 kya 추가예약 시간 가져오기
  235. var excuroomcd = model.getvalue("root/init/pseursrvinfo/excuroomcd") ;
  236. var day = rsrvdt.toDate().getDay();
  237. var srvhhmm = rsrvdt.substr(8,4) ;
  238. model.makeValue("/root/send/req/suppdeptcd", model.getvalue("root/init/pseursrvinfo/suppdeptcd"));
  239. model.makeValue("/root/send/req/grupcdid", model.getvalue("root/init/pseursrvinfo/excuroomcd"));
  240. model.makeValue("/root/send/req/cdid", day.toString() + srvhhmm );
  241. submit("TRAEB00012"); // 조건에 맞게 공통코드에서 한개 가져오기 parm(instcd, suppdeptcd, grupcdid, cdid)
  242. var rsrvhhmm = model.getValue("/root/temp1/codelist/item/cntlcd1"); //예약시간
  243. model.setValue("/root/main/PatInfo/srchrsrvhh", rsrvhhmm.substr(0,2)); //시
  244. model.setValue("/root/main/PatInfo/srchrsrvmm", rsrvhhmm.substr(2,2)); //분
  245. var spcDate = rsrvdd; //예약일자 세팅
  246. } else {
  247. aezfSetSuppDeptcd();
  248. model.setValue("/root/send/suppdeptcd",model.getValue("/root/send/globalinstance/instance1") );
  249. }
  250. //검사실 및 검사실코드 가져오기
  251. model.setValue("/root/send/excuroomgrpcdid", opener.javascript.getParameter("excuroomgrp"));
  252. //달력셋팅
  253. initCalendar(spcDate); //달력초기화 및 예약인원표시
  254. //setCurrentDate(); 20140910 by kya 대신
  255. setSpecialDate(spcDate); //특정일자로 고정해주기
  256. submit("TRAEA02207"); //검사실 + 검사실코드 가져오기
  257. var seq = model.getValue("/root/init/pseursrvinfo/seq");
  258. if (seq != "") {
  259. submit("TRAEA03207");
  260. model.setValue("/root/send/data/pid", model.getValue("/root/main/PatInfo/pid"));
  261. } else {
  262. model.makeValue("/root/main/PatInfo/reqhospcd", getUserInfo("dutplceinstcd"));
  263. var excuroomgrpcdid = model.getValue("/root/send/data/excuroomgrpcdid");
  264. }
  265. zbcfGetCodeList( new Array("Z0007"), new Array("/root/init/baseinfo/inithospcd") );
  266. var dutplcecd = getUserInfo("dutplcecd");
  267. var selectplcecd = getScreenPrestDeptCd();
  268. if ( selectplcecd == "" ) {
  269. selectplcecd = dutplcecd;
  270. }
  271. //2010.11.02 임시예약리스트 조회 및 삭제 기능 추가 - 박재영
  272. //var curDate = getCurrentDate();
  273. //model.setValue("/root/send/data/schergstdd",curDate);
  274. model.setValue("/root/send/data/schergstdd",spcDate);
  275. submit("TRAEA03210",false);
  276. //2011.02.11 휴검관리조회 추가 - 박재영
  277. model.setValue("/root/send/sdate",spcDate);
  278. model.setValue("/root/send/tdate",spcDate);
  279. submit("TRAEA00701",false);
  280. model.refresh();
  281. ]]>
  282. </script>
  283. <!--임시예약-->
  284. <submission id="TRAEA02207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
  285. <submission id="TXAEA01200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden"/>
  286. <submission id="TXAEA03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/PatInfo" replace="instance" resultref="/root/main/PatInfo"/>
  287. <submission id="TRAEA03207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/PatInfo"/>
  288. <!--병원일정-->
  289. <submission id="TRAEA03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/calendarinfo"/>
  290. <!--예약가용인원 조회-->
  291. <submission id="TRAEA01107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
  292. <!--임시예약리스트 조회20101102-->
  293. <submission id="TRAEA03210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvinfo"/>
  294. <submission id="TRAEA00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvupdtinfo"/>
  295. <submission id="TRAEA01126" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/temp1/tmpllist"/>
  296. <submission id="TRAEB00012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp1/codelist"/>
  297. </model>
  298. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  299. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  300. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  301. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  302. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  303. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  304. <script type="javascript">
  305. <![CDATA[
  306. function initCalendar(rsrvdd) {
  307. if( model.getValue("/root/hidden/calendar/year") == "" || model.getValue("/root/hidden/calendar/month") == "" ){
  308. if ( rsrvdd == "") {
  309. var curDate = getCurrentDate().toDate(); // 20140919 by kya 수정. 매개변수를 받아서 처리하도록 함
  310. } else {
  311. var curDate = rsrvdd.toDate();
  312. }
  313. model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
  314. model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
  315. model.refresh();
  316. setCalendar(curDate);
  317. }
  318. }
  319. function fGetHospitalCalendar(){
  320. var dd = (model.getValue("/root/hidden/calendar/year")).concat(model.getValue("/root/hidden/calendar/month"));
  321. model.makeNode("/root/send/date");
  322. model.setValue("/root/send/date",dd);
  323. if (submit("TRAEA03203") == true) return true;
  324. else return false;
  325. }
  326. function setCalendar(dateObj) {
  327. //서버로 자료 요청
  328. if ( fGetHospitalCalendar() != true ){
  329. messageBox("병원일정 데이터를 가져올 수", "I004");
  330. }
  331. // 그리드 초기화
  332. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  333. //grd_calendar.rebuild()
  334. dateObj.setDate(1);
  335. var startDay = dateObj.getDay();
  336. var days = dateObj.getMonthDay();
  337. var rows = Math.ceil( ( startDay + days ) / 7 );
  338. for( var i = 0; i < rows; i++ )
  339. grd_calendar.addRow(false);
  340. grd_calendar.rebuild();
  341. grd_calendar.rebuildStyle();
  342. var rowIndex = grd_calendar.fixedRows;
  343. var colIndex = startDay;
  344. var dutflag = '';
  345. for( var i = 1; i <= days; i++ ) {
  346. //write date
  347. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  348. grd_calendar.cellStyle("font-weight", rowIndex, colIndex) = "bold";
  349. //write memo
  350. grd_calendar.valueMatrix(rowIndex , colIndex + 7) = setCalendarMemo( i );
  351. dutflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/dutflag");
  352. if( dutflag == '8' ){ //'0' 평일, '4' 토요일, '8' 휴일
  353. fSetTextColor(rowIndex, colIndex, '#ff0000');
  354. }
  355. colIndex++;
  356. if( colIndex == 7 ) {
  357. colIndex = 0;
  358. rowIndex++;
  359. }
  360. }
  361. grd_calendar.resizeCells();
  362. }
  363. function setCalendar2(dateObj) {
  364. // 그리드 초기화
  365. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  366. //grd_calendar.rebuild()
  367. dateObj.setDate(1);
  368. var startDay = dateObj.getDay();
  369. var days = dateObj.getMonthDay();
  370. var rows = Math.ceil( ( startDay + days ) / 7 );
  371. for( var i = 0; i < rows; i++ )
  372. grd_calendar.addRow(false);
  373. grd_calendar.rebuild();
  374. grd_calendar.rebuildStyle();
  375. var rowIndex = grd_calendar.fixedRows;
  376. var colIndex = startDay;
  377. var ampmflag = '';
  378. var dutflag = '';
  379. for( var i = 1; i <= days; i++ ) {
  380. //write date
  381. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  382. grd_calendar.cellStyle("font-weight", rowIndex, colIndex) = "bold";
  383. //write memo
  384. grd_calendar.valueMatrix(rowIndex , colIndex + 7) = setCalendarMemo2( i );
  385. ampmflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/ampmflag");
  386. dutflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/dutflag");
  387. if( ampmflag == '1' ){
  388. fSetBGColor(rowIndex, colIndex, '#ffff99');
  389. }else if( ampmflag == '10' ){
  390. fSetBGColor(rowIndex, colIndex, '#ccffff');
  391. }else if( ampmflag == '100' ) {
  392. fSetBGColor(rowIndex, colIndex, '#ff99cc');
  393. }else if( ampmflag == '11' || ampmflag == '110' || ampmflag == '101' || ampmflag == '111' ){
  394. fSetBGColor(rowIndex, colIndex, '#ffcc99');
  395. }
  396. if( dutflag == '8' ){
  397. fSetTextColor(rowIndex, colIndex, '#ff0000');
  398. }
  399. colIndex++;
  400. if( colIndex == 7 ) {
  401. colIndex = 0;
  402. rowIndex++;
  403. }
  404. }
  405. grd_calendar.resizeCells();
  406. }
  407. //그리드의 배경색상을 변경한다.
  408. function fSetBGColor(calRow, calCol, bgColor) {
  409. //var calRow = gridObj.row;
  410. //var calCol = gridObj.col;
  411. if( calCol < 7 ){
  412. //calCol = calCol + 7;
  413. grd_calendar.cellStyle("background-color", calRow, calCol) = bgColor;
  414. grd_calendar.cellStyle("background-color", calRow, calCol + 7) = bgColor;
  415. }else{
  416. //calCol = calCol - 7;
  417. grd_calendar.cellStyle("background-color", calRow, calCol) = bgColor;
  418. grd_calendar.cellStyle("background-color", calRow, calCol - 7) = bgColor;
  419. }
  420. //grd_calendar.rebuildStyle();
  421. //grd_calendar.cellStyle("background-color", calRow, calCol) = bgColor;
  422. }
  423. //그리드의 폰트 색상을 변경한다.
  424. function fSetTextColor(calRow, calCol, bgColor) {
  425. if( calCol < 7 ){
  426. //calCol = calCol + 7;
  427. grd_calendar.cellStyle("color", calRow, calCol) = bgColor;
  428. grd_calendar.cellStyle("color", calRow, calCol + 7) = bgColor;
  429. }else{
  430. //calCol = calCol - 7;
  431. grd_calendar.cellStyle("color", calRow, calCol) = bgColor;
  432. grd_calendar.cellStyle("color", calRow, calCol - 7) = bgColor;
  433. }
  434. //grd_calendar.rebuildStyle();
  435. }
  436. function setCellColor(calRow, calCol) {
  437. var isMonth = model.getValue("/root/hidden/calendar/month");
  438. var isYear = model.getValue("/root/hidden/calendar/year");
  439. var isDate = (isYear+isMonth+1).toDate();
  440. //setCalendarData();
  441. setCalendar2(isDate);
  442. if( calCol < 7 ){
  443. //calCol = calCol + 7;
  444. grd_calendar.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  445. grd_calendar.cellStyle("background-color", calRow, calCol + 7) = "#daa7d9";
  446. }else{
  447. //calCol = calCol - 7;
  448. grd_calendar.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  449. grd_calendar.cellStyle("background-color", calRow, calCol - 7) = "#daa7d9";
  450. }
  451. //gridObj.rebuildStyle();
  452. //gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  453. }
  454. //해당 일자의 병원 일정 정보를 얻어 온다
  455. function setCalendarMemo( i )
  456. {
  457. var holiflag = "";
  458. var holinm = "";
  459. holiflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/holiflag");
  460. holinm = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/holinm");
  461. if( holinm == '-' ){
  462. holinm = "";
  463. }
  464. return holinm;
  465. }
  466. //달력을 클릭(선택) 했을 때
  467. function fClickOnCalendar(){
  468. var calRow = grd_calendar.row;
  469. var calCol = grd_calendar.col;
  470. calCol = calCol % 7;
  471. var isDay = grd_calendar.valueMatrix(calRow, calCol);
  472. if( isDay != "" ){
  473. if( isDay.length == 1 ) isDay = "0" + isDay;
  474. var dd = ( (model.getValue("/root/hidden/calendar/year")).concat(model.getValue("/root/hidden/calendar/month")) ).concat(isDay);
  475. optRsrvDD.value = dd;
  476. model.setValue("/root/send/data/schergstdd", dd);
  477. //fGetOutRsgt();
  478. }
  479. }
  480. function fSetMonth(newMonth){
  481. model.setValue("/root/hidden/calendar/month", newMonth);
  482. var isMonth = model.getValue("/root/hidden/calendar/month");
  483. var isYear = model.getValue("/root/hidden/calendar/year");
  484. var isDate = (isYear+isMonth+1).toDate();
  485. //setCalendar(isDate);
  486. setCalendarData();
  487. }
  488. //날짜 00 맞추기 위한 방법
  489. function fncSetFormate(arg) {
  490. var rtnValue ='';
  491. if(arg <10)
  492. {
  493. rtnValue = '0'+arg;
  494. }
  495. else
  496. {
  497. rtnValue = arg;
  498. }
  499. return rtnValue;
  500. }
  501. /* @group : 통합예약관리
  502. * @ver : 2007.08.10
  503. * @by : 임헤정
  504. * @-----------------------------------
  505. * @type : function
  506. * @access : public
  507. * @desc : 오늘날짜 달력에 표시
  508. */
  509. function setCurrentDate() {
  510. var curDate = getCurrentDate().substr(6,2); //오늘날짜
  511. var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  512. if(curDate <10) {
  513. curDate= curDate.substr(1,1);
  514. }
  515. if (curWeek == "sun") {
  516. model.makeValue("/root/hidden/grdcellcolor/calcol",0);
  517. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",0);
  518. } else if (curWeek == "mon") {
  519. model.makeValue("/root/hidden/grdcellcolor/calcol",1);
  520. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",1);
  521. } else if (curWeek == "tue") {
  522. model.makeValue("/root/hidden/grdcellcolor/calcol",2);
  523. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",2);
  524. } else if (curWeek == "wed") {
  525. model.makeValue("/root/hidden/grdcellcolor/calcol",3);
  526. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",3);
  527. } else if (curWeek == "thu") {
  528. model.makeValue("/root/hidden/grdcellcolor/calcol",4);
  529. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",4);
  530. } else if (curWeek == "fri") {
  531. model.makeValue("/root/hidden/grdcellcolor/calcol",5);
  532. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",5);
  533. } else if (curWeek == "sat") {
  534. model.makeValue("/root/hidden/grdcellcolor/calcol",6);
  535. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",6);
  536. }
  537. for(var i = 0 ; i <grd_calendar.rows; i++ ) {
  538. if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
  539. model.makeValue("/root/hidden/grdcellcolor/calrow",i);
  540. model.makeValue("/root/hidden/grdcellcolor/bfcalrow",i);
  541. }
  542. }
  543. model.makeValue("/root/hidden/grdcellcolor/color",1);
  544. setNewCellColor(grd_calendar);
  545. }
  546. /* @group : 통합예약관리
  547. * @ver : 2014.09.05
  548. * @by : 권영애
  549. * @-----------------------------------
  550. * @type : function
  551. * @access : public
  552. * @desc : 지정날짜 달력에 표시
  553. */
  554. function setSpecialDate(rsrvdd) {
  555. var curDate = rsrvdd.substr(6,2); //오늘날짜
  556. var curWeek = rsrvdd.toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  557. if(curDate <10) {
  558. curDate= curDate.substr(1,1);
  559. }
  560. if (curWeek == "sun") {
  561. model.makeValue("/root/hidden/grdcellcolor/calcol",0);
  562. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",0);
  563. } else if (curWeek == "mon") {
  564. model.makeValue("/root/hidden/grdcellcolor/calcol",1);
  565. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",1);
  566. } else if (curWeek == "tue") {
  567. model.makeValue("/root/hidden/grdcellcolor/calcol",2);
  568. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",2);
  569. } else if (curWeek == "wed") {
  570. model.makeValue("/root/hidden/grdcellcolor/calcol",3);
  571. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",3);
  572. } else if (curWeek == "thu") {
  573. model.makeValue("/root/hidden/grdcellcolor/calcol",4);
  574. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",4);
  575. } else if (curWeek == "fri") {
  576. model.makeValue("/root/hidden/grdcellcolor/calcol",5);
  577. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",5);
  578. } else if (curWeek == "sat") {
  579. model.makeValue("/root/hidden/grdcellcolor/calcol",6);
  580. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",6);
  581. }
  582. for(var i = 0 ; i <grd_calendar.rows; i++ ) {
  583. if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
  584. model.makeValue("/root/hidden/grdcellcolor/calrow",i);
  585. model.makeValue("/root/hidden/grdcellcolor/bfcalrow",i);
  586. }
  587. }
  588. model.makeValue("/root/hidden/grdcellcolor/color",1);
  589. setNewCellColor(grd_calendar);
  590. }
  591. function setNewCellColor(gridObj) {
  592. var calRow = 0; //현재선택
  593. var calCol = 0; //현재선택
  594. var bfcalRow = 0; //전에 선택
  595. var bfcalCol = 0; //전에 선택
  596. var white = 1; //#ffffff
  597. var green = 2; //#c4e693
  598. calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
  599. calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
  600. bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
  601. bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
  602. // 1. 원래 색으로 돌려놓기
  603. if(model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
  604. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  605. if( bfcalCol < 7 ) {
  606. bfcalCol += 7;
  607. } else {
  608. bfcalCol -= 7;
  609. }
  610. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  611. } else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
  612. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  613. if( bfcalCol < 7 ) {
  614. bfcalCol += 7;
  615. } else {
  616. bfcalCol -= 7;
  617. }
  618. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  619. }
  620. // 2. bf 인스턴스에 선택한 원래 셀 담아두기
  621. if(gridObj.cellStyle("background-color", calRow, calCol) == "white" ) {
  622. model.setValue("/root/hidden/grdcellcolor/color", "1");
  623. }
  624. if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
  625. model.setValue("/root/hidden/grdcellcolor/color", "2");
  626. }
  627. model.setValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
  628. model.setValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
  629. // 3. 선택한 셀에 보라색 주기
  630. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  631. if( calCol < 7 ) {
  632. calCol += 7;
  633. } else {
  634. calCol -= 7;
  635. }
  636. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  637. }
  638. function fGetCalendar(arg){
  639. var isMonth = model.getValue("/root/hidden/calendar/month");
  640. var isYear = model.getValue("/root/hidden/calendar/year");
  641. if(model.getValue("/root/hidden/calendar/month") < arg) {
  642. var num = arg- isMonth ;
  643. var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
  644. }
  645. if(model.getValue("/root/hidden/calendar/month") > arg) {
  646. var num = isMonth - arg ;
  647. var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
  648. }
  649. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  650. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  651. model.refresh();
  652. setCalendar(isDate);
  653. }
  654. //=====================================================================================================================================================================================
  655. // @ 팝업메뉴 - 예약증 출력
  656. //=====================================================================================================================================================================================
  657. function fRsrvPrint() {
  658. //****************************************
  659. // ******예약증 일정표 출력 20110504 ******
  660. //****************************************
  661. //진료과명 가져오기 2011.05.06 by kya
  662. model.makeValue("/root/main/PatInfo/suppdeptcdnm",getUserInfo("dutplcenm"));
  663. if( model.getValue("root/main/rsrvinfo/rsrvlist["+grd_rsrvlist.row+"]/pid") != null ) {
  664. exeReportPreview("RPAEA02201", "XMLSTR", "", "", "false","","","","","false");
  665. } else {
  666. messageBox("예약", "E013");
  667. }
  668. }
  669. ]]>
  670. </script>
  671. </xhtml:head>
  672. <xhtml:body pagewidth="1020" pageheight="740" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  673. <group id="group1" style="left:0px; top:0px; width:500px; height:13px; ">
  674. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">임시예약</caption>
  675. </group>
  676. <group id="grp_biz" scroll="auto" style="left:0px; top:20px; width:1000px; height:715px; ">
  677. <group id="group2" style="left:465px; top:0px; width:525px; height:395px; vertical-align:top; ">
  678. <caption id="caption29" class="cell_1" style="left:5px; top:30px; width:105px; height:23px; ">환자ID</caption>
  679. <input id="optName" ref="/root/main/PatInfo/hngnm" class="input_search" navindex="3" appearance="input" style="left:115px; top:142px; width:135px; height:19px; "/>
  680. <caption id="caption30" class="tit_2" style="left:0px; top:4px; width:169px; height:13px; ">환자 예약 정보</caption>
  681. <line id="line15" class="line_1" style="x1:2px; y1:21px; x2:515px; y2:21px; "/>
  682. <line id="line16" class="line_3" style="x1:2px; y1:391px; x2:515px; y2:391px; "/>
  683. <caption id="caption31" class="cell_1" style="left:5px; top:141px; width:105px; height:23px; ">환자성명</caption>
  684. <line id="line18" class="line_2" style="x1:6px; y1:136px; x2:515px; y2:136px; "/>
  685. <textarea id="tar_prcpremfact" ref="/root/main/PatInfo/rsrvrem" navindex="10" style="left:115px; top:256px; width:395px; height:67px; "/>
  686. <input id="iptPid" ref="/root/send/data/pid" class="input_s_essential" navindex="1" style="left:115px; top:31px; width:105px; height:19px; ">
  687. <script type="javascript" ev:event="onkeydown">
  688. <![CDATA[
  689. inputEnterKey("btnPatinfo","DOMActivate");
  690. ]]>
  691. </script>
  692. <script type="javascript" ev:event="DOMFocusIn">
  693. <![CDATA[
  694. // iptPid.value = "";
  695. ]]>
  696. </script>
  697. </input>
  698. <caption id="caption32" class="cell_1" style="left:5px; top:199px; width:105px; height:23px; ">주민번호</caption>
  699. <line id="line19" class="line_2" style="x1:6px; y1:163px; x2:515px; y2:163px; "/>
  700. <caption id="caption33" class="cell_1" style="left:5px; top:226px; width:105px; height:23px; ">주소</caption>
  701. <caption id="caption34" class="cell_1" style="left:255px; top:199px; width:75px; height:23px; ">연락처</caption>
  702. <caption id="caption35" class="cell_1" style="left:255px; top:29px; width:80px; height:23px; ">병원</caption>
  703. <input id="optRrgstNO" ref="/root/main/PatInfo/rrgstno1" class="input_search" navindex="6" maxlength="6" format="#" appearance="input" style="left:115px; top:200px; width:55px; height:19px; "/>
  704. <caption id="caption1" class="cell_1" style="left:5px; top:170px; width:105px; height:23px; ">성별/나이</caption>
  705. <input id="optTel" ref="/root/main/PatInfo/tel" class="input_search" navindex="8" appearance="input" style="left:335px; top:200px; width:167px; height:19px; "/>
  706. <input id="optAddress1" ref="/root/main/PatInfo/addr" class="input_search" navindex="9" appearance="input" style="left:115px; top:226px; width:387px; height:19px; "/>
  707. <caption id="caption2" class="cell_1" style="left:5px; top:257px; width:105px; height:70px; ">참고사항</caption>
  708. <caption id="caption3" class="cell_1" style="left:5px; top:331px; width:105px; height:23px; ">예약일자</caption>
  709. <output id="optRsrvDD" ref="/root/main/PatInfo/rsrvdd" class="output_fix" format="yyyy-mm-dd" style="left:115px; top:332px; width:135px; height:19px; "/>
  710. <caption id="caption4" class="cell_1" style="left:254px; top:331px; width:80px; height:23px; ">예약시간</caption>
  711. <caption id="caption20" style="left:383px; top:333px; width:20px; height:20px; ">시</caption>
  712. <caption id="caption21" style="left:444px; top:333px; width:20px; height:20px; ">분</caption>
  713. <select1 id="cmbHour" ref="/root/main/PatInfo/srchrsrvhh" navindex="11" appearance="minimal" style="left:340px; top:332px; width:40px; height:19px; ">
  714. <choices>
  715. <item>
  716. <label>--</label>
  717. <value/>
  718. </item>
  719. <item>
  720. <label>01</label>
  721. <value>01</value>
  722. </item>
  723. <item>
  724. <label>02</label>
  725. <value>02</value>
  726. </item>
  727. <item>
  728. <label>03</label>
  729. <value>03</value>
  730. </item>
  731. <item>
  732. <label>04</label>
  733. <value>04</value>
  734. </item>
  735. <item>
  736. <label>05</label>
  737. <value>05</value>
  738. </item>
  739. <item>
  740. <label>06</label>
  741. <value>06</value>
  742. </item>
  743. <item>
  744. <label>07</label>
  745. <value>07</value>
  746. </item>
  747. <item>
  748. <label>08</label>
  749. <value>08</value>
  750. </item>
  751. <item>
  752. <label>09</label>
  753. <value>09</value>
  754. </item>
  755. <item>
  756. <label>10</label>
  757. <value>10</value>
  758. </item>
  759. <item>
  760. <label>11</label>
  761. <value>11</value>
  762. </item>
  763. <item>
  764. <label>12</label>
  765. <value>12</value>
  766. </item>
  767. <item>
  768. <label>13</label>
  769. <value>13</value>
  770. </item>
  771. <item>
  772. <label>14</label>
  773. <value>14</value>
  774. </item>
  775. <item>
  776. <label>15</label>
  777. <value>15</value>
  778. </item>
  779. <item>
  780. <label>16</label>
  781. <value>16</value>
  782. </item>
  783. <item>
  784. <label>17</label>
  785. <value>17</value>
  786. </item>
  787. <item>
  788. <label>18</label>
  789. <value>18</value>
  790. </item>
  791. <item>
  792. <label>19</label>
  793. <value>19</value>
  794. </item>
  795. <item>
  796. <label>20</label>
  797. <value>20</value>
  798. </item>
  799. <item>
  800. <label>21</label>
  801. <value>21</value>
  802. </item>
  803. <item>
  804. <label>22</label>
  805. <value>22</value>
  806. </item>
  807. <item>
  808. <label>23</label>
  809. <value>23</value>
  810. </item>
  811. <item>
  812. <label>24</label>
  813. <value>24</value>
  814. </item>
  815. </choices>
  816. </select1>
  817. <select1 id="cmbSec" ref="/root/main/PatInfo/srchrsrvmm" navindex="12" appearance="minimal" style="left:400px; top:332px; width:40px; height:19px; ">
  818. <choices>
  819. <item>
  820. <label>--</label>
  821. <value/>
  822. </item>
  823. <item>
  824. <label>00</label>
  825. <value>00</value>
  826. </item>
  827. <item>
  828. <label>05</label>
  829. <value>05</value>
  830. </item>
  831. <item>
  832. <label>10</label>
  833. <value>10</value>
  834. </item>
  835. <item>
  836. <label>15</label>
  837. <value>15</value>
  838. </item>
  839. <item>
  840. <label>20</label>
  841. <value>20</value>
  842. </item>
  843. <item>
  844. <label>25</label>
  845. <value>25</value>
  846. </item>
  847. <item>
  848. <label>30</label>
  849. <value>30</value>
  850. </item>
  851. <item>
  852. <label>35</label>
  853. <value>35</value>
  854. </item>
  855. <item>
  856. <label>40</label>
  857. <value>40</value>
  858. </item>
  859. <item>
  860. <label>45</label>
  861. <value>45</value>
  862. </item>
  863. <item>
  864. <label>50</label>
  865. <value>50</value>
  866. </item>
  867. <item>
  868. <label>55</label>
  869. <value>55</value>
  870. </item>
  871. </choices>
  872. </select1>
  873. <select1 id="cmbInstCd" ref="/root/main/PatInfo/reqhospcd" navindex="2" appearance="minimal" style="left:340px; top:30px; width:125px; height:19px; ">
  874. <choices>
  875. <itemset nodeset="/root/init/baseinfo/inithospcd/Z0007">
  876. <label ref="cdnm"/>
  877. <value ref="cdid"/>
  878. </itemset>
  879. </choices>
  880. </select1>
  881. <line id="line2" class="line_2" style="x1:6px; y1:253px; x2:515px; y2:253px; "/>
  882. <line id="line3" class="line_2" style="x1:6px; y1:325px; x2:515px; y2:325px; "/>
  883. <select1 id="cmbHalf" ref="/root/main/PatInfo/ampmflag" navindex="13" visibility="hidden" appearance="minimal" style="left:464px; top:332px; width:40px; height:19px; ">
  884. <choices>
  885. <item>
  886. <label>AM</label>
  887. <value>A</value>
  888. </item>
  889. <item>
  890. <label>PM</label>
  891. <value>P</value>
  892. </item>
  893. </choices>
  894. </select1>
  895. <button id="btn_acpt" class="btn4_letter2" navindex="15" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:275px; top:361px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  896. <caption>예약</caption>
  897. <script type="javascript" ev:event="DOMActivate">
  898. <![CDATA[
  899. if ( model.getValue("/root/send/data/pid") =="") {
  900. return;
  901. }
  902. //예약시간
  903. var flag = model.getValue("/root/main/PatInfo/flag");
  904. if (flag != "U") {
  905. model.makeValue("/root/main/PatInfo/flag","I");
  906. }
  907. model.setValue("/root/main/PatInfo/pid",model.getValue("/root/send/data/pid"));
  908. model.setValue("/root/main/PatInfo/suppdeptcd",model.getValue("/root/send/suppdeptcd"));
  909. if (model.getValue("/root/main/PatInfo/pid") == "" && model.getValue("/root/main/PatInfo/hngnm") == "" ) {
  910. messageBox("환자ID 또는 환자성명 중 하나 이상은", "C001");
  911. return;
  912. }
  913. //
  914. if (model.getValue("/root/main/PatInfo/reqhospcd") == "" ) {
  915. messageBox("병원이 선택되지", "E007");
  916. return;
  917. }
  918. if (model.getValue("/root/main/PatInfo/excucd") == "" ) {
  919. messageBox("검사코드가 선택되지", "E007");
  920. return;
  921. }
  922. if (model.getValue("/root/main/PatInfo/rsrvdd") == "" ) {
  923. messageBox("예약일자가 선택되지", "E007");
  924. return;
  925. }
  926. if (model.getValue("/root/main/PatInfo/srchrsrvhh") == "" ) {
  927. messageBox("예약시간이 선택되지", "E007");
  928. return;
  929. }
  930. if (model.getValue("/root/main/PatInfo/srchrsrvmm") == "" ) {
  931. messageBox("예약분이 선택되지", "E007");
  932. return;
  933. }
  934. // if (model.getValue("/root/main/PatInfo/ampmflag") == "" ) {
  935. // messageBox("오전/오후가 선택되지", "E007");
  936. // return;
  937. // }
  938. var curDate = getCurrentDate().substr(0,8); //오늘날짜
  939. var rsrvdd = model.getValue("/root/main/PatInfo/rsrvdd"); //선택일자
  940. var rsrvtm = model.getValue("/root/main/PatInfo/srchrsrvhh") + model.getValue("/root/main/PatInfo/srchrsrvmm");
  941. //당일예약
  942. if(curDate == rsrvdd) {
  943. if(getCurrentTime().substr(0,4) > rsrvtm ) { //현재시간 이전시간을 예약
  944. messageBox("예약시간이 과거시간", "E008");
  945. return;
  946. }
  947. } else if (curDate > rsrvdd) { //당일 이전 예약
  948. messageBox("예약일자가 과거일자", "E008");
  949. return;
  950. }
  951. // 2012.06.20 by kya 중복예약허용
  952. model.makeValue("/root/main/PatInfo/duprsrvflag",model.getValue("/root/send/duprsrvflag"));
  953. //예약시간
  954. model.makeValue("/root/main/PatInfo/rsrvtm", rsrvtm );
  955. model.makeValue("/root/main/PatInfo/srchrsrvtm", rsrvtm);
  956. //********************************************
  957. // 2012.06.19 중복예약불가기능 추가 by kya
  958. // TXAEA03201 안에 있음
  959. //********************************************
  960. if (submit("TXAEA03201")) {
  961. model.makeValue("/root/hidden/updtflag","Y");
  962. //달력셋팅
  963. initCalendar();
  964. //2010.11.02 임시예약리스트 조회 및 삭제 기능 추가 - 박재영
  965. submit("TRAEA03210");
  966. //2011.02.11 휴검관리조회 추가 - 박재영
  967. model.setValue("/root/send/sdate",model.getValue("root/send/data/schergstdd"));
  968. model.setValue("/root/send/tdate",model.getValue("root/send/data/schergstdd"));
  969. submit("TRAEA00701");
  970. messageBox("예약이", "I002");
  971. model.refresh();
  972. }
  973. //********************************************
  974. // 2011.05.04 예약증 출력기능 추가 by kya
  975. //********************************************
  976. if (model.getValue("/root/send/printflag") == 'Y') {
  977. //예약시간
  978. var rsrvtm = model.getValue("/root/main/PatInfo/srchrsrvhh") + model.getValue("/root/main/PatInfo/srchrsrvmm");
  979. model.makeValue("/root/main/PatInfo/rsrvtm", rsrvtm );
  980. //검사코드
  981. model.makeValue("/root/main/PatInfo/excucdnm", cmb_excucd.label);
  982. //검사실
  983. model.makeValue("/root/main/PatInfo/excuroomcdnm", cmb_excuroomcd.label);
  984. model.makeValue("/root/main/PatInfo/suppdeptcdnm",getUserInfo("dutplcenm"));
  985. exeReportPreview("RPAEA02201", "XMLSTR", "", "", "false","","","","","false");
  986. }
  987. ]]>
  988. </script>
  989. </button>
  990. <button id="button13" class="btn4_letter2" navindex="16" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:390px; top:361px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  991. <caption>종료</caption>
  992. <script type="javascript" ev:event="DOMActivate">
  993. <![CDATA[
  994. if (checkOpener()) {
  995. var updtflag = model.getValue("/root/hidden/updtflag");
  996. var seq = model.getValue("/root/init/pseursrvinfo/seq");
  997. if (updtflag == "Y" && seq != "") {
  998. opener.javascript.initCalendar();
  999. opener.javascript.getRsrvPossTm(grd_calendar);
  1000. //2009-07-28 예약후 달력표시 현재(오늘)일자로 조회되는것 막음-예약일자 재조회처리 (류형기 샘 요청)
  1001. var calRow = model.getValue("/root/hidden/grdcellcolor/calrow");
  1002. var calCol = model.getValue("/root/hidden/grdcellcolor/calcol");
  1003. var yyyy = model.getValue("/root/hidden/calendar/year");
  1004. var mm = model.getValue("/root/hidden/calendar/month");
  1005. var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + grd_calendar.colAttribute(calCol, "ref"));
  1006. var rsrvdd = model.getValue("/root/main/PatInfo/rsrvdd");
  1007. opener.model.makeValue("/root/hidden/grdcellcolor/calrow" , calRow);
  1008. opener.model.makeValue("/root/hidden/grdcellcolor/calcol" , calCol);
  1009. opener.model.makeValue("/root/hidden/calendar/year" , yyyy);
  1010. opener.model.makeValue("/root/hidden/calendar/month" , mm);
  1011. opener.model.makeValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + grd_calendar.colAttribute(calCol, "ref"),dd);
  1012. opener.model.makeValue("/root/send/data/rsrvdd" , rsrvdd);
  1013. }
  1014. }
  1015. window.close();
  1016. ]]>
  1017. </script>
  1018. </button>
  1019. <button id="btnPatinfo" class="icon_search" style="left:225px; top:32px; width:16px; height:16px; ">
  1020. <caption/>
  1021. <script type="javascript" ev:event="DOMActivate">
  1022. <![CDATA[
  1023. var ipt_pid = model.getValue("/root/send/data/pid");
  1024. if (ipt_pid) {
  1025. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  1026. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  1027. } else {
  1028. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  1029. }
  1030. // 환자조회
  1031. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", "");
  1032. //환자이름
  1033. model.setValue("/root/main/PatInfo/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  1034. //환자아이디
  1035. model.setValue("/root/send/data/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  1036. model.setValue("/root/main/PatInfo/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  1037. //환자성별
  1038. model.setValue("/root/main/PatInfo/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
  1039. //환자나이
  1040. model.setValue("/root/main/PatInfo/age", model.getValue("/root/main/patinfo/patinfolist/age"));
  1041. //환자 주민번호
  1042. model.setValue("/root/main/PatInfo/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
  1043. model.setValue("/root/main/PatInfo/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
  1044. //환자주소
  1045. model.setValue("/root/main/PatInfo/addr",model.getValue("/root/main/patinfo/patinfolist/detladdr") );
  1046. //환자연락처
  1047. model.setValue("/root/main/PatInfo/tel",model.getValue("/root/main/patinfo/patinfolist/mpphontel") );
  1048. model.refresh();
  1049. ]]>
  1050. </script>
  1051. </button>
  1052. <button id="button3" class="btn3_letter3" navindex="14" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:205px; top:361px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1053. <caption>초기화</caption>
  1054. <script type="javascript" ev:event="DOMActivate">
  1055. <![CDATA[
  1056. model.resetInstanceNode("/root/main/PatInfo");
  1057. model.resetInstanceNode("/root/send/data");
  1058. initCalendar();
  1059. model.makeValue("/root/main/PatInfo/reqhospcd", getUserInfo("dutplceinstcd"));
  1060. model.makeValue("/root/main/PatInfo/sex","M");
  1061. model.setFocus("iptPid");
  1062. model.makeValue("/root/main/PatInfo/rsrvprescondappyn","Y");
  1063. model.refresh();
  1064. ]]>
  1065. </script>
  1066. </button>
  1067. <select1 id="radio1" ref="/root/main/PatInfo/sex" class="radio_search" navindex="4" appearance="full" cols="2" overflow="visible" style="left:115px; top:174px; width:105px; height:15px; border-style:none; ">
  1068. <choices>
  1069. <item>
  1070. <label>M(남)</label>
  1071. <value>M</value>
  1072. </item>
  1073. <item>
  1074. <label>F(여)</label>
  1075. <value>F</value>
  1076. </item>
  1077. </choices>
  1078. </select1>
  1079. <input id="input1" ref="/root/main/PatInfo/age" class="input_search" navindex="5" maxlength="3" format="#" appearance="input" style="left:222px; top:171px; width:28px; height:19px; text-align:right; "/>
  1080. <line id="line4" class="line_2" style="x1:6px; y1:220px; x2:515px; y2:220px; "/>
  1081. <input id="input2" ref="/root/main/PatInfo/rrgstno2" class="input_search" navindex="7" maxlength="7" format="#" appearance="input" style="left:185px; top:201px; width:65px; height:19px; "/>
  1082. <caption id="caption8" style="left:170px; top:200px; width:15px; height:19px; text-align:center; ">-</caption>
  1083. <button id="button1" class="btn4_letter2" navindex="15" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:332px; top:361px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1084. <caption>삭제</caption>
  1085. <script type="javascript" ev:event="DOMActivate">
  1086. <![CDATA[
  1087. var seq = model.getValue("/root/main/PatInfo/seq");
  1088. if (seq == "") {
  1089. messageBox("삭제할 예약 정보가 없습니다.", "I004");
  1090. return;
  1091. }
  1092. // 2012.06.20 by kya 중복예약허용
  1093. model.makeValue("/root/main/PatInfo/duprsrvflag",model.getValue("/root/send/duprsrvflag"));
  1094. model.makeValue("/root/main/PatInfo/flag","D");
  1095. if (submit("TXAEA03201")) {
  1096. model.makeValue("/root/hidden/updtflag","Y");
  1097. model.setValue("/root/send/data/pid","");
  1098. //달력셋팅
  1099. initCalendar();
  1100. //2010.11.02 임시예약리스트 조회 및 삭제 기능 추가 - 박재영
  1101. submit("TRAEA03210");
  1102. //2011.02.11 휴검관리조회 추가 - 박재영
  1103. model.setValue("/root/send/sdate",model.getValue("root/send/data/schergstdd"));
  1104. model.setValue("/root/send/tdate",model.getValue("root/send/data/schergstdd"));
  1105. submit("TRAEA00701");
  1106. messageBox("예약 정보 삭제가 ", "I001");
  1107. }
  1108. ]]>
  1109. </script>
  1110. </button>
  1111. <line id="line1" class="line_2" style="x1:5px; y1:54px; x2:514px; y2:54px; "/>
  1112. <caption id="caption9" class="cell_1" style="left:255px; top:57px; width:80px; height:23px; ">의뢰주치의</caption>
  1113. <caption id="caption10" class="cell_1" style="left:5px; top:58px; width:105px; height:23px; ">의뢰과명</caption>
  1114. <input id="input3" ref="/root/main/PatInfo/reqdeptnm" class="input_search" navindex="3" appearance="input" style="left:115px; top:60px; width:135px; height:19px; "/>
  1115. <input id="input4" ref="/root/main/PatInfo/reqapntdrnm" class="input_search" navindex="3" appearance="input" style="left:340px; top:59px; width:135px; height:19px; "/>
  1116. <caption id="caption11" class="cell_1" style="left:388px; top:84px; width:81px; height:23px; ">가용인원적용</caption>
  1117. <select id="checkbox1" ref="/root/main/PatInfo/rsrvprescondappyn" overflow="visible" appearance="full" style="left:473px; top:87px; width:20px; height:20px; border-style:none; ">
  1118. <choices>
  1119. <item>
  1120. <label/>
  1121. <value>Y</value>
  1122. </item>
  1123. </choices>
  1124. </select>
  1125. <select1 id="cmb_excucd" ref="/root/main/PatInfo/excucd" navindex="2" appearance="minimal" style="left:115px; top:84px; width:270px; height:19px; ">
  1126. <choices>
  1127. <itemset nodeset="/root/init/cmb_info/examcurecd/initexamcurecd">
  1128. <label ref="excucdnm"/>
  1129. <value ref="excucd"/>
  1130. </itemset>
  1131. </choices>
  1132. <script type="javascript" ev:event="xforms-value-changed">
  1133. <![CDATA[
  1134. model.setValue("/root/main/PatInfo/excupatrem",model.getValue("/root/init/cmb_info/examcurecd/initexamcurecd/excupatrem"));
  1135. ]]>
  1136. </script>
  1137. </select1>
  1138. <caption id="caption13" class="cell_1" style="left:5px; top:84px; width:105px; height:23px; ">검사코드</caption>
  1139. <line id="line5" class="line_2" style="x1:5px; y1:81px; x2:514px; y2:81px; "/>
  1140. <line id="line6" class="line_2" style="x1:5px; y1:108px; x2:514px; y2:108px; "/>
  1141. <caption id="caption12" class="cell_1" style="left:5px; top:110px; width:105px; height:23px; ">검사실</caption>
  1142. <select1 id="cmb_excuroomcd" ref="/root/main/PatInfo/excuroomcd" navindex="2" appearance="minimal" style="left:115px; top:112px; width:150px; height:19px; ">
  1143. <choices>
  1144. <itemset nodeset="/root/init/cmb_info/excuroom/initexcuroom">
  1145. <label ref="excuroomcdnm"/>
  1146. <value ref="excuroomcdid"/>
  1147. </itemset>
  1148. </choices>
  1149. <script type="javascript" ev:event="xforms-value-changed">
  1150. <![CDATA[
  1151. //2010.11.02 임시예약리스트 조회 및 삭제 기능 추가 - 박재영
  1152. //2011.04.14 검사실 변경시 임시예약리스트 조회 - 권영애
  1153. model.setValue("/root/send/excuroomcd",model.getValue("/root/main/PatInfo/excuroomcd"));
  1154. submit("TRAEA03210");
  1155. model.refresh();
  1156. ]]>
  1157. </script>
  1158. </select1>
  1159. <caption id="caption14" style="left:270px; top:112px; width:224px; height:20px; ">*미선택시 검사코드의 기본검사실로 선택</caption>
  1160. <line id="line7" class="line_2" style="x1:6px; y1:193px; x2:515px; y2:193px; "/>
  1161. <select id="chbx_print" ref="/root/send/printflag" overflow="visible" appearance="full" style="left:110px; top:365px; width:85px; height:15px; border-style:none; ">
  1162. <choices>
  1163. <item>
  1164. <label>예약증출력</label>
  1165. <value>Y</value>
  1166. </item>
  1167. </choices>
  1168. </select>
  1169. <button id="btn_init" class="btn4_letter3" navindex="16" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:450px; top:361px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1170. <caption>재출력</caption>
  1171. <script type="javascript" ev:event="DOMActivate">
  1172. <![CDATA[
  1173. fRsrvPrint();
  1174. ]]>
  1175. </script>
  1176. </button>
  1177. <select id="cbx_duprsrv" ref="/root/send/duprsrvflag" overflow="visible" appearance="full" style="left:5px; top:365px; width:95px; height:20px; border-style:none; ">
  1178. <choices>
  1179. <item>
  1180. <label>중복예약허용</label>
  1181. <value>Y</value>
  1182. </item>
  1183. </choices>
  1184. </select>
  1185. </group>
  1186. <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:1px; width:457px; height:65px; "/>
  1187. <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:228px; top:7px; width:30px; height:19px; "/>
  1188. <caption id="caption5" class="calendar_output" style="left:208px; top:7px; width:20px; height:19px; ">년</caption>
  1189. <caption id="caption7" class="calendar_output" style="left:258px; top:7px; width:20px; height:19px; ">월</caption>
  1190. <button id="btn_premonth" class="icon_pre_month" style="left:152px; top:9px; width:16px; height:16px; ">
  1191. <caption/>
  1192. <script type="javascript" ev:event="DOMActivate">
  1193. <![CDATA[
  1194. var isMonth = model.getValue("/root/hidden/calendar/month");
  1195. var isYear = model.getValue("/root/hidden/calendar/year");
  1196. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  1197. /*
  1198. fGetCalendar(isDate.getDateFormat('MM'));
  1199. */
  1200. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  1201. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  1202. model.refresh();
  1203. /*
  1204. model.resetInstanceNode("/root/hidden/calendarinfo")
  1205. */
  1206. setCalendar(isDate);//날짜 셋팅
  1207. ]]>
  1208. </script>
  1209. </button>
  1210. <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" backcoloralternate="transparent" caption="일^월^화^수^목^금^토" colsep="^" colwidth="65, 65, 65, 65, 65, 65, 65" ellipsis="true" focuscolor="transparent" rowsep="|" selectionmode="free" mergecellsfixedrows="bycolrec" style="left:0px; top:68px; width:457px; height:328px; font-size:10pt; ">
  1211. <row>
  1212. <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
  1213. <col ref="mon" style="border-bottom-width:0px; "/>
  1214. <col ref="tue" style="border-bottom-width:0px; "/>
  1215. <col ref="wed" style="border-bottom-width:0px; "/>
  1216. <col ref="thu" style="border-bottom-width:0px; "/>
  1217. <col ref="fri" style="border-bottom-width:0px; "/>
  1218. <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
  1219. </row>
  1220. <row>
  1221. <col ref="sun_memo" style="border-top-width:0px; "/>
  1222. <col ref="mon_memo" style="border-top-width:0px; "/>
  1223. <col ref="tue_memo" style="border-top-width:0px; "/>
  1224. <col ref="wed_memo" style="border-top-width:0px; "/>
  1225. <col ref="thu_memo" style="border-top-width:0px; "/>
  1226. <col ref="fri_memo" style="border-top-width:0px; "/>
  1227. <col class="color_sat" ref="sat_memo" style="border-top-width:0px; "/>
  1228. </row>
  1229. <script type="javascript" ev:event="onclick">
  1230. <![CDATA[
  1231. if (grd_calendar.isCell(event.target) && grd_calendar.mouseRow >= grd_calendar.fixedrows) {
  1232. model.makeValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
  1233. model.makeValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
  1234. setNewCellColor(grd_calendar);
  1235. fClickOnCalendar();
  1236. //2010.11.02 임시예약리스트 조회 및 삭제 기능 추가 - 박재영
  1237. model.setValue("/root/send/excuroomcd",model.getValue("/root/main/PatInfo/excuroomcd"));
  1238. submit("TRAEA03210");
  1239. //2011.02.11 휴검관리조회 추가 - 박재영
  1240. model.setValue("/root/send/sdate",model.getValue("root/send/data/schergstdd"));
  1241. model.setValue("/root/send/tdate",model.getValue("root/send/data/schergstdd"));
  1242. submit("TRAEA00701");
  1243. model.refresh();
  1244. }
  1245. ]]>
  1246. </script>
  1247. </multilinegrid>
  1248. <button id="button31" class="icon_pre_year" style="left:133px; top:9px; width:16px; height:16px; ">
  1249. <caption/>
  1250. <script type="javascript" ev:event="DOMActivate">
  1251. <![CDATA[
  1252. var isMonth = model.getValue("/root/hidden/calendar/month");
  1253. var isYear = model.getValue("/root/hidden/calendar/year");
  1254. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  1255. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  1256. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  1257. model.refresh();
  1258. model.resetInstanceNode("/root/hidden/calendarinfo")
  1259. setCalendar(isDate);//날짜 셋팅
  1260. ]]>
  1261. </script>
  1262. </button>
  1263. <button id="button32" class="icon_next_year" style="left:308px; top:9px; width:16px; height:16px; ">
  1264. <caption/>
  1265. <script type="javascript" ev:event="DOMActivate">
  1266. <![CDATA[
  1267. var isMonth = model.getValue("/root/hidden/calendar/month");
  1268. var isYear = model.getValue("/root/hidden/calendar/year");
  1269. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  1270. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  1271. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  1272. model.refresh();
  1273. model.resetInstanceNode("/root/hidden/calendarinfo")
  1274. setCalendar(isDate);//날짜 셋팅
  1275. ]]>
  1276. </script>
  1277. </button>
  1278. <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:178px; top:7px; width:30px; height:19px; "/>
  1279. <button id="button34" class="icon_next_month" style="left:289px; top:9px; width:16px; height:16px; ">
  1280. <caption/>
  1281. <script type="javascript" ev:event="DOMActivate">
  1282. <![CDATA[
  1283. var isMonth = model.getValue("/root/hidden/calendar/month");
  1284. var isYear = model.getValue("/root/hidden/calendar/year");
  1285. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  1286. /*
  1287. fGetCalendar(isDate.getDateFormat('MM'));
  1288. */
  1289. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  1290. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  1291. model.refresh();
  1292. /*
  1293. model.resetInstanceNode("/root/hidden/calendarinfo")
  1294. */
  1295. setCalendar(isDate);//날짜 셋팅
  1296. ]]>
  1297. </script>
  1298. </button>
  1299. <button id="button26" class="icon_month" style="left:170px; top:30px; width:27px; height:27px; ">
  1300. <caption>5</caption>
  1301. <script type="javascript" ev:event="DOMActivate">
  1302. <![CDATA[
  1303. if(opt_month.value!== "05") {
  1304. fGetCalendar("05");
  1305. }
  1306. ]]>
  1307. </script>
  1308. </button>
  1309. <button id="button37" class="icon_month" style="left:350px; top:30px; width:27px; height:27px; ">
  1310. <caption>11</caption>
  1311. <script type="javascript" ev:event="DOMActivate">
  1312. <![CDATA[
  1313. if(opt_month.value!== "11") {
  1314. fGetCalendar("11");
  1315. }
  1316. ]]>
  1317. </script>
  1318. </button>
  1319. <button id="button38" class="icon_month" style="left:380px; top:30px; width:27px; height:27px; ">
  1320. <caption>12</caption>
  1321. <script type="javascript" ev:event="DOMActivate">
  1322. <![CDATA[
  1323. if(opt_month.value!== "12") {
  1324. fGetCalendar("12");
  1325. }
  1326. ]]>
  1327. </script>
  1328. </button>
  1329. <button id="button17" class="icon_month" style="left:50px; top:30px; width:27px; height:27px; ">
  1330. <caption>1</caption>
  1331. <script type="javascript" ev:event="DOMActivate">
  1332. <![CDATA[
  1333. if(opt_month.value!== "01") {
  1334. fGetCalendar("01");
  1335. }
  1336. ]]>
  1337. </script>
  1338. </button>
  1339. <button id="button28" class="icon_month" style="left:200px; top:30px; width:27px; height:27px; ">
  1340. <caption>6</caption>
  1341. <script type="javascript" ev:event="DOMActivate">
  1342. <![CDATA[
  1343. if(opt_month.value!== "06") {
  1344. fGetCalendar("06");
  1345. }
  1346. ]]>
  1347. </script>
  1348. </button>
  1349. <button id="button29" class="icon_month" style="left:230px; top:30px; width:27px; height:27px; ">
  1350. <caption>7</caption>
  1351. <script type="javascript" ev:event="DOMActivate">
  1352. <![CDATA[
  1353. if(opt_month.value!== "07") {
  1354. fGetCalendar("07");
  1355. }
  1356. ]]>
  1357. </script>
  1358. </button>
  1359. <button id="button30" class="icon_month" style="left:260px; top:30px; width:27px; height:27px; ">
  1360. <caption>8</caption>
  1361. <script type="javascript" ev:event="DOMActivate">
  1362. <![CDATA[
  1363. if(opt_month.value!== "08") {
  1364. fGetCalendar("08");
  1365. }
  1366. ]]>
  1367. </script>
  1368. </button>
  1369. <button id="button2" class="icon_month" style="left:290px; top:30px; width:27px; height:27px; ">
  1370. <caption>9</caption>
  1371. <script type="javascript" ev:event="DOMActivate">
  1372. <![CDATA[
  1373. if(opt_month.value!== "09") {
  1374. fGetCalendar("09");
  1375. }
  1376. ]]>
  1377. </script>
  1378. </button>
  1379. <button id="button22" class="icon_month" style="left:80px; top:30px; width:27px; height:27px; ">
  1380. <caption>2</caption>
  1381. <script type="javascript" ev:event="DOMActivate">
  1382. <![CDATA[
  1383. if(opt_month.value!== "02") {
  1384. fGetCalendar("02");
  1385. }
  1386. ]]>
  1387. </script>
  1388. </button>
  1389. <button id="button23" class="icon_month" style="left:110px; top:30px; width:27px; height:27px; ">
  1390. <caption>3</caption>
  1391. <script type="javascript" ev:event="DOMActivate">
  1392. <![CDATA[
  1393. if(opt_month.value!== "03") {
  1394. fGetCalendar("03");
  1395. }
  1396. ]]>
  1397. </script>
  1398. </button>
  1399. <button id="button4" class="icon_month" style="left:320px; top:30px; width:27px; height:27px; ">
  1400. <caption>10</caption>
  1401. <script type="javascript" ev:event="DOMActivate">
  1402. <![CDATA[
  1403. if(opt_month.value!== "10") {
  1404. fGetCalendar("10");
  1405. }
  1406. ]]>
  1407. </script>
  1408. </button>
  1409. <button id="button24" class="icon_month" style="left:140px; top:30px; width:27px; height:27px; ">
  1410. <caption>4</caption>
  1411. <script type="javascript" ev:event="DOMActivate">
  1412. <![CDATA[
  1413. if(opt_month.value!== "04") {
  1414. fGetCalendar("04");
  1415. }
  1416. ]]>
  1417. </script>
  1418. </button>
  1419. <datagrid id="grd_rsrvlist" nodeset="/root/main/rsrvinfo/rsrvlist" caption="예약일자^예약시간^등록번호^환자성명^주민번호^성별/나이^검사실^검사^참고사항^예약자^예약잡은 날^caption16^caption17^caption18" colsep="^" colwidth="80, 59, 78, 57, 105, 67, 137, 209, 171, 71, 133, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:520px; width:985px; height:190px; ">
  1420. <col ref="rsrvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1421. <col ref="srchrsrvtm" format="hh:nn" style="text-align:center; "/>
  1422. <col ref="pid" style="text-align:center; "/>
  1423. <col ref="hngnm" style="text-align:center; "/>
  1424. <col ref="rrgstno" style="text-align:center; "/>
  1425. <col ref="sexage" style="text-align:center; "/>
  1426. <col ref="basecdflagdesc"/>
  1427. <col ref="excucdnm"/>
  1428. <col ref="rsrvrem"/>
  1429. <col ref="lastupdtrnm"/>
  1430. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  1431. <col ref="instcd" visibility="hidden"/>
  1432. <col ref="seq" visibility="hidden"/>
  1433. <col ref="suppdeptcd" visibility="hidden"/>
  1434. <script type="javascript" ev:event="onclick">
  1435. <![CDATA[
  1436. //2010.11.02 임시예약리스트 조회 및 삭제 기능 추가 - 박재영
  1437. // ref => "/root/init/pseursrvinfo" =>"/root/send"로 수정
  1438. if( isDataCell() ){
  1439. model.setValue("/root/send/rsrvdd",model.getValue("/root/main/rsrvinfo/rsrvlist["+grd_rsrvlist.row+"]/rsrvdd"));
  1440. model.setValue("/root/send/seq",model.getValue("/root/main/rsrvinfo/rsrvlist["+grd_rsrvlist.row+"]/seq"));
  1441. submit("TRAEA03207");
  1442. model.setValue("/root/send/data/pid", model.getValue("/root/main/PatInfo/pid"));
  1443. model.makeValue("/root/main/PatInfo/excucdnm",model.getValue("/root/main/rsrvinfo/rsrvlist["+grd_rsrvlist.row+"]/excucdnm"));
  1444. model.makeValue("/root/main/PatInfo/excuroomcdnm",model.getValue("/root/main/rsrvinfo/rsrvlist["+grd_rsrvlist.row+"]/basecdflagdesc"));
  1445. model.makeValue("/root/main/PatInfo/excupatrem",model.getValue("/root/main/rsrvinfo/rsrvlist["+grd_rsrvlist.row+"]/excupatrem"));
  1446. model.refresh();
  1447. }
  1448. ]]>
  1449. </script>
  1450. </datagrid>
  1451. <datagrid id="datagrid2" nodeset="/root/main/rsrvupdtinfo/rsrvupdt" caption="시작일시^시작일시^종료일시^종료일시^검사실^사유^Remark^최종변경자^최종변경일시^검사실코드^지원부서코드^입원외래구분" colsep="^" colwidth="80, 48, 80, 48, 115, 300, 270, 80, 116, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="8" style="left:5px; top:415px; width:985px; height:85px; ">
  1452. <col disabled="true" ref="rsrvupdtfromdd" format="yyyy-mm-dd" style="text-align:center; background-color:#ffff00; "/>
  1453. <col disabled="true" ref="rsrvupdtfromtm" format="hh:nn" style="text-align:center; background-color:#ffff00; "/>
  1454. <col disabled="true" ref="rsrvupdttodd" format="yyyy-mm-dd" style="text-align:center; background-color:#ffff00; "/>
  1455. <col disabled="true" ref="rsrvupdttotm" format="hh:nn" style="text-align:center; background-color:#ffff00; "/>
  1456. <col ref="basecdflagdesc" style="background-color:#ffff00; "/>
  1457. <col ref="updtresndesc" style="background-color:#ffff00; "/>
  1458. <col ref="updtresncnts" style="background-color:#ffff00; "/>
  1459. <col ref="lastupdtrid" visibility="hidden" style="text-align:center; background-color:#ffff00; "/>
  1460. <col ref="lastupdtdt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; background-color:#ffff00; "/>
  1461. <col ref="excuroomcd" visibility="hidden"/>
  1462. <col ref="suppdeptcd" visibility="hidden"/>
  1463. <col ref="ioflag" visibility="hidden"/>
  1464. <script type="javascript" ev:event="DOMFocusIn">
  1465. <![CDATA[
  1466. checkKeyColumn("datagrid2");
  1467. ]]>
  1468. </script>
  1469. </datagrid>
  1470. </group>
  1471. <caption id="caption15" class="tit_2" style="left:5px; top:420px; width:169px; height:13px; ">검사실별 휴검리스트</caption>
  1472. <caption id="caption16" class="tit_2" style="left:5px; top:525px; width:169px; height:13px; ">임시예약리스트</caption>
  1473. </xhtml:body>
  1474. </xhtml:html>