SMPMO02200_일일부도율현황.xrw 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. <bankruptcylist>
  11. <bankruptcy/>
  12. </bankruptcylist>
  13. </main>
  14. <send>
  15. <fromdd/>
  16. <todd/>
  17. </send>
  18. <init>
  19. <fromdd/>
  20. <todd/>
  21. </init>
  22. <hidden>
  23. </hidden>
  24. </root>
  25. </instance>
  26. <script type="javascript" ev:event="xforms-ready">
  27. <![CDATA[
  28. fInitialize();
  29. ]]>
  30. </script>
  31. <submission id="TRPMO02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/bankruptcylist"/>
  32. </model>
  33. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  37. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  38. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  39. <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  40. <script type="javascript">
  41. <![CDATA[
  42. function fInitialize() {
  43. model.resetInstanceNode("/root/send");
  44. //날자 입력 항목에 오늘 날자 세팅
  45. var curDate = getCurrentDate();
  46. curDate = curDate.toDate().getAddDate(-1,"D");
  47. var nextDate = curDate.getFullYear();
  48. nextDate = nextDate.toString() + (( curDate.getMonth() + 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
  49. nextDate = nextDate.toString() + (( curDate.getDate() > 9 ) ? curDate.getDate() : "0" + curDate.getDate()) ;
  50. model.setValue("/root/init/fromdd", nextDate);
  51. model.setValue("/root/init/todd", nextDate);
  52. model.removeNodeset("/root/main/bankruptcylist/bankruptcy");
  53. datagrid2.rebuild();
  54. model.refresh();
  55. }
  56. ]]>
  57. </script>
  58. </xhtml:head>
  59. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  60. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  61. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">일일부도율현황</caption>
  62. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  63. </group>
  64. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  65. <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  66. <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  67. <caption>초기화</caption>
  68. <script type="javascript" ev:event="DOMActivate">
  69. <![CDATA[
  70. fInitialize();
  71. ]]>
  72. </script>
  73. </button>
  74. </group>
  75. <group id="group2" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
  76. <group id="group5" style="left:0px; top:10px; width:1195px; height:45px; vertical-align:top; ">
  77. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:40px; "/>
  78. <button id="button1" class="btn1_letter2" style="left:1120px; top:10px; width:56px; height:22px; ">
  79. <caption>조회</caption>
  80. <script type="javascript" ev:event="DOMActivate">
  81. <![CDATA[
  82. var fromdd = model.getValue("/root/send/fromdd");
  83. var todd = model.getValue("/root/send/todd");
  84. if( getDateInterval(fromdd, todd) < 0 ){
  85. messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  86. return false;
  87. }
  88. if( getDateInterval(fromdd, todd) > 183 ){
  89. if(messageBox("반년 이상의 데이터를 조회 하시면 시스템에 과부하가 발생 할 수도 있습니다. 계속 진행 하시겠습니까", "Q999", "") != 6){
  90. return false;
  91. }
  92. }
  93. model.removeNodeset("/root/main/bankruptcylist/bankruptcy");
  94. model.setValue("/root/send/fromdd",model.getValue("/root/init/fromdd"));
  95. model.setValue("/root/send/todd",model.getValue("/root/init/todd"));
  96. submit("TRPMO02201");
  97. model.refresh();
  98. ]]>
  99. </script>
  100. </button>
  101. <caption id="caption83" style="left:209px; top:10px; width:15px; height:17px; font-weight:bold; ">~</caption>
  102. <input id="ipt_fromdd" ref="/root/init/fromdd" class="input_s_essential" inputtype="date" style="left:114px; top:10px; width:95px; height:19px; "/>
  103. <input id="ipt_todd" ref="/root/init/todd" class="input_s_essential" inputtype="date" style="left:220px; top:10px; width:95px; height:19px; "/>
  104. <caption id="caption9" class="search_name" style="left:19px; top:10px; width:91px; height:17px; ">조회날짜 :</caption>
  105. </group>
  106. <datagrid id="datagrid2" nodeset="/root/main/bankruptcylist/bankruptcy" caption="예약구분^예약^취소^부도^진료^부도율" colsep="^" colwidth="152, 106, 106, 106, 106, 106" dataheight="25" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:75px; width:705px; height:505px; ">
  107. <col ref="rsrvflag" style="text-align:right; "/>
  108. <col ref="rcnt" style="text-align:right; "/>
  109. <col ref="xcnt" style="text-align:right; "/>
  110. <col ref="dcnt" style="text-align:right; "/>
  111. <col ref="drcnt" style="text-align:right; "/>
  112. <col ref="drate" style="text-align:right; "/>
  113. </datagrid>
  114. <button id="btn_excel1" class="btn2_letter4" style="left:635px; top:55px; width:64px; height:19px; ">
  115. <caption>엑셀저장</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  119. if (fileName != ""){
  120. datagrid2.saveExcel(fileName, "SheetName", true, true, "", "", false); //label내용 저장
  121. }
  122. ]]>
  123. </script>
  124. </button>
  125. </group>
  126. </xhtml:body>
  127. </xhtml:html>