SMRPS04200_부서교육일정.xfdl 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRPS04200" position="absolute 0 0 1204 765" titletext="SMRPS04100_부서교육현황" oninit="SMRPS04200_oninit" onload="SMRPS04200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="부서교육현황" class="tit_1" position="absolute 0 0 240 25"/>
  8. <Div id="group4" taborder="1" position="absolute 0 25 1195 65" class="div_SA" anchor="left top right">
  9. <Layouts>
  10. <Layout>
  11. <Static id="cap_appyy" text="년 도 :" class="search_name" position="absolute 8 11 98 28" anchor="default"/>
  12. <Calendar id="ipt_appyy" taborder="1" class="input_s_essential" position="absolute 90 11 172 30" mask="yyyy" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy" value="null" editformat="yyyy" onchanged="group4_ipt_appyy_onchanged" style="align:center middle;"/>
  13. <Static id="caption2" text="부(실) :" class="search_name" position="absolute 198 11 284 28" anchor="default"/>
  14. <Edit id="ipt_chrgdeptnm" taborder="3" class="input_search" enable="false" position="absolute 271 11 391 30" anchor="default" autoskip="true" autoselect="true" style="align:center middle;"/>
  15. <Button id="btn_dept" taborder="4" class="icon_search" enable="false" position="absolute 393 12 409 28" anchor="default" onclick="group4_btn_dept_onclick"/>
  16. <Static id="caption1" text="과(팀) :" class="search_name" position="absolute 433 11 519 28" anchor="default"/>
  17. <Edit id="ipt_chrgteamnm" taborder="5" class="input_search" enable="false" position="absolute 505 11 622 30" anchor="default" autoskip="true" autoselect="true" style="align:center middle;"/>
  18. <Edit id="ipt_chrgteamcd" taborder="6" enable="false" visible="false" position="absolute 550 20 600 39" anchor="default"/>
  19. <Button id="btn_team" taborder="7" class="icon_search" enable="false" position="absolute 625 12 641 28" anchor="default" onclick="group4_btn_team_onclick"/>
  20. <Static id="caption8" text="부서 :" class="search_name" position="absolute 666 11 752 28" anchor="default"/>
  21. <Edit id="ipt_chrgunitnm" taborder="8" class="input_search" enable="false" position="absolute 726 11 839 30" anchor="default" autoskip="true" autoselect="true" style="align:center middle;"/>
  22. <Edit id="ipt_chrgunitcd" taborder="9" enable="false" visible="false" position="absolute 756 20 826 39" anchor="default"/>
  23. <Button id="btn_unit" taborder="10" class="icon_search" enable="false" position="absolute 841 12 857 28" anchor="default" onclick="group4_btn_unit_onclick"/>
  24. <Static id="cap_educflag" text="교육구분 :" class="search_name" position="absolute 893 11 984 28" anchor="default"/>
  25. <Combo id="cmb_educflag" taborder="11" class="combo_search" position="absolute 978 11 1073 30" anchor="default"/>
  26. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1098 8 1104 33" anchor="top right"/>
  27. <Button id="btn_search" taborder="12" text="조회" class="btn1" position="absolute 1117 10 1173 32" anchor="top right" onclick="group4_btn_search_onclick"/>
  28. <Edit id="ipt_chrgdeptcd" taborder="2" class="input_search" enable="false" visible="false" position="absolute 331 20 376 39" anchor="default"/>
  29. </Layout>
  30. </Layouts>
  31. </Div>
  32. <Grid id="grd_educlist" taborder="2" binddataset="ds_main_educlist" useinputpanel="false" position="absolute 0 99 1195 759" autoenter="select" cellsizingtype="col" anchor="all">
  33. <Formats>
  34. <Format id="default">
  35. <Columns>
  36. <Column size="26"/>
  37. <Column size="100"/>
  38. <Column size="50"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="120"/>
  42. <Column size="0"/>
  43. <Column size="110"/>
  44. <Column size="0"/>
  45. <Column size="100"/>
  46. <Column size="0"/>
  47. <Column size="100"/>
  48. <Column size="0"/>
  49. <Column size="240"/>
  50. <Column size="0"/>
  51. <Column size="95"/>
  52. <Column size="95"/>
  53. <Column size="102"/>
  54. <Column size="45"/>
  55. <Column size="169"/>
  56. <Column size="0"/>
  57. <Column size="0"/>
  58. <Column size="50"/>
  59. <Column size="0"/>
  60. <Column size="100"/>
  61. <Column size="0"/>
  62. </Columns>
  63. <Rows>
  64. <Row size="29" band="head"/>
  65. <Row size="24"/>
  66. </Rows>
  67. <Band id="head">
  68. <Cell/>
  69. <Cell col="1" text="부서교육코드"/>
  70. <Cell col="2" text="연도"/>
  71. <Cell col="3" text="주체단위"/>
  72. <Cell col="4" text="주체기관코드"/>
  73. <Cell col="5" text="부(실)"/>
  74. <Cell col="6" text="부서코드"/>
  75. <Cell col="7" text="과(팀)"/>
  76. <Cell col="8" text="팀코드"/>
  77. <Cell col="9" text="부서"/>
  78. <Cell col="10" text="유닛코드"/>
  79. <Cell col="11" text="교육구분"/>
  80. <Cell col="12" text="의료기관평가코드"/>
  81. <Cell col="13" text="교육명"/>
  82. <Cell col="14" text="차수"/>
  83. <Cell col="15" colspan="2" text="교육기간" taborder="undefined"/>
  84. <Cell col="17" text="교육시간일정"/>
  85. <Cell col="18" text="교육&#10;총시간"/>
  86. <Cell col="19" text="교육장소"/>
  87. <Cell col="20" text="신입&#10;인원"/>
  88. <Cell col="21" text="재직원&#10;인원"/>
  89. <Cell col="22" text="총인원"/>
  90. <Cell col="23" text="이수&#10;인원"/>
  91. <Cell col="24" text="강사"/>
  92. <Cell col="25" text="예산"/>
  93. </Band>
  94. <Band id="body">
  95. <Cell celltype="head"/>
  96. <Cell col="1" class="input_search" text="bind:depteduccd"/>
  97. <Cell col="2" class="input_search" text="bind:appyy" enable="false"/>
  98. <Cell col="3" class="input_search" text="bind:mainbdunit" enable="false"/>
  99. <Cell col="4" class="input_search" text="bind:dutinstcd"/>
  100. <Cell col="5" displaytype="none" edittype="none" class="input_search" text="bind:chrgdeptnm"/>
  101. <Cell col="6" class="input_search" text="bind:chrgdeptcd"/>
  102. <Cell col="7" displaytype="none" edittype="none" class="input_search" text="bind:chrgteamnm"/>
  103. <Cell col="8" class="input_search" text="bind:chrgteamcd"/>
  104. <Cell col="9" displaytype="none" edittype="none" class="input_search" text="bind:chrgunitnm" enable="false"/>
  105. <Cell col="10" class="input_s_essential" text="bind:chrgunitcd"/>
  106. <Cell col="11" displaytype="combo" class="input_search" text="bind:educflag" enable="false"/>
  107. <Cell col="12" displaytype="combo" edittype="combo" class="input_search" text="bind:medinstvalucd" enable="false"/>
  108. <Cell col="13" displaytype="text" edittype="text" class="input_search" text="bind:educnm" enable="false"/>
  109. <Cell col="14" displaytype="text" edittype="text" class="input_search" text="bind:educdg" mask="###" enable="false"/>
  110. <Cell col="15" displaytype="date" edittype="date" class="input_search" text="bind:educfromdd" calendardisplaynulltype="nulltext" enable="false"/>
  111. <Cell col="16" displaytype="date" edittype="date" class="input_search" text="bind:eductodd" calendardisplaynulltype="nulltext" enable="false"/>
  112. <Cell col="17" displaytype="text" edittype="text" style="align:center middle;" class="input_search" text="bind:eductime" mask="##:##-##:##" maskchar=" " enable="false"/>
  113. <Cell col="18" class="input_search" text="bind:eductm"/>
  114. <Cell col="19" displaytype="text" edittype="text" class="input_search" text="bind:educplce" enable="false"/>
  115. <Cell col="20" displaytype="text" edittype="text" class="input_search" text="bind:newpsn" mask="####" enable="false"/>
  116. <Cell col="21" displaytype="text" edittype="text" class="input_search" text="bind:oldpsn" mask="####" enable="false"/>
  117. <Cell col="22" displaytype="number" class="input_search" text="bind:totalpsn" enable="false"/>
  118. <Cell col="23" class="input_search" text="bind:cmpltcurspsnno" mask="####" enable="false"/>
  119. <Cell col="24" displaytype="text" edittype="text" class="input_search" text="bind:lactr" enable="false"/>
  120. <Cell col="25" displaytype="text" edittype="text" class="input_search" text="bind:bugt" mask="#,###" enable="false"/>
  121. </Band>
  122. </Format>
  123. </Formats>
  124. </Grid>
  125. <Shape id="line8" class="line_10" position="absolute 0 94 1195 100" anchor="left top right"/>
  126. <Static id="caption29" text="세부일정" class="tit_2" position="absolute 0 78 105 100"/>
  127. <Edit id="ipt_dutinstcd" taborder="3" enable="false" visible="false" position="absolute 235 72 285 91"/>
  128. <Edit id="ipt_emplno" taborder="4" visible="false" position="absolute 841 75 931 94" anchor="top right"/>
  129. <Edit id="opt_dd" taborder="5" readonly="true" position="absolute 981 75 1111 94" anchor="top right"/>
  130. <Button id="button2" taborder="6" text="엑셀저장" class="btn7" position="absolute 1115 75 1195 94" anchor="top right" onclick="button2_onclick"/>
  131. </Layout>
  132. </Layouts>
  133. <Objects>
  134. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_search_oncolumnchanged">
  135. <ColumnInfo>
  136. <Column id="appyy" type="STRING" size="256"/>
  137. <Column id="educflag" type="STRING" size="256"/>
  138. <Column id="dutinstcd" type="STRING" size="256"/>
  139. <Column id="chrgdeptcd" type="STRING" size="256"/>
  140. <Column id="chrgdeptnm" type="STRING" size="256"/>
  141. <Column id="chrgteamnm" type="STRING" size="256"/>
  142. <Column id="chrgteamcd" type="STRING" size="256"/>
  143. <Column id="chrgunitnm" type="STRING" size="256"/>
  144. <Column id="chrgunitcd" type="STRING" size="256"/>
  145. <Column id="emplno" type="STRING" size="256"/>
  146. <Column id="grdunitcd" type="STRING" size="256"/>
  147. <Column id="instcd" type="STRING" size="256"/>
  148. <Column id="posinstcd" type="STRING" size="256"/>
  149. </ColumnInfo>
  150. <Rows>
  151. <Row>
  152. <Col id="appyy"/>
  153. <Col id="educflag"/>
  154. <Col id="dutinstcd"/>
  155. <Col id="chrgdeptcd"/>
  156. <Col id="chrgdeptnm"/>
  157. <Col id="chrgteamnm"/>
  158. <Col id="chrgteamcd"/>
  159. <Col id="chrgunitnm"/>
  160. <Col id="chrgunitcd"/>
  161. <Col id="emplno"/>
  162. <Col id="grdunitcd"/>
  163. <Col id="instcd"/>
  164. <Col id="posinstcd"/>
  165. </Row>
  166. </Rows>
  167. </Dataset>
  168. <Dataset id="ds_main_educlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  169. <ColumnInfo>
  170. <Column id="appyy" type="STRING" size="256" sumtext="연도"/>
  171. <Column id="depteduccd" type="STRING" size="256" sumtext="부서교육코드"/>
  172. <Column id="dutinstcd" type="STRING" size="256" sumtext="기관코드"/>
  173. <Column id="mainbdunit" type="STRING" size="256" sumtext="주체단위"/>
  174. <Column id="chrgdeptnm" type="STRING" size="256" sumtext="주관부서"/>
  175. <Column id="chrgdeptcd" type="STRING" size="256" sumtext="주관부서코드"/>
  176. <Column id="chrgteamnm" type="STRING" size="256" sumtext="주관팀"/>
  177. <Column id="chrgteamcd" type="STRING" size="256" sumtext="주관팀코드"/>
  178. <Column id="chrgunitnm" type="STRING" size="256" sumtext="주관유닛"/>
  179. <Column id="chrgunitcd" type="STRING" size="256" sumtext="주관유닛코드"/>
  180. <Column id="educflag" type="STRING" size="256" sumtext="교육구분"/>
  181. <Column id="medinstvalucd" type="STRING" size="256" sumtext="의료기관평가코드"/>
  182. <Column id="educnm" type="STRING" size="256" sumtext="과정명"/>
  183. <Column id="educdg" type="STRING" size="256" sumtext="차수"/>
  184. <Column id="educfromdd" type="STRING" size="256" sumtext="교육기간"/>
  185. <Column id="eductodd" type="STRING" size="256" sumtext="교육기간"/>
  186. <Column id="eductm" type="STRING" size="256" sumtext="교육시간"/>
  187. <Column id="educplce" type="STRING" size="256" sumtext="교육장소"/>
  188. <Column id="cmpltcurspsnno" type="NUMBER" size="256" sumtext="이수인원"/>
  189. <Column id="lactr" type="STRING" size="256" sumtext="강사"/>
  190. <Column id="bugt" type="NUMBER" size="256" sumtext="예산"/>
  191. <Column id="execinstnm" type="STRING" size="256" sumtext="실시기관"/>
  192. <Column id="eductime" type="STRING" size="256" sumtext="교육시간"/>
  193. <Column id="newpsn" type="NUMBER" size="256" sumtext="신입인원"/>
  194. <Column id="oldpsn" type="NUMBER" size="256" sumtext="재직원인원"/>
  195. <Column id="totalpsn" type="NUMBER" size="256" sumtext="총인원"/>
  196. <Column id="educvalu" type="STRING" size="256" sumtext="교육평가"/>
  197. </ColumnInfo>
  198. </Dataset>
  199. <Dataset id="ds_init_emplinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  200. <ColumnInfo>
  201. <Column id="emplno" type="STRING" size="256" sumtext="사원번호"/>
  202. <Column id="emplnm" type="STRING" size="256" sumtext="성명"/>
  203. <Column id="dutplceinst" type="STRING" size="256" sumtext="근무기관"/>
  204. <Column id="dutplceinstnm" type="STRING" size="256" sumtext="근무기관명"/>
  205. <Column id="dutdeptcd" type="STRING" size="256" sumtext="근무부서"/>
  206. <Column id="dutdeptnm" type="STRING" size="256" sumtext="근무부서명"/>
  207. <Column id="dutteamcd" type="STRING" size="256" sumtext="근무팀"/>
  208. <Column id="dutteamnm" type="STRING" size="256" sumtext="근무팀명"/>
  209. <Column id="dutunitcd" type="STRING" size="256" sumtext="근무유닛"/>
  210. <Column id="dutunitnm" type="STRING" size="256" sumtext="근무유닛명"/>
  211. </ColumnInfo>
  212. </Dataset>
  213. <Dataset id="ds_init_deptadmin" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  214. <ColumnInfo>
  215. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  216. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  217. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  218. <Column id="teamyn" type="STRING" size="256" sumtext="팀선택가능여부"/>
  219. <Column id="unityn" type="STRING" size="256" sumtext="부서선택가능여부"/>
  220. <Column id="emplno" type="STRING" size="256" sumtext="사원번호"/>
  221. <Column id="emplnm" type="STRING" size="256" sumtext="사원이름"/>
  222. </ColumnInfo>
  223. </Dataset>
  224. </Objects>
  225. <Bind>
  226. <BindItem id="item0" compid="group4.ipt_appyy" propid="value" datasetid="ds_send_search" columnid="appyy"/>
  227. <BindItem id="item1" compid="group4.ipt_chrgdeptnm" propid="value" datasetid="ds_send_search" columnid="chrgdeptnm"/>
  228. <BindItem id="item2" compid="group4.ipt_chrgteamnm" propid="value" datasetid="ds_send_search" columnid="chrgteamnm"/>
  229. <BindItem id="item3" compid="group4.ipt_chrgunitnm" propid="value" datasetid="ds_send_search" columnid="chrgunitnm"/>
  230. <BindItem id="item4" compid="group4.cmb_educflag" propid="value" datasetid="ds_send_search" columnid="educflag"/>
  231. <BindItem id="item5" compid="group4.ipt_chrgunitcd" propid="value" datasetid="ds_send_search" columnid="chrgunitcd"/>
  232. <BindItem id="item6" compid="group4.ipt_chrgteamcd" propid="value" datasetid="ds_send_search" columnid="chrgteamcd"/>
  233. <BindItem id="item7" compid="group4.ipt_chrgdeptcd" propid="value" datasetid="ds_send_search" columnid="chrgdeptcd"/>
  234. <BindItem id="item8" compid="ipt_dutinstcd" propid="value" datasetid="ds_send_search" columnid="dutinstcd"/>
  235. <BindItem id="item9" compid="ipt_emplno" propid="value" datasetid="ds_send_search" columnid="emplno"/>
  236. </Bind>
  237. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  238. * System Name :
  239. * Job Name :
  240. * Creator :
  241. * Make Date : 2017-06-19
  242. * Description :
  243. *---------------------------------------------------------------------------------------
  244. * Modify Date Modifier Modify Description
  245. *---------------------------------------------------------------------------------------
  246. * 2017-06-19 Live Converter TF->XP
  247. *
  248. *---------------------------------------------------------------------------------------
  249. ****************************************************************************************/
  250. include "com_commonxp::comm_main.xjs";
  251. include "mis_miscommonxp::MIS.xjs";
  252. include "mis_humtrafactmngtxp::RPB001.xjs";
  253. include "mis_educationmngtxp::RPS001.xjs";
  254. function SMRPS04200_oninit(obj:Form, e:InitEventInfo)
  255. {
  256. frmf_initForm(obj);
  257. }
  258. function SMRPS04200_onload(obj:Form, e:LoadEventInfo)
  259. {
  260. grdf_initGrid(grd_educlist);
  261. misfGetUserAuth();
  262. fCheckAuth();
  263. fInitialize() ;
  264. }
  265. function fCheckAuth()
  266. {
  267. group4.btn_search.enable = frmf_checkAuth("R") ;
  268. }
  269. function fInitialize()
  270. {
  271. ds_send_search.setColumn(0, "emplno", sysf_getUserInfo("userid"));
  272. var oParam = {};
  273. oParam.id = "TRRPS04000";
  274. oParam.service = "educationmngtapp.DeptEducMngt";
  275. oParam.method = "reqGetEmplInfo";
  276. oParam.inds = "req=ds_send_search";
  277. oParam.outds = "ds_init_emplinfo=emplinfo";
  278. oParam.async = false;
  279. //oParam.callback = "cf_TRRPS04000";
  280. tranf_submit(oParam);
  281. var nowyy = new Date();
  282. ds_send_search.setColumn(0, "appyy", nowyy.getYear());
  283. opt_dd.value = "(일자 : " + (nowyy.getMonth()+1) + "월 " + nowyy.getDate() + "일 현재)";
  284. ds_send_search.setColumn(0, "dutinstcd", ds_init_emplinfo.getColumn(0, "dutplceinst"));
  285. ds_send_search.setColumn(0, "posinstcd", ds_init_emplinfo.getColumn(0, "dutplceinst"));
  286. ds_send_search.setColumn(0, "chrgdeptnm", ds_init_emplinfo.getColumn(0, "dutdeptnm"));
  287. ds_send_search.setColumn(0, "chrgdeptcd", ds_init_emplinfo.getColumn(0, "dutdeptcd"));
  288. ds_send_search.setColumn(0, "chrgteamnm", ds_init_emplinfo.getColumn(0, "dutteamnm"));
  289. ds_send_search.setColumn(0, "chrgteamcd", ds_init_emplinfo.getColumn(0, "dutteamcd"));
  290. ds_send_search.setColumn(0, "chrgunitnm", ds_init_emplinfo.getColumn(0, "dutunitnm"));
  291. ds_send_search.setColumn(0, "chrgunitcd", ds_init_emplinfo.getColumn(0, "dutunitcd"));
  292. if ( DUTY_EDU_YN == "Y" || sysf_getUserInfo("dutplcecd") == "4020500000" || sysf_getUserInfo("dutplcecd") == "4020503000" )
  293. {
  294. group4.ipt_chrgdeptnm.enable = true;
  295. group4.ipt_chrgteamnm.enable = true;
  296. group4.ipt_chrgunitnm.enable = true;
  297. group4.btn_dept.enable = true;
  298. group4.btn_team.enable = true;
  299. group4.btn_unit.enable = true;
  300. }
  301. else
  302. {
  303. fCheckDisabled();
  304. }
  305. //misfMsterDetailSet(grd_educlist,null, "TRRPE04201" ,"Y");
  306. grd_educlist.setFormatRowProperty(0, "size", 50);
  307. rpsEducSetComboList("M01-007", "group4.cmb_educflag", "Y");
  308. misfComboCopyItemSet(group4.cmb_educflag, "", grd_educlist, "educflag");
  309. }
  310. function fCheckDisabled ()
  311. {
  312. fCheckAdmin();
  313. if( ds_init_deptadmin.getColumn(0, "teamyn") == "Y")
  314. {
  315. group4.ipt_chrgteamnm.enable = true;
  316. group4.ipt_chrgunitnm.enable = true;
  317. group4.btn_team.enable = true;
  318. group4.btn_unit.enable = true;
  319. }
  320. else if( ds_init_deptadmin.getColumn(0, "unityn") == "Y")
  321. {
  322. group4.ipt_chrgunitnm.enable = true;
  323. group4.btn_unit.enable = true;
  324. }
  325. else
  326. {
  327. group4.ipt_chrgteamnm.enable = false;
  328. group4.ipt_chrgunitnm.enable = false;
  329. group4.btn_team.enable = false;
  330. group4.btn_unit.enable = false;
  331. }
  332. }
  333. function fCheckAdmin()
  334. {
  335. ds_send_search.setColumn(0, "instcd", ds_init_emplinfo.getColumn(0, "dutplceinst"));
  336. var oParam = {};
  337. oParam.id = "TRRPS04999";
  338. oParam.service = "educationmngtapp.DeptEducMngt";
  339. oParam.method = "reqGetDeptYNList";
  340. oParam.inds = "req=ds_send_search";
  341. oParam.outds = "ds_init_deptadmin=deptadmin";
  342. oParam.async = false;
  343. //oParam.callback = "cf_TRRPS04999";
  344. tranf_submit(oParam);
  345. if(ds_init_deptadmin.getColumn(0, "emplno") == ipt_emplno.value)
  346. {
  347. group4.btn_search.enable = true;
  348. }
  349. else
  350. {
  351. }
  352. }
  353. function group4_ipt_appyy_onchanged(obj:Calendar, e:ChangeEventInfo)
  354. {
  355. var date = String(obj.value).substr(0,4);
  356. ds_send_search.setColumn(0, "appyy", date);
  357. }
  358. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  359. {
  360. if(e.columnid == "chrgdeptnm")
  361. {
  362. if(e.newvalue.getByteLength() == "0")
  363. {
  364. group4.ipt_chrgdeptcd.value = "";
  365. }
  366. }
  367. if(e.columnid == "chrgteamnm")
  368. {
  369. if(e.newvalue.getByteLength() == "0")
  370. {
  371. group4.ipt_chrgteamcd.value = "";
  372. }
  373. }
  374. if(e.columnid == "chrgunitnm")
  375. {
  376. if(e.newvalue.getByteLength() == "0")
  377. {
  378. group4.ipt_chrgunitcd.value = "";
  379. }
  380. }
  381. }
  382. function group4_btn_dept_onclick(obj:Button, e:ClickEventInfo)
  383. {
  384. rpsfEducOpenPopUpList("05", ds_send_search, "", "chrgdeptcd,chrgdeptnm", ipt_dutinstcd.value, "instcd");
  385. ds_send_search.setColumn(0, "chrgteamnm", "");
  386. ds_send_search.setColumn(0, "chrgteamcd", "");
  387. ds_send_search.setColumn(0, "chrgunitnm", "");
  388. ds_send_search.setColumn(0, "chrgunitcd", "");
  389. }
  390. function group4_btn_team_onclick(obj:Button, e:ClickEventInfo)
  391. {
  392. rpsfEducOpenPopUpList("06", ds_send_search, "", "chrgteamcd,chrgteamnm", ipt_dutinstcd.value, "instcd");
  393. ds_send_search.setColumn(0, "chrgunitnm", "");
  394. ds_send_search.setColumn(0, "chrgunitcd", "");
  395. }
  396. function group4_btn_unit_onclick(obj:Button, e:ClickEventInfo)
  397. {
  398. var unitcd = group4.ipt_chrgunitcd.value;
  399. var unitnm = group4.ipt_chrgunitnm.value;
  400. rpsfEducOpenPopUpList("07", ds_send_search, "", "chrgunitcd,chrgunitnm", ipt_dutinstcd.value, "instcd");
  401. if ( DUTY_EDU_YN == "Y" || sysf_getUserInfo("dutplcecd") == "4020500000" || sysf_getUserInfo("dutplcecd") == "4020503000" )
  402. {
  403. ds_send_search.setColumn(0, "grdunitcd", group4.ipt_chrgunitcd.value);
  404. ds_send_search.setColumn(0, "emplno", "");
  405. var oParam = {};
  406. oParam.id = "TRRPS04000";
  407. oParam.service = "educationmngtapp.DeptEducMngt";
  408. oParam.method = "reqGetEmplInfo";
  409. oParam.inds = "req=ds_send_search";
  410. oParam.outds = "ds_init_emplinfo=emplinfo";
  411. oParam.async = false;
  412. //oParam.callback = "cf_TRRPS04000";
  413. tranf_submit(oParam);
  414. ds_send_search.setColumn(0, "emplno", sysf_getUserInfo("userid"));
  415. ds_send_search.setColumn(0, "chrgdeptnm", ds_init_emplinfo.getColumn(0, "dutdeptnm"));
  416. ds_send_search.setColumn(0, "chrgdeptcd", ds_init_emplinfo.getColumn(0, "dutdeptcd"));
  417. ds_send_search.setColumn(0, "chrgteamnm", ds_init_emplinfo.getColumn(0, "dutteamnm"));
  418. ds_send_search.setColumn(0, "chrgteamcd", ds_init_emplinfo.getColumn(0, "dutteamcd"));
  419. }
  420. else
  421. {
  422. fCheckAdmin();
  423. ds_send_search.setColumn(0, "grdunitcd", group4.ipt_chrgdeptcd.value);
  424. ds_send_search.setColumn(0, "emplno", "");
  425. var oParam = {};
  426. oParam.id = "TRRPS04000";
  427. oParam.service = "educationmngtapp.DeptEducMngt";
  428. oParam.method = "reqGetEmplInfo";
  429. oParam.inds = "req=ds_send_search";
  430. oParam.outds = "ds_init_emplinfo=emplinfo";
  431. oParam.async = false;
  432. //oParam.callback = "cf_TRRPS04000";
  433. tranf_submit(oParam);
  434. ds_send_search.setColumn(0, "emplno", sysf_getUserInfo("userid"));
  435. ds_send_search.setColumn(0, "chrgdeptnm", ds_init_emplinfo.getColumn(0, "dutdeptnm"));
  436. ds_send_search.setColumn(0, "chrgdeptcd", ds_init_emplinfo.getColumn(0, "dutdeptcd"));
  437. ds_send_search.setColumn(0, "chrgteamnm", ds_init_emplinfo.getColumn(0, "dutteamnm"));
  438. ds_send_search.setColumn(0, "chrgteamcd", ds_init_emplinfo.getColumn(0, "dutteamcd"));
  439. }
  440. }
  441. function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
  442. {
  443. if(utlf_isNull(group4.ipt_appyy.value))
  444. {
  445. sysf_messageBox("년도는","I003");
  446. group4.ipt_appyy.setFocus();
  447. }
  448. else
  449. {
  450. dsf_createDs("ds_req", [{col:"appyy", type:"STRING", size:256}
  451. , {col:"dutinstcd", type:"STRING", size:256}
  452. , {col:"chrgdeptcd", type:"STRING", size:256}
  453. , {col:"chrgteamcd", type:"STRING", size:256}
  454. , {col:"chrgunitcd", type:"STRING", size:256}
  455. , {col:"educflag", type:"STRING", size:256}]);
  456. ds_req.copyRow(ds_req.addRow(), ds_send_search, 0);
  457. ds_main_educlist.clearData();
  458. var oParam = {};
  459. oParam.id = "TRRPS04001";
  460. oParam.service = "educationmngtapp.DeptEducMngt";
  461. oParam.method = "reqGetDeptEducList";
  462. oParam.inds = "req=ds_req";
  463. oParam.outds = "ds_main_educlist=educlist";
  464. oParam.async = false;
  465. //oParam.callback = "cf_TRRPS04001";
  466. tranf_submit(oParam);
  467. }
  468. }
  469. function button2_onclick(obj:Button, e:ClickEventInfo)
  470. {
  471. grdf_exportExcel(grd_educlist, "부서교육내역", false, false, "", "user", false);
  472. }
  473. ]]></Script>
  474. </Form>
  475. </FDL>