123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <msg>
- <emplno/>
- <usernm/>
- <instnm/>
- <depthngnm/>
- <jobposnm/>
- <eatnm/>
- <eatdd/>
- <eattm/>
- </msg>
- </list>
- </main>
- <send>
- <eatdds/>
- <eatdde/>
- <instcd/>
- <emplno/>
- <hngnm/>
- <offset/>
- <pagesize>200</pagesize>
- </send>
- <properties>
- <error>
- <msg/>
- </error>
- </properties>
- <temp/>
- <init>
- <instcd>
- <itemlist>
- <cdid/>
- <cdnm/>
- </itemlist>
- </instcd>
- <dept>
- <itemlist>
- <deptcd/>
- <depthngnm/>
- </itemlist>
- </dept>
- </init>
- </root>
- </instance>
- <submission id="TRDRM00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/list"/>
- <submission id="TRDDP00203" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/instcd"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 당일날짜 세팅
- model.setValue("/root/send/eatdds", getCurrentDate());
- model.setValue("/root/send/eatdde", getCurrentDate());
- model.removeNodeset("/root/main/list/msg");
- model.refresh();
- submit("TRDDP00203");
- addComboItem( "cmb_instcd");
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../crd/cardissueweb/js/crdcommon.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1193;1,1195;2,32;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">식수현황 조회</caption>
- </group>
- <group id="group3" style="left:0px; top:13px; width:1195px; height:767px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:555px; top:9px; width:80px; height:17px; ">사원번호</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var eatddsDate = input11.value;
- var eatddeDate = input12.value;
- if(eatddsDate>eatddeDate){
- messageBox("조회하고자 하는 식수기간을 제대로", "C001");
- }else if(eatddsDate.length<8 | eatddeDate.length<8){
- messageBox("조회하고자 하는 식수기간을 제대로", "C001");
- }else{
- model.removeNodeset("/root/main/list/msg");
- model.setValue("/root/send/offset", 0);
- submit("TRDRM00101");
- var subMessage = model.getValue("/root/main/list/msg[1]/tot_cnt");
- subMessage = intComma(subMessage);
- setSystemMessage(subMessage+"건이 조회 되었습니다.");
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption5" class="search_name" style="left:11px; top:9px; width:84px; height:17px; ">식수기간</caption>
- <caption id="caption8" class="search_name" style="left:755px; top:9px; width:76px; height:17px; ">성명</caption>
- <input id="input2" ref="/root/send/hngnm" maxlength="15" style="left:815px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="input11" ref="/root/send/eatdds" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:100px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- ]]>
- </script>
- </input>
- <input id="input12" ref="/root/send/eatdde" class="input_s_essential" editable="true" inputtype="date" format="yyyy-mm-dd" style="left:215px; top:9px; width:100px; height:19px; "/>
- <input id="input3" ref="/root/send/emplno" maxlength="10" format="9999999999" style="left:640px; top:9px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_no_b" style="left:201px; top:10px; width:15px; height:17px; ">~</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" appearance="minimal" style="left:405px; top:9px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd/itemlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:335px; top:10px; width:80px; height:17px; vertical-align:middle; ">기관명</caption>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:60px; width:300px; height:14px; font-family:돋움; vertical-align:middle; ">식수현황 조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
- <datagrid id="grd_scrnlist" nodeset="/root/main/list/msg" visibility="visible" caption="사원번호^성명^기관명^부서^직위^식수유형^식수일자^식수시간" colsep="^" colwidth="100, 100, 215, 180, 150, 150, 120, 120" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:0px; top:80px; width:1194px; height:660px; ">
- <col explorerbar="sortshowmove" ref="emplno" style="text-align:center; "/>
- <col explorerbar="sortshowmove" ref="usernm" style="text-align:center; "/>
- <col explorerbar="sortshowmove" ref="instnm" style="text-align:center; "/>
- <col explorerbar="sortshowmove" ref="depthngnm" visibility="hidden" style="text-align:center; "/>
- <col explorerbar="sortshowmove" ref="jobposnm" visibility="hidden" style="text-align:center; "/>
- <col explorerbar="sortshowmove" ref="eatnm" style="text-align:center; "/>
- <col explorerbar="sortshowmove" ref="eatdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col explorerbar="sortshowmove" ref="eattm" format="hh:nn:ss" style="left:698px; top:23px; width:386px; height:23px; text-align:center; "/>
- <script type="javascript" ev:event="onscroll">
- <![CDATA[
- if(grd_scrnlist.vscroll.attribute("max")==grd_scrnlist.vscroll.attribute("pos")){
- model.setValue("/root/send/offset",grd_scrnlist.rows-grd_scrnlist.fixedRows);
- submit("TRDRM00101");
- var subMessage = model.getValue("/root/main/list/msg[1]/tot_cnt");
- subMessage = intComma(subMessage);
- setSystemMessage(subMessage+"건이 조회 되었습니다.");
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_cle" class="btn4_letter3" style="left:1125px; top:745px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.reset();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter4" style="left:1130px; top:55px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var dataYn = model.getValue("/root/main/list/msg["+1+"]/emplno");
- if(dataYn == ""){
- messageBox("조회된 ", "E013");
- return;
- }else{
- var fileName = window.fileDialog("save",",",false,"보고서-식수현황조회","xls","All Files(*.*)|*.*|Excel Files(*.xls)|*.xls");
- }
-
- if(fileName !=""){
- grd_scrnlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|