SPADB62200_TDM검사조회.xfdl 11 KB

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