SPMNR00600_투약기록심사기준조회.xfdl 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNR00600" position="absolute 0 0 635 740" titletext="심사기준 안내" oninit="SPMNR00600_oninit" onload="SPMNR00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="투약기록 1일 총 투여량 심사 기준 조회" position="absolute 0 0 265 25" id="caption6" class="tit_1"/>
  8. <Grid position="absolute 0 76 625 730" id="grd_druglist" binddataset="ds_main_pmbmdruginfo_druglist" selecttype="multirow" cellsizingtype="both" extendsizetype="row" onheadclick="grd_druglist_onheadclick">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="20" band="left"/>
  13. <Column size="100"/>
  14. <Column size="355"/>
  15. <Column size="55"/>
  16. <Column size="75"/>
  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. <Cell col="4" text="액팅횟수"/>
  28. </Band>
  29. <Band id="body">
  30. <Cell celltype="head" expr="expr:currow + 1"/>
  31. <Cell col="1" style="align:left;" text="bind:calcscorcd"/>
  32. <Cell col="2" style="align:left;" text="bind:prcpnm"/>
  33. <Cell col="3" text="bind:drugdayno"/>
  34. <Cell col="4" text="bind:drugtims"/>
  35. </Band>
  36. </Format>
  37. </Formats>
  38. </Grid>
  39. <Div position="absolute 0 25 625 70" align="align:center top;" id="grp_sea">
  40. <Layouts>
  41. <Layout>
  42. <Shape position="absolute 0 0 625 45" id="roundrect3" class="roundrect_search" type="roundrectangle"/>
  43. <Static text="처방코드 :" position="absolute 10 13 100 30" id="caption2" class="search_name"/>
  44. <Button position="absolute 560 10 616 32" id="btn_sear" class="btn1" text="조회" onclick="grp_sea_btn_sear_onclick"/>
  45. <Shape position="absolute 547 7 553 37" linetype="vertical" id="line16"/>
  46. <Static text="처 방 명 :" position="absolute 225 13 315 30" id="caption1" class="search_name"/>
  47. <Edit position="absolute 90 11 185 30" id="input1" onkeydown="grp_sea_input1_onkeydown"/>
  48. <Edit position="absolute 300 11 510 30" id="input2" onkeydown="grp_sea_input2_onkeydown"/>
  49. </Layout>
  50. </Layouts>
  51. </Div>
  52. </Layout>
  53. </Layouts>
  54. <Objects>
  55. <Dataset id="ds_main_pmbmdruginfo_druglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  56. <ColumnInfo>
  57. <Column id="calcscorcd" type="STRING"/>
  58. <Column id="prcpnm" type="STRING"/>
  59. <Column id="drugdayno" type="STRING"/>
  60. <Column id="drugtims" type="STRING"/>
  61. </ColumnInfo>
  62. </Dataset>
  63. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  64. <ColumnInfo>
  65. <Column id="workdd" type="STRING" size="256" sumtext="workdd"/>
  66. <Column id="prcpcd" type="STRING" size="256" sumtext="prcpcd"/>
  67. <Column id="prcpnm" type="STRING" size="256" sumtext="prcpnm"/>
  68. </ColumnInfo>
  69. <Rows>
  70. <Row/>
  71. </Rows>
  72. </Dataset>
  73. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  74. <ColumnInfo>
  75. <Column id="srch_prcpcd" type="STRING" size="256"/>
  76. <Column id="srch_prcpnm" type="STRING" size="256"/>
  77. </ColumnInfo>
  78. <Rows>
  79. <Row/>
  80. </Rows>
  81. </Dataset>
  82. </Objects>
  83. <Bind>
  84. <BindItem id="item0" compid="grp_sea.input1" propid="value" datasetid="ds_cond" columnid="srch_prcpcd"/>
  85. <BindItem id="item1" compid="grp_sea.input2" propid="value" datasetid="ds_cond" columnid="srch_prcpnm"/>
  86. </Bind>
  87. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  88. * System Name : 경대 의료정보시스템
  89. * Job Name : emr_caremedirecxp -> SPMNR00600
  90. * Creator : yjh
  91. * Make Date : 2016-05-26
  92. * Description :
  93. *---------------------------------------------------------------------------------------
  94. * Modify Date Modifier Modify Description
  95. *---------------------------------------------------------------------------------------
  96. * 2016-05-26 yjh TF->XP
  97. *
  98. *---------------------------------------------------------------------------------------
  99. ****************************************************************************************/
  100. //=======================================================================================
  101. // Lib Include
  102. //---------------------------------------------------------------------------------------
  103. include "com_commonxp::comm_main.xjs";
  104. //=======================================================================================
  105. // Global Form Variable
  106. //---------------------------------------------------------------------------------------
  107. //=======================================================================================
  108. // Function
  109. //---------------------------------------------------------------------------------------
  110. function fSearch() {
  111. var curdate = utlf_getCurrentDate();
  112. var prcpcd = ds_cond.getColumn(0, "srch_prcpcd");
  113. var prcpnm = ds_cond.getColumn(0, "srch_prcpnm");
  114. ds_main_pmbmdruginfo_druglist.clearData();
  115. ds_send.setColumn(0, "workdd", curdate);
  116. ds_send.setColumn(0, "prcpcd", prcpcd);
  117. ds_send.setColumn(0, "prcpnm", prcpnm);
  118. var oParam = {};
  119. oParam.id = "TRMNR00620";
  120. oParam.service = "caremedirecapp.CareMediRec";
  121. oParam.method = "reqGetPmbmDrugInfo";
  122. oParam.inds = "req=ds_send";
  123. oParam.outds = "ds_main_pmbmdruginfo_druglist=druglist";
  124. oParam.async = false;
  125. //oParam.callback = "cf_TRMNR00620";
  126. tranf_submit(oParam);
  127. }
  128. //=======================================================================================
  129. // Event
  130. //---------------------------------------------------------------------------------------
  131. /****************************************************************************************
  132. * Components : Form
  133. * Components ID : SPMNR00600
  134. * Event : oninit
  135. * Argument : 01.obj : Object Event has occurred
  136. * : 02.e : Event Object
  137. * Description : 화면 처음 초기화시
  138. ****************************************************************************************/
  139. function SPMNR00600_oninit(obj:Form, e:InitEventInfo)
  140. {
  141. frmf_initForm(obj); //폼 초기화
  142. }
  143. /****************************************************************************************
  144. * Components : Form
  145. * Components ID : SPMNR00600
  146. * Event : onload
  147. * Argument : 01.obj : Object Event has occurred
  148. * : 02.e : Event Object
  149. * Description : 화면 로딩 완료시
  150. ****************************************************************************************/
  151. function SPMNR00600_onload(obj:Form, e:LoadEventInfo)
  152. {
  153. fSearch();
  154. }
  155. /****************************************************************************************
  156. * Components : Button
  157. * Components ID : btn_sear
  158. * Event : onclick
  159. * Argument : 01.obj : Object Event has occurred
  160. * : 02.e : Event Object
  161. * Description : 조회버튼 클릭시
  162. ****************************************************************************************/
  163. function grp_sea_btn_sear_onclick(obj:Button, e:ClickEventInfo)
  164. {
  165. fSearch();
  166. }
  167. /****************************************************************************************
  168. * Components : Edit
  169. * Components ID : input1
  170. * Event : onkeydown
  171. * Argument : 01.obj : Object Event has occurred
  172. * : 02.e : Event Object
  173. * Description : 에디터 키 입력시
  174. ****************************************************************************************/
  175. function grp_sea_input1_onkeydown(obj:Edit, e:KeyEventInfo)
  176. {
  177. if( e.keycode == 13 ){
  178. obj.updateToDataset();
  179. grp_sea.btn_sear.click();
  180. }
  181. }
  182. /****************************************************************************************
  183. * Components : Edit
  184. * Components ID : input2
  185. * Event : onkeydown
  186. * Argument : 01.obj : Object Event has occurred
  187. * : 02.e : Event Object
  188. * Description : 에디터 키 입력시
  189. ****************************************************************************************/
  190. function grp_sea_input2_onkeydown(obj:Edit, e:KeyEventInfo)
  191. {
  192. if( e.keycode == 13 ){
  193. obj.updateToDataset();
  194. grp_sea.btn_sear.click();
  195. }
  196. }
  197. function grd_druglist_onheadclick(obj:Grid, e:GridClickEventInfo)
  198. {
  199. grdf_setEventGrid(grd_druglist, e);
  200. }
  201. ]]></Script>
  202. </Form>
  203. </FDL>