SPADB61100_약품정보이력조회.xfdl 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPADB61100" position="absolute 0 0 395 229" titletext="약품정보이력조회" oninit="SPADB61100_oninit" onload="SPADB61100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_cfm" taborder="1" text="확인" class="btn4" position="absolute 280 201 336 223" onclick="btn_cfm_onclick"/>
  8. <Button id="btn_cls" taborder="2" text="닫기" class="btn4" position="absolute 339 201 395 223" onclick="btn_cls_onclick"/>
  9. <Grid id="grd_datagrid1" taborder="3" binddataset="ds_datagrid1" useinputpanel="false" position="absolute 0 26 395 196" autofittype="col" oncelldblclick="datagrid1_oncelldblclick">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="21"/>
  14. <Column size="100"/>
  15. <Column size="100"/>
  16. <Column size="165"/>
  17. </Columns>
  18. <Rows>
  19. <Row size="24" band="head"/>
  20. <Row size="24"/>
  21. </Rows>
  22. <Band id="head">
  23. <Cell/>
  24. <Cell col="1" text="시작일자"/>
  25. <Cell col="2" text="종료일자"/>
  26. <Cell col="3" text="비고"/>
  27. </Band>
  28. <Band id="body">
  29. <Cell celltype="head" text="expr:currow == ds_datagrid1.rowposition ? &quot;▶&quot; : &quot;&quot;"/>
  30. <Cell col="1" displaytype="date" text="bind:drugfromdd"/>
  31. <Cell col="2" displaytype="date" text="bind:drugtodd"/>
  32. <Cell col="3" text="bind:etccau"/>
  33. </Band>
  34. </Format>
  35. </Formats>
  36. </Grid>
  37. <Static id="caption1" text="약품정보이력조회" class="tit_2" position="absolute 0 5 140 24"/>
  38. <Shape id="line1" class="line_1" position="absolute 0 21 395 27" style="strokepen:3 solid #33bbbbff;"/>
  39. </Layout>
  40. </Layouts>
  41. <Objects>
  42. <Dataset id="ds_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  43. <ColumnInfo>
  44. <Column id="drugfromdd" type="STRING"/>
  45. <Column id="drugtodd" type="STRING"/>
  46. <Column id="etccau" type="STRING"/>
  47. </ColumnInfo>
  48. <Rows>
  49. <Row/>
  50. </Rows>
  51. </Dataset>
  52. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  53. <ColumnInfo>
  54. <Column id="srchdrugcd" type="STRING" size="256"/>
  55. </ColumnInfo>
  56. <Rows>
  57. <Row>
  58. <Col id="srchdrugcd">DHD</Col>
  59. </Row>
  60. </Rows>
  61. </Dataset>
  62. </Objects>
  63. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  64. * System Name :
  65. * Job Name :
  66. * Creator :
  67. * Make Date : 2015-11-03
  68. * Description :
  69. *---------------------------------------------------------------------------------------
  70. * Modify Date Modifier Modify Description
  71. *---------------------------------------------------------------------------------------
  72. * 2015-11-03 Live Converter TF->XP
  73. *
  74. *---------------------------------------------------------------------------------------
  75. ****************************************************************************************/
  76. //=======================================================================================
  77. // Lib Include
  78. //---------------------------------------------------------------------------------------
  79. include "com_commonxp::comm_main.xjs";
  80. //=======================================================================================
  81. // Event
  82. //---------------------------------------------------------------------------------------
  83. /****************************************************************************************
  84. * Components : Form
  85. * Components ID : SPADB61100
  86. * Event : oninit
  87. * Argument : 01.obj : Object Event has occurred
  88. * : 02.e : Event Object
  89. * Description : 화면 처음 초기화시 폼초기화
  90. ****************************************************************************************/
  91. function SPADB61100_oninit(obj:Form, e:InitEventInfo)
  92. {
  93. frmf_initForm(obj);
  94. }
  95. /****************************************************************************************
  96. * Components : Form
  97. * Components ID : SPADB61100
  98. * Event : onload
  99. * Argument : 01.obj : Object Event has occurred
  100. * : 02.e : Event Object
  101. * Description : 화면 처음 초기화시 폼초기화
  102. ****************************************************************************************/
  103. function SPADB61100_onload(obj:Form, e:LoadEventInfo)
  104. {
  105. try{
  106. ds_send.copyData(arg_ds_send);
  107. } catch(e) {}
  108. ds_datagrid1.clearData();
  109. var oParam = {};
  110. oParam.id = "TRADB61101";
  111. oParam.service = "pharmacybaseapp.DrugCode";
  112. oParam.method = "reqGetDrugCodeHis";
  113. oParam.inds = "req=ds_send";
  114. oParam.outds = "ds_datagrid1=item";
  115. oParam.async = false;
  116. //oParam.callback = "cf_TRADB61101";
  117. tranf_submit(oParam);
  118. }
  119. /****************************************************************************************
  120. * Components : Grid
  121. * Components ID : grd_datagrid1
  122. * Event : oncelldblclick
  123. * Argument : 01.obj : Object Event has occurred
  124. * : 02.e : Event Object
  125. * Description : 데이터 선택
  126. ****************************************************************************************/
  127. function datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  128. {
  129. if( frmf_checkOpener() ){
  130. opener.ds_main_baseinfo_druginfo.setColumn(0, "drugfromdd", ds_datagrid1.getColumn(ds_datagrid1.rowposition, "drugfromdd"));
  131. opener.ds_main_baseinfo_druginfo.setColumn(0, "drugtodd" , ds_datagrid1.getColumn(ds_datagrid1.rowposition, "drugtodd"));
  132. this.close();
  133. } else {
  134. sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수 없습니다.","");
  135. }
  136. }
  137. /****************************************************************************************
  138. * Components : Button
  139. * Components ID : btn_cfm
  140. * Event : onclick
  141. * Argument : 01.obj : Object Event has occurred
  142. * : 02.e : Event Object
  143. * Description : 데이터 선택
  144. ****************************************************************************************/
  145. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  146. {
  147. var ev = new GridClickEventInfo;
  148. frmf_inputEnterKey("grd_datagrid1", "oncelldblclick", ev );
  149. }
  150. /****************************************************************************************
  151. * Components : Button
  152. * Components ID : btn_cls
  153. * Event : onclick
  154. * Argument : 01.obj : Object Event has occurred
  155. * : 02.e : Event Object
  156. * Description : 데이터 선택
  157. ****************************************************************************************/
  158. function btn_cls_onclick(obj:Button, e:ClickEventInfo)
  159. {
  160. this.close();
  161. }
  162. ]]></Script>
  163. </Form>
  164. </FDL>