123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347 |
- <?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>
- <cond>
- <empnm/>
- <refflag>1</refflag>
- <tottm/>
- <intvl/>
- <retire/>
- </cond>
- <educmileuselist>
- <educmileuselistinfo>
- <usedd/>
- <usetm/>
- <rem/>
- <status/>
- </educmileuselistinfo>
- </educmileuselist>
- <educmilesavelist>
- <educmilesavelistinfo>
- <chk/>
- <name/>
- <deptnm/>
- <jobresp/>
- <brthdate/>
- <baptnm/>
- <totsavetm/>
- <totusetm/>
- <rmndamt/>
- <rmndtm/>
- <empno/>
- <status/>
- </educmilesavelistinfo>
- </educmilesavelist>
- <rCSV/>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <init>
- <chkdata/>
- </init>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- fReset();
- ]]>
- </script>
- <submission id="TRAYA04501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/educmilesavelist"/>
- <submission id="TXAYA04501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
- </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">
- <![CDATA[
- //화면 오픈시..
- function fInit(){
- grd_educmilesavelist.fixedcellcheckbox(0, 1) = true;
- if(rdo_refflag.value == "1"){
- rdo_intvl.disabled = true;
- }
- model.setFocus("ipt_empnm");
- }//fInit END
-
- //마일리지 적립내역 조회
- function fEducMile(){
- if (ipt_empnm.currentText.length > 0 && ipt_empnm.currentText.length < 2) {
- messageBox("대상자명은 2글자 이상으로 해주십시요!","E999","");
- model.setFocus("ipt_empnm");
- return;
- }
- submit("TRAYA04501");
- }//fEducMile END
- //마일리지 사용내역 저장버튼 클릭시
- function fEducMileSave(){
- //저장할 마일리지 사용내역 데이터를 동적으로 만든것
- var chkdata = "empno"
- + "▦usedd"
- + "▦usetm"
- + "▦rem"
- + "▩" ;
-
- var idxRow = grd_educmilesavelist.rows;
- var usetm = model.getValue("/root/main/educmileuselist/educmileuselistinfo/usetm");
- var cnt = 0;
-
- //먼저 체크여부를 확인
- for(var i=1; i < idxRow; i++){
- var chk = model.getValue("/root/main/educmilesavelist/educmilesavelistinfo["+ i +"]/chk")
-
- if (chk == "1"){
- cnt++;
- }
- }//for END
-
- //체크된 데이터가 없을시 메시지 출력
- if(cnt == 0){
- messageBox("처리할 직원을", "C002");
- return;
- }//cnt END
-
- //사용시간 입력란이 공백일 경우 메시지 출력
- if(usetm == ""){
- messageBox("사용시간을" , "C001");
- model.setFocus("ipt_usetm");
- return;
- }
-
-
-
- for(var i=1; i < idxRow; i++) {
- var chkFlag = model.getValue("/root/main/educmilesavelist/educmilesavelistinfo[" + i + "]/chk");
- var rmndtm = model.getValue("/root/main/educmilesavelist/educmilesavelistinfo[" + i + "]/rmndtm");
-
- if(chkFlag == "1") { //체크된 값만 저장되도록 데이터 생성
- //사용시간 입력란에 문자가 입력되면 메시지 출력
- if(isNaN(usetm) == true){
- messageBox("사용시간을 숫자로" , "C001");
- fReset();
- model.setFocus("ipt_usetm");
- return;
- }
-
-
- //조회된 잔고보다 입력된 사용시간이 클 경우 메시지 출력
- if(parseInt(usetm * 60) > parseInt(rmndtm)){
- messageBox("잔고가 부족한 직원이 있습니다. 다시" , "C002");
- return
- }
- //var husetm = model.getValue("/root/main/mileusespec/mileusespecinfo/husetm");
- var husetm = model.getValue("/root/main/educmileuselist/educmileuselistinfo/usetm");
- //alert(husetm);
- if(husetm == 0){
- messageBox("사용시간을 0보다 크게 입력하십시오 " , "E");
- return
- }
-
- chkdata +=
- model.getValue("/root/main/educmilesavelist/educmilesavelistinfo[" + i + "]/empno")
- + "▦" + model.getValue("/root/main/educmileuselist/educmileuselistinfo/usedd")
- + "▦" + model.getValue("/root/main/educmileuselist/educmileuselistinfo/usetm")
- + "▦" + model.getValue("/root/main/educmileuselist/educmileuselistinfo/rem")
- + "▩" ;
- }//chkFlag END
- }//for END
-
- // alert(chkdata);
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.makeValue("/root/init/chkdata",chkdata);
- model.copyNode("/root/send/savedata", "/root/init");
- if(usetm != "" && cnt > 0){
- if(submit("TXAYA04501", false) == true) {
- messageBox("자료 저장이" , "I002");
- fReset();
- fEducMile();
- model.refresh();
- model.setFocus("ipt_usetm");
- }//if END
- }//if END
- }//fEducMileSave END
-
- //마일리지 사용내역 부분 초기화 버튼 누를시
- function fReset() {
- model.resetInstanceNode("/root/main/educmileuselist/educmileuselistinfo");
- var CurrentDate = getCurrentDate();
- model.setValue("/root/main/educmileuselist/educmileuselistinfo/usedd", CurrentDate);
- model.refresh();
- }// fReset END
-
- //마일리지 적립내역 리스트 출력
- function fPreview(){
- exeReportPreview("RPAYA04501", "XMLSTR");
- }//fPreview END
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:240px; height:14px; ">교육마일리지 적립내역조회</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption21" class="tit_2" style="left:0px; top:55px; width:190px; height:14px; ">마일리지 적립내역리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:74px; "/>
- <group id="group4" style="left:0px; top:5px; width:1194px; height:40px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption25" class="search_name" style="left:20px; top:10px; width:86px; height:17px; ">교직원명 :</caption>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fEducMile();
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line14" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; "/>
- <input id="ipt_empnm" ref="/root/main/cond/empnm" class="input_default" imemode="hangul" style="left:118px; top:9px; width:107px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:270px; top:10px; width:86px; height:17px; ">조회구분 :</caption>
- <select1 id="rdo_refflag" ref="/root/main/cond/refflag" overflow="visible" appearance="full" cols="3" style="left:370px; top:9px; width:220px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>1</value>
- </item>
- <item>
- <label>총적립시간</label>
- <value>2</value>
- </item>
- <item>
- <label>총사용시간</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(rdo_refflag.value == "1"){
- ipt_tottm.value = "";
- rdo_intvl.value = "";
- }
-
- if(rdo_refflag.value == "2" || rdo_refflag.value == "3") {
- rdo_intvl.disabled = false;
- rdo_intvl.select(0);
- }else{
- rdo_intvl.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_tottm" ref="/root/main/cond/tottm" class="input_default" imemode="hangul" style="left:595px; top:9px; width:107px; height:19px; "/>
- <select1 id="rdo_intvl" ref="/root/main/cond/intvl" overflow="visible" appearance="full" cols="2" style="left:715px; top:10px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>이상</label>
- <value>1</value>
- </item>
- <item>
- <label>이하</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select id="checkbox1" ref="/root/main/cond/retire" overflow="visible" appearance="full" style="left:825px; top:10px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>퇴사자포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <datagrid id="grd_educmilesavelist" nodeset="/root/main/educmilesavelist/educmilesavelistinfo" caption="^성명^사번^부서명^직책^생년월일^세례명^총적립시간^총사용시간^잔고^분단위잔고^사원번호" colsep="^" colwidth="29, 100, 100, 140, 100, 120, 130, 130, 130, 130, 30, 30" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:78px; width:1195px; height:580px; ">
- <col checkvalue="1,0" ref="chk" type="checkbox"/>
- <col ref="name" type="inputbutton" style="text-align:center; "/>
- <col ref="empno" style="text-align:center; "/>
- <col ref="deptnm" style="text-align:center; "/>
- <col ref="jobresp" style="text-align:center; "/>
- <col ref="brthdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="baptnm" style="text-align:center; "/>
- <col ref="totsavetm" style="text-align:center; "/>
- <col ref="totusetm" style="text-align:center; "/>
- <col ref="rmndamt" style="text-align:center; "/>
- <col ref="rmndtm" visibility="hidden"/>
- <col ref="empno" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var sCol = grd_educmilesavelist.col;
- var idxRow = grd_educmilesavelist.row;
- if( idxRow < 1) return ;
-
- if (sCol == grd_educmilesavelist.colRef("name") ){ //성명 버튼 클릭시
- var emplno = model.getValue("/root/main/educmilesavelist/educmilesavelistinfo[" + idxRow + "]/empno");
- model.makeValue("/root/temp/emplno", emplno);
- modal("SMAYA04600", 1,100, 100, "SMAYA04600", "/root/temp", "/root/main/cond");
- }
- ]]>
- </script>
- </datagrid>
- <group id="group9" style="left:0px; top:665px; width:1185px; height:60px; ">
- <caption id="caption13" class="tit_2" style="left:8px; top:5px; width:152px; height:14px; font-family:돋움; vertical-align:middle; ">마일리지사용내역</caption>
- <button id="button15" class="btn5_letter3" style="left:925px; top:0px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReset();
- model.setFocus("ipt_usetm");
- ]]>
- </script>
- </button>
- <caption id="caption15" class="cell_1" style="left:196px; top:29px; width:67px; height:23px; vertical-align:middle; ">사용시간</caption>
- <line id="line12" class="line_1" style="x1:0px; y1:23px; x2:980px; y2:23px; "/>
- <button id="button3" class="btn5_letter2" style="left:880px; top:0px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fEducMileSave();
- ]]>
- </script>
- </button>
- <caption id="caption8" class="cell_1" style="left:1px; top:29px; width:67px; height:23px; vertical-align:middle; ">사용일자</caption>
- <line id="line3" class="line_3" style="x1:1px; y1:54px; x2:980px; y2:54px; "/>
- <caption id="caption2" class="cell_1" style="left:380px; top:29px; width:67px; height:23px; vertical-align:middle; ">비고</caption>
- <input id="ipt_usetm" ref="/root/main/educmileuselist/educmileuselistinfo/usetm" class="input_default" format="9999" style="left:266px; top:30px; width:110px; height:19px; "/>
- <input id="input4" ref="/root/main/educmileuselist/educmileuselistinfo/rem" class="input_default" style="left:450px; top:31px; width:530px; height:19px; "/>
- <input id="input7" ref="/root/main/educmileuselist/educmileuselistinfo/usedd" class="input_default" navindex="13" inputtype="date" style="left:71px; top:31px; width:120px; height:19px; "/>
- </group>
- <button id="button83" class="btn3_letter10" style="left:994px; top:49px; width:152px; height:22px; ">
- <caption>마일리지사용내역조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMAYA04400",1,100,100);
- //modal("SMAYA04400",null,null,null, "SMAYA04400", "/root/actsource", "/root/main/actsource");
-
- ]]>
- </script>
- </button>
- <button id="button10" class="btn2_letter2" style="left:1151px; top:50px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPreview();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|