SMPMB02400_병원달력관리.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMPMB02400_병원달력관리.xrw
  4. * 설 명 : 병원일정을 관리한다.
  5. * 설 계 자 : 유정란
  6. * 작 성 자 : 유정란
  7. * 작 성 일 : 2007.12.24
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>병원달력관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <h_hsch>
  20. <hsch/>
  21. </h_hsch>
  22. </main>
  23. <send>
  24. <data1/>
  25. <data2/>
  26. <data3/>
  27. </send>
  28. <init/>
  29. <hidden>
  30. <year_q/>
  31. <month_q/>
  32. <year_c/>
  33. <month_c/>
  34. <session/>
  35. <rcv/>
  36. </hidden>
  37. </root>
  38. </instance>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. fGetUserInfosSampling();
  42. fReset();
  43. ]]>
  44. </script>
  45. <submission id="TRPMB02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/h_hsch"/>
  46. <submission id="TXPMB02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/rcv"/>
  47. </model>
  48. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  55. <script type="javascript">
  56. <![CDATA[
  57. var il_evnt = 0;
  58. var is_flag;
  59. function fGetUserInfosSampling()
  60. {
  61. var sUserInfosS = getUserInfos();
  62. sUserInfosS = sUserInfosS + "|";
  63. var UserInfosS_Array = sUserInfosS.split("|");
  64. var userid = UserInfosS_Array[0]; //사용자번호
  65. var usernm = UserInfosS_Array[1]; //사용자이름
  66. var posinstcd = UserInfosS_Array[2]; //소속기관코드
  67. var posinstnm = UserInfosS_Array[3]; //소속기관명
  68. var posdeptcd = UserInfosS_Array[4]; //소속부서코드
  69. var posdeptnm = UserInfosS_Array[5]; //소속부서명
  70. model.makeNode("/root/hidden/session/sess_userid");
  71. model.makeNode("/root/hidden/session/sess_usernm");
  72. model.makeNode("/root/hidden/session/sess_posinstcd");
  73. model.makeNode("/root/hidden/session/sess_posinstnm");
  74. model.makeNode("/root/hidden/session/sess_posdeptcd");
  75. model.makeNode("/root/hidden/session/sess_posdeptnm")
  76. if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
  77. if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "012";
  78. model.setValue("/root/hidden/session/sess_userid",userid);
  79. model.setValue("/root/hidden/session/sess_usernm",usernm);
  80. model.setValue("/root/hidden/session/sess_posinstcd",posinstcd);
  81. model.setValue("/root/hidden/session/sess_posinstnm",posinstnm);
  82. model.setValue("/root/hidden/session/sess_posdeptcd",posdeptcd);
  83. model.setValue("/root/hidden/session/sess_posdeptnm",posdeptnm);
  84. model.refresh();
  85. }
  86. function fReset()
  87. {
  88. il_evnt = 0;
  89. model.removeNodeset("/root/main/h_hsch/hsch");
  90. grd_hsch.rebuild();
  91. fInit();
  92. }
  93. function fInit()
  94. {
  95. today = new Date();
  96. var ls_today, ls_year, ls_month, ls_day;
  97. ls_year = (today.getYear()).toString();
  98. ls_month = (today.getMonth() + 1).toString();
  99. if ((ls_month.toString()).length == 1) ls_month = ("0".concat(ls_month.toString()));
  100. ls_day = (today.getDate()).toString();
  101. ls_today = ((ls_year.concat(ls_month)).concat(ls_day));
  102. var s_year = ls_today.substr(0,4);
  103. var s_month = ls_today.substr(4,2);
  104. model.setValue("/root/hidden/year_q",s_year);
  105. model.setValue("/root/hidden/year_c","-");
  106. model.setValue("/root/hidden/month_q",s_month);
  107. model.setValue("/root/hidden/month_c","-");
  108. model.refresh();
  109. }
  110. function fCalendarRef()
  111. {
  112. var year_q = model.getValue("/root/hidden/year_q");
  113. var month_q = model.getValue("/root/hidden/month_q");
  114. if (year_q == null || year_q == "" || year_q == " " || year_q == "-")
  115. {
  116. messageBox("조회 년도를 정확히 선택하십시요!","E999","");
  117. return false;
  118. }
  119. if (month_q == null || month_q == "" || month_q == " " || month_q == "-")
  120. {
  121. messageBox("조회 월을 정확히 선택하십시요!","E999","");
  122. return false;
  123. }
  124. model.removeNodeset("/root/main/h_hsch/hsch");
  125. model.removenode("/root/send/data1");
  126. model.removenode("/root/send/data2");
  127. model.removenode("/root/send/data3");
  128. model.makeNode("/root/send/data1");
  129. model.makeNode("/root/send/data2");
  130. model.makeNode("/root/send/data3");
  131. model.setValue("/root/send/data1",model.getValue("/root/hidden/year_q"));
  132. model.setValue("/root/send/data2",model.getValue("/root/hidden/month_q"));
  133. model.setValue("/root/send/data3",model.getValue("/root/hidden/session/sess_userid"));
  134. submit("TRPMB02401");
  135. grd_hsch.rebuild();
  136. }
  137. function fCreate()
  138. {
  139. var ll_day_n;
  140. var ll_day_f;
  141. var ll_day_t;
  142. var ll_ins;
  143. var ll_day;
  144. var ls_date_c, ls_date_l, ls_date_n;
  145. var ls_duty, ls_amst, ls_amet, ls_pmst, ls_pmet;
  146. var rows = getNodesetCount("/root/main/h_hsch/hsch");
  147. if (rows > 0)
  148. {
  149. var result = messageBox("해당년월에 데이터존재합니다! 그래도 생성작업 진행","S001","");
  150. if (result != "6") return false;
  151. }
  152. model.removeNodeset("/root/main/h_hsch/hsch");
  153. grd_hsch.rebuild();
  154. il_evnt = 1;
  155. ls_date_c = model.getValue("/root/hidden/year_c") + '' + model.getValue("/root/hidden/month_c") + "01";
  156. var date_c = ls_date_c.toDate("YYYYMMDD");
  157. var date_n = date_c.getAddDate(31, "D");
  158. ls_date_n = (date_n.getDateFormat("YYYYMMDD")).substr(0,6) + "01";
  159. ll_day_f = 1;
  160. ls_date_n = ls_date_n.toDate("YYYYMMDD");
  161. ll_day_t = ls_date_n.getAddDate(-1, "D");
  162. ll_day_t = (ls_date_n.getDateFormat("YYYYMMDD")).substr(6,2);
  163. for(ll_day_f = 1; ll_day_f <= ll_day_t; ll_day_f++)
  164. {
  165. if (ll_day_f < 10) ls_date_l = ls_date_c.substr(0,6) + "0" + ll_day_f;
  166. else ls_date_l = ls_date_c.substr(0,6) + ll_day_f;
  167. ll_day_n = (ls_date_l.toDate("YYYYMMDD")).getDayOfWeek("N");
  168. switch(ll_day_n)
  169. {
  170. case '0' : //휴일
  171. ll_day = "8"; ls_duty = "Y";
  172. break;
  173. case '6' : //토요일
  174. ll_day = "4"; ls_duty = "Y";
  175. break;
  176. default : //평일
  177. ll_day = "0"; ls_duty = "Y";
  178. break;
  179. }
  180. grd_hsch.addItem();
  181. var currow = grd_hsch.row;
  182. model.setValue("/root/main/h_hsch/hsch[" + currow + "]/hsch_basedd",ls_date_l);
  183. model.setValue("/root/main/h_hsch/hsch[" + currow + "]/hsch_seqno","");
  184. model.setValue("/root/main/h_hsch/hsch[" + currow + "]/hsch_instcd","");
  185. model.setValue("/root/main/h_hsch/hsch[" + currow + "]/hsch_histstat","Y");
  186. model.setValue("/root/main/h_hsch/hsch[" + currow + "]/hsch_dutflag",ll_day);
  187. model.setValue("/root/main/h_hsch/hsch[" + currow + "]/hsch_holinm","-");
  188. model.setValue("/root/main/h_hsch/hsch[" + currow + "]/hsch_holiflag","0");
  189. model.setValue("/root/main/h_hsch/hsch[" + currow + "]/hsch_ordyn",ls_duty);
  190. model.setValue("/root/main/h_hsch/hsch[" + currow + "]/hsch_fstrgstrid","");
  191. model.setValue("/root/main/h_hsch/hsch[" + currow + "]/hsch_fstrgstdt","");
  192. model.setValue("/root/main/h_hsch/hsch[" + currow + "]/hsch_lastupdtrid","");
  193. model.setValue("/root/main/h_hsch/hsch[" + currow + "]/hsch_lastupdtdt","");
  194. }
  195. //저장
  196. if (fSave() == false) return false;
  197. }
  198. function fSave()
  199. {
  200. if (getNodesetCount("/root/main/h_hsch/hsch") < 1)
  201. {
  202. messageBox("저장할 내역이 미존재합니다!","E999","");
  203. return false;
  204. }
  205. model.removenode("/root/send/data1");
  206. model.removenode("/root/send/data2");
  207. model.removenode("/root/send/data3");
  208. model.makeNode("/root/send/data1");
  209. model.makeNode("/root/send/data2");
  210. model.makeNode("/root/send/data3");
  211. model.copyNode("/root/send/data1","/root/hidden");
  212. model.setValue("/root/send/data2", grd_hsch.getUpdateData());
  213. //alert(model.getValue("/root/send/data2"));
  214. //return false;
  215. if (submit("TXPMB02401")) fCalendarRef();
  216. }
  217. ]]>
  218. </script>
  219. </xhtml:head>
  220. <xhtml:body>
  221. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:240px; height:14px; ">병원달력관리</caption>
  222. <caption id="caption1" style="left:15px; top:20px; width:55px; height:20px; ">조회조건</caption>
  223. <caption id="caption2" style="left:145px; top:20px; width:15px; height:20px; ">년</caption>
  224. <caption id="caption3" style="left:240px; top:20px; width:15px; height:20px; ">월</caption>
  225. <button id="btn_search" class="btn1_letter2" style="left:275px; top:18px; width:56px; height:22px; ">
  226. <caption>조회</caption>
  227. <script type="javascript" ev:event="onclick">
  228. <![CDATA[
  229. fCalendarRef();
  230. ]]>
  231. </script>
  232. </button>
  233. <caption id="caption4" style="left:425px; top:20px; width:62px; height:20px; ">생성조건</caption>
  234. <caption id="caption5" style="left:555px; top:20px; width:15px; height:20px; ">년</caption>
  235. <caption id="caption7" style="left:650px; top:20px; width:15px; height:20px; ">월</caption>
  236. <select1 id="cmb_year1" ref="/root/hidden/year_q" appearance="minimal" style="left:75px; top:20px; width:65px; height:19px; ">
  237. <choices>
  238. <item>
  239. <label>2003</label>
  240. <value>2003</value>
  241. </item>
  242. <item>
  243. <label>2004</label>
  244. <value>2004</value>
  245. </item>
  246. <item>
  247. <label>2005</label>
  248. <value>2005</value>
  249. </item>
  250. <item>
  251. <label>2006</label>
  252. <value>2006</value>
  253. </item>
  254. <item>
  255. <label>2007</label>
  256. <value>2007</value>
  257. </item>
  258. <item>
  259. <label>2008</label>
  260. <value>2008</value>
  261. </item>
  262. <item>
  263. <label>2009</label>
  264. <value>2009</value>
  265. </item>
  266. <item>
  267. <label>2010</label>
  268. <value>2010</value>
  269. </item>
  270. <item>
  271. <label>2011</label>
  272. <value>2011</value>
  273. </item>
  274. <item>
  275. <label>2012</label>
  276. <value>2012</value>
  277. </item>
  278. <item>
  279. <label>2013</label>
  280. <value>2013</value>
  281. </item>
  282. <item>
  283. <label>2014</label>
  284. <value>2014</value>
  285. </item>
  286. <item>
  287. <label>2015</label>
  288. <value>2015</value>
  289. </item>
  290. <item>
  291. <label>2016</label>
  292. <value>2016</value>
  293. </item>
  294. <item>
  295. <label>2017</label>
  296. <value>2017</value>
  297. </item>
  298. <item>
  299. <label>2018</label>
  300. <value>2018</value>
  301. </item>
  302. <item>
  303. <label>2019</label>
  304. <value>2019</value>
  305. </item>
  306. <item>
  307. <label>2020</label>
  308. <value>2020</value>
  309. </item>
  310. <item>
  311. <label>2021</label>
  312. <value>2021</value>
  313. </item>
  314. <item>
  315. <label>2022</label>
  316. <value>2022</value>
  317. </item>
  318. <item>
  319. <label>2023</label>
  320. <value>2023</value>
  321. </item>
  322. <item>
  323. <label>2024</label>
  324. <value>2024</value>
  325. </item>
  326. <item>
  327. <label>2025</label>
  328. <value>2025</value>
  329. </item>
  330. <item>
  331. <label>2026</label>
  332. <value>2026</value>
  333. </item>
  334. <item>
  335. <label>2027</label>
  336. <value>2027</value>
  337. </item>
  338. <item>
  339. <label>2028</label>
  340. <value>2028</value>
  341. </item>
  342. <item>
  343. <label>2029</label>
  344. <value>2029</value>
  345. </item>
  346. <item>
  347. <label>2030</label>
  348. <value>2030</value>
  349. </item>
  350. </choices>
  351. <script type="javascript" ev:event="xforms-value-changed">
  352. <![CDATA[
  353. fCalendarRef();
  354. ]]>
  355. </script>
  356. </select1>
  357. <select1 id="cmb_month1" ref="/root/hidden/month_q" appearance="minimal" style="left:170px; top:20px; width:65px; height:19px; ">
  358. <choices>
  359. <item>
  360. <label>01</label>
  361. <value>01</value>
  362. </item>
  363. <item>
  364. <label>02</label>
  365. <value>02</value>
  366. </item>
  367. <item>
  368. <label>03</label>
  369. <value>03</value>
  370. </item>
  371. <item>
  372. <label>04</label>
  373. <value>04</value>
  374. </item>
  375. <item>
  376. <label>05</label>
  377. <value>05</value>
  378. </item>
  379. <item>
  380. <label>06</label>
  381. <value>06</value>
  382. </item>
  383. <item>
  384. <label>07</label>
  385. <value>07</value>
  386. </item>
  387. <item>
  388. <label>08</label>
  389. <value>08</value>
  390. </item>
  391. <item>
  392. <label>09</label>
  393. <value>09</value>
  394. </item>
  395. <item>
  396. <label>10</label>
  397. <value>10</value>
  398. </item>
  399. <item>
  400. <label>11</label>
  401. <value>11</value>
  402. </item>
  403. <item>
  404. <label>12</label>
  405. <value>12</value>
  406. </item>
  407. </choices>
  408. <script type="javascript" ev:event="xforms-value-changed">
  409. <![CDATA[
  410. fCalendarRef();
  411. ]]>
  412. </script>
  413. </select1>
  414. <select1 id="cmb_year2" ref="/root/hidden/year_c" appearance="minimal" style="left:485px; top:20px; width:65px; height:19px; ">
  415. <choices>
  416. <item>
  417. <label>-</label>
  418. <value>-</value>
  419. </item>
  420. <item>
  421. <label>2003</label>
  422. <value>2003</value>
  423. </item>
  424. <item>
  425. <label>2004</label>
  426. <value>2004</value>
  427. </item>
  428. <item>
  429. <label>2005</label>
  430. <value>2005</value>
  431. </item>
  432. <item>
  433. <label>2006</label>
  434. <value>2006</value>
  435. </item>
  436. <item>
  437. <label>2007</label>
  438. <value>2007</value>
  439. </item>
  440. <item>
  441. <label>2008</label>
  442. <value>2008</value>
  443. </item>
  444. <item>
  445. <label>2009</label>
  446. <value>2009</value>
  447. </item>
  448. <item>
  449. <label>2010</label>
  450. <value>2010</value>
  451. </item>
  452. <item>
  453. <label>2011</label>
  454. <value>2011</value>
  455. </item>
  456. <item>
  457. <label>2012</label>
  458. <value>2012</value>
  459. </item>
  460. <item>
  461. <label>2013</label>
  462. <value>2013</value>
  463. </item>
  464. <item>
  465. <label>2014</label>
  466. <value>2014</value>
  467. </item>
  468. <item>
  469. <label>2015</label>
  470. <value>2015</value>
  471. </item>
  472. <item>
  473. <label>2016</label>
  474. <value>2016</value>
  475. </item>
  476. <item>
  477. <label>2017</label>
  478. <value>2017</value>
  479. </item>
  480. <item>
  481. <label>2018</label>
  482. <value>2018</value>
  483. </item>
  484. <item>
  485. <label>2019</label>
  486. <value>2019</value>
  487. </item>
  488. <item>
  489. <label>2020</label>
  490. <value>2020</value>
  491. </item>
  492. <item>
  493. <label>2021</label>
  494. <value>2021</value>
  495. </item>
  496. <item>
  497. <label>2022</label>
  498. <value>2022</value>
  499. </item>
  500. <item>
  501. <label>2023</label>
  502. <value>2023</value>
  503. </item>
  504. <item>
  505. <label>2024</label>
  506. <value>2024</value>
  507. </item>
  508. <item>
  509. <label>2025</label>
  510. <value>2025</value>
  511. </item>
  512. <item>
  513. <label>2026</label>
  514. <value>2026</value>
  515. </item>
  516. <item>
  517. <label>2027</label>
  518. <value>2027</value>
  519. </item>
  520. <item>
  521. <label>2028</label>
  522. <value>2028</value>
  523. </item>
  524. <item>
  525. <label>2029</label>
  526. <value>2029</value>
  527. </item>
  528. <item>
  529. <label>2030</label>
  530. <value>2030</value>
  531. </item>
  532. </choices>
  533. </select1>
  534. <select1 id="cmb_month2" ref="/root/hidden/month_c" appearance="minimal" style="left:580px; top:20px; width:65px; height:19px; ">
  535. <choices>
  536. <item>
  537. <label>-</label>
  538. <value>-</value>
  539. </item>
  540. <item>
  541. <label>01</label>
  542. <value>01</value>
  543. </item>
  544. <item>
  545. <label>02</label>
  546. <value>02</value>
  547. </item>
  548. <item>
  549. <label>03</label>
  550. <value>03</value>
  551. </item>
  552. <item>
  553. <label>04</label>
  554. <value>04</value>
  555. </item>
  556. <item>
  557. <label>05</label>
  558. <value>05</value>
  559. </item>
  560. <item>
  561. <label>06</label>
  562. <value>06</value>
  563. </item>
  564. <item>
  565. <label>07</label>
  566. <value>07</value>
  567. </item>
  568. <item>
  569. <label>08</label>
  570. <value>08</value>
  571. </item>
  572. <item>
  573. <label>09</label>
  574. <value>09</value>
  575. </item>
  576. <item>
  577. <label>10</label>
  578. <value>10</value>
  579. </item>
  580. <item>
  581. <label>11</label>
  582. <value>11</value>
  583. </item>
  584. <item>
  585. <label>12</label>
  586. <value>12</value>
  587. </item>
  588. </choices>
  589. </select1>
  590. <datagrid id="grd_hsch" nodeset="/root/main/h_hsch/hsch" caption="기준일자^일련번호^기관코드^이력상태^근무구분^공휴일명칭^휴일구분^진료여부^최초등록자^caption1^최초등록일시^최종수정자^caption2^최종수정일시" colsep="^" colwidth="83, 59, 56, 53, 76, 144, 69, 69, 87, 100, 157, 85, 100, 160" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:41px; width:935px; height:740px; ">
  591. <col ref="hsch_basedd" format="yyyy-mm-dd"/>
  592. <col ref="hsch_seqno" visibility="hidden"/>
  593. <col ref="hsch_instcd" visibility="hidden"/>
  594. <col ref="hsch_histstat" visibility="hidden"/>
  595. <col ref="hsch_dutflag" type="combo">
  596. <choices>
  597. <item>
  598. <label>평일</label>
  599. <value>0</value>
  600. </item>
  601. <item>
  602. <label>토요일</label>
  603. <value>4</value>
  604. </item>
  605. <item>
  606. <label>휴일</label>
  607. <value>8</value>
  608. </item>
  609. </choices>
  610. </col>
  611. <col ref="hsch_holinm" type="input"/>
  612. <col ref="hsch_holiflag" type="combo">
  613. <choices>
  614. <item>
  615. <label>평일</label>
  616. <value>0</value>
  617. </item>
  618. <item>
  619. <label>법정공휴일</label>
  620. <value>1</value>
  621. </item>
  622. <item>
  623. <label>기타</label>
  624. <value>2</value>
  625. </item>
  626. </choices>
  627. </col>
  628. <col ref="hsch_ordyn" type="combo">
  629. <choices>
  630. <item>
  631. <label>Yes</label>
  632. <value>Y</value>
  633. </item>
  634. <item>
  635. <label>No</label>
  636. <value>N</value>
  637. </item>
  638. </choices>
  639. </col>
  640. <col ref="hsch_fstrgstrnm"/>
  641. <col ref="hsch_fstrgstrid" visibility="hidden"/>
  642. <col ref="hsch_fstrgstdt" format="yyyy-mm-dd-hh:nn:ss"/>
  643. <col ref="hsch_lastupdtrnm"/>
  644. <col ref="hsch_lastupdtrid" visibility="hidden"/>
  645. <col ref="hsch_lastupdtdt" format="yyyy-mm-dd-hh:nn:ss"/>
  646. </datagrid>
  647. <button id="btn_create" class="btn4_letter4" style="left:695px; top:18px; width:80px; height:22px; ">
  648. <caption>달력생성</caption>
  649. <script type="javascript" ev:event="onclick">
  650. <![CDATA[
  651. var year_c = model.getValue("/root/hidden/year_c");
  652. var month_c = model.getValue("/root/hidden/month_c");
  653. if (year_c == null || year_c == "" || year_c == " " || year_c == "-")
  654. {
  655. messageBox("생성 년도를 정확히 선택하십시요!","E999","");
  656. return;
  657. }
  658. if (month_c == null || month_c == "" || month_c == " " || month_c == "-")
  659. {
  660. messageBox("생성 월을 정확히 선택하십시요!","E999","");
  661. return;
  662. }
  663. var result = messageBox("달력생성","S001","");
  664. if (result == "6")
  665. {
  666. model.setValue("/root/hidden/year_q",year_c);
  667. model.setValue("/root/hidden/month_q",month_c);
  668. model.refresh();
  669. fCalendarRef();
  670. fCreate();
  671. }
  672. else return;
  673. ]]>
  674. </script>
  675. </button>
  676. <button id="btn_updt" class="btn4_letter4" style="left:865px; top:18px; width:80px; height:22px; ">
  677. <caption>달력수정</caption>
  678. <script type="javascript" ev:event="onclick">
  679. <![CDATA[
  680. fSave();
  681. ]]>
  682. </script>
  683. </button>
  684. </xhtml:body>
  685. </xhtml:html>