SMMNC00300_집단교육활동.xrw 19 KB

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