123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384 |
- <?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>
- <fromdd/>
- <todd/>
- <actdeptcd/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- <bizflag/>
- <flagcd/>
- <actdivscd/>
- </cond>
- <educfestivref>
- <educfestivreflist>
- <fromdd/>
- <bizflag/>
- <flagcd/>
- <actdeptcd/>
- <actdeptdetlnm/>
- <voluntractdwcd/>
- <voluntractteamcd/>
- <educrcogtm/>
- <voluntrnm/>
- <baptnm/>
- <rrgstno/>
- <attdabsnflag/>
- <educfestivnm/>
- <attdrem/>
- </educfestivreflist>
- </educfestivref>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <init>
- <cond>
- <A0503list/>
- <A0359list/>
- <A0360list/>
- <A0362list/>
- <A0019list/>
- <all>
- <cdid>%</cdid>
- <cdnm>전체</cdnm>
- </all>
- <A0506list/>
- <A0364list/>
- <A0513list/>
- <A0655list/>
- <A0654list/>
- </cond>
- </init>
- </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="TRAAA00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/educfestivref"/>
- <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/educfestivref/educfestivreflist");
-
- var CurrentDate = getCurrentDate();
- var fromdd = CurrentDate.substr(0,6)+"01";
- 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/fromdd", fromdd);
- model.setValue("/root/main/cond/todd", lastDate);
-
- //공통코드를 조회한다.
- addComboItem("cmb_actdeptcd", "전체", "%", "above");
- addComboItem("cmb_voluntractdwcd", "전체", "%", "above");
- addComboItem("cmb_voluntractteamcd", "전체", "%", "above");
- addComboItem("cmb_actdivscd", "전체", "", "above");
- addComboItem("rdo_bizflag", "전체", "", "above");
-
- zbcfGetCodeList(new Array("A0503","A0359", "A0360", "A0362","A0506","A0364","A0513","A0655","A0654"), new Array("/root/init/cond/A0503list", "/root/init/cond/A0359list", "/root/init/cond/A0360list", "/root/init/cond/A0362list", "/root/init/cond/A0506list", "/root/init/cond/A0364list", "/root/init/cond/A0513list", "/root/init/cond/A0655list","/root/init/cond/A0654list"), true);//input박스는 한개 instance만 교체
- //유형코드 조회(Cache 방식)
- zbcfGetKindCodeList(
- new Array("A0019"), //업무규칙
- new Array("A0364"), //코드군
- new Array("/root/init/cond/A0019list"), //노드
- true, //minimum : true TRZBC00105
- new Array("dispseq"), //sorting 항목
- new Array("asc")
- );
-
- //조건부 콤보에 전체를 추가한다.
- copyNodesetType("/root/init/cond/A0362list/A0362","/root/init/cond/all","before",model,model);
- copyNodesetType("/root/init/cond/A0019list/A0019A0364","/root/init/cond/all","before",model,model);
-
- //초기값을 셋팅
- model.setValue("/root/main/cond/actdeptcd","%");
- model.setValue("/root/main/cond/voluntractdwcd","%");
- model.setValue("/root/main/cond/voluntractteamcd","%");
- cmb_flagcd.disabled = true;
-
- model.refresh();
- }
-
- function fEducFestivRef() {
- // var SMAAA01300_param = getScreenMenuParameter();
-
- if (model.getValue("/root/main/cond/fromdd") > model.getValue("/root/main/cond/todd")) {
- messageBox("올바른 교육행사일자를","C001");
- model.setFocus("ipt_fromdd");
- return false;
- }
- if (model.getValue("/root/main/cond/fromdd") == "" ) {
- messageBox("교육행사일자는 ","I003");
- model.setFocus("ipt_fromdd");
- return false;
- }
- if (model.getValue("/root/main/cond/fromdd").length != 8 ) {
- messageBox("올바른 교육행사일자 항목을","C001");
- model.setFocus("ipt_fromdd");
- return false;
- }
- if (model.getValue("/root/main/cond/todd") == "" ) {
- messageBox("교육행사일자는 ","I003");
- model.setFocus("ipt_todd");
- return false;
- }
- if (model.getValue("/root/main/cond/todd").length != 8 ) {
- messageBox("올바른 교육행사일자 항목을","C001");
- model.setFocus("ipt_todd");
- return false;
- }
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRAAA00501");
- }
-
- //초기화
- function fReset() {
- var btn = messageBox("초기화를 ", "Q004");
- if (btn == '6') {
- model.removeNodeset("/root/main/educfestivref/educfestivreflist");
- model.resetInstanceNode("/root/main/cond");
-
- var CurrentDate = getCurrentDate();
- var fromdd = CurrentDate.substr(0,6)+"01";
- 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/fromdd", fromdd);
- model.setValue("/root/main/cond/todd", lastDate);
-
- model.setValue("/root/main/cond/actdeptcd","%");
- model.setValue("/root/main/cond/voluntractdwcd","%");
- model.setValue("/root/main/cond/voluntractteamcd","%");
- model.setValue("/root/main/cond/bizflag","%");
- cmb_flagcd.disabled = true;
-
- model.refresh();
- } else if (btn == '7') {
- return;
- }
- }//fReset END
-
- //엑셀저장 버튼 클릭시
- function fExcel1() {
- if (grd_educfestivref.rows <= 1) {
- messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
-
- var fileName = window.fileDialog("save", ",", false, "교육행사현황조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_educfestivref.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; ">교육행사현황조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <button id="button2" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1116px; top:87px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel1();
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; font-family:돋움체; "/>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; font-family:돋움체; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fEducFestivRef();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:32px; font-family:돋움체; "/>
- <caption id="caption3" class="search_name" style="left:9px; top:10px; width:112px; height:17px; font-family:돋움체; ">교육행사일자:</caption>
- <caption id="caption5" class="search_no_b" style="left:211px; top:10px; width:24px; height:17px; font-family:돋움체; ">~</caption>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" inputtype="date" style="left:226px; top:10px; width:89px; height:19px; font-family:돋움체; "/>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" inputtype="date" style="left:120px; top:10px; width:88px; height:19px; font-family:돋움체; "/>
- <select1 id="cmb_voluntractteamcd" ref="/root/main/cond/voluntractteamcd" class="combo_search" appearance="minimal" style="left:872px; top:10px; width:55px; height:19px; font-family:돋움체; ">
- <choices>
- <itemset nodeset="/root/init/cond/A0360list/A0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" class="search_name" style="left:684px; top:10px; width:132px; height:17px; font-family:돋움체; ">활동요일/시간대:</caption>
- <select1 id="cmb_voluntractdwcd" ref="/root/main/cond/voluntractdwcd" class="combo_search" appearance="minimal" style="left:816px; top:10px; width:50px; height:19px; font-family:돋움체; ">
- <choices>
- <itemset nodeset="/root/init/cond/A0359list/A0359">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption14" class="search_name" style="left:10px; top:35px; width:113px; height:17px; font-family:돋움체; ">구 분 :</caption>
- <caption id="caption2" class="search_name" style="left:321px; top:10px; width:117px; height:17px; font-family:돋움체; ">소속분야/센터:</caption>
- <select1 id="cmb_actdeptcd" ref="/root/main/cond/actdeptcd" class="combo_search" disabled="false" appearance="minimal" style="left:530px; top:10px; width:145px; height:19px; font-family:돋움체; ">
- <choices>
- <itemset nodeset="/root/init/cond/A0503list/A0503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_bizflag" ref="/root/main/cond/bizflag" appearance="full" cols="4" overflow="visible" style="left:120px; top:35px; width:235px; height:20px; font-family:돋움체; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/cond/A0513list/A0513">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/main/cond/bizflag") == "%"){//전체선택시
- cmb_flagcd.disabled = true;
- model.setValue("/root/main/cond/flagcd","");
- }
-
- if (model.getValue("/root/main/cond/bizflag") == "1"){//회의
- cmb_flagcd.disabled = false;
- cmb_flagcd.choices.itemset.attribute("nodeset") ="/root/init/cond/A0655list/A0655";
- }
-
- if (model.getValue("/root/main/cond/bizflag") == "2"){//교육행사선택시
- cmb_flagcd.disabled = false;
- cmb_flagcd.choices.itemset.attribute("nodeset") = "/root/init/cond/A0362list/A0362";
- }
- if (model.getValue("/root/main/cond/bizflag") == "3"){//단체수혜선택시
- cmb_flagcd.disabled = false;
- cmb_flagcd.choices.itemset.attribute("nodeset") = "/root/init/cond/A0364list/A0364";
- }
- cmb_flagcd.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_flagcd" ref="/root/main/cond/flagcd" appearance="minimal" style="left:360px; top:35px; width:98px; height:19px; font-family:돋움체; ">
- <choices>
- <itemset>
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_actdivscd" ref="/root/main/cond/actdivscd" class="combo_search" appearance="minimal" style="left:438px; top:10px; width:90px; height:19px; font-family:돋움체; ">
- <choices>
- <itemset nodeset="/root/init/cond/A0654list/A0654">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_educfestivref" nodeset="/root/main/educfestivref/educfestivreflist" autoresize="true" caption="교육행사일^교육행사구분^교육행사구분^소속분야^소속센터^소속센터^활동요일^활동시간대^교육시간^성명^세례명^주민번호^출결구분^교육행사명^비고" colsep="^" colwidth="80, 70, 89, 70, 120, 80, 55, 70, 60, 81, 0, 105, 60, 175, 173" dataheight="25" explorerbar="sort" frozencols="12" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:113px; width:1194px; height:630px; ">
- <col ref="fromdd" format="9999-99-99" style="left:20px; top:23px; width:100px; height:28px; text-align:center; "/>
- <col disabled="true" ref="bizflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cond/A0513list/A0513[cdid!='']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="flagcd" style="text-align:center; "/>
- <col type="combo">
- <choices>
- <itemset nodeset="/root/init/cond/A0654list/A0654">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <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 disabled="true" ref="actdeptdetlnm" style="text-align:center; "/>
- <col disabled="true" ref="voluntractdwcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cond/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/cond/A0360list/A0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="educrcogtm" style="text-align:center; "/>
- <col ref="voluntrnm" style="text-align:center; "/>
- <col ref="baptnm" visibility="hidden" style="text-align:center; "/>
- <col ref="rrgstno" style="text-align:center; "/>
- <col disabled="true" ref="attdabsnflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cond/A0506list/A0506">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="educfestivnm"/>
- <col ref="attdrem"/>
- </datagrid>
- </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" style="left:1122px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReset();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:106px; width:126px; height:13px; ">교육행사현황</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:121px; x2:1194px; y2:121px; "/>
- </xhtml:body>
- </xhtml:html>
|