123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326 |
- <?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/>
- <startdt/>
- <festivcd/>
- <festivflag/>
- </cond>
- <grupinfo>
- <festivdd/>
- <enddd/>
- <festivcd/>
- <etcfestivdetlnm/>
- <festivplce/>
- <attntrcnts/>
- <festivremark/>
- <rgstdd/>
- <rgstno/>
- <festivflag/>
- <status/>
- <festivflag/>
- </grupinfo>
- <festivinfo>
- <festivlist/>
- </festivinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden/>
- <init>
- <festivcd/>
- <festivcd2/>
- </init>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //현재 날짜를 받아옴
- model.setValue("/root/main/cond/fromdd" , getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat());
- model.setValue("/root/main/cond/todd" , getCurrentDate());
- zbcfGetCodeList(new Array("M0554"), // 교육분야
- new Array("/root/init/festivcd"))
- model.removenode("/root/main/festivinfo/festivlist");
-
- /*
- //알코올의존치료센터 소속 사용자정보조회
- model.removeNodeset("/root/send");
- //model.makeValue("/root/send/wardcd", '2032100000'); //2032100000 : 알코올의존치료센터, 4050411000 : 알코올의존치료팀
- model.makeValue("/root/send/wardcd", getUserInfo("dutplcecd"));
- submit("TRMNC00101");
- */
-
- model.copyNode("/root/init/festivcd2" , "/root/init/festivcd");
- addComboInstance("/root/init/festivcd2" , "cdid^cdnm" , "-^전체" , "M0554"); //의사콤보 전체항목 추가
- model.setValue("/root/main/cond/festivcd" , "-");
- btn_req.dispatch("DOMActivate");
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMNC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/eduinfo"/>
- <submission id="TXMNC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/eduinfo"/>
- <submission id="TRMNC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/userinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1193;2,63;1,-3;1,1193;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:140px; height:14px; ">행사관리</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:21px; width:1193px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_req" class="btn1_letter2" navindex="5" style="left:1122px; top:30px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/main/festivinfo")
- model.setValue("/root/main/cond/festivflag", "03");
- if (submit("TRMNC00301") == "true") {
- }
- ]]>
- </script>
- </button>
- <caption id="caption25" class="tit_2" style="left:0px; top:72px; width:147px; height:14px; ">행사일정조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:90px; x2:1193px; y2:90px; "/>
- <datagrid id="grd_gruplist" nodeset="/root/main/festivinfo/festivlist" caption="시작일자^종료일자^행사명^행사명^장소^참석인원^참고사항^rgstdd^rgstno" colsep="^" colwidth="120, 120, 0, 202, 177, 103, 421, 0, 0" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" navindex="6" style="left:0px; top:95px; width:1193px; height:689px; word-wrap:word; ">
- <col ref="festivdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="enddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="festivcd" visibility="hidden"/>
- <col ref="festivnm"/>
- <col ref="festivplce"/>
- <col ref="attntrcnts" style="text-align:center; "/>
- <col ref="festivremark"/>
- <col ref="rgstdd" visibility="hidden"/>
- <col ref="rgstno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.resetInstanceNode("/root/main/grupinfo");
-
- var currow = grd_gruplist.row;
- var festivdd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivdd")
- var enddd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/enddd")
- var festivcd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivcd")
- var etcfestivdetlnm = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/etcfestivdetlnm")
- var festivplce = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivplce")
- var attntrcnts = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/attntrcnts")
- var festivremark = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivremark")
- var rgstno = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/rgstno")
- var rgstdd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/rgstdd")
-
- if (festivcd =="06") {
- ipt_etcfestiv.disabled= false;
- } else {
- ipt_etcfestiv.disabled= true;
- }
- model.setValue("/root/main/grupinfo/festivdd" , festivdd);
- model.setValue("/root/main/grupinfo/enddd" , enddd);
- model.setValue("/root/main/grupinfo/festivcd" , festivcd);
- model.setValue("/root/main/grupinfo/etcfestivdetlnm" , etcfestivdetlnm);
- model.setValue("/root/main/grupinfo/festivplce" , festivplce);
- model.setValue("/root/main/grupinfo/attntrcnts" , attntrcnts);
- model.setValue("/root/main/grupinfo/festivremark" , festivremark);
- model.setValue("/root/main/grupinfo/rgstno" , rgstno);
- model.setValue("/root/main/grupinfo/rgstdd" , rgstdd);
- model.setValue("/root/main/grupinfo/status" , "U");
- model.refresh();
-
- group1.visible = true;
- ]]>
- </script>
- </datagrid>
- <line id="line3" style="x1:1110px; y1:25px; x2:1110px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button1" class="btn2_letter2" navindex="8" style="left:1151px; top:70px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- <group id="group1" visibility="hidden" style="left:230px; top:195px; width:390px; height:255px; border-color:#c0c0c0; border-width:1px; border-style:solid; ">
- <caption id="caption8" class="tit_2" style="left:7px; top:6px; width:120px; height:14px; ">행사관리</caption>
- <button id="button3" class="btn2_letter2" style="left:340px; top:231px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/grupinfo");
- group1.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption5" class="cell_1" style="left:4px; top:27px; width:72px; height:20px; text-align:center; ">시작일자</caption>
- <caption id="caption6" class="cell_1" style="left:197px; top:27px; width:72px; height:20px; text-align:center; ">종료일자</caption>
- <line id="line2" class="line_1" style="x1:3px; y1:21px; x2:385px; y2:21px; "/>
- <caption id="caption9" class="cell_1" style="left:4px; top:51px; width:72px; height:20px; text-align:center; ">행사명</caption>
- <caption id="caption11" class="cell_1" style="left:197px; top:52px; width:72px; height:20px; text-align:center; ">기타행사명</caption>
- <line id="line7" class="line_2" style="x1:3px; y1:96px; x2:385px; y2:96px; "/>
- <line id="line4" class="line_2" style="x1:3px; y1:49px; x2:385px; y2:49px; "/>
- <line id="line5" class="line_2" style="x1:3px; y1:72px; x2:385px; y2:72px; "/>
- <select1 id="cmb_festiv" ref="/root/main/grupinfo/festivcd" appearance="minimal" style="left:79px; top:52px; width:114px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/festivcd/M0554">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var festivcd = model.getValue("/root/main/grupinfo/festivcd");
- if (festivcd =="06") {
- ipt_etcfestiv.disabled= false;
- } else {
- ipt_etcfestiv.disabled= true;
- }
-
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="cell_1" style="left:4px; top:99px; width:72px; height:130px; text-align:center; ">비고</caption>
- <textarea id="textarea1" ref="/root/main/grupinfo/festivremark" scroll="autovscroll" style="left:79px; top:99px; width:305px; height:130px; "/>
- <button id="button4" class="btn5_letter2" style="left:295px; top:231px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.resetInstanceNode("/root/main/grupinfo");
- //model.refresh();
-
- var festivdd = model.getValue("/root/main/grupinfo/festivdd");
- var enddd = model.getValue("/root/main/grupinfo/enddd");
- var festivcd = model.getValue("/root/main/grupinfo/festivcd");
- var festivplce = model.getValue("/root/main/grupinfo/festivplce");
- var attntrcnts = model.getValue("/root/main/grupinfo/attntrcnts");
- var festivremark = model.getValue("/root/main/grupinfo/festivremark");
- var etcfestivdetlnm= model.getValue("/root/main/grupinfo/etcfestivdetlnm");
- var status = model.getValue("/root/main/grupinfo/status");
-
- model.removenode("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.copyNode("/root/send/savedata","/root/main/grupinfo");
- model.makeValue("/root/send/savedata/festivflag", "03");
-
- if (isNull(festivdd)) {
- messageBox("시작일자는 필수 입력입니다.", "I");
- model.setFocus("ipt_startdd");
- return;
- }
- if (isNull(enddd)) {
- messageBox("종료일자는 필수입력입니다.", "I");
- model.setFocus("ipt_enddd");
- return;
- }
-
- if (isNull(festivcd)) {
- messageBox("행사명은 필수 입력입니다.", "I");
- model.setFocus("cmb_festiv");
- return;
- }
- if (isNull(festivplce)) {
- messageBox("행사장소는 필수입력입니다.", "I");
- model.setFocus("ipt_plce");
- return;
- }
- if (isNull(attntrcnts)) {
- messageBox("참석인원수는 필수입력입니다.", "I");
- model.setFocus("ipt_attntrcnts");
- return;
- }
- if (submit("TXMNC00301") == true ) {
- model.resetInstanceNode("/root/main/grupinfo");
- group1.visible = false;
- } else {
- messageBox("저장이 실패했습니다.", "I");
- }
- btn_req.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <input id="ipt_etcfestiv" ref="/root/main/grupinfo/etcfestivdetlnm" disabled="true" style="left:272px; top:52px; width:112px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:4px; top:74px; width:72px; height:20px; text-align:center; ">장소</caption>
- <input id="ipt_plce" ref="/root/main/grupinfo/festivplce" style="left:79px; top:74px; width:114px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:197px; top:74px; width:72px; height:20px; text-align:center; ">참석인원수</caption>
- <input id="ipt_attntrcnts" ref="/root/main/grupinfo/attntrcnts" maxlength="3" format="999" style="left:272px; top:74px; width:112px; height:19px; "/>
- <input id="ipt_startdd" ref="/root/main/grupinfo/festivdd" inputtype="date" style="left:79px; top:27px; width:114px; height:19px; "/>
- <input id="ipt_enddd" ref="/root/main/grupinfo/enddd" inputtype="date" style="left:272px; top:27px; width:112px; height:19px; "/>
- </group>
- <button id="button2" class="btn2_letter3" navindex="8" style="left:1039px; top:70px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/main/grupinfo/status", "I");
- group1.visible = true;
- ]]>
- </script>
- </button>
- <input id="ipt_to_orddd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:225px; top:31px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:20px; top:32px; width:80px; height:17px; ">조회일 :</caption>
- <caption id="caption14" class="search_name" style="left:355px; top:32px; width:80px; height:17px; ">모임명 :</caption>
- <input id="input1" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:100px; top:31px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="cap_from" style="left:209px; top:31px; width:15px; height:19px; ">~</caption>
- <select1 id="combo1" ref="/root/main/cond/festivcd" appearance="minimal" style="left:435px; top:31px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/festivcd2/M0554">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button5" class="btn2_letter3" navindex="8" style="left:1095px; top:70px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var idx = grd_gruplist.row;
- if(idx <=0) {
- messageBox("삭제할 모임이 선택되지 않았습니다.", "I");
- return;
- }
-
- model.removenode("/root/send/savedata");
- model.makeValue("/root/send/savedata/status", "D");
- model.makeValue("/root/send/savedata/festivflag", "03");
- model.makeValue("/root/send/savedata/rgstdd", model.getValue("/root/main/festivinfo/festivlist["+idx+"]/rgstdd"));
- model.makeValue("/root/send/savedata/rgstno", model.getValue("/root/main/festivinfo/festivlist["+idx+"]/rgstno"));
-
- if (submit("TXMNC00301") == true ) {
- model.removenode("/root/main/festivinfo");
- submit("TRMNC00301");
- model.refresh();
- } else {
- messageBox("저장이 실패했습니다.", "I");
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|