SMASI01600_급성호흡기감염증.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMASI01600" position="absolute 0 0 1148 777" titletext="급성호흡기감염증조회" oninit="SMASI01600_oninit" onload="SMASI01600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="roundrect2" type="roundrectangle" position="absolute 2 26 735 56"/>
  8. <Static text="급성호흡기감염증" position="absolute 0 0 130 25" id="caption2" class="tit_1"/>
  9. <Static text="구 분 :" position="absolute 11 32 80 49" align="align:center middle;" id="lbl_PID" class="search_name"/>
  10. <Combo position="absolute 85 32 210 51" align="align:center middle;" id="cmb_srchkind" 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">ALL</Col>
  19. <Col id="datacolumn">전체</Col>
  20. </Row>
  21. <Row>
  22. <Col id="codecolumn">LPD301</Col>
  23. <Col id="datacolumn">LPD301</Col>
  24. </Row>
  25. <Row>
  26. <Col id="codecolumn">LMV113</Col>
  27. <Col id="datacolumn">LMV113</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">LPD122</Col>
  31. <Col id="datacolumn">LPD122</Col>
  32. </Row>
  33. <Row>
  34. <Col id="codecolumn">LPD154</Col>
  35. <Col id="datacolumn">LPD154</Col>
  36. </Row>
  37. <Row>
  38. <Col id="codecolumn">LMR801</Col>
  39. <Col id="datacolumn">LMR801</Col>
  40. </Row>
  41. </Rows>
  42. </Dataset>
  43. </Combo>
  44. <Static text="검 색 기 간 :" position="absolute 215 32 333 49" align="align:center middle;" id="caption1" class="search_name"/>
  45. <Static text="~" position="absolute 432 32 447 52" id="caption10"/>
  46. <Calendar position="absolute 325 32 425 51" id="ipt_fromdd" class="input_s_essential" oncloseup="ipt_fromdd_oncloseup" autoselect="true" onchanged="ipt_fromdd_onchanged" onkillfocus="ipt_fromdd_onkillfocus"/>
  47. <Calendar position="absolute 454 32 554 51" id="ipt_todd" class="input_s_essential" enable="false"/>
  48. <Button position="absolute 565 31 621 53" id="btn_srch" class="btn1" text="조회" onclick="btn_srch_onclick"/>
  49. <Button position="absolute 625 31 705 53" id="button1" class="btn7" text="엑셀저장" onclick="button1_onclick"/>
  50. <Grid position="absolute 1 63 1140 771" align="align:center middle;" id="datagrid1" binddataset="ds_main_patlist" cellsizebandtype="allband" cellsizingtype="both" extendsizetype="row">
  51. <Formats>
  52. <Format id="default">
  53. <Columns>
  54. <Column size="24" band="left"/>
  55. <Column size="76"/>
  56. <Column size="72"/>
  57. <Column size="30"/>
  58. <Column size="58"/>
  59. <Column size="56"/>
  60. <Column size="70"/>
  61. <Column size="71"/>
  62. <Column size="138"/>
  63. <Column size="48"/>
  64. <Column size="45"/>
  65. <Column size="75"/>
  66. <Column size="118"/>
  67. <Column size="95"/>
  68. <Column size="139"/>
  69. </Columns>
  70. <Rows>
  71. <Row size="24" band="head"/>
  72. <Row size="24"/>
  73. </Rows>
  74. <Band id="head">
  75. <Cell/>
  76. <Cell col="1" text="환자번호"/>
  77. <Cell col="2" text="환자명"/>
  78. <Cell col="3" text="성별"/>
  79. <Cell col="4" text="나이"/>
  80. <Cell col="5" text="처방일"/>
  81. <Cell col="6" text="결과보고일"/>
  82. <Cell col="7" text="처방코드"/>
  83. <Cell col="8" text="처방명"/>
  84. <Cell col="9" text="검체"/>
  85. <Cell col="10" text="균명"/>
  86. <Cell col="11" text="결과값"/>
  87. <Cell col="12" text="진료과"/>
  88. <Cell col="13" text="병동명"/>
  89. <Cell col="14" text="진단명"/>
  90. </Band>
  91. <Band id="body">
  92. <Cell celltype="head" expr="currow + 1"/>
  93. <Cell col="1" displaytype="text" text="bind:pid"/>
  94. <Cell col="2" text="bind:hngnm"/>
  95. <Cell col="3" text="bind:sex"/>
  96. <Cell col="4" text="bind:age"/>
  97. <Cell col="5" text="bind:prcpdd"/>
  98. <Cell col="6" text="bind:rsltdd"/>
  99. <Cell col="7" style="align:left top;padding:5 2 1 2;" text="bind:prcpcd" wordwrap="word"/>
  100. <Cell col="8" style="align:left top;padding:5 2 1 2;" text="bind:prcpnm" wordwrap="word"/>
  101. <Cell col="9" text="bind:spccd"/>
  102. <Cell col="10" text="bind:baccd"/>
  103. <Cell col="11" style="align:left top;padding:5 2 1 2;" text="bind:reptrslt" wordwrap="word"/>
  104. <Cell col="12" style="align:left top;padding:5 2 1 2;" text="bind:depthngnm" wordwrap="word"/>
  105. <Cell col="13" style="align:left top;padding:5 2 1 2;" text="bind:wardnm" wordwrap="word"/>
  106. <Cell col="14" style="align:left top;padding:5 2 1 2;" text="bind:diagnm" wordwrap="word"/>
  107. </Band>
  108. </Format>
  109. </Formats>
  110. </Grid>
  111. </Layout>
  112. </Layouts>
  113. <Objects>
  114. <Dataset id="ds_main_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  115. <ColumnInfo>
  116. <Column id="pid" type="STRING" size="256"/>
  117. <Column id="hngnm" type="STRING" size="256"/>
  118. <Column id="sex" type="STRING" size="256"/>
  119. <Column id="age" type="STRING" size="256"/>
  120. <Column id="prcpdd" type="STRING" size="256"/>
  121. <Column id="rsltdd" type="STRING" size="256"/>
  122. <Column id="prcpcd" type="STRING" size="256"/>
  123. <Column id="prcpnm" type="STRING" size="256"/>
  124. <Column id="spccd" type="STRING" size="256"/>
  125. <Column id="baccd" type="STRING" size="256"/>
  126. <Column id="reptrslt" type="STRING" size="256"/>
  127. <Column id="depthngnm" type="STRING" size="256"/>
  128. <Column id="wardnm" type="STRING" size="256"/>
  129. <Column id="diagnm" type="STRING" size="256"/>
  130. </ColumnInfo>
  131. <Rows>
  132. <Row>
  133. <Col id="pid"/>
  134. <Col id="hngnm"/>
  135. <Col id="sex"/>
  136. <Col id="age"/>
  137. <Col id="prcpdd"/>
  138. <Col id="rsltdd"/>
  139. <Col id="prcpcd"/>
  140. <Col id="prcpnm"/>
  141. <Col id="spccd"/>
  142. <Col id="baccd"/>
  143. <Col id="reptrslt"/>
  144. <Col id="depthngnm"/>
  145. <Col id="wardnm"/>
  146. <Col id="diagnm"/>
  147. </Row>
  148. </Rows>
  149. </Dataset>
  150. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  151. <ColumnInfo>
  152. <Column id="srchkind" type="STRING" size="256"/>
  153. <Column id="srchfromdd" type="STRING" size="256"/>
  154. <Column id="srchtodd" type="STRING" size="256"/>
  155. </ColumnInfo>
  156. <Rows>
  157. <Row>
  158. <Col id="srchkind"/>
  159. <Col id="srchfromdd"/>
  160. <Col id="srchtodd"/>
  161. </Row>
  162. </Rows>
  163. </Dataset>
  164. </Objects>
  165. <Bind>
  166. <BindItem id="item0" compid="cmb_srchkind" propid="value" datasetid="ds_send_reqdata" columnid="srchkind"/>
  167. <BindItem id="item1" compid="ipt_fromdd" propid="value" datasetid="ds_send_reqdata" columnid="srchfromdd"/>
  168. <BindItem id="item2" compid="ipt_todd" propid="value" datasetid="ds_send_reqdata" columnid="srchtodd"/>
  169. </Bind>
  170. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  171. * System Name :
  172. * Job Name :
  173. * Creator :
  174. * Make Date : 2015-11-13
  175. * Description :
  176. *---------------------------------------------------------------------------------------
  177. * Modify Date Modifier Modify Description
  178. *---------------------------------------------------------------------------------------
  179. * 2015-11-13 Live Converter TF->XP
  180. *
  181. *---------------------------------------------------------------------------------------
  182. ****************************************************************************************/
  183. include "com_commonxp::comm_main.xjs";
  184. var arErrorCode = new HashArray();
  185. function SMASI01600_oninit(obj:Form, e:InitEventInfo)
  186. {
  187. frmf_initForm(obj); //폼 초기화
  188. }
  189. function SMASI01600_onload(obj:Form, e:LoadEventInfo)
  190. {
  191. ds_send_reqdata.setColumn(0, "srchkind", "ALL");
  192. ds_send_reqdata.setColumn(0, "srchfromdd", utlf_getCurrentDate());
  193. ds_send_reqdata.setColumn(0, "srchtodd", utlf_getCurrentDate());
  194. }
  195. function ipt_fromdd_oncloseup(obj:Calendar, e:CalendarCloseUpEventInfo)
  196. {
  197. dsf_makeValue(ds_send_reqdata, "srchtodd", "string", date_add(ipt_fromdd.value, 6));
  198. }
  199. function date_add(sDate, nDays){
  200. var yy = parseInt(String(sDate).substr(0,4), 10);
  201. var mm = parseInt(String(sDate).substr(4,2), 10);
  202. var dd = parseInt(String(sDate).substr(6,2), 10);
  203. var d = new Date(yy, mm - 1, dd + nDays);
  204. yy = d.getFullYear().toString();
  205. mm = d.getMonth() + 1; mm = (mm < 10) ? '0' + mm : mm.toString();
  206. dd = d.getDate(); dd = (dd < 10) ? '0' + dd : dd.toString();
  207. return yy + mm + dd;
  208. }
  209. function btn_srch_onclick(obj:Button, e:ClickEventInfo)
  210. {
  211. var oParam = {};
  212. oParam.id = "TRASI01004";
  213. oParam.service = "infcmngtapp.LglyDisMngt";
  214. oParam.method = "reqGetAriPatList";
  215. oParam.inds = "req=ds_send_reqdata";
  216. oParam.outds = "ds_main_patlist=item";
  217. oParam.async = false;
  218. tranf_submit(oParam);
  219. }
  220. function button1_onclick(obj:Button, e:ClickEventInfo)
  221. {
  222. grdf_exportExcel(datagrid1, "급성호흡기감염증" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  223. }
  224. function ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  225. {
  226. if(String(ipt_fromdd.value).length == 8){
  227. dsf_makeValue(ds_send_reqdata, "srchtodd", "string", date_add(ipt_fromdd.value, 6));
  228. }
  229. }
  230. function ipt_fromdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo)
  231. {
  232. if(String(ipt_fromdd.value).length == 8){
  233. dsf_makeValue(ds_send_reqdata, "srchtodd", "string", date_add(ipt_fromdd.value, 6));
  234. }
  235. }
  236. ]]></Script>
  237. </Form>
  238. </FDL>