123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319 |
- <?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>포상수혜현황조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <actfromdd/>
- <acttodd/>
- <prizbenfflag/>
- <flagcd/>
- <actdeptcd/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- </cond>
- <prizbenfprescond>
- <prizbenfprescondlist>
- <prizbenfflag/>
- <flagcd/>
- <prizbenfdd/>
- <voluntrnm/>
- <actdeptcd/>
- <actdeptdetlnm/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- <prizbenfrem/>
- <voluntrid/>
- <prizrgstseqno/>
- <actrgstseqno/>
- </prizbenfprescondlist>
- </prizbenfprescond>
- </main>
- <init>
- <A0514list/>
- <A0503list/>
- <A0359list/>
- <A0360list/>
- <A0363list/>
- <A0364list/>
- <all>
- <cdid>%</cdid>
- <cdnm>전체</cdnm>
- </all>
- </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="TRAAA00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/prizbenfprescond"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript">
- <![CDATA[
- //화면 오픈시 초기화
- function fInit() {
- model.removeNodeset("/root/main/prizbenfprescond/prizbenfprescondlist");
- model.resetInstanceNode("/root/main/cond");
- var Ndate = getNewDate();
- var Idate = Ndate.getDateFormat("YYYYMM")+ "01";
-
- model.setValue("/root/main/cond/actfromdd", Idate);// 조회구간에 매달 첫째날짜(디폴트)
- model.setValue("/root/main/cond/acttodd", getCurrentDate());// 조회구간에 현재날짜(디폴트)
-
- // 공통코드를 조회한다.
- addComboItem("rdo_prizbenfflag", "전체", "%", "above");
- addComboItem("cmb_actdeptcd", "전체", "%", "above");
- addComboItem("cmb_voluntractdwcd", "전체", "%", "above");
- addComboItem("cmb_voluntractteamcd", "전체", "%", "above");
-
- zbcfGetCodeList( new Array("A0514","A0503", "A0359", "A0360"), new Array("/root/init/A0514list","/root/init/A0503list", "/root/init/A0359list", "/root/init/A0360list") );
- zbcfGetCodeList( new Array("A0363","A0364"), new Array("/root/init/A0363list","/root/init/A0364list") );
-
- //조건부 콤보에 전체를 추가한다.
- copyNodesetType("/root/init/A0363list/A0363","/root/init/all","before",model,model);
- copyNodesetType("/root/init/A0364list/A0364","/root/init/all","before",model,model);
-
- //초기값셋팅
- model.setValue("/root/main/cond/actdeptcd", "%");
- model.setValue("/root/main/cond/voluntractdwcd", "%");
- model.setValue("/root/main/cond/voluntractteamcd", "%");
- model.setValue("/root/main/cond/prizbenfflag", "%");
- cmb_flagcd.disabled = true;
-
- model.refresh();
- }
-
- //조회버튼 클릭시
- function fPrizBenfPresCondList() {
- if (model.getValue("/root/main/cond/actfromdd") > model.getValue("/root/main/cond/acttodd")) {
- messageBox("올바른 조회기간을","C001");
- model.setFocus("ipt_actfromdd");
- return false;
- }
- if (model.getValue("/root/main/cond/actfromdd") == "" ) {
- messageBox("시작일자는 ","I003");
- model.setFocus("ipt_actfromdd");
- return false;
- }
- if (model.getValue("/root/main/cond/actfromdd").length != 8 ) {
- messageBox("올바른 시작일자를","C001");
- model.setFocus("ipt_actfromdd");
- return false;
- }
- if (model.getValue("/root/main/cond/acttodd") == "" ) {
- messageBox("종료일자는 ","I003");
- model.setFocus("ipt_acttodd");
- return false;
- }
- if (model.getValue("/root/main/cond/acttodd").length != 8 ) {
- messageBox("올바른 종료일자를","C001");
- model.setFocus("ipt_acttodd");
- return false;
- }
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- submit("TRAAA00701");
- }
-
- //엑셀저장 버튼 클릭시
- function fExcel() {
- if (grd_prizbenfprescond.rows <= 1) {
- messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
- var fileName = window.fileDialog("save", ",", false, "포상수혜현황조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_prizbenfprescond.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- }//fExcel END
-
- //초기화 버튼 클릭시
- function fReset(){
- var btn = messageBox("초기화를 ", "Q004");
- if (btn == '6') {
- model.removeNodeset("/root/main/prizbenfprescond/prizbenfprescondlist");
- var Ndate = getNewDate();
- var Idate = Ndate.getDateFormat("YYYYMM")+ "01";
-
- ipt_actfromdd.value = Idate; // 조회구간에 매달 첫째날짜(디폴트)
- ipt_acttodd.value = getCurrentDate();// 조회구간에 현재날짜(디폴트)
- //초기값셋팅
- model.setValue("/root/main/cond/actdeptcd", "%");
- model.setValue("/root/main/cond/voluntractdwcd", "%");
- model.setValue("/root/main/cond/voluntractteamcd", "%");
- model.setValue("/root/main/cond/prizbenfflag", "%");
- model.setValue("/root/main/cond/actdeptcd","");
- cmb_flagcd.disabled = true;
-
- model.refresh();
- } else if (btn == '7') {
- return;
- }
- }//fReset END
- ]]>
- </script>
- </xhtml:head>
- <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[
- fPrizBenfPresCondList();
- ]]>
- </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:13px; top:10px; width:94px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회기간 :</caption>
- <caption id="caption5" class="search_no_b" style="left:192px; top:10px; width:12px; height:17px; ">~</caption>
- <input id="ipt_acttodd" ref="/root/main/cond/acttodd" class="input_search" inputtype="date" style="left:210px; top:10px; width:85px; height:19px; "/>
- <input id="ipt_actfromdd" ref="/root/main/cond/actfromdd" class="input_search" inputtype="date" style="left:102px; top:10px; width:85px; height:19px; "/>
- <select1 id="cmb_voluntractteamcd" ref="/root/main/cond/voluntractteamcd" class="combo_search" appearance="minimal" style="left:1019px; top:10px; width:63px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0360list/A0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" class="search_name" style="left:823px; top:10px; width:132px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">활동요일/시간대 :</caption>
- <select1 id="cmb_voluntractdwcd" ref="/root/main/cond/voluntractdwcd" class="combo_search" appearance="minimal" style="left:960px; top:10px; width:55px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0359list/A0359">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:316px; top:10px; width:74px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구분 :</caption>
- <select1 id="rdo_prizbenfflag" ref="/root/main/cond/prizbenfflag" overflow="visible" appearance="full" cols="3" style="left:379px; top:11px; width:141px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/A0514list/A0514">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/cond/prizbenfflag") =="%") { //전체선택시
- cmb_flagcd.disabled = true;
- model.setValue("/root/main/cond/flagcd","");
- }
- if(model.getValue("/root/main/cond/prizbenfflag") =="1") { //포상선택시
- cmb_flagcd.disabled = false;
- cmb_flagcd.choices.itemset.attribute("nodeset") = "/root/init/A0363list/A0363";
- model.setValue("/root/main/cond/flagcd","%");
- }
- if(model.getValue("/root/main/cond/prizbenfflag") =="2") { //수혜선택시
- cmb_flagcd.disabled = false;
- cmb_flagcd.choices.itemset.attribute("nodeset") = "/root/init/A0364list/A0364";
- model.setValue("/root/main/cond/flagcd","%");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_actdeptcd" ref="/root/main/cond/actdeptcd" class="combo_search" appearance="minimal" style="left:718px; top:10px; width:94px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0503list/A0503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:629px; top:10px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">활동그룹 :</caption>
- <select1 id="cmb_flagcd" ref="/root/main/cond/flagcd" appearance="minimal" style="left:520px; top:10px; width:94px; height:19px; ">
- <choices>
- <itemset>
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_prizbenfprescond" nodeset="/root/main/prizbenfprescond/prizbenfprescondlist" autoresize="true" caption="포상/수혜구분^포상/수혜구분^포상/수혜일자^성명^활동그룹^활동그룹^활동요일^활동시간대^비고^caption1^caption3^caption2" colsep="^" colwidth="75, 124, 100, 100, 104, 140, 76, 100, 228" 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:665px; ">
- <col disabled="true" ref="prizbenfflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/A0514list/A0514">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="flagcd"/>
- <col ref="prizbenfdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="voluntrnm"/>
- <col disabled="true" ref="actdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/A0503list/A0503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="actdeptdetlnm"/>
- <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="prizbenfrem" style="left:885px; top:23px; width:246px; height:23px; "/>
- </datagrid>
- <button id="button11" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1118px; top:50px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel();
- ]]>
- </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_delete" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1118px; top:2px; 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:156px; 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; "/>
- </xhtml:body>
- </xhtml:html>
|