123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363 |
- <?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>
- <humnatreducdgcapalist/>
- <item>
- <cmt/>
- </item>
- <humnatrsreq>
- <humnatrscorlist/>
- </humnatrsreq>
- <humnatrsempl>
- <humnatrempllist/>
- </humnatrsempl>
- <reportlist>
- <humnatrscorlist/>
- <humnatrempllist/>
- </reportlist>
- </main>
- <temp>
- </temp>
- <init>
- <cnfmynlist>
- <label>확정</label>
- <value>Y</value>
- <label>미확정</label>
- <value>N</value>
- </cnfmynlist>
- </init>
- <send>
- <req>
- <yy/>
- <dgno/>
- <deptcd/>
- <valuerslt/>
- <emplno/>
- <emplnm/>
- </req>
- <humnatrsreq>
- <yy/>
- <emplno/>
- <dgno/>
- </humnatrsreq>
- <humnatrsreq>
- <humnatrscorlist/>
- </humnatrsreq>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- submit("TRRTS00602");
- addComboItem( "cmb_deptcd", "전체", "", "above");
- misfGridInit(grd_humnatrscorlist);
- misfGridInit(grd_humnatrempllist);
-
- misfMsterDetailSet(grd_humnatrempllist, null, "TRRTS01901", "N");
- misfMsterDetailSet(grd_humnatrscorlist,grd_humnatrempllist, "TRRTS01802", "Y");
-
- misfGridComboComCdList("R0256",grd_humnatrempllist,"valuerslt");
- misfComboComCdListMulti("R0256", "cmb_valuerslt");
- addComboItem( "cmb_valuerslt", "전체", "", "above");
-
- var today = getCurrentDate();
- var cur_mm = parseInt(today.substring(4, 6));
- var cur_yy = parseInt(today.substring(0, 4));
-
- if (cur_mm < 3)
- {
- cur_yy--;
- }
-
- model.setValue("/root/send/req/yy", cur_yy);
-
- submit("TRRTC01301");
- addComboItem( "cmb_dgno", "전체", "", "above");
- addComboItem( "cmb_dgno", "차기년도", "0", "below");
-
- misfComboCopyItemSet(cmb_dgno, "/root/send/req/chdgno", grd_humnatrscorlist, "chdgno");
-
- ipt_yy.refresh();
- model.setValue("/root/send/req/yy", cur_yy);
-
- if(!checkAuth("P"))
- {
- cmb_deptcd.value = getUserInfo("posdeptcd");
- }
- else
- {
- cmb_deptcd.value = "";
- }
-
- ]]>
- </script>
- <submission id="TRRTC01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/humnatreducdgcapalist"/>
- <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/tisorddeptcdlist"/>
- <submission id="TRRTS01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/humnatrsreq" resultref="/root/main/humnatrsreq"/>
- <submission id="TXRTS01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/humnatrsreq" resultref="/root/temp"/>
- <submission id="TRRTS01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/humnatrsempl"/>
- <submission id="TRRTS01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/reportlist"/>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- function fCheckData(cur_row){
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("dgno")) = '';
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("educfromdd")) = '';
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("eductodd")) = '';
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("eduinstnm")) = '';
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("valuerslt")) = '';
- grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("cnfmyn")) = '';
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <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:43px; width:1195px; height:697px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
- <datagrid id="grd_humnatrscorlist" nodeset="/root/main/humnatrsreq/humnatrscorlist" caption="차수^일련번호^사원번호^년도^차수^교육시작일자^교육종료일자^교육근무기관^확정여부^비고^caption1^caption3^caption2^구분^확정차수" colsep="^" colwidth="0, 0, 0, 0, 58, 90, 99, 101, 61, 147, 35, 22, 30, 20, 20, 0" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:760px; top:75px; width:435px; height:430px; ">
- <col ref="dgno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="emplno" visibility="hidden"/>
- <col ref="yy" style="text-align:center; "/>
- <col ref="chdgno" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="educfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="eductodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="eduinstnm"/>
- <col ref="cnfmyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/cnfmynlist">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="cmt" visibility="hidden"/>
- <col ref="appfromdd" visibility="hidden"/>
- <col ref="cnfmmanid" visibility="hidden"/>
- <col ref="cnfmdd" visibility="hidden"/>
- <col ref="workgbn" visibility="hidden"/>
- <col ref="newdgno" visibility="hidden"/>
- <col ref="oldcnfmyn" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_humnatrscorlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:760px; top:55px; width:201px; height:13px; ">사랑나눔교육 변경 신청 예정일</caption>
- <line id="line1" class="line_1" style="x1:760px; y1:70px; x2:1194px; y2:70px; "/>
- <select1 id="cmb_deptcd" ref="/root/send/req/deptcd" class="combo_search" appearance="minimal" style="left:665px; top:15px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/tisorddeptcdlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_yy" ref="/root/send/req/yy" class="input_s_essential" style="left:90px; top:14px; width:55px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRRTC01301");
- addComboItem( "cmb_dgno", "전체", "", "above");
- ipt_yy.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:575px; top:15px; width:85px; height:17px; ">임 상 과 :</caption>
- <caption id="cap_dgno" class="search_name" style="left:164px; top:16px; width:94px; height:17px; ">교육차수 :</caption>
- <select1 id="cmb_valuerslt" ref="/root/send/req/valuerslt" class="combo_s_essential" appearance="minimal" style="left:460px; top:15px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_valuerslt" class="search_name" style="left:374px; top:16px; width:94px; height:17px; ">평가결과 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_yy") ) {
- return false;
- }
- // submit("TRRTS01901");
- misfMsterDetailRetrieve();
-
- // submit("TRRTS01001");
- ]]>
- </script>
- </button>
- <select1 id="cmb_dgno" ref="/root/send/req/dgno" class="combo_s_essential" appearance="minimal" style="left:250px; top:15px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/humnatreducdgcapalist">
- <label ref="dgno"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:86px; height:17px; ">년 도 :</caption>
- <datagrid id="grd_humnatrempllist" nodeset="/root/main/humnatrsempl/humnatrempllist" caption="년도^사원번호^성명^현근무기관^현근무부서^차수^평가결과^교육시작일자^교육종료일자^교육근무기관" colsep="^" colwidth="0, 81, 75, 87, 81, 58, 81, 90, 89, 89" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:755px; height:600px; ">
- <col ref="yy"/>
- <col ref="emplno"/>
- <col ref="name"/>
- <col ref="dutinstnm"/>
- <col ref="deptnm"/>
- <col ref="dgno"/>
- <col disabled="true" ref="valuerslt" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="educfromdd" format="yyyy-mm-dd"/>
- <col ref="eductodd" format="yyyy-mm-dd"/>
- <col ref="dutinstnm"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- misfMsterDetailRetrieve();
- txt_cmt.value = grd_humnatrscorlist.valueMatrix(1,grd_humnatrscorlist.colRef("cmt"));
- ]]>
- </script>
- </datagrid>
- <textarea id="txt_cmt" ref="/root/main/item/cmt" disabled="true" maxlength="100" style="left:760px; top:530px; width:425px; height:145px; "/>
- <caption id="caption4" class="tit_2" style="left:760px; top:515px; width:201px; height:13px; ">변경사유</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:755px; y2:70px; "/>
- <caption id="caption5" class="tit_2" style="left:0px; top:55px; width:201px; height:14px; ">사랑나눔교육 평가 변경 리스트</caption>
- <button id="btn_helppsn" class="icon_search" style="left:971px; top:16px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "ipt_systemflag","N");
- ipt_emplno.refresh();
- ipt_emplnm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplnm" ref="/root/send/req/emplnm" class="output_search" style="left:989px; top:15px; width:100px; height:19px; "/>
- <caption id="cap_emplno" class="search_name" style="left:776px; top:16px; width:86px; height:17px; ">사원번호 :</caption>
- <input id="ipt_emplno" ref="/root/send/req/emplno" class="input_search" style="left:865px; top:15px; width:100px; height:19px; "/>
- </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:1130px; top:2px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_humnatrscorlist);
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- var cnfmcnt=0;
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
- var valuerslt = grd_humnatrempllist.valueMatrix(grd_humnatrempllist.row,grd_humnatrempllist.colRef("valuerslt"));
- if(valuerslt =='X' || valuerslt =='Y' || valuerslt =='E' ){
- for(i=grd_humnatrscorlist.fixedRows; i < grd_humnatrscorlist.rows;i++){
- var cnfmyn = grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("cnfmyn"));
- if(cnfmyn =='Y'){
- cnfmcnt=cnfmcnt+1;
- }
-
- }
- cnfmcnt=cnfmcnt;
-
- if(cnfmcnt >1 && valuerslt !='E')
- {
- messageBox("2개이상의 일정을 확정 ","E001");
- return;
- }
- }else{
- messageBox("평가가 완료된 교육은 변경","E001");
- return;
- }
-
- for(i=grd_humnatrscorlist.fixedRows; i < grd_humnatrscorlist.rows;i++){
- var cnfmyn = grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("cnfmyn"));
- var oldcnfmyn = grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("oldcnfmyn"));
- if(oldcnfmyn != cnfmyn){
- grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("cnfmmanid")) = getUserInfo("userid");
- grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("cnfmdd")) = cvtdate.getAddDate(0,"M").getDateFormat("YYYYMMDD");
-
- if(cnfmcnt == 0){
- grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("workgbn")) ='Y';
- }else if(cnfmcnt >0 && cnfmyn =='Y'){
-
- grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("workgbn")) ='Y';
- }else{
- grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("workgbn")) ='N';
- }
- }
-
- }
- misfSave("TXRTS01802");
- if (model.getValue(gvErrorMsgPath + "/type") != "error")misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter5" style="left:968px; top:2px; width:92px; height:22px; ">
- <caption>신청서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRTS01803");
- exeReportPreview("RPRTS01901", "XMLSTR", "/root/main/send");
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1061px; top:2px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_humnatrscorlist);
- if (updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- misfGridInit(grd_humnatrscorlist);
- misfGridInit(grd_humnatrempllist);
- cmb_dgno.value= "" ;
- cmb_valuerslt.value= "" ;
- ipt_emplno.value= "" ;
- ipt_emplnm.value= "" ;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|