123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <valueitemflaglist/>
- <valuegrdelist/>
- <valueitemlist/>
- </main>
- <send>
- <condition>
- <valueyy/>
- <valueflag/>
- <valueitemflagcd/>
- </condition>
- <save>
- <valueitemflaglist/>
- <valuegrdelist/>
- <valueitemlist/>
- </save>
- </send>
- <init/>
- <hidden>
- </hidden>
- <temp>
- <cdlist11>
- <R0301>
- <cdid>01</cdid>
- <cdnm>기본소양</cdnm>
- </R0301>
- <R0301>
- <cdid>02</cdid>
- <cdnm>기본술기</cdnm>
- </R0301>
- <R0301>
- <cdid>03</cdid>
- <cdnm>학구적태도</cdnm>
- </R0301>
- <R0301>
- <cdid>04</cdid>
- <cdnm>책임관념</cdnm>
- </R0301>
- </cdlist11>
- <cdlist12>
- <R0301>
- <cdid>01</cdid>
- <cdnm>인품</cdnm>
- </R0301>
- <R0301>
- <cdid>02</cdid>
- <cdnm>근무태도</cdnm>
- </R0301>
- <R0301>
- <cdid>03</cdid>
- <cdnm>책임관념</cdnm>
- </R0301>
- <R0301>
- <cdid>04</cdid>
- <cdnm>학구적태도</cdnm>
- </R0301>
- <R0301>
- <cdid>05</cdid>
- <cdnm>전공과목적성도</cdnm>
- </R0301>
- </cdlist12>
- <R0301/>
- <selvalulistflag>R0301</selvalulistflag>
- </temp>
- </root>
- </instance>
- <submission id="TRRTC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/valueitemflaglist"/>
- <submission id="TRRTC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/valuegrdelist"/>
- <submission id="TRRTC00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/valueitemlist"/>
- <submission id="TXRTC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TXRTC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/temp"/>
- </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/tistrngeducbaseinfomngtweb/js/RTC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- /* 위의 하드코딩한 코드는 사용하지 않음 */
-
- //사용자 권한
- fCheckAuth();
-
- // 그리드 초기화
- misfGridInit(grd_valueitemflaglist);
- misfGridInit(grd_valuegrdelist);
- misfGridInit(grd_valueitemlist);
-
- misfMsterDetailSet(grd_valueitemflaglist, null, "TRRTC00101", "Y");
- misfMsterDetailSet(grd_valuegrdelist, grd_valueitemflaglist, "TRRTC00102" ,"Y");
- misfMsterDetailSet(grd_valueitemlist, grd_valueitemflaglist, "TRRTC00103" ,"Y");
-
- //misfComboComCdListMulti("R0273,R0301,R0304", "cmb_valueflag,grd_valueitemflaglist.valueitemflagcd,grd_valueitemflaglist.valuegrdeappbase");
- misfComboComCdListMulti("R0273,R0304", "cmb_valueflag,grd_valueitemflaglist.valuegrdeappbase");
-
- /*if (getNodesetCount("/root/init/comcd/R0273/R0273[cdid='13']") == 0)
- {
- var cnt = getNodesetCount("/root/init/comcd/R0273/R0273");
- cnt++;
- model.makeValue("/root/init/comcd/R0273/R0273["+cnt+"]/cdid", "13");
- model.makeValue("/root/init/comcd/R0273/R0273["+cnt+"]/cdnm", "근무평가 종합성적");
- }*/
-
- var today = getCurrentDate();
- var cur_mm = parseInt(today.substring(4, 6));
- var cur_yy = parseInt(today.substring(0, 4));
-
- if (cur_mm >= 11)
- cur_yy++;
-
- model.setValue("/root/send/condition/valueyy", cur_yy);
- ipt_valueyy.refresh();
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- btn_copy.disabled = !(checkAuth("X"));
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <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; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <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[
-
- //필수 입력 항목 체크(공통 ftHelper.js)
- if ( !isRequiredControls("ipt_valueyy", "cmb_valueflag") ) {
- return false;
- }
-
- /*
- if (cmb_valueflag.value == "11")
- {
- if (model.getValue("/root/temp/selvalulistflag") != "cdlist11")
- {
- model.copyNode("/root/temp/R0301", "/root/init/comcd/R0301");
- model.copyNode("/root/init/comcd/R0301", "/root/temp/cdlist11");
-
- model.setValue("/root/temp/selvalulistflag", "cdlist11");
- }
- }
- else if (cmb_valueflag.value == "12")
- {
- if (model.getValue("/root/temp/selvalulistflag") != "cdlist12")
- {
- model.copyNode("/root/temp/R0301", "/root/init/comcd/R0301");
- model.copyNode("/root/init/comcd/R0301", "/root/temp/cdlist12");
-
- model.setValue("/root/temp/selvalulistflag", "cdlist12");
- }
- }
- else
- {
- if (model.getValue("/root/temp/selvalulistflag") != "R0301")
- {
- model.copyNode("/root/init/comcd/R0301", "/root/temp/R0301");
-
- model.setValue("/root/temp/selvalulistflag", "R0301");
- }
- }
- */
-
- // 등급별 점수
- submit("TRRTC00101");
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
- <caption id="cap_valueyy" class="search_name" style="left:15px; top:19px; width:85px; height:17px; ">년 도 :</caption>
- <line id="line9" class="line_1" style="x1:0px; y1:70; x2:590px; y2:70; "/>
- <datagrid id="grd_valueitemflaglist" nodeset="/root/main/valueitemflaglist" caption="평가구분코드^평가구분명^배점^점수환산기준^만점^유효여부" colsep="^" colwidth="100, 144, 68, 100, 58, 70, 0, 0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:74px; width:590px; height:660px; ">
- <col ref="valueitemflagcd" type="input" _required="true"/>
- <col ref="valueitemflagnm" type="input" _required="true"/>
- <col ref="valuepnt" type="input" format="9999" maxlength="3" showmask="true" _required="true" style="text-align:center; "/>
- <col ref="valuegrdeappbase" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col imemode="disabled" ref="perfscore" type="input" format="9999" showmask="true" style="text-align:center; "/>
- <col ref="useyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>유효</label>
- <value>Y</value>
- </item>
- <item>
- <label>무효</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="valueflag" visibility="hidden"/>
- <col ref="valueyy" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- // 평가구분코드
- model.setValue("/root/send/condition/valueitemflagcd", grd_valueitemflaglist.valueMatrix( grd_valueitemflaglist.row, grd_valueitemflaglist.colRef("valueitemflagcd") ) );
-
- // 등급별 점수
- submit("TRRTC00102");
-
- // 평가항목
- submit("TRRTC00103");
- // model.refresh();
- grd_valueitemflaglist.dispatch("onmouseup");
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- /* if ( grd_valueitemflaglist.valueMatrix(grd_valueitemflaglist.row,grd_valueitemflaglist.colRef("valuegrdeappbase")) == "3" ) {
- grd_valueitemflaglist.colDisabled(4) = false;
- } else {
- grd_valueitemflaglist.colDisabled(4) = true;
- grd_valueitemflaglist.valueMatrix(grd_valueitemflaglist.row,grd_valueitemflaglist.colRef("perfscore")) = "";
- }
- */
- ]]>
- </script>
- </datagrid>
- <input id="ipt_valueyy" ref="/root/send/condition/valueyy" class="input_search" style="left:100px; top:20; width:100px; height:19px; "/>
- <caption id="cap_valueflag" class="search_name" style="left:240px; top:19px; width:85px; height:17px; ">구 분 :</caption>
- <select1 id="cmb_valueflag" ref="/root/send/condition/valueflag" class="combo_s_essential" appearance="minimal" style="left:324px; top:18px; width:126px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="grd_valuegrdelist" nodeset="/root/main/valuegrdelist" caption="평가구분코드^평가구분명^등급^석차비율from^석차비율to^점수^라벨^비고^caption1" colsep="^" colwidth="69, 80, 60, 90, 90, 70, 41, 100, 20, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:600px; top:75px; width:595px; height:310px; ">
- <col ref="valueitemflagcd" visibility="hidden" style="text-align:center; "/>
- <col ref="valueitemflagnm" visibility="hidden" style="text-align:center; "/>
- <col ref="newvalueitemgrde" type="input" maxlength="2" _required="true" style="text-align:center; "/>
- <col ref="rankratefrom" type="input" style="text-align:center; "/>
- <col ref="rankrateto" type="input" style="text-align:center; "/>
- <col ref="valueitemscor" type="input" format="###.##" maxlength="3.2" showmask="true" _required="true" style="text-align:center; "/>
- <col ref="valueitemcnts" type="input" style="text-align:center; "/>
- <col ref="cmt" type="input"/>
- <col ref="valueflag" visibility="hidden"/>
- <col ref="valueyy" visibility="hidden"/>
- <col ref="valueitemgrde" visibility="hidden"/>
- </datagrid>
- <line id="line1" class="line_1" style="x1:600px; y1:70; x2:1195px; y2:70; "/>
- <caption id="caption2" class="tit_2" style="left:600px; top:55px; width:144px; height:13px; ">등급별 점수</caption>
- <caption id="caption3" class="tit_2" style="left:605px; top:395px; width:144px; height:13px; ">평가항목</caption>
- <line id="line2" class="line_1" style="x1:600px; y1:410px; x2:1195px; y2:410px; "/>
- <datagrid id="grd_valueitemlist" nodeset="/root/main/valueitemlist" caption="평가구분코드^평가구분명^평가항목명^평가항목코드^유효여부" colsep="^" colwidth="100, 80, 273, 100, 100, 0, 0, 0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:600px; top:415px; width:595px; height:319px; ">
- <col ref="valueitemflagcd" visibility="hidden" style="text-align:center; "/>
- <col ref="valueitemflagnm" visibility="hidden" style="text-align:center; "/>
- <col ref="valueitemnm" type="input" maxlength="30" _required="true"/>
- <col imemode="disabled" ref="valueitemcd" type="input" maxlength="5" showmask="true" _required="true" style="text-align:center; "/>
- <col ref="useyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>유효</label>
- <value>Y</value>
- </item>
- <item>
- <label>무효</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="valueflag" visibility="hidden"/>
- <col ref="valueyy" visibility="hidden"/>
- <col ref="apptodd" visibility="hidden"/>
- </datagrid>
- <button id="btn_copy" class="btn2_letter8" style="left:988px; top:17px; width:108px; height:19px; ">
- <caption>전년도기준copy</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //필수 입력 항목 체크(공통 ftHelper.js)
- if ( !isRequiredControls("ipt_valueyy", "cmb_valueflag") ) {
- return false;
- }
-
- var retMes = messageBox("전년도 Copy 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- misfSave("TXRTC00102");
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <button id="button106" class="btn2_letter3" style="left:482px; top:50; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("/root/send/condition/valueyy") == "" || model.getValue("/root/send/condition/valueflag") == "" ) {
- messageBox("구분코드, 또는 년도값이 없습니다. 조회 후","C001");
- return;
- }
- model.setValue("/root/send/condition/valueitemflagcd", "");
- misfGridIUD(grd_valueitemflaglist, "A");
- grd_valueitemflaglist.valueMatrix( grd_valueitemflaglist.row, grd_valueitemflaglist.colRef("valueflag") ) = model.getValue("/root/send/condition/valueflag");
- grd_valueitemflaglist.valueMatrix( grd_valueitemflaglist.row, grd_valueitemflaglist.colRef("valueyy") ) = model.getValue("/root/send/condition/valueyy");
- grd_valueitemflaglist.valueMatrix( grd_valueitemflaglist.row, grd_valueitemflaglist.colRef("useyn") ) = "Y";
-
- ]]>
- </script>
- </button>
- <button id="button107" class="btn2_letter3" disabled="false" style="left:537px; top:50; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_valueitemflaglist, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:1075px; top:50; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_valueitemflaglist.valueMatrix( grd_valueitemflaglist.row, grd_valueitemflaglist.colRef("valueitemflagcd") ) == "" ) {
- messageBox("평가구분코드가 없습니다. 평가구분코드를 선택 후","C001");
- return;
- }
-
- misfGridIUD(grd_valuegrdelist, "A");
- grd_valuegrdelist.valueMatrix( grd_valuegrdelist.row, grd_valuegrdelist.colRef("valueflag") ) = model.getValue("/root/send/condition/valueflag");
- grd_valuegrdelist.valueMatrix( grd_valuegrdelist.row, grd_valuegrdelist.colRef("valueyy") ) = model.getValue("/root/send/condition/valueyy");
- grd_valuegrdelist.valueMatrix( grd_valuegrdelist.row, grd_valuegrdelist.colRef("valueitemflagcd") ) = model.getValue("/root/send/condition/valueitemflagcd");
- grd_valuegrdelist.col = grd_valuegrdelist.colRef("valueitemgrde");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" style="left:1130px; top:50; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_valuegrdelist, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" style="left:1075px; top:388px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_valueitemflaglist.valueMatrix( grd_valueitemflaglist.row, grd_valueitemflaglist.colRef("valueitemflagcd") ) == "" ) {
- messageBox("평가구분코드가 없습니다. 평가구분코드를 선택 후","C001");
- return;
- }
-
- misfGridIUD(grd_valueitemlist, "A");
- grd_valueitemlist.valueMatrix( grd_valueitemlist.row, grd_valueitemlist.colRef("valueflag") ) = model.getValue("/root/send/condition/valueflag");
- grd_valueitemlist.valueMatrix( grd_valueitemlist.row, grd_valueitemlist.colRef("valueyy") ) = model.getValue("/root/send/condition/valueyy");
- grd_valueitemlist.valueMatrix( grd_valueitemlist.row, grd_valueitemlist.colRef("valueitemflagcd") ) = model.getValue("/root/send/condition/valueitemflagcd");
- grd_valueitemlist.valueMatrix( grd_valueitemlist.row, grd_valueitemlist.colRef("useyn") ) = "Y";
- grd_valueitemlist.col = grd_valueitemlist.colRef("valueitemnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" style="left:1130px; top:388px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_valueitemlist, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1124px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
-
- if(!checkRequiredColumn("grd_valueitemflaglist"))return;
- if(!checkRequiredColumn("grd_valuegrdelist"))return;
- if(!checkRequiredColumn("grd_valueitemlist"))return;
-
- /* 2007-11-12 평가구분-필기, 점수환산기준-비율 의 만점 필수입력체크 acwon수정 */
- var colref_valueitemflagcd = grd_valueitemflaglist.colref("valueitemflagcd");
- var colref_valuegrdeappbase = grd_valueitemflaglist.colref("valuegrdeappbase");
- var colref_perfscore = grd_valueitemflaglist.colref("perfscore");
- for (var i=0; i<grd_valueitemflaglist.rows; i++)
- {
- if (grd_valueitemflaglist.valueMatrix(i, colref_valueitemflagcd) == "06" && //필기
- grd_valueitemflaglist.valueMatrix(i, colref_valuegrdeappbase) == "3") // 비율
- {
- if (grd_valueitemflaglist.valueMatrix(i, colref_perfscore) == "")
- {
- messageBox("평가구분-필기, 점수환산기준-비율 의 만점은", "I003");
- return;
- }
- }
- }
-
- misfSave("TXRTC00101");
- ]]>
- </script>
- </button>
- <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|