SMMNC00700_행사관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>자조모임관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <fromdd/>
  12. <todd/>
  13. <startdt/>
  14. <festivcd/>
  15. <festivflag/>
  16. </cond>
  17. <grupinfo>
  18. <festivdd/>
  19. <enddd/>
  20. <festivcd/>
  21. <etcfestivdetlnm/>
  22. <festivplce/>
  23. <attntrcnts/>
  24. <festivremark/>
  25. <rgstdd/>
  26. <rgstno/>
  27. <festivflag/>
  28. <status/>
  29. <festivflag/>
  30. </grupinfo>
  31. <festivinfo>
  32. <festivlist/>
  33. </festivinfo>
  34. </main>
  35. <send>
  36. <reqdata/>
  37. <savedata/>
  38. </send>
  39. <hidden/>
  40. <init>
  41. <festivcd/>
  42. <festivcd2/>
  43. </init>
  44. </root>
  45. </instance>
  46. <script type="javascript">
  47. <![CDATA[
  48. ]]>
  49. </script>
  50. <script type="javascript" ev:event="xforms-ready">
  51. <![CDATA[
  52. //현재 날짜를 받아옴
  53. model.setValue("/root/main/cond/fromdd" , getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat());
  54. model.setValue("/root/main/cond/todd" , getCurrentDate());
  55. zbcfGetCodeList(new Array("M0554"), // 교육분야
  56. new Array("/root/init/festivcd"))
  57. model.removenode("/root/main/festivinfo/festivlist");
  58. /*
  59. //알코올의존치료센터 소속 사용자정보조회
  60. model.removeNodeset("/root/send");
  61. //model.makeValue("/root/send/wardcd", '2032100000'); //2032100000 : 알코올의존치료센터, 4050411000 : 알코올의존치료팀
  62. model.makeValue("/root/send/wardcd", getUserInfo("dutplcecd"));
  63. submit("TRMNC00101");
  64. */
  65. model.copyNode("/root/init/festivcd2" , "/root/init/festivcd");
  66. addComboInstance("/root/init/festivcd2" , "cdid^cdnm" , "-^전체" , "M0554"); //의사콤보 전체항목 추가
  67. model.setValue("/root/main/cond/festivcd" , "-");
  68. btn_req.dispatch("DOMActivate");
  69. ]]>
  70. </script>
  71. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  72. <submission id="TRMNC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/eduinfo"/>
  73. <submission id="TXMNC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/eduinfo"/>
  74. <submission id="TRMNC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/userinfo"/>
  75. </model>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  79. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  81. </xhtml:head>
  82. <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; ">
  83. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:140px; height:14px; ">행사관리</caption>
  84. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:21px; width:1193px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
  85. <button id="btn_req" class="btn1_letter2" navindex="5" style="left:1122px; top:30px; width:56px; height:22px; ">
  86. <caption>조회</caption>
  87. <script type="javascript" ev:event="DOMActivate">
  88. <![CDATA[
  89. model.removenode("/root/main/festivinfo")
  90. model.setValue("/root/main/cond/festivflag", "03");
  91. if (submit("TRMNC00301") == "true") {
  92. }
  93. ]]>
  94. </script>
  95. </button>
  96. <caption id="caption25" class="tit_2" style="left:0px; top:72px; width:147px; height:14px; ">행사일정조회</caption>
  97. <line id="line1" class="line_1" style="x1:0px; y1:90px; x2:1193px; y2:90px; "/>
  98. <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; ">
  99. <col ref="festivdd" format="yyyy-mm-dd" style="text-align:center; "/>
  100. <col ref="enddd" format="yyyy-mm-dd" style="text-align:center; "/>
  101. <col ref="festivcd" visibility="hidden"/>
  102. <col ref="festivnm"/>
  103. <col ref="festivplce"/>
  104. <col ref="attntrcnts" style="text-align:center; "/>
  105. <col ref="festivremark"/>
  106. <col ref="rgstdd" visibility="hidden"/>
  107. <col ref="rgstno" visibility="hidden"/>
  108. <script type="javascript" ev:event="ondblclick">
  109. <![CDATA[
  110. model.resetInstanceNode("/root/main/grupinfo");
  111. var currow = grd_gruplist.row;
  112. var festivdd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivdd")
  113. var enddd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/enddd")
  114. var festivcd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivcd")
  115. var etcfestivdetlnm = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/etcfestivdetlnm")
  116. var festivplce = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivplce")
  117. var attntrcnts = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/attntrcnts")
  118. var festivremark = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/festivremark")
  119. var rgstno = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/rgstno")
  120. var rgstdd = model.getValue("/root/main/festivinfo/festivlist[" + currow + "]/rgstdd")
  121. if (festivcd =="06") {
  122. ipt_etcfestiv.disabled= false;
  123. } else {
  124. ipt_etcfestiv.disabled= true;
  125. }
  126. model.setValue("/root/main/grupinfo/festivdd" , festivdd);
  127. model.setValue("/root/main/grupinfo/enddd" , enddd);
  128. model.setValue("/root/main/grupinfo/festivcd" , festivcd);
  129. model.setValue("/root/main/grupinfo/etcfestivdetlnm" , etcfestivdetlnm);
  130. model.setValue("/root/main/grupinfo/festivplce" , festivplce);
  131. model.setValue("/root/main/grupinfo/attntrcnts" , attntrcnts);
  132. model.setValue("/root/main/grupinfo/festivremark" , festivremark);
  133. model.setValue("/root/main/grupinfo/rgstno" , rgstno);
  134. model.setValue("/root/main/grupinfo/rgstdd" , rgstdd);
  135. model.setValue("/root/main/grupinfo/status" , "U");
  136. model.refresh();
  137. group1.visible = true;
  138. ]]>
  139. </script>
  140. </datagrid>
  141. <line id="line3" style="x1:1110px; y1:25px; x2:1110px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
  142. <button id="button1" class="btn2_letter2" navindex="8" style="left:1151px; top:70px; width:42px; height:19px; ">
  143. <caption>엑셀</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. ]]>
  147. </script>
  148. </button>
  149. <group id="group1" visibility="hidden" style="left:230px; top:195px; width:390px; height:255px; border-color:#c0c0c0; border-width:1px; border-style:solid; ">
  150. <caption id="caption8" class="tit_2" style="left:7px; top:6px; width:120px; height:14px; ">행사관리</caption>
  151. <button id="button3" class="btn2_letter2" style="left:340px; top:231px; width:42px; height:19px; ">
  152. <caption>취소</caption>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. model.resetInstanceNode("/root/main/grupinfo");
  156. group1.visible = false;
  157. ]]>
  158. </script>
  159. </button>
  160. <caption id="caption5" class="cell_1" style="left:4px; top:27px; width:72px; height:20px; text-align:center; ">시작일자</caption>
  161. <caption id="caption6" class="cell_1" style="left:197px; top:27px; width:72px; height:20px; text-align:center; ">종료일자</caption>
  162. <line id="line2" class="line_1" style="x1:3px; y1:21px; x2:385px; y2:21px; "/>
  163. <caption id="caption9" class="cell_1" style="left:4px; top:51px; width:72px; height:20px; text-align:center; ">행사명</caption>
  164. <caption id="caption11" class="cell_1" style="left:197px; top:52px; width:72px; height:20px; text-align:center; ">기타행사명</caption>
  165. <line id="line7" class="line_2" style="x1:3px; y1:96px; x2:385px; y2:96px; "/>
  166. <line id="line4" class="line_2" style="x1:3px; y1:49px; x2:385px; y2:49px; "/>
  167. <line id="line5" class="line_2" style="x1:3px; y1:72px; x2:385px; y2:72px; "/>
  168. <select1 id="cmb_festiv" ref="/root/main/grupinfo/festivcd" appearance="minimal" style="left:79px; top:52px; width:114px; height:19px; ">
  169. <choices>
  170. <itemset nodeset="/root/init/festivcd/M0554">
  171. <label ref="cdnm"/>
  172. <value ref="cdid"/>
  173. </itemset>
  174. </choices>
  175. <script type="javascript" ev:event="xforms-value-changed">
  176. <![CDATA[
  177. var festivcd = model.getValue("/root/main/grupinfo/festivcd");
  178. if (festivcd =="06") {
  179. ipt_etcfestiv.disabled= false;
  180. } else {
  181. ipt_etcfestiv.disabled= true;
  182. }
  183. ]]>
  184. </script>
  185. </select1>
  186. <caption id="caption12" class="cell_1" style="left:4px; top:99px; width:72px; height:130px; text-align:center; ">비고</caption>
  187. <textarea id="textarea1" ref="/root/main/grupinfo/festivremark" scroll="autovscroll" style="left:79px; top:99px; width:305px; height:130px; "/>
  188. <button id="button4" class="btn5_letter2" style="left:295px; top:231px; width:42px; height:19px; ">
  189. <caption>저장</caption>
  190. <script type="javascript" ev:event="DOMActivate">
  191. <![CDATA[
  192. //model.resetInstanceNode("/root/main/grupinfo");
  193. //model.refresh();
  194. var festivdd = model.getValue("/root/main/grupinfo/festivdd");
  195. var enddd = model.getValue("/root/main/grupinfo/enddd");
  196. var festivcd = model.getValue("/root/main/grupinfo/festivcd");
  197. var festivplce = model.getValue("/root/main/grupinfo/festivplce");
  198. var attntrcnts = model.getValue("/root/main/grupinfo/attntrcnts");
  199. var festivremark = model.getValue("/root/main/grupinfo/festivremark");
  200. var etcfestivdetlnm= model.getValue("/root/main/grupinfo/etcfestivdetlnm");
  201. var status = model.getValue("/root/main/grupinfo/status");
  202. model.removenode("/root/send/savedata");
  203. model.makeNode("/root/send/savedata");
  204. model.copyNode("/root/send/savedata","/root/main/grupinfo");
  205. model.makeValue("/root/send/savedata/festivflag", "03");
  206. if (isNull(festivdd)) {
  207. messageBox("시작일자는 필수 입력입니다.", "I");
  208. model.setFocus("ipt_startdd");
  209. return;
  210. }
  211. if (isNull(enddd)) {
  212. messageBox("종료일자는 필수입력입니다.", "I");
  213. model.setFocus("ipt_enddd");
  214. return;
  215. }
  216. if (isNull(festivcd)) {
  217. messageBox("행사명은 필수 입력입니다.", "I");
  218. model.setFocus("cmb_festiv");
  219. return;
  220. }
  221. if (isNull(festivplce)) {
  222. messageBox("행사장소는 필수입력입니다.", "I");
  223. model.setFocus("ipt_plce");
  224. return;
  225. }
  226. if (isNull(attntrcnts)) {
  227. messageBox("참석인원수는 필수입력입니다.", "I");
  228. model.setFocus("ipt_attntrcnts");
  229. return;
  230. }
  231. if (submit("TXMNC00301") == true ) {
  232. model.resetInstanceNode("/root/main/grupinfo");
  233. group1.visible = false;
  234. } else {
  235. messageBox("저장이 실패했습니다.", "I");
  236. }
  237. btn_req.dispatch("DOMActivate");
  238. ]]>
  239. </script>
  240. </button>
  241. <input id="ipt_etcfestiv" ref="/root/main/grupinfo/etcfestivdetlnm" disabled="true" style="left:272px; top:52px; width:112px; height:19px; "/>
  242. <caption id="caption3" class="cell_1" style="left:4px; top:74px; width:72px; height:20px; text-align:center; ">장소</caption>
  243. <input id="ipt_plce" ref="/root/main/grupinfo/festivplce" style="left:79px; top:74px; width:114px; height:19px; "/>
  244. <caption id="caption4" class="cell_1" style="left:197px; top:74px; width:72px; height:20px; text-align:center; ">참석인원수</caption>
  245. <input id="ipt_attntrcnts" ref="/root/main/grupinfo/attntrcnts" maxlength="3" format="999" style="left:272px; top:74px; width:112px; height:19px; "/>
  246. <input id="ipt_startdd" ref="/root/main/grupinfo/festivdd" inputtype="date" style="left:79px; top:27px; width:114px; height:19px; "/>
  247. <input id="ipt_enddd" ref="/root/main/grupinfo/enddd" inputtype="date" style="left:272px; top:27px; width:112px; height:19px; "/>
  248. </group>
  249. <button id="button2" class="btn2_letter3" navindex="8" style="left:1039px; top:70px; width:53px; height:19px; ">
  250. <caption>행추가</caption>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. model.makeValue("/root/main/grupinfo/status", "I");
  254. group1.visible = true;
  255. ]]>
  256. </script>
  257. </button>
  258. <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; ">
  259. <script type="javascript" ev:event="xforms-value-changed">
  260. <![CDATA[
  261. ]]>
  262. </script>
  263. </input>
  264. <caption id="caption2" class="search_name" style="left:20px; top:32px; width:80px; height:17px; ">조회일 :</caption>
  265. <caption id="caption14" class="search_name" style="left:355px; top:32px; width:80px; height:17px; ">모임명 :</caption>
  266. <input id="input1" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:100px; top:31px; width:105px; height:19px; ">
  267. <script type="javascript" ev:event="xforms-value-changed">
  268. <![CDATA[
  269. ]]>
  270. </script>
  271. </input>
  272. <caption id="cap_from" style="left:209px; top:31px; width:15px; height:19px; ">~</caption>
  273. <select1 id="combo1" ref="/root/main/cond/festivcd" appearance="minimal" style="left:435px; top:31px; width:160px; height:19px; ">
  274. <choices>
  275. <itemset nodeset="/root/init/festivcd2/M0554">
  276. <label ref="cdnm"/>
  277. <value ref="cdid"/>
  278. </itemset>
  279. </choices>
  280. </select1>
  281. <button id="button5" class="btn2_letter3" navindex="8" style="left:1095px; top:70px; width:53px; height:19px; ">
  282. <caption>행삭제</caption>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. var idx = grd_gruplist.row;
  286. if(idx <=0) {
  287. messageBox("삭제할 모임이 선택되지 않았습니다.", "I");
  288. return;
  289. }
  290. model.removenode("/root/send/savedata");
  291. model.makeValue("/root/send/savedata/status", "D");
  292. model.makeValue("/root/send/savedata/festivflag", "03");
  293. model.makeValue("/root/send/savedata/rgstdd", model.getValue("/root/main/festivinfo/festivlist["+idx+"]/rgstdd"));
  294. model.makeValue("/root/send/savedata/rgstno", model.getValue("/root/main/festivinfo/festivlist["+idx+"]/rgstno"));
  295. if (submit("TXMNC00301") == true ) {
  296. model.removenode("/root/main/festivinfo");
  297. submit("TRMNC00301");
  298. model.refresh();
  299. } else {
  300. messageBox("저장이 실패했습니다.", "I");
  301. }
  302. ]]>
  303. </script>
  304. </button>
  305. </xhtml:body>
  306. </xhtml:html>