SMMNE03400_과별상세환자리스트.xrw 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>과별상세환자리스트</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list/>
  11. </main>
  12. </root>
  13. </instance>
  14. <script type="javascript" ev:event="xforms-ready">
  15. <![CDATA[
  16. if (checkOpener()) {
  17. var srcdata = opener.javascript.getParameter("SMMNE02100");
  18. if(srcdata == "OUT") {
  19. grd_nursMngt.colHidden(grd_nursMngt.colRef("outcure")) = false;
  20. grd_nursMngt.colHidden(grd_nursMngt.colRef("staytm")) = true;
  21. } else {
  22. grd_nursMngt.colHidden(grd_nursMngt.colRef("outcure")) = true;
  23. grd_nursMngt.colHidden(grd_nursMngt.colRef("staytm")) = false;
  24. }
  25. } else {
  26. var wardcd = getUserInfo("dutplcecd");
  27. var orddd = getCurrentDate();
  28. model.setValue("/root/main/cond/wardcd",wardcd);
  29. model.setValue("/root/main/cond/orddd", orddd);
  30. cmb_wardlist.disabled = false;
  31. }
  32. ]]>
  33. </script>
  34. </model>
  35. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  36. </xhtml:head>
  37. <xhtml:body pagewidth="720" pageheight="655" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  38. <group id="grp_tle" style="left:0px; top:0px; width:700px; height:13px; ">
  39. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">과별상세환자리스트</caption>
  40. </group>
  41. <group id="grp_biz" scroll="auto" style="left:0px; top:45px; width:699px; height:595px; ">
  42. <datagrid id="grd_nursMngt" nodeset="/root/main/list/patlist" class="datagrid2" caption="등록번호^환자명^성별^나이^주민등록번호^진료과^내원일시^퇴실일시^대기(분)^외래처치^과명" colsep="^" colwidth="70, 75, 37, 37, 105, 48, 110, 110, 65, 85, 0" dataheight="25" rowheader="seq" rowheight="90" rowsep="|" style="left:0px; top:10px; width:698px; height:585px; ">
  43. <col ref="pid" style="left:20px; top:32px; width:80px; height:25px; "/>
  44. <col ref="patnm" style="left:100px; top:32px; width:70px; height:25px; text-align:center; "/>
  45. <col ref="sex" style="text-align:center; "/>
  46. <col ref="age" style="text-align:center; "/>
  47. <col ref="rrgstno" style="text-align:center; "/>
  48. <col ref="orddept" style="text-align:center; "/>
  49. <col ref="chosdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  50. <col ref="outrmdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  51. <col ref="staytm" style="text-align:right; "/>
  52. <col ref="outcure" stype="text-align:center;"/>
  53. <col ref="deptnm" style="text-align:right; "/>
  54. </datagrid>
  55. <line id="line1" class="line_1" style="x1:0px; y1:7px; x2:698px; y2:7px; "/>
  56. </group>
  57. <group id="grp_btn" style="left:0px; top:13px; width:700px; height:27px; ">
  58. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  59. <caption>출력</caption>
  60. <script type="javascript" ev:event="DOMActivate">
  61. <![CDATA[
  62. model.copyNode("/root/send","root/main");
  63. exeReportPreview("RPMNE03400","XMLSTR","");
  64. ]]>
  65. </script>
  66. </button>
  67. <line id="line14" class="line_6" style="x1:0px; y1:25px; x2:661px; y2:25px; "/>
  68. <button id="button1" class="btn1_letter2" style="left:643px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  69. <caption>엑셀</caption>
  70. <script type="javascript" ev:event="onclick">
  71. <![CDATA[
  72. var xrwflag = model.getValue("/root/main/list/xrwflag");
  73. // 수정_20081126
  74. if(xrwflag == "dept"){ // 과별 환자 현황 화면에서 띄웠을 경우
  75. var fileName = window.fileDialog("save", ",", false, model.getValue("/root/main/list/patlist/orddept") + "과상세환자리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  76. }else if(xrwflag == "type"){ // 유형별 환자 현황 화면에서 띄웠을 경우
  77. var fileName = window.fileDialog("save", ",", false, "대기시간별 환자현황" + model.getValue("/root/main/list/totime"), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  78. }
  79. if (fileName != "") {
  80. grd_nursMngt.saveExcel(fileName, "SheetName", true, true, "", "", false);
  81. }
  82. ]]>
  83. </script>
  84. </button>
  85. </group>
  86. </xhtml:body>
  87. </xhtml:html>