SMAEA04500_치료예약스케줄관리.xrw 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134
  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. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <curersrvinfo>
  11. <item>
  12. <flag/>
  13. <pid/>
  14. <hngnm/>
  15. <rrgstno1/>
  16. <rrgstno2/>
  17. <sex/>
  18. <age/>
  19. <hometel/>
  20. <mpphontel/>
  21. <curersrvdd/>
  22. <genrdd/>
  23. <genrno/>
  24. <suppdeptcd/>
  25. <statcd/>
  26. <cntctel/>
  27. <orddeptcd/>
  28. <orddrid/>
  29. <curedg1/>
  30. <curedgseq1/>
  31. <curedg2/>
  32. <curedgseq2/>
  33. <curedg3/>
  34. <curedgseq3/>
  35. <curedg4/>
  36. <curedgseq4/>
  37. <curedg5/>
  38. <curedgseq5/>
  39. <curedg6/>
  40. <curedgseq6/>
  41. <remfact/>
  42. <startdd/>
  43. <endcnts/>
  44. <curecfrmyn/>
  45. <drugqty/>
  46. <wardcd/>
  47. <roomcd/>
  48. </item>
  49. </curersrvinfo>
  50. <curersrvlist>
  51. <item>
  52. <curersrvdd/>
  53. <pid/>
  54. <hngnm/>
  55. <statcd/>
  56. <orddeptcd/>
  57. <orddrid/>
  58. <curecnfmyn/>
  59. <drugqty/>
  60. <roomcd/>
  61. <remfact/>
  62. </item>
  63. </curersrvlist>
  64. <patinfo>
  65. <patinfolist/>
  66. </patinfo>
  67. </main>
  68. <send>
  69. <globalinstance>
  70. <instance1/>
  71. </globalinstance>
  72. <data>
  73. <rsrvdd/>
  74. <rsrvdate/>
  75. <excuroomgrpcdid>치료,투약실</excuroomgrpcdid>
  76. <srchpid/>
  77. <srchioflag/>
  78. <srchionm/>
  79. </data>
  80. <data2>
  81. <srchcond/>
  82. <pid/>
  83. </data2>
  84. </send>
  85. <hidden>
  86. <calendar>
  87. <year/>
  88. <month/>
  89. </calendar>
  90. </hidden>
  91. <init>
  92. <curerprescondlist>
  93. <rsrvcalendar/>
  94. </curerprescondlist>
  95. </init>
  96. </root>
  97. </instance>
  98. <script type="javascript" ev:event="xforms-ready">
  99. <![CDATA[
  100. // model.removeNodeset("/root/main/info/item");
  101. // model.removeNodeset("/root/main/curersrvinfo/item");
  102. model.removenode("/root/main/curersrvlist");
  103. // 부서코드 설정
  104. aezfSetSuppDeptcd();
  105. // 진료과/진료의 조회
  106. submit("TRPMOCOM01", false);
  107. var paminfo = getGlobalVariable("paminfo");
  108. if (paminfo != "") {
  109. model.removenode("/root/temp/paminfo");
  110. model.makeNode("/root/temp/paminfo");
  111. setCSVToNode("/root/temp/paminfo", paminfo);
  112. //상단 정보를 이용하여 프로그램 수행
  113. var pid = model.getValue("/root/temp/paminfo" + "/list/pid");
  114. var orddeptcd = model.getValue("/root/temp/paminfo" + "/list/orddeptcd");
  115. var wardcd = model.getValue("/root/temp/paminfo" + "/list/wardcd");
  116. var orddrid = model.getValue("/root/temp/paminfo" + "/list/orddrid");
  117. var hngnm = model.getValue("/root/temp/paminfo" + "/list/hngnm");
  118. var rrgstno1 = model.getValue("/root/temp/paminfo" + "/list/rrgstno1");
  119. var rrgstno2 = model.getValue("/root/temp/paminfo" + "/list/rrgstno2");
  120. var sex = model.getValue("/root/temp/paminfo" + "/list/sex");
  121. var age = model.getValue("/root/temp/paminfo" + "/list/age");
  122. model.setValue("/root/send/data/srchpid", pid);
  123. submit("TRAEA04501");
  124. pid = model.getValue("/root/main/curersrvinfo/item/pid");
  125. btn_rsrv.disabled = false;
  126. if (pid != "") {
  127. var flag = model.getValue("/root/main/curersrvinfo/item/flag");
  128. var srchorddeptcd = model.getValue("/root/main/curersrvinfo/item/orddeptcd");
  129. if (flag == "I") {
  130. if (srchorddeptcd == "") {
  131. model.setValue("/root/main/curersrvinfo/item/orddeptcd", orddeptcd);
  132. model.setValue("/root/main/curersrvinfo/item/orddrid", orddrid);
  133. } else {
  134. orddeptcd = srchorddeptcd;
  135. }
  136. cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp='"+ orddeptcd + "']";
  137. btn_can.disabled = true;
  138. } else {
  139. btn_can.disabled = false;
  140. }
  141. }
  142. }
  143. model.setValue("/root/send/data/srchioflag", "I");
  144. //model.setValue("/root/send/data/srchionm", "[입원+대기/입원예정]"); 20160609 필요없어 막음, 권영애
  145. initCalendar();
  146. setCurrentDate();
  147. getRsrvPossTm(grd_calendar);
  148. model.refresh();
  149. ]]>
  150. </script>
  151. <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
  152. <submission id="TRMMO02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
  153. <submission id="TRAEA01416" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvposstmlist"/>
  154. <submission id="TRAEA03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/calendarinfo"/>
  155. <submission id="TRAEA02011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
  156. <submission id="TRAEA04501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/curersrvinfo"/>
  157. <submission id="TRAEA04502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/curersrvlist"/>
  158. <submission id="TRAEA04503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
  159. <submission id="TXAEA04501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/curersrvinfo/item" replace="instance" resultref="/root/main/curersrvinfo"/>
  160. </model>
  161. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  162. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  163. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  164. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  165. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  166. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  167. <script type="javascript">
  168. <![CDATA[
  169. function initCalendar() {
  170. var curDate = getCurrentDate().toDate();
  171. var curersrvdd = model.getValue("/root/main/curersrvinfo/item/curersrvdd");
  172. if (curersrvdd != "") {
  173. curDate = curersrvdd.toDate();
  174. }
  175. model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
  176. model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
  177. model.refresh();
  178. setCalendar(curDate);
  179. }
  180. function setCalendar(dateObj) {
  181. model.removenode("/root/main/curersrvlist");
  182. //서버로 자료 요청
  183. if ( fGetHospitalCalendar() != true ) {
  184. messageBox("병원일정 데이터를 가져올 수", "I004");
  185. }
  186. // 그리드 초기화
  187. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  188. dateObj.setDate(1);
  189. var startDay = dateObj.getDay();
  190. var days = dateObj.getMonthDay();
  191. var rows = Math.ceil( ( startDay + days ) / 7 );
  192. for ( var i = 0; i < rows; i++ ) {
  193. grd_calendar.addRow(false);
  194. }
  195. grd_calendar.rebuild();
  196. grd_calendar.rebuildStyle();
  197. var rowIndex = grd_calendar.fixedRows;
  198. var colIndex = startDay;
  199. var dutflag = '';
  200. for ( var i = 1; i <= days; i++ ) {
  201. //write date
  202. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  203. grd_calendar.cellStyle("font-weight", rowIndex, colIndex) = "bold";
  204. //write memo
  205. grd_calendar.valueMatrix(rowIndex , colIndex + 7) = "0/0";
  206. dutflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/dutflag");
  207. if( dutflag == '8' ){ //'0' 평일, '4' 토요일, '8' 휴일
  208. fSetTextColor(rowIndex, colIndex, '#ff0000');
  209. }
  210. colIndex++;
  211. if ( colIndex == 7 ) {
  212. colIndex = 0;
  213. rowIndex++;
  214. }
  215. }
  216. model.setValue("/root/send/data/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
  217. setRsrvPresCondByMonth(dateObj);
  218. }
  219. /* @group : 예약
  220. * @ver :
  221. * @by :
  222. * @-----------------------------------
  223. * @type : function
  224. * @access : public
  225. * @desc : 달력 폰트 색상을 변경한다.
  226. */
  227. function fSetTextColor(calRow, calCol, bgColor) {
  228. if ( calCol < 7 ) {
  229. grd_calendar.cellStyle("color", calRow, calCol) = bgColor;
  230. grd_calendar.cellStyle("color", calRow, calCol + 7) = bgColor;
  231. } else {
  232. grd_calendar.cellStyle("color", calRow, calCol) = bgColor;
  233. grd_calendar.cellStyle("color", calRow, calCol - 7) = bgColor;
  234. }
  235. }
  236. function setRsrvPresCondByMonth(dateObj) {
  237. //submit("TRAEA02011");
  238. submit("TRAEA04503");
  239. var isMonth = model.getValue("/root/hidden/calendar/month");
  240. var isYear = model.getValue("/root/hidden/calendar/year");
  241. var startDay = dateObj.getDay();
  242. for (var i = 1; i < grd_temp.rows; i++) {
  243. var dd = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/rsrvdd");
  244. var colidx = dd.toDate().getDay();
  245. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  246. var srchioflag = model.getValue("/root/send/data/srchioflag");
  247. if (srchioflag == "I") {
  248. grd_calendar.valueMatrix(rowidx, colidx+7) = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") + "/" + model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max") ;
  249. } else {
  250. grd_calendar.valueMatrix(rowidx, colidx+7) = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max") ;
  251. }
  252. }
  253. }
  254. function setCurrentDate() {
  255. var curDate = getCurrentDate().substr(6,2); //오늘날짜
  256. var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  257. var curersrvdd = model.getValue("/root/main/curersrvinfo/item/curersrvdd");
  258. if (curersrvdd != "") {
  259. curDate = curersrvdd.substr(6,2);
  260. curWeek = curersrvdd.toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  261. }
  262. if (curDate <10) {
  263. curDate= curDate.substr(1,1);
  264. }
  265. if (curWeek == "sun") {
  266. model.makeValue("/root/hidden/grdcellcolor/calcol",0);
  267. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",0);
  268. } else if (curWeek == "mon") {
  269. model.makeValue("/root/hidden/grdcellcolor/calcol",1);
  270. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",1);
  271. } else if (curWeek == "tue") {
  272. model.makeValue("/root/hidden/grdcellcolor/calcol",2);
  273. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",2);
  274. } else if (curWeek == "wed") {
  275. model.makeValue("/root/hidden/grdcellcolor/calcol",3);
  276. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",3);
  277. } else if (curWeek == "thu") {
  278. model.makeValue("/root/hidden/grdcellcolor/calcol",4);
  279. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",4);
  280. } else if (curWeek == "fri") {
  281. model.makeValue("/root/hidden/grdcellcolor/calcol",5);
  282. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",5);
  283. } else if (curWeek == "sat") {
  284. model.makeValue("/root/hidden/grdcellcolor/calcol",6);
  285. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",6);
  286. }
  287. for (var i = 0 ; i <grd_calendar.rows; i++ ) {
  288. if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
  289. model.makeValue("/root/hidden/grdcellcolor/calrow",i);
  290. model.makeValue("/root/hidden/grdcellcolor/bfcalrow",i);
  291. }
  292. }
  293. model.makeValue("/root/hidden/grdcellcolor/color",1);
  294. setCellColor(grd_calendar);
  295. }
  296. function setCellColor(gridObj) {
  297. var calRow = 0; //현재선택
  298. var calCol = 0; //현재선택
  299. var bfcalRow = 0; //전에 선택
  300. var bfcalCol = 0; //전에 선택
  301. var white = 1; //#ffffff
  302. var green = 2; //#c4e693
  303. calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
  304. calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
  305. bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
  306. bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
  307. // 1. 원래 색으로 돌려놓기
  308. if (model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
  309. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  310. if ( bfcalCol < 7 ) {
  311. bfcalCol += 7;
  312. } else {
  313. bfcalCol -= 7;
  314. }
  315. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  316. } else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
  317. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  318. if ( bfcalCol < 7 ) {
  319. bfcalCol += 7;
  320. } else {
  321. bfcalCol -= 7;
  322. }
  323. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  324. }
  325. // 2. bf 인스턴스에 선택한 원래 셀 담아두기
  326. if (gridObj.cellStyle("background-color", calRow, calCol) == "white" ) {
  327. model.makeValue("/root/hidden/grdcellcolor/color", "1");
  328. }
  329. if (gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
  330. model.makeValue("/root/hidden/grdcellcolor/color", "2");
  331. }
  332. model.makeValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
  333. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
  334. // 3. 선택한 셀에 보라색 주기
  335. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  336. if ( calCol < 7 ) {
  337. calCol += 7;
  338. } else {
  339. calCol -= 7;
  340. }
  341. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  342. }
  343. /* @group :
  344. * @ver :
  345. * @by :
  346. * @-----------------------------------
  347. * @type : function
  348. * @access : public
  349. * @desc :
  350. */
  351. function getRsrvPossTm(gridObj) {
  352. var calRow = model.getValue("/root/hidden/grdcellcolor/calrow");
  353. var calCol = model.getValue("/root/hidden/grdcellcolor/calcol");
  354. if ( calCol >= 7 ) {
  355. calCol -= 7;
  356. }
  357. var yyyy = model.getValue("/root/hidden/calendar/year");
  358. var mm = model.getValue("/root/hidden/calendar/month");
  359. var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + gridObj.colAttribute(calCol, "ref"));
  360. if (getStringLength(dd) == 1) {
  361. dd = "0" + dd;
  362. }
  363. model.setValue("/root/send/data/rsrvdd", yyyy + mm + dd);
  364. // model.setValue("/root/send/data/rsrvdate",model.getValue("/root/send/data/rsrvdd"));
  365. // model.makeValue("/root/send/data/grd_info/grid_data/prcpgenrflag", "");
  366. submit("TRAEA04502");
  367. }
  368. /* @group : 예약
  369. * @ver :
  370. * @by :
  371. * @-----------------------------------
  372. * @type : function
  373. * @access : public
  374. * @desc : 병원 기준의 달력 정보 조회
  375. */
  376. function fGetHospitalCalendar(){
  377. var dd = (model.getValue("/root/hidden/calendar/year")).concat(model.getValue("/root/hidden/calendar/month"));
  378. model.makeValue("/root/send/data3/date",dd);
  379. model.makeValue("/root/send/data3/suppdeptcd",model.getValue("/root/send/globalinstance/instance1"));
  380. if (submit("TRAEA03203") == true) return true;
  381. else return false;
  382. }
  383. /* @group : 예약 가용일 체크
  384. * @ver :
  385. * @by :
  386. * @-----------------------------------
  387. * @type : function
  388. * @access : public
  389. * @desc :
  390. */
  391. function fChkRsrvDD(rsrvdd){
  392. var rowCnt = getNodesetCount("/root/init/curerprescondlist/rsrvcalendar");
  393. var possYn = false;
  394. var chkrsrvdd = "";
  395. for (i=1; i<=rowCnt; i++) {
  396. chkrsrvdd = model.getValue("/root/init/curerprescondlist/rsrvcalendar[ " + i + "]/rsrvdd");
  397. if (rsrvdd == chkrsrvdd) {
  398. possYn = true;
  399. }
  400. }
  401. return possYn;
  402. }
  403. /* @group : 환자정보조회
  404. * @ver :
  405. * @by :
  406. * @-----------------------------------
  407. * @type : function
  408. * @access : public
  409. * @desc :
  410. */
  411. function fGetInfo(){
  412. var pid = model.getValue("/root/main/curersrvinfo/item/pid");
  413. model.setValue("/root/send/data/srchpid", pid);
  414. submit("TRAEA04501");
  415. var flag = model.getValue("/root/main/curersrvinfo/item/flag");
  416. if (flag == "I") {
  417. btn_can.disabled = true;
  418. } else {
  419. btn_can.disabled = false;
  420. }
  421. var orddeptcd = model.getValue("/root/main/curersrvinfo/item/orddeptcd");
  422. cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp='"+ orddeptcd + "']";
  423. model.refresh();
  424. }
  425. //달력을 클릭(선택) 했을 때
  426. function fClickOnCalendar(){
  427. var calRow = grd_calendar.row;
  428. var calCol = grd_calendar.col;
  429. calCol = calCol % 7;
  430. var isDay = grd_calendar.valueMatrix(calRow, calCol);
  431. if( isDay != "" ){
  432. if( isDay.length == 1 ) isDay = "0" + isDay;
  433. var curersrvdd = ( (model.getValue("/root/hidden/calendar/year")).concat(model.getValue("/root/hidden/calendar/month")) ).concat(isDay);
  434. model.setValue("/root/main/curersrvinfo/item/curersrvdd", curersrvdd);
  435. model.refresh();
  436. }
  437. }
  438. function fRefresh(){
  439. initCalendar();
  440. setCurrentDate();
  441. getRsrvPossTm(grd_calendar);
  442. }
  443. /* @group : 예약 인원 달력에 표시
  444. * @ver :
  445. * @by :
  446. * @-----------------------------------
  447. * @type : function
  448. * @access : public
  449. * @desc :
  450. */
  451. function fGetCalendar(isMonth){
  452. model.setValue("/root/hidden/calendar/month", isMonth);
  453. var isYear = model.getValue("/root/hidden/calendar/year");
  454. var isDate = (isYear+isMonth+1).toDate().getAddDate(0,'M');
  455. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  456. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  457. model.refresh();
  458. setCalendar(isDate);
  459. }
  460. ]]>
  461. </script>
  462. </xhtml:head>
  463. <xhtml:body pagewidth="1025" pageheight="600" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  464. <group id="group2" scroll="auto" style="left:2px; top:203px; width:444px; height:66px; ">
  465. <shape id="rectangle2" class="calendar_header" appearance="rectangle" style="left:0px; top:2px; width:444px; height:62px; "/>
  466. <button id="button31" class="icon_next_year" style="left:315px; top:10px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_y.gif; ">
  467. <caption/>
  468. <script type="javascript" ev:event="DOMActivate">
  469. <![CDATA[
  470. var isMonth = model.getValue("/root/hidden/calendar/month");
  471. var isYear = model.getValue("/root/hidden/calendar/year");
  472. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  473. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  474. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  475. model.refresh();
  476. setCalendar(isDate);
  477. // getCurerPresCond();
  478. ]]>
  479. </script>
  480. </button>
  481. <button id="button33" class="icon_pre_month" style="left:160px; top:10px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_m.gif; ">
  482. <caption/>
  483. <script type="javascript" ev:event="DOMActivate">
  484. <![CDATA[
  485. var isMonth = model.getValue("/root/hidden/calendar/month");
  486. var isYear = model.getValue("/root/hidden/calendar/year");
  487. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  488. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  489. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  490. model.refresh();
  491. setCalendar(isDate);
  492. // getCurerPresCond();
  493. ]]>
  494. </script>
  495. </button>
  496. <button id="button35" class="icon_next_month" style="left:291px; top:10px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_m.gif; ">
  497. <caption/>
  498. <script type="javascript" ev:event="DOMActivate">
  499. <![CDATA[
  500. var isMonth = model.getValue("/root/hidden/calendar/month");
  501. var isYear = model.getValue("/root/hidden/calendar/year");
  502. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  503. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  504. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  505. model.refresh();
  506. setCalendar(isDate);
  507. ]]>
  508. </script>
  509. </button>
  510. <output id="output1" ref="/root/hidden/calendar/year" class="calendar_output" style="left:193px; top:9px; width:30px; height:19px; "/>
  511. <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:245px; top:9px; width:20px; height:19px; "/>
  512. <caption id="caption24" class="calendar_output" style="left:223px; top:9px; width:20px; height:19px; ">년</caption>
  513. <caption id="caption25" class="calendar_output" style="left:265px; top:9px; width:20px; height:19px; ">월</caption>
  514. <button id="button36" class="icon_pre_year" style="left:143px; top:10px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_y.gif; ">
  515. <caption/>
  516. <script type="javascript" ev:event="DOMActivate">
  517. <![CDATA[
  518. var isMonth = model.getValue("/root/hidden/calendar/month");
  519. var isYear = model.getValue("/root/hidden/calendar/year");
  520. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  521. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  522. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  523. model.refresh();
  524. setCalendar(isDate);
  525. // getCurerPresCond();
  526. ]]>
  527. </script>
  528. </button>
  529. <button id="button18" class="icon_month" style="left:285px; top:32px; width:27px; height:27px; ">
  530. <caption>9</caption>
  531. <script type="javascript" ev:event="DOMActivate">
  532. <![CDATA[
  533. if(opt_month.value!== "09") {
  534. fGetCalendar("09");
  535. }
  536. ]]>
  537. </script>
  538. </button>
  539. <button id="button19" class="icon_month" style="left:315px; top:32px; width:27px; height:27px; ">
  540. <caption>10</caption>
  541. <script type="javascript" ev:event="DOMActivate">
  542. <![CDATA[
  543. if(opt_month.value!== "10") {
  544. fGetCalendar("10");
  545. }
  546. ]]>
  547. </script>
  548. </button>
  549. <button id="button7" class="icon_month" style="left:45px; top:32px; width:27px; height:27px; ">
  550. <caption>1</caption>
  551. <script type="javascript" ev:event="DOMActivate">
  552. <![CDATA[
  553. if(opt_month.value!== "01") {
  554. fGetCalendar("01");
  555. }
  556. ]]>
  557. </script>
  558. </button>
  559. <button id="button8" class="icon_month" style="left:75px; top:32px; width:27px; height:27px; ">
  560. <caption>2</caption>
  561. <script type="javascript" ev:event="DOMActivate">
  562. <![CDATA[
  563. if(opt_month.value!== "02") {
  564. fGetCalendar("02");
  565. }
  566. ]]>
  567. </script>
  568. </button>
  569. <button id="button9" class="icon_month" style="left:105px; top:32px; width:27px; height:27px; ">
  570. <caption>3</caption>
  571. <script type="javascript" ev:event="DOMActivate">
  572. <![CDATA[
  573. if(opt_month.value!== "03") {
  574. fGetCalendar("03");
  575. }
  576. ]]>
  577. </script>
  578. </button>
  579. <button id="button20" class="icon_month" style="left:345px; top:32px; width:27px; height:27px; ">
  580. <caption>11</caption>
  581. <script type="javascript" ev:event="DOMActivate">
  582. <![CDATA[
  583. if(opt_month.value!== "11") {
  584. fGetCalendar("11");
  585. }
  586. ]]>
  587. </script>
  588. </button>
  589. <button id="button21" class="icon_month" style="left:375px; top:32px; width:27px; height:27px; ">
  590. <caption>12</caption>
  591. <script type="javascript" ev:event="DOMActivate">
  592. <![CDATA[
  593. if(opt_month.value!== "12") {
  594. fGetCalendar("12");
  595. }
  596. ]]>
  597. </script>
  598. </button>
  599. <button id="button10" class="icon_month" style="left:135px; top:32px; width:27px; height:27px; ">
  600. <caption>4</caption>
  601. <script type="javascript" ev:event="DOMActivate">
  602. <![CDATA[
  603. if(opt_month.value!== "04") {
  604. fGetCalendar("04");
  605. }
  606. ]]>
  607. </script>
  608. </button>
  609. <button id="button11" class="icon_month" style="left:165px; top:32px; width:27px; height:27px; ">
  610. <caption>5</caption>
  611. <script type="javascript" ev:event="DOMActivate">
  612. <![CDATA[
  613. if(opt_month.value!== "05") {
  614. fGetCalendar("05");
  615. }
  616. ]]>
  617. </script>
  618. </button>
  619. <button id="button12" class="icon_month" style="left:195px; top:32px; width:27px; height:27px; ">
  620. <caption>6</caption>
  621. <script type="javascript" ev:event="DOMActivate">
  622. <![CDATA[
  623. if(opt_month.value!== "06") {
  624. fGetCalendar("06");
  625. }
  626. ]]>
  627. </script>
  628. </button>
  629. <button id="button13" class="icon_month" style="left:225px; top:32px; width:27px; height:27px; ">
  630. <caption>7</caption>
  631. <script type="javascript" ev:event="DOMActivate">
  632. <![CDATA[
  633. if(opt_month.value!== "07") {
  634. fGetCalendar("07");
  635. }
  636. ]]>
  637. </script>
  638. </button>
  639. <button id="button14" class="icon_month" style="left:255px; top:32px; width:27px; height:27px; ">
  640. <caption>8</caption>
  641. <script type="javascript" ev:event="DOMActivate">
  642. <![CDATA[
  643. if(opt_month.value!== "08") {
  644. fGetCalendar("08");
  645. }
  646. ]]>
  647. </script>
  648. </button>
  649. </group>
  650. <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="63, 63, 63, 63, 63, 63, 63" extendlastcol="noscroll" focuscolor="transparent" rowsep="|" mergecellsfixedrows="bycolrec" style="left:2px; top:268px; width:444px; height:292px; ">
  651. <row>
  652. <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
  653. <col ref="mon" style="border-bottom-width:0px; "/>
  654. <col ref="tue" style="border-bottom-width:0px; "/>
  655. <col ref="wed" style="border-bottom-width:0px; "/>
  656. <col ref="thu" style="border-bottom-width:0px; "/>
  657. <col ref="fri" style="border-bottom-width:0px; "/>
  658. <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
  659. </row>
  660. <row>
  661. <col class="color_sun" ref="sun_memo" style="border-top-width:0px; "/>
  662. <col ref="mon_memo" style="border-top-width:0px; "/>
  663. <col ref="tue_memo" style="border-top-width:0px; "/>
  664. <col ref="wed_memo" style="border-top-width:0px; "/>
  665. <col ref="thu_memo" style="border-top-width:0px; "/>
  666. <col ref="fri_memo" style="border-top-width:0px; "/>
  667. <col class="color_sat" ref="sat_memo" style="border-top-width:0px; "/>
  668. </row>
  669. <script type="javascript" ev:event="onclick">
  670. <![CDATA[
  671. var excuroomgrpcdid = "치료,투약실";
  672. model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
  673. model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
  674. setCellColor(grd_calendar);
  675. getRsrvPossTm(grd_calendar);
  676. fClickOnCalendar();
  677. ]]>
  678. </script>
  679. </multilinegrid>
  680. <datagrid id="grd_curersrvlist" nodeset="/root/main/curersrvlist/item" caption="치료일자^등록번호^성명^상태^진료과^진료의^치료&#xA;확정유무^참고사항^용량^병실|치료일자^등록번호^성명^상태^진료과^진료의^치료&#xA;확정유무^참고사항^용량^병실" colsep="^" colwidth="67, 55, 49, 39, 74, 76, 52, 106, 40, 40" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:450px; top:205px; width:555px; height:355px; ">
  681. <col ref="curersrvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  682. <col ref="pid"/>
  683. <col ref="hngnm"/>
  684. <col disabled="true" ref="statcd" type="combo" style="text-align:center; ">
  685. <choices>
  686. <item>
  687. <label>입원</label>
  688. <value>I</value>
  689. </item>
  690. <item>
  691. <label>외래</label>
  692. <value>O</value>
  693. </item>
  694. </choices>
  695. </col>
  696. <col disabled="true" ref="orddeptcd" type="combo">
  697. <choices>
  698. <itemset nodeset="/root/init/orddeptcd">
  699. <label ref="nm"/>
  700. <value ref="cd"/>
  701. </itemset>
  702. </choices>
  703. </col>
  704. <col disabled="true" ref="orddrid" type="combo">
  705. <choices>
  706. <itemset nodeset="/root/init/orddrid">
  707. <label ref="nm"/>
  708. <value ref="cd"/>
  709. </itemset>
  710. </choices>
  711. </col>
  712. <col disabled="true" ref="curecfrmyn" type="combo" style="text-align:center; ">
  713. <choices>
  714. <item>
  715. <label>확정</label>
  716. <value>Y</value>
  717. </item>
  718. <item>
  719. <label>미확정</label>
  720. <value>N</value>
  721. </item>
  722. <item>
  723. <label>취소</label>
  724. <value>C</value>
  725. </item>
  726. </choices>
  727. </col>
  728. <col ref="remfact" style="text-align:left; "/>
  729. <col ref="drugqty" style="text-align:right; "/>
  730. <col ref="roomcd" style="left:585px; top:43px; width:38px; height:23px; "/>
  731. <script type="javascript" ev:event="ondblclick">
  732. <![CDATA[
  733. if ( grd_curersrvlist.row == 0 ) return;
  734. if ( grd_curersrvlist.isCell(event.target) && grd_curersrvlist.row >= grd_curersrvlist.fixedRows ) {
  735. var colidx = grd_curersrvlist.col;
  736. var rowidx = grd_curersrvlist.row;
  737. rowidx = rowidx - 1;
  738. copyNodesetType("/root/main/curersrvinfo/item", "root/main/curersrvlist/item[" + rowidx + "]", "replace");
  739. btn_can.disabled = false;
  740. model.refresh();
  741. }
  742. ]]>
  743. </script>
  744. </datagrid>
  745. <button id="btn_rsrv" class="btn2_letter2" disabled="false" style="left:360px; top:180px; width:42px; height:19px; ">
  746. <caption>예약</caption>
  747. <script type="javascript" ev:event="DOMActivate">
  748. <![CDATA[
  749. var curDate = getCurrentDate().substr(0,8); //오늘날짜
  750. var rsrvdd = model.getValue("/root/main/curersrvinfo/item/curersrvdd"); //선택일자
  751. var curTm = getCurrentTime().substr(0,4); //
  752. var srchrsrvtm = rsrvdd + "0000";
  753. var statcd = model.getValue("/root/main/curersrvinfo/item/statcd");
  754. if (statcd == "") {
  755. messageBox("상태를 선택해 주십시오.","I999");
  756. return "0";
  757. }
  758. //당일예약
  759. if(curDate == rsrvdd) {
  760. srchrsrvtm = rsrvdd + curTm;
  761. } else if (curDate > rsrvdd) { //당일 이전 예약
  762. messageBox("예약일자가 과거일자", "E008");
  763. return;
  764. }
  765. model.makeValue("/root/main/curersrvinfo/item/srchrsrvtm", srchrsrvtm);
  766. model.makeValue("/root/main/curersrvinfo/item/curersrvdd", rsrvdd);
  767. var flag = model.getValue("/root/main/curersrvinfo/item/flag");
  768. if (flag == "U") {
  769. var message = messageBox( "\r\n신규로 스케줄을 등록","S001","\r\n예약(수정)를 취소하시려면 취소를 누르십시오.");
  770. if ( message == 6 ) { //예 = 신규
  771. model.setValue("/root/main/curersrvinfo/item/flag","I");
  772. model.setValue("/root/main/curersrvinfo/item/drugqty","0");
  773. model.setValue("/root/main/curersrvinfo/item/curecfrmyn","N");
  774. model.setValue("/root/main/curersrvinfo/item/wardcd","-");
  775. model.setValue("/root/main/curersrvinfo/item/roomcd","-");
  776. if (submit("TXAEA04501")) {
  777. initCalendar();
  778. setCellColor(grd_calendar);
  779. getRsrvPossTm(grd_calendar);
  780. model.resetInstanceNode("/root/main/curersrvinfo/item");
  781. model.refresh();
  782. }
  783. } else if ( message == 7 ) { // 아니오 = 수정
  784. if (submit("TXAEA04501")) {
  785. initCalendar();
  786. setCellColor(grd_calendar);
  787. getRsrvPossTm(grd_calendar);
  788. model.resetInstanceNode("/root/main/curersrvinfo/item");
  789. model.refresh();
  790. }
  791. }
  792. } else {
  793. if ( messageBox("예약을 ","Q014")==6 ) {
  794. if (submit("TXAEA04501")) {
  795. initCalendar();
  796. setCellColor(grd_calendar);
  797. getRsrvPossTm(grd_calendar);
  798. model.resetInstanceNode("/root/main/curersrvinfo/item");
  799. model.refresh();
  800. }
  801. }
  802. }
  803. // if ( messageBox("예약을 ","Q014")==6 ) {
  804. // if (submit("TXAEA04501")) {
  805. // initCalendar();
  806. // setCellColor(grd_calendar);
  807. // getRsrvPossTm(grd_calendar);
  808. // model.resetInstanceNode("/root/main/curersrvinfo/item");
  809. // model.refresh();
  810. // messageBox("예약이", "I002");
  811. // }
  812. // }
  813. ]]>
  814. </script>
  815. </button>
  816. <caption id="caption5" class="search_no_b" style="left:653px; top:27px; width:12px; height:17px; ">~</caption>
  817. <input id="ipt_mpphon" ref="/root/main/curersrvinfo/item/cntctel" class="input_default" style="left:630px; top:122px; width:120px; height:19px; "/>
  818. <line id="line9" class="line_1" style="x1:5px; y1:35px; x2:1009px; y2:35px; "/>
  819. <caption id="caption61" class="cell_1" style="left:507px; top:120px; width:120px; height:23px; vertical-align:middle; ">연락처</caption>
  820. <caption id="caption50" class="cell_1" style="left:507px; top:40px; width:120px; height:23px; vertical-align:middle; ">주민등록번호</caption>
  821. <caption id="caption62" class="cell_1" style="left:507px; top:66px; width:120px; height:23px; vertical-align:middle; ">성별/나이</caption>
  822. <input id="ipt_rrgstno1" ref="/root/main/curersrvinfo/item/rrgstno1" class="output_fix" disabled="true" maxlength="6" format="999999" style="left:630px; top:41px; width:72px; height:19px; "/>
  823. <input id="ipt_rrgstno2" ref="/root/main/curersrvinfo/item/rrgstno2" class="output_fix" disabled="true" style="left:721px; top:41px; width:72px; height:19px; "/>
  824. <input id="ipt_pid" ref="/root/main/curersrvinfo/item/pid" class="input_default" navindex="1" style="left:128px; top:41px; width:102px; height:19px; ">
  825. <script type="javascript" ev:event="onkeypress">
  826. <![CDATA[
  827. if(event.keyCode == "13"){
  828. setInputNodeCurText();
  829. if (ipt_pid.currentText != "") {
  830. fGetInfo(); //환자정보 조회
  831. }
  832. }
  833. ]]>
  834. </script>
  835. </input>
  836. <caption id="caption41" class="tit_2" style="left:5px; top:20px; width:120px; height:13px; ">기본정보</caption>
  837. <caption id="caption20" class="search_no_b" style="left:706px; top:42px; width:12px; height:17px; ">-</caption>
  838. <caption id="caption54" class="cell_1" style="left:256px; top:40px; width:120px; height:23px; vertical-align:middle; ">성명</caption>
  839. <input id="ipt_age" ref="/root/main/curersrvinfo/item/age" class="output_fix" disabled="true" maxlength="3" format="999" style="left:664px; top:69px; width:40px; height:19px; "/>
  840. <input id="ipt_hngnm" ref="/root/main/curersrvinfo/item/hngnm" class="output_fix" disabled="true" style="left:379px; top:41px; width:120px; height:19px; "/>
  841. <caption id="caption48" class="cell_1" style="left:5px; top:40px; width:120px; height:23px; vertical-align:middle; ">등록번호</caption>
  842. <caption id="caption49" class="cell_1" style="left:5px; top:66px; width:120px; height:23px; vertical-align:middle; ">집전화번호</caption>
  843. <output id="ipt_cntctel" ref="/root/main/curersrvinfo/item/hometel" class="output_fix" disabled="true" style="left:128px; top:69px; width:120px; height:19px; "/>
  844. <line id="line1" class="line_1" style="x1:2px; y1:200px; x2:446px; y2:200px; "/>
  845. <caption id="caption1" class="tit_2" style="left:5px; top:185px; width:120px; height:13px; ">예약현황</caption>
  846. <button id="btn_can" class="btn2_letter2" disabled="true" style="left:404px; top:180px; width:42px; height:19px; ">
  847. <caption>취소</caption>
  848. <script type="javascript" ev:event="DOMActivate">
  849. <![CDATA[
  850. model.makeValue("/root/main/curersrvinfo/item/flag", "D");
  851. var curersrvdd = model.getValue("/root/main/curersrvinfo/item/curersrvdd");
  852. if ( messageBox("예약을 ","Q007")==6 ) {
  853. if (submit("TXAEA04501")) {
  854. model.makeValue("/root/main/curersrvinfo/item/curersrvdd", curersrvdd);
  855. initCalendar();
  856. setCellColor(grd_calendar);
  857. getRsrvPossTm(grd_calendar);
  858. // messageBox("예약 취소가", "I002");
  859. model.resetInstanceNode("/root/main/curersrvinfo/item");
  860. model.refresh();
  861. }
  862. }
  863. ]]>
  864. </script>
  865. </button>
  866. <caption id="caption3" class="tit_2" style="left:450px; top:185px; width:120px; height:13px; ">예약정보</caption>
  867. <line id="line2" class="line_1" style="x1:448px; y1:200px; x2:1008px; y2:200px; "/>
  868. <line id="line6" class="line_3" style="x1:5px; y1:90px; x2:1009px; y2:90px; "/>
  869. <line id="line3" class="line_2" style="x1:5px; y1:64px; x2:1004px; y2:64px; "/>
  870. <group id="group1" style="left:0px; top:565px; width:1005px; height:30px; ">
  871. <button id="btn_close" class="btn4_letter2" visibility="visible" style="left:940px; top:5px; width:56px; height:22px; ">
  872. <caption>닫기</caption>
  873. <script type="javascript" ev:event="DOMActivate">
  874. <![CDATA[
  875. window.close();
  876. ]]>
  877. </script>
  878. </button>
  879. </group>
  880. <line id="line4" class="line_1" style="x1:5px; y1:115px; x2:1009px; y2:115px; "/>
  881. <caption id="caption2" class="tit_2" style="left:5px; top:100px; width:120px; height:13px; ">예약정보</caption>
  882. <caption id="caption37" class="cell_1" style="left:5px; top:120px; width:120px; height:23px; text-align:left; vertical-align:middle; ">진료과</caption>
  883. <select1 id="cmb_orddept" ref="/root/main/curersrvinfo/item/orddeptcd" appearance="minimal" style="left:128px; top:122px; width:120px; height:19px; ">
  884. <choices>
  885. <itemset nodeset="/root/init/orddeptcd">
  886. <label ref="nm"/>
  887. <value ref="cd"/>
  888. </itemset>
  889. </choices>
  890. <script type="javascript" ev:event="xforms-value-changed">
  891. <![CDATA[
  892. var orddeptcd = model.getValue("/root/main/curersrvinfo/item/orddeptcd");
  893. cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp='"+ orddeptcd + "']";
  894. model.refresh();
  895. ]]>
  896. </script>
  897. </select1>
  898. <caption id="caption16" class="cell_1" style="left:255px; top:120px; width:120px; height:23px; text-align:left; vertical-align:middle; ">진료의</caption>
  899. <select1 id="cmb_orddr" ref="/root/main/curersrvinfo/item/orddrid" appearance="minimal" style="left:379px; top:122px; width:120px; height:19px; ">
  900. <choices>
  901. <itemset nodeset="/root/init/orddrid">
  902. <label ref="nm"/>
  903. <value ref="cd"/>
  904. </itemset>
  905. </choices>
  906. </select1>
  907. <caption id="caption38" class="cell_1" style="left:255px; top:146px; width:120px; height:23px; text-align:left; vertical-align:middle; ">참고사항</caption>
  908. <input id="input2" ref="/root/main/curersrvinfo/item/remfact" class="input_default" appearance="input" style="left:379px; top:149px; width:626px; height:19px; "/>
  909. <line id="line5" class="line_2" style="x1:5px; y1:144px; x2:1004px; y2:144px; "/>
  910. <line id="line7" class="line_3" style="x1:5px; y1:170px; x2:1009px; y2:170px; "/>
  911. <output id="opt_sex" ref="/root/main/curersrvinfo/item/sex" class="output_fix" appearance="output" style="left:630px; top:69px; width:30px; height:19px; "/>
  912. <button id="btn_getpatinfo" class="icon_search" style="left:233px; top:42px; width:16px; height:16px; ">
  913. <caption/>
  914. <script type="javascript" ev:event="DOMActivate">
  915. <![CDATA[
  916. model.setValue("/root/send/data2/srchcond", "2");
  917. model.setValue("/root/send/data2/pid", model.getValue("/root/main/curersrvinfo/item/pid"));
  918. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data2","/root/send");
  919. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  920. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  921. model.setValue("/root/main/curersrvinfo/item/pid", sPid);
  922. if (sPid != "") {
  923. fGetInfo();
  924. }
  925. model.refresh();
  926. ]]>
  927. </script>
  928. </button>
  929. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">치료예약스케줄관리</caption>
  930. <select1 id="combo3" ref="/root/main/curersrvinfo/item/statcd" appearance="minimal" style="left:880px; top:122px; width:123px; height:19px; ">
  931. <choices>
  932. <item>
  933. <label>입원</label>
  934. <value>I</value>
  935. </item>
  936. <item>
  937. <label>외래</label>
  938. <value>O</value>
  939. </item>
  940. </choices>
  941. </select1>
  942. <caption id="caption4" class="cell_1" style="left:757px; top:120px; width:120px; height:23px; text-align:left; vertical-align:middle; ">상태</caption>
  943. <caption id="caption7" class="cell_1" style="left:5px; top:146px; width:120px; height:23px; vertical-align:middle; ">치료일</caption>
  944. <output id="output3" ref="/root/main/curersrvinfo/item/curersrvdd" class="output_fix" format="yyyy-mm-dd" disabled="true" style="left:128px; top:149px; width:120px; height:19px; "/>
  945. <caption id="caption8" class="cell_1" style="left:256px; top:66px; width:120px; height:23px; vertical-align:middle; ">휴대전화번호</caption>
  946. <output id="output4" ref="/root/main/curersrvinfo/item/mpphontel" class="output_fix" disabled="true" style="left:379px; top:69px; width:120px; height:19px; "/>
  947. <button id="button1" class="btn2_letter8" style="left:897px; top:180px; width:108px; height:19px; ">
  948. <caption>치료예약상세정보</caption>
  949. <script type="javascript" ev:event="DOMActivate">
  950. <![CDATA[
  951. open("SMAEA04600", "","","", "SMAEA04600", "/root/main/curersrvinfo/item/pid","/root/hidden/pid");
  952. ]]>
  953. </script>
  954. </button>
  955. <datagrid id="grd_temp" nodeset="/root/init/curerprescondlist/rsrvcalendar" visibility="hidden" caption="일자(dd)^가용현황^max^caption3" colsep="^" colwidth="76, 62, 53" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:945px; top:20px; width:45px; height:40px; ">
  956. <col ref="rsrvdd"/>
  957. <col ref="count"/>
  958. <col ref="max"/>
  959. </datagrid>
  960. <select1 id="rdo_srchioflag" ref="/root/send/data/srchioflag" appearance="full" cols="2" overflow="visible" style="left:90px; top:183px; width:95px; height:15px; border-style:none; ">
  961. <choices>
  962. <item>
  963. <label>입원</label>
  964. <value>I</value>
  965. </item>
  966. <item>
  967. <label>외래</label>
  968. <value>O</value>
  969. </item>
  970. </choices>
  971. <script type="javascript" ev:event="xforms-value-changed">
  972. <![CDATA[
  973. var srchioflag = model.getValue("/root/send/data/srchioflag");
  974. if ( srchioflag == "I" ) {
  975. // model.setValue("/root/send/data/srchionm", "[입원+대기/입원예정]"); 20160609 필요없어 삭제, 권영애
  976. } else {
  977. model.setValue("/root/send/data/srchionm", "");
  978. }
  979. initCalendar();
  980. setCurrentDate();
  981. getRsrvPossTm(grd_calendar);
  982. ]]>
  983. </script>
  984. </select1>
  985. <output id="output5" ref="/root/send/data/srchionm" style="left:185px; top:182px; width:145px; height:19px; font-weight:bold; color:#0000ff; "/>
  986. </xhtml:body>
  987. </xhtml:html>