SMAAA00800_회의교육행사관리.xrw 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  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. <actfromdd/>
  12. <todd1/>
  13. <bizflag/>
  14. <flagcd/>
  15. <rgstteamflag/>
  16. </search>
  17. <grdlist>
  18. <itemlist>
  19. <biznm/>
  20. <flagnm/>
  21. <fromdd/>
  22. <todd/>
  23. <attntrqty/>
  24. <educfestivnm/>
  25. <servtmrcogflag/>
  26. <dayeductm/>
  27. <plcenm/>
  28. <chrgpsnnm/>
  29. <educfestivrem/>
  30. <educfestivseqno/>
  31. <rgstteamflag/>
  32. <confflagcd/>
  33. <educfestivcd/>
  34. <benfflagcd/>
  35. <bizflag/>
  36. <flagcd/>
  37. <grupid/>
  38. <conflagnm/>
  39. <status/>
  40. </itemlist>
  41. </grdlist>
  42. <cond>
  43. <condinfo>
  44. <flagnm/>
  45. <fromdd/>
  46. <todd/>
  47. <attntrqty/>
  48. <educfestivnm/>
  49. <dayeductm/>
  50. <servtmrcogflag/>
  51. <plcenm/>
  52. <chrgpsnnm/>
  53. <educfestivrem/>
  54. <educfestivseqno/>
  55. <rgstteamflag/>
  56. <confflagcd/>
  57. <educfestivcd/>
  58. <benfflagcd/>
  59. <bizflag/>
  60. <flagcd/>
  61. <grupid/>
  62. <conflagnm/>
  63. <status/>
  64. </condinfo>
  65. </cond>
  66. </main>
  67. <init>
  68. <A0513list/>
  69. <A0505list/>
  70. <A0362list/>
  71. <A0019list/>
  72. <A0525list/>
  73. <A0513list1/>
  74. <all>
  75. <cdid>00</cdid>
  76. <cdnm>전체</cdnm>
  77. </all>
  78. <A0505listbottom/>
  79. <A0362listbottom/>
  80. <A0019listbottom/>
  81. <A0655list/>
  82. <A0364list/>
  83. </init>
  84. <send>
  85. <reqdata/>
  86. <savedata/>
  87. </send>
  88. <temp/>
  89. </root>
  90. </instance>
  91. <script type="javascript" ev:event="xforms-ready">
  92. <![CDATA[
  93. fInit();
  94. ]]>
  95. </script>
  96. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  97. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  98. <submission id="TRAAA00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/grdlist"/>
  99. <submission id="TXAAA00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
  100. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  101. </model>
  102. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  107. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  108. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  109. </xhtml:head>
  110. <script type="javascript">
  111. <![CDATA[
  112. //1. 화명 오픈시 초기화
  113. function fInit()
  114. {
  115. model.removeNodeset("/root/main/grdlist/itemlist");
  116. //날짜 초기화
  117. var Ndate = getNewDate();
  118. var Idate = Ndate.getDateFormat("YYYYMM")+"01";
  119. model.setValue("/root/main/search/actfromdd", Idate);
  120. var sDate = getNewDate(); //달의 마지막날 가져오기
  121. var lastDate = sDate.getFullYear();
  122. lastDate = lastDate.toString() + (( sDate.getMonth() + 1 > 9 ) ? sDate.getMonth() + 1 : "0" + (sDate.getMonth() + 1));
  123. lastDate = lastDate.toString() + sDate.getMonthDay();
  124. model.setValue("/root/main/search/todd1", lastDate);
  125. model.setValue("/root/main/cond/condinfo/servtmrcogflag","N");
  126. //하단테이블 날짜 초기화
  127. model.setValue("/root/main/cond/condinfo/fromdd", getCurrentDate());
  128. model.setValue("/root/main/cond/condinfo/todd", getCurrentDate());
  129. //구분코드 초기화
  130. model.setValue("/root/main/search/bizflag", "0");
  131. if(model.getValue("/root/main/search/bizflag") == "0") { //업무구분코드가 전체일때 구분코드 ""
  132. model.setValue("/root/main/search/flagcd","");
  133. cmb_flagcd.disabled = true;
  134. }
  135. model.setValue("/root/main/search/rgstteamflag", "0");
  136. // status 상태 설정
  137. model.setValue("/root/main/cond/condinfo/status",'i'); //default 'i'
  138. //공통코드 조회한다
  139. addComboItem("rdo_bizflag", "전체", "0", "above");
  140. addComboItem("cmb_rgstteamflag", "전체", "0", "above");
  141. zbcfGetCodeList(new Array("A0513", "A0525", "A0655"), new Array("/root/init/A0513list", "/root/init/A0525list","/root/init/A0655list"), true);
  142. zbcfGetCodeList(new Array("A0505","A0362", "A0364"), new Array("/root/init/A0505list", "/root/init/A0362list", "/root/init/A0364list"), true);//input박스는 한개 instance만 교체
  143. //유형코드 조회(Cache 방식)
  144. zbcfGetKindCodeList(
  145. new Array("A0019"), //업무규칙
  146. new Array("A0364"), //코드군
  147. new Array("/root/init/A0019list"), //노드
  148. true, //minimum : true TRZBC00105
  149. new Array("dispseq"), //sorting 항목
  150. new Array("asc")
  151. );
  152. //하단의 콤보 인스턴스 생성.전체가 제외된 인스턴스가 필요하므로 별도의 노드를 만든다
  153. copyNodesetType("/root/init/A0505listbottom","/root/init/A0505list","replace",model,model);
  154. copyNodesetType("/root/init/A0362listbottom","/root/init/A0362list","replace",model,model);
  155. copyNodesetType("/root/init/A0019listbottom","/root/init/A0019list","replace",model,model);
  156. //조건부 콤보에 전체를 추가한다.
  157. copyNodesetType("/root/init/A0505list/A0505","/root/init/all","before",model,model);
  158. copyNodesetType("/root/init/A0362list/A0362","/root/init/all","before",model,model);
  159. copyNodesetType("/root/init/A0019list/A0019A0364","/root/init/all","before",model,model);
  160. //메뉴파라미터값에 따른 활동부서 비활성처리
  161. //SMAAA00800_param : 호스피스 : 2 원목실 : 3
  162. var SMAAA00800_param = getScreenMenuParameter(); //1
  163. if(SMAAA00800_param=='2') {
  164. model.setValue("/root/main/search/rgstteamflag", SMAAA00800_param);
  165. cmb_rgstteamflag.disabled = true;
  166. }
  167. if(SMAAA00800_param=='3') {
  168. model.setValue("/root/main/search/rgstteamflag", SMAAA00800_param);
  169. cmb_rgstteamflag.disabled = true;
  170. }
  171. model.refresh();
  172. }
  173. // 2. 조회
  174. function fSearch()
  175. {
  176. //메뉴파라미터값이 있을때 rgstTeamFlag 처리
  177. //value값이 없는 경우, '1'로 처리
  178. if (model.getValue("/root/main/search/actfromdd") == "" ) {
  179. messageBox("시작일자는 ","I003");
  180. model.setFocus("ipt_actfromdd");
  181. return false;
  182. }
  183. if (model.getValue("/root/main/search/actfromdd").length != 8 ) {
  184. messageBox("올바른 시작일자 항목을","C001");
  185. model.setFocus("ipt_actfromdd");
  186. return false;
  187. }
  188. if (model.getValue("/root/main/search/todd1") == "" ) {
  189. messageBox("종료일자는 ","I003");
  190. model.setFocus("ipt_todd1");
  191. return false;
  192. }
  193. if (model.getValue("/root/main/search/todd1").length != 8 ) {
  194. messageBox("올바른 시작일자 항목을","C001");
  195. model.setFocus("ipt_todd1");
  196. return false;
  197. }
  198. if (model.getValue("/root/main/search/actfromdd") > model.getValue("/root/main/search/todd1")) {
  199. messageBox("올바른 조회기간을","C001");
  200. model.setFocus("ipt_actfromdd");
  201. return false;
  202. }
  203. model.makeNode("/root/main/grdlist/itemlist"); //fInit()에서 removeNodeset을 했기에 makeNode로 생성
  204. model.removeNodeset("/root/send/reqdata"); //보낼data node 삭제
  205. model.makeNode("/root/send/reqdata"); //보낼data node 생성
  206. model.copyNode("/root/send/reqdata", "/root/main/search"); //copyNode
  207. submit("TRAAA00801"); //submit
  208. }
  209. //3. 회의교육행사 리스트 선택시 등록부분에 셋팅
  210. function fGetItemListInfo() {
  211. var idxRow = grd_itemlist.row; //- 위치
  212. var idxCol = grd_itemlist.col; //|
  213. var SMAAA00800_param = getScreenMenuParameter(); //메뉴파라미터 값
  214. if(idxRow <1 || idxCol<1) return; //그리드 data외 return
  215. model.copyNode("/root/main/cond/condinfo", "/root/main/grdlist/itemlist["+ idxRow +"]"); //- data copyNode
  216. model.setValue("/root/main/cond/condinfo/status",'u'); // 수정 status 설정
  217. opt_flagnm1.visible=true; //3. 구분visible
  218. cmb_flagcd1.visible=false;
  219. rdo_bizflag1.disabled = true; //구분 수정불가
  220. opt_flagnm1.disabled = true;
  221. cmb_flagcd1.visible=false; //구분cmb숨김
  222. if(model.getValue("/root/main/grdlist/itemlist["+ idxRow +"]/bizflag") =='3') {
  223. ipt_dayeductm.disabled = true;
  224. } else {
  225. ipt_dayeductm.disabled = false;
  226. }
  227. if((SMAAA00800_param == '1' && model.getValue("/root/main/cond/condinfo/rgstteamflag") =='1')
  228. ||SMAAA00800_param == '' ) {
  229. btn_del.disabled = false;
  230. btn_save.disabled = false;
  231. } else if(SMAAA00800_param == '2' && model.getValue("/root/main/cond/condinfo/rgstteamflag") =='2') {
  232. btn_del.disabled = false;
  233. btn_save.disabled = false;
  234. } else if(SMAAA00800_param == '3' && model.getValue("/root/main/cond/condinfo/rgstteamflag") =='3') {
  235. btn_del.disabled = false;
  236. btn_save.disabled = false;
  237. ipt_dayeductm.disabled = true;
  238. } else {
  239. btn_del.disabled = true;
  240. btn_save.disabled = true;
  241. }
  242. if(model.getValue("/root/main/cond/condinfo/bizflag")==2 || model.getValue("/root/main/cond/condinfo/bizflag")==3) {
  243. ipt_attntrqty.disabled=true;
  244. }
  245. if(model.getValue("/root/main/cond/condinfo/bizflag")==1) {
  246. ipt_attntrqty.disabled=false;
  247. }
  248. //node 복사
  249. model.makeNode("/root/temp/main/cond");
  250. model.copyNode("/root/temp/main/cond","/root/main/cond");
  251. //그리드bizflag (회의, 교육행사, 단체수혜) 조건시 처리
  252. if(model.getValue("/root/main/grdlist/itemlist["+ idxRow +"]/bizflag") == "1") {
  253. model.setValue("/root/main/cond/condinfo/bizflag", "1"); //회의
  254. model.setValue("/root/main/cond/condinfo/flagnm", model.getValue("/root/main/grdlist/itemlist["+ idxRow +"]/flagnm"));//flagnm setValue
  255. }
  256. if(model.getValue("/root/main/grdlist/itemlist["+ idxRow +"]/bizflag") == "2") {
  257. model.setValue("/root/main/cond/condinfo/bizflag", "2");
  258. model.setValue("/root/main/cond/condinfo/flagnm", model.getValue("/root/main/grdlist/itemlist["+ idxRow +"]/flagnm"));
  259. }
  260. if(model.getValue("/root/main/grdlist/itemlist["+ idxRow +"]/bizflag") == "3") {
  261. model.setValue("/root/main/cond/condinfo/bizflag", "3");
  262. model.setValue("/root/main/cond/condinfo/flagnm", model.getValue("/root/main/grdlist/itemlist["+ idxRow +"]/flagnm"));
  263. }
  264. rdo_bizflag1.refresh();
  265. opt_flagnm1.refresh();
  266. }
  267. //4. 회의/교육행사 등록시 필수 저장여부 체크
  268. function fDefaultCheck() {
  269. if(model.getValue("/root/main/cond/condinfo/bizflag") =="") {
  270. messageBox("업무구분을 ","C002");
  271. model.setFocus("rdo_bizflag1");
  272. return false;
  273. }
  274. if(model.getValue("/root/main/cond/condinfo/flagcd") =="") {
  275. messageBox("구분코드을 ","C002");
  276. model.setFocus("cmb_flagcd1");
  277. return false;
  278. }
  279. if(model.getValue("/root/main/cond/condinfo/fromdd") =="" || model.getValue("/root/main/cond/condinfo/fromdd").length != 8) {
  280. messageBox("시작일자는 ","I003");
  281. model.setFocus("ipt_fromdd");
  282. return false;
  283. }
  284. if(model.getValue("/root/main/cond/condinfo/todd") =="" || model.getValue("/root/main/cond/condinfo/todd").length != 8 ) {
  285. messageBox("종료일자는 ","I003");
  286. model.setFocus("ipt_todd");
  287. return false;
  288. }
  289. if(model.getValue("/root/main/cond/condinfo/fromdd") > model.getValue("/root/main/cond/condinfo/todd")) {
  290. messageBox("올바른 조회기간을","C001");
  291. model.setFocus("ipt_fromdd");
  292. return false;
  293. }
  294. if(model.getValue("/root/main/cond/condinfo/bizflag") =="2") {
  295. if(model.getValue("/root/main/cond/condinfo/dayeductm") =="" ) {
  296. messageBox("1일교육시간은 ","I003");
  297. model.setFocus("ipt_dayeductm");
  298. return false;
  299. }
  300. if(model.getValue("/root/main/cond/condinfo/dayeductm") <= 0) {
  301. messageBox("1일교육시간은 0시간을 넣을 수","I004");
  302. model.setFocus("ipt_dayeductm");
  303. return false;
  304. }
  305. if(model.getValue("/root/main/cond/condinfo/servtmrcogflag") =="")
  306. {
  307. messageBox("봉사시간인정여부는 ","I003");
  308. model.setFocus("rdo_servtmrcogflag");
  309. return false;
  310. }
  311. }
  312. if(model.getValue("/root/main/cond/condinfo/educfestivnm") =="") {
  313. messageBox("교육행사명은 ","I003");
  314. model.setFocus("cmb_flagcd1");
  315. return false;
  316. }
  317. return true;
  318. }
  319. //5. 회의/교육행사 등록 부분의 초기화버튼 클릭시
  320. function fRgstReset() {
  321. rdo_bizflag1.disabled=false; //구분(rdo, cmb) 처리
  322. cmb_flagcd1.disabled=false;
  323. cmb_flagcd1.visible=true;
  324. opt_flagnm1.visible=false;
  325. model.resetInstanceNode("/root/main/cond/condinfo"); //4. resetInstanceNode
  326. model.setValue("/root/main/cond/condinfo/status",'i');
  327. model.setValue("/root/main/cond/condinfo/servtmrcogflag","N"); //하단 table 봉사시간인정여부 "N"
  328. //하단테이블 날짜 초기화
  329. model.setValue("/root/main/cond/condinfo/fromdd", getCurrentDate());
  330. model.setValue("/root/main/cond/condinfo/todd", getCurrentDate());
  331. model.refresh();
  332. }
  333. //6. 회의/교육행사 등록 저장버튼 클릭시
  334. function fSaveFestivRgst() {
  335. var status = model.getValue("/root/main/cond/condinfo/status"); //'i', 'u'
  336. model.removeNodeset("/root/send/savedata");
  337. model.makeNode("/root/send/savedata");
  338. model.copyNode("/root/send/savedata", "/root/main/cond");
  339. if (status == 'i') { //저장
  340. //호스피스/원목실에서 저장할때의 처리
  341. var SMAAA00800_param = getScreenMenuParameter(); //1
  342. if(SMAAA00800_param=='2') {
  343. model.setValue("/root/send/savedata/condinfo/rgstteamflag", SMAAA00800_param);
  344. }
  345. if(SMAAA00800_param=='3') {
  346. model.setValue("/root/send/savedata/condinfo/rgstteamflag", SMAAA00800_param);
  347. }
  348. if ( isNull(model.getValue("/root/send/savedata/condinfo/rgstteamflag"))
  349. || model.getValue("/root/send/savedata/condinfo/rgstteamflag") =="0"){
  350. model.setValue("/root/send/savedata/condinfo/rgstteamflag","1");
  351. }
  352. if (submit("TXAAA00801", false) == true) {
  353. messageBox("자료 저장이", "I002");
  354. fRgstReset();
  355. }
  356. } else if (status == 'u') { //수정
  357. //변경여부체크
  358. if (instance1.selectSingleNode("/root/temp/main/cond").xml == instance1.selectSingleNode("/root/main/cond").xml) {
  359. messageBox("변경된 데이터가 ","I004");
  360. return;
  361. } else {
  362. model.copyNode("/root/send/savedata", "/root/main/cond");
  363. submit("TXAAA00801");
  364. fRgstReset();
  365. }
  366. }
  367. fSearch();
  368. model.refresh();
  369. }
  370. //7. 회의/교육행사 삭제
  371. function fDelFestivRgst() {
  372. if (model.getValue("/root/main/cond/condinfo/educfestivseqno") =="") {
  373. messageBox("삭제할 데이터가 ","I004");
  374. return;
  375. } else {
  376. var btn = messageBox("선택한 회의/교육행사 등록을 ","Q001");
  377. if(btn == "6"){
  378. model.removeNodeset("/root/send/savedata");
  379. model.makeNode("/root/send/savedata");
  380. model.setValue("/root/main/cond/condinfo/status", "d");
  381. model.copyNode("/root/send/savedata", "/root/main/cond");
  382. if(model.getValue("/root/main/cond/condinfo/attntrqty") == "0" || rdo_bizflag1.value=="1")
  383. {
  384. submit("TXAAA00801");
  385. }
  386. else
  387. {
  388. messageBox("해당 행사는 출결정보가 존재합니다. 삭제할 수 없습니다 ","I");
  389. }
  390. fSearch();
  391. fRgstReset();
  392. model.refresh();
  393. } else if (btn == "7") {
  394. return;
  395. }
  396. }
  397. }
  398. //8. 부모창으로 값넘기기
  399. function fSendParam()
  400. {
  401. if(checkOpener())
  402. {
  403. var row=grd_itemlist.row; // 클릭한 행 저장
  404. if(model.getValue("/root/properties/uid/opener") =='')
  405. {
  406. return;
  407. }
  408. if(row<1) return;
  409. if(row>=1)
  410. { // 조회된 결과가 있을 때
  411. model.makeValue("/root/main/grdlist/itemlist"+"["+row+"]/flag","Y");
  412. // 클릭한 행의 falg값에 Y셋팅
  413. model.copyNode(opener.root.main.reqpopup.reqpopuplist,"/root/main/grdlist/itemlist["+row+"]");
  414. // 교육행사 출결관리 화면에 셋팅한 flag 'Y'를 보내줌
  415. model.refresh();
  416. window.close();
  417. }
  418. else
  419. {
  420. messageBox("상위화면이 변경되어 데이터를 가져올 수","I004");
  421. model.makeValue("/root/main/grdlist/itemlist"+"["+row+"]/flag","N");
  422. model.copyNode(opener.root.main.reqpopup.reqpopuplist,"/root/main/grdlist/itemlist["+row+"]");
  423. opener.model.refresh();
  424. }
  425. }
  426. }
  427. ]]>
  428. </script>
  429. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  430. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  431. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:126px; height:14px; ">회의/교육행사관리</caption>
  432. </group>
  433. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  434. <line id="line12" class="line_1" style="x1:0px; y1:77px; x2:1194px; y2:77px; "/>
  435. <caption id="caption32" class="tit_2" style="left:5px; top:60px; width:141px; height:13px; ">회의/교육행사리스트</caption>
  436. <group id="group1" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  437. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  438. <caption id="cap_actfromdd" class="search_name" style="left:15px; top:8px; width:112px; height:17px; ">조회기간 :</caption>
  439. <caption id="cap_todd1" class="search_name" style="left:15px; top:8px; width:112px; height:17px; ">조회기간 :</caption>
  440. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  441. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:8px; width:56px; height:22px; ">
  442. <caption>조회</caption>
  443. <script type="javascript" ev:event="DOMActivate">
  444. <![CDATA[
  445. fSearch();
  446. ]]>
  447. </script>
  448. </button>
  449. <caption id="caption5" class="search_no_b" style="left:200px; top:7px; width:12px; height:17px; ">~</caption>
  450. <input id="ipt_todd1" ref="/root/main/search/todd1" class="input_s_essential" inputtype="date" style="left:216px; top:7px; width:90px; height:19px; "/>
  451. <input id="ipt_actfromdd" ref="/root/main/search/actfromdd" class="input_s_essential" inputtype="date" style="left:106px; top:7px; width:90px; height:19px; "/>
  452. <select1 id="rdo_bizflag" ref="/root/main/search/bizflag" appearance="full" cols="4" overflow="visible" style="left:510px; top:9px; width:215px; height:20px; border-style:none; ">
  453. <choices>
  454. <itemset nodeset="/root/init/A0513list/A0513">
  455. <label ref="cdnm"/>
  456. <value ref="cdid"/>
  457. </itemset>
  458. </choices>
  459. <script type="javascript" ev:event="xforms-value-changed">
  460. <![CDATA[
  461. if (model.getValue("/root/main/search/bizflag") == "0"){//전체선택시
  462. cmb_flagcd.disabled = true;
  463. model.setValue("/root/main/search/flagcd","");
  464. }
  465. if (model.getValue("/root/main/search/bizflag") == "1"){//회의선택시
  466. cmb_flagcd.disabled = false;
  467. cmb_flagcd.choices.itemset.attribute("nodeset") = "/root/init/A0655list/A0655";
  468. model.setValue("/root/main/search/flagcd","00");
  469. }
  470. if (model.getValue("/root/main/search/bizflag") == "2"){//교육행사선택시
  471. cmb_flagcd.disabled = false;
  472. cmb_flagcd.choices.itemset.attribute("nodeset") = "/root/init/A0362list/A0362";
  473. model.setValue("/root/main/search/flagcd","00");
  474. }
  475. if (model.getValue("/root/main/search/bizflag") == "3"){//단체수혜선택시
  476. cmb_flagcd.disabled = false;
  477. cmb_flagcd.choices.itemset.attribute("nodeset") = "/root/init/A0364list/A0364";
  478. model.setValue("/root/main/search/flagcd","00");
  479. }
  480. cmb_flagcd.refresh();
  481. ]]>
  482. </script>
  483. </select1>
  484. <select1 id="cmb_flagcd" ref="/root/main/search/flagcd" class="combo_search" appearance="minimal" style="left:740px; top:9px; width:100px; height:19px; ">
  485. <choices>
  486. <itemset>
  487. <label ref="cdnm"/>
  488. <value ref="cdid"/>
  489. </itemset>
  490. </choices>
  491. </select1>
  492. <caption id="caption7" class="search_name" style="left:361px; top:8px; width:145px; height:17px; ">회의/교육행사구분 :</caption>
  493. <caption id="caption11" class="search_name" style="left:884px; top:8px; width:65px; height:17px; ">구분 :</caption>
  494. </group>
  495. <datagrid id="grd_itemlist" nodeset="/root/main/grdlist/itemlist" allowuserresize="true" autoresize="true" caption="구분^구분^기간^기간^참석자수^교육행사명^인정여부^1일교육시간^장소^담당자^내용^caption1^caption2^caption3^caption4^caption5" colsep="^" colwidth="80, 80, 85, 85, 80, 230, 61, 90, 170, 80, 85, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:82px; width:1194px; height:515px; ">
  496. <col ref="biznm" style="text-align:center; "/>
  497. <col ref="flagnm" style="text-align:center; "/>
  498. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  499. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  500. <col ref="attntrqty" style="text-align:right; "/>
  501. <col ref="educfestivnm"/>
  502. <col ref="servtmrcogflag" style="text-align:center; "/>
  503. <col ref="dayeductm" style="text-align:right; "/>
  504. <col ref="plcenm"/>
  505. <col ref="chrgpsnnm"/>
  506. <col ref="educfestivrem"/>
  507. <col ref="educfestivseqno" visibility="hidden"/>
  508. <col ref="rgstteamflag" visibility="hidden"/>
  509. <col ref="confflagcd" visibility="hidden"/>
  510. <col ref="educfestivcd" visibility="hidden"/>
  511. <col ref="benfflagcd" visibility="hidden"/>
  512. <col ref="bizflag" visibility="hidden"/>
  513. <col ref="flagcd" visibility="hidden"/>
  514. <col ref="grupid" visibility="hidden"/>
  515. <col ref="conflagnm" visibility="hidden"/>
  516. <col ref="status" visibility="hidden"/>
  517. <script type="javascript" ev:event="ondblclick">
  518. <![CDATA[
  519. fSendParam();
  520. //model.close();
  521. ]]>
  522. </script>
  523. <script type="javascript" ev:event="onclick">
  524. <![CDATA[
  525. fGetItemListInfo();
  526. model.refresh();
  527. ]]>
  528. </script>
  529. </datagrid>
  530. <caption id="caption2" class="tit_2" style="left:0px; top:608px; width:134px; height:13px; ">회의/교육행사 등록</caption>
  531. <line id="line1" class="line_1" style="x1:2px; y1:624px; x2:1194px; y2:624px; "/>
  532. <line id="line4" class="line_2" style="x1:0px; y1:651px; x2:1194px; y2:651px; "/>
  533. <button id="btn_del" class="btn5_letter2" style="left:1096px; top:604px; width:42px; height:19px; ">
  534. <caption>삭제</caption>
  535. <script type="javascript" ev:event="DOMActivate">
  536. <![CDATA[
  537. fDelFestivRgst();
  538. model.refresh();
  539. ]]>
  540. </script>
  541. </button>
  542. <button id="btn_listsearch" class="btn5_letter3" style="left:1140px; top:604px; width:53px; height:19px; ">
  543. <caption>초기화</caption>
  544. <script type="javascript" ev:event="DOMActivate">
  545. <![CDATA[
  546. fRgstReset();
  547. ]]>
  548. </script>
  549. </button>
  550. <select1 id="rdo_bizflag1" ref="/root/main/cond/condinfo/bizflag" appearance="full" cols="3" overflow="visible" style="left:84px; top:630px; width:185px; height:20px; border-style:none; ">
  551. <choices>
  552. <item>
  553. <label>회의</label>
  554. <value>1</value>
  555. </item>
  556. <item>
  557. <label>교육행사</label>
  558. <value>2</value>
  559. </item>
  560. <item>
  561. <label>단체수혜</label>
  562. <value>3</value>
  563. </item>
  564. </choices>
  565. <script type="javascript" ev:event="xforms-value-changed">
  566. <![CDATA[
  567. //회의/교육행사등록 구분콤보박스 셋팅
  568. if (model.getValue("/root/main/cond/condinfo/bizflag") == "1"){//회의선택시
  569. ipt_attntrqty.disabled = false;
  570. ipt_dayeductm.disabled= false;
  571. cmb_flagcd1.choices.itemset.attribute("nodeset") = "/root/init/A0655list/A0655";
  572. model.setValue("/root/main/cond/condinfo/dayeductm", "");
  573. model.setValue("/root/main/cond/condinfo/educfestivnm", "");
  574. model.setValue("/root/main/cond/condinfo/plcenm", "");
  575. model.setValue("/root/main/cond/condinfo/attntrqty", "");
  576. model.setValue("/root/main/cond/condinfo/chrgpsnnm", "");
  577. model.setValue("/root/main/cond/condinfo/educfestivrem", "");
  578. model.setValue("/root/main/cond/condinfo/flagcd","01");
  579. model.setValue("/root/main/cond/condinfo/servtmrcogflag","N");
  580. model.refresh();
  581. }
  582. if (model.getValue("/root/main/cond/condinfo/bizflag") == "2"){//교육행사선택시
  583. ipt_attntrqty.disabled = true;
  584. ipt_dayeductm.disabled= false;
  585. cmb_flagcd1.choices.itemset.attribute("nodeset") = "/root/init/A0362listbottom/A0362";
  586. model.setValue("/root/main/cond/condinfo/dayeductm", "");
  587. model.setValue("/root/main/cond/condinfo/educfestivnm", "");
  588. model.setValue("/root/main/cond/condinfo/plcenm", "");
  589. model.setValue("/root/main/cond/condinfo/attntrqty", "");
  590. model.setValue("/root/main/cond/condinfo/chrgpsnnm", "");
  591. model.setValue("/root/main/cond/condinfo/educfestivrem", "");
  592. model.setValue("/root/main/cond/condinfo/flagcd","01");
  593. model.setValue("/root/main/cond/condinfo/servtmrcogflag","N");
  594. model.refresh();
  595. }
  596. if (model.getValue("/root/main/cond/condinfo/bizflag") == "3"){//단체수혜선택시
  597. ipt_attntrqty.disabled = true;
  598. ipt_dayeductm.disabled= true;
  599. model.setValue("/root/main/cond/condinfo/dayeductm", "");
  600. model.setValue("/root/main/cond/condinfo/educfestivnm", "");
  601. model.setValue("/root/main/cond/condinfo/plcenm", "");
  602. model.setValue("/root/main/cond/condinfo/attntrqty", "");
  603. model.setValue("/root/main/cond/condinfo/chrgpsnnm", "");
  604. model.setValue("/root/main/cond/condinfo/educfestivrem", "");
  605. cmb_flagcd1.choices.itemset.attribute("nodeset") = "/root/init/A0364list/A0364";
  606. model.setValue("/root/main/cond/condinfo/flagcd","02");
  607. model.setValue("/root/main/cond/condinfo/servtmrcogflag","N");
  608. model.refresh();
  609. }
  610. cmb_flagcd1.refresh();
  611. ]]>
  612. </script>
  613. </select1>
  614. <button id="btn_save" class="btn5_letter2" style="left:1052px; top:604px; width:42px; height:19px; ">
  615. <caption>저장</caption>
  616. <script type="javascript" ev:event="DOMActivate">
  617. <![CDATA[
  618. if ( !fDefaultCheck()) return; //필수 저장여부 체크
  619. fSaveFestivRgst();
  620. model.refresh();
  621. ]]>
  622. </script>
  623. </button>
  624. <line id="line3" class="line_2" style="x1:0px; y1:675px; x2:1194px; y2:675px; "/>
  625. <caption id="caption15" class="cell_1" style="left:2px; top:677px; width:80px; height:63px; vertical-align:middle; ">내용</caption>
  626. <input id="ipt_plcenm" ref="/root/main/cond/condinfo/plcenm" class="input" navindex="4" maxlength="20" max="10" style="left:462px; top:654px; width:203px; height:19px; border-style:solid; "/>
  627. <input id="ipt_attntrqty" ref="/root/main/cond/condinfo/attntrqty" class="input" navindex="5" maxlength="5" format="9999" max="10" style="left:752px; top:654px; width:72px; height:19px; border-style:solid; "/>
  628. <input id="ipt_educfestivnm" ref="/root/main/cond/condinfo/educfestivnm" class="input" navindex="3" maxlength="100" max="100" style="left:84px; top:654px; width:294px; height:19px; border-style:solid; "/>
  629. <textarea id="ipt_educfestivrem" ref="/root/main/cond/condinfo/educfestivrem" navindex="7" maxlength="100" style="left:84px; top:678px; width:1107px; height:60px; "/>
  630. <caption id="caption12" style="left:826px; top:654px; width:18px; height:20px; ">명</caption>
  631. <input id="ipt_chrgpsnnm" ref="/root/main/cond/condinfo/chrgpsnnm" navindex="6" maxlength="6" style="left:907px; top:654px; width:63px; height:19px; "/>
  632. <input id="ipt_dayeductm" ref="/root/main/cond/condinfo/dayeductm" navindex="1" maxlength="2" format="99" style="left:752px; top:630px; width:72px; height:19px; "/>
  633. <input id="ipt_fromdd" ref="/root/main/cond/condinfo/fromdd" inputtype="date" style="left:462px; top:630px; width:91px; height:19px; "/>
  634. <input id="ipt_todd" ref="/root/main/cond/condinfo/todd" inputtype="date" style="left:571px; top:630px; width:91px; height:19px; "/>
  635. <caption id="caption1" style="left:557px; top:632px; width:15px; height:20px; ">~</caption>
  636. <select1 id="rdo_servtmrcogflag" ref="/root/main/cond/condinfo/servtmrcogflag" navindex="2" appearance="full" cols="2" overflow="visible" style="left:972px; top:630px; width:79px; height:20px; border-style:none; ">
  637. <choices>
  638. <item>
  639. <label>Y</label>
  640. <value>Y</value>
  641. </item>
  642. <item>
  643. <label>N</label>
  644. <value>N</value>
  645. </item>
  646. </choices>
  647. </select1>
  648. <select1 id="cmb_rgstteamflag" ref="/root/main/search/rgstteamflag" appearance="minimal" style="left:950px; top:17px; width:100px; height:19px; ">
  649. <choices>
  650. <itemset nodeset="/root/init/A0525list/A0525">
  651. <label ref="cdnm"/>
  652. <value ref="cdid"/>
  653. </itemset>
  654. </choices>
  655. </select1>
  656. <input id="opt_flagnm1" ref="/root/main/cond/condinfo/flagnm" style="left:275px; top:630px; width:98px; height:19px; "/>
  657. <select1 id="cmb_flagcd1" ref="/root/main/cond/condinfo/flagcd" appearance="minimal" style="left:270px; top:630px; width:108px; height:19px; ">
  658. <choices>
  659. <itemset>
  660. <label ref="cdnm"/>
  661. <value ref="cdid"/>
  662. </itemset>
  663. </choices>
  664. </select1>
  665. <caption id="caption10" class="cell_1" style="left:851px; top:629px; width:119px; height:23px; vertical-align:middle; ">봉사시간 인정여부</caption>
  666. <caption id="caption3" class="cell_1" style="left:2px; top:629px; width:80px; height:23px; vertical-align:middle; ">구분</caption>
  667. <caption id="caption4" class="cell_1" style="left:380px; top:629px; width:80px; height:23px; vertical-align:middle; ">교육행사기간</caption>
  668. <caption id="caption8" class="cell_1" style="left:668px; top:629px; width:82px; height:23px; vertical-align:middle; ">1일교육시간</caption>
  669. <caption id="caption13" class="cell_1" style="left:380px; top:653px; width:80px; height:23px; vertical-align:middle; ">장소</caption>
  670. <caption id="caption14" class="cell_1" style="left:668px; top:653px; width:82px; height:23px; vertical-align:middle; ">참석자</caption>
  671. <caption id="caption16" class="cell_1" style="left:851px; top:653px; width:54px; height:23px; vertical-align:middle; ">담당자</caption>
  672. <caption id="caption9" class="cell_1" style="left:2px; top:653px; width:80px; height:23px; vertical-align:middle; ">교육행사명</caption>
  673. <line id="line2" class="line_3" style="x1:0px; y1:739px; x2:1189px; y2:739px; "/>
  674. <select1 id="combo1" ref="/root/main/cond/condinfo/rgstteamflag" appearance="minimal" style="left:1055px; top:654px; width:135px; height:19px; ">
  675. <choices>
  676. <itemset nodeset="/root/init/A0525list/A0525[cdid!='']">
  677. <label ref="cdnm"/>
  678. <value ref="cdid"/>
  679. </itemset>
  680. </choices>
  681. </select1>
  682. <caption id="caption17" class="cell_1" style="left:975px; top:653px; width:75px; height:23px; vertical-align:middle; ">구분</caption>
  683. </group>
  684. </xhtml:body>
  685. </xhtml:html>