SPPID21600_세부계산내역조회.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  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. <list1>
  11. <iscl/>
  12. </list1>
  13. </main>
  14. <send>
  15. <cretno/>
  16. <ownbrate/>
  17. <insukind/>
  18. <suppkind/>
  19. <pid/>
  20. <indd/>
  21. <mskind/>
  22. <insukindcd/>
  23. <suppkindcd/>
  24. <fromdd/>
  25. <todd/>
  26. <insufromdd/>
  27. <insutodd/>
  28. <grupsnglflag/>
  29. <choicdsrch/>
  30. <calcscorcd/>
  31. <!-- <calcscorcdflag/>
  32. <past/>
  33. <cretno/>-->
  34. <srchflag/>
  35. <!-- <ordlist/>-->
  36. <instcd/>
  37. <ordtype/>
  38. <brateflag/>
  39. </send>
  40. <init>
  41. <!-- <sppid21600>
  42. <cond>
  43. <pid/>
  44. <indd/>
  45. <fromdd/>
  46. <todd/>
  47. <calcscorcd/>
  48. <insukindcd/>
  49. <insukind/>
  50. <suppkindcd/>
  51. <suppkind/>
  52. <ownbrate/>
  53. </cond>
  54. </sppid21600>-->
  55. <item1>
  56. <inpt>
  57. <mskind/>
  58. <insufromdd/>
  59. <ordtype/>
  60. <brateflag/>
  61. </inpt>
  62. </item1>
  63. </init>
  64. <hidden>
  65. <list1>
  66. <isclsrch>
  67. <!-- 처방 조회부 Radio, CheckBox 선택값 -->
  68. <selectedRdoItem/>
  69. <judgChanged/>
  70. </isclsrch>
  71. <isclitem1>
  72. <!-- 처방 목록에 해당하는 항목이 있는 경우 Radio item을 굵게 표시 -->
  73. <ediitem1_all/>
  74. <ediitem1_01/>
  75. <ediitem1_02/>
  76. <ediitem1_03/>
  77. <ediitem1_04/>
  78. <ediitem1_05/>
  79. <ediitem1_06/>
  80. <ediitem1_07/>
  81. <ediitem1_08/>
  82. <ediitem1_09/>
  83. <ediitem1_10/>
  84. <ediitem1_SS/>
  85. </isclitem1>
  86. <isclcond>
  87. <!-- 재행/급여/항목 구분 Radio 에서 선택된 값에 따라 처방 Grid에 보여질 값들의 조건식
  88. (수가 마스터에서 사용하는 구분값과 심사 화면에서 조건으로 사용되는 값들이 서로 맞지 않아 조건식을 조합하여 작성함 -->
  89. <judgadjtresncd/>
  90. <ediitem1/>
  91. </isclcond>
  92. </list1>
  93. <smpic00200>
  94. <judgsrch>
  95. <con1_dd/>
  96. <con2_gsflag/>
  97. <con3_search1/>
  98. <con4_search2/>
  99. <con5_insu/>
  100. <con6_calcscorcd/>
  101. <con7_todd/>
  102. <con8_instcd/>
  103. </judgsrch>
  104. </smpic00200>
  105. </hidden>
  106. </root>
  107. </instance>
  108. <script type="javascript" ev:event="xforms-ready">
  109. <![CDATA[
  110. fInitialize();
  111. ]]>
  112. </script>
  113. <submission id="TRPIJ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list1"/>
  114. <submission id="TRPID21601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/item1"/>
  115. </model>
  116. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  121. <script type="javascript">
  122. <![CDATA[
  123. function fInitialize(){
  124. model.setValue("/root/hidden/list1/isclsrch/selectedRdoItem", "-"); // 처방 필터링: 전체
  125. if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  126. fGetMainInfo();
  127. }
  128. }
  129. //Opener에서 기본 정보를 받아 온다.
  130. function fGetMainInfo(){
  131. // Output 표시용 data
  132. model.setValue("/root/send/insukindcd", opener.model.getValue("/root/hidden/sppid21600/cond/insukindcd"));
  133. model.setValue("/root/send/insukind", opener.model.getValue("/root/hidden/sppid21600/cond/insukind"));
  134. model.setValue("/root/send/suppkindcd", opener.model.getValue("/root/hidden/sppid21600/cond/suppkindcd"));
  135. model.setValue("/root/send/suppkind", opener.model.getValue("/root/hidden/sppid21600/cond/suppkind"));
  136. // 세부내역 화면 표시용
  137. model.setValue("/root/send/ownbrate", opener.model.getValue("/root/hidden/sppid21600/cond/ownbrate")); // 요율
  138. // submit("TRPID21601") 용 조건 data
  139. model.setValue("/root/send/pid", opener.model.getValue("/root/hidden/sppid21600/cond/pid"));
  140. model.setValue("/root/send/indd", opener.model.getValue("/root/hidden/sppid21600/cond/indd"));
  141. model.setValue("/root/send/cretno", opener.model.getValue("/root/hidden/sppid21600/cond/cretno")); // 환자 일자별 일련번호
  142. submit("TRPID21601");
  143. // submit("TRPIJ00401") 용 조건 data
  144. model.setValue("/root/send/mskind", model.getValue("/root/init/item1/inpt/mskind"));
  145. model.setValue("/root/send/fromdd", opener.model.getValue("/root/hidden/sppid21600/cond/fromdd"));
  146. model.setValue("/root/send/todd", opener.model.getValue("/root/hidden/sppid21600/cond/todd"));
  147. model.setValue("/root/send/insufromdd", model.getValue("/root/init/item1/inpt/insufromdd"));
  148. // model.setValue("/root/send/insufromdd", opener.model.getValue("/root/hidden/sppid21600/cond/indd"));
  149. model.setValue("/root/send/insutodd", ""); // 사용x
  150. model.setValue("/root/send/grupsnglflag", opener.model.getValue("/root/hidden/sppid21600/cond/grupsnglflag"));
  151. model.setValue("/root/send/choicdsrch", "calcscorcd");
  152. model.setValue("/root/send/calcscorcd", opener.model.getValue("/root/hidden/sppid21600/cond/calcscorcd"));
  153. model.setValue("/root/send/srchflag", ""); // 사용x
  154. model.setValue("/root/send/instcd", ""); // 사용x
  155. model.setValue("/root/send/ordtype", model.getValue("/root/init/item1/inpt/ordtype"));
  156. model.setValue("/root/send/brateflag", model.getValue("/root/init/item1/inpt/brateflag"));
  157. fGetIsclList();
  158. }
  159. // 사후심사 입원세부계산내역 조회
  160. function fGetIsclList(){
  161. model.setValue("/root/hidden/list1/isclsrch/selectedRdoItem", "-"); // 처방 필터링: 전체
  162. model.resetInstanceNode("/root/hidden/list1/isclsrch/judgChanged");
  163. model.resetInstanceNode("/root/hidden/list1/isclitem1");
  164. model.resetInstanceNode("/root/hidden/list1/isclcond");
  165. // model.setValue("/root/send/choicdsrch", "calcscorcd");
  166. var itemRadioList = instance1.selectSingleNode("/root/hidden/list1/isclitem1");
  167. var itemNode = itemRadioList.childNodes;
  168. for (var i = 0; i < itemNode.length; i++) {
  169. rdo_item1.item(i).attribute("font-weight") = "normal";
  170. }
  171. var mskind = model.getValue("/root/send/mskind");
  172. if (mskind) { // submit("TRPID21601") 조회 결과가 있는 경우임
  173. submit("TRPIJ00401");
  174. if (grd_ordlist.rows > 1) {
  175. // var rowcnt = getNodesetCount("/root/main/list1/iscl");
  176. // rowcnt = eval(rowcnt) + 1;
  177. // for (var i=1; i<rowcnt; i++) {
  178. for (var i = 1; i < grd_ordlist.rows; i++) {
  179. var estmmncd = model.getValue("/root/main/list1/iscl["+ i + "]/estmmncd");
  180. var estmmnnm = model.getValue("/root/main/list1/iscl["+ i + "]/estmmnnm");
  181. if (estmmnnm != "") {
  182. grd_ordlist.tooltipText(i, grd_ordlist.colref("estmmncd")) = "[산정의미코드:" + estmmncd + "]" + estmmnnm;
  183. }
  184. }
  185. fGetSelectedOrderData(); // 처방 조회부 - 항목구분 Radio / 심사변경 CheckBox 선택에 따라 처방 내역을 보여준다.
  186. // fSetColorSpclJudgOrder();
  187. } else {
  188. messageBox("조회된 결과가", "I004"); ///조회된 결과가 없습니다.
  189. }
  190. } else {
  191. messageBox("세부 계산내역을 조회할 입원정보가", "I004"); ///세부 계산내역을 조회할 입원정보가 없습니다.
  192. }
  193. }
  194. //////////////////////////////////////////////////////////////////////////////////////////////////////////////
  195. //조회항목 Filter기능 코딩 //
  196. //////////////////////////////////////////////////////////////////////////////////////////////////////////////
  197. // 처방 조회부 - 항목구분 Radio / 심사변경 CheckBox 선택에 따라 처방 내역을 보여준다.
  198. function fGetSelectedOrderData() {
  199. var selectedCond = "";
  200. var judgadjtresncd = model.getValue("/root/hidden/list1/isclcond/judgadjtresncd");
  201. if (judgadjtresncd) {
  202. selectedCond = judgadjtresncd;
  203. }
  204. var ediitem1 = model.getValue("/root/hidden/list1/isclcond/ediitem1");
  205. if (ediitem1) {
  206. if (selectedCond) {
  207. selectedCond += " and " + ediitem1;
  208. } else {
  209. selectedCond = ediitem1;
  210. }
  211. }
  212. if (selectedCond) {
  213. grd_ordlist.attribute("nodeset") = "/root/main/list1/iscl[" + selectedCond + "]";
  214. } else {
  215. grd_ordlist.attribute("nodeset") = "/root/main/list1/iscl";
  216. }
  217. grd_ordlist.rebuild();
  218. grd_ordlist.row = 0; // 그리드의 첫줄부터 표시되도록 포커스를 0으로 설정한다.
  219. // 처방 Grid의 내용이 변경된 경우, 선별심사 처방 색깔 구분을 다시 처리한다.
  220. fSetColorSpclJudgOrder();
  221. model.refresh();
  222. }
  223. function fSetColorSpclJudgOrder() {
  224. for (var i = 1; i < grd_ordlist.rows; i++) { // Grid 필터링 이후 Grid 상에 표시된 처방 개수만큼 돌면서
  225. //Color 표시 범례
  226. //1. 문제처방 : #fcd2c1
  227. //2. 선별심사 : #ffe79d
  228. //3. 선별심사 + 문제처방 : #7BE6B7
  229. //4. 기왕증 : #b9e5fb
  230. //5. CP처방 : #c8e67b
  231. var spcljudgyn = grd_ordlist.valuematrix(i, grd_ordlist.colRef("spcljudgyn")); //선별심사 체크
  232. var probordyn = grd_ordlist.valuematrix(i, grd_ordlist.colRef("probordyn")); //문제처방 체크
  233. if (spcljudgyn == "Y" && probordyn == "Y" ) { //둘다 체크된경우
  234. grd_ordlist.rowStyle(i,"data","background-color") = "#7BE6B7";
  235. } else if (spcljudgyn == "Y" && probordyn == "N" ) { //선별심사만 체크된경우
  236. grd_ordlist.rowStyle(i,"data","background-color") = "#ffe79d";
  237. } else if (spcljudgyn == "N" && probordyn == "Y" ) { //문제처방만 체크된경우
  238. grd_ordlist.rowStyle(i,"data","background-color") = "#fcd2c1";
  239. } else { //둘다체크 안된경우 원래대로
  240. var chk_digit = i % 2; //2로 나눠서 나머지가 0 이면 짝수줄 이란 소리
  241. if (chk_digit != 0) {
  242. grd_ordlist.rowStyle(i, "data", "background-color") = "#ffffff"; //짝수는 연한 회식
  243. } else {
  244. grd_ordlist.rowStyle(i, "data", "background-color") = "#f4f4f4"; //홀수는 그냥 힌색
  245. }
  246. }
  247. // 항목구분 조회부 Radio에 해당하는 처방이 있는지 여부를 확인한다.
  248. var ediitem1 = model.getValue("/root/main/list1/iscl["+ i +"]/ediitem1");
  249. if (ediitem1) {
  250. var path = "/root/hidden/list1/isclitem1/ediitem1_" + ediitem1;
  251. var node = instance1.selectSingleNode(path);
  252. if (node != null) {
  253. model.setValue(path, ediitem1);
  254. }
  255. }
  256. }
  257. // 처방 조회부 항목구분 Radio에서 해당 처방이 있는 item을 굵게 표시한다.
  258. var itemRadioList = instance1.selectSingleNode("/root/hidden/list1/isclitem1");
  259. var itemNode = itemRadioList.childNodes;
  260. rdo_item1.item(0).attribute("font-weight") = "bold"; // "전체" 항목은 default 로 굵게 표시한다.
  261. for (var i = 1; i < itemNode.length; i++) {
  262. var ediitem1 = itemNode.item(i).value;
  263. if (ediitem1) {
  264. rdo_item1.item(i).attribute("font-weight") = "bold";
  265. } else {
  266. rdo_item1.item(i).attribute("font-weight") = "normal";
  267. }
  268. }
  269. }
  270. //////////////////////////////////////////////////////////////////////////////////////////////////////////////
  271. //조회항목 Filter기능 코딩 끝 //
  272. //////////////////////////////////////////////////////////////////////////////////////////////////////////////
  273. ]]>
  274. </script>
  275. </xhtml:head>
  276. <xhtml:body pagewidth="1116" pageheight="544" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  277. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1100px; height:509px; ">
  278. <caption id="caption10" class="tit_2" style="left:5px; top:69px; width:131px; height:13px; ">입원 세부 계산내역</caption>
  279. <line id="line2" class="line_1" style="x1:0px; y1:84px; x2:1099px; y2:84px; "/>
  280. <datagrid id="grd_ordlist" nodeset="/root/main/list1/iscl" class="datagrid2" caption="선&#xA;별^문&#xA;제^S^I/O^항^목^진료일자^시행일시^시&#xA;행^항목^G^그룹코드^수가코드^EDI코드^산정&#xA;분류^산정&#xA;의미^산정&#xA;코드^한글명^급비^재료&#xA;행위^퇴^단가^1회량^횟수^1일량&#xA;(일투)^일수&#xA;(총투)^금액^선&#xA;택^종별가산&#xA;단가^선택가산&#xA;단가^가산단가^총진료비^본인&#xA;부담금^종별가산&#xA;SUM^선택진료&#xA;SUM^가산&#xA;SUM^처방&#xA;상태^처방일시^처방과^입력자^최종&#xA;수정자^최종수정일시^처방명^수정&#xA;사유^치식^확인&#xA;코드^CP&#xA;여부^PRN^포터블^기왕증&#xA;(진료)^마취&#xA;시간^수정사유&#xA;명칭^edicdflag^ediunitcost^적용일자^pid^indd^cretno^calcseqno^calcscorseqno^mskind^그룹&#xA;항목^가산금액^가산&#xA;점수^퇴장방지&#xA;금액^퇴장방지&#xA;여부^처방&#xA;수량^처방&#xA;횟수^처방&#xA;일수^급여총액^급여보험자&#xA;부담금^급여본인&#xA;부담금^급여본인&#xA;부담율^점당단가^전액본인^비급여&#xA;금액^NC^용법^예약일시^그룹&#xA;순번^특진^보험유형^보조유형^수가&#xA;급비^처방분류1^처방분류2^처방분류3" colsep="^" colwidth="20, 20, 18, 25, 28, 22, 70, 115, 18, 18, 18, 84, 80, 65, 30, 30, 30, 200, 30, 30, 18, 58, 40, 30, 40, 40, 58, 18, 58, 58, 58, 58, 58, 58, 58, 58, 60, 115, 60, 43, 43, 115, 150, 30, 100, 53, 30, 30, 42, 42, 30, 54, 56, 70, 50, 44, 40, 43, 65, 89, 46, 30, 58, 46, 58, 56, 30, 30, 30, 58, 67, 58, 58, 60, 58, 58, 30, 80, 115, 30, 30, 64, 64, 30, 70, 70, 70" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" frozencols="13" mergecellsfixedrows="byrow" rowheader="seq" rowheight="35" rowsep="|" tooltip="true" style="left:1px; top:89px; width:1099px; height:420px; ">
  281. <col ref="spcljudgyn" visibility="hidden" style="background-color:#c0c0c0; "/>
  282. <col ref="probordyn" visibility="hidden" style="background-color:#c0c0c0; "/>
  283. <col ref="seq"/>
  284. <col ref="ordtype" visibility="hidden" style="background-color:#c0c0c0; "/>
  285. <col ref="ediitem1"/>
  286. <col ref="ediitem2"/>
  287. <col ref="orddd" format="yyyy-mm-dd"/>
  288. <col ref="execdd" format="yyyy-mm-dd hh:nn:ss"/>
  289. <col ref="execstat"/>
  290. <col ref="snglcalcscorcls" visibility="hidden" style="background-color:#c0c0c0; "/>
  291. <col ref="grupflag"/>
  292. <col ref="grupcalcscorcd"/>
  293. <col ref="snglcalcscorcd"/>
  294. <col ref="edicd"/>
  295. <col ref="estmcls" visibility="hidden" style="background-color:#c0c0c0; "/>
  296. <col ref="estmmncd" maxlength="5"/>
  297. <col ref="estmcd"/>
  298. <col ref="hngnm"/>
  299. <col disabled="true" ref="calcpayflag" type="combo">
  300. <choices>
  301. <item>
  302. <label>급</label>
  303. <value>0</value>
  304. </item>
  305. <item>
  306. <label>100</label>
  307. <value>1</value>
  308. </item>
  309. <item>
  310. <label>비</label>
  311. <value>2</value>
  312. </item>
  313. </choices>
  314. </col>
  315. <col disabled="true" ref="matractflag" type="combo">
  316. <choices>
  317. <item>
  318. <label>원외</label>
  319. <value>0</value>
  320. </item>
  321. <item>
  322. <label>재료</label>
  323. <value>1</value>
  324. </item>
  325. <item>
  326. <label>가O</label>
  327. <value>2</value>
  328. </item>
  329. <item>
  330. <label>가X</label>
  331. <value>3</value>
  332. </item>
  333. <item>
  334. <label>약제</label>
  335. <value>4</value>
  336. </item>
  337. <item>
  338. <label>위탁</label>
  339. <value>5</value>
  340. </item>
  341. <item>
  342. <label>약제</label>
  343. <value>6</value>
  344. </item>
  345. </choices>
  346. </col>
  347. <col ref="dschdrugflag"/>
  348. <col ref="appunitcost" format="(-)#,###" style="text-align:right; "/>
  349. <col ref="calcqty" format="###.00" style="text-align:right; "/>
  350. <col ref="calctims" style="text-align:right; "/>
  351. <col ref="daydrugqty" format="###.00" style="text-align:right; "/>
  352. <col ref="calcdays" style="text-align:right; "/>
  353. <col ref="calcamt" format="(-)#,###" style="text-align:right; "/>
  354. <col ref="unitspecyn"/>
  355. <col ref="unithospaddamt" format="(-)#,###" style="text-align:right; "/>
  356. <col ref="unitspecamt" format="(-)#,###" style="text-align:right; "/>
  357. <col ref="unitaddamt" format="(-)#,###" style="text-align:right; "/>
  358. <col ref="totordamt" format="(-)#,###" style="text-align:right; "/>
  359. <col ref="ownbamt" format="(-)#,###" style="text-align:right; "/>
  360. <col ref="hospaddamt" format="(-)#,###" style="text-align:right; "/>
  361. <col ref="specamt" format="(-)#,###" style="text-align:right; "/>
  362. <col ref="estmamt" format="(-)#,###" style="text-align:right; "/>
  363. <col ref="execprcpstatcd"/>
  364. <col ref="rgstdt" format="yyyy-mm-dd hh:nn:ss"/>
  365. <col ref="orddeptnm"/>
  366. <col ref="fstrgstrid"/>
  367. <col ref="lastupdtrid"/>
  368. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  369. <col ref="ordnm"/>
  370. <col ref="judgadjtresncd"/>
  371. <col ref="tootfact"/>
  372. <col ref="cnfmcd"/>
  373. <col ref="cpflag"/>
  374. <col ref="prnprcpflag"/>
  375. <col ref="portprcpflag"/>
  376. <col ref="anamneflag"/>
  377. <col ref="ansttm"/>
  378. <col ref="judgadjtresncdnm" visibility="hidden" style="background-color:#c0c0c0; "/>
  379. <col ref="edicdflag" visibility="hidden" style="background-color:#c0c0c0; "/>
  380. <col ref="ediunitcost" visibility="hidden" style="background-color:#c0c0c0; "/>
  381. <col ref="updtdd" visibility="hidden" style="background-color:#c0c0c0; "/>
  382. <col ref="pid" visibility="hidden" style="background-color:#c0c0c0; "/>
  383. <col ref="indd" visibility="hidden" style="background-color:#c0c0c0; "/>
  384. <col ref="cretno" visibility="hidden" style="background-color:#c0c0c0; "/>
  385. <col ref="calcseqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  386. <col ref="calcscorseqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  387. <col ref="mskind" visibility="hidden" style="background-color:#c0c0c0; "/>
  388. <col ref="grupcalcscorcls" visibility="hidden" style="background-color:#c0c0c0; "/>
  389. <col ref="calcscorpnt" format="(-)#,###" style="text-align:right; "/>
  390. <col ref="estmpnt" format="###.00" style="text-align:right; "/>
  391. <col ref="exitprvntdrugamt" format="(-)#,###" style="text-align:right; "/>
  392. <col ref="exitprvntdrugyn" style="text-align:right; "/>
  393. <col ref="ordqty" style="text-align:right; "/>
  394. <col ref="ordtims" style="text-align:right; "/>
  395. <col ref="orddays" style="text-align:right; "/>
  396. <col ref="payamt" format="(-)#,###" style="text-align:right; "/>
  397. <col ref="payinsubamt" format="(-)#,###" style="text-align:right; "/>
  398. <col ref="payownbamt" format="(-)#,###" style="text-align:right; "/>
  399. <col ref="payownbrate" style="text-align:right; "/>
  400. <col ref="pntunitcost" format="(-)#,###" style="text-align:right; "/>
  401. <col ref="allownbamt" format="(-)#,###" style="text-align:right; "/>
  402. <col ref="nopyamt" format="(-)#,###" style="text-align:right; "/>
  403. <col ref="freeflag"/>
  404. <col ref="drugmthdspccd"/>
  405. <col ref="rsrvdd" format="yyyy-mm-dd hh:nn:ss"/>
  406. <col ref="grupseqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  407. <col ref="specordyn" visibility="hidden" style="background-color:#c0c0c0; "/>
  408. <col ref="insukind" visibility="hidden" style="background-color:#c0c0c0; "/>
  409. <col ref="suppkind" visibility="hidden" style="background-color:#c0c0c0; "/>
  410. <col disabled="true" ref="pynpy" type="combo">
  411. <choices>
  412. <item>
  413. <label>급</label>
  414. <value>0</value>
  415. </item>
  416. <item>
  417. <label>100</label>
  418. <value>1</value>
  419. </item>
  420. <item>
  421. <label>비</label>
  422. <value>2</value>
  423. </item>
  424. </choices>
  425. </col>
  426. <col ref="earncls1"/>
  427. <col ref="earncls2"/>
  428. <col ref="earncls3"/>
  429. </datagrid>
  430. <group id="group2" style="left:0px; top:0px; width:1100px; height:59px; vertical-align:top; ">
  431. <shape id="roundrect1" class="roundrerct_search" appearance="roundrect" style="left:0px; top:0px; width:1099px; height:59px; "/>
  432. <button id="btn_srch" class="btn1_letter2" style="left:1028px; top:31px; width:56px; height:22px; ">
  433. <caption>조회</caption>
  434. <script type="javascript" ev:event="onclick">
  435. <![CDATA[
  436. fGetIsclList();
  437. ]]>
  438. </script>
  439. </button>
  440. <caption id="caption5" class="search_name" style="left:587px; top:9px; width:60px; height:17px; ">기간 :</caption>
  441. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:650px; top:8px; width:85px; height:19px; "/>
  442. <caption id="caption6" style="left:738px; top:8px; width:11px; height:18px; ">~</caption>
  443. <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" style="left:752px; top:8px; width:85px; height:19px; "/>
  444. <caption id="caption8" class="search_name" style="left:587px; top:33px; width:86px; height:17px; ">코드조회 :</caption>
  445. <input id="ipt_cd" ref="/root/send/calcscorcd" class="input_search" inputtype="button" style="left:819px; top:32px; width:112px; height:19px; ">
  446. <script type="javascript" ev:event="onbuttonclick">
  447. <![CDATA[
  448. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate()); // (dateHelper.js) 현재날짜 반환
  449. model.setValue("/root/hidden/smpic00200/judgsrch/con2_gsflag", "S");
  450. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", model.getValue("/root/send/choicdsrch" ));
  451. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/send/calcscorcd")); // SMPIC00200_수가조회 용
  452. var insukindcd = model.getValue("/root/send/insukindcd");
  453. if (insukindcd == "11") {
  454. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  455. }
  456. else if (insukindcd == "21" || insukindcd == "22") {
  457. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "proc");
  458. }
  459. else if (insukindcd == "31") {
  460. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "autm");
  461. }
  462. else if (insukindcd == "41") {
  463. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "indus");
  464. } else {
  465. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  466. }
  467. modal("SMPIC00200", 1, 150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
  468. var mechSelect = instance1.selectSingleNode("/root/temp/mech");
  469. if (mechSelect == null) { // 선택한 코드가 없는 경우
  470. } else {
  471. model.setValue("/root/send/calcscorcd", model.getValue("/root/temp/picmmech/picmmech_calcscorcd"));
  472. model.setValue("/root/send/choicdsrch", "calcscorcd");
  473. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  474. model.refresh();
  475. }
  476. ]]>
  477. </script>
  478. </input>
  479. <output id="opt_pid" ref="/root/send/pid" class="output_fix" style="left:104px; top:8px; width:80px; height:19px; "/>
  480. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  481. <input id="ipt_indd" ref="/root/send/indd" class="input_default" inputtype="date" style="left:358px; top:8px; width:85px; height:19px; "/>
  482. <caption id="caption3" class="search_name" style="left:269px; top:9px; width:86px; height:17px; ">입원일자 :</caption>
  483. <!-- rdo_mchrgcode : 세부계산내역 조회용이 아닌 "코드조회" 에 사용될 수가코드 검색용 Radio 구분임 -->
  484. <select1 id="rdo_mchrgcode" ref="/root/send/choicdsrch" class="radio_search" overflow="visible" appearance="full" cellspacing="5" cols="3" style="left:676px; top:36px; width:140px; height:15px; border-style:none; ">
  485. <choices>
  486. <item>
  487. <label>수가</label>
  488. <value>calcscorcd</value>
  489. </item>
  490. <item>
  491. <label>EDI</label>
  492. <value>edicd</value>
  493. </item>
  494. <item>
  495. <label>명칭</label>
  496. <value>hngnm</value>
  497. </item>
  498. </choices>
  499. </select1>
  500. <output id="opt_insukindnm" ref="/root/send/insukind" class="output_fix" style="left:124px; top:32px; width:80px; height:19px; "/>
  501. <output id="opt_insukind" ref="/root/send/insukindcd" class="output_fix" style="left:104px; top:32px; width:17px; height:19px; "/>
  502. <output id="opt_suppkind" ref="/root/send/suppkindcd" class="output_fix" style="left:358px; top:32px; width:17px; height:19px; "/>
  503. <output id="opt_suppkindnm" ref="/root/send/suppkind" class="output_fix" style="left:378px; top:32px; width:122px; height:19px; "/>
  504. <output id="opt_ownrate" ref="/root/send/ownbrate" class="output_fix" style="left:503px; top:32px; width:25px; height:19px; text-align:right; "/>
  505. <caption id="caption4" class="search_name" style="left:269px; top:33px; width:86px; height:17px; ">유형보조 :</caption>
  506. <caption id="caption7" class="search_name" style="left:15px; top:33px; width:86px; height:17px; ">보험유형 :</caption>
  507. <caption id="caption1" class="tit_3" style="left:531px; top:36px; width:13px; height:14px; ">%</caption>
  508. <line id="line1" class="line_4" style="x1:1013px; y1:31px; x2:1013px; y2:53px; "/>
  509. </group>
  510. <select1 id="rdo_item1" ref="/root/hidden/list1/isclsrch/selectedRdoItem" class="radio_search" overflow="visible" appearance="full" cols="13" style="left:427px; top:67px; width:585px; height:15px; ">
  511. <choices>
  512. <item>
  513. <label>전체</label>
  514. <value>-</value>
  515. </item>
  516. <item>
  517. <label>진찰</label>
  518. <value>01</value>
  519. </item>
  520. <item>
  521. <label>입원</label>
  522. <value>02</value>
  523. </item>
  524. <item>
  525. <label>투약</label>
  526. <value>03</value>
  527. </item>
  528. <item>
  529. <label>주사</label>
  530. <value>04</value>
  531. </item>
  532. <item>
  533. <label>마취</label>
  534. <value>05</value>
  535. </item>
  536. <item>
  537. <label>이학</label>
  538. <value>06</value>
  539. </item>
  540. <item>
  541. <label>정신</label>
  542. <value>07</value>
  543. </item>
  544. <item>
  545. <label>수술</label>
  546. <value>08</value>
  547. </item>
  548. <item>
  549. <label>검사</label>
  550. <value>09</value>
  551. </item>
  552. <item>
  553. <label>방서선</label>
  554. <value>10</value>
  555. </item>
  556. <item>
  557. <label>특수</label>
  558. <value>SS</value>
  559. </item>
  560. <item>
  561. <label>원외</label>
  562. <value>99</value>
  563. </item>
  564. </choices>
  565. <script type="javascript" ev:event="xforms-select">
  566. <![CDATA[
  567. var selectedRdoItem = model.getValue("/root/hidden/list1/isclsrch/selectedRdoItem");
  568. if (selectedRdoItem == "" || selectedRdoItem == "-") { // 전체
  569. model.setValue("/root/hidden/list1/isclcond/ediitem1","");
  570. } else {
  571. model.setValue("/root/hidden/list1/isclcond/ediitem1", "ediitem1='"+selectedRdoItem+"'");
  572. }
  573. fGetSelectedOrderData(); // 처방 조회부 - 항목구분 Radio / 심사변경 CheckBox 선택에 따라 처방 내역을 보여준다.
  574. ]]>
  575. </script>
  576. </select1>
  577. <select id="chk_judgadjtresncd" ref="/root/hidden/list1/isclsrch/judgChanged" class="checkbox_search" overflow="visible" appearance="full" style="left:1032px; top:67px; width:67px; height:15px; border-style:none; ">
  578. <choices>
  579. <item>
  580. <label>심사변경</label>
  581. <value>Y</value>
  582. </item>
  583. </choices>
  584. <script type="javascript" ev:event="xforms-deselect">
  585. <![CDATA[
  586. model.setValue("/root/hidden/list1/isclcond/judgadjtresncd", "");
  587. fGetSelectedOrderData(); // 처방 조회부 - 항목구분 Radio / 심사변경 CheckBox 선택에 따라 처방 내역을 보여준다.
  588. ]]>
  589. </script>
  590. <script type="javascript" ev:event="xforms-select">
  591. <![CDATA[
  592. model.setValue("/root/hidden/list1/isclcond/judgadjtresncd", "judgadjtresncd != '-'");
  593. fGetSelectedOrderData(); // 처방 조회부 - 항목구분 Radio / 심사변경 CheckBox 선택에 따라 처방 내역을 보여준다.
  594. ]]>
  595. </script>
  596. </select>
  597. </group>
  598. <group id="group1" scroll="auto" style="left:0px; top:509px; width:1100px; height:35px; ">
  599. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1099px; y2:0px; "/>
  600. <button id="btn_close" class="btn4_letter2" style="left:1043px; top:8px; width:56px; height:22px; ">
  601. <caption>닫기</caption>
  602. <script type="javascript" ev:event="DOMActivate">
  603. <![CDATA[
  604. window.close(); // F5 실행시 IE를 종료시킨다.
  605. ]]>
  606. </script>
  607. </button>
  608. <button id="btn_print" class="btn6_letter2" style="left:0px; top:8px; width:56px; height:22px; ">
  609. <caption>출력</caption>
  610. </button>
  611. <button id="btn_exl" class="btn6_letter2" style="left:58px; top:8px; width:56px; height:22px; ">
  612. <caption>엑셀</caption>
  613. <script type="javascript" ev:event="DOMActivate">
  614. <![CDATA[
  615. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  616. if (fileName != "") {
  617. grd_ordlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  618. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  619. }
  620. ]]>
  621. </script>
  622. </button>
  623. <shape id="roundrect3" class="roundrect_example" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:121px; top:5px; width:514px; height:25px; "/>
  624. <caption id="caption11" class="cell_2" style="left:130px; top:9px; width:40px; height:17px; ">범 례</caption>
  625. <caption id="caption12" class="color_1" style="left:190px; top:10px; width:20px; height:17px; "/>
  626. <caption id="caption13" style="left:215px; top:10px; width:50px; height:17px; ">문제처방</caption>
  627. <caption id="caption14" class="color_2" style="left:275px; top:10px; width:20px; height:17px; "/>
  628. <caption id="caption15" style="left:300px; top:10px; width:50px; height:17px; ">선별심사</caption>
  629. <caption id="caption16" class="color_4" style="left:360px; top:10px; width:20px; height:17px; "/>
  630. <caption id="caption17" style="left:385px; top:10px; width:60px; height:17px; ">문제+선별</caption>
  631. <caption id="caption18" class="color_5" style="left:450px; top:10px; width:20px; height:17px; "/>
  632. <caption id="caption19" style="left:475px; top:10px; width:75px; height:17px; ">기왕증(처방)</caption>
  633. <caption id="caption20" class="color_9" style="left:555px; top:10px; width:20px; height:17px; "/>
  634. <caption id="caption21" style="left:580px; top:10px; width:45px; height:17px; ">CP처방</caption>
  635. </group>
  636. </xhtml:body>
  637. </xhtml:html>