SPADB63400_회사검색.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPADB63400" position="absolute 0 0 327 380" titletext="회사검색" oninit="SPADB63400_oninit" onload="SPADB63400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_srch" taborder="1" position="absolute 0 19 327 59" class="div_SA2">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption3" text="회사명 :" class="search_name" position="absolute 8 13 78 30" anchor="default"/>
  11. <Edit id="input1" taborder="1" class="input_search" position="absolute 74 11 244 30" anchor="default" onkeydown="grp_srch_input1_onkeydown"/>
  12. <Shape id="line1" linetype="vertical" position="absolute 252 8 258 30" anchor="default"/>
  13. <Button id="btn_req" taborder="2" text="조회" class="btn1" position="absolute 264 9 320 31" anchor="default" onclick="grp_srch_btn_req_onclick"/>
  14. </Layout>
  15. </Layouts>
  16. </Div>
  17. <Static text="회사검색" position="absolute 0 1 140 18" align="align:center middle;" id="caption2" class="tit_2"/>
  18. <Shape position="absolute 0 58 327 67" linetype="horizontal" id="line3" class="line_1"/>
  19. <Button position="absolute 213 354 269 376" id="btn_cfm" class="btn4" text="확인" onclick="btn_cfm_onclick"/>
  20. <Button position="absolute 270 354 326 376" id="btn_can" class="btn4" text="취소" onclick="btn_can_onclick"/>
  21. <Grid position="absolute 0 64 327 350" id="grd_prodcmpy" binddataset="ds_main_prodcmpy" autofittype="col" cellsizingtype="col" oncelldblclick="grd_prodcmpy_oncelldblclick">
  22. <Formats>
  23. <Format id="default">
  24. <Columns>
  25. <Column size="65"/>
  26. <Column size="213"/>
  27. </Columns>
  28. <Rows>
  29. <Row size="24" band="head"/>
  30. <Row size="24"/>
  31. </Rows>
  32. <Band id="head">
  33. <Cell text="회사코드"/>
  34. <Cell col="1" text="회사명"/>
  35. </Band>
  36. <Band id="body">
  37. <Cell text="bind:prodcmpycd"/>
  38. <Cell col="1" text="bind:prodcmpynm"/>
  39. </Band>
  40. </Format>
  41. </Formats>
  42. </Grid>
  43. <Shape id="line00" class="line_1" position="absolute 0 57 327 66"/>
  44. <Shape id="line01" class="line_1" position="absolute 0 59 327 68"/>
  45. </Layout>
  46. </Layouts>
  47. <Objects>
  48. <Dataset id="ds_main_prodcmpy" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  49. <ColumnInfo>
  50. <Column id="prodcmpycd" type="STRING" size="256"/>
  51. <Column id="prodcmpynm" type="STRING" size="256"/>
  52. </ColumnInfo>
  53. <Rows>
  54. <Row/>
  55. </Rows>
  56. </Dataset>
  57. <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  58. <ColumnInfo>
  59. <Column id="srchcnts" type="STRING" size="256"/>
  60. <Column id="srchcond" type="STRING" size="256"/>
  61. </ColumnInfo>
  62. <Rows>
  63. <Row/>
  64. </Rows>
  65. </Dataset>
  66. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  67. <ColumnInfo>
  68. <Column id="receiveref" type="STRING" size="256"/>
  69. </ColumnInfo>
  70. <Rows>
  71. <Row/>
  72. </Rows>
  73. </Dataset>
  74. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  75. </Objects>
  76. <Bind>
  77. <BindItem id="item0" compid="grp_srch.input1" propid="value" datasetid="ds_send_srchinfo" columnid="srchcnts"/>
  78. </Bind>
  79. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  80. * System Name :
  81. * Job Name :
  82. * Creator :
  83. * Make Date : 2015-11-13
  84. * Description :
  85. *---------------------------------------------------------------------------------------
  86. * Modify Date Modifier Modify Description
  87. *---------------------------------------------------------------------------------------
  88. * 2015-11-13 Live Converter TF->XP
  89. *
  90. *---------------------------------------------------------------------------------------
  91. ****************************************************************************************/
  92. //=======================================================================================
  93. // Lib Include
  94. //---------------------------------------------------------------------------------------
  95. include "com_commonxp::comm_main.xjs"
  96. include "ast_commonxp::AST.xjs"
  97. //=======================================================================================
  98. // Global Form Variable
  99. //---------------------------------------------------------------------------------------
  100. //=======================================================================================
  101. // Function
  102. //---------------------------------------------------------------------------------------
  103. /****************************************************************************************
  104. * Argument : N/A
  105. * Description : 모화면에 데이터 전달
  106. ****************************************************************************************/
  107. function sendData(){
  108. if ( frmf_checkOpener() ) {
  109. var receiveref = ds_hidden.getColumn(0,"receiveref");
  110. var receiveprodcmpy = ds_hidden.getColumn(0,"receiveprodcmpy");
  111. opener.objects[receiveref].setColumn(0,receiveprodcmpy,ds_main_prodcmpy.getColumn(ds_main_prodcmpy.rowposition,"prodcmpynm"));
  112. this.close();
  113. } else {
  114. alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
  115. }
  116. }
  117. /****************************************************************************************
  118. * Argument : N/A
  119. * Description : 회사리스트 조회
  120. ****************************************************************************************/
  121. function call_TRADB63401() {
  122. var oParam = {};
  123. oParam.id = "TRADB63401";
  124. oParam.service = "pharmacybaseapp.DrugIdBase";
  125. oParam.method = "reqGetProdcmpy";
  126. oParam.inds = "req=ds_send_srchinfo";
  127. oParam.outds = "ds_main_prodcmpy=prodcmpy";
  128. oParam.async = false;
  129. //oParam.callback = "cf_TRADB63401";
  130. tranf_submit(oParam);
  131. }
  132. //=======================================================================================
  133. // Event
  134. //---------------------------------------------------------------------------------------
  135. /****************************************************************************************
  136. * Components : Form
  137. * Components ID : SPADB63400
  138. * Event : oninit
  139. * Argument : 01.obj : Object Event has occurred
  140. * : 02.e : Event Object
  141. * Description : 화면 처음 초기화시 폼초기화
  142. ****************************************************************************************/
  143. function SPADB63400_oninit(obj:Form, e:InitEventInfo)
  144. {
  145. frmf_initForm(obj); // 폼 초기화
  146. }
  147. /****************************************************************************************
  148. * Components : Form
  149. * Components ID : SPADB63400
  150. * Event : onload
  151. * Argument : 01.obj : Object Event has occurred
  152. * : 02.e : Event Object
  153. * Description : 화면 처음 초기화시 폼초기화
  154. ****************************************************************************************/
  155. function SPADB63400_onload(obj:Form, e:LoadEventInfo)
  156. {
  157. try{
  158. ds_hidden.copyData(arg_ds_hidden);
  159. } catch(e){}
  160. call_TRADB63401();
  161. }
  162. /****************************************************************************************
  163. * Components : Button
  164. * Components ID : grp_srch.btn_req
  165. * Event : onclick
  166. * Argument : 01.obj : Object Event has occurred
  167. * : 02.e : Event Object
  168. * Description : 조회버튼 클릭
  169. ****************************************************************************************/
  170. function grp_srch_btn_req_onclick(obj:Button, e:ClickEventInfo)
  171. {
  172. call_TRADB63401();
  173. }
  174. /****************************************************************************************
  175. * Components : Edit
  176. * Components ID : grp_srch.input1
  177. * Event : onkeydown
  178. * Argument : 01.obj : Object Event has occurred
  179. * : 02.e : Event Object
  180. * Description : 조건 입력 후 엔터로 조회
  181. ****************************************************************************************/
  182. function grp_srch_input1_onkeydown(obj:Edit, e:KeyEventInfo)
  183. {
  184. if(e.keycode == 13) {
  185. obj.updateToDataset();
  186. var ev = new ClickEventInfo;
  187. frmf_inputEnterKey("grp_srch.btn_req", "onclick", ev );
  188. }
  189. }
  190. /****************************************************************************************
  191. * Components : Grid
  192. * Components ID : grd_prodcmpy
  193. * Event : oncelldblclick
  194. * Argument : 01.obj : Object Event has occurred
  195. * : 02.e : Event Object
  196. * Description : 회사리스트 더블클릭하여 모화면에 전달
  197. ****************************************************************************************/
  198. function grd_prodcmpy_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  199. {
  200. if(e.row < 0) return;
  201. sendData();
  202. }
  203. /****************************************************************************************
  204. * Components : Button
  205. * Components ID : btn_cfm
  206. * Event : onclick
  207. * Argument : 01.obj : Object Event has occurred
  208. * : 02.e : Event Object
  209. * Description : 회사리스트 모화면에 전달
  210. ****************************************************************************************/
  211. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  212. {
  213. sendData();
  214. }
  215. /****************************************************************************************
  216. * Components : Button
  217. * Components ID : btn_can
  218. * Event : onclick
  219. * Argument : 01.obj : Object Event has occurred
  220. * : 02.e : Event Object
  221. * Description : 화면닫기
  222. ****************************************************************************************/
  223. function btn_can_onclick(obj:Button, e:ClickEventInfo)
  224. {
  225. this.close();
  226. }
  227. ]]></Script>
  228. </Form>
  229. </FDL>