123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366 |
- <?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>SMRPH01400_재임용신청자처리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <reapntlist/>
- <applist/>
- </list>
- </main>
- <send>
- <condition>
- <instcd/>
- <reapntyy/>
- </condition>
- <condition2>
- <instcd/>
- <reapntyy/>
- <reapntseq/>
- <trgtfrdt/>
- <trgttodt/>
- <prfshipflag/>
- <emplno/>
- <emplnm/>
- <reapntnm/>
- </condition2>
- </send>
- <init>
- <emplnototal/>
- </init>
- <hidden/>
- <temp/>
- <save>
- <applist/>
- </save>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- ]]>
- </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="../../../mis/promotnmngtweb/js/RPH001.js"/>
- <script type="javascript" src="../../../mis/purccommonweb/js/PURC.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
- <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
- <script type="javascript">
- <![CDATA[
-
- function finit()
- {
- misfGridInit(grd_promotnflaglist);
-
- misfComboComCdList('Z0007', cmb_instcd,'N');
- misfComboComCdList("R0058", cmb_prfshipflag,'N');
-
- var curDate = getCurrentDate().toDate();
- model.setValue("/root/send/condition/reapntyy", curDate.getDateFormat('YYYY'));
-
- /*
- if (getCurrentDate().substr(4,2) > "03" && getCurrentDate().substr(4,2) <= "09" ){
- ipt_basedd.value = getCurrentDate().substr(0,4) + "0901";
- }else if (getCurrentDate().substr(4,2) > "03" ){
- ipt_basedd.value = getCurrentDate().substr(0,4) + "0301";
- }else{
- ipt_basedd.value = int(getCurrentDate().substr(0,4)) +1 + "0301";
- }
- model.setValue("/root/send/basedd", ipt_basedd.value);
- */
-
-
- cmb_instcd.value = '103' ; // 기관(성의교정)
- cmb_prfshipflag.select(0); // 교직원구분
- // model.refresh();
-
- }
-
- //대상자 산출 버튼 클릭시 실행
- function fExecReapp(){
-
- if( !isRequiredControls("cmb_instcd","cmb_prfshipflag","ipt_basedd") ) return;
- submit("TRRPH01010");
- // btn_search.dispatch("DOMActivate");
- }
-
- // 재임용 선택시 조회를 위한 세팅
- function fChoiceReApntTime(pRow) {
-
- model.setValue("/root/send/condition2/instcd" , grd_reapnttime.valueMatrix(pRow, grd_reapnttime.colRef("instcd" )) );
- model.setValue("/root/send/condition2/reapntyy" , grd_reapnttime.valueMatrix(pRow, grd_reapnttime.colRef("reapntyy" )) );
- model.setValue("/root/send/condition2/reapntseq", grd_reapnttime.valueMatrix(pRow, grd_reapnttime.colRef("reapntseq")) );
- model.setValue("/root/send/condition2/trgtfrdt" , grd_reapnttime.valueMatrix(pRow, grd_reapnttime.colRef("trgtfrdt" )) );
- model.setValue("/root/send/condition2/trgttodt" , grd_reapnttime.valueMatrix(pRow, grd_reapnttime.colRef("trgttodt" )) );
- model.setValue("/root/send/condition2/reapntnm" , grd_reapnttime.valueMatrix(pRow, grd_reapnttime.colRef("reapntnm" )) );
-
- model.refresh();
-
- }
- // 평가항목 등록을 위한 그리드 상태 변경
- function fValueChage(pRow,pCol)
- {
- var sExits = grd_promotnflaglist.valueMatrix(pRow, grd_promotnflaglist.colRef("orgck"));
- var sInsChk = grd_promotnflaglist.valueMatrix(pRow, grd_promotnflaglist.colRef("ck"));
-
- // 원래 입력되지 않음
- if (sExits == 'N' ) {
-
- if ( sInsChk == 'Y' ) {
- // 입력 선택
- grd_promotnflaglist.rowStatus(pRow) = 1;
- } else
- {
- // 입력 선택 되지 않음
- grd_promotnflaglist.rowStatus(pRow) = 0;
- }
-
- }
- // 기존 입력 되어 있음
- if (sExits == 'Y' ) {
- if ( sInsChk == 'Y' ) {
- // 입력 선택
- grd_promotnflaglist.rowStatus(pRow) = 2;
- } else
- {
- // 입력 선택 되지 않음
- grd_promotnflaglist.rowStatus(pRow) = 4;
- }
- }
- }
-
- // 대상자 조회
- function fReriveApplicant()
- {
- if( !isRequiredControls("cmb_instcd","cmb_prfshipflag","ipt_basedd") ) return;
- //model.reset("/root/main/applist");
- model.removeNodeset("/root/main/list/applist");
- model.refresh();
-
-
- submit("TRRPH01010");
- model.refresh();
-
- }
-
- ]]>
- </script>
- <submission id="TRRPH01010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition2" resultref="/root/main/applist"/>
- <bind id="bind1" ref="/root/init/emplnototal" calculate="count(/root/main/list/applist)" type="xsd:int"/>
- <submission id="TRRPH01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/reapntlist"/>
- <submission id="TXRPH01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/applist" resultref="/root/temp"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1434;" 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:732px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:19px; width:80px; height:17px; ">기 관 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:18px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if( !isRequiredControls("cmb_instcd","cmb_prfshipflag","ipt_basedd") ) return;
- model.removeNodeset("/root/main/list/reapntlist");
- //model.resetInstanceNode("/root/main/list/reapntlist");
- //model.reset("/root/main/applist");
- //model.removenode("/root/main/applist");
- //model.setValue("/root/send/condition/instcd", model.getValue("/root/send/instcd"));
- model.refresh();
-
-
- submit("TRRPH01301");
- //submit("TRRPH01010");
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:17px; x2:1110px; y2:39px; "/>
- <caption id="caption278" class="tit_2" style="left:340px; top:50px; width:87px; height:13px; ">대상자 목록</caption>
- <line id="line207" class="line_1" style="x1:340px; y1:65px; x2:1195px; y2:65px; "/>
- <button id="btn_excelsave" class="btn5_letter4" style="left:1120px; top:45px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_promotnflaglist.saveExcel(fileName, "sheet1");
- }
- ]]>
- </script>
- </button>
- <caption id="caption3" style="left:965px; top:45px; width:95px; height:20px; font-weight:bold; color:#0000ff; ">* 조회인원수:</caption>
- <output id="opt_emplnototal" ref="/root/init/emplnototal" format="#,###" style="left:1050px; top:45px; width:40px; height:19px; font-weight:bold; color:#3366ff; text-align:right; "/>
- <input id="ipt_basedd" ref="/root/send/condition/reapntyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:370px; top:19px; width:105px; height:19px; "/>
- <caption id="cap_basedd" class="search_name" style="left:260px; top:19px; width:104px; height:17px; ">재임용 년도 :</caption>
- <datagrid id="grd_promotnflaglist" nodeset="/root/main/list/applist" caption="^연번^원소속부서^근무부서^사원번호^성명^최초임용일^재임용일^재임용기간^재임용기간^직위^직종^직급^호봉|^연번^원소속부서^근무부서^사원번호^성명^최초임용일^재임용일^시작일자^종료일자^직위^직종^직급^호봉" colsep="^" colwidth="21, 23, 95, 89, 56, 60, 68, 66, 66, 67, 60, 60, 60, 32,0" explorerbar="sortshow" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:340px; top:70px; width:850px; height:625px; ">
- <col checkvalue="Y,N" ref="ck" type="checkbox"/>
- <col id="no" ref="no" style="text-align:center; "/>
- <col id="orginstnm" ref="orginstnm"/>
- <col id="deptnm" ref="deptnm"/>
- <col id="emplno" ref="emplno" style="text-align:center; "/>
- <col id="emplnm" ref="emplnm" style="text-align:center; "/>
- <col id="fstappntdd" ref="fstappntdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col id="reappntdd" ref="fstappntdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col id="edudeptappntfromdd" ref="edudeptappntfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col id="edudeptappnttodd" ref="edudeptappnttodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col id="jobposnm" ref="jobposnm" style="text-align:center; "/>
- <col id="jobkindnm" ref="jobkindnm" style="text-align:center; "/>
- <col id="gradnm" ref="gradnm" style="text-align:center; "/>
- <col id="payclscd" ref="payclscd" style="text-align:center; "/>
- <col id="instcd" ref="instcd" style="text-align:center; "/>
- <col id="reapntyy" ref="reapntyy" style="text-align:center; "/>
- <col id="reapntseq" ref="reapntseq" style="text-align:center; "/>
- <col id="orgck" ref="orgck" style="text-align:center; "/>
- <col id="reapntnm" ref="reapntnm" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var cur_row = grd_promotnflaglist.row;
- var cur_col = grd_promotnflaglist.col;
- fValueChage(cur_row,cur_col );
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_instcd" ref="/root/send/condition/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:91px; top:19px; width:153px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // model.setValue("/root/send/dutcdparams/instcd", cmb_instcd.value)
- ]]>
- </script>
- </select1>
- <datagrid id="grd_reapnttime" nodeset="/root/main/list/reapntlist" caption="기관코드^재임용^회차^재임용명^대상기간^대상기간^종료|기관코드^년도^회차^재임용명^From^To^여부" colsep="^" colwidth="0, 48, 30, 110, 64, 59, 32" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:70px; width:335px; height:265px; ">
- <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" style="text-align:center; vertical-align:middle; "/>
- <col ref="trgtfrdt"/>
- <col ref="trgttodt"/>
- <col ref="endyn" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; "/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var cur_row = grd_reapnttime.row;
- fChoiceReApntTime(cur_row);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- //grd_reapnttime.dispatch("onrowchanged");
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:0px; top:50px; width:87px; height:14px; ">재임용 회차</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:335px; y2:65px; "/>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:380px; width:335px; height:315px; background-color:#fffbf2; border-color:#ffd799; "/>
- <select1 id="cmb_prfshipflag" ref="/root/send/condition2/prfshipflag" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:108px; top:400px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/scrngvalupd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="cap_prfshipflag" class="search_name" style="left:5px; top:400px; width:105px; height:17px; ">교직원구분 :</caption>
- <caption id="caption2" class="search_name" style="left:5px; top:425px; width:105px; height:17px; ">임용 기간 :</caption>
- <input id="ipt_todate" ref="/root/send/condition2/trgttodt" class="input_s_essential" navindex="-1" inputtype="date" style="left:225px; top:423px; width:95px; height:19px; "/>
- <input id="ipt_frdate" ref="/root/send/condition2/trgtfrdt" class="input_s_essential" inputtype="date" style="left:108px; top:423px; width:95px; height:19px; "/>
- <caption id="caption4" style="left:210px; top:425px; width:16px; height:16px; ">~</caption>
- <caption id="caption5" class="search_name" style="left:5px; top:445px; width:105px; height:17px; ">사 번 :</caption>
- <input id="ipt_emplnm" ref="/root/send/condition2/emplnm" class="input_default" imemode="hangul" style="left:225px; top:445px; width:95px; height:19px; "/>
- <button id="btn_emplnohelp" class="icon_search" style="left:205px; top:445px; width:16px; height:16px; ">
- <caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var precv_list = "emplno" + "," + "emplnm";
- //alert(precv_list);
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno,precv_list,"ipt_systemflag",'Y');
- model.refresh();
- ]]>
- </script>
- </caption>
- </button>
- <input id="ipt_emplno" ref="/root/send/condition2/emplno" class="input_default" style="left:108px; top:445px; width:95px; height:19px; "/>
- <button id="button1" class="btn1_letter2" style="left:280px; top:357px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fReriveApplicant();
-
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:350px; x2:335px; y2:350px; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:28px; ">
- <button id="button16" class="btn3_letter9" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>재임용 대상자 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPRPH01400","XMLSTR");
- ]]>
- </script>
- </button>
- <line id="line4" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- <button id="btn_exe" class="btn4_letter5" style="left:1037px; top:3px; width:92px; height:22px; ">
- <caption>대상자산출</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExecReapp();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1130px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var updtdata = getGridUpdateData(grd_promotnflaglist);
-
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
- model.setValue("/root/save/applist",updtdata);
-
- misfSave("TXRPH01002");
- fReriveApplicant();
- //btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|