123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- <?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>
- <detaillist/>
- </list>
- <edit>
- <valubase/>
- <etc/>
- <grdrow/>
- </edit>
- </main>
- <send>
- <condition>
- <instcd/>
- <appfrdt/>
- </condition>
- <save>
- <detaillist/>
- </save>
- </send>
- <init/>
- <hidden>
- <temp/>
- </hidden>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- btn_save. disabled = !checkAuth("X");
-
- fInit();
-
- // model.removenode("/root/main/promotnflag");
- // model.removenode("/root/main/promotnflagdetl");
- misfGridInit(grd_datalist);
- misfMsterDetailSet(grd_datalist, null, "TRRPH01201", "N"); //승진구분에 조회
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //화면 실행시 기준일자에 현제 날짜를 넣는다.
-
- function fInit()
- {
- setCurDate();
- // fInitialize();
- }
-
- function setCurDate()
- {
- var curDate = getCurrentDate().toDate();
- model.setValue("/root/send/condition/appfrdt", curDate.getDateFormat('YYYYMMDD'));
- model.setValue("/root/send/condition/instcd", getUserInfo("dutplceinstcd"));
- }
-
- function fAddDelRow(sStatus)
- {
- model.resetInstanceNode("/root/main/edit");
- if(sStatus == "A")
- {
- misfGridIUD(grd_datalist, sStatus);
- grd_datalist.valueMatrix(grd_datalist.row, grd_datalist.colRef("instcd")) = getUserInfo("dutplceinstcd");
- grd_datalist.valueMatrix(grd_datalist.row, grd_datalist.colRef("appfrdt")) = getCurrentDate();
- }
- else
- {
- misfGridIUD(grd_datalist, sStatus);
- }
-
- model.refresh();
- }
-
- function fRetrieve()
- {
- model.removeNodeset("/root/main/list/detaillist");
- model.refresh();
- misfMsterDetailRetrieve();
-
- }
-
- function fEditBaseEtc(pRow)
- {
- if ( pRow > 0 )
- {
- model.reset("/root/main/edit");
- model.setValue("/root/main/edit/grdrow",pRow);
-
- var strValuBase
- strValuBase = grd_datalist.valueMatrix(pRow, grd_datalist.colRef("valubase"));
- model.setValue("/root/main/edit/valubase",strValuBase);
- var strEtc
- strEtc = grd_datalist.valueMatrix(pRow, grd_datalist.colRef("etc"));
- model.setValue("/root/main/edit/etc",strEtc);
-
- model.refresh();
-
- }
-
- }
- function fChangeBaseEtcInfo(para)
- {
- var strrow ;
- var pRow ;
- strrow = model.getValue("/root/main/edit/grdrow");
- pRow = parseInt(strrow);
-
- var rowStaus = grd_datalist.rowStatus(pRow);
- // model.alert("row:" + pRow + "status :" + rowStaus);
-
- if ( para == '1')
- {
- grd_datalist.valueMatrix(pRow, grd_datalist.colRef("valubase")) = model.getValue("/root/main/edit/valubase");
- } else
- {
- grd_datalist.valueMatrix(pRow, grd_datalist.colRef("etc")) = model.getValue("/root/main/edit/etc");
- }
-
- if ( rowStaus != 3 && rowStaus != 1 ) {
- grd_datalist.rowStatus(pRow) = 2;
- }
-
- 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"/>
- <submission id="TRRPH01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/detaillist"/>
- <submission id="TXRPH01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/detaillist" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- // model.removeNodeset("/root/main/promotnflag");
-
- model.removeNodeset("/root/main/list/detaillist");
- model.reset("/root/main/edit");
- // model.resetInstanceNode("/root/send");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group5" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
- <group id="appdd1111" style="left:0px; top:10px; width:1195; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
- <caption id="caption21" class="search_name" style="left:15px; top:9px; width:99px; height:17px; ">적용기준일 :</caption>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- //misfSetReadOnlyCol(grd_promotnflaglist, "promotnflag,promotnflagnm,appdd", true); // 읽기전용으로 바꾸는 공통코드
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="top:7; x1:1110px; y1:8px; x2:1110px; y2:30px; border-left-style:solid; "/>
- <input id="ipt_appfrdt" ref="/root/send/condition/appfrdt" class="input_s_essential" inputtype="date" style="left:120px; top:10px; width:120px; height:19px; "/>
- </group>
- <caption id="caption48" class="tit_2" style="left:10px; top:55px; width:100px; height:14px; ">평가항목</caption>
- <line id="line20" class="line_1" style="x1:0px; y1:70px; x2:1185px; y2:70px; "/>
- <datagrid id="grd_datalist" nodeset="/root/main/list/detaillist" caption="기관코드^대분류^중분류^소분류^평가명^평가기준^배점^적용시작일^기타" colsep="^" colwidth="0, 65, 65, 65, 301, 365, 42, 96, 157" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1185px; height:495px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="lrgcd" type="input" maxlength="2" style="text-align:center; vertical-align:middle; "/>
- <col ref="mldcd" type="input" maxlength="2" style="text-align:center; vertical-align:middle; "/>
- <col ref="smlcd" type="input" maxlength="2" style="text-align:center; vertical-align:middle; "/>
- <col ref="cdnm" type="input"/>
- <col ref="valubase" type="input"/>
- <col ref="valuscor" type="input" format="####.#" style="text-align:right; vertical-align:middle; "/>
- <col ref="appfrdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; "/>
- <col ref="etc" type="input" style="text-align:left; vertical-align:middle; "/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var cur_row = grd_datalist.row;
- fEditBaseEtc(cur_row);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- grd_datalist.dispatch("onrowchanged");
- ]]>
- </script>
- </datagrid>
- <button id="btn_promotnflaglist" class="btn2_letter3" style="left:1125px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fAddDelRow("D");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:1070px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fAddDelRow("A");
- //misfGridIUD(grd_promotnflaglist, "A"); // grd_promotnflaglist에 들어 있는 그리드에 행을 추가한다.[공동코드 = misGridUD]
- ]]>
- </script>
- </button>
- <textarea id="textarea1" ref="/root/main/edit/valubase" style="left:0px; top:600px; width:610px; height:130px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:585px; width:75px; height:13px; ">평가기준</caption>
- <caption id="caption2" class="tit_2" style="left:655px; top:585px; width:75px; height:13px; ">기타</caption>
- <textarea id="textarea2" ref="/root/main/edit/etc" style="left:660px; top:600px; width:525px; height:130px; "/>
- <button id="button1" class="btn4_letter3" style="left:545px; top:576px; width:68px; height:22px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fChangeBaseEtcInfo("1");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter3" style="left:1117px; top:576px; width:68px; height:22px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fChangeBaseEtcInfo("2");
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">재임용평가항목관리</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line75" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.reset("/root/send/save/detaillist");
- model.setValue("/root/send/save/detaillist", grd_datalist.getUpdateData());
- model.refresh();
- misfSave("TXRPH01202");
- fRetrieve();
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1069px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_datalist);
-
- if (updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|