SPAEA02202_임시예약(건진).xrw 60 KB

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