123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356 |
- <?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>
- <refschefromdd/>
- <refschetodd/>
- <scheflagcd/>
- <schecntscd/>
- <conslrid/>
- <sortbase>1</sortbase>
- </cond>
- <yyschelist>
- <yyschelistinfo>
- <fromdd/>
- <todd/>
- <conslrnm/>
- <scheflagcd/>
- <schecntscd/>
- <cost/>
- <diplyn/>
- <plcenm/>
- <rem/>
- <conslrid/>
- </yyschelistinfo>
- </yyschelist>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- <comcodelist>
- <scheflag_cmblist/>
- <scheflag_all_cmblist>
- <A0217>
- <cdid>0</cdid>
- <cdnm>전체</cdnm>
- </A0217>
- </scheflag_all_cmblist>
- <schecnts_cmblist/>
- <schecnts_kindcmblist/>
- <conslrlist>
- <conslrlistinfo>
- <conslrid/>
- <conslrnm>전체</conslrnm>
- </conslrlistinfo>
- </conslrlist>
- </comcodelist>
- </init>
- <hidden/>
- </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="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRAYA00101" method="post" ref="/root/send/reqdata" resultref="/root/init/comcodelist/conslrlist"/>
- <submission id="TRAYA00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/yyschelist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //화면 오픈시
- function fInit() {
- //그리드 초기화
- model.removeNodeset("/root/main/yyschelist/yyschelistinfo");
-
- // 오늘 날짜로 세팅
- var CurrentDate = getCurrentDate();
- model.setValue("/root/main/cond/refschefromdd", CurrentDate.substr(0, 4) + "0101");
- model.setValue("/root/main/cond/refschetodd", CurrentDate);
-
- model.setValue("/root/main/cond/scheflagcd", "0");
- fScheflagChgRef();
- model.setValue("/root/main/cond/schecntscd", "000");
-
- // 원목자 조회
- //submit("TRAYA00101");
- model.makeValue("/root/send/reqdata/joblncd", "B");
- submit("TRAYA00101", false);
- addComboItem("cmb_conslrid", "전체", "", "above");
- //연간일정구분 , 연간일정내용 콤보리스트 조회
- zbcfGetCodeList(new Array("A0217", "A0217", "A0218"), new Array("/root/init/comcodelist/scheflag_cmblist", "/root/init/comcodelist/scheflag_all_cmblist", "/root/init/comcodelist/schecnts_cmblist"), true);
- model.refresh();
-
- }
-
-
- //일정구분콤보 선택에 따른 내용 콤보 조회
- function fScheflagChgRef() {
- var scheflagcd = model.getValue("/root/main/cond/scheflagcd");
- var bizid; //업무규칙
-
- if (scheflagcd == '0' ) { //전체
- model.removeNodeset("/root/init/comcodelist/schecnts_kindcmblist");
- model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0218/cdid");
- model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0218/cdnm");
- model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0218/cdid", '000');
- model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0218/cdnm", '전체');
-
- } else if (scheflagcd == 'A') {
- bizid = "A0002";
- model.removeNodeset("/root/init/comcodelist/schecnts_kindcmblist");
- model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0002A0218/cdid");
- model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0002A0218/cdnm");
- model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0002A0218/cdid", 'A00');
- model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0002A0218/cdnm", '전체');
-
- } else if (scheflagcd == 'B') {
- bizid = "A0003";
- model.removeNodeset("/root/init/comcodelist/schecnts_kindcmblist");
- model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0003A0218/cdid");
- model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0003A0218/cdnm");
- model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0003A0218/cdid", 'B00');
- model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0003A0218/cdnm", '전체');
-
- } else if (scheflagcd == 'C') {
- bizid = "A0004";
- model.removeNodeset("/root/init/comcodelist/schecnts_kindcmblist");
- model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0004A0218/cdid");
- model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0004A0218/cdnm");
- model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0004A0218/cdid", 'C00');
- model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0004A0218/cdnm", '전체');
-
- } else if (scheflagcd == 'D') {
- bizid = "A0005";
- model.removeNodeset("/root/init/comcodelist/schecnts_kindcmblist");
- model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0005A0218/cdid");
- model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0005A0218/cdnm");
- model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0005A0218/cdid", 'D00');
- model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0005A0218/cdnm", '전체');
-
- } else if (scheflagcd == 'Z') {
- bizid = "A0006";
- model.removeNodeset("/root/init/comcodelist/schecnts_kindcmblist");
- model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0006A0218/cdid");
- model.makeNode("/root/init/comcodelist/schecnts_kindcmblist/A0006A0218/cdnm");
- model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0006A0218/cdid", 'Z00');
- model.setValue("/root/init/comcodelist/schecnts_kindcmblist/A0006A0218/cdnm", '전체');
- }
-
- zbcfGetKindCodeList(
- new Array(bizid), //업무규칙
- new Array("A0218"), //코드군
- new Array("/root/init/comcodelist/schecnts_kindcmblist"), //노드
- true, //minimum : true TRZBC00105
- new Array("cdid"), //sorting 항목
- new Array("asc")
- );
-
- if (scheflagcd == '0') {
- cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0218";
-
- } else if (scheflagcd == 'A') {
- cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0002A0218";
-
- } else if (scheflagcd == 'B') {
- cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0003A0218";
-
- } else if (scheflagcd == 'C') {
- cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0004A0218";
-
- } else if (scheflagcd == 'D') {
- cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0005A0218";
-
- } else if (scheflagcd == 'Z') {
- cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0006A0218";
- }
-
- //cmb_schecnts.refresh();
-
- if (scheflagcd == '0' ) { //전체
- model.setValue("/root/main/cond/schecntscd", '000');
-
- } else if (scheflagcd == 'A') {
- model.setValue("/root/main/cond/schecntscd", 'A00');
- } else if (scheflagcd == 'B') {
- model.setValue("/root/main/cond/schecntscd", 'B00');
- } else if (scheflagcd == 'C') {
- model.setValue("/root/main/cond/schecntscd", 'C00');
- } else if (scheflagcd == 'D') {
- model.setValue("/root/main/cond/schecntscd", 'D00');
- } else if (scheflagcd == 'Z') {
- model.setValue("/root/main/cond/schecntscd", 'Z00');
- }
- model.refresh();
-
- }
-
- //리스트조회
- function fSepYYScheListRef() {
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- // reqGetSepYYScheListInfo
- // getSepYYScheListInfo
- submit("TRAYA00301");
- }
-
- //엑셀저장
- function fExcelSave() {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_yyschelist.saveExcel(fileName, "SheetName", false, false, "", "", false);
- //grd_yyschelist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.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"/>
- </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; ">연간일정조회</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:61px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; "/>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSepYYScheListRef();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:20px; top:10px; width:99px; height:17px; ">조회기간 :</caption>
- <caption id="caption5" class="search_no_b" style="left:230px; top:10px; width:12px; height:17px; ">~</caption>
- <input id="input1" ref="/root/main/cond/refschetodd" class="input_search" inputtype="date" style="left:250px; top:10px; width:100px; height:19px; "/>
- <input id="input5" ref="/root/main/cond/refschefromdd" class="input_search" inputtype="date" style="left:125px; top:10px; width:100px; height:19px; "/>
- <caption id="caption12" class="search_name" style="left:420px; top:10px; width:70px; height:17px; ">구 분 :</caption>
- <caption id="caption2" class="search_name" style="left:695px; top:10px; width:85px; height:17px; ">내 용 :</caption>
- <select1 id="cmb_scheflag" ref="/root/main/cond/scheflagcd" class="combo_search" appearance="minimal" style="left:505px; top:10px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/scheflag_all_cmblist/A0217">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fScheflagChgRef();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fScheflagChgRef();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_schecnts" ref="/root/main/cond/schecntscd" class="combo_search" appearance="minimal" style="left:795px; top:10px; width:120px; height:19px; ">
- <choices>
- <itemset>
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:420px; top:35px; width:80px; height:17px; ">원목자 :</caption>
- <line id="line2" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:53px; "/>
- <caption id="caption7" class="search_name" style="left:695px; top:35px; width:86px; height:17px; ">정렬기준 :</caption>
- <select1 id="radio1" ref="/root/main/cond/sortbase" overflow="visible" appearance="full" cols="3" style="left:795px; top:35px; width:180px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>일자</label>
- <value>1</value>
- </item>
- <item>
- <label>구분</label>
- <value>2</value>
- </item>
- <item>
- <label>원목자</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_conslrid" ref="/root/main/cond/conslrid" appearance="minimal" style="left:505px; top:35px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/conslrlist/conslrlistinfo">
- <label ref="conslrnm"/>
- <value ref="conslrid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_yyschelist" nodeset="/root/main/yyschelist/yyschelistinfo" caption="시작일자^종료일자^원목자 성명^구분^내용^분류내용^비용^수료증 여부^장소^비고" colsep="^" colwidth="100, 105, 112, 110, 121, 63, 114, 78, 150, 213" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:105px; width:1194px; height:630px; ">
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="conslrnm" style="text-align:center; "/>
- <col disabled="true" ref="scheflagcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/comcodelist/scheflag_cmblist/A0217">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="schecntscd" type="combo">
- <choices>
- <itemset nodeset="/root/init/comcodelist/schecnts_cmblist/A0218">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="clscntscd" type="combo">
- <choices>
- <item>
- <label>팀</label>
- <value>1</value>
- </item>
- <item>
- <label>개별</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="cost" format="#,###" style="text-align:right; "/>
- <col ref="diplyn" style="text-align:center; "/>
- <col ref="plcenm"/>
- <col ref="rem"/>
- </datagrid>
- <button id="button2" class="btn2_letter2" style="left:1152px; top:80px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcelSave();
- ]]>
- </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; "/>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:96px; width:126px; height:13px; ">연간일정 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:113px; x2:1194px; y2:113px; "/>
- </xhtml:body>
- </xhtml:html>
|