SPMMR09500_약물부작용단서조회.xfdl 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMR09500" position="absolute 0 0 870 760" titletext="약물부작용 단서조회" onload="SPMMR09500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="약물부작용 단서조회" position="absolute 0 0 156 20" id="caption2" class="tit_1"/>
  8. <Div position="absolute 0 20 870 51" id="roundrect2" type="roundrectangle" class="div_SA" anchor="left top right"/>
  9. <Static text="구 분 :" position="absolute 9 30 78 45" align="align:center middle;" id="lbl_PID" class="search_name"/>
  10. <Combo position="absolute 83 27 143 46" id="combo1" codecolumn="codecolumn" datacolumn="datacolumn">
  11. <Dataset id="innerdataset">
  12. <ColumnInfo>
  13. <Column id="codecolumn"/>
  14. <Column id="datacolumn"/>
  15. </ColumnInfo>
  16. <Rows>
  17. <Row>
  18. <Col id="codecolumn">A</Col>
  19. <Col id="datacolumn">전체</Col>
  20. </Row>
  21. <Row>
  22. <Col id="codecolumn">O</Col>
  23. <Col id="datacolumn">외래</Col>
  24. </Row>
  25. <Row>
  26. <Col id="codecolumn">I</Col>
  27. <Col id="datacolumn">입원</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">E</Col>
  31. <Col id="datacolumn">응급</Col>
  32. </Row>
  33. </Rows>
  34. </Dataset>
  35. </Combo>
  36. <Static text="검 색 기 간 :" position="absolute 158 30 276 45" align="align:center middle;" id="caption1" class="search_name"/>
  37. <Static text="~" position="absolute 375 27 390 47" id="caption10"/>
  38. <Calendar position="absolute 397 27 497 46" id="ipt_todd" class="input_essential" autoselect="true" dateformat="yyyy-MM-dd"/>
  39. <Calendar position="absolute 268 27 368 46" id="ipt_fromdd" class="input_essential" autoselect="true" dateformat="yyyy-MM-dd" value="null"/>
  40. <Button position="absolute 708 25 764 47" id="btn_profhist" class="btn1" text="조회" anchor="top right" onclick="btn_profhist_onclick"/>
  41. <Button position="absolute 768 25 848 47" id="button1" class="btn7" text="엑셀저장" anchor="top right" onclick="button1_onclick"/>
  42. <Grid position="absolute 0 54 870 760" align="align:center middle;" id="local_drg" binddataset="ds_main_patlist" anchor="left top right">
  43. <Formats>
  44. <Format id="default">
  45. <Columns>
  46. <Column size="25" band="left"/>
  47. <Column size="76"/>
  48. <Column size="72"/>
  49. <Column size="30"/>
  50. <Column size="30"/>
  51. <Column size="48"/>
  52. <Column size="70"/>
  53. <Column size="124"/>
  54. <Column size="50"/>
  55. <Column size="110"/>
  56. <Column size="150"/>
  57. <Column size="61"/>
  58. </Columns>
  59. <Rows>
  60. <Row size="24" band="head"/>
  61. <Row size="24"/>
  62. </Rows>
  63. <Band id="head">
  64. <Cell/>
  65. <Cell col="1" text="환자번호"/>
  66. <Cell col="2" text="환자명"/>
  67. <Cell col="3" text="성별"/>
  68. <Cell col="4" text="나이"/>
  69. <Cell col="5" text="구분"/>
  70. <Cell col="6" text="처방일"/>
  71. <Cell col="7" text="검사명"/>
  72. <Cell col="8" text="결과치"/>
  73. <Cell col="9" text="진료과"/>
  74. <Cell col="10" text="진단명"/>
  75. <Cell col="11" text="주치의"/>
  76. </Band>
  77. <Band id="body">
  78. <Cell celltype="head" text="expr:currow + 1" autosizerow="default"/>
  79. <Cell col="1" text="bind:pid"/>
  80. <Cell col="2" text="bind:hngnm"/>
  81. <Cell col="3" text="bind:sex"/>
  82. <Cell col="4" text="bind:age"/>
  83. <Cell col="5" text="bind:ordtype"/>
  84. <Cell col="6" text="bind:prcpdd"/>
  85. <Cell col="7" style="align:left top;padding:3 0 3 0;" text="bind:prcpnm" wordwrap="char"/>
  86. <Cell col="8" text="bind:rsltval"/>
  87. <Cell col="9" text="bind:depthngnm"/>
  88. <Cell col="10" style="align:left top;padding:3 0 3 0;" text="bind:diagnm" wordwrap="char"/>
  89. <Cell col="11" text="bind:drnm"/>
  90. </Band>
  91. </Format>
  92. </Formats>
  93. </Grid>
  94. </Layout>
  95. </Layouts>
  96. <Objects>
  97. <Dataset id="ds_main_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  98. <ColumnInfo>
  99. <Column id="pid" type="STRING"/>
  100. <Column id="hngnm" type="STRING"/>
  101. <Column id="sex" type="STRING"/>
  102. <Column id="age" type="STRING"/>
  103. <Column id="ordtype" type="STRING"/>
  104. <Column id="prcpdd" type="STRING"/>
  105. <Column id="prcpnm" type="STRING"/>
  106. <Column id="rsltval" type="STRING"/>
  107. <Column id="depthngnm" type="STRING"/>
  108. <Column id="diagnm" type="STRING"/>
  109. <Column id="drnm" type="STRING"/>
  110. </ColumnInfo>
  111. </Dataset>
  112. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  113. <ColumnInfo>
  114. <Column id="ioflag" type="STRING" size="256"/>
  115. <Column id="fromdd" type="STRING" size="256"/>
  116. <Column id="todd" type="STRING" size="256"/>
  117. </ColumnInfo>
  118. <Rows>
  119. <Row>
  120. <Col id="ioflag"/>
  121. <Col id="fromdd"/>
  122. <Col id="todd"/>
  123. </Row>
  124. </Rows>
  125. </Dataset>
  126. </Objects>
  127. <Bind>
  128. <BindItem id="item0" compid="combo1" propid="value" datasetid="ds_send_reqdata" columnid="ioflag"/>
  129. <BindItem id="item1" compid="ipt_fromdd" propid="value" datasetid="ds_send_reqdata" columnid="fromdd"/>
  130. <BindItem id="item2" compid="ipt_todd" propid="value" datasetid="ds_send_reqdata" columnid="todd"/>
  131. </Bind>
  132. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  133. * System Name :
  134. * Job Name :
  135. * Creator :
  136. * Make Date : 2015-11-13
  137. * Description :
  138. *---------------------------------------------------------------------------------------
  139. * Modify Date Modifier Modify Description
  140. *---------------------------------------------------------------------------------------
  141. * 2015-11-13 Live Converter TF->XP
  142. *
  143. *---------------------------------------------------------------------------------------
  144. ****************************************************************************************/
  145. include "com_commonxp::comm_main.xjs";
  146. //include "emr_commonxp::EMRCommon.xjs";
  147. //=======================================================================================
  148. // Global Form Variable
  149. //---------------------------------------------------------------------------------------
  150. var arErrorCode = new HashArray();
  151. //=======================================================================================
  152. // Function
  153. //---------------------------------------------------------------------------------------
  154. //=======================================================================================
  155. // Event
  156. //---------------------------------------------------------------------------------------
  157. /****************************************************************************************
  158. * Components : Form
  159. * Components ID : SPMMR09500
  160. * Event : onload
  161. * Argument : 01.obj : Object Event has occurred
  162. * : 02.e : Event Object
  163. * Description : 화면 초기화
  164. ****************************************************************************************/
  165. function SPMMR09500_onload(obj:Form, e:LoadEventInfo)
  166. {
  167. frmf_initForm(obj);
  168. ds_send_reqdata.setColumn(0, "ioflag", "A");
  169. ds_send_reqdata.setColumn(0, "fromdd", utlf_getCurrentDate());
  170. ds_send_reqdata.setColumn(0, "todd", utlf_getCurrentDate());
  171. }
  172. /****************************************************************************************
  173. * Components : Button
  174. * Components ID : btn_profhist
  175. * Event : onclick
  176. * Argument : 01.obj : Object Event has occurred
  177. * : 02.e : Event Object
  178. * Description : 약물부작용단서 조회
  179. ****************************************************************************************/
  180. function btn_profhist_onclick(obj:Button, e:ClickEventInfo)
  181. {
  182. ds_main_patlist.clearData();
  183. var oParam = {};
  184. oParam.id = "TRMMO09500";
  185. oParam.service = "localdrugmngtapp.PatMngt";
  186. oParam.method = "reqGetPatlist";
  187. oParam.inds = "req=ds_send_reqdata";
  188. oParam.outds = "ds_main_patlist=item";
  189. oParam.async = true;
  190. tranf_submit(oParam);
  191. }
  192. /****************************************************************************************
  193. * Components : Button
  194. * Components ID : button1
  195. * Event : onclick
  196. * Argument : 01.obj : Object Event has occurred
  197. * : 02.e : Event Object
  198. * Description : 엑셀 저장
  199. ****************************************************************************************/
  200. function button1_onclick(obj:Button, e:ClickEventInfo)
  201. {
  202. grdf_exportExcel(local_drg, "", "SheetName", true);
  203. }
  204. ]]></Script>
  205. </Form>
  206. </FDL>