123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385 |
- <?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>
- <prieductrgtmanlist/>
- </list>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <appyy/>
- <mainbdunit/>
- <indapppossyn>Y</indapppossyn>
- <cmpltcursstdyyn/>
- <emplno/>
- <emplnm/>
- <dutplce/>
- </retrparams>
- </send>
- <init/>
- <temp>
- <msg>
- <count/>
- <instcd/>
- <educdg/>
- <appyy/>
- <educcd/>
- </msg>
- </temp>
- </root>
- </instance>
- <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/educationmngtweb/js/RPS001.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[
- fInit();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInit()
- {
- model.setValue("/root/send/retrparams/appyy", getCurrentDate().substr(0, 4));
- model.removenode("/root/main/list/prieductrgtmanlist");
-
- misfComboComCdListMulti("Z0007", "cmb_instcd", null, "Y");
- rpsEducSetComboList(model.getValue("/root/send/retrparams/appyy"), "M02-000", "cmb_mainbdunit", "Y");
-
- rpdfComboCdList(cmb_dutplce); // 권한별 근무부서 세팅
- rpdfSetDutUnitCombo();
- misfMsterDetailSet(grd_prieductrgtmanlist, null, "TRRPS00601", "Y");
-
- misfGetUserAuth();
- model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
- cmb_dutplce.select(0);
-
- model.refresh();
-
-
- }
- function fRetrieve()
- {
- if(!isRequiredControls("ipt_appyy")) return;
- if(!isRequiredControls("cmb_dutplce")) return;
-
- submit("TRRPS00601");
-
- for(var i=1; i<grd_prieductrgtmanlist.rows; i++)
- {
- var sYn = grd_prieductrgtmanlist.valueMatrix(i, grd_prieductrgtmanlist.colRef("lastaprvyn"));
-
- if(sYn == "Y")
- {
- misfSetReadOnlyCol(grd_prieductrgtmanlist, "deptaprvyn,deptaprvdd", true, i);
- }
- }
- }
- function fSave()
- {
- if(misfSave("TXRPS00601"))
- {
- var iLength = instance1.selectNodes("/root/temp/msg").length;
-
- if(iLength > 0)
- {
- var sErrInstcd = model.getValue("/root/temp/msg/instcd");
- var sErrEducdg = model.getValue("/root/temp/msg/educdg");
- var sErrAppyy = model.getValue("/root/temp/msg/appyy");
- var sErrEduccdd = model.getValue("/root/temp/msg/educcd");
-
- for(var i=1; i<grd_prieductrgtmanlist.rows; i++)
- {
- var sInstcd = grd_prieductrgtmanlist.valueMatrix(i, grd_prieductrgtmanlist.colRef("instcd"));
- var sEducdg = grd_prieductrgtmanlist.valueMatrix(i, grd_prieductrgtmanlist.colRef("educdg"));
- var sAppyy = grd_prieductrgtmanlist.valueMatrix(i, grd_prieductrgtmanlist.colRef("appyy"));
- var sEduccd = grd_prieductrgtmanlist.valueMatrix(i, grd_prieductrgtmanlist.colRef("educcd"));
-
- var sEducCnt = grd_prieductrgtmanlist.valueMatrix(i, grd_prieductrgtmanlist.colRef("educcnts"));
-
- if((sErrInstcd + sErrEducdg + sErrAppyy + sErrEduccdd) == (sInstcd + sEducdg + sAppyy + sEduccd))
- {
- messageBox("교육내용 : [ " + sEducCnt + "] 은(는) \n\n정원이 마감된 교육이므로 신청할 수", "I004");
-
- break;
- }
- }
- }
-
- fRetrieve();
- }
- }
- ]]>
- </script>
- <submission id="TRRPS00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
- <submission id="TXRPS00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/prieductrgtmanlist" resultref="/root/temp"/>
- </model>
- </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:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:545px; top:20px; width:89px; height:17px; ">주체기관 :</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:94px; x2:1195px; y2:94px; "/>
- <caption id="caption20" class="tit_2" style="left:5px; top:80px; width:169px; height:14px; ">교육신청List</caption>
- <datagrid id="grd_prieductrgtmanlist" nodeset="/root/main/list/prieductrgtmanlist" caption="부서장
승인^부서장
승인일자^교육
차수^교육명^교육신청 대상자^교육신청 대상자^주체단위^교육코드^년 도^주관부서^정원/신청^교육기간^교육기간^신청기간^신청기간^개인신청
가능여부^교육
신청^교육
신청일자^최종
승인^최종
승인일자^교육내용^기관코드|부서장
승인^부서장
승인일자^교육
차수^교육명^사원번호^성 명^주체단위^교육코드^년 도^주관부서^정원/신청^From^To^From^To^개인신청
가능여부^교육
신청^교육
신청일자^최종
승인^최종
승인일자^교육내용^기관코드" colsep="^" colwidth="45, 77, 40, 303, 77, 76, 100, 0, 0, 111, 61, 70, 70, 70, 70, 55, 38, 69, 38, 67, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:99px; width:1195px; height:641px; ">
- <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox" style="text-align:center; "/>
- <col ref="deptaprvdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="educdg" style="text-align:center; "/>
- <col disabled="true" ref="educcdnm"/>
- <col ref="emplno" style="text-align:center; "/>
- <col ref="emplnm" style="text-align:center; "/>
- <col disabled="true" ref="mainbdunitnm" style="text-align:center; "/>
- <col ref="educcd"/>
- <col ref="appyy"/>
- <col disabled="true" ref="chrgdeptnm"/>
- <col disabled="true" ref="leftemplcnt" style="text-align:center; "/>
- <col disabled="true" ref="educfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="eductodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="educappfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="educapptodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="indapppossyn" style="text-align:center; "/>
- <col disabled="true" ref="indappyn" style="text-align:center; "/>
- <col disabled="true" ref="indappdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="lastaprvyn" style="text-align:center; "/>
- <col disabled="true" ref="lastaprvdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="educcnts" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prieductrgtmanlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_prieductrgtmanlist.col == grd_prieductrgtmanlist.colRef("deptaprvyn"))
- {
- var sYn = grd_prieductrgtmanlist.valueMatrix(grd_prieductrgtmanlist.row, grd_prieductrgtmanlist.colRef("deptaprvyn"));
- if(sYn == "Y")
- {
- grd_prieductrgtmanlist.valueMatrix(grd_prieductrgtmanlist.row, grd_prieductrgtmanlist.colRef("deptaprvdd")) = getCurrentDate();
- }
- else
- {
- grd_prieductrgtmanlist.valueMatrix(grd_prieductrgtmanlist.row, grd_prieductrgtmanlist.colRef("deptaprvdd")) = "";
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption10" class="search_name" style="left:15px; top:20px; width:89px; height:17px; ">년 도 :</caption>
- <caption id="caption2" class="search_name" style="left:295px; top:45px; width:89px; height:17px; ">주체단위 :</caption>
- <caption id="cap_indapppossyn" class="search_name" visibility="visible" style="left:865px; top:20px; width:138px; height:17px; ">개인신청가능여부 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:30px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </button>
- <line id="line7" style="x1:1110px; y1:18px; x2:1110px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption3" class="search_name" style="left:15px; top:45px; width:89px; height:17px; ">이수여부 :</caption>
- <button id="btn_empl" class="icon_search" style="left:708px; top:45px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:545px; top:45px; width:86px; height:17px; ">사원번호 :</caption>
- <input id="ipt_emplnm" ref="/root/send/retrparams/emplnm" class="input_search" navindex="7" style="left:727px; top:44px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("01-2", "", "emplno,emplnm");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_emplnm.value = ipt_emplnm.currentText;
-
- misfValidationCheck("01-2", "", "emplno,emplnm");
-
- model.setFocus("btn_search");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_emplno" ref="/root/send/retrparams/emplno" class="input_search" navindex="6" style="left:636px; top:44px; width:70px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_emplno.value == ipt_emplno.currentText) return;
- ipt_emplno.value = ipt_emplno.currentText;
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_mainbdunit" ref="/root/send/retrparams/mainbdunit" class="combo_search" navindex="3" appearance="minimal" style="left:382px; top:44px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_appyy" ref="/root/send/retrparams/appyy" class="input_s_essential" navindex="2" inputtype="date" format="yyyy" style="left:102px; top:19px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </input>
- <select1 id="rdo_cmpltcursstdyyn" ref="/root/send/retrparams/cmpltcursstdyyn" navindex="5" overflow="visible" appearance="full" cellspacing="10" cols="3" style="left:102px; top:45px; width:181px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>이수</label>
- <value>Y</value>
- </item>
- <item>
- <label>미이수</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_indapppossyn" ref="/root/send/retrparams/indapppossyn" navindex="4" visibility="visible" overflow="visible" appearance="full" cellspacing="10" cols="3" style="left:1005px; top:20px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:636px; top:19px; width:211px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </select1>
- <caption id="cap_dutplce" class="search_name" style="left:295px; top:20px; width:89px; height:17px; ">관리부서 :</caption>
- <select1 id="cmb_dutplce" ref="/root/send/retrparams/dutplce" class="combo_s_essential" navindex="3" appearance="minimal" style="left:382px; top:19px; width:148px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1125px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|