SPZSD00100_통합부서검색팝업.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZSD00100" classname="SPZBC00100_코드검색팝업" inheritanceid="" position="absolute 0 0 584 429" titletext="통합부서검색" onload="SPZSD00100_onload" class="frm_POP" onkeydown="SPZSD00100_onkeydown">
  5. <Layouts>
  6. <Layout>
  7. <Static id="st_codeList" text="부서코드 목록" class="tit_2" anchor="default" position="absolute 12 98 144 118" positiontype="position"/>
  8. <Grid id="gd_deptCodeList" taborder="3" useinputpanel="false" position2="absolute l:12 w:560 t:118 h:276" positiontype="position2" binddataset="ds_deptCodeList" cellmovingtype="none" autofittype="none" cellsizebandtype="allband" cellsizingtype="col" areaselecttype="limitband" oncelldblclick="gd_deptCodeList_oncelldblclick" onkeydown="gd_deptCodeList_onkeydown">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="60"/>
  13. <Column size="160"/>
  14. <Column size="160"/>
  15. <Column size="100"/>
  16. <Column size="100"/>
  17. <Column size="100"/>
  18. <Column size="100"/>
  19. <Column size="100"/>
  20. <Column size="100"/>
  21. <Column size="80"/>
  22. <Column size="70"/>
  23. <Column size="80"/>
  24. <Column size="70"/>
  25. <Column size="80"/>
  26. </Columns>
  27. <Rows>
  28. <Row size="22" band="head"/>
  29. <Row size="20"/>
  30. </Rows>
  31. <Band id="head">
  32. <Cell text="부서코드"/>
  33. <Cell col="1" text="부서이름"/>
  34. <Cell col="2" text="부서상세설명"/>
  35. <Cell col="3" text="부서코드 레벨2"/>
  36. <Cell col="4" text="부서코드 레벨3"/>
  37. <Cell col="5" text="부서코드 레벨4"/>
  38. <Cell col="6" text="부서코드 레벨5"/>
  39. <Cell col="7" text="부서코드 레벨6"/>
  40. <Cell col="8" text="부서코드 레벨7"/>
  41. <Cell col="9" text="상위부서코드"/>
  42. <Cell col="10" text="등록 일시"/>
  43. <Cell col="11" text="등록자 사번"/>
  44. <Cell col="12" text="수정일자"/>
  45. <Cell col="13" text="수정자 사번"/>
  46. </Band>
  47. <Band id="body">
  48. <Cell text="bind:deptcd"/>
  49. <Cell col="1" style="align:left;padding:0 0 0 3;" text="bind:deptnm"/>
  50. <Cell col="2" style="align:left;padding:0 0 0 3;" text="bind:detldesc"/>
  51. <Cell col="3" text="bind:deptcdlevl2"/>
  52. <Cell col="4" text="bind:deptcdlevl3"/>
  53. <Cell col="5" text="bind:deptcdlevl4"/>
  54. <Cell col="6" text="bind:deptcdlevl5"/>
  55. <Cell col="7" text="bind:deptcdlevl6"/>
  56. <Cell col="8" text="bind:deptcdlevl7"/>
  57. <Cell col="9" text="bind:supdeptcd"/>
  58. <Cell col="10" displaytype="date" style="align:center;padding:0 0 0 0;" text="bind:fstrgstdt"/>
  59. <Cell col="11" style="align:center;padding: ;" text="bind:fstrgstrid"/>
  60. <Cell col="12" displaytype="date" text="bind:lastupdtdt"/>
  61. <Cell col="13" text="bind:lastupdtrid"/>
  62. </Band>
  63. </Format>
  64. </Formats>
  65. </Grid>
  66. <Button id="bt_ok" taborder="4" text="확인" onclick="bt_ok_onclick" class="btn4" anchor="default" position="absolute 457 397 513 417" positiontype="position"/>
  67. <Button id="bt_cancel" taborder="5" text="취소" onclick="bt_cancel_onclick" class="btn4" anchor="default" position="absolute 516 397 572 417" positiontype="position"/>
  68. <Button id="btn_close" taborder="7" class="btn_POP_cls" position="absolute 558 12 572 25" onclick="btn_close_onclick"/>
  69. <Static id="stt_titleText" text="통합부서검색" class="sta_POP_title" position="absolute 12 8 161 28"/>
  70. <Div id="div_search" taborder="8" class="div_SA" position="absolute 12 46 572 88">
  71. <Layouts>
  72. <Layout>
  73. <Static id="st_searchCondition" text="검색조건" class="search_name" anchor="default" position="absolute 8 10 96 30" positiontype="position"/>
  74. <Combo id="cb_condition" taborder="1" value="deptcd" text="부서코드" codecolumn="codecolumn" datacolumn="datacolumn" index="0" anchor="default" position="absolute 82 10 173 30" positiontype="position" onitemchanged="div_search_cb_condition_onitemchanged">
  75. <Dataset id="innerdataset">
  76. <ColumnInfo>
  77. <Column id="codecolumn" size="256"/>
  78. <Column id="datacolumn" size="256"/>
  79. </ColumnInfo>
  80. <Rows>
  81. <Row>
  82. <Col id="codecolumn">deptcd</Col>
  83. <Col id="datacolumn">부서코드</Col>
  84. </Row>
  85. <Row>
  86. <Col id="codecolumn">deptnm</Col>
  87. <Col id="datacolumn">부서명</Col>
  88. </Row>
  89. </Rows>
  90. </Dataset>
  91. </Combo>
  92. <Edit id="ed_searchValue" taborder="2" onkeydown="div_search_ed_searchValue_onkeydown" anchor="default" position="absolute 176 10 316 30" positiontype="position" imemode="alpha"/>
  93. <Button id="bt_search" taborder="3" text="조회" onclick="bt_search_onclick" class="btn1" position="absolute 492 10 548 30" anchor="default" positiontype="position"/>
  94. </Layout>
  95. </Layouts>
  96. </Div>
  97. </Layout>
  98. </Layouts>
  99. <Objects>
  100. <Dataset id="ds_deptCodeList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="deptcd" type="STRING" size="256"/>
  103. <Column id="deptnm" type="STRING" size="256"/>
  104. <Column id="detldesc" type="STRING" size="256"/>
  105. <Column id="deptcdlevl2" type="STRING" size="256"/>
  106. <Column id="deptcdlevl3" type="STRING" size="256"/>
  107. <Column id="deptcdlevl4" type="STRING" size="256"/>
  108. <Column id="deptcdlevl5" type="STRING" size="256"/>
  109. <Column id="deptcdlevl6" type="STRING" size="256"/>
  110. <Column id="deptcdlevl7" type="STRING" size="256"/>
  111. <Column id="supdeptcd" type="STRING" size="256"/>
  112. <Column id="fstrgstdt" type="STRING" size="256"/>
  113. <Column id="fstrgstrid" type="STRING" size="256"/>
  114. <Column id="lastupdtdt" type="STRING" size="256"/>
  115. <Column id="lastupdtrid" type="STRING" size="256"/>
  116. <Column id="level" type="STRING" size="256"/>
  117. </ColumnInfo>
  118. </Dataset>
  119. </Objects>
  120. <Script type="xscript4.0"><![CDATA[/************************************************************************************************
  121. * 파 일 명 : SPZSD00100_통합부서검색팝업.xfdl
  122. * 작 성 자 : 임준호
  123. * 작 성 일 : 2014.02.12
  124. * 설 명 : 통합부서검색 팝업
  125. * return value -
  126. * (sDeptcd:부서코드, sDeptnm:부서코드명)
  127. * 수 정 자 :
  128. * 수정이력 :
  129. ************************************************************************************************/
  130. include "com_commonxp::comm_main.xjs"
  131. /************************************************************************************************
  132. ******************************** Form Variable **************************************************
  133. ************************************************************************************************/
  134. /************************************************************************************************
  135. ******************************** Form Function **************************************************
  136. ************************************************************************************************/
  137. /********************************************************************************
  138. * 설 명 : 부서 코드 정보를 서버에서 가져온다.
  139. * argument :
  140. ********************************************************************************/
  141. function lf_getDeptCodeList(){
  142. var S_IN_DS_REQ = "ds_req";
  143. if(!utlf_isNull(this.objects["ds_req"])){
  144. ds_req.clear();
  145. }
  146. var objColInfo = new Array();
  147. objColInfo.push({col: "searchcondition", val: div_search.cb_condition.value});
  148. objColInfo.push({col: "searchterm", val: "%"+utlf_transNullToEmpty(div_search.ed_searchValue.value)+"%"});
  149. dsf_createDsRow(S_IN_DS_REQ, objColInfo);
  150. tranf_submit({
  151. id: "tr_reqGetDepartmentCodeList"
  152. , service: "departmentcodeapp.DepartmentCodeAdmin"
  153. , method: "reqGetDepartmentMasterCodeList"
  154. , inds : "req="+S_IN_DS_REQ
  155. , outds: "ds_deptCodeList=dept"
  156. , async: true
  157. });
  158. }
  159. /********************************************************************************
  160. * 설 명 : 부모창의 return function을 호출하고 인자값을 넘겨준다.
  161. * argument :
  162. ********************************************************************************/
  163. function lf_setDeptCodeInfo(){
  164. var sDeptcd = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "deptcd");
  165. var sDeptnm = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "deptnm");
  166. //eval("opener."+plgv_sReturnFuncNm+"('"+sDeptcd+"', '"+sDeptnm+"')");
  167. var objRetVal = new Object();
  168. objRetVal.deptcd = sDeptcd;
  169. objRetVal.deptnm = sDeptnm;
  170. this.close(objRetVal);
  171. }
  172. /************************************************************************************************
  173. ******************************** Form Event *****************************************************
  174. ************************************************************************************************/
  175. /********************************************************************************
  176. * 설 명 : form onload - argument로 넘어온 검색조건과 검색어를
  177. * 해당 컴포넌트에 입력하고 조회한다.
  178. * argument :
  179. ********************************************************************************/
  180. function SPZSD00100_onload(obj:Form, e:LoadEventInfo)
  181. {
  182. frmf_initForm(obj);
  183. div_search.cb_condition.index = 0;
  184. div_search.ed_searchValue.value = "";
  185. if(!utlf_isNull(plgv_sSearchCondition)){
  186. div_search.cb_condition.value = plgv_sSearchCondition;
  187. }
  188. if(!utlf_isNull(plgv_sSearchTerm)){
  189. div_search.ed_searchValue.value = plgv_sSearchTerm;
  190. lf_getDeptCodeList();
  191. }
  192. div_search.ed_searchValue.setFocus();
  193. setImemode(div_search.ed_searchValue, div_search.cb_condition.value);
  194. gd_deptCodeList.setFormatColProperty(3, "size", 0);
  195. gd_deptCodeList.setFormatColProperty(4, "size", 0);
  196. gd_deptCodeList.setFormatColProperty(5, "size", 0);
  197. gd_deptCodeList.setFormatColProperty(6, "size", 0);
  198. gd_deptCodeList.setFormatColProperty(7, "size", 0);
  199. gd_deptCodeList.setFormatColProperty(8, "size", 0);
  200. }
  201. /********************************************************************************
  202. * 설 명 : 조회 - 코드목록을 조회한다.
  203. * argument :
  204. ********************************************************************************/
  205. function bt_search_onclick(obj:Button, e:ClickEventInfo)
  206. {
  207. lf_getDeptCodeList();
  208. }
  209. /********************************************************************************
  210. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  211. * argument :
  212. ********************************************************************************/
  213. function gd_deptCodeList_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  214. {
  215. lf_setDeptCodeInfo();
  216. }
  217. /********************************************************************************
  218. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  219. * argument :
  220. ********************************************************************************/
  221. function bt_ok_onclick(obj:Button, e:ClickEventInfo)
  222. {
  223. lf_setDeptCodeInfo();
  224. }
  225. /********************************************************************************
  226. * 설 명 : edit박스에서 enter키 입력했을때 목록을 조회한다.
  227. * argument :
  228. ********************************************************************************/
  229. function div_search_ed_searchValue_onkeydown(obj:Edit, e:KeyEventInfo)
  230. {
  231. if(e.keycode == 13){
  232. lf_getDeptCodeList();
  233. }
  234. }
  235. /********************************************************************************
  236. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  237. * argument :
  238. ********************************************************************************/
  239. function gd_deptCodeList_onkeydown(obj:Grid, e:KeyEventInfo)
  240. {
  241. if(e.keycode == 13){
  242. lf_setDeptCodeInfo();
  243. }
  244. }
  245. /********************************************************************************
  246. * 설 명 : 취소 - 팝업을 닫는다.
  247. * argument :
  248. ********************************************************************************/
  249. function bt_cancel_onclick(obj:Button, e:ClickEventInfo)
  250. {
  251. this.close();
  252. }
  253. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  254. {
  255. this.close();
  256. }
  257. function setImemode(objEdt:Edit, sValue){
  258. if(sValue == "deptcd"){
  259. objEdt.imemode = "alpha";
  260. }else if(sValue == "deptnm"){
  261. objEdt.imemode = "hangul";
  262. }
  263. }
  264. function div_search_cb_condition_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  265. {
  266. div_search.ed_searchValue.value = "";
  267. div_search.ed_searchValue.setFocus();
  268. setImemode(div_search.ed_searchValue, e.postvalue);
  269. }
  270. function SPZSD00100_onkeydown(obj:Form, e:KeyEventInfo)
  271. {
  272. if(e.keycode == 27) this.close();
  273. }
  274. ]]></Script>
  275. </Form>
  276. </FDL>