SMPIR32000_과별의사별삭감자료(처방별).xrw 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <list01>
  11. <gridrsltqry>
  12. </gridrsltqry>
  13. </list01>
  14. <list02>
  15. <griddocu>
  16. </griddocu>
  17. </list02>
  18. <confirm>
  19. <confirmstat>
  20. <confirm_yn/>
  21. <confirm_maxday/>
  22. </confirmstat>
  23. </confirm>
  24. <list03>
  25. <confirmlist/>
  26. </list03>
  27. <list04>
  28. <griddocuall/>
  29. </list04>
  30. </main>
  31. <send>
  32. <send_dataqry>
  33. <fromobtappdd/>
  34. <toobtappdd/>
  35. <chosflag>1</chosflag>
  36. <obtapprsltendflag>3</obtapprsltendflag>
  37. <insukind3/>
  38. <confirm_yn/>
  39. </send_dataqry>
  40. <send_docu>
  41. <fromobtappdd/>
  42. <toobtappdd/>
  43. <chosflag>1</chosflag>
  44. <obtapprsltendflag>3</obtapprsltendflag>
  45. <orddeptcd/>
  46. <orddrid/>
  47. <insukind3/>
  48. <selgubun/>
  49. </send_docu>
  50. <datagrid1/>
  51. </send>
  52. <init>
  53. <P0277list>
  54. <P0277>
  55. <cdid/>
  56. <cdnm/>
  57. </P0277>
  58. </P0277list>
  59. <PK080list>
  60. </PK080list>
  61. </init>
  62. <hidden>
  63. <memo/>
  64. </hidden>
  65. <main2>
  66. <confirm>
  67. <confirmstat>
  68. <confirm_yn/>
  69. <confirm_maxday/>
  70. </confirmstat>
  71. </confirm>
  72. </main2>
  73. </root>
  74. </instance>
  75. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  80. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  81. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  82. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  83. <submission id="TRPIR32000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_dataqry" resultref="/root/main/list01"/>
  84. <submission id="TRPIR32001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_docu" resultref="/root/main/list02"/>
  85. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
  86. <submission id="TRPIR32002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_dataqry" resultref="/root/main2/confirm"/>
  87. <submission id="TRPIR32003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_dataqry" resultref="/root/main"/>
  88. <submission id="TRPIR32004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_docu" resultref="/root/main/list02"/>
  89. <submission id="TXPIR32000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_dataqry"/>
  90. <submission id="TRPIR32005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_dataqry" resultref="/root/main/list03"/>
  91. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  92. <submission id="TRPIR32006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_dataqry" resultref="/root/main/list06"/>
  93. <submission id="TRPIR32007" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_dataqry" resultref="/root/main/list05"/>
  94. <submission id="TRPIR32008" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_dataqry" resultref="/root/main/list07"/>
  95. <submission id="TXPIR32001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/datagrid1"/>
  96. </model>
  97. <script type="javascript" ev:event="xforms-ready">
  98. <![CDATA[
  99. group4.visible = false;
  100. // 공통코드 가져오기
  101. zbcfGetCodeList(new Array("P0277"), new Array("/root/init/P0277list"));
  102. pamfGetCodeList(new Array("PK080"), new Array("/root/init/PK080list"));
  103. // 확인 완료 버튼은 김순애 파트장님만 활성화 되도록 함(2012.09.03 LEJ)
  104. // 권한 추가 : 칠곡 김정선 파트장님, 조우현
  105. // 권한 추가 : 본원 김성자 파트장님 (2014.06.09 LEJ) 93689
  106. var userId = model.getValue("/root/init/PK080list/PK080[cdid='"+getUserId()+"']/cdid");
  107. if (userId != "" ) {
  108. btn_confirm.disabled= false ;
  109. }else{
  110. btn_confirm.disabled= true ;
  111. }
  112. // 진료과리스트 가져오기
  113. submit("TRPID20309");
  114. var windowtype = window.type;
  115. if(windowtype == 'main'){
  116. rdo_chosflag.select(0);
  117. rdo_endyn.select(0); // Default로 이의신청일자로 부터 3개월동안의 미완료건만 보여준다.
  118. var today = getCurrentDate();
  119. ipt_fromobtappdd.value= today;
  120. ipt_toobtappdd.value= today;
  121. }else{
  122. }
  123. model.refresh();
  124. ]]>
  125. </script>
  126. <script type="javascript">
  127. <![CDATA[
  128. // 공통코드 Load 작업
  129. function CommCode_Load() {
  130. // 관련 Control 초기화
  131. zbcfGetCodeList(new Array("P0121","P0291","P0264","P0008","P0028"), new Array("/root/init/P0121list", "/root/init/P0291list","/root/init/P0264list","/root/init/P0008list","/root/init/P0028list"));
  132. zbcfGetCodeList(new Array("P0421","P0426", "P0458"), new Array("/root/init/P0421list", "/root/init/P0426list", "/root/init/P0458list"));
  133. model.refresh();
  134. }
  135. // 초기화 작업
  136. function fInitialize() {
  137. //날자 입력 항목에 오늘 날자 세팅
  138. var curDate = getCurrentDate();
  139. ipt_fromobtappdd.value = curDate;
  140. ipt_toobtappdd.value = curDate;
  141. rdo_chosflag.select(0);
  142. rdo_endyn.select(0);
  143. model.removeNodeset("/root/main/list01/gridrsltqry");
  144. model.removeNodeset("/root/main/list02/griddocu");
  145. grd_confirmlist.visible = false;
  146. }
  147. function fChkSend(){
  148. if (ipt_fromobtappdd.value == "") {
  149. alert("심결통보시작일(From)을 입력해 주세요");
  150. model.setFocus("ipt_fromobtappdd");
  151. return false;
  152. }
  153. if (ipt_toobtappdd.value == "") {
  154. alert("심결통보종료일(To)을 입력해 주세요");
  155. model.setFocus("ipt_toobtappdd");
  156. return false;
  157. }
  158. if (ipt_fromobtappdd.value < "20120701" && ipt_toobtappdd.value >= "20120701") {
  159. alert("2012년 7월 이전과 이후의 자료를 동시에 조회할 수 없습니다 ");
  160. model.setFocus("ipt_toobtappdd");
  161. return false;
  162. }
  163. return true;
  164. }
  165. function fObtAppList(){
  166. if(fChkSend()){
  167. model.removeNodeset("/root/main/list01/gridrsltqry");
  168. model.removeNodeset("/root/main/list02/griddocu");
  169. btn_prescond.selected= true;
  170. model.toggle("case3");
  171. model.resetInstanceNode("/root/main/list01");
  172. model.resetInstanceNode("/root/main/confirm");
  173. model.refresh();
  174. if (ipt_fromobtappdd.value < "20120101") { // 2012년 7월 이전 조회 (TRPIR32000)
  175. submit("TRPIR32000");
  176. } else { // 2012년 7월 이후 조회 (TRPIR32003)
  177. submit("TRPIR32002");
  178. var confirm_yn = model.getValue("/root/main2/confirm/confirmstat/confirm_yn");
  179. var confirm_list = getNodesetCount("/root/main2/confirm/rslt");
  180. if (confirm_list > 0 ) {
  181. alert("줄번호가 없는 처방 발생 되었습니다.");
  182. group4.visible = true;
  183. return false;
  184. }
  185. if (confirm_yn == "X" ) {
  186. alert("해당 조회 기간 내 확인 완료/미완료 건이 모두 포함되어 있습니다. 조회 기간을 변경하여 주십시요");
  187. model.setFocus("ipt_fromobtappdd");
  188. return false;
  189. }
  190. model.setValue("/root/send/send_dataqry/confirm_yn", confirm_yn);
  191. submit("TRPIR32003");
  192. }
  193. if( getNodesetCount("/root/main/list01/gridrsltqry/orddeptcd") > 0 ){
  194. grd_rsltqry.multiTotals = true;
  195. grd_rsltqry.subtotalPosition = "below"
  196. grd_rsltqry.subtotal("sum", 2, grd_rsltqry.colRef("adjtamt_in"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ffffff; font-weight:bold; ", grd_rsltqry.colRef("orddeptnm"), "소계", false);
  197. grd_rsltqry.subtotal("sum", 2, grd_rsltqry.colRef("adjtamt_out"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ffffff; font-weight:bold; ", grd_rsltqry.colRef("orddeptnm"), "소계", false);
  198. grd_rsltqry.subtotal("sum", 2, grd_rsltqry.colRef("adjtamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ffffff; font-weight:bold; ", grd_rsltqry.colRef("orddeptnm"), "소계", false);
  199. grd_rsltqry.subtotal("sum", 2, grd_rsltqry.colRef("deciamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ffffff; font-weight:bold; ", grd_rsltqry.colRef("orddeptnm"), "소계", false);
  200. grd_rsltqry.subtotal("sum", 2, grd_rsltqry.colRef("realcutamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ffffff; font-weight:bold; ", grd_rsltqry.colRef("orddeptnm"), "소계", false);
  201. grd_rsltqry.subtotal("sum", -1, grd_rsltqry.colRef("adjtamt_in"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", grd_rsltqry.colRef("orddeptnm"), "총합계", false);
  202. grd_rsltqry.subtotal("sum", -1, grd_rsltqry.colRef("adjtamt_out"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", grd_rsltqry.colRef("orddeptnm"), "총합계", false);
  203. grd_rsltqry.subtotal("sum", -1, grd_rsltqry.colRef("adjtamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", grd_rsltqry.colRef("orddeptnm"), "총합계", false);
  204. grd_rsltqry.subtotal("sum", -1, grd_rsltqry.colRef("deciamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", grd_rsltqry.colRef("orddeptnm"), "총합계", false);
  205. grd_rsltqry.subtotal("sum", -1, grd_rsltqry.colRef("realcutamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", grd_rsltqry.colRef("orddeptnm"), "총합계", false);
  206. }
  207. }
  208. }
  209. function fGridDocuAll(){
  210. submit("TRPIR32006");
  211. if( getNodesetCount("/root/main/list04/griddocuall/clamno") > 0 ){
  212. griddocuall.multiTotals = true;
  213. griddocuall.subtotalPosition = "below"
  214. griddocuall.subtotal("sum", 2, griddocuall.colRef("adjtamt_in"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ffffff; font-weight:bold; ", griddocuall.colRef("orddeptcd"), "의사별 소계", false);
  215. griddocuall.subtotal("sum", 2, griddocuall.colRef("adjtamt_out"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ffffff; font-weight:bold; ", griddocuall.colRef("orddeptcd"), "의사별 소계", false);
  216. griddocuall.subtotal("sum", 2, griddocuall.colRef("deciamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ffffff; font-weight:bold; ", griddocuall.colRef("orddeptcd"), "의사별 소계", false);
  217. griddocuall.subtotal("sum", 2, griddocuall.colRef("realcutamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ffffff; font-weight:bold; ", griddocuall.colRef("orddeptcd"), "의사별 소계", false);
  218. griddocuall.subtotal("sum", -1, griddocuall.colRef("adjtamt_in"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocuall.colRef("orddeptcd"), "총합계", false);
  219. griddocuall.subtotal("sum", -1, griddocuall.colRef("adjtamt_out"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocuall.colRef("orddeptcd"), "총합계", false);
  220. griddocuall.subtotal("sum", -1, griddocuall.colRef("deciamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocuall.colRef("orddeptcd"), "총합계", false);
  221. griddocuall.subtotal("sum", -1, griddocuall.colRef("realcutamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocuall.colRef("orddeptcd"), "총합계", false);
  222. }
  223. }
  224. function fGridDocuAdjtamt(){
  225. submit("TRPIR32007");
  226. if( getNodesetCount("/root/main/list05/griddocuall/clamno") > 0 ){
  227. griddocuadjtamt.multiTotals = true;
  228. griddocuadjtamt.subtotalPosition = "below"
  229. griddocuadjtamt.subtotal("sum", 2, griddocuadjtamt.colRef("adjtamt_in"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ffffff; font-weight:bold; ", griddocuadjtamt.colRef("orddeptcd"), "의사별 소계", false);
  230. griddocuadjtamt.subtotal("sum", 2, griddocuadjtamt.colRef("adjtamt_out"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ffffff; font-weight:bold; ", griddocuadjtamt.colRef("orddeptcd"), "의사별 소계", false);
  231. griddocuadjtamt.subtotal("sum", 2, griddocuadjtamt.colRef("deciamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ffffff; font-weight:bold; ", griddocuadjtamt.colRef("orddeptcd"), "의사별 소계", false);
  232. griddocuadjtamt.subtotal("sum", 2, griddocuadjtamt.colRef("realcutamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ffffff; font-weight:bold; ", griddocuadjtamt.colRef("orddeptcd"), "의사별 소계", false);
  233. griddocuadjtamt.subtotal("sum", -1, griddocuadjtamt.colRef("adjtamt_in"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocuadjtamt.colRef("orddeptcd"), "총합계", false);
  234. griddocuadjtamt.subtotal("sum", -1, griddocuadjtamt.colRef("adjtamt_out"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocuadjtamt.colRef("orddeptcd"), "총합계", false);
  235. griddocuadjtamt.subtotal("sum", -1, griddocuadjtamt.colRef("deciamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocuadjtamt.colRef("orddeptcd"), "총합계", false);
  236. griddocuadjtamt.subtotal("sum", -1, griddocuadjtamt.colRef("realcutamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocuadjtamt.colRef("orddeptcd"), "총합계", false);
  237. }
  238. }
  239. function fGridDocuItemamt(){
  240. submit("TRPIR32008");
  241. if( getNodesetCount("/root/main/list07/deptitemcutamtlist") > 0 ){
  242. //삭감구성비입력
  243. var nodecnt = parseInt(model.getXPathValue("count(/root/main/list07/deptitemcutamtlist[*]/ediamta)"));
  244. var ediamta = 0;
  245. var ediamti = 0;
  246. var ediamto = 0;
  247. for (var i=1; i <= nodecnt; i++) {
  248. var orddeptcd = model.getXPathValue("sum(/root/main/list07/deptitemcutamtlist["+i+"]/orddeptcd)");
  249. var deptediamtatot = parseInt(model.getXPathValue("sum(/root/main/list07/deptitemcutamtlist[orddeptcd='"+orddeptcd+"']/ediamta)"));
  250. var deptediamtitot = parseInt(model.getXPathValue("sum(/root/main/list07/deptitemcutamtlist[orddeptcd='"+orddeptcd+"']/ediamti)"));
  251. var deptediamtotot = parseInt(model.getXPathValue("sum(/root/main/list07/deptitemcutamtlist[orddeptcd='"+orddeptcd+"']/ediamto)"));
  252. ediamta = parseInt(model.getValue("/root/main/list07/deptitemcutamtlist["+i+"]/ediamta"));
  253. ediamti = parseInt(model.getValue("/root/main/list07/deptitemcutamtlist["+i+"]/ediamti"));
  254. ediamto = parseInt(model.getValue("/root/main/list07/deptitemcutamtlist["+i+"]/ediamto"));
  255. model.setValue("/root/main/list07/deptitemcutamtlist["+i+"]/cuttotpera", (ediamta/deptediamtatot*100).toFixed(2));
  256. model.setValue("/root/main/list07/deptitemcutamtlist["+i+"]/cuttotperi", (ediamti/deptediamtitot*100).toFixed(2));
  257. model.setValue("/root/main/list07/deptitemcutamtlist["+i+"]/cuttotpero", (ediamto/deptediamtotot*100).toFixed(2));
  258. }
  259. datagrid2.subtotalPosition = "below";
  260. datagrid2.subtotal("sum", -1, 2 , "#,###", "background-color:#99ff99", 2, "합계");
  261. datagrid2.subtotal("sum", -1, 3 , "#,###", "background-color:#99ff99", 2, "합계");
  262. datagrid2.subtotal("sum", -1, 4 , "#,###", "background-color:#99ff99", 2, "합계");
  263. datagrid2.subtotal("sum", -1, 5 , "#,###", "background-color:#99ff99", 2, "합계");
  264. datagrid2.subtotal("sum", -1, 6 , "#,###.00", "background-color:#99ff99", 2, "합계");
  265. datagrid2.subtotal("sum", -1, 7 , "#,###.00", "background-color:#99ff99", 2, "합계");
  266. datagrid2.subtotal("sum", -1, 8 , "#,###", "background-color:#99ff99", 2, "합계");
  267. datagrid2.subtotal("sum", -1, 9 , "#,###", "background-color:#99ff99", 2, "합계");
  268. datagrid2.subtotal("sum", -1, 10 , "#,###", "background-color:#99ff99", 2, "합계");
  269. datagrid2.subtotal("sum", -1, 11 , "#,###.00", "background-color:#99ff99", 2, "합계");
  270. datagrid2.subtotal("sum", -1, 12 , "#,###.00", "background-color:#99ff99", 2, "합계");
  271. datagrid2.subtotal("sum", -1, 13 , "#,###", "background-color:#99ff99", 2, "합계");
  272. datagrid2.subtotal("sum", -1, 14 , "#,###", "background-color:#99ff99", 2, "합계");
  273. datagrid2.subtotal("sum", -1, 15 , "#,###", "background-color:#99ff99", 2, "합계");
  274. datagrid2.subtotal("sum", -1, 16 , "#,###.00", "background-color:#99ff99", 2, "합계");
  275. datagrid2.subtotal("sum", -1, 17 , "#,###.00", "background-color:#99ff99", 2, "합계");
  276. //datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 2 , "#,###", "background-color:#99ff99", 1, datagrid2.valueMatrix( 1 ));
  277. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 3 , "#,###", "background-color:#99ff99", null, null);
  278. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 4 , "#,###", "background-color:#99ff99", 2, "소계");
  279. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 5 , "#,###", "background-color:#99ff99", 2, "소계");
  280. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 6 , "#,###.00", "background-color:#99ff99", 2, "소계");
  281. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 7 , "#,###.00", "background-color:#99ff99", 2, "소계");
  282. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 8 , "#,###", "background-color:#99ff99", 2, "소계");
  283. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 9 , "#,###", "background-color:#99ff99", 2, "소계");
  284. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 10 , "#,###", "background-color:#99ff99", 2, "소계");
  285. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 11 , "#,###.00", "background-color:#99ff99", 2, "소계");
  286. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 12 , "#,###.00", "background-color:#99ff99", 2, "소계");
  287. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 13 , "#,###", "background-color:#99ff99", 2, "소계");
  288. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 14 , "#,###", "background-color:#99ff99", 2, "소계");
  289. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 15 , "#,###", "background-color:#99ff99", 2, "소계");
  290. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 16 , "#,###.00", "background-color:#99ff99", 2, "소계");
  291. datagrid2.subtotal("sum", datagrid2.colRef("orddeptnm"), 17 , "#,###.00", "background-color:#99ff99", 2, "소계");
  292. for (var i=datagrid2.fixedRows ; i < datagrid2.rows; i++) {
  293. if (datagrid2.labelMatrix(i, datagrid2.colRef("clinclrg")) == "소계" || datagrid2.labelMatrix(i, datagrid2.colRef("clinclrg")) == "합계" ) {
  294. var realcutamta = parseInt(datagrid2.valueMatrix(i, datagrid2.colRef("realcutamta")));
  295. var realcutamti = parseInt(datagrid2.valueMatrix(i, datagrid2.colRef("realcutamti")));
  296. var realcutamto = parseInt(datagrid2.valueMatrix(i, datagrid2.colRef("realcutamto")));
  297. var deptediamtatot = parseInt(datagrid2.valueMatrix(i, datagrid2.colRef("ediamta")));
  298. var deptediamtitot = parseInt(datagrid2.valueMatrix(i, datagrid2.colRef("ediamti")));
  299. var deptediamtotot = parseInt(datagrid2.valueMatrix(i, datagrid2.colRef("ediamto")));
  300. datagrid2.valueMatrix(i, datagrid2.colRef("cutpera")) = (realcutamta/deptediamtatot*100).toFixed(2);
  301. datagrid2.valueMatrix(i, datagrid2.colRef("cutperi")) = (realcutamti/deptediamtatot*100).toFixed(2);
  302. datagrid2.valueMatrix(i, datagrid2.colRef("cutpero")) = (realcutamto/deptediamtatot*100).toFixed(2);
  303. }
  304. }
  305. model.refresh();
  306. for (var i=2; i < datagrid2.cols; i++) {
  307. datagrid2.mergeCol(i) = false;
  308. }
  309. datagrid2.merge();
  310. }
  311. }
  312. ]]>
  313. </script>
  314. </xhtml:head>
  315. <xhtml:body guideline="1,1200;2,379;2,386;" style="vertical-align:bottom; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  316. <group id="group1" style="left:0px; top:0px; width:1190px; height:13px; ">
  317. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:265px; height:14px; ">과별 의사별 삭감자료(처방별)</caption>
  318. </group>
  319. <group id="group6" scroll="auto" style="left:0px; top:13px; width:1195px; height:742px; ">
  320. <group id="group2" style="left:0px; top:3px; width:1195px; height:42px; vertical-align:top; ">
  321. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  322. <line id="line13" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  323. <button id="btn_search" class="btn1_letter3" navindex="3" style="left:1117px; top:6px; width:68px; height:22px; ">
  324. <caption>조 회</caption>
  325. <script type="javascript" ev:event="DOMActivate">
  326. <![CDATA[
  327. fObtAppList();
  328. ]]>
  329. </script>
  330. </button>
  331. <caption id="caption7" class="search_name" style="left:293px; top:10px; width:93px; height:17px; ">내원유형</caption>
  332. <caption id="caption11" class="search_name" style="left:525px; top:9px; width:85px; height:17px; ">심사확인</caption>
  333. <select1 id="rdo_endyn" ref="/root/send/send_dataqry/obtapprsltendflag" class="radio_search" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:605px; top:10px; width:164px; height:15px; border-style:none; ">
  334. <choices>
  335. <item>
  336. <label>전체</label>
  337. <value>1</value>
  338. </item>
  339. <item>
  340. <label>완료</label>
  341. <value>2</value>
  342. </item>
  343. <item>
  344. <label>미완료</label>
  345. <value>3</value>
  346. </item>
  347. </choices>
  348. </select1>
  349. <select1 id="rdo_chosflag" ref="/root/send/send_dataqry/chosflag" class="radio_search" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:374px; top:11px; width:141px; height:15px; border-style:none; ">
  350. <choices>
  351. <item>
  352. <label>전체</label>
  353. <value>1</value>
  354. </item>
  355. <item>
  356. <label>입원</label>
  357. <value>2</value>
  358. </item>
  359. <item>
  360. <label>외래</label>
  361. <value>3</value>
  362. </item>
  363. </choices>
  364. </select1>
  365. <caption id="caption2" class="search_no_b" style="left:186px; top:11px; width:12px; height:17px; ">~</caption>
  366. <input id="ipt_fromobtappdd" ref="/root/send/send_dataqry/fromobtappdd" class="input_search" navindex="10" inputtype="date" format="yyyy-mm-dd" style="left:100px; top:10px; width:86px; height:19px; ">
  367. <script type="javascript" ev:event="DOMFocusOut">
  368. <![CDATA[
  369. //model.setValue("/root/send/send_dataqry/toobtappdd",model.getValue("/root/send/send_dataqry/fromobtappdd"));
  370. //model.refreshpart("/root/send/send_dataqry/toobtappdd");
  371. ]]>
  372. </script>
  373. </input>
  374. <input id="ipt_toobtappdd" ref="/root/send/send_dataqry/toobtappdd" class="input_search" navindex="11" inputtype="date" format="yyyy-mm-dd" style="left:199px; top:10px; width:86px; height:19px; "/>
  375. <caption id="caption1" class="search_name" style="left:7px; top:10px; width:99px; height:17px; ">심결통보일</caption>
  376. <!-- 항목삭제(경북대학교병원) 2011.04.29 김광성
  377. <select id="chk_insukind3" ref="/root/send/send_dataqry/insukind3" overflow="visible" appearance="full" style="left:902px; top:10px; width:45px; height:20px; border-style:none; ">
  378. <choices>
  379. <item>
  380. <label>자보</label>
  381. <value>Y</value>
  382. </item>
  383. </choices>
  384. </select>
  385. <caption id="caption19" class="search_name" style="left:797px; top:10px; width:102px; height:17px; ">자보삭감조회</caption>
  386. <caption id="caption3" style="left:950px; top:10px; width:136px; height:17px; ">(동의일자기준으로 조회)</caption>
  387. -->
  388. <caption id="caption3" class="search_name" style="left:775px; top:9px; width:170px; height:17px; ">최종 확인된 통보일자 :</caption>
  389. <input id="confirm_maxday" ref="/root/main2/confirm/confirmstat/confirm_maxday" disabled="true" format="yyyy-mm-dd" style="left:940px; top:10px; width:95px; height:19px; text-align:center; "/>
  390. <button id="button1" class="btn2_letter4" visibility="visible" style="left:1037px; top:10px; width:64px; height:19px; ">
  391. <caption>확인내역</caption>
  392. <script type="javascript" ev:event="onclick">
  393. <![CDATA[
  394. if (grd_confirmlist.visible == true) {
  395. model.refresh();
  396. grd_confirmlist.visible = false;
  397. }
  398. else {
  399. model.refresh();
  400. submit("TRPIR32005");
  401. grd_confirmlist.visible = true;
  402. }
  403. ]]>
  404. </script>
  405. </button>
  406. </group>
  407. <group id="group3" scroll="auto" style="left:0px; top:44px; width:1190px; height:691px; ">
  408. <switch id="swt_aipmmngt" style="left:0px; top:31px; width:1190px; height:660px; ">
  409. <case id="case3" style="left:0px; top:0px; width:1188px; height:655px; ">
  410. <datagrid id="grd_rsltqry" nodeset="/root/main/list01/gridrsltqry" class="datagrid2" autoresize="true" caption="통보월^진료과코드^진료과명^현소속과^교수명^원내삭감액&#xA;①^원외삭감액&#xA;②^총삭감액&#xA;①+②^이의신청회수액&#xA;③^실삭감액&#xA;①+②-③^확인일자^사번^교수구분" colsep="^" colwidth="59, 28, 130, 122, 91, 99, 89, 100, 106, 123, 71, 61, 100" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="true" style="left:0px; top:7px; width:1185px; height:639px; vertical-align:middle; ">
  411. <col ref="notimm" format="yyyy-mm" style="text-align:center; "/>
  412. <col ref="orddeptcd" visibility="hidden" style="left:20px; top:52px; width:57px; height:23px; text-align:center; "/>
  413. <col ref="orddeptnm" style="text-align:center; "/>
  414. <col ref="orddeptnm1" visibility="hidden" style="text-align:center; "/>
  415. <col ref="orddridnm" style="text-align:center; "/>
  416. <col ref="adjtamt_in" format="(-)#,###" style="text-align:right; "/>
  417. <col ref="adjtamt_out" format="(-)#,###" style="text-align:right; "/>
  418. <col ref="adjtamt" format="(-)#,###" style="text-align:right; "/>
  419. <col ref="deciamt" format="(-)#,###" style="text-align:right; "/>
  420. <col ref="realcutamt" format="(-)#,###" style="text-align:right; "/>
  421. <col ref="confirmdd" format="yyyy-mm-dd" style="text-align:center; "/>
  422. <col ref="orddrid" style="text-align:center; "/>
  423. <col ref="jobposcd" style="text-align:center; "/>
  424. <script type="javascript" ev:event="ondblclick">
  425. <![CDATA[
  426. var curr_row = grd_rsltqry.row;
  427. var orddeptcd = grd_rsltqry.valueMatrix(curr_row, grd_rsltqry.colRef("orddeptcd"));
  428. var orddrid = grd_rsltqry.valueMatrix(curr_row, grd_rsltqry.colRef("orddrid"));
  429. model.setValue("/root/send/send_docu/orddeptcd", orddeptcd);
  430. model.setValue("/root/send/send_docu/orddrid", orddrid);
  431. model.setValue("/root/send/send_docu/fromobtappdd", model.getValue("/root/send/send_dataqry/fromobtappdd"));
  432. model.setValue("/root/send/send_docu/toobtappdd", model.getValue("/root/send/send_dataqry/toobtappdd"));
  433. model.setValue("/root/send/send_docu/chosflag", model.getValue("/root/send/send_dataqry/chosflag"));
  434. model.setValue("/root/send/send_docu/obtapprsltendflag", model.getValue("/root/send/send_dataqry/obtapprsltendflag"));
  435. model.setValue("/root/send/send_docu/insukind3", model.getValue("/root/send/send_dataqry/insukind3"));
  436. if (orddrid == "총합계"){
  437. model.setValue("/root/send/send_docu/selgubun", "A"); // 총합계 클릭하면 전체 환자가 조회된다.
  438. }else{
  439. model.setValue("/root/send/send_docu/selgubun", "D"); // 그 외에는 진료과별 환자가 조회된다.
  440. }
  441. if (model.getValue("/root/send/send_docu/orddrid") != "") {
  442. btn_mngt.selected= true;
  443. btn_mngt.dispatch("xforms-activate");
  444. model.removeNodeset("/root/main/list02/griddocu");
  445. model.resetInstanceNode("/root/main/list02");
  446. model.refresh();
  447. // 의사별 삭감처방조회
  448. if (ipt_fromobtappdd.value < "20120701") { // 2012년 7월 이전 조회 (TRPIR32001)
  449. submit("TRPIR32001");
  450. } else { // 2012년 7월 이후 조회 (TRPIR32004)
  451. submit("TRPIR32004");
  452. }
  453. // 합계표시
  454. if( getNodesetCount("/root/main/list02/griddocu/clamno") > 0 ){
  455. griddocu.multiTotals = true;
  456. griddocu.subtotalPosition = "below"
  457. griddocu.subtotal("sum", griddocu.colRef("orddrid"), griddocu.colRef("adjtamt_in"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "의사별 소계", false);
  458. griddocu.subtotal("sum", griddocu.colRef("orddrid"), griddocu.colRef("adjtamt_out"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "의사별 소계", false);
  459. griddocu.subtotal("sum", griddocu.colRef("orddrid"), griddocu.colRef("deciamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "의사별 소계", false);
  460. griddocu.subtotal("sum", griddocu.colRef("orddrid"), griddocu.colRef("realcutamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "의사별 소계", false);
  461. griddocu.subtotal("sum", -1, griddocu.colRef("adjtamt_in"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "총합계", false);
  462. griddocu.subtotal("sum", -1, griddocu.colRef("adjtamt_out"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "총합계", false);
  463. griddocu.subtotal("sum", -1, griddocu.colRef("deciamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "총합계", false);
  464. griddocu.subtotal("sum", -1, griddocu.colRef("realcutamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "총합계", false);
  465. }
  466. }
  467. ]]>
  468. </script>
  469. <script type="javascript" ev:event="onaftersort">
  470. <![CDATA[
  471. grd_rsltqry.gridToInstance();
  472. ]]>
  473. </script>
  474. </datagrid>
  475. <line id="line12" class="line_1" style="x1:0px; y1:2px; x2:1188px; y2:2px; "/>
  476. <group id="group4" visibility="hidden" style="left:40px; top:80px; width:560px; height:225px; ">
  477. <datagrid id="datagrid1" nodeset="/root/main2/confirm/rslt" caption="통보일자^청구번호^명일련^심사차수^접수번호^문서번호^줄번호^caption1^caption2^caption3^caption4^caption5^caption7^caption8^caption9^caption10^caption6^caption11" colsep="^" colwidth="82, 100, 76, 76, 100, 61, 57, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:555px; height:195px; ">
  478. <col ref="notidd" format="yyyy-mm-dd" style="text-align:center; "/>
  479. <col ref="clamno" style="text-align:center; "/>
  480. <col ref="docuseqno" style="text-align:center; "/>
  481. <col ref="judgdg" style="text-align:center; "/>
  482. <col ref="acptno" style="text-align:center; "/>
  483. <col ref="docuno"/>
  484. <col ref="lnno" type="input"/>
  485. <col ref="calcseqno" visibility="hidden"/>
  486. <col ref="calcnotidd" visibility="hidden"/>
  487. <col ref="clamseqno" visibility="hidden"/>
  488. <col ref="jradjtresn" visibility="hidden"/>
  489. <col ref="instcd" visibility="hidden"/>
  490. <col ref="clamno" visibility="hidden"/>
  491. <col ref="itemlnno" visibility="hidden"/>
  492. <col ref="calcjudgdg" visibility="hidden"/>
  493. <col ref="caadjtresn" visibility="hidden"/>
  494. <col ref="tbnm" visibility="hidden"/>
  495. <col ref="calcyearseqno" visibility="hidden"/>
  496. </datagrid>
  497. <button id="button3" class="btn1_letter2" style="left:436px; top:198px; width:56px; height:22px; ">
  498. <caption>닫기</caption>
  499. <script type="javascript" ev:event="DOMActivate">
  500. <![CDATA[
  501. group4.visible = false;
  502. ]]>
  503. </script>
  504. </button>
  505. <button id="button6" class="btn4_letter2" style="left:496px; top:198px; width:56px; height:22px; ">
  506. <caption>저장</caption>
  507. <script type="javascript" ev:event="DOMActivate">
  508. <![CDATA[
  509. var update = datagrid1.getUpdateData();
  510. model.setValue("/root/send/datagrid1", update);
  511. submit("TXPIR32001");
  512. ]]>
  513. </script>
  514. </button>
  515. </group>
  516. </case>
  517. <case id="case4" class="sw_box" style="left:0px; top:0px; width:1188px; height:655px; ">
  518. <datagrid id="griddocu" nodeset="/root/main/list02/griddocu" class="datagrid2" allowuserresize="true" autosizemouse="true" caption="진료과명^사번^교수명^구분^환자번호^수진자명^삭감처방^단가&#xA;①^청구일투량&#xA;②&#xA;^청구일수&#xA;③^청구액&#xA;①×②×③^조정일투량^조정일수^원내삭감액&#xA;④^원외삭감액&#xA;⑤^이의신청회수액&#xA;⑥^회수액&#xA;원 삭감통보월^실삭감액&#xA;④+⑤-⑥^보험유형^청구번호^접수번호^명일련^줄^사유^삭감사유^구분^참조란^현 소속과" colsep="^" colwidth="114, 53, 66, 38, 76, 63, 234, 71, 69, 59, 94, 69, 58, 94, 95, 96, 100, 100, 73, 75, 75, 67, 27, 37, 237, 40, 336, 100" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="true" style="left:0px; top:7px; width:1185px; height:644px; vertical-align:middle; ">
  519. <col ref="orddeptcd" style="text-align:center; "/>
  520. <col ref="orddrid" visibility="hidden" style="text-align:center; "/>
  521. <col ref="orddridnm" style="text-align:center; "/>
  522. <col ref="ioflag" type="combo" style="text-align:center; ">
  523. <choices>
  524. <item>
  525. <label>입원</label>
  526. <value>I</value>
  527. </item>
  528. <item>
  529. <label>외래</label>
  530. <value>O</value>
  531. </item>
  532. </choices>
  533. </col>
  534. <col ref="pid" style="text-align:center; "/>
  535. <col ref="patnm" style="text-align:center; "/>
  536. <col ref="calcscorcdnm" style="text-align:left; "/>
  537. <col ref="ediunitcost" format="#,###" style="text-align:right; "/>
  538. <col ref="drugqty" format="#,###" style="text-align:right; "/>
  539. <col ref="dayno" format="#,###" style="text-align:right; "/>
  540. <col ref="ediamt" format="#,###" style="text-align:right; "/>
  541. <col ref="adjtqty" format="#,###" style="text-align:right; "/>
  542. <col ref="adjttotqty" format="#,###" style="text-align:right; "/>
  543. <col ref="adjtamt_in" format="(-)#,###" style="text-align:right; "/>
  544. <col ref="adjtamt_out" format="(-)#,###" style="text-align:right; "/>
  545. <col ref="deciamt" format="(-)#,###" style="text-align:right; "/>
  546. <col ref="decinotiym" style="text-align:center; "/>
  547. <col ref="realcutamt" format="(-)#,###" style="text-align:right; "/>
  548. <col ref="insukind" type="combo">
  549. <choices>
  550. <item>
  551. <label>건강보험</label>
  552. <value>11</value>
  553. </item>
  554. <item>
  555. <label>의료급여</label>
  556. <value>21</value>
  557. </item>
  558. <item>
  559. <label>의료급여</label>
  560. <value>22</value>
  561. </item>
  562. <item>
  563. <label>산재</label>
  564. <value>41</value>
  565. </item>
  566. </choices>
  567. </col>
  568. <col ref="clamno" style="text-align:center; "/>
  569. <col ref="acptno" style="text-align:center; "/>
  570. <col ref="docuseqno" style="text-align:center; "/>
  571. <col ref="edilnno" style="text-align:center; "/>
  572. <col ref="adjtresncd" style="text-align:center; "/>
  573. <col disabled="true" ref="adjtresncd" type="combo" visibility="visible" style="text-align:left; ">
  574. <choices>
  575. <itemset nodeset="/root/init/P0277list/P0277">
  576. <label ref="cdnm"/>
  577. <value ref="cdid"/>
  578. </itemset>
  579. </choices>
  580. </col>
  581. <col ref="jobposcd" type="combo" visibility="hidden">
  582. <choices>
  583. <item>
  584. <label>교수</label>
  585. <value>1782</value>
  586. </item>
  587. <item>
  588. <label/>
  589. <value/>
  590. </item>
  591. </choices>
  592. </col>
  593. <col ref="rem" type="input"/>
  594. <col ref="orddeptcd1" visibility="visible" style="text-align:center; "/>
  595. </datagrid>
  596. <line id="line1" class="line_1" style="x1:0px; y1:2px; x2:1184px; y2:2px; "/>
  597. </case>
  598. <case id="case1">
  599. <line id="line2" class="line_1" style="x1:0px; y1:2px; x2:1184px; y2:2px; "/>
  600. <datagrid id="griddocuall" nodeset="/root/main/list04/griddocuall" class="datagrid2" caption="통보월^교수명^사번^진료과^현 소속과^구분^환자번호^수진자명^처방코드^삭감처방^원내삭감액&#xA;①^원외삭감액&#xA;②^이의신청회수액&#xA;③^회수액&#xA;원 삭감통보월^실삭감액&#xA;①+②-③^보험유형^청구번호^접수번호^명일련^줄^사유^삭감사유" colsep="^" colwidth="60, 60, 45, 115, 115, 38, 76, 63, 86, 234, 94, 95, 96, 100, 100, 73, 75, 75, 67, 27, 37, 237" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="true" style="left:0px; top:7px; width:1185px; height:644px; vertical-align:middle; ">
  601. <col ref="notimm" format="yyyy-mm" style="text-align:center; "/>
  602. <col ref="orddridnm" style="text-align:center; "/>
  603. <col ref="orddrid" visibility="visible" style="text-align:center; "/>
  604. <col ref="orddeptcd" style="text-align:left; "/>
  605. <col ref="orddeptcd1"/>
  606. <col ref="ioflag" type="combo" style="text-align:center; ">
  607. <choices>
  608. <item>
  609. <label>입원</label>
  610. <value>I</value>
  611. </item>
  612. <item>
  613. <label>외래</label>
  614. <value>O</value>
  615. </item>
  616. </choices>
  617. </col>
  618. <col ref="pid" style="text-align:center; "/>
  619. <col ref="patnm" style="text-align:center; "/>
  620. <col ref="snglcalcscorcd"/>
  621. <col ref="calcscorcdnm" style="text-align:left; "/>
  622. <col ref="adjtamt_in" format="(-)#,###" style="text-align:right; "/>
  623. <col ref="adjtamt_out" format="(-)#,###" style="text-align:right; "/>
  624. <col ref="deciamt" format="(-)#,###" style="text-align:right; "/>
  625. <col ref="decinotiym" style="text-align:center; "/>
  626. <col ref="realcutamt" format="(-)#,###" style="text-align:right; "/>
  627. <col ref="insukind" type="combo">
  628. <choices>
  629. <item>
  630. <label>건강보험</label>
  631. <value>11</value>
  632. </item>
  633. <item>
  634. <label>의료급여</label>
  635. <value>21</value>
  636. </item>
  637. <item>
  638. <label>의료급여</label>
  639. <value>22</value>
  640. </item>
  641. <item>
  642. <label>산재</label>
  643. <value>41</value>
  644. </item>
  645. </choices>
  646. </col>
  647. <col ref="clamno" style="text-align:center; "/>
  648. <col ref="acptno" style="text-align:center; "/>
  649. <col ref="docuseqno" style="text-align:center; "/>
  650. <col ref="edilnno" style="text-align:center; "/>
  651. <col ref="adjtresncd" style="text-align:center; "/>
  652. <col disabled="true" ref="adjtresncd" type="combo" visibility="visible" style="text-align:left; ">
  653. <choices>
  654. <itemset nodeset="/root/init/P0277list/P0277">
  655. <label ref="cdnm"/>
  656. <value ref="cdid"/>
  657. </itemset>
  658. </choices>
  659. </col>
  660. </datagrid>
  661. </case>
  662. <case id="case5">
  663. <line id="line3" class="line_1" style="x1:0px; y1:2px; x2:1184px; y2:2px; "/>
  664. <datagrid id="griddocuadjtamt" nodeset="/root/main/list05/griddocuall" class="datagrid2" visibility="visible" caption="통보월^교수명^사번^진료과^현 소속과^구분^환자번호^수진자명^처방코드^삭감처방^원내삭감액&#xA;①^원외삭감액&#xA;②^이의신청회수액&#xA;③^회수액&#xA;원 삭감통보월^실삭감액&#xA;①+②-③^보험유형^청구번호^접수번호^명일련^줄^사유^삭감사유" colsep="^" colwidth="60, 60, 45, 115, 115, 38, 76, 63, 86, 234, 94, 95, 96, 100, 100, 73, 75, 75, 67, 27, 37, 237" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="true" style="left:0px; top:7px; width:1185px; height:644px; vertical-align:middle; ">
  665. <col ref="notimm" format="yyyy-mm" style="text-align:center; "/>
  666. <col ref="orddridnm" style="text-align:center; "/>
  667. <col ref="orddrid" visibility="visible" style="text-align:center; "/>
  668. <col ref="orddeptcd" style="text-align:left; "/>
  669. <col ref="orddeptcd1"/>
  670. <col ref="ioflag" type="combo" style="text-align:center; ">
  671. <choices>
  672. <item>
  673. <label>입원</label>
  674. <value>I</value>
  675. </item>
  676. <item>
  677. <label>외래</label>
  678. <value>O</value>
  679. </item>
  680. </choices>
  681. </col>
  682. <col ref="pid" style="text-align:center; "/>
  683. <col ref="patnm" style="text-align:center; "/>
  684. <col ref="snglcalcscorcd"/>
  685. <col ref="calcscorcdnm" style="text-align:left; "/>
  686. <col ref="adjtamt_in" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
  687. <col ref="adjtamt_out" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
  688. <col ref="deciamt" format="(-)#,###" style="text-align:right; "/>
  689. <col ref="decinotiym" style="text-align:center; "/>
  690. <col ref="realcutamt" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
  691. <col ref="insukind" type="combo" visibility="hidden">
  692. <choices>
  693. <item>
  694. <label>건강보험</label>
  695. <value>11</value>
  696. </item>
  697. <item>
  698. <label>의료급여</label>
  699. <value>21</value>
  700. </item>
  701. <item>
  702. <label>의료급여</label>
  703. <value>22</value>
  704. </item>
  705. <item>
  706. <label>산재</label>
  707. <value>41</value>
  708. </item>
  709. </choices>
  710. </col>
  711. <col ref="clamno" visibility="hidden" style="text-align:center; "/>
  712. <col ref="acptno" visibility="hidden" style="text-align:center; "/>
  713. <col ref="docuseqno" visibility="hidden" style="text-align:center; "/>
  714. <col ref="edilnno" visibility="hidden" style="text-align:center; "/>
  715. <col ref="adjtresncd" visibility="hidden" style="text-align:center; "/>
  716. <col disabled="true" ref="adjtresncd" type="combo" visibility="hidden" style="text-align:left; ">
  717. <choices>
  718. <itemset nodeset="/root/init/P0277list/P0277">
  719. <label ref="cdnm"/>
  720. <value ref="cdid"/>
  721. </itemset>
  722. </choices>
  723. </col>
  724. </datagrid>
  725. </case>
  726. <case id="case6" selected="true" style="left:0px; top:0px; width:1188px; height:655px; ">
  727. <line id="line4" class="line_1" style="x1:0px; y1:2px; x2:1184px; y2:2px; "/>
  728. <datagrid id="datagrid2" nodeset="/root/main/list07/deptitemcutamtlist" class="datagrid2" caption="부서코드^부서명^항목명^합계^합계^합계^합계^합계^입원^입원^입원^입원^입원^외래^외래^외래^외래^외래|부서코드^부서명^항목명^청구진료비^삭감&#xA;건수^삭감액^삭감율^삭감&#xA;구성비^청구진료비^삭감&#xA;건수^삭감액^삭감율^삭감&#xA;구성비^청구진료비^삭감&#xA;건수^삭감액^삭감율^삭감구성비|부서코드^부서명^항목명^청구진료비^삭감&#xA;건수^삭감액^삭감율^삭감&#xA;구성비^청구진료비^삭감&#xA;건수^삭감액^삭감율^삭감&#xA;구성비^청구진료비^삭감&#xA;건수^삭감액^삭감율^삭감구성비" colsep="^" colwidth="26, 141, 80, 100, 40, 85, 45, 45, 100, 40, 85, 45, 45, 100, 40, 85, 45, 45" mergecells="bycol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:7px; width:1185px; height:623px; ">
  729. <col ref="orddeptcd" visibility="hidden"/>
  730. <col ref="orddeptnm"/>
  731. <col disabled="true" ref="clinclrg" type="combo">
  732. <choices>
  733. <item>
  734. <label>전체</label>
  735. <value>-</value>
  736. </item>
  737. <item>
  738. <label>진찰</label>
  739. <value>01</value>
  740. </item>
  741. <item>
  742. <label>입원</label>
  743. <value>02</value>
  744. </item>
  745. <item>
  746. <label>투약</label>
  747. <value>03</value>
  748. </item>
  749. <item>
  750. <label>주사</label>
  751. <value>04</value>
  752. </item>
  753. <item>
  754. <label>마취</label>
  755. <value>05</value>
  756. </item>
  757. <item>
  758. <label>이학</label>
  759. <value>06</value>
  760. </item>
  761. <item>
  762. <label>정신</label>
  763. <value>07</value>
  764. </item>
  765. <item>
  766. <label>수술</label>
  767. <value>08</value>
  768. </item>
  769. <item>
  770. <label>검사</label>
  771. <value>09</value>
  772. </item>
  773. <item>
  774. <label>방사선</label>
  775. <value>10</value>
  776. </item>
  777. <item>
  778. <label>특수</label>
  779. <value>SS</value>
  780. </item>
  781. <item>
  782. <label>Pet CT</label>
  783. <value>PCT</value>
  784. </item>
  785. <item>
  786. <label>CT</label>
  787. <value>CT</value>
  788. </item>
  789. <item>
  790. <label>혈액</label>
  791. <value>BLD</value>
  792. </item>
  793. <item>
  794. <label>기타</label>
  795. <value>ETC</value>
  796. </item>
  797. <item>
  798. <label>정액</label>
  799. <value>ZZ</value>
  800. </item>
  801. <item>
  802. <label>소계</label>
  803. <value>소계</value>
  804. </item>
  805. </choices>
  806. </col>
  807. <col ref="ediamta" format="#,###" style="text-align:right; "/>
  808. <col ref="cutcnta" format="#,###" style="text-align:right; "/>
  809. <col ref="realcutamta" format="#,###" style="text-align:right; "/>
  810. <col ref="cutpera" format="#,###.00" style="text-align:right; "/>
  811. <col ref="cuttotpera" format="#,###.00" style="text-align:right; "/>
  812. <col ref="ediamti" format="#,###" style="text-align:right; "/>
  813. <col ref="cutcnti" format="#,###" style="text-align:right; "/>
  814. <col ref="realcutamti" format="#,###" style="text-align:right; "/>
  815. <col ref="cutperi" format="#,###.00" style="text-align:right; "/>
  816. <col ref="cuttotperi" format="#,###.00" style="text-align:right; "/>
  817. <col ref="ediamto" format="#,###" style="text-align:right; "/>
  818. <col ref="cutcnto" format="#,###" style="text-align:right; "/>
  819. <col ref="realcutamto" format="#,###" style="text-align:right; "/>
  820. <col ref="cutpero" format="#,###.00" style="text-align:right; "/>
  821. <col ref="cuttotpero" format="#,###.00" style="text-align:right; "/>
  822. <script type="javascript" ev:event="onclick">
  823. <![CDATA[
  824. button3.dispatch("xforms-activate");
  825. button3.selected = true;
  826. ]]>
  827. </script>
  828. </datagrid>
  829. </case>
  830. </switch>
  831. <button id="btn_prescond" class="btn_sw" group="tab" selected="true" style="left:0px; top:10px; width:130px; height:22px; ">
  832. <caption>과별 의사별 삭감</caption>
  833. <toggle case="case3" ev:event="xforms-activate"/>
  834. </button>
  835. <button id="btn_mngt" class="btn_sw" group="tab" selected="false" style="left:131px; top:10px; width:94px; height:22px; ">
  836. <caption>환자별 삭감</caption>
  837. <toggle case="case4" ev:event="xforms-activate"/>
  838. </button>
  839. <caption id="caption6" style="left:680px; top:2px; width:365px; height:28px; font-size:8pt; font-weight:bold; color:#fa0413; background-color:#f5feb8; ">
  840. <![CDATA[** 처방코드별 의사별(삭감처방 PIRHOBTD, 사후처방 PIDHCLOD)로 집계한 자료입니다.
  841. 이의신청마감된 자료기준 **]]>
  842. </caption>
  843. <button id="button7" class="btn2_letter4" style="left:1122px; top:11px; width:64px; height:19px; ">
  844. <caption>엑셀저장</caption>
  845. <script type="javascript" ev:event="DOMActivate">
  846. <![CDATA[
  847. var today = getCurrentDate(); // 엑셀파일이름에오늘날짜를 넣기위해 받아옴
  848. // 그리드 제목을 선택하면 저장이 안된다.
  849. // if (grd_rsltqry.rows == 2) {
  850. // return;
  851. // }
  852. if (btn_prescond.selected == true) {
  853. var fileName = window.fileDialog("save", ",", false, "과별의사별 삭감자료_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  854. if (fileName != "") {
  855. // grd_rsltqry.saveExcel(fileName, "과별의사별 삭감자료", true, true, "", "", "orddeptcd:label"); // (-) 값 오류로 수정함. 2012.08.14 L.E.J
  856. grd_rsltqry.saveExcel(fileName, "sheetname:과별 의사별 삭감자료; colhiddenextend:false; rowhiddenextend:true; exportfalsecols:; exportfalserows:;");
  857. }
  858. } else if (btn_all.selected == true) {
  859. var fileName = window.fileDialog("save", ",", false, "의사별 환자별 삭감자료_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  860. if (fileName != "") {
  861. griddocuall.saveExcel(fileName, "sheetname:의사별 환자별 삭감자료; colhiddenextend:false; rowhiddenextend:true; exportfalsecols:; exportfalserows:; col_6:label;col_16:label;col_22:label;");
  862. }
  863. } else if (btn_mngt.selected == true) {
  864. var fileName = window.fileDialog("save", ",", false, "의사별 삭감처방자료_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  865. if (fileName != "") {
  866. griddocu.saveExcel(fileName, "sheetname:의사별 삭감 처방 자료; colhiddenextend:false; rowhiddenextend:true; exportfalsecols:; exportfalserows:;");
  867. }
  868. } else if (button5.selected == true){
  869. var fileName = window.fileDialog("save", ",", false, "의사별 삭감처방자료_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  870. if (fileName != "") {
  871. griddocuadjtamt.saveExcel(fileName, "sheetname:의사별 삭감 처방 자료; colhiddenextend:false; rowhiddenextend:true; exportfalsecols:; exportfalserows:;");
  872. }
  873. } else {
  874. var fileName = window.fileDialog("save", ",", false, "의사별 삭감처방자료_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  875. if (fileName != "") {
  876. datagrid2.saveExcel(fileName, "sheetname:의사별 삭감 처방 자료; colhiddenextend:false; rowhiddenextend:true; exportfalsecols:; exportfalserows:;col_2:label;col_3:label;");
  877. }
  878. }
  879. ]]>
  880. </script>
  881. </button>
  882. <button id="btn_confirm" class="btn2_letter4" style="left:1056px; top:11px; width:64px; height:19px; text-align:left; ">
  883. <caption>확인완료</caption>
  884. <script type="javascript" ev:event="DOMActivate">
  885. <![CDATA[
  886. // 확인 완료 전 체크 항목 1. 조회 건수 점검
  887. if ( getNodesetCount("/root/main/list01/gridrsltqry/orddeptcd") == 0 ) {
  888. alert("삭감내역을 조회한 후 확인완료 하십시요");
  889. model.setFocus("btn_search");
  890. return false;
  891. }
  892. // 확인 완료 전 체크 항목 2. 확인 완료 점검
  893. var confirm_yn = model.getValue("/root/mamain2/confirm/confirmstat/nfirm_yn");
  894. if (confirm_yn == "Y" ) {
  895. alert("이미 확인 완료된 일자입니다. 확인하세요");
  896. model.setFocus("ipt_fromobtappdd");
  897. return false;
  898. }
  899. // 확인 완료 전 체크 항목 3. 확인 완료는 월단위로 가능함. 조회 시작일자와 종료일자 점검.
  900. var fromdd = model.getValue("/root/send/send_dataqry/fromobtappdd");
  901. var todd = model.getValue("/root/send/send_dataqry/toobtappdd");
  902. var fromyear = fromdd.substr(0,4);
  903. var frommonth = fromdd.substr(4,2);
  904. var firstday = fromyear+frommonth+'01' // 조회 월의 시작일자
  905. var lastday = fromyear+frommonth+new Date(new Date(fromyear, frommonth, 1)-86400000).getDate(); // 조회 월의 마지막일자
  906. var minfromdd = model.getValue("/root/main/list01/gridrsltqry[1]/minfromdd"); // 조회 결과값의 최초 시작일자
  907. var maxtodd = model.getValue("/root/main/list01/gridrsltqry[1]/maxtodd"); // 조회 결과값의 최종 종료일자
  908. if (fromdd != firstday ) {
  909. alert("확인 완료는 월단위로 가능합니다. 시작일자를 변경하세요");
  910. model.setFocus("ipt_fromobtappdd");
  911. return false;
  912. }
  913. if (todd != lastday ) {
  914. alert("확인 완료는 월단위로 가능합니다. 종료일자를 변경하세요");
  915. model.setFocus("ipt_toobtappdd");
  916. return false;
  917. }
  918. if (minfromdd != firstday ) {
  919. alert("실제 조회 결과값의 조회 시작일자가 확인 완료 조건과 다릅니다. 다시 조회하세요");
  920. model.setFocus("btn_search");
  921. return false;
  922. }
  923. if (maxtodd != lastday ) {
  924. alert("실제 조회 결과값의 조회 종료일자가 확인 완료 조건과 다릅니다. 다시 조회하세요");
  925. model.setFocus("btn_search");
  926. return false;
  927. }
  928. submit("TXPIR32000");
  929. fObtAppList();
  930. ]]>
  931. </script>
  932. </button>
  933. <button id="btn_all" class="btn_sw" group="tab" selected="false" style="left:226px; top:10px; width:144px; height:22px; ">
  934. <caption>진료과별 환자별 삭감</caption>
  935. <toggle case="case1" ev:event="xforms-activate"/>
  936. <script type="javascript" ev:event="DOMActivate">
  937. <![CDATA[
  938. if( getNodesetCount("/root/main/list04/griddocuall/clamno") > 0 ){
  939. var ans = messageBox("이미 조회된 자료가 있습니다. 재 조회", "S001"); /// 조회된 모든 심사중 상태 *건을 해제 하시려면 예(Yes)\n아니면 아니오(No)
  940. if (ans == 6) { // return : yes=6, no=7
  941. fGridDocuAll();
  942. }
  943. } else {
  944. fGridDocuAll();
  945. }
  946. ]]>
  947. </script>
  948. </button>
  949. <button id="button5" class="btn_sw" group="tab" selected="false" style="left:370px; top:10px; width:144px; height:22px; ">
  950. <caption>진료과별 환자별 회수액</caption>
  951. <toggle case="case5" ev:event="xforms-activate"/>
  952. <script type="javascript" ev:event="DOMActivate">
  953. <![CDATA[
  954. if( getNodesetCount("/root/main/list05/griddocuall/clamno") > 0 ){
  955. var ans = messageBox("이미 조회된 자료가 있습니다. 재 조회", "S001"); /// 조회된 모든 심사중 상태 *건을 해제 하시려면 예(Yes)\n아니면 아니오(No)
  956. if (ans == 6) { // return : yes=6, no=7
  957. fGridDocuAdjtamt();
  958. }
  959. } else {
  960. fGridDocuAdjtamt();
  961. }
  962. ]]>
  963. </script>
  964. </button>
  965. <button id="button8" class="btn_sw" group="tab" selected="false" style="left:514px; top:10px; width:144px; height:22px; ">
  966. <caption>진료과별 항목별</caption>
  967. <toggle case="case6" ev:event="xforms-activate"/>
  968. <script type="javascript" ev:event="DOMActivate">
  969. <![CDATA[
  970. if( getNodesetCount("/root/main/list07/deptitemcutamtlist") > 0 ){
  971. var ans = messageBox("이미 조회된 자료가 있습니다. 재 조회", "S001"); /// 조회된 모든 심사중 상태 *건을 해제 하시려면 예(Yes)\n아니면 아니오(No)
  972. if (ans == 6) { // return : yes=6, no=7
  973. fGridDocuItemamt();
  974. }
  975. } else {
  976. fGridDocuItemamt();
  977. }
  978. ]]>
  979. </script>
  980. </button>
  981. </group>
  982. </group>
  983. <group id="grp_btn" style="left:0px; top:757px; width:1194px; height:27px; ">
  984. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  985. <button id="button4" class="btn4_letter2" style="left:1135px; top:2px; width:56px; height:22px; ">
  986. <caption>닫기</caption>
  987. <close ev:event="DOMActivate"/>
  988. </button>
  989. <button id="btn_init" class="btn4_letter3" navindex="22" style="left:1067px; top:2px; width:68px; height:22px; ">
  990. <caption>초기화</caption>
  991. <script type="javascript" ev:event="DOMActivate">
  992. <![CDATA[
  993. fInitialize();
  994. ]]>
  995. </script>
  996. </button>
  997. <button id="button2" class="btn4_letter5" navindex="22" style="left:957px; top:2px; width:68px; height:22px; ">
  998. <caption>의사개인별</caption>
  999. <script type="javascript" ev:event="DOMActivate">
  1000. <![CDATA[
  1001. modal("SMPIR32100", 1, 1, 1, "SMPIR32100", "/root/send/send_docu", "/root/send/send_docu");
  1002. ]]>
  1003. </script>
  1004. </button>
  1005. </group>
  1006. <datagrid id="grd_confirmlist" nodeset="/root/main/list03/confirmlist" visibility="hidden" caption="시작일자^종료일자^확인일자^확인심사자" colsep="^" colwidth="100, 100, 120, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:610px; top:145px; width:425px; height:385px; ">
  1007. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1008. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  1009. <col ref="confirmdt" format="yyyy-mm-dd" style="text-align:center; "/>
  1010. <col ref="confirmnm" style="text-align:center; "/>
  1011. <script type="javascript" ev:event="ondblclick">
  1012. <![CDATA[
  1013. var row = grd_confirmlist.selectedRow(0);
  1014. var fromdd = grd_confirmlist.textmatrix(row, grd_confirmlist.colRef("fromdd")); // 시작일자
  1015. var todd = grd_confirmlist.textmatrix(row, grd_confirmlist.colRef("todd")); // 종료일자
  1016. model.setValue( "/root/send/send_dataqry/fromobtappdd",fromdd);
  1017. model.setValue( "/root/send/send_dataqry/toobtappdd",todd);
  1018. model.setValue( "/root/send/send_dataqry/chosflag","1");
  1019. model.setValue( "/root/send/send_dataqry/obtapprsltendflag","1");
  1020. grd_confirmlist.visible = false;
  1021. fObtAppList();
  1022. ]]>
  1023. </script>
  1024. </datagrid>
  1025. </xhtml:body>
  1026. </xhtml:html>