123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392 |
- <?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/>
- <festivcd/>
- <festivdetlcd/>
- <festivprcsrid/>
- <festivflag/>
- </cond>
- <festivinfo>
- <festivlist/>
- </festivinfo>
- <eduactinfo>
- <festivdd/>
- <festivcd/>
- <festivdetlcd/>
- <etcfestivdetlnm/>
- <festivtitl/>
- <festivprcsrid/>
- <attntrcnts/>
- <festivcnstplce/>
- <festivplce/>
- <festivremark/>
- <status/>
- <festivflag>02</festivflag>
- <rgstdd/>
- <rgstno/>
- </eduactinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden/>
- <init>
- <edupartcd/>
- <edudetlcd/>
- <userinfo/>
- <edupartcd2/>
- <edudetlcd2/>
- <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("M0548", // 세부내용
- "M0550"), // 교육분야
- new Array("/root/init/edupartcd",
- "/root/init/edudetlcd"))
- model.removenode("/root/main/eduinfo/edulist");
-
- //알코올의존치료센터 소속 사용자정보조회
- 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/edupartcd2" , "/root/init/edupartcd");
- model.copyNode("/root/init/edudetlcd2" , "/root/init/edudetlcd");
- model.copyNode("/root/init/userinfo2" , "/root/init/userinfo");
-
- addComboInstance("/root/init/edupartcd2" , "cdid^cdnm" , "-^전체" , "M0548"); //의사콤보 전체항목 추가
- addComboInstance("/root/init/edudetlcd2" , "cdid^cdnm" , "-^전체" , "M0550"); //의사콤보 전체항목 추가
- addComboInstance("/root/init/userinfo2" , "userid^usernm" , "-^전체" , "userlist"); //의사콤보 전체항목 추가
-
- model.setValue("/root/main/cond/festivcd" , "-");
- model.setValue("/root/main/cond/festivdetlcd" , "-");
- model.setValue("/root/main/cond/festivprcsrid" , "-");
-
- 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; "/>
- <caption id="caption2" class="search_name" style="left:20px; top:32px; width:75px; height:17px; ">조회일 :</caption>
- <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", "02");
- if (submit("TRMNC00301") == "true") {
- btn_req.dispatch("DOMActivate");
- }
- ]]>
- </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_edulist" nodeset="/root/main/festivinfo/festivlist" caption="교육일자^교육분야^교육분야^세부내용^세부내용^제 목^참석인원수^교육담당^교육담당^교육의뢰처^교육장소^비고^rgstdd^rgstno" colsep="^" colwidth="91, 0, 113, 0, 121, 204, 78, 0, 82, 92, 107, 259, 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="festivcd" visibility="hidden"/>
- <col ref="festivnm"/>
- <col ref="festivdetlcd" visibility="hidden"/>
- <col ref="festivdetlnm"/>
- <col ref="festivtitl"/>
- <col ref="attntrcnts" style="text-align:center; "/>
- <col ref="festivprcsrid" visibility="hidden"/>
- <col ref="festivprcsrnm"/>
- <col ref="festivcnstplce"/>
- <col ref="festivplce"/>
- <col ref="festivremark"/>
- <col ref="rgstdd" visibility="hidden"/>
- <col ref="rgstno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.resetInstanceNode("/root/main/eduactinfo");
- var currow = grd_edulist.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 festivcd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivcd");
- var festivdetlcd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivdetlcd");
- var festivtitl = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivtitl");
- var attntrcnts = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/attntrcnts");
- var festivprcsrid = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivprcsrid");
- var festivcnstplce = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivcnstplce");
- var festivplce = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivplce");
- var festivremark = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivremark");
- model.setValue("/root/main/eduactinfo/rgstdd" , rgstdd);
- model.setValue("/root/main/eduactinfo/rgstno" , rgstno);
- model.setValue("/root/main/eduactinfo/festivdd" , festivdd);
- model.setValue("/root/main/eduactinfo/festivcd" , festivcd);
- model.setValue("/root/main/eduactinfo/festivdetlcd" , festivdetlcd);
- model.setValue("/root/main/eduactinfo/festivtitl" , festivtitl);
- model.setValue("/root/main/eduactinfo/attntrcnts" , attntrcnts);
- model.setValue("/root/main/eduactinfo/festivprcsrid" , festivprcsrid);
- model.setValue("/root/main/eduactinfo/festivcnstplce" , festivcnstplce);
- model.setValue("/root/main/eduactinfo/festivplce" , festivplce);
- model.setValue("/root/main/eduactinfo/festivremark" , festivremark);
- model.setValue("/root/main/eduactinfo/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:1150px; top:69px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_edulist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <group id="group1" visibility="hidden" style="left:230px; top:195px; width:465px; height:195px; border-color:#c0c0c0; border-width:1px; border-style:solid; ">
- <caption id="caption8" class="tit_2" style="left:5px; top:5px; width:120px; height:13px; ">집단교육활동</caption>
- <button id="button3" class="btn2_letter2" style="left:415px; top:168px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/eduactinfo");
- group1.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption3" class="cell_1" style="left:5px; top:27px; width:100px; height:20px; text-align:center; ">교육일자</caption>
- <caption id="caption4" class="cell_1" style="left:232px; top:27px; width:100px; height:20px; text-align:center; ">교육분야</caption>
- <caption id="caption5" class="cell_1" style="left:5px; top:50px; width:100px; height:20px; text-align:center; ">세부내용</caption>
- <caption id="caption6" class="cell_1" style="left:5px; top:73px; width:100px; height:20px; text-align:center; ">제목</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:23px; x2:455px; y2:22px; "/>
- <caption id="caption7" class="cell_1" style="left:232px; top:96px; width:100px; height:20px; text-align:center; ">참석인원수</caption>
- <input id="ipt_titl" ref="/root/main/eduactinfo/festivtitl" style="left:108px; top:73px; width:349px; height:19px; "/>
- <input id="ipt_attrcnts" ref="/root/main/eduactinfo/attntrcnts" maxlength="3" format="999" style="left:335px; top:96px; width:122px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:5px; top:96px; width:100px; height:20px; text-align:center; ">교육담당</caption>
- <caption id="caption10" class="cell_1" style="left:5px; top:120px; width:100px; height:20px; text-align:center; ">교육의뢰처</caption>
- <input id="input7" ref="/root/main/eduactinfo/festivcnstplce" style="left:108px; top:120px; width:122px; height:19px; "/>
- <input id="input8" ref="/root/main/eduactinfo/festivplce" style="left:335px; top:120px; width:122px; height:19px; "/>
- <caption id="caption11" class="cell_1" style="left:232px; top:120px; width:100px; height:20px; text-align:center; ">교육장소</caption>
- <line id="line7" class="line_2" style="x1:5px; y1:94px; x2:455px; y2:94px; "/>
- <line id="line4" class="line_2" style="x1:5px; y1:48px; x2:455px; y2:48px; "/>
- <line id="line5" class="line_2" style="x1:5px; y1:71px; x2:455px; y2:71px; "/>
- <line id="line6" class="line_2" style="x1:5px; y1:117px; x2:455px; y2:117px; "/>
- <line id="line8" class="line_2" style="x1:5px; y1:141px; x2:455px; y2:141px; "/>
- <input id="ipt_edudd" ref="/root/main/eduactinfo/festivdd" class="input" inputtype="date" style="left:108px; top:27px; width:122px; height:19px; "/>
- <select1 id="cmb_detl" ref="/root/main/eduactinfo/festivdetlcd" appearance="minimal" style="left:108px; top:50px; width:122px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/edudetlcd/M0550">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var festivdetlcd = model.getValue("/root/main/eduactinfo/festivdetlcd");
- if (festivdetlcd == "10") {
- ipt_etcedudetl.disabled = false;
- } else {
- ipt_etcedudetl.disabled = true;
- }
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_part" ref="/root/main/eduactinfo/festivcd" appearance="minimal" style="left:335px; top:27px; width:122px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/edupartcd/M0548">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_cnstrid" ref="/root/main/eduactinfo/festivprcsrid" appearance="minimal" style="left:108px; top:97px; width:122px; 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:143px; width:100px; height:20px; text-align:center; ">비고</caption>
- <textarea id="textarea1" ref="/root/main/eduactinfo/festivremark" scroll="autovscroll" style="left:108px; top:143px; width:349px; height:20px; "/>
- <button id="button4" class="btn5_letter2" style="left:370px; top:168px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var festivdd = model.getValue("/root/main/eduactinfo/festivdd");
- var festivcd = model.getValue("/root/main/eduactinfo/festivcd");
- var festivdetlcd = model.getValue("/root/main/eduactinfo/festivdetlcd");
- var attntrcnts = model.getValue("/root/main/eduactinfo/attntrcnts");
- var festivprcsrid = model.getValue("/root/main/eduactinfo/festivprcsrid");
- var festivtitl = model.getValue("/root/main/eduactinfo/festivtitl");
-
- model.removenode("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.copyNode("/root/send/savedata","/root/main/eduactinfo");
- model.makeValue("/root/send/savedata/festivflag", "02");
-
- if (isNull (festivdd)) {
- messageBox("교육일자는 필수입력입니다.", "I");
- model.setFocus("ipt_edudd");
- return;
- }
- if (isNull (festivcd)) {
- messageBox("교육분야는 필수입력입니다.", "I");
- model.setFocus("cmb_part");
- return;
- }
- if (isNull (festivdetlcd)) {
- messageBox("세부내용은 필수입력입니다.", "I");
- model.setFocus("cmb_detl");
- return;
- }
- if (isNull (attntrcnts)) {
- messageBox("참석인원수는 필수입력입니다.", "I");
- model.setFocus("ipt_attrcnts");
- return;
- }
- if (isNull (festivprcsrid)) {
- messageBox("교육담당은 필수입력입니다.", "I");
- model.setFocus("cmb_cnstrid");
- return;
- }
- if (isNull (festivtitl)) {
- messageBox("제목은 필수입력입니다.", "I");
- model.setFocus("ipt_titl");
- return;
- }
- if (submit("TXMNC00301") == true ) {
- model.resetInstanceNode("/root/main/eduactinfo");
- group1.visible = false;
- btn_req.dispatch("DOMActivate");
- } else {
- messageBox("저장이 실패했습니다.", "I");
- }
- ]]>
- </script>
- </button>
- <caption id="caption16" class="cell_1" style="left:232px; top:50px; width:100px; height:20px; text-align:center; ">기타 세부내용</caption>
- <line id="line9" class="line_2" style="x1:5px; y1:164px; x2:455px; y2:164px; "/>
- <input id="ipt_etcedudetl" ref="/root/main/eduactinfo/etcfestivdetlnm" style="left:335px; top:50px; width:122px; height:19px; "/>
- </group>
- <button id="button2" class="btn2_letter3" navindex="8" style="left:1041px; top:69px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/main/eduactinfo/status", "I");
- model.refresh();
- group1.visible = true;
-
- ]]>
- </script>
- </button>
- <input id="ipt_todd" 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>
- <input id="ipt_fromdd" 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>
- <caption id="caption13" class="search_name" style="left:340px; top:32px; width:91px; height:17px; ">교육분야 :</caption>
- <caption id="caption14" class="search_name" style="left:570px; top:32px; width:86px; height:17px; ">세부분야 :</caption>
- <caption id="caption15" class="search_name" style="left:780px; top:32px; width:86px; height:17px; ">교육담당 :</caption>
- <select1 id="cmb_edupart" ref="/root/main/cond/festivcd" appearance="minimal" style="left:430px; top:32px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/edupartcd2/M0548">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_edudetl" ref="/root/main/cond/festivdetlcd" appearance="minimal" style="left:660px; top:32px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/edudetlcd2/M0550">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_educnstrid" ref="/root/main/cond/festivprcsrid" appearance="minimal" style="left:870px; 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:1095px; top:69px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var idx = grd_edulist.row;
- if(idx <=0) {
- messageBox("삭제할 모임이 선택되지 않았습니다.", "I");
- return;
- }
-
- model.makeValue("/root/send/savedata/status", "D");
- model.makeValue("/root/send/savedata/festivflag", "02");
- 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>
|