SMAEA06000_업무일지.xrw 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017
  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. <main>
  10. <daydutylist>
  11. <item/>
  12. </daydutylist>
  13. <monthdutylist>
  14. <item/>
  15. </monthdutylist>
  16. </main>
  17. <send>
  18. <globalinstance>
  19. <instance1/>
  20. </globalinstance>
  21. <data>
  22. <srchdaycmt/>
  23. <srchevecmt/>
  24. <srchnigtcmt/>
  25. <srchexcuroomgrp/>
  26. <srchexecroom/>
  27. <srchrepodd/>
  28. <daydutyid/>
  29. <daynextid/>
  30. <daywritm/>
  31. <evedutyid/>
  32. <evenextid/>
  33. <evewritm/>
  34. <nitdutyid/>
  35. <nitnextid/>
  36. <nitwritm/>
  37. <suppdeptcd/>
  38. <excuroomgrpcdid/>
  39. <instcd/>
  40. </data>
  41. <rsrvdd/>
  42. </send>
  43. <hidden>
  44. <calendar>
  45. <year/>
  46. <month/>
  47. <weeklist>
  48. <list>
  49. <sun/>
  50. <mon/>
  51. <tue/>
  52. <wed/>
  53. <thu/>
  54. <fri/>
  55. <sat/>
  56. <sun_memo/>
  57. <mon_memo/>
  58. <tue_memo/>
  59. <wed_memo/>
  60. <thu_memo/>
  61. <fri_memo/>
  62. <sat_memo/>
  63. </list>
  64. </weeklist>
  65. </calendar>
  66. <item>
  67. <count/>
  68. </item>
  69. <grdcellcolor>
  70. <calrow/>
  71. <calcol/>
  72. <bfcalrow/>
  73. <bfcalcol/>
  74. <color/>
  75. </grdcellcolor>
  76. </hidden>
  77. <init>
  78. <calenlist>
  79. <calendinfo/>
  80. </calenlist>
  81. </init>
  82. <temp/>
  83. <rexprnt/>
  84. </root>
  85. </instance>
  86. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  87. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  88. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  89. <submission id="TRAEA02012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/calenlist"/>
  90. <bind id="bind1" ref="/root/main/patprcpspeclist/patinfolist/apntdrid" readonly="../apntdrid!=''"/>
  91. <bind id="bind2" ref="/root/main/patprcpspeclist/patinfolist/atdoctid" readonly="../atdoctid!=''"/>
  92. <submission id="TXAEA06000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/temp"/>
  93. <submission id="TRAEA06000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/daydutylist"/>
  94. <submission id="TRAEA01306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info2"/>
  95. <submission id="TRAEA06010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="root/main/monthdutylist"/>
  96. </model>
  97. <!--공통으로 사용되는 스크립트 추가 dateHelper-->
  98. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  101. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  103. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  104. <!--session 정보를 가져오는 스크립트 반드시 포함시켜야 함(검사실에 한정).-->
  105. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  106. <!--화면 로딩시 이벤트 시작-->
  107. <script type="javascript" ev:event="xforms-ready">
  108. <![CDATA[
  109. aezfSetSuppDeptcd();
  110. model.setValue("/root/send/data/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  111. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  112. // 구분 정보
  113. submit("TRAEA01301");
  114. // 검사실 Combo박스 전체추가
  115. addComboItem("cmb_exroom", "-- 전체 --", "", "above");
  116. model.setValue("/root/hidden/grdcellcolor/color", "1");
  117. initCalendar();
  118. // setCellColor(grd_calendar);
  119. grd_calendar.dataHeight = 50;
  120. //화면에 마지막으로 저장된 구분값 넘겨주기.
  121. var excuroomgrp = model.property("excuroomgrp");
  122. if (excuroomgrp != "") {
  123. model.setValue("/root/send/data/srchexcuroomgrp" , excuroomgrp );
  124. }else{
  125. cmb_excuroomgrp.select(0);
  126. }
  127. var excuroom = model.property("excuroom");
  128. if (excuroom != "") {
  129. model.setValue("/root/send/data/srchexecroom" , excuroom);
  130. }else{
  131. cmb_exroom.select(0);
  132. }
  133. model.refresh();
  134. ]]>
  135. </script>
  136. <!--Body에서 사용되는 Script-->
  137. <script type="javascript">
  138. <![CDATA[
  139. function initCalendar() {
  140. var curDate = getCurrentDate().toDate().getDateFormat('YYYYMM');
  141. model.setValue("/root/hidden/calendar/year", getCurrentDate().toDate().getDateFormat('YYYY'));
  142. model.setValue("/root/hidden/calendar/month", getCurrentDate().toDate().getDateFormat('MM'));
  143. // alert(model.getValue("/root/hidden/calendar/year") + " / " + model.getValue("/root/hidden/calendar/month"));
  144. // 그리드 초기화
  145. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  146. grd_calendar.rebuild();
  147. var dateObj = (curDate+"01").toDate();
  148. dateObj.setDate(1);
  149. var startDay = dateObj.getDay();
  150. var days = dateObj.getMonthDay();
  151. var rows = Math.ceil( ( startDay + days ) / 7 );
  152. for( var i = 0; i < rows; i++ )
  153. grd_calendar.addRow(false);
  154. grd_calendar.rebuild();
  155. var rowIndex = grd_calendar.fixedRows;
  156. var colIndex = startDay;
  157. for( var i = 1; i <= days; i++ ) {
  158. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  159. grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0.0";
  160. colIndex++;
  161. if( colIndex == 7 ) {
  162. colIndex = 0;
  163. rowIndex++;
  164. }
  165. }
  166. // 현재일자 색상 표시
  167. setCurrentDate(grd_calendar);
  168. fCalendar();
  169. }
  170. /* @group : 통합예약관리
  171. * @ver : 2007.08.10
  172. * @by : 임헤정
  173. * @-----------------------------------
  174. * @type : function
  175. * @access : public
  176. * @desc : 오늘날짜 달력에 표시
  177. */
  178. function setCurrentDate() {
  179. var curDate = getCurrentDate().substr(6,2); //오늘날짜
  180. var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  181. if(curDate <10) {
  182. curDate= curDate.substr(1,1);
  183. }
  184. if(curWeek == "sun")
  185. model.setValue("/root/hidden/grdcellcolor/calcol",0);
  186. if(curWeek == "mon")
  187. model.setValue("/root/hidden/grdcellcolor/calcol",1);
  188. if(curWeek == "tue")
  189. model.setValue("/root/hidden/grdcellcolor/calcol",2);
  190. if(curWeek == "wed")
  191. model.setValue("/root/hidden/grdcellcolor/calcol",3);
  192. if(curWeek == "thu")
  193. model.setValue("/root/hidden/grdcellcolor/calcol",4);
  194. if(curWeek == "fri")
  195. model.setValue("/root/hidden/grdcellcolor/calcol",5);
  196. if(curWeek == "sat")
  197. model.setValue("/root/hidden/grdcellcolor/calcol",6);
  198. for(var i = 0 ; i <grd_calendar.rows; i++ ) {
  199. if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
  200. model.setValue("/root/hidden/grdcellcolor/calrow",i);
  201. }
  202. }
  203. setCellColor(grd_calendar);
  204. }
  205. /* @group : 통합예약관리
  206. * @ver : 2007.08.09
  207. * @by : 임헤정
  208. * @-----------------------------------
  209. * @type : function
  210. * @access : public
  211. * @desc : 선택날짜 색 주기
  212. */
  213. function setCellColor(gridObj) {
  214. var calRow = 0; //현재선택
  215. var calCol = 0; //현재선택
  216. var bfcalRow = 0; //전에 선택
  217. var bfcalCol = 0; //전에 선택
  218. var white = 1; //#ffffff
  219. var green = 2; //#c4e693
  220. calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
  221. calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
  222. bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
  223. bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
  224. // 1. 원래 색으로 돌려놓기
  225. if(model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
  226. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  227. if( bfcalCol < 7 )
  228. bfcalCol += 7;
  229. else
  230. bfcalCol -= 7;
  231. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  232. }
  233. else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
  234. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  235. if( bfcalCol < 7 )
  236. bfcalCol += 7;
  237. else
  238. bfcalCol -= 7;
  239. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  240. }
  241. // 2. bf 인스턴스에 선택한 원래 셀 담아두기
  242. if(gridObj.cellStyle("background-color", calRow, calCol) == "#ffffff" ) {
  243. model.setValue("/root/hidden/grdcellcolor/color", "1");
  244. }
  245. if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
  246. model.setValue("/root/hidden/grdcellcolor/color", "2");
  247. }
  248. model.setValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
  249. model.setValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
  250. //alert("인스턴스 : "+model.getValue("/root/hidden/grdcellcolor/color"));
  251. // 3. 선택한 셀에 보라색 주기
  252. // gridObj.rebuildStyle();
  253. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  254. if( calCol < 7 )
  255. calCol += 7;
  256. else
  257. calCol -= 7;
  258. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  259. // 현재일자 색상 표시 2011.07.20 by kya
  260. var curdate = getCurrentDate();
  261. var caldate = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month");
  262. var curday = curdate.substring(6,8);
  263. var calday = "";
  264. if ( curdate.substring(0,6) == caldate ) {
  265. for (i=0; i<gridObj.rows; i++) {
  266. for (j=0; j<gridObj.cols; j++) {
  267. calday = gridObj.valueMatrix(i,j);
  268. if (eval(curday) == calday) {
  269. calRow = i;
  270. calCol =j;
  271. // 현재일자 색상 표시
  272. gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
  273. if ( calCol < 7 ) {
  274. calCol += 7;
  275. } else {
  276. calCol -= 7;
  277. }
  278. gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
  279. }
  280. }
  281. }
  282. }
  283. }
  284. function setCalendar(dateObj) {
  285. // 그리드 초기화
  286. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  287. /// model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
  288. grd_calendar.refresh();
  289. dateObj.setDate(1);
  290. var startDay = dateObj.getDay();
  291. var days = dateObj.getMonthDay();
  292. var rows = Math.ceil( ( startDay + days ) / 7 );
  293. /*
  294. for( var i = 0; i < rows; i++ )
  295. grd_calendar.addRow(false);
  296. grd_calendar.rebuild();
  297. */
  298. if (rows != grd_calendar.rows - 1){
  299. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  300. for( var i = 0; i < rows; i++ ){
  301. grd_calendar.addRow(false);
  302. }
  303. }else{
  304. model.setValue("/root/hidden/calendar/weeklist/list", "");
  305. }
  306. var rowIndex = grd_calendar.fixedRows;
  307. var colIndex = startDay;
  308. for( var i = 1; i <= days; i++ ) {
  309. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  310. grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0.0";
  311. colIndex++;
  312. if( colIndex == 7 ) {
  313. colIndex = 0;
  314. rowIndex++;
  315. }
  316. }
  317. fCalendar();
  318. }
  319. function fCalendar(){
  320. if( model.getValue("/root/hidden/calendar/year") == "" || model.getValue("/root/hidden/calendar/month") =="" ){
  321. model.setValue("/root/hidden/calendar/year", getCurrentDate().toDate().getDateFormat('YYYY'));
  322. model.setValue("/root/hidden/calendar/month", getCurrentDate().toDate().getDateFormat('MM'));
  323. }
  324. model.setValue("/root/send/rsrvdd", model.getValue("/root/hidden/calendar/year" )+ model.getValue("/root/hidden/calendar/month") );
  325. if (submit("TRAEA02012")){
  326. var isMonth = model.getValue("/root/hidden/calendar/month");
  327. var isYear = model.getValue("/root/hidden/calendar/year");
  328. var isDate = (isYear+isMonth+1).toDate();
  329. var startDay = isDate.getDay();
  330. for (var i = 1; i < datagrid3.rows; i++) {
  331. var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
  332. var colidx = dd.toDate().getDay();
  333. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  334. // alert("DD >" + dd + " ==colidx >" + colidx + " ==rowidx > " + rowidx + " ==basedd> " + model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd"));
  335. if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "8"){
  336. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "red";
  337. }else if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "4"){
  338. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "blue";
  339. }else{
  340. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "black";
  341. }
  342. }
  343. }
  344. grd_calendar.refresh();
  345. }
  346. function fGetCalendar(arg)
  347. {
  348. var isMonth = model.getValue("/root/hidden/calendar/month");
  349. var isYear = model.getValue("/root/hidden/calendar/year");
  350. if(model.getValue("/root/hidden/calendar/month") < arg) {
  351. var num = arg- isMonth ;
  352. var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
  353. }
  354. if(model.getValue("/root/hidden/calendar/month") > arg) {
  355. var num = isMonth - arg ;
  356. var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
  357. }
  358. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  359. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  360. model.refresh();
  361. setCalendar(isDate);
  362. fReport();
  363. // 현재일자 색상 표시
  364. setCurrentDate(grd_calendar);
  365. model.refresh();
  366. }
  367. //2011.08.11 by kya
  368. function fReport() {
  369. //업무일지여부확인 2011.08.10 by kya
  370. var isMonth = model.getValue("/root/hidden/calendar/month");
  371. var isYear = model.getValue("/root/hidden/calendar/year");
  372. var dd = isYear+isMonth+"01"
  373. var isDate = dd.toDate();
  374. var startDay = isDate.getDay();
  375. // alert("startDay = " + startDay + " ----------- isDate = " + isDate + " ------------startDay = " + startDay );
  376. model.setValue("/root/send/data/srchrepodd", dd );
  377. submit("TRAEA06010");
  378. for (var i = 1; i < datagrid1.rows; i++) {
  379. var dd = model.getValue("/root/main/monthdutylist/item[" + i + "]/repodd");
  380. var colidx = dd.toDate().getDay();
  381. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  382. grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
  383. }
  384. }
  385. ]]>
  386. </script>
  387. </xhtml:head>
  388. <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  389. <group id="group1" scroll="auto" style="left:8px; top:20px; width:1145px; height:735px; ">
  390. <caption id="caption25" class="tit_2" style="left:599px; top:247px; width:77px; height:13px; ">EVENING</caption>
  391. <caption id="caption26" class="tit_2" style="left:600px; top:481px; width:82px; height:13px; ">NIGHT</caption>
  392. <caption id="caption28" class="tit_2" style="left:600px; top:5px; width:111px; height:13px; ">DAY</caption>
  393. <line id="line14" class="line_1" style="x1:599px; y1:23px; x2:1128px; y2:22px; "/>
  394. <line id="line20" class="line_1" style="x1:598px; y1:265px; x2:1127px; y2:264px; "/>
  395. <line id="line21" class="line_1" style="x1:599px; y1:498px; x2:1128px; y2:497px; "/>
  396. <group id="grp_calendar" scroll="auto" style="left:10px; top:50px; width:575px; height:70px; ">
  397. <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:575px; height:70px; "/>
  398. <button id="button32" class="icon_next_year" style="left:365px; top:12px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_y.gif; ">
  399. <caption/>
  400. <script type="javascript" ev:event="DOMActivate">
  401. <![CDATA[
  402. var isMonth = model.getValue("/root/hidden/calendar/month");
  403. var isYear = model.getValue("/root/hidden/calendar/year");
  404. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  405. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  406. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  407. model.refresh();
  408. fCalendar();
  409. setCalendar(isDate);
  410. ]]>
  411. </script>
  412. </button>
  413. <button id="btn_premonth" class="icon_pre_month" style="left:208px; top:12px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_m.gif; ">
  414. <caption/>
  415. <script type="javascript" ev:event="DOMActivate">
  416. <![CDATA[
  417. var isMonth = model.getValue("/root/hidden/calendar/month");
  418. var isYear = model.getValue("/root/hidden/calendar/year");
  419. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  420. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  421. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  422. model.refresh();
  423. fCalendar();
  424. setCalendar(isDate);
  425. ]]>
  426. </script>
  427. </button>
  428. <button id="button34" class="icon_next_month" style="left:346px; top:12px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_m.gif; ">
  429. <caption/>
  430. <script type="javascript" ev:event="DOMActivate">
  431. <![CDATA[
  432. var isMonth = model.getValue("/root/hidden/calendar/month");
  433. var isYear = model.getValue("/root/hidden/calendar/year");
  434. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  435. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  436. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  437. model.refresh();
  438. fCalendar();
  439. setCalendar(isDate);
  440. ]]>
  441. </script>
  442. </button>
  443. <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:235px; top:9px; width:30px; height:19px; "/>
  444. <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:285px; top:9px; width:30px; height:19px; "/>
  445. <caption id="caption15" class="calendar_output" style="left:265px; top:9px; width:20px; height:19px; ">년</caption>
  446. <caption id="caption18" class="calendar_output" style="left:315px; top:9px; width:20px; height:19px; ">월</caption>
  447. <button id="button2" class="icon_pre_year" style="left:190px; top:12px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_y.gif; ">
  448. <caption/>
  449. <script type="javascript" ev:event="DOMActivate">
  450. <![CDATA[
  451. var isMonth = model.getValue("/root/hidden/calendar/month");
  452. var isYear = model.getValue("/root/hidden/calendar/year");
  453. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  454. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  455. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  456. model.refresh();
  457. fCalendar();
  458. setCalendar(isDate);
  459. ]]>
  460. </script>
  461. </button>
  462. </group>
  463. <datagrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" caption="일^월^화^수^목^금^토" colsep="^" colwidth="81, 81, 81, 81, 81, 81, 81" dataheight="70" focuscolor="transparent" mergecellsfixedrows="bycolrec" rowheight="20" rowsep="|" style="left:10px; top:120px; width:575px; height:425px; font-family:맑은 고딕; font-size:10pt; font-weight:bold; text-align:center; ">
  464. <col class="color_sun" ref="sun"/>
  465. <col ref="mon"/>
  466. <col ref="tue"/>
  467. <col ref="wed"/>
  468. <col ref="thu"/>
  469. <col ref="fri"/>
  470. <col class="color_sat" ref="sat"/>
  471. <script type="javascript" ev:event="onclick">
  472. <![CDATA[
  473. var calRow = grd_calendar.row;
  474. var calCol = grd_calendar.col;
  475. var yyyy = model.getValue("/root/hidden/calendar/year");
  476. var mm = model.getValue("/root/hidden/calendar/month");
  477. var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + grd_calendar.colAttribute(calCol, "ref"));
  478. if (getStringLength(dd) == 1) {
  479. dd = "0" + dd;
  480. }
  481. model.setValue("/root/send/data/srchrepodd", yyyy + mm + dd);
  482. // alert(model.getValue("/root/send/data/srchrepodd"));
  483. model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
  484. model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
  485. setCellColor(grd_calendar);
  486. if( model.getValue("/root/send/data/srchexecroom") != "" ){
  487. if(submit("TRAEA06000")){
  488. model.setValue("/root/send/data/daydutyid", model.getValue("/root/main/daydutylist/item/daydutyid"));
  489. model.setValue("/root/send/data/daynextid", model.getValue("/root/main/daydutylist/item/daynextid"));
  490. model.setValue("/root/send/data/daywritm", model.getValue("/root/main/daydutylist/item/daywritm"));
  491. model.setValue("/root/send/data/srchdaycmt", model.getValue("/root/main/daydutylist/item/daycomment"));
  492. model.setValue("/root/send/data/evedutyid", model.getValue("/root/main/daydutylist/item/evedutyid"));
  493. model.setValue("/root/send/data/evenextid", model.getValue("/root/main/daydutylist/item/evenextid"));
  494. model.setValue("/root/send/data/evewritm", model.getValue("/root/main/daydutylist/item/evewritm"));
  495. model.setValue("/root/send/data/srchevecmt", model.getValue("/root/main/daydutylist/item/evecomment"));
  496. model.setValue("/root/send/data/nitdutyid", model.getValue("/root/main/daydutylist/item/nitdutyid"));
  497. model.setValue("/root/send/data/nitnextid", model.getValue("/root/main/daydutylist/item/nitnextid"));
  498. model.setValue("/root/send/data/nitwritm", model.getValue("/root/main/daydutylist/item/nitwritm"));
  499. model.setValue("/root/send/data/srchnigtcmt", model.getValue("/root/main/daydutylist/item/nitcomment"));
  500. }
  501. }
  502. model.refresh();
  503. ]]>
  504. </script>
  505. </datagrid>
  506. <button id="btn_save1" class="btn2_letter2" style="left:1085px; top:0px; width:42px; height:19px; ">
  507. <caption>저장</caption>
  508. <script type="javascript" ev:event="DOMActivate">
  509. <![CDATA[
  510. if( model.getValue("/root/send/data/srchexecroom") == ""){
  511. messageBox("검사실은","I003");
  512. return ;
  513. }
  514. if( model.getValue("/root/send/data/srchrepodd") == ""){
  515. messageBox("달력에서 업무일자를","C002");
  516. return ;
  517. }
  518. submit("TXAEA06000");
  519. ]]>
  520. </script>
  521. </button>
  522. <button id="btn_save2" class="btn2_letter2" style="left:1085px; top:242px; width:42px; height:19px; ">
  523. <caption>저장</caption>
  524. <script type="javascript" ev:event="DOMActivate">
  525. <![CDATA[
  526. if( model.getValue("/root/send/data/srchexecroom") == ""){
  527. messageBox("검사실은","I003");
  528. return ;
  529. }
  530. if( model.getValue("/root/send/data/srchrepodd") == ""){
  531. messageBox("달력에서 업무일자를","C002");
  532. return ;
  533. }
  534. submit("TXAEA06000");
  535. ]]>
  536. </script>
  537. </button>
  538. <button id="btn_save3" class="btn2_letter2" style="left:1085px; top:475px; width:42px; height:19px; ">
  539. <caption>저장</caption>
  540. <script type="javascript" ev:event="DOMActivate">
  541. <![CDATA[
  542. if( model.getValue("/root/send/data/srchexecroom") == ""){
  543. messageBox("검사실은","I003");
  544. return ;
  545. }
  546. if( model.getValue("/root/send/data/srchrepodd") == ""){
  547. messageBox("달력에서 업무일자를","C002");
  548. return ;
  549. }
  550. submit("TXAEA06000");
  551. ]]>
  552. </script>
  553. </button>
  554. <textarea id="textarea3" ref="/root/send/data/srchdaycmt" style="left:600px; top:30px; width:530px; height:170px; "/>
  555. <textarea id="textarea4" ref="/root/send/data/srchevecmt" style="left:598px; top:270px; width:530px; height:170px; "/>
  556. <textarea id="textarea5" ref="/root/send/data/srchnigtcmt" style="left:599px; top:502px; width:530px; height:170px; "/>
  557. <group id="grp_srch" style="left:0px; top:7px; width:595px; height:35px; vertical-align:top; ">
  558. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:1px; top:0px; width:589px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  559. <line id="line16" class="line_4" style="x1:502px; y1:7px; x2:502px; y2:29px; "/>
  560. <button id="btn_select" class="btn1_letter2" navindex="5" style="left:515px; top:7px; width:56px; height:22px; ">
  561. <caption>조회</caption>
  562. <script type="javascript" ev:event="DOMActivate">
  563. <![CDATA[
  564. //월별업무일지여부가져오기 by kya
  565. fReport();
  566. grd_calendar.dispatch("onclick");
  567. model.refresh();
  568. ]]>
  569. </script>
  570. </button>
  571. <caption id="lbl_srchdd" class="search_name" style="left:8px; top:9px; width:86px; height:17px; ">구분 :</caption>
  572. <select1 id="cmb_excuroomgrp" ref="/root/send/data/srchexcuroomgrp" class="combo_search" navindex="1" appearance="minimal" style="left:73px; top:8px; width:80px; height:19px; ">
  573. <choices>
  574. <itemset nodeset="/root/init/cmb_info/initexcuroomgrp">
  575. <label ref="excuroomgrpcdnm"/>
  576. <value ref="excuroomgrpcdid"/>
  577. </itemset>
  578. </choices>
  579. <script type="javascript" ev:event="xforms-select">
  580. <![CDATA[
  581. model.removeNodeset("/root/init/cmb_info2/initexecroom");
  582. model.setValue("/root/send/data/excuroomgrpcdid", model.getValue("/root/send/data/srchexcuroomgrp") );
  583. if(submit("TRAEA01306")){
  584. model.removeNodeset("/root/init/cmb_info/initexecroom");
  585. var cnt = getNodesetCount("/root/init/cmb_info2/initexecroom");
  586. for(var i = 1 ; i<= cnt ; i++ ){
  587. model.makeNode("/root/init/cmb_info/initexecroom["+ i +"]");
  588. model.makeValue("/root/init/cmb_info/initexecroom["+ i +"]/excuroomcdid", model.getValue("/root/init/cmb_info2/initexecroom["+ i +"]/excuroomcdid"));
  589. model.makeValue("/root/init/cmb_info/initexecroom["+ i +"]/excuroomcdnm", model.getValue("/root/init/cmb_info2/initexecroom["+ i +"]/excuroomcdnm"));
  590. }
  591. }
  592. model.refresh();
  593. ]]>
  594. </script>
  595. <script type="javascript" ev:event="xforms-value-changed">
  596. <![CDATA[
  597. // 구분값 선택시 업무내용 Clear
  598. model.resetInstanceNode("/root/send/data/srchdaycmt");
  599. model.resetInstanceNode("/root/send/data/srchevecmt");
  600. model.resetInstanceNode("/root/send/data/srchnigtcmt");
  601. model.resetInstanceNode("/root/send/data/daydutyid");
  602. model.resetInstanceNode("/root/send/data/daynextid");
  603. model.resetInstanceNode("/root/send/data/daywritm");
  604. model.resetInstanceNode("/root/send/data/evedutyid");
  605. model.resetInstanceNode("/root/send/data/evenextid");
  606. model.resetInstanceNode("/root/send/data/evewritm");
  607. model.resetInstanceNode("/root/send/data/nitdutyid");
  608. model.resetInstanceNode("/root/send/data/nitnextid");
  609. model.resetInstanceNode("/root/send/data/nitwritm");
  610. model.refresh();
  611. ]]>
  612. </script>
  613. </select1>
  614. <caption id="caption22" class="search_name" style="left:167px; top:9px; width:86px; height:17px; ">검사실 :</caption>
  615. <select1 id="cmb_exroom" ref="/root/send/data/srchexecroom" class="combo_search" navindex="1" appearance="minimal" style="left:250px; top:10px; width:106px; height:19px; ">
  616. <choices>
  617. <itemset nodeset="/root/init/cmb_info/initexecroom">
  618. <label ref="excuroomcdnm"/>
  619. <value ref="excuroomcdid"/>
  620. </itemset>
  621. </choices>
  622. <script type="javascript" ev:event="xforms-value-changed">
  623. <![CDATA[
  624. // 구분값 선택시 업무내용 Clear
  625. model.resetInstanceNode("/root/send/data/srchdaycmt");
  626. model.resetInstanceNode("/root/send/data/srchevecmt");
  627. model.resetInstanceNode("/root/send/data/srchnigtcmt");
  628. model.resetInstanceNode("/root/send/data/daydutyid");
  629. model.resetInstanceNode("/root/send/data/daynextid");
  630. model.resetInstanceNode("/root/send/data/daywritm");
  631. model.resetInstanceNode("/root/send/data/evedutyid");
  632. model.resetInstanceNode("/root/send/data/evenextid");
  633. model.resetInstanceNode("/root/send/data/evewritm");
  634. model.resetInstanceNode("/root/send/data/nitdutyid");
  635. model.resetInstanceNode("/root/send/data/nitnextid");
  636. model.resetInstanceNode("/root/send/data/nitwritm");
  637. model.refresh();
  638. ]]>
  639. </script>
  640. </select1>
  641. </group>
  642. <select1 id="cmb_daydutyid" ref="/root/send/data/daydutyid" class="combo_search" appearance="minimal" style="left:670px; top:205px; width:110px; height:20px; font-weight:bold; ">
  643. <choices>
  644. <itemset nodeset="/root/init/cmb_info/initexecrid1">
  645. <label ref="execrid1cdnm"/>
  646. <value ref="execrid1cdid"/>
  647. </itemset>
  648. </choices>
  649. </select1>
  650. <select1 id="cmb_daynextid" ref="/root/send/data/daynextid" class="combo_search" appearance="minimal" style="left:851px; top:205px; width:100px; height:19px; font-weight:bold; ">
  651. <choices>
  652. <itemset nodeset="/root/init/cmb_info/initexecrid1">
  653. <label ref="execrid1cdnm"/>
  654. <value ref="execrid1cdid"/>
  655. </itemset>
  656. </choices>
  657. <script type="javascript" ev:event="xforms-select">
  658. <![CDATA[
  659. var Curtime = getCurrentTime();
  660. model.setValue("/root/send/data/evedutyid" , model.getValue("/root/send/data/daynextid"));
  661. model.setValue("/root/send/data/daywritm", Curtime );
  662. model.refresh();
  663. ]]>
  664. </script>
  665. </select1>
  666. <input id="input2" ref="/root/send/data/daywritm" format="hh:nn:ss" style="left:1025px; top:205px; width:100px; height:20px; "/>
  667. <shape id="rectangle2" appearance="rectangle" style="left:600px; top:200px; width:530px; height:30px; border-color:#d2d2d2; "/>
  668. <caption id="caption1" class="cell_1" style="left:786px; top:205px; width:60px; height:19px; text-align:center; vertical-align:middle; ">인계자 :</caption>
  669. <caption id="caption2" class="cell_1" style="left:956px; top:205px; width:65px; height:19px; text-align:center; vertical-align:middle; ">인계시간 :</caption>
  670. <caption id="caption14" class="cell_1" style="left:606px; top:205px; width:60px; height:19px; text-align:center; vertical-align:middle; ">근무자 :</caption>
  671. <shape id="rectangle3" appearance="rectangle" style="left:598px; top:439px; width:530px; height:30px; border-color:#d2d2d2; "/>
  672. <select1 id="cmb_evedutyid" ref="/root/send/data/evedutyid" class="combo_search" appearance="minimal" style="left:668px; top:444px; width:110px; height:19px; font-weight:bold; ">
  673. <choices>
  674. <itemset nodeset="/root/init/cmb_info/initexecrid1">
  675. <label ref="execrid1cdnm"/>
  676. <value ref="execrid1cdid"/>
  677. </itemset>
  678. </choices>
  679. </select1>
  680. <caption id="caption3" class="cell_1" style="left:784px; top:444px; width:60px; height:19px; text-align:center; vertical-align:middle; ">인계자 :</caption>
  681. <caption id="caption4" class="cell_1" style="left:954px; top:444px; width:65px; height:19px; text-align:center; vertical-align:middle; ">인계시간 :</caption>
  682. <caption id="caption5" class="cell_1" style="left:604px; top:444px; width:60px; height:19px; text-align:center; vertical-align:middle; ">근무자 :</caption>
  683. <select1 id="cmb_evenextid" ref="/root/send/data/evenextid" class="combo_search" appearance="minimal" style="left:849px; top:444px; width:100px; height:19px; font-weight:bold; ">
  684. <choices>
  685. <itemset nodeset="/root/init/cmb_info/initexecrid1">
  686. <label ref="execrid1cdnm"/>
  687. <value ref="execrid1cdid"/>
  688. </itemset>
  689. </choices>
  690. <script type="javascript" ev:event="xforms-select">
  691. <![CDATA[
  692. var Curtime = getCurrentTime();
  693. model.setValue("/root/send/data/nitdutyid" , model.getValue("/root/send/data/evenextid"));
  694. model.setValue("/root/send/data/evewritm", Curtime );
  695. model.refresh();
  696. ]]>
  697. </script>
  698. </select1>
  699. <input id="input5" ref="/root/send/data/evewritm" format="hh:nn:ss" style="left:1023px; top:444px; width:100px; height:19px; "/>
  700. <shape id="rectangle4" appearance="rectangle" style="left:599px; top:671px; width:530px; height:30px; border-color:#d2d2d2; "/>
  701. <caption id="caption6" class="cell_1" style="left:785px; top:676px; width:60px; height:19px; text-align:center; vertical-align:middle; ">인계자 :</caption>
  702. <caption id="caption7" class="cell_1" style="left:955px; top:676px; width:65px; height:19px; text-align:center; vertical-align:middle; ">인계시간 :</caption>
  703. <caption id="caption8" class="cell_1" style="left:605px; top:676px; width:60px; height:19px; text-align:center; vertical-align:middle; ">근무자 :</caption>
  704. <select1 id="cmb_nitdutyid" ref="/root/send/data/nitdutyid" class="combo_search" appearance="minimal" style="left:669px; top:676px; width:110px; height:19px; font-weight:bold; ">
  705. <choices>
  706. <itemset nodeset="/root/init/cmb_info/initexecrid1">
  707. <label ref="execrid1cdnm"/>
  708. <value ref="execrid1cdid"/>
  709. </itemset>
  710. </choices>
  711. </select1>
  712. <select1 id="cmb_nitnextid" ref="/root/send/data/nitnextid" class="combo_search" appearance="minimal" style="left:850px; top:676px; width:100px; height:19px; font-weight:bold; ">
  713. <choices>
  714. <itemset nodeset="/root/init/cmb_info/initexecrid1">
  715. <label ref="execrid1cdnm"/>
  716. <value ref="execrid1cdid"/>
  717. </itemset>
  718. </choices>
  719. <script type="javascript" ev:event="xforms-select">
  720. <![CDATA[
  721. var Curtime = getCurrentTime();
  722. model.setValue("/root/send/data/nitwritm", Curtime );
  723. model.refresh();
  724. ]]>
  725. </script>
  726. </select1>
  727. <input id="input8" ref="/root/send/data/nitwritm" format="hh:nn:ss" style="left:1024px; top:676px; width:100px; height:19px; "/>
  728. <button id="button1" class="btn3_letter2" navindex="5" style="left:1071px; top:705px; width:56px; height:22px; ">
  729. <caption>출력</caption>
  730. <script type="javascript" ev:event="DOMActivate">
  731. <![CDATA[
  732. model.makeNode("/root/rexprnt/daydutylist");
  733. model.copyNode("/root/rexprnt/daydutylist" , "/root/send/data");
  734. model.setValue("/root/rexprnt/daydutylist/srchexecroom", cmb_exroom.label );
  735. model.setValue("/root/rexprnt/daydutylist/suppdeptcd", getUserInfo("dutplcenm"));
  736. model.setValue("/root/rexprnt/daydutylist/instcd", getUserInfo("dutplceinstcd"));
  737. var execridCnt = getNodesetCount("/root/init/cmb_info/initexecrid1");
  738. for(var a = 1 ; a <= execridCnt; a++){
  739. if(model.getValue("/root/send/data/daydutyid") == model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdid")){
  740. model.setValue("/root/rexprnt/daydutylist/daydutyid", model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdnm"));
  741. }
  742. if(model.getValue("/root/send/data/evedutyid") == model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdid")){
  743. model.setValue("/root/rexprnt/daydutylist/evedutyid", model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdnm"));
  744. }
  745. if(model.getValue("/root/send/data/nitdutyid") == model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdid")){
  746. model.setValue("/root/rexprnt/daydutylist/nitdutyid", model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdnm"));
  747. }
  748. if(model.getValue("/root/send/data/daynextid") == model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdid")){
  749. model.setValue("/root/rexprnt/daydutylist/daynextid", model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdnm"));
  750. }
  751. if(model.getValue("/root/send/data/evenextid") == model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdid")){
  752. model.setValue("/root/rexprnt/daydutylist/evenextid", model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdnm"));
  753. }
  754. if(model.getValue("/root/send/data/nitnextid") == model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdid")){
  755. model.setValue("/root/rexprnt/daydutylist/nitnextid", model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdnm"));
  756. }
  757. }
  758. exeReportPreview("RPAEA06000", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  759. ]]>
  760. </script>
  761. </button>
  762. <datagrid id="datagrid3" nodeset="/root/init/calenlist/calendinfo" visibility="hidden" caption="caption1^caption2" colsep="^" colwidth="100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:355px; top:550px; width:220px; height:150px; ">
  763. <col ref="basedd"/>
  764. <col ref="dutflag"/>
  765. </datagrid>
  766. <button id="button18" class="icon_month" style="left:369px; top:83px; width:27px; height:27px; ">
  767. <caption>9</caption>
  768. <script type="javascript" ev:event="DOMActivate">
  769. <![CDATA[
  770. if(opt_month.value!== "09") {
  771. fGetCalendar("09");
  772. }
  773. ]]>
  774. </script>
  775. </button>
  776. <button id="button19" class="icon_month" style="left:399px; top:83px; width:27px; height:27px; ">
  777. <caption>10</caption>
  778. <script type="javascript" ev:event="DOMActivate">
  779. <![CDATA[
  780. if(opt_month.value!== "10") {
  781. fGetCalendar("10");
  782. }
  783. ]]>
  784. </script>
  785. </button>
  786. <button id="button7" class="icon_month" style="left:129px; top:83px; width:27px; height:27px; ">
  787. <caption>1</caption>
  788. <script type="javascript" ev:event="DOMActivate">
  789. <![CDATA[
  790. if(opt_month.value!== "01") {
  791. fGetCalendar("01");
  792. }
  793. ]]>
  794. </script>
  795. </button>
  796. <button id="button8" class="icon_month" style="left:159px; top:83px; width:27px; height:27px; ">
  797. <caption>2</caption>
  798. <script type="javascript" ev:event="DOMActivate">
  799. <![CDATA[
  800. if(opt_month.value!== "02") {
  801. fGetCalendar("02");
  802. }
  803. ]]>
  804. </script>
  805. </button>
  806. <button id="button9" class="icon_month" style="left:189px; top:83px; width:27px; height:27px; ">
  807. <caption>3</caption>
  808. <script type="javascript" ev:event="DOMActivate">
  809. <![CDATA[
  810. if(opt_month.value!== "03") {
  811. fGetCalendar("03");
  812. }
  813. ]]>
  814. </script>
  815. </button>
  816. <button id="button20" class="icon_month" style="left:429px; top:83px; width:27px; height:27px; ">
  817. <caption>11</caption>
  818. <script type="javascript" ev:event="DOMActivate">
  819. <![CDATA[
  820. if(opt_month.value!== "11") {
  821. fGetCalendar("11");
  822. }
  823. ]]>
  824. </script>
  825. </button>
  826. <button id="button21" class="icon_month" style="left:459px; top:83px; width:27px; height:27px; ">
  827. <caption>12</caption>
  828. <script type="javascript" ev:event="DOMActivate">
  829. <![CDATA[
  830. if(opt_month.value!== "12") {
  831. fGetCalendar("12");
  832. }
  833. ]]>
  834. </script>
  835. </button>
  836. <button id="button10" class="icon_month" style="left:219px; top:83px; width:27px; height:27px; ">
  837. <caption>4</caption>
  838. <script type="javascript" ev:event="DOMActivate">
  839. <![CDATA[
  840. if(opt_month.value!== "04") {
  841. fGetCalendar("04");
  842. }
  843. ]]>
  844. </script>
  845. </button>
  846. <button id="button11" class="icon_month" style="left:249px; top:83px; width:27px; height:27px; ">
  847. <caption>5</caption>
  848. <script type="javascript" ev:event="DOMActivate">
  849. <![CDATA[
  850. if(opt_month.value!== "05") {
  851. fGetCalendar("05");
  852. }
  853. ]]>
  854. </script>
  855. </button>
  856. <button id="button12" class="icon_month" style="left:279px; top:83px; width:27px; height:27px; ">
  857. <caption>6</caption>
  858. <script type="javascript" ev:event="DOMActivate">
  859. <![CDATA[
  860. if(opt_month.value!== "06") {
  861. fGetCalendar("06");
  862. }
  863. ]]>
  864. </script>
  865. </button>
  866. <button id="button13" class="icon_month" style="left:309px; top:83px; width:27px; height:27px; ">
  867. <caption>7</caption>
  868. <script type="javascript" ev:event="DOMActivate">
  869. <![CDATA[
  870. if(opt_month.value!== "07") {
  871. fGetCalendar("07");
  872. }
  873. ]]>
  874. </script>
  875. </button>
  876. <button id="button14" class="icon_month" style="left:339px; top:83px; width:27px; height:27px; ">
  877. <caption>8</caption>
  878. <script type="javascript" ev:event="DOMActivate">
  879. <![CDATA[
  880. if(opt_month.value!== "08") {
  881. fGetCalendar("08");
  882. }
  883. ]]>
  884. </script>
  885. </button>
  886. <datagrid id="datagrid1" nodeset="/root/main/monthdutylist/item" visibility="hidden" caption="caption1^caption2^caption3" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:110px; top:555px; width:195px; height:135px; ">
  887. <col ref="repodd" visibility="hidden"/>
  888. <col ref="dutyrepyn"/>
  889. </datagrid>
  890. </group>
  891. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">업무일지관리</caption>
  892. <!--datagrid id="datagrid1" nodeset="/root/main/TestList/schedule" scroll="vertical" caption="구분^내용" colwidth="199, 463" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:25px; top:570px; width:675px; height:140px; ">
  893. <col ref="gubun"/>
  894. <col ref="desc"/>
  895. </datagrid-->
  896. </xhtml:body>
  897. </xhtml:html>