SPZSU10106_근무지별사용자조회.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZSU10106" classname="SPZBC00100_코드검색팝업" inheritanceid="" position="absolute 0 0 600 454" titletext="근무지별사용자조회" onload="SPZSU10106_onload" class="frm_POP" onkeydown="SPZSU10106_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 118 588 419" positiontype="position">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="75"/>
  12. <Column size="65"/>
  13. <Column size="103"/>
  14. <Column size="120"/>
  15. <Column size="81"/>
  16. <Column size="95"/>
  17. </Columns>
  18. <Rows>
  19. <Row size="30" band="head"/>
  20. <Row size="24"/>
  21. </Rows>
  22. <Band id="head">
  23. <Cell text="사용자ID"/>
  24. <Cell col="1" text="사용자명"/>
  25. <Cell col="2" text="근무지&#13;&#10;기관코드"/>
  26. <Cell col="3" text="근무지기관명"/>
  27. <Cell col="4" text="근무지코드"/>
  28. <Cell col="5" text="근무지명"/>
  29. </Band>
  30. <Band id="body">
  31. <Cell text="bind:userid"/>
  32. <Cell col="1" text="bind:usernm"/>
  33. <Cell col="2" text="bind:dutplceinstcd"/>
  34. <Cell col="3" text="bind:dutplceinstnm"/>
  35. <Cell col="4" text="bind:dutplcecd"/>
  36. <Cell col="5" text="bind:dutplcenm"/>
  37. </Band>
  38. </Format>
  39. </Formats>
  40. </Grid>
  41. <Static id="stt_titleText" text="근무지별 사용자정보 조회" class="sta_POP_title" position="absolute 12 8 208 30"/>
  42. <Div id="div_search" anchor="left top right" taborder="8" style="align:center top;" class="div_SA" position="absolute 12 46 588 88">
  43. <Layouts>
  44. <Layout>
  45. <Button id="btn_search" taborder="22" text="조회" class="btn1" position="absolute 508 10 564 30" anchor="top right" onclick="div_search_btn_search_onclick"/>
  46. <Static id="caption2" text="검색조건" class="search_name" position="absolute 8 10 82 30" anchor="default"/>
  47. <Edit id="ed_searchValue" taborder="23" onkeydown="div_search_ed_searchValue_onkeydown" position="absolute 175 11 315 31" anchor="default"/>
  48. <Combo id="cb_condition" taborder="24" value="userid" text="사용자ID" codecolumn="codecolumn" datacolumn="datacolumn" index="0" position="absolute 82 11 172 31" anchor="default" onitemchanged="div_search_cb_condition_onitemchanged">
  49. <Dataset id="innerdataset">
  50. <ColumnInfo>
  51. <Column id="codecolumn" size="256"/>
  52. <Column id="datacolumn" size="256"/>
  53. </ColumnInfo>
  54. <Rows>
  55. <Row>
  56. <Col id="codecolumn">userid</Col>
  57. <Col id="datacolumn">사용자ID</Col>
  58. </Row>
  59. <Row>
  60. <Col id="codecolumn">usernm</Col>
  61. <Col id="datacolumn">사용자명</Col>
  62. </Row>
  63. <Row>
  64. <Col id="codecolumn">rrgstno</Col>
  65. <Col id="datacolumn">주민번호</Col>
  66. </Row>
  67. </Rows>
  68. </Dataset>
  69. </Combo>
  70. </Layout>
  71. </Layouts>
  72. </Div>
  73. <Button id="btn_cancel" taborder="9" text="취소" class="btn4" position="absolute 532 422 588 442" anchor="right bottom" onclick="btn_cancel_onclick"/>
  74. <Button id="btn_confirm" taborder="10" text="확인" class="btn4" position="absolute 473 422 529 442" anchor="right bottom" onclick="btn_confirm_onclick"/>
  75. <Static id="caption1" text="근무지별 사용자정보" class="tit_2" position="absolute 12 98 175 118"/>
  76. <Button id="btn_close" taborder="11" class="btn_POP_cls" position="absolute 574 12 588 25" anchor="top right" onclick="btn_close_onclick"/>
  77. </Layout>
  78. </Layouts>
  79. <Objects>
  80. <Dataset id="ds_userList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  81. <ColumnInfo>
  82. <Column id="userid" type="STRING" size="256"/>
  83. <Column id="usernm" type="STRING" size="256"/>
  84. <Column id="dutplceinstcd" type="STRING" size="256"/>
  85. <Column id="dutplceinstnm" type="STRING" size="256"/>
  86. <Column id="dutplcecd" type="STRING" size="256"/>
  87. <Column id="dutplcenm" type="STRING" size="256"/>
  88. </ColumnInfo>
  89. </Dataset>
  90. </Objects>
  91. <Script type="xscript4.0"><![CDATA[/************************************************************************************************
  92. * 파 일 명 : SPZSU10106_근무지별사용자조회.xfdl
  93. * 작 성 자 : 임준호
  94. * 작 성 일 : 2014.02.11
  95. * 설 명 : 근무지별 사용자 조회 팝업
  96. * return value - (sUserid:사용자ID, sUsernm:사용자명)
  97. * 수 정 자 :
  98. * 수정이력 :
  99. ************************************************************************************************/
  100. include "com_commonxp::comm_main.xjs"
  101. /************************************************************************************************
  102. ******************************** Form Variable **************************************************
  103. ************************************************************************************************/
  104. /************************************************************************************************
  105. ******************************** Form Function **************************************************
  106. ************************************************************************************************/
  107. /********************************************************************************
  108. * 설 명 : 코드 정보를 서버에서 가져온다.
  109. * argument :
  110. ********************************************************************************/
  111. function lf_getUserList(){
  112. var S_IN_DS_REQ = "ds_req";
  113. if(!utlf_isNull(this.objects["ds_req"])){
  114. ds_req.clear();
  115. }
  116. var objColInfo = new Array();
  117. objColInfo.push({col: "searchcondition", val: div_search.cb_condition.value});
  118. objColInfo.push({col: "searchterm", val: div_search.ed_searchValue.value});
  119. objColInfo.push({col: "dutplceinstcd", val: plgv_sDutplceinstcd});
  120. objColInfo.push({col: "dutplcecd", val: plgv_sDutplcecd});
  121. objColInfo.push({col: "basedd", val: plgv_sBasedd});
  122. dsf_createDsRow(S_IN_DS_REQ, objColInfo);
  123. tranf_submit({
  124. id: "tr_reqGetAvailableTeamManager"
  125. , service: "userdeptinfoapp.UserDeptInfoAdmin"
  126. , method: "reqGetAvailableTeamManager"
  127. , inds : "req="+S_IN_DS_REQ
  128. , outds: "ds_userList=teammanager"
  129. , async: true
  130. });
  131. }
  132. /********************************************************************************
  133. * 설 명 : 부모창의 return function을 호출하고 인자값을 넘겨준다.
  134. * argument :
  135. ********************************************************************************/
  136. function lf_setUserInfo(){
  137. var sUserid = ds_userList.getColumn(ds_userList.rowposition, "userid");
  138. var sUsernm = ds_userList.getColumn(ds_userList.rowposition, "usernm");
  139. //eval("opener."+plgv_sReturnFuncNm+"('"+sUserid+"', '"+sUsernm+"')");
  140. var objRetVal = new Object();
  141. objRetVal.userid = sUserid;
  142. objRetVal.usernm = sUsernm;
  143. this.close(objRetVal);
  144. }
  145. /************************************************************************************************
  146. ******************************** Form Event *****************************************************
  147. ************************************************************************************************/
  148. /********************************************************************************
  149. * 설 명 : form onload - argument로 넘어온 검색조건과 검색어를
  150. * 해당 컴포넌트에 입력하고 조회한다.
  151. * argument :
  152. ********************************************************************************/
  153. function SPZSU10106_onload(obj:Form, e:LoadEventInfo)
  154. {
  155. frmf_initForm(obj);
  156. div_search.cb_condition.index = 0;
  157. div_search.ed_searchValue.value = "";
  158. if(!utlf_isNull(plgv_sSearchCondition)){
  159. div_search.cb_condition.value = plgv_sSearchCondition;
  160. }
  161. if(!utlf_isNull(plgv_sSearchTerm)){
  162. div_search.ed_searchValue.value = plgv_sSearchTerm;
  163. lf_getUserList();
  164. }
  165. div_search.ed_searchValue.setFocus();
  166. setImemode(div_search.ed_searchValue, div_search.cb_condition.value);
  167. }
  168. /********************************************************************************
  169. * 설 명 : 조회 - 코드목록을 조회한다.
  170. * argument :
  171. ********************************************************************************/
  172. function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  173. {
  174. //trace("opener.arglgv_test="+opener.arglgv_test);
  175. lf_getUserList();
  176. }
  177. /********************************************************************************
  178. * 설 명 : 취소 - 팝업을 닫는다.
  179. * argument :
  180. ********************************************************************************/
  181. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  182. {
  183. this.close();
  184. }
  185. /********************************************************************************
  186. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  187. * argument :
  188. ********************************************************************************/
  189. function gd_userList_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  190. {
  191. lf_setUserInfo();
  192. }
  193. /********************************************************************************
  194. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  195. * argument :
  196. ********************************************************************************/
  197. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  198. {
  199. lf_setUserInfo();
  200. }
  201. /********************************************************************************
  202. * 설 명 : edit박스에서 enter키 입력했을때 목록을 조회한다.
  203. * argument :
  204. ********************************************************************************/
  205. function div_search_ed_searchValue_onkeydown(obj:Edit, e:KeyEventInfo)
  206. {
  207. if(e.keycode == 13){
  208. lf_getUserList();
  209. }
  210. }
  211. /********************************************************************************
  212. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  213. * argument :
  214. ********************************************************************************/
  215. function gd_userList_onkeydown(obj:Grid, e:KeyEventInfo)
  216. {
  217. if(e.keycode == 13){
  218. lf_setUserInfo();
  219. }
  220. }
  221. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  222. {
  223. this.close();
  224. }
  225. function div_search_cb_condition_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  226. {
  227. div_search.ed_searchValue.value = "";
  228. div_search.ed_searchValue.setFocus();
  229. setImemode(div_search.ed_searchValue, e.postvalue);
  230. }
  231. function setImemode(objEdt:Edit, sValue){
  232. if(sValue == "userid" || sValue == "rrgstno"){
  233. objEdt.imemode = "alpha";
  234. }else if(sValue == "usernm"){
  235. objEdt.imemode = "hangul";
  236. }
  237. }
  238. function SPZSU10106_onkeydown(obj:Form, e:KeyEventInfo)
  239. {
  240. if(e.keycode == 27) this.close();
  241. }
  242. ]]></Script>
  243. </Form>
  244. </FDL>