SPZSU10104_사원기본정보조회.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZSU10104" classname="SPZBC00100_코드검색팝업" inheritanceid="" position="absolute 0 0 600 454" titletext="사원기본정보조회" onload="SPZSU10104_onload" class="frm_POP" onkeydown="SPZSU10104_onkeydown">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="gd_userList" taborder="3" useinputpanel="false" binddataset="ds_userList" cellmovingtype="none" autofittype="none" cellsizebandtype="allband" cellsizingtype="col" areaselecttype="limitband" oncelldblclick="gd_userList_oncelldblclick" onkeydown="gd_userList_onkeydown" anchor="all" position="absolute 12 98 588 419" positiontype="position">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="60"/>
  12. <Column size="60"/>
  13. <Column size="130"/>
  14. <Column size="90"/>
  15. <Column size="130"/>
  16. <Column size="95"/>
  17. <Column size="130"/>
  18. <Column size="80"/>
  19. <Column size="130"/>
  20. <Column size="80"/>
  21. <Column size="130"/>
  22. <Column size="80"/>
  23. <Column size="130"/>
  24. <Column size="80"/>
  25. <Column size="90"/>
  26. <Column size="130"/>
  27. <Column size="90"/>
  28. <Column size="70"/>
  29. <Column size="80"/>
  30. <Column size="70"/>
  31. <Column size="80"/>
  32. <Column size="80"/>
  33. </Columns>
  34. <Rows>
  35. <Row size="22" band="head"/>
  36. <Row size="20"/>
  37. </Rows>
  38. <Band id="head">
  39. <Cell text="사용자ID"/>
  40. <Cell col="1" text="사용자명"/>
  41. <Cell col="2" text="원소속기관명"/>
  42. <Cell col="3" text="원소속기관코드"/>
  43. <Cell col="4" text="원소속부서명"/>
  44. <Cell col="5" text="원소속부서코드"/>
  45. <Cell col="6" text="소속기관명"/>
  46. <Cell col="7" text="소속기관코드"/>
  47. <Cell col="8" text="소속부서명"/>
  48. <Cell col="9" text="소속부서코드"/>
  49. <Cell col="10" text="근무기관명"/>
  50. <Cell col="11" text="근무기관코드"/>
  51. <Cell col="12" text="근무부서명"/>
  52. <Cell col="13" text="근무부서코드"/>
  53. <Cell col="14" text="주민번호"/>
  54. <Cell col="15" text="이메일"/>
  55. <Cell col="16" text="휴대폰번호"/>
  56. <Cell col="17" text="입사일자"/>
  57. <Cell col="18" text="PDA번호"/>
  58. <Cell col="19" text="타사용자ID"/>
  59. <Cell col="20" text="최종수정자ID"/>
  60. <Cell col="21" text="최종수정일시"/>
  61. </Band>
  62. <Band id="body">
  63. <Cell text="bind:userid"/>
  64. <Cell col="1" text="bind:usernm"/>
  65. <Cell col="2" text="bind:orginstnm"/>
  66. <Cell col="3" text="bind:orginstcd"/>
  67. <Cell col="4" text="bind:orgdeptnm"/>
  68. <Cell col="5" text="bind:orgdeptcd"/>
  69. <Cell col="6" text="bind:posinstnm"/>
  70. <Cell col="7" text="bind:posinstcd"/>
  71. <Cell col="8" text="bind:posdeptnm"/>
  72. <Cell col="9" text="bind:posdeptcd"/>
  73. <Cell col="10" text="bind:dutinstnm"/>
  74. <Cell col="11" text="bind:dutinstcd"/>
  75. <Cell col="12" text="bind:dutunitnm"/>
  76. <Cell col="13" text="bind:dutunitcd"/>
  77. <Cell col="14" text="bind:rrgstno"/>
  78. <Cell col="15" text="bind:email"/>
  79. <Cell col="16" text="bind:mpphonno"/>
  80. <Cell col="17" displaytype="date" text="bind:entcodd"/>
  81. <Cell col="18" text="bind:pdano"/>
  82. <Cell col="19" text="bind:anouserid"/>
  83. <Cell col="20" text="bind:lastupdtrid"/>
  84. <Cell col="21" displaytype="date" text="bind:lastupdtdt"/>
  85. </Band>
  86. </Format>
  87. </Formats>
  88. </Grid>
  89. <Static id="stt_titleText" text="사원기본정보조회" class="sta_POP_title" position="absolute 12 8 152 30"/>
  90. <Div id="grp_sea" anchor="left top right" taborder="9" style="align:center top;" class="div_SA" position="absolute 12 46 588 88">
  91. <Layouts>
  92. <Layout>
  93. <Button id="btn_search" taborder="18" text="조회" class="btn1" position="absolute 508 10 564 30" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  94. <Static id="caption2" text="검색조건" class="search_name" position="absolute 8 10 82 30" anchor="default"/>
  95. <Edit id="ed_searchValue" taborder="20" onkeydown="grp_sea_ed_searchValue_onkeydown" position="absolute 175 11 315 31" anchor="default"/>
  96. <Combo id="cb_condition" taborder="21" value="userid" text="사용자ID" codecolumn="codecolumn" datacolumn="datacolumn" index="0" position="absolute 82 11 172 31" anchor="default" onitemchanged="grp_sea_cb_condition_onitemchanged">
  97. <Dataset id="innerdataset">
  98. <ColumnInfo>
  99. <Column id="codecolumn" size="256"/>
  100. <Column id="datacolumn" size="256"/>
  101. </ColumnInfo>
  102. <Rows>
  103. <Row>
  104. <Col id="codecolumn">userid</Col>
  105. <Col id="datacolumn">사용자ID</Col>
  106. </Row>
  107. <Row>
  108. <Col id="codecolumn">usernm</Col>
  109. <Col id="datacolumn">사용자명</Col>
  110. </Row>
  111. <Row>
  112. <Col id="codecolumn">rrgstno</Col>
  113. <Col id="datacolumn">주민번호</Col>
  114. </Row>
  115. </Rows>
  116. </Dataset>
  117. </Combo>
  118. </Layout>
  119. </Layouts>
  120. </Div>
  121. <Button id="btn_close" taborder="11" class="btn_POP_cls" position="absolute 574 12 588 25" anchor="top right" onclick="btn_close_onclick"/>
  122. <Button id="btn_cancel" taborder="12" text="취소" class="btn4" position="absolute 532 422 588 442" anchor="right bottom" onclick="btn_cancel_onclick"/>
  123. <Button id="btn_ok" taborder="13" text="확인" class="btn4" position="absolute 473 422 529 442" anchor="right bottom" onclick="btn_ok_onclick"/>
  124. </Layout>
  125. </Layouts>
  126. <Objects>
  127. <Dataset id="ds_userList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  128. <ColumnInfo>
  129. <Column id="process" type="STRING" size="256"/>
  130. <Column id="userid" type="STRING" size="256"/>
  131. <Column id="usernm" type="STRING" size="256"/>
  132. <Column id="tempyn" type="STRING" size="256"/>
  133. <Column id="orginstcd" type="STRING" size="256"/>
  134. <Column id="orginstnm" type="STRING" size="256"/>
  135. <Column id="orgdeptnm" type="STRING" size="256"/>
  136. <Column id="orgdeptcd" type="STRING" size="256"/>
  137. <Column id="posinstnm" type="STRING" size="256"/>
  138. <Column id="posinstcd" type="STRING" size="256"/>
  139. <Column id="posdeptnm" type="STRING" size="256"/>
  140. <Column id="posdeptcd" type="STRING" size="256"/>
  141. <Column id="dutinstnm" type="STRING" size="256"/>
  142. <Column id="dutinstcd" type="STRING" size="256"/>
  143. <Column id="dutunitnm" type="STRING" size="256"/>
  144. <Column id="dutunitcd" type="STRING" size="256"/>
  145. <Column id="rrgstno" type="STRING" size="256"/>
  146. <Column id="email" type="STRING" size="256"/>
  147. <Column id="mpphonno" type="STRING" size="256"/>
  148. <Column id="entcodd" type="STRING" size="256"/>
  149. <Column id="pdano" type="STRING" size="256"/>
  150. <Column id="anouserid" type="STRING" size="256"/>
  151. <Column id="dutplceinstnm" type="STRING" size="256"/>
  152. <Column id="dutplceinstcd" type="STRING" size="256"/>
  153. <Column id="dutplcenm" type="STRING" size="256"/>
  154. <Column id="dutplcecd" type="STRING" size="256"/>
  155. <Column id="userfromdd" type="STRING" size="256"/>
  156. <Column id="usertodd" type="STRING" size="256"/>
  157. <Column id="jobkindnm" type="STRING" size="256"/>
  158. <Column id="jobkindcd" type="STRING" size="256"/>
  159. <Column id="jobposnm" type="STRING" size="256"/>
  160. <Column id="jobposcd" type="STRING" size="256"/>
  161. <Column id="jobrespnm" type="STRING" size="256"/>
  162. <Column id="jobrespcd" type="STRING" size="256"/>
  163. <Column id="prfshipflagnm" type="STRING" size="256"/>
  164. <Column id="prfshipflagcd" type="STRING" size="256"/>
  165. <Column id="psnworkyn" type="STRING" size="256"/>
  166. <Column id="apntflagnm" type="STRING" size="256"/>
  167. <Column id="apntflag" type="STRING" size="256"/>
  168. <Column id="licnsno" type="STRING" size="256"/>
  169. <Column id="medispclno" type="STRING" size="256"/>
  170. <Column id="specordyn" type="STRING" size="256"/>
  171. <Column id="majorfild" type="STRING" size="256"/>
  172. <Column id="lastupdtrid" type="STRING" size="256"/>
  173. <Column id="lastupdtdt" type="STRING" size="256"/>
  174. <Column id="pwd" type="STRING" size="256"/>
  175. <Column id="rem" type="STRING" size="256"/>
  176. <Column id="duploginyn" type="STRING" size="256"/>
  177. </ColumnInfo>
  178. </Dataset>
  179. </Objects>
  180. <Script type="xscript4.0"><![CDATA[/************************************************************************************************
  181. * 파 일 명 : SPZSU10104_사원기본정보조회.xfdl
  182. * 작 성 자 : 임준호
  183. * 작 성 일 : 2014.02.11
  184. * 설 명 : 사원기본정보 조회 팝업
  185. * return value - ()
  186. * 수 정 자 :
  187. * 수정이력 :
  188. ************************************************************************************************/
  189. include "com_commonxp::comm_main.xjs"
  190. /************************************************************************************************
  191. ******************************** Form Variable **************************************************
  192. ************************************************************************************************/
  193. /************************************************************************************************
  194. ******************************** Form Function **************************************************
  195. ************************************************************************************************/
  196. /********************************************************************************
  197. * 설 명 : 코드 정보를 서버에서 가져온다.
  198. * argument :
  199. ********************************************************************************/
  200. function lf_getUserList(){
  201. var S_IN_DS_REQ = "ds_req";
  202. if(!utlf_isNull(this.objects["ds_req"])){
  203. ds_req.clear();
  204. }
  205. var objColInfo = new Array();
  206. objColInfo.push({col: "searchcondition", val: grp_sea.cb_condition.value});
  207. objColInfo.push({col: "searchterm", val: grp_sea.ed_searchValue.value});
  208. objColInfo.push({col: "standarddd", val: plgv_sStandarddd});
  209. objColInfo.push({col: "userkindcd", val: plgv_sUserkindcd});
  210. dsf_createDsRow(S_IN_DS_REQ, objColInfo);
  211. tranf_submit({
  212. id: "tr_reqGetUserInfoList"
  213. , service: "userdeptinfoapp.UserInfo"
  214. , method: "reqGetUserInfoList"
  215. , inds : "req="+S_IN_DS_REQ
  216. , outds: "ds_userList=userlist"
  217. , async: true
  218. });
  219. }
  220. /********************************************************************************
  221. * 설 명 : 부모창의 return function을 호출하고 인자값을 넘겨준다.
  222. * argument :
  223. ********************************************************************************/
  224. function lf_setUserInfo(){
  225. var sUserid = ds_userList.getColumn(ds_userList.rowposition, "userid");
  226. var sUsernm = ds_userList.getColumn(ds_userList.rowposition, "usernm");
  227. var sOrginstnm = ds_userList.getColumn(ds_userList.rowposition, "orginstnm");
  228. var sOrginstcd = ds_userList.getColumn(ds_userList.rowposition, "orginstcd");
  229. var sOrgdeptnm = ds_userList.getColumn(ds_userList.rowposition, "orgdeptnm");
  230. var sOrgdeptcd = ds_userList.getColumn(ds_userList.rowposition, "orgdeptcd");
  231. var sPosinstnm = ds_userList.getColumn(ds_userList.rowposition, "posinstnm");
  232. var sPosinstcd = ds_userList.getColumn(ds_userList.rowposition, "posinstcd");
  233. var sPosdeptnm = ds_userList.getColumn(ds_userList.rowposition, "posdeptnm");
  234. var sPosdeptcd = ds_userList.getColumn(ds_userList.rowposition, "posdeptcd");
  235. var sDutinstnm = ds_userList.getColumn(ds_userList.rowposition, "dutinstnm");
  236. var sDutinstcd = ds_userList.getColumn(ds_userList.rowposition, "dutinstcd");
  237. var sDutunitnm = ds_userList.getColumn(ds_userList.rowposition, "dutunitnm");
  238. var sDutunitcd = ds_userList.getColumn(ds_userList.rowposition, "dutunitcd");
  239. var sRrgstno = ds_userList.getColumn(ds_userList.rowposition, "rrgstno");
  240. var sEmail = ds_userList.getColumn(ds_userList.rowposition, "email");
  241. var sMpphonno = ds_userList.getColumn(ds_userList.rowposition, "mpphonno");
  242. var sEntcodd = ds_userList.getColumn(ds_userList.rowposition, "entcodd");
  243. var sPdano = ds_userList.getColumn(ds_userList.rowposition, "pdano");
  244. var sAnouserid = ds_userList.getColumn(ds_userList.rowposition, "anouserid");
  245. var sUserInfo = utlf_transNullToEmpty(sUserid)
  246. + "|" + utlf_transNullToEmpty(sUsernm)
  247. + "|" + utlf_transNullToEmpty(sOrginstnm)
  248. + "|" + utlf_transNullToEmpty(sOrginstcd)
  249. + "|" + utlf_transNullToEmpty(sOrgdeptnm)
  250. + "|" + utlf_transNullToEmpty(sOrgdeptcd)
  251. + "|" + utlf_transNullToEmpty(sPosinstnm)
  252. + "|" + utlf_transNullToEmpty(sPosinstcd)
  253. + "|" + utlf_transNullToEmpty(sPosdeptnm)
  254. + "|" + utlf_transNullToEmpty(sPosdeptcd)
  255. + "|" + utlf_transNullToEmpty(sDutinstnm)
  256. + "|" + utlf_transNullToEmpty(sDutinstcd)
  257. + "|" + utlf_transNullToEmpty(sDutunitnm)
  258. + "|" + utlf_transNullToEmpty(sDutunitcd)
  259. + "|" + utlf_transNullToEmpty(sRrgstno)
  260. + "|" + utlf_transNullToEmpty(sEmail)
  261. + "|" + utlf_transNullToEmpty(sMpphonno)
  262. + "|" + utlf_transNullToEmpty(sEntcodd)
  263. + "|" + utlf_transNullToEmpty(sPdano)
  264. + "|" + utlf_transNullToEmpty(sAnouserid);
  265. //eval("opener."+plgv_sReturnFuncNm+"('"+sUserInfo+"')");
  266. var objRetVal = new Object();
  267. objRetVal.userInfo = sUserInfo;
  268. this.close(objRetVal);
  269. }
  270. /************************************************************************************************
  271. ******************************** Form Event *****************************************************
  272. ************************************************************************************************/
  273. /********************************************************************************
  274. * 설 명 : form onload - argument로 넘어온 검색조건과 검색어를
  275. * 해당 컴포넌트에 입력하고 조회한다.
  276. * argument :
  277. ********************************************************************************/
  278. function SPZSU10104_onload(obj:Form, e:LoadEventInfo)
  279. {
  280. frmf_initForm(obj);
  281. grp_sea.cb_condition.index = 0;
  282. grp_sea.ed_searchValue.value = "";
  283. if(!utlf_isNull(plgv_sSearchCondition)){
  284. grp_sea.cb_condition.value = plgv_sSearchCondition;
  285. }
  286. if(!utlf_isNull(plgv_sSearchTerm)){
  287. grp_sea.ed_searchValue.value = plgv_sSearchTerm;
  288. lf_getUserList();
  289. }
  290. grp_sea.ed_searchValue.setFocus();
  291. setImemode(grp_sea.ed_searchValue, grp_sea.cb_condition.value);
  292. /*
  293. 컬럼 visible 설정
  294. 0 userid 60
  295. 1 usernm 60
  296. 2 orginstnm 130
  297. 3 orginstcd 90
  298. 4 orgdeptnm 130
  299. 5 orgdeptcd 95
  300. 6 posinstnm 130
  301. 7 posinstcd 80
  302. 8 posdeptnm 130
  303. 9 posdeptcd 80
  304. 10 dutinstnm 130
  305. 11 dutinstcd 80
  306. 12 dutunitnm 130
  307. 13 dutunitcd 80
  308. 14 rrgstno 90
  309. 15 email 130
  310. 16 mpphonno 90
  311. 17 entcodd 70
  312. 18 pdano 80
  313. 19 anouserid 70
  314. 20 lastupdtrid 80
  315. 21 lastupdtdt 80
  316. */
  317. if(!utlf_isNull(plgv_sVisibleColumns)){
  318. var arrColSize = new Array();
  319. var arrVisibleCol = plgv_sVisibleColumns.split(" ");
  320. arrColSize.push({col: "userid", size: "60"});
  321. arrColSize.push({col: "usernm", size: "60"});
  322. arrColSize.push({col: "orginstnm", size: "130"});
  323. arrColSize.push({col: "orginstcd", size: "90"});
  324. arrColSize.push({col: "orgdeptnm", size: "130"});
  325. arrColSize.push({col: "orgdeptcd", size: "95"});
  326. arrColSize.push({col: "posinstnm", size: "130"});
  327. arrColSize.push({col: "posinstcd", size: "80"});
  328. arrColSize.push({col: "posdeptnm", size: "130"});
  329. arrColSize.push({col: "posdeptcd", size: "80"});
  330. arrColSize.push({col: "dutinstnm", size: "130"});
  331. arrColSize.push({col: "dutinstcd", size: "80"});
  332. arrColSize.push({col: "dutunitnm", size: "130"});
  333. arrColSize.push({col: "dutunitcd", size: "80"});
  334. arrColSize.push({col: "rrgstno", size: "90"});
  335. arrColSize.push({col: "email", size: "130"});
  336. arrColSize.push({col: "mpphonno", size: "90"});
  337. arrColSize.push({col: "entcodd", size: "70"});
  338. arrColSize.push({col: "pdano", size: "80"});
  339. arrColSize.push({col: "anouserid", size: "70"});
  340. arrColSize.push({col: "lastupdtrid", size: "80"});
  341. arrColSize.push({col: "lastupdtdt", size: "80"});
  342. for(var i in arrColSize){
  343. gd_userList.setFormatColProperty(i,"size", 0);
  344. }
  345. for(var i in arrVisibleCol){
  346. trace("arrVisibleCol-"+i+"="+arrVisibleCol[i]);
  347. for(var j in arrColSize){
  348. if(arrVisibleCol[i] === arrColSize[j].col){
  349. gd_userList.setFormatColProperty(j,"size", arrColSize[j].size);
  350. }
  351. }
  352. }
  353. }
  354. }
  355. /********************************************************************************
  356. * 설 명 : 조회 - 코드목록을 조회한다.
  357. * argument :
  358. ********************************************************************************/
  359. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  360. {
  361. //trace("opener.arglgv_test="+opener.arglgv_test);
  362. lf_getUserList();
  363. }
  364. /********************************************************************************
  365. * 설 명 : 취소 - 팝업을 닫는다.
  366. * argument :
  367. ********************************************************************************/
  368. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  369. {
  370. this.close();
  371. }
  372. /********************************************************************************
  373. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  374. * argument :
  375. ********************************************************************************/
  376. function gd_userList_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  377. {
  378. lf_setUserInfo();
  379. }
  380. /********************************************************************************
  381. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  382. * argument :
  383. ********************************************************************************/
  384. function btn_ok_onclick(obj:Button, e:ClickEventInfo)
  385. {
  386. lf_setUserInfo();
  387. }
  388. /********************************************************************************
  389. * 설 명 : edit박스에서 enter키 입력했을때 목록을 조회한다.
  390. * argument :
  391. ********************************************************************************/
  392. function grp_sea_ed_searchValue_onkeydown(obj:Edit, e:KeyEventInfo)
  393. {
  394. if(e.keycode == 13){
  395. lf_getUserList();
  396. }
  397. }
  398. /********************************************************************************
  399. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  400. * argument :
  401. ********************************************************************************/
  402. function gd_userList_onkeydown(obj:Grid, e:KeyEventInfo)
  403. {
  404. if(e.keycode == 13){
  405. lf_setUserInfo();
  406. }
  407. }
  408. /********************************************************************************
  409. * 설 명 : 팝업을 닫는다.
  410. * argument :
  411. ********************************************************************************/
  412. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  413. {
  414. this.close();
  415. }
  416. function grp_sea_cb_condition_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  417. {
  418. grp_sea.ed_searchValue.value = "";
  419. grp_sea.ed_searchValue.setFocus();
  420. setImemode(grp_sea.ed_searchValue, e.postvalue);
  421. }
  422. function setImemode(objEdt:Edit, sValue){
  423. if(sValue == "userid" || sValue == "rrgstno"){
  424. objEdt.imemode = "alpha";
  425. }else if(sValue == "usernm"){
  426. objEdt.imemode = "hangul";
  427. }
  428. }
  429. function SPZSU10104_onkeydown(obj:Form, e:KeyEventInfo)
  430. {
  431. if(e.keycode == 27) this.close();
  432. }
  433. ]]></Script>
  434. </Form>
  435. </FDL>