SMAHR00920_통합건진상세수익분류.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <detlinfo>
  11. <item>
  12. <cdnm1/>
  13. <cdnm2/>
  14. <cmpynm/>
  15. <pid/>
  16. <hngnm/>
  17. <rrgstno/>
  18. <hopedd/>
  19. <sngbn/>
  20. <totpayamt/>
  21. <payownbamt/>
  22. <payinsubamt/>
  23. <payhealcntrbamt/>
  24. <paycmpybamt/>
  25. <sel/>
  26. <healexamdetlflag1/>
  27. <healexamdetlflag2/>
  28. <gubun/>
  29. <cmpycd/>
  30. </item>
  31. </detlinfo>
  32. <fstrsltinfo>
  33. <itemasso/>
  34. <itemjudg/>
  35. </fstrsltinfo>
  36. </main>
  37. <send>
  38. <srchhealexamdetlflag>
  39. </srchhealexamdetlflag>
  40. <srchhealexamflag/>
  41. <srchfromdd/>
  42. <srchtodd/>
  43. <srchcmpycd/>
  44. <srchcmpynm/>
  45. <srchinstcd/>
  46. <srchcondd/>
  47. <srchcontype/>
  48. <srchpkgcd/>
  49. <srchstatflag/>
  50. <srchpid/>
  51. <srchhngnm/>
  52. <srchrsrvdd/>
  53. <srchrsrvno/>
  54. <srchplceflag/>
  55. </send>
  56. <init>
  57. <baseinfo>
  58. <plceflag/>
  59. <healexamflag>
  60. <A0068>
  61. <cdid/>
  62. <cdnm/>
  63. </A0068>
  64. </healexamflag>
  65. <healexamdetlflag>
  66. <A0070>
  67. <cdid/>
  68. <cdnm/>
  69. </A0070>
  70. </healexamdetlflag>
  71. </baseinfo>
  72. </init>
  73. <hidden/>
  74. <temp>
  75. <send>
  76. <pid/>
  77. <hngnm/>
  78. </send>
  79. <preview/>
  80. </temp>
  81. </root>
  82. </instance>
  83. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  87. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  88. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  89. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  90. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  91. <script type="javascript" ev:event="xforms-ready">
  92. <![CDATA[
  93. fGetBaseInfo();
  94. fInitInfo();
  95. ]]>
  96. </script>
  97. <submission id="TRZBC00101"/>
  98. <submission id="TRAHR00931" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detlinfo"/>
  99. </model>
  100. <script type="javascript">
  101. <![CDATA[
  102. var vHealExamFlag = "";
  103. var vHealExamDetlFlag = "";
  104. /**========================================================================================================================================
  105. * 초기화
  106. =========================================================================================================================================*/
  107. function fInitInfo(){
  108. var curDt = getCurrentDate();
  109. model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
  110. model.setValue(ipt_srchtodd.attribute("ref") , curDt);
  111. model.refresh();
  112. }
  113. function fGetBaseInfo(){
  114. vHealExamFlag = "G"
  115. // vHealExamDetlFlag = ""
  116. zbcfGetCodeList( new Array("A0068","A0070", "A0110")
  117. ,new Array("/root/init/baseinfo/healexamflaglst"
  118. , "/root/init/baseinfo/healexamdetlflag"
  119. , "/root/init/baseinfo/plceflag" ) );
  120. //건진구분 콤보에 전체가 들어가게 한다.
  121. addComboItem("combo1","전체","","above");
  122. submit("TRZBC00101");
  123. }
  124. /**========================================================================================================================================
  125. * 상세현황조회
  126. =========================================================================================================================================*/
  127. function fGetRsrvAcptList(){
  128. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
  129. //model.setValue("/root/send/srchinstcd", "011" );
  130. //alert(model.getValue("/root/send/srchinstcd") );
  131. //model.setValue("/root/send/srchhealexamflag" , vHealExamFlag);
  132. submit("TRAHR00931");
  133. }
  134. /**========================================================================================================================================
  135. * 그리드 색 바꾸기
  136. =========================================================================================================================================*/
  137. function fSetRcptSum() {
  138. //그리드 merge 및 합계 초기화
  139. grd_prntlst.autoMerge = false;
  140. grd_prntlst.mergeCells = "byrestriccol";
  141. grd_prntlst.subtotalPosition = "below";
  142. grd_prntlst.multiTotals = true;
  143. grd_prntlst.subtotal("clear", 0, 0);
  144. for(var i =0; i < grd_prntlst.cols ; i++) {
  145. // 소계
  146. if(i >= grd_prntlst.colRef("totpayamt") && i <= grd_prntlst.colRef("paycmpybamt")) {
  147. grd_prntlst.subtotal("sum", grd_prntlst.colRef("cdnm2") , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_prntlst.colRef("cdnm2") , "소계" );
  148. grd_prntlst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_prntlst.colRef("cdnm1") , "총계" );
  149. }
  150. if(i >= grd_prntlst.colRef("hngnm") && i <= grd_prntlst.colRef("hngnm")) {
  151. grd_prntlst.subtotal("count", grd_prntlst.colRef("cdnm2") , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_prntlst.colRef("pid") , "환자수" );
  152. grd_prntlst.subtotal("count", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_prntlst.colRef("pid") ,"총환자수" );
  153. }
  154. /*if (grd_prntlst.valueMatrix(i, grd_prntlst.colRef("cdnm2")) == "소계") {
  155. grd_prntlst.rowStyle(i,"data", "background-color")="#7CBBDD";
  156. }
  157. // 소계
  158. if (grd_prntlst.valueMatrix(i, grd_prntlst.colRef("cdnm1")) == "총계") {
  159. grd_prntlst.rowStyle(i,"data", "background-color")="#808080";
  160. } */
  161. }
  162. grd_prntlst.merge();
  163. }
  164. ]]>
  165. </script>
  166. </xhtml:head>
  167. <xhtml:body guideline="1,1196;1,1195;2,757;2,786;1,1192;" style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  168. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  169. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:184px; height:14px; ">통합건진 상세수익분류</caption>
  170. </group>
  171. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1194px; height:744px; ">
  172. <line id="line1" class="line_1" style="x1:0px; y1:76px; x2:1191px; y2:76px; "/>
  173. <group id="group5" style="left:0px; top:9px; width:1193px; height:41px; vertical-align:top; ">
  174. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  175. <caption id="caption11" class="search_name" style="left:216px; top:12px; width:81px; height:17px; ">기준일자:</caption>
  176. <caption id="caption12" class="search_name" style="left:517px; top:12px; width:78px; height:17px; ">사업체 :</caption>
  177. <line id="line7" style="x1:1110px; y1:11px; x2:1110px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  178. <input id="ipt_srchfromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:301px; top:12px; width:97px; height:19px; "/>
  179. <input id="ipt_srchtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:413px; top:12px; width:97px; height:19px; "/>
  180. <input id="ipt_srchcmpycd" ref="/root/send/srchcmpycd" class="input_search" style="left:592px; top:11px; width:75px; height:19px; ">
  181. <script type="javascript" ev:event="onkeyup">
  182. <![CDATA[
  183. inputEnterKey("btn_selcmpy", "DOMActivate");
  184. ]]>
  185. </script>
  186. </input>
  187. <button id="btn_selcmpy" class="icon_search" style="left:672px; top:11px; width:16px; height:16px; ">
  188. <caption/>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. fGetComnCd("SMAHA01500", "09" , "cd", ipt_srchcmpycd.currentText ,ipt_srchcmpycd.attribute("ref"), opt_srchcmpynm.attribute("ref"));
  192. ]]>
  193. </script>
  194. </button>
  195. <output id="opt_srchcmpynm" ref="/root/send/srchcmpynm" class="output_fix" style="left:694px; top:11px; width:116px; height:19px; "/>
  196. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:10px; width:56px; height:22px; ">
  197. <caption>조회</caption>
  198. <script type="javascript" ev:event="DOMActivate">
  199. <![CDATA[
  200. model.resetInstanceNode("/root/main/detlinfo/item");
  201. model.refresh();
  202. fGetRsrvAcptList();
  203. fSetRcptSum();
  204. ]]>
  205. </script>
  206. </button>
  207. <caption id="caption19" class="search_n_b" style="left:399px; top:12px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  208. <caption id="caption2" class="search_name" style="left:820px; top:12px; width:86px; height:17px; ">건진장소 :</caption>
  209. <select1 id="combo1" ref="/root/send/srchplceflag" appearance="minimal" style="left:910px; top:11px; width:75px; height:19px; ">
  210. <choices>
  211. <itemset nodeset="/root/init/baseinfo/plceflag/A0110">
  212. <label ref="cdnm"/>
  213. <value ref="cdid"/>
  214. </itemset>
  215. </choices>
  216. <script type="javascript" ev:event="xforms-value-changed">
  217. <![CDATA[
  218. fGetRsrvAcptList();
  219. fSetRcptSum();
  220. ]]>
  221. </script>
  222. </select1>
  223. <select1 id="cmb_srchhealexamdetlflag" ref="/root/send/srchhealexamdetlflag" class="combo_search" appearance="minimal" style="left:120px; top:12px; width:90px; height:19px; ">
  224. <choices>
  225. <itemset nodeset="/root/init/baseinfo/healexamdetlflag/A0070">
  226. <label ref="cdnm"/>
  227. <value ref="cdid"/>
  228. </itemset>
  229. </choices>
  230. <script type="javascript" ev:event="xforms-value-changed">
  231. <![CDATA[
  232. fGetRsrvAcptList();
  233. fSetRcptSum();
  234. ]]>
  235. </script>
  236. </select1>
  237. <caption id="caption9" class="search_name" style="left:5px; top:12px; width:117px; height:17px; ">건진상세분류 :</caption>
  238. </group>
  239. <caption id="caption1" class="tit_2" style="left:5px; top:60px; width:151px; height:13px; ">상세현황</caption>
  240. <datagrid id="grd_prntlst" nodeset="/root/main/detlinfo/item" caption="건진구분명^건진상세구분명^사업장명^환자번호^성명^주민등록번호^건진일자^수납구분^총발생금액^개인금액^공단금액^보건소금액^단체금액^A01^A02^A03^A04^A05^A06^A07^A08^A09^A10^A11^A12^A13^A14^A15^A16^A17^A18^A19^A20^A21^A22^A23^A24^A25^A26^A27^A28^A29^TESTNM^소견 및 조치사항내용^판정일정^판정의ID^의사명^의사면허번호^TBDD^관리기관코드^조합명^기관코드^건진구분^INSTCD_1^orddd" colsep="^" colwidth="115, 115, 150, 90, 80, 110, 80, 70, 80, 80, 80, 80, 80" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:81px; width:1190px; height:634px; ">
  241. <col ref="cdnm1" style="text-align:center; "/>
  242. <col ref="cdnm2" style="text-align:center; "/>
  243. <col ref="cmpynm" style="text-align:center; "/>
  244. <col ref="pid" style="text-align:center; "/>
  245. <col ref="hngnm" style="text-align:center; "/>
  246. <col ref="rrgstno" style="text-align:center; "/>
  247. <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
  248. <col ref="sngbn"/>
  249. <col ref="totpayamt" format="(-,+)#,###" style="text-align:right; "/>
  250. <col ref="payownbamt" format="(-,+)#,###" style="text-align:right; "/>
  251. <col ref="payinsubamt" format="(-,+)#,###" style="text-align:right; "/>
  252. <col ref="payhealcntrbamt" format="(-,+)#,###" style="text-align:right; "/>
  253. <col ref="paycmpybamt" format="(-,+)#,###" style="text-align:right; "/>
  254. <script type="javascript" ev:event="onaftersort">
  255. <![CDATA[
  256. grd_prntlst.gridToInstance();
  257. ]]>
  258. </script>
  259. </datagrid>
  260. <button id="btn_excelsave" class="btn6_letter4" visibility="visible" style="left:1016px; top:19px; width:80px; height:22px; ">
  261. <caption>액셀저장</caption>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  265. grd_prntlst.saveExcel(fileName, "SheetName", true, true, "", "", false);
  266. ]]>
  267. </script>
  268. </button>
  269. </group>
  270. <group id="group2" scroll="auto" style="left:0px; top:756px; width:1195px; height:28px; "/>
  271. </xhtml:body>
  272. </xhtml:html>