SMAAA00700_포상수혜현황조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  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. <actfromdd/>
  12. <acttodd/>
  13. <prizbenfflag/>
  14. <flagcd/>
  15. <actdeptcd/>
  16. <voluntractdwcd/>
  17. <voluntractteamcd/>
  18. </cond>
  19. <prizbenfprescond>
  20. <prizbenfprescondlist>
  21. <prizbenfflag/>
  22. <flagcd/>
  23. <prizbenfdd/>
  24. <voluntrnm/>
  25. <actdeptcd/>
  26. <actdeptdetlnm/>
  27. <voluntractdwcd/>
  28. <voluntractteamcd/>
  29. <prizbenfrem/>
  30. <voluntrid/>
  31. <prizrgstseqno/>
  32. <actrgstseqno/>
  33. </prizbenfprescondlist>
  34. </prizbenfprescond>
  35. </main>
  36. <init>
  37. <A0514list/>
  38. <A0503list/>
  39. <A0359list/>
  40. <A0360list/>
  41. <A0363list/>
  42. <A0364list/>
  43. <all>
  44. <cdid>%</cdid>
  45. <cdnm>전체</cdnm>
  46. </all>
  47. </init>
  48. <send>
  49. <reqdata/>
  50. <savedata/>
  51. </send>
  52. </root>
  53. </instance>
  54. <script type="javascript" ev:event="xforms-ready">
  55. <![CDATA[
  56. fInit();
  57. ]]>
  58. </script>
  59. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  60. <submission id="TRAAA00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/prizbenfprescond"/>
  61. </model>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript">
  67. <![CDATA[
  68. //화면 오픈시 초기화
  69. function fInit() {
  70. model.removeNodeset("/root/main/prizbenfprescond/prizbenfprescondlist");
  71. model.resetInstanceNode("/root/main/cond");
  72. var Ndate = getNewDate();
  73. var Idate = Ndate.getDateFormat("YYYYMM")+ "01";
  74. model.setValue("/root/main/cond/actfromdd", Idate);// 조회구간에 매달 첫째날짜(디폴트)
  75. model.setValue("/root/main/cond/acttodd", getCurrentDate());// 조회구간에 현재날짜(디폴트)
  76. // 공통코드를 조회한다.
  77. addComboItem("rdo_prizbenfflag", "전체", "%", "above");
  78. addComboItem("cmb_actdeptcd", "전체", "%", "above");
  79. addComboItem("cmb_voluntractdwcd", "전체", "%", "above");
  80. addComboItem("cmb_voluntractteamcd", "전체", "%", "above");
  81. zbcfGetCodeList( new Array("A0514","A0503", "A0359", "A0360"), new Array("/root/init/A0514list","/root/init/A0503list", "/root/init/A0359list", "/root/init/A0360list") );
  82. zbcfGetCodeList( new Array("A0363","A0364"), new Array("/root/init/A0363list","/root/init/A0364list") );
  83. //조건부 콤보에 전체를 추가한다.
  84. copyNodesetType("/root/init/A0363list/A0363","/root/init/all","before",model,model);
  85. copyNodesetType("/root/init/A0364list/A0364","/root/init/all","before",model,model);
  86. //초기값셋팅
  87. model.setValue("/root/main/cond/actdeptcd", "%");
  88. model.setValue("/root/main/cond/voluntractdwcd", "%");
  89. model.setValue("/root/main/cond/voluntractteamcd", "%");
  90. model.setValue("/root/main/cond/prizbenfflag", "%");
  91. cmb_flagcd.disabled = true;
  92. model.refresh();
  93. }
  94. //조회버튼 클릭시
  95. function fPrizBenfPresCondList() {
  96. if (model.getValue("/root/main/cond/actfromdd") > model.getValue("/root/main/cond/acttodd")) {
  97. messageBox("올바른 조회기간을","C001");
  98. model.setFocus("ipt_actfromdd");
  99. return false;
  100. }
  101. if (model.getValue("/root/main/cond/actfromdd") == "" ) {
  102. messageBox("시작일자는 ","I003");
  103. model.setFocus("ipt_actfromdd");
  104. return false;
  105. }
  106. if (model.getValue("/root/main/cond/actfromdd").length != 8 ) {
  107. messageBox("올바른 시작일자를","C001");
  108. model.setFocus("ipt_actfromdd");
  109. return false;
  110. }
  111. if (model.getValue("/root/main/cond/acttodd") == "" ) {
  112. messageBox("종료일자는 ","I003");
  113. model.setFocus("ipt_acttodd");
  114. return false;
  115. }
  116. if (model.getValue("/root/main/cond/acttodd").length != 8 ) {
  117. messageBox("올바른 종료일자를","C001");
  118. model.setFocus("ipt_acttodd");
  119. return false;
  120. }
  121. model.removeNodeset("/root/send/reqdata");
  122. model.makeNode("/root/send/reqdata");
  123. model.copyNode("/root/send/reqdata", "/root/main/cond");
  124. submit("TRAAA00701");
  125. }
  126. //엑셀저장 버튼 클릭시
  127. function fExcel() {
  128. if (grd_prizbenfprescond.rows <= 1) {
  129. messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  130. return;
  131. }
  132. var fileName = window.fileDialog("save", ",", false, "포상수혜현황조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  133. if (fileName != ""){
  134. grd_prizbenfprescond.saveExcel(fileName, "SheetName", false, false, "", "", false);
  135. }
  136. }//fExcel END
  137. //초기화 버튼 클릭시
  138. function fReset(){
  139. var btn = messageBox("초기화를 ", "Q004");
  140. if (btn == '6') {
  141. model.removeNodeset("/root/main/prizbenfprescond/prizbenfprescondlist");
  142. var Ndate = getNewDate();
  143. var Idate = Ndate.getDateFormat("YYYYMM")+ "01";
  144. ipt_actfromdd.value = Idate; // 조회구간에 매달 첫째날짜(디폴트)
  145. ipt_acttodd.value = getCurrentDate();// 조회구간에 현재날짜(디폴트)
  146. //초기값셋팅
  147. model.setValue("/root/main/cond/actdeptcd", "%");
  148. model.setValue("/root/main/cond/voluntractdwcd", "%");
  149. model.setValue("/root/main/cond/voluntractteamcd", "%");
  150. model.setValue("/root/main/cond/prizbenfflag", "%");
  151. model.setValue("/root/main/cond/actdeptcd","");
  152. cmb_flagcd.disabled = true;
  153. model.refresh();
  154. } else if (btn == '7') {
  155. return;
  156. }
  157. }//fReset END
  158. ]]>
  159. </script>
  160. </xhtml:head>
  161. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  162. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  163. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:181px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">포상/수혜현황조회</caption>
  164. </group>
  165. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  166. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  167. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  168. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  169. <caption>조회</caption>
  170. <script type="javascript" ev:event="DOMActivate">
  171. <![CDATA[
  172. fPrizBenfPresCondList();
  173. ]]>
  174. </script>
  175. </button>
  176. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  177. <caption id="caption3" class="search_name" style="left:13px; top:10px; width:94px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회기간 :</caption>
  178. <caption id="caption5" class="search_no_b" style="left:192px; top:10px; width:12px; height:17px; ">~</caption>
  179. <input id="ipt_acttodd" ref="/root/main/cond/acttodd" class="input_search" inputtype="date" style="left:210px; top:10px; width:85px; height:19px; "/>
  180. <input id="ipt_actfromdd" ref="/root/main/cond/actfromdd" class="input_search" inputtype="date" style="left:102px; top:10px; width:85px; height:19px; "/>
  181. <select1 id="cmb_voluntractteamcd" ref="/root/main/cond/voluntractteamcd" class="combo_search" appearance="minimal" style="left:1019px; top:10px; width:63px; height:19px; ">
  182. <choices>
  183. <itemset nodeset="/root/init/A0360list/A0360">
  184. <label ref="cdnm"/>
  185. <value ref="cdid"/>
  186. </itemset>
  187. </choices>
  188. </select1>
  189. <caption id="caption12" class="search_name" style="left:823px; top:10px; width:132px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">활동요일/시간대 :</caption>
  190. <select1 id="cmb_voluntractdwcd" ref="/root/main/cond/voluntractdwcd" class="combo_search" appearance="minimal" style="left:960px; top:10px; width:55px; height:19px; ">
  191. <choices>
  192. <itemset nodeset="/root/init/A0359list/A0359">
  193. <label ref="cdnm"/>
  194. <value ref="cdid"/>
  195. </itemset>
  196. </choices>
  197. </select1>
  198. <caption id="caption2" class="search_name" style="left:316px; top:10px; width:74px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구분 :</caption>
  199. <select1 id="rdo_prizbenfflag" ref="/root/main/cond/prizbenfflag" overflow="visible" appearance="full" cols="3" style="left:379px; top:11px; width:141px; height:20px; border-style:none; ">
  200. <choices>
  201. <itemset nodeset="/root/init/A0514list/A0514">
  202. <label ref="cdnm"/>
  203. <value ref="cdid"/>
  204. </itemset>
  205. </choices>
  206. <script type="javascript" ev:event="xforms-value-changed">
  207. <![CDATA[
  208. if(model.getValue("/root/main/cond/prizbenfflag") =="%") { //전체선택시
  209. cmb_flagcd.disabled = true;
  210. model.setValue("/root/main/cond/flagcd","");
  211. }
  212. if(model.getValue("/root/main/cond/prizbenfflag") =="1") { //포상선택시
  213. cmb_flagcd.disabled = false;
  214. cmb_flagcd.choices.itemset.attribute("nodeset") = "/root/init/A0363list/A0363";
  215. model.setValue("/root/main/cond/flagcd","%");
  216. }
  217. if(model.getValue("/root/main/cond/prizbenfflag") =="2") { //수혜선택시
  218. cmb_flagcd.disabled = false;
  219. cmb_flagcd.choices.itemset.attribute("nodeset") = "/root/init/A0364list/A0364";
  220. model.setValue("/root/main/cond/flagcd","%");
  221. }
  222. model.refresh();
  223. ]]>
  224. </script>
  225. </select1>
  226. <select1 id="cmb_actdeptcd" ref="/root/main/cond/actdeptcd" class="combo_search" appearance="minimal" style="left:718px; top:10px; width:94px; height:19px; ">
  227. <choices>
  228. <itemset nodeset="/root/init/A0503list/A0503">
  229. <label ref="cdnm"/>
  230. <value ref="cdid"/>
  231. </itemset>
  232. </choices>
  233. </select1>
  234. <caption id="caption4" class="search_name" style="left:629px; top:10px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">활동그룹 :</caption>
  235. <select1 id="cmb_flagcd" ref="/root/main/cond/flagcd" appearance="minimal" style="left:520px; top:10px; width:94px; height:19px; ">
  236. <choices>
  237. <itemset>
  238. <label ref="cdnm"/>
  239. <value ref="cdid"/>
  240. </itemset>
  241. </choices>
  242. </select1>
  243. </group>
  244. <datagrid id="grd_prizbenfprescond" nodeset="/root/main/prizbenfprescond/prizbenfprescondlist" autoresize="true" caption="포상/수혜구분^포상/수혜구분^포상/수혜일자^성명^활동그룹^활동그룹^활동요일^활동시간대^비고^caption1^caption3^caption2" colsep="^" colwidth="75, 124, 100, 100, 104, 140, 76, 100, 228" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:76px; width:1194px; height:665px; ">
  245. <col disabled="true" ref="prizbenfflag" type="combo" style="text-align:center; ">
  246. <choices>
  247. <itemset nodeset="/root/init/A0514list/A0514">
  248. <label ref="cdnm"/>
  249. <value ref="cdid"/>
  250. </itemset>
  251. </choices>
  252. </col>
  253. <col ref="flagcd"/>
  254. <col ref="prizbenfdd" format="yyyy-mm-dd" style="text-align:center; "/>
  255. <col ref="voluntrnm"/>
  256. <col disabled="true" ref="actdeptcd" type="combo">
  257. <choices>
  258. <itemset nodeset="/root/init/A0503list/A0503">
  259. <label ref="cdnm"/>
  260. <value ref="cdid"/>
  261. </itemset>
  262. </choices>
  263. </col>
  264. <col disabled="true" ref="actdeptdetlnm"/>
  265. <col disabled="true" ref="voluntractdwcd" type="combo" style="text-align:center; ">
  266. <choices>
  267. <itemset nodeset="/root/init/A0359list/A0359">
  268. <label ref="cdnm"/>
  269. <value ref="cdid"/>
  270. </itemset>
  271. </choices>
  272. </col>
  273. <col disabled="true" ref="voluntractteamcd" type="combo" style="text-align:center; ">
  274. <choices>
  275. <itemset nodeset="/root/init/A0360list/A0360">
  276. <label ref="cdnm"/>
  277. <value ref="cdid"/>
  278. </itemset>
  279. </choices>
  280. </col>
  281. <col ref="prizbenfrem" style="left:885px; top:23px; width:246px; height:23px; "/>
  282. </datagrid>
  283. <button id="button11" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1118px; top:50px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  284. <caption>엑셀저장</caption>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. fExcel();
  288. ]]>
  289. </script>
  290. </button>
  291. </group>
  292. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  293. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  294. <button id="btn_delete" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1118px; top:2px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  295. <caption>초기화</caption>
  296. <script type="javascript" ev:event="DOMActivate">
  297. <![CDATA[
  298. fReset();
  299. ]]>
  300. </script>
  301. </button>
  302. </group>
  303. <caption id="caption1" class="tit_2" style="left:5px; top:71px; width:156px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">포상/수혜현황 리스트</caption>
  304. <line id="line1" class="line_1" style="x1:0px; y1:86px; x2:1194px; y2:86px; "/>
  305. </xhtml:body>
  306. </xhtml:html>