SMRPD03900_부서별근무형태코드관리.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  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. <dutdeptlist/>
  11. <deptlist/>
  12. <dutbasecdlist/>
  13. <deptdutcdlist/>
  14. </main>
  15. <init/>
  16. <send>
  17. <instcd/>
  18. <deptcd/>
  19. <deptnm/>
  20. <deptdutcdlist/>
  21. <deptlist/>
  22. <schedeptcd/>
  23. </send>
  24. <hidden/>
  25. <temp/>
  26. </root>
  27. </instance>
  28. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  29. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  30. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  31. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  32. <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. fInitialize();
  36. ]]>
  37. </script>
  38. <submission id="TRRPD03901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dutbasecdlist"/>
  39. <submission id="TRRPD03902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/deptdutcdlist"/>
  40. <submission id="TXRPD03901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  41. </model>
  42. <script type="javascript">
  43. <![CDATA[
  44. var ALL_CHECKED = false;
  45. var fcount =1;
  46. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  47. function fInitialize()
  48. {
  49. model.removeNodeset("/root/main/deptlist");
  50. model.removeNodeset("/root/main/dutbasecdlist");
  51. model.removeNodeset("/root/main/deptdutcdlist");
  52. model.removeNodeset("/root/main/dutdeptlist");
  53. model.resetInstanceNode("/root/send");
  54. misfGridInit(grd_deptlist);
  55. misfGridInit(grd_dutbasecdlist);
  56. misfGridInit(grd_deptdutcdlist);
  57. misfGridInit(grd_dutdeptlist);
  58. misfMsterDetailSet(grd_dutbasecdlist, null, "TRRPD03901", "N");
  59. misfMsterDetailSet(grd_deptdutcdlist, null, "TRRPD03902", "Y");
  60. misfMsterDetailSet(grd_deptlist, null, "TRRPD03902", "Y");
  61. grd_dutbasecdlist.rowheight(0) = 35;
  62. grd_deptdutcdlist.rowheight(0) = 35;
  63. // misfComboComCdListMulti("Z0007","cmb_instcd");
  64. misfComboInstCdListMulti("cmb_instcd", getCurrentDate(),"","N");
  65. misfGetAndSetUserInfo();
  66. misfGetUserAuth();
  67. rpdfComboCdList(cmb_dutplce); // 권한별 근무부서 세팅
  68. rpdfSetDutUnitCombo();
  69. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  70. model.setValue("/root/send/deptcd", DUT_UNIT_CD);
  71. model.setValue("/root/send/deptnm", DUT_UNIT_NM);
  72. if( DUTY_PART_YN == "Y" ) {
  73. ;
  74. }
  75. else {
  76. ipt_dutdeptcd.disabled = true;
  77. ipt_dutdeptnm.disabled = true;
  78. }
  79. if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
  80. {
  81. cmb_instcd.disabled = false;
  82. }
  83. else
  84. {
  85. cmb_instcd.disabled = true;
  86. }
  87. submit("TRRPD03901");
  88. btn_search.dispatch("DOMActivate");
  89. //화면 권한 설정
  90. btn_search.disabled = !(checkAuth("R"));
  91. model.refresh();
  92. }
  93. function fRetrieve()
  94. {
  95. var updtdata = getGridUpdateData(grd_deptdutcdlist);
  96. if ( updtdata != "") {
  97. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  98. if (ret != 6) { // not OK
  99. return;
  100. }
  101. }
  102. //근무부서 필수체크
  103. var null_check = ipt_dutdeptcd.value;
  104. if( null_check=="")
  105. {
  106. messageBox("근무부서는","I003");
  107. return;
  108. }
  109. submit("TRRPD03902");
  110. var deptdutcdlist_rowcnt = grd_deptdutcdlist.rows;
  111. }
  112. function fSave()
  113. {
  114. var updtdata = getGridUpdateData(grd_deptdutcdlist);
  115. if (updtdata == "" )
  116. {
  117. messageBox("변경된 데이터가","I004");
  118. return;
  119. }
  120. var null_check1 = "";
  121. var null_chech2 = "";
  122. for(var i=1;i<=grd_deptdutcdlist.rows-1;i++)
  123. {
  124. null_check1 = model.getValue(grd_deptdutcdlist.attribute("nodeset") + "[" + i + "]/deptcd");
  125. null_check2 = model.getValue(grd_deptdutcdlist.attribute("nodeset") + "[" + i + "]/dutcd");
  126. if(null_check1 =="")
  127. {
  128. messageBox("부서코드는", "I003");
  129. return;
  130. }
  131. else if(null_check2 == "")
  132. {
  133. messageBox("근무코드는", "I003");
  134. return;
  135. }
  136. }
  137. grd_deptlist.addRow();
  138. grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd")) = ipt_dutdeptcd.value;
  139. grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptnm")) = ipt_dutdeptnm.value;
  140. misfSave("TXRPD03901");
  141. for(var i=1; i<grd_dutbasecdlist.rows; i++)
  142. {
  143. grd_dutbasecdlist.valueMatrix(i, grd_dutbasecdlist.colRef("check")) = "N";
  144. }
  145. btn_search.dispatch("DOMActivate");
  146. grd_dutbasecdlist.rebuild();
  147. misfGridInit(grd_deptlist);
  148. model.refresh();
  149. }
  150. function fSetDeptPrCodeReg()
  151. {
  152. //근무부서 필수체크
  153. if(ipt_dutdeptcd.value == "")
  154. {
  155. messageBox("근무부서는","I003");
  156. return;
  157. }
  158. for(var i=1; i<grd_dutbasecdlist.rows; i++)
  159. {
  160. if(grd_dutbasecdlist.valueMatrix(i, grd_dutbasecdlist.colRef("check")) == "Y")
  161. {
  162. var sDutCd = grd_dutbasecdlist.valueMatrix(i, grd_dutbasecdlist.colRef("dutcd"));
  163. var iDupCnt = 0;
  164. for(var k=1; k<grd_deptdutcdlist.rows; k++)
  165. {
  166. if(grd_deptdutcdlist.valueMatrix(k, grd_deptdutcdlist.colRef("dutcd")) == sDutCd)
  167. iDupCnt++;
  168. }
  169. if(iDupCnt > 0)
  170. {
  171. continue;
  172. }
  173. grd_deptdutcdlist.addRow();
  174. model.setValue("/root/main/deptdutcdlist[" + grd_deptdutcdlist.row + "]/deptcd", ipt_dutdeptcd.value);
  175. model.setValue("/root/main/deptdutcdlist[" + grd_deptdutcdlist.row + "]/deptnm", ipt_dutdeptnm.value);
  176. model.setValue("/root/main/deptdutcdlist[" + grd_deptdutcdlist.row + "]/instcd", model.getValue("/root/main/dutbasecdlist[" + i + "]/instcd"));
  177. model.setValue("/root/main/deptdutcdlist[" + grd_deptdutcdlist.row + "]/dutcd", model.getValue("/root/main/dutbasecdlist[" + i + "]/dutcd"));
  178. model.setValue("/root/main/deptdutcdlist[" + grd_deptdutcdlist.row + "]/dutnm", model.getValue("/root/main/dutbasecdlist[" + i + "]/dutnm"));
  179. var iPos = 0;
  180. if(grd_deptdutcdlist.rows > 27)
  181. {
  182. iPos = (grd_deptdutcdlist.rows - 27) * 30;
  183. }
  184. grd_deptdutcdlist.vscroll.attribute("pos") = (iPos).toString();
  185. }
  186. }
  187. model.refresh();
  188. }
  189. function fSetInitialize()
  190. {
  191. var updtdata = getGridUpdateData(grd_deptdutcdlist);
  192. if (updtdata != "")
  193. {
  194. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  195. if (ret != 6)
  196. { // not OK
  197. return;
  198. }
  199. }
  200. fInitialize();
  201. }
  202. function fAddRow()
  203. {
  204. if(ipt_dutdeptcd.value == "")
  205. {
  206. messageBox("근무부서가","I004");
  207. return;
  208. }
  209. misfGridIUD(grd_deptdutcdlist,"A");
  210. grd_deptdutcdlist.editCell();
  211. grd_deptdutcdlist.col = 1;
  212. }
  213. ]]>
  214. </script>
  215. </xhtml:head>
  216. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  217. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  218. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">부서별근무형태코드관리</caption>
  219. </group>
  220. <group id="group3" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  221. <button id="btn_excadd" class="btn2_letter4" visibility="hidden" style="left:953px; top:48px; width:64px; height:19px; text-align:left; ">
  222. <caption>엑셀입력</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  226. grd_deptdutcdlist.loadExcel(fileName);
  227. model.removenode("/root/main/deptdutcdlist[1]");
  228. grd_deptdutcdlist.rebuild();
  229. for(var i =1 ; i < grd_deptdutcdlist.rows; i++)
  230. {
  231. grd_deptdutcdlist.addStatus(i,"insert");
  232. }
  233. model.refresh();
  234. ]]>
  235. </script>
  236. </button>
  237. <button id="btn_excsave" class="btn2_letter4" style="left:1128px; top:48px; width:64px; height:19px; ">
  238. <caption>엑셀저장</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. misfSaveExcel(grd_deptdutcdlist);
  242. ]]>
  243. </script>
  244. </button>
  245. <datagrid id="grd_dutbasecdlist" nodeset="/root/main/dutbasecdlist" class="text_center" caption="선택^기관코드^근무코드^근무명칭^근무시작시간^근무종료시간^비 고" colsep="^" colwidth="33, 100, 41, 270, 55, 55, 290" dataheight="25" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:73px; width:590px; height:651px; ">
  246. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  247. <col ref="instcd" visibility="hidden"/>
  248. <col disabled="true" ref="dutcd" style="text-align:left; "/>
  249. <col disabled="true" ref="dutnm" style="text-align:left; "/>
  250. <col disabled="true" ref="dutfromtm" format="99:99"/>
  251. <col disabled="true" ref="duttotm" format="99:99"/>
  252. <col disabled="true" ref="cmt" style="text-align:left; "/>
  253. <script type="javascript" ev:event="onclick">
  254. <![CDATA[
  255. if(grd_dutbasecdlist.col == grd_dutbasecdlist.colRef("check") && grd_dutbasecdlist.row < grd_dutbasecdlist.fixedRows)
  256. {
  257. var Yn = "N";
  258. if(!ALL_CHECKED) Yn = "Y";
  259. for(var i=1; i<grd_dutbasecdlist.rows; i++)
  260. {
  261. grd_dutbasecdlist.valueMatrix(i, grd_dutbasecdlist.colRef("check")) = Yn;
  262. }
  263. ALL_CHECKED = (!ALL_CHECKED) ? true : false;
  264. }
  265. ]]>
  266. </script>
  267. </datagrid>
  268. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  269. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
  270. <line id="line13" class="line_4" style="top:7; x1:1110px; y1:7px; x2:1110px; y2:29px; border-left-style:solid; "/>
  271. <caption id="caption1" class="search_name" style="left:275px; top:10px; width:91px; height:17px; ">근무부서 :</caption>
  272. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  273. <caption>조회</caption>
  274. <script type="javascript" ev:event="DOMActivate">
  275. <![CDATA[
  276. fRetrieve();
  277. ]]>
  278. </script>
  279. </button>
  280. <input id="ipt_dutdeptcd" ref="/root/send/deptcd" class="input_s_essential" maxlength="10" style="left:366px; top:9px; width:85px; height:19px; ">
  281. <script type="javascript" ev:event="xforms-value-changed">
  282. <![CDATA[
  283. misfValidationCheck("02", "", "deptcd,deptnm", cmb_instcd.value, "instcd");
  284. btn_search.dispatch("DOMActivate");
  285. ]]>
  286. </script>
  287. </input>
  288. <input id="ipt_dutdeptnm" ref="/root/send/deptnm" class="input_search" style="left:475px; top:9px; width:140px; height:19px; ">
  289. <script type="javascript" ev:event="xforms-value-changed">
  290. <![CDATA[
  291. misfValidationCheck("02", "", "deptcd,deptnm", cmb_instcd.value, "instcd");
  292. btn_search.dispatch("DOMActivate");
  293. ]]>
  294. </script>
  295. </input>
  296. <button id="btn_dutdept" class="icon_search" style="left:455px; top:12px; width:16px; height:16px; ">
  297. <caption/>
  298. <script type="javascript" ev:event="DOMActivate">
  299. <![CDATA[
  300. misfOpenPopUpList("02", ipt_dutdeptcd, "", "deptcd,deptnm", cmb_instcd.value, "instcd");
  301. btn_search.dispatch("DOMActivate");
  302. ]]>
  303. </script>
  304. </button>
  305. <select1 id="cmb_dutplce" ref="/root/send/deptcd" class="combo" visibility="visible" appearance="minimal" style="left:734px; top:9px; width:181px; height:19px; ">
  306. <choices>
  307. <itemset>
  308. <label/>
  309. <value/>
  310. </itemset>
  311. </choices>
  312. <script type="javascript" ev:event="xforms-value-changed">
  313. <![CDATA[
  314. model.setValue("/root/send/deptnm", cmb_dutplce.label);
  315. btn_search.dispatch("DOMActivate");
  316. ]]>
  317. </script>
  318. </select1>
  319. <caption id="caption2" class="search_name" style="left:645px; top:10px; width:90px; height:17px; ">관리부서 :</caption>
  320. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:102px; top:8px; width:153px; height:19px; ">
  321. <choices>
  322. <itemset>
  323. <label/>
  324. <value/>
  325. </itemset>
  326. </choices>
  327. <script type="javascript" ev:event="xforms-value-changed">
  328. <![CDATA[
  329. submit("TRRPD03901");
  330. ]]>
  331. </script>
  332. </select1>
  333. <caption id="caption8" class="search_name" style="left:14px; top:9px; width:86px; height:17px; ">소속기관 :</caption>
  334. </group>
  335. <caption id="caption20" class="tit_2" style="left:640px; top:54px; width:151px; height:13px; ">부서별 코드등록</caption>
  336. <line id="line8" class="line_1" style="x1:636px; y1:69px; x2:1194px; y2:69px; "/>
  337. <line id="line7" class="line_1" style="x1:0px; y1:69px; x2:589px; y2:70px; "/>
  338. <caption id="caption25" class="tit_2" style="left:5px; top:54px; width:151px; height:14px; ">근무기초코드</caption>
  339. <button id="btn_grdadd" class="btn2_letter3" style="left:1018px; top:48px; width:53px; height:19px; ">
  340. <caption>행추가</caption>
  341. <script type="javascript" ev:event="DOMActivate">
  342. <![CDATA[
  343. fAddRow();
  344. ]]>
  345. </script>
  346. </button>
  347. <button id="btn_grddel" class="btn2_letter3" style="left:1073px; top:48px; width:53px; height:19px; ">
  348. <caption>행삭제</caption>
  349. <script type="javascript" ev:event="DOMActivate">
  350. <![CDATA[
  351. misfGridIUD(grd_deptdutcdlist,"D");
  352. model.refresh();
  353. ]]>
  354. </script>
  355. </button>
  356. <img id="btn_right" class="icon_right" style="left:600px; top:275px; width:26px; height:19px; background-stretch:stretch; ">
  357. <script type="javascript" ev:event="onclick">
  358. <![CDATA[
  359. fSetDeptPrCodeReg();
  360. ]]>
  361. </script>
  362. </img>
  363. <img id="btn_left" class="icon_left" visibility="hidden" style="left:600px; top:305px; width:26px; height:19px; background-stretch:stretch; ">
  364. <script type="javascript" ev:event="onclick">
  365. <![CDATA[
  366. grd_deptdutcdlist.deleteRow(grd_deptdutcdlist.row);
  367. model.refresh();
  368. ]]>
  369. </script>
  370. </img>
  371. <datagrid id="grd_deptdutcdlist" nodeset="/root/main/deptdutcdlist" class="text_center" overflow="scroll" scroll="auto" caption="기관코드^부서코드^부서명^근무코드^근무코드명^정렬순서^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="-2, 90, 110, 58, 210, 35, 100, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:635px; top:74px; width:560px; height:651px; ">
  372. <col ref="instcd" visibility="hidden"/>
  373. <col disabled="true" ref="deptcd" type="inputbutton"/>
  374. <col disabled="true" ref="deptnm" type="input" style="text-align:left; "/>
  375. <col disabled="true" ref="dutcd" type="inputbutton" style="text-align:left; "/>
  376. <col disabled="true" ref="dutnm" type="input" style="text-align:left; "/>
  377. <col ref="sortseq" type="input"/>
  378. <col ref="fstrgstrid" visibility="hidden"/>
  379. <col ref="fstrgstdt" visibility="hidden"/>
  380. <col ref="lastupdtrid" visibility="hidden"/>
  381. <col ref="lastupdtdt" visibility="hidden" style="left:905px; top:23px; width:100px; height:23px; "/>
  382. <script type="javascript" ev:event="onbuttonclick">
  383. <![CDATA[
  384. if (grd_deptdutcdlist.col == grd_deptdutcdlist.colRef("deptcd"))
  385. { //부서코드 버튼을 눌렀을 때
  386. misfOpenPopUpList("02", grd_deptdutcdlist, "", "deptcd,deptnm");
  387. }
  388. else if(grd_deptdutcdlist.col == grd_deptdutcdlist.colRef("dutcd"))
  389. { //근무코드 버튼을 눌렀을 때
  390. misfOpenPopUpList("09", grd_deptdutcdlist, "", "dutcd,dutnm", cmb_instcd.value, "instcd");
  391. }
  392. model.refresh();
  393. ]]>
  394. </script>
  395. <script type="javascript" ev:event="xforms-value-changed">
  396. <![CDATA[
  397. if (grd_deptdutcdlist.col == grd_deptdutcdlist.colRef("deptcd") || grd_deptdutcdlist.col == grd_deptdutcdlist.colRef("deptnm") )
  398. {//부서코드 입력시
  399. misfValidationCheck("02", "", "deptcd,deptnm");
  400. }
  401. else if(grd_deptdutcdlist.col == grd_deptdutcdlist.colRef("dutcd") || grd_deptdutcdlist.col == grd_deptdutcdlist.colRef("dutnm"))
  402. { //근무코드 입력시
  403. misfValidationCheck("09", "", "dutcd,dutnm");
  404. }
  405. model.refresh();
  406. ]]>
  407. </script>
  408. </datagrid>
  409. <output id="opt_msg" style="left:0px; top:724px; width:1194; height:19px; "/>
  410. <datagrid id="grd_dutdeptlist" nodeset="/root/main/dutdeptlist" visibility="hidden" caption="선택^부서코드^부서명" colsep="^" colwidth="37, 81, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:10px; top:605px; width:240px; height:101px; ">
  411. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  412. <col ref="deptcd" type="inputbutton"/>
  413. <col ref="deptnm"/>
  414. <script type="javascript" ev:event="onbuttonclick">
  415. <![CDATA[
  416. /*
  417. misfGridInit(grd_deptlist);
  418. var recv_list = "check,deptcd,deptnm";
  419. misfOpenPopUpList("08", grd_deptlist,"",recv_list);
  420. model.setValue("/root/send/dutdeptcd",grd_dutdeptlist.valueMatrix(1,1));
  421. model.setValue("/root/send/dutdeptnm",grd_dutdeptlist.valueMatrix(1,2));
  422. dutdeptlist_rowcnt = grd_dutdeptlist.rows;
  423. for( var i = 1 ; i< dutdeptlist_rowcnt ; i++)
  424. {
  425. grd_dutdeptlist.addStatus(i,"insert");
  426. }
  427. model.setValue("/root/send/deptlist",grd_deptlist.getUpdateData());
  428. model.refresh();
  429. */
  430. ]]>
  431. </script>
  432. </datagrid>
  433. <datagrid id="grd_deptlist" nodeset="/root/main/deptlist" visibility="hidden" caption="선택^부서코드^부서명" colsep="^" colwidth="37, 90, 207" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:635px; top:585px; width:370px; height:140px; ">
  434. <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
  435. <col ref="deptcd" type="inputbutton"/>
  436. <col ref="deptnm"/>
  437. <script type="javascript" ev:event="onbuttonclick">
  438. <![CDATA[
  439. misfGridInit(grd_deptlist);
  440. grd_deptlist.addRow();
  441. misfOpenPopUpList("08", grd_deptlist, "", "check,deptcd,deptnm");
  442. model.refresh();
  443. ]]>
  444. </script>
  445. </datagrid>
  446. </group>
  447. <group id="group4" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  448. <line id="line1" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  449. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  450. <caption>초기화</caption>
  451. <script type="javascript" ev:event="DOMActivate">
  452. <![CDATA[
  453. fSetInitialize();
  454. ]]>
  455. </script>
  456. </button>
  457. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  458. <caption>저장</caption>
  459. <script type="javascript" ev:event="DOMActivate">
  460. <![CDATA[
  461. fSave();
  462. ]]>
  463. </script>
  464. </button>
  465. <button id="btn_choideptsave" class="btn4_letter6" style="left:850px; top:3px; width:104px; height:22px; ">
  466. <caption>선택부서설정</caption>
  467. <script type="javascript" ev:event="DOMActivate">
  468. <![CDATA[
  469. grd_deptlist.dispatch("onbuttonclick")
  470. btn_showchoidept.dispatch("DOMActivate");
  471. ]]>
  472. </script>
  473. </button>
  474. <button id="btn_showchoidept" class="btn4_letter6" style="left:955px; top:3px; width:104px; height:22px; ">
  475. <caption>선택부서보기</caption>
  476. <script type="javascript" ev:event="DOMActivate">
  477. <![CDATA[
  478. if(grd_deptlist.attribute("visibility") == "visible")
  479. {
  480. grd_deptlist.attribute("visibility") = "hidden";
  481. btn_showchoidept.attribute("text") = "선택부서보기";
  482. }
  483. else
  484. {
  485. grd_deptlist.attribute("visibility") = "visible";
  486. btn_showchoidept.attribute("text") = "선택부서닫기";
  487. }
  488. ]]>
  489. </script>
  490. </button>
  491. </group>
  492. </xhtml:body>
  493. </xhtml:html>