123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419 |
- <?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>
- <festivyy/>
- <festivmm/>
- <bizflag/>
- <rgstteamflag/>
- <festivdate/>
- </cond>
- <schereflist/>
- <cal>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- </cal>
- <festivscheref>
- <caldatainfo>
- <basedd/>
- <dutflag/>
- <day/>
- <dw/>
- <weekno/>
- <educfestivnm/>
- </caldatainfo>
- </festivscheref>
- </main>
- <init>
- <cond>
- <A0513list/>
- <A0525list/>
- </cond>
- <insupdtvalue/>
- </init>
- <send>
- <reqdata/>
- <removedata/>
- </send>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetCalendarStyle();
- fInit();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRAAA03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/festivscheref"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/SPZUR00100.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tchartHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- </xhtml:head>
- <script type="javascript">
- <![CDATA[
- //1.초기화
- function fInit() {
- //조회년월 초기화
- var CurrentDate = getCurrentDate();
- var sYear = CurrentDate.substr(0,4);
- var sMonth = CurrentDate.substr(4,2);
- model.setValue("/root/main/cond/festivyy", sYear);
- model.setValue("/root/main/cond/festivmm", sMonth);
- model.setValue("/root/main/cond/bizflag", "0"); //스케줄구분 전체 셋팅
- model.setValue("/root/main/cond/rgstteamflag", "1");
- //공통코드를 조회한다.
- addComboItem("rdo_bizflag", "전체", "0", "above");
- addComboItem("rdo_rgstteamflag", "전체", "", "above");
- zbcfGetCodeList(new Array("A0513", "A0525"), new Array("/root/init/cond/A0513list", "/root/init/cond/A0525list"), true);
- fFestivScheRef();
-
- model.refresh();
- }
-
- //2.조회
- function fFestivScheRef() {
- var festivyy = model.getValue("/root/main/cond/festivyy");
- var festivmm = model.getValue("/root/main/cond/festivmm");
- var festivdate = festivyy.concat(festivmm);
-
- model.setValue("/root/main/cond/festivdate", festivdate);
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copynode("/root/send/reqdata", "/root/main/cond");
-
- if( submit("TRAAA03201") == true) {
- model.resetInstanceNode("/root/main/cal");
- fSetCalendar();
- fSetCalendarStyle();
- } else {
- messageBox("병원일정 데이터를 가져올 수", "I004");
- return;
- }
- }//fFestivScheRef END
-
- //달력정보 및 교육행사명을 달력에표시
- function fSetCalendar() {
- var selDataCnt = getNodesetCnt(model1, "/root/main/festivscheref/caldatainfo"); //노드의 갯수
- var dw = "sun mon tue wed thu fri sat";
- var sDay = dw.split(" ");
-
- for(i=1; i<=selDataCnt; i++) {
- var row = model.getValue("/root/main/festivscheref/caldatainfo["+ i +"]/weekno");
- var col = model.getValue("/root/main/festivscheref/caldatainfo["+ i +"]/dw")-1;
- var dutflag = model.getValue("/root/main/festivscheref/caldatainfo["+ i +"]/dutflag");
-
- if (dutflag == "4") { //토요일인 경우, 파란색 설정
- grd_calendar.cellStyle("color", row, col, row, col) = "#0000ff";
- } else if ( dutflag == '8') { //휴일인 경우, 빨간색 설정
- grd_calendar.cellStyle("color", row, col, row, col) = "#ff0000";
- } else { //그 이외는 검정색(평일 : 0)
- grd_calendar.cellStyle("color", row, col, row, col) = "#000000";
- }
- model.setValue("/root/main/cal/weeks[" + row + "]/" + sDay[col],
- model.getValue("/root/main/festivscheref/caldatainfo[" + i + "]/day") + "\n"
- +" " + model.getValue("/root/main/festivscheref/caldatainfo[" + i + "]/educfestivnm"));
- }
- model.refresh();
- }//fSetCalendar END
-
- //달력스타일셋팅
- function fSetCalendarStyle() {
- //height
- grd_calendar.dataHeight = 92;
- //font style
- grd_calendar.allStyle("all", "font-size") = "15px";
- //달력 기본색 지정
- grd_calendar.allStyle("all", "background-color") = "#ffffff"; //흰색
- }//fSetCalendarStyle END
-
- //달력클릭시
- function fSetColor() {
- var iRow = grd_calendar.row;
- var iCol = grd_calendar.col;
- if (iRow < 1) return;
-
- var selectedCells = grd_calendar.selectedCells;
- var cell = grd_calendar.selectedCells.item(0);
-
- var dataarray = grd_calendar.valueMatrix(cell.row, cell.col).split("\n"); //일
- var dd = model.getValue("/root/main/festivscheref/caldatainfo[day='" + dataarray[0] + "']/basedd"); //년월일
-
- if (dd != "") {
- grd_calendar.allStyle("all", "background-color") = "#ffffff"; //흰색
- grd_calendar.cellstyle("background-color", iRow, iCol, iRow, iCol) = "#ccffff"; //하늘색
- }
- model.refresh();
- }//fSetColor END
-
- //노드 갯수 구함
- function getNodesetCnt(srchModel, path) {
- var insXml = srchModel.instances(0);
- var nodeList = insXml.selectNodes(path);
- return nodeList.length;
- }//getNodesetCnt END
- ]]>
- </script>
- <xhtml:body guideline="1,1195;" 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:158px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">회의교육행사스케줄조회</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:675px; width:1195px; height:65px; ">
- <line id="line37" class="line_6" style="x1:1px; y1:0px; x2:1195px; y2:0px; "/>
- </group>
- <group id="group4" style="left:0px; top:20px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption7" class="search_name" style="left:25px; top:9px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회년월 :</caption>
- <button id="btn_view" 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[
- fFestivScheRef();
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="ipt_festivmm" ref="/root/main/cond/festivmm" class="combo_search" appearance="minimal" style="left:239px; top:9px; width:56px; height:19px; ">
- <choices>
- <item>
- <label>1</label>
- <value>01</value>
- </item>
- <item>
- <label>2</label>
- <value>02</value>
- </item>
- <item>
- <label>3</label>
- <value>03</value>
- </item>
- <item>
- <label>4</label>
- <value>04</value>
- </item>
- <item>
- <label>5</label>
- <value>05</value>
- </item>
- <item>
- <label>6</label>
- <value>06</value>
- </item>
- <item>
- <label>7</label>
- <value>07</value>
- </item>
- <item>
- <label>8</label>
- <value>08</value>
- </item>
- <item>
- <label>9</label>
- <value>09</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>11</label>
- <value>11</value>
- </item>
- <item>
- <label>12</label>
- <value>12</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fFestivScheRef();
- ]]>
- </script>
- </select1>
- <caption id="caption3" style="left:200px; top:9px; width:26px; height:19px; ">년도</caption>
- <caption id="caption4" style="left:300px; top:9px; width:26px; height:19px; ">월</caption>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <caption id="caption2" class="search_name" style="left:381px; top:10px; width:99px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">스케줄구분 :</caption>
- <select1 id="rdo_bizflag" ref="/root/main/cond/bizflag" appearance="full" cols="4" overflow="visible" style="left:480px; top:11px; width:250px; height:20px; 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[
- fFestivScheRef();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:735px; top:10px; width:99px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구분 :</caption>
- <select1 id="rdo_rgstteamflag" ref="/root/main/cond/rgstteamflag" appearance="full" cols="5" overflow="visible" style="left:800px; top:10px; width:250px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/cond/A0525list/A0525">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fFestivScheRef();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_festivyy" ref="/root/main/cond/festivyy" class="combo_search" appearance="minimal" style="left:120px; top:9px; width:76px; height:19px; ">
- <choices>
- <item>
- <label>2007</label>
- <value>2007</value>
- </item>
- <item>
- <label>2008</label>
- <value>2008</value>
- </item>
- <item>
- <label>2009</label>
- <value>2009</value>
- </item>
- <item>
- <label>2010</label>
- <value>2010</value>
- </item>
- <item>
- <label>2011</label>
- <value>2011</value>
- </item>
- <item>
- <label>2012</label>
- <value>2012</value>
- </item>
- <item>
- <label>2013</label>
- <value>2013</value>
- </item>
- <item>
- <label>2014</label>
- <value>2014</value>
- </item>
- <item>
- <label>2015</label>
- <value>2015</value>
- </item>
- <item>
- <label>2016</label>
- <value>2016</value>
- </item>
- <item>
- <label>2017</label>
- <value>2017</value>
- </item>
- <item>
- <label>2018</label>
- <value>2018</value>
- </item>
- <item>
- <label>2019</label>
- <value>2019</value>
- </item>
- <item>
- <label>2020</label>
- <value>2020</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fFestivScheRef();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption9" class="tit_2" style="left:5px; top:64px; width:126px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">회의교육행사 일정</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:82px; x2:1194px; y2:82px; "/>
- <switch id="swt_battmptsche" style="left:0px; top:87px; width:1192px; height:583px; ">
- <case id="case_calendar" selected="true">
- <datagrid id="grd_calendar" nodeset="/root/main/cal/weeks" allowselection="true" allowuserresize="false" backcoloralternate="transparent" caption="일^월^화^수^목^금^토" colsep="^" colwidth="169, 170, 170, 170, 170, 170, 169" defaultrows="7" extendlastcol="scroll" focuscolor="transparent" frozencols="1" rowsep="|" selectionmode="free" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:0px; width:1190px; height:580px; border-style:none; ">
- <col ref="sun" style="vertical-align:top; "/>
- <col ref="mon" style="vertical-align:top; "/>
- <col ref="tue" style="vertical-align:top; "/>
- <col ref="wed" style="vertical-align:top; "/>
- <col ref="thu" style="vertical-align:top; "/>
- <col ref="fri" style="vertical-align:top; "/>
- <col ref="sat" style="vertical-align:top; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetColor();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- </xhtml:body>
- </xhtml:html>
|