123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392 |
- <?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>
- <apntcopass>
- <apntcopasslist/>
- </apntcopass>
- <currentyear>
- <currentyearlist>
- <curyear/>
- </currentyearlist>
- </currentyear>
- <apntinfo>
- <apntinfolist/>
- </apntinfo>
- <tisorddeptcdlist/>
- </main>
- <send>
- <save>
- <apntcopasslist/>
- <workgbn/>
- <exptpsn/>
- </save>
- <apntcopass>
- <apntyy/>
- <korname/>
- <apprtcdrflag/>
- <supinfqurtyyflag/>
- <trngflag/>
- </apntcopass>
- <apntinfo>
- <instcd/>
- <prfshipflag/>
- <apntfromdd/>
- <apnttodd/>
- <apntyy/>
- </apntinfo>
- </send>
- <temp/>
- </root>
- </instance>
- <submission id="TXRTB00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hiddeen/temp"/>
- <script type="javascript">
- <![CDATA[
- var ENT_TARGET_NODE = "/root/main/apntcopassdata";
- var ENT_SOURCE_NODE = "/root/main/apntcopass";
- ]]>
- </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"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize() ;
- misfGridInit(grd_apntexptpassmngtlist);
- misfMsterDetailSet(grd_apntexptpassmngtlist, null, "TRRTR01301" ,"Y");
-
- // var gvnoffcordflag = "09";
- // rpbfComboGvnoffOrddetl(gvnoffcordflag, "cmb_gvnoffcorddetlflag");
- // submit("TRRTB00102");
-
- // var yy = model.getValue("/root/main/currentyear/currentyearlist/curyear");
- // model.setValue("/root/send/apntinfo/apntyy", yy);
- // model.setValue("/root/send/apntinfo/apntfromdd",yy + "0101");
- // model.setValue("/root/send/apntinfo/apnttodd",yy + "1231");
-
- // model.setValue("/root/send/apntcopass/apntflag","1");
-
- // submit("TRRTB00103");
-
- ]]>
- </script>
- <submission id="TRRTR01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/apntcopass" resultref="/root/main/apntcopass/apntcopasslist"/>
- <submission id="TXRTR01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqint" resultref="/root/main/tisorddeptcdlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- misfGridInit(grd_apntexptpassmngtlist);
- model.resetInstanceNode("/root/send");
- model.refresh();
-
- var curDate = getCurrentDate().toDate().getDateFormat("YYYYMMDD");
- var isDate = curDate.toDate().getAddDate(2,'M').getDateFormat("YYYY");
-
- model.setValue("/root/send/apntcopass/apntyy", isDate);
-
- misfGridComboComCdList("R0237",grd_apntexptpassmngtlist,"supinfqurtyyflag");
- misfGridComboComCdList("R0151",grd_apntexptpassmngtlist,"apprtcdrflag");
- misfGridComboComCdList("Z0007",grd_apntexptpassmngtlist,"instcd");
- //misfGridComboComCdList("R0234",grd_apntexptpassmngtlist,"deptcd");
- misfGridComboComCdList("R0239",grd_apntexptpassmngtlist,"dentyn");
- misfGridComboComCdList("R0078",grd_apntexptpassmngtlist,"clssvcstatcd");
-
- submit("TRRTS00602");
-
- misfComboComCdListMulti("R0237,R0151", "cmb_supinfqurtyyflag,cmb_trngflag");
-
- cmb_supinfqurtyyflag.select(0);
- cmb_trngflag.select(0);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,764;2,764;" 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:40; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line207" class="line_1" style="x1:0px; y1:75; x2:1195px; y2:75; "/>
- <datagrid id="grd_apntexptpassmngtlist" nodeset="/root/main/apntcopass/apntcopasslist" caption="선택^채용정보번호^사원번호^이름^주민등록번호^상하반기구분^전공의구분^년도^소속기관^부서코드^년차^치과여부^연락처^발령여부^군보여부^역종코드^비고" colsep="^" colwidth="36, 100, 100, 100, 100, 100, 100, 60, 100, 100, 40, 70, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:80; width:1194px; height:595px; ">
- <col checkvalue="Y,N" ref="selyn" type="checkbox"/>
- <col ref="apntinfono"/>
- <col ref="emplno"/>
- <col ref="name" type="input" _key="true"/>
- <col ref="rregno" type="input" format="999999-9999999" _key="true"/>
- <col ref="supinfqurtyyflag" type="combo" _key="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="apprtcdrflag" type="combo" _key="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="yy" type="input" _key="true"/>
- <col ref="instcd" type="combo" _key="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="deptcd" type="combo" _key="true">
- <choices>
- <itemset nodeset="/root/main/tisorddeptcdlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="anual" type="input" format="9"/>
- <col ref="dentyn" type="combo" _key="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="supppsnmpphonno" type="input"/>
- <col ref="gvnoffcordtretyn"/>
- <col ref="armyyn" type="combo" _key="true">
- <choices>
- <item>
- <label>군보</label>
- <value>Y</value>
- </item>
- <item>
- <label>비군보</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="clssvcstatcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="cmt" type="input"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_apntexptpassmngtlist.col == grd_apntexptpassmngtlist.colRef("armyyn"))
- {
- if(grd_apntexptpassmngtlist.valueMatrix(grd_apntexptpassmngtlist.row, grd_apntexptpassmngtlist.colRef("armyyn")) == 'Y')
- grd_apntexptpassmngtlist.colDisabled(grd_apntexptpassmngtlist.colRef("clssvcstatcd")) = true;
- else if(grd_apntexptpassmngtlist.valueMatrix(grd_apntexptpassmngtlist.row, grd_apntexptpassmngtlist.colRef("armyyn")) == 'N')
- grd_apntexptpassmngtlist.colDisabled(grd_apntexptpassmngtlist.colRef("clssvcstatcd")) = false;
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption13" class="search_name" style="left:905px; top:21px; width:75px; height:17px; ">성 명 :</caption>
- <input id="ipt_korname" ref="/root/send/apntcopass/korname" class="input_search" style="left:983px; top:20px; width:100px; height:19px; "/>
- <line id="line14" class="line_4" style="x1:1100px; y1:19px; x2:1100px; y2:40; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:20; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_apntyy"))return;
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <button id="button12" class="btn2_letter4" style="left:910px; top:53px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = grd_apntexptpassmngtlist.fixedRows; i < grd_apntexptpassmngtlist.rows; i++ ) {
- grd_apntexptpassmngtlist.valueMatrix(i, grd_apntexptpassmngtlist.colRef("selyn")) = 'Y';
- }
-
- ]]>
- </script>
- </button>
- <input id="ipt_yy" ref="/root/send/apntcopass/apntyy" class="input_search" format="yyyy" style="left:105px; top:20; width:100px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="cap_apntyy" class="search_name" style="left:18px; top:21; width:86px; height:17px; ">채용년도 :</caption>
- <button id="button1" class="btn2_letter4" style="left:975px; top:53px; width:64px; height:19px; ">
- <caption>전체취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = grd_apntexptpassmngtlist.fixedRows; i < grd_apntexptpassmngtlist.rows; i++ ) {
- grd_apntexptpassmngtlist.valueMatrix(i, grd_apntexptpassmngtlist.colRef("selyn")) = 'N';
- }
- ]]>
- </script>
- </button>
- <input id="ipt_workgbn" ref="/root/send/save/workgbn" visibility="hidden" style="left:680px; top:55; width:95px; height:20px; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:57; width:117px; height:14px; ">채용 예외 합격자 관리</caption>
- <button id="button2" class="btn2_letter4" style="left:845px; top:53px; 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_apntexptpassmngtlist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" style="left:1040px; top:53px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_apntexptpassmngtlist, "A");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" style="left:1094px; top:53px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_apntexptpassmngtlist, "D");
- ]]>
- </script>
- </button>
- <select1 id="cmb_trngflag" ref="/root/send/apntcopass/trngflag" appearance="minimal" style="left:400; top:20px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ipt_apprtcdrflag.value = cmb_trngflag.value;
- ipt_apprtcdrflag.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:295; top:21px; width:104px; height:17px; ">전공의 구분 :</caption>
- <select1 id="cmb_supinfqurtyyflag" ref="/root/send/apntcopass/supinfqurtyyflag" appearance="minimal" style="left:715; top:20px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:600; top:21px; width:117px; height:17px; ">상하반기 구분 :</caption>
- <input id="ipt_apprtcdrflag" ref="/root/send/apntcopass/apprtcdrflag" visibility="hidden" style="left:650px; top:55px; width:25px; height:19px; "/>
- <button id="button5" class="btn5_letter2" style="left:1148px; top:53px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- checkKeyColumn("grd_apntexptpassmngtlist")
-
- // 그리드 속성에 _key 속성을 줄 경우 조회후 readonly 형식으로 바껴서 input는 수정하지 못한다.
- if(grd_apntexptpassmngtlist.valueMatrix(grd_apntexptpassmngtlist.row, grd_apntexptpassmngtlist.colRef("anual")) == "")
- {
- messageBox("년차는 ","I003");
- return;
- }
- if(grd_apntexptpassmngtlist.valueMatrix(grd_apntexptpassmngtlist.row, grd_apntexptpassmngtlist.colRef("name")) == "")
- {
- messageBox("이름은 ","I003");
- return;
- }
- if(grd_apntexptpassmngtlist.valueMatrix(grd_apntexptpassmngtlist.row, grd_apntexptpassmngtlist.colRef("rregno")) == "")
- {
- messageBox("주민등록번호는 ","I003");
- return;
- }
-
- misfSave("TXRTR01301");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <input id="ipt_exptpsn" ref="/root/send/save/exptpsn" visibility="hidden" style="left:785px; top:55px; width:50px; height:19px; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_gvnoffcord" class="btn4_letter4" style="left:1006px; top:3px; width:80px; height:22px; ">
- <caption>사번생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_apntexptpassmngtlist.clearStatus();
-
- var submit_node = model.children("TXRTB00102").attribute("ref");
- var selyn = "N";
- var emplno = "";
- var emplnm = "";
-
- for (var i = 1; i < grd_apntexptpassmngtlist.rows; i++) {
-
- selyn = grd_apntexptpassmngtlist.valueMatrix(i, grd_apntexptpassmngtlist.colRef("selyn"));
- emplno = grd_apntexptpassmngtlist.valueMatrix(i, grd_apntexptpassmngtlist.colRef("emplno"));
- emplnm = grd_apntexptpassmngtlist.valueMatrix(i, grd_apntexptpassmngtlist.colRef("name"));
-
- if (selyn == "Y" && emplno != "" && emplno.length > 0) {
- messageBox(emplnm + "은 이미 사번이 생성되어 발번 ","E001");
- return;
- }
-
- grd_apntexptpassmngtlist.addStatus(i,"update");
- }
- model.setValue("/root/send/save/workgbn","I");
- model.setValue("/root/send/save/exptpsn","Y");
-
- //model.setValue(submit_node + "/apntcopasslist" , grd_apntexptpassmngtlist.getUpdateData());
- //model.setValue(submit_node + "/apntcopasslist" , grd_apntexptpassmngtlist.getUpdateData());
- misfSave("TXRTB00102");
- //submit("TXRTB00102");
-
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- <button id="btn_gvnoffcordcancle" class="btn4_letter6" style="left:1088px; top:3px; width:104px; height:22px; ">
- <caption>사번생성취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_apntexptpassmngtlist.clearStatus();
-
- for (var i = 2; i < grd_apntexptpassmngtlist.rows; i++) {
- var selyn = grd_apntexptpassmngtlist.valueMatrix(i, grd_apntexptpassmngtlist.colRef("selyn"));
- var gvnoffcordtretyn = grd_apntexptpassmngtlist.valueMatrix(i, grd_apntexptpassmngtlist.colRef("gvnoffcordtretyn"));
- var emplnm = grd_apntexptpassmngtlist.valueMatrix(i, grd_apntexptpassmngtlist.colRef("emplnm"));
-
- if (selyn == "Y" && gvnoffcordtretyn == "Y") {
- messageBox(emplnm + "은 인사 마스터에 반영이 되어서 사번생성 취소를 ", "E001");
- return;
- }
- grd_apntexptpassmngtlist.addStatus(i,"update");
- }
-
- model.setValue("/root/send/save/workgbn","D");
- model.setValue("/root/send/save/exptpsn","Y");
-
- var submit_node = model.children("TXRTB00102").attribute("ref");
- misfSave("TXRTB00102");
-
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|