123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398 |
- <?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>
- <prescondfromdd/>
- <prescondtodd/>
- <flagcd/>
- </cond>
- <prescondref>
- <holipsnref>
- <voluntrid/>
- <actdeptcd/>
- <actdeptdetlnm/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- <voluntrnm/>
- <fromdd/>
- <todd/>
- <holicd/>
- <holijobrem/>
- </holipsnref>
- <quitorgpsnref>
- <voluntrid/>
- <actdeptcd/>
- <actdeptdetlnm/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- <voluntrnm/>
- <joinorgdd/>
- <rejoinorgdd/>
- <quitorgdd/>
- <quitorgresn/>
- </quitorgpsnref>
- <rejoinorgpsnref>
- <voluntrid/>
- <actdeptcd/>
- <actdeptdetlnm/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- <voluntrnm/>
- <joinorgdd/>
- <rejoinorgdd/>
- <quitorgdd/>
- </rejoinorgpsnref>
- </prescondref>
- </main>
- <init>
- <cond>
- <A0503list/>
- </cond>
- <A0359list/>
- <A0360list/>
- <A0020list/>
- </init>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRAAA01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/prescondref"/>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.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="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- </xhtml:head>
- <script type="javascript">
- <![CDATA[//1. 화명 오픈시 초기화
- function fInit() {
- model.removeNodeset("/root/main/prescondref/holipsnref");
- model.removeNodeset("/root/main/prescondref/quitorgpsnref");
- model.removeNodeset("/root/main/prescondref/rejoinorgpsnref");
- model.resetInstanceNode("/root/main/cond");
- var CurrentDate = getCurrentDate();
- var prescondfromdd = CurrentDate.substr(0,6)+"01";
- model.setValue("/root/main/cond/prescondfromdd", prescondfromdd);
-
- var sDate = getNewDate(); //달의 마지막날 가져오기
- var lastDate = sDate.getFullYear();
- lastDate = lastDate.toString() + (( sDate.getMonth() + 1 > 9 ) ? sDate.getMonth() + 1 : "0" + (sDate.getMonth() + 1));
- lastDate = lastDate.toString() + sDate.getMonthDay();
- model.setValue("/root/main/cond/prescondtodd", lastDate);
-
- model.setValue("/root/main/cond/flagcd", "0");
-
- //공통코드를 조회한다.
- addComboItem("cmb_flagcd", "전체", "0", "above");
- zbcfGetCodeList(new Array("A0503","A0359", "A0360"), new Array("/root/init/cond/A0503list", "/root/init/A0359list", "/root/init/A0360list"), true);//input박스는 한개 instance만 교체
-
- //유형코드 조회(Cache 방식) -자원봉사자휴가병가구분
- zbcfGetKindCodeList(
- new Array("A0020"), //업무규칙
- new Array("A0506"), //코드군
- new Array("/root/init/A0020list"), //노드
- true, //minimum : true TRZBC00105
- new Array("dispseq"), //sorting 항목
- new Array("asc")
- );
-
- // grd_holipsnref.colRef("actdeptcd").choices.itemset.attribute("nodeset") = "/root/init/cond/A0503list/A0503";
- // grd_holipsnref.colRef("voluntractdwcd").choices.itemset.attribute("nodeset") = "/root/init/A0359list/A0359";
- // grd_holipsnref.colRef("voluntractteamcd").choices.itemset.attribute("nodeset") = "/root/init/A0360list/A0360";
- // grd_holipsnref.colRef("holicd").choices.itemset.attribute("nodeset") = "/root/init/A0020list/A0020A0506";
-
- model.refresh();
- }
-
- //조회버튼시(휴가자명단 조회)
- function fRefHoliPsnList() {
- if (model.getValue("/root/main/cond/prescondfromdd") > model.getValue("/root/main/cond/prescondtodd")) {
- messageBox("올바른 조회기간을","C001");
- model.setFocus("ipt_prescondfromdd");
- return false;
- }
- if (model.getValue("/root/main/cond/prescondfromdd") == "" ) {
- messageBox("시작일자는 ","I003");
- model.setFocus("ipt_prescondfromdd");
- return false;
- }
- if (model.getValue("/root/main/cond/prescondfromdd").length != 8 ) {
- messageBox("올바른 시작일자 항목을","C001");
- model.setFocus("ipt_prescondfromdd");
- return false;
- }
- if (model.getValue("/root/main/cond/prescondtodd") == "" ) {
- messageBox("종료일자는 ","I003");
- model.setFocus("ipt_prescondtodd");
- return false;
- }
- if (model.getValue("/root/main/cond/prescondtodd").length != 8 ) {
- messageBox("올바른 종료일자 항목을","C001");
- model.setFocus("ipt_prescondtodd");
- return false;
- }
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRAAA01101");
- }
-
- //초기화
- function fReset() {
- var btn = messageBox("초기화를 ", "Q004");
- if (btn == '6') {
- model.removeNodeset("/root/main/prescondref/holipsnref");
- model.removeNodeset("/root/main/prescondref/quitorgpsnref");
- model.removeNodeset("/root/main/prescondref/rejoinorgpsnref");
- model.resetInstanceNode("/root/main/cond");
- model.setValue("/root/main/cond/flagcd", "0");
- var Ndate = getNewDate();
- var Idate = Ndate.getDateFormat("YYYYMM")+ "01";
-
- model.setValue("/root/main/cond/prescondfromdd", Idate);
- model.setValue("/root/main/cond/prescondtodd", getCurrentDate());
- model.refresh();
- } else if (btn == '7') {
- return;
- }
- }//fReset END
-
- //엑셀저장 버튼 클릭시(휴가자)
- function fExcel1() {
- if (grd_holipsnref.rows <= 1) {
- messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
-
- var fileName = window.fileDialog("save", ",", false, "휴가자명단조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_holipsnref.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- }//fExcel END
-
- //엑셀저장 버튼 클릭시(탈단자)
- function fExcel2() {
- if (grd_quitorgpsnreff.rows <= 1) {
- messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
-
- var fileName = window.fileDialog("save", ",", false, "탈단자명단조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_quitorgpsnreff.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- }//fExcel END
-
- //엑셀저장 버튼 클릭시(재입단자)
- function fExcel3() {
- if (grd_rejoinorgpsnref.rows <= 1) {
- messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
-
- var fileName = window.fileDialog("save", ",", false, "재입단자명단조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_rejoinorgpsnref.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- }//fExcel END
- ]]>
- </script>
- <xhtml:body guideline="1,1194;" 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:181px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">휴가탈단재입단현황조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRefHoliPsnList();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <caption id="caption3" class="search_name" style="left:20px; top:10px; width:99px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회기간 :</caption>
- <caption id="caption5" class="search_no_b" style="left:220px; top:10px; width:12px; height:17px; ">~</caption>
- <input id="ipt_prescondtodd" ref="/root/main/cond/prescondtodd" class="input_search" inputtype="date" style="left:245px; top:10px; width:93px; height:19px; text-align:left; "/>
- <input id="ipt_prescondfromdd" ref="/root/main/cond/prescondfromdd" class="input_search" inputtype="date" style="left:112px; top:10px; width:93px; height:19px; text-align:left; "/>
- <select1 id="cmb_flagcd" ref="/root/main/cond/flagcd" class="combo_search" appearance="minimal" style="left:540px; top:10px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cond/A0503list/A0503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" class="search_name" style="left:445px; top:10px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">활동그룹 :</caption>
- </group>
- <datagrid id="grd_holipsnref" nodeset="/root/main/prescondref/holipsnref" autoresize="true" caption="caption1^활동그룹^활동그룹^활동요일^활동시간대^성명^휴가시작일^휴가종료일^휴가구분^휴가사유" colsep="^" colwidth="100, 111, 131, 68, 105, 105, 105, 105, 105, 192" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:76px; width:1194px; height:205px; ">
- <col ref="voluntrid" visibility="hidden"/>
- <col disabled="true" ref="actdeptcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cond/A0503list/A0503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col explorerbar="sort" ref="actdeptdetlnm" style="text-align:center; "/>
- <col disabled="true" ref="voluntractdwcd" type="combo" style="left:348px; top:23px; width:58px; height:23px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/A0359list/A0359">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="voluntractteamcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/A0360list/A0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="voluntrnm" style="text-align:center; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="holicd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/A0020list/A0020A0506">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="holijobrem"/>
- </datagrid>
- <datagrid id="grd_quitorgpsnreff" nodeset="/root/main/prescondref/quitorgpsnref" autoresize="true" caption="caption1^활동그룹^활동그룹^활동요일^활동시간대^성명^입단일^재입단일^탈단일^탈단사유" colsep="^" colwidth="100, 111, 131, 67, 106, 105, 105, 105, 105, 176" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:306px; width:1194px; height:205px; ">
- <col ref="voluntrid" visibility="hidden"/>
- <col disabled="true" ref="actdeptcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cond/A0503list/A0503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="actdeptdetlnm" style="text-align:center; "/>
- <col disabled="true" ref="voluntractdwcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/A0359list/A0359">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="voluntractteamcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/A0360list/A0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="voluntrnm" style="text-align:center; "/>
- <col ref="joinorgdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rejoinorgdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="quitorgdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="quitorgresn"/>
- </datagrid>
- <datagrid id="grd_rejoinorgpsnref" nodeset="/root/main/prescondref/rejoinorgpsnref" autoresize="true" caption="caption1^활동그룹^활동그룹^활동요일^활동시간대^성명^입단일^재입단일^과거탈단일" colsep="^" colwidth="100, 111, 131, 68, 105, 105, 105, 105, 270" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:536px; width:1194px; height:205px; ">
- <col ref="voluntrid" visibility="hidden"/>
- <col disabled="true" ref="actdeptcd" type="combo" validateformat="true" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cond/A0503list/A0503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="actdeptdetlnm" style="text-align:center; "/>
- <col disabled="true" ref="voluntractdwcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/A0359list/A0359">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="voluntractteamcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/A0360list/A0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="voluntrnm" style="text-align:center; "/>
- <col ref="joinorgdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rejoinorgdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col autonext="true" ref="quitorgdd" format="9999-99-99" style="text-align:center; "/>
- </datagrid>
- <button id="button2" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1116px; top:53px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel1();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1116px; top:283px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel2();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1117px; top:513px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel3();
- ]]>
- </script>
- </button>
- </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; "/>
- <button id="btn_save" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1122px; top:3px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReset();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:71px; width:126px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">휴가자명단</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:86px; x2:1194px; y2:86px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:301px; width:126px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">탈단원명단</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:316px; x2:1194px; y2:316px; "/>
- <caption id="caption7" class="tit_2" style="left:5px; top:531px; width:126px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">재입단자명단</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:546px; x2:1194px; y2:546px; "/>
- <line id="line4" class="line_1" style="x1:0px; y1:86px; x2:1194px; y2:86px; "/>
- </xhtml:body>
- </xhtml:html>
|