SMPMO02100_당일부서별작업현황(예약).xrw 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. <reservationstatisticlist>
  11. <reservationstatistic/>
  12. </reservationstatisticlist>
  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="TRPMO02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reservationstatisticlist"/>
  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/reservationstatisticlist/reservationstatistic");
  53. datagrid2.rebuild();
  54. model.refresh();
  55. }
  56. function fSearch(){
  57. if( model.getValue("/root/main/popupendflag") == "ok" ){
  58. //인적사항에 변경이 있는지를 비교하기 위해서 tmp에 인적사항을 미리 저장해 놓는다.
  59. model.makeNode("/root/hidden/tmpnode");
  60. model.copyNode("/root/hidden/tmpnode", "/root/main/patinfo");
  61. //보험/감면/진료기록/신생하*산모내역 조회
  62. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  63. submit("TRPMC01401");
  64. //model.makeNode("/root/main/popupendflag");
  65. }
  66. }
  67. ]]>
  68. </script>
  69. </xhtml:head>
  70. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  71. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  72. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">당일부서별작업현황(예약)</caption>
  73. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  74. </group>
  75. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  76. <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  77. <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  78. <caption>초기화</caption>
  79. <script type="javascript" ev:event="DOMActivate">
  80. <![CDATA[
  81. fInitialize();
  82. ]]>
  83. </script>
  84. </button>
  85. </group>
  86. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  87. <group id="group5" style="left:0px; top:10px; width:1195px; height:45px; vertical-align:top; ">
  88. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:40px; "/>
  89. <button id="button1" class="btn1_letter2" style="left:1120px; top:10px; width:56px; height:22px; ">
  90. <caption>조회</caption>
  91. <script type="javascript" ev:event="DOMActivate">
  92. <![CDATA[
  93. var fromdd = model.getValue("/root/send/fromdd");
  94. var todd = model.getValue("/root/send/todd");
  95. if( getDateInterval(fromdd, todd) < 0 ){
  96. messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  97. return false;
  98. }
  99. if( getDateInterval(fromdd, todd) > 183 ){
  100. if(messageBox("반년 이상의 데이터를 조회 하시면 시스템에 과부하가 발생 할 수도 있습니다. 계속 진행 하시겠습니까", "Q999", "") != 6){
  101. return false;
  102. }
  103. }
  104. model.removeNodeset("/root/main/reservationstatisticlist/reservationstatistic");
  105. model.setValue("/root/send/fromdd",model.getValue("/root/init/fromdd"));
  106. model.setValue("/root/send/todd",model.getValue("/root/init/todd"));
  107. submit("TRPMO02101");
  108. model.refresh();
  109. ]]>
  110. </script>
  111. </button>
  112. <caption id="caption83" style="left:209px; top:10px; width:15px; height:17px; font-weight:bold; ">~</caption>
  113. <input id="ipt_fromdd" ref="/root/init/fromdd" class="input_s_essential" inputtype="date" style="left:114px; top:10px; width:95px; height:19px; "/>
  114. <input id="ipt_todd" ref="/root/init/todd" class="input_s_essential" inputtype="date" style="left:220px; top:10px; width:95px; height:19px; "/>
  115. <caption id="caption9" class="search_name" style="left:19px; top:10px; width:91px; height:17px; ">조회날짜 :</caption>
  116. </group>
  117. <caption id="caption1" class="tit_2" style="left:10px; top:60px; width:157px; height:13px; color:#000000; ">부서별작업내용</caption>
  118. <datagrid id="datagrid2" nodeset="/root/main/reservationstatisticlist/reservationstatistic" caption="부서명칭^전화예약^전화예약^전화예약^의뢰^의뢰^의뢰^의료협력^의료협력^의료협력^인터넷예약^인터넷예약^인터넷예약^과예약(병동/응급포함)^과예약(병동/응급포함)^과예약(병동/응급포함)^합 계^합 계^합 계|부서명칭^예약^변경^취소^예약^변경^취소^예약^변경^취소^예약^변경^취소^예약^변경^취소^예약^변경^취소" colsep="^" colwidth="145, 52, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57" dataheight="25" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1194px; height:659px; ">
  119. <col ref="deptnm"/>
  120. <col ref="phoner" style="text-align:right; "/>
  121. <col ref="phonec" style="text-align:right; "/>
  122. <col ref="phonex" style="text-align:right; "/>
  123. <col ref="consultr" style="text-align:right; "/>
  124. <col ref="consultc" style="text-align:right; "/>
  125. <col ref="consultx" style="text-align:right; "/>
  126. <col ref="cor" style="text-align:right; ">
  127. <choices>
  128. <itemset nodeset="/root/init/orddeptcd">
  129. <label ref="nm"/>
  130. <value ref="cd"/>
  131. </itemset>
  132. </choices>
  133. </col>
  134. <col ref="coc" style="text-align:right; "/>
  135. <col ref="cox" style="text-align:right; "/>
  136. <col ref="internetr" style="text-align:right; ">
  137. <choices>
  138. <itemset nodeset="/root/init/orddrid">
  139. <label ref="nm"/>
  140. <value ref="cd"/>
  141. </itemset>
  142. </choices>
  143. </col>
  144. <col ref="internetc" style="text-align:right; "/>
  145. <col ref="internetx" style="text-align:right; "/>
  146. <col ref="deptr" style="text-align:right; ">
  147. <choices>
  148. <itemset nodeset="/root/init_com/init/P0006list/P0006">
  149. <label ref="cdnm"/>
  150. <value ref="cdid"/>
  151. </itemset>
  152. </choices>
  153. </col>
  154. <col ref="deptc" style="text-align:right; "/>
  155. <col ref="deptx" style="text-align:right; "/>
  156. <col ref="sumr" style="text-align:right; "/>
  157. <col ref="sumc" style="text-align:right; "/>
  158. <col ref="sumx" style="text-align:right; "/>
  159. <script type="javascript" ev:event="onclick">
  160. <![CDATA[
  161. if (getNodesetCount("/root/main/h_otpt1/otpt") < 1) return;
  162. var currow = datagrid1.row;
  163. if (currow < 1) return;
  164. fOutDetlHistRef(currow);
  165. ]]>
  166. </script>
  167. </datagrid>
  168. <button id="btn_excel1" class="btn2_letter4" style="left:1120px; top:55px; width:64px; height:19px; ">
  169. <caption>엑셀저장</caption>
  170. <script type="javascript" ev:event="DOMActivate">
  171. <![CDATA[
  172. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  173. if (fileName != ""){
  174. datagrid2.saveExcel(fileName, "SheetName", true, true, "", "", false); //label내용 저장
  175. }
  176. ]]>
  177. </script>
  178. </button>
  179. </group>
  180. </xhtml:body>
  181. </xhtml:html>