SMPIS01300_청구생성오류점검.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPIS00500_계산처방시행조회.xrw
  4. * 수정이력
  5. * - 2008.09.25 / 최초작성 / 강종태
  6. * - 2009.04.02 / 수정 : 필드 추가, 조건 추가
  7. ************************************************
  8. * [ Maps ]
  9. * TRPID20309 : 진료과, 주치의
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>청구생성오류점검</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <!-- SPPMC02500_환자조회 화면에서 선택된 검색결과를 받는 경로임 -->
  20. <patinfo>
  21. <patinfolist/>
  22. </patinfo>
  23. <popupendflag/>
  24. <grdlist>
  25. <calcorderlist>
  26. <pid/>
  27. <hngnm/>
  28. <ioflag/>
  29. <prcpdd/>
  30. <execdd/>
  31. <insukind/>
  32. <suppkind/>
  33. <orddeptcd/>
  34. <orddrnm/>
  35. <diag/>
  36. <snglcalcscorcd/>
  37. <edicd/>
  38. <calchngnm/>
  39. <appunitcost/>
  40. <calcqty/>
  41. <calctims/>
  42. <calcdays/>
  43. <totqty/>
  44. <calcamt/>
  45. <calcscorpayflag/>
  46. <indd/>
  47. <fromdd/>
  48. <todd/>
  49. <oprcp/>
  50. <judgrid/>
  51. <acptno/>
  52. <cretfromdd/>
  53. <yn/>
  54. </calcorderlist>
  55. </grdlist>
  56. </main>
  57. <init>
  58. <!-- 진료과 -->
  59. <orddeptcdlist>
  60. <cd/>
  61. <nm/>
  62. </orddeptcdlist>
  63. <!-- 진료의 -->
  64. <orddrid>
  65. <cd/>
  66. <nm/>
  67. </orddrid>
  68. <!-- 심사자 -->
  69. <U0001list/>
  70. <earnclslist/>
  71. <P0008list>
  72. <P0008/>
  73. </P0008list>
  74. </init>
  75. <send>
  76. <datecond/>
  77. <fromdd/>
  78. <todd/>
  79. <ioflag/>
  80. <orddeptcd/>
  81. <orddrid/>
  82. <codecond/>
  83. <code/>
  84. <edicd/>
  85. <patunitsrch/>
  86. <judgrid/>
  87. <cancer/>
  88. <large/>
  89. <middle/>
  90. <small/>
  91. <exefromdd/>
  92. <exetodd/>
  93. <clamkey/>
  94. <insukind/>
  95. </send>
  96. <hidden>
  97. <smpic00200>
  98. <judgsrch>
  99. <con1_dd/>
  100. <con2_gsflag/>
  101. <con3_search1/>
  102. <con4_search2/>
  103. <con5_insu/>
  104. </judgsrch>
  105. <rslt>
  106. <mech/>
  107. <picmmech/>
  108. </rslt>
  109. </smpic00200>
  110. <sppmc02500>
  111. <cond>
  112. <srchcond/>
  113. <pid/>
  114. <hngnm/>
  115. </cond>
  116. </sppmc02500>
  117. </hidden>
  118. </root>
  119. </instance>
  120. <script type="javascript" ev:event="xforms-ready">
  121. <![CDATA[
  122. // 화면 초기화
  123. fInitialize();
  124. ]]>
  125. </script>
  126. <!-- submission -->
  127. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  128. <submission id="TRPIS01300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/calcorderlist"/>
  129. <submission id="TRPIS00500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/calcorderlist"/>
  130. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
  131. <submission id="TRPIB00603" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/U0001list"/>
  132. <submission id="TRPIS00510" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/earnclslist"/>
  133. </model>
  134. <!-- js import -->
  135. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  136. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  137. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  138. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  139. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  140. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  141. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  142. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  143. <!-- 뽕숑 -->
  144. <script type="javascript">
  145. <![CDATA[
  146. // 화면 초기화
  147. function fInitialize()
  148. {
  149. // rdo_code.value = "calcscorcd"; // 2009.02.18 라디오버튼 제거
  150. model.removeNodeset("/root/main/grdlist/calcorderlist"); // 그리드 초기화
  151. zbcfGetCodeList(new Array("P0008"), new Array("/root/init/P0008list"), false);
  152. addComboItem("cmb_insukind", "전체", "", "above");
  153. fGetOrdDept(); // 진료과 콤보 리스트
  154. submit("TRPIB00603"); // 심사자 콤보리스트
  155. submit("TRPIS00510"); // 수가 수익분류 리스트
  156. rdo_searchcond.value = "calc";
  157. // 수정시 거지 같아서 분리해 놨다가 로드시 위치로
  158. //rdo_cancer.attribute("left") = 295;
  159. //cp_large.attribute("left") = 295;
  160. //cp_middle.attribute("left") = 475;
  161. //cp_small.attribute("left") = 635;
  162. //cmb_large.attribute("left") = 365;
  163. //cmb_middle.attribute("left") = 520;
  164. //cmb_small.attribute("left") = 685;
  165. // fGetOrdDrid(); // 진료의 콤보 리스트 (TRPID20309 호출시 진료과,진료의 모두 가져온다
  166. // 초기화 할 때 PID가 존재하면 조회를 실행 한다 (팝업으로 호출된 경우 PID를 가지고 있다)
  167. if ( model.getValue("/root/send/patunitsrch") != "" )
  168. {
  169. if ( model.getValue("/root/send/ioflag") == "" ) {
  170. model.setValue("/root/send/ioflag","A");
  171. }
  172. fSearch();
  173. }
  174. else
  175. {
  176. // 팝업 호출시 값을 가져오기 때문에 팝업이 아닐 경우에만 기본값으로 설정해 준다
  177. // rdo_datecond.value = "P"; // 처방 2009.02.18 라디오버튼 제거
  178. rdo_ioflag.value = "A"; // 내원유형:전체
  179. ipt_fromdd.value = getCurrentDate();
  180. ipt_todd.value = getCurrentDate();
  181. ipt_exefromdd.value = getCurrentDate();
  182. ipt_exetodd.value = getCurrentDate();
  183. }
  184. }
  185. // 진료과 리스트 가져오기
  186. function fGetOrdDept()
  187. {
  188. submit("TRPID20309");
  189. }
  190. // // 진료의 리스트 가져오기
  191. // function fGetOrdDrid()
  192. // {
  193. // submit("TRPID20309");
  194. // }
  195. // 환자단위 조회
  196. function fPatSrch()
  197. {
  198. var ipt_pid = model.getValue("/root/send/patunitsrch");
  199. if (ipt_pid) {
  200. if ( !isNaN(ipt_pid) )
  201. {
  202. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  203. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  204. }
  205. else
  206. {
  207. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
  208. model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
  209. }
  210. } else {
  211. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  212. }
  213. // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
  214. modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
  215. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  216. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  217. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  218. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  219. model.setValue("/root/send/patunitsrch", srch_pid);
  220. }
  221. model.refresh();
  222. }
  223. // 수가,EDI
  224. function fGetSnglcalcscorcd() {
  225. // 처방시작일을 수가조회 기준일자로 설정
  226. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", ipt_fromdd.value);
  227. // 싱글수가코드
  228. model.setValue("/root/hidden/smpic00200/judgsrch/con2_gsflag", "S");
  229. // SMPIC00200_수가조회 화면의 검색조건 combo 조건값 설정
  230. // 수가 > calcscorcd , edi > edicd , 한글 hngnm
  231. // model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", rdo_code.value); // 2009.02.18 수가,EDI 라디오 버튼 제거
  232. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "calcscorcd");
  233. // SMPIC00200_수가조회 용
  234. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", "");
  235. // 보험으로 박아서 날린다
  236. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  237. model.removeNodeset("/root/hidden/smpic00200/rslt/mech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  238. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  239. modal("SMPIC00200", "1", "10", "10", "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", ""); // SMPIC00200_수가조회.xrw
  240. var mechSelect = instance1.selectSingleNode("/root/temp/mech");
  241. if (mechSelect == null) { // 선택한 코드가 없는 경우
  242. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  243. return;
  244. }
  245. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  246. model.makeNode("/root/hidden/smpic00200/rslt/mech");
  247. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  248. model.copyNode("/root/hidden/smpic00200/rslt/mech", "/root/temp/mech");
  249. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  250. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  251. if (model.getValue("/root/hidden/smpic00200/rslt/mech/ordinptflag") != "A") { // 처방입력구분(코드군 P0141) A: 가능
  252. messageBox("처방이 불가한 코드", "E008"); ///처방이 불가한 코드입니다.
  253. return;
  254. }
  255. // 수가코드만 조회하기 때문에 수가코드로 박는다 2009.02.23
  256. model.setValue("/root/send/code", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_calcscorcd"));
  257. // if ( model.getValue("/root/send/codecond") == "calcscorcd" )
  258. // {
  259. // model.setValue("/root/send/code", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_calcscorcd"));
  260. // }
  261. // else
  262. // {
  263. // model.setValue("/root/send/code", model.getValue("/root/hidden/smpic00200/rslt/mech/insuedicd"));
  264. // }
  265. ipt_code.refresh();
  266. // model.setValue("/root/send/item1/choicdsrch1", "3");
  267. // rdo_mchrgcode.refresh();
  268. // ipt_choicdsrch.refresh();
  269. }
  270. function fGetEdicd() {
  271. // 처방시작일을 수가조회 기준일자로 설정
  272. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", ipt_fromdd.value);
  273. // 싱글수가코드
  274. model.setValue("/root/hidden/smpic00200/judgsrch/con2_gsflag", "S");
  275. // SMPIC00200_수가조회 화면의 검색조건 combo 조건값 설정
  276. // 수가 > calcscorcd , edi > edicd , 한글 hngnm
  277. // model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", rdo_code.value); // 2009.02.18 수가,EDI 라디오 버튼 제거
  278. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  279. // SMPIC00200_수가조회 용
  280. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", "");
  281. // 보험으로 박아서 날린다
  282. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  283. model.removeNodeset("/root/hidden/smpic00200/rslt/mech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  284. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  285. modal("SMPIC00200", "1", "10", "10", "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", ""); // SMPIC00200_수가조회.xrw
  286. var mechSelect = instance1.selectSingleNode("/root/temp/mech");
  287. if (mechSelect == null) { // 선택한 코드가 없는 경우
  288. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  289. return;
  290. }
  291. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  292. model.makeNode("/root/hidden/smpic00200/rslt/mech");
  293. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  294. model.copyNode("/root/hidden/smpic00200/rslt/mech", "/root/temp/mech");
  295. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  296. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  297. if (model.getValue("/root/hidden/smpic00200/rslt/mech/ordinptflag") != "A") { // 처방입력구분(코드군 P0141) A: 가능
  298. messageBox("처방이 불가한 코드", "E008"); ///처방이 불가한 코드입니다.
  299. return;
  300. }
  301. // 수가코드만 조회하기 때문에 수가코드로 박는다 2009.02.23
  302. model.setValue("/root/send/code", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd"));
  303. // if ( model.getValue("/root/send/codecond") == "calcscorcd" )
  304. // {
  305. // model.setValue("/root/send/code", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_calcscorcd"));
  306. // }
  307. // else
  308. // {
  309. // model.setValue("/root/send/code", model.getValue("/root/hidden/smpic00200/rslt/mech/insuedicd"));
  310. // }
  311. ipt_edicd.refresh();
  312. // model.setValue("/root/send/item1/choicdsrch1", "3");
  313. // rdo_mchrgcode.refresh();
  314. // ipt_choicdsrch.refresh();
  315. }
  316. // 조회
  317. function fSearch()
  318. {
  319. var chk_pid = model.getValue("/root/send/patunitsrch");
  320. var chk_fromdd = model.getValue("/root/send/fromdd");
  321. var chk_todd = model.getValue("/root/send/todd");
  322. var chk_code = model.getValue("/root/send/code");
  323. var chk_edicd = model.getValue("/root/send/edicd");
  324. var chk_cancer = model.getValue("/root/send/cancer");
  325. var chk_large = model.getValue("/root/send/large");
  326. /*
  327. if ( chk_fromdd == "" )
  328. {
  329. messageBox("조회기간은 ", "I003");
  330. model.setFocus("ipt_fromdd");
  331. }
  332. else if (!isValidDateTime(chk_fromdd,"YYYYMMDD"))
  333. {
  334. messageBox("날짜 타입이 ", "E004");
  335. model.setFocus("ipt_fromdd");
  336. }
  337. else if ( chk_todd == "" )
  338. {
  339. messageBox("조회기간은 ", "I003");
  340. model.setFocus("ipt_todd");
  341. }
  342. else if (!isValidDateTime(chk_todd,"YYYYMMDD"))
  343. {
  344. messageBox("날짜 타입이 ", "E004");
  345. model.setFocus("ipt_todd");
  346. }
  347. else if ( chk_code == "" && chk_edicd == "" && chk_pid == "" && chk_cancer == "" && chk_large == "" )
  348. {
  349. messageBox("검색조건은 ", "I003");
  350. model.setFocus("ipt_code");
  351. }
  352. else
  353. {
  354. model.removeNodeset("/root/main/grdlist/calcorderlist");
  355. submit("TRPIS00500");
  356. if (model.getValue("/root/main/grdlist/calcorderlist[1]/pid") == "over10000") {
  357. model.removeNodeset("/root/main/grdlist/calcorderlist");
  358. messageBox("조회된 건수가 만건을 초과하여 배치로 ", "I001");
  359. grd_outjudg.refresh();
  360. }
  361. }
  362. */
  363. model.removeNodeset("/root/main/grdlist/calcorderlist");
  364. model.makeValue("/root/send/screen_id", getScreenID(null));
  365. submit("TRPIS01300");
  366. if (model.getValue("/root/main/grdlist/calcorderlist[1]/pid") == "over10000") {
  367. model.removeNodeset("/root/main/grdlist/calcorderlist");
  368. messageBox("조회된 건수가 만건을 초과하여 배치로 ", "I001");
  369. grd_outjudg.refresh();
  370. }
  371. }
  372. ]]>
  373. </script>
  374. </xhtml:head>
  375. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1214;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  376. <!-- TITLE -->
  377. <group id="group1" style="left:0px; top:0px; width:1190px; height:13px; ">
  378. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">청구생성오류점검</caption>
  379. </group>
  380. <!-- 전체 그룹 -->
  381. <group id="group2" scroll="no" style="left:0px; top:23px; width:1190px; height:732px; ">
  382. <!-- 조회조건 -->
  383. <group id="group3" style="left:0px; top:0px; width:1190px; height:110px; vertical-align:top; ">
  384. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:105px; "/>
  385. <caption id="caption2" class="search_name" style="left:8px; top:31px; width:65px; height:17px; ">진료과</caption>
  386. <select1 id="base_date" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:91px; top:30px; width:100px; height:19px; ">
  387. <choices>
  388. <itemset nodeset="/root/init/tmp/orddeptcd/orddeptcdlist">
  389. <label ref="nm"/>
  390. <value ref="cd"/>
  391. </itemset>
  392. </choices>
  393. <script type="javascript" ev:event="xforms-value-changed">
  394. <![CDATA[
  395. var orddeptcd = model.getValue("/root/send/orddeptcd");
  396. if (orddeptcd) {
  397. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/tmp/orddrid/orddridlist[dp='" + orddeptcd + "']";
  398. } else {
  399. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/tmp/orddrid/orddridlist";
  400. }
  401. model.setValue("/root/send/orddrid", ""); // 주치의 선택을 초기화한다.
  402. model.refresh();
  403. ]]>
  404. </script>
  405. </select1>
  406. <line id="line1" class="line_4" style="x1:1090px; y1:5px; x2:1090px; y2:97px; "/>
  407. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1113px; top:38px; width:56px; height:22px; ">
  408. <caption>조회</caption>
  409. <script type="javascript" ev:event="DOMActivate">
  410. <![CDATA[
  411. fSearch();
  412. ]]>
  413. </script>
  414. </button>
  415. <caption id="caption26" class="search_name" style="left:212px; top:30px; width:70px; height:17px; ">진료의</caption>
  416. <select1 id="cmb_orddrid" ref="/root/send/orddrid" class="combo_search" appearance="minimal" style="left:283px; top:29px; width:100px; height:19px; ">
  417. <choices>
  418. <itemset nodeset="/root/init/tmp/orddrid/orddridlist">
  419. <label ref="nm"/>
  420. <value ref="cd"/>
  421. </itemset>
  422. </choices>
  423. </select1>
  424. <caption id="caption3" class="search_name" style="left:403px; top:7px; width:76px; height:17px; ">내원유형</caption>
  425. <select1 id="rdo_ioflag" ref="/root/send/ioflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:502px; top:7px; width:135px; height:20px; border-style:none; ">
  426. <choices>
  427. <item>
  428. <label>전체</label>
  429. <value>A</value>
  430. </item>
  431. <item>
  432. <label>입원</label>
  433. <value>I</value>
  434. </item>
  435. <item>
  436. <label>외래</label>
  437. <value>O</value>
  438. </item>
  439. </choices>
  440. <script type="javascript" ev:event="xforms-value-changed">
  441. <![CDATA[
  442. fGetOrdDept(); // 진료과 콤보 리스트
  443. // fGetOrdDrid(); // 진료의 콤보 리스트
  444. ]]>
  445. </script>
  446. </select1>
  447. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:91px; top:5px; width:100px; height:19px; "/>
  448. <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:211px; top:5px; width:100px; height:19px; "/>
  449. <caption id="caption4" style="left:196px; top:5px; width:15px; height:20px; ">~</caption>
  450. <input id="ipt_code" ref="/root/send/code" class="input_search" inputtype="button" _chartype="upper" style="left:502px; top:55px; width:134px; height:19px; ">
  451. <script type="javascript" ev:event="onbuttonclick">
  452. <![CDATA[
  453. fGetSnglcalcscorcd();
  454. ]]>
  455. </script>
  456. <script type="javascript" ev:event="xforms-value-changed">
  457. <![CDATA[
  458. model.setValue("/root/send/edicd", "");
  459. ipt_edicd.refresh();
  460. ]]>
  461. </script>
  462. </input>
  463. <input id="ipt_patunitsrch" ref="/root/send/patunitsrch" class="input_search" navindex="3" inputtype="button" maxlength="10" style="left:735px; top:5px; width:104px; height:19px; ">
  464. <hint>
  465. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  466. </hint>
  467. <script type="javascript" ev:event="onkeypress">
  468. <![CDATA[
  469. if (event.keyCode == "13") { // Enter 입력 시에
  470. if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
  471. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  472. if( isNaN(model.getValue("/root/send/patunitsrch")) ) // PID로 검색시 조회
  473. {
  474. fPatSrch();
  475. }
  476. else
  477. {
  478. fSearch();
  479. }
  480. }
  481. }
  482. ]]>
  483. </script>
  484. <script type="javascript" ev:event="onbuttonclick">
  485. <![CDATA[
  486. fPatSrch();
  487. ]]>
  488. </script>
  489. </input>
  490. <caption id="caption5" class="search_name" style="left:652px; top:7px; width:76px; height:17px; ">환자조회</caption>
  491. <caption id="caption7" class="search_name" style="left:8px; top:7px; width:76px; height:17px; ">처방일자</caption>
  492. <select1 id="combo1" ref="/root/send/judgrid" navindex="1" appearance="minimal" style="left:938px; top:5px; width:104px; height:19px; ">
  493. <choices>
  494. <itemset nodeset="/root/init/U0001list/U0001">
  495. <label ref="cdnm"/>
  496. <value ref="cdid"/>
  497. </itemset>
  498. </choices>
  499. </select1>
  500. <caption id="caption9" class="search_name" style="left:856px; top:7px; width:73px; height:17px; ">심사자</caption>
  501. <caption id="caption10" class="search_name" style="left:8px; top:56px; width:76px; height:17px; ">검색조건</caption>
  502. <select1 id="rdo_searchcond" ref="/root/send/codecond" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:90px; top:55px; width:167px; height:20px; border-style:none; ">
  503. <choices>
  504. <item>
  505. <label>코드별</label>
  506. <value>calc</value>
  507. </item>
  508. <item>
  509. <label>항암제</label>
  510. <value>cancer</value>
  511. </item>
  512. <item>
  513. <label>분류별</label>
  514. <value>kind</value>
  515. </item>
  516. </choices>
  517. <script type="javascript" ev:event="xforms-select">
  518. <![CDATA[
  519. ipt_code.value = "";
  520. rdo_cancer.value = "";
  521. cmb_large.value = "";
  522. cmb_middle.choices.itemset.attribute("nodeset") = "/root/init/hidden";
  523. cmb_small.choices.itemset.attribute("nodeset") = "/root/init/hidden";
  524. var choice = rdo_searchcond.value;
  525. if ( choice == "calc" ) {
  526. cp_code.disabled = false;
  527. ipt_code.disabled = false;
  528. cp_edicd.disabled = false;
  529. ipt_edicd.disabled = false;
  530. rdo_cancer.disabled = true;
  531. cp_large.disabled = true;
  532. cp_middle.disabled = true;
  533. cp_small.disabled = true;
  534. cmb_large.disabled = true;
  535. cmb_middle.disabled = true;
  536. cmb_small.disabled = true;
  537. } else if ( choice == "cancer" ) {
  538. rdo_cancer.select(0);
  539. cp_code.disabled = true;
  540. ipt_code.disabled = true;
  541. cp_edicd.disabled = true;
  542. ipt_edicd.disabled = true;
  543. rdo_cancer.disabled = false;
  544. cp_large.disabled = true;
  545. cp_middle.disabled = true;
  546. cp_small.disabled = true;
  547. cmb_large.disabled = true;
  548. cmb_middle.disabled = true;
  549. cmb_small.disabled = true;
  550. } else if ( choice == "kind" ) {
  551. cp_code.disabled = true;
  552. ipt_code.disabled = true;
  553. cp_edicd.disabled = true;
  554. ipt_edicd.disabled = true;
  555. rdo_cancer.disabled = true;
  556. cp_large.disabled = false;
  557. cp_middle.disabled = false;
  558. cp_small.disabled = false;
  559. cmb_large.disabled = false;
  560. cmb_middle.disabled = false;
  561. cmb_small.disabled = false;
  562. }
  563. ]]>
  564. </script>
  565. </select1>
  566. <select1 id="rdo_cancer" ref="/root/send/cancer" class="radio_search" disabled="true" visibility="visible" appearance="full" cols="3" overflow="visible" style="left:263px; top:55px; width:120px; height:20px; border-style:none; ">
  567. <choices>
  568. <item>
  569. <label>전체</label>
  570. <value>A</value>
  571. </item>
  572. <item>
  573. <label>1군</label>
  574. <value>1</value>
  575. </item>
  576. <item>
  577. <label>2군</label>
  578. <value>2</value>
  579. </item>
  580. </choices>
  581. </select1>
  582. <select1 id="cmb_large" ref="/root/send/large" disabled="true" navindex="1" visibility="visible" appearance="minimal" style="left:502px; top:29px; width:134px; height:19px; ">
  583. <choices>
  584. <itemset nodeset="/root/init/hidden/earnclslist[step='L']">
  585. <label ref="earncls1nm"/>
  586. <value ref="earncls1"/>
  587. </itemset>
  588. </choices>
  589. <script type="javascript" ev:event="xforms-select">
  590. <![CDATA[
  591. cmb_middle.choices.itemset.attribute("nodeset") = "/root/init/hidden";
  592. cmb_small.choices.itemset.attribute("nodeset") = "/root/init/hidden";
  593. cmb_middle.value = "";
  594. cmb_small.value = "";
  595. cmb_middle.choices.itemset.attribute("nodeset") = "/root/init/hidden/earnclslist[step='M' and earncls1='" + cmb_large.value + "']";
  596. cmb_middle.refresh();
  597. ]]>
  598. </script>
  599. </select1>
  600. <select1 id="cmb_middle" ref="/root/send/middle" disabled="true" navindex="1" visibility="visible" appearance="minimal" style="left:735px; top:29px; width:104px; height:19px; ">
  601. <choices>
  602. <itemset nodeset="/root/init/hidden/">
  603. <label ref="earncls2nm"/>
  604. <value ref="earncls2"/>
  605. </itemset>
  606. </choices>
  607. <script type="javascript" ev:event="xforms-select">
  608. <![CDATA[
  609. cmb_small.choices.itemset.attribute("nodeset") = "/root/init/hidden/earnclslist[step='S' and earncls1='" + cmb_large.value + "' and earncls2='" + cmb_middle.value + "']";
  610. cmb_small.refresh();
  611. ]]>
  612. </script>
  613. </select1>
  614. <select1 id="cmb_small" ref="/root/send/small" disabled="true" navindex="1" visibility="visible" appearance="minimal" style="left:938px; top:30px; width:104px; height:19px; ">
  615. <choices>
  616. <itemset nodeset="/root/init/hidden/">
  617. <label ref="earncls3nm"/>
  618. <value ref="earncls3"/>
  619. </itemset>
  620. </choices>
  621. </select1>
  622. <caption id="cp_large" class="search_name" style="left:403px; top:30px; width:89px; height:17px; ">처방대분류</caption>
  623. <caption id="cp_code" class="search_name" style="left:403px; top:55px; width:76px; height:17px; ">수가코드</caption>
  624. <caption id="cp_middle" class="search_name" style="left:652px; top:30px; width:64px; height:17px; ">중분류</caption>
  625. <caption id="cp_small" class="search_name" style="left:856px; top:30px; width:65px; height:17px; ">소분류</caption>
  626. <caption id="cp_edicd" class="search_name" style="left:652px; top:55px; width:76px; height:17px; ">EDI코드</caption>
  627. <input id="ipt_edicd" ref="/root/send/edicd" class="input_search" inputtype="button" maxlength="10" _chartype="upper" style="left:735px; top:55px; width:104px; height:19px; ">
  628. <script type="javascript" ev:event="onbuttonclick">
  629. <![CDATA[
  630. fGetEdicd();
  631. ]]>
  632. </script>
  633. <script type="javascript" ev:event="xforms-value-changed">
  634. <![CDATA[
  635. model.setValue("/root/send/code", "");
  636. ipt_code.refresh();
  637. ]]>
  638. </script>
  639. </input>
  640. <caption id="caption6" class="search_name" style="left:8px; top:80px; width:76px; height:17px; ">실시일자</caption>
  641. <input id="ipt_exefromdd" ref="/root/send/exefromdd" class="input_search" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:91px; top:80px; width:100px; height:19px; "/>
  642. <caption id="caption11" style="left:196px; top:80px; width:15px; height:20px; ">~</caption>
  643. <input id="ipt_exetodd" ref="/root/send/exetodd" class="input_search" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:211px; top:80px; width:100px; height:19px; "/>
  644. <caption id="caption12" class="search_name" style="left:856px; top:55px; width:76px; height:17px; ">청구유무</caption>
  645. <select1 id="combo2" ref="/root/send/clamkey" appearance="minimal" style="left:938px; top:55px; width:104px; height:19px; ">
  646. <choices>
  647. <item>
  648. <label>전체</label>
  649. <value/>
  650. </item>
  651. <item>
  652. <label>Y</label>
  653. <value>Y</value>
  654. </item>
  655. <item>
  656. <label>N</label>
  657. <value>N</value>
  658. </item>
  659. </choices>
  660. </select1>
  661. <select1 id="cmb_insukind" ref="/root/send/insukind" appearance="minimal" style="left:502px; top:80px; width:134px; height:19px; ">
  662. <choices>
  663. <itemset nodeset="/root/init/P0008list/P0008">
  664. <label ref="cdnm"/>
  665. <value ref="cdid"/>
  666. </itemset>
  667. </choices>
  668. </select1>
  669. <caption id="caption13" class="search_name" style="left:403px; top:80px; width:76px; height:17px; ">보험유형</caption>
  670. </group>
  671. <caption id="caption8" class="tit_2" style="left:0px; top:130px; width:100px; height:13px; ">환자 리스트</caption>
  672. <button id="btn_excelsave" class="btn2_letter4" style="left:1120px; top:123px; width:64px; height:19px; ">
  673. <caption>엑셀저장</caption>
  674. <script type="javascript" ev:event="DOMActivate">
  675. <![CDATA[
  676. if (grd_outjudg.rows > 1) {
  677. var fileName = window.fileDialog("save", "", false, "계산처방시행 조회_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  678. if (fileName != "") {
  679. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  680. // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
  681. grd_outjudg.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  682. }
  683. } else {
  684. messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
  685. }
  686. ]]>
  687. </script>
  688. </button>
  689. <datagrid id="grd_outjudg" nodeset="/root/main/grdlist/calcorderlist" class="datagrid2" caption="등록번호^성명^내원유형^처방일자^실시일자^시행&#xA;여부^유형^보조^진료과^진료의^주상병^처방코드^EDI코드^한글명^단가^수량^횟수^일수^총투^금액^급비^입원일자^유형시작일^종료일^원외^심사자^접수번호^생성일자^청구유무^실시자^시행부서^보험요율" colsep="^" colwidth="62, 49, 35, 80, 83, 42, 20, 23, 45, 55, 66, 72, 66, 205, 70, 40, 40, 40, 40, 83, 28, 75, 75, 83, 31, 47, 61, 76, 100, 100, 100, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:145px; width:1190px; height:570px; ">
  690. <col ref="pid" style="text-align:center; "/>
  691. <col ref="hngnm" style="text-align:center; "/>
  692. <col ref="ioflag"/>
  693. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  694. <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
  695. <col ref="yn" style="text-align:center; "/>
  696. <col ref="insukind"/>
  697. <col ref="suppkind"/>
  698. <col ref="orddeptcd"/>
  699. <col ref="orddrnm" style="text-align:center; "/>
  700. <col ref="diag"/>
  701. <col ref="snglcalcscorcd"/>
  702. <col ref="edicd"/>
  703. <col ref="calchngnm"/>
  704. <col ref="appunitcost" format="#,###" style="text-align:right; "/>
  705. <col ref="calcqty" format="#,###.00" style="text-align:right; "/>
  706. <col ref="calctims" format="#,###" style="text-align:right; "/>
  707. <col ref="calcdays" style="text-align:right; "/>
  708. <col ref="totqty" format="#,###.00" style="text-align:right; "/>
  709. <col ref="calcamt" format="#,###" style="text-align:right; "/>
  710. <col disabled="true" ref="calcscorpayflag" type="combo" style="text-align:center; ">
  711. <choices>
  712. <item>
  713. <label>급</label>
  714. <value>0</value>
  715. </item>
  716. <item>
  717. <label>100</label>
  718. <value>1</value>
  719. </item>
  720. <item>
  721. <label>비</label>
  722. <value>2</value>
  723. </item>
  724. <item>
  725. <label>선</label>
  726. <value>8</value>
  727. </item>
  728. <item>
  729. <label>선</label>
  730. <value>9</value>
  731. </item>
  732. </choices>
  733. </col>
  734. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  735. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  736. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  737. <col ref="oprcp"/>
  738. <col ref="judgrid" style="text-align:center; "/>
  739. <col ref="acptno" style="text-align:center; "/>
  740. <col ref="cretfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  741. <col ref="clamkey" style="text-align:center; "/>
  742. <col ref="execrnm" style="text-align:center; "/>
  743. <col ref="execdeptnm" style="text-align:center; "/>
  744. <col ref="brateflagnm" style="text-align:center; "/>
  745. </datagrid>
  746. <button id="btn_batch" class="btn2_letter6" style="left:1030px; top:123px; width:86px; height:19px; ">
  747. <caption>배치결과확인</caption>
  748. <script type="javascript" ev:event="DOMActivate">
  749. <![CDATA[
  750. var todd = getCurrentDate();
  751. todd = todd.toDate().getAddDate(+1, 'D');
  752. zsbfOpenBatchLogPopup("aftjudgstatmgr.CalcOrderListBatch",getCurrentDate(),todd.getDateFormat());
  753. ]]>
  754. </script>
  755. </button>
  756. </group>
  757. </xhtml:body>
  758. </xhtml:html>