SMAAA03600_자원봉사자소속팀별통계.xrw 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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. <search>
  11. <fromdd/>
  12. <todd/>
  13. <actdeptcd/>
  14. </search>
  15. <voluntractteam>
  16. <voluntractteaminfo>
  17. <actdeptcd/>
  18. <voluntractdwcd/>
  19. <voluntractteamcd/>
  20. <cnt/>
  21. <attdabsnflag/>
  22. <servtm/>
  23. <total/>
  24. </voluntractteaminfo>
  25. </voluntractteam>
  26. </main>
  27. <init>
  28. <vacatflagcd>
  29. </vacatflagcd>
  30. <actdeptcd/>
  31. <voluntractteamcd/>
  32. </init>
  33. <send>
  34. <reqdata/>
  35. </send>
  36. <hidden>
  37. <init>
  38. <comcd/>
  39. </init>
  40. </hidden>
  41. </root>
  42. </instance>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. //grd_studvoluntrlist.fixedcellcheckbox(0,1) = "true";
  46. fInit();
  47. ]]>
  48. </script>
  49. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  50. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  51. <submission id="TRZBP00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  52. <submission id="TRAAA03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/voluntractteam"/>
  53. </model>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  59. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  60. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  61. </xhtml:head>
  62. <script type="javascript">
  63. <![CDATA[
  64. //초기화
  65. function fInit() {
  66. zbcfGetCodeList(new Array("A0503","A0359","A0360"),new Array("/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd"));
  67. var CurrentDate=getCurrentDate();
  68. var currentYM=CurrentDate.substr(0,6);
  69. model.makeValue("/root/main/search/fromdd","200801");
  70. model.makeValue("/root/main/search/todd",currentYM);
  71. addComboItem("cmb_actdeptcd","","","above");
  72. model.removeNodeset("/root/main/voluntractteam");
  73. model.refresh();
  74. }
  75. //통계조회
  76. function fVoluntrStatReq()
  77. {
  78. var fromdd=model.getValue("/root/main/search/fromdd");
  79. var todd=model.getValue("/root/main/search/todd");
  80. var actdeptcd=model.getValue("/root/main/search/actdeptcd");
  81. model.removeNodeset("/root/send/reqdata");
  82. model.makeNode("/root/send/reqdata");
  83. if(isNull(fromdd))
  84. {
  85. messageBox("조회시작일은","I003");
  86. model.setFocus("ipt_fromdd");
  87. return;
  88. }
  89. else
  90. {
  91. model.makeValue("/root/send/reqdata/fromdd",fromdd);
  92. }
  93. if(isNull(todd))
  94. {
  95. messageBox("조회종료일은","I003");
  96. model.setFocus("ipt_todd");
  97. return;
  98. }
  99. else
  100. {
  101. model.makeValue("/root/send/reqdata/todd",todd);
  102. }
  103. if(isNull(actdeptcd))
  104. {
  105. model.makeValue("/root/send/reqdata/actdeptcd","%");
  106. }
  107. else
  108. {
  109. model.makeValue("/root/send/reqdata/actdeptcd",actdeptcd);
  110. }
  111. //model.copyNode("/root/send/reqdata","/root/main/search");
  112. submit("TRAAA03601");
  113. var idxRows=grd_voluntractteaminfo.rows;
  114. if(idxRows!='0')
  115. {
  116. for(i=1;i<idxRows;i++)
  117. {
  118. //grd_voluntractteaminfo.cellStyle("background-color",3,2, 3, 5) = "#ccffcc";
  119. var actdeptcd=model.getValue("/root/main/voluntractteam/voluntractteaminfo"+"["+i+"]/actdeptcd");
  120. var voluntractdwcd=model.getValue("/root/main/voluntractteam/voluntractteaminfo"+"["+i+"]/voluntractdwcd");
  121. if(voluntractdwcd=="소계")
  122. {
  123. //alert(i);
  124. grd_voluntractteaminfo.cellStyle("background-color",i+1,2, i+1, 5) = "#ccffcc";
  125. }
  126. else if(actdeptcd=="합계")
  127. {
  128. //alert("합계"+i);
  129. grd_voluntractteaminfo.cellStyle("background-color",i+1,1, i+1, 5) = "#ccffff";
  130. }
  131. else
  132. {
  133. grd_voluntractteaminfo.cellStyle("background-color",i+1,0, i+1, 5) = "#ffffff";
  134. }
  135. }
  136. }
  137. model.refresh();
  138. }
  139. // 초기화 함수
  140. function fResetVoluntrActTeam()
  141. {
  142. var btn=messageBox("초기화를","Q004");
  143. if(btn=="6")
  144. {
  145. model.removeNodeset("/root/main/voluntractteam");
  146. }
  147. else
  148. {
  149. return;
  150. }
  151. model.refresh();
  152. }
  153. // 엑셀 저장 함수
  154. function fExcelVoluntrTeamStat()
  155. {
  156. var fileName=window.fileDialog("save",",",false,"excel","xls","Excel Files(*.xls)|*.xls|All Files(*.*)|*.*");
  157. if(fileName!="")
  158. {
  159. grd_voluntractteaminfo.saveExcel(fileName,"SheetName",false,false,"","",false);
  160. }
  161. }
  162. ]]>
  163. </script>
  164. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  165. <group id="group1" style="left:0px; top:0px; width:815px; height:13px; ">
  166. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:207px; height:14px; ">자원봉사자통계</caption>
  167. </group>
  168. <group id="group3" scroll="auto" style="left:0px; top:13px; width:825px; height:744px; ">
  169. <group id="grp_sea" style="left:0px; top:10px; width:820px; height:35px; vertical-align:top; ">
  170. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:820px; height:35px; "/>
  171. <button id="button1" class="btn1_letter2" style="left:753px; top:7px; width:56px; height:22px; ">
  172. <caption>조회</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. fVoluntrStatReq();
  176. ]]>
  177. </script>
  178. </button>
  179. <line id="line13" class="line_4" style="x1:742px; y1:7px; x2:742px; y2:29px; "/>
  180. <caption id="caption3" class="search_name" style="left:20px; top:10px; width:94px; height:17px; ">조회기간 :</caption>
  181. <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_default" inputtype="date" format="yyyy-mm" appearance="minimal" style="left:114px; top:9px; width:71px; height:19px; "/>
  182. <input id="ipt_todd" ref="/root/main/search/todd" class="input_default" inputtype="date" format="yyyy-mm" appearance="minimal" style="left:202px; top:9px; width:71px; height:19px; "/>
  183. <caption id="caption4" style="left:188px; top:10px; width:20px; height:20px; ">~</caption>
  184. <caption id="caption2" class="search_name" style="left:325px; top:10px; width:94px; height:17px; ">활동그룹 :</caption>
  185. <select1 id="cmb_actdeptcd" ref="/root/main/search/actdeptcd" appearance="minimal" style="left:420px; top:10px; width:100px; height:19px; ">
  186. <choices>
  187. <itemset nodeset="/root/hidden/init/comcd/A0503">
  188. <label ref="cdnm"/>
  189. <value ref="cdid"/>
  190. </itemset>
  191. </choices>
  192. <script type="javascript" ev:event="xforms-value-changed">
  193. <![CDATA[
  194. fVoluntrStatReq();
  195. ]]>
  196. </script>
  197. </select1>
  198. </group>
  199. <button id="button3" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:748px; top:51px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  200. <caption>엑셀저장</caption>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. fExcelVoluntrTeamStat();
  204. ]]>
  205. </script>
  206. </button>
  207. <datagrid id="grd_voluntractteaminfo" nodeset="/root/main/voluntractteam/voluntractteaminfo" caption="활동그룹^활동요일/시간대^참여인원(실인원)^총결인원(횟수)^봉사시간(분단위)^합계|활동그룹^활동요일/시간대^참여인원(실인원)^총결인원(횟수)^봉사시간(분단위)^합계" colsep="^" colwidth="162, 135, 160, 160, 160" dataheight="25" extendlastcol="scroll" frozencols="7" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:77px; width:820px; height:663px; ">
  208. <col ref="actdeptcd" style="text-align:center; "/>
  209. <col ref="voluntractdwcd" style="text-align:center; "/>
  210. <col ref="cnt" format="#,###" style="text-align:center; "/>
  211. <col ref="attdabsnflag" format="#,###" style="text-align:center; "/>
  212. <col ref="servtm" format="#,###.9" style="text-align:center; "/>
  213. </datagrid>
  214. </group>
  215. <group id="group5" scroll="auto" style="left:0px; top:757px; width:820px; height:27px; ">
  216. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:820px; y2:0px; "/>
  217. </group>
  218. <caption id="caption1" class="tit_2" style="left:5px; top:71px; width:309px; height:14px; ">자원봉사자 소속팀별 통계</caption>
  219. <line id="line1" class="line_1" style="x1:0px; y1:86px; x2:820px; y2:86px; "/>
  220. <button id="button10" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:743px; top:760px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  221. <caption>초기화</caption>
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. fResetVoluntrActTeam();
  225. ]]>
  226. </script>
  227. </button>
  228. </xhtml:body>
  229. </xhtml:html>