SMAHS01700_일일수납마감.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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. <dyrcptlst>
  11. <item>
  12. <instcd/>
  13. <orddeptcd/>
  14. <orddeptnm/>
  15. <pid/>
  16. <rcptdd/>
  17. <rcptno/>
  18. <totamt/>
  19. <payinsubamt/>
  20. <payinsucncramt/>
  21. <payinsuoralamt/>
  22. <payinsuetcamt/>
  23. <payhealcntramt/>
  24. <cmpyamt/>
  25. <discamt/>
  26. <cardamt/>
  27. <cashamt/>
  28. <ownuncoamt/>
  29. <mdlrcptamt/>
  30. <reduamt/>
  31. <restamt/>
  32. <rcptrid/>
  33. <onlinecash/>
  34. </item>
  35. </dyrcptlst>
  36. <export/>
  37. </main>
  38. <send>
  39. <srchinstcd/>
  40. <srchhealexamflag/>
  41. <srchorddeptcd/>
  42. <srchpid/>
  43. <srchfromdd/>
  44. <srchtodd/>
  45. </send>
  46. <hidden>
  47. </hidden>
  48. <init>
  49. <baseinfo>
  50. <healexamflag>
  51. <A0068>
  52. <cdid/>
  53. <cdnm/>
  54. </A0068>
  55. </healexamflag>
  56. <healexamdetlflaglist/>
  57. <healexamdetlflaglist2/>
  58. <orddeptcdlst/>
  59. </baseinfo>
  60. </init>
  61. </root>
  62. </instance>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. //기관코드 초기화
  66. model.setValue("/root/send/srchinstcd" , getUserInfo("posinstcd"));
  67. //일자초기화
  68. model.setValue("/root/send/srchfromdd" , getCurrentDate());
  69. model.setValue("/root/send/srchtodd" , getCurrentDate());
  70. //공통코드 조회
  71. zbcfGetCodeList( new Array("A0068","A0069" ,"A0070" ),
  72. new Array("/root/init/baseinfo/healexamflag" ,"/root/init/baseinfo/healexamdetlflaglist" , "/root/init/baseinfo/healexamdetlflaglist2" ));
  73. //for(var i = 3; i <= model.getXPathValue("count(/root/init/baseinfo/healexamdetlflaglist2)") + 2 ; i++)
  74. //2010.02.19 강태훈 공통코드 A0069, A0070 합침
  75. for(var i = 3; i <= 14 + 2 ; i++){
  76. model.makeNode("/root/init/baseinfo/healexamdetlflaglist/A0069[" + i + "]");
  77. model.makeNode("/root/init/baseinfo/healexamdetlflaglist/A0069[" + i + "]/cdid");
  78. model.makeNode("/root/init/baseinfo/healexamdetlflaglist/A0069[" + i + "]/cdnm");
  79. model.setValue("/root/init/baseinfo/healexamdetlflaglist/A0069[" + i + "]/cdid" , model.getValue("/root/init/baseinfo/healexamdetlflaglist2/A0070[" + (i - 2) + "]/cdid"));
  80. model.setValue("/root/init/baseinfo/healexamdetlflaglist/A0069[" + i + "]/cdnm" , model.getValue("/root/init/baseinfo/healexamdetlflaglist2/A0070[" + (i - 2) + "]/cdnm"));
  81. }
  82. //공통코드 조회 - 진료과 (G, G26)
  83. healGetComboList("G", new Array("G26"), new Array("/root/init/baseinfo/orddeptcdlst"), false);
  84. //건진구분 초기화
  85. model.setValue("root/send/srchhealexamflag", getScreenMenuParameter());
  86. //진료과 초기화
  87. var sUserDeptCd = getUserInfo("dutplcecd");
  88. if(sUserDeptCd == "2370100000" || sUserDeptCd == "2230000000" || sUserDeptCd == "2110000000" || sUserDeptCd == "2241700000"){
  89. if(sUserDeptCd == "2370100000"){
  90. model.makeValue("/root/send/srchhealexamflag", "C");
  91. }else{
  92. model.makeValue("/root/send/srchhealexamflag", "G");
  93. }
  94. model.setValue("/root/send/srchorddeptcd", sUserDeptCd);
  95. }else{
  96. model.setValue("/root/send/srchorddeptcd", "ALL");
  97. model.makeValue("/root/send/srchhealexamflag", "G");
  98. }
  99. // 2018/01/03 이정택 주석처리
  100. /*
  101. if(sUserDeptCd != ""){
  102. if(getUserInfo("dutplceinstcd") == "031"){
  103. // addComboItem("cmb_orddeptcd", "건강증진센터", "2370100000", "below");
  104. //가정의학과, 소아청소년과, 소아치과
  105. if(sUserDeptCd == "2370100000" || sUserDeptCd == "2230000000" || sUserDeptCd == "2110000000" || sUserDeptCd == "2241700000"){
  106. model.setValue("/root/send/srchorddeptcd", sUserDeptCd);
  107. }else{
  108. model.setValue("/root/send/srchorddeptcd", "2230000000");
  109. }
  110. }else{
  111. //내분비대사센터
  112. if(sUserDeptCd == "2363400000"){
  113. model.setValue("/root/send/srchorddeptcd", "2110000000");
  114. }else{
  115. model.setValue("/root/send/srchorddeptcd", "2370100000");
  116. }
  117. }
  118. }
  119. */
  120. model.refresh();
  121. ]]>
  122. </script>
  123. <script type="javascript">
  124. <![CDATA[
  125. /*
  126. * 건진종류 소계 및 총계를 생성한다.
  127. */
  128. function fSetRcptSum() {
  129. grd_dyrcptlst.subtotalPosition = "below";
  130. grd_dyrcptlst.subtotal("clear", grd_dyrcptlst.colRef("healexamdetlflag") , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_dyrcptlst.colRef("healexamdetlflag") , "소 계" );
  131. grd_dyrcptlst.subtotal("clear", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold", grd_dyrcptlst.colRef("healexamdetlflag"), "총 계" );
  132. for(var i=0; i < grd_dyrcptlst.cols ; i++) {
  133. if(i >= grd_dyrcptlst.colRef("totamt")){
  134. grd_dyrcptlst.subtotal("sum", grd_dyrcptlst.colRef("healexamdetlflag") , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_dyrcptlst.colRef("healexamdetlflag") , "소 계" );
  135. grd_dyrcptlst.subtotal("sum", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold", grd_dyrcptlst.colRef("healexamdetlflag"), "총 계" );
  136. }
  137. }
  138. }
  139. ]]>
  140. </script>
  141. <submission id="TRZBC00101"/>
  142. <submission id="TRAHB00606"/>
  143. <submission id="TRAHS00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dyrcptlst"/>
  144. <submission id="TRAHS01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dyrcptlst"/>
  145. <submission id="TXAHS01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/rcptlist" resultref="/root/main/dyrcptlst"/>
  146. </model>
  147. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  148. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  149. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  150. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  153. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  154. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  155. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  156. </xhtml:head>
  157. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;">
  158. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  159. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">일일수납마감</caption>
  160. </group>
  161. <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
  162. <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; "/>
  163. <caption id="caption2" class="search_name" style="left:405px; top:9px; width:73px; height:17px; ">일자 :</caption>
  164. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  165. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  166. <caption>조회</caption>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. submit("TRAHS01701");
  170. fSetRcptSum();
  171. ]]>
  172. </script>
  173. </button>
  174. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_search" navindex="7" inputtype="date" style="left:472px; top:8px; width:105px; height:19px; ">
  175. <script type="javascript" ev:event="onkeydown">
  176. <![CDATA[
  177. /*
  178. if( event.keyCode == 13 ) {
  179. var pCurTargetObj = event.ptarget.parent;
  180. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  181. event.keyCode = 9;
  182. pCurTargetObj.dispatch("onkeydown");
  183. }else{
  184. event.keyCode = 9;
  185. }
  186. }
  187. event.stopPropagation();
  188. */
  189. ]]>
  190. </script>
  191. </input>
  192. <button id="btn_prt" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
  193. <caption>출력</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. //매개변수
  197. model.makeValue("/root/main/export/weeknm" , model.getValue("/root/send/srchdd").toDate("YYYYMMDD").getDayOfWeek("k"));
  198. model.makeValue("/root/main/export/srchdd" , model.getValue("/root/send/srchdd").toDate("YYYYMMDD").getDateFormat("YYYY/MM/DD"));
  199. exeReportPreview("RPAHS00501", "XMLSTR", "/root/main/export","", "false","","","","","false");
  200. ]]>
  201. </script>
  202. </button>
  203. <line id="line3" class="line_4" visibility="hidden" style="x1:1063px; y1:7px; x2:1063px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  204. <caption id="caption1" class="search_name" style="left:720px; top:9px; width:86px; height:17px; ">환자ID :</caption>
  205. <input id="input1" ref="/root/send/srchpid" style="left:800px; top:8px; width:105px; height:19px; "/>
  206. <select1 id="cmb_healexamflag" ref="/root/send/srchhealexamflag" class="combo_search" appearance="minimal" style="left:105px; top:8px; width:105px; height:19px; ">
  207. <choices>
  208. <itemset nodeset="/root/init/baseinfo/healexamflag/A0068">
  209. <label ref="cdnm"/>
  210. <value ref="cdid"/>
  211. </itemset>
  212. </choices>
  213. </select1>
  214. <caption id="caption3" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">건진구분 :</caption>
  215. <select1 id="cmb_orddeptcd" ref="/root/send/srchorddeptcd" class="combo_search" appearance="minimal" style="left:294px; top:8px; width:105px; height:19px; ">
  216. <choices>
  217. <itemset nodeset="/root/init/baseinfo/orddeptcdlst/G26">
  218. <label ref="cdnm"/>
  219. <value ref="cdid"/>
  220. </itemset>
  221. </choices>
  222. </select1>
  223. <caption id="caption4" class="search_name" style="left:215px; top:9px; width:86px; height:17px; ">진료과 :</caption>
  224. <caption id="caption5" style="left:580px; top:10px; width:20px; height:17px; ">~</caption>
  225. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_search" navindex="7" inputtype="date" style="left:595px; top:8px; width:105px; height:19px; ">
  226. <script type="javascript" ev:event="onkeydown">
  227. <![CDATA[
  228. /*
  229. if( event.keyCode == 13 ) {
  230. var pCurTargetObj = event.ptarget.parent;
  231. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  232. event.keyCode = 9;
  233. pCurTargetObj.dispatch("onkeydown");
  234. }else{
  235. event.keyCode = 9;
  236. }
  237. }
  238. event.stopPropagation();
  239. */
  240. ]]>
  241. </script>
  242. </input>
  243. </group>
  244. <datagrid id="grd_dyrcptlst" nodeset="/root/main/dyrcptlst/item" caption="기관코드^건진구분^진료과코드^진료과^등록번호^수납일자^영수증번호^총진료비^부담금^부담금^부담금^부담금^부담금^부담금^할인/감액^카드금액^현금금액^개인미수금^중간금^감액^절사액^수납자^|기관코드^건진구분^진료과코드^진료과^등록번호^수납일자^영수증번호^총진료비^공단(1,2차)^공단(암)^공단(구강)^공단(기타)^보건소부담금^사업체부담금^할인/감액^카드금액^현금금액^개인미수금^중간금^감액^절사액^수납자^" colsep="^" colwidth="0, 110, 0, 90, 70, 75, 70, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 70, 70, 70, 70, 90" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" multitotal="true" rowsep="|" subtotalposition="below" style="left:3px; top:65px; width:1203px; height:680px; text-align:center; ">
  245. <col ref="instcd" type="input" visibility="hidden" style="text-align:center; "/>
  246. <col ref="healexamdetlflag" type="combo" style="text-align:center; ">
  247. <choices>
  248. <itemset nodeset="/root/init/baseinfo/healexamdetlflaglist/A0069">
  249. <label ref="cdnm"/>
  250. <value ref="cdid"/>
  251. </itemset>
  252. </choices>
  253. </col>
  254. <col ref="orddeptcd" type="input" visibility="hidden"/>
  255. <col ref="orddeptnm" type="input"/>
  256. <col ref="pid" type="input"/>
  257. <col ref="rcptdd" type="input"/>
  258. <col ref="rcptno" type="input"/>
  259. <col ref="totamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
  260. <col ref="payinsubamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
  261. <col ref="payinsucncramt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
  262. <col ref="payinsuoralamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
  263. <col ref="payinsuetcamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
  264. <col ref="payhealcntramt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
  265. <col ref="cmpyamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
  266. <col ref="discamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
  267. <col ref="cardamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
  268. <col ref="onlinecash" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
  269. <col ref="ownuncoamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
  270. <col ref="mdlrcptamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
  271. <col ref="reduamt" type="input" visibility="hidden" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
  272. <col ref="restamt" type="input" format="(-,+)#,###" style="text-align:right; padding-right:3; "/>
  273. <col ref="rcptrid"/>
  274. </datagrid>
  275. <button id="btn_save" class="btn4_letter2" disabled="false" style="left:1049px; top:750px; width:56px; height:22px; ">
  276. <caption>저장</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. model.makeNode("/root/send/save/rcptlist");
  280. var dyrcpt = getGridUpdateData(grd_dyrcptlst);
  281. if(dyrcpt == ""){
  282. messageBox("수정 된 내역이", "I004");
  283. return;
  284. }
  285. model.setValue("/root/send/save/rcptlist", dyrcpt);
  286. submit("TXAHS01701");
  287. ]]>
  288. </script>
  289. </button>
  290. <button id="btn_clear" class="btn4_letter5" style="left:1114px; top:750px; width:92px; height:22px; ">
  291. <caption>실자료 조회</caption>
  292. <script type="javascript" ev:event="DOMActivate">
  293. <![CDATA[
  294. var ret = submit("TRAHS00501");
  295. if(ret){
  296. for(var i = 1 ; i <= grd_dyrcptlst.rows ; i++){
  297. grd_dyrcptlst.rowStatus(i) = 1;
  298. }
  299. fSetRcptSum();
  300. model.refresh();
  301. }
  302. ]]>
  303. </script>
  304. </button>
  305. <button id="button52" class="btn2_letter3" navindex="8" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1094px; top:62px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  306. <caption>행추가</caption>
  307. <script type="javascript" ev:event="DOMActivate">
  308. <![CDATA[
  309. grd_dyrcptlst.addRow();
  310. var row = grd_dyrcptlst.rows;
  311. model.setValue("/root/main/dyrcptlst/item/rcptdd", model.getValue("/root/send/srchdd"));
  312. ]]>
  313. </script>
  314. </button>
  315. <button id="button53" accesskey="f1" class="btn5_letter3" navindex="9" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn5_letter3.gif" style="left:1149px; top:62px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn5_letter3.gif; ">
  316. <caption>행삭제</caption>
  317. <script type="javascript" ev:event="DOMActivate">
  318. <![CDATA[
  319. var row = grd_dyrcptlst.row;
  320. if(row < 0){
  321. messageBox("선택된 행이", "I004");
  322. }else{
  323. if( grd_dyrcptlst.rowStatus(row) == 1){
  324. grd_dyrcptlst.deleteRow(row);
  325. } else {
  326. grd_dyrcptlst.addStatus(row, "delete");
  327. }// inner else end
  328. }//else end
  329. ]]>
  330. </script>
  331. </button>
  332. </xhtml:body>
  333. </xhtml:html>