SMAAA01000_자원봉사자개인별실적조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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. <send>
  10. <reqdata/>
  11. </send>
  12. <main>
  13. <search>
  14. <fromdd/>
  15. <todd/>
  16. <actdeptcd/>
  17. <voluntractdwcd/>
  18. <voluntractteamcd/>
  19. <fromlstdd/>
  20. </search>
  21. <voluntrindachivlist>
  22. <voluntrindachivinfo>
  23. <voluntractteamcd/>
  24. <voluntractdwcd/>
  25. <voluntrnm/>
  26. <voluntrid/>
  27. <baptnm/>
  28. <jobrespcd/>
  29. <actdeptcd/>
  30. <joinorgdd/>
  31. <lstmnthservtm/>
  32. <servtm/>
  33. <totalservtm/>
  34. <attdabsnflag1/>
  35. <attdabsnflag2/>
  36. <attdabsnflag3/>
  37. <attdabsnflag4/>
  38. <attdabsnflag5/>
  39. </voluntrindachivinfo>
  40. </voluntrindachivlist>
  41. </main>
  42. <hidden>
  43. <init>
  44. <comcd/>
  45. </init>
  46. </hidden>
  47. </root>
  48. </instance>
  49. <script type="javascript" ev:event="xforms-ready">
  50. <![CDATA[
  51. fInit();
  52. ]]>
  53. </script>
  54. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  55. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  56. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  57. <submission id="TRAAA01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/voluntrindachivlist"/>
  58. </model>
  59. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  65. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  66. <script type="javascript" src="../../../ast/soclworkweb/js/AWMCommon.js"/>
  67. </xhtml:head>
  68. <script type="javascript">
  69. <![CDATA[
  70. function fInit()
  71. {
  72. zbcfGetCodeList( new Array("A0360","A0359","A0504","A0503"),
  73. new Array("/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd")); // 관계코드 설정
  74. var CurrentDate=getCurrentDate(); //현재 일자
  75. var CurrentYYMM=CurrentDate.substr(0,6); //현재 년월 저장
  76. model.makeValue("/root/main/search/fromdd",CurrentYYMM);
  77. model.makeValue("/root/main/search/todd",CurrentYYMM);
  78. model.makeValue("/root/main/search/actdeptcd","01");
  79. //model.makeValue("/root/main/search/voluntractdwcd","2");
  80. //model.makeValue("/root/main/search/voluntractteamcd","1");
  81. model.removeNodeset("/root/main/voluntrindachivlist/voluntrindachivinfo");
  82. addComboItem("cmb_voluntractdwcd","","","above");
  83. addComboItem("cmb_voluntractteamcd","","","above");
  84. model.refresh();
  85. }
  86. // 실적 조회 함수
  87. function fVoluntrIndAchivReq()
  88. {
  89. model.removeNodeset("/root/send/reqdata");
  90. model.makeNode("/root/send/reqdata");
  91. var fromdd=model.getValue("/root/main/search/fromdd");
  92. var todd=model.getValue("/root/main/search/todd");
  93. var actdeptcd=model.getValue("/root/main/search/actdeptcd");
  94. var voluntractdwcd=model.getValue("/root/main/search/voluntractdwcd");
  95. var voluntractteamcd=model.getValue("/root/main/search/voluntractteamcd");
  96. var dateintval=getDateInterval(fromdd+"01",todd+"31");
  97. // 조회종료일자와 조회시작일자사이의 길이, 3개월을 넘지 못하게 제약한다.
  98. //alert(dateintval);
  99. if(fromdd>todd)
  100. {
  101. messageBox("조회 시작일자보다 큰 조회 종료일자를 입력하십시요.","I");
  102. model.setFocus("ipt_todd");
  103. return;
  104. }
  105. if(dateintval>"396")
  106. {
  107. messageBox("조회기간은 1년을 넘을 수 ","I004");
  108. model.setFocus("ipt_todd");
  109. return;
  110. }
  111. else
  112. {
  113. model.makeValue("/root/send/reqdata/fromdd",fromdd);
  114. model.makeValue("/root/send/reqdata/todd",todd);
  115. }
  116. if(isNull(voluntractdwcd))
  117. {
  118. model.makeValue("/root/send/reqdata/voluntractdwcd","%");
  119. }
  120. else
  121. {
  122. model.makeValue("/root/send/reqdata/voluntractdwcd",model.getValue("/root/main/search/voluntractdwcd"));
  123. }
  124. if(isNull(voluntractteamcd))
  125. {
  126. model.makeValue("/root/send/reqdata/voluntractteamcd","%");
  127. }
  128. else
  129. {
  130. model.makeValue("/root/send/reqdata/voluntractteamcd",model.getValue("/root/main/search/voluntractteamcd"));
  131. }
  132. model.makeValue("/root/send/reqdata/actdeptcd",model.getValue("/root/main/search/actdeptcd"));
  133. //alert(dateintval);
  134. /*if(fromdd!=todd)
  135. {
  136. messageBox("조회시작일자와 같은 조회종료일자를 입력하십시요.","I");
  137. model.setFocus("ipt_todd");
  138. return;
  139. }*/
  140. var fromdd=ipt_fromdd.currentText; // 조회시작일자
  141. var fromddyy=fromdd.substr(0,4); // 조회시작년도
  142. var fromddlastyy=fromddyy-1; // 조회종료년도의 전년도
  143. var fromddmth=fromdd.substr(5,2); // 조회시작월
  144. var fromlstmth=eval(fromddmth-1); // 조회시작전월
  145. //alert(fromlstmth);
  146. if(fromlstmth=="00")
  147. {
  148. model.makeValue("/root/send/reqdata/fromlstdd",fromddlastyy+"12"); //봉사월이 1월일때 전월은 작년 12월로 셋팅
  149. }
  150. else if(fromlstmth>="01"&&fromlstmth<="9")
  151. {
  152. model.makeValue("/root/send/reqdata/fromlstdd",fromddyy+"0"+fromlstmth); //봉사월이 2월부터 10월일때는 현재년도+"01~09"로 셋팅
  153. }
  154. else
  155. {
  156. model.makeValue("/root/send/reqdata/fromlstdd",fromddyy+fromlstmth); //봉사월이 11,12월일때는 10,11월 셋팅
  157. }
  158. //model.copyNode("/root/send/reqdata","/root/main/search");
  159. if(submit("TRAAA01001")==true)
  160. {
  161. model.setFocus("caption1");
  162. }
  163. //submit("TRAAA01001");
  164. /*var idxRows=grd_voluntrindachivinfo.rows;
  165. var idxFixedRow=grd_voluntrindachivinfo.fixedRows;
  166. for(i=1;i<=idxRows-idxFixedRow;i++)
  167. {
  168. var lstmnthservtm=model.getValue("/root/main/voluntrindachivlist/voluntrindachivinfo"+"["+i+"]/lstmnthservtm");
  169. var servtm=model.getValue("/root/main/voluntrindachivlist/voluntrindachivinfo"+"["+i+"]/servtm");
  170. model.makeValue("/root/main/voluntrindachivlist/voluntrindachivinfo"+"["+i+"]/totalservtm",eval(lstmnthservtm)+ eval(servtm));
  171. model.refresh();
  172. }*/
  173. model.refresh();
  174. }
  175. //엑셀 저장 함수
  176. function fSaveExcel()
  177. {
  178. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  179. if (fileName != "")
  180. {
  181. grd_voluntrindachivinfo.saveExcel(fileName, "SheetName", false, false, "", "", false);
  182. }
  183. }
  184. //초기화 함수
  185. function fVoluntrIndAchivReSet()
  186. {
  187. var btn=messageBox("초기화를","Q004");
  188. if(btn=="6")
  189. {
  190. model.removeNodeset("/root/main/voluntrindachivlist");
  191. model.refresh();
  192. }
  193. else
  194. {
  195. return;
  196. }
  197. }
  198. ]]>
  199. </script>
  200. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  201. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  202. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:181px; height:14px; ">자원봉사자개인별실적조회</caption>
  203. </group>
  204. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  205. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  206. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  207. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  208. <caption>조회</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. fVoluntrIndAchivReq();
  212. ]]>
  213. </script>
  214. </button>
  215. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  216. <caption id="caption3" class="search_name" style="left:20px; top:10px; width:94px; height:17px; ">조회기간 :</caption>
  217. <caption id="caption5" class="search_no_b" style="left:193px; top:10px; width:12px; height:17px; ">~</caption>
  218. <input id="ipt_todd" ref="/root/main/search/todd" class="input_search" navindex="2" inputtype="date" format="yyyy-mm" style="left:215px; top:10px; width:70px; height:19px; "/>
  219. <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:115px; top:10px; width:70px; height:19px; "/>
  220. <caption id="caption2" class="search_name" style="left:375px; top:10px; width:100px; height:17px; ">활동그룹 :</caption>
  221. <caption id="caption4" class="search_name" style="left:650px; top:10px; width:127px; height:17px; ">활동요일/시간대:</caption>
  222. <select1 id="cmb_voluntractdwcd" ref="/root/main/search/voluntractdwcd" class="combo_search" disabled="false" navindex="4" appearance="minimal" style="left:785px; top:9px; width:65px; height:19px; ">
  223. <choices>
  224. <itemset nodeset="/root/hidden/init/comcd/A0359">
  225. <label ref="cdnm"/>
  226. <value ref="cdid"/>
  227. </itemset>
  228. </choices>
  229. <script type="javascript" ev:event="xforms-value-changed">
  230. <![CDATA[
  231. fVoluntrIndAchivReq();
  232. ]]>
  233. </script>
  234. </select1>
  235. <select1 id="cmb_voluntractteamcd" ref="/root/main/search/voluntractteamcd" class="combo_search" navindex="5" appearance="minimal" style="left:860px; top:9px; width:90px; height:19px; ">
  236. <choices>
  237. <itemset nodeset="/root/hidden/init/comcd/A0360">
  238. <label ref="cdnm"/>
  239. <value ref="cdid"/>
  240. </itemset>
  241. </choices>
  242. <script type="javascript" ev:event="xforms-value-changed">
  243. <![CDATA[
  244. fVoluntrIndAchivReq();
  245. ]]>
  246. </script>
  247. </select1>
  248. <select1 id="cmb_posteam2" ref="/root/main/search/actdeptcd" class="combo_search" navindex="3" appearance="minimal" style="left:468px; top:9px; width:90px; height:19px; ">
  249. <choices>
  250. <itemset nodeset="/root/hidden/init/comcd/A0503">
  251. <label ref="cdnm"/>
  252. <value ref="cdid"/>
  253. </itemset>
  254. </choices>
  255. <script type="javascript" ev:event="xforms-value-changed">
  256. <![CDATA[
  257. fVoluntrIndAchivReq();
  258. ]]>
  259. </script>
  260. </select1>
  261. </group>
  262. <datagrid id="grd_voluntrindachivinfo" nodeset="/root/main/voluntrindachivlist/voluntrindachivinfo" caption="활동그룹^활동시간대^활동요일^성명^번호^본명^직책^입단일^탈단일^전월누계^당월계^총시간계^출석^대근^결석^휴가^병가" colsep="^" colwidth="80, 76, 61, 97, 72, 97, 72, 77, 77, 74, 48, 76, 50, 50, 50, 50, 50" dataheight="25" explorerbar="sort" extendlastcol="scroll" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:76px; width:1194px; height:665px; ">
  263. <col disabled="true" ref="actdeptcd" type="combo">
  264. <choices>
  265. <itemset nodeset="/root/hidden/init/comcd/A0503">
  266. <label ref="cdnm"/>
  267. <value ref="cdid"/>
  268. </itemset>
  269. </choices>
  270. </col>
  271. <col disabled="true" ref="voluntractteamcd" type="combo" style="text-align:center; ">
  272. <choices>
  273. <itemset nodeset="/root/hidden/init/comcd/A0360">
  274. <label ref="cdnm"/>
  275. <value ref="cdid"/>
  276. </itemset>
  277. </choices>
  278. </col>
  279. <col disabled="true" ref="voluntractdwcd" type="combo" style="text-align:center; ">
  280. <choices>
  281. <itemset nodeset="/root/hidden/init/comcd/A0359">
  282. <label ref="cdnm"/>
  283. <value ref="cdid"/>
  284. </itemset>
  285. </choices>
  286. </col>
  287. <col ref="voluntrnm"/>
  288. <col ref="voluntrid" style="text-align:center; "/>
  289. <col ref="baptnm"/>
  290. <col disabled="true" ref="jobrespcd">
  291. <choices>
  292. <itemset nodeset="/root/hidden/init/comcd/A0504">
  293. <label ref="cdnm"/>
  294. <value ref="cdid"/>
  295. </itemset>
  296. </choices>
  297. </col>
  298. <col ref="joinorgdd" format="yyyy-mm-dd" style="text-align:center; "/>
  299. <col ref="quitorgdd" format="yyyy-mm-dd" style="text-align:center; "/>
  300. <col ref="lstmnthservtm" format="#,###.9" style="text-align:right; "/>
  301. <col ref="servtm" format="#,###.9" style="text-align:right; "/>
  302. <col ref="totalservtm" format="#,###.9" style="text-align:right; "/>
  303. <col ref="attdabsnflag1" format="#,###" style="text-align:center; "/>
  304. <col ref="attdabsnflag2" format="#,###" style="text-align:center; "/>
  305. <col ref="attdabsnflag3" format="#,###" style="text-align:center; "/>
  306. <col ref="attdabsnflag4" format="#,###" style="text-align:center; "/>
  307. <col ref="attdabsnflag5" format="#,###" style="text-align:center; "/>
  308. </datagrid>
  309. <button id="button14" class="btn2_letter4" style="left:1121px; top:50px; width:64px; height:19px; text-align:right; ">
  310. <caption>액셀저장</caption>
  311. <script type="javascript" ev:event="DOMActivate">
  312. <![CDATA[
  313. //엑셀 저장 함수
  314. fSaveExcel();
  315. ]]>
  316. </script>
  317. </button>
  318. </group>
  319. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  320. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  321. </group>
  322. <caption id="caption1" class="tit_2" style="left:5px; top:71px; width:186px; height:14px; ">자원봉사자개인별실적리스트</caption>
  323. <line id="line1" class="line_1" style="x1:0px; y1:86px; x2:1194px; y2:86px; "/>
  324. <button id="btn_delete" class="btn4_letter3" style="left:1121px; top:760px; width:68px; height:22px; ">
  325. <caption>초기화</caption>
  326. <script type="javascript" ev:event="DOMActivate">
  327. <![CDATA[
  328. fVoluntrIndAchivReSet();
  329. ]]>
  330. </script>
  331. </button>
  332. </xhtml:body>
  333. </xhtml:html>