SMPAS00100_일일마감.xrw 13 KB

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