SPZBC00300_업무규칙검색팝업.xfdl 12 KB

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