SMANT02700_환자생일자명단.xrw 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. <data>
  11. <item>
  12. <pid/>
  13. <hngnm/>
  14. <wardcd/>
  15. <roomcd/>
  16. <birthday/>
  17. </item>
  18. </data>
  19. </main>
  20. <send>
  21. <searchitem>
  22. <appdd/>
  23. </searchitem>
  24. </send>
  25. <send1>
  26. <list>
  27. <prid/>
  28. </list>
  29. </send1>
  30. <init/>
  31. <hidden/>
  32. </root>
  33. </instance>
  34. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. finit();
  41. ]]>
  42. </script>
  43. <submission id="TRANT02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/data"/>
  44. </model>
  45. <script type="javascript">
  46. <![CDATA[
  47. function finit() {
  48. model.resetInstanceNode("/root/main");
  49. model.resetInstanceNode("/root/send");
  50. model.removeNodeset("/root/main/data");
  51. model.setValue("/root/send/searchitem/appdd", getCurrentDate().toDate().getAddDate(+1,"D").getDateFormat("YYYYMMDD"));
  52. btn_search.dispatch("DOMActivate");
  53. model.refresh();
  54. }
  55. ]]>
  56. </script>
  57. </xhtml:head>
  58. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  59. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  60. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">생일자명단</caption>
  61. </group>
  62. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:770px; ">
  63. <group id="group1" style="left:5px; top:10px; width:1180px; height:35px; vertical-align:top; ">
  64. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:35px; background-color:#fffbf2; "/>
  65. <caption id="caption3" class="search_name" style="left:25px; top:9px; width:65px; height:17px; ">일자 :</caption>
  66. <line id="line14" class="line_4" style="x1:1095px; y1:7px; x2:1095px; y2:29px; "/>
  67. <input id="ipt_appdd" ref="/root/send/searchitem/appdd" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:90px; top:9px; width:115px; height:19px; text-align:center; ">
  68. <script type="javascript" ev:event="xforms-value-changed">
  69. <![CDATA[
  70. btn_search.dispatch("DOMActivate");
  71. ]]>
  72. </script>
  73. </input>
  74. <button id="btn_before" class="icon_pre" style="left:210px; top:12px; width:13px; height:15px; ">
  75. <caption/>
  76. <script type="javascript" ev:event="DOMActivate">
  77. <![CDATA[
  78. var ym = model.getValue("/root/send/searchitem/appdd");
  79. ym = ym.toDate().getAddDate(-1, "D");
  80. ym = ym.getDateFormat();
  81. model.setValue("/root/send/searchitem/appdd", ym);
  82. model.refresh();
  83. btn_search.dispatch("DOMActivate");
  84. ]]>
  85. </script>
  86. </button>
  87. <button id="btn_next" class="icon_next" style="left:223px; top:12px; width:13px; height:15px; ">
  88. <caption/>
  89. <script type="javascript" ev:event="DOMActivate">
  90. <![CDATA[
  91. var ym = model.getValue("/root/send/searchitem/appdd");
  92. ym = ym.toDate().getAddDate(1, "D");
  93. ym = ym.getDateFormat();
  94. model.setValue("/root/send/searchitem/appdd", ym);
  95. model.refresh();
  96. btn_search.dispatch("DOMActivate");
  97. ]]>
  98. </script>
  99. </button>
  100. <button id="btn_search" class="btn1_letter2" style="left:1110px; top:7px; width:56px; height:22px; ">
  101. <caption>조회</caption>
  102. <script type="javascript" ev:event="DOMActivate">
  103. <![CDATA[
  104. model.removeNodeset("/root/main/data/item");
  105. model.resetInstanceNode("/root/main/appdd");
  106. var appdd = model.getValue("/root/send/searchitem/appdd");
  107. if (isValidDateTime(appdd, "YYYYMMDD") == false) {
  108. messageBox("조회일자의 형식이", "E016");
  109. model.setFocus("ipt_appdd");
  110. return;
  111. }
  112. submit("TRANT02701");
  113. ]]>
  114. </script>
  115. </button>
  116. </group>
  117. <line id="line2" class="line_1" style="x1:5px; y1:50px; x2:1185px; y2:50px; "/>
  118. <datagrid id="grd_data" nodeset="/root/main/data/item" caption="환자번호^성명^병동^병실^생년월일" colsep="^" colwidth="96, 90, 228, 93, 121" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:55px; width:1180px; height:685px; ">
  119. <col ref="pid" style="text-align:center; "/>
  120. <col ref="hngnm" style="text-align:center; "/>
  121. <col ref="wardcd" style="text-align:center; "/>
  122. <col ref="roomcd" style="text-align:center; "/>
  123. <col ref="birthday" format="yyyy-mm-dd" style="text-align:center; "/>
  124. </datagrid>
  125. <button id="btn_excel" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:5px; top:745px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  126. <caption>엑셀저장</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. var file = window.fileDialog("save","","true","","xls","Excel Files(*.xls)|*.xls");
  130. if(file == "") return;
  131. grd_data.saveExcel(file, "sheet1");
  132. ]]>
  133. </script>
  134. </button>
  135. </group>
  136. </xhtml:body>
  137. </xhtml:html>