123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455 |
- <?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>
- <list>
- <duttemplist/>
- <dutlist/>
- </list>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <emplno/>
- <emplnm/>
- <dutym/>
- <dutunitcd/>
- <dutunitnm/>
- <deptpryn/>
- </retrparams>
- <tempnode>
- <flag/>
- <emplno/>
- <name/>
- </tempnode>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <submission id="TRRPD10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- var STATUS_CURRENT = 0;
- var STATUS_PREV = 1;
- var STATUS_NEXT = 2;
- var DUT_UNIT_CD = "";
- var DUT_UNIT_NM = "";
- function fInit()
- {
- model.removenode("/root/main/list/dutlist");
-
- misfMsterDetailSet(grd_dutlist, null, "TRRPD10201", "N");
-
- model.setValue("/root/send/retrparams/dutym", getCurrentDate().substr(0, 6));
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- misfGetAndSetUserInfo();
- misfGetUserAuth();
-
- rpdfSetControlAuth();
- rpdfComboCdList(cmb_dutplce); // 권한별 근무부서 세팅
- rpdfSetDutUnitCombo();
-
- model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/retrparams/emplno", getUserInfo("userid"));
- model.setValue("/root/send/retrparams/emplnm", getUserInfo("usernm"));
- //model.setValue("/root/send/retrparams/dutunitcd", DUT_UNIT_CD);
- //model.setValue("/root/send/retrparams/dutunitnm", DUT_UNIT_NM);
- model.setValue("/root/send/retrparams/deptpryn", "N");
- model.setValue("/root/send/tempnode/emplno", getUserInfo("userid"));
- //화면 권한 설정
- btn_search.disabled = !(checkAuth("R"));
- rpdfSetControlByJobRespCd("ipt_emplno,ipt_emplnm,btn_emplhelp,chk_deptpr");
- model.refresh();
- }
-
- function fRetrieve()
- {
- if(chk_deptpr.value != 1 && (ipt_emplno.value == "" || ipt_emplnm.value == ""))
- {
- messageBox("사원번호를 입력하십시오", "I999");
- return;
- }
-
- model.removeNodeset("/root/main/list/dutlist");
- model.refresh();
-
- submit("TRRPD10201");
- fSetWorkList(STATUS_CURRENT);
- }
-
- function fSetWorkList(sStatus)
- {
- var sEmplno
- var iFindidx
- sEmplno = model.getValue("/root/send/tempnode/emplno");
- iFindidx = grd_temp.findRow(sEmplno, 1, grd_temp.colRef("emplno"));
- if(iFindidx == -1) iFindidx = 1
- for(var i=iFindidx; i<grd_temp.rows; i++)
- {
- var sCurEmplno = grd_temp.valueMatrix(i, grd_temp.colRef("emplno"));
- if(sEmplno != sCurEmplno) return;
- misfGridIUD(grd_dutlist, "A");
- misfGridIUD(grd_dutlist, "A");
- for(var j=1; j<grd_temp.cols-1; j++)
- {
- if((j % 2) == 1)
- {
- grd_dutlist.valueMatrix(((i - (iFindidx - 1)) * 2) - 1, Math.round(j/2) - 1) = grd_temp.valueMatrix(i, j);
- grd_dutlist.cellStyle("background-color", ((i - (iFindidx - 1)) * 2) - 1, Math.round(j/2) - 1) = "#DDDDDD";
- grd_dutlist.cellStyle("font-weight", ((i - (iFindidx - 1)) * 2) - 1, Math.round(j/2) - 1) = "bold";
- grd_dutlist.cellStyle("border-left-color", ((i - (iFindidx - 1)) * 2) - 1, Math.round(j/2) - 1) = "#000000";
- grd_dutlist.cellStyle("border-right-color", ((i - (iFindidx - 1)) * 2) - 1, Math.round(j/2) - 1) = "#DDDDDD";
- grd_dutlist.cellStyle("border-bottom-color", ((i - (iFindidx - 1)) * 2) - 1, Math.round(j/2) - 1) = "#DDDDDD";
- if(j == 1)
- {
- grd_dutlist.cellStyle("border-left-color", ((i - (iFindidx - 1)) * 2) - 1, Math.round(j/2) - 1) = "#DDDDDD";
- grd_dutlist.cellStyle("color", ((i - (iFindidx - 1)) * 2) - 1, Math.round(j/2) - 1) = "#FF0000";
- }
- else if(j == (grd_temp.cols - 2))
- {
- grd_dutlist.cellStyle("color", ((i - (iFindidx - 1)) * 2) - 1, Math.round(j/2) - 1) = "#0000FF";
- grd_dutlist.cellStyle("border-left-color", ((i - (iFindidx - 1)) * 2) - 1, Math.round(j/2) - 1) = "#000000";
- }
- }
- else
- {
- grd_dutlist.valueMatrix(((i - (iFindidx - 1)) * 2), j/2-1) = grd_temp.valueMatrix(i, j);
- grd_dutlist.cellStyle("border-left-color", ((i - (iFindidx - 1)) * 2), Math.round(j/2) - 1) = "#000000";
- grd_dutlist.cellStyle("border-right-color", ((i - (iFindidx - 1)) * 2), Math.round(j/2) - 1) = "#DDDDDD";
- grd_dutlist.cellStyle("border-bottom-color", ((i - (iFindidx - 1)) * 2), Math.round(j/2) - 1) = "#000000";
- if(j == 2)
- {
- grd_dutlist.cellStyle("border-left-color", ((i - (iFindidx - 1)) * 2), Math.round(j/2) - 1) = "#DDDDDD";
- }
- else if(j == (grd_temp.cols - 1))
- {
- grd_dutlist.cellStyle("border-right-color", ((i - (iFindidx - 1)) * 2), Math.round(j/2) - 1) = "#DDDDDD";
- }
- }
- }
- }
- }
- function fPrint()
- {
- exeReportPreview("RPRPD10201", "XMLSTR");
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="600" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <datagrid id="grd_temp" nodeset="/root/main/list/duttemplist" visibility="hidden" caption="이름^일^일^월^월^화^화^수^수^목^목^금^금^토^토^사원번호" colsep="^" colwidth="120, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 60" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="0" rowsep="|" style="left:794px; top:15px; width:397px; height:200px; ">
- <col ref="name"/>
- <col ref="sun1"/>
- <col ref="sun2"/>
- <col ref="mon1"/>
- <col ref="mon2"/>
- <col ref="tue1"/>
- <col ref="tue2"/>
- <col ref="wed1"/>
- <col ref="wed2"/>
- <col ref="thu1"/>
- <col ref="thu2"/>
- <col ref="fri1"/>
- <col ref="fri2"/>
- <col ref="sat1"/>
- <col ref="sat2"/>
- <col ref="emplno"/>
- </datagrid>
- <group id="group1" style="left:381px; top:429px; width:387px; height:25px; vertical-align:top; "/>
- <button id="button1" class="btn6_letter3" visibility="hidden" style="left:380px; top:432px; width:68px; height:22px; ">
- <caption>테스트</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_temp.attribute("visibility") == "visible")
- {
- grd_temp.attribute("visibility") = "hidden";
- }
- else
- {
- grd_temp.attribute("visibility") = "visible";
- }
- ]]>
- </script>
- </button>
- <group id="group4" style="left:383px; top:40px; width:386px; height:106px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:386px; height:106px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:15px; top:79px; width:86px; height:17px; ">사원번호 :</caption>
- <line id="line3" class="line_4" style="x1:315px; y1:10px; x2:315px; y2:102px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_emplno" ref="/root/send/retrparams/emplno" class="input_search" style="left:102px; top:79px; width:71px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_emplno.value == ipt_emplno.currentText) return;
-
- ipt_emplno.value = ipt_emplno.currentText;
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_emplhelp" class="icon_search" style="left:177px; top:80px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N");
- model.refresh();
- ]]>
- </script>
- </button>
- <select id="chk_deptpr" ref="/root/send/tempnode/flag" overflow="visible" appearance="full" style="left:206px; top:33px; width:101px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>근무부서전체</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(chk_deptpr.value == "1")
- {
- model.setValue("/root/send/retrparams/emplno", "");
- model.setValue("/root/send/retrparams/emplnm", "");
- model.setValue("/root/send/retrparams/deptpryn", "Y");
- // ipt_emplno.disabled = true;
- // ipt_emplnm.disabled = true;
- // btn_emplhelp.disabled = true;
- }
- else
- {
- model.setValue("/root/send/retrparams/emplno", getUserInfo("userid"));
- model.setValue("/root/send/retrparams/emplnm", getUserInfo("usernm"));
- model.setValue("/root/send/retrparams/deptpryn", "N");
- // ipt_emplno.disabled = false;
- // ipt_emplnm.disabled = false;
- // btn_emplhelp.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <caption id="caption2" class="search_name" style="left:15px; top:32px; width:86px; height:17px; ">근무년월 :</caption>
- <input id="ipt_dutym" ref="/root/send/retrparams/dutym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:102px; top:31px; width:96px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_dutym.value) == "6" ) {
- model.removeNodeset(cmb_instcd.attribute("ref"));
- model.makeNode("/root/send/retrparams/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","N");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="opt_dutdeptcd" ref="/root/send/retrparams/unitcd" class="output_fix" disabled="true" navindex="2" visibility="hidden" style="left:271px; top:83px; width:42px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:323px; top:41px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
-
- ]]>
- </script>
- </button>
- <input id="ipt_emplnm" ref="/root/send/retrparams/emplnm" class="input_search" style="left:196px; top:79px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_emplnm.value == ipt_emplnm.currentText) return;
- ipt_emplnm.value = ipt_emplnm.currentText;
- rpbfValidationCheck("EMPLNM", "emplno,emplnm");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:102px; top:8px; width:209px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">소속기관 :</caption>
- <button id="btn_dutdept" class="icon_search" style="left:177px; top:57px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:15px; top:56px; width:92px; height:17px; ">관리부서 :</caption>
- <input id="ipt_dutdeptnm" ref="/root/send/retrparams/dutunitnm" class="input_search" navindex="3" style="left:196px; top:55px; width:115px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_dutdeptcd" ref="/root/send/retrparams/dutunitcd" class="input_search" navindex="2" maxlength="10" style="left:102px; top:55px; width:71px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_dutplce" ref="/root/send/retrparams/dutunitcd" class="combo_search" visibility="visible" appearance="minimal" editmode="inputsearch" style="left:102px; top:55px; width:209px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:383px; y1:170px; x2:769px; y2:170px; "/>
- <caption id="caption9" class="tit_2" style="left:388px; top:154px; width:139px; height:13px; ">근무 스케줄</caption>
- <shape id="rectangle1" appearance="rectangle" style="left:355px; top:15px; width:440px; height:465px; "/>
- <button id="btn_print" class="btn6_letter2" style="left:715px; top:432px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrint();
- ]]>
- </script>
- </button>
- <datagrid id="grd_dutlist" nodeset="/root/main/list/dutlist" backcoloralternate="transparent" caption="일^월^화^수^목^금^토" colsep="^" colwidth="55, 55, 55, 55, 55, 55, 55" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="0" rowsep="|" style="left:382px; top:175px; width:387px; height:255px; border-left-color:#000000; border-top-color:#000000; border-right-color:#000000; border-bottom-color:#000000; ">
- <col ref="sun1" style="text-align:center; "/>
- <col ref="mon1" style="text-align:center; "/>
- <col ref="tue1" style="text-align:center; "/>
- <col ref="wed1" style="text-align:center; "/>
- <col ref="thu1" style="text-align:center; "/>
- <col ref="fri1" style="text-align:center; "/>
- <col ref="sat1" style="text-align:center; "/>
- </datagrid>
- <output id="opt_emplno" ref="/root/send/tempnode/emplno" visibility="hidden" style="left:704px; top:148px; width:65px; height:19px; "/>
- <line id="line2" class="line_6" style="x1:382px; y1:431px; x2:768px; y2:431px; "/>
- </xhtml:body>
- </xhtml:html>
|