SPZBC00400_유형코드검색팝업.xfdl 14 KB

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