123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357 |
- <?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>
- <grid>
- <rpvdcolglist/>
- <rpvdcovulist/>
- </grid>
- <control>
- <select/>
- <row_rpvdcolg/>
- </control>
- </main>
- <send>
- <valuyy/>
- <emplno/>
- <emplnm/>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <submission id="TRRPV06201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/rpvdcolglist"/>
- <submission id="TXRPV06201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRRPV06202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/control/row_rpvdcolg" resultref="/root/main/grid/rpvdcovulist"/>
- <submission id="TXRPV06202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/grid/rpvdcolglist" resultref="/root/temp"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- //그리드 초기화
- misfGridInit(grd_rpvdcolglist);
- misfGridInit(grd_rpvdcovulist);
-
- misfMsterDetailSet(grd_rpvdcolglist, null, "TRRPV06201", "Y"); // 동료 평가 피평가자 List
- misfMsterDetailSet(grd_rpvdcovulist, null, "TRRPV06202", "Y"); // 핵심 역량 평가 List
-
- // 현재 년도 설정.
- model.setValue(ipt_valuyy.attribute("ref"), getCurrentDate().toDate().getDateFormat("YYYY"));
-
- // 기본 값 설정.
- model.setValue(ipt_emplno.attribute("ref"), getUserInfo("userid")); // 사번
- model.setValue(ipt_emplnm.attribute("ref"), getUserInfo("usernm")); // 이름
-
- rpvfComboValuCdList(ipt_valuyy.value , "PROCSTAT,ABLTYDEFINECD,VALUSCORBIZ", "grd_rpvdcolglist.procstat,grd_rpvdcovulist.abltydefinecd,grd_rpvdcovulist.colegvaluescor");
-
- btn_lastcnfmyn.disabled = true;
- btn_make.disabled = true;
-
-
- // 평가기간에 따른 권한 부여.
- if(model.getValue("/root/temp/trgtflag") != ""){
- // rpvfCheckDayFlag(getCurrentDate().toDate().getDateFormat("YYYY"), getUserInfo("userid"), model.getValue("/root/temp/trgtflag"), model.getValue("/root/temp/program"),"btn_lastcnfmyn,btn_save,btn_make");
- }else{
- // rpvfCheckDayFlag(getCurrentDate().toDate().getDateFormat("YYYY"), getUserInfo("userid"), "03", "SMRPV06200", "btn_lastcnfmyn,btn_save,btn_make");
- }
-
- //화면 권한 설정
- //btn_save.disabled = !(checkAuth("X"));
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">동료 평가</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0; top:10; width:1195; height:35px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(!isRequiredControls("ipt_valuyy")) return;
- if(!isRequiredControls("ipt_emplno")) return;
-
- misfGridInit(grd_rpvdcovulist);
-
- submit("TRRPV06201");
-
- // 조회 내용이 있을시..
- if(grd_rpvdcolglist.rows != grd_rpvdcolglist.fixedRows)
- {
- grd_rpvdcolglist.row = grd_rpvdcolglist.fixedRows;
- grd_rpvdcolglist.dispatch("onrowchanged");
-
- btn_lastcnfmyn.disabled = false;
- btn_make.disabled = false;
-
-
-
- grd_rpvdcolglist.select(grd_rpvdcolglist.row, grd_rpvdcolglist.fixedCols+2) = true;
- }else
- {
- btn_lastcnfmyn.disabled = true;
- btn_make.disabled = true;
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
- <datagrid id="grd_rpvdcovulist" nodeset="/root/main/grid/rpvdcovulist" autoresize="true" caption="역량정의^핵심어^행동지표^평가점수^환산점수" colsep="^" colwidth="215, 85, 473, 56, 58, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:255px; top:74px; width:939px; height:668px; ">
- <col disabled="true" ref="abltydefinecd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="corelang" style="text-align:center; "/>
- <col ref="actidx" style="text-align:left; "/>
- <col class="gridcombo" ref="colegvaluescor" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="colegvaluexchscor" style="text-align:right; "/>
- <col ref="valupsnemplno" visibility="hidden"/>
- <col ref="valuclscd" visibility="hidden"/>
- <col ref="valumdlcd" visibility="hidden"/>
- <col ref="valuclsdetlcd" visibility="hidden"/>
- <col ref="valuyy" visibility="hidden"/>
- <col ref="emplno" visibility="hidden"/>
- <col ref="corelangcd" visibility="hidden"/>
- <col ref="lastcnfmyn" visibility="hidden"/>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:255px; top:54px; width:230px; height:14px; vertical-align:middle; ">핵심 역량 평가 List</caption>
- <line id="line1" class="line_1" style="x1:255px; y1:69px; x2:1194px; y2:69px; "/>
- <input id="ipt_valuyy" ref="/root/send/valuyy" class="input_s_essential" inputtype="date" maxlength="4" format="yyyy" style="left:105px; top:17px; width:80px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(!isRequiredControls("ipt_valuyy")) return;
-
- model.removeNodeset(grd_rpvdcolglist.nodeset);
- model.removeNodeset(grd_rpvdcovulist.nodeset);
- model.removeNodeset("/root/init/valucd");
- model.refresh();
-
- rpvfComboValuCdList(ipt_valuyy.value , "PROCSTAT,ABLTYDEFINECD,VALUSCORBIZ", "grd_rpvdcolglist.procstat,grd_rpvdcovulist.abltydefinecd,grd_rpvdcovulist.colegvaluescor");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_valuyy" class="search_name" style="left:15px; top:18px; width:90px; height:17px; vertical-align:middle; ">평가년도 :</caption>
- <input id="ipt_emplno" ref="/root/send/emplno" class="input_search" style="left:313px; top:17px; width:80px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_emplno" class="icon_search" style="left:396px; top:17px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N", "N");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_emplno" class="search_name" style="left:218px; top:18px; width:94px; height:17px; font-weight:bold; ">평가자사번:</caption>
- <input id="ipt_emplnm" ref="/root/send/emplnm" class="input_search" style="left:415px; top:17px; width:135px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNM", "emplno,emplnm");
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption1" class="tit_2" style="left:0px; top:54px; width:230px; height:14px; vertical-align:middle; ">피 평가자 List</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:69px; x2:250px; y2:69px; "/>
- <datagrid id="grd_rpvdcolglist" nodeset="/root/main/grid/rpvdcolglist" autoresize="true" caption="사번^성명^진행상태^caption2^caption1" colsep="^" colwidth="75, 67, 63, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:74px; width:250px; height:668px; ">
- <col ref="emplno" style="text-align:center; "/>
- <col ref="emplnm" style="text-align:center; "/>
- <col disabled="true" ref="procstat" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="colegvaluemplno" visibility="hidden"/>
- <col ref="colegvaluemplnm" visibility="hidden"/>
- <col ref="valuyy" visibility="hidden"/>
- <col ref="lastcnfmyn" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- grd_rpvdcolglist.dispatch("onmouseup");
-
- // 역량 평가 List 조회
- model.copyNode("/root/main/control/row_rpvdcolg" , grd_rpvdcolglist.nodeset + "[" + grd_rpvdcolglist.row + "]");
-
- submit("TRRPV06202");
- // if(grd_rpvdcolglist.valueMatrix(grd_rpvdcolglist.row, grd_rpvdcolglist.colRef("procstat")) == '01')
- // {
- // grd_rpvdcovulist.disabled = true;
- // }else{
- // grd_rpvdcovulist.disabled = false;
- // }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // if(grd_rpvdcolglist.col == grd_rpvdcolglist.colRef("procstat"))
- // {
- // if(grd_rpvdcolglist.valueMatrix(grd_rpvdcolglist.row, grd_rpvdcolglist.colRef("procstat")) == '01')
- // {
- // grd_rpvdcovulist.disabled = true;
- // }else{
- // grd_rpvdcovulist.disabled = false;
- // }
- // }
- // model.refresh();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line6" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- <button id="btn_init" class="btn4_letter3" style="left:1124px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1064px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_rpvdcolglist) + getGridUpdateData(grd_rpvdcovulist);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- rtn = messageBox("", "Q002");
- if(rtn != "6" ) return false;
-
- misfSave("TXRPV06201");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_make" class="btn4_letter6" style="left:956px; top:3px; width:104px; height:22px; ">
- <caption>평가항목생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // if(!isRequiredControls("ipt_valuyy")) return;
- // if(!isRequiredControls("ipt_emplno")) return;
-
- // if( grd_rpvdcolglist.fixedRows == grd_rpvdcolglist.rows )
- // {
- // messageBox("피 평가자가 있어야 합니다.", "I999");
- // return;
- // }
-
- if(grd_rpvdcolglist.row == (grd_rpvdcolglist.fixedRows-1))
- {
- messageBox("피 평가자를 선택 하세요.", "I999");
- return;
- }
-
- if(grd_rpvdcovulist.fixedRows == grd_rpvdcovulist.rows)
- {
- rtn = messageBox("평가항목을 생성 합니다.\n", "Q003");
- if(rtn != "6" ) return;
-
- grd_rpvdcolglist.addStatus(grd_rpvdcolglist.row, "insert");
- misfSave("TXRPV06202");
- misfGridInit(grd_rpvdcolglist);
- btn_search.dispatch("DOMActivate");
- }else{
- messageBox("핵심 역량 평가 List에 평가항목이 있습니다.\n평가항목을 생성할 수 없습니다.", "I999");
- }
- ]]>
- </script>
- </button>
- <button id="btn_lastcnfmyn" class="btn4_letter4" style="left:872px; top:3px; width:80px; height:22px; ">
- <caption>평가확정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(messageBox("모든 평가를 완료 하시겠습니까", "Q999") == '7') return;
- for(var i = grd_rpvdcolglist.fixedRows; i < grd_rpvdcolglist.rows; i++)
- {
- grd_rpvdcolglist.valueMatrix( i, grd_rpvdcolglist.colRef("procstat")) = "01";
- grd_rpvdcolglist.valueMatrix( i, grd_rpvdcolglist.colRef("lastcnfmyn")) = "Y";
-
- grd_rpvdcolglist.addStatus(i, "update");
- }
-
- misfSave("TXRPV06201");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter4" style="left:787px; top:3px; width:80px; height:22px; ">
- <caption>평가취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(messageBox("모든 평가 진행상태를 취소 하시겠습니까", "Q999") == '7') return;
- for(var i = grd_rpvdcolglist.fixedRows; i < grd_rpvdcolglist.rows; i++)
- {
- grd_rpvdcolglist.valueMatrix( i, grd_rpvdcolglist.colRef("procstat")) = "02";
- grd_rpvdcolglist.valueMatrix( i, grd_rpvdcolglist.colRef("lastcnfmyn")) = "N";
-
- grd_rpvdcolglist.addStatus(i, "update");
- }
-
- misfSave("TXRPV06201");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|