SMRPS01400_외부교육등록및신청.xrw 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>SMRPS01400_외부교육참가보고</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <rpsmedap/>
  11. </main>
  12. <send>
  13. <save/>
  14. <search>
  15. <name/>
  16. <searchflag/>
  17. <count/>
  18. </search>
  19. </send>
  20. <init>
  21. <search>
  22. <appyy/>
  23. <chrgunitcd/>
  24. <chrgunitnm/>
  25. <educflag/>
  26. <emplno/>
  27. <emplnm/>
  28. <instcd/>
  29. <chrgdeptcd/>
  30. <chrgdeptnm/>
  31. <chrgteamcd/>
  32. <chrgteamnm/>
  33. <grdunitcd/>
  34. <posinstcd/>
  35. </search>
  36. <report>
  37. <educsubj/>
  38. <lactr/>
  39. <meetpsn/>
  40. <educcnts/>
  41. <entryeffect/>
  42. <banknm/>
  43. <acntno/>
  44. <depor/>
  45. </report>
  46. </init>
  47. <temp>
  48. </temp>
  49. <print>
  50. <rpsmedap/>
  51. </print>
  52. </root>
  53. </instance>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  58. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  59. <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
  60. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  61. <script type="javascript" ev:event="xforms-ready">
  62. <![CDATA[
  63. misfGetUserAuth();
  64. fInit();
  65. ]]>
  66. </script>
  67. <script type="javascript">
  68. <![CDATA[
  69. var ROW = 0;
  70. function fInit() {
  71. grd_rpsmedap.rowHeight(0) = 40;
  72. model.setValue(ipt_appyy.attribute("ref"), getCurrentDate().substr(0, 4));
  73. model.removeNodeset("/root/main/rpsmedap");
  74. misfGridInit(grd_rpsmedap);
  75. misfMsterDetailSet(grd_rpsmedap,null, "TRRPS01401" ,"N");
  76. rpsEducSetComboList("M01-008,M01-008", "grd_rpsmedap.educflag,cmb_educflag", "N");
  77. addGridComboItem("cmb_educflag", "- 전체 -", "","above"); // 교육구분 콤보박스에 '전체'를 추가
  78. misfGetUserAuth();
  79. fCheckAuth();
  80. // user정보조회
  81. model.setValue(ipt_emplno.attribute("ref"),getUserInfo("userid"));
  82. model.setValue(ipt_emplnm.attribute("ref"),getUserInfo("usernm"));
  83. submit("TRRPS04000");
  84. var curdate = getCurrentDate();
  85. model.setValue(ipt_appyy.attribute("ref") , curdate.substr(0, 4));
  86. model.setValue(ipt_instcd.attribute("ref"),model.getValue("/root/init/emplinfo/dutplceinst"));
  87. model.setValue("/root/init/search/posinstcd",model.getValue("/root/init/emplinfo/dutplceinst"));
  88. model.setValue(ipt_chrgdeptnm.attribute("ref"),model.getValue("/root/init/emplinfo/dutdeptnm"));
  89. model.setValue(ipt_chrgdeptcd.attribute("ref"), model.getValue("/root/init/emplinfo/dutdeptcd"));
  90. model.setValue(ipt_chrgteamnm.attribute("ref"),model.getValue("/root/init/emplinfo/dutteamnm"));
  91. model.setValue(ipt_chrgteamcd.attribute("ref"),model.getValue("/root/init/emplinfo/dutteamcd"));
  92. model.setValue(ipt_chrgunitnm.attribute("ref"), model.getValue("/root/init/emplinfo/dutunitnm"));
  93. model.setValue(ipt_chrgunitcd.attribute("ref"), model.getValue("/root/init/emplinfo/dutunitcd"));
  94. model.refresh();
  95. if ( DUTY_EDU_YN == 'Y' || DUTY_RESP_YN == "Y" || getUserInfo("dutplcecd") == "4020500000" ) {
  96. ipt_chrgdeptnm.disabled = false;
  97. ipt_chrgteamnm.disabled = false;
  98. ipt_chrgunitnm.disabled = false;
  99. btn_dept.disabled = false;
  100. btn_team.disabled = false;
  101. btn_unit.disabled = false;
  102. ipt_emplnm.disabled = false;
  103. ipt_emplno.disabled = false;
  104. btn_emplsearch.disabled = false;
  105. }
  106. else {
  107. fCheckDisabled(); // 관리자인지 체크하여 기본 조회부분의 활성화/비활성화를 결정한다.
  108. }
  109. grd_rpsmedap.selectionMode = "byrow";
  110. model.refresh();
  111. }
  112. function fCheckAuth() {
  113. btn_save.disabled = !checkAuth("X") ;
  114. }
  115. function fCheckAdmin() {
  116. // 부서교육관리자로 등록된 사람인지 체크
  117. model.setValue("/root/init/search/instcd", model.getValue("/root/init/emplinfo/dutplceinst"));
  118. model.setValue("/root/init/search/posinstcd", model.getValue("/root/init/emplinfo/dutplceinst"));
  119. submit("TRRPS04999");
  120. if( model.getValue("/root/init/deptadmin/emplno") == ipt_emplno.value ) {
  121. ipt_emplnm.disabled = false;
  122. ipt_emplno.disabled = false;
  123. btn_emplsearch.disabled = false;
  124. }
  125. else {
  126. ipt_emplnm.disabled = true;
  127. ipt_emplno.disabled = true;
  128. btn_emplsearch.disabled = true;
  129. }
  130. model.refresh();
  131. }
  132. function fCheckDisabled () {
  133. fCheckAdmin();
  134. if( model.getValue("/root/init/deptadmin/teamyn") == "Y") {
  135. ipt_chrgteamnm.disabled = false;
  136. ipt_chrgunitnm.disabled = false;
  137. btn_team.disabled = false;
  138. btn_unit.disabled = false;
  139. }
  140. else if (model.getValue("/root/init/deptadmin/unityn") == "Y") {
  141. ipt_chrgunitnm.disabled = false;
  142. btn_unit.disabled = false;
  143. }
  144. else {
  145. ipt_chrgteamnm.disabled = true;
  146. ipt_chrgunitnm.disabled = true;
  147. btn_team.disabled = true;
  148. btn_unit.disabled = true;
  149. }
  150. model.refresh();
  151. }
  152. function fSetData() {
  153. // 조회된 내용을 컨트롤에 보여준다.
  154. model.setValue("/root/init/report/educsubj", model.getValue("/root/main/rpsmedap["+(grd_rpsmedap.row-1)+"]/educsubj"));
  155. model.setValue("/root/init/report/lactr", model.getValue("/root/main/rpsmedap["+(grd_rpsmedap.row-1)+"]/lactr"));
  156. model.setValue("/root/init/report/meetpsn", model.getValue("/root/main/rpsmedap["+(grd_rpsmedap.row-1)+"]/meetpsn"));
  157. model.setValue("/root/init/report/educcnts", model.getValue("/root/main/rpsmedap["+(grd_rpsmedap.row-1)+"]/educcnts"));
  158. model.setValue("/root/init/report/entryeffect", model.getValue("/root/main/rpsmedap["+(grd_rpsmedap.row-1)+"]/entryeffect"));
  159. model.setValue("/root/init/report/banknm", model.getValue("/root/main/rpsmedap["+(grd_rpsmedap.row-1)+"]/banknm"));
  160. model.setValue("/root/init/report/acntno", model.getValue("/root/main/rpsmedap["+(grd_rpsmedap.row-1)+"]/acntno"));
  161. model.setValue("/root/init/report/depor", model.getValue("/root/main/rpsmedap["+(grd_rpsmedap.row-1)+"]/depor"));
  162. model.refresh();
  163. }
  164. function fClearData() {
  165. model.removenode("/root/init/report");
  166. model.makeNode("/root/init/report/educsubj");
  167. model.makeNode("/root/init/report/lactr");
  168. model.makeNode("/root/init/report/meetpsn");
  169. model.makeNode("/root/init/report/educcnts");
  170. model.makeNode("/root/init/report/entryeffect");
  171. model.makeNode("/root/init/report/banknm");
  172. model.makeNode("/root/init/report/acntno");
  173. model.makeNode("/root/init/report/depor");
  174. model.refresh();
  175. }
  176. function fSearch(pColRef, pValue, pErrorValue, pCount)
  177. {
  178. var endRow = grd_rpsmedap.row;
  179. var endRows = grd_rpsmedap.rows;
  180. var count = 0;
  181. var pStartRow = grd_rpsmedap.fixedRows;
  182. if( (grd_rpsmedap.row+1) == grd_rpsmedap.rows) {
  183. pStartRow = grd_rpsmedap.fixedRows;
  184. }else {
  185. pStartRow = grd_rpsmedap.row+1;
  186. }
  187. for(var i = grd_rpsmedap.fixedRows; i < grd_rpsmedap.rows; i++) {
  188. if(pValue == grd_rpsmedap.valueMatrix(i, grd_rpsmedap.colRef(pColRef))) {
  189. count++;
  190. }
  191. }
  192. pCount.value = count;
  193. for(var i = pStartRow; i <= endRows; i++) {
  194. if(pValue == grd_rpsmedap.valueMatrix(i, grd_rpsmedap.colRef(pColRef))) {
  195. grd_rpsmedap.select(i, 3) = true;
  196. grd_rpsmedap.row = i;
  197. return;
  198. }
  199. if(i == grd_rpsmedap.rows) {
  200. endRows = endRow;
  201. i=0;
  202. }else if(endRow == i) {
  203. messageBox("조회한 " + cmb_search.label + "[" + pErrorValue + "]" + "가 없습니다.", "");
  204. return;
  205. }
  206. }
  207. }
  208. function fCheckNull()
  209. {
  210. var row = grd_rpsmedap.row;
  211. for( var idx = grd_rpsmedap.fixedRows; idx <= grd_rpsmedap.rows; idx++ ) {
  212. if( grd_rpsmedap.rowStatus(idx) == '1' || grd_rpsmedap.rowStatus(idx) == '3' ) {
  213. if(grd_rpsmedap.valueMatrix(idx, grd_rpsmedap.colRef("educflag")).length == 0)
  214. {
  215. messageBox("교육구분을" ,"C002");
  216. grd_rpsmedap.row= row;
  217. grd_rpsmedap.col= grd_rpsmedap.colRef("educflag");
  218. grd_rpsmedap.editCell();
  219. return false;
  220. }
  221. else if(grd_rpsmedap.valueMatrix(idx, grd_rpsmedap.colRef("educnm")).length == 0)
  222. {
  223. messageBox("교육명을" ,"C001");
  224. grd_rpsmedap.row= row;
  225. grd_rpsmedap.col= grd_rpsmedap.colRef("educnm");
  226. grd_rpsmedap.editCell();
  227. return false;
  228. }
  229. else if(grd_rpsmedap.valueMatrix(idx, grd_rpsmedap.colRef("educfromdd")).length == 0)
  230. {
  231. messageBox("교육시작일자를" ,"C001");
  232. grd_rpsmedap.row= row;
  233. grd_rpsmedap.col= grd_rpsmedap.colRef("educfromdd");
  234. grd_rpsmedap.editCell();
  235. return false;
  236. }
  237. else if(grd_rpsmedap.valueMatrix(idx, grd_rpsmedap.colRef("eductodd")).length == 0)
  238. {
  239. messageBox("교육종료일자를" ,"C001");
  240. grd_rpsmedap.row= row;
  241. grd_rpsmedap.col= grd_rpsmedap.colRef("eductodd");
  242. grd_rpsmedap.editCell();
  243. return false;
  244. }
  245. else if(grd_rpsmedap.valueMatrix(idx, grd_rpsmedap.colRef("educplce")).length == 0)
  246. {
  247. messageBox("교육장소를" ,"C001");
  248. grd_rpsmedap.row= row;
  249. grd_rpsmedap.col= grd_rpsmedap.colRef("educplce");
  250. grd_rpsmedap.editCell();
  251. return false;
  252. }
  253. else if(grd_rpsmedap.valueMatrix(idx, grd_rpsmedap.colRef("mainbdinstnm")).length == 0)
  254. {
  255. messageBox("주최기관을" ,"C001");
  256. grd_rpsmedap.row= row;
  257. grd_rpsmedap.col= grd_rpsmedap.colRef("mainbdinstnm");
  258. grd_rpsmedap.editCell();
  259. return false;
  260. }
  261. else return true;
  262. }
  263. else return true;
  264. }
  265. }
  266. ]]>
  267. </script>
  268. <submission id="TRRPS01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/search" resultref="/root/main/rpsmedap"/>
  269. <submission id="TXRPS01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/tmp"/>
  270. <submission id="TRRPS04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/search" resultref="/root/init/emplinfo"/>
  271. <submission id="TRRPS04999" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/search" resultref="/root/init/deptadmin"/>
  272. </model>
  273. </xhtml:head>
  274. <xhtml:body style="margin-left:8; margin-right:8; ">
  275. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  276. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">외부교육참가보고</caption>
  277. </group>
  278. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; "/>
  279. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  280. <button id="btn_save" class="btn4_letter2" style="left:1135px; top:2px; width:56px; height:22px; ">
  281. <caption>저장</caption>
  282. <script type="javascript" ev:event="DOMActivate">
  283. <![CDATA[
  284. model.setValue("/root/send/save",grd_rpsmedap.getUpdateData());
  285. model.refresh();
  286. if( !fCheckNull() ) {
  287. return;
  288. }
  289. if(submit("TXRPS01401")) {
  290. messageBox("처리되었습니다.","I999");
  291. btn_search.dispatch("DOMActivate");
  292. grd_rpsmedap.dispatch("ondblclick");
  293. }
  294. ]]>
  295. </script>
  296. </button>
  297. </group>
  298. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1185px; height:627px; "/>
  299. <group id="group4" scroll="auto" style="left:0px; top:38px; width:1195px; height:737px; ">
  300. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1195px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
  301. <line id="line5" class="line_1" style="x1:0px; y1:85px; x2:1195px; y2:85px; "/>
  302. <caption id="caption72" class="tit_2" style="left:5px; top:71px; width:309px; height:13px; ">외부교육등록 (학회,연수,보수교육,기타외부교육)</caption>
  303. <datagrid id="grd_rpsmedap" nodeset="/root/main/rpsmedap" autoresize="true" caption="외부교육코드^년도^부(실)^부(실)코드^과(팀)^과(팀)코드^부서^부서코드^사원번호^이름^교육구분&#xA;(선택)^교 육 명^교육기간&#xA;(ex, 2009-01-01~2009-01-01)^교육기간&#xA;(ex, 2009-01-01~2009-01-01)^교육총시간&#xA;(단위: 시간&#xA;ex, 8)^교육일수&#xA;(단위:일&#xA;ex, 1)^교육장소^주최기관^공가여부^공가여부^등록비지원여부^등록비지원여부^실등록비^등록비지원금^교통비^체재비^보고서&#xA;작성여부^교육주제^강사^만난사람들^교육내용^참가효과^은행명^계좌번호^예금주^직위^최초저장일^기관코드|외부교육코드^년도^부(실)^부(실)코드^과(팀)^과(팀)코드^부서^부서코드^사원번호^이름^교육구분&#xA;(선택)^교 육 명^교육기간&#xA;(ex, 2009-01-01~2009-01-01)^교육기간&#xA;(ex, 2009-01-01~2009-01-01)^교육총시간&#xA;(단위: 시간&#xA;ex, 8)^교육일수&#xA;(단위:일&#xA;ex, 1)^교육장소^주최기관^유^무^유^무^실등록비^등록비지원금^교통비^체재비^보고서&#xA;작성여부^교육주제^강사^만난사람들^교육내용^참가효과^은행명^계좌번호^예금주^직위^최초저장일^기관코드" colsep="^" colwidth="40, 41, 100, 100, 100, 100, 100, 100, 80, 60, 100, 195, 100, 100, 76, 60, 96, 141, 45, 45, 45, 45, 100, 100, 100, 100, 60, 43, 31, 37, 33, 39, 37, 100, 100, 100, 100, 100" dataheight="25" frozencols="10" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:90px; width:1195px; height:260px; ">
  304. <col ref="outeduccd" visibility="hidden"/>
  305. <col class="input_search" ref="appyy" style="text-align:center; "/>
  306. <col class="input_search" ref="deptnm"/>
  307. <col class="input_search" ref="deptcd" visibility="hidden"/>
  308. <col class="input_search" ref="teamnm"/>
  309. <col class="input_search" ref="teamcd" visibility="hidden"/>
  310. <col class="input_search" ref="unitnm"/>
  311. <col class="input_search" ref="unitcd" visibility="hidden"/>
  312. <col class="input_search" ref="emplno" type="output" style="text-align:center; "/>
  313. <col class="input_search" ref="emplnm" style="text-align:center; "/>
  314. <col class="combo_s_essential" ref="educflag" type="combo">
  315. <choices>
  316. <itemset>
  317. <label/>
  318. <value/>
  319. </itemset>
  320. </choices>
  321. </col>
  322. <col class="input_s_essential" ref="educnm" type="input" maxbyte="80"/>
  323. <col class="input_s_essential" ref="educfromdd" type="inputdate"/>
  324. <col class="input_s_essential" ref="eductodd" type="inputdate"/>
  325. <col class="input_s_essential" imemode="alpha" ref="eductm" type="input" maxbyte="10"/>
  326. <col class="input_s_essential" imemode="alpha" ref="educdayno" type="input" maxbyte="3"/>
  327. <col class="input_s_essential" ref="educplce" type="input" maxbyte="80"/>
  328. <col class="input_s_essential" ref="mainbdinstnm" type="input" maxbyte="80"/>
  329. <col checkvalue="Y,N" ref="offcholidayy" type="checkbox"/>
  330. <col checkvalue="Y,N" ref="offcholidayn" type="checkbox"/>
  331. <col checkvalue="Y,N" ref="rgstamty" type="checkbox"/>
  332. <col checkvalue="Y,N" ref="rgstamtn" type="checkbox"/>
  333. <col class="input_s_essential" ref="realrgstamt" type="input" format="#,###" maxlength="10"/>
  334. <col class="input_s_essential" ref="rgstamt" type="input" format="#,###" maxlength="10"/>
  335. <col class="input_s_essential" ref="movecost" type="input" format="#,###" maxlength="10"/>
  336. <col class="input_s_essential" ref="staycost" type="input" format="#,###" maxlength="10"/>
  337. <col ref="reportyn" visibility="hidden"/>
  338. <col ref="educsubj" visibility="hidden"/>
  339. <col ref="lactr" visibility="hidden"/>
  340. <col ref="meetpsn" visibility="hidden"/>
  341. <col ref="educcnts" visibility="hidden"/>
  342. <col ref="entryeffect" visibility="hidden"/>
  343. <col ref="banknm" visibility="hidden"/>
  344. <col ref="acntno" visibility="hidden"/>
  345. <col ref="depor" visibility="hidden"/>
  346. <col ref="jobposnm" visibility="hidden"/>
  347. <col ref="fstrgstdt" visibility="hidden"/>
  348. <col ref="dutinstcd" visibility="hidden"/>
  349. <script type="javascript" ev:event="ondblclick">
  350. <![CDATA[
  351. if ( grd_rpsmedap.rowStatus(grd_rpsmedap.row) != "0" ) return;
  352. fClearData();
  353. fSetData();
  354. if( grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("reportyn")) == "Y") {
  355. btn_print.disabled = false;
  356. txt_educsubj.disabled = false;
  357. txt_lactr.disabled = false;
  358. txt_meetpsn.disabled = false;
  359. txt_educcnts.disabled = false;
  360. txt_entryeffect.disabled = false;
  361. ipt_banknm.disabled = false;
  362. ipt_acntno.disabled = false;
  363. ipt_depor.disabled = false;
  364. }
  365. else {
  366. btn_print.disabled = true;
  367. txt_educsubj.disabled = false;
  368. txt_lactr.disabled = false;
  369. txt_meetpsn.disabled = false;
  370. txt_educcnts.disabled = false;
  371. txt_entryeffect.disabled = false;
  372. ipt_banknm.disabled = false;
  373. ipt_acntno.disabled = false;
  374. ipt_depor.disabled = false;
  375. }
  376. model.refresh();
  377. ]]>
  378. </script>
  379. <script type="javascript" ev:event="xforms-value-changed">
  380. <![CDATA[
  381. // 공가여부(유) 선택시 (무)는 선택취소
  382. if(grd_rpsmedap.col == grd_rpsmedap.colRef("offcholidayy") ) {
  383. grd_rpsmedap.valueMatrix(grd_rpsmedap.row,grd_rpsmedap.colRef("offcholidayy")) = "Y";
  384. grd_rpsmedap.valueMatrix(grd_rpsmedap.row,grd_rpsmedap.colRef("offcholidayn")) = "N";
  385. }
  386. // 공가여부(무) 선택시 (유)는 선택취소
  387. else if(grd_rpsmedap.col == grd_rpsmedap.colRef("offcholidayn") ) {
  388. grd_rpsmedap.valueMatrix(grd_rpsmedap.row,grd_rpsmedap.colRef("offcholidayy")) = "N";
  389. grd_rpsmedap.valueMatrix(grd_rpsmedap.row,grd_rpsmedap.colRef("offcholidayn")) = "Y";
  390. }
  391. // 등록비지원여부(유) 선택시 (무)는 선택취소
  392. if(grd_rpsmedap.col == grd_rpsmedap.colRef("rgstamty") ) {
  393. grd_rpsmedap.valueMatrix(grd_rpsmedap.row,grd_rpsmedap.colRef("rgstamty")) = "Y";
  394. grd_rpsmedap.valueMatrix(grd_rpsmedap.row,grd_rpsmedap.colRef("rgstamtn")) = "N";
  395. if( grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("rgstamty")) == "Y") {
  396. grd_rpsmedap.isReadOnly(grd_rpsmedap.row, grd_rpsmedap.colRef("rgstamt")) = false;
  397. grd_rpsmedap.isReadOnly(grd_rpsmedap.row, grd_rpsmedap.colRef("movecost")) = false;
  398. grd_rpsmedap.isReadOnly(grd_rpsmedap.row, grd_rpsmedap.colRef("staycost")) = false;
  399. }
  400. else {
  401. grd_rpsmedap.isReadOnly(grd_rpsmedap.row, grd_rpsmedap.colRef("rgstamt")) = true;
  402. grd_rpsmedap.isReadOnly(grd_rpsmedap.row, grd_rpsmedap.colRef("movecost")) = true;
  403. grd_rpsmedap.isReadOnly(grd_rpsmedap.row, grd_rpsmedap.colRef("staycost")) = true;
  404. }
  405. }
  406. // 등록비지원여부(무) 선택시 (유)는 선택취소
  407. else if(grd_rpsmedap.col == grd_rpsmedap.colRef("rgstamtn") ) {
  408. grd_rpsmedap.valueMatrix(grd_rpsmedap.row,grd_rpsmedap.colRef("rgstamty")) = "N";
  409. grd_rpsmedap.valueMatrix(grd_rpsmedap.row,grd_rpsmedap.colRef("rgstamtn")) = "Y";
  410. grd_rpsmedap.isReadOnly(grd_rpsmedap.row, grd_rpsmedap.colRef("rgstamt")) = true;
  411. grd_rpsmedap.isReadOnly(grd_rpsmedap.row, grd_rpsmedap.colRef("movecost")) = true;
  412. grd_rpsmedap.isReadOnly(grd_rpsmedap.row, grd_rpsmedap.colRef("staycost")) = true;
  413. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("rgstamt")) = "0";
  414. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("movecost")) = "0";
  415. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("staycost")) = "0";
  416. }
  417. ]]>
  418. </script>
  419. </datagrid>
  420. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:20px; width:56px; height:22px; ">
  421. <caption>조회</caption>
  422. <script type="javascript" ev:event="DOMActivate">
  423. <![CDATA[
  424. submit("TRRPS01401");
  425. model.refresh();
  426. ]]>
  427. </script>
  428. </button>
  429. <line id="line6" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:56px; "/>
  430. <line id="line22" class="line_2" style="x1:6px; y1:405px; x2:101px; y2:426px; "/>
  431. <group id="group5" style="left:0px; top:355px; width:1195px; height:370px; ">
  432. <caption id="caption9" class="cell_1" style="left:2px; top:42px; width:90px; height:108px; text-align:center; vertical-align:middle; ">교 육 주 제</caption>
  433. <caption id="caption10" class="cell_1" style="left:2px; top:152px; width:90px; height:114px; text-align:center; vertical-align:middle; ">참 가 목 적</caption>
  434. <caption id="caption12" class="cell_1" style="left:2px; top:340px; width:90px; height:20px; text-align:center; vertical-align:middle; ">입 금 처</caption>
  435. <caption id="caption14" class="cell_1" style="left:613px; top:42px; width:90px; height:120px; text-align:center; vertical-align:middle; ">교 육 내 용</caption>
  436. <caption id="caption15" class="cell_1" style="left:613px; top:164px; width:90px; height:197px; text-align:center; vertical-align:middle; ">
  437. <![CDATA[참 가 효 과
  438. 적 용 방 안]]>
  439. </caption>
  440. <line id="line18" class="line_1" style="x1:0px; y1:38px; x2:1190px; y2:38px; "/>
  441. <caption id="caption8" class="tit_2" style="left:0px; top:5px; width:175px; height:13px; ">교육 결과 보고서</caption>
  442. <caption id="caption1" class="cell_1" style="left:93px; top:340px; width:58px; height:20px; text-align:left; vertical-align:middle; ">은 행 명</caption>
  443. <caption id="caption2" class="cell_1" style="left:265px; top:340px; width:58px; height:20px; text-align:left; vertical-align:middle; ">계좌번호</caption>
  444. <caption id="caption3" class="cell_1" style="left:472px; top:340px; width:58px; height:20px; text-align:left; vertical-align:middle; ">예 금 주</caption>
  445. <button id="btn_print" class="btn6_letter2" disabled="true" style="left:1078px; top:15px; width:56px; height:22px; ">
  446. <caption>출력</caption>
  447. <script type="javascript" ev:event="DOMActivate">
  448. <![CDATA[
  449. if( grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("reportyn")) == "Y") {
  450. btn_print.disabled = false;
  451. if( grd_rpsmedap.rowStatus(grd_rpsmedap.row) != '0' ) {
  452. if(messageBox("저장후 출력이 가능합니다. 저장하시겠습니까?","Q999") == "6") {
  453. model.setValue("/root/send/save",grd_rpsmedap.getUpdateData());
  454. model.refresh();
  455. submit("TXRPS01401");
  456. model.copyNode("/root/print/rpsmedap",grd_rpsmedap.getNode(grd_rpsmedap.row));
  457. exeReportPreview("RPRPS01400", "XMLSTR");
  458. btn_search.dispatch("DOMActivate");
  459. grd_rpsmedap.dispatch("ondblclick");
  460. }
  461. }
  462. else {
  463. model.copyNode("/root/print/rpsmedap",grd_rpsmedap.getNode(grd_rpsmedap.row));
  464. exeReportPreview("RPRPS01400", "XMLSTR");
  465. }
  466. }
  467. else {
  468. btn_print.disabled = true;
  469. messageBox("저장된 보고서가 없습니다.","C999");
  470. }
  471. ]]>
  472. </script>
  473. </button>
  474. <caption id="caption4" style="left:710px; top:17px; width:380px; height:20px; font-weight:bold; color:#ff0000; ">* 외부교육등록을 하셔야 결과 보고서를 입력하실수 있습니다.</caption>
  475. <button id="button1" class="btn4_letter2" style="left:1135px; top:15px; width:56px; height:22px; ">
  476. <caption>저장</caption>
  477. <script type="javascript" ev:event="DOMActivate">
  478. <![CDATA[
  479. model.setValue("/root/send/save",grd_rpsmedap.getUpdateData());
  480. model.refresh();
  481. if(submit("TXRPS01401")) {
  482. messageBox("처리되었습니다.","I999");
  483. btn_search.dispatch("DOMActivate");
  484. grd_rpsmedap.dispatch("ondblclick");
  485. }
  486. ]]>
  487. </script>
  488. </button>
  489. <caption id="caption16" style="left:5px; top:20px; width:559px; height:20px; font-weight:bold; color:#ff0000; ">* 입력없이 10분이 지나면 자동로그아웃되어 입력된 자료가 취소되오니 유의하시기 바랍니다.</caption>
  490. <textarea id="txt_educsubj" ref="/root/init/report/educsubj" disabled="true" maxlength="330" style="left:94px; top:44px; width:513px; height:105px; ">
  491. <script type="javascript" ev:event="xforms-value-changed">
  492. <![CDATA[
  493. if(!isRequiredControls("txt_educsubj")) return;
  494. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("reportyn")) = "Y";
  495. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("educsubj")) = txt_educsubj.value;
  496. grd_rpsmedap.addStatus(grd_rpsmedap.row, "update");
  497. btn_print.disabled = false;
  498. ]]>
  499. </script>
  500. </textarea>
  501. <textarea id="txt_lactr" ref="/root/init/report/lactr" disabled="true" maxlength="330" style="left:95px; top:152px; width:513px; height:113px; ">
  502. <script type="javascript" ev:event="xforms-value-changed">
  503. <![CDATA[
  504. if(!isRequiredControls("txt_lactr")) return;
  505. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("reportyn")) = "Y";
  506. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("lactr")) = txt_lactr.value;
  507. grd_rpsmedap.addStatus(grd_rpsmedap.row, "update");
  508. btn_print.disabled = false;
  509. ]]>
  510. </script>
  511. </textarea>
  512. <textarea id="txt_educcnts" ref="/root/init/report/educcnts" disabled="true" maxlength="330" style="left:705px; top:44px; width:485px; height:117px; ">
  513. <script type="javascript" ev:event="xforms-value-changed">
  514. <![CDATA[
  515. if(!isRequiredControls("txt_educcnts")) return;
  516. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("reportyn")) = "Y";
  517. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("educcnts")) = txt_educcnts.value;
  518. grd_rpsmedap.addStatus(grd_rpsmedap.row, "update");
  519. btn_print.disabled = false;
  520. ]]>
  521. </script>
  522. </textarea>
  523. <textarea id="txt_entryeffect" ref="/root/init/report/entryeffect" disabled="true" maxlength="1000" style="left:705px; top:164px; width:485px; height:195px; ">
  524. <script type="javascript" ev:event="xforms-value-changed">
  525. <![CDATA[
  526. if(!isRequiredControls("txt_entryeffect")) return;
  527. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("reportyn")) = "Y";
  528. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("entryeffect")) = txt_entryeffect.value;
  529. grd_rpsmedap.addStatus(grd_rpsmedap.row, "update");
  530. btn_print.disabled = false;
  531. ]]>
  532. </script>
  533. </textarea>
  534. <input id="ipt_banknm" ref="/root/init/report/banknm" disabled="true" maxbyte="20" style="left:153px; top:340px; width:110px; height:19px; ">
  535. <script type="javascript" ev:event="xforms-value-changed">
  536. <![CDATA[
  537. if(!isRequiredControls("ipt_banknm")) return;
  538. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("reportyn")) = "Y";
  539. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("banknm")) = ipt_banknm.value;
  540. grd_rpsmedap.addStatus(grd_rpsmedap.row, "update");
  541. btn_print.disabled = false;
  542. ]]>
  543. </script>
  544. </input>
  545. <input id="ipt_acntno" ref="/root/init/report/acntno" disabled="true" imemode="alpha" maxbyte="20" style="left:325px; top:340px; width:146px; height:19px; ">
  546. <script type="javascript" ev:event="xforms-value-changed">
  547. <![CDATA[
  548. if(!isRequiredControls("ipt_acntno")) return;
  549. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("reportyn")) = "Y";
  550. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("acntno")) = ipt_acntno.value;
  551. grd_rpsmedap.addStatus(grd_rpsmedap.row, "update");
  552. btn_print.disabled = false;
  553. ]]>
  554. </script>
  555. </input>
  556. <input id="ipt_depor" ref="/root/init/report/depor" disabled="true" maxbyte="20" style="left:532px; top:340px; width:75px; height:19px; ">
  557. <script type="javascript" ev:event="xforms-value-changed">
  558. <![CDATA[
  559. if(!isRequiredControls("ipt_depor")) return;
  560. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("reportyn")) = "Y";
  561. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("depor")) = ipt_depor.value;
  562. grd_rpsmedap.addStatus(grd_rpsmedap.row, "update");
  563. btn_print.disabled = false;
  564. ]]>
  565. </script>
  566. </input>
  567. <caption id="caption13" class="cell_1" style="left:2px; top:268px; width:91px; height:93px; text-align:center; vertical-align:middle; ">
  568. <![CDATA[비고
  569. (건의사항 등)]]>
  570. </caption>
  571. <textarea id="txt_meetpsn" ref="/root/init/report/meetpsn" disabled="true" maxlength="512" style="left:95px; top:267px; width:513px; height:92px; ">
  572. <script type="javascript" ev:event="xforms-value-changed">
  573. <![CDATA[
  574. if(!isRequiredControls("txt_meetpsn")) return;
  575. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("reportyn")) = "Y";
  576. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("meetpsn")) = txt_meetpsn.value;
  577. grd_rpsmedap.addStatus(grd_rpsmedap.row, "update");
  578. btn_print.disabled = false;
  579. ]]>
  580. </script>
  581. </textarea>
  582. </group>
  583. <button id="btn_del" class="btn2_letter3" style="left:1070px; top:65px; width:53px; height:19px; ">
  584. <caption>행삭제</caption>
  585. <script type="javascript" ev:event="DOMActivate">
  586. <![CDATA[
  587. if(!isRequiredControls("ipt_appyy")) return;
  588. misfGridIUD(grd_rpsmedap, "D");
  589. model.refresh();
  590. ]]>
  591. </script>
  592. </button>
  593. <button id="btn_add" class="btn2_letter3" style="left:1015px; top:65px; width:53px; height:19px; ">
  594. <caption>행추가</caption>
  595. <script type="javascript" ev:event="DOMActivate">
  596. <![CDATA[
  597. if(!isRequiredControls("ipt_appyy")) return;
  598. misfGridIUD(grd_rpsmedap, "A");
  599. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("appyy")) = ipt_appyy.value;
  600. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("dutinstcd")) = ipt_instcd.value;
  601. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("deptnm")) = ipt_chrgdeptnm.value;
  602. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("deptcd")) = ipt_chrgdeptcd.value;
  603. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("teamnm")) = ipt_chrgteamnm.value;
  604. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("teamcd")) = ipt_chrgteamcd.value;
  605. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("unitnm")) = ipt_chrgunitnm.value;
  606. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("unitcd")) = ipt_chrgunitcd.value;
  607. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("emplno")) = ipt_emplno.value;
  608. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("emplnm")) = ipt_emplnm.value;
  609. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("reportyn")) = "N";
  610. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("offcholidayy")) = "N";
  611. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("offcholidayn")) = "N";
  612. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("rgstamty")) = "N";
  613. grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("rgstamtn")) = "N";
  614. grd_rpsmedap.isReadOnly(grd_rpsmedap.row, grd_rpsmedap.colRef("rgstamt")) = true;
  615. grd_rpsmedap.isReadOnly(grd_rpsmedap.row, grd_rpsmedap.colRef("offctouramt")) = true;
  616. // grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("realrgstamt")) = "0";
  617. // grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("rgstamt")) = "0";
  618. // grd_rpsmedap.valueMatrix(grd_rpsmedap.row, grd_rpsmedap.colRef("offctouramt")) = "0";
  619. txt_educsubj.disabled = false;
  620. txt_lactr.disabled = false;
  621. txt_meetpsn.disabled = false;
  622. txt_educcnts.disabled = false;
  623. txt_entryeffect.disabled = false;
  624. ipt_banknm.disabled = false;
  625. ipt_acntno.disabled = false;
  626. ipt_depor.disabled = false;
  627. btn_print.disabled = false;
  628. btn_save.disabled = false;
  629. model.refresh();
  630. ]]>
  631. </script>
  632. </button>
  633. <input id="ipt_instcd" ref="/root/init/search/instcd" class="input_search" disabled="true" navindex="2" visibility="hidden" maxlength="10" style="left:545px; top:40px; width:81px; height:19px; text-align:center; "/>
  634. <select1 id="cmb_search" ref="/root/send/search/searchflag" visibility="hidden" appearance="minimal" style="left:695px; top:65px; width:82px; height:19px; text-align:center; ">
  635. <choices>
  636. <item>
  637. <label>이름</label>
  638. <value>emplnm</value>
  639. </item>
  640. <item>
  641. <label>사원번호</label>
  642. <value>emplno</value>
  643. </item>
  644. </choices>
  645. <script type="javascript" ev:event="xforms-value-changed">
  646. <![CDATA[
  647. ipt_search.value = "";
  648. model.setFocus("ipt_search");
  649. ]]>
  650. </script>
  651. </select1>
  652. <caption id="cap_search" class="search_name" visibility="hidden" style="left:614px; top:65px; width:85px; height:17px; ">Search :</caption>
  653. <input id="ipt_search" ref="/root/send/search/name" class="input_default" visibility="hidden" imemode="hangul" style="left:780px; top:65px; width:115px; height:19px; text-align:center; ">
  654. <script type="javascript" ev:event="onkeypress">
  655. <![CDATA[
  656. if(event.keyCode == 13 || event.keyCode == 9 )
  657. {
  658. model.setFocus("grd_rpsmedap");
  659. var pErrorValue = ipt_search.currentText;
  660. ipt_search.refresh();
  661. fSearch(cmb_search.value, ipt_search.value, pErrorValue, opt_count);
  662. grd_rpsmedap.dispatch("ondblclick");
  663. model.setFocus("ipt_search");
  664. }
  665. ]]>
  666. </script>
  667. </input>
  668. <output id="opt_count" ref="/root/send/search/count" class="output_fix" visibility="hidden" style="left:898px; top:65px; width:35px; height:19px; color:#ff0000; text-align:center; "/>
  669. <caption id="cap_emplno" class="search_name" style="left:221px; top:35px; width:94px; height:17px; ">사원번호 :</caption>
  670. <input id="ipt_emplnm" ref="/root/init/search/emplnm" class="input_search" disabled="true" navindex="21" style="left:420px; top:35px; width:80px; height:19px; text-align:center; ">
  671. <script type="javascript" ev:event="xforms-value-changed">
  672. <![CDATA[
  673. var recv_list = "emplno,emplnm";
  674. rpbfValidationCheck("emplnm", recv_list);
  675. model.refresh();
  676. ]]>
  677. </script>
  678. </input>
  679. <input id="ipt_emplno" ref="/root/init/search/emplno" class="input_search" disabled="true" navindex="20" style="left:307px; top:35px; width:92px; height:19px; text-align:center; ">
  680. <script type="javascript" ev:event="xforms-value-changed">
  681. <![CDATA[
  682. var recv_list = "emplno,emplnm";
  683. rpbfValidationCheck("emplno", recv_list);
  684. model.refresh();
  685. ]]>
  686. </script>
  687. </input>
  688. <button id="btn_emplsearch" class="icon_search" disabled="true" style="left:401px; top:35px; width:16px; height:16px; ">
  689. <caption/>
  690. <script type="javascript" ev:event="DOMActivate">
  691. <![CDATA[
  692. var recv_list = "emplno,emplnm";
  693. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N","Y");
  694. model.refresh();
  695. ]]>
  696. </script>
  697. </button>
  698. <button id="btn_unit" class="icon_search" disabled="true" style="left:986px; top:11px; width:16px; height:16px; ">
  699. <caption/>
  700. <script type="javascript" ev:event="DOMActivate">
  701. <![CDATA[
  702. var unitcd = ipt_chrgunitcd.value;
  703. var unitnm = ipt_chrgunitnm.value;
  704. rpsfEducOpenPopUpList("07", ipt_chrgunitnm, "", "chrgunitcd,chrgunitnm", ipt_instcd.value, "instcd");
  705. if( ipt_chrgunitnm.value != "" ) {
  706. if ( DUTY_EDU_YN == 'Y' || DUTY_RESP_YN == "Y" || getUserInfo("dutplcecd") == "4020500000" ) {
  707. // unit이 달라지면 상위 부서도 가져온다..
  708. model.setValue("/root/init/search/instcd", model.getValue("/root/init/emplinfo/dutplceinst"));
  709. model.setValue("/root/init/search/posinstcd", model.getValue("/root/init/emplinfo/dutplceinst"));
  710. model.setValue("/root/init/search/grdunitcd", ipt_chrgunitcd.value);
  711. model.setValue("/root/init/search/emplno", "" );
  712. model.setValue("/root/init/search/emplnm", "" );
  713. submit("TRRPS04000");
  714. model.setValue("/root/init/search/chrgdeptnm", model.getValue("/root/init/emplinfo/dutdeptnm"));
  715. model.setValue("/root/init/search/chrgdeptcd", model.getValue("/root/init/emplinfo/dutdeptcd"));
  716. model.setValue("/root/init/search/chrgteamnm", model.getValue("/root/init/emplinfo/dutteamnm"));
  717. model.setValue("/root/init/search/chrgteamcd", model.getValue("/root/init/emplinfo/dutteamcd"));
  718. model.refresh();
  719. }
  720. else {
  721. fCheckAdmin(); // 관리자인지 체크한다.
  722. // unit이 달라지면 상위 부서도 가져온다..
  723. model.setValue("/root/init/search/grdunitcd", ipt_chrgunitcd.value);
  724. model.setValue("/root/init/search/emplno", "" );
  725. submit("TRRPS04000");
  726. model.setValue("/root/init/search/emplno",getUserInfo("userid"));
  727. model.refresh();
  728. // if( model.getValue("/root/init/deptadmin/teamyn") == "Y" &&
  729. // model.getValue("/root/init/deptadmin/deptcd") == model.getValue("/root/init/emplinfo/dutdeptcd")) {
  730. model.setValue("/root/init/search/chrgteamnm", model.getValue("/root/init/emplinfo/dutteamnm"));
  731. model.setValue("/root/init/search/chrgteamcd", model.getValue("/root/init/emplinfo/dutteamcd"));
  732. model.setValue("/root/init/search/chrgunitnm", model.getValue("/root/init/emplinfo/dutunitnm"));
  733. model.setValue("/root/init/search/chrgunitcd", model.getValue("/root/init/emplinfo/dutunitcd"));
  734. // }
  735. // else if (model.getValue("/root/init/deptadmin/unityn") == "Y" &&
  736. // model.getValue("/root/init/deptadmin/deptcd") == model.getValue("/root/init/emplinfo/dutteamcd") ) {
  737. //
  738. // model.setValue("/root/init/search/chrgunitnm", model.getValue("/root/init/emplinfo/dutunitnm"));
  739. // model.setValue("/root/init/search/chrgunitcd", model.getValue("/root/init/emplinfo/dutunitcd"));
  740. // }
  741. // else {
  742. // messageBox("당신의 관리부서가 아닙니다. 확인바랍니다.","I999");
  743. // ipt_chrgunitcd.value = unitcd;
  744. // ipt_chrgunitnm.value = unitnm;
  745. // }
  746. }
  747. }
  748. model.refresh();
  749. ]]>
  750. </script>
  751. </button>
  752. <button id="btn_dept" class="icon_search" disabled="true" style="left:401px; top:11px; width:16px; height:16px; ">
  753. <caption/>
  754. <script type="javascript" ev:event="DOMActivate">
  755. <![CDATA[
  756. rpsfEducOpenPopUpList("05", ipt_chrgdeptnm, "", "chrgdeptcd,chrgdeptnm", ipt_instcd.value, "instcd");
  757. // 부(실)을 변경하면 과(팀), 부서는 모두 공백으로 변경한다.
  758. model.setValue("/root/init/search/chrgteamnm", "");
  759. model.setValue("/root/init/search/chrgteamcd", "");
  760. model.setValue("/root/init/search/chrgunitnm", "");
  761. model.setValue("/root/init/search/chrgunitcd", "");
  762. model.refresh();
  763. ]]>
  764. </script>
  765. </button>
  766. <input id="ipt_chrgunitnm" ref="/root/init/search/chrgunitnm" class="input_search" disabled="true" appearance="input" style="left:880px; top:10px; width:104px; height:19px; text-align:center; ">
  767. <script type="javascript" ev:event="xforms-value-changed">
  768. <![CDATA[
  769. if( ipt_chrgunitnm.value.getByteLength() == '0' ) {
  770. ipt_chrgunitcd.value = "" ;
  771. }
  772. model.refresh();
  773. ]]>
  774. </script>
  775. </input>
  776. <caption id="cap_appyy" class="search_name" style="left:11px; top:10px; width:101px; height:17px; ">년 도 :</caption>
  777. <input id="ipt_chrgdeptnm" ref="/root/init/search/chrgdeptnm" class="input_search" disabled="true" visibility="visible" appearance="input" style="left:295px; top:10px; width:104px; height:19px; text-align:center; ">
  778. <script type="javascript" ev:event="xforms-value-changed">
  779. <![CDATA[
  780. if( ipt_chrgdeptnm.value.getByteLength() == '0' ) {
  781. ipt_chrgdeptcd.value = "" ;
  782. }
  783. model.refresh();
  784. ]]>
  785. </script>
  786. </input>
  787. <caption id="caption5" class="search_name" style="left:520px; top:10px; width:86px; height:17px; ">과(팀) :</caption>
  788. <input id="ipt_chrgunitcd" ref="/root/init/search/chrgunitcd" class="input_search" disabled="true" visibility="visible" style="left:1004px; top:10px; width:80px; height:19px; text-align:center; "/>
  789. <caption id="caption7" class="search_name" style="left:221px; top:10px; width:86px; height:17px; ">부(실) :</caption>
  790. <input id="ipt_chrgdeptcd" ref="/root/init/search/chrgdeptcd" class="input_search" disabled="true" visibility="visible" style="left:420px; top:10px; width:80px; height:19px; text-align:center; "/>
  791. <caption id="caption11" class="search_name" style="left:815px; top:10px; width:86px; height:17px; ">부 서 :</caption>
  792. <input id="ipt_appyy" ref="/root/init/search/appyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:105px; top:10px; width:100px; height:19px; text-align:center; "/>
  793. <button id="btn_team" class="icon_search" disabled="true" style="left:701px; top:11px; width:16px; height:16px; ">
  794. <caption/>
  795. <script type="javascript" ev:event="DOMActivate">
  796. <![CDATA[
  797. rpsfEducOpenPopUpList("06", ipt_chrgteamnm, "", "chrgteamcd,chrgteamnm", ipt_instcd.value, "instcd");
  798. // 과(팀)을 변경하면 부서는 모두 공백으로 변경한다.
  799. model.setValue("/root/init/search/chrgunitnm", "");
  800. model.setValue("/root/init/search/chrgunitcd", "");
  801. model.refresh();
  802. ]]>
  803. </script>
  804. </button>
  805. <input id="ipt_chrgteamnm" ref="/root/init/search/chrgteamnm" class="input_search" disabled="true" visibility="visible" appearance="input" style="left:595px; top:10px; width:104px; height:19px; text-align:center; ">
  806. <script type="javascript" ev:event="xforms-value-changed">
  807. <![CDATA[
  808. if( ipt_chrgteamnm.value.getByteLength() == '0' ) {
  809. ipt_chrgteamcd.value = "" ;
  810. }
  811. model.refresh();
  812. ]]>
  813. </script>
  814. </input>
  815. <select1 id="cmb_educflag" ref="/root/init/search/educflag" class="combo_search" appearance="minimal" style="left:105px; top:35px; width:100px; height:19px; text-align:center; ">
  816. <choices>
  817. <itemset>
  818. <label/>
  819. <value/>
  820. </itemset>
  821. </choices>
  822. </select1>
  823. <caption id="cap_educflag" class="search_name" style="left:11px; top:35px; width:101px; height:17px; ">교육구분 :</caption>
  824. <input id="ipt_chrgteamcd" ref="/root/init/search/chrgteamcd" class="input_search" disabled="true" visibility="visible" style="left:719px; top:10px; width:80px; height:19px; text-align:center; "/>
  825. <button id="btn_rowcopy" class="btn2_letter3" style="left:960px; top:65px; width:53px; height:19px; ">
  826. <caption>행복사</caption>
  827. <script type="javascript" ev:event="DOMActivate">
  828. <![CDATA[
  829. var row = grd_rpsmedap.row -1;
  830. if( grd_rpsmedap.fixedRows == grd_rpsmedap.rows) {
  831. messageBox("복사할 행이","I004");
  832. return;
  833. }
  834. else {
  835. misfGridIUD(grd_rpsmedap, "A");
  836. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/deptnm" ,model.getValue("/root/main/rpsmedap[" + row + "]/deptnm" ));
  837. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/deptcd" ,model.getValue("/root/main/rpsmedap[" + row + "]/deptcd" ));
  838. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/teamnm" ,model.getValue("/root/main/rpsmedap[" + row + "]/teamnm" ));
  839. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/teamcd" ,model.getValue("/root/main/rpsmedap[" + row + "]/teamcd" ));
  840. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/unitnm" ,model.getValue("/root/main/rpsmedap[" + row + "]/unitnm" ));
  841. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/unitcd" ,model.getValue("/root/main/rpsmedap[" + row + "]/unitcd" ));
  842. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/emplno" ,model.getValue("/root/main/rpsmedap[" + row + "]/emplno" ));
  843. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/emplnm" ,model.getValue("/root/main/rpsmedap[" + row + "]/emplnm" ));
  844. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/educflag" ,model.getValue("/root/main/rpsmedap[" + row + "]/educflag" ));
  845. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/educnm" ,model.getValue("/root/main/rpsmedap[" + row + "]/educnm" ));
  846. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/educfromdd" ,model.getValue("/root/main/rpsmedap[" + row + "]/educfromdd" ));
  847. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/eductodd" ,model.getValue("/root/main/rpsmedap[" + row + "]/eductodd" ));
  848. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/eductm" ,model.getValue("/root/main/rpsmedap[" + row + "]/eductm" ));
  849. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/educdayno" ,model.getValue("/root/main/rpsmedap[" + row + "]/educdayno" ));
  850. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/educplce" ,model.getValue("/root/main/rpsmedap[" + row + "]/educplce" ));
  851. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/mainbdinstnm" ,model.getValue("/root/main/rpsmedap[" + row + "]/mainbdinstnm" ));
  852. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/offcholidayy" ,model.getValue("/root/main/rpsmedap[" + row + "]/offcholidayy" ));
  853. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/offcholidayn" ,model.getValue("/root/main/rpsmedap[" + row + "]/offcholidayn" ));
  854. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/rgstamty" ,model.getValue("/root/main/rpsmedap[" + row + "]/rgstamty" ));
  855. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/rgstamtn" ,model.getValue("/root/main/rpsmedap[" + row + "]/rgstamtn" ));
  856. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/realrgstamt" ,model.getValue("/root/main/rpsmedap[" + row + "]/realrgstamt" ));
  857. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/rgstamt" ,model.getValue("/root/main/rpsmedap[" + row + "]/rgstamt" ));
  858. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/movecost" ,model.getValue("/root/main/rpsmedap[" + row + "]/movecost" ));
  859. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/staycost" ,model.getValue("/root/main/rpsmedap[" + row + "]/staycost" ));
  860. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/reportyn" ,model.getValue("/root/main/rpsmedap[" + row + "]/reportyn" ));
  861. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/educsubj" ,model.getValue("/root/main/rpsmedap[" + row + "]/educsubj" ));
  862. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/lactr" ,model.getValue("/root/main/rpsmedap[" + row + "]/lactr" ));
  863. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/meetpsn" ,model.getValue("/root/main/rpsmedap[" + row + "]/meetpsn" ));
  864. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/educcnts" ,model.getValue("/root/main/rpsmedap[" + row + "]/educcnts" ));
  865. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/entryeffect" ,model.getValue("/root/main/rpsmedap[" + row + "]/entryeffect" ));
  866. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/banknm" ,model.getValue("/root/main/rpsmedap[" + row + "]/banknm" ));
  867. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/acntno" ,model.getValue("/root/main/rpsmedap[" + row + "]/acntno" ));
  868. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/depor" ,model.getValue("/root/main/rpsmedap[" + row + "]/depor" ));
  869. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/jobposnm" ,model.getValue("/root/main/rpsmedap[" + row + "]/jobposnm" ));
  870. model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/dutinstcd" ,model.getValue("/root/main/rpsmedap[" + row + "]/dutinstcd" ));
  871. // model.setValue("/root/main/rpsmedap[" + (grd_rpsmedap.row-1) + "]/fstrgstdt" ,model.getValue("/root/main/rpsmedap[" + row + "]/fstrgstdt" ));
  872. }
  873. model.refresh();
  874. ]]>
  875. </script>
  876. </button>
  877. <button id="btn_init" class="btn2_letter4" style="left:1129px; top:65px; width:64px; height:19px; ">
  878. <caption>엑셀저장</caption>
  879. <script type="javascript" ev:event="DOMActivate">
  880. <![CDATA[
  881. misfSaveExcel(grd_rpsmedap);
  882. ]]>
  883. </script>
  884. </button>
  885. </group>
  886. </xhtml:body>
  887. </xhtml:html>