SMAAA01300_수시봉사내역관리.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  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. <cond>
  11. <actfromdd/>
  12. <acttodd/>
  13. <actdeptcd/>
  14. <voluntractdwcd/>
  15. <voluntractteamcd/>
  16. <servkind/>
  17. <actdivscd/>
  18. </cond>
  19. <svcspec>
  20. <svcspeclist>
  21. <voluntrid/>
  22. <voluntrnm/>
  23. <actdeptcd/>
  24. <actdeptdetlnm/>
  25. <voluntractdwcd/>
  26. <voluntractteamcd/>
  27. <servdd/>
  28. <servtm/>
  29. <attdrem/>
  30. <servseqno/>
  31. <actrgstseqno/>
  32. <instcd/>
  33. </svcspeclist>
  34. </svcspec>
  35. <popupinfo>
  36. <param/>
  37. <flag/>
  38. <searchitem/>
  39. </popupinfo>
  40. <reqpopup>
  41. <reqpopuplist/>
  42. </reqpopup>
  43. </main>
  44. <init>
  45. <A0503list/>
  46. <A0359list/>
  47. <A0360list/>
  48. <A0654list/>
  49. </init>
  50. <send>
  51. <reqdata/>
  52. <savedata/>
  53. </send>
  54. <tmp>
  55. <svcspec>
  56. <joinnobaseinfo>
  57. <voluntrid/>
  58. <voluntrnm/>
  59. <actdeptcd/>
  60. <actdeptdetlnm/>
  61. <voluntractdwcd/>
  62. <voluntractteamcd/>
  63. <actrgstseqno/>
  64. <servdd/>
  65. <servtm/>
  66. <attdrem/>
  67. </joinnobaseinfo>
  68. </svcspec>
  69. </tmp>
  70. <source>
  71. </source>
  72. </root>
  73. </instance>
  74. <script type="javascript" ev:event="xforms-ready">
  75. <![CDATA[
  76. fInit();
  77. // fSvrSpec();
  78. ]]>
  79. </script>
  80. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  81. <submission id="TRAAA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/svcspec"/>
  82. <submission id="TXAAA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
  83. <submission id="TRAAA01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/tmp/svcspec"/>
  84. </model>
  85. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  87. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  89. <script type="javascript">
  90. <![CDATA[
  91. //화면 오픈시 초기화
  92. function fInit() {
  93. model.removeNodeset("/root/main/svcspec/svcspeclist");
  94. model.resetInstanceNode("/root/main/cond");
  95. var Ndate = getNewDate();
  96. var Idate = Ndate.getDateFormat("YYYYMM")+ "01";
  97. // ipt_fromdd.value = Idate; // 조회구간에 매달 첫째날짜(디폴트)
  98. // ipt_todd.value = getCurrentDate();// 조회구간에 현재날짜(디폴트)
  99. model.setValue("/root/main/cond/actfromdd", Idate);
  100. //model.setValue("/root/main/cond/acttodd", getCurrentDate());
  101. var sDate = getNewDate(); //달의 마지막날 가져오기
  102. var lastDate = sDate.getFullYear();
  103. lastDate = lastDate.toString() + (( sDate.getMonth() + 1 > 9 ) ? sDate.getMonth() + 1 : "0" + (sDate.getMonth() + 1));
  104. lastDate = lastDate.toString() + sDate.getMonthDay();
  105. model.setValue("/root/main/cond/acttodd", lastDate);
  106. // 공통코드를 조회한다.
  107. addComboItem("cmb_actdept", "- 전 체 -", "", "above");
  108. addComboItem("cmb_posteam1", "- 전 체 -", "", "above");
  109. addComboItem("cmb_posteam2", "- 전 체 -", "", "above");
  110. addComboItem("cmb_actdivscd", "- 전 체 -", "", "above");
  111. zbcfGetCodeList( new Array("A0503", "A0359", "A0360", "A0654"), new Array("/root/init/A0503list", "/root/init/A0359list", "/root/init/A0360list","/root/init/A0654list") );
  112. cmb_servkind.select(0);
  113. //메뉴파라미터값에 따른 활동부서 비활성처리
  114. //SMAAA01300_param : 호스피스 : 04 원목실 : 05
  115. var SMAAA01300_param = getScreenMenuParameter(); //2
  116. if(SMAAA01300_param=='2') {
  117. model.setValue("/root/main/cond/actdeptcd", "04");
  118. cmb_actdept.disabled = true;
  119. }
  120. if(SMAAA01300_param=='3') {
  121. model.setValue("/root/main/cond/actdeptcd", "05");
  122. model.setValue("/root/main/cond/voluntractteamcd", "3");
  123. cmb_actdept.disabled = true;
  124. }
  125. model.refresh();
  126. }
  127. //조회버튼 클릭시
  128. function fRefSvrSpecList() {
  129. var SMAAA01300_param = getScreenMenuParameter();
  130. if (model.getValue("/root/main/cond/actfromdd") > model.getValue("/root/main/cond/acttodd")) {
  131. messageBox("올바른 조회기간을","C001");
  132. model.setFocus("ipt_fromdd");
  133. return false;
  134. }
  135. if (model.getValue("/root/main/cond/actfromdd") == "" ) {
  136. messageBox("시작일자는 ","I003");
  137. model.setFocus("ipt_fromdd");
  138. return false;
  139. }
  140. if (model.getValue("/root/main/cond/actfromdd").length != 8 ) {
  141. messageBox("올바른 시작일자 항목을","C001");
  142. model.setFocus("ipt_fromdd");
  143. return false;
  144. }
  145. if (model.getValue("/root/main/cond/acttodd") == "" ) {
  146. messageBox("종료일자는 ","I003");
  147. model.setFocus("ipt_todd");
  148. return false;
  149. }
  150. if (model.getValue("/root/main/cond/acttodd").length != 8 ) {
  151. messageBox("올바른 종료일자 항목을","C001");
  152. model.setFocus("ipt_todd");
  153. return false;
  154. }
  155. model.removeNodeset("/root/send/reqdata");
  156. model.makeNode("/root/send/reqdata");
  157. model.copyNode("/root/send/reqdata", "/root/main/cond");
  158. submit("TRAAA01301");
  159. }
  160. //행추가 버튼 클릭시
  161. function fInsRow(){
  162. //행추가버튼 클릭시 한줄만 추가 servdd
  163. grd_svcspec.addRow();
  164. var row = grd_svcspec.rows-1;
  165. model.setValue("/root/main/svcspec/svcspeclist["+ row +"]/servdd",getCurrentDate());
  166. grd_svcspec.colDisabled(grd_svcspec.colRef("voluntrnm")) = true;
  167. grd_svcspec.colDisabled(grd_svcspec.colRef("actdeptcd")) = true;
  168. grd_svcspec.colDisabled(grd_svcspec.colRef("actdeptdetlnm")) = true;
  169. grd_svcspec.colDisabled(grd_svcspec.colRef("voluntractdwcd")) = true;
  170. grd_svcspec.colDisabled(grd_svcspec.colRef("voluntractteamcd")) = true;
  171. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdeptcd", "-");
  172. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractdwcd", "-");
  173. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractteamcd", "-");
  174. model.refresh();
  175. }//fInsRow END
  176. //행삭제 버튼 클릭시
  177. function fDelRow() {
  178. var idx = grd_svcspec.row;
  179. if( idx > 0 ){
  180. //디비에 저장되지 않은 데이타는 그냥 삭제한다. 1: insert , 3 : insert and update
  181. if (grd_svcspec.rowStatus(idx) == "1" || grd_svcspec.rowStatus(idx) == "3"){
  182. grd_svcspec.deleteItem(idx);
  183. return;
  184. }
  185. if(idx != null){
  186. for (var i = 1; i < (grd_svcspec.rows-1); i++) {
  187. var voluntrid = model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/voluntrid");
  188. var voluntrnm = model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/voluntrnm");
  189. var actdeptcd = model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/actdeptcd");
  190. var actdeptdetlnm = model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/actdeptdetlnm");
  191. }//for END
  192. if ( voluntrid != "" || voluntrnm != "" || actdeptcd != "" || actdeptdetlnm != "" ) {
  193. grd_svcspec.addStatus(idx, "delete");
  194. }
  195. }//null check if END
  196. }else{
  197. messageBox("삭제할 일정을 ", "C002");
  198. grd_svcspec.removeStatus(idx, "delete");
  199. }
  200. }//fDelRow END
  201. //초기화 버튼 클릭시
  202. function fReset(){
  203. var btn = messageBox("초기화를 ", "Q004");
  204. if (btn == '6') {
  205. model.removeNodeset("/root/main/svcspec/svcspeclist");
  206. model.resetInstanceNode("/root/main/cond");
  207. var Ndate = getNewDate();
  208. var Idate = Ndate.getDateFormat("YYYYMM")+ "01";
  209. // ipt_fromdd.value = Idate; // 조회구간에 매달 첫째날짜(디폴트)
  210. // ipt_todd.value = getCurrentDate();// 조회구간에 현재날짜(디폴트)
  211. model.setValue("/root/main/cond/actfromdd", Idate);
  212. //model.setValue("/root/main/cond/acttodd", getCurrentDate());
  213. model.setValue("/root/main/cond/acttodd", model.getValue("/root/main/date/date/lastdate/lastdate"));
  214. var sDate = getNewDate(); //달의 마지막날 가져오기
  215. var lastDate = sDate.getFullYear();
  216. lastDate = lastDate.toString() + (( sDate.getMonth() + 1 > 9 ) ? sDate.getMonth() + 1 : "0" + (sDate.getMonth() + 1));
  217. lastDate = lastDate.toString() + sDate.getMonthDay();
  218. model.setValue("/root/main/cond/acttodd", lastDate);
  219. var SMAAA01300_param = getScreenMenuParameter(); //2
  220. if(SMAAA01300_param=='2') {
  221. model.setValue("/root/main/cond/actdeptcd", "04");
  222. cmb_actdept.disabled = true;
  223. }
  224. if(SMAAA01300_param=='3') {
  225. model.setValue("/root/main/cond/actdeptcd", "05");
  226. model.setValue("/root/main/cond/voluntractteamcd", "3");
  227. cmb_actdept.disabled = true;
  228. }
  229. model.refresh();
  230. } else if (btn == '7') {
  231. return;
  232. }
  233. }//fReset END
  234. //엑셀저장 버튼 클릭시
  235. function fExcel() {
  236. if (grd_svcspec.rows <= 1) {
  237. messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  238. return;
  239. }
  240. var fileName = window.fileDialog("save", ",", false, "수시봉사내역관리", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  241. if (fileName != ""){
  242. grd_svcspec.saveExcel(fileName, "SheetName", false, false, "", "", false);
  243. }
  244. }//fExcel END
  245. //저장버튼 클릭시
  246. function fSaveSvrSpecList() {
  247. var idx = grd_svcspec.row;
  248. var SMAAA01300_param2;
  249. if(grd_svcspec.rowStatus(idx) == "0"){
  250. messageBox("저장할 자료가 ","I004");
  251. return;
  252. }
  253. if( idx > 0 ){
  254. if(grd_svcspec.rowStatus(idx) == "2" || grd_svcspec.rowStatus(idx) == "3" || grd_svcspec.rowStatus(idx) == "4"){
  255. model.removeNodeset("/root/send/savedata");
  256. model.makeNode("/root/send/savedata");
  257. model.makeNode("/root/send/savedata/condinfo");
  258. model.makeNode("/root/send/savedata/listinfo");
  259. model.copyNode("/root/send/savedata/condinfo", "/root/main/cond");
  260. model.setValue("/root/send/savedata/listinfo", grd_svcspec.getUpdateData());
  261. if(submit("TXAAA01301")) {
  262. messageBox("자료 저장이 ","I002");
  263. }
  264. grd_svcspec.clearStatus();
  265. }
  266. }//if END
  267. }//fSaveSvrSpecList END
  268. //입단번호 버튼클릭시 팝업
  269. function fPopupInfo() {
  270. var row = grd_svcspec.row;
  271. // model.resetInstanceNode("/root/main/popupinfo");
  272. // setParameter("SMAAA01300_paramyn","Y");
  273. //
  274. // modal("SPAAA02400",1,100,100);
  275. //
  276. // var SMAAA01300_voluntrid = getParameter("SMAAA01300_voluntrid"); //값을 받음
  277. // if ( !isNull(SMAAA01300_voluntrid) ){
  278. // model.makeValue("/root/send/reqdata/voluntrid", SMAAA01300_voluntrid);
  279. model.makeValue("/root/source/flag",'Y'); // 수시봉사내역에서 호출함은 알려주는 플래그 값 Y
  280. model.makeValue("/root/source/popupflag",'Y'); // 팝업창 호출 플래그 값 Y
  281. model.makeNode("/root/source/voluntrnm");
  282. model.makeNode("/root/source/rrgstno1");
  283. model.makeNode("/root/source/rrgstno2");
  284. modal("SPAAA02400", "1","150", "150", "SPAAA02400", "/root/source", "/root/send/reqdata"); ///root/source 의 인스턴스를 자원봉사자조회 팝업 화면의 /root/send/reqdata 밑의 인스턴스로 복사 하며 팝업 창 호출
  285. if ( !isNull(model.getValue("/root/main/reqpopup/reqpopuplist/voluntrid")) ){
  286. model.makeValue("/root/send/reqdata/voluntrid", model.getValue("/root/main/reqpopup/reqpopuplist/voluntrid"));
  287. submit("TRAAA01302");
  288. if( !isNull(model.getValue("/root/tmp/svcspec/joinnobaseinfo/actrgstseqno")) ){
  289. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actrgstseqno", model.getValue("/root/tmp/svcspec/joinnobaseinfo/actrgstseqno"));
  290. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrid", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntrid"));
  291. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrnm", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntrnm"));
  292. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdeptcd", model.getValue("/root/tmp/svcspec/joinnobaseinfo/actdeptcd"));
  293. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdeptdetlnm", model.getValue("/root/tmp/svcspec/joinnobaseinfo/actdeptdetlnm"));
  294. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractdwcd", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntractdwcd"));
  295. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractteamcd", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntractteamcd"));
  296. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdivscd", model.getValue("/root/tmp/svcspec/joinnobaseinfo/actdivscd"));
  297. }
  298. if(isNull(model.getValue("/root/tmp/svcspec/joinnobaseinfo/actrgstseqno")) ){
  299. messageBox("원소속활동부서 정보가","I004");
  300. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdeptcd", "-");
  301. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractdwcd", "-");
  302. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractteamcd", "-");
  303. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrnm", "");
  304. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrid", "");
  305. }
  306. }
  307. model.refresh();
  308. }//fPopupInfo END
  309. //그리드에서 필수항목 체크
  310. function fCheckMandatoryInput() {
  311. for (var i = 1; i < (grd_svcspec.rows); i++) {
  312. if (model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/voluntrid") == "" ) {
  313. messageBox("미입력된 입단번호 항목을","C001");
  314. return false;
  315. }
  316. }
  317. for (var i = 1; i < (grd_svcspec.rows); i++) {
  318. if (model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/servdd") == "" ) {
  319. messageBox("미입력된 봉사일자 항목을","C001");
  320. return false;
  321. }
  322. }
  323. for (var i = 1; i < (grd_svcspec.rows); i++) {
  324. if (model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/servdd").length != 8 ) {
  325. messageBox("올바른 봉사일자 항목을","C001");
  326. return false;
  327. }
  328. }
  329. for (var i = 1; i < (grd_svcspec.rows); i++) {
  330. if ( isNull(model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/servtm"))
  331. || model.getValue("/root/main/svcspec/svcspeclist[" + i + "]/servtm") <= 0 ) {
  332. messageBox("미입력된 활동시간 항목을","C001");
  333. return false;
  334. }
  335. }
  336. return true;
  337. }//fCheckMandatoryInput END
  338. ]]>
  339. </script>
  340. </xhtml:head>
  341. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  342. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  343. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:194px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">수시봉사활동관리</caption>
  344. </group>
  345. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  346. <caption id="caption32" class="tit_2" style="left:5px; top:61px; width:170px; height:13px; font-family:돋움체; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">수시봉사내역</caption>
  347. <group id="group1" style="left:0px; top:10px; width:1194px; height:35px; font-family:돋움체; vertical-align:top; ">
  348. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">d</shape>
  349. <button id="button6" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  350. <caption>조회</caption>
  351. <script type="javascript" ev:event="DOMActivate">
  352. <![CDATA[
  353. fRefSvrSpecList();
  354. ]]>
  355. </script>
  356. </button>
  357. <caption id="cap_fromdd" class="search_name" style="left:5px; top:9px; width:100px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회기간 :</caption>
  358. <input id="ipt_fromdd" ref="/root/main/cond/actfromdd" class="input_s_essential" inputtype="date" style="left:89px; top:9px; width:90px; height:19px; "/>
  359. <line id="line13" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; "/>
  360. <input id="ipt_todd" ref="/root/main/cond/acttodd" class="input_s_essential" inputtype="date" style="left:196px; top:10px; width:90px; height:19px; "/>
  361. <caption id="caption3" style="left:184px; top:10px; width:20px; height:20px; ">~</caption>
  362. <select1 id="cmb_actdept" ref="/root/main/cond/actdeptcd" class="combo_search" appearance="minimal" style="left:512px; top:8px; width:115px; height:19px; font-family:돋움체; ">
  363. <choices>
  364. <itemset nodeset="/root/init/A0503list/A0503">
  365. <label ref="cdnm"/>
  366. <value ref="cdid"/>
  367. </itemset>
  368. </choices>
  369. </select1>
  370. <select1 id="cmb_actdivscd" ref="/root/main/cond/actdivscd" class="combo_search" appearance="minimal" style="left:420px; top:8px; width:90px; height:19px; font-family:돋움체; ">
  371. <choices>
  372. <itemset nodeset="/root/init/A0654list/A0654">
  373. <label ref="cdnm"/>
  374. <value ref="cdid"/>
  375. </itemset>
  376. </choices>
  377. </select1>
  378. <caption id="cap_posteam1" class="search_name" style="left:294px; top:9px; width:123px; height:17px; font-family:돋움체; background-image:../../../com/commonweb/images/search_bullet1.gif; ">소속분야/센터 :</caption>
  379. <caption id="caption1" class="search_name" visibility="hidden" style="left:919px; top:10px; width:83px; height:17px; font-family:돋움체; background-image:../../../com/commonweb/images/search_bullet1.gif; ">봉사구분:</caption>
  380. <caption id="caption2" class="search_name" style="left:640px; top:10px; width:132px; height:17px; font-family:돋움체; background-image:../../../com/commonweb/images/search_bullet1.gif; ">활동요일/시간대:</caption>
  381. <select1 id="cmb_servkind" ref="/root/main/cond/servkind" class="combo_search" visibility="hidden" appearance="minimal" style="left:1002px; top:9px; width:90px; height:19px; font-family:돋움체; ">
  382. <choices>
  383. <item>
  384. <label>- 전 체 -</label>
  385. <value>%</value>
  386. </item>
  387. <item>
  388. <label>원소속</label>
  389. <value>1</value>
  390. </item>
  391. <item>
  392. <label>추가소속</label>
  393. <value>2</value>
  394. </item>
  395. <item>
  396. <label>수시봉사</label>
  397. <value>4</value>
  398. </item>
  399. </choices>
  400. </select1>
  401. <select1 id="cmb_posteam1" ref="/root/main/cond/voluntractdwcd" class="combo_search" disabled="false" appearance="minimal" style="left:771px; top:9px; width:69px; height:19px; font-family:돋움체; ">
  402. <choices>
  403. <itemset nodeset="/root/init/A0359list/A0359">
  404. <label ref="cdnm"/>
  405. <value ref="cdid"/>
  406. </itemset>
  407. </choices>
  408. </select1>
  409. <select1 id="cmb_posteam2" ref="/root/main/cond/voluntractteamcd" class="combo_search" appearance="minimal" style="left:842px; top:9px; width:65px; height:19px; font-family:돋움체; ">
  410. <choices>
  411. <itemset nodeset="/root/init/A0360list/A0360">
  412. <label ref="cdnm"/>
  413. <value ref="cdid"/>
  414. </itemset>
  415. </choices>
  416. </select1>
  417. </group>
  418. <line id="line2" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; font-family:돋움체; "/>
  419. <button id="button11" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1041px; top:55px; width:53px; height:19px; font-family:돋움체; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  420. <caption>행추가</caption>
  421. <script type="javascript" ev:event="DOMActivate">
  422. <![CDATA[
  423. fInsRow();
  424. ]]>
  425. </script>
  426. </button>
  427. <button id="button3" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1096px; top:55px; width:53px; height:19px; font-family:돋움체; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  428. <caption>행삭제</caption>
  429. <script type="javascript" ev:event="DOMActivate">
  430. <![CDATA[
  431. fDelRow();
  432. ]]>
  433. </script>
  434. </button>
  435. <button id="button1" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:975px; top:55px; width:64px; height:19px; font-family:돋움체; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  436. <caption>엑셀저장</caption>
  437. <script type="javascript" ev:event="DOMActivate">
  438. <![CDATA[
  439. fExcel();
  440. ]]>
  441. </script>
  442. </button>
  443. <datagrid id="grd_svcspec" nodeset="/root/main/svcspec/svcspeclist" autoresize="true" caption="봉사자사번^성명^소속분야^소속센터^소속센터^활동요일^활동시간대^봉사일자^활동시간^내용^caption1^caption2" colsep="^" colwidth="100, 100, 100, 120, 80, 58, 90, 92, 98, 240, 100, 100" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:80px; width:1194px; height:659px; font-family:돋움체; ">
  444. <col disabled="true" ref="voluntrid" type="inputbutton" format="99999999" maxlength="8"/>
  445. <col ref="voluntrnm"/>
  446. <col ref="actdivscd" type="combo">
  447. <choices>
  448. <itemset nodeset="/root/init/A0654list/A0654">
  449. <label ref="cdnm"/>
  450. <value ref="cdid"/>
  451. </itemset>
  452. </choices>
  453. </col>
  454. <col disabled="true" ref="actdeptcd" type="combo">
  455. <choices>
  456. <itemset nodeset="/root/init/A0503list/A0503">
  457. <label ref="cdnm"/>
  458. <value ref="cdid"/>
  459. </itemset>
  460. </choices>
  461. </col>
  462. <col ref="actdeptdetlnm"/>
  463. <col disabled="true" ref="voluntractdwcd" type="combo">
  464. <choices>
  465. <itemset nodeset="/root/init/A0359list/A0359">
  466. <label ref="cdnm"/>
  467. <value ref="cdid"/>
  468. </itemset>
  469. </choices>
  470. </col>
  471. <col disabled="true" ref="voluntractteamcd" type="combo">
  472. <choices>
  473. <itemset nodeset="/root/init/A0360list/A0360">
  474. <label ref="cdnm"/>
  475. <value ref="cdid"/>
  476. </itemset>
  477. </choices>
  478. </col>
  479. <col ref="servdd" type="inputdate"/>
  480. <col ref="servtm" type="input" format="#.9" maxlength="2" style="text-align:center; "/>
  481. <col ref="attdrem" type="input" maxlength="100"/>
  482. <col ref="servseqno" visibility="hidden"/>
  483. <col ref="actrgstseqno" visibility="hidden"/>
  484. <script type="javascript" ev:event="onbuttonclick">
  485. <![CDATA[
  486. var idx = grd_svcspec.row;
  487. if(grd_svcspec.colRef("voluntrid") == grd_svcspec.col){
  488. if(grd_svcspec.rowStatus(idx) == "1" || grd_svcspec.rowStatus(idx) == "3"){
  489. fPopupInfo();
  490. }
  491. }
  492. ]]>
  493. </script>
  494. <script type="javascript" ev:event="onendedit">
  495. <![CDATA[
  496. var row = grd_svcspec.row;
  497. if(grd_svcspec.colRef("voluntrid") == grd_svcspec.col){
  498. if(grd_svcspec.rowStatus(row) == "1" || grd_svcspec.rowStatus(row) == "3"){
  499. // if ((grd_svcspec.row+1) == grd_svcspec.rows) {
  500. // if(!isNull(model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntrnm"))) {
  501. // messageBox("올바른 입단번호 항목을","C001");
  502. // return;
  503. // }
  504. model.makeValue("/root/send/reqdata/voluntrid", model.getValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrid"));
  505. submit("TRAAA01302");
  506. if( !isNull(model.getValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrid")) ){
  507. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actrgstseqno", model.getValue("/root/tmp/svcspec/joinnobaseinfo/actrgstseqno"));
  508. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrid", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntrid"));
  509. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntrnm", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntrnm"));
  510. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdeptcd", model.getValue("/root/tmp/svcspec/joinnobaseinfo/actdeptcd"));
  511. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdeptdetlnm", model.getValue("/root/tmp/svcspec/joinnobaseinfo/actdeptdetlnm"));
  512. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractdwcd", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntractdwcd"));
  513. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractteamcd", model.getValue("/root/tmp/svcspec/joinnobaseinfo/voluntractteamcd"));
  514. }
  515. if( isNull(model.getValue("/root/main/svcspec/svcspeclist["+row+"]/actrgstseqno")) ){
  516. messageBox("원소속활동부서 정보가","I004");
  517. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/actdeptcd", "-");
  518. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractdwcd", "-");
  519. model.setValue("/root/main/svcspec/svcspeclist["+row+"]/voluntractteamcd", "-");
  520. return;
  521. }
  522. // }
  523. model.refresh();
  524. }
  525. }
  526. ]]>
  527. </script>
  528. </datagrid>
  529. <button id="btn_save" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1151px; top:55px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  530. <caption>저장</caption>
  531. <script type="javascript" ev:event="DOMActivate">
  532. <![CDATA[
  533. if ( !fCheckMandatoryInput() ) return;
  534. fSaveSvrSpecList();
  535. if( grd_svcspec.rows!="1")
  536. fRefSvrSpecList();
  537. ]]>
  538. </script>
  539. </button>
  540. <button id="button10" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:920px; top:55px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  541. <caption>초기화</caption>
  542. <script type="javascript" ev:event="DOMActivate">
  543. <![CDATA[
  544. fReset();
  545. ]]>
  546. </script>
  547. </button>
  548. </group>
  549. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  550. <line id="line16" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  551. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  552. </group>
  553. </xhtml:body>
  554. </xhtml:html>