SMLIF00600_MIS거래처조회.xfdl 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLIF00600" classname="SPZBC00100_코드검색팝업" inheritanceid="" position="absolute 0 0 551 500" titletext="MIS거래처조회" onload="SMLIF00600_onload" onkeydown="SMLIF00600_onkeydown">
  5. <Layouts>
  6. <Layout>
  7. <Static id="st_codeList" text="거래처 목록" position2="absolute l:0 w:132 t:78 h:20" positiontype="position2" class="tit_2"/>
  8. <Grid id="grd_custcdlist" taborder="3" useinputpanel="false" position2="absolute l:0 w:550 t:98 h:376" positiontype="position2" binddataset="ds_custcdlist" cellmovingtype="none" autofittype="col" cellsizebandtype="allband" cellsizingtype="col" areaselecttype="limitband" oncelldblclick="grd_custcdlist_oncelldblclick" onkeydown="grd_custcdlist_onkeydown">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="30"/>
  13. <Column size="65"/>
  14. <Column size="200"/>
  15. <Column size="60"/>
  16. <Column size="90"/>
  17. <Column size="90"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell/>
  25. <Cell col="1" text="코드" autosizecol="limitmin"/>
  26. <Cell col="2" text="거래처명"/>
  27. <Cell col="3" text="대표자"/>
  28. <Cell col="4" text="전화번호"/>
  29. <Cell col="5" text="핸드폰번호"/>
  30. </Band>
  31. <Band id="body">
  32. <Cell celltype="head" text="expr:currow+1"/>
  33. <Cell col="1" style="align:center;" text="bind:custcd"/>
  34. <Cell col="2" style="align:left;padding:0 0 0 3;" text="bind:custnm"/>
  35. <Cell col="3" style="align:center;" text="bind:prsdnm"/>
  36. <Cell col="4" style="align:left;" text="bind:cntctel"/>
  37. <Cell col="5" style="align:left;" text="bind:acntchrgtelno"/>
  38. </Band>
  39. </Format>
  40. </Formats>
  41. </Grid>
  42. <Button id="bt_ok" taborder="4" text="확인" onclick="bt_ok_onclick" class="btn4" anchor="default" position="absolute 435 477 491 497" positiontype="position"/>
  43. <Button id="bt_cancel" taborder="5" text="취소" onclick="bt_cancel_onclick" class="btn4" anchor="default" position="absolute 494 477 550 497" positiontype="position"/>
  44. <Div id="div_search" taborder="7" class="div_SA" position="absolute 0 26 550 68">
  45. <Layouts>
  46. <Layout>
  47. <Button id="btn_search" taborder="3" text="조회" class="btn1" anchor="default" position="absolute 482 10 538 30" onclick="div_search_btn_search_onclick" positiontype="position"/>
  48. <Static id="ipt_searchCondition00" text="거래처명 : " class="search_name" position="absolute 24 10 115 30" anchor="default"/>
  49. <Edit id="ipt_custnm" taborder="4" imemode="none" position="absolute 103 10 228 30" anchor="default" onkeydown="div_search_ipt_custnm_onkeydown"/>
  50. <Shape id="line3" linetype="vertical" position="absolute 459 11 464 31" anchor="top right"/>
  51. </Layout>
  52. </Layouts>
  53. </Div>
  54. <Static id="caption6" text="MIS거래처조회" class="tit_1" position="absolute 0 0 137 26"/>
  55. </Layout>
  56. </Layouts>
  57. <Objects>
  58. <Dataset id="ds_custcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  59. <ColumnInfo>
  60. <Column id="custcd" type="STRING" size="256"/>
  61. <Column id="custnm" type="STRING" size="256"/>
  62. <Column id="prsdnm" type="STRING" size="256"/>
  63. <Column id="cntctel" type="STRING" size="256"/>
  64. <Column id="acntchrgtelno" type="STRING" size="256"/>
  65. </ColumnInfo>
  66. </Dataset>
  67. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  68. <ColumnInfo>
  69. <Column id="custnm" type="STRING" size="256"/>
  70. </ColumnInfo>
  71. <Rows>
  72. <Row/>
  73. </Rows>
  74. </Dataset>
  75. </Objects>
  76. <Bind>
  77. <BindItem id="item2" compid="div_search.ipt_custnm" propid="value" datasetid="ds_send" columnid="custnm"/>
  78. </Bind>
  79. <Script type="xscript4.0"><![CDATA[/************************************************************************************************
  80. * 파 일 명 : SMLIF00600_MIS거래처조회.xfdl
  81. * 작 성 자 : 엄영만
  82. * 작 성 일 : 2020.01.17
  83. * 설 명 : MIS 거래처 정보 검색 팝업
  84. * 수 정 자 :
  85. * 수정이력 :
  86. ************************************************************************************************/
  87. include "com_commonxp::comm_main.xjs"
  88. /************************************************************************************************
  89. ******************************** Form Event *****************************************************
  90. ************************************************************************************************/
  91. /********************************************************************************
  92. * 설 명 : form onload - argument로 넘어온 검색조건과 검색어를
  93. * 해당 컴포넌트에 입력하고 조회한다.
  94. * argument :
  95. ********************************************************************************/
  96. function SMLIF00600_onload(obj:Form, e:LoadEventInfo)
  97. {
  98. frmf_initForm(obj);
  99. grdf_initGrid(grd_custcdlist);
  100. grdf_setToolTipBind(grd_custcdlist);
  101. div_search.ipt_custnm.setFocus();
  102. }
  103. /********************************************************************************
  104. * 설 명 : 거래처 코드 정보를 서버에서 가져온다.
  105. * argument :
  106. ********************************************************************************/
  107. function getCustCdList()
  108. {
  109. var oParam = {};
  110. oParam.id = "TRLIF00301";
  111. oParam.service = "diagtestbaseinfomngtapp.InterfaceTestBaseInfoMngt";
  112. oParam.method = "reqGetCustCdList";
  113. oParam.inds = "req=ds_send";
  114. oParam.outds = "ds_custcdlist=custcdlist";
  115. oParam.async = false;
  116. tranf_submit(oParam);
  117. }
  118. /********************************************************************************
  119. * 설 명 : 부모창의 return function을 호출하고 인자값을 넘겨준다.
  120. * argument :
  121. ********************************************************************************/
  122. function setCustCodeInfo(){
  123. var sCustCd = "";
  124. var sCustNm = "";
  125. if(ds_custcdlist.rowposition >= 0) {
  126. sCustCd = ds_custcdlist.getColumn(ds_custcdlist.rowposition, "custcd");
  127. sCustNm = ds_custcdlist.getColumn(ds_custcdlist.rowposition, "custnm");
  128. }
  129. var objRetVal = new Object();
  130. objRetVal.custcd = sCustCd;
  131. objRetVal.custnm = sCustNm;
  132. this.close(objRetVal);
  133. }
  134. /********************************************************************************
  135. * 설 명 : 조회 - 코드목록을 조회한다.
  136. * argument :
  137. ********************************************************************************/
  138. function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  139. {
  140. getCustCdList();
  141. }
  142. /********************************************************************************
  143. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  144. * argument :
  145. ********************************************************************************/
  146. function grd_custcdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  147. {
  148. setCustCodeInfo();
  149. }
  150. /********************************************************************************
  151. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  152. * argument :
  153. ********************************************************************************/
  154. function bt_ok_onclick(obj:Button, e:ClickEventInfo)
  155. {
  156. setCustCodeInfo();
  157. }
  158. /********************************************************************************
  159. * 설 명 : edit박스에서 enter키 입력했을때 목록을 조회한다.
  160. * argument :
  161. ********************************************************************************/
  162. function div_search_ipt_custnm_onkeydown(obj:Edit, e:KeyEventInfo)
  163. {
  164. if(e.keycode == 13){
  165. obj.updateToDataset();
  166. getCustCdList();
  167. }
  168. }
  169. /********************************************************************************
  170. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  171. * argument :
  172. ********************************************************************************/
  173. function grd_custcdlist_onkeydown(obj:Grid, e:KeyEventInfo)
  174. {
  175. if(e.keycode == 13){
  176. setCustCodeInfo();
  177. }
  178. }
  179. /********************************************************************************
  180. * 설 명 : 취소 - 팝업을 닫는다.
  181. * argument :
  182. ********************************************************************************/
  183. function bt_cancel_onclick(obj:Button, e:ClickEventInfo)
  184. {
  185. this.close();
  186. }
  187. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  188. {
  189. this.close();
  190. }
  191. function SMLIF00600_onkeydown(obj:Form, e:KeyEventInfo)
  192. {
  193. if(e.keycode == 27) this.close();
  194. }]]></Script>
  195. </Form>
  196. </FDL>