SMPAS01110_과별수가종류별의료수익명세서.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  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. <spherechargeamtlist>
  11. <spherechargeamtstats>
  12. <depthngnm/>
  13. <!--<pid/>
  14. <hngnm/>
  15. <intotal/>
  16. <inamt/>
  17. <banhwan/>
  18. <cardamt/>
  19. <cashamt/>
  20. <rcptflag/>
  21. <onlineamt/>-->
  22. </spherechargeamtstats>
  23. </spherechargeamtlist>
  24. <search>
  25. <fromdata/>
  26. <todata/>
  27. <datagubun>1</datagubun>
  28. <erdata>1</erdata>
  29. <dcgubun>L</dcgubun>
  30. </search>
  31. <spherechargelsnmlist>
  32. <spherechargelsnstats>
  33. <earncls/>
  34. <earnclsnm/>
  35. </spherechargelsnstats>
  36. </spherechargelsnmlist>
  37. <spherechargemsnmlist>
  38. <spherechargemsnmstats>
  39. <earncls1/>
  40. <earncls1nm/>
  41. <earncls2/>
  42. <earncls2nm/>
  43. </spherechargemsnmstats>
  44. </spherechargemsnmlist>
  45. <spherechargessnmlist>
  46. <spherechargessnmstats>
  47. <earncls1/>
  48. <earncls1nm/>
  49. <earncls2/>
  50. <earncls2nm/>
  51. <earncls3/>
  52. <earncls3nm/>
  53. </spherechargessnmstats>
  54. </spherechargessnmlist>
  55. </main>
  56. <send>
  57. <fromdata/>
  58. <todata/>
  59. <datagubun/>
  60. <erdata/>
  61. <dcgubun/>
  62. </send>
  63. </root>
  64. </instance>
  65. <script type="javascript" ev:event="xforms-model-construct-done">
  66. <![CDATA[
  67. var vToday = new Date();
  68. var tmpYear = vToday.getYear();
  69. var tmpMonth = vToday.getMonth()+1;
  70. var tmpDate = vToday.getDate();
  71. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  72. if (tmpDate < 10) {tmpDate = "0"+tmpDate; }
  73. model.setValue("/root/main/search/fromdata", tmpYear+""+tmpMonth+""+tmpDate);
  74. model.setValue("/root/main/search/todata", tmpYear+""+tmpMonth+""+tmpDate);
  75. input7.refresh();
  76. input1.refresh();
  77. // model.removeNodeset("/root/main/spherechargeamtlist");
  78. // model.removeNodeset("/root/main/spherechargelsnmlist");
  79. // model.removeNodeset("/root/main/spherechargemsnmlist");
  80. // model.removeNodeset("/root/main/spherechargessnmlist");
  81. // submit("TRPAS01371");
  82. // submit("TRPAS01374");
  83. // var line1 = "과제별/행위별";
  84. // var line2 = "과제별/행위별";
  85. // model.makeNode("/root/main/spherechargeamtlist/spherechargeamtstats");
  86. //
  87. // for (i = 1; i<= getNodesetCount("/root/main/spherechargelsnmlist/spherechargelsnstats"); i++){
  88. // var capName1 = model.getValue("/root/main/spherechargelsnmlist/spherechargelsnstats["+i+"]/earnclsnm");
  89. //
  90. // datagrid1.addColumn("ref:name_1_" + i + "; type:output;",true);
  91. // datagrid1.addColumn("ref:name_2_" + i + "; type:output;",true);
  92. // line1 = line1 +"^"+capName1+"^"+capName1 ;
  93. // line2 = line2 + "^행위료^진찰료";
  94. // }
  95. // datagrid1.addColumn("ref:name; type:output;");
  96. // line1 = line1 +"^합계^합계" ;
  97. // datagrid1.addColumn("ref:name; type:output;");
  98. // line2 = line2 + "^행위료^진찰료";
  99. // datagrid1.caption= line1 + "|" + line2;
  100. // datagrid1.rebuild();
  101. ]]>
  102. </script>
  103. <submission id="SMPAS001371" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/data1"/>
  104. <submission id="SMPAS001372" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/data1"/>
  105. <bind id="bind1" ref="/root/main/spherechargeamtlist/spherechargeamtstats" calculate="now() + ."/>
  106. </model>
  107. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  113. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  114. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  115. </xhtml:head>
  116. <xhtml:body pagewidth="1211" pageheight="784">
  117. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  118. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:202px; height:14px; font-family:돋움; vertical-align:middle; ">과별수가종류별 의료수익명세서</caption>
  119. </group>
  120. <group id="group2" style="left:4px; top:22px; width:1203px; height:35px; ">
  121. <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; "/>
  122. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:221px; height:17px; ">적용기간 ~</caption>
  123. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  124. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  125. <caption>조회</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. var fromdata = model.getValue("/root/main/search/fromdata");
  129. var todata = model.getValue("/root/main/search/todata");
  130. if(fromdata==""||fromdata==null){
  131. messageBox("시작일을 입력","E007");
  132. model.setFocus("input7");
  133. return false;
  134. }
  135. if(todata==""|| todata==null){
  136. messageBox("끝일을 입력","E007");
  137. model.setFocus("input1");
  138. return false;
  139. }
  140. if(fromdata > todata){
  141. messageBox("시작일이 끝일자보다 클수 ", "C001")
  142. return false;
  143. }else{
  144. model.setValue("/root/send/fromdata",model.getValue("/root/main/search/fromdata"));
  145. model.setValue("/root/send/todata",model.getValue("/root/main/search/todata"));
  146. model.setValue("/root/send/datagubun",model.getValue("/root/main/search/datagubun"));
  147. var line1 = "과제별/행위별";
  148. var line2 = "과제별/행위별";
  149. var line3 = "과제별/행위별";
  150. var line4 = "과제별/행위별";
  151. datagrid1.caption = "";
  152. //그리드 초기화
  153. model.removeNodeset("/root/main/spherechargeamtlist");
  154. model.makeNode("/root/main/spherechargeamtlist");
  155. model.removeNodeset("/root/main/spherechargelsnmlist");
  156. model.removeNodeset("/root/main/spherechargemsnmlist");
  157. model.removeNodeset("/root/main/spherechargessnmlist");
  158. model.refresh();
  159. //로드값 있으면 삭제
  160. var curCols = datagrid1.cols;
  161. for(var i = 0; i< curCols; i++) {
  162. datagrid1.removeColumn(false);
  163. }
  164. datagrid1.rebuild();
  165. //대중소(L대,M중,S소)서브미션
  166. var valChang = model.getValue("/root/main/search/dcgubun");
  167. if(valChang =="L"){
  168. //model.makeNode("/root/main/spherechargelsnmlist");
  169. //addColum행위별 서브미션
  170. submit("SMPAS001371");
  171. //addColum과별 서브미션
  172. submit("SMPAS001372");
  173. //대분류 로드
  174. model.makeNode("/root/main/spherechargelsnmlist");
  175. for (i = 1; i<= getNodesetCount("/root/main/spherechargelsnmlist/spherechargelsnstats"); i++){
  176. var capName1 = model.getValue("/root/main/spherechargelsnmlist/spherechargelsnstats["+i+"]/earnclsnm");
  177. datagrid1.addColumn("ref:name_1_" + i + "; type:output;");
  178. line1 = line1 +"^"+capName1+"^"+capName1 ;
  179. datagrid1.addColumn("ref:name_2_" + i + "; type:output;");
  180. line2 = line2 + "^행위료^진찰료";
  181. }
  182. datagrid1.addColumn("ref:name3; type:output;");
  183. line1 = line1 +"^합계^합계" ;
  184. datagrid1.addColumn("ref:name4; type:output;");
  185. line2 = line2 + "^행위료^진찰료";
  186. datagrid1.caption= line1 + "|" + line2;
  187. }else if(valChang=="M"){
  188. //model.makeNode("/root/main/spherechargemsnmlist");
  189. //addColum행위별 서브미션
  190. submit("SMPAS001371");
  191. //addColum과별 서브미션
  192. submit("SMPAS001372");
  193. //중분류 로드
  194. model.makeNode("/root/main/spherechargemsnmlist/spherechargemsnmstats");
  195. for (i = 1; i<= getNodesetCount("/root/main/spherechargemsnmlist/spherechargemsnmstats"); i++){
  196. var capName1 = model.getValue("/root/main/spherechargemsnmlist/spherechargemsnmstats["+i+"]/earncls1nm");
  197. var capName2 = model.getValue("/root/main/spherechargemsnmlist/spherechargemsnmstats["+i+"]/earncls2nm");
  198. datagrid1.addColumn("ref:name_1_" + i + "; type:output;");
  199. line1 = line1 + "^" +capName1 + "^" + capName1;
  200. datagrid1.addColumn("ref:name_2_" + i + "; type:output;");
  201. line2 = line2 + "^" +capName2 + "^" + capName2;
  202. line3 = line3 + "^행위료^진찰료";
  203. }
  204. datagrid1.addColumn("ref:name; type:output;");
  205. line1 = line1 +"^합계^합계" ;
  206. datagrid1.addColumn("ref:name; type:output;");
  207. line2 = line2 +"^합계^합계" ;
  208. //datagrid1.addColumn("ref:name; type:output;");
  209. line3 = line3 + "^행위료^진찰료";
  210. datagrid1.caption= line1 + "|" + line2 + "|" + line3;
  211. }else if(valChang=="S"){
  212. //model.makeNode("/root/main/spherechargessnmlist");
  213. //addColum행위별 서브미션
  214. submit("SMPAS001371");
  215. //addColum과별 서브미션
  216. submit("SMPAS001372");
  217. //소분류 로드
  218. model.makeNode("/root/main/spherechargessnmlist/spherechargessnmstats");
  219. for (i = 1; i<= getNodesetCount("/root/main/spherechargessnmlist/spherechargessnmstats"); i++){
  220. var capName1 = model.getValue("/root/main/spherechargessnmlist/spherechargessnmstats["+i+"]/earncls1nm");
  221. var capName2 = model.getValue("/root/main/spherechargessnmlist/spherechargessnmstats["+i+"]/earncls2nm");
  222. var capName3 = model.getValue("/root/main/spherechargessnmlist/spherechargessnmstats["+i+"]/earncls3nm");
  223. datagrid1.addColumn("ref:name_1_" + i + "; type:output;");
  224. line1 = line1 +"^"+capName1+"^"+capName1 ;
  225. datagrid1.addColumn("ref:name_2_" + i + "; type:output;");
  226. line2 = line2 +"^"+capName2+"^"+capName2 ;
  227. datagrid1.addColumn("ref:name_3_" + i + "; type:output;");
  228. line3 = line3 +"^"+capName3+"^"+capName3 ;
  229. line4 = line4 + "^행위료^진찰료";
  230. }
  231. datagrid1.addColumn("ref:name; type:output;");
  232. line1 = line1 +"^합계^합계" ;
  233. datagrid1.addColumn("ref:name; type:output;");
  234. line2 = line2 +"^합계^합계" ;
  235. datagrid1.addColumn("ref:name; type:output;");
  236. line3 = line3 + "^합계^합계" ;
  237. line4 = line4 + "^행위료^진찰료";
  238. datagrid1.caption= line1 + "|" + line2 + "|" + line3 +"|"+line4;
  239. }
  240. //로드값이 있을때 엑셀저장여부 버튼 생성여부
  241. var nodelist = bind1.nodeset;
  242. if(nodelist.length>0){
  243. line1.visible =true;
  244. button95.visible = true;
  245. }else{
  246. line1.visible =false;
  247. button95.visible = false;
  248. }
  249. datagrid1.rebuild();
  250. }
  251. ]]>
  252. </script>
  253. </button>
  254. <input id="input7" ref="/root/main/search/fromdata" class="input_default" navindex="7" inputtype="date" style="left:98px; top:8px; width:120px; height:19px; ">
  255. <script type="javascript" ev:event="onkeydown">
  256. <![CDATA[
  257. if( event.keyCode == 13 ) {
  258. var pCurTargetObj = event.ptarget.parent;
  259. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  260. event.keyCode = 9;
  261. pCurTargetObj.dispatch("onkeydown");
  262. }
  263. else {
  264. event.keyCode = 9;
  265. }
  266. }
  267. event.stopPropagation();
  268. ]]>
  269. </script>
  270. </input>
  271. <input id="input1" ref="/root/main/search/todata" class="input_default" navindex="7" inputtype="date" style="left:243px; top:8px; width:120px; height:19px; ">
  272. <script type="javascript" ev:event="onkeydown">
  273. <![CDATA[
  274. if( event.keyCode == 13 ) {
  275. var pCurTargetObj = event.ptarget.parent;
  276. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  277. event.keyCode = 9;
  278. pCurTargetObj.dispatch("onkeydown");
  279. }
  280. else {
  281. event.keyCode = 9;
  282. }
  283. }
  284. event.stopPropagation();
  285. ]]>
  286. </script>
  287. </input>
  288. <select1 id="combo1" ref="/root/main/search/datagubun" appearance="minimal" style="left:385px; top:8px; width:100px; height:19px; ">
  289. <choices>
  290. <item>
  291. <label>외래</label>
  292. <value>1</value>
  293. </item>
  294. <item>
  295. <label>입원</label>
  296. <value>2</value>
  297. </item>
  298. </choices>
  299. </select1>
  300. <select1 id="radio1" ref="/root/main/search/dcgubun" appearance="full" cols="3" overflow="visible" style="left:515px; top:10px; width:100px; height:14px; border-style:none; ">
  301. <choices>
  302. <item>
  303. <label>대</label>
  304. <value>L</value>
  305. </item>
  306. <item>
  307. <label>중</label>
  308. <value>M</value>
  309. </item>
  310. <item>
  311. <label>소</label>
  312. <value>S</value>
  313. </item>
  314. </choices>
  315. </select1>
  316. <button id="button95" class="btn6_letter4" visibility="hidden" style="left:973px; top:7px; width:80px; height:22px; ">
  317. <caption>액셀저장</caption>
  318. <script type="javascript" ev:event="DOMActivate">
  319. <![CDATA[
  320. //날짜 함수 갖어오기
  321. var vToday = new Date();
  322. var tmpYear = vToday.getYear();
  323. var tmpMonth = vToday.getMonth()+1;
  324. var tmpDate = vToday.getDate();
  325. //엑셀저장 여부(타이틀별)
  326. // model.setValue("/root/documenttitle/title",document.title);
  327. // model.refresh();
  328. // var subjectTitle = model.getValue("/root/documenttitle/title");
  329. var fileName = window.fileDialog("save", "", false, "과별수가종류별의료수익명세서"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  330. if (fileName != "")
  331. {
  332. datagrid1.saveExcel(fileName, "과별수가종류별의료수익명세서"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  333. }
  334. ]]>
  335. </script>
  336. </button>
  337. <line id="line1" class="line_4" visibility="hidden" style="x1:1060px; y1:7px; x2:1060px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  338. <button id="btn_print" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
  339. <caption>출력</caption>
  340. <script type="javascript" ev:event="DOMActivate">
  341. <![CDATA[
  342. exeReportPreview("RTPAS00137", "XMLSTR", "","", "false","","","","","false");
  343. ]]>
  344. </script>
  345. </button>
  346. </group>
  347. <datagrid id="datagrid1" nodeset="/root/main/spherechargeamtlist/spherechargeamtstats" colsep="^" colwidth="250" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowsep="|" style="left:4px; top:60px; width:1203px; height:711px; ">
  348. <col ref="depthngnm" style="text-align:left; "/>
  349. </datagrid>
  350. </xhtml:body>
  351. </xhtml:html>