SMPAS01270_입원수익일보.xrw 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. <?xml version="1.0" encoding="UTF-16"?>
  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. <insusiklist>
  11. <insusikstats>
  12. <crsumamt/>
  13. <craltamt/>
  14. <crcashamt/>
  15. <earnlrgnm/>
  16. <earnmdlnm/>
  17. <earnsmlnm/>
  18. <drcashamt/>
  19. <draltamt/>
  20. <drsumamt/>
  21. </insusikstats>
  22. </insusiklist>
  23. <search>
  24. <fromdata/>
  25. <todata/>
  26. <elmchk/>
  27. <dcgubun>ALL</dcgubun>
  28. <datagubun/>
  29. <acting/>
  30. <sunsu/>
  31. <misu/>
  32. <gasukum/>
  33. <bokwan/>
  34. <teawansunap/>
  35. <saleeruri/>
  36. <card/>
  37. <blood/>
  38. <janggi/>
  39. <etc/>
  40. </search>
  41. <tmpinfo>
  42. <info>
  43. <user/>
  44. </info>
  45. </tmpinfo>
  46. </main>
  47. <send>
  48. <fromdata/>
  49. <todata/>
  50. <elmchk/>
  51. <dcgubun/>
  52. <datagubun/>
  53. <acting/>
  54. <sunsu/>
  55. <misu/>
  56. <gasukum/>
  57. <bokwan/>
  58. <teawansunap/>
  59. <saleeruri/>
  60. <card/>
  61. <blood/>
  62. <janggi/>
  63. <etc/>
  64. </send>
  65. <documenttitle>
  66. <title/>
  67. </documenttitle>
  68. </root>
  69. </instance>
  70. <script type="javascript" ev:event="xforms-model-construct-done">
  71. <![CDATA[
  72. submit("TRPAS00001");
  73. var vToday = new Date();
  74. var tmpYear = vToday.getYear();
  75. var tmpMonth = vToday.getMonth()+1;
  76. var tmpDate = vToday.getDate();
  77. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  78. if (tmpDate < 10) {tmpDate = "0"+tmpDate; }
  79. model.setValue("/root/main/search/fromdata", tmpYear+""+tmpMonth+""+tmpDate);
  80. model.setValue("/root/main/search/todata", tmpYear+""+tmpMonth+""+tmpDate);
  81. //Rexport에 출력날자를 보여주기위한 데이터 저장
  82. model.makeNode("/root/main/tmp/print/date");
  83. model.copyNode("/root/main/tmp/print/date", "/root/main/search/fromdata");
  84. model.setValue("/root/main/tmp/print/date", model.getValue("/root/main/search/fromdata"));
  85. input7.refresh();
  86. input1.refresh();
  87. //전체 체크
  88. var tntchk = model.getValue("/root/main/search/dcgubun");
  89. if(tntchk ==""){
  90. group1.visible = true;
  91. checkbox5.visible = true;
  92. input2.visible = true;
  93. caption1.visible = true;
  94. }else{
  95. group1.visible = false;
  96. checkbox5.visible = false;
  97. input2.visible = false;
  98. caption1.visible = false;
  99. }
  100. //데이터 그리드 방합
  101. datagrid1.mergeCells = "bycol";
  102. datagrid1.mergeCol(0) = false;
  103. datagrid1.mergeCol(1) = false;
  104. datagrid1.mergeCol(2) = false;
  105. datagrid1.mergeCol(3) = true;
  106. datagrid1.mergeCol(4) = true;
  107. datagrid1.mergeCol(5) = false;
  108. datagrid1.mergeCol(6) = false;
  109. datagrid1.mergeCol(7) = false;
  110. datagrid1.mergeCol(8) = false;
  111. datagrid1.mergeCells = "byrowrec";
  112. datagrid1.mergeCol(datagrid1.row) = false;
  113. datagrid1.merge();
  114. ]]>
  115. </script>
  116. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  122. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  123. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  124. <submission id="TRPAS01271" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/data1"/>
  125. <submission id="TRPAS01272" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/data1"/>
  126. <bind id="bind1" ref="/root/main/insusiklist/insusikstats" calculate="now() + ."/>
  127. <submission id="TRPAS00001" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/tmpinfo/info/user"/>
  128. </model>
  129. </xhtml:head>
  130. <xhtml:body pagewidth="1211" pageheight="784">
  131. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  132. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:100px; height:14px; font-family:돋움; vertical-align:middle; ">입원수익일보</caption>
  133. </group>
  134. <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
  135. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  136. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:198px; height:17px; ">기간 ~</caption>
  137. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  138. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1139px; top:7px; width:56px; height:22px; ">
  139. <caption>조회</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. var fromdata = model.getValue("/root/main/search/fromdata");
  143. var todata = model.getValue("/root/main/search/todata");
  144. if(fromdata==""||fromdata==null){
  145. messageBox("시작일을 입력","E007");
  146. model.setFocus("input7");
  147. return false;
  148. }
  149. if(todata==""|| todata==null){
  150. messageBox("끝일을 입력","E007");
  151. model.setFocus("input1");
  152. return false;
  153. }
  154. if(fromdata > todata){
  155. messageBox("시작일이 끝일자보다 클수 ", "C001")
  156. return false;
  157. }else{
  158. model.setValue("/root/send/fromdata",model.getValue("/root/main/search/fromdata"));
  159. model.setValue("/root/send/todata",model.getValue("/root/main/search/todata"));
  160. model.setValue("/root/send/elmchk",model.getValue("/root/main/search/elmchk"));
  161. model.setValue("/root/send/dcgubun",model.getValue("/root/main/search/dcgubun"));
  162. model.setValue("/root/send/datagubun",model.getValue("/root/main/search/datagubun"));
  163. model.setValue("/root/send/acting",model.getValue("/root/main/search/acting"));
  164. model.setValue("/root/send/sunsu",model.getValue("/root/main/search/sunsu"));
  165. model.setValue("/root/send/misu",model.getValue("/root/main/search/misu"));
  166. model.setValue("/root/send/gasukum",model.getValue("/root/main/search/gasukum"));
  167. model.setValue("/root/send/bokwan",model.getValue("/root/main/search/bokwan"));
  168. model.setValue("/root/send/teawansunap",model.getValue("/root/main/search/teawansunap"));
  169. model.setValue("/root/send/saleeruri",model.getValue("/root/main/search/saleeruri"));
  170. model.setValue("/root/send/card",model.getValue("/root/main/search/card"));
  171. model.setValue("/root/send/blood",model.getValue("/root/main/search/blood"));
  172. model.setValue("/root/send/janggi",model.getValue("/root/main/search/janggi"));
  173. model.setValue("/root/send/etc",model.getValue("/root/main/search/etc"));
  174. model.removeNodeset("/root/main/insusiklist");
  175. var searchdcgubun = model.getValue("/root/main/search/dcgubun");
  176. var searchdatagubun = model.getValue("/root/main/search/datagubun");
  177. var searchelmchk = model.getValue("/root/main/search/elmchk");
  178. if(searchdcgubun=="ALL"){
  179. submit("TRPAS01271");
  180. }else if(searchdcgubun==""){
  181. submit("TRPAS01272");
  182. }
  183. //로드값이 있을때 엑셀저장여부 버튼 생성여부
  184. var nodelist = bind1.nodeset;
  185. if(nodelist.length>0){
  186. line1.visible =true;
  187. button95.visible = true;
  188. }else{
  189. line1.visible =false;
  190. button95.visible = false;
  191. }
  192. }
  193. ]]>
  194. </script>
  195. </button>
  196. <input id="input7" ref="/root/main/search/fromdata" class="input_default" navindex="1" inputtype="date" style="left:70px; top:8px; width:120px; height:19px; ">
  197. <script type="javascript" ev:event="onkeydown">
  198. <![CDATA[
  199. if( event.keyCode == 13 ) {
  200. var pCurTargetObj = event.ptarget.parent;
  201. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  202. event.keyCode = 9;
  203. pCurTargetObj.dispatch("onkeydown");
  204. }
  205. else {
  206. event.keyCode = 9;
  207. }
  208. }
  209. event.stopPropagation();
  210. ]]>
  211. </script>
  212. </input>
  213. <input id="input1" ref="/root/main/search/todata" class="input_default" navindex="2" inputtype="date" style="left:215px; top:8px; width:120px; height:19px; ">
  214. <script type="javascript" ev:event="onkeydown">
  215. <![CDATA[
  216. if( event.keyCode == 13 ) {
  217. var pCurTargetObj = event.ptarget.parent;
  218. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  219. event.keyCode = 9;
  220. pCurTargetObj.dispatch("onkeydown");
  221. }
  222. else {
  223. event.keyCode = 9;
  224. }
  225. }
  226. event.stopPropagation();
  227. ]]>
  228. </script>
  229. </input>
  230. <select id="checkbox1" ref="/root/main/search/dcgubun" overflow="visible" appearance="full" style="left:355px; top:10px; width:45px; height:16px; border-style:none; ">
  231. <choices>
  232. <item>
  233. <label>전체</label>
  234. <value>ALL</value>
  235. </item>
  236. </choices>
  237. <script type="javascript" ev:event="xforms-value-changed">
  238. <![CDATA[
  239. var tntchk = model.getValue("/root/main/search/dcgubun");
  240. if(tntchk =="ALL"){
  241. group1.visible = false;
  242. checkbox5.visible = false;
  243. input2.visible = false;
  244. input2.value = "";
  245. caption1.visible = false;
  246. checkbox5.deselect(0) ;
  247. }else{
  248. group1.visible = false;
  249. checkbox5.visible = true;
  250. input2.visible = true;
  251. caption1.visible = true;
  252. checkbox5.deselect(0) ;
  253. }
  254. ]]>
  255. </script>
  256. </select>
  257. <caption id="caption1" style="left:406px; top:9px; width:82px; height:17px; ">환자번호(PID)</caption>
  258. <input id="input2" ref="/root/main/search/datagubun" navindex="3" style="left:491px; top:8px; width:100px; height:19px; "/>
  259. <script type="javascript" ev:event="onkeyup">
  260. <![CDATA[
  261. inputEnterKey("btn_search", "DOMActivate");
  262. ]]>
  263. </script>
  264. <select id="checkbox5" ref="/root/main/search/elmchk" overflow="visible" appearance="full" style="left:600px; top:10px; width:92px; height:16px; border-style:none; ">
  265. <choices>
  266. <item>
  267. <label>세부항목체크</label>
  268. <value>SALL</value>
  269. </item>
  270. </choices>
  271. <script type="javascript" ev:event="xforms-value-changed">
  272. <![CDATA[
  273. var elmchk = model.getValue("/root/main/search/elmchk");
  274. if(elmchk =="SALL"){
  275. group1.visible = true;
  276. checkbox2.visible = true;
  277. checkbox3.visible = true;
  278. checkbox4.visible = true;
  279. input2.value = "";
  280. checkbox2.select(0);
  281. checkbox3.select(0);
  282. checkbox4.select(0);
  283. checkbox6.select(0);
  284. checkbox7.select(0);
  285. checkbox8.select(0);
  286. checkbox9.select(0);
  287. checkbox10.select(0);
  288. checkbox11.select(0);
  289. checkbox12.select(0);
  290. checkbox13.select(0);
  291. }else{
  292. group1.visible = false;
  293. checkbox2.visible = false;
  294. checkbox3.visible = false;
  295. checkbox4.visible = false;
  296. checkbox2.deselect(0);
  297. checkbox3.deselect(0);
  298. checkbox4.deselect(0);
  299. checkbox6.deselect(0);
  300. checkbox7.deselect(0);
  301. checkbox8.deselect(0);
  302. checkbox9.deselect(0);
  303. checkbox10.deselect(0);
  304. checkbox11.deselect(0);
  305. checkbox12.deselect(0);
  306. checkbox13.deselect(0);
  307. }
  308. ]]>
  309. </script>
  310. </select>
  311. <button id="btn_print" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
  312. <caption>출력</caption>
  313. <script type="javascript" ev:event="DOMActivate">
  314. <![CDATA[
  315. exeReportPreview("RPPAS01271", "XMLSTR", "","", "false","","","","","false");
  316. ]]>
  317. </script>
  318. </button>
  319. <line id="line1" class="line_4" visibility="hidden" style="x1:1058px; y1:7px; x2:1058px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  320. <button id="button95" class="btn6_letter4" visibility="hidden" style="left:971px; top:7px; width:80px; height:22px; ">
  321. <caption>액셀저장</caption>
  322. <script type="javascript" ev:event="DOMActivate">
  323. <![CDATA[
  324. var vToday = new Date();
  325. var tmpYear = vToday.getYear();
  326. var tmpMonth = vToday.getMonth()+1;
  327. var tmpDate = vToday.getDate();
  328. model.setValue("/root/documenttitle/title",document.title);
  329. model.refresh();
  330. var subjectTitle = model.getValue("/root/documenttitle/title");
  331. //엑셀저장 여부(타이트별)
  332. var fileName = window.fileDialog("save", ",", false, subjectTitle+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  333. if (fileName != "")
  334. {
  335. datagrid1.saveExcel(fileName, subjectTitle+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  336. }
  337. ]]>
  338. </script>
  339. </button>
  340. </group>
  341. <datagrid id="datagrid1" nodeset="/root/main/insusiklist/insusikstats" caption="합계^대체^현금^계정과목^계정과목^현금^대체^합계" colsep="^" colwidth="154, 154, 154, 100, 157, 154, 154, 154" mergecells="bycolrec" mergecellsfixedrows="bycolrec" style="left:5px; top:65px; width:1201px; height:709px; ">
  342. <col ref="crsumamt" format="(-)#,###" style="text-align:right; "/>
  343. <col ref="craltamt" format="(-)#,###" style="text-align:right; "/>
  344. <col ref="crcashamt" format="(-)#,###" style="text-align:right; "/>
  345. <col ref="earnmdlnm" style="text-align:center; "/>
  346. <col ref="earnsmlnm" style="text-align:left; "/>
  347. <col ref="drcashamt" format="(-)#,###" style="text-align:right; "/>
  348. <col ref="draltamt" format="(-)#,###" style="text-align:right; "/>
  349. <col ref="drsumamt" format="(-)#,###" style="text-align:right; "/>
  350. </datagrid>
  351. <group id="group1" style="left:604px; top:51px; width:410px; height:58px; border-color:#c0c0c0; border-style:solid; ">
  352. <select id="checkbox2" ref="/root/main/search/card" overflow="visible" appearance="full" cols="3" style="left:112px; top:34px; width:48px; height:16px; border-style:none; ">
  353. <choices>
  354. <item>
  355. <label>카드</label>
  356. <value>09</value>
  357. </item>
  358. </choices>
  359. </select>
  360. <select id="checkbox3" ref="/root/main/search/blood" overflow="visible" appearance="full" cols="3" style="left:188px; top:34px; width:45px; height:16px; border-style:none; ">
  361. <choices>
  362. <item>
  363. <label>혈액</label>
  364. <value>10</value>
  365. </item>
  366. </choices>
  367. </select>
  368. <select id="checkbox4" ref="/root/main/search/janggi" overflow="visible" appearance="full" cols="3" style="left:261px; top:34px; width:67px; height:16px; border-style:none; ">
  369. <choices>
  370. <item>
  371. <label>장기재원</label>
  372. <value>11</value>
  373. </item>
  374. </choices>
  375. </select>
  376. <select id="checkbox6" ref="/root/main/search/gasukum" overflow="visible" appearance="full" cols="3" style="left:193px; top:9px; width:57px; height:16px; border-style:none; ">
  377. <choices>
  378. <item>
  379. <label>가수금</label>
  380. <value>05</value>
  381. </item>
  382. </choices>
  383. </select>
  384. <select id="checkbox7" ref="/root/main/search/etc" overflow="visible" appearance="full" cols="3" style="left:356px; top:34px; width:45px; height:15px; border-style:none; ">
  385. <choices>
  386. <item>
  387. <label>기타</label>
  388. <value>99</value>
  389. </item>
  390. </choices>
  391. </select>
  392. <select id="checkbox8" ref="/root/main/search/bokwan" overflow="visible" appearance="full" cols="3" style="left:258px; top:9px; width:67px; height:16px; border-style:none; ">
  393. <choices>
  394. <item>
  395. <label>보관퇴원</label>
  396. <value>06</value>
  397. </item>
  398. </choices>
  399. </select>
  400. <select id="checkbox9" ref="/root/main/search/acting" overflow="visible" appearance="full" cols="3" style="left:6px; top:8px; width:58px; height:16px; border-style:none; ">
  401. <choices>
  402. <item>
  403. <label>Acting</label>
  404. <value>01</value>
  405. </item>
  406. </choices>
  407. </select>
  408. <select id="checkbox10" ref="/root/main/search/teawansunap" overflow="visible" appearance="full" cols="3" style="left:333px; top:9px; width:68px; height:16px; border-style:none; ">
  409. <choices>
  410. <item>
  411. <label>퇴원수납</label>
  412. <value>07</value>
  413. </item>
  414. </choices>
  415. </select>
  416. <select id="checkbox11" ref="/root/main/search/saleeruri" overflow="visible" appearance="full" cols="3" style="left:6px; top:34px; width:78px; height:16px; border-style:none; ">
  417. <choices>
  418. <item>
  419. <label>할인에누리</label>
  420. <value>08</value>
  421. </item>
  422. </choices>
  423. </select>
  424. <select id="checkbox12" ref="/root/main/search/sunsu" overflow="visible" appearance="full" cols="3" style="left:72px; top:9px; width:58px; height:16px; border-style:none; ">
  425. <choices>
  426. <item>
  427. <label>선수금</label>
  428. <value>03</value>
  429. </item>
  430. </choices>
  431. </select>
  432. <select id="checkbox13" ref="/root/main/search/misu" overflow="visible" appearance="full" cols="3" style="left:138px; top:9px; width:47px; height:16px; border-style:none; ">
  433. <choices>
  434. <item>
  435. <label>미수</label>
  436. <value>04</value>
  437. </item>
  438. </choices>
  439. </select>
  440. </group>
  441. </xhtml:body>
  442. </xhtml:html>