SMMNC00500_자조모임관리.xrw 18 KB

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