SPRPC90500_인사마스타(근로소득자)HELP.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRPC90500" position="absolute 0 0 1010 545" titletext="근로소득자조회HELP" oninit="SPRPC90500_oninit" onload="SPRPC90500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" taborder="0" class="div_SA" position="absolute 0 0 1000 35">
  8. <Layouts>
  9. <Layout>
  10. <Edit id="ipt_refcond" taborder="1" class="input_s_essential" position="absolute 252 8 387 27" autoselect="true" autoskip="true" onkeydown="group2_ipt_refcond_onkeydown"/>
  11. <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 929 7 985 29" onclick="group2_btn_search_onclick"/>
  12. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 911 4 917 30"/>
  13. <Static id="caption2" text="조회조건 :" class="search_name" position="absolute 166 10 252 27"/>
  14. <Radio id="rdo_refcond" taborder="3" columncount="2" rowcount="0" innerdataset="@ds_init_refcond" codecolumn="value" datacolumn="label" class="radio_search" position="absolute 15 7 140 27" onitemchanged="group2_rdo_refcond_onitemchanged"/>
  15. <Static id="caption3" text="바탕색이 회색인 것은 퇴직자를 의미합니다." position="absolute 405 8 847 28" style="color:#0000ffff;font:Dotum,9,bold;"/>
  16. </Layout>
  17. </Layouts>
  18. </Div>
  19. <Static id="caption1" text="인사정보" class="tit_2" position="absolute 0 43 95 64"/>
  20. <Shape id="line1" class="line_10" position="absolute 0 59 1000 65"/>
  21. <Grid id="grd_empllist" class="grd_empllist" taborder="1" binddataset="ds_main_empllist" useinputpanel="false" position="absolute 0 64 1000 512" autoenter="select" cellsizingtype="col" oncelldblclick="grd_empllist_oncelldblclick">
  22. <Formats>
  23. <Format id="default">
  24. <Columns>
  25. <Column size="25"/>
  26. <Column size="96"/>
  27. <Column size="88"/>
  28. <Column size="0"/>
  29. <Column size="80"/>
  30. <Column size="100"/>
  31. <Column size="80"/>
  32. <Column size="100"/>
  33. <Column size="90"/>
  34. <Column size="84"/>
  35. <Column size="79"/>
  36. <Column size="81"/>
  37. <Column size="100"/>
  38. <Column size="85"/>
  39. <Column size="79"/>
  40. <Column size="100"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. </Columns>
  44. <Rows>
  45. <Row size="24" band="head"/>
  46. <Row size="24"/>
  47. </Rows>
  48. <Band id="head">
  49. <Cell/>
  50. <Cell col="1" text="사원번호"/>
  51. <Cell col="2" text="성명"/>
  52. <Cell col="3" text="주민번호"/>
  53. <Cell col="4" text="소속부서"/>
  54. <Cell col="5" text="소속부서명"/>
  55. <Cell col="6" text="근무부서"/>
  56. <Cell col="7" text="근무부서명"/>
  57. <Cell col="8" text="팀"/>
  58. <Cell col="9" text="유닛"/>
  59. <Cell col="10" text="직군"/>
  60. <Cell col="11" text="직열"/>
  61. <Cell col="12" text="직종"/>
  62. <Cell col="13" text="직위"/>
  63. <Cell col="14" text="직책"/>
  64. <Cell col="15" text="근무기관명"/>
  65. <Cell col="16" text="퇴사여부"/>
  66. <Cell col="17"/>
  67. </Band>
  68. <Band id="body">
  69. <Cell celltype="head" expr="currow+1"/>
  70. <Cell col="1" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:emplno"/>
  71. <Cell col="2" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:emplnm"/>
  72. <Cell col="3" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:rregno"/>
  73. <Cell col="4" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:deptcd"/>
  74. <Cell col="5" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:deptnm"/>
  75. <Cell col="6" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:dutdeptcd"/>
  76. <Cell col="7" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:dutdeptnm"/>
  77. <Cell col="8" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:teamnm"/>
  78. <Cell col="9" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:unitnm"/>
  79. <Cell col="10" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:grupjoblnnm"/>
  80. <Cell col="11" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:joblnnm"/>
  81. <Cell col="12" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:jobkindnm"/>
  82. <Cell col="13" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:jobposnm"/>
  83. <Cell col="14" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:jobrespnm"/>
  84. <Cell col="15" style="background:EXPR(retireyn == 'Y' ? '#999999' : '');background2:EXPR(retireyn == 'Y' ? '#999999' : '');" text="bind:dutplceinstnm"/>
  85. <Cell col="16" text="bind:retireyn"/>
  86. <Cell col="17" text="bind:payinst"/>
  87. </Band>
  88. </Format>
  89. </Formats>
  90. </Grid>
  91. <Shape id="line32" class="line_6" position="absolute 0 512 1000 518"/>
  92. <Button id="btn_confirm" taborder="2" text="확인" class="btn4" position="absolute 886 517 942 539" onclick="btn_confirm_onclick"/>
  93. <Button id="btn_cancel" taborder="3" text="취소" class="btn4" position="absolute 944 517 1000 539" onclick="btn_cancel_onclick"/>
  94. </Layout>
  95. </Layouts>
  96. <Objects>
  97. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  98. <ColumnInfo>
  99. <Column id="refcond" type="STRING" size="256"/>
  100. <Column id="name" type="STRING" size="256"/>
  101. <Column id="emplno" type="STRING" size="256"/>
  102. <Column id="dutplcedeptcd" type="STRING" size="256"/>
  103. <Column id="instcd" type="STRING" size="256"/>
  104. </ColumnInfo>
  105. <Rows>
  106. <Row>
  107. <Col id="refcond"/>
  108. <Col id="name"/>
  109. <Col id="emplno"/>
  110. <Col id="dutplcedeptcd"/>
  111. <Col id="instcd"/>
  112. </Row>
  113. </Rows>
  114. </Dataset>
  115. <Dataset id="ds_init_refcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  116. <ColumnInfo>
  117. <Column id="label" type="STRING" size="256"/>
  118. <Column id="value" type="STRING" size="256"/>
  119. </ColumnInfo>
  120. <Rows>
  121. <Row>
  122. <Col id="label">사번</Col>
  123. <Col id="value">emplno</Col>
  124. </Row>
  125. <Row>
  126. <Col id="label">성명</Col>
  127. <Col id="value">name</Col>
  128. </Row>
  129. </Rows>
  130. </Dataset>
  131. <Dataset id="ds_main_empllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  132. <ColumnInfo>
  133. <Column id="emplno" type="STRING" size="256" sumtext="사원번호"/>
  134. <Column id="emplnm" type="STRING" size="256" sumtext="성명"/>
  135. <Column id="holyordflag" type="STRING" size="256" sumtext="성직구분"/>
  136. <Column id="prfshipflag" type="STRING" size="256" sumtext="교직구분"/>
  137. <Column id="rregno" type="STRING" size="256" sumtext="주민번호"/>
  138. <Column id="instcd" type="STRING" size="256" sumtext="기관"/>
  139. <Column id="deptcd" type="STRING" size="256" sumtext="부서"/>
  140. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  141. <Column id="grupjoblncd" type="STRING" size="256" sumtext="직군"/>
  142. <Column id="grupjoblnnm" type="STRING" size="256" sumtext="직군명"/>
  143. <Column id="joblncd" type="STRING" size="256" sumtext="직렬"/>
  144. <Column id="joblnnm" type="STRING" size="256" sumtext="직렬명"/>
  145. <Column id="jobkindcd" type="STRING" size="256" sumtext="직종"/>
  146. <Column id="jobkindnm" type="STRING" size="256" sumtext="직종명"/>
  147. <Column id="jobposcd" type="STRING" size="256" sumtext="직위"/>
  148. <Column id="jobposnm" type="STRING" size="256" sumtext="직위명"/>
  149. <Column id="jobrespcd" type="STRING" size="256" sumtext="직책"/>
  150. <Column id="jobrespnm" type="STRING" size="256" sumtext="직책명"/>
  151. <Column id="ojobgradcd" type="STRING" size="256" sumtext="구직급"/>
  152. <Column id="ojobgradnm" type="STRING" size="256" sumtext="구직급명"/>
  153. <Column id="njobgradcd" type="STRING" size="256" sumtext="신직급"/>
  154. <Column id="njobgradnm" type="STRING" size="256" sumtext="신직급명"/>
  155. <Column id="payclscd" type="STRING" size="256" sumtext="호봉"/>
  156. <Column id="anual" type="STRING" size="256" sumtext="년차"/>
  157. <Column id="rregno" type="STRING" size="256" sumtext="주민번호"/>
  158. <Column id="teamcd " type="STRING" size="256" sumtext="팀코드"/>
  159. <Column id="teamnm" type="STRING" size="256" sumtext="팀명"/>
  160. <Column id="unitcd" type="STRING" size="256" sumtext="유닛코드"/>
  161. <Column id="unitnm" type="STRING" size="256" sumtext="유닛명"/>
  162. <Column id="instnm" type="STRING" size="256" sumtext="기관명"/>
  163. <Column id="teamunitnm " type="STRING" size="256" sumtext="팀유닛명"/>
  164. <Column id="entcodd" type="STRING" size="256" sumtext="입사일자"/>
  165. <Column id="retiredd" type="STRING" size="256" sumtext="퇴사일자"/>
  166. <Column id="dutplcedeptcd" type="STRING" size="256" sumtext="근무지"/>
  167. <Column id="dutplcedeptnm" type="STRING" size="256" sumtext="근무지??"/>
  168. <Column id="payinst" type="STRING" size="256" sumtext=""/>
  169. <Column id="dutplceinst" type="STRING" size="256" sumtext=""/>
  170. <Column id="dutplceinstnm" type="STRING" size="256" sumtext=""/>
  171. <Column id="dutdeptcd" type="STRING" size="256" sumtext="근무부서"/>
  172. <Column id="dutdeptnm" type="STRING" size="256" sumtext="근무부서명"/>
  173. <Column id="dutteamcd" type="STRING" size="256" sumtext="근무팀"/>
  174. <Column id="dutteamnm" type="STRING" size="256" sumtext="근무팀명"/>
  175. <Column id="dutunitcd" type="STRING" size="256" sumtext="근무유닛"/>
  176. <Column id="dutunitnm" type="STRING" size="256" sumtext="근무유닛명"/>
  177. <Column id="orginstcd" type="STRING" size="256" sumtext=""/>
  178. <Column id="orgdeptcd" type="STRING" size="256" sumtext=""/>
  179. <Column id="orgdetlinst" type="STRING" size="256" sumtext=""/>
  180. <Column id="orgteamcd" type="STRING" size="256" sumtext=""/>
  181. <Column id="orgunitcd" type="STRING" size="256" sumtext=""/>
  182. <Column id="retireyn" type="STRING" size="256" sumtext="퇴사여부"/>
  183. </ColumnInfo>
  184. </Dataset>
  185. </Objects>
  186. <Bind>
  187. <BindItem id="item0" compid="group2.rdo_refcond" propid="value" datasetid="ds_send" columnid="refcond"/>
  188. <BindItem id="item1" compid="group2.ipt_refcond" propid="value" datasetid="ds_send" columnid="name"/>
  189. </Bind>
  190. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  191. * System Name :
  192. * Job Name :
  193. * Creator :
  194. * Make Date : 2017-06-19
  195. * Description :
  196. *---------------------------------------------------------------------------------------
  197. * Modify Date Modifier Modify Description
  198. *---------------------------------------------------------------------------------------
  199. * 2017-06-19 Live Converter TF->XP
  200. *
  201. *---------------------------------------------------------------------------------------
  202. ****************************************************************************************/
  203. include "com_commonxp::comm_main.xjs";
  204. include "mis_miscommonxp::MIS.xjs";
  205. include "mis_acntcommonxp::RAD001.xjs";
  206. include "mis_miscommonxp::RAC001.xjs";
  207. function SPRPC90500_oninit(obj:Form, e:InitEventInfo)
  208. {
  209. frmf_initForm(obj);
  210. }
  211. function SPRPC90500_onload(obj:Form, e:LoadEventInfo)
  212. {
  213. grdf_initGrid(grd_empllist);
  214. try
  215. {
  216. if(arg_ds_target_defaultvalue.rowcount > 0)
  217. {
  218. ds_send.setColumn(0, "dutplcedeptcd", arg_ds_target_defaultvalue.getColumn(0, "dutplcedeptcd"));
  219. ds_send.setColumn(0, "instcd", arg_ds_target_defaultvalue.getColumn(0, "instcd"));
  220. }
  221. }
  222. catch (e)
  223. {}
  224. group2.rdo_refcond.value = "name";
  225. group2.ipt_refcond.setFocus();
  226. }
  227. function group2_rdo_refcond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  228. {
  229. if(obj.value == "name")
  230. {
  231. group2.ipt_refcond.imemode = "hangul";
  232. }
  233. else if (obj.value == "emplno")
  234. {
  235. group2.ipt_refcond.imemode = "none";
  236. }
  237. else
  238. {
  239. group2.ipt_refcond.imemode = "none";
  240. }
  241. group2.ipt_refcond.setFocus();
  242. }
  243. function group2_ipt_refcond_onkeydown(obj:Edit, e:KeyEventInfo)
  244. {
  245. if(e.keycode == 13)
  246. {
  247. obj.updateToDataset();
  248. group2.btn_search.click();
  249. }
  250. }
  251. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  252. {
  253. if(!utlf_isNull(group2.ipt_refcond.value))
  254. {
  255. if(group2.rdo_refcond.value == "name")
  256. {
  257. ds_send.setColumn(0, "name", group2.ipt_refcond.text);
  258. ds_send.setColumn(0, "emplno", "");
  259. }
  260. else
  261. {
  262. ds_send.setColumn(0, "emplno", group2.ipt_refcond.text);
  263. ds_send.setColumn(0, "name", "");
  264. }
  265. var oParam = {};
  266. oParam.id = "TRRPC90201";
  267. oParam.service = "miscommoncdrefapp.CommonCdRef";
  268. oParam.method = "reqGetOrcnlList";
  269. oParam.inds = "req=ds_send";
  270. oParam.outds = "ds_main_empllist=empllist";
  271. oParam.async = false;
  272. //oParam.callback = "cf_TRRPC90201";
  273. tranf_submit(oParam);
  274. }
  275. else
  276. {
  277. sysf_messageBox("조회조건을 ","C001");
  278. return;
  279. }
  280. }
  281. function grd_empllist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  282. {
  283. btn_confirm.click();
  284. }
  285. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  286. {
  287. if(utlf_isNull(ds_main_empllist.getColumn(ds_main_empllist.rowposition, "payinst")))
  288. {
  289. sysf_messageBox("급여기관이 없습니다. 근로소득을 지급할 수 없습니다..","I000");
  290. return false;
  291. }
  292. if(ds_main_empllist.getColumn(ds_main_empllist.rowposition, "retireyn") == "Y")
  293. {
  294. if(sysf_messageBox("퇴직자 입니다. 선택 하시겠습니까?","Q000") != "6")
  295. {
  296. return false;
  297. }
  298. }
  299. misfPopUpListReturn(grd_empllist);
  300. }
  301. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  302. {
  303. misfPopUpListCancel();
  304. }
  305. ]]></Script>
  306. </Form>
  307. </FDL>