SMAAA00500_교육행사현황조회.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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. <actdeptcd/>
  14. <voluntractdwcd/>
  15. <voluntractteamcd/>
  16. <bizflag/>
  17. <flagcd/>
  18. <actdivscd/>
  19. </cond>
  20. <educfestivref>
  21. <educfestivreflist>
  22. <fromdd/>
  23. <bizflag/>
  24. <flagcd/>
  25. <actdeptcd/>
  26. <actdeptdetlnm/>
  27. <voluntractdwcd/>
  28. <voluntractteamcd/>
  29. <educrcogtm/>
  30. <voluntrnm/>
  31. <baptnm/>
  32. <rrgstno/>
  33. <attdabsnflag/>
  34. <educfestivnm/>
  35. <attdrem/>
  36. </educfestivreflist>
  37. </educfestivref>
  38. </main>
  39. <send>
  40. <reqdata/>
  41. <savedata/>
  42. </send>
  43. <init>
  44. <cond>
  45. <A0503list/>
  46. <A0359list/>
  47. <A0360list/>
  48. <A0362list/>
  49. <A0019list/>
  50. <all>
  51. <cdid>%</cdid>
  52. <cdnm>전체</cdnm>
  53. </all>
  54. <A0506list/>
  55. <A0364list/>
  56. <A0513list/>
  57. <A0655list/>
  58. <A0654list/>
  59. </cond>
  60. </init>
  61. </root>
  62. </instance>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. fInit();
  66. ]]>
  67. </script>
  68. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  69. <submission id="TRAAA00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/educfestivref"/>
  70. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  71. </model>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  77. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  78. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  79. </xhtml:head>
  80. <script type="javascript">
  81. <![CDATA[//1. 화명 오픈시 초기화
  82. function fInit() {
  83. model.removeNodeset("/root/main/educfestivref/educfestivreflist");
  84. var CurrentDate = getCurrentDate();
  85. var fromdd = CurrentDate.substr(0,6)+"01";
  86. var sDate = getNewDate(); //달의 마지막날 가져오기
  87. var lastDate = sDate.getFullYear();
  88. lastDate = lastDate.toString() + (( sDate.getMonth() + 1 > 9 ) ? sDate.getMonth() + 1 : "0" + (sDate.getMonth() + 1));
  89. lastDate = lastDate.toString() + sDate.getMonthDay();
  90. model.setValue("/root/main/cond/fromdd", fromdd);
  91. model.setValue("/root/main/cond/todd", lastDate);
  92. //공통코드를 조회한다.
  93. addComboItem("cmb_actdeptcd", "전체", "%", "above");
  94. addComboItem("cmb_voluntractdwcd", "전체", "%", "above");
  95. addComboItem("cmb_voluntractteamcd", "전체", "%", "above");
  96. addComboItem("cmb_actdivscd", "전체", "", "above");
  97. addComboItem("rdo_bizflag", "전체", "", "above");
  98. zbcfGetCodeList(new Array("A0503","A0359", "A0360", "A0362","A0506","A0364","A0513","A0655","A0654"), new Array("/root/init/cond/A0503list", "/root/init/cond/A0359list", "/root/init/cond/A0360list", "/root/init/cond/A0362list", "/root/init/cond/A0506list", "/root/init/cond/A0364list", "/root/init/cond/A0513list", "/root/init/cond/A0655list","/root/init/cond/A0654list"), true);//input박스는 한개 instance만 교체
  99. //유형코드 조회(Cache 방식)
  100. zbcfGetKindCodeList(
  101. new Array("A0019"), //업무규칙
  102. new Array("A0364"), //코드군
  103. new Array("/root/init/cond/A0019list"), //노드
  104. true, //minimum : true TRZBC00105
  105. new Array("dispseq"), //sorting 항목
  106. new Array("asc")
  107. );
  108. //조건부 콤보에 전체를 추가한다.
  109. copyNodesetType("/root/init/cond/A0362list/A0362","/root/init/cond/all","before",model,model);
  110. copyNodesetType("/root/init/cond/A0019list/A0019A0364","/root/init/cond/all","before",model,model);
  111. //초기값을 셋팅
  112. model.setValue("/root/main/cond/actdeptcd","%");
  113. model.setValue("/root/main/cond/voluntractdwcd","%");
  114. model.setValue("/root/main/cond/voluntractteamcd","%");
  115. cmb_flagcd.disabled = true;
  116. model.refresh();
  117. }
  118. function fEducFestivRef() {
  119. // var SMAAA01300_param = getScreenMenuParameter();
  120. if (model.getValue("/root/main/cond/fromdd") > model.getValue("/root/main/cond/todd")) {
  121. messageBox("올바른 교육행사일자를","C001");
  122. model.setFocus("ipt_fromdd");
  123. return false;
  124. }
  125. if (model.getValue("/root/main/cond/fromdd") == "" ) {
  126. messageBox("교육행사일자는 ","I003");
  127. model.setFocus("ipt_fromdd");
  128. return false;
  129. }
  130. if (model.getValue("/root/main/cond/fromdd").length != 8 ) {
  131. messageBox("올바른 교육행사일자 항목을","C001");
  132. model.setFocus("ipt_fromdd");
  133. return false;
  134. }
  135. if (model.getValue("/root/main/cond/todd") == "" ) {
  136. messageBox("교육행사일자는 ","I003");
  137. model.setFocus("ipt_todd");
  138. return false;
  139. }
  140. if (model.getValue("/root/main/cond/todd").length != 8 ) {
  141. messageBox("올바른 교육행사일자 항목을","C001");
  142. model.setFocus("ipt_todd");
  143. return false;
  144. }
  145. model.removeNodeset("/root/send/reqdata");
  146. model.makeNode("/root/send/reqdata");
  147. model.copyNode("/root/send/reqdata", "/root/main/cond");
  148. submit("TRAAA00501");
  149. }
  150. //초기화
  151. function fReset() {
  152. var btn = messageBox("초기화를 ", "Q004");
  153. if (btn == '6') {
  154. model.removeNodeset("/root/main/educfestivref/educfestivreflist");
  155. model.resetInstanceNode("/root/main/cond");
  156. var CurrentDate = getCurrentDate();
  157. var fromdd = CurrentDate.substr(0,6)+"01";
  158. var sDate = getNewDate(); //달의 마지막날 가져오기
  159. var lastDate = sDate.getFullYear();
  160. lastDate = lastDate.toString() + (( sDate.getMonth() + 1 > 9 ) ? sDate.getMonth() + 1 : "0" + (sDate.getMonth() + 1));
  161. lastDate = lastDate.toString() + sDate.getMonthDay();
  162. model.setValue("/root/main/cond/fromdd", fromdd);
  163. model.setValue("/root/main/cond/todd", lastDate);
  164. model.setValue("/root/main/cond/actdeptcd","%");
  165. model.setValue("/root/main/cond/voluntractdwcd","%");
  166. model.setValue("/root/main/cond/voluntractteamcd","%");
  167. model.setValue("/root/main/cond/bizflag","%");
  168. cmb_flagcd.disabled = true;
  169. model.refresh();
  170. } else if (btn == '7') {
  171. return;
  172. }
  173. }//fReset END
  174. //엑셀저장 버튼 클릭시
  175. function fExcel1() {
  176. if (grd_educfestivref.rows <= 1) {
  177. messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  178. return;
  179. }
  180. var fileName = window.fileDialog("save", ",", false, "교육행사현황조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  181. if (fileName != ""){
  182. grd_educfestivref.saveExcel(fileName, "SheetName", false, false, "", "", false);
  183. }
  184. }//fExcel END
  185. ]]>
  186. </script>
  187. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  188. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  189. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:181px; height:14px; ">교육행사현황조회</caption>
  190. </group>
  191. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  192. <button id="button2" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1116px; top:87px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  193. <caption>엑셀저장</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. fExcel1();
  197. ]]>
  198. </script>
  199. </button>
  200. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:65px; vertical-align:top; ">
  201. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; font-family:돋움체; "/>
  202. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; font-family:돋움체; ">
  203. <caption>조회</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. fEducFestivRef();
  207. ]]>
  208. </script>
  209. </button>
  210. <line id="line13" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:32px; font-family:돋움체; "/>
  211. <caption id="caption3" class="search_name" style="left:9px; top:10px; width:112px; height:17px; font-family:돋움체; ">교육행사일자:</caption>
  212. <caption id="caption5" class="search_no_b" style="left:211px; top:10px; width:24px; height:17px; font-family:돋움체; ">~</caption>
  213. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" inputtype="date" style="left:226px; top:10px; width:89px; height:19px; font-family:돋움체; "/>
  214. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" inputtype="date" style="left:120px; top:10px; width:88px; height:19px; font-family:돋움체; "/>
  215. <select1 id="cmb_voluntractteamcd" ref="/root/main/cond/voluntractteamcd" class="combo_search" appearance="minimal" style="left:872px; top:10px; width:55px; height:19px; font-family:돋움체; ">
  216. <choices>
  217. <itemset nodeset="/root/init/cond/A0360list/A0360">
  218. <label ref="cdnm"/>
  219. <value ref="cdid"/>
  220. </itemset>
  221. </choices>
  222. </select1>
  223. <caption id="caption12" class="search_name" style="left:684px; top:10px; width:132px; height:17px; font-family:돋움체; ">활동요일/시간대:</caption>
  224. <select1 id="cmb_voluntractdwcd" ref="/root/main/cond/voluntractdwcd" class="combo_search" appearance="minimal" style="left:816px; top:10px; width:50px; height:19px; font-family:돋움체; ">
  225. <choices>
  226. <itemset nodeset="/root/init/cond/A0359list/A0359">
  227. <label ref="cdnm"/>
  228. <value ref="cdid"/>
  229. </itemset>
  230. </choices>
  231. </select1>
  232. <caption id="caption14" class="search_name" style="left:10px; top:35px; width:113px; height:17px; font-family:돋움체; ">구 분 :</caption>
  233. <caption id="caption2" class="search_name" style="left:321px; top:10px; width:117px; height:17px; font-family:돋움체; ">소속분야/센터:</caption>
  234. <select1 id="cmb_actdeptcd" ref="/root/main/cond/actdeptcd" class="combo_search" disabled="false" appearance="minimal" style="left:530px; top:10px; width:145px; height:19px; font-family:돋움체; ">
  235. <choices>
  236. <itemset nodeset="/root/init/cond/A0503list/A0503">
  237. <label ref="cdnm"/>
  238. <value ref="cdid"/>
  239. </itemset>
  240. </choices>
  241. </select1>
  242. <select1 id="rdo_bizflag" ref="/root/main/cond/bizflag" appearance="full" cols="4" overflow="visible" style="left:120px; top:35px; width:235px; height:20px; font-family:돋움체; border-style:none; ">
  243. <choices>
  244. <itemset nodeset="/root/init/cond/A0513list/A0513">
  245. <label ref="cdnm"/>
  246. <value ref="cdid"/>
  247. </itemset>
  248. </choices>
  249. <script type="javascript" ev:event="xforms-value-changed">
  250. <![CDATA[
  251. if (model.getValue("/root/main/cond/bizflag") == "%"){//전체선택시
  252. cmb_flagcd.disabled = true;
  253. model.setValue("/root/main/cond/flagcd","");
  254. }
  255. if (model.getValue("/root/main/cond/bizflag") == "1"){//회의
  256. cmb_flagcd.disabled = false;
  257. cmb_flagcd.choices.itemset.attribute("nodeset") ="/root/init/cond/A0655list/A0655";
  258. }
  259. if (model.getValue("/root/main/cond/bizflag") == "2"){//교육행사선택시
  260. cmb_flagcd.disabled = false;
  261. cmb_flagcd.choices.itemset.attribute("nodeset") = "/root/init/cond/A0362list/A0362";
  262. }
  263. if (model.getValue("/root/main/cond/bizflag") == "3"){//단체수혜선택시
  264. cmb_flagcd.disabled = false;
  265. cmb_flagcd.choices.itemset.attribute("nodeset") = "/root/init/cond/A0364list/A0364";
  266. }
  267. cmb_flagcd.refresh();
  268. ]]>
  269. </script>
  270. </select1>
  271. <select1 id="cmb_flagcd" ref="/root/main/cond/flagcd" appearance="minimal" style="left:360px; top:35px; width:98px; height:19px; font-family:돋움체; ">
  272. <choices>
  273. <itemset>
  274. <label ref="cdnm"/>
  275. <value ref="cdid"/>
  276. </itemset>
  277. </choices>
  278. </select1>
  279. <select1 id="cmb_actdivscd" ref="/root/main/cond/actdivscd" class="combo_search" appearance="minimal" style="left:438px; top:10px; width:90px; height:19px; font-family:돋움체; ">
  280. <choices>
  281. <itemset nodeset="/root/init/cond/A0654list/A0654">
  282. <label ref="cdnm"/>
  283. <value ref="cdid"/>
  284. </itemset>
  285. </choices>
  286. </select1>
  287. </group>
  288. <datagrid id="grd_educfestivref" nodeset="/root/main/educfestivref/educfestivreflist" autoresize="true" caption="교육행사일^교육행사구분^교육행사구분^소속분야^소속센터^소속센터^활동요일^활동시간대^교육시간^성명^세례명^주민번호^출결구분^교육행사명^비고" colsep="^" colwidth="80, 70, 89, 70, 120, 80, 55, 70, 60, 81, 0, 105, 60, 175, 173" dataheight="25" explorerbar="sort" frozencols="12" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:113px; width:1194px; height:630px; ">
  289. <col ref="fromdd" format="9999-99-99" style="left:20px; top:23px; width:100px; height:28px; text-align:center; "/>
  290. <col disabled="true" ref="bizflag" type="combo" style="text-align:center; ">
  291. <choices>
  292. <itemset nodeset="/root/init/cond/A0513list/A0513[cdid!='']">
  293. <label ref="cdnm"/>
  294. <value ref="cdid"/>
  295. </itemset>
  296. </choices>
  297. </col>
  298. <col disabled="true" ref="flagcd" style="text-align:center; "/>
  299. <col type="combo">
  300. <choices>
  301. <itemset nodeset="/root/init/cond/A0654list/A0654">
  302. <label ref="cdnm"/>
  303. <value ref="cdid"/>
  304. </itemset>
  305. </choices>
  306. </col>
  307. <col disabled="true" ref="actdeptcd" type="combo" style="text-align:center; ">
  308. <choices>
  309. <itemset nodeset="/root/init/cond/A0503list/A0503">
  310. <label ref="cdnm"/>
  311. <value ref="cdid"/>
  312. </itemset>
  313. </choices>
  314. </col>
  315. <col disabled="true" ref="actdeptdetlnm" style="text-align:center; "/>
  316. <col disabled="true" ref="voluntractdwcd" type="combo" style="text-align:center; ">
  317. <choices>
  318. <itemset nodeset="/root/init/cond/A0359list/A0359">
  319. <label ref="cdnm"/>
  320. <value ref="cdid"/>
  321. </itemset>
  322. </choices>
  323. </col>
  324. <col disabled="true" ref="voluntractteamcd" type="combo" style="text-align:center; ">
  325. <choices>
  326. <itemset nodeset="/root/init/cond/A0360list/A0360">
  327. <label ref="cdnm"/>
  328. <value ref="cdid"/>
  329. </itemset>
  330. </choices>
  331. </col>
  332. <col ref="educrcogtm" style="text-align:center; "/>
  333. <col ref="voluntrnm" style="text-align:center; "/>
  334. <col ref="baptnm" visibility="hidden" style="text-align:center; "/>
  335. <col ref="rrgstno" style="text-align:center; "/>
  336. <col disabled="true" ref="attdabsnflag" type="combo" style="text-align:center; ">
  337. <choices>
  338. <itemset nodeset="/root/init/cond/A0506list/A0506">
  339. <label ref="cdnm"/>
  340. <value ref="cdid"/>
  341. </itemset>
  342. </choices>
  343. </col>
  344. <col ref="educfestivnm"/>
  345. <col ref="attdrem"/>
  346. </datagrid>
  347. </group>
  348. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  349. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  350. <button id="btn_save" class="btn4_letter3" style="left:1122px; top:3px; width:68px; height:22px; ">
  351. <caption>초기화</caption>
  352. <script type="javascript" ev:event="DOMActivate">
  353. <![CDATA[
  354. fReset();
  355. ]]>
  356. </script>
  357. </button>
  358. </group>
  359. <caption id="caption1" class="tit_2" style="left:5px; top:106px; width:126px; height:13px; ">교육행사현황</caption>
  360. <line id="line1" class="line_1" style="x1:0px; y1:121px; x2:1194px; y2:121px; "/>
  361. </xhtml:body>
  362. </xhtml:html>