SMPMO02000_가접수등록현황.xrw 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <?xml version="1.0" encoding="UTF-16"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <tacptlist>
  11. <tacptstats>
  12. <rsrvflag/>
  13. <etcflag/>
  14. <rsrvcnt/>
  15. <rsrvflagcd/>
  16. <etcflagcd/>
  17. </tacptstats>
  18. </tacptlist>
  19. <tacppatinfo>
  20. <patinfolist>
  21. <rsrvflag/>
  22. <etcflag/>
  23. <pid/>
  24. <hngnm/>
  25. <deptnm/>
  26. <orddrnm/>
  27. <orddd/>
  28. <fstacptnm/>
  29. <rsrv/>
  30. </patinfolist>
  31. </tacppatinfo>
  32. </main>
  33. <send>
  34. <search>
  35. <pid/>
  36. <fromdd/>
  37. <todd/>
  38. <sflag>A</sflag>
  39. <rsrvflag/>
  40. <etcflag/>
  41. <medamtestmyn/>
  42. </search>
  43. </send>
  44. <init>
  45. <pid/>
  46. <fromdd/>
  47. <todd/>
  48. <sflag>A</sflag>
  49. <medamtestmyn/>
  50. </init>
  51. </root>
  52. </instance>
  53. <script type="javascript" ev:event="xforms-model-construct-done">
  54. <![CDATA[
  55. var date = getCurrentDate();
  56. model.setValue("/root/init/fromdd", date);
  57. model.setValue("/root/init/todd" , date);
  58. input2.refresh();
  59. input3.refresh();
  60. grd_tacpt.explorerbar = "sort";
  61. grd_patinfo.explorerbar = "sort";
  62. ]]>
  63. </script>
  64. <bind id="bind1" ref="/root/main/tacptlist/tacptstats" calculate="now() + ."/>
  65. <bind id="bind2" ref="/root/main/outreceivamtsumlist/receivamtsumstats/uncocnt" calculate="sum(/root/main/tacptlist/tacptstats/uncocnt);"/>
  66. <bind id="bind3" ref="/root/main/outreceivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/tacptlist/tacptstats/uncoamt);"/>
  67. <bind id="bind4" ref="/root/main/inreceivamtlist/tacptstats" calculate="now() + ."/>
  68. <bind id="bind5" ref="/root/main/inreceivamtsumlist/receivamtsumstats/uncocnt" calculate="sum(/root/main/inreceivamtlist/tacptstats/uncocnt);"/>
  69. <bind id="bind6" ref="/root/main/inreceivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/inreceivamtlist/tacptstats/uncoamt);"/>
  70. <submission id="TRPMO02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/main/tacptlist"/>
  71. <submission id="TRPMO02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/main/tacppatinfo"/>
  72. </model>
  73. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  79. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  80. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  81. </xhtml:head>
  82. <xhtml:body pagewidth="1211" pageheight="784">
  83. <group id="group1" style="left:0px; top:23px; width:1205px; height:37px; ">
  84. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:0px; width:1200px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  85. <caption id="caption1" class="search_name" style="left:245px; top:10px; width:200px; height:17px; ">기간</caption>
  86. <button id="btn_search" class="btn1_letter2" style="left:1102px; top:7px; width:56px; height:22px; ">
  87. <caption>조회</caption>
  88. <script type="javascript" ev:event="DOMActivate">
  89. <![CDATA[
  90. var fromdd = model.getValue("/root/init/fromdd");
  91. var todd = model.getValue("/root/init/todd");
  92. if ( fromdd > todd ) {
  93. messageBox("시작일이 종료일 보다 클수 없습니다", "E999")
  94. return;
  95. } else {
  96. model.removeNodeset("/root/main/tacptlist/tacptstats");
  97. model.resetInstanceNode("/root/main/tacppatinfo/patinfolist");
  98. model.setValue("/root/send/search/pid",model.getValue("/root/init/pid"));
  99. model.setValue("/root/send/search/fromdd",model.getValue("/root/init/fromdd"));
  100. model.setValue("/root/send/search/todd",model.getValue("/root/init/todd"));
  101. model.setValue("/root/send/search/sflag",model.getValue("/root/init/sflag"));
  102. model.setValue("/root/send/search/medamtestmyn",model.getValue("/root/init/medamtestmyn"));
  103. submit("TRPMO02001");
  104. grd_tacpt.subtotalPosition = "below";
  105. grd_tacpt.subtotal("sum",-1,3,"#,###","background-color:#ffff99; color:#000000; ",1,"합계",false);
  106. }
  107. ]]>
  108. </script>
  109. </button>
  110. <line id="line1" class="line_4" visibility="hidden" style="x1:1085px; y1:5px; x2:1085px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  111. <caption id="caption4" class="search_name" style="left:42px; top:10px; width:50px; height:17px; ">기준</caption>
  112. <select1 id="combo1" ref="/root/init/sflag" appearance="minimal" style="left:100px; top:9px; width:100px; height:19px; ">
  113. <choices>
  114. <item>
  115. <label>등록번호</label>
  116. <value>P</value>
  117. </item>
  118. <item>
  119. <label>전체</label>
  120. <value>A</value>
  121. </item>
  122. </choices>
  123. <script type="javascript" ev:event="xforms-value-changed">
  124. <![CDATA[
  125. if ( combo1.value == "P" ) {
  126. caption1.value = '환자번호';
  127. input5.visible = true;
  128. input2.visible = false;
  129. input3.visible = false;
  130. } else if ( combo1.value == "A" ) {
  131. caption1.value = '기간';
  132. input5.visible = false;
  133. input2.visible = true;
  134. input3.visible = true;
  135. }
  136. ]]>
  137. </script>
  138. </select1>
  139. <input id="input2" ref="/root/init/fromdd" class="input_default" navindex="7" inputtype="date" style="left:365px; top:9px; width:105px; height:19px; ">
  140. <script type="javascript" ev:event="onkeydown">
  141. <![CDATA[
  142. if( event.keyCode == 13 ) {
  143. var pCurTargetObj = event.ptarget.parent;
  144. if( pCurTargetObj.elementName == "xforms:btn_search" || pCurTargetObj.elementName == "xforms:select") {
  145. event.keyCode = 9;
  146. pCurTargetObj.dispatch("onkeydown");
  147. }
  148. else {
  149. event.keyCode = 9;
  150. }
  151. }
  152. event.stopPropagation();
  153. ]]>
  154. </script>
  155. </input>
  156. <input id="input3" ref="/root/init/todd" class="input_default" navindex="7" inputtype="date" style="left:475px; top:9px; width:105px; height:19px; ">
  157. <script type="javascript" ev:event="onkeydown">
  158. <![CDATA[
  159. if( event.keyCode == 13 ) {
  160. var pCurTargetObj = event.ptarget.parent;
  161. if( pCurTargetObj.elementName == "xforms:btn_search" || pCurTargetObj.elementName == "xforms:select") {
  162. event.keyCode = 9;
  163. pCurTargetObj.dispatch("onkeydown");
  164. }
  165. else {
  166. event.keyCode = 9;
  167. }
  168. }
  169. event.stopPropagation();
  170. ]]>
  171. </script>
  172. </input>
  173. <input id="input5" ref="/root/init/pid" visibility="hidden" style="left:365px; top:9px; width:135px; height:19px; "/>
  174. <select id="checkbox1" ref="/root/init/medamtestmyn" overflow="visible" appearance="full" style="left:885px; top:10px; width:120px; height:15px; border-style:none; ">
  175. <choices>
  176. <item>
  177. <label>진찰료산정제외</label>
  178. <value>Y</value>
  179. </item>
  180. </choices>
  181. </select>
  182. </group>
  183. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  184. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">가접수 현황 조회</caption>
  185. </group>
  186. <datagrid id="grd_tacpt" nodeset="/root/main/tacptlist/tacptstats" caption="예약구분^기타구분^건수^예약코드^기타코드" colsep="^" colwidth="250, 560, 250, 50, 55" rowheader="seq" rowsep="|" style="left:5px; top:85px; width:1195px; height:320px; ">
  187. <col ref="rsrvflag"/>
  188. <col ref="etcflag"/>
  189. <col ref="rsrvcnt"/>
  190. <col ref="rsrvflagcd" visibility="hidden"/>
  191. <col ref="etcflagcd" visibility="hidden"/>
  192. <script type="javascript" ev:event="ondblclick">
  193. <![CDATA[
  194. var rowIndex = 0;
  195. rowIndex = grd_tacpt.mouseRow;
  196. if((grd_tacpt.rows>1)&&(rowIndex>=1) && (rowIndex+1 !=grd_tacpt.rows)){
  197. var tacptcnt = grd_tacpt.valueMatrix(rowIndex, 3) ;
  198. var rsrvflag = grd_tacpt.valueMatrix(rowIndex, 4) ;
  199. var etcflag = grd_tacpt.valueMatrix(rowIndex, 5) ;
  200. if(tacptcnt >10000){
  201. messageBox("10000건 이상은 조회 할 수 없습니다. ", "E999")
  202. }
  203. else{
  204. model.setValue("/root/send/search/rsrvflag",rsrvflag) ;
  205. model.setValue("/root/send/search/etcflag",etcflag) ;
  206. model.removeNodeset("/root/main/tacppatinfo/patinfolist");
  207. submit("TRPMO02002");
  208. }
  209. }
  210. ]]>
  211. </script>
  212. </datagrid>
  213. <datagrid id="grd_patinfo" nodeset="/root/main/tacppatinfo/patinfolist" caption="예약구분^기타구분^등록번호^환자명^진료과^진료의^진료일^최초접수자^창구" colsep="^" colwidth="190, 170, 110, 120, 150, 120, 110, 120, 46" explorerbar="sort" rowheader="seq" rowsep="|" style="left:5px; top:440px; width:1195px; height:310px; ">
  214. <col ref="rsrvflag"/>
  215. <col ref="etcflag"/>
  216. <col ref="pid"/>
  217. <col ref="hngnm"/>
  218. <col ref="deptnm"/>
  219. <col ref="orddrnm"/>
  220. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  221. <col ref="fstacptnm"/>
  222. <col ref="rsrv"/>
  223. </datagrid>
  224. <line id="line3" class="line_1" style="x1:5px; y1:80px; x2:1200px; y2:80px; "/>
  225. <line id="line4" class="line_1" style="x1:5px; y1:435px; x2:1200px; y2:435px; "/>
  226. <caption id="caption5" class="tit_2" style="left:5px; top:420px; width:160px; height:14px; ">개인별 가접수 현황</caption>
  227. <button id="button1" class="btn4_letter4" style="left:1120px; top:750px; width:70px; height:22px; ">
  228. <caption>액셀저장</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. //엑셀저장
  232. var fileName = window.fileDialog("save", "", false, "개인별가접수현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  233. if (fileName != "")
  234. {
  235. grd_patinfo.saveExcel(fileName, "개인별가접수현황", true, true, "", "", false);
  236. }
  237. ]]>
  238. </script>
  239. </button>
  240. <button id="button2" class="btn4_letter4" style="left:1120px; top:405px; width:80px; height:22px; ">
  241. <caption>액셀저장</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. //엑셀저장
  245. var fileName = window.fileDialog("save", "", false, "가접수현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  246. if (fileName != "")
  247. {
  248. grd_tacpt.saveExcel(fileName, "가접수현황", true, false, "", "", false);
  249. }
  250. ]]>
  251. </script>
  252. </button>
  253. <caption id="caption6" class="tit_2" style="left:5px; top:65px; width:160px; height:14px; ">가접수 현황</caption>
  254. </xhtml:body>
  255. </xhtml:html>