123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>업무일지관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <daydutylist>
- <item/>
- </daydutylist>
- <monthdutylist>
- <item/>
- </monthdutylist>
- </main>
- <send>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <data>
- <srchdaycmt/>
- <srchevecmt/>
- <srchnigtcmt/>
- <srchexcuroomgrp/>
- <srchexecroom/>
- <srchrepodd/>
- <daydutyid/>
- <daynextid/>
- <daywritm/>
- <evedutyid/>
- <evenextid/>
- <evewritm/>
- <nitdutyid/>
- <nitnextid/>
- <nitwritm/>
- <suppdeptcd/>
- <excuroomgrpcdid/>
- <instcd/>
- </data>
- <rsrvdd/>
- </send>
- <hidden>
- <calendar>
- <year/>
- <month/>
- <weeklist>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_memo/>
- <mon_memo/>
- <tue_memo/>
- <wed_memo/>
- <thu_memo/>
- <fri_memo/>
- <sat_memo/>
- </list>
- </weeklist>
- </calendar>
- <item>
- <count/>
- </item>
- <grdcellcolor>
- <calrow/>
- <calcol/>
- <bfcalrow/>
- <bfcalcol/>
- <color/>
- </grdcellcolor>
- </hidden>
- <init>
- <calenlist>
- <calendinfo/>
- </calenlist>
- </init>
- <temp/>
- <rexprnt/>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TRAEA02012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/calenlist"/>
- <bind id="bind1" ref="/root/main/patprcpspeclist/patinfolist/apntdrid" readonly="../apntdrid!=''"/>
- <bind id="bind2" ref="/root/main/patprcpspeclist/patinfolist/atdoctid" readonly="../atdoctid!=''"/>
- <submission id="TXAEA06000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/temp"/>
- <submission id="TRAEA06000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/daydutylist"/>
- <submission id="TRAEA01306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info2"/>
- <submission id="TRAEA06010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="root/main/monthdutylist"/>
- </model>
- <!--공통으로 사용되는 스크립트 추가 dateHelper-->
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <!--session 정보를 가져오는 스크립트 반드시 포함시켜야 함(검사실에 한정).-->
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <!--화면 로딩시 이벤트 시작-->
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- model.setValue("/root/send/data/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
-
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
-
- // 구분 정보
- submit("TRAEA01301");
-
- // 검사실 Combo박스 전체추가
- addComboItem("cmb_exroom", "-- 전체 --", "", "above");
- model.setValue("/root/hidden/grdcellcolor/color", "1");
- initCalendar();
- // setCellColor(grd_calendar);
- grd_calendar.dataHeight = 50;
-
- //화면에 마지막으로 저장된 구분값 넘겨주기.
- var excuroomgrp = model.property("excuroomgrp");
- if (excuroomgrp != "") {
- model.setValue("/root/send/data/srchexcuroomgrp" , excuroomgrp );
- }else{
- cmb_excuroomgrp.select(0);
- }
- var excuroom = model.property("excuroom");
- if (excuroom != "") {
- model.setValue("/root/send/data/srchexecroom" , excuroom);
- }else{
- cmb_exroom.select(0);
- }
-
- model.refresh();
- ]]>
- </script>
- <!--Body에서 사용되는 Script-->
- <script type="javascript">
- <![CDATA[
-
- function initCalendar() {
-
- var curDate = getCurrentDate().toDate().getDateFormat('YYYYMM');
-
- model.setValue("/root/hidden/calendar/year", getCurrentDate().toDate().getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", getCurrentDate().toDate().getDateFormat('MM'));
- // alert(model.getValue("/root/hidden/calendar/year") + " / " + model.getValue("/root/hidden/calendar/month"));
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
-
- grd_calendar.rebuild();
-
- var dateObj = (curDate+"01").toDate();
- dateObj.setDate(1);
-
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- for( var i = 0; i < rows; i++ )
- grd_calendar.addRow(false);
-
- grd_calendar.rebuild();
-
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0.0";
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
-
-
- // 현재일자 색상 표시
- setCurrentDate(grd_calendar);
-
- fCalendar();
-
- }
-
- /* @group : 통합예약관리
- * @ver : 2007.08.10
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 오늘날짜 달력에 표시
- */
-
- function setCurrentDate() {
-
- var curDate = getCurrentDate().substr(6,2); //오늘날짜
- var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
- if(curDate <10) {
- curDate= curDate.substr(1,1);
- }
-
- if(curWeek == "sun")
- model.setValue("/root/hidden/grdcellcolor/calcol",0);
- if(curWeek == "mon")
- model.setValue("/root/hidden/grdcellcolor/calcol",1);
- if(curWeek == "tue")
- model.setValue("/root/hidden/grdcellcolor/calcol",2);
- if(curWeek == "wed")
- model.setValue("/root/hidden/grdcellcolor/calcol",3);
- if(curWeek == "thu")
- model.setValue("/root/hidden/grdcellcolor/calcol",4);
- if(curWeek == "fri")
- model.setValue("/root/hidden/grdcellcolor/calcol",5);
- if(curWeek == "sat")
- model.setValue("/root/hidden/grdcellcolor/calcol",6);
-
- for(var i = 0 ; i <grd_calendar.rows; i++ ) {
- if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
- model.setValue("/root/hidden/grdcellcolor/calrow",i);
-
- }
- }
-
- setCellColor(grd_calendar);
- }
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택날짜 색 주기
- */
-
- function setCellColor(gridObj) {
-
- var calRow = 0; //현재선택
- var calCol = 0; //현재선택
- var bfcalRow = 0; //전에 선택
- var bfcalCol = 0; //전에 선택
-
- var white = 1; //#ffffff
- var green = 2; //#c4e693
-
-
- calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
- calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
-
- bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
- bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
-
-
- // 1. 원래 색으로 돌려놓기
- if(model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
-
- if( bfcalCol < 7 )
- bfcalCol += 7;
- else
- bfcalCol -= 7;
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
- }
- else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
-
- if( bfcalCol < 7 )
- bfcalCol += 7;
- else
- bfcalCol -= 7;
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
- }
-
-
- // 2. bf 인스턴스에 선택한 원래 셀 담아두기
-
- if(gridObj.cellStyle("background-color", calRow, calCol) == "#ffffff" ) {
- model.setValue("/root/hidden/grdcellcolor/color", "1");
- }
- if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
- model.setValue("/root/hidden/grdcellcolor/color", "2");
- }
- model.setValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
- model.setValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
- //alert("인스턴스 : "+model.getValue("/root/hidden/grdcellcolor/color"));
-
- // 3. 선택한 셀에 보라색 주기
-
-
- // gridObj.rebuildStyle();
-
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
- if( calCol < 7 )
- calCol += 7;
- else
- calCol -= 7;
-
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
- // 현재일자 색상 표시 2011.07.20 by kya
- var curdate = getCurrentDate();
- var caldate = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month");
- var curday = curdate.substring(6,8);
- var calday = "";
-
- if ( curdate.substring(0,6) == caldate ) {
- for (i=0; i<gridObj.rows; i++) {
- for (j=0; j<gridObj.cols; j++) {
- calday = gridObj.valueMatrix(i,j);
- if (eval(curday) == calday) {
- calRow = i;
- calCol =j;
- // 현재일자 색상 표시
- gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
-
- if ( calCol < 7 ) {
- calCol += 7;
- } else {
- calCol -= 7;
- }
- gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
- }
- }
- }
- }
- }
-
- function setCalendar(dateObj) {
-
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- /// model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
-
- grd_calendar.refresh();
-
- dateObj.setDate(1);
-
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- /*
- for( var i = 0; i < rows; i++ )
- grd_calendar.addRow(false);
-
- grd_calendar.rebuild();
- */
- if (rows != grd_calendar.rows - 1){
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- for( var i = 0; i < rows; i++ ){
- grd_calendar.addRow(false);
- }
- }else{
- model.setValue("/root/hidden/calendar/weeklist/list", "");
- }
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0.0";
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
- fCalendar();
-
- }
-
- function fCalendar(){
-
- if( model.getValue("/root/hidden/calendar/year") == "" || model.getValue("/root/hidden/calendar/month") =="" ){
- model.setValue("/root/hidden/calendar/year", getCurrentDate().toDate().getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", getCurrentDate().toDate().getDateFormat('MM'));
- }
-
- model.setValue("/root/send/rsrvdd", model.getValue("/root/hidden/calendar/year" )+ model.getValue("/root/hidden/calendar/month") );
-
- if (submit("TRAEA02012")){
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- var startDay = isDate.getDay();
-
-
- for (var i = 1; i < datagrid3.rows; i++) {
- var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
-
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- // alert("DD >" + dd + " ==colidx >" + colidx + " ==rowidx > " + rowidx + " ==basedd> " + model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd"));
- if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "8"){
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "red";
- }else if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "4"){
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "blue";
- }else{
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "black";
- }
-
-
-
-
- }
- }
- grd_calendar.refresh();
- }
-
- function fGetCalendar(arg)
- {
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- if(model.getValue("/root/hidden/calendar/month") < arg) {
- var num = arg- isMonth ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
- }
-
- if(model.getValue("/root/hidden/calendar/month") > arg) {
- var num = isMonth - arg ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
- }
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
-
- setCalendar(isDate);
-
- fReport();
-
- // 현재일자 색상 표시
- setCurrentDate(grd_calendar);
- model.refresh();
- }
-
- //2011.08.11 by kya
- function fReport() {
- //업무일지여부확인 2011.08.10 by kya
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var dd = isYear+isMonth+"01"
- var isDate = dd.toDate();
- var startDay = isDate.getDay();
- // alert("startDay = " + startDay + " ----------- isDate = " + isDate + " ------------startDay = " + startDay );
-
- model.setValue("/root/send/data/srchrepodd", dd );
- submit("TRAEA06010");
-
- for (var i = 1; i < datagrid1.rows; i++) {
- var dd = model.getValue("/root/main/monthdutylist/item[" + i + "]/repodd");
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
-
- grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" scroll="auto" style="left:8px; top:20px; width:1145px; height:735px; ">
- <caption id="caption25" class="tit_2" style="left:599px; top:247px; width:77px; height:13px; ">EVENING</caption>
- <caption id="caption26" class="tit_2" style="left:600px; top:481px; width:82px; height:13px; ">NIGHT</caption>
- <caption id="caption28" class="tit_2" style="left:600px; top:5px; width:111px; height:13px; ">DAY</caption>
- <line id="line14" class="line_1" style="x1:599px; y1:23px; x2:1128px; y2:22px; "/>
- <line id="line20" class="line_1" style="x1:598px; y1:265px; x2:1127px; y2:264px; "/>
- <line id="line21" class="line_1" style="x1:599px; y1:498px; x2:1128px; y2:497px; "/>
- <group id="grp_calendar" scroll="auto" style="left:10px; top:50px; width:575px; height:70px; ">
- <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:575px; height:70px; "/>
- <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; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- fCalendar();
- setCalendar(isDate);
- ]]>
- </script>
- </button>
- <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; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- fCalendar();
- setCalendar(isDate);
- ]]>
- </script>
- </button>
- <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; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- fCalendar();
- setCalendar(isDate);
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:235px; top:9px; width:30px; height:19px; "/>
- <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:285px; top:9px; width:30px; height:19px; "/>
- <caption id="caption15" class="calendar_output" style="left:265px; top:9px; width:20px; height:19px; ">년</caption>
- <caption id="caption18" class="calendar_output" style="left:315px; top:9px; width:20px; height:19px; ">월</caption>
- <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; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- fCalendar();
- setCalendar(isDate);
- ]]>
- </script>
- </button>
- </group>
- <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; ">
- <col class="color_sun" ref="sun"/>
- <col ref="mon"/>
- <col ref="tue"/>
- <col ref="wed"/>
- <col ref="thu"/>
- <col ref="fri"/>
- <col class="color_sat" ref="sat"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var calRow = grd_calendar.row;
- var calCol = grd_calendar.col;
-
-
- var yyyy = model.getValue("/root/hidden/calendar/year");
- var mm = model.getValue("/root/hidden/calendar/month");
- var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + grd_calendar.colAttribute(calCol, "ref"));
-
- if (getStringLength(dd) == 1) {
- dd = "0" + dd;
- }
-
- model.setValue("/root/send/data/srchrepodd", yyyy + mm + dd);
- // alert(model.getValue("/root/send/data/srchrepodd"));
-
- model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
- model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
- setCellColor(grd_calendar);
- if( model.getValue("/root/send/data/srchexecroom") != "" ){
- if(submit("TRAEA06000")){
- model.setValue("/root/send/data/daydutyid", model.getValue("/root/main/daydutylist/item/daydutyid"));
- model.setValue("/root/send/data/daynextid", model.getValue("/root/main/daydutylist/item/daynextid"));
- model.setValue("/root/send/data/daywritm", model.getValue("/root/main/daydutylist/item/daywritm"));
- model.setValue("/root/send/data/srchdaycmt", model.getValue("/root/main/daydutylist/item/daycomment"));
- model.setValue("/root/send/data/evedutyid", model.getValue("/root/main/daydutylist/item/evedutyid"));
- model.setValue("/root/send/data/evenextid", model.getValue("/root/main/daydutylist/item/evenextid"));
- model.setValue("/root/send/data/evewritm", model.getValue("/root/main/daydutylist/item/evewritm"));
- model.setValue("/root/send/data/srchevecmt", model.getValue("/root/main/daydutylist/item/evecomment"));
- model.setValue("/root/send/data/nitdutyid", model.getValue("/root/main/daydutylist/item/nitdutyid"));
- model.setValue("/root/send/data/nitnextid", model.getValue("/root/main/daydutylist/item/nitnextid"));
- model.setValue("/root/send/data/nitwritm", model.getValue("/root/main/daydutylist/item/nitwritm"));
- model.setValue("/root/send/data/srchnigtcmt", model.getValue("/root/main/daydutylist/item/nitcomment"));
- }
- }
- model.refresh();
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_save1" class="btn2_letter2" style="left:1085px; top:0px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( model.getValue("/root/send/data/srchexecroom") == ""){
- messageBox("검사실은","I003");
- return ;
- }
- if( model.getValue("/root/send/data/srchrepodd") == ""){
- messageBox("달력에서 업무일자를","C002");
- return ;
- }
-
- submit("TXAEA06000");
- ]]>
- </script>
- </button>
- <button id="btn_save2" class="btn2_letter2" style="left:1085px; top:242px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( model.getValue("/root/send/data/srchexecroom") == ""){
- messageBox("검사실은","I003");
- return ;
- }
- if( model.getValue("/root/send/data/srchrepodd") == ""){
- messageBox("달력에서 업무일자를","C002");
- return ;
- }
-
- submit("TXAEA06000");
- ]]>
- </script>
- </button>
- <button id="btn_save3" class="btn2_letter2" style="left:1085px; top:475px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( model.getValue("/root/send/data/srchexecroom") == ""){
- messageBox("검사실은","I003");
- return ;
- }
- if( model.getValue("/root/send/data/srchrepodd") == ""){
- messageBox("달력에서 업무일자를","C002");
- return ;
- }
-
- submit("TXAEA06000");
- ]]>
- </script>
- </button>
- <textarea id="textarea3" ref="/root/send/data/srchdaycmt" style="left:600px; top:30px; width:530px; height:170px; "/>
- <textarea id="textarea4" ref="/root/send/data/srchevecmt" style="left:598px; top:270px; width:530px; height:170px; "/>
- <textarea id="textarea5" ref="/root/send/data/srchnigtcmt" style="left:599px; top:502px; width:530px; height:170px; "/>
- <group id="grp_srch" style="left:0px; top:7px; width:595px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:1px; top:0px; width:589px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line16" class="line_4" style="x1:502px; y1:7px; x2:502px; y2:29px; "/>
- <button id="btn_select" class="btn1_letter2" navindex="5" style="left:515px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //월별업무일지여부가져오기 by kya
- fReport();
- grd_calendar.dispatch("onclick");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="lbl_srchdd" class="search_name" style="left:8px; top:9px; width:86px; height:17px; ">구분 :</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexcuroomgrp">
- <label ref="excuroomgrpcdnm"/>
- <value ref="excuroomgrpcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.removeNodeset("/root/init/cmb_info2/initexecroom");
- model.setValue("/root/send/data/excuroomgrpcdid", model.getValue("/root/send/data/srchexcuroomgrp") );
- if(submit("TRAEA01306")){
- model.removeNodeset("/root/init/cmb_info/initexecroom");
- var cnt = getNodesetCount("/root/init/cmb_info2/initexecroom");
- for(var i = 1 ; i<= cnt ; i++ ){
- model.makeNode("/root/init/cmb_info/initexecroom["+ i +"]");
- model.makeValue("/root/init/cmb_info/initexecroom["+ i +"]/excuroomcdid", model.getValue("/root/init/cmb_info2/initexecroom["+ i +"]/excuroomcdid"));
- model.makeValue("/root/init/cmb_info/initexecroom["+ i +"]/excuroomcdnm", model.getValue("/root/init/cmb_info2/initexecroom["+ i +"]/excuroomcdnm"));
- }
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 구분값 선택시 업무내용 Clear
- model.resetInstanceNode("/root/send/data/srchdaycmt");
- model.resetInstanceNode("/root/send/data/srchevecmt");
- model.resetInstanceNode("/root/send/data/srchnigtcmt");
- model.resetInstanceNode("/root/send/data/daydutyid");
- model.resetInstanceNode("/root/send/data/daynextid");
- model.resetInstanceNode("/root/send/data/daywritm");
- model.resetInstanceNode("/root/send/data/evedutyid");
- model.resetInstanceNode("/root/send/data/evenextid");
- model.resetInstanceNode("/root/send/data/evewritm");
- model.resetInstanceNode("/root/send/data/nitdutyid");
- model.resetInstanceNode("/root/send/data/nitnextid");
- model.resetInstanceNode("/root/send/data/nitwritm");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption22" class="search_name" style="left:167px; top:9px; width:86px; height:17px; ">검사실 :</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 구분값 선택시 업무내용 Clear
- model.resetInstanceNode("/root/send/data/srchdaycmt");
- model.resetInstanceNode("/root/send/data/srchevecmt");
- model.resetInstanceNode("/root/send/data/srchnigtcmt");
- model.resetInstanceNode("/root/send/data/daydutyid");
- model.resetInstanceNode("/root/send/data/daynextid");
- model.resetInstanceNode("/root/send/data/daywritm");
- model.resetInstanceNode("/root/send/data/evedutyid");
- model.resetInstanceNode("/root/send/data/evenextid");
- model.resetInstanceNode("/root/send/data/evewritm");
- model.resetInstanceNode("/root/send/data/nitdutyid");
- model.resetInstanceNode("/root/send/data/nitnextid");
- model.resetInstanceNode("/root/send/data/nitwritm");
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecrid1">
- <label ref="execrid1cdnm"/>
- <value ref="execrid1cdid"/>
- </itemset>
- </choices>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecrid1">
- <label ref="execrid1cdnm"/>
- <value ref="execrid1cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- var Curtime = getCurrentTime();
- model.setValue("/root/send/data/evedutyid" , model.getValue("/root/send/data/daynextid"));
- model.setValue("/root/send/data/daywritm", Curtime );
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="input2" ref="/root/send/data/daywritm" format="hh:nn:ss" style="left:1025px; top:205px; width:100px; height:20px; "/>
- <shape id="rectangle2" appearance="rectangle" style="left:600px; top:200px; width:530px; height:30px; border-color:#d2d2d2; "/>
- <caption id="caption1" class="cell_1" style="left:786px; top:205px; width:60px; height:19px; text-align:center; vertical-align:middle; ">인계자 :</caption>
- <caption id="caption2" class="cell_1" style="left:956px; top:205px; width:65px; height:19px; text-align:center; vertical-align:middle; ">인계시간 :</caption>
- <caption id="caption14" class="cell_1" style="left:606px; top:205px; width:60px; height:19px; text-align:center; vertical-align:middle; ">근무자 :</caption>
- <shape id="rectangle3" appearance="rectangle" style="left:598px; top:439px; width:530px; height:30px; border-color:#d2d2d2; "/>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecrid1">
- <label ref="execrid1cdnm"/>
- <value ref="execrid1cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:784px; top:444px; width:60px; height:19px; text-align:center; vertical-align:middle; ">인계자 :</caption>
- <caption id="caption4" class="cell_1" style="left:954px; top:444px; width:65px; height:19px; text-align:center; vertical-align:middle; ">인계시간 :</caption>
- <caption id="caption5" class="cell_1" style="left:604px; top:444px; width:60px; height:19px; text-align:center; vertical-align:middle; ">근무자 :</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecrid1">
- <label ref="execrid1cdnm"/>
- <value ref="execrid1cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var Curtime = getCurrentTime();
- model.setValue("/root/send/data/nitdutyid" , model.getValue("/root/send/data/evenextid"));
- model.setValue("/root/send/data/evewritm", Curtime );
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="input5" ref="/root/send/data/evewritm" format="hh:nn:ss" style="left:1023px; top:444px; width:100px; height:19px; "/>
- <shape id="rectangle4" appearance="rectangle" style="left:599px; top:671px; width:530px; height:30px; border-color:#d2d2d2; "/>
- <caption id="caption6" class="cell_1" style="left:785px; top:676px; width:60px; height:19px; text-align:center; vertical-align:middle; ">인계자 :</caption>
- <caption id="caption7" class="cell_1" style="left:955px; top:676px; width:65px; height:19px; text-align:center; vertical-align:middle; ">인계시간 :</caption>
- <caption id="caption8" class="cell_1" style="left:605px; top:676px; width:60px; height:19px; text-align:center; vertical-align:middle; ">근무자 :</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecrid1">
- <label ref="execrid1cdnm"/>
- <value ref="execrid1cdid"/>
- </itemset>
- </choices>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecrid1">
- <label ref="execrid1cdnm"/>
- <value ref="execrid1cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var Curtime = getCurrentTime();
- model.setValue("/root/send/data/nitwritm", Curtime );
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="input8" ref="/root/send/data/nitwritm" format="hh:nn:ss" style="left:1024px; top:676px; width:100px; height:19px; "/>
- <button id="button1" class="btn3_letter2" navindex="5" style="left:1071px; top:705px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/rexprnt/daydutylist");
- model.copyNode("/root/rexprnt/daydutylist" , "/root/send/data");
-
- model.setValue("/root/rexprnt/daydutylist/srchexecroom", cmb_exroom.label );
- model.setValue("/root/rexprnt/daydutylist/suppdeptcd", getUserInfo("dutplcenm"));
-
- model.setValue("/root/rexprnt/daydutylist/instcd", getUserInfo("dutplceinstcd"));
-
- var execridCnt = getNodesetCount("/root/init/cmb_info/initexecrid1");
- for(var a = 1 ; a <= execridCnt; a++){
- if(model.getValue("/root/send/data/daydutyid") == model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdid")){
- model.setValue("/root/rexprnt/daydutylist/daydutyid", model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdnm"));
- }
- if(model.getValue("/root/send/data/evedutyid") == model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdid")){
- model.setValue("/root/rexprnt/daydutylist/evedutyid", model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdnm"));
- }
- if(model.getValue("/root/send/data/nitdutyid") == model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdid")){
- model.setValue("/root/rexprnt/daydutylist/nitdutyid", model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdnm"));
- }
- if(model.getValue("/root/send/data/daynextid") == model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdid")){
- model.setValue("/root/rexprnt/daydutylist/daynextid", model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdnm"));
- }
- if(model.getValue("/root/send/data/evenextid") == model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdid")){
- model.setValue("/root/rexprnt/daydutylist/evenextid", model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdnm"));
- }
- if(model.getValue("/root/send/data/nitnextid") == model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdid")){
- model.setValue("/root/rexprnt/daydutylist/nitnextid", model.getValue("/root/init/cmb_info/initexecrid1["+ a + "]/execrid1cdnm"));
- }
-
- }
-
- exeReportPreview("RPAEA06000", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="basedd"/>
- <col ref="dutflag"/>
- </datagrid>
- <button id="button18" class="icon_month" style="left:369px; top:83px; width:27px; height:27px; ">
- <caption>9</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "09") {
- fGetCalendar("09");
- }
- ]]>
- </script>
- </button>
- <button id="button19" class="icon_month" style="left:399px; top:83px; width:27px; height:27px; ">
- <caption>10</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "10") {
- fGetCalendar("10");
- }
- ]]>
- </script>
- </button>
- <button id="button7" class="icon_month" style="left:129px; top:83px; width:27px; height:27px; ">
- <caption>1</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "01") {
- fGetCalendar("01");
- }
- ]]>
- </script>
- </button>
- <button id="button8" class="icon_month" style="left:159px; top:83px; width:27px; height:27px; ">
- <caption>2</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "02") {
- fGetCalendar("02");
- }
- ]]>
- </script>
- </button>
- <button id="button9" class="icon_month" style="left:189px; top:83px; width:27px; height:27px; ">
- <caption>3</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "03") {
- fGetCalendar("03");
- }
- ]]>
- </script>
- </button>
- <button id="button20" class="icon_month" style="left:429px; top:83px; width:27px; height:27px; ">
- <caption>11</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "11") {
- fGetCalendar("11");
- }
- ]]>
- </script>
- </button>
- <button id="button21" class="icon_month" style="left:459px; top:83px; width:27px; height:27px; ">
- <caption>12</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "12") {
- fGetCalendar("12");
- }
- ]]>
- </script>
- </button>
- <button id="button10" class="icon_month" style="left:219px; top:83px; width:27px; height:27px; ">
- <caption>4</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "04") {
- fGetCalendar("04");
- }
- ]]>
- </script>
- </button>
- <button id="button11" class="icon_month" style="left:249px; top:83px; width:27px; height:27px; ">
- <caption>5</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "05") {
- fGetCalendar("05");
- }
- ]]>
- </script>
- </button>
- <button id="button12" class="icon_month" style="left:279px; top:83px; width:27px; height:27px; ">
- <caption>6</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "06") {
- fGetCalendar("06");
- }
- ]]>
- </script>
- </button>
- <button id="button13" class="icon_month" style="left:309px; top:83px; width:27px; height:27px; ">
- <caption>7</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "07") {
- fGetCalendar("07");
- }
- ]]>
- </script>
- </button>
- <button id="button14" class="icon_month" style="left:339px; top:83px; width:27px; height:27px; ">
- <caption>8</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "08") {
- fGetCalendar("08");
- }
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="repodd" visibility="hidden"/>
- <col ref="dutyrepyn"/>
- </datagrid>
- </group>
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">업무일지관리</caption>
- <!--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; ">
- <col ref="gubun"/>
- <col ref="desc"/>
- </datagrid-->
- </xhtml:body>
- </xhtml:html>
|