SMAAA04100_자원봉사자출결조회.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  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. <savedata/>
  11. <reqdata/>
  12. <data/>
  13. </send>
  14. <main>
  15. <voluntrattdabsninfo>
  16. <voluntrattdabsnlist>
  17. <chk/>
  18. <attdabsnyn/>
  19. <attdabsnflag/>
  20. <actdeptcd/>
  21. <actdeptdetlnm/>
  22. <voluntractdwcd/>
  23. <voluntractteamcd/>
  24. <voluntrnm/>
  25. <baptnm/>
  26. <servtm/>
  27. <attdrem/>
  28. <servdd/>
  29. <actrgstseqno/>
  30. <voluntrid/>
  31. <servkind/>
  32. <m/>
  33. <status/>
  34. </voluntrattdabsnlist>
  35. </voluntrattdabsninfo>
  36. <voluntrcalinfo>
  37. <voluntrcallist>
  38. <basedd/>
  39. <absn/>
  40. <dutflag/>
  41. <day/>
  42. <dw/>
  43. <weekno/>
  44. </voluntrcallist>
  45. </voluntrcalinfo>
  46. <search>
  47. <fromdd/>
  48. <todd/>
  49. <actdeptcd/>
  50. <voluntractdwcd/>
  51. <voluntractteamcd/>
  52. <actdivscd/>
  53. <voluntrid/>
  54. <voluntrnm/>
  55. <chrgnm/>
  56. </search>
  57. <attdabsn>
  58. <attdabsndata/>
  59. </attdabsn>
  60. <calendar>
  61. <calyy/>
  62. <calmm/>
  63. </calendar>
  64. <cond>
  65. <conddate/>
  66. </cond>
  67. <cal>
  68. <weeks>
  69. <sun/>
  70. <mon/>
  71. <tue/>
  72. <wed/>
  73. <thu/>
  74. <fri/>
  75. <sat/>
  76. </weeks>
  77. <weeks>
  78. <sun/>
  79. <mon/>
  80. <tue/>
  81. <wed/>
  82. <thu/>
  83. <fri/>
  84. <sat/>
  85. </weeks>
  86. <weeks>
  87. <sun/>
  88. <mon/>
  89. <tue/>
  90. <wed/>
  91. <thu/>
  92. <fri/>
  93. <sat/>
  94. </weeks>
  95. <weeks>
  96. <sun/>
  97. <mon/>
  98. <tue/>
  99. <wed/>
  100. <thu/>
  101. <fri/>
  102. <sat/>
  103. </weeks>
  104. <weeks>
  105. <sun/>
  106. <mon/>
  107. <tue/>
  108. <wed/>
  109. <thu/>
  110. <fri/>
  111. <sat/>
  112. </weeks>
  113. <weeks>
  114. <sun/>
  115. <mon/>
  116. <tue/>
  117. <wed/>
  118. <thu/>
  119. <fri/>
  120. <sat/>
  121. </weeks>
  122. </cal>
  123. <reqpopup>
  124. <reqpopuplist/>
  125. </reqpopup>
  126. </main>
  127. <init>
  128. </init>
  129. <hidden>
  130. <init>
  131. <comcd/>
  132. <comcd1/>
  133. <calenlist/>
  134. </init>
  135. <calendar>
  136. <month/>
  137. <year/>
  138. <weeklist>
  139. <list/>
  140. </weeklist>
  141. </calendar>
  142. </hidden>
  143. <code/>
  144. </root>
  145. </instance>
  146. <script type="javascript" ev:event="xforms-ready">
  147. <![CDATA[
  148. fInit();
  149. ]]>
  150. </script>
  151. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  152. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  153. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  154. <submission id="TRAAA04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/search" resultref="/root/main/voluntrattdabsninfo"/>
  155. </model>
  156. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  157. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  158. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  159. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  160. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  161. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  162. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  163. <script type="javascript" src="../../../ast/soclworkweb/js/AWMCommon.js"/>
  164. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  165. </xhtml:head>
  166. <script type="javascript">
  167. <![CDATA[
  168. // 초기화 함수
  169. function fInit()
  170. {
  171. //공통코드 셋팅
  172. zbcfGetCodeList( new Array("A0503","A0359","A0360","A0506","A0503","A0359","A0360", "A0654"),
  173. new Array("/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd",
  174. "/root/hidden/init/comcd1","/root/hidden/init/comcd1","/root/hidden/init/comcd1", "/root/hidden/init/comcd") );
  175. addComboItem("cmb_actdeptcd", "전체", "", "above");
  176. addComboItem("cmb_actdivscd", "전체", "", "above");
  177. cmb_actdivscd.value = "02";
  178. grd_attdnc.fixedcellcheckbox(0,1)=true;
  179. ipt_fromdd.value = getCurrentDate();
  180. ipt_todd.value = getCurrentDate();
  181. }
  182. function fSearch() {
  183. submit("TRAAA04101");
  184. }
  185. ]]>
  186. </script>
  187. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  188. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  189. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:233px; height:13px; font-family:돋움체; ">자원봉사자 봉사활동 내역 조회</caption>
  190. </group>
  191. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; font-family:돋움체; ">
  192. <button id="button89" class="btn2_letter2" style="left:1150px; top:50px; width:42px; height:19px; ">
  193. <caption>출력</caption>
  194. <script type="javascript" ev:event="onclick">
  195. <![CDATA[
  196. group4.visible = true;
  197. ]]>
  198. </script>
  199. </button>
  200. <line id="line12" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  201. <caption id="caption32" class="tit_2" style="left:0px; top:55px; width:140px; height:13px; ">봉사활동 내역 조회</caption>
  202. <group id="group1" style="left:0px; top:10px; width:1190px; height:38px; vertical-align:top; ">
  203. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:38px; font-family:돋움체; "/>
  204. <caption id="caption1" class="search_name" style="left:295px; top:10px; width:91px; height:17px; font-family:돋움체; ">소속분야 :</caption>
  205. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:26px; font-family:돋움체; "/>
  206. <select1 id="cmb_actdeptcd" ref="/root/main/search/actdeptcd" class="combo_search" appearance="minimal" style="left:565px; top:10px; width:125px; height:19px; font-family:돋움체; ">
  207. <choices>
  208. <itemset nodeset="/root/hidden/init/comcd/A0503">
  209. <label ref="cdnm"/>
  210. <value ref="cdid"/>
  211. </itemset>
  212. </choices>
  213. <script type="javascript" ev:event="xforms-value-changed">
  214. <![CDATA[
  215. fSearch();
  216. ]]>
  217. </script>
  218. </select1>
  219. <button id="btn_search" class="btn1_letter2" style="left:1120px; top:7px; width:56px; height:22px; font-family:돋움체; ">
  220. <caption>조회</caption>
  221. <script type="javascript" ev:event="DOMActivate">
  222. <![CDATA[
  223. fSearch();
  224. ]]>
  225. </script>
  226. </button>
  227. <caption id="caption2" class="search_name" style="left:700px; top:10px; width:82px; height:17px; font-family:돋움체; ">봉사자 :</caption>
  228. <caption id="caption4" class="search_name" style="left:475px; top:10px; width:91px; height:17px; font-family:돋움체; ">소속센터 :</caption>
  229. <select1 id="cmb_actdivscd" ref="/root/main/search/actdivscd" class="combo_search" appearance="minimal" style="left:385px; top:10px; width:80px; height:19px; font-family:돋움체; ">
  230. <choices>
  231. <itemset nodeset="/root/hidden/init/comcd/A0654">
  232. <label ref="cdnm"/>
  233. <value ref="cdid"/>
  234. </itemset>
  235. </choices>
  236. <script type="javascript" ev:event="xforms-value-changed">
  237. <![CDATA[
  238. fSearch();
  239. ]]>
  240. </script>
  241. </select1>
  242. <caption id="caption3" class="search_name" style="left:5px; top:10px; width:91px; height:17px; font-family:돋움체; ">출석일자 :</caption>
  243. <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_search" inputtype="date" style="left:100px; top:10px; width:85px; height:19px; font-family:돋움체; "/>
  244. <input id="ipt_todd" ref="/root/main/search/todd" class="input_search" inputtype="date" style="left:200px; top:10px; width:85px; height:19px; font-family:돋움체; "/>
  245. <caption id="caption5" style="left:187px; top:10px; width:13px; height:20px; font-family:돋움체; font-weight:bold; ">~</caption>
  246. <input id="ipt_voluntrid" ref="/root/main/search/voluntrid" style="left:780px; top:10px; width:100px; height:19px; "/>
  247. <input id="ipt_voluntrnm" ref="/root/main/search/voluntrnm" style="left:905px; top:10px; width:100px; height:19px; "/>
  248. <button id="button1" class="icon_search" style="left:885px; top:10px; width:16px; height:16px; ">
  249. <caption/>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. model.makeValue("/root/source/flag",'Y'); // 수시봉사내역에서 호출함은 알려주는 플래그 값 Y
  253. model.makeValue("/root/source/popupflag",'Y'); // 팝업창 호출 플래그 값 Y
  254. model.makeNode("/root/source/voluntrnm");
  255. model.makeNode("/root/source/rrgstno1");
  256. model.makeNode("/root/source/rrgstno2");
  257. modal("SPAAA02400", "1","150", "150", "SPAAA02400", "/root/source", "/root/send/reqdata"); ///root/source 의 인스턴스를 자원봉사자조회 팝업 화면의 /root/send/reqdata 밑의 인스턴스로 복사 하며 팝업 창 호출
  258. if ( !isNull(model.getValue("/root/main/reqpopup/reqpopuplist/voluntrid")) ){
  259. ipt_voluntrid.value = model.getValue("/root/main/reqpopup/reqpopuplist/voluntrid")
  260. ipt_voluntrnm.value = model.getValue("/root/main/reqpopup/reqpopuplist/voluntrnm")
  261. }
  262. ]]>
  263. </script>
  264. </button>
  265. </group>
  266. <datagrid id="grd_attdnc" nodeset="/root/main/voluntrattdabsninfo/voluntrattdabsnlist" caption="^출석일자^출결여부^출석구분^활동시간^소속분야^소속센터^소속센터^활동요일^활동시간대^성명^세례명^내용^caption1^caption2^caption3^servdd^servseqno^status" colsep="^" colwidth="36, 80, 54, 54, 54, 100, 120, 80, 58, 110, 74, 0, 170, 10, 16, 11, 3, -4, 20" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1195px; height:665px; ">
  267. <col checkvalue="1,0" ref="chk" type="checkbox"/>
  268. <col ref="servdd" format="yyyy-mm-dd" style="text-align:center; "/>
  269. <col ref="attdabsnyn" style="text-align:center; "/>
  270. <col ref="attdabsnflag" type="combo" style="text-align:center; ">
  271. <choices>
  272. <itemset nodeset="/root/hidden/init/comcd/A0506">
  273. <label ref="cdnm"/>
  274. <value ref="cdid"/>
  275. </itemset>
  276. </choices>
  277. </col>
  278. <col ref="servtm" type="input" format="#.9" maxlength="4" style="text-align:center; "/>
  279. <col ref="actdivscd" type="combo" style="text-align:center; ">
  280. <choices>
  281. <itemset nodeset="/root/hidden/init/comcd/A0654">
  282. <label ref="cdnm"/>
  283. <value ref="cdid"/>
  284. </itemset>
  285. </choices>
  286. </col>
  287. <col disabled="true" ref="actdeptcd" type="combo" format="yyyy-mm-dd" style="text-align:center; ">
  288. <choices>
  289. <itemset nodeset="/root/hidden/init/comcd/A0503">
  290. <label ref="cdnm"/>
  291. <value ref="cdid"/>
  292. </itemset>
  293. </choices>
  294. </col>
  295. <col disabled="true" ref="actdeptdetlnm" type="input"/>
  296. <col disabled="true" ref="voluntractdwcd" type="combo" style="text-align:center; ">
  297. <choices>
  298. <itemset nodeset="/root/hidden/init/comcd1/A0359">
  299. <label ref="cdnm"/>
  300. <value ref="cdid"/>
  301. </itemset>
  302. </choices>
  303. </col>
  304. <col disabled="true" ref="voluntractteamcd" type="combo" style="text-align:center; ">
  305. <choices>
  306. <itemset nodeset="/root/hidden/init/comcd1/A0360">
  307. <label ref="cdnm"/>
  308. <value ref="cdid"/>
  309. </itemset>
  310. </choices>
  311. </col>
  312. <col ref="voluntrnm" style="text-align:center; "/>
  313. <col ref="baptnm" visibility="hidden"/>
  314. <col ref="attdrem" type="input" maxlength="20"/>
  315. <col ref="actrgstseqno" visibility="hidden"/>
  316. <col ref="voluntrid" visibility="hidden"/>
  317. <col ref="servkind" visibility="hidden"/>
  318. <col ref="servdd" visibility="hidden"/>
  319. <col ref="servseqno" visibility="hidden"/>
  320. <col ref="status" visibility="hidden"/>
  321. <script type="javascript" ev:event="xforms-value-changed">
  322. <![CDATA[
  323. var idxRows=grd_attdnc.row;
  324. var idxRow=idxRows-1;
  325. var fixRox=grd_attdnc.fixedRows;
  326. var idxrow=idxRows;
  327. var attdabsnflag=model.getValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/attdabsnflag");
  328. var actdeptcd=model.getValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/actdeptcd");
  329. var voluntractteamcd=model.getValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/voluntractteamcd");
  330. if(grd_attdnc.col=="3")
  331. { // 출석구분 값이 바뀌었을 때
  332. // 결석, 휴가, 병가로 선택된 경우 활동시간 초기화
  333. if(attdabsnflag=="03"||attdabsnflag=="04"||attdabsnflag=="05")
  334. {
  335. model.resetInstanceNode("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm");
  336. model.makeValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm","0.0");
  337. // 2009.6.12 수정
  338. grd_attdnc.isReadOnly(idxrow,grd_attdnc.colRef("servtm"))=true;
  339. //alert(grd_attdnc.isReadOnly(idxrow,grd_attdnc.colRef("servtm")));
  340. //alert(idxrow);
  341. }
  342. else if(actdeptcd=='04'&& voluntractteamcd=='3')
  343. {// 활동부서가 호스피스이면서 소속팀이 종일일때 6시간 셋팅
  344. model.resetInstanceNode("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm");
  345. model.makeValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm","6.0");
  346. grd_attdnc.isReadOnly(idxrow,grd_attdnc.colRef("servtm"))=false;
  347. }
  348. else
  349. {// 출결, 대근일 경우 활동시간에 자동 3시간 셋팅
  350. model.resetInstanceNode("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm");
  351. //의정부성모일경우 활동시간을 2.5시간으로 셋팅한다.-kys-20090710
  352. if(model.getValue("/root/code/codeinfo/codelist[cdgrupid = '077' and supcdid = '02' and cdid = '"+ getUserInfo("dutplceinstcd") +"']/cdid")){ //02:의정부성모
  353. model.makeValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm","2.5");
  354. }if(model.getValue("/root/code/codeinfo/codelist[cdgrupid = '077' and supcdid = '03' and cdid = '"+ getUserInfo("dutplceinstcd") +"']/cdid")){ //03:부천성가
  355. model.makeValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm","2.0");
  356. }else{
  357. model.makeValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm","3.0");
  358. }
  359. grd_attdnc.isReadOnly(idxrow,grd_attdnc.colRef("servtm"))=false;
  360. }
  361. }
  362. /*if(grd_attdnc.col=="4")
  363. {
  364. var servtm=model.getValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm"); // 활동시간 저장
  365. //alert(servtm);
  366. if(servtm>10)
  367. {
  368. var upservtm=servtm.substr(0,1); // 활동시간 정수 자리
  369. var bkservtm=servtm.substr(1,1); // 활동시간 소숫점 앞 자리
  370. //alert(upservtm);
  371. //alert(bkservtm);
  372. model.makeValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm",upservtm+'.'+bkservtm);
  373. }
  374. // 활동시간에 값 입력시 출석구분에 결석, 휴가, 병가로 선택된 경우
  375. if(attdabsnflag=="03"||attdabsnflag=="04"||attdabsnflag=="05")
  376. {//시간에 값이 들어가있으면 message처리 함
  377. if(model.getValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm")!="")
  378. {
  379. //messageBox("휴가,병가,결석시에는 봉사시간을 입력할 수","I004");
  380. model.resetInstanceNode("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm");
  381. model.makeValue("/root/main/voluntrattdabsninfo/voluntrattdabsnlist"+"["+idxRow+"]/servtm","0");
  382. grd_attdnc.isReadOnly(idxRow,grd_attdnc.colRef("servtm"))=true;
  383. }
  384. }
  385. else
  386. {
  387. grd_attdnc.isReadOnly(idxRow,grd_attdnc.colRef("servtm"))=false;
  388. }
  389. }*/
  390. model.refresh();
  391. ]]>
  392. </script>
  393. </datagrid>
  394. <group id="group4" visibility="hidden" style="left:975px; top:70px; width:205px; height:80px; background-color:#8cf1fb; ">
  395. <caption id="caption13" style="left:10px; top:15px; width:100px; height:15px; font-weight:bold; ">담당자</caption>
  396. <input id="input1" ref="/root/main/search/chrgnm" style="left:5px; top:30px; width:195px; height:19px; "/>
  397. <button id="button5" class="btn5_letter2" style="left:110px; top:55px; width:42px; height:19px; ">
  398. <caption>확인</caption>
  399. <script type="javascript" ev:event="DOMActivate">
  400. <![CDATA[
  401. exeReportPreview("RPAAA00201", "XMLSTR", "", "", "false");
  402. ]]>
  403. </script>
  404. </button>
  405. <button id="button6" class="btn5_letter2" style="left:155px; top:55px; width:42px; height:19px; ">
  406. <caption>닫기</caption>
  407. <script type="javascript" ev:event="DOMActivate">
  408. <![CDATA[
  409. group4.visible = false;
  410. ]]>
  411. </script>
  412. </button>
  413. </group>
  414. <button id="button2" class="btn2_letter4" style="left:1085px; top:50px; width:64px; height:19px; ">
  415. <caption>엑셀저장</caption>
  416. <script type="javascript" ev:event="DOMActivate">
  417. <![CDATA[
  418. var fileName = window.fileDialog("save", ",", false, "자원봉사자출결조회", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  419. if (fileName != "")
  420. {
  421. grd_attdnc.saveExcel(fileName, "SheetName", false, false, "", "", false);
  422. }
  423. ]]>
  424. </script>
  425. </button>
  426. </group>
  427. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  428. <line id="line1" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  429. </group>
  430. </xhtml:body>
  431. </xhtml:html>