SMMNE03300_대기시간별상세환자리스트.xfdl 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE03300" position="absolute 0 0 667 652" titletext="대기시간별 환자현황" oninit="SMMNE03300_oninit" onload="SMMNE03300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_print" taborder="2" text="출력" class="btn6" position="absolute 0 28 56 50" onclick="btn_print_onclick"/>
  8. <Static id="caption6" text="대기시간별 환자현황" class="tit_1" position="absolute 0 0 160 25"/>
  9. <Button id="btn_excel" taborder="4" text="엑셀" onclick="group2_button1_onclick" class="btn7" position="absolute 604 28 660 50" anchor="top right"/>
  10. <Grid id="grd_nursMngt" class="datagrid2" taborder="5" binddataset="ds_grd_nursMngt" useinputpanel="false" autofittype="col" position="absolute 0 56 660 641">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="25"/>
  15. <Column size="70"/>
  16. <Column size="75"/>
  17. <Column size="30"/>
  18. <Column size="30"/>
  19. <Column size="105"/>
  20. <Column size="48"/>
  21. <Column size="105"/>
  22. <Column size="105"/>
  23. <Column size="65"/>
  24. </Columns>
  25. <Rows>
  26. <Row size="24" band="head"/>
  27. <Row size="24"/>
  28. </Rows>
  29. <Band id="head">
  30. <Cell/>
  31. <Cell col="1" text="등록번호"/>
  32. <Cell col="2" text="환자명"/>
  33. <Cell col="3" text="나이"/>
  34. <Cell col="4" text="성별"/>
  35. <Cell col="5" text="주민등록번호"/>
  36. <Cell col="6" text="진료과"/>
  37. <Cell col="7" text="내원일시"/>
  38. <Cell col="8" text="퇴실일시"/>
  39. <Cell col="9" text="대기(분)"/>
  40. </Band>
  41. <Band id="body">
  42. <Cell celltype="head" text="expr:currow + 1"/>
  43. <Cell col="1" text="bind:pid"/>
  44. <Cell col="2" text="bind:patnm"/>
  45. <Cell col="3" text="bind:sex"/>
  46. <Cell col="4" text="bind:age"/>
  47. <Cell col="5" text="bind:rrgstno"/>
  48. <Cell col="6" text="bind:orddept"/>
  49. <Cell col="7" displaytype="normal" text="bind:chosdt" mask="expr:utlf_isNull(chosdt) ?&quot;&quot; : '####-##-## ##:##'"/>
  50. <Cell col="8" displaytype="normal" text="bind:outrmdt" mask="expr:utlf_isNull(outrmdt) ?&quot;&quot; : '####-##-## ##:##'"/>
  51. <Cell col="9" text="bind:staytm"/>
  52. </Band>
  53. </Format>
  54. </Formats>
  55. </Grid>
  56. <Shape id="line6" class="line_1" position="absolute 0 54 660 60" style="strokepen:3 solid #33bbbbff;"/>
  57. </Layout>
  58. </Layouts>
  59. <Objects>
  60. <Dataset id="ds_grd_nursMngt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  61. <ColumnInfo>
  62. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  63. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  64. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  65. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  66. <Column id="rrgstno" type="STRING" size="256" sumtext="주민등록번호"/>
  67. <Column id="orddept" type="STRING" size="256" sumtext="진료과"/>
  68. <Column id="chosdt" type="STRING" size="256" sumtext="내원일시"/>
  69. <Column id="outrmdt" type="STRING" size="256" sumtext="퇴실일시"/>
  70. <Column id="staytm" type="STRING" size="256" sumtext="체류시간"/>
  71. <Column id="srchdate" type="STRING" size="256" sumtext="조회일자"/>
  72. <Column id="totm" type="STRING" size="256"/>
  73. </ColumnInfo>
  74. </Dataset>
  75. </Objects>
  76. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  77. * System Name :
  78. * Job Name :
  79. * Creator :
  80. * Make Date : 2015-11-13
  81. * Description :
  82. *---------------------------------------------------------------------------------------
  83. * Modify Date Modifier Modify Description
  84. *---------------------------------------------------------------------------------------
  85. * 2015-11-13 Live Converter TF->XP
  86. *
  87. *---------------------------------------------------------------------------------------
  88. ****************************************************************************************/
  89. //=======================================================================================
  90. // Lib Include
  91. //---------------------------------------------------------------------------------------
  92. include "com_commonxp::comm_main.xjs"
  93. //=======================================================================================
  94. // Event
  95. //---------------------------------------------------------------------------------------
  96. /******************************************************************
  97. * Argument :
  98. * Description : oninit 메서드 호출
  99. ******************************************************************/
  100. function SMMNE03300_oninit(obj:Form, e:InitEventInfo){
  101. // 화면공통
  102. frmf_initForm(obj);
  103. ds_grd_nursMngt.copyData(arg_ds_patlist);
  104. }
  105. /******************************************************************
  106. * Argument :
  107. * Description : onload 메서드 호출
  108. ******************************************************************/
  109. function SMMNE03300_onload(obj:Form, e:LoadEventInfo){
  110. }
  111. /******************************************************************
  112. * Argument :
  113. * Description : 출력 버튼 클릭 이벤트
  114. ******************************************************************/
  115. function btn_print_onclick(obj:Button, e:ClickEventInfo){
  116. var objDOM = rptf_createDOM(); // DOM 객체 설정
  117. rptf_setNodeListToDOM(objDOM, "/root/main/list/patlist", ds_grd_nursMngt); // 데이터셋
  118. // 노드 추가
  119. rptf_setValueToDOM(objDOM, 'root/main/list/totime', titletotm);
  120. rptf_setValueToDOM(objDOM, 'root/main/list/srcdate', srcdate);
  121. var objParam = new Object();
  122. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  123. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  124. rptf_exeReportPreview30(["RPMNE03300"],[objParam], option);
  125. }
  126. /******************************************************************
  127. * Argument :
  128. * Description : 엑셀 버튼 클릭 이벤트
  129. ******************************************************************/
  130. function group2_button1_onclick(obj:Button, e:ClickEventInfo){
  131. grdf_exportExcel(grd_nursMngt, "대기시간별 환자현황" + "", "Sheet1", true, "", "user", true);
  132. }
  133. ]]></Script>
  134. </Form>
  135. </FDL>