SPMMO33800_PRN가능약품조회.xfdl 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO33800" position="absolute 0 0 700 555" titletext="PRN 가능약품 목록조회" oninit="SPMMO33800_oninit" onload="SPMMO33800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="PRN가능약품 목록조회" class="tit_2" position="absolute 0 0 161 20"/>
  8. <Grid id="datagrid1" taborder="4" binddataset="ds_main_prn_result" useinputpanel="false" position="absolute 0 61 700 555" autofittype="col" anchor="all">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="44"/>
  13. <Column size="74"/>
  14. <Column size="91"/>
  15. <Column size="189"/>
  16. <Column size="140"/>
  17. <Column size="140"/>
  18. <Column size="70"/>
  19. </Columns>
  20. <Rows>
  21. <Row size="24" band="head"/>
  22. <Row size="24"/>
  23. </Rows>
  24. <Band id="head">
  25. <Cell text="분류"/>
  26. <Cell col="1" text="OCS분류"/>
  27. <Cell col="2" text="약품코드"/>
  28. <Cell col="3" text="한글명"/>
  29. <Cell col="4" text="영문명"/>
  30. <Cell col="5" text="성분명"/>
  31. <Cell col="6" text="적응증"/>
  32. </Band>
  33. <Band id="body">
  34. <Cell style="align:left middle;" text="bind:prcpclscd"/>
  35. <Cell col="1" style="align:left middle;" text="bind:ordclasscd"/>
  36. <Cell col="2" style="align:left middle;" text="bind:drug_code"/>
  37. <Cell col="3" style="align:left middle;" text="bind:drug_hngnm"/>
  38. <Cell col="4" style="align:left middle;" text="bind:drug_engnm"/>
  39. <Cell col="5" style="align:left middle;" text="bind:comdesc"/>
  40. <Cell col="6" text="bind:prndesc"/>
  41. </Band>
  42. </Format>
  43. </Formats>
  44. </Grid>
  45. <Div id="Div00" taborder="5" position="absolute 0 21 700 56" class="div_SA2" anchor="left top right">
  46. <Layouts>
  47. <Layout>
  48. <Static id="caption2" text="약품코드 :" class="search_name" position="absolute 17 8 92 28" anchor="default"/>
  49. <Edit id="search_code" taborder="1" position="absolute 105 8 250 28" anchor="default" onkeydown="Div00_search_code_onkeydown"/>
  50. <Static id="caption3" text="약품명 :" class="search_name" position="absolute 286 8 353 28" anchor="default"/>
  51. <Edit id="search_name" taborder="2" position="absolute 364 8 519 28" anchor="default" onkeydown="Div00_search_name_onkeydown"/>
  52. <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 625 8 681 28" anchor="top right" onclick="Div00_btn_search_onclick"/>
  53. </Layout>
  54. </Layouts>
  55. </Div>
  56. </Layout>
  57. </Layouts>
  58. <Objects>
  59. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  60. <ColumnInfo>
  61. <Column id="search_code" type="STRING" size="256" sumtext="약품코드"/>
  62. <Column id="search_name" type="STRING" size="256" sumtext="약품명"/>
  63. </ColumnInfo>
  64. <Rows>
  65. <Row/>
  66. </Rows>
  67. </Dataset>
  68. <Dataset id="ds_main_prn_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  69. <ColumnInfo>
  70. <Column id="drug_code" type="STRING" size="256" sumtext="약품코드"/>
  71. <Column id="drug_hngnm" type="STRING" size="256" sumtext="약품명(한글)"/>
  72. <Column id="drug_engnm" type="STRING" size="256" sumtext="약품명(영문)"/>
  73. <Column id="comdesc" type="STRING" size="256" sumtext="약품성분"/>
  74. <Column id="prcpclscd" type="STRING" size="256" sumtext="처방분류코드"/>
  75. <Column id="ordclasscd" type="STRING" size="256" sumtext="처방분류코드"/>
  76. <Column id="prndesc" type="STRING" size="256" sumtext="적응중"/>
  77. </ColumnInfo>
  78. </Dataset>
  79. </Objects>
  80. <Bind>
  81. <BindItem id="item0" compid="Div00.search_code" propid="value" datasetid="ds_send" columnid="search_code"/>
  82. <BindItem id="item1" compid="Div00.search_name" propid="value" datasetid="ds_send" columnid="search_name"/>
  83. </Bind>
  84. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  85. * System Name :
  86. * Job Name :
  87. * Creator :
  88. * Make Date : 2014-12-10
  89. * Description :
  90. *---------------------------------------------------------------------------------------
  91. * Modify Date Modifier Modify Description
  92. *---------------------------------------------------------------------------------------
  93. * 2014-12-10 Live Converter TF->XP
  94. *
  95. *---------------------------------------------------------------------------------------
  96. ****************************************************************************************/
  97. include "com_commonxp::comm_main.xjs";
  98. function SPMMO33800_oninit(obj:Form, e:InitEventInfo)
  99. {
  100. frmf_initForm(obj);
  101. grdf_initGrid(datagrid1);
  102. }
  103. function SPMMO33800_onload(obj:Form, e:LoadEventInfo)
  104. {
  105. grdf_setToolTipBind(datagrid1);
  106. if(!utlf_isNull(opener.frmf_getParameter("SPMMO33800_search_code"))){
  107. ds_send.setColumn(0, "search_code" , opener.frmf_getParameter("SPMMO33800_search_code"));
  108. Div00.btn_search.onclick.fireEvent(Div00.btn_search, new ClickEventInfo());
  109. }
  110. }
  111. function Div00_btn_search_onclick(obj:Button, e:ClickEventInfo)
  112. {
  113. ds_send.setColumn(0, "search_name", Div00.search_name.value);
  114. ds_send.setColumn(0, "search_code", Div00.search_code.value);
  115. var oParam = {};
  116. oParam.id = "TRMMO33800";
  117. oParam.service = "prcpbaseapp.PrcpClsMngt";
  118. oParam.method = "reqGetPrnSearchResult";
  119. oParam.inds = "req=ds_send";
  120. oParam.outds = "ds_main_prn_result=item";
  121. oParam.async = true;
  122. tranf_submit(oParam);
  123. }
  124. function Div00_search_code_onkeydown(obj:Edit, e:KeyEventInfo)
  125. {
  126. if(e.keycode == 13) {
  127. Div00.btn_search.onclick.fireEvent(Div00.btn_search, new ClickEventInfo());
  128. Div00.search_code.setFocus();
  129. }
  130. }
  131. function Div00_search_name_onkeydown(obj:Edit, e:KeyEventInfo)
  132. {
  133. if(e.keycode == 13) {
  134. Div00.btn_search.onclick.fireEvent(Div00.btn_search, new ClickEventInfo());
  135. Div00.search_name.setFocus();
  136. }
  137. }
  138. ]]></Script>
  139. </Form>
  140. </FDL>