123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453 |
- <?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>
- <list>
- <reapntlist/>
- <examitemlist/>
- </list>
- <edit>
- <valubase/>
- <etc/>
- <grdrow/>
- </edit>
- </main>
- <send>
- <condition>
- <instcd/>
- <reapntyy/>
- </condition>
- <save>
- <reapntlist/>
- <examitemlist/>
- </save>
- <condition2>
- <instcd/>
- <reapntyy/>
- <reapntseq/>
- </condition2>
- </send>
- <init>
- <checkall/>
- </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_reapnttime);
- misfMsterDetailSet(grd_reapnttime, null, "TRRPH01301", "N"); // 재임용회차관리 조회
-
-
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //화면 실행시 기준일자에 현제 날짜를 넣는다.
-
- function fInit()
- {
- setCurDate();
- fInitialize();
- }
-
- function setCurDate()
- {
- var curDate = getCurrentDate().toDate();
- model.setValue("/root/send/condition/reapntyy", curDate.getDateFormat('YYYY'));
- model.setValue("/root/send/condition/instcd", getUserInfo("dutplceinstcd"));
- }
-
- function fAddDelRow(sStatus)
- {
- if(sStatus == "A")
- {
- misfGridIUD(grd_reapnttime, sStatus);
- grd_reapnttime.valueMatrix(grd_reapnttime.row, grd_reapnttime.colRef("instcd")) = getUserInfo("dutplceinstcd");
- grd_reapnttime.valueMatrix(grd_reapnttime.row, grd_reapnttime.colRef("reapntyy")) = model.getValue("/root/send/condition/reapntyy");
- }
- else
- {
- misfGridIUD(grd_reapnttime, sStatus);
- }
- model.refresh();
- }
-
- function fRetrieve()
- {
- model.removeNodeset("/root/main/list/reapntlist");
- model.removeNodeset("/root/main/list/examitemlist");
- 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_examitemlist.valueMatrix(pRow, grd_examitemlist.colRef("valubase"));
- model.setValue("/root/main/edit/valubase",strValuBase);
- var strEtc
- strEtc = grd_examitemlist.valueMatrix(pRow, grd_examitemlist.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_examitemlist.rowStatus(pRow);
- // model.alert("row:" + pRow + "status :" + rowStaus);
-
- if ( para == '1')
- {
- grd_examitemlist.valueMatrix(pRow, grd_examitemlist.colRef("valubase")) = model.getValue("/root/main/edit/valubase");
- } else
- {
- grd_examitemlist.valueMatrix(pRow, grd_examitemlist.colRef("etc")) = model.getValue("/root/main/edit/etc");
- }
-
- if ( rowStaus != 3 && rowStaus != 1 ) {
- grd_examitemlist.rowStatus(pRow) = 2;
- }
-
- model.refresh();
- }
-
- // 재임용 회차별 평가항목 조회
- function fRetriveTestItem(pRow)
- {
- if ( pRow > 0 )
- {
-
- model.resetInstanceNode("/root/main/list/examitemlist");
- model.removeNodeset("/root/main/list/examitemlist");
- model.refresh();
-
- model.setValue("/root/send/condition2/instcd",getUserInfo("dutplceinstcd"));
-
- var strYy
- strYy = grd_reapnttime.valueMatrix(pRow, grd_reapnttime.colRef("reapntyy"));
- model.setValue("/root/send/condition2/reapntyy",strYy);
-
- var strSeq
- strSeq = grd_reapnttime.valueMatrix(pRow, grd_reapnttime.colRef("reapntseq"));
- model.setValue("/root/send/condition2/reapntseq",strSeq);
-
- submit("TRRPH01303");
- model.refresh();
-
- }
- }
- // 평가항목 등록을 위한 그리드 상태 변경
- function fValueChage(pRow,pCol)
- {
- var sExits = grd_examitemlist.valueMatrix(pRow, grd_examitemlist.colRef("chck2"));
- var sInsChk = grd_examitemlist.valueMatrix(pRow, grd_examitemlist.colRef("chck"));
-
- // 원래 입력되지 않음
- if (sExits == 'N' ) {
-
- if ( sInsChk == 'Y' ) {
- // 입력 선택
- grd_examitemlist.rowStatus(pRow) = 1;
- } else
- {
- // 입력 선택 되지 않음
- grd_examitemlist.rowStatus(pRow) = 0;
- }
-
- }
- // 기존 입력 되어 있음
- if (sExits == 'Y' ) {
- if ( sInsChk == 'Y' ) {
- // 입력 선택
- grd_examitemlist.rowStatus(pRow) = 2;
- } else
- {
- // 입력 선택 되지 않음
- grd_examitemlist.rowStatus(pRow) = 4;
- }
- }
- }
-
- function fTestItemCheck()
- {
- var sCheckVal = model.getValue("/root/init/checkall");
-
- var oldStatus;
-
- if (sCheckVal = 'Y') {
- var grdTolCnt;
- grdTolCnt = grd_examitemlist.rows;
- if (grdTolCnt > 1 )
- {
- for ( i = 1; i <= grdTolCnt; i++)
- {
- oldStatus = grd_examitemlist.valueMatrix(i, grd_examitemlist.colRef("chck")) ;
- if ( oldStatus != 'Y' ) {
- grd_examitemlist.valueMatrix(i, grd_examitemlist.colRef("chck")) = 'Y';
- fValueChage(i, 1) ;
- }
- }
- }
- }
- }
-
- ]]>
- </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="TRRPH01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/reapntlist"/>
- <submission id="TXRPH01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/reapntlist" resultref="/root/temp"/>
- <submission id="TRRPH01303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition2" resultref="/root/main/examitemlist"/>
- <submission id="TXRPH01304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/examitemlist" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- // model.removeNodeset("/root/main/promotnflag");
-
- model.removeNodeset("/root/main/list/reapntlist");
- model.removeNodeset("/root/main/list/examitemlist");
- 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_reapntyy" ref="/root/send/condition/reapntyy" class="input_s_essential" inputtype="date" format="yyyy" 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:645px; y2:70px; "/>
- <datagrid id="grd_reapnttime" nodeset="/root/main/list/reapntlist" caption="기관코드^재임용^회차^재임용명^대상기간^대상기간^종료^기타|기관코드^년도^회차^재임용명^From^To^여부^기타" colsep="^" colwidth="0, 54, 36, 162, 90, 89, 32, 147" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:645px; height:655px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="reapntyy" maxlength="4" style="text-align:center; vertical-align:middle; "/>
- <col ref="reapntseq" maxlength="2" style="text-align:center; vertical-align:middle; "/>
- <col ref="reapntnm" type="input" style="text-align:center; vertical-align:middle; "/>
- <col ref="trgtfrdt" type="inputdate"/>
- <col ref="trgttodt" type="inputdate"/>
- <col ref="endyn" type="combo" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col ref="etc" type="input" style="text-align:left; vertical-align:middle; "/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var cur_row = grd_reapnttime.row;
- fRetriveTestItem(cur_row);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- //grd_reapnttime.dispatch("onrowchanged");
- ]]>
- </script>
- </datagrid>
- <button id="btn_promotnflaglist" class="btn2_letter3" style="left:590px; 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:535px; 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>
- <button id="button3" class="btn4_letter3" style="left:1115px; top:611px; width:68px; height:22px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fChangeBaseEtcInfo("2");
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:665px; top:55px; width:113px; height:13px; ">회차별 평가항목</caption>
- <line id="line1" class="line_1" style="x1:660px; y1:70px; x2:1185px; y2:70px; "/>
- <datagrid id="grd_examitemlist" nodeset="/root/main/list/examitemlist" caption="선택^기관코드^대분류^중분류^소분류^평가명^배점^평가기준^적용시작일^기타^체크^년도^회차" colsep="^" colwidth="30, 0, 42, 42, 42, 196, 30, 110, 0, 0, 0, 0, 0" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:660px; top:75px; width:525px; height:395px; ">
- <col checkvalue="Y,N" ref="chck" type="checkbox"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="lrgcd" maxlength="2" style="text-align:center; vertical-align:middle; "/>
- <col ref="mldcd" maxlength="2" style="text-align:center; vertical-align:middle; "/>
- <col ref="smlcd" maxlength="2" style="text-align:center; vertical-align:middle; "/>
- <col ref="cdnm"/>
- <col ref="valuscor" type="input" format="####.#" style="text-align:right; vertical-align:middle; "/>
- <col ref="valubase" type="input"/>
- <col ref="appfrdt" type="input" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; "/>
- <col ref="etc" type="input" style="text-align:left; vertical-align:middle; "/>
- <col ref="chck2" style="text-align:left; vertical-align:middle; "/>
- <col ref="reapntyy" style="text-align:left; vertical-align:middle; "/>
- <col ref="reapntseq" style="text-align:left; vertical-align:middle; "/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var cur_row = grd_examitemlist.row;
- fEditBaseEtc(cur_row);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- grd_examitemlist.dispatch("onrowchanged");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var cur_row = grd_examitemlist.row;
- var cur_col = grd_examitemlist.col;
- fValueChage(cur_row,cur_col );
- ]]>
- </script>
- </datagrid>
- <textarea id="textarea1" ref="/root/main/edit/valubase" style="left:660px; top:500px; width:525px; height:100px; "/>
- <textarea id="textarea2" ref="/root/main/edit/etc" style="left:660px; top:635px; width:525px; height:95px; "/>
- <button id="button1" class="btn4_letter3" style="left:1115px; top:475px; width:68px; height:22px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fChangeBaseEtcInfo("1");
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:660px; top:485px; width:75px; height:13px; ">평가기준</caption>
- <caption id="caption3" class="tit_2" style="left:660px; top:620px; width:75px; height:13px; ">기타</caption>
- <button id="button4" class="btn4_letter3" style="left:1115px; top:476px; width:68px; height:22px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fChangeBaseEtcInfo("1");
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:660px; top:485px; width:75px; height:13px; ">평가기준</caption>
- <select id="chkall" ref="/root/init/checkall" overflow="visible" appearance="full" style="left:1085px; top:55px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체선택</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fTestItemCheck();
- ]]>
- </script>
- </select>
- </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/reapntlist");
- model.setValue("/root/send/save/reapntlist", grd_reapnttime.getUpdateData());
- model.refresh();
- misfSave("TXRPH01302");
-
- model.reset("/root/send/save/examitemlist");
- model.setValue("/root/send/save/examitemlist", grd_examitemlist.getUpdateData());
- model.refresh();
- misfSave("TXRPH01304");
-
- 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 = grd_examitemlist(grd_datalist);
-
- if (updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|