123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386 |
- <?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>
- <fromdd/>
- <todd/>
- <startcd/>
- <festivcd/>
- <festivprcsrid/>
- <festivflag/>
- </cond>
- <grupinfo>
- <festivdd/>
- <startcd/>
- <endcd/>
- <festivcd/>
- <festivprcsrid/>
- <attntrcnts/>
- <festivremark/>
- <rgstdd/>
- <rgstno/>
- <status/>
- <festivflag/>
- </grupinfo>
- <festivinfo>
- </festivinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden/>
- <init>
- <festivnm/>
- <starttm/>
- <endtm/>
- <userinfo/>
- <festivnm2/>
- <starttm2/>
- <userinfo2/>
- </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("M0551", // 모임명
- "M0552", // 시작시간
- "M0553" ), // 종료시간
- new Array("/root/init/festivnm",
- "/root/init/starttm",
- "/root/init/endtm"))
- //알코올의존치료센터 소속 사용자정보조회
- 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/starttm2" , "/root/init/starttm");
- model.copyNode("/root/init/festivnm2" , "/root/init/festivnm");
- model.copyNode("/root/init/userinfo2" , "/root/init/userinfo");
-
- addComboInstance("/root/init/festivnm2" , "cdid^cdnm" , "-^전체" , "M0551"); //의사콤보 전체항목 추가
- addComboInstance("/root/init/starttm2" , "cdid^cdnm" , "-^전체" , "M0552"); //의사콤보 전체항목 추가
- addComboInstance("/root/init/userinfo2" , "userid^usernm" , "-^전체" , "userlist"); //의사콤보 전체항목 추가
-
- model.setValue("/root/main/cond/festivcd" , "-");
- model.setValue("/root/main/cond/startcd" , "-");
- model.setValue("/root/main/cond/festivprcsrid" , "-");
- btn_req.dispatch("DOMActivate");
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMNC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/userinfo"/>
- <submission id="TRMNC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/festivinfo"/>
- <submission id="TXMNC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/festivinfo"/>
- </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", "01");
- submit("TRMNC00301");
-
- ]]>
- </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" scroll="auto" caption="날짜^시작시간^시작시간^종료시간^종료시간^모임명^모임명^담당사회복지사^담당사회복지사^참석인원^비고^rgstdd^rgstno" colsep="^" colwidth="109, 0, 125, 0, 125, 0, 171, 0, 124, 100, 397, 0, 0" dataheight="25" extendlastcol="scroll" 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="startcd" visibility="hidden"/>
- <col ref="starttm" style="text-align:center; "/>
- <col ref="endcd" visibility="hidden"/>
- <col ref="endtm" style="text-align:center; "/>
- <col ref="festivcd" visibility="hidden"/>
- <col ref="festivnm"/>
- <col ref="festivprcsrid" visibility="hidden"/>
- <col ref="festivprcsrnm" style="text-align:center; "/>
- <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 rgstdd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/rgstdd");
- var rgstno = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/rgstno");
- var festivdd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivdd");
- var startcd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/startcd");
- var endcd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/endcd");
- var festivcd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivcd");
- var festivprcsrid = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivprcsrid");
- var attntrcnts = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/attntrcnts");
- var festivremark = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivremark");
-
- model.setValue("/root/main/grupinfo/rgstdd" , rgstdd);
- model.setValue("/root/main/grupinfo/rgstno" , rgstno);
- model.setValue("/root/main/grupinfo/festivdd" , festivdd);
- model.setValue("/root/main/grupinfo/startcd" , startcd);
- model.setValue("/root/main/grupinfo/endcd" , endcd);
- model.setValue("/root/main/grupinfo/festivcd" , festivcd);
- model.setValue("/root/main/grupinfo/festivprcsrid" , festivprcsrid);
- model.setValue("/root/main/grupinfo/attntrcnts" , attntrcnts);
- model.setValue("/root/main/grupinfo/festivremark" , festivremark);
- model.setValue("/root/main/grupinfo/status" , "U");
-
- group1.visible = true;
- model.refresh();
- ]]>
- </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:295px; height:230px; border-color:#c0c0c0; border-width:1px; border-style:solid; ">
- <caption id="caption8" class="tit_2" style="left:7px; top:6px; width:120px; height:13px; ">자조모임관리</caption>
- <button id="button3" class="btn2_letter2" style="left:244px; top:207px; 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="caption3" class="cell_1" style="left:5px; top:28px; width:100px; height:20px; text-align:center; ">날 짜</caption>
- <caption id="caption5" class="cell_1" style="left:5px; top:51px; width:100px; height:20px; text-align:center; ">시작시간</caption>
- <caption id="caption6" class="cell_1" style="left:5px; top:74px; width:100px; height:20px; text-align:center; ">종료시간</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:23px; x2:287px; y2:23px; "/>
- <caption id="caption9" class="cell_1" style="left:5px; top:98px; width:100px; height:20px; text-align:center; ">담당사회복지사</caption>
- <caption id="caption11" class="cell_1" style="left:5px; top:121px; width:100px; height:20px; text-align:center; ">모임명</caption>
- <line id="line7" class="line_2" style="x1:5px; y1:96px; x2:285px; y2:96px; "/>
- <line id="line4" class="line_2" style="x1:5px; y1:49px; x2:290px; y2:49px; "/>
- <line id="line5" class="line_2" style="x1:5px; y1:72px; x2:290px; y2:72px; "/>
- <line id="line6" class="line_2" style="x1:5px; y1:119px; x2:285px; y2:119px; "/>
- <line id="line8" class="line_2" style="x1:5px; y1:142px; x2:285px; y2:142px; "/>
- <input id="itp_genrdd" ref="/root/main/grupinfo/festivdd" class="input" inputtype="date" style="left:107px; top:28px; width:180px; height:19px; "/>
- <select1 id="cmb_startdt" ref="/root/main/grupinfo/startcd" appearance="minimal" style="left:107px; top:51px; width:180px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/starttm/M0552">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var startcd = model.getValue("/root/main/grupinfo/startcd");
- model.setValue("/root/main/grupinfo/endcd", startcd);
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_enddt" ref="/root/main/grupinfo/endcd" appearance="minimal" style="left:107px; top:75px; width:180px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/endtm/M0553">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_soclid" ref="/root/main/grupinfo/festivprcsrid" appearance="minimal" style="left:107px; top:99px; width:180px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userinfo/userlist">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" class="cell_1" style="left:5px; top:144px; width:100px; height:20px; text-align:center; ">참석인원</caption>
- <button id="btn_save" class="btn5_letter2" style="left:199px; top:207px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var genrdd = model.getValue("/root/main/grupinfo/festivdd");
- var startdt = model.getValue("/root/main/grupinfo/startcd");
- var enddt = model.getValue("/root/main/grupinfo/endcd" );
- var grupnm = model.getValue("/root/main/grupinfo/festivcd");
- var chrgsoclwelfid = model.getValue("/root/main/grupinfo/festivprcsrid");
- var attntrcnts = model.getValue("/root/main/grupinfo/attntrcnts");
-
- model.removenode("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.copyNode("/root/send/savedata","/root/main/grupinfo");
- model.makeValue("/root/send/savedata/festivflag", "01");
- /*
- model.makeValue("/root/send/savedata/festivflag", "");
- model.makeValue("/root/send/savedata/festivdd", genrdd);
- model.makeValue("/root/send/savedata/startcd", startdt);
- model.makeValue("/root/send/savedata/endcd", enddt);
- model.makeValue("/root/send/savedata/festivcd", grupnm);
- model.makeValue("/root/send/savedata/festivprcsrid", chrgsoclwelfid);
- model.makeValue("/root/send/savedata/attntrcnts", attntrcnts);
- */
- if (isNull(genrdd)) {
- messageBox("날짜는 필수 입력입니다.", "I");
- model.setFocus("ipt_genrdd");
- return;
- }
- if (isNull(startdt)) {
- messageBox("시작시간은 필수입력입니다.", "I");
- model.setFocus("cmb_startdt");
- return;
- }
-
- if (isNull(enddt)) {
- messageBox("종료시간은 필수 입력입니다.", "I");
- model.setFocus("cmb_enddt");
- return;
- }
- if (isNull(grupnm)) {
- messageBox("모임명은 필수입력입니다.", "I");
- model.setFocus("cmb_grupnm");
- return;
- }
- if (isNull(chrgsoclwelfid)) {
- messageBox("담당사회복지사는 필수입력입니다.", "I");
- model.setFocus("cmb_soclid");
- 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>
- <select1 id="cmb_grupnm" ref="/root/main/grupinfo/festivcd" appearance="minimal" style="left:107px; top:121px; width:180px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/festivnm/M0551">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="cell_1" style="left:5px; top:167px; width:100px; height:35px; text-align:center; ">비고</caption>
- <line id="line9" class="line_2" style="x1:5px; y1:165px; x2:285px; y2:165px; "/>
- <line id="line10" class="line_2" style="x1:5px; y1:203px; x2:285px; y2:203px; "/>
- <textarea id="textarea2" ref="/root/main/grupinfo/festivremark" scroll="autovscroll" style="left:107px; top:167px; width:180px; height:35px; "/>
- <input id="ipt_attntrcnts" ref="/root/main/grupinfo/attntrcnts" maxlength="3" format="999" style="left:107px; top:144px; width:180px; height:19px; "/>
- </group>
- <button id="button2" class="btn2_letter3" navindex="8" style="left:1096px; top:70px; width:56px; 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", "01");
- 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>
- <input id="ipt_to_orddd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:225px; top:32px; 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="caption13" class="search_name" style="left:345px; top:32px; width:86px; height:17px; ">시작시간 :</caption>
- <caption id="caption14" class="search_name" style="left:550px; top:32px; width:80px; height:17px; ">모임명 :</caption>
- <caption id="caption15" class="search_name" style="left:740px; top:32px; width:125px; height:17px; ">담당사회복지사 :</caption>
- <input id="input1" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:100px; top:32px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="cap_from" style="left:209px; top:32px; width:15px; height:19px; ">~</caption>
- <select1 id="combo1" ref="/root/main/cond/startcd" appearance="minimal" style="left:435px; top:32px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/starttm2/M0552">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/main/cond/festivcd" appearance="minimal" style="left:630px; top:32px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/festivnm2/M0551">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo3" ref="/root/main/cond/festivprcsrid" appearance="minimal" style="left:875px; top:32px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userinfo2/userlist">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button5" class="btn2_letter3" navindex="8" style="left:1041px; top:70px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/grupinfo");
- model.makeValue("/root/main/grupinfo/festivdd", getCurrentDate());
- model.makeValue("/root/main/grupinfo/status", "I");
- model.refresh();
- group1.visible = true;
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|