SMPIF60210_원외처방환수조회.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  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>원외처방환수조회(SMPIF60210)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <termflag/>
  11. <fromdd/>
  12. <todd/>
  13. <insukind>11</insukind>
  14. <cpcd/>
  15. <assocd/>
  16. <ofidocno/>
  17. <srchcond/>
  18. <srchcond1/>
  19. <srchcond2/>
  20. <clamno/>
  21. <docuseqno/>
  22. <patunitsrch1/>
  23. <patunitsrch2/>
  24. <endyn/>
  25. </send>
  26. <main>
  27. <list01>
  28. <gridoprcprtndetl>
  29. <rtnendyn/>
  30. <ordym/>
  31. <judgdg/>
  32. <acptno/>
  33. <docuseqno/>
  34. <pid/>
  35. <patnm/>
  36. <clamdeptcd/>
  37. <orddrid/>
  38. <edimedcaretotamt/>
  39. <ediinsuclamamt/>
  40. <mpsno/>
  41. <prcpcorpnm/>
  42. <ofidocno/>
  43. <ofidocarvdd/>
  44. <rtnamt/>
  45. <assocd/>
  46. <corpramt/>
  47. <ownbrtnamt/>
  48. <insubramt/>
  49. <adjtamt/>
  50. <ownbrtnamt903/>
  51. <insubramt903/>
  52. <ownbrtnamt803/>
  53. <insubramt803/>
  54. <notino/>
  55. <judgrid/>
  56. <patrrgstno/>
  57. <rtnjudgdg/>
  58. <rtnacptno/>
  59. <rtnclamno/>
  60. <instcd/>
  61. <clamno/>
  62. </gridoprcprtndetl>
  63. </list01>
  64. <list02>
  65. <gridoprcprtndetl/>
  66. </list02>
  67. <list03>
  68. <gridoprcprtndetl/>
  69. </list03>
  70. <patinfo>
  71. <patinfolist/>
  72. </patinfo>
  73. <list05>
  74. <gridoprcprtndetl/>
  75. </list05>
  76. </main>
  77. <init>
  78. <P0322list>
  79. <P0322>
  80. <cdid/>
  81. <cdnm/>
  82. </P0322>
  83. </P0322list>
  84. <U0001list>
  85. <U0001>
  86. <srchcond2/>
  87. </U0001>
  88. </U0001list>
  89. <U0002list>
  90. <U0002>
  91. <clamno/>
  92. </U0002>
  93. </U0002list>
  94. <U0004list>
  95. <U0004>
  96. <assocd/>
  97. <assonm/>
  98. </U0004>
  99. </U0004list>
  100. <P0415list>
  101. <P0415>
  102. <cdid/>
  103. <cdnm/>
  104. </P0415>
  105. </P0415list>
  106. <temp>
  107. <code00list>
  108. <code00/>
  109. </code00list>
  110. </temp>
  111. </init>
  112. <data>
  113. <grid>
  114. <msg1>메세지1.</msg1>
  115. <msg2>메세지2</msg2>
  116. </grid>
  117. <grid>
  118. <msg1>메세지1.</msg1>
  119. <msg2>메세지2</msg2>
  120. </grid>
  121. <grid>
  122. <msg1>메세지1.</msg1>
  123. <msg2>메세지2</msg2>
  124. </grid>
  125. </data>
  126. <selectValue2>1</selectValue2>
  127. <hidden>
  128. <sppmc02500>
  129. <cond>
  130. <srchcond/>
  131. <pid/>
  132. <hngnm/>
  133. <rrgstno1/>
  134. <rrgstno2/>
  135. </cond>
  136. </sppmc02500>
  137. <hidbatchgrid>
  138. <ofidocno/>
  139. <ofidocarvdd/>
  140. </hidbatchgrid>
  141. </hidden>
  142. </root>
  143. </instance>
  144. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  145. <submission id="TRPIF60211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  146. <submission id="TRPIF60212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/U0001list"/>
  147. <submission id="TRPIF60213" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/U0002list"/>
  148. <submission id="TRPIF60326" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/U0004list"/>
  149. <submission id="TRPIF60327" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/temp"/>
  150. </model>
  151. <script type="javascript">
  152. <![CDATA[
  153. var selectValue2 = 1;
  154. ]]>
  155. </script>
  156. <script type="javascript" ev:event="xforms-ready">
  157. <![CDATA[
  158. //grd_excel.attribute("visibility") = "hidden";
  159. CommCode_Load();
  160. ]]>
  161. </script>
  162. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  163. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  164. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  165. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  166. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  167. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  168. <script type="javascript">
  169. <![CDATA[
  170. function Node_Init() {
  171. // NodeSet 초기화
  172. model.resetInstanceNode("/root/main/list01");
  173. model.refresh();
  174. }
  175. // 공통코드 Load작업
  176. function CommCode_Load() {
  177. // 관련 Control 초기화
  178. zbcfGetCodeList(new Array("P0322","P0415"), new Array( "/root/init/P0322list","/root/init/P0415list"));
  179. //zbcfGetCodeList(new Array("P0247"), new Array( "/root/init/P0247list"));
  180. //zbcfGetCodeList(new Array("P0261"), new Array( "/root/init/P0261list"));
  181. //zbcfGetCodeList(new Array("P0295"), new Array( "/root/init/P0295list"));
  182. //model.refresh();
  183. ipt_srchcond1.disabled = true;
  184. cmb_srchcond2.disabled = true;
  185. cmb_clamno.disabled = true;
  186. ipt_docuseqno.disabled = true;
  187. model.makeNode("/root/send/usesrcflag");
  188. model.setValue("/root/send/usesrcflag","srch");
  189. submit("TRPIF60326");
  190. submit("TRPIF60327");
  191. }
  192. function fGetInAftJudgTrgtManList(){
  193. // 환자단위조회를 하는 경우
  194. var patunitsrch1 = model.getValue("/root/send/patunitsrch1").getTrim(); // (stringHelper.js) 문자열 앞뒤에 있는 공백 제거
  195. model.setValue("/root/send/patunitsrch1", patunitsrch1);
  196. if (patunitsrch1 == "") {
  197. model.setValue("/root/send/patunitsrch2", "");
  198. }
  199. else if (patunitsrch1.isNumber()) { // (numericHelper.js) 숫자가 입력된 경우 환자번호로 조회한다.
  200. /** [2007.03.23 jumi]
  201. Table Layout 상에는 pid가 VARCHAR(10) 이지만, 테스트용 data에서는 VARCHAR(8) 이므로 8자리로 구현함
  202. */
  203. // if (patunitsrch1.length < 8) {
  204. // model.setValue("/root/send/patunitsrch1", patunitsrch1.getLeftPad(8, "0")); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
  205. // }
  206. model.setValue("/root/send/patunitsrch2", "pidSrch");
  207. } else { // 문자가 입력된 경우 환자이름으로 조회한다.
  208. if (patunitsrch1.length > 1) {
  209. model.setValue("/root/send/patunitsrch2", "nmSrch");
  210. } else {
  211. model.setValue("/root/send/patunitsrch2", "");
  212. model.refresh();
  213. messageBox("환자단위조회시 검색할 환자이름은 2글자 이상", "C001"); ///환자단위조회시 검색할 환자이름은 2글자 이상 입력하십시오.
  214. return;
  215. }
  216. }
  217. }
  218. function search() {
  219. model.removenode("/root/main/list01");
  220. model.resetInstanceNode("/root/main/list01");
  221. // 진료월 시작일 및 종료일 체크
  222. if(rdo_termflag.value == "ordym") {
  223. if(ipt_fromdd.value == "") {
  224. messageBox("진료월 시작일을","C001");
  225. model.setFocus("ipt_fromdd");
  226. return false;
  227. }
  228. if(ipt_todd.value == "") {
  229. messageBox("진료월 종료일을","C001");
  230. model.setFocus("ipt_todd");
  231. return false;
  232. }
  233. }
  234. // 공문도착일자 시작일 및 종료일 체크
  235. if(rdo_termflag.value == "clamym") {
  236. if(ipt_fromdd.value == "") {
  237. messageBox("청구월 시작일을","C001");
  238. model.setFocus("ipt_fromdd");
  239. return false;
  240. }
  241. if(ipt_todd.value == "") {
  242. messageBox("청구월 종료일을","C001");
  243. model.setFocus("ipt_todd");
  244. return false;
  245. }
  246. }
  247. // 공문도착일자 시작일 및 종료일 체크
  248. if(rdo_termflag.value == "arvym") {
  249. if(ipt_fromdd.value == "") {
  250. messageBox("도착월 시작일을","C001");
  251. model.setFocus("ipt_fromdd");
  252. return false;
  253. }
  254. if(ipt_todd.value == "") {
  255. messageBox("도착월 종료일을","C001");
  256. model.setFocus("ipt_todd");
  257. return false;
  258. }
  259. }
  260. // 심사차수 체크
  261. /*if(ipt_judgdg.value == "") {
  262. messageBox("심사차수를","C001");
  263. model.setFocus("ipt_judgdg");
  264. return false;
  265. }*/
  266. if(rdo_insukind.value == "") {
  267. messageBox("보험유형을","C002");
  268. return false;
  269. }
  270. if(ipt_patunitsrch.value == "") {
  271. model.setValue("/root/send/patunitsrch2","");
  272. } else {
  273. fGetInAftJudgTrgtManList();
  274. }
  275. model.removenode("/root/main/list01/gridoprcprtndetl");
  276. submit("TRPIF60211");
  277. }
  278. model.copyNode("/root/main/list01/gridoprcprtndetl","/root/main/list05/gridoprcprtndetl");
  279. ]]>
  280. </script>
  281. </xhtml:head>
  282. <xhtml:body class="datagrid2" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  283. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  284. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:140px; height:13px; ">원외처방 환수조회</caption>
  285. </group>
  286. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  287. <group id="group2" style="left:0px; top:10px; width:1194px; height:90px; vertical-align:top; ">
  288. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  289. <caption id="caption2" class="search_name" style="left:420px; top:7px; width:96px; height:17px; ">보험유형 :</caption>
  290. <line id="line13" class="line_4" style="x1:1108px; y1:35px; x2:1108px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
  291. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:35px; width:56px; height:22px; ">
  292. <caption>조회</caption>
  293. <script type="javascript" ev:event="onclick">
  294. <![CDATA[
  295. search();
  296. if(rdo_insukind.value == "11") {
  297. grd_oprcprtndetl.colHidden(17) = true; // 시군구(입금보장기관기호)컬럼 숨김
  298. } else {
  299. grd_oprcprtndetl.colHidden(17) = false; // 시군구(입금보장기관기호)컬럼 보여줌
  300. }
  301. ]]>
  302. </script>
  303. </button>
  304. <caption id="caption4" class="search_name" style="left:420px; top:35px; width:90px; height:17px; ">청구번호 :</caption>
  305. <caption id="caption7" class="search_name" style="left:670px; top:36px; width:88px; height:17px; ">명 일 련 :</caption>
  306. <caption id="caption3" style="left:296px; top:10px; width:15px; height:15px; ">~</caption>
  307. <select1 id="rdo_insukind" ref="/root/send/insukind" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:510px; top:7px; width:100px; height:20px; border-style:none; ">
  308. <choices>
  309. <item>
  310. <label>보험</label>
  311. <value>11</value>
  312. </item>
  313. <item>
  314. <label>보호</label>
  315. <value>21</value>
  316. </item>
  317. </choices>
  318. <script type="javascript" ev:event="xforms-value-changed">
  319. <![CDATA[
  320. if(rdo_insukind.value == "00" || rdo_insukind.value == "11") {
  321. cpt_cpcd.visible = false;
  322. cpt_assocd.visible = false;
  323. cmb_cpcd.visible = false;
  324. cmb_assocd.visible = false;
  325. }
  326. if(rdo_insukind.value == "21") {
  327. cpt_cpcd.visible = true;
  328. cpt_assocd.visible = true;
  329. cmb_cpcd.visible = true;
  330. cmb_assocd.visible = true;
  331. }
  332. ]]>
  333. </script>
  334. </select1>
  335. <input id="ipt_docuseqno" ref="/root/send/docuseqno" class="input_search" style="left:760px; top:35px; width:90px; height:19px; "/>
  336. <caption id="caption5" class="search_name" style="left:420px; top:63px; width:90px; height:17px; ">완료여부 :</caption>
  337. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="3" inputtype="date" maxlength="6" format="yyyy-mm" style="left:205px; top:7px; width:85px; height:19px; "/>
  338. <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="4" inputtype="date" maxlength="6" format="yyyy-mm" style="left:312px; top:7px; width:83px; height:19px; "/>
  339. <input id="ipt_patunitsrch" ref="/root/send/patunitsrch1" class="input_search" inputtype="button" style="left:130px; top:61px; width:90px; height:19px; ">
  340. <hint>
  341. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  342. </hint>
  343. <script type="javascript" ev:event="onkeypress">
  344. <![CDATA[
  345. if (event.keyCode == "13") { // Enter 입력 시에
  346. if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
  347. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  348. fGetInAftJudgTrgtManList();
  349. }
  350. }
  351. ]]>
  352. </script>
  353. <script type="javascript" ev:event="onbuttonclick">
  354. <![CDATA[
  355. var ipt_pid = model.getValue("/root/send/patunitsrch1");
  356. if (ipt_pid) {
  357. if(ipt_pid.isNumber()) {
  358. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  359. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  360. } else {
  361. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
  362. model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
  363. }
  364. } else {
  365. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  366. }
  367. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
  368. // 환자단위조회 InputBox에 값을 입력후 팝업조회했을 때
  369. if (ipt_pid != "") {
  370. if(ipt_pid.isNumber()) {
  371. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  372. model.setValue("/root/send/send01/patunitsrch1", srch_pid);
  373. } else {
  374. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  375. model.setValue("/root/send/send01/patunitsrch1", srch_pid);
  376. }
  377. } else {
  378. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  379. model.setValue("/root/send/send01/patunitsrch1", srch_pid);
  380. }
  381. model.refresh();
  382. fGetInAftJudgTrgtManList();
  383. ]]>
  384. </script>
  385. </input>
  386. <caption id="caption18" class="search_name" style="left:15px; top:62px; width:112px; height:17px; ">환자단위조회 :</caption>
  387. <select1 id="rdo_termflag" ref="/root/send/termflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:15px; top:8px; width:175px; height:16px; font-weight:bold; border-style:none; ">
  388. <choices>
  389. <item>
  390. <label>진료월</label>
  391. <value>ordym</value>
  392. </item>
  393. <item>
  394. <label>청구월</label>
  395. <value>clamym</value>
  396. </item>
  397. <item>
  398. <label>도착월</label>
  399. <value>arvym</value>
  400. </item>
  401. </choices>
  402. <script type="javascript" ev:event="xforms-select">
  403. <![CDATA[
  404. model.setFocus("ipt_fromdd");
  405. ]]>
  406. </script>
  407. </select1>
  408. <select1 id="rdo_endyn" ref="/root/send/endyn" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:510px; top:63px; width:149px; height:20px; border-style:none; ">
  409. <choices>
  410. <item>
  411. <label>전체</label>
  412. <value>A</value>
  413. </item>
  414. <item>
  415. <label>완료</label>
  416. <value>Y</value>
  417. </item>
  418. <item>
  419. <label>미완료</label>
  420. <value>N</value>
  421. </item>
  422. </choices>
  423. </select1>
  424. <caption id="caption12" class="search_name" style="left:875px; top:36px; width:101px; height:17px; ">공문번호 :</caption>
  425. <input id="input1" ref="/root/send/ofidocno" class="input_search" style="left:966px; top:35px; width:90px; height:19px; "/>
  426. <select1 id="cmb_clamno" ref="/root/send/clamno" class="combo_search" appearance="minimal" style="left:510px; top:35px; width:105px; height:19px; ">
  427. <choices>
  428. <itemset nodeset="/root/init/U0002list/U0002">
  429. <label ref="clamno"/>
  430. <value ref="clamno"/>
  431. </itemset>
  432. </choices>
  433. <script type="javascript" ev:event="xforms-select">
  434. <![CDATA[
  435. model.setFocus("ipt_docuseqno");
  436. ]]>
  437. </script>
  438. </select1>
  439. <select1 id="cmb_srchcond2" ref="/root/send/srchcond2" class="combo_search" appearance="minimal" style="left:306px; top:35px; width:90px; height:19px; ">
  440. <choices>
  441. <itemset nodeset="/root/init/U0001list/U0001">
  442. <label ref="srchcond2"/>
  443. <value ref="srchcond2"/>
  444. </itemset>
  445. </choices>
  446. <script type="javascript" ev:event="xforms-value-changed">
  447. <![CDATA[
  448. submit("TRPIF60213");
  449. if(cmb_clamno.length == 1) { // 조회된 청구번호가 한개일 경우
  450. cmb_clamno.value = model.getValue("/root/init/U0002list/U0002/clamno");
  451. cmb_clamno.disabled = false; // 청구번호 콤보 활성
  452. ipt_docuseqno.disabled = false; // 명일련 InputBox 활성
  453. model.setFocus("ipt_docuseqno"); // 명일련 Input 박스로 포커스 이동
  454. } else if(cmb_clamno.length > 1) {
  455. ipt_docuseqno.disabled = true; // 명일련 InputBox 비활성
  456. cmb_clamno.disabled = false; // 청구번호 콤보 활성
  457. model.setFocus("cmb_clamno");
  458. } else {
  459. messageBox("조회된 청구번호가","I004");
  460. cmb_clamno.disabled = true;
  461. }
  462. ]]>
  463. </script>
  464. </select1>
  465. <input id="ipt_srchcond1" ref="/root/send/srchcond1" class="input_search" inputtype="button" style="left:205px; top:35px; width:100px; height:19px; ">
  466. <script type="javascript" ev:event="onkeyup">
  467. <![CDATA[
  468. inputEnterKey("button108", "DOMActivate");
  469. ]]>
  470. </script>
  471. <script type="javascript" ev:event="onbuttonclick">
  472. <![CDATA[
  473. //조회조건이 청구년월일 경우 버튼 동작 안하도록 설정
  474. if(rdo_srchcond.value == "2") {
  475. return false;
  476. }
  477. rdo_srchcond.value = '1';
  478. setParameter("SPPIF30302_RTNTYPE", "P");
  479. modal("SPPIF30302", 1, 1, 1, "SPPIF30302", "/root/send", "/root/send");
  480. model.setValue("/root/send/srchcond1", getParameter("SPPIF30302_acptno"));
  481. //model.removeNodeset("/root/send/send01");
  482. clearParameter("SPPIF30302_RTNTYPE");
  483. clearParameter("SPPIF30302_acptno");
  484. ipt_srchcond1.refresh();
  485. if( model.getValue("/root/send/srchcond1") != '' ){
  486. button108.dispatch("DOMActivate");
  487. }
  488. ]]>
  489. </script>
  490. </input>
  491. <select1 id="rdo_srchcond" ref="/root/send/srchcond" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:15px; top:36px; width:150px; height:16px; font-weight:bold; border-style:none; ">
  492. <choices>
  493. <item>
  494. <label>접수번호</label>
  495. <value>acptno</value>
  496. </item>
  497. <item>
  498. <label>심사차수</label>
  499. <value>judgdg</value>
  500. </item>
  501. </choices>
  502. <script type="javascript" ev:event="xforms-select">
  503. <![CDATA[
  504. ipt_srchcond1.value = "";
  505. cmb_srchcond2.value = "";
  506. cmb_clamno.value = "";
  507. ipt_docuseqno.value = "";
  508. ipt_srchcond1.disabled = false; // srchcond1 Input 박스 활성
  509. cmb_srchcond2.disabled = true; // srchcond2 콤보박스 비활성
  510. cmb_clamno.disabled = true; // 청구번호 콤보박스 비활성
  511. ipt_docuseqno.disabled = true; // 명일련 Input 박스 비활성
  512. model.setFocus("ipt_srchcond1");
  513. ]]>
  514. </script>
  515. </select1>
  516. <caption id="cpt_assocd" class="search_name" visibility="hidden" style="left:875px; top:8px; width:83px; height:17px; ">시 군 구 :</caption>
  517. <select1 id="cmb_cpcd" ref="/root/send/cpcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:760px; top:7px; width:90px; height:19px; ">
  518. <choices>
  519. <itemset nodeset="/root/init/P0415list/P0415">
  520. <label ref="cdnm"/>
  521. <value ref="cdid"/>
  522. </itemset>
  523. </choices>
  524. <script type="javascript" ev:event="xforms-select">
  525. <![CDATA[
  526. submit("TRPIF60326"); // 조회조건의 시군구코드 조회
  527. ]]>
  528. </script>
  529. </select1>
  530. <caption id="cpt_cpcd" class="search_name" visibility="hidden" style="left:670px; top:8px; width:65px; height:17px; ">시 도 :</caption>
  531. <select1 id="cmb_assocd" ref="/root/send/assocd" class="combo_search" visibility="hidden" appearance="minimal" style="left:965px; top:7px; width:100px; height:19px; ">
  532. <choices>
  533. <itemset nodeset="/root/init/U0004list/U0004">
  534. <label ref="assonm"/>
  535. <value ref="assocd"/>
  536. </itemset>
  537. </choices>
  538. </select1>
  539. </group>
  540. <caption id="caption1" class="tit_2" style="left:5px; top:114px; width:131px; height:13px; ">원외처방 환수 내역</caption>
  541. <line id="line1" class="line_1" style="x1:0px; y1:131px; x2:1194px; y2:131px; "/>
  542. <datagrid id="grd_oprcprtndetl" nodeset="/root/main/list01/gridoprcprtndetl" class="datagrid2" caption="환수여부^진료월^심사차수^접수번호^명일련^등록번호^수진자명^청구과^진료의^총진료비^청구액^처방전교부번호^약국명^공문번호^공문도착일^환수액^입금보장기관기호^부적정부담금^부적정 본인부담 &#xA;환급금^부적정 공단부담&#xA;환수액^조정액^본인부담&#xA;환급금 F903^공단부담&#xA;환수금 F903^본인부담&#xA;환급금 F803^공단부담&#xA;환수금 F803^통보번호^심사자^주민번호^상계심사차수^상계접수번호^상계청구번호" colsep="^" colwidth="40, 60, 70, 80, 60, 80, 70, 70, 82, 90, 90, 110, 80, 80, 80, 90, 110, 90, 100, 100, 90, 83, 84, 84, 83, 100, 70, 100, 80, 80, 100, 100, 100" dataheight="23" defaultrows="2" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:135px; width:1194px; height:609px; ">
  543. <col ref="rtnendyn" style="text-align:center; "/>
  544. <col ref="ordym" format="yyyy-mm" style="left:20px; top:32px; width:60px; height:23px; text-align:center; "/>
  545. <col ref="judgdg" style="text-align:center; "/>
  546. <col ref="acptno" style="text-align:center; "/>
  547. <col ref="docuseqno" style="text-align:center; "/>
  548. <col ref="pid" style="text-align:center; "/>
  549. <col ref="patnm" style="text-align:center; "/>
  550. <col disabled="true" ref="clamdeptcd" type="combo" style="text-align:center; ">
  551. <choices>
  552. <itemset nodeset="/root/init/P0322list/P0322">
  553. <label ref="cdnm"/>
  554. <value ref="cdid"/>
  555. </itemset>
  556. </choices>
  557. </col>
  558. <col ref="orddrid" style="text-align:center; "/>
  559. <col ref="edimedcaretotamt" format="#,###" style="text-align:right; "/>
  560. <col ref="ediinsuclamamt" format="#,###" style="text-align:right; "/>
  561. <col ref="mpsno" style="text-align:center; "/>
  562. <col ref="prcpcorpnm" style="text-align:center; "/>
  563. <col ref="ofidocno" style="text-align:center; "/>
  564. <col ref="ofidocarvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  565. <col ref="rtnamt" format="#,###" style="text-align:right; "/>
  566. <col ref="assocd"/>
  567. <col ref="corpramt" format="#,###" style="text-align:right; "/>
  568. <col ref="ownbrtnamt" format="#,###" style="text-align:right; "/>
  569. <col ref="insubramt" format="#,###" style="text-align:right; "/>
  570. <col ref="adjtamt" format="#,###" style="text-align:right; "/>
  571. <col ref="ownbrtnamt903" format="#,###" style="text-align:right; "/>
  572. <col ref="insubramt903" format="#,###" style="color:transparent; text-align:right; "/>
  573. <col ref="ownbrtnam803" format="#,###" style="text-align:right; "/>
  574. <col ref="insubramt803" format="#,###" style="text-align:right; "/>
  575. <col ref="notino" style="text-align:center; "/>
  576. <col ref="judgrid" style="text-align:center; "/>
  577. <col ref="patrrgstno" style="text-align:center; "/>
  578. <col ref="rtnjudgdg" style="text-align:center; "/>
  579. <col ref="rtnacptno" style="text-align:center; "/>
  580. <col ref="rtnclamno" style="text-align:center; "/>
  581. <col ref="instcd" visibility="hidden"/>
  582. <col ref="clamno" visibility="hidden"/>
  583. </datagrid>
  584. <button id="button108" class="btn2_letter13" visibility="hidden" style="left:45px; top:405px; width:290px; height:19px; ">
  585. <caption>[콤보박스]엔터키 눌렀을 시 자동조회하기</caption>
  586. <!-- 접수번호를 획득하기위한 [Enter] 이벤트 핸들러 -->
  587. <script type="javascript" ev:event="DOMActivate">
  588. <![CDATA[
  589. if(ipt_srchcond1.value.length > 0) {
  590. if(submit("TRPIF60212")) {
  591. if(cmb_srchcond2.length > 0) {
  592. cmb_srchcond2.disabled= false;
  593. if(cmb_srchcond2.length == 1) { // 조회된 접수번호가 한개일 경우
  594. cmb_srchcond2.value = model.getValue("/root/init/U0001list/U0001/srchcond2");
  595. cmb_clamno.disabled = false; // 청구번호 ComboBox 활성
  596. submit("TRPIF60213");
  597. if(cmb_clamno.length == 1) { // 조회된 청구번호가 한개일 경우
  598. cmb_clamno.value = model.getValue("/root/init/U0002list/U0002/clamno");
  599. ipt_docuseqno.disabled = false; // 명일련 InputBox 활성
  600. model.setFocus("ipt_docuseqno"); // 명일련 Input 박스로 포커스 이동
  601. } else {
  602. ipt_docuseqno.disabled = true; // 명일련 InputBox 비활성
  603. model.setFocus("cmb_clamno");
  604. }
  605. } else { // 조회된 접수번호가 여러개일 경우
  606. model.setFocus("cmb_srchcond2");
  607. cmb_clamno.disabled = true; // 청구번호 ComboBox 비활성
  608. }
  609. } else {
  610. if(rdo_srchcond.value == "acptno") {
  611. messageBox("조회된 심사차수가","I004");
  612. }
  613. if(rdo_srchcond.value == "judgdg") {
  614. messageBox("조회된 접수번호가","I004");
  615. }
  616. model.setValue("/root/send/srchcond2","");
  617. model.setValue("/root/send/clamno","");
  618. model.setValue("/root/send/docuseqno","");
  619. cmb_srchcond2.disabled = true; // 접수번호 콤보박스 비활성
  620. cmb_clamno.disabled = true; // 접수번호 콤보박스 비활성
  621. ipt_docuseqno.disabled = true; // 명일련 InputBox 비활성
  622. model.setFocus("ipt_srchcond1");
  623. model.refresh();
  624. return false;
  625. }
  626. }
  627. } else {
  628. model.setValue("/root/send/srchcond2","");
  629. model.setValue("/root/send/clamno","");
  630. model.setValue("/root/send/docuseqno","");
  631. cmb_srchcond2.disabled = true; // 접수번호 콤보박스 비활성
  632. cmb_clamno.disabled = true; // 접수번호 콤보박스 비활성
  633. ipt_docuseqno.disabled = true; // 명일련 InputBox 비활성
  634. model.refresh();
  635. model.setFocus("ipt_srchcond1");
  636. }
  637. ]]>
  638. </script>
  639. </button>
  640. <select1 id="combo2" ref="/root/selectValue2" visibility="hidden" appearance="minimal" style="left:45px; top:465px; width:130px; height:19px; ">
  641. <choices>
  642. <item>
  643. <label>First Sheet</label>
  644. <value>1</value>
  645. </item>
  646. <item>
  647. <label>Second Sheet</label>
  648. <value>2</value>
  649. </item>
  650. <item>
  651. <label>Third Sheet</label>
  652. <value>3</value>
  653. </item>
  654. </choices>
  655. <script type="javascript" ev:event="xforms-select">
  656. <![CDATA[
  657. selectValue2 = model.getValue("/root/selectValue2");
  658. ]]>
  659. </script>
  660. </select1>
  661. <button id="button1" class="btn2_letter4" style="left:1127px; top:108px; width:64px; height:19px; ">
  662. <caption>엑셀저장</caption>
  663. <script type="javascript" ev:event="DOMActivate">
  664. <![CDATA[
  665. var fileName = window.fileDialog("save", ",", false, cap_title.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  666. if (fileName != "") { grd_oprcprtndetl.saveExcel(fileName, "SheetName", true, true, "", "", ""); } // 20100719 수정
  667. //if (fileName != "") { grd_pirhobtspec.saveExcel(fileName, "SheetName", true, true, "", "", ""); } 20100719 remark
  668. ]]>
  669. </script>
  670. </button>
  671. </group>
  672. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  673. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  674. </group>
  675. </xhtml:body>
  676. </xhtml:html>