SMMNE03400_과별상세환자리스트.xfdl 6.9 KB

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