SMPIS00600_청구삭감조회.xrw 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPIS00600_청구삭감조회.xrw
  4. * 수정이력
  5. * - 2008.09.25 / 최초작성 / 강종태
  6. ************************************************
  7. * [ Maps ]
  8. * TRZBC00102 : 공통코드
  9. * TRPID20309 : 진료과, 주치의
  10. * TRPID20407 : 청구차수
  11. * TRPID20201 : 청구과
  12. -->
  13. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  14. <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">
  15. <xhtml:head>
  16. <xhtml:title>청구삭감 환자조회</xhtml:title>
  17. <model id="model1">
  18. <instance id="instance1">
  19. <root xmlns="">
  20. <main>
  21. <!-- SPPMC02500_환자조회 화면에서 선택된 검색결과를 받는 경로임 -->
  22. <patinfo>
  23. <patinfolist/>
  24. </patinfo>
  25. <popupendflag/>
  26. <grdlist>
  27. <clamcutlist>
  28. <pid/>
  29. <hngnm/>
  30. <ioflag/>
  31. <clamym/>
  32. <clamflagcd/>
  33. <clamdg/>
  34. <insukind/>
  35. <suppkind/>
  36. <clamdeptcd/>
  37. <orddeptcd/>
  38. <orddrnm/>
  39. <diagcd/>
  40. <acptno/>
  41. <docuseqno/>
  42. <edilnno/>
  43. <snglcalcscorcd/>
  44. <edicd/>
  45. <calchngnm/>
  46. <unitcost/>
  47. <drugqty/>
  48. <tims/>
  49. <dayno/>
  50. <totdrugqty/>
  51. <amt/>
  52. <indd/>
  53. <cretfromdd/>
  54. <crettodd/>
  55. <clamdrid/>
  56. <judgyn/>
  57. <cutdrugqty/>
  58. <cuttims/>
  59. <cutdayno/>
  60. <totcutqty/>
  61. <adjtamt/>
  62. <obtappamt/>
  63. <orgreduamt/>
  64. <oprcp/>
  65. <payflag/>
  66. <judgrnm/>
  67. </clamcutlist>
  68. </grdlist>
  69. </main>
  70. <init>
  71. <!-- 진료과 -->
  72. <orddeptcdlist>
  73. <cd/>
  74. <nm/>
  75. </orddeptcdlist>
  76. <!-- 진료의 -->
  77. <orddrid>
  78. <cd/>
  79. <nm/>
  80. </orddrid>
  81. <!-- 보험유형 -->
  82. <P0008list>
  83. <P0008>
  84. <cdnm/>
  85. <cdid/>
  86. </P0008>
  87. </P0008list>
  88. <!-- 청구구분 -->
  89. <P0155list>
  90. <P0155>
  91. <cdnm/>
  92. <cdid/>
  93. <cdengabbrnm/>
  94. </P0155>
  95. </P0155list>
  96. <!-- 급여구분 -->
  97. <P0104list>
  98. <P0104>
  99. <cdnm/>
  100. <cdid/>
  101. </P0104>
  102. </P0104list>
  103. <!-- 청구년월 -->
  104. <clamdg/>
  105. <clamdgfrom>
  106. <clamdglist>
  107. <clamdgnm/>
  108. <clamdgcd/>
  109. </clamdglist>
  110. </clamdgfrom>
  111. <clamdgto>
  112. <clamdglist>
  113. <clamdgnm/>
  114. <clamdgcd/>
  115. </clamdglist>
  116. </clamdgto>
  117. <U0001list/>
  118. <earnclslist/>
  119. <trustinstnmlist>
  120. </trustinstnmlist>
  121. </init>
  122. <send>
  123. <clamflag/>
  124. <clamym/>
  125. <clamymfrom/>
  126. <clamdgfrom/>
  127. <clamymto/>
  128. <clamdgto/>
  129. <insukind/>
  130. <ioflag/>
  131. <clamdeptid/>
  132. <orddeptcd/>
  133. <orddrid/>
  134. <code/>
  135. <patunitsrch/>
  136. <cutonly/>
  137. <codecond/>
  138. <cancer/>
  139. <large/>
  140. <middle/>
  141. <small/>
  142. <judgrid/>
  143. <edicd/>
  144. <trustinstcd/>
  145. </send>
  146. <hidden>
  147. <smpic00200>
  148. <judgsrch>
  149. <con1_dd/>
  150. <con2_gsflag/>
  151. <con3_search1/>
  152. <con4_search2/>
  153. <con5_insu/>
  154. </judgsrch>
  155. <rslt>
  156. <mech/>
  157. <picmmech/>
  158. <edicd/>
  159. </rslt>
  160. </smpic00200>
  161. <sppmc02500>
  162. <cond>
  163. <srchcond/>
  164. <pid/>
  165. <hngnm/>
  166. </cond>
  167. </sppmc02500>
  168. <chkym/>
  169. </hidden>
  170. </root>
  171. </instance>
  172. <script type="javascript" ev:event="xforms-ready">
  173. <![CDATA[
  174. // 화면 초기화
  175. fInitialize();
  176. ]]>
  177. </script>
  178. <!-- submission -->
  179. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  180. <submission id="TRPIS00600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/clamcutlist"/>
  181. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
  182. <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" resultref="/root/init/clamdg"/>
  183. <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
  184. <submission id="TRPIB00603" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/U0001list"/>
  185. <submission id="TRPIS00510" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/earnclslist"/>
  186. <submission id="TRPIS00601" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/trustinstnmlist"/>
  187. </model>
  188. <!-- js import -->
  189. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  190. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  191. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  192. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  193. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  194. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  195. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  196. <!-- 뽕숑 -->
  197. <script type="javascript">
  198. <![CDATA[
  199. // 화면 초기화
  200. function fInitialize()
  201. {
  202. //rdo_code.value = "calcscorcd"; // 수가 선택
  203. model.removeNodeset("/root/main/grdlist/calcorderlist"); // 그리드 초기화
  204. submit("TRPIB00603"); // 심사자 콤보리스트
  205. submit("TRPIS00510"); // 수가 수익분류 리스트
  206. submit("TRPIS00601"); // 위탁기관명 리스트
  207. rdo_searchcond.value = "calc";
  208. zbcfGetCodeList(
  209. new Array("P0008" // 보험유형
  210. ,"P0155" // 청구구분
  211. ),
  212. new Array("/root/init/P0008list"
  213. ,"/root/init/P0155list"
  214. )
  215. ,false
  216. );
  217. cmb_clamflag.refresh();
  218. cmb_insukind.refresh();
  219. if (checkOpener()){
  220. var flag = opener.javascript.getParameter("openflag");
  221. var orddeptcd = opener.javascript.getParameter("SMPMB00900_orddeptcd");
  222. var pid = opener.javascript.getParameter("pid");
  223. //외래사후심사대상자조회에서 팝업호출할 경우
  224. if(flag == "O"){
  225. var curDate = getCurrentDate();
  226. fromDate = curDate.toDate().getAddDate(-6,"M").getDateFormat("YYYYMM");
  227. rdo_ioflag.value = "A"; // 내원유형:전체
  228. combo3.value = "N";
  229. var today = new Date();
  230. var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  231. var basemonth = today.getDateFormat("MM");
  232. var currentym = baseyear + basemonth;
  233. model.setValue("/root/send/clamymfrom",fromDate);
  234. model.setValue("/root/send/clamymto",currentym);
  235. model.setValue("/root/send/patunitsrch", pid);
  236. model.setValue("/root/send/cutonly", "true");
  237. button1.dispatch("DOMActivate");
  238. }else{
  239. var curDate = getCurrentDate();
  240. fromDate = curDate.toDate().getAddDate(-12,"M").getDateFormat("YYYYMM");
  241. var today = new Date();
  242. var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  243. var basemonth = today.getDateFormat("MM");
  244. var currentym = baseyear + basemonth;
  245. model.setValue("/root/send/clamymfrom",fromDate);
  246. model.setValue("/root/send/clamymto",currentym);
  247. model.setValue("/root/hidden/chkym","oney");
  248. rdo_ioflag.value = "A";
  249. model.makeNode("/root/send/trustinstcd");
  250. model.makeNode("/root/send/large");
  251. model.makeNode("/root/send/middle");
  252. model.makeNode("/root/send/small");
  253. model.setValue("/root/send/trustinstcd", "N");
  254. model.setValue("/root/send/cutonly", "true");
  255. //combo3.value = "N";
  256. cmb_clamdgfrom.refresh();
  257. combo3.refresh();
  258. pidfGetClamdg();
  259. fSearch();
  260. }
  261. }else{
  262. rdo_ioflag.value = "A"; // 내원유형:전체
  263. combo3.value = "N";
  264. // 청구년월, 차수 셋팅 시작
  265. var today = new Date();
  266. var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  267. var basemonth = today.getDateFormat("MM");
  268. var currentym = baseyear + basemonth;
  269. model.setValue("/root/send/clamymfrom",currentym);
  270. model.setValue("/root/send/clamymto",currentym);
  271. model.setValue("/root/send/cutonly", "true");
  272. model.setValue("/root/hidden/chkym","oney");
  273. ipt_clamymfrom.refresh();
  274. ipt_clamymto.refresh();
  275. pidfGetClamdg();
  276. }
  277. /*
  278. // 초기화 할 때 PID가 존재하면 조회를 실행 한다 (팝업으로 호출된 경우 PID를 가지고 있다)
  279. if ( model.getValue("/root/send/patunitsrch") != "" )
  280. {
  281. pidfGetClamdg();
  282. cmb_clamdgfrom.refresh();
  283. rdo_ioflag.value = "A";
  284. combo3.value = "N";
  285. fSearch();
  286. // model.setValue("/root/send/item1/pid",""); // 최초 실행 후 PID 제거
  287. }
  288. else
  289. {
  290. rdo_ioflag.value = "A"; // 내원유형:전체
  291. combo3.value = "N";
  292. // 청구년월, 차수 셋팅 시작
  293. var today = new Date();
  294. var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  295. var basemonth = today.getDateFormat("MM");
  296. var currentym = baseyear + basemonth;
  297. model.setValue("/root/send/clamymfrom",currentym);
  298. model.setValue("/root/send/clamymto",currentym);
  299. ipt_clamymfrom.refresh();
  300. ipt_clamymto.refresh();
  301. pidfGetClamdg();
  302. //cmb_clamdgfrom.select(0);
  303. //cmb_clamdgfrom.refresh();
  304. //cmb_clamdgto.select(0);
  305. //cmb_clamdgto.refresh();
  306. // 청구년월 셋팅 끝
  307. }
  308. */
  309. // IOFLAG를 파라메터로 받아야 하므로 IOFLAG가 정해진 후 호출 한다
  310. fGetOrdDept(); // 진료과,진료의 콤보 리스트
  311. fGetClamDept(); // 청구과 콤보 리스트
  312. model.refresh();
  313. // fGetOrdDrid(); // 진료의 콤보 리스트
  314. }
  315. // 진료과 리스트 가져오기
  316. function fGetOrdDept()
  317. {
  318. submit("TRPID20309");
  319. }
  320. // // 진료의 리스트 가져오기
  321. // function fGetOrdDrid()
  322. // {
  323. // submit("TRPID20309");
  324. // }
  325. // 환자단위 조회
  326. function fPatSrch()
  327. {
  328. var ipt_pid = model.getValue("/root/send/patunitsrch");
  329. if (ipt_pid) {
  330. if ( !isNaN(ipt_pid) )
  331. {
  332. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  333. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  334. }
  335. else
  336. {
  337. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
  338. model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
  339. }
  340. } else {
  341. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  342. }
  343. // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
  344. modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
  345. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  346. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  347. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  348. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  349. model.setValue("/root/send/patunitsrch", srch_pid);
  350. }
  351. model.refresh();
  352. }
  353. function fGetSnglcalcscorcd() {
  354. // 처방시작일을 수가조회 기준일자로 설정
  355. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", ipt_clamymfrom.value);
  356. // 싱글수가코드
  357. model.setValue("/root/hidden/smpic00200/judgsrch/con2_gsflag", "S");
  358. // SMPIC00200_수가조회 화면의 검색조건 combo 조건값 설정
  359. // 수가 > calcscorcd , edi > edicd , 한글 hngnm
  360. // model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", rdo_code.value);
  361. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "calcscorcd");
  362. // SMPIC00200_수가조회 용
  363. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", "");
  364. // 보험으로 박아서 날린다
  365. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  366. model.removeNodeset("/root/hidden/smpic00200/rslt/mech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  367. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  368. modal("SMPIC00200", "1", "10", "10", "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", ""); // SMPIC00200_수가조회.xrw
  369. var mechSelect = instance1.selectSingleNode("/root/temp/mech");
  370. if (mechSelect == null) { // 선택한 코드가 없는 경우
  371. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  372. return;
  373. }
  374. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  375. model.makeNode("/root/hidden/smpic00200/rslt/mech");
  376. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  377. model.copyNode("/root/hidden/smpic00200/rslt/mech", "/root/temp/mech");
  378. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  379. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  380. if (model.getValue("/root/hidden/smpic00200/rslt/mech/ordinptflag") != "A") { // 처방입력구분(코드군 P0141) A: 가능
  381. messageBox("처방이 불가한 코드", "E008"); ///처방이 불가한 코드입니다.
  382. return;
  383. }
  384. // 수가코드만 조회하기 때문에 수가코드로 박는다 2009.02.23
  385. model.setValue("/root/send/code", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_calcscorcd"));
  386. ipt_code.refresh();
  387. }
  388. // 청구년월 함수
  389. function pidfGetClamdg() {
  390. if ( model.getValue("/root/send/clamymfrom") > model.getValue("/root/send/clamymto") ) {
  391. messageBox("종료일은 시작일보다 클 수 ", "I004");
  392. model.setValue("/root/send/clamymto","")
  393. } else {
  394. model.removeNodeset("/root/init/clamdg");
  395. model.makeNode("/root/init/clamdg");
  396. model.setValue("/root/send/clamym",model.getValue("/root/send/clamymfrom"));
  397. submit("TRPID20407");
  398. model.copyNode("/root/init/clamdgfrom","/root/init/clamdg");
  399. /*
  400. cmb_clamdgfrom.refresh();
  401. cmb_clamdgfrom.select(0);
  402. */
  403. model.setValue("/root/send/clamym",model.getValue("/root/send/clamymto"));
  404. submit("TRPID20407");
  405. model.copyNode("/root/init/clamdgto","/root/init/clamdg");
  406. addComboItem("cmb_clamdgfrom","전체","","above");
  407. addComboItem("cmb_clamdgto","전체","","above");
  408. cmb_clamdgfrom.refresh();
  409. cmb_clamdgfrom.select(0);
  410. cmb_clamdgto.refresh();
  411. cmb_clamdgto.select(0);
  412. }
  413. }
  414. // 청구년월 차수 기간 체크
  415. function fChkClamym()
  416. {
  417. var fromym = model.getValue("/root/send/clamymfrom");
  418. var toym = model.getValue("/root/send/clamymto");
  419. if ( fromym != toym )
  420. {
  421. cmb_clamdgfrom.value = "";
  422. cmb_clamdgto.value = "";
  423. cmb_clamdgfrom.disabled = true;
  424. cmb_clamdgto.disabled = true;
  425. }
  426. else
  427. {
  428. cmb_clamdgfrom.disabled = false;
  429. cmb_clamdgto.disabled = false;
  430. cmb_clamdgfrom.select(0);
  431. cmb_clamdgto.select(0);
  432. }
  433. cmb_clamdgto.refresh();
  434. cmb_clamdgfrom.refresh();
  435. }
  436. // 청구과 함수
  437. function fGetClamDept()
  438. {
  439. submit("TRPID20201");
  440. }
  441. // 조회
  442. function fSearch()
  443. {
  444. var chk_clamymfrom = model.getValue("/root/send/clamymfrom");
  445. var chk_clamymto = model.getValue("/root/send/clamymto");
  446. var ipt_patunitsrch = model.getValue("/root/send/patunitsrch");
  447. var ipt_code = model.getValue("/root/send/code");
  448. // 무한루프 오류때문에 수정
  449. chk_clamymfrom = chk_clamymfrom.substr(0,6);
  450. chk_clamymto = chk_clamymto.substr(0,6);
  451. model.setValue("/root/send/clamymfrom",chk_clamymfrom);
  452. model.setValue("/root/send/clamymto",chk_clamymto);
  453. if ( chk_clamymfrom == "" || chk_clamymto == "")
  454. {
  455. messageBox("청구년월은 ", "I003");
  456. model.setFocus("chk_clamymfrom");
  457. return;
  458. }
  459. else if ( ipt_patunitsrch == "" && ipt_code == "")
  460. {
  461. if(model.getValue("/root/send/codecond") == "calc"){
  462. if(model.getValue("/root/send/trustinstcd") == "N"){
  463. messageBox("수가코드는 ", "I003");
  464. model.setFocus("ipt_code");
  465. return;
  466. }
  467. }
  468. }
  469. // else if ( ipt_patunitsrch == "")
  470. // {
  471. // messageBox("환자등록번호는 ", "I003");
  472. // model.setFocus(ipt_patunitsrch);
  473. // }
  474. model.removeNodeset("/root/main/grdlist/clamcutlist");
  475. submit("TRPIS00600");
  476. }
  477. function fGetEdicd() {
  478. // 처방시작일을 수가조회 기준일자로 설정
  479. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", ipt_clamymfrom.value);
  480. // 싱글수가코드
  481. model.setValue("/root/hidden/smpic00200/judgsrch/con2_gsflag", "S");
  482. // SMPIC00200_수가조회 화면의 검색조건 combo 조건값 설정
  483. // 수가 > calcscorcd , edi > edicd , 한글 hngnm
  484. // model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", rdo_code.value); // 2009.02.18 수가,EDI 라디오 버튼 제거
  485. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  486. // SMPIC00200_수가조회 용
  487. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", "");
  488. // 보험으로 박아서 날린다
  489. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  490. //setParameter("iParam_mother_view", "SMPIS00600_청구삭감조회");
  491. model.removeNodeset("/root/hidden/smpic00200/rslt/edicd");
  492. model.removeNodeset("/root/hidden/smpic00200/rslt/mech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  493. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  494. modal("SMPIC00200", "1", "10", "10", "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", ""); // SMPIC00200_수가조회.xrw
  495. var edicdSelect = instance1.selectSingleNode("/root/temp/edicd");
  496. if (edicdSelect == null) { // 선택한 코드가 없는 경우
  497. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  498. return;
  499. }
  500. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  501. model.makeNode("/root/hidden/smpic00200/rslt/mech");
  502. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  503. model.makeNode("/root/hidden/smpic00200/rslt/edicd");
  504. model.copyNode("/root/hidden/smpic00200/rslt/mech", "/root/temp/mech");
  505. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  506. model.copyNode("/root/hidden/smpic00200/rslt/edicd", "/root/temp/edicd");
  507. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  508. if (model.getValue("/root/hidden/smpic00200/rslt/mech/ordinptflag") != "A") { // 처방입력구분(코드군 P0141) A: 가능
  509. messageBox("처방이 불가한 코드", "E008"); ///처방이 불가한 코드입니다.
  510. return;
  511. }
  512. // 수가코드만 조회하기 때문에 수가코드로 박는다 2009.02.23
  513. model.setValue("/root/send/edicd", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd"));
  514. ipt_edicd.refresh();
  515. }
  516. ]]>
  517. </script>
  518. </xhtml:head>
  519. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1213;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  520. <!-- TITLE -->
  521. <group id="group1" style="left:0px; top:0px; width:1190px; height:13px; ">
  522. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">청구삭감 환자조회</caption>
  523. </group>
  524. <!-- 전체 그룹 -->
  525. <group id="group2" scroll="no" style="left:0px; top:13px; width:1190px; height:722px; ">
  526. <!-- 조회조건 -->
  527. <group id="group4" style="left:0px; top:10px; width:1190px; height:120px; vertical-align:top; ">
  528. <shape id="roundrect2" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:120px; "/>
  529. <caption id="caption5" class="search_name" style="left:5px; top:10px; width:76px; height:17px; ">청구년월</caption>
  530. <input id="ipt_clamymfrom" ref="/root/send/clamymfrom" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:85px; top:10px; width:75px; height:19px; ">
  531. <script type="javascript" ev:event="xforms-value-changed">
  532. <![CDATA[
  533. model.setValue("/root/send/clamymto",model.getValue("/root/send/clamymfrom"));
  534. pidfGetClamdg();
  535. fChkClamym();
  536. ]]>
  537. </script>
  538. </input>
  539. <select1 id="cmb_clamdgfrom" ref="/root/send/clamdgfrom" class="combo_search" appearance="minimal" style="left:162px; top:10px; width:50px; height:19px; ">
  540. <choices>
  541. <itemset nodeset="/root/init/clamdgfrom/clamdglist">
  542. <label ref="clamdgnm"/>
  543. <value ref="clamdgcd"/>
  544. </itemset>
  545. </choices>
  546. <script type="javascript" ev:event="xforms-value-changed">
  547. <![CDATA[
  548. model.setValue("/root/send/clamdgto", model.getValue("/root/send/clamdgfrom"));
  549. model.refresh();
  550. ]]>
  551. </script>
  552. </select1>
  553. <caption id="caption6" class="search_name" style="left:575px; top:10px; width:65px; height:17px; ">진료과</caption>
  554. <select1 id="combo2" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:655px; top:10px; width:90px; height:19px; ">
  555. <choices>
  556. <itemset nodeset="/root/init/tmp/orddeptcd/orddeptcdlist">
  557. <label ref="nm"/>
  558. <value ref="cd"/>
  559. </itemset>
  560. </choices>
  561. <script type="javascript" ev:event="xforms-value-changed">
  562. <![CDATA[
  563. var orddeptcd = model.getValue("/root/send/orddeptcd");
  564. if (orddeptcd) {
  565. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/tmp/orddrid/orddridlist[dp='" + orddeptcd + "']";
  566. cmb_orddrid.disabled = false;
  567. } else {
  568. cmb_orddrid.disabled = true;
  569. }
  570. model.setValue("/root/send/orddrid", ""); // 주치의 선택을 초기화한다.
  571. model.refresh();
  572. ]]>
  573. </script>
  574. </select1>
  575. <line id="line2" class="line_4" style="x1:1114px; y1:5px; x2:1114px; y2:109px; "/>
  576. <button id="button1" class="btn1_letter2" navindex="2" style="left:1125px; top:50px; width:56px; height:22px; ">
  577. <caption>조회</caption>
  578. <script type="javascript" ev:event="DOMActivate">
  579. <![CDATA[
  580. fSearch();
  581. ]]>
  582. </script>
  583. </button>
  584. <caption id="caption7" class="search_name" style="left:575px; top:35px; width:70px; height:17px; ">진료의</caption>
  585. <caption id="caption9" class="search_name" style="left:5px; top:60px; width:76px; height:17px; ">내원유형</caption>
  586. <select1 id="rdo_ioflag" ref="/root/send/ioflag" class="combo_search" appearance="minimal" style="left:85px; top:60px; width:67px; height:19px; ">
  587. <choices>
  588. <item>
  589. <label>전체</label>
  590. <value>A</value>
  591. </item>
  592. <item>
  593. <label>입원</label>
  594. <value>I</value>
  595. </item>
  596. <item>
  597. <label>외래</label>
  598. <value>O</value>
  599. </item>
  600. </choices>
  601. <script type="javascript" ev:event="xforms-value-changed">
  602. <![CDATA[
  603. fGetOrdDept(); // 진료과,진료의 콤보 리스트
  604. // fGetOrdDrid(); // 진료의 콤보 리스트
  605. fGetClamDept(); // 청구과 콤보 리스트
  606. ]]>
  607. </script>
  608. </select1>
  609. <input id="ipt_code" ref="/root/send/code" class="input_search" inputtype="button" maxlength="10" _chartype="upper" style="left:1015px; top:35px; width:90px; height:19px; ">
  610. <script type="javascript" ev:event="onbuttonclick">
  611. <![CDATA[
  612. fGetSnglcalcscorcd();
  613. ]]>
  614. </script>
  615. </input>
  616. <input id="ipt_patunitsrch" ref="/root/send/patunitsrch" class="input_search" navindex="3" inputtype="button" maxlength="10" style="left:835px; top:35px; width:90px; height:19px; ">
  617. <hint>
  618. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  619. </hint>
  620. <script type="javascript" ev:event="onkeypress">
  621. <![CDATA[
  622. if (event.keyCode == "13") { // Enter 입력 시에
  623. if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
  624. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  625. if( isNaN(model.getValue("/root/send/patunitsrch")) ) // PID로 검색시 조회
  626. {
  627. fPatSrch();
  628. }
  629. else
  630. {
  631. fSearch();
  632. }
  633. }
  634. }
  635. ]]>
  636. </script>
  637. <script type="javascript" ev:event="onbuttonclick">
  638. <![CDATA[
  639. fPatSrch();
  640. ]]>
  641. </script>
  642. </input>
  643. <select1 id="cmb_orddrid" ref="/root/send/orddrid" class="combo_search" appearance="minimal" style="left:655px; top:35px; width:90px; height:19px; ">
  644. <choices>
  645. <itemset nodeset="/root/init/tmp/orddrid/orddridlist">
  646. <label ref="nm"/>
  647. <value ref="cd"/>
  648. </itemset>
  649. </choices>
  650. </select1>
  651. <caption id="caption11" class="search_name" style="left:380px; top:10px; width:76px; height:17px; ">청구구분</caption>
  652. <select1 id="cmb_clamflag" ref="/root/send/clamflag" class="combo_search" appearance="minimal" style="left:475px; top:10px; width:90px; height:19px; ">
  653. <choices>
  654. <itemset nodeset="/root/init/P0155list/P0155">
  655. <label ref="cdnm"/>
  656. <value ref="cdid"/>
  657. </itemset>
  658. </choices>
  659. </select1>
  660. <select1 id="cmb_clamdept" ref="/root/send/clamdeptid" class="combo_search" appearance="minimal" style="left:475px; top:35px; width:90px; height:19px; ">
  661. <choices>
  662. <itemset nodeset="/root/init/tmp/clamdept/clamdeptlist">
  663. <label ref="cdnm"/>
  664. <value ref="cdid"/>
  665. </itemset>
  666. </choices>
  667. </select1>
  668. <caption id="caption10" class="search_name" style="left:380px; top:35px; width:65px; height:17px; ">청구과</caption>
  669. <caption id="caption13" class="search_name" style="left:755px; top:10px; width:76px; height:17px; ">보험유형</caption>
  670. <output id="opt_insukind" ref="/root/send/insukind" class="output_search" style="left:905px; top:10px; width:20px; height:19px; "/>
  671. <select1 id="cmb_insukind" ref="/root/send/insukind" class="combo_search" appearance="minimal" style="left:835px; top:10px; width:65px; height:19px; ">
  672. <choices>
  673. <itemset nodeset="/root/init/P0008list/P0008">
  674. <label ref="cdnm"/>
  675. <value ref="cdid"/>
  676. </itemset>
  677. </choices>
  678. </select1>
  679. <caption id="caption3" class="search_name" style="left:755px; top:35px; width:102px; height:17px; ">환자조회</caption>
  680. <input id="ipt_clamymto" ref="/root/send/clamymto" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:230px; top:10px; width:75px; height:19px; ">
  681. <script type="javascript" ev:event="xforms-value-changed">
  682. <![CDATA[
  683. pidfGetClamdg();
  684. fChkClamym();
  685. ]]>
  686. </script>
  687. </input>
  688. <select1 id="cmb_clamdgto" ref="/root/send/clamdgto" class="combo_search" appearance="minimal" style="left:307px; top:10px; width:50px; height:19px; ">
  689. <choices>
  690. <itemset nodeset="/root/init/clamdgto/clamdglist">
  691. <label ref="clamdgnm"/>
  692. <value ref="clamdgcd"/>
  693. </itemset>
  694. </choices>
  695. <script type="javascript" ev:event="xforms-value-changed">
  696. <![CDATA[
  697. model.setValue("/root/send/clamdgfrom", model.getValue("/root/send/clamdgto"));
  698. model.refresh();
  699. ]]>
  700. </script>
  701. </select1>
  702. <caption id="caption2" style="left:215px; top:10px; width:15px; height:20px; ">~</caption>
  703. <caption id="cp_code" class="search_name" style="left:937px; top:35px; width:76px; height:17px; ">수가코드</caption>
  704. <caption id="caption8" class="search_name" style="left:380px; top:88px; width:89px; height:17px; ">삭감처방만</caption>
  705. <bool id="bool1" ref="/root/send/cutonly" style="left:465px; top:87px; width:30px; height:20px; "/>
  706. <select1 id="rdo_searchcond" ref="/root/send/codecond" class="radio_search" overflow="visible" appearance="full" cols="3" style="left:83px; top:85px; width:167px; height:20px; border-style:none; ">
  707. <choices>
  708. <item>
  709. <label>코드별</label>
  710. <value>calc</value>
  711. </item>
  712. <item>
  713. <label>항암제</label>
  714. <value>cancer</value>
  715. </item>
  716. <item>
  717. <label>분류별</label>
  718. <value>kind</value>
  719. </item>
  720. </choices>
  721. <script type="javascript" ev:event="xforms-select">
  722. <![CDATA[
  723. ipt_code.value = "";
  724. rdo_cancer.value = "";
  725. cmb_large.value = "";
  726. cmb_middle.choices.itemset.attribute("nodeset") = "/root/init/hidden";
  727. cmb_small.choices.itemset.attribute("nodeset") = "/root/init/hidden";
  728. var choice = rdo_searchcond.value;
  729. if ( choice == "calc" ) {
  730. cp_code.disabled = false;
  731. ipt_code.disabled = false;
  732. cp_edicd.disabled = false;
  733. ipt_edicd.disabled = false;
  734. rdo_cancer.disabled = true;
  735. cp_large.disabled = true;
  736. cp_middle.disabled = true;
  737. cp_small.disabled = true;
  738. cmb_large.disabled = true;
  739. cmb_middle.disabled = true;
  740. cmb_small.disabled = true;
  741. } else if ( choice == "cancer" ) {
  742. rdo_cancer.select(0);
  743. cp_code.disabled = true;
  744. ipt_code.disabled = true;
  745. cp_edicd.disabled = true;
  746. ipt_edicd.disabled = true;
  747. rdo_cancer.disabled = false;
  748. cp_large.disabled = true;
  749. cp_middle.disabled = true;
  750. cp_small.disabled = true;
  751. cmb_large.disabled = true;
  752. cmb_middle.disabled = true;
  753. cmb_small.disabled = true;
  754. } else if ( choice == "kind" ) {
  755. cp_code.disabled = true;
  756. ipt_code.disabled = true;
  757. cp_edicd.disabled = true;
  758. ipt_edicd.disabled = true;
  759. rdo_cancer.disabled = true;
  760. cp_large.disabled = false;
  761. cp_middle.disabled = false;
  762. cp_small.disabled = false;
  763. cmb_large.disabled = false;
  764. cmb_middle.disabled = false;
  765. cmb_small.disabled = false;
  766. }
  767. ]]>
  768. </script>
  769. </select1>
  770. <caption id="caption14" class="search_name" style="left:6px; top:86px; width:76px; height:17px; ">검색조건</caption>
  771. <select1 id="rdo_cancer" ref="/root/send/cancer" class="radio_search" disabled="true" visibility="visible" overflow="visible" appearance="full" cols="3" style="left:256px; top:85px; width:120px; height:20px; border-style:none; ">
  772. <choices>
  773. <item>
  774. <label>전체</label>
  775. <value>A</value>
  776. </item>
  777. <item>
  778. <label>1군</label>
  779. <value>1</value>
  780. </item>
  781. <item>
  782. <label>2군</label>
  783. <value>2</value>
  784. </item>
  785. </choices>
  786. </select1>
  787. <input id="ipt_edicd" ref="/root/send/edicd" class="input_search" inputtype="button" maxlength="10" _chartype="upper" style="left:1015px; top:60px; width:90px; height:19px; ">
  788. <script type="javascript" ev:event="onbuttonclick">
  789. <![CDATA[
  790. fGetEdicd();
  791. ]]>
  792. </script>
  793. <script type="javascript" ev:event="xforms-value-changed">
  794. <![CDATA[
  795. model.setValue("/root/send/code", "");
  796. ipt_code.refresh();
  797. ]]>
  798. </script>
  799. </input>
  800. <caption id="cp_edicd" class="search_name" style="left:937px; top:60px; width:76px; height:17px; ">EDI코드</caption>
  801. <select1 id="cmb_middle" ref="/root/send/middle" disabled="true" navindex="1" visibility="visible" appearance="minimal" style="left:655px; top:59px; width:90px; height:19px; ">
  802. <choices>
  803. <itemset nodeset="/root/init/hidden/">
  804. <label ref="earncls2nm"/>
  805. <value ref="earncls2"/>
  806. </itemset>
  807. </choices>
  808. <script type="javascript" ev:event="xforms-select">
  809. <![CDATA[
  810. cmb_small.choices.itemset.attribute("nodeset") = "/root/init/hidden/earnclslist[step='S' and earncls1='" + cmb_large.value + "' and earncls2='" + cmb_middle.value + "']";
  811. cmb_small.refresh();
  812. ]]>
  813. </script>
  814. </select1>
  815. <caption id="cp_middle" class="search_name" style="left:575px; top:60px; width:64px; height:17px; ">중분류</caption>
  816. <select1 id="cmb_small" ref="/root/send/small" disabled="true" navindex="1" visibility="visible" appearance="minimal" style="left:835px; top:60px; width:90px; height:19px; ">
  817. <choices>
  818. <itemset nodeset="/root/init/hidden/">
  819. <label ref="earncls3nm"/>
  820. <value ref="earncls3"/>
  821. </itemset>
  822. </choices>
  823. </select1>
  824. <caption id="cp_small" class="search_name" style="left:755px; top:60px; width:65px; height:17px; ">소분류</caption>
  825. <select1 id="cmb_large" ref="/root/send/large" disabled="true" navindex="1" visibility="visible" appearance="minimal" style="left:476px; top:59px; width:90px; height:19px; ">
  826. <choices>
  827. <itemset nodeset="/root/init/hidden/earnclslist[step='L']">
  828. <label ref="earncls1nm"/>
  829. <value ref="earncls1"/>
  830. </itemset>
  831. </choices>
  832. <script type="javascript" ev:event="xforms-select">
  833. <![CDATA[
  834. cmb_middle.choices.itemset.attribute("nodeset") = "/root/init/hidden";
  835. cmb_small.choices.itemset.attribute("nodeset") = "/root/init/hidden";
  836. cmb_middle.value = "";
  837. cmb_small.value = "";
  838. cmb_middle.choices.itemset.attribute("nodeset") = "/root/init/hidden/earnclslist[step='M' and earncls1='" + cmb_large.value + "']";
  839. cmb_middle.refresh();
  840. ]]>
  841. </script>
  842. </select1>
  843. <caption id="cp_large" class="search_name" style="left:380px; top:60px; width:89px; height:17px; ">처방대분류</caption>
  844. <caption id="caption15" class="search_name" style="left:937px; top:10px; width:73px; height:17px; ">심사자</caption>
  845. <caption id="caption4" class="search_name" style="left:576px; top:86px; width:95px; height:17px; ">위탁기관명</caption>
  846. <select1 id="combo3" ref="/root/send/trustinstcd" appearance="minimal" style="left:670px; top:85px; width:165px; height:19px; ">
  847. <choices>
  848. <itemset nodeset="/root/init/trustinstnmlist/trust">
  849. <label ref="trustinstnm"/>
  850. <value ref="trustinstcd"/>
  851. </itemset>
  852. </choices>
  853. </select1>
  854. <select1 id="combo1" ref="/root/send/judgrid" navindex="1" appearance="minimal" style="left:1015px; top:10px; width:90px; height:19px; ">
  855. <choices>
  856. <itemset nodeset="/root/init/U0001list/U0001">
  857. <label ref="cdnm"/>
  858. <value ref="cdid"/>
  859. </itemset>
  860. </choices>
  861. </select1>
  862. <select1 id="rdo_year" ref="/root/hidden/chkym" overflow="visible" appearance="full" cols="4" style="left:85px; top:35px; width:185px; height:15px; border-style:none; ">
  863. <choices>
  864. <item>
  865. <label>6개월</label>
  866. <value>sixm</value>
  867. </item>
  868. <item>
  869. <label>1년</label>
  870. <value>oney</value>
  871. </item>
  872. <item>
  873. <label>2년</label>
  874. <value>twoy</value>
  875. </item>
  876. <item>
  877. <label>3년</label>
  878. <value>threey</value>
  879. </item>
  880. </choices>
  881. <script type="javascript" ev:event="xforms-select">
  882. <![CDATA[
  883. var choice = rdo_year.value;
  884. var curDate = getCurrentDate();
  885. var today = new Date();
  886. var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  887. var basemonth = today.getDateFormat("MM");
  888. var currentym = baseyear + basemonth;
  889. if (choice == "sixm")
  890. {
  891. fromDate = curDate.toDate().getAddDate(-6,"M").getDateFormat("YYYYMM");
  892. }
  893. else if (choice == "oney")
  894. {
  895. fromDate = curDate.toDate().getAddDate(-12,"M").getDateFormat("YYYYMM");
  896. }
  897. else if (choice == "twoy")
  898. {
  899. fromDate = curDate.toDate().getAddDate(-24,"M").getDateFormat("YYYYMM");
  900. }
  901. else if (choice == "threey")
  902. {
  903. fromDate = curDate.toDate().getAddDate(-36,"M").getDateFormat("YYYYMM");
  904. }
  905. model.setValue("/root/send/clamymfrom",fromDate);
  906. model.setValue("/root/send/clamymto",currentym);
  907. model.refresh();
  908. ]]>
  909. </script>
  910. </select1>
  911. </group>
  912. <caption id="caption12" class="tit_2" style="left:0px; top:140px; width:100px; height:13px; ">환자 리스트</caption>
  913. <button id="button2" class="btn2_letter4" style="left:1121px; top:136px; width:64px; height:19px; ">
  914. <caption>엑셀저장</caption>
  915. <script type="javascript" ev:event="DOMActivate">
  916. <![CDATA[
  917. if (grd_outjudg.rows > 1) {
  918. var fileName = window.fileDialog("save", "", false, "청구삭감 환자조회_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  919. if (fileName != "") {
  920. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  921. // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
  922. grd_outjudg.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  923. }
  924. } else {
  925. messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
  926. }
  927. ]]>
  928. </script>
  929. </button>
  930. <datagrid id="grd_outjudg" nodeset="/root/main/grdlist/clamcutlist" class="datagrid2" caption="등록번호^성명^내원유형^청구월^구분^차수^유형^보조^청구과^진료과^진료의^주상병^접수번호^명일련^줄번호^처방코드^EDI코드^한글명^단가^수량^횟수^일수^총투여량^금액^입원일자^유형시작일^종료일^처방의^심사결정^삭감투여량^삭감횟수^삭감일수^총투삭감량^조정금액^이의신청금액^실삭감금액^원외^급비^심사자" colsep="^" colwidth="76, 59, 37, 67, 40, 45, 20, 23, 100, 54, 66, 66, 75, 48, 47, 86, 86, 205, 78, 54, 46, 37, 56, 83, 75, 75, 83, 60, 36, 70, 62, 67, 85, 100, 100, 100, 31, 24, 55" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:155px; width:1190px; height:565px; ">
  931. <col ref="pid" style="text-align:center; "/>
  932. <col ref="hngnm" style="text-align:center; "/>
  933. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  934. <choices>
  935. <item>
  936. <label>입원</label>
  937. <value>I</value>
  938. </item>
  939. <item>
  940. <label>외래</label>
  941. <value>O</value>
  942. </item>
  943. </choices>
  944. </col>
  945. <col ref="clamym" format="yyyy-mmd" style="text-align:center; "/>
  946. <col disabled="true" ref="clamflagcd" type="combo" style="text-align:center; ">
  947. <choices>
  948. <itemset nodeset="/root/init/P0155list/P0155">
  949. <label ref="cdengabbrnm"/>
  950. <value ref="cdid"/>
  951. </itemset>
  952. </choices>
  953. </col>
  954. <col ref="clamdg" style="text-align:center; "/>
  955. <col ref="insukind"/>
  956. <col ref="suppkind"/>
  957. <col ref="clamdeptcd"/>
  958. <col ref="orddeptcd"/>
  959. <col ref="orddrnm" style="text-align:center; "/>
  960. <col ref="diagcd"/>
  961. <col ref="acptno" style="text-align:center; "/>
  962. <col ref="docuseqno" style="text-align:center; "/>
  963. <col ref="edilnno" style="text-align:center; "/>
  964. <col ref="snglcalcscorcd"/>
  965. <col ref="edicd"/>
  966. <col ref="calchngnm" style="left:1015px; top:32px; width:205px; height:23px; "/>
  967. <col ref="unitcost" format="#,###" style="text-align:right; "/>
  968. <col ref="drugqty" format="#,###.00" style="text-align:center; "/>
  969. <col ref="tims" format="#,###" style="text-align:center; "/>
  970. <col ref="dayno" format="#,###" style="text-align:center; "/>
  971. <col ref="totdrugqty" format="#,###.00" style="text-align:center; "/>
  972. <col ref="amt" format="#,###" style="text-align:right; "/>
  973. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  974. <col ref="cretfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  975. <col ref="crettodd" format="yyyy-mm-dd" style="text-align:center; "/>
  976. <col ref="clamdrid" style="text-align:center; "/>
  977. <col ref="judgyn" style="text-align:center; "/>
  978. <col ref="cutdrugqty" format="#,###.00" style="text-align:right; "/>
  979. <col ref="cuttims" format="#,###" style="text-align:right; "/>
  980. <col ref="cutdayno" format="#,###" style="text-align:right; "/>
  981. <col ref="totcutqty" format="#,###.00" style="text-align:right; "/>
  982. <col ref="adjtamt" format="#,###" style="text-align:right; "/>
  983. <col ref="obtappamt" format="#,###" style="text-align:right; "/>
  984. <col ref="orgreduamt" format="#,###" style="text-align:right; "/>
  985. <col ref="oprcp"/>
  986. <col disabled="true" ref="payflag" type="combo">
  987. <choices>
  988. <item>
  989. <label>급</label>
  990. <value>0</value>
  991. </item>
  992. <item>
  993. <label>100</label>
  994. <value>1</value>
  995. </item>
  996. <item>
  997. <label>비</label>
  998. <value>2</value>
  999. </item>
  1000. <item>
  1001. <label>선</label>
  1002. <value>8</value>
  1003. </item>
  1004. <item>
  1005. <label>선</label>
  1006. <value>9</value>
  1007. </item>
  1008. </choices>
  1009. </col>
  1010. <col ref="judgrnm"/>
  1011. </datagrid>
  1012. </group>
  1013. </xhtml:body>
  1014. </xhtml:html>