SPMNE14000_응급실체류시간(입원결정이후).xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNE14000" position="absolute 0 0 997 784" titletext="응급실 입원결정 이후 체류 현황" oninit="SPMNE14000_oninit" onload="SPMNE14000_onload" ontimer="SPMNE14000_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Static text="입원결정 이후 체류현황" position="absolute 0 0 174 25" id="caption6" class="tit_1"/>
  8. <Div position="absolute 0 25 992 60" id="group1" class="div_SA" anchor="left top right">
  9. <Layouts>
  10. <Layout>
  11. <Shape position="absolute 789 5 795 30" linetype="vertical" id="line13" anchor="top right"/>
  12. <Static text="기 간:" position="absolute 243 10 298 27" id="caption33" class="search_name" anchor="default"/>
  13. <Button position="absolute 803 7 859 29" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="group1_btn_search_onclick"/>
  14. <Calendar position="absolute 415 8 507 29" id="ipt_srhto" class="input_essential" enable="false" anchor="default" dateformat="yyyy-MM-dd" autoselect="true"/>
  15. <Static text="~" position="absolute 400 11 410 28" id="caption8" anchor="default"/>
  16. <Calendar position="absolute 301 8 393 29" id="ipt_srhfrom" class="input_essential" enable="false" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  17. <Radio position="absolute 20 9 245 29" id="radio1" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="group1_radio1_onitemchanged">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn"/>
  21. <Column id="datacolumn"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row>
  25. <Col id="codecolumn">1</Col>
  26. <Col id="datacolumn">재원환자 기준</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">2</Col>
  30. <Col id="datacolumn">내원일 기준</Col>
  31. </Row>
  32. </Rows>
  33. </Dataset>
  34. </Radio>
  35. <Static text="(" position="absolute 234 9 244 29" id="caption1" anchor="default" style="font:Dotum,9,bold;"/>
  36. <Static text=")" position="absolute 516 9 526 29" id="caption2" anchor="default" style="font:Dotum,9,bold;"/>
  37. </Layout>
  38. </Layouts>
  39. </Div>
  40. <Tab position="absolute 0 72 992 761" id="switch1" anchor="all">
  41. <Tabpages>
  42. <Tabpage text="환자현황" id="case1" style="anchor:default;margin:0 0 0 0;">
  43. <Layouts>
  44. <Layout>
  45. <Grid position="absolute 0 0 992 665" id="datagrid1" class="datagrid2" binddataset="ds_main_durlist" autofittype="col" anchor="all" autosizingtype="none" cellsizingtype="col" selecttype="multirow">
  46. <Formats>
  47. <Format id="default">
  48. <Columns>
  49. <Column size="70"/>
  50. <Column size="60"/>
  51. <Column size="60"/>
  52. <Column size="75"/>
  53. <Column size="75"/>
  54. <Column size="40"/>
  55. <Column size="50"/>
  56. <Column size="120"/>
  57. <Column size="65"/>
  58. <Column size="100"/>
  59. <Column size="100"/>
  60. <Column size="60"/>
  61. <Column size="75"/>
  62. <Column size="40"/>
  63. </Columns>
  64. <Rows>
  65. <Row size="35" band="head"/>
  66. <Row size="24"/>
  67. </Rows>
  68. <Band id="head">
  69. <Cell text="환자번호"/>
  70. <Cell col="1" text="이름"/>
  71. <Cell col="2" text="성별/나이"/>
  72. <Cell col="3" text="입원일"/>
  73. <Cell col="4" colspan="2" text="입실일시" taborder="undefined"/>
  74. <Cell col="6" text="재방문&#10;횟수"/>
  75. <Cell col="7" text="진료과"/>
  76. <Cell col="8" text="진료의"/>
  77. <Cell col="9" text="입원결정일시"/>
  78. <Cell col="10" text="입원장 발급일시"/>
  79. <Cell col="11" text="체류시간&#10;(분)"/>
  80. <Cell col="12" colspan="2" text="퇴실일시" taborder="undefined"/>
  81. </Band>
  82. <Band id="body">
  83. <Cell style="align:left middle;padding:0 0 0 5;" text="bind:pid"/>
  84. <Cell col="1" style="align:left;" text="bind:hngnm"/>
  85. <Cell col="2" style="align:center middle;" text="bind:sa"/>
  86. <Cell col="3" displaytype="expr:utlf_isNull(indd) ? 'normal' : 'date'" text="bind:indd"/>
  87. <Cell col="4" displaytype="expr:utlf_isNull(chosdd) ? 'normal' : 'date'" text="bind:chosdd"/>
  88. <Cell col="5" text="bind:chostm" mask="expr:utlf_isNull(chostm) ? '' : '##:##'"/>
  89. <Cell col="6" style="align:center middle;" text="bind:visitno"/>
  90. <Cell col="7" style="align:left middle;padding:0 0 0 5;" text="bind:juorddeptcd"/>
  91. <Cell col="8" style="align:left;" text="bind:juorddrid"/>
  92. <Cell col="9" style="padding:0 0 0 0;" text="bind:decndt" mask="expr:utlf_isNull(decndt) ? '' : '####-##-## ##:##'"/>
  93. <Cell col="10" style="padding:0 0 0 0;" text="bind:rsrvdt" mask="expr:utlf_isNull(rsrvdt) ? '' : '####-##-## ##:##'"/>
  94. <Cell col="11" displaytype="number" text="bind:durtime"/>
  95. <Cell col="12" displaytype="expr:utlf_isNull(outrmdd) ? 'normal' : 'date'" text="bind:outrmdd"/>
  96. <Cell col="13" text="bind:outrmtm" mask="expr:utlf_isNull(outrmtm) ? '' : '##:##'"/>
  97. </Band>
  98. </Format>
  99. </Formats>
  100. </Grid>
  101. </Layout>
  102. </Layouts>
  103. </Tabpage>
  104. <Tabpage text="과별 통계" id="case2" style="anchor:default;margin:0 0 0 0;">
  105. <Layouts>
  106. <Layout>
  107. <Shape position="absolute 0 0 995 6" linetype="vertical" id="line1" class="line_1"/>
  108. <Grid position="absolute 0 0 992 665" id="datagrid2" binddataset="ds_main_durlist_sum" cellsizingtype="col" selecttype="multirow">
  109. <Formats>
  110. <Format id="default">
  111. <Columns>
  112. <Column size="150"/>
  113. <Column size="120"/>
  114. <Column size="120"/>
  115. <Column size="100"/>
  116. <Column size="120"/>
  117. <Column size="120"/>
  118. </Columns>
  119. <Rows>
  120. <Row size="24" band="head"/>
  121. <Row size="24"/>
  122. </Rows>
  123. <Band id="head">
  124. <Cell text="진료과"/>
  125. <Cell col="1" text="총 체류시간 (분)"/>
  126. <Cell col="2" text="총 체류시간 (일)"/>
  127. <Cell col="3" text="환자수"/>
  128. <Cell col="4" text="평균 체류시간 (분)"/>
  129. <Cell col="5" text="평균 체류시간 (일)"/>
  130. </Band>
  131. <Band id="body">
  132. <Cell style="align:left middle;padding:0 0 0 5;" text="bind:juorddeptcd"/>
  133. <Cell col="1" displaytype="number" style="padding:0 5 0 0;" text="bind:sum_durtime"/>
  134. <Cell col="2" displaytype="number" style="padding:0 5 0 0;" text="bind:sum_durtime_d"/>
  135. <Cell col="3" displaytype="number" style="padding:0 5 0 0;" text="bind:cnt"/>
  136. <Cell col="4" displaytype="number" style="padding:0 5 0 0;" text="bind:avg_durtime"/>
  137. <Cell col="5" displaytype="number" style="padding:0 5 0 0;" text="bind:avg_durtime_d"/>
  138. </Band>
  139. </Format>
  140. </Formats>
  141. </Grid>
  142. </Layout>
  143. </Layouts>
  144. </Tabpage>
  145. </Tabpages>
  146. </Tab>
  147. <Static text="[표]" position="absolute 968 767 993 780" align="align:right middle;" id="caption3" style="align:right middle;"/>
  148. <Button id="button2" taborder="1" text="Excel" class="btn7" position="absolute 863 32 925 54" anchor="top right" onclick="button2_onclick"/>
  149. <Button id="button1" taborder="2" text="출력" class="btn6" position="absolute 929 32 985 54" anchor="top right" onclick="button1_onclick"/>
  150. </Layout>
  151. </Layouts>
  152. <Objects>
  153. <Dataset id="ds_main_durlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  154. <ColumnInfo>
  155. <Column id="pid" type="STRING"/>
  156. <Column id="hngnm" type="STRING"/>
  157. <Column id="sa" type="STRING"/>
  158. <Column id="indd" type="STRING"/>
  159. <Column id="chosdd" type="STRING"/>
  160. <Column id="chostm" type="STRING"/>
  161. <Column id="visitno" type="STRING"/>
  162. <Column id="juorddeptcd" type="STRING"/>
  163. <Column id="juorddrid" type="STRING"/>
  164. <Column id="decndt" type="STRING"/>
  165. <Column id="rsrvdt" type="STRING"/>
  166. <Column id="durtime" type="STRING"/>
  167. <Column id="outrmdd" type="STRING"/>
  168. <Column id="outrmtm" type="STRING"/>
  169. </ColumnInfo>
  170. </Dataset>
  171. <Dataset id="ds_main_durlist_sum" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  172. <ColumnInfo>
  173. <Column id="juorddeptcd" type="STRING"/>
  174. <Column id="sum_durtime" type="STRING"/>
  175. <Column id="sum_durtime_d" type="STRING"/>
  176. <Column id="cnt" type="STRING"/>
  177. <Column id="avg_durtime" type="STRING"/>
  178. <Column id="avg_durtime_d" type="STRING"/>
  179. </ColumnInfo>
  180. </Dataset>
  181. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  182. <ColumnInfo>
  183. <Column id="sdate" type="STRING" size="256"/>
  184. <Column id="edate" type="STRING" size="256"/>
  185. <Column id="gbn" type="STRING" size="256"/>
  186. </ColumnInfo>
  187. <Rows>
  188. <Row>
  189. <Col id="gbn">1</Col>
  190. </Row>
  191. </Rows>
  192. </Dataset>
  193. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  194. </Objects>
  195. <Bind>
  196. <BindItem id="item0" compid="group1.radio1" propid="value" datasetid="ds_main_cond" columnid="gbn"/>
  197. <BindItem id="item1" compid="group1.ipt_srhfrom" propid="value" datasetid="ds_main_cond" columnid="sdate"/>
  198. <BindItem id="item2" compid="group1.ipt_srhto" propid="value" datasetid="ds_main_cond" columnid="edate"/>
  199. </Bind>
  200. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  201. * System Name :
  202. * Job Name :
  203. * Creator :
  204. * Make Date : 2015-11-13
  205. * Description :
  206. *---------------------------------------------------------------------------------------
  207. * Modify Date Modifier Modify Description
  208. *---------------------------------------------------------------------------------------
  209. * 2015-11-13 Live Converter TF->XP
  210. *
  211. *---------------------------------------------------------------------------------------
  212. ****************************************************************************************/
  213. include "com_commonxp::comm_main.xjs";
  214. /******************************************************************
  215. * Argument :
  216. * Description : 초기화
  217. ******************************************************************/
  218. function SPMNE14000_oninit(obj:Form, e:InitEventInfo)
  219. {
  220. frmf_initForm(obj);
  221. }
  222. function SPMNE14000_onload(obj:Form, e:LoadEventInfo)
  223. {
  224. ds_main_cond.setColumn(0, "sdate", utlf_getCurrentDate());
  225. ds_main_cond.setColumn(0, "edate", utlf_getCurrentDate());
  226. switch1.tabindex = 0;
  227. //속도개선
  228. //this.setTimer(0, 1);
  229. //frmf_inputEnterKey("group1.btn_search", "onclick", new ClickEventInfo);
  230. }
  231. /******************************************************************
  232. * Argument :
  233. * Description : 조회 button event
  234. ******************************************************************/
  235. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  236. {
  237. fSearch();
  238. }
  239. /******************************************************************
  240. * Argument :
  241. * Description : 조회
  242. ******************************************************************/
  243. function fSearch(){
  244. ds_main_durlist.clearData();
  245. ds_main_durlist_sum.clearData();
  246. ds_send.clear();
  247. ds_send.addColumn("gbn", "string", 256);
  248. ds_send.addColumn("sdate", "string", 256);
  249. ds_send.addColumn("edate", "string", 256);
  250. var iRow = ds_send.addRow();
  251. ds_send.setColumn(iRow, "gbn", ds_main_cond.getColumn(0, "gbn"));
  252. ds_send.setColumn(iRow, "sdate", ds_main_cond.getColumn(0, "sdate"));
  253. ds_send.setColumn(iRow, "edate", ds_main_cond.getColumn(0, "edate"));
  254. var oParam = {};
  255. oParam.id = "TRMNE14001";
  256. oParam.service = "ercareapp.ERPatMngt";
  257. oParam.method = "reqGetErDurtimeForAdm";
  258. oParam.inds = "req=ds_send";
  259. oParam.outds = "ds_main_durlist=durlist ds_main_durlist_sum=durlist_sum";
  260. oParam.async = false;
  261. //oParam.callback = "cf_TRMNE14001";
  262. tranf_submit(oParam);
  263. ds_main_durlist.rowposition = -1;
  264. ds_main_durlist_sum.rowposition = -1;
  265. }
  266. /******************************************************************
  267. * Argument :
  268. * Description : 재원환자/ 내원일 combo event
  269. ******************************************************************/
  270. function group1_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  271. {
  272. if( ds_main_cond.getColumn(0, "gbn") == "1") {
  273. group1.ipt_srhfrom.enable = false;
  274. group1.ipt_srhto.enable = false;
  275. } else {
  276. group1.ipt_srhfrom.enable = true;
  277. group1.ipt_srhto.enable = true;
  278. }
  279. }
  280. /******************************************************************
  281. * Argument :
  282. * Description : Excel button event
  283. ******************************************************************/
  284. function button2_onclick(obj:Button, e:ClickEventInfo)
  285. {
  286. var tabIdx = switch1.tabindex;
  287. if( tabIdx == 0 ){
  288. grdf_exportExcel(switch1.case1.datagrid1, utlf_getCurrentDate() + "_환자별체류현황", "환자별체류현황", true, "", "", true);
  289. } else {
  290. grdf_exportExcel(switch1.case2.datagrid2, utlf_getCurrentDate() + "_과별체류현황", "과별체류현황", true, "", "", true);
  291. }
  292. }
  293. /******************************************************************
  294. * Argument :
  295. * Description : 출력 button event
  296. ******************************************************************/
  297. function button1_onclick(obj:Button, e:ClickEventInfo)
  298. {
  299. var tabIdx = switch1.tabindex;
  300. if( tabIdx == 0 ){
  301. var objDOM = rptf_createDOM(); // DOM 객체 설정
  302. rptf_setNodeListToDOM(objDOM, "/root/main/durinfo/durlist", ds_main_durlist); // 데이터셋 1
  303. rptf_setNodeListToDOM(objDOM, "/root/cond", ds_main_cond); // 데이터셋 2
  304. //sysf_trace(objDOM.documentElement.source); // XML 내용출력
  305. var objParam = new Object();
  306. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  307. var option = "open=1;save=1;directprint=0;print=1;zoom=0;excel=1;";
  308. rptf_exeReportPreview30(["RPMNE14000"],[objParam], option, null, null);
  309. } else {
  310. var objDOM = rptf_createDOM(); // DOM 객체 설정
  311. rptf_setNodeListToDOM(objDOM, "/root/main/durinfo/durlist_sum", ds_main_durlist_sum); // 데이터셋 1
  312. rptf_setNodeListToDOM(objDOM, "/root/cond", ds_main_cond); // 데이터셋 2
  313. //sysf_trace(objDOM.documentElement.source); // XML 내용출력
  314. var objParam = new Object();
  315. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  316. var option = "open=1;save=1;directprint=0;print=1;zoom=0;excel=1;";
  317. rptf_exeReportPreview30(["RPMNE14001"],[objParam], option, null, null);
  318. }
  319. }
  320. function SPMNE14000_ontimer(obj:Form, e:TimerEventInfo)
  321. {
  322. // if (e.timerid == 0) {
  323. // this.killTimer(0);
  324. // frmf_inputEnterKey("group1.btn_search", "onclick", new ClickEventInfo);
  325. // }
  326. }
  327. ]]></Script>
  328. </Form>
  329. </FDL>