123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377 |
- <?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>인턴근무SCHEDULE등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <dutsumlist/>
- </list>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <gpdates/>
- <gpdatee/>
- <dutunitcd/>
- <dutunitnm/>
- <retrflag>0510</retrflag>
- <emplno/>
- <emplnm/>
- <deptgb/>
- <gb/>
- <gpgubun/>
- </retrparams>
- <save>
- <dutsumlist/>
- </save>
- </send>
- <init>
- <list>
- <dutsumlist/>
- </list>
- </init>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRRWP20801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
- <submission id="TRRWP20701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/init/list"/>
- <submission id="TXRWP20801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TXRWP20802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/hidden/temp"/>
- <submission id="TXRWP20803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/hidden/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/dligclaznsmngtweb/js/RPD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // var DUT_UNIT_CD = "";
- // var DUT_UNIT_NM = "";
- // var DUTY_RESP_YN = ""; // 복무 책임자
- // var DUTY_PART_YN = ""; // 인사 복무 담당자
- function fInitialize()
- {
- model.removenode("/root/main/list/dutsumlist");
-
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- //model.setValue("/root/send/retrparams/year", getCurrentDate().substr(0, 4));
- //model.setValue("/root/send/retrparams/todutym", getCurrentDate().substr(0, 6));
- var curdate = getCurrentDate();
-
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
-
- misfGetAndSetUserInfo();
-
- cmb_instcd.disabled = true;
-
- btn_search.dispatch("DOMActivate");
- model.setValue("/root/send/retrparams/deptgb", "Y");
- model.setValue("/root/send/retrparams/gpgubun", "A");
- submit("TRRWP20701");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-right:8; ">
- <group id="group1" style="left:0px; top:0px; width:885px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">인턴근무SCHEDULE등록</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:885px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:880px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:795px; y1:17px; x2:795px; y2:39px; "/>
- <caption id="caption278" class="tit_2" style="left:5px; top:54px; width:206px; height:14px; ">인턴근무SCHEDULE리스트</caption>
- <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:880px; y2:69px; "/>
- <datagrid id="grd_dutsumlist" nodeset="/root/main/list/dutsumlist" caption="순번^사원번호^성명^부서명^평가자^평가자^기간from^caption1^caption3^caption2" colsep="^" colwidth="63, 86, 124, 335, 100, 127, 100, 100, 100" dataheight="25" explorerbar="sortshow" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:74px; width:880px; height:670px; border-right-color:#3366ff; ">
- <col ref="seqno" style="text-align:center; "/>
- <col disabled="true" ref="emplno" type="inputbutton" style="text-align:center; "/>
- <col ref="emplnm"/>
- <col ref="deptcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/list/dutsumlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="pemplno" style="text-align:center; "/>
- <col ref="pemplnm"/>
- <col ref="gpdates" visibility="hidden" style="text-align:center; "/>
- <col ref="gpdatee" visibility="hidden"/>
- <col ref="cnt" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dutsumlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_dutsumlist.colAttribute(grd_dutsumlist.col,"ref") == "emplno" ) { //계산기준코드
- var recv_list = "emplno,emplnm";
-
- rpbfOpenPopUpList("SPRPB00101", grd_dutsumlist, recv_list,"","N");
- model.refresh();
- }
- if (grd_dutsumlist.colAttribute(grd_dutsumlist.col,"ref") == "pemplno" ) { //계산기준코드
- var emplno = model.getValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/emplno");
- var emplnm = model.getValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/emplnm");
- var recv_list = "emplno,emplnm";
-
- rpbfOpenPopUpList("SPRPB00101", grd_dutsumlist, recv_list,"","N");
- var emplno1 = model.getValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/emplno");
- var emplnm1 = model.getValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/emplnm");
- model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/pemplno", emplno1);
- model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/pemplnm", emplnm1);
- model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/emplno", emplno);
- model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/emplnm", emplnm);
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_dutsumlist.colAttribute(grd_dutsumlist.col,"ref") == "deptcd" ) { //계산기준코드
- var deptcd = model.getValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/deptcd");
- var irow = datagrid1.findRow(deptcd, 1, datagrid1.colRef("deptcd"), false, false);
- //alert(irow + "==" + deptcd);
- model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/pemplno", model.getValue("/root/init/list/dutsumlist[" + irow + "]/emplno"));
- model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/pemplnm", model.getValue("/root/init/list/dutsumlist[" + irow + "]/emplnm"));
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption5" class="search_name" style="left:10px; top:19px; width:86px; height:17px; ">소속기관 :</caption>
- <caption id="caption1" class="search_name" style="left:250px; top:19px; width:86px; height:17px; ">평가기간 :</caption>
- <input id="ipt_year" ref="/root/send/retrparams/gpdates" class="input_search" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:340px; top:18px; width:120px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:100px; top:18px; width:140px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <button id="btn_search" class="btn1_letter2" navindex="10" style="left:810px; top:18px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRWP20801");
- ]]>
- </script>
- </button>
- <button id="btn_excsave" class="btn2_letter4" style="left:812px; top:49px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_dutsumlist);
- ]]>
- </script>
- </button>
- <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:756px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_dutsumlist, true);
- ]]>
- </script>
- </button>
- <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:700px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/retrparams/gpdates") > model.getValue("/root/send/retrparams/gpdatee")){
- messageBox("기간설정이 잘못 되었습니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/send/retrparams/gpdates") == ""){
- messageBox("평가기간 시작일자를 입력한 후 처리하시기 바립니다..", "E999", "");
- return;
- }
- if (model.getValue("/root/send/retrparams/gpdatee") == ""){
- messageBox("평가기간 종료일자를 입력한 후 처리하시기 바립니다..", "E999", "");
- return;
- }
- grd_dutsumlist.addRow();
- model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/gpdates", model.getValue("/root/send/retrparams/gpdates"));
- model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/gpdatee", model.getValue("/root/send/retrparams/gpdatee"));
- //model.setValue("/root/main/list/dutsumlist[" + grd_dutsumlist.row + "]/endflag", "N");
- grd_dutsumlist.topRow = grd_dutsumlist.row;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter5" style="left:622px; top:49px; width:75px; height:19px; ">
- <caption>대상자생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/retrparams/gpdates") > model.getValue("/root/send/retrparams/gpdatee")){
- messageBox("기간설정이 잘못 되었습니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/send/retrparams/gpdates") == ""){
- messageBox("평가기간 시작일자를 입력한 후 처리하시기 바립니다..", "E999", "");
- return;
- }
- if (model.getValue("/root/send/retrparams/gpdatee") == ""){
- messageBox("평가기간 종료일자를 입력한 후 처리하시기 바립니다..", "E999", "");
- return;
- }
- if( messageBox("해당 자료를 삭제한 후 다시 생성하시겠습니까?" , "Q99" ) == 6 ){
- if (submit("TXRWP20802")){
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/send/retrparams/gpdatee" class="input_search" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:490px; top:18px; width:120px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/retrparams/gpdates") > model.getValue("/root/send/retrparams/gpdatee")){
- messageBox("기간설정이 잘못 되었습니다.", "E999", "");
- return;
- }
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption2" style="left:465px; top:20px; width:20px; height:20px; text-align:center; ">~</caption>
- <select1 id="radio1" ref="/root/send/retrparams/gpgubun" overflow="visible" appearance="full" cols="2" style="left:415px; top:50px; width:100px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>의과</label>
- <value>A</value>
- </item>
- <item>
- <label>치과</label>
- <value>B</value>
- </item>
- </choices>
- </select1>
- <button id="button2" class="btn2_letter7" style="left:522px; top:49px; width:97px; height:19px; ">
- <caption>평가대상자등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/retrparams/gpdates") > model.getValue("/root/send/retrparams/gpdatee")){
- messageBox("기간설정이 잘못 되었습니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/send/retrparams/gpdates") == ""){
- messageBox("평가기간 시작일자를 입력한 후 처리하시기 바립니다..", "E999", "");
- return;
- }
- if (model.getValue("/root/send/retrparams/gpdatee") == ""){
- messageBox("평가기간 종료일자를 입력한 후 처리하시기 바립니다..", "E999", "");
- return;
- }
- if (parseInt(model.getValue("/root/main/list/dutsumlist[" + 1 + "]/cnt")) > 0){
- if( messageBox("이미 데이터생성이 되었습니다. 다시 생성하시겠습니까?" , "Q99" ) == 6 ){
- if (submit("TXRWP20803")){
- btn_search.dispatch("DOMActivate");
- }
- }
- }else{
- if (submit("TXRWP20803")){
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:885px; height:27px; ">
- <button id="button36" class="btn4_letter2" style="left:819px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = 1; i < grd_dutsumlist.rows; i ++){
- var emplno1 = model.getValue("/root/main/list/dutsumlist[" + i + "]/emplno");
- var ymd1 = model.getValue("/root/main/list/dutsumlist[" + i + "]/yymmdd");
- if (model.getValue("/root/main/list/dutsumlist[" + i + "]/emplno") == ""){
- messageBox(i + "번째의 사원번호는 필수 입력항목입니다.", "E999", "");
- return;
- }
- for (var j = 1; j < grd_dutsumlist.rows; j ++){
- var emplno2 = model.getValue("/root/main/list/dutsumlist[" + j + "]/emplno");
- if (i != j){
- if (emplno1 == emplno2){
- messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
- return;
- }
- }
- }
- }
- var update = getGridUpdateData(grd_dutsumlist);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "E999", "");
- return 0;
- } else {
- model.setValue("/root/send/save/dutsumlist", update);
- if (submit("TXRWP20801")){
- messageBox("정상적으로 처리되었습니다.", "E999", "");
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="datagrid1" nodeset="/root/init/list/dutsumlist" visibility="hidden" caption="부서코드^부서명^사원번호^성명^주민번호^caption1^caption2" colsep="^" colwidth="87, 131, 95, 127, 168, 100" dataheight="25" explorerbar="sortshow" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:365px; top:315px; width:460px; height:414px; border-right-color:#3366ff; ">
- <col disabled="true" ref="deptcd" type="input" style="text-align:left; "/>
- <col ref="deptnm" type="input" style="text-align:left; "/>
- <col ref="emplno" type="inputbutton" style="text-align:center; "/>
- <col ref="emplnm"/>
- <col ref="rregno" format="999999-9999999" style="text-align:center; "/>
- <col ref="deptgb" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dutsumlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_dutsumlist.colAttribute(grd_dutsumlist.col,"ref") == "emplno" ) { //계산기준코드
- var recv_list = "emplno,emplnm";
-
- rpbfOpenPopUpList("SPRPB00101", grd_dutsumlist, recv_list,"","N");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|