SPAAA02400_자원봉사자조회.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  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. <grdlist>
  14. <itemlist>
  15. <voluntrnm/>
  16. <baptnm/>
  17. <actdeptcd/>
  18. <actdeptdetlnm/>
  19. <voluntractdwcd/>
  20. <voluntractteamcd/>
  21. <actfromdd/>
  22. <acttodd/>
  23. <actrgstseqno/>
  24. <mpphontel/>
  25. </itemlist>
  26. </grdlist>
  27. <famyinfo>
  28. <infolist>
  29. <famynm/>
  30. <famyrel/>
  31. <famyage/>
  32. <religncd/>
  33. <famybaptnm/>
  34. <voluntrid>
  35. <famyjobnm/>
  36. </voluntrid>
  37. <famyseqno/>
  38. </infolist>
  39. <actlist>
  40. <servkind/>
  41. <actfromdd/>
  42. <acttodd/>
  43. <voluntractdwcd/>
  44. <voluntractteamcd/>
  45. <actdeptcd/>
  46. <specactteam/>
  47. <actdeptdetlnm/>
  48. <voluntrid/>
  49. <actrgstseqno/>
  50. </actlist>
  51. </famyinfo>
  52. <search>
  53. <voluntrnm/>
  54. <baptnm/>
  55. <actstatflag/>
  56. </search>
  57. <reqpopup/>
  58. </main>
  59. <init/>
  60. <hidden>
  61. <init>
  62. <comcd/>
  63. <comcd1/>
  64. </init>
  65. </hidden>
  66. </root>
  67. </instance>
  68. <script type="javascript" ev:event="xforms-ready">
  69. <![CDATA[
  70. fInit();
  71. ]]>
  72. </script>
  73. <submission id="TRAAA02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/grdlist"/>
  74. <submission id="TRAAA02402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/famyinfo"/>
  75. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  76. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  77. <submission id="TRZBP00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  78. <submission id="TRZBC00122" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  79. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  80. </model>
  81. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  86. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  87. </xhtml:head>
  88. <script type="javascript">
  89. <![CDATA[
  90. //화면 오픈시
  91. function fInit()
  92. {
  93. model.removeNodeset("/root/main/grdlist/itemlist");
  94. zbcfGetCodeList(new Array("A0524","A0503","A0359","A0360","A0524", "A0654"),new Array("/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd","/root/hidden/init/comcd1", "/root/hidden/init/comcd")); // 활동 상태 관계코드 설정
  95. addComboItem("cmb_actstatflag", "","","above");
  96. if(model.getValue("/root/send/reqdata/popupflag")=='N')
  97. {
  98. // 자원봉사자 이름/주민등록번호 등 넘겨준 파라미터 의 값이 있을 때
  99. if(model.getValue("/root/send/reqdata/voluntrnm")=='')
  100. {
  101. model.makeValue("/root/send/reqdata/voluntrnm","%"); //봉사자명이 없을 때는 %로 셋팅
  102. }
  103. else
  104. {
  105. model.makeValue("/root/main/search/voluntrnm",model.getValue("/root/send/reqdata/voluntrnm"));
  106. }
  107. if(model.getValue("/root/send/reqdata/baptnm")=='')
  108. {
  109. model.makeValue("/root/send/reqdata/baptnm","%"); // 봉사자 세례명이 없을 때는 %로 셋팅
  110. }
  111. if(model.getValue("/root/send/reqdata/rrgstno1")=='')
  112. {
  113. model.makeValue("/root/send/reqdata/rrgstno1","%"); // 봉사자 주빈번호 없을 때는 %로 셋팅
  114. }
  115. if(model.getValue("/root/send/reqdata/rrgstno2")=='')
  116. {
  117. model.makeValue("/root/send/reqdata/rrgstno2","%"); // 봉사자 주빈번호 없을 때는 %로 셋팅
  118. }
  119. model.makeValue("/root/send/reqdata/actstatflag","%"); // 봉사자 활동상태 전체 찾는 %로 셋팅
  120. submit("TRAAA02401");
  121. //자원봉사자 조회
  122. var reaNodesetCount=getNodesetCount("/root/main/grdlist/itemlist");
  123. // 조회된 자원봉사자 정보의 개수를 셈
  124. if(reaNodesetCount=="1")
  125. {
  126. //그리드에 1명만 조회될 때
  127. var voluntrid=model.getValue("/root/main/grdlist/itemlist/voluntrid");
  128. //var rrgstno1=model.getValue("/root/main/grdlist/itemlist/rrgstno1");
  129. //var rrgstno2=model.getValue("/root/main/grdlist/itemlist/rrgstno2");
  130. // 조회된 자원봉사자의 id, 주민등록번호 변수에 저장
  131. model.makeValue("/root/send/reqdata/voluntrid",voluntrid);
  132. //model.makeValue("/root/send/reqdata/rrgstno1",rrgstno1);
  133. //model.makeValue("/root/send/reqdata/rrgstno2",rrgstno2);
  134. // 해당 노드에 조회된 자원봉사자의 id, 주민등록번호 저장
  135. model.makeValue("/root/main/grdlist/itemlist["+reaNodesetCount+"]/flag","Y");
  136. // 해당 봉사자 조회된 값이 존재한다는 플래그 Y
  137. model.copyNode(opener.root.main.reqpopup.reqpopuplist , "/root/main/grdlist/itemlist["+reaNodesetCount+"]");
  138. // 조회된 1건의 데이터 자원봉사자 신상등록관리 화면으로 보냄
  139. opener.model.refresh();
  140. window.close();
  141. // 팝업창 닫기
  142. }
  143. }
  144. model.refresh();
  145. }
  146. // 조회
  147. function fSearch() //팝업창 띄운 후 조회 버튼 클릭시
  148. {
  149. //model.removeNodeset("/root/send/reqdata");
  150. //model.makeNode("/root/send/reqdata");
  151. if(model.getValue("/root/main/search/voluntrnm")=='')
  152. {
  153. model.makeValue("/root/send/reqdata/voluntrnm","%"); //봉사자명이 없을 때는 %로 셋팅
  154. }
  155. else
  156. {
  157. model.makeValue("/root/send/reqdata/voluntrnm",model.getValue("/root/main/search/voluntrnm")); //봉사자명이 있을 때는 해당값을 셋팅
  158. }
  159. if(model.getValue("/root/main/search/baptnm")=='')
  160. {
  161. model.makeValue("/root/send/reqdata/baptnm","%"); // 봉사자 세례명이 없을 때는 %로 셋팅
  162. }
  163. else
  164. {
  165. model.makeValue("/root/send/reqdata/baptnm",model.getValue("/root/main/search/baptnm")); // 봉사자 세례명이 있을 때는 해당값을 셋팅
  166. }
  167. model.makeValue("/root/send/reqdata/rrgstno1","%"); // 봉사자 주빈번호에 %로 셋팅
  168. model.makeValue("/root/send/reqdata/rrgstno2","%"); // 봉사자 주빈번호에 %로 셋팅
  169. if(model.getValue("/root/main/search/actstatflag")=='')
  170. { //활동 상태가 전체일때
  171. model.makeValue("/root/send/reqdata/actstatflag","%");
  172. // 활동 상태 전체를 조회하도록 %로 셋팅
  173. }
  174. else
  175. {
  176. model.makeValue("/root/send/reqdata/actstatflag",model.getValue("/root/main/search/actstatflag"));
  177. // 활동상태(1 : 활동중, 2 : 탈단) 값이 있을 경우 해당 값 셋팅
  178. }
  179. //model.copyNode("/root/send/reqdata","/root/main/search"); // 인적정보를 조회한다.
  180. submit("TRAAA02401");
  181. var row=grd_list.rows; // 조회된 행 갯수를 세고
  182. if(row=='1')
  183. {
  184. model.makeValue("/root/main/grdlist/itemlist/status","i");
  185. model.removeNodeset("/root/main/grdlist/itemlist"); // 조회된 결과가 없을 때 빈행으로 셋팅
  186. opener.model.makeValue("/root/main/voluntrinfo/baseinfo/itemlist/status","i");
  187. // 조회된 결과가 없을 때 status값에 i를 셋팅한다.
  188. }
  189. model.refresh();
  190. }
  191. function fVoluntrDetlInfo()
  192. { //그리드 더블 클릭시
  193. if(grd_list.row < 1 ) return;
  194. var row=grd_list.row; // 클릭한 행 저장
  195. if(row>=1) // 조회된 결과가 있을 때
  196. {
  197. model.makeValue("/root/main/grdlist/itemlist["+row+"]/flag","Y");
  198. //조회된 사람이 있다는 의미의 flag Y를 셋팅함
  199. model.copyNode(opener.root.main.reqpopup.reqpopuplist,"/root/main/grdlist/itemlist["+row+"]");
  200. // 자원봉사자 신상등록 조회된 값 화면에 보내줌
  201. //model.removeNodeset("/root/main/grdlist");
  202. model.refresh();
  203. opener.model.refresh();
  204. window.close();
  205. // 창 닫음
  206. }
  207. else
  208. {
  209. messageBox("상위화면이 변경되어 데이터를 가져올 수","I004");
  210. model.setValue("/root/main/grdlist/itemlist["+row+"]/flag","N");
  211. opener.model.makeValue("/root/main/voluntrinfo/baseinfo/itemlist/status","i");
  212. }
  213. }
  214. ]]>
  215. </script>
  216. <xhtml:body pagewidth="750" pageheight="500" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  217. <group id="group3" scroll="auto" style="left:16px; top:10px; width:694px; height:470px; ">
  218. <group id="group2" style="left:2px; top:3px; width:688px; height:42px; vertical-align:top; ">
  219. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:685px; height:35px; "/>
  220. <caption id="caption2" class="search_name" style="left:13px; top:8px; width:86px; height:17px; ">봉사자명 :</caption>
  221. <button id="btn_search" class="btn1_letter2" style="left:615px; top:7px; width:56px; height:22px; ">
  222. <caption>조회</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. fSearch();
  226. ]]>
  227. </script>
  228. </button>
  229. <line id="line13" class="line_4" style="x1:599px; y1:7px; x2:599px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  230. <input id="ipt_voluntrnm" ref="/root/main/search/voluntrnm" class="input_search" imemode="hangul" style="left:98px; top:9px; width:93px; height:19px; ">
  231. <script type="javascript" ev:event="onkeypress">
  232. <![CDATA[
  233. if(event.keyCode==13)
  234. {
  235. model.setValue("/root/main/search/voluntrnm",ipt_voluntrnm.currentText);
  236. model.setValue("/root/main/search/baptnm",ipt_baptnm.currentText);
  237. fSearch();
  238. }
  239. ]]>
  240. </script>
  241. </input>
  242. <caption id="caption3" class="search_name" visibility="hidden" style="left:395px; top:10px; width:86px; height:17px; ">세례명 :</caption>
  243. <input id="ipt_baptnm" ref="/root/main/search/baptnm" class="input_search" visibility="hidden" imemode="hangul" style="left:476px; top:10px; width:83px; height:19px; ">
  244. <script type="javascript" ev:event="onkeypress">
  245. <![CDATA[
  246. if(event.keyCode==13)
  247. {
  248. model.setValue("/root/main/search/voluntrnm",ipt_voluntrnm.currentText);
  249. model.setValue("/root/main/search/baptnm",ipt_baptnm.currentText);
  250. fSearch();
  251. }
  252. ]]>
  253. </script>
  254. </input>
  255. <caption id="caption4" class="search_name" style="left:200px; top:8px; width:86px; height:17px; ">활동상태 :</caption>
  256. <select1 id="cmb_actstatflag" ref="/root/main/search/actstatflag" class="combo_search" appearance="minimal" style="left:287px; top:9px; width:80px; height:19px; ">
  257. <choices>
  258. <itemset nodeset="/root/hidden/init/comcd/A0524">
  259. <label ref="cdnm"/>
  260. <value ref="cdid"/>
  261. </itemset>
  262. </choices>
  263. <script type="javascript" ev:event="xforms-value-changed">
  264. <![CDATA[
  265. fSearch();
  266. ]]>
  267. </script>
  268. </select1>
  269. </group>
  270. <caption id="caption1" class="tit_2" style="left:5px; top:41px; width:113px; height:13px; ">자원봉사자 정보</caption>
  271. <line id="line1" class="line_1" style="x1:0px; y1:63px; x2:690px; y2:63px; "/>
  272. <datagrid id="grd_list" nodeset="/root/main/grdlist/itemlist" class="datagrid2" caption="성명^세례명^소속분야^소속센터^소속센터^활동&#xA;요일^활동&#xA;시간대^활동상태^휴대폰번호^caption1" colsep="^" colwidth="71, 0, 80, 120, 80, 43, 110, 75, 87, 3" dataheight="23" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:60px; width:690px; height:370px; ">
  273. <col ref="voluntrnm" style="text-align:left; "/>
  274. <col ref="baptnm" visibility="hidden"/>
  275. <col ref="actdivscd" type="combo" style="text-align:center; ">
  276. <choices>
  277. <itemset nodeset="/root/hidden/init/comcd/A0654">
  278. <label ref="cdnm"/>
  279. <value ref="cdid"/>
  280. </itemset>
  281. </choices>
  282. </col>
  283. <col disabled="true" ref="actdeptcd" type="combo">
  284. <choices>
  285. <itemset nodeset="/root/hidden/init/comcd/A0503">
  286. <label ref="cdnm"/>
  287. <value ref="cdid"/>
  288. </itemset>
  289. </choices>
  290. </col>
  291. <col ref="actdeptdetlnm"/>
  292. <col disabled="true" ref="voluntractdwcd" type="combo">
  293. <choices>
  294. <itemset nodeset="/root/hidden/init/comcd/A0359">
  295. <label ref="cdnm"/>
  296. <value ref="cdid"/>
  297. </itemset>
  298. </choices>
  299. </col>
  300. <col disabled="true" ref="voluntractteamcd" type="combo">
  301. <choices>
  302. <itemset nodeset="/root/hidden/init/comcd/A0360">
  303. <label ref="cdnm"/>
  304. <value ref="cdid"/>
  305. </itemset>
  306. </choices>
  307. </col>
  308. <col disabled="true" ref="actstatflag" type="combo">
  309. <choices>
  310. <itemset nodeset="/root/hidden/init/comcd1/A0524">
  311. <label ref="cdnm"/>
  312. <value ref="cdid"/>
  313. </itemset>
  314. </choices>
  315. </col>
  316. <col ref="mpphontel"/>
  317. <col ref="voluntrid" visibility="hidden"/>
  318. <script type="javascript" ev:event="ondblclick">
  319. <![CDATA[
  320. fVoluntrDetlInfo();
  321. ]]>
  322. </script>
  323. <script type="javascript" ev:event="onaftersort">
  324. <![CDATA[
  325. grd_list.gridToInstance();
  326. ]]>
  327. </script>
  328. </datagrid>
  329. <line id="line2" class="line_1" style="x1:0px; y1:55px; x2:691px; y2:55px; "/>
  330. </group>
  331. <group id="group1" scroll="auto" style="left:15px; top:440px; width:690px; height:35px; ">
  332. <button id="btn_confirm" class="btn4_letter2" style="left:575px; top:9px; width:56px; height:22px; ">
  333. <caption>확인</caption>
  334. <script type="javascript" ev:event="DOMActivate">
  335. <![CDATA[
  336. fVoluntrDetlInfo();
  337. //if (fSendParam() == false) return;
  338. model.close();
  339. ]]>
  340. </script>
  341. </button>
  342. <button id="btn_cancel" class="btn4_letter2" style="left:634px; top:9px; width:56px; height:22px; ">
  343. <caption>취소</caption>
  344. <script type="javascript" ev:event="DOMActivate">
  345. <![CDATA[
  346. if (checkOpener())
  347. {
  348. //opener.model.makeNode("/root/main/reqpopupflag");
  349. //opener.model.setValue("/root/main/reqpopupflag", "N");
  350. opener.model.makeValue("/root/main/reqpopup/reqpopuplist/flag","N");
  351. window.close();
  352. }
  353. model.close();
  354. ]]>
  355. </script>
  356. </button>
  357. <line id="line32" class="line_6" style="x1:0px; y1:3px; x2:690px; y2:3px; "/>
  358. </group>
  359. </xhtml:body>
  360. </xhtml:html>