SMPAS01000_일일마감.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  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. <ordtype>A</ordtype>
  16. <fromdd/>
  17. <todd/>
  18. <endkind>1</endkind>
  19. <sms/>
  20. <ordkind/>
  21. </send>
  22. <hide>
  23. <out_proccnt/>
  24. </hide>
  25. <main>
  26. <sms1info>
  27. <sms1infolist/>
  28. </sms1info>
  29. <sms2info>
  30. <sms2infolist/>
  31. </sms2info>
  32. </main>
  33. <hidden/>
  34. <paminit>
  35. <SMS3list/>
  36. </paminit>
  37. </root>
  38. </instance>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. model.setValue("/root/send/fromdd",getCurrentDate().toDate().getAddDate(-1, 'D').getDateFormat("YYYYMMDD"));
  42. model.setValue("/root/send/todd",getCurrentDate().toDate().getAddDate(-1, 'D').getDateFormat("YYYYMMDD"));
  43. pamfGetCodeList(new Array("SMS3"), new Array("/root/paminit/SMS3list"));
  44. model.refresh();
  45. ]]>
  46. </script>
  47. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  48. <submission id="TXPAS00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  49. <submission id="TXPAS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  50. <submission id="TXPAI03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/smsdata" replace="instance" resultref="/root/hidden"/>
  51. <submission id="TRPAS00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  52. </model>
  53. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  60. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  61. <script type="javascript">
  62. <![CDATA[
  63. ]]>
  64. </script>
  65. </xhtml:head>
  66. <xhtml:body pagewidth="1160" pageheight="780" style="font-family:돋움, Arial; font-size:12px; color:#4d4d4d; ">
  67. <group id="group1" style="left:0px; top:15px; width:1160px; height:590px; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  68. <line id="line6" class="line_2" style="x1:0px; y1:165px; x2:485px; y2:165px; "/>
  69. <line id="line3" class="line_2" style="x1:0px; y1:141px; x2:485px; y2:141px; "/>
  70. <line id="line2" class="line_2" style="x1:0px; y1:59px; x2:485px; y2:59px; "/>
  71. <button id="btn_execute" class="btn4_letter2" style="left:331px; top:204px; width:56px; height:22px; ">
  72. <caption>실행</caption>
  73. <script type="javascript" ev:event="DOMActivate">
  74. <![CDATA[
  75. var sFromdd = model.getValue("/root/send/fromdd");
  76. var sTodd = model.getValue("/root/send/todd");
  77. if (sFromdd.toDate() > sTodd.toDate()) {
  78. messageBox("집계 시작일자와 종료일자 설정이 올바르지 않습니다. 날짜를 확인하세요.","C999");
  79. return;
  80. }
  81. if (getCurrentDate().toDate() < sFromdd.toDate() || getCurrentDate().toDate() < sTodd.toDate()) {
  82. messageBox("오늘 이후 마감은 실행할 수 없습니다.","C999");
  83. return;
  84. }
  85. submit("TXPAS00100");
  86. btn_batchlog.dispatch("DOMActivate");
  87. ]]>
  88. </script>
  89. </button>
  90. <caption id="caption2" class="tit_2" style="left:5px; top:15px; width:121px; height:13px; ">일일마감</caption>
  91. <caption id="caption3" class="cell_1" style="left:0px; top:61px; width:120px; height:81px; vertical-align:middle; ">마감종류</caption>
  92. <caption id="caption4" class="cell_1" style="left:0px; top:143px; width:120px; height:23px; vertical-align:middle; ">진료형태</caption>
  93. <input id="ipt_enddate" ref="/root/send/fromdd" class="input_default" navindex="5" inputtype="date" appearance="input" style="left:123px; top:38px; width:100px; height:19px; text-align:center; ">
  94. <script type="javascript" ev:event="xforms-value-changed">
  95. <![CDATA[
  96. ]]>
  97. </script>
  98. </input>
  99. <line id="line1" class="line_1" style="x1:0px; y1:32px; x2:485px; y2:32px; "/>
  100. <caption id="caption5" class="cell_1" style="left:0px; top:37px; width:120px; height:23px; vertical-align:middle; ">마감일자</caption>
  101. <line id="line4" class="line_3" style="x1:0px; y1:190px; x2:485px; y2:190px; "/>
  102. <input id="input1" ref="/root/send/todd" class="input_default" navindex="5" inputtype="date" appearance="input" style="left:242px; top:38px; width:100px; height:19px; text-align:center; ">
  103. <script type="javascript" ev:event="xforms-value-changed">
  104. <![CDATA[
  105. ]]>
  106. </script>
  107. </input>
  108. <caption id="caption7" style="left:227px; top:40px; width:20px; height:15px; ">~</caption>
  109. <select1 id="radio1" ref="/root/send/endkind" overflow="visible" appearance="full" cellspacing="10" cols="4" vcellspacing="10" style="left:123px; top:63px; width:362px; height:80px; border-style:none; ">
  110. <choices>
  111. <item>
  112. <label>수익</label>
  113. <value>1</value>
  114. </item>
  115. <item>
  116. <label>수입</label>
  117. <value>2</value>
  118. </item>
  119. <item>
  120. <label>인원</label>
  121. <value>3</value>
  122. </item>
  123. <item>
  124. <label>재원미수</label>
  125. <value>4</value>
  126. </item>
  127. <item>
  128. <label>재원미수(중간청구)</label>
  129. <value>5</value>
  130. </item>
  131. <item>
  132. <label>처방선수</label>
  133. <value>6</value>
  134. </item>
  135. <item>
  136. <label>개인미수</label>
  137. <value>7</value>
  138. </item>
  139. <item>
  140. <label>통합미수</label>
  141. <value>9</value>
  142. </item>
  143. <item>
  144. <label>특정처방</label>
  145. <value>11</value>
  146. </item>
  147. <item>
  148. <label>일일보고</label>
  149. <value>8</value>
  150. </item>
  151. <item>
  152. <label>오류점검</label>
  153. <value>10</value>
  154. </item>
  155. </choices>
  156. <script type="javascript" ev:event="xforms-value-changed">
  157. <![CDATA[
  158. //재원미수
  159. if (model.getValue("/root/send/endkind") == "4" || model.getValue("/root/send/endkind") == "5" || model.getValue("/root/send/endkind") == "10") {
  160. model.setValue("/root/send/ordtype", "I")
  161. radio2.disabled = true;
  162. combo1.disabled = true;
  163. }
  164. //처방선수
  165. else if (model.getValue("/root/send/endkind") == "6") {
  166. model.setValue("/root/send/ordtype", "O")
  167. radio2.disabled = true;
  168. combo1.disabled = true;
  169. }
  170. //일일보고
  171. else if (model.getValue("/root/send/endkind") == "8") {
  172. model.setValue("/root/send/ordtype", "A")
  173. radio2.disabled = true;
  174. combo1.disabled = true;
  175. }
  176. //특정처방
  177. else if (model.getValue("/root/send/endkind") == "11") {
  178. model.setValue("/root/send/ordtype", "A");
  179. model.setValue("/root/send/ordkind", "00");
  180. radio2.disabled = false;
  181. combo1.disabled = false;
  182. }
  183. else {
  184. model.setValue("/root/send/ordtype", "A")
  185. radio2.disabled = true;
  186. combo1.disabled = true;
  187. }
  188. model.refresh();
  189. ]]>
  190. </script>
  191. </select1>
  192. <select1 id="radio2" ref="/root/send/ordtype" overflow="visible" appearance="full" cellspacing="10" cols="3" style="left:123px; top:145px; width:195px; height:20px; border-style:none; ">
  193. <choices>
  194. <item>
  195. <label>전체</label>
  196. <value>A</value>
  197. </item>
  198. <item>
  199. <label>외래</label>
  200. <value>O</value>
  201. </item>
  202. <item>
  203. <label>입원</label>
  204. <value>I</value>
  205. </item>
  206. </choices>
  207. </select1>
  208. <button id="btn_batchlog" class="btn4_letter4" style="left:391px; top:204px; width:80px; height:22px; ">
  209. <caption>배치로그</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. var todd = getCurrentDate();
  213. todd = todd.toDate().getAddDate(+1, 'D');
  214. zsbfOpenBatchLogPopup("pamteamstatsmgr.PamTeamStatsBatch",getCurrentDate(),todd.getDateFormat());
  215. ]]>
  216. </script>
  217. </button>
  218. <button id="button1" class="btn2_letter3" style="left:5px; top:367px; width:53px; height:19px; ">
  219. <caption>SMS1</caption>
  220. <script type="javascript" ev:event="DOMActivate">
  221. <![CDATA[
  222. model.makeValue("/root/send/flag","sms1");
  223. submit("TRPAS00110");
  224. var detldesc = model.getValue("/root/main/sms1info/sms1infolist/detldesc");
  225. var yy = model.getValue("/root/main/sms1info/sms1infolist/yy");
  226. var mm = model.getValue("/root/main/sms1info/sms1infolist/mm");
  227. var dd = model.getValue("/root/main/sms1info/sms1infolist/dd");
  228. var dt = model.getValue("/root/main/sms1info/sms1infolist/dt");
  229. var outcnt = model.getValue("/root/main/sms1info/sms1infolist/outcnt");
  230. var admcnt = model.getValue("/root/main/sms1info/sms1infolist/admcnt");
  231. var beduserate = model.getValue("/root/main/sms1info/sms1infolist/beduserate");
  232. var hospnm = model.getValue("/root/main/sms1info/sms1infolist/hospnm");
  233. var sms;
  234. detldesc = detldesc.setReplaceWord("YY",yy);
  235. detldesc = detldesc.setReplaceWord("MM",mm);
  236. detldesc = detldesc.setReplaceWord("DD",dd);
  237. detldesc = detldesc.setReplaceWord("DT",dt);
  238. detldesc = detldesc.setReplaceWord("∥진료인원∥",outcnt);
  239. detldesc = detldesc.setReplaceWord("∥재원인원∥",admcnt);
  240. detldesc = detldesc.setReplaceWord("∥가동률∥",beduserate);
  241. detldesc = detldesc.setReplaceWord("∥병원명∥",hospnm);
  242. detldesc = detldesc.setReplaceWord("∥","");
  243. model.setValue("/root/send/sms",detldesc);
  244. textarea1.refresh();
  245. ]]>
  246. </script>
  247. </button>
  248. <button id="button2" class="btn2_letter3" style="left:61px; top:367px; width:53px; height:19px; ">
  249. <caption>SMS2</caption>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. model.makeValue("/root/send/flag","sms2");
  253. submit("TRPAS00110");
  254. var detldesc = model.getValue("/root/main/sms2info/sms2infolist/detldesc");
  255. var yy = model.getValue("/root/main/sms2info/sms2infolist/yy");
  256. var mm = model.getValue("/root/main/sms2info/sms2infolist/mm");
  257. var dd = model.getValue("/root/main/sms2info/sms2infolist/dd");
  258. var Day = model.getValue("/root/main/sms2info/sms2infolist/day");
  259. var outrsrvcnt = model.getValue("/root/main/sms2info/sms2infolist/outrsrvcnt");
  260. var inrsrvcnt = model.getValue("/root/main/sms2info/sms2infolist/inrsrvcnt");
  261. var hospnm = model.getValue("/root/main/sms2info/sms2infolist/hospnm");
  262. var sms;
  263. detldesc = detldesc.setReplaceWord("YY",yy);
  264. detldesc = detldesc.setReplaceWord("MM",mm);
  265. detldesc = detldesc.setReplaceWord("DD",dd);
  266. detldesc = detldesc.setReplaceWord("Day",Day);
  267. detldesc = detldesc.setReplaceWord("||외래||",outrsrvcnt);
  268. detldesc = detldesc.setReplaceWord("||입원||",inrsrvcnt);
  269. detldesc = detldesc.setReplaceWord("∥병원명∥",hospnm);
  270. detldesc = detldesc.setReplaceWord("∥","");
  271. model.setValue("/root/send/sms",detldesc);
  272. textarea1.refresh();
  273. ]]>
  274. </script>
  275. </button>
  276. <textarea id="textarea1" ref="/root/send/sms" style="left:0px; top:260px; width:405px; height:105px; "/>
  277. <line id="line5" class="line_1" style="x1:0px; y1:255px; x2:405px; y2:255px; "/>
  278. <button id="button3" class="btn5_letter2" style="left:360px; top:368px; width:42px; height:19px; ">
  279. <caption>송신</caption>
  280. <script type="javascript" ev:event="DOMActivate">
  281. <![CDATA[
  282. if (model.getValue("/root/send/sms") == "") {
  283. messagBox("메세지형식이 등록되지 않았습니다.", "I999");
  284. return;
  285. }
  286. model.makeValue("/root/send/recvrnm", model.getValue("/root/paminit/SMS3list/SMS3/detl"));
  287. model.makeValue("/root/send/recvrtelno", model.getValue("/root/paminit/SMS3list/SMS3/cdnm"));
  288. model.makeValue("/root/send/replytelno","");
  289. model.makeValue("/root/send/msgfrmtid","sms.pam.0001");
  290. model.makeValue("/root/send/msgparam", model.getValue("/root/send/sms"));
  291. model.makeValue("/root/send/rsrvyn" ,"0");
  292. model.makeValue("/root/send/emergencyyn" ,"0");
  293. // rsrvdate : 예약일자
  294. // rsrvtime : 예약시간
  295. // pid , ""
  296. // var sDD = getCurrentDate();
  297. // var sSendDD = sDD.substr(4,2) + "/" + sDD.substr(6,2);
  298. // var sTM = getCurrentTime();
  299. // var sSendTM = sTM.substr(0,2) + ":" + sTM.substr(2,2);
  300. // var sTrsmDT = sDD + sTM;
  301. //
  302. // var smscnts = model.getValue("/root/send/sms");
  303. // model.makeValue("/root/send/smsdata/list/bizabbr", "pam"); //업무약어
  304. // model.makeValue("/root/send/smsdata/list/msgfrmtid", "sms.pam.0001"); //메세지형식아이디
  305. // model.makeValue("/root/send/smsdata/list/msgparam", smscnts); //0001 param
  306. // model.makeValue("/root/send/smsdata/list/rsrvyn", "0"); //예약여부(0 미예약)
  307. // model.makeValue("/root/send/smsdata/list/emergencyyn", "1"); //긴급여부(1 긴급), 우선순위
  308. //
  309. if ( submit("TXPAS00102") ==true) {
  310. messageBox("SMS가 발송되었습니다.", "I999");
  311. }
  312. ]]>
  313. </script>
  314. </button>
  315. <caption id="caption1" class="tit_2" style="left:5px; top:238px; width:121px; height:13px; ">보고용SMS</caption>
  316. <caption id="caption8" class="cell_1" style="left:0px; top:167px; width:120px; height:23px; vertical-align:middle; ">특정처방 분류</caption>
  317. <select1 id="combo1" ref="/root/send/ordkind" disabled="true" appearance="minimal" style="left:123px; top:168px; width:150px; height:19px; ">
  318. <choices>
  319. <item>
  320. <label>전체</label>
  321. <value>00</value>
  322. </item>
  323. <item>
  324. <label>안과</label>
  325. <value>01</value>
  326. </item>
  327. <item>
  328. <label>제증명</label>
  329. <value>02</value>
  330. </item>
  331. <item>
  332. <label>피부과</label>
  333. <value>10</value>
  334. </item>
  335. <item>
  336. <label>CT</label>
  337. <value>03</value>
  338. </item>
  339. <item>
  340. <label>로봇수술</label>
  341. <value>04</value>
  342. </item>
  343. <item>
  344. <label>MRI</label>
  345. <value>05</value>
  346. </item>
  347. <item>
  348. <label>초음파</label>
  349. <value>06</value>
  350. </item>
  351. <item>
  352. <label>PET-CT</label>
  353. <value>07</value>
  354. </item>
  355. <item>
  356. <label>TOMOTHERAPY</label>
  357. <value>08</value>
  358. </item>
  359. <item>
  360. <label>사이버나이프</label>
  361. <value>09</value>
  362. </item>
  363. <item>
  364. <label>ANGIO</label>
  365. <value>11</value>
  366. </item>
  367. </choices>
  368. </select1>
  369. </group>
  370. <group id="grp_tle" style="left:0px; top:0px; width:1146px; height:13px; ">
  371. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">일일마감</caption>
  372. </group>
  373. </xhtml:body>
  374. </xhtml:html>