SMPIB01700_심사자분배관리.xrw 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPIB01700_심사자분배관리.xrw
  4. * 수정이력
  5. * - 2008.02.13 / 수정 / 박재형 / 청구구분 값 변경
  6. * - 2008.04.08 / 수정 / 박재형 / 심사구분추가, 심사구분에 따른 청구구분 변경, 화면명변경, 조회확인, 엑셀저장 등.
  7. * - 2008.05.08 / 수정 / 박재형 / 심사구분에 따른 사전, 사후 조건에 따른 조회정리완료, 세부조회 정리완료, 추후 clbs수정되면 쿼리수정요. (프로그램진척율을 80%찍기-창원샘)
  8. -->
  9. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  10. <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">
  11. <xhtml:head>
  12. <xhtml:title>심사자분배관리</xhtml:title>
  13. <model id="model1">
  14. <instance id="instance1">
  15. <root xmlns="">
  16. <main>
  17. <judgkindlist>
  18. <judgkind>
  19. <judgrid/>
  20. <judgrnm/>
  21. <alldivcnt/>
  22. <totordamt/>
  23. <alldivsum/>
  24. <divcntrate/>
  25. <totordamtsum/>
  26. <totordamtrate/>
  27. </judgkind>
  28. </judgkindlist>
  29. <detljudgkindlist>
  30. <detljudgkind>
  31. <judgrid/>
  32. <judgrnm/>
  33. <orddeptcd/>
  34. <orddeptnm/>
  35. <atdoctid/>
  36. <atdoctnm/>
  37. <alldivcnt/>
  38. <totordamt/>
  39. <alldivsum/>
  40. <divcntrate/>
  41. <totordamtsum/>
  42. <totordamtrate/>
  43. </detljudgkind>
  44. </detljudgkindlist>
  45. <orddeptkindlist>
  46. <orddeptkind>
  47. <deptengabbr/>
  48. <orddeptcd/>
  49. <orddeptnm/>
  50. <alldivcnt/>
  51. <totordamt/>
  52. <alldivsum/>
  53. <divcntrate/>
  54. <totordamtsum/>
  55. <totordamtrate/>
  56. </orddeptkind>
  57. </orddeptkindlist>
  58. <detlorddeptkindlist>
  59. <detlorddeptkind>
  60. <orddeptcd/>
  61. <orddeptnm/>
  62. <judgrid/>
  63. <judgrnm/>
  64. <alldivcnt/>
  65. <totordamt/>
  66. <alldivsum/>
  67. <divcntrate/>
  68. <totordamtsum/>
  69. <totordamtrate/>
  70. </detlorddeptkind>
  71. </detlorddeptkindlist>
  72. </main>
  73. <send>
  74. <judgcondlist>
  75. <judgcond>
  76. <allinsukindflag/>
  77. <insukindflag/>
  78. <ioflag/>
  79. <judgment/>
  80. <clamflag/>
  81. <fromdd/>
  82. <degree/>
  83. <todd/>
  84. <degree1/>
  85. <delincl/>
  86. <insukindflagfirst/>
  87. <insukindflagtwo/>
  88. <insukindflagthree/>
  89. <insukindflagfour/>
  90. <insukindflagfive/>
  91. </judgcond>
  92. </judgcondlist>
  93. <judgkindlist>
  94. <judgkind>
  95. <judgrid/>
  96. <judgrnm/>
  97. <alldivcnt/>
  98. <allinsukindflag/>
  99. <insukindflag/>
  100. <ioflag/>
  101. <judgment/>
  102. <clamflag/>
  103. <fromdd/>
  104. <degree/>
  105. <todd/>
  106. <degree1/>
  107. <delincl/>
  108. <insukindflagfirst/>
  109. <insukindflagtwo/>
  110. <insukindflagthree/>
  111. <insukindflagfour/>
  112. <insukindflagfive/>
  113. </judgkind>
  114. </judgkindlist>
  115. <orddeptkindlist>
  116. <orddeptkind>
  117. <orddeptcd/>
  118. <orddeptnm/>
  119. <alldivcnt/>
  120. <allinsukindflag/>
  121. <insukindflag/>
  122. <ioflag/>
  123. <judgment/>
  124. <clamflag/>
  125. <fromdd/>
  126. <degree/>
  127. <todd/>
  128. <degree1/>
  129. <delincl/>
  130. <insukindflagfirst/>
  131. <insukindflagtwo/>
  132. <insukindflagthree/>
  133. <insukindflagfour/>
  134. <insukindflagfive/>
  135. </orddeptkind>
  136. </orddeptkindlist>
  137. <clammonth1>
  138. <clammonth>
  139. <clamflag/>
  140. <month/>
  141. </clammonth>
  142. </clammonth1>
  143. </send>
  144. <init>
  145. <fromdegree>
  146. <degree>
  147. <cdnm/>
  148. <cdid/>
  149. </degree>
  150. </fromdegree>
  151. <todegree>
  152. <degree>
  153. <cdnm/>
  154. <cdid/>
  155. </degree>
  156. </todegree>
  157. </init>
  158. <hidden/>
  159. <temp/>
  160. </root>
  161. </instance>
  162. <script type="javascript" ev:event="xforms-ready">
  163. <![CDATA[
  164. fInitialize();
  165. ]]>
  166. </script>
  167. <submission id="TRPIB01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/judgcondlist/judgcond" resultref="/root/main/judgkindlist"/>
  168. <submission id="TRPIB01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/judgcondlist/judgcond" resultref="/root/main/orddeptkindlist"/>
  169. <submission id="TRPIB01703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/judgkindlist/judgkind" resultref="/root/main/detljudgkindlist"/>
  170. <submission id="TRPIB01704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/orddeptkindlist/orddeptkind" resultref="/root/main/detlorddeptkindlist"/>
  171. <submission id="TRPIB01705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/clammonth1/clammonth" resultref="/root/init/fromdegree"/>
  172. <submission id="TRPIB01706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/clammonth1/clammonth" resultref="/root/init/todegree"/>
  173. </model>
  174. <!-- 기본적으로 많이 사용하는 공통함수-->
  175. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  176. <!-- 아직모르겠음 -->
  177. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  178. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  179. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  180. <!-- 여러가지 코드조회가 가능한 공통함수 코드-->
  181. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  182. <!-- 여러가지 형태의 날짜함수-->
  183. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  184. <!-- 기타 여러가지 필요한 함수를 신청한 공통함수-->
  185. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  186. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  187. <script type="javascript">
  188. <![CDATA[
  189. function fInitialize() {
  190. // 초기화 작업으로 조회부의 각 인스턴스들을 초기화한다.
  191. model.resetInstanceNode("/root/send/judgcondlist/judgcond/allinsukindflag");
  192. model.resetInstanceNode("/root/send/judgcondlist/judgcond/insukindflag");
  193. model.resetInstanceNode("/root/send/judgcondlist/judgcond/ioflag");
  194. model.resetInstanceNode("/root/send/judgcondlist/judgcond/judgment");
  195. model.resetInstanceNode("/root/send/judgcondlist/judgcond/clamflag");
  196. model.resetInstanceNode("/root/send/judgcondlist/judgcond/fromdd");
  197. model.resetInstanceNode("/root/send/judgcondlist/judgcond/degree");
  198. model.resetInstanceNode("/root/send/judgcondlist/judgcond/todd");
  199. model.resetInstanceNode("/root/send/judgcondlist/judgcond/degree1");
  200. model.resetInstanceNode("/root/send/judgcondlist/judgcond/delincl");
  201. // 4개의 그리드를 초기화한다.
  202. model.removeNodeset("/root/main/judgkindlist/judgkind");
  203. model.removeNodeset("/root/main/detljudgkindlist/detljudgkind");
  204. model.removeNodeset("/root/main/orddeptkindlist/orddeptkind");
  205. model.removeNodeset("/root/main/detlorddeptkindlist/detlorddeptkind");
  206. // 20100420 초기값추가
  207. var gToday = new Date();
  208. var gCurrentym = gToday.getDateFormat("YYYYMM")
  209. model.setValue("/root/send/judgcondlist/judgcond/fromdd",gCurrentym);
  210. model.setValue("/root/send/judgcondlist/judgcond/todd",gCurrentym);
  211. model.refresh();
  212. // 초기화작업 후 각 컨트롤들을 기본셋팅한다.
  213. rdo_allinsukindflag.select(0);
  214. rdo_ioflag.select(0);
  215. rdo_judgment.select(1);
  216. rdo_delincl.select(0);
  217. cmb_clamflag.select(0);
  218. }
  219. function fJudgRefChk() {
  220. // 지금하는 작업은 보험유형을 여러조건 선택하였을 경우 하나의 값으로 합쳐지기에
  221. // 그 값을 길이를 계산하여 각각 node를 생성하여 나눠서 담아놓는 작업이다.
  222. var insukindflag = model.getValue("/root/send/judgcondlist/judgcond/insukindflag");
  223. var insukindflaglength = insukindflag.length;
  224. if(insukindflaglength > 1){
  225. // insukindflag의 문자열에서 시작이 0에서 끝이 2인 사이의 문자열을 반환한다.
  226. //var insukindflagfirst = insukindflag.substring(0,2);
  227. var insukindflagfirst = insukindflag.substr(0,2);
  228. // insukindflag의 문자열에서 3번째문자열에서 시작해서 2개의 문자열을 반환한다.
  229. var insukindflagtwo = insukindflag.substr(3,2);
  230. // insukindflag의 문자열에서 6번째문자열에서 시작해서 2개의 문자열을 반환한다.
  231. var insukindflagthree = insukindflag.substr(6,2);
  232. if(insukindflagfirst == '20' || insukindflagtwo == '20' || insukindflagthree == '20'){
  233. model.setValue("/root/send/judgcondlist/judgcond/insukindflagfour", "21");
  234. model.setValue("/root/send/judgcondlist/judgcond/insukindflagfive", "22");
  235. }
  236. model.setValue("/root/send/judgcondlist/judgcond/insukindflagfirst",insukindflagfirst);
  237. model.setValue("/root/send/judgcondlist/judgcond/insukindflagtwo",insukindflagtwo);
  238. model.setValue("/root/send/judgcondlist/judgcond/insukindflagthree",insukindflagthree);
  239. }
  240. // 작업끝
  241. // 각 조회 조건 값들 확인
  242. // fJudgSearchChk();
  243. // case가 심사자인경우
  244. if(case_judgref.selected){
  245. // 기본조건으로 청구차수의 월을 입력했는지 확인하는 작업
  246. if(fClamChk()){
  247. submit("TRPIB01701");
  248. // 심사자 첫번째 그리드의 맨밑에 합계를 위한 row를 생성한다.
  249. grd_judgkind.subtotalPosition = "below";
  250. // 위에서 생성된 각 row를 더한다.
  251. grd_judgkind.subtotal("sum", -1, 3, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  252. grd_judgkind.subtotal("sum", -1, 4, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  253. grd_judgkind.subtotal("sum", -1, 5, "format:#,###; roundmode:ceil; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  254. grd_judgkind.subtotal("sum", -1, 6, "format:#,###; roundmode:ceil; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  255. // 합계row에 "SUM"이라는 글자를 넣기위해 merge를 한다.
  256. grd_judgkind.mergeByFree(grd_judgkind.rows - 1,1,grd_judgkind.rows - 1,2);
  257. // 그리드의 한 셀을 지정하여 셀속성을 정한다.
  258. grd_judgkind.cellStyle("text-align",grd_judgkind.rows - 1,1,grd_judgkind.rows - 1,2) = "center"
  259. var chkroundsumrows = grd_judgkind.rows - 1;
  260. // 사사오입시 100이 나오지 않을 수 있기에 100으로 값을 박는다.
  261. grd_judgkind.valueMatrix(grd_judgkind.rows - 1, 5) = 100;
  262. grd_judgkind.valueMatrix(grd_judgkind.rows - 1, 6) = 100;
  263. return true;
  264. };
  265. }
  266. // case가 진료과인경우
  267. if(case_orddeptref.selected){
  268. // 기본조건으로 청구차수의 월을 입력했는지 확인하는 작업
  269. if(fClamChk()){
  270. submit("TRPIB01702");
  271. grd_orddeptkind.subtotalPosition= "below";
  272. // 위에서 생성된 각 row를 더한다.
  273. grd_orddeptkind.subtotal("sum", -1, 4, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  274. grd_orddeptkind.subtotal("sum", -1, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  275. grd_orddeptkind.subtotal("sum", -1, 6, "format:#,###; roundmode:ceil; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  276. grd_orddeptkind.subtotal("sum", -1, 7, "format:#,###; roundmode:ceil; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  277. // 합계row에 "SUM"이라는 글자를 넣기위해 merge를 한다.
  278. grd_orddeptkind.mergeByFree(grd_orddeptkind.rows - 1,1,grd_orddeptkind.rows - 1,3);
  279. // 그리드의 한 셀을 지정하여 셀속성을 정한다.
  280. grd_orddeptkind.cellStyle("text-align",grd_orddeptkind.rows - 1,1,grd_orddeptkind.rows - 1,2) = "center"
  281. // 사사오입시 100이 나오지 않을 수 있기에 100으로 값을 박는다.
  282. grd_orddeptkind.valueMatrix(grd_orddeptkind.rows - 1, 6) = 100;
  283. grd_orddeptkind.valueMatrix(grd_orddeptkind.rows - 1, 7) = 100;
  284. return true;
  285. };
  286. }
  287. }
  288. function fJudgSearchChk(){
  289. var fromdd = model.getValue("/root/send/judgcondlist/judgcond/fromdd");
  290. var todd = model.getValue("/root/send/judgcondlist/judgcond/todd");
  291. var currentdate = getCurrentDate();
  292. var currentdatemonth = currentdate.substr(1,4);
  293. // 청구차수 시작월을 입력하지 않았을경우 오늘날짜의 월로 맞춘다.
  294. if(fromdd == ""){
  295. model.setValue("/root/send/judgcondlist/judgcond/fromdd",currentdatemonth);
  296. fromdd = currentdatemonth;
  297. }
  298. // 청구종료일자를 입력하지 않았을경우 청구차수 시작월과 맞춰서 셋팅한다.
  299. if (todd == ""){
  300. var fromdd = model.getValue("/root/send/judgcondlist/judgcond/fromdd");
  301. model.setValue("/root/send/judgcondlist/judgcond/todd",fromdd);
  302. todd = fromdd;
  303. }
  304. }
  305. function fClamChk(){
  306. var fromdd = model.getValue("/root/send/judgcondlist/judgcond/fromdd");
  307. var todd = model.getValue("/root/send/judgcondlist/judgcond/todd");
  308. var judgment = model.getValue("/root/send/judgcondlist/judgcond/judgment");
  309. if(judgment == 'A'){
  310. if(fromdd == "" && todd == ""){
  311. messageBox("청구차수의 조회월을","C001");
  312. return false;
  313. }
  314. if(fromdd == "" && todd != ""){
  315. messageBox("청구차수의 시작월을","C001");
  316. return false;
  317. }
  318. if(fromdd != "" && todd == ""){
  319. messageBox("청구차수의 종료월을","C001");
  320. return false;
  321. }
  322. }
  323. return true;
  324. }
  325. ]]>
  326. </script>
  327. </xhtml:head>
  328. <xhtml:body scroll="auto" guideline="1,1211;2,783;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  329. <group id="group1" style="left:0px; top:0px; width:1211px; height:13px; ">
  330. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:150px; height:13px; ">심사자배분현황관리</caption>
  331. </group>
  332. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1211px; height:769px; ">
  333. <group id="group2" style="left:0px; top:8px; width:1211px; height:64px; vertical-align:top; ">
  334. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:3px; width:1210px; height:59px; "/>
  335. <caption id="caption2" class="search_name" style="left:36px; top:11px; width:106px; height:17px; ">보 험 유 형 :</caption>
  336. <button id="button1" class="btn1_letter2" style="left:1126px; top:20px; width:56px; height:22px; ">
  337. <caption>조회</caption>
  338. <script type="javascript" ev:event="DOMActivate">
  339. <![CDATA[
  340. fJudgRefChk();
  341. ]]>
  342. </script>
  343. </button>
  344. <line id="line13" class="line_4" style="x1:1095px; y1:15px; x2:1095px; y2:49px; "/>
  345. <caption id="caption7" class="search_name" style="left:36px; top:38px; width:106px; height:17px; ">청 구 구 분 :</caption>
  346. <select id="chk_insukindflag" ref="/root/send/judgcondlist/judgcond/insukindflag" overflow="visible" appearance="full" cols="5" style="left:210px; top:12px; width:173px; height:16px; border-style:none; ">
  347. <choices>
  348. <item>
  349. <label>보험</label>
  350. <value>11</value>
  351. </item>
  352. <item>
  353. <label>보호</label>
  354. <value>20</value>
  355. </item>
  356. <item>
  357. <label>자보</label>
  358. <value>31</value>
  359. </item>
  360. <item>
  361. <label>산재</label>
  362. <value>41</value>
  363. </item>
  364. </choices>
  365. <script type="javascript" ev:event="xforms-select">
  366. <![CDATA[
  367. // 보험유형의 개별적으로 선택되었으면 '전체'를 선택해제한다.
  368. var select = model.getValue("/root/send/judgcondlist/judgcond/insukindflag");
  369. if(select != ""){
  370. rdo_allinsukindflag.deselect();
  371. //rdo_allinsukindflag.disabled= true;
  372. }
  373. //보험유형의 길이를 재서 4개를 다 선택한 11자리가 되면 모두를 비선택하고 전체를 선택하게 한다.
  374. var selectlength = select.length;
  375. // 보험유형이 모두 선택을 누르면 개별보험유형은 초기화시키고 '전체'를 선택시킨다.
  376. if(selectlength == 11){
  377. model.resetInstanceNode("/root/send/judgcondlist/judgcond/insukindflag");
  378. rdo_allinsukindflag.select(0);
  379. rdo_allinsukindflag.disabled= false;
  380. }
  381. // if(select == "11 20 31 41"){
  382. // model.resetInstanceNode("/root/send/judgcondlist/judgcond/insukindflag");
  383. // rdo_allinsukindflag.select(0);
  384. // rdo_allinsukindflag.disabled= false;
  385. // }
  386. ]]>
  387. </script>
  388. <script type="javascript" ev:event="xforms-deselect">
  389. <![CDATA[
  390. // 개별 보험유형이 하나도 선택되지 않았을경우 '전체'를 선택시키도록한다.
  391. var select = model.getValue("/root/send/judgcondlist/judgcond/insukindflag");
  392. if(select == ""){
  393. rdo_allinsukindflag.select(0);
  394. rdo_allinsukindflag.disabled= false;
  395. }
  396. ]]>
  397. </script>
  398. </select>
  399. <caption id="caption1" class="search_name" style="left:480px; top:10px; width:142px; height:17px; ">입 원 외 래 구 분 :</caption>
  400. <select1 id="rdo_ioflag" ref="/root/send/judgcondlist/judgcond/ioflag" appearance="full" cols="3" overflow="visible" style="left:635px; top:12px; width:95px; height:15px; border-style:none; ">
  401. <choices>
  402. <item>
  403. <label>입원</label>
  404. <value>I</value>
  405. </item>
  406. <item>
  407. <label>외래</label>
  408. <value>O</value>
  409. </item>
  410. </choices>
  411. <script type="javascript" ev:event="xforms-select">
  412. <![CDATA[
  413. var ioflag = model.getValue("/root/send/judgcondlist/judgcond/ioflag");
  414. if(ioflag == "O"){
  415. rdo_judgment.select(1);
  416. rdo_judgment.disabled = true;
  417. }else{
  418. rdo_judgment.disabled = false;
  419. }
  420. ]]>
  421. </script>
  422. </select1>
  423. <input id="ipt_fromdd" ref="/root/send/judgcondlist/judgcond/fromdd" inputtype="date" format="yyyy-mm" style="left:445px; top:37px; width:80px; height:19px; vertical-align:middle; ">
  424. <script type="javascript" ev:event="xforms-value-changed">
  425. <![CDATA[
  426. var clamflag = model.getValue("/root/send/judgcondlist/judgcond/clamflag");
  427. var frommonth = model.getValue("/root/send/judgcondlist/judgcond/fromdd");
  428. if(clamflag == ""){
  429. messagebox("청구구분을","C001");
  430. }else if(frommonth == ""){
  431. messagebox("청구차수 시작월을","C001");
  432. } else {
  433. model.setValue("/root/send/clammonth1/clammonth/clamflag",clamflag);
  434. model.setValue("/root/send/clammonth1/clammonth/month",frommonth);
  435. submit("TRPIB01705");
  436. }
  437. ]]>
  438. </script>
  439. </input>
  440. <input id="ipt_todd" ref="/root/send/judgcondlist/judgcond/todd" inputtype="date" format="yyyy-mm" style="left:619px; top:37px; width:80px; height:19px; ">
  441. <script type="javascript" ev:event="xforms-value-changed">
  442. <![CDATA[
  443. var clamflag = model.getValue("/root/send/judgcondlist/judgcond/clamflag");
  444. var tomonth = model.getValue("/root/send/judgcondlist/judgcond/todd");
  445. if(clamflag == ""){
  446. messagebox("청구구분을","C001");
  447. } else if(tomonth == ""){
  448. messagebox("청구차수 종료월을","C001");
  449. }else{
  450. model.setValue("/root/send/clammonth1/clammonth/clamflag",clamflag);
  451. model.setValue("/root/send/clammonth1/clammonth/month",tomonth);
  452. submit("TRPIB01706");
  453. }
  454. ]]>
  455. </script>
  456. </input>
  457. <caption id="caption4" style="left:602px; top:37px; width:12px; height:19px; ">~</caption>
  458. <select1 id="rdo_allinsukindflag" ref="/root/send/judgcondlist/judgcond/allinsukindflag" appearance="full" overflow="visible" style="left:154px; top:12px; width:45px; height:15px; border-style:none; ">
  459. <choices>
  460. <item>
  461. <label>전체</label>
  462. <value>_</value>
  463. </item>
  464. </choices>
  465. <script type="javascript" ev:event="xforms-select">
  466. <![CDATA[
  467. // '전체'를 선택하였을 경우 개별 보험유형을 선택해제한다.
  468. chk_insukindflag.deselect(0);
  469. chk_insukindflag.deselect(1);
  470. chk_insukindflag.deselect(2);
  471. chk_insukindflag.deselect(3);
  472. ]]>
  473. </script>
  474. </select1>
  475. <caption id="caption5" class="search_name" style="left:855px; top:38px; width:106px; height:17px; ">삭 제 건 수 :</caption>
  476. <select1 id="rdo_delincl" ref="/root/send/judgcondlist/judgcond/delincl" appearance="full" cols="2" overflow="visible" style="left:975px; top:39px; width:87px; height:15px; border-style:none; ">
  477. <choices>
  478. <item>
  479. <label>제외</label>
  480. <value>I</value>
  481. </item>
  482. <item>
  483. <label>포함</label>
  484. <value>D</value>
  485. </item>
  486. </choices>
  487. </select1>
  488. <caption id="caption8" class="search_name" style="left:855px; top:9px; width:108px; height:17px; ">심 사 구 분 :</caption>
  489. <select1 id="rdo_judgment" ref="/root/send/judgcondlist/judgcond/judgment" appearance="full" cols="3" overflow="visible" style="left:975px; top:10px; width:95px; height:15px; border-style:none; ">
  490. <choices>
  491. <item>
  492. <label>사전</label>
  493. <value>B</value>
  494. </item>
  495. <item>
  496. <label>사후</label>
  497. <value>A</value>
  498. </item>
  499. </choices>
  500. <script type="javascript" ev:event="xforms-select">
  501. <![CDATA[
  502. // 심사구분에 따라 청구구분 cmb_judgflag, cmb_judgflag2의 visible, disabled를 변경한다.
  503. var judgment = model.getValue("/root/send/judgcondlist/judgcond/judgment");
  504. if (judgment == 'B'){
  505. cmb_clamflag.disabled= true;
  506. ipt_fromdd.disabled= true;
  507. cmb_degree.disabled= true;
  508. ipt_todd.disabled= true;
  509. cmb_degree1.disabled = true;
  510. rdo_delincl.disabled = true;
  511. } else {
  512. cmb_clamflag.disabled= false;
  513. ipt_fromdd.disabled= false;
  514. cmb_degree.disabled= false;
  515. ipt_todd.disabled= false;
  516. cmb_degree1.disabled = false;
  517. rdo_delincl.disabled = false;
  518. }
  519. ]]>
  520. </script>
  521. </select1>
  522. <!-- 수정이력 : 2008.04.08 : 박재형 : P0121코드참조 재원, 사후구분하여 재원따로 사후는 원청구에 정상(0),분리(3)적용하고 보완청구에 보완(1), 추가청구에 추가(2)적용시킨다. -->
  523. <!-- 수정이력 ; 2008.04.10 : 박재형 : 청구서상의 청구방법으로 하여야 하여 심사구분이 사전일때는 비활성, 사후일때는 활성으로 전체, 원, 누락원, 보완, 추가 청구로 한다. -->
  524. <select1 id="cmb_clamflag" ref="/root/send/judgcondlist/judgcond/clamflag" appearance="minimal" style="left:153px; top:37px; width:97px; height:19px; vertical-align:middle; ">
  525. <choices>
  526. <item>
  527. <label>전체</label>
  528. <value>-</value>
  529. </item>
  530. <item>
  531. <label>원(분리)청구</label>
  532. <value>0</value>
  533. </item>
  534. <item>
  535. <label>보완청구</label>
  536. <value>1</value>
  537. </item>
  538. <item>
  539. <label>추가청구</label>
  540. <value>2</value>
  541. </item>
  542. <item>
  543. <label>누락청구</label>
  544. <value>4</value>
  545. </item>
  546. </choices>
  547. </select1>
  548. <caption id="caption3" class="search_name" style="left:336px; top:38px; width:106px; height:17px; ">청 구 차 수 :</caption>
  549. <select1 id="cmb_degree" ref="/root/send/judgcondlist/judgcond/degree" class="combo_search" appearance="minimal" style="left:527px; top:37px; width:70px; height:19px; ">
  550. <choices>
  551. <itemset nodeset="/root/init/fromdegree/degree">
  552. <label ref="cdnm"/>
  553. <value ref="cdid"/>
  554. </itemset>
  555. </choices>
  556. <script type="javascript" ev:event="DOMFocusIn">
  557. <![CDATA[
  558. // var clamflag = model.getValue("/root/send/judgcondlist/judgcond/clamflag");
  559. // var frommonth = model.getValue("/root/send/judgcondlist/judgcond/fromdd");
  560. //
  561. // if(clamflag == ""){
  562. // messagebox("청구구분을","C001");
  563. // }else if(frommonth == ""){
  564. // messagebox("청구차수 시작월을","C001");
  565. // } else {
  566. //
  567. // model.setValue("/root/send/clammonth1/clammonth/clamflag",clamflag);
  568. // model.setValue("/root/send/clammonth1/clammonth/month",frommonth);
  569. //
  570. // submit("TRPIB01705");
  571. // }
  572. ]]>
  573. </script>
  574. </select1>
  575. <select1 id="cmb_degree1" ref="/root/send/judgcondlist/judgcond/degree1" class="combo_search" appearance="minimal" style="left:701px; top:37px; width:70px; height:19px; ">
  576. <choices>
  577. <itemset nodeset="/root/init/todegree/degree">
  578. <label ref="cdnm"/>
  579. <value ref="cdid"/>
  580. </itemset>
  581. </choices>
  582. <script type="javascript" ev:event="DOMFocusIn">
  583. <![CDATA[
  584. // var clamflag = model.getValue("/root/send/judgcondlist/judgcond/clamflag");
  585. // var tomonth = model.getValue("/root/send/judgcondlist/judgcond/todd");
  586. //
  587. // if(clamflag == ""){
  588. // messagebox("청구구분을","C001");
  589. // } else if(tomonth == ""){
  590. // messagebox("청구차수 종료월을","C001");
  591. // }else{
  592. // model.setValue("/root/send/clammonth1/clammonth/clamflag",clamflag);
  593. // model.setValue("/root/send/clammonth1/clammonth/month",tomonth);
  594. //
  595. // submit("TRPIB01706");
  596. // }
  597. ]]>
  598. </script>
  599. </select1>
  600. </group>
  601. <button id="btn_clspcd" class="btn_sw" group="tab" selected="true" style="left:0px; top:82px; width:85px; height:22px; ">
  602. <caption>심사자별</caption>
  603. <!--
  604. <toggle case="case_spcl" ev:event="onclick"/>
  605. -->
  606. <script type="javascript" ev:event="DOMActivate">
  607. <![CDATA[
  608. // if (case_judgref.selected) { // 기존에 이미 선택되어 있는 tab인데 해당 tab을 다시 선택한 경우
  609. // if (swt_spclmemo.attribute("height") == "608") { // 세로로 확대된 창을 원래대로 한다.
  610. // swt_spclmemo.attribute("height") = "173";
  611. // grd_clsphist.attribute("height") = "165";
  612. // tar_judgrmk.attribute("height") = "130";
  613. // tar_edirmk.attribute("height") = "130";
  614. // } else { // textarea를 세로로 확대시킨다.
  615. // swt_spclmemo.attribute("height") = "608";
  616. // grd_clsphist.attribute("height") = "588";
  617. // tar_judgrmk.attribute("height") = "568";
  618. // tar_edirmk.attribute("height") = "568";
  619. // }
  620. // } else { // 기존에 선택되지 않은 tab인 경우
  621. // swt_spclmemo.attribute("height") = "608";
  622. // grd_clsphist.attribute("height") = "588";
  623. // tar_judgrmk.attribute("height") = "568";
  624. // tar_edirmk.attribute("height") = "568";
  625. // }
  626. model.toggle("case_judgref"); // 해당 tab 으로 토글시킨다.
  627. // 선택시 현재 조건으로 자동 조회 되게 한다.
  628. fJudgRefChk();
  629. ]]>
  630. </script>
  631. </button>
  632. <button id="button2" class="btn_sw" group="tab" selected="false" style="left:84px; top:82px; width:85px; height:22px; ">
  633. <caption>진료과별</caption>
  634. <!--
  635. <toggle case="case_spcl" ev:event="onclick"/>
  636. -->
  637. <script type="javascript" ev:event="DOMActivate">
  638. <![CDATA[
  639. // if (case_spclspec.selected) { // 기존에 이미 선택되어 있는 tab인데 해당 tab을 다시 선택한 경우
  640. // if (swt_spclmemo.attribute("height") == "608") { // 세로로 확대된 창을 원래대로 한다.
  641. // swt_spclmemo.attribute("height") = "173";
  642. // grd_clsphist.attribute("height") = "165";
  643. // tar_judgrmk.attribute("height") = "130";
  644. // tar_edirmk.attribute("height") = "130";
  645. // } else { // textarea를 세로로 확대시킨다.
  646. // swt_spclmemo.attribute("height") = "608";
  647. // grd_clsphist.attribute("height") = "588";
  648. // tar_judgrmk.attribute("height") = "568";
  649. // tar_edirmk.attribute("height") = "568";
  650. // }
  651. // } else { // 기존에 선택되지 않은 tab인 경우
  652. // swt_spclmemo.attribute("height") = "608";
  653. // grd_clsphist.attribute("height") = "588";
  654. // tar_judgrmk.attribute("height") = "568";
  655. // tar_edirmk.attribute("height") = "568";
  656. // }
  657. model.toggle("case_orddeptref"); // 해당 tab 으로 토글시킨다.
  658. // 선택시 현재 조건으로 자동 조회 되게 한다.
  659. fJudgRefChk();
  660. ]]>
  661. </script>
  662. </button>
  663. <switch id="switch1" style="left:0px; top:104px; width:1211px; height:665px; ">
  664. <case id="case_judgref" selected="true" style="left:0px; top:0px; width:1211px; height:665px; ">
  665. <datagrid id="grd_judgkind" nodeset="/root/main/judgkindlist/judgkind" class="datagrid2" caption="심사자ID^심사자^건수^총진료비^건수비율(%)^진료비비율" colsep="^" colwidth="157, 161, 197, 276, 197, 200" dataheight="23" defaultrows="2" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:0px; width:1211px; height:321px; ">
  666. <col ref="judgrid" type="output" style="text-align:center; "/>
  667. <col ref="judgrnm" type="output" style="text-align:center; "/>
  668. <col ref="alldivcnt" type="output" style="text-align:center; "/>
  669. <col ref="totordamt" type="output" format="#,###" style="text-align:right; "/>
  670. <col ref="divcntrate" type="output" style="text-align:center; "/>
  671. <col ref="totordamtrate" type="output" style="text-align:center; "/>
  672. <script type="javascript" ev:event="ondblclick">
  673. <![CDATA[
  674. // 그리드 전체row수에서 1을 뺀다.
  675. var rows = grd_judgkind.rows - 1;
  676. // 위의 값하고 선택된 row의 값하고 같으면 마지막 sum하는 row이기때문에 세부조회가 되지않는다는 메세지 띄운다.
  677. if(rows == grd_judgkind.row){
  678. messageBox("합계는 조회 할 수","I004");
  679. return false;
  680. }
  681. // 선택된 row의 심사자id, 심사자명, 건수를 받는다.
  682. var judgrid = model.getValue("/root/main/judgkindlist/judgkind[" + grd_judgkind.row+ "]/judgrid");
  683. var judgrnm = model.getValue("/root/main/judgkindlist/judgkind[" + grd_judgkind.row+ "]/judgnm");
  684. var alldivcnt = model.getValue("/root/main/judgkindlist/judgkind[" + grd_judgkind.row+ "]/alldivcnt");
  685. // 조회부의 값을 받는다.
  686. var allinsukindflag = model.getValue("/root/send/judgcondlist/judgcond/allinsukindflag");
  687. var insukindflag = model.getValue("/root/send/judgcondlist/judgcond/insukindflag");
  688. var ioflag = model.getValue("/root/send/judgcondlist/judgcond/ioflag");
  689. var judgment = model.getValue("/root/send/judgcondlist/judgcond/judgment");
  690. var clamflag = model.getValue("/root/send/judgcondlist/judgcond/clamflag");
  691. var fromdd = model.getValue("/root/send/judgcondlist/judgcond/fromdd");
  692. var degree = model.getValue("/root/send/judgcondlist/judgcond/degree");
  693. var todd = model.getValue("/root/send/judgcondlist/judgcond/todd");
  694. var degree1 = model.getValue("/root/send/judgcondlist/judgcond/degree1");
  695. var delincl = model.getValue("/root/send/judgcondlist/judgcond/delincl");
  696. // 개별 보험유형의 값을 나누어서 받는다.
  697. var insukindflaglength = insukindflag.length;
  698. if(insukindflaglength > 1){
  699. // insukindflag의 문자열에서 시작이 0에서 끝이 2인 사이의 문자열을 반환한다.
  700. var insukindflagfirst = insukindflag.substring(0,2);
  701. // insukindflag의 문자열에서 3번째문자열에서 시작해서 2개의 문자열을 반환한다.
  702. var insukindflagtwo = insukindflag.substr(3,2);
  703. // insukindflag의 문자열에서 6번째문자열에서 시작해서 2개의 문자열을 반환한다.
  704. var insukindflagthree = insukindflag.substr(6,2);
  705. if(insukindflagfirst == '20' || insukindflagtwo == '20' || insukindflagthree == '20'){
  706. model.setValue("/root/send/judgkindlist/judgkind/insukindflagfour", "21");
  707. model.setValue("/root/send/judgkindlist/judgkind/insukindflagfive", "22");
  708. }
  709. model.setValue("/root/send/judgkindlist/judgkind/insukindflagfirst",insukindflagfirst);
  710. model.setValue("/root/send/judgkindlist/judgkind/insukindflagtwo",insukindflagtwo);
  711. model.setValue("/root/send/judgkindlist/judgkind/insukindflagthree",insukindflagthree);
  712. }
  713. // 생성된 노드에 받아놓은 값을 넣는다.
  714. model.setValue("/root/send/judgkindlist/judgkind/judgrid",judgrid);
  715. model.setValue("/root/send/judgkindlist/judgkind/judgrnm",judgrnm);
  716. model.setValue("/root/send/judgkindlist/judgkind/alldivcnt",alldivcnt);
  717. model.setValue("/root/send/judgkindlist/judgkind/allinsukindflag",allinsukindflag);
  718. model.setValue("/root/send/judgkindlist/judgkind/insukindflag",insukindflag);
  719. model.setValue("/root/send/judgkindlist/judgkind/ioflag",ioflag);
  720. model.setValue("/root/send/judgkindlist/judgkind/judgment",judgment);
  721. model.setValue("/root/send/judgkindlist/judgkind/clamflag",clamflag);
  722. model.setValue("/root/send/judgkindlist/judgkind/fromdd",fromdd);
  723. model.setValue("/root/send/judgkindlist/judgkind/degree",degree);
  724. model.setValue("/root/send/judgkindlist/judgkind/todd",todd);
  725. model.setValue("/root/send/judgkindlist/judgkind/degree1",degree1);
  726. model.setValue("/root/send/judgkindlist/judgkind/delincl",delincl);
  727. submit("TRPIB01703")
  728. // 마지막에 합계를 위한 row를 생성하고 sum을 실행하고 merge를 실행하고 cell스타일을 지정한다.
  729. grd_detljudgkind.subtotalPosition = "below";
  730. grd_detljudgkind.subtotal("sum", -1, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  731. grd_detljudgkind.subtotal("sum", -1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  732. grd_detljudgkind.subtotal("sum", -1, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  733. grd_detljudgkind.subtotal("sum", -1, 9, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  734. grd_detljudgkind.mergeByFree(grd_detljudgkind.rows - 1,1,grd_detljudgkind.rows - 1,5);
  735. grd_detljudgkind.cellStyle("text-align",grd_detljudgkind.rows - 1,1,grd_detljudgkind.rows - 1,5) = "center"
  736. // 사사오입시 100이 나오지 않을 수 있기에 100으로 값을 박는다.
  737. grd_detljudgkind.valueMatrix(grd_detljudgkind.rows - 1, 8) = 100;
  738. grd_detljudgkind.valueMatrix(grd_detljudgkind.rows - 1, 9) = 100;
  739. ]]>
  740. </script>
  741. </datagrid>
  742. <datagrid id="grd_detljudgkind" nodeset="/root/main/detljudgkindlist/detljudgkind" class="datagrid2" caption="심사자ID^심사자^진료과^진료의ID^진료의^건수^총진료비^건수비율(%)^진료비비율" colsep="^" colwidth="110, 109, 110, 130, 120, 130, 218, 130, 130" dataheight="23" defaultrows="2" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:330px; width:1211px; height:334px; ">
  743. <col ref="judgrid" type="output" style="text-align:center; "/>
  744. <col ref="judgrnm" type="output" style="text-align:center; "/>
  745. <col ref="orddeptnm" type="output" style="text-align:center; "/>
  746. <col ref="atdoctid" type="output" style="text-align:center; "/>
  747. <col ref="atdoctnm" type="output" style="text-align:center; "/>
  748. <col ref="alldivcnt" type="output" style="text-align:center; "/>
  749. <col ref="totordamt" type="output" format="#,###" style="text-align:right; "/>
  750. <col ref="divcntrate" type="output" style="text-align:center; "/>
  751. <col ref="totordamtrate" type="output" style="text-align:center; "/>
  752. </datagrid>
  753. <line id="line1" class="line_1" style="x1:1px; y1:324px; x2:1210px; y2:324px; "/>
  754. </case>
  755. <case id="case_orddeptref" style="left:0px; top:0px; width:1211px; height:665px; ">
  756. <datagrid id="grd_orddeptkind" nodeset="/root/main/orddeptkindlist/orddeptkind" class="datagrid2" caption="진료과^진료과코드^과명^건수^총진료비^건수비율(%)^진료비비율" colsep="^" colwidth="197,197,197,197,197,197,203" dataheight="23" defaultrows="2" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:0px; width:1210px; height:320px; ">
  757. <col ref="deptengabbr" type="output" style="text-align:center; "/>
  758. <col ref="orddeptcd" type="output" visibility="hidden" style="text-align:center; "/>
  759. <col ref="orddeptnm" type="output" style="text-align:center; "/>
  760. <col ref="alldivcnt" type="output" style="text-align:center; "/>
  761. <col ref="totordamt" type="output" format="#,###" style="text-align:right; "/>
  762. <col ref="divcntrate" type="output" style="text-align:center; "/>
  763. <col ref="totordamtrate" type="output" style="text-align:center; "/>
  764. <script type="javascript" ev:event="ondblclick">
  765. <![CDATA[
  766. // 그리드 전체row수에서 1을 뺀다.
  767. var rows = grd_orddeptkind.rows - 1;
  768. // 위의 값하고 선택된 row의 값하고 같으면 마지막 sum하는 row이기때문에 세부조회가 되지않는다는 메세지 띄운다.
  769. if(rows == grd_orddeptkind.row){
  770. messageBox("합계는 조회 할 수","I004");
  771. return false;
  772. }
  773. // 선택된 row의 진료과코드, 진료과명, 건수를 받는다.
  774. var orddeptcd = model.getValue("/root/main/orddeptkindlist/orddeptkind[" + grd_orddeptkind.row+ "]/orddeptcd");
  775. var orddeptnm = model.getValue("/root/main/orddeptkindlist/orddeptkind[" + grd_orddeptkind.row+ "]/orddeptnm");
  776. var alldivcnt = model.getValue("/root/main/orddeptkindlist/orddeptkind[" + grd_orddeptkind.row+ "]/alldivcnt");
  777. // 조회부의 값을 받는다.
  778. var allinsukindflag = model.getValue("/root/send/judgcondlist/judgcond/allinsukindflag");
  779. var insukindflag = model.getValue("/root/send/judgcondlist/judgcond/insukindflag");
  780. var ioflag = model.getValue("/root/send/judgcondlist/judgcond/ioflag");
  781. var judgment = model.getValue("/root/send/judgcondlist/judgcond/judgment");
  782. var clamflag = model.getValue("/root/send/judgcondlist/judgcond/clamflag");
  783. var fromdd = model.getValue("/root/send/judgcondlist/judgcond/fromdd");
  784. var degree = model.getValue("/root/send/judgcondlist/judgcond/degree");
  785. var todd = model.getValue("/root/send/judgcondlist/judgcond/todd");
  786. var degree1 = model.getValue("/root/send/judgcondlist/judgcond/degree1");
  787. var delincl = model.getValue("/root/send/judgcondlist/judgcond/delincl");
  788. // 개별보험유형의 길이를 받는다.
  789. var insukindflaglength = insukindflag.length;
  790. // 개별보험유형을 각각 나누어서 받는다. 그리고 임의의 노드를 생성하여 넣어놓는다.
  791. if(insukindflaglength > 1){
  792. // insukindflag의 문자열에서 시작이 0에서 끝이 2인 사이의 문자열을 반환한다.
  793. var insukindflagfirst = insukindflag.substring(0,2);
  794. // insukindflag의 문자열에서 3번째문자열에서 시작해서 2개의 문자열을 반환한다.
  795. var insukindflagtwo = insukindflag.substr(3,2);
  796. // insukindflag의 문자열에서 6번째문자열에서 시작해서 2개의 문자열을 반환한다.
  797. var insukindflagthree = insukindflag.substr(6,2);
  798. if(insukindflagfirst == '20' || insukindflagtwo == '20' || insukindflagthree == '20'){
  799. model.setValue("/root/send/orddeptkindlist/orddeptkind/insukindflagfour", "21");
  800. model.setValue("/root/send/orddeptkindlist/orddeptkind/insukindflagfive", "22");
  801. }
  802. model.setValue("/root/send/orddeptkindlist/orddeptkind/insukindflagfirst",insukindflagfirst);
  803. model.setValue("/root/send/orddeptkindlist/orddeptkind/insukindflagtwo",insukindflagtwo);
  804. model.setValue("/root/send/orddeptkindlist/orddeptkind/insukindflagthree",insukindflagthree);
  805. }
  806. // 받아놓은 값을 임의의 노드에 넣는다.
  807. model.setValue("/root/send/orddeptkindlist/orddeptkind/orddeptcd",orddeptcd);
  808. model.setValue("/root/send/orddeptkindlist/orddeptkind/orddeptnm",orddeptnm);
  809. model.setValue("/root/send/orddeptkindlist/orddeptkind/alldivcnt",alldivcnt);
  810. model.setValue("/root/send/orddeptkindlist/orddeptkind/allinsukindflag",allinsukindflag);
  811. model.setValue("/root/send/orddeptkindlist/orddeptkind/insukindflag",insukindflag);
  812. model.setValue("/root/send/orddeptkindlist/orddeptkind/ioflag",ioflag);
  813. model.setValue("/root/send/orddeptkindlist/orddeptkind/judgment",judgment);
  814. model.setValue("/root/send/orddeptkindlist/orddeptkind/clamflag",clamflag);
  815. model.setValue("/root/send/orddeptkindlist/orddeptkind/fromdd",fromdd);
  816. model.setValue("/root/send/orddeptkindlist/orddeptkind/degree",degree);
  817. model.setValue("/root/send/orddeptkindlist/orddeptkind/todd",todd);
  818. model.setValue("/root/send/orddeptkindlist/orddeptkind/degree1",degree1);
  819. model.setValue("/root/send/orddeptkindlist/orddeptkind/delincl",delincl);
  820. submit("TRPIB01704")
  821. // 합계를 위한 row를 생성하고 각 cell별 합계를 실행하며 'sum'글자를 넣기위한 머지를 하고 셀스타일을 지정한다.
  822. grd_detlorddeptkind.subtotalPosition = "below";
  823. grd_detlorddeptkind.subtotal("sum", -1, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  824. grd_detlorddeptkind.subtotal("sum", -1, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  825. grd_detlorddeptkind.subtotal("sum", -1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  826. grd_detlorddeptkind.subtotal("sum", -1, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "SUM", false);
  827. grd_detlorddeptkind.mergeByFree(grd_detlorddeptkind.rows - 1,1,grd_detlorddeptkind.rows - 1,6);
  828. grd_detlorddeptkind.cellStyle("text-align",grd_detlorddeptkind.rows - 1,1,grd_detlorddeptkind.rows - 1,6) = "center"
  829. // 사사오입시 100이 나오지 않을 수 있기에 100으로 값을 박는다.
  830. grd_detlorddeptkind.valueMatrix(grd_detlorddeptkind.rows - 1, 9) = 100;
  831. grd_detlorddeptkind.valueMatrix(grd_detlorddeptkind.rows - 1, 10) = 100;
  832. ]]>
  833. </script>
  834. </datagrid>
  835. <datagrid id="grd_detlorddeptkind" nodeset="/root/main/detlorddeptkindlist/detlorddeptkind" class="datagrid2" caption="진료과^과명^심사자ID^심사자^진료의ID^진료의^건수^총진료비^건수비율(%)^진료비비율" colsep="^" colwidth="140,125,110,110,110,110,110,150,110,110" dataheight="23" defaultrows="2" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:330px; width:1210px; height:334px; ">
  836. <col ref="orddeptcd" type="output" style="text-align:center; "/>
  837. <col ref="orddeptnm" type="output" style="text-align:center; "/>
  838. <col ref="judgrid" type="output" style="text-align:center; "/>
  839. <col ref="judgrnm" type="output" style="text-align:center; "/>
  840. <col ref="atdoctid" type="output" style="text-align:center; "/>
  841. <col ref="atdoctnm" type="output" style="text-align:center; "/>
  842. <col ref="alldivcnt" type="output" style="text-align:center; "/>
  843. <col ref="totordamt" type="output" format="#,###" style="text-align:right; "/>
  844. <col ref="divcntrate" type="output" style="text-align:center; "/>
  845. <col ref="totordamtrate" type="output" style="text-align:center; "/>
  846. </datagrid>
  847. <line id="line2" class="line_1" style="x1:1px; y1:324px; x2:1210px; y2:324px; "/>
  848. </case>
  849. </switch>
  850. <button id="button3" class="btn2_letter4" navindex="5" style="left:1141px; top:84px; width:64px; height:19px; ">
  851. <caption>엑셀저장</caption>
  852. <script type="javascript" ev:event="DOMActivate">
  853. <![CDATA[
  854. if(case_judgref.selected){
  855. var mesnum = messageBox("상단 기본정보 엑셀받기는 예, 하단 상세정보 엑셀받기는 아니오","S001");
  856. alert(mesnum);
  857. if(mesnum == "6"){
  858. if (grd_judgkind.rows == 1) {
  859. return;
  860. }
  861. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  862. if (fileName != "")
  863. {
  864. grd_judgkind.saveExcel(fileName, "심사배분현황관리-심사자별 일반조회", true, true, "", "", true);
  865. }
  866. }
  867. if(mesnum == "7"){
  868. if (grd_detljudgkind.rows == 1) {
  869. return;
  870. }
  871. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  872. if (fileName != "")
  873. {
  874. grd_detljudgkind.saveExcel(fileName, "심사배분현황관리-심사자별 세부조회", true, true, "", "", true);
  875. }
  876. }
  877. if(mesnum == "2"){
  878. return false;
  879. }
  880. }else{
  881. var mesnum = messageBox("심사자별 일반조회는 예, 심사자별 세부조회는 아니오","S001");
  882. if(mesnum == "6"){
  883. if (grd_orddeptkind.rows == 1) {
  884. return;
  885. }
  886. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  887. if (fileName != "")
  888. {
  889. grd_orddeptkind.saveExcel(fileName, "심사배분현황관리-진료과별 일반조회", true, true, "", "", true);
  890. }
  891. }
  892. if(mesnum == "7"){
  893. if (grd_detlorddeptkind.rows == 1) {
  894. return;
  895. }
  896. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  897. if (fileName != "")
  898. {
  899. grd_detlorddeptkind.saveExcel(fileName, "심사배분현황관리-진료과별 세부조회", true, true, "", "", true);
  900. }
  901. }
  902. if(mesnum == "2"){
  903. return false;
  904. }
  905. }
  906. ]]>
  907. </script>
  908. </button>
  909. <caption id="caption14" class="tit_2" visibility="hidden" style="left:505px; top:85px; width:455px; height:13px; color:#0000ff; ">속도문제로 사전조회시 금액은 30일 이내 내역으로 제한하여 조회합니다.</caption>
  910. </group>
  911. </xhtml:body>
  912. </xhtml:html>