SMAAA01200_특별활동내역관리.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  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. <specactteam/>
  12. </search>
  13. <searchattd>
  14. <fromdd/>
  15. <todd/>
  16. <specactteam/>
  17. <servtmflag/>
  18. </searchattd>
  19. <specactteamlist>
  20. <specactteaminfo>
  21. <chk/>
  22. <voluntrnm/>
  23. <baptnm/>
  24. <specactteam/>
  25. <actfromdd/>
  26. <acttodd/>
  27. <voluntrid/>
  28. <actrgstseqno/>
  29. </specactteaminfo>
  30. </specactteamlist>
  31. <specactteamrgstlist>
  32. <specactteamrgstinfo>
  33. <voluntrnm/>
  34. <baptnm/>
  35. <specactteam/>
  36. <servtmflag/>
  37. <servdd/>
  38. <servtm/>
  39. <attdrem/>
  40. <voluntrid/>
  41. <actrgstseqno/>
  42. <attdabsnflag/>
  43. <servseqno/>
  44. <actfromdd/>
  45. <acttodd/>
  46. </specactteamrgstinfo>
  47. </specactteamrgstlist>
  48. <specdata>
  49. </specdata>
  50. </main>
  51. <send>
  52. <savedata/>
  53. <reqdata/>
  54. </send>
  55. <hidden>
  56. <init>
  57. <comcd/>
  58. <comcd1/>
  59. </init>
  60. </hidden>
  61. <temp>
  62. <popmenu>
  63. <menu>
  64. <name>복사</name>
  65. <func>fSpecactTeamRgstCopy</func>
  66. </menu>
  67. </popmenu>
  68. </temp>
  69. </root>
  70. </instance>
  71. <script type="javascript" ev:event="xforms-ready">
  72. <![CDATA[
  73. fInit();
  74. ]]>
  75. </script>
  76. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  77. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  78. <submission id="TRAAA01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/specactteamlist"/>
  79. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  80. <submission id="TRZBC00122" mediatype="application/x-www-form-urlencoded" method="post"/>
  81. <submission id="TRZBP00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  82. <submission id="TXAAA01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/specdata" resultref="/root"/>
  83. <submission id="TRAAA01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/specactteamrgstlist"/>
  84. </model>
  85. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  86. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  89. <script type="javascript">
  90. <![CDATA[
  91. //화면 오픈시
  92. function fInit()
  93. {
  94. zbcfGetCodeList(new Array("A0516","A0516","A0517","A0517"),new Array("/root/hidden/init/comcd","/root/hidden/init/comcd1","/root/hidden/init/comcd","/root/hidden/init/comcd1") );
  95. model.refresh(); // 관계코드 설정
  96. grd_specactteaminfinfo.fixedcellcheckbox(0,1)=true;
  97. //체크박스 위에 전체 선택 하는 콤보 셋팅
  98. //model.makeValue("/root/main/search/specactteam","0");
  99. // model.makeValue("/root/main/searchattd/specactteam","0");
  100. //model.makeValue("/root/main/searchattd/servtmflag","0");
  101. model.removeNodeset("/root/main/specactteamlist/specactteaminfo");
  102. model.removeNodeset("/root/main/specactteamrgstlist/specactteamrgstinfo");
  103. var CurrentDate = getCurrentDate();
  104. model.makeValue("/root/main/searchattd/fromdd",CurrentDate);
  105. model.makeValue("/root/main/searchattd/todd",CurrentDate);
  106. addComboItem("cmb_doctrinetrgtmanposcd1", "","","above"); // 특별활동팀 전체 추가
  107. addComboItem("cmb_servtmflag", "","","above"); // 시간대 전체 추가
  108. model.refresh();
  109. }
  110. // 특별 활동팀 명단 조회 함수
  111. function fSpecactTeamInfoReq()
  112. {
  113. model.resetInstanceNode("/root/send/reqdata");
  114. model.makeNode("/root/send/reqdata");
  115. grd_specactteaminfinfo.fixedcellischeck(0,1)=false; //전체 체크 해지
  116. if(isNull(model.getValue("/root/main/search/specactteam")))
  117. {
  118. model.makeValue("/root/send/reqdata/specactteam","%");
  119. }
  120. else
  121. {
  122. model.makeValue("/root/send/reqdata/specactteam",model.getValue("/root/main/search/specactteam"));
  123. }
  124. //model.resetInstanceNode("/root/send/reqdata");
  125. //model.makeNode("/root/send/reqdata");
  126. //model.copyNode("/root/send/reqdata","/root/main/search");
  127. submit("TRAAA01201");
  128. }
  129. // 특별활동 등록시 행의 내용 복사하는 함수
  130. function fSpecactTeamRgstCopy()
  131. {
  132. var sRows=grd_specactteamrgstinfo.selectedRows; // 블럭 잡은 데이터 갯수
  133. var eRow=grd_specactteamrgstinfo.selectedRow(0); // 블럭 잡은 첫째 행
  134. for(i=0;i<sRows;i++)
  135. {
  136. // 블럭 처리된 갯수 만큼 선택된 행의 인덱스를 구해, 첫번째 인덱스의 값을 복사한다.
  137. var tRow=grd_specactteamrgstinfo.selectedRow(i);
  138. var rowstatus=grd_specactteamrgstinfo.rowStatus(tRow);
  139. // 행의 상태가 delete 또는 delete& update가 아닐때만 선택 행을 복사한다.
  140. if(rowstatus!='4'&& rowstatus!='6')
  141. {
  142. model.makeValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+tRow+"]/servtmflag",model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+eRow+"]/servtmflag"));
  143. model.makeValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+tRow+"]/servdd",model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+eRow+"]/servdd"));
  144. model.makeValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+tRow+"]/servtm",model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+eRow+"]/servtm"));
  145. model.makeValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+tRow+"]/attdrem",model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+eRow+"]/attdrem"));
  146. model.makeValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+tRow+"]/attdabsnflag",model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+eRow+"]/attdabsnflag"));
  147. grd_specactteamrgstinfo.addStatus(tRow,"update");
  148. // 선택된 행의 상태값을 update로 처리
  149. }
  150. }
  151. model.refresh();
  152. }
  153. // 특별활동 출결 등록 함수
  154. function fSpecactTeamRgstSave()
  155. {
  156. var idxRows=grd_specactteamrgstinfo.rows;
  157. var idxFixRow=grd_specactteamrgstinfo.fixedRows;
  158. var chk=0;
  159. if(idxRows<=1)
  160. {
  161. messageBox("등록할 특별활동 내역이","I004");
  162. return;
  163. }
  164. for(i=1;i<=idxRows-idxFixRow;i++)
  165. {
  166. var rowstatus=grd_specactteamrgstinfo.rowStatus(i); //for문을 돌면서 각각의 상태를 조사한다.
  167. if(rowstatus=='1'||rowstatus=='2'||rowstatus=='3'||rowstatus=='4'||rowstatus=='6')
  168. {//insert일때, update일때, new+insert, delete, delete+update 일 때만 판별한다.
  169. if(rowstatus=='1'||rowstatus=='2'||rowstatus=='3')
  170. {
  171. //insert일때, update일때, new+insert일 때만 판별한다.
  172. var servdd=model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+i+"]/servdd");
  173. //활동일자가 활동시작일과 활동 종료일 사이에 있는지 판별한다.
  174. var actfromdd=model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+i+"]/actfromdd");
  175. var acttodd=model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+i+"]/acttodd");
  176. if(isNull(servdd))
  177. {
  178. messageBox("활동일자는","I003");
  179. return;
  180. }
  181. if(servdd<actfromdd ||servdd>acttodd)
  182. {
  183. messageBox("활동시작일자와 활동종료일자 사이의 출결일자를 입력하십시요. ","I");
  184. return;
  185. }
  186. if(isNull(model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+i+"]/servtm")))
  187. {
  188. messageBox("활동시간은","I003");
  189. return;
  190. }
  191. }
  192. chk=chk+1;
  193. }
  194. }
  195. if(chk=='0')
  196. {
  197. messageBox("등록할 특별활동 내역이","I004");
  198. return;
  199. }
  200. model.removeNodeset("/root/send/savedata");
  201. model.makeNode("/root/send/savedata");
  202. model.makeValue("/root/main/specdata",grd_specactteamrgstinfo.getUpdateData());
  203. if(submit("TXAAA01201")==true)
  204. {
  205. messageBox("처리가","I002");
  206. fReqSpecActAttdAbsn(); //조회함수
  207. }
  208. model.refresh();
  209. }
  210. // 출결 등록 내역 조회 함수
  211. function fReqSpecActAttdAbsn()
  212. {
  213. model.removenode("/root/send/reqdata");
  214. model.makeNode("/root/send/reqdata");
  215. var fromdd=model.getValue("/root/main/searchattd/fromdd");
  216. var todd=model.getValue("/root/main/searchattd/todd");
  217. if(fromdd=='')
  218. {
  219. messageBox("조회 시작일자는 ","I003");
  220. return;
  221. }
  222. if(todd=='')
  223. {
  224. messageBox("조회 종료일자는 ","I003");
  225. return;
  226. }
  227. if(fromdd>todd)
  228. {
  229. messageBox("조회 종료 일자보다 작은 조회 시작일자를 입력하십시요","I");
  230. return;
  231. }
  232. if(isNull(model.getValue("/root/main/searchattd/specactteam")))
  233. {
  234. model.makeValue("/root/send/reqdata/specactteam","%");
  235. }
  236. else
  237. {
  238. model.makeValue("/root/send/reqdata/specactteam",model.getValue("/root/main/searchattd/specactteam"));
  239. }
  240. if(isNull(model.getValue("/root/main/searchattd/servtmflag")))
  241. {
  242. model.makeValue("/root/send/reqdata/servtmflag","%");
  243. }
  244. else
  245. {
  246. model.makeValue("/root/send/reqdata/servtmflag",model.getValue("/root/main/searchattd/servtmflag"));
  247. }
  248. model.makeValue("/root/send/reqdata/fromdd",fromdd);
  249. model.makeValue("/root/send/reqdata/todd",todd);
  250. //model.copyNode("/root/send/reqdata","/root/main/searchattd");
  251. submit("TRAAA01202");
  252. }
  253. // 삭제 함수
  254. function fSpecactTeamRgstDel()
  255. {
  256. var idxRow=grd_specactteamrgstinfo.row;
  257. var rowstatus=grd_specactteamrgstinfo.rowStatus(idxRow);
  258. //alert(rowstatus);
  259. if(idxRow>0)
  260. {
  261. if(rowstatus=='1'||rowstatus=='3')
  262. {
  263. // 클릭한 행이 공백일 때 행 삭제
  264. grd_specactteamrgstinfo.deleteItem(idxRow);
  265. }
  266. else
  267. {
  268. if(rowstatus=='4'||rowstatus=='6') //상태가 delete또는 Update& Delete일 때
  269. {
  270. grd_specactteamrgstinfo.removeStatus(idxRow,"delete"); //delete상태를 초기화 한다.
  271. }
  272. else
  273. {
  274. // 클릭한 행에 값이 있을 때에는 delete 로 상태 표시
  275. grd_specactteamrgstinfo.removeStatus(idxRow,"insert");
  276. grd_specactteamrgstinfo.addStatus(idxRow,"delete");
  277. }
  278. }
  279. }
  280. else
  281. {
  282. messageBox("삭제할 행을", "C002");
  283. return;
  284. }
  285. model.refresh();
  286. /*var idxRows=grd_specactteamrgstinfo.rows;
  287. var idxFixRow=grd_specactteamrgstinfo.fixedRows;
  288. for(i=1;i<=idxRows-idxFixRow;i++)
  289. { // 출결 조회 내역의 봉사 일련번호 존재 하지 않을 때 메시지 처리
  290. if(isNull(model.getValue("/root/main/specactteamrgstlist/specactteamrgstinfo"+"["+i+"]/servseqno")))
  291. {
  292. messageBox("출결 되지 않은 내역은 삭제할 수","I004");
  293. return;
  294. }
  295. else
  296. {
  297. grd_specactteamrgstinfo.addStatus(i,"delete");
  298. }
  299. }
  300. var btn=messageBox("특별활동 출결내역을","Q001");
  301. if(btn=='6')
  302. {
  303. model.removeNodeset("/root/send/savedata");
  304. model.makeNode("/root/send/savedata");
  305. model.makeValue("/root/main/specdata",grd_specactteamrgstinfo.getUpdateData());
  306. if(submit("TXAAA01201")==true)
  307. {
  308. messageBox("삭제가","I002");
  309. }
  310. }
  311. else
  312. {
  313. return;
  314. }
  315. model.refresh();
  316. */
  317. }
  318. // 초기화 실행 함수
  319. function fSpecactTeamRgstReset()
  320. {
  321. var btn=messageBox("초기화를","Q004");
  322. if(btn=="6")
  323. {
  324. grd_specactteaminfinfo.fixedcellischeck(0,1)=false; //전체 체크 해지
  325. model.removenode("/root/main/specactteamlist");
  326. model.removeNodeset("/root/main/specactteamrgstlist/specactteamrgstinfo");
  327. }
  328. else
  329. {
  330. return;
  331. }
  332. model.refresh();
  333. }
  334. // 특별활동팀 명단 확대, 축소 시키는 함수
  335. function fSpecActTeamZoomToggle(state)
  336. {
  337. if(state)
  338. {
  339. btn_zoom.attribute("text")="축소";
  340. grd_specactteaminfinfo.attribute("width")="530";
  341. }
  342. else
  343. {
  344. btn_zoom.attribute("text")="확대";
  345. grd_specactteaminfinfo.attribute("width")="378";
  346. }
  347. model.refresh();
  348. }
  349. ]]>
  350. </script>
  351. </xhtml:head>
  352. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  353. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  354. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:144px; height:14px; ">특별활동내역관리</caption>
  355. </group>
  356. <group id="group5" scroll="auto" style="left:0px; top:745px; width:1195px; height:27px; ">
  357. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  358. </group>
  359. <group id="group2" scroll="auto" style="left:0px; top:0px; width:1195px; height:744px; ">
  360. <caption id="caption25" class="tit_2" style="left:5px; top:60px; width:188px; height:13px; ">교리대상자 조회 및 출결등록</caption>
  361. <line id="line11" class="line_1" style="x1:0px; y1:75px; x2:1193px; y2:75px; "/>
  362. <group id="group4" style="left:0px; top:10px; width:1193px; height:37px; vertical-align:top; ">
  363. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1193px; height:35px; "/>
  364. <caption id="caption34" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">교리명:</caption>
  365. <select1 id="cmb_trgtmanposcd" ref="/root/main/cond_memb/doctrinetrgtmanposcd" class="combo_search" appearance="minimal" style="left:385px; top:10px; width:105px; height:19px; ">
  366. <choices>
  367. <itemset nodeset="/root/init/comcodelist/doctrinetrgtmanposcd_cmblist/A0212">
  368. <label ref="cdnm"/>
  369. <value ref="cdid"/>
  370. </itemset>
  371. </choices>
  372. </select1>
  373. <caption id="caption29" class="search_name" style="left:280px; top:10px; width:99px; height:17px; ">대상자소속 :</caption>
  374. <select1 id="rdo_doctrinenm" ref="/root/main/cond_memb/doctrinecd" class="radio_search" appearance="full" cellspacing="5" cols="2" rows="1" overflow="visible" style="left:95px; top:10px; width:170px; height:20px; border-style:none; ">
  375. <choices>
  376. <itemset nodeset="/root/init/comcodelist/doctrinecd_cmblist/A0211">
  377. <label ref="cdnm"/>
  378. <value ref="cdid"/>
  379. </itemset>
  380. </choices>
  381. </select1>
  382. <caption id="caption3" class="search_name" style="left:520px; top:10px; width:94px; height:17px; ">상태구분 :</caption>
  383. <input id="input1" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/rgstdd" class="input_default" inputtype="date" style="left:820px; top:10px; width:119px; height:19px; "/>
  384. <input id="input2" ref="/root/main/trgtmanrgst/trgtmanrgstinfo/rgstdd" class="input_default" inputtype="date" style="left:955px; top:10px; width:119px; height:19px; "/>
  385. <caption id="caption4" class="search_no_b" style="left:941px; top:10px; width:12px; height:17px; ">~</caption>
  386. <caption id="caption2" class="search_name" style="left:720px; top:10px; width:104px; height:17px; ">상태일자 :</caption>
  387. </group>
  388. </group>
  389. <group id="group3" scroll="auto" style="left:0px; top:4px; width:1195px; height:742px; ">
  390. <caption id="caption5" class="tit_2" style="left:5px; top:67px; width:160px; height:13px; ">특별활동팀명단</caption>
  391. <line id="line5" class="line_2" style="x1:745px; y1:543px; x2:1179px; y2:543px; "/>
  392. <caption id="caption7" class="tit_2" style="left:420px; top:67px; width:188px; height:13px; ">특별활동등록및조회내역</caption>
  393. <line id="line14" class="line_1" style="x1:420px; y1:82px; x2:1191px; y2:82px; "/>
  394. <group id="group6" style="left:0px; top:10px; width:1193px; height:40px; vertical-align:top; ">
  395. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:420px; top:5px; width:773px; height:35px; "/>
  396. <caption id="caption8" class="search_name" style="left:427px; top:13px; width:101px; height:17px; ">조회기간 :</caption>
  397. <caption id="caption9" class="search_name" style="left:712px; top:13px; width:99px; height:17px; ">특별활동팀 :</caption>
  398. <caption id="caption17" class="search_no_b" style="left:604px; top:12px; width:12px; height:17px; ">~</caption>
  399. <line id="line25" class="line_4" style="x1:1117px; y1:5px; x2:1117px; y2:39px; "/>
  400. <select1 id="cmb_doctrinetrgtmanposcd1" ref="/root/main/searchattd/specactteam" class="combo_search" appearance="minimal" style="left:814px; top:12px; width:123px; height:19px; ">
  401. <choices>
  402. <itemset nodeset="/root/hidden/init/comcd/A0516">
  403. <label ref="cdnm"/>
  404. <value ref="cdid"/>
  405. </itemset>
  406. </choices>
  407. <script type="javascript" ev:event="xforms-value-changed">
  408. <![CDATA[
  409. fReqSpecActAttdAbsn();
  410. ]]>
  411. </script>
  412. </select1>
  413. <input id="ipt_statfromdd" ref="/root/main/searchattd/fromdd" class="input_default" inputtype="date" style="left:515px; top:12px; width:86px; height:19px; "/>
  414. <input id="ipt_stattodd" ref="/root/main/searchattd/todd" class="input_default" inputtype="date" style="left:619px; top:12px; width:86px; height:19px; "/>
  415. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:12px; width:56px; height:22px; ">
  416. <caption>조회</caption>
  417. <script type="javascript" ev:event="DOMActivate">
  418. <![CDATA[
  419. fReqSpecActAttdAbsn();
  420. ]]>
  421. </script>
  422. </button>
  423. <caption id="caption1" class="search_name" style="left:940px; top:13px; width:75px; height:17px; ">시간대 :</caption>
  424. <select1 id="cmb_servtmflag" ref="/root/main/searchattd/servtmflag" class="combo_search" appearance="minimal" style="left:1020px; top:12px; width:86px; height:19px; ">
  425. <choices>
  426. <itemset nodeset="/root/hidden/init/comcd/A0517">
  427. <label ref="cdnm"/>
  428. <value ref="cdid"/>
  429. </itemset>
  430. </choices>
  431. <script type="javascript" ev:event="xforms-value-changed">
  432. <![CDATA[
  433. fReqSpecActAttdAbsn();
  434. ]]>
  435. </script>
  436. </select1>
  437. </group>
  438. <datagrid id="grd_specactteamrgstinfo" nodeset="/root/main/specactteamrgstlist/specactteamrgstinfo" autoresize="true" caption="이름^세례명^특별활동팀^활동시간대^활동일자^활동시간^내용^voluntrid^actrgstseqno^attdabsnflag^actfromdd^acttodd^specactteam^servseqno^servkind^교리진도" colsep="^" colwidth="103, 1, 129, 84, 100, 70, 248, 9, 24, 31, 10, 13, 19, 8, 13" dataheight="25" explorerbar="sort" extendlastcol="scroll" frozencols="4`" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:420px; top:87px; width:773px; height:649px; ">
  439. <col disabled="true" ref="voluntrnm" type="input" style="text-align:center; "/>
  440. <col disabled="true" ref="baptnm" type="input" visibility="hidden" style="text-align:center; "/>
  441. <col explorerbar="sort" disabled="true" ref="specactteam" type="combo" style="text-align:center; ">
  442. <choices>
  443. <itemset nodeset="/root/hidden/init/comcd1/A0516">
  444. <label ref="cdnm"/>
  445. <value ref="cdid"/>
  446. </itemset>
  447. </choices>
  448. </col>
  449. <col ref="servtmflag" type="combo">
  450. <choices>
  451. <itemset nodeset="/root/hidden/init/comcd1/A0517">
  452. <label ref="cdnm"/>
  453. <value ref="cdid"/>
  454. </itemset>
  455. </choices>
  456. </col>
  457. <col ref="servdd" type="inputdate" style="left:349px; top:23px; width:100px; height:23px; text-align:center; "/>
  458. <col ref="servtm" type="input" format="#,###" maxlength="4" style="text-align:center; "/>
  459. <col ref="attdrem" type="input" maxlength="100" style="text-align:center; "/>
  460. <col ref="voluntrid" visibility="hidden"/>
  461. <col ref="actrgstseqno" visibility="hidden"/>
  462. <col ref="attdabsnflag" visibility="hidden"/>
  463. <col ref="actfromdd" visibility="hidden"/>
  464. <col ref="acttodd" visibility="hidden"/>
  465. <col ref="specactteam" visibility="hidden"/>
  466. <col ref="servseqno" visibility="hidden"/>
  467. <col ref="servkind" visibility="hidden"/>
  468. <script type="javascript" ev:event="onaftersort">
  469. <![CDATA[
  470. //if(grd_specactteamrgstinfo.isCell(event.target) && grd_specactteamrgstinfo.mouseRow>=grd_specactteamrgstinfo.fixedRows)
  471. //{
  472. grd_specactteamrgstinfo.gridToInstance();
  473. //}
  474. //else
  475. //{
  476. // window.setPopupMenu(false);
  477. // return;
  478. //}
  479. ]]>
  480. </script>
  481. <script type="javascript" ev:event="onmousedown">
  482. <![CDATA[
  483. //alert(grd_specactteamrgstinfo.row);
  484. //alert(grd_specactteamrgstinfo.selectedRow(0));
  485. //alert(grd_specactteamrgstinfo.selectedRows);
  486. //alert(grd_specactteamrgstinfo.rows);
  487. if(grd_specactteamrgstinfo.isCell(event.target) && grd_specactteamrgstinfo.mouseRow>=grd_specactteamrgstinfo.fixedRows)
  488. {
  489. if(event.button==3)
  490. {
  491. window.setPopupMenu(true,"/root/temp/popmenu/menu","name","func",false);
  492. }
  493. else
  494. {
  495. window.setPopupMenu(false);
  496. }
  497. }
  498. else
  499. {
  500. window.setPopupMenu(false);
  501. return;
  502. }
  503. ]]>
  504. </script>
  505. </datagrid>
  506. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:15px; width:380px; height:35px; "/>
  507. <caption id="caption10" class="search_name" style="left:19px; top:22px; width:100px; height:17px; ">특별활동팀 :</caption>
  508. <select1 id="cmb_specactteam" ref="/root/main/search/specactteam" class="combo_search" appearance="minimal" style="left:127px; top:22px; width:128px; height:19px; ">
  509. <choices>
  510. <itemset nodeset="/root/hidden/init/comcd/A0516">
  511. <label ref="cdnm"/>
  512. <value ref="cdid"/>
  513. </itemset>
  514. </choices>
  515. <script type="javascript" ev:event="xforms-value-changed">
  516. <![CDATA[
  517. fSpecactTeamInfoReq();
  518. ]]>
  519. </script>
  520. </select1>
  521. <button id="button1" class="btn1_letter2" style="left:310px; top:21px; width:56px; height:22px; ">
  522. <caption>조회</caption>
  523. <script type="javascript" ev:event="onclick">
  524. <![CDATA[
  525. fSpecactTeamInfoReq();
  526. ]]>
  527. </script>
  528. </button>
  529. <datagrid id="grd_specactteaminfinfo" nodeset="/root/main/specactteamlist/specactteaminfo" scroll="auto" autoresize="true" caption="^이름^세례명^특별활동팀^활동시작일^활동종료일^voluntrid^actrgstseqno&#xA;^교리진도" colsep="^" colwidth="30, 87, 0, 139, 70, 70, 22, 28" dataheight="25" explorerbar="sort" extendlastcol="scroll" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:2px; top:87px; width:378px; height:650px; ">
  530. <col allowuserresize="true" checkvalue="1,0" ref="chk" type="checkbox"/>
  531. <col disabled="true" ref="voluntrnm" style="text-align:center; "/>
  532. <col disabled="true" ref="baptnm" visibility="hidden" style="text-align:left; "/>
  533. <col explorerbar="sort" disabled="true" ref="specactteam" type="combo" style="text-align:left; ">
  534. <choices>
  535. <itemset nodeset="/root/hidden/init/comcd/A0516">
  536. <label ref="cdnm"/>
  537. <value ref="cdid"/>
  538. </itemset>
  539. </choices>
  540. </col>
  541. <col disabled="true" ref="actfromdd" format="yyyy-mm-dd" style="left:349px; top:23px; width:100px; height:23px; text-align:left; "/>
  542. <col disabled="true" ref="acttodd" format="yyyy-mm-dd"/>
  543. <col ref="voluntrid" visibility="hidden"/>
  544. <col ref="actrgstseqno" visibility="hidden"/>
  545. </datagrid>
  546. <line id="line4" class="line_1" style="x1:2px; y1:82px; x2:380px; y2:82px; "/>
  547. <button id="button3" class="icon_right" style="left:386px; top:309px; width:26px; height:19px; ">
  548. <caption/>
  549. <script type="javascript" ev:event="onclick">
  550. <![CDATA[
  551. var idxRows=grd_specactteaminfinfo.rows;
  552. var idxfixRows=grd_specactteaminfinfo.fixedRows;
  553. var idxRow=grd_specactteamrgstinfo.rows;
  554. var chkdata=0; // 체크여부 확인하는 변수 선언
  555. for(i=1;i<=idxRows-idxfixRows;i++)
  556. {
  557. if(model.getValue("/root/main/specactteamlist/specactteaminfo"+"["+i+"]/chk")=="1")
  558. { // 특별활동팀 명단에 체크된 값들을 특별활동등록 및 조회내역에 복사한다.
  559. grd_specactteamrgstinfo.addItem();
  560. var idxrgstRow=grd_specactteamrgstinfo.row;
  561. model.copyNode("/root/main/specactteamrgstlist/specactteamrgstinfo["+idxrgstRow+"]","/root/main/specactteamlist/specactteaminfo["+i+"]");
  562. chkdata=chkdata+1; // 체크된 수만큼 누적 된 양을 판별
  563. }
  564. }
  565. if(chkdata=='0') //체크된 데이터가 존재 하지 않을 때
  566. {
  567. messageBox("특별활동팀 명단을 선택하십시요.","I");
  568. return;
  569. }
  570. model.refresh();
  571. ]]>
  572. </script>
  573. </button>
  574. <button id="btn_actdel" class="btn2_letter3" style="left:1130px; top:55px; width:53px; height:19px; ">
  575. <caption>행삭제</caption>
  576. <script type="javascript" ev:event="DOMActivate">
  577. <![CDATA[
  578. fSpecactTeamRgstDel();
  579. ]]>
  580. </script>
  581. </button>
  582. <line id="line13" class="line_4" style="x1:301px; y1:16px; x2:301px; y2:46px; "/>
  583. </group>
  584. <button id="button4" class="btn4_letter2" style="left:1048px; top:748px; width:56px; height:22px; ">
  585. <caption>저장</caption>
  586. <script type="javascript" ev:event="DOMActivate">
  587. <![CDATA[
  588. fSpecactTeamRgstSave();
  589. ]]>
  590. </script>
  591. </button>
  592. <button id="btn_delete" class="btn4_letter3" style="left:1115px; top:748px; width:68px; height:22px; ">
  593. <caption>초기화</caption>
  594. <script type="javascript" ev:event="DOMActivate">
  595. <![CDATA[
  596. fSpecactTeamRgstReset();
  597. ]]>
  598. </script>
  599. </button>
  600. </xhtml:body>
  601. </xhtml:html>