123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484 |
- <?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>
- <appointlist/>
- <appraiserlist>
- </appraiserlist>
- </main>
- <send>
- <apntyy/>
- <supinfqurtyyflag/>
- <fstlattrmflag/>
- <trngflag/>
- <dentyn/>
- <scrngflag>2</scrngflag>
- <name/>
- <valupsnid/>
- <drlicnsno/>
- <save>
- <appointlist/>
- <appraiserlist/>
- </save>
- <appointlist>
- <scrngflag/>
- <seqno/>
- <apntinfono/>
- </appointlist>
- <dept/>
- </send>
- <init>
- <systemflag>C</systemflag>
- </init>
- <hidden>
- <apntinfonolist/>
- </hidden>
- <temp>
- </temp>
- </root>
- </instance>
- <submission id="TRRTC00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/appointlist"/>
- <submission id="TXRTC00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRTC00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/appointlist" resultref="/root/main/appraiserlist"/>
- <submission id="TRRTC00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/apntinfonolist"/>
- <submission id="TXRTC00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" 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/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/tistrngeducbaseinfomngtweb/js/RTC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //사용자 권한
- fCheckAuth();
-
- // 그리드 초기화
- misfGridInit(grd_appointlist);
- misfGridInit(grd_appraiserlist);
-
- misfMsterDetailSet(grd_appointlist, null, "TRRTC00801" ,"Y");
- misfMsterDetailSet(grd_appraiserlist, grd_appointlist, "TRRTC00802" ,"Y");
-
- misfGridComboComCdList("R0234", grd_appraiserlist, "deptcd");
-
- misfComboComCdListMulti("R0237,R0238,R0151,R0239,R0240,R0234","cmb_supinfqurtyyflag,cmb_fstlattrmflag,cmb_trngflag,cmb_dentyn,cmb_scrngflag,cmb_dept");
-
- misfComboCopyItemSet(cmb_supinfqurtyyflag, "/root/send/supinfqurtyyflag", grd_appointlist, "supinfqurtyyflag"); // 상하반기
- misfComboCopyItemSet(cmb_fstlattrmflag, "/root/send/fstlattrmflag", grd_appointlist, "fstlattrmflag"); // 전후기
- misfComboCopyItemSet(cmb_trngflag, "/root/send/trngflag", grd_appointlist, "trngflag"); // 전공의구분
- misfComboCopyItemSet(cmb_dentyn, "/root/send/dentyn", grd_appointlist, "dentyn"); // 치과여부
- misfComboCopyItemSet(cmb_scrngflag, "/root/send/scrngflag", grd_appointlist, "newscrngflag"); // 전형구분
-
- misfComboCopyItemSet(cmb_dept, "/root/send/dept", grd_appointlist, "deptcd"); // 부서
- //그리드의 타이틀을 누르면 sort되는 기능
- grd_appointlist.explorerbar = "sort";
- grd_appointlist.selectionMode = "byrow"
-
- // 2007-11-18 년도 디폴트설정 acwon수정
- 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/apntyy", cur_yy);
- model.refresh();
- //end
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
-
- function fDataSetting(){
-
- var sName = grd_appointlist.valueMatrix(grd_appointlist.row, grd_appointlist.colRef("emplnm"));
- var sEmplno = grd_appointlist.valueMatrix(grd_appointlist.row, grd_appointlist.colRef("emplno"));
- grd_appraiserlist.valueMatrix(grd_appraiserlist.row, grd_appraiserlist.colRef("valuernm")) = sName;
- grd_appraiserlist.valueMatrix(grd_appraiserlist.row, grd_appraiserlist.colRef("valupsnid")) = sEmplno;
- }
- ]]>
- </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:1195; height:744; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1190px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption223" class="tit_2" style="left:0px; top:78px; width:125px; height:15px; font-size:10pt; ">평가자 LIST</caption>
- <datagrid id="grd_appointlist" nodeset="/root/main/appointlist" caption="년 도^상하반기^전후기^전공의구분^치과여부^전형구분^사원번호^이름^의사면허번호^소속기관^근무지명^직위^직책^caption1^caption2^채용정보번호" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 100, 100, 100, 150, 150, 125, 168, 68, 88, 100" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:99px; width:940px; height:616px; font-size:10pt; ">
- <col ref="apntyy" type="input" visibility="hidden" format="####" maxlength="4" showmask="true" _required="true" style="text-align:center; "/>
- <col ref="supinfqurtyyflag" type="combo" visibility="hidden" _required="true" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="fstlattrmflag" type="combo" visibility="hidden" _required="true" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="trngflag" type="combo" visibility="hidden" _required="true" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="dentyn" type="combo" visibility="hidden" _required="true" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="newscrngflag" type="combo" visibility="hidden" _required="true" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="emplno" type="inputbutton" _required="true" style="text-align:center; "/>
- <col ref="emplnm" type="output" style="text-align:center; "/>
- <col ref="drlicnsno" type="output" style="text-align:center; "/>
- <col ref="instnm"/>
- <col ref="unitnm"/>
- <col ref="jobposnm"/>
- <col ref="jobrespnm"/>
- <col ref="seqno"/>
- <col ref="scrngflag"/>
- <col ref="apntinfono"/>
- <col ref="deptcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- //사원번호 버튼을 눌렀을 때
- if (grd_appointlist.col == 7) {
- var recv_list = "emplno,emplnm,instnm,unitnm,jobposnm,jobrespnm,drlicnsno";
-
- /* 2007-11-12 청주교원 help 수정 acwon수정 */
- //rpbfOpenPopUpList("SPRPB00101", grd_appointlist, recv_list,"C","N");
- rpbfOpenPopUpList("SPRPB00101", grd_appointlist, recv_list,"ipt_systemflag","N");
- //misfOpenPopUpList("01", grd_appointlist,"",recv_list);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_appointlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line27" class="line_1" style="x1:0px; y1:96px; x2:940px; y2:96px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //필수 입력 항목 체크(공통 ftHelper.js)
- if ( !isRequiredControls("ipt_apntyy") )return;
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <caption id="caption115" class="search_name" style="left:15px; top:39px; width:86px; height:17px; ">전형구분 :</caption>
- <caption id="caption118" class="search_name" style="left:500px; top:9; width:110px; height:17px; ">전공의구분 :</caption>
- <input id="ipt_apntyy" ref="/root/send/apntyy" class="input_s_essential" format="yyyy" style="left:100px; top:10px; width:100px; height:19px; "/>
- <caption id="cap_apntyy" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">년 도 :</caption>
- <select1 id="cmb_supinfqurtyyflag" ref="/root/send/supinfqurtyyflag" class="combo_s_essential" appearance="minimal" style="left:335; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_trngflag" ref="/root/send/trngflag" class="combo_s_essential" appearance="minimal" style="left:600; top:10; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_dentyn" ref="/root/send/dentyn" class="combo_s_essential" appearance="minimal" style="left:600; top:40; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption120" class="search_name" style="left:250; top:9px; width:86px; height:17px; ">상하반기 :</caption>
- <caption id="caption121" class="search_name" style="left:250; top:39; width:86px; height:17px; ">전 후 기 :</caption>
- <line id="line82" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption122" class="search_name" style="left:500px; top:39px; width:101px; height:17px; ">치과여부 :</caption>
- <select1 id="cmb_fstlattrmflag" ref="/root/send/fstlattrmflag" class="combo_s_essential" appearance="minimal" style="left:335; top:38; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_scrngflag" ref="/root/send/scrngflag" class="combo_s_essential" appearance="minimal" style="left:100px; top:38px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_drlicnsno" ref="/root/send/drlicnsno" class="combo_s_essential" appearance="minimal" style="left:875; top:40; width:100px; height:19px; "/>
- <caption id="cap_drlicnsno" class="search_name" style="left:755px; top:40px; width:135px; height:17px; ">의사 면허번호 :</caption>
- <button id="btn_deleterow" class="btn2_letter3" style="left:885px; top:76px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_appointlist, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" style="left:830px; top:76px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridInit(grd_appraiserlist);
- misfGridIUD(grd_appointlist, "A");
-
- /* 2007-11-12 행추가시에 전형구분 세팅 acwon수정 */
- grd_appointlist.valueMatrix(grd_appointlist.row, grd_appointlist.colref("newscrngflag")) = model.getValue("/root/send/scrngflag");
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter4" style="left:765px; top:76px; width:64px; height:19px; vertical-align:middle; ">
- <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_appointlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_appraiserlist" nodeset="/root/main/appraiserlist" caption="부서코드^평가자^채용정보번호^전형구분^일련번호^평가자ID^old부서코드" colsep="^" colwidth="100, 90, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:950px; top:120px; width:235px; height:595px; ">
- <col ref="deptcd" type="combo" _required="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="valuernm"/>
- <col ref="apntinfono" visibility="hidden"/>
- <col ref="scrngflag" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="valupsnid" visibility="hidden"/>
- <col ref="olddeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_appraiserlist.col == grd_appraiserlist.colRef("valuerid")) {
- var recv_list = "valuerid,valuernm";
- misfOpenPopUpList("29", grd_appraiserlist,"",recv_list);
- }
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:950px; y1:116px; x2:1185px; y2:117px; "/>
- <button id="btn_delrow_spec" class="btn2_letter3" style="left:1130px; top:74px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_appointlist.rows - grd_appointlist.fixedRows == 0)
- {
- return;
- }
-
- misfGridIUD(grd_appraiserlist, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_addrow_spec" class="btn2_letter3" style="left:1075px; top:74px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_appointlist.rows - grd_appointlist.fixedRows == 0)
- {
- return;
- }
- misfGridIUD(grd_appraiserlist, "A");
- fDataSetting();
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:950px; top:101px; width:125px; height:13px; font-size:10pt; ">제외과 내역</caption>
- <input id="ipt_systemflag" ref="/root/init/systemflag" visibility="hidden" style="left:315px; top:70px; width:45px; height:19px; "/>
- <button id="button1" class="btn2_letter6" style="left:678; top:76px; width:64px; height:19px; vertical-align:middle; ">
- <caption>전년도COPY</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //필수 입력 항목 체크(공통 ftHelper.js)
- if ( !isRequiredControls("ipt_apntyy", "cmb_supinfqurtyyflag", "cmb_trngflag", "cmb_scrngflag", "cmb_fstlattrmflag", "cmb_dentyn") ) {
- return false;
- }
-
-
-
- var retMes = messageBox("전년도 Copy 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- misfSave("TXRTC00802");
- misfMsterDetailRetrieve();
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter10" style="left:1055px; top:95px; width:130px; height:19px; vertical-align:middle; ">
- <!-- 2008.7.31 임지헌 기능 추가 -->
- <caption>제외과내역 일괄생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(grd_appraiserlist.rows > 1) {
- messageBox("제외내역 부서를 삭제한 후 생성할 수 있습니다.","C999");
- return false;
-
- }
-
- var retMes = messageBox("제외과내역을 초기화시키시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }else{
-
- }
-
- if (grd_appointlist.row == -1 || grd_appointlist.row == 0) {
- messageBox("평가자를","C002");
- return false;
- }
-
- var sapntinfono = grd_appointlist.valueMatrix(grd_appointlist.row, grd_appointlist.colRef("apntinfono"));
- var sscrngflag = grd_appointlist.valueMatrix(grd_appointlist.row, grd_appointlist.colRef("scrngflag"));
- var sseqno = grd_appointlist.valueMatrix(grd_appointlist.row, grd_appointlist.colRef("seqno"));
- var sName = grd_appointlist.valueMatrix(grd_appointlist.row, grd_appointlist.colRef("emplnm"));
- var sEmplno = grd_appointlist.valueMatrix(grd_appointlist.row, grd_appointlist.colRef("emplno"));
-
- for(var i=0; i < cmb_dept.length ; i++){
- var deptcd = cmb_dept.item(i).value;
- misfGridIUD(grd_appraiserlist, "A");
-
- model.setValue("/root/main/appraiserlist["+(i+1)+"]/apntinfono",sapntinfono) ;
- model.setValue("/root/main/appraiserlist["+(i+1)+"]/scrngflag",sscrngflag);
- model.setValue("/root/main/appraiserlist["+(i+1)+"]/seqno", sseqno );
- model.setValue("/root/main/appraiserlist["+(i+1)+"]/deptcd", deptcd );
- model.setValue("/root/main/appraiserlist["+(i+1)+"]/valuernm", sName );
- model.setValue("/root/main/appraiserlist["+(i+1)+"]/valupsnid", sEmplno );
-
-
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_dept" ref="/root/send/dept" visibility="hidden" appearance="minimal" style="left:960px; top:75px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grp_btn" 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:1131px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /* 2007-11-13 채용 평가자 중복입력 체크 acwon수정 */
- var cnt = getNodesetCount("/root/main/appointlist");
- var nodepath = "";
- for (var i = 0; i < cnt; i++)
- {
- nodepath = "/root/main/appointlist[emplno='"+ model.getValue("/root/main/appointlist["+i+"]/emplno") +"']";
- var emplnoCnt = getNodesetCount(nodepath);
-
- if (emplnoCnt > 1)
- {
- var msg = model.getValue("/root/main/appointlist["+i+"]/emplno") +" "+ model.getValue("/root/main/appointlist["+i+"]/emplnm");
- messageBox("사원번호 " + msg + " 중복입력되었습니다.", "E", "");
- return;
- }
- }//2007-11-13 end
-
- var updtdata = getGridUpdateData(grd_appointlist);
- var updtdata_appraiser = getGridUpdateData(grd_appraiserlist);
-
- if (updtdata == "" && updtdata_appraiser == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- misfCheckDupData(grd_appraiserlist, 1);
-
- if(!checkRequiredColumn("grd_appointlist"))return;
- if(!checkRequiredColumn("grd_appraiserlist"))return;
- misfSave("TXRTC00801");
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|