SPSTP00100_통계집계.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SPSTP00100_통계집계.xrw
  4. * 수정이력
  5. * - 2008.06.24 / 최초작성 / 박정화
  6. -->
  7. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  8. <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">
  9. <xhtml:head>
  10. <xhtml:title>통계집계</xhtml:title>
  11. <model id="model1">
  12. <instance id="instance1">
  13. <root xmlns="">
  14. <send>
  15. <in_batchgubn>C</in_batchgubn>
  16. <in_ordstat>A</in_ordstat>
  17. <in_monthday>D</in_monthday>
  18. <in_procdd/>
  19. <in_fromdd/>
  20. <in_todd/>
  21. <in_cond1/>
  22. </send>
  23. <hide>
  24. <out_proccnt/>
  25. </hide>
  26. </root>
  27. </instance>
  28. <submission id="TXSTP00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. model.setValue("/root/send/in_procdd",gCurrentdd );
  32. model.setValue("/root/send/in_fromdd",gCurrentdd );
  33. model.setValue("/root/send/in_todd",gCurrentdd );
  34. model.refresh();
  35. ]]>
  36. </script>
  37. </model>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  43. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  44. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  45. <script type="javascript">
  46. <![CDATA[
  47. var gToday = new Date();
  48. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  49. var gBasemonth = gToday.getDateFormat("MM");
  50. var gBaseday = gToday.getDateFormat("DD");
  51. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  52. var gCurrentmm = gBaseyear + gBasemonth;
  53. ]]>
  54. </script>
  55. </xhtml:head>
  56. <xhtml:body pagewidth="1160" pageheight="780" style="font-family:돋움, Arial; font-size:12px; color:#4d4d4d; ">
  57. <group id="group1" style="left:0px; top:15px; width:1160px; height:590px; ">
  58. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:330px; height:235px; "/>
  59. <select id="chk_job" ref="/root/send/in_cond1" visibility="visible" overflow="visible" appearance="full" style="left:45px; top:143px; width:70px; height:20px; border-style:none; ">
  60. <choices>
  61. <item>
  62. <label>일괄작업</label>
  63. <value>A</value>
  64. </item>
  65. </choices>
  66. <script type="javascript" ev:event="xforms-value-changed">
  67. <![CDATA[
  68. if ( model.getValue("/root/send/in_cond1") == "A" ) {
  69. ipt_fromdd.disabled = false;
  70. ipt_todd.disabled = false;
  71. } else {
  72. ipt_fromdd.disabled = true;
  73. ipt_todd.disabled = true;
  74. model.setValue("/root/send/in_fromdd", model.getValue("/root/send/in_procdd"));
  75. model.setValue("/root/send/in_todd", model.getValue("/root/send/in_procdd"));
  76. model.refresh();
  77. }
  78. model.refresh();
  79. ]]>
  80. </script>
  81. </select>
  82. <input id="ipt_fromdd" ref="/root/send/in_fromdd" class="input_search" disabled="true" navindex="1" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:125px; top:143px; width:94px; height:19px; text-align:center; ">
  83. <script type="javascript" ev:event="xforms-value-changed">
  84. <![CDATA[]]>
  85. </script>
  86. </input>
  87. <input id="ipt_todd" ref="/root/send/in_todd" class="input_search" disabled="true" navindex="1" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:225px; top:143px; width:94px; height:19px; text-align:center; ">
  88. <script type="javascript" ev:event="xforms-value-changed">
  89. <![CDATA[]]>
  90. </script>
  91. </input>
  92. <caption id="caption30" class="search_name" style="left:30px; top:85px; width:85px; height:17px; ">집계기준</caption>
  93. <input id="ipt_procdd" ref="/root/send/in_procdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:125px; top:115px; width:94px; height:19px; text-align:center; ">
  94. <script type="javascript" ev:event="xforms-value-changed">
  95. <![CDATA[
  96. var procdd = model.getValue("/root/send/in_procdd");
  97. var cond1 = model.getValue("/root/send/in_cond1");
  98. if ( cond1 != "A") {
  99. model.setValue("/root/send/in_fromdd", procdd);
  100. model.setValue("/root/send/in_todd", procdd);
  101. model.refresh();
  102. }
  103. ]]>
  104. </script>
  105. </input>
  106. <button id="btn_execute" class="btn4_letter2" style="left:164px; top:174px; width:56px; height:22px; ">
  107. <caption>실행</caption>
  108. <script type="javascript" ev:event="DOMActivate">
  109. <![CDATA[
  110. var sProcdd = model.getValue("/root/send/in_procdd");
  111. var sFromdd = model.getValue("/root/send/in_fromdd");
  112. var sTodd = model.getValue("/root/send/in_todd");
  113. if ( model.getValue("/root/send/in_cond1") == "A" ) {
  114. if (gCurrentdd.toDate() < sFromdd.toDate() || gCurrentdd.toDate() < sTodd.toDate()) {
  115. messageBox("현재일 이후 통계는 집계할 수 없습니다.","C999");
  116. return;
  117. }
  118. if (sFromdd.toDate() > sTodd.toDate()) {
  119. messageBox("집계 시작일자와 종료일자 설정이 올바르지 않습니다. 날짜를 확인하세요.","C999");
  120. return;
  121. }
  122. } else {
  123. if (gCurrentdd.toDate() < sProcdd.toDate()) {
  124. messageBox("현재일 이후 통계는 집계할 수 없습니다.","C999");
  125. return;
  126. }
  127. }
  128. if ( sProcdd != "" ) {
  129. submit("TXSTP00100");
  130. button1.dispatch("DOMActivate");
  131. } else {
  132. model.alert("집계일자를 입력하세요");
  133. model.setFocus("ipt_procdd");
  134. return;
  135. }
  136. ]]>
  137. </script>
  138. </button>
  139. <caption id="caption1" style="left:25px; top:205px; width:234px; height:17px; ">※ 현재일이후 통계는 집계 할 수 없습니다.</caption>
  140. <caption id="caption2" class="search_name" style="left:30px; top:25px; width:85px; height:17px; ">집계구분</caption>
  141. <select1 id="cb_list" ref="/root/send/in_batchgubn" class="combo_search" appearance="minimal" editmode="search" itemcount="20" style="left:125px; top:25px; width:94px; height:19px; ">
  142. <choices>
  143. <item>
  144. <label>공통통계</label>
  145. <value>C</value>
  146. </item>
  147. <item>
  148. <label>인원통계</label>
  149. <value>P</value>
  150. </item>
  151. <item>
  152. <label>수익통계</label>
  153. <value>S</value>
  154. </item>
  155. <item>
  156. <label>사회사업통계</label>
  157. <value>B</value>
  158. </item>
  159. <item>
  160. <label>진료실적통계</label>
  161. <value>R</value>
  162. </item>
  163. <item>
  164. <label>특정처방집계</label>
  165. <value>T</value>
  166. </item>
  167. <item>
  168. <label>MIS자동분개</label>
  169. <value>I</value>
  170. </item>
  171. <item>
  172. <label>수익마감전계산내역점검</label>
  173. <value>O</value>
  174. </item>
  175. <item>
  176. <label>수익마감 누적통계</label>
  177. <value>A</value>
  178. </item>
  179. <item>
  180. <label>오류데이터 점검</label>
  181. <value>X</value>
  182. </item>
  183. <item>
  184. <label>선택진료료 배분</label>
  185. <value>G</value>
  186. </item>
  187. <item>
  188. <label>수익일보상호검증</label>
  189. <value>H</value>
  190. </item>
  191. <item>
  192. <label>수익부서 셋팅</label>
  193. <value>J</value>
  194. </item>
  195. <item>
  196. <label>월마감집계</label>
  197. <value>N</value>
  198. </item>
  199. </choices>
  200. <script type="javascript" ev:event="xforms-value-changed">
  201. <![CDATA[
  202. ]]>
  203. </script>
  204. </select1>
  205. <caption id="caption3" class="search_name" style="left:30px; top:55px; width:85px; height:17px; ">진료구분</caption>
  206. <select1 id="cb_ordstat" ref="/root/send/in_ordstat" class="combo_search" appearance="minimal" editmode="search" itemcount="20" style="left:125px; top:55px; width:94px; height:19px; ">
  207. <choices>
  208. <item>
  209. <label>전체</label>
  210. <value>A</value>
  211. </item>
  212. <item>
  213. <label>입원</label>
  214. <value>I</value>
  215. </item>
  216. <item>
  217. <label>외래</label>
  218. <value>O</value>
  219. </item>
  220. </choices>
  221. <script type="javascript" ev:event="xforms-value-changed">
  222. <![CDATA[
  223. ]]>
  224. </script>
  225. </select1>
  226. <select1 id="cb_monthday" ref="/root/send/in_monthday" class="combo_search" appearance="minimal" editmode="search" itemcount="20" style="left:125px; top:85px; width:94px; height:19px; ">
  227. <choices>
  228. <item>
  229. <label>일단위</label>
  230. <value>D</value>
  231. </item>
  232. <item>
  233. <label>월단위</label>
  234. <value>M</value>
  235. </item>
  236. </choices>
  237. <script type="javascript" ev:event="xforms-value-changed">
  238. <![CDATA[
  239. var sMonthday = '';
  240. sMonthday = model.getValue("/root/send/in_monthday");
  241. model.setValue("/root/send/in_procdd","" );
  242. model.setValue("/root/send/in_fromdd","" );
  243. model.setValue("/root/send/in_todd","" );
  244. if ( sMonthday == "D" ) {
  245. ipt_procdd.attribute("format") = "yyyy-mm-dd";
  246. model.setValue("/root/send/in_procdd",gCurrentdd );
  247. model.setValue("/root/send/in_fromdd",gCurrentdd );
  248. model.setValue("/root/send/in_todd",gCurrentdd );
  249. } else {
  250. ipt_procdd.attribute("format") = "yyyy-mm";
  251. model.setValue("/root/send/in_procdd",gCurrentmm );
  252. }
  253. model.refresh();
  254. ]]>
  255. </script>
  256. </select1>
  257. <button id="button1" class="btn4_letter4" style="left:224px; top:174px; width:80px; height:22px; ">
  258. <caption>배치로그</caption>
  259. <script type="javascript" ev:event="DOMActivate">
  260. <![CDATA[
  261. var todd = getCurrentDate();
  262. todd = todd.toDate().getAddDate(+1, 'D');
  263. zsbfOpenBatchLogPopup("stspambatchmgr.StsPamBatch",getCurrentDate(),todd.getDateFormat());
  264. ]]>
  265. </script>
  266. </button>
  267. </group>
  268. <group id="grp_tle" style="left:0px; top:0px; width:1146px; height:13px; ">
  269. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">원무통계 집계</caption>
  270. </group>
  271. </xhtml:body>
  272. </xhtml:html>