123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459 |
- <?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>
- <astminfo>
- <elemlrg/>
- <elemmdl/>
- <elemnm/>
- <cmt/>
- <asmta1yn/>
- <asmta1score/>
- <asmtb1yn/>
- <asmtb1score/>
- <asmtc1yn/>
- <asmtc1score/>
- <asmtd1yn/>
- <asmtd1score/>
- <asmte1yn/>
- <asmte1score/>
- <year/>
- <asmta2yn/>
- <asmta2score/>
- <asmtb2yn/>
- <asmtb2score/>
- <asmtc2yn/>
- <asmtc2score/>
- <asmtd2yn/>
- <asmtd2score/>
- <asmte2yn/>
- <asmte2score/>
- <flag/>
- </astminfo>
- </list>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <year/>
- <flag/>
- </retrparams>
- <execdata>
- <astminfo/>
- </execdata>
- </send>
- <hidden/>
- <temp>
- </temp>
- </root>
- </instance>
- <submission id="TRRPB19001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list/astminfo"/>
- <submission id="TXRPB19001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/execdata" resultref="/root/hidden"/>
- <bind id="bind1"/>
- </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" src="../../../mis/pubwelfmngtweb/js/RPS001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var b_First = true;
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.removenode("/root/main/list/astminfo");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate().substr(0, 8),"","Y");
- model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/retrparams/year", getCurrentDate().substr(0, 4));
- model.refresh();
- }
- function fsaveCheckValue()
- {
- var iInsCnt = 0;
- var iDupCnt = 0;
- var bDel = false;
- var icolidx2 = grd_ovtmworkapplist.colRef("elemlrg");
- var icolidx3 = grd_ovtmworkapplist.colRef("elemmdl");
-
- for(var i=0; i<grd_ovtmworkapplist.rows; i++)
- {
- if(grd_ovtmworkapplist.rowStatus(i) == 1 || grd_ovtmworkapplist.rowStatus(i) == 3)
- {
- iInsCnt = i;
- break;
- }
- }
- for(var i=iInsCnt; i<grd_ovtmworkapplist.rows; i++)
- {
- for(var j=1; j<i; j++)
- {
- if(grd_ovtmworkapplist.valueMatrix(i, icolidx3) == grd_ovtmworkapplist.valueMatrix(j, icolidx3) && grd_ovtmworkapplist.valueMatrix(i, icolidx2) == grd_ovtmworkapplist.valueMatrix(j, icolidx2))
- {
- if(grd_ovtmworkapplist.rowStatus(i) == 1 || grd_ovtmworkapplist.rowStatus(i) == 3)
- {
- var ret= messageBox("같은 평가요소의 내용이 존재합니다. ", "Q001");
-
- if (ret != 6)
- { // not OK
- bDel = false;
- return false;
- }
- else
- {
- grd_ovtmworkapplist.deleteItem(i);
- iDupCnt++;
- bDel = true;
- }
- }
- }
- }
-
- if(bDel)
- {
- bDel = false;
- i--;
- }
- }
-
- if(iDupCnt > 0)
- {
- messageBox("[ " + iDupCnt + " ]" + " 건의 중복된 행이 삭제", "I001");
- }
-
- return true;
- }
- function fsaveCheckNull(){
- for(i=3; i< grd_ovtmworkapplist.rows; i++){
- var check_elemlrg = model.getValue(grd_ovtmworkapplist.attribute("nodeset") + "[" + ( i - 2 ) + "]/elemlrg");
- var check_elemmdl = model.getValue(grd_ovtmworkapplist.attribute("nodeset") + "[" + ( i - 2 ) + "]/elemmdl");
- var check_elemnm = model.getValue(grd_ovtmworkapplist.attribute("nodeset") + "[" + ( i - 2 ) + "]/elemnm");
- var check_cmt = model.getValue(grd_ovtmworkapplist.attribute("nodeset") + "[" + ( i - 2 ) + "]/cmt");
- var status=grd_ovtmworkapplist.rowStatus(i);
- if(check_elemlrg =="")
- {
- messageBox("평가요소(대)는","I003");
- return false;
- }
- if(check_elemmdl =="")
- {
- messageBox("평가요소는","I003");
- return false;
- }
- if(check_elemnm =="")
- {
- messageBox("평가요소명칭은","I003");
- return false;
- }
- if(check_cmt =="")
- {
- messageBox("평가내용은","I003");
- return false;
- }
- }
- return true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" 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:38px; width:1195px; height:744px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:68px; x2:1194px; y2:68px; "/>
- <group id="group4" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; "/>
- <caption id="caption1" class="search_name" style="left:272px; top:9px; width:86px; height:17px; ">평가년도 :</caption>
- <line id="line3" class="line_4" style="x1:1115px; y1:6px; x2:1115px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/retrparams/year") == ""){
- messageBox("평가년도는 필수 입력항목입니다", "E999", "");
- return;
- }
- if (model.getValue("/root/send/retrparams/flag") == ""){
- messageBox("평가유형은 필수 선택항목입니다", "E999", "");
- return;
- }
- model.removenode("/root/main/list/astminfo");
-
- model.refresh();
-
- submit("TRRPB19001");
-
- ]]>
- </script>
- </button>
- <input id="ipt_appfromdd" ref="/root/send/retrparams/year" class="input_s_essential" navindex="2" inputtype="date" format="yyyy" style="left:362px; top:8px; width:93px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:100px; top:8px; width:110px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">소속기관 :</caption>
- <caption id="caption2" class="search_name" style="left:497px; top:9px; width:86px; height:17px; ">평가유형 :</caption>
- <select1 id="combo1" ref="/root/send/retrparams/flag" appearance="minimal" style="left:590px; top:8px; width:190px; height:19px; ">
- <choices>
- <item>
- <label>팀장,과장,실장용</label>
- <value>A</value>
- </item>
- <item>
- <label>계장급용</label>
- <value>B</value>
- </item>
- <item>
- <label>간호직용</label>
- <value>C</value>
- </item>
- <item>
- <label>의료기사직,직원용</label>
- <value>D</value>
- </item>
- <item>
- <label>의사용</label>
- <value>E</value>
- </item>
- <item>
- <label>시용평가</label>
- <value>F</value>
- </item>
- <item>
- <label>계약직평가</label>
- <value>G</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption9" class="tit_2" style="left:0px; top:54px; width:105px; height:13px; ">평가내용</caption>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1088px; top:48px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/retrparams/flag") == ""){
- messageBox("평가유형을 선택한 후 진행하시기 바랍니다.", "E999", "");
- return;
- }
- fmisfGridIUD(grd_ovtmworkapplist, "A");
- grd_ovtmworkapplist.valueMatrix(grd_ovtmworkapplist.row, grd_ovtmworkapplist.colRef("year")) = model.getValue("/root/send/retrparams/year");
- grd_ovtmworkapplist.valueMatrix(grd_ovtmworkapplist.row, grd_ovtmworkapplist.colRef("flag")) = model.getValue("/root/send/retrparams/flag");
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1142px; top:48px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iRowIdx=grd_ovtmworkapplist.row;
-
- // if (misfCheckDeleteYN(grd_ovtmworkapplist) == "Y")
- // {
- // // 1 : 초기 insert 한상태, 3 : insert한 Row를 Edit 한경우 3으로 변경됨
- // if(grd_ovtmworkapplist.rowstatus(iRowIdx) == 1 || grd_ovtmworkapplist.rowstatus(iRowIdx) == 3)
- // {
- // grd_ovtmworkapplist.deleteRow(grd_ovtmworkapplist.row, false);
- // }
- // else
- // {
- // grd_ovtmworkapplist.addStatus(iRowIdx,"delete");
- // }
- // }
- if(grd_ovtmworkapplist.rowstatus(grd_ovtmworkapplist.row) == 1 || grd_ovtmworkapplist.rowstatus(grd_ovtmworkapplist.row) == 3)
- {
- grd_ovtmworkapplist.deleteRow(grd_ovtmworkapplist.row, false);
- }
- else
- {
- grd_ovtmworkapplist.addStatus(grd_ovtmworkapplist.row,"delete");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <multilinegrid id="grd_ovtmworkapplist" nodeset="/root/main/list/astminfo" autoresize="true" caption="평가요소(대)^평가요소^평가요소명칭^평가내용^1차(A)^1차점수(A)^1차(B)^1차점수(B)^1차(C)^1차점수(C)^1차(D)^1차점수(D)^1차(E)^1차점수(E)^caption1^조출여부^휴일^야간^연장^연장^조출150|평가요소(대)^평가요소^평가요소명칭^평가내용^2차(A)^2차점수(A)^2차(B)^2차점수(B)^2차(C)^2차점수(C)^2차(D)^2차점수(D)^2차(E)^2차점수(E)^caption1^조출여부^휴일^야간^150^100^조출150" colsep="^" colwidth="116, 35, 124, 287, 54, 68, 49, 71, 48, 72, 45, 69, 49, 70, 100, 0, 0, 0, 0, 0, 0" rowheader="update" rowsep="|" mergecellsfixedrows="bycolrec" style="left:0px; top:73px; width:1194px; height:669px; ">
- <row>
- <col disabled="true" ref="elemlrg" rowspan="2" type="combo" style="font-family:굴림체; text-align:left; ">
- <choices>
- <item>
- <label>업무실적</label>
- <value>1</value>
- </item>
- <item>
- <label>업무수행능력</label>
- <value>2</value>
- </item>
- <item>
- <label>업무수행태도</label>
- <value>3</value>
- </item>
- <item>
- <label>업무성과</label>
- <value>4</value>
- </item>
- <item>
- <label>생활면</label>
- <value>5</value>
- </item>
- <item>
- <label>친절면</label>
- <value>6</value>
- </item>
- </choices>
- </col>
- <col disabled="true" imemode="hangul" ref="elemmdl" rowspan="2" type="input" format="99" style="text-align:center; "/>
- <col imemode="hangul" ref="elemnm" rowspan="2" type="input" style="font-family:굴림체; text-align:left; "/>
- <col imemode="hangul" ref="cmt" rowspan="2" type="input" style="font-family:굴림체; text-align:left; "/>
- <col checkvalue="Y,N" ref="asmta1yn" type="checkbox"/>
- <col ref="asmta1score" type="input" format="999" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="asmtb1yn" type="checkbox"/>
- <col ref="asmtb1score" type="input" format="999" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="asmtc1yn" type="checkbox"/>
- <col ref="asmtc1score" type="input" format="999" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="asmtd1yn" type="checkbox"/>
- <col ref="asmtd1score" type="input" format="999" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="asmte1yn" type="checkbox"/>
- <col ref="asmte1score" type="input" format="999" style="text-align:center; "/>
- <col ref="year" visibility="hidden"/>
- </row>
- <row>
- <col checkvalue="Y,N" ref="asmta2yn" type="checkbox"/>
- <col ref="asmta2score" type="input" step="999" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="asmtb2yn" type="checkbox" style="text-align:center; "/>
- <col ref="asmtb2score" type="input" step="999" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="asmtc2yn" type="checkbox" style="text-align:center; "/>
- <col ref="asmtc2score" type="input" step="999" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="asmtd2yn" type="checkbox"/>
- <col ref="asmtd2score" type="input" step="999" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="asmte2yn" type="checkbox"/>
- <col ref="asmte2score" type="input" step="999" style="text-align:center; "/>
- <col ref="flag" visibility="hidden"/>
- </row>
- </multilinegrid>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1063px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_ovtmworkapplist);
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
- if(!fsaveCheckValue()) return;
- if(!fsaveCheckNull()) return;
- model.setValue("/root/send/execdata/astminfo", updtdata);
- if (submit("TXRPB19001")){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1120px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_ovtmworkapplist);
-
- if (updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- ]]>
- </script>
- </button>
- <input id="ipt_popworkgbn" ref="/root/send/retrparams/popworkgbn" class="input_search" visibility="hidden" style="left:980px; top:3px; width:20px; height:19px; "/>
- <input id="ipt_temp" ref="/root/main/templist/emplno" class="input_search" visibility="hidden" style="left:900px; top:3px; width:20px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
- grd_ovtmworkapplist.valueMatrix(grd_ovtmworkapplist.row, grd_ovtmworkapplist.colRef("emplno")) = model.getValue("/root/main/templist/emplno");
- grd_ovtmworkapplist.valueMatrix(grd_ovtmworkapplist.row, grd_ovtmworkapplist.colRef("emplnm")) = model.getValue("/root/main/templist/emplnm");
- grd_ovtmworkapplist.valueMatrix(grd_ovtmworkapplist.row, grd_ovtmworkapplist.colRef("dutplcedeptcd")) = model.getValue("/root/main/templist/dutunitcd");
- grd_ovtmworkapplist.valueMatrix(grd_ovtmworkapplist.row, grd_ovtmworkapplist.colRef("dutplcedeptnm")) = model.getValue("/root/main/templist/dutunitnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <output id="opt_temp" ref="/root/send/retrparams/temp" visibility="hidden" style="left:765px; top:4px; width:85px; height:19px; "/>
- <input id="ipt_temp2" ref="/root/main/templist/emplnm" class="input_search" visibility="hidden" style="left:920px; top:3px; width:20px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNM", "emplno,emplnm,dutunitcd,dutunitnm");
- grd_ovtmworkapplist.valueMatrix(grd_ovtmworkapplist.row, grd_ovtmworkapplist.colRef("emplno")) = model.getValue("/root/main/templist/emplno");
- grd_ovtmworkapplist.valueMatrix(grd_ovtmworkapplist.row, grd_ovtmworkapplist.colRef("emplnm")) = model.getValue("/root/main/templist/emplnm");
- grd_ovtmworkapplist.valueMatrix(grd_ovtmworkapplist.row, grd_ovtmworkapplist.colRef("dutplcedeptcd")) = model.getValue("/root/main/templist/dutunitcd");
- grd_ovtmworkapplist.valueMatrix(grd_ovtmworkapplist.row, grd_ovtmworkapplist.colRef("dutplcedeptnm")) = model.getValue("/root/main/templist/dutunitnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_dutym_s" ref="/root/send/retrparams/dutym_s" class="input_search" visibility="hidden" style="left:960px; top:3px; width:20px; height:19px; "/>
- <input id="ipt_instnm" ref="/root/send/retrparams/instnm" class="input_search" visibility="hidden" style="left:1020px; top:3px; width:30px; height:19px; "/>
- <input id="ipt_dutplceinstcd" ref="/root/send/retrparams/dutplceinstcd" class="input_search" visibility="hidden" style="left:1000px; top:3px; width:20px; height:19px; "/>
- <input id="input1" ref="/root/send/retrparams/retrflag" class="input_search" visibility="hidden" style="left:875px; top:5px; width:20px; height:19px; "/>
- <input id="ipt_dutym_e" ref="/root/send/retrparams/dutym_e" class="input_search" visibility="hidden" style="left:825px; top:5px; width:19px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|