SPMMD03400_약물조회.xfdl 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMD03400" position="absolute 0 0 821 736" titletext="약물조회" onload="SPMMD03400_onload" oninit="SPMMD03400_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 60 810 730" id="import1" url="emr_cpcdssxp::SPMMD03500_처방조회.xfdl"/>
  8. <Div position="absolute 0 60 815 719" id="import2" visible="false" url="ast_pharmacyxp::SPADB60100_약품검색.xfdl"/>
  9. <Div position="absolute 0 60 815 719" id="import6" url="emr_cpcdssxp::SPMMD03700_조영제조회.xfdl"/>
  10. <!--<Div position="absolute 0 58 815 717" id="import4" visible="false" url="emr_cpcdssxp::SPMMD08100_성분분류조회.xfdl"/>-->
  11. <!--<Div position="absolute 0 58 815 717" id="import5" visible="false" url="emr_cpcdssxp::SPMMD08100_성분분류조회.xfdl"/>-->
  12. <Static text="약물조회" position="absolute 0 0 119 25" id="caption6" class="tit_1"/>
  13. <Tab id="tab_button" taborder="1" tabindex="0" scrollbars="autoboth" position="absolute 0 33 809 59" style="buttonpadding:4 20 4 20;" onchanged="tab_button_onchanged">
  14. <Tabpages>
  15. <Tabpage id="btn_prcp" text="처방조회"/>
  16. <Tabpage id="btn_drug" text="약품조회"/>
  17. <Tabpage id="btn_wdrug" text=" 조영제 "/>
  18. </Tabpages>
  19. </Tab>
  20. </Layout>
  21. </Layouts>
  22. <Objects>
  23. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  24. <ColumnInfo>
  25. <Column id="grdid" type="STRING" size="256"/>
  26. <Column id="scrnid" type="STRING" size="256"/>
  27. <Column id="caseid" type="STRING" size="256"/>
  28. <Column id="ordrecflag" type="STRING" size="256"/>
  29. </ColumnInfo>
  30. <Rows>
  31. <Row>
  32. <Col id="ordrecflag">N</Col>
  33. </Row>
  34. </Rows>
  35. </Dataset>
  36. </Objects>
  37. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  38. * System Name :
  39. * Job Name :
  40. * Creator :
  41. * Make Date : 2014-11-27
  42. * Description :
  43. *---------------------------------------------------------------------------------------
  44. * Modify Date Modifier Modify Description
  45. *---------------------------------------------------------------------------------------
  46. * 2014-11-27 Live Converter TF->XP
  47. *
  48. *---------------------------------------------------------------------------------------
  49. ****************************************************************************************/
  50. //=======================================================================================
  51. // Lib Include
  52. //---------------------------------------------------------------------------------------
  53. include "com_commonxp::comm_main.xjs"
  54. //=======================================================================================
  55. // Event
  56. //---------------------------------------------------------------------------------------
  57. /****************************************************************************************
  58. * Components : Form
  59. * Components ID : SPMMD03600
  60. * Event : oninit
  61. * Argument : 01.obj : Object Event has occurred
  62. * : 02.e : Event Object
  63. * Description : 화면 처음 초기화시 폼초기화
  64. ****************************************************************************************/
  65. function SPMMD03400_oninit(obj:Form, e:InitEventInfo)
  66. {
  67. frmf_initForm(obj); // 폼 초기화
  68. }
  69. /****************************************************************************************
  70. * Components : Form
  71. * Components ID : SPMMD03600
  72. * Event : onload
  73. * Argument : 01.obj : Object Event has occurred
  74. * : 02.e : Event Object
  75. * Description : 화면오픈시 폼load이후 실행
  76. ****************************************************************************************/
  77. function SPMMD03400_onload(obj:Form, e:LoadEventInfo)
  78. {
  79. fInit();
  80. //alert(opener);
  81. }
  82. /****************************************************************************************
  83. * Components : Tab
  84. * Components ID : tab_button
  85. * Event : onchanged
  86. * Argument : 01.obj : Object Event has occurred
  87. * : 02.e : Event Object
  88. * Description : 탭버튼 클릭
  89. ****************************************************************************************/
  90. function tab_button_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  91. {
  92. if(e.postindex == 0) {
  93. fSearchPrcp();
  94. } else if(e.postindex == 1) {
  95. fSearchDrug();
  96. } else {
  97. fSearchWDrug();
  98. }
  99. }
  100. //=======================================================================================
  101. // Function
  102. //---------------------------------------------------------------------------------------
  103. /****************************************************************************************
  104. * Function : fInit
  105. * Description : 수정/삭제사유 전달
  106. * Argument :
  107. * :
  108. * return type :
  109. * Creator :
  110. ****************************************************************************************/
  111. function fInit(){
  112. tab_button.tabindex = 0;
  113. fSearchPrcp();
  114. }
  115. function fSearchPrcp(){
  116. ds_main_cond.setColumn(0,"scrnid","SMMMO04200");
  117. ds_main_cond.setColumn(0,"grdid","grd_outpatlist");
  118. import1.visible=true;
  119. import2.visible=false;
  120. import6.visible=false;
  121. }
  122. function fSearchDrug(){
  123. ds_main_cond.setColumn(0,"scrnid","SMMMO04300");
  124. ds_main_cond.setColumn(0,"grdid","grd_inpatlist");
  125. ds_main_cond.setColumn(0,"caseid","drug");
  126. import1.visible=false;
  127. import2.visible=true;
  128. import6.visible=false;
  129. }
  130. function fSearchWDrug() {
  131. ds_main_cond.setColumn(0,"grdid","grd_wdruglist");
  132. ds_main_cond.setColumn(0,"caseid","wdrug");
  133. import1.visible=false;
  134. import2.visible=false;
  135. import6.visible=true;
  136. }
  137. ]]></Script>
  138. </Form>
  139. </FDL>