123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- <?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>
- <usefromdd/>
- <usetodd/>
- <empnm/>
- </cond>
- <mileusespec>
- <mileusespecinfo>
- <empnm/>
- <usedd/>
- <husetm/>
- <rem/>
- <empno/>
- <seqno/>
- <status/>
- </mileusespecinfo>
- </mileusespec>
- <educmileuselist>
- <educmileuseinfo>
- <empno/>
- <empnm/>
- <deptnm/>
- <jobresp/>
- <brthdd/>
- <baptnm/>
- <usedd/>
- <usetm/>
- <husetm/>
- <rem/>
- <seqno/>
- <status/>
- </educmileuseinfo>
- </educmileuselist>
- </main>
- <send>
- <savedata/>
- </send>
- <init>
- </init>
- <hidden>
- <reqdata>
- <empno/>
- </reqdata>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRAYA04401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/educmileuselist"/>
- <submission id="TXAYA04401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- //화면오픈시
- function fInit(){
- //사용일자를 오늘 기준으로 세팅
- var CurrentDate = getCurrentDate();
- model.setValue("/root/main/cond/usefromdd", CurrentDate.substr(0, 6) + "01");
- model.setValue("/root/main/cond/usetodd", CurrentDate);
- model.setValue("/root/main/mileusespec/mileusespecinfo/status", "i");
- model.refresh();
- model.setFocus("ipt_empnm");
- }//fInit END
-
- //그리드 row 선택시 하단의 사용내역에 데이터 매핑
- function fGetMileUseList(){
- var idxRow = grd_educuselist.row;
- if( idxRow < 1) return ;
-
- model.copyNode("/root/main/mileusespec/mileusespecinfo", "/root/main/educmileuselist/educmileuseinfo[" + idxRow + "]");
- model.makeValue("/root/hidden/main/mileusespec/mileusespecinfo", model.getValue("/root/main/educmileuselist/educmileuseinfo[" + idxRow + "]"));
- var empno = model.getValue("/root/main/mileusespec/mileusespecinfo/empno");
- if (empno != "") { //수정
- var status = model.setValue("/root/main/mileusespec/mileusespecinfo/status", "u");
- model.refresh();
- }
- }//fGetCharityPayList END
-
- //마일리지 사용내역 조회
- function fMileUseRef(){
- if (ipt_empnm.currentText.length > 0 && ipt_empnm.currentText.length < 2) {
- messageBox("대상자명은 2글자 이상으로 해주십시요!","E999","");
- model.setFocus("ipt_empnm");
- return;
- }
- submit("TRAYA04401");
- }//fMileUseRef END
-
- //마일리지 사용내역 부분 초기화 버튼 누를시
- function fReset() {
- model.resetInstanceNode("/root/main/mileusespec/mileusespecinfo");
- model.setValue("/root/main/mileusespec/mileusespecinfo/status", "i");
- model.refresh();
- }// fReset END
- //엑셀저장 버튼 클릭시
- function fExcel() {
- if (grd_educuselist.rows <= 1) {
- messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
-
- var fileName = window.fileDialog("save", ",", false, "마일리지 사용리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_educuselist.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- }//fExcel 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="caption22" class="search_no_b" style="left:225px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption25" class="search_name" style="left:20px; top:10px; width:86px; height:17px; ">사용일자 :</caption>
- <input id="input2" ref="/root/main/cond/usefromdd" class="input_default" navindex="13" inputtype="date" style="left:120px; top:10px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var usefromdd = model.getValue("/root/main/cond/usefromdd");
- //model.setValue("/root/main/cond/usetodd", usefromdd);
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="input3" ref="/root/main/cond/usetodd" class="input_default" navindex="13" inputtype="date" style="left:240px; top:10px; width:100px; height:19px; "/>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fMileUseRef();
- ]]>
- </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_s_essential" imemode="hangul" style="left:548px; top:9px; width:107px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:450px; top:10px; width:86px; height:17px; ">교직원명 :</caption>
- </group>
- <datagrid id="grd_educuselist" nodeset="/root/main/educmileuselist/educmileuseinfo" caption="성명^사번^부서명^직책^생년월일^세례명^사용일자^사용시간^시간^비고^일련번호" colsep="^" colwidth="100, 100, 120, 100, 125, 110, 125, 100, 20, 330, 20" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:78px; width:1195px; height:585px; ">
- <col ref="empnm" 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="brthdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="baptnm" style="text-align:center; "/>
- <col ref="usedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="usetm" style="text-align:center; "/>
- <col ref="husetm" visibility="hidden"/>
- <col ref="rem"/>
- <col ref="seqno" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //초기화 실행 후 그리드 빈공간 클릭시 데이터가 하단 인스턴스에 뿌려지는것 방지
- if(grd_educuselist.isCell(event.target) && grd_educuselist.mouseRow >= grd_educuselist.fixedrows) {
- fGetMileUseList();
- }
- ]]>
- </script>
- </datagrid>
- <group id="group9" style="left:0px; top:670px; 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>
- <caption id="caption14" class="cell_1" style="left:0px; top:30px; width:67px; height:23px; vertical-align:middle; ">성명</caption>
- <button id="button15" class="btn5_letter3" style="left:1130px; top:3px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReset();
- ]]>
- </script>
- </button>
- <caption id="caption15" class="cell_1" style="left:380px; top:30px; width:67px; height:23px; vertical-align:middle; ">사용시간</caption>
- <line id="line12" class="line_1" style="x1:0px; y1:24px; x2:1185px; y2:24px; "/>
- <button id="button7" class="btn5_letter2" style="left:1085px; top:3px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fMileUseDel();
- function fMileUseDel(){
- var status = model.getValue("/root/main/mileusespec/mileusespecinfo/status");
- if(status == "i"){
- messageBox("삭제할 마일리지 사용내역이","I004");
- }else{
- var btn = messageBox("마일리지 사용내역을","Q001");
- if(btn == "6"){
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.setValue("/root/main/mileusespec/mileusespecinfo/status", "d");
- model.copyNode("/root/send/savedata", "/root/main/mileusespec/mileusespecinfo");
- submit("TXAYA04401");
- // model.refresh();
- fMileUseRef();
- fReset();
- } else if (btn == "7") {
- return;
- }//if~else END
- }
- }//fMileUseDel END
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter2" style="left:1040px; top:3px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fUseSave();
- function fUseSave(){
- var status = model.getValue("/root/main/mileusespec/mileusespecinfo/status");
- if(status == "i"){
- messageBox("처리할 직원을" , "C002");
- return
- }//if END
-
- var husetm = model.getValue("/root/main/mileusespec/mileusespecinfo/husetm");
- if(husetm == 0){
- messageBox("사용시간을 0보다 크게 입력하십시오 " , "E");
- return
- }
-
- if(status == "u"){
- model.copyNode("/root/send/savedata", "/root/main/mileusespec/mileusespecinfo");
- if(submit("TXAYA04401", false) == true){
- var errdata = model.getValue("/root/hidden/reqdata/empno");
- if(errdata == ""){
- messageBox("자료 저장이", "I002");
- fReset();
- }else{
- messageBox("사용시간이 잔고시간보다 많아서 등록할 수" , "I004");
- model.setFocus("ipt_usetm");
- }
- }//submit if END
- fMileUseRef();
- }//status if END
- }//fUseSave END
- ]]>
- </script>
- </button>
- <caption id="caption8" class="cell_1" style="left:188px; top:30px; width:67px; height:23px; vertical-align:middle; ">사용일자</caption>
- <input id="ipt_usedd" ref="/root/main/mileusespec/mileusespecinfo/usedd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:258px; top:32px; width:120px; height:19px; text-align:center; "/>
- <line id="line3" class="line_3" style="x1:0px; y1:55px; x2:1185px; y2:55px; "/>
- <output id="output2" ref="/root/main/mileusespec/mileusespecinfo/empnm" class="output_fix" style="left:63px; top:32px; width:120px; height:19px; text-align:center; "/>
- <caption id="caption1" class="cell_1" style="left:578px; top:30px; width:67px; height:23px; vertical-align:middle; ">비고</caption>
- <input id="ipt_usetm" ref="/root/main/mileusespec/mileusespecinfo/husetm" class="input_default" style="left:453px; top:32px; width:120px; height:19px; "/>
- <input id="input4" ref="/root/main/mileusespec/mileusespecinfo/rem" class="input_default" style="left:648px; top:32px; width:535px; height:19px; "/>
- <output id="output3" ref="/root/hidden/reqdata/empno" visibility="hidden" style="left:920px; top:3px; width:100px; height:19px; "/>
- </group>
- </group>
- <button id="btn_excel" class="btn2_letter4" style="left:1131px; top:64px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|