SMPIR32100_의사개인별삭감현황조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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. <list02>
  11. <griddocu>
  12. </griddocu>
  13. </list02>
  14. <confirm>
  15. <confirmstat>
  16. <confirm_yn/>
  17. <confirm_maxday/>
  18. </confirmstat>
  19. </confirm>
  20. </main>
  21. <send>
  22. <send_docu>
  23. <fromobtappdd/>
  24. <toobtappdd/>
  25. <chosflag>1</chosflag>
  26. <obtapprsltendflag>2</obtapprsltendflag>
  27. <orddeptcd/>
  28. <orddrid/>
  29. <insukind3/>
  30. <selgubun>P</selgubun>
  31. </send_docu>
  32. </send>
  33. <init>
  34. <P0277list>
  35. <P0277>
  36. <cdid/>
  37. <cdnm/>
  38. </P0277>
  39. </P0277list>
  40. </init>
  41. <hidden>
  42. <memo/>
  43. </hidden>
  44. </root>
  45. </instance>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  51. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  52. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  53. <submission id="TRPIR32004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_docu" resultref="/root/main/list02"/>
  54. <submission id="TRPIR32002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_docu" resultref="/root/main/confirm"/>
  55. </model>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. fInitialize();
  59. ]]>
  60. </script>
  61. <script type="javascript">
  62. <![CDATA[
  63. // 초기화 작업
  64. function fInitialize() {
  65. var vinstcd = getUserInfo("dutplceinstcd");
  66. //if (vinstcd == "032"){
  67. // alert("칠곡경북대학교병원은 지원되지 않는 기능입니다");
  68. //button4.dispatch("DOMActivate");
  69. //model.close();
  70. // window.close();
  71. //}else {
  72. //날자 입력 항목에 오늘 날자 세팅
  73. //var curDate = getCurrentDate();
  74. //ipt_fromobtappdd.value = curDate;
  75. rdo_chosflag.select(0);
  76. rdo_selgubun.select(0);
  77. model.removeNodeset("/root/main/list02/griddocu");
  78. // 공통코드 가져오기
  79. zbcfGetCodeList(new Array("P0277"), new Array("/root/init/P0277list"));
  80. // 심사팀 최종 확인일자 가져오기
  81. submit("TRPIR32002");
  82. model.setValue("/root/send/send_docu/obtapprsltendflag","2");
  83. model.setValue("/root/send/send_docu/selgubun","P");
  84. var userId = getUserId();
  85. var orddrid = model.getValue("/root/send/send_docu/orddrid");
  86. if (orddrid == ""){
  87. model.setValue("/root/send/send_docu/orddrid",userId);
  88. }
  89. model.refreshpart("/root/main/");
  90. fObtAppList();
  91. // var windowtype = window.type;
  92. // if(windowtype == 'main'){
  93. // rdo_chosflag.select(0);
  94. // rdo_selgubun.select(0);
  95. // var today = getCurrentDate();
  96. // ipt_fromobtappdd.value= today;
  97. // }else{
  98. // }
  99. model.refresh();
  100. //}
  101. }
  102. function fChkSend(){
  103. if (ipt_fromobtappdd.value == "") {
  104. var cmaxday = model.getValue("/root/main/confirm/confirmstat/confirm_maxday");
  105. var nfromdd = cmaxday.substr(0,6)+'01'; // 최종 확인일자의 시작일자
  106. model.setValue("/root/send/send_docu/fromobtappdd",nfromdd);
  107. // alert("조회 월을 입력해 주세요");
  108. // model.setFocus("ipt_fromobtappdd");
  109. // return false;
  110. }
  111. // if (ipt_fromobtappdd.value != "" && ipt_fromobtappdd.value < "201207") {
  112. // alert("2012년 7월 이전은 조회할 수 없습니다 ");
  113. // model.setFocus("ipt_fromobtappdd");
  114. // return false;
  115. // }
  116. return true;
  117. }
  118. function fObtAppList(){
  119. if(fChkSend()){
  120. var from = ipt_fromobtappdd.value
  121. var fromyear = from.substr(0,4);
  122. var frommonth = from.substr(4,2);
  123. var fromobtappdd = fromyear+frommonth+'01' // 조회 월의 시작일자
  124. var toobtappdd = fromyear+frommonth+new Date(new Date(fromyear, frommonth, 1)-86400000).getDate(); // 조회 월의 마지막일자
  125. model.setValue("/root/send/send_docu/fromobtappdd",fromobtappdd);
  126. model.setValue("/root/send/send_docu/toobtappdd",toobtappdd);
  127. model.removeNodeset("/root/main/list02/griddocu");
  128. model.resetInstanceNode("/root/main/list02");
  129. model.refresh();
  130. submit("TRPIR32004");
  131. if( getNodesetCount("/root/main/list02/griddocu/clamno") > 0 ){
  132. griddocu.multiTotals = true;
  133. griddocu.subtotalPosition = "below"
  134. griddocu.subtotal("sum", 2, griddocu.colRef("adjtamt_in"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "의사별 소계", false);
  135. griddocu.subtotal("sum", 2, griddocu.colRef("adjtamt_out"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "의사별 소계", false);
  136. griddocu.subtotal("sum", 2, griddocu.colRef("deciamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "의사별 소계", false);
  137. griddocu.subtotal("sum", 2, griddocu.colRef("realcutamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "의사별 소계", false);
  138. griddocu.subtotal("sum", -1, griddocu.colRef("adjtamt_in"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "총합계", false);
  139. griddocu.subtotal("sum", -1, griddocu.colRef("adjtamt_out"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "총합계", false);
  140. griddocu.subtotal("sum", -1, griddocu.colRef("deciamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "총합계", false);
  141. griddocu.subtotal("sum", -1, griddocu.colRef("realcutamt"), "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", griddocu.colRef("calcscorcdnm"), "총합계", false);
  142. }
  143. }
  144. }
  145. ]]>
  146. </script>
  147. </xhtml:head>
  148. <xhtml:body guideline="1,1199;" style="vertical-align:bottom; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  149. <group id="group1" style="left:0px; top:0px; width:1190px; height:13px; ">
  150. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:265px; height:14px; ">의사 개인별 삭감현황 조회</caption>
  151. </group>
  152. <group id="group6" scroll="auto" style="left:0px; top:13px; width:1195px; height:742px; ">
  153. <group id="group2" style="left:0px; top:3px; width:1195px; height:42px; vertical-align:top; ">
  154. <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; "/>
  155. <line id="line13" class="line_4" style="x1:1025px; y1:6px; x2:1025px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  156. <button id="btn_search" class="btn1_letter3" navindex="3" style="left:1042px; top:6px; width:68px; height:22px; ">
  157. <caption>조 회</caption>
  158. <script type="javascript" ev:event="DOMActivate">
  159. <![CDATA[
  160. fObtAppList();
  161. ]]>
  162. </script>
  163. </button>
  164. <caption id="caption7" class="search_name" style="left:213px; top:10px; width:93px; height:17px; ">내원유형</caption>
  165. <select1 id="rdo_chosflag" ref="/root/send/send_docu/chosflag" class="radio_search" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:299px; top:11px; width:141px; height:15px; background-color:#fffbf2; border-style:none; ">
  166. <choices>
  167. <item>
  168. <label>전체</label>
  169. <value>1</value>
  170. </item>
  171. <item>
  172. <label>입원</label>
  173. <value>2</value>
  174. </item>
  175. <item>
  176. <label>외래</label>
  177. <value>3</value>
  178. </item>
  179. </choices>
  180. </select1>
  181. <input id="ipt_fromobtappdd" ref="/root/send/send_docu/fromobtappdd" class="input_search" navindex="10" inputtype="date" format="yyyy-mm" style="left:90px; top:10px; width:86px; height:19px; ">
  182. <script type="javascript" ev:event="xforms-value-changed">
  183. <![CDATA[
  184. fObtAppList();
  185. ]]>
  186. </script>
  187. </input>
  188. <caption id="caption1" class="search_name" style="left:7px; top:10px; width:99px; height:17px; ">조 회 월</caption>
  189. <button id="btn_excel" class="btn1_letter3" navindex="3" style="left:1112px; top:6px; width:68px; height:22px; ">
  190. <caption>Excel</caption>
  191. <script type="javascript" ev:event="DOMActivate">
  192. <![CDATA[
  193. var today = getCurrentDate(); // 엑셀파일이름에오늘날짜를 넣기위해 받아옴
  194. // 그리드 제목을 선택하면 저장이 안된다.
  195. if (grd_rsltqry.rows == 2) {
  196. return;
  197. }
  198. var fileName = window.fileDialog("save", ",", false, "의사별 삭감처방자료_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  199. if (fileName != "") {
  200. griddocu.saveExcel(fileName, "sheetname:의사별 삭감 처방 자료; colhiddenextend:false; rowhiddenextend:true; exportfalsecols:; exportfalserows:;");
  201. }
  202. ]]>
  203. </script>
  204. </button>
  205. <caption id="caption2" class="search_name" style="left:463px; top:10px; width:93px; height:17px; ">조회구분</caption>
  206. <select1 id="rdo_selgubun" ref="/root/send/send_docu/selgubun" class="radio_search" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:544px; top:11px; width:261px; height:15px; background-color:#fffbf2; border-style:none; ">
  207. <choices>
  208. <item>
  209. <label>개인별 내역 조회</label>
  210. <value>P</value>
  211. </item>
  212. <item>
  213. <label>일반의사 내역 조회</label>
  214. <value>R</value>
  215. </item>
  216. </choices>
  217. <script type="javascript" ev:event="onclick">
  218. <![CDATA[
  219. fObtAppList();
  220. ]]>
  221. </script>
  222. </select1>
  223. <input id="ipt_orddrid" ref="/root/send/send_docu/orddrid" visibility="hidden" style="left:815px; top:10px; width:60px; height:19px; "/>
  224. <input id="ipt_orddeptcd" ref="/root/send/send_docu/orddeptcd" visibility="hidden" style="left:885px; top:10px; width:115px; height:19px; "/>
  225. </group>
  226. <group id="group3" scroll="auto" style="left:0px; top:44px; width:1190px; height:696px; ">
  227. <datagrid id="griddocu" nodeset="/root/main/list02/griddocu" class="datagrid2" caption="진료과명^사번^교수명^구분^환자번호^수진자명^삭감처방^단가&#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, 73, 75, 75, 67, 34, 238, 63, 40" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="true" style="left:0px; top:5px; width:1185px; height:665px; vertical-align:middle; ">
  228. <col ref="orddeptcd" style="text-align:center; "/>
  229. <col ref="orddrid" visibility="hidden" style="text-align:center; "/>
  230. <col ref="orddridnm" style="text-align:center; "/>
  231. <col ref="ioflag" type="combo" style="text-align:center; ">
  232. <choices>
  233. <item>
  234. <label>입원</label>
  235. <value>I</value>
  236. </item>
  237. <item>
  238. <label>외래</label>
  239. <value>O</value>
  240. </item>
  241. </choices>
  242. </col>
  243. <col ref="pid" style="text-align:center; "/>
  244. <col ref="patnm" style="text-align:center; "/>
  245. <col ref="calcscorcdnm" style="text-align:left; "/>
  246. <col ref="ediunitcost" format="#,###" style="text-align:right; "/>
  247. <col ref="drugqty" format="#,###" style="text-align:right; "/>
  248. <col ref="dayno" format="#,###" style="text-align:right; "/>
  249. <col ref="ediamt" format="#,###" style="text-align:right; "/>
  250. <col ref="adjtqty" format="#,###" style="text-align:right; "/>
  251. <col ref="adjttotqty" format="#,###" style="text-align:right; "/>
  252. <col ref="adjtamt_in" format="(-)#,###" style="text-align:right; "/>
  253. <col ref="adjtamt_out" format="(-)#,###" style="text-align:right; "/>
  254. <col ref="deciamt" format="(-)#,###" style="text-align:right; "/>
  255. <col ref="realcutamt" format="(-)#,###" style="text-align:right; "/>
  256. <col ref="clamno" visibility="hidden" style="text-align:center; "/>
  257. <col ref="acptno" visibility="hidden" style="text-align:center; "/>
  258. <col ref="docuseqno" visibility="hidden" style="text-align:center; "/>
  259. <col ref="edilnno" visibility="hidden" style="text-align:center; "/>
  260. <col ref="adjtresncd" style="text-align:center; "/>
  261. <col disabled="true" ref="adjtresncd" type="combo" visibility="visible" style="text-align:left; ">
  262. <choices>
  263. <itemset nodeset="/root/init/P0277list/P0277">
  264. <label ref="cdnm"/>
  265. <value ref="cdid"/>
  266. </itemset>
  267. </choices>
  268. </col>
  269. <col ref="insukind" type="combo">
  270. <choices>
  271. <item>
  272. <label>건강보험</label>
  273. <value>11</value>
  274. </item>
  275. <item>
  276. <label>의료급여</label>
  277. <value>21</value>
  278. </item>
  279. <item>
  280. <label>의료급여</label>
  281. <value>22</value>
  282. </item>
  283. <item>
  284. <label>산재</label>
  285. <value>41</value>
  286. </item>
  287. </choices>
  288. </col>
  289. <col ref="jobposcd" type="combo" visibility="hidden">
  290. <choices>
  291. <item>
  292. <label>교수</label>
  293. <value>1782</value>
  294. </item>
  295. <item>
  296. <label/>
  297. <value/>
  298. </item>
  299. </choices>
  300. </col>
  301. </datagrid>
  302. <line id="line1" class="line_1" style="x1:4px; y1:2px; x2:1184px; y2:2px; "/>
  303. <caption id="caption3" style="left:10px; top:672px; width:628px; height:20px; font-weight:bold; color:#ff0000; ">* 행위청구액 = 단가 × 일투량 × 일수 × 보험유형별 가산 * 재료청구액 = 단가 × 일투량 × 일수</caption>
  304. </group>
  305. </group>
  306. <group id="grp_btn" style="left:0px; top:757px; width:1194px; height:27px; ">
  307. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  308. <button id="button4" class="btn4_letter2" style="left:1135px; top:2px; width:56px; height:22px; ">
  309. <caption>닫기</caption>
  310. <script type="javascript" ev:event="DOMActivate">
  311. <![CDATA[
  312. window.close();
  313. ]]>
  314. </script>
  315. </button>
  316. <button id="btn_init" class="btn4_letter3" navindex="22" style="left:1067px; top:2px; width:68px; height:22px; ">
  317. <caption>초기화</caption>
  318. <script type="javascript" ev:event="DOMActivate">
  319. <![CDATA[
  320. fInitialize();
  321. ]]>
  322. </script>
  323. </button>
  324. </group>
  325. </xhtml:body>
  326. </xhtml:html>