SMPIF10300_일괄접수정보생성관리.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. 2007.05.30 / 최초작성 / 이종찬
  4. -->
  5. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  6. <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">
  7. <xhtml:head>
  8. <xhtml:title>일괄접수정보조회</xhtml:title>
  9. <model id="model1">
  10. <instance id="instance1">
  11. <root xmlns="">
  12. <main>
  13. <list01>
  14. <griduncoinfo>
  15. <chkbox/>
  16. <clamflag/>
  17. <ioflag/>
  18. <ordym/>
  19. <ordfildcd/>
  20. <acptno/>
  21. <acptdd/>
  22. <cnt/>
  23. <medcaretotamt/>
  24. <ownbamt/>
  25. <insuclamamt/>
  26. <uncoyn/>
  27. <clamno/>
  28. </griduncoinfo>
  29. </list01>
  30. <rCSV/>
  31. </main>
  32. <send>
  33. <fromacptdd/>
  34. <toacptdd/>
  35. <clamtypecd/>
  36. <tmp>
  37. <list/>
  38. </tmp>
  39. <insukind/>
  40. </send>
  41. <init>
  42. <P0103list>
  43. <P0103>
  44. <cdid/>
  45. <cdnm/>
  46. </P0103>
  47. </P0103list>
  48. <P0155list>
  49. <P0155>
  50. <cdid/>
  51. <cdnm/>
  52. </P0155>
  53. </P0155list>
  54. <P0028list>
  55. <P0028>
  56. <cdid/>
  57. <cdnm/>
  58. </P0028>
  59. </P0028list>
  60. <P0235list>
  61. <P0235>
  62. <cdid/>
  63. <cdnm/>
  64. </P0235>
  65. </P0235list>
  66. <P0008list>
  67. <P0008>
  68. <cdid/>
  69. <cdnm/>
  70. </P0008>
  71. </P0008list>
  72. </init>
  73. <hidden/>
  74. </root>
  75. </instance>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. //20070214 chanie.캡션영역까지 체크박스로 만든다.
  79. grduncoinfo.fixedcellcheckbox(0,1) = true;
  80. CommCode_Load();
  81. // 그리드 행을 모두 삭제한다.
  82. model.removeNodeset("/root/main/list01/griduncoinfo");
  83. model.refresh();
  84. ]]>
  85. </script>
  86. <submission id="TRPIF10300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  87. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  88. <submission id="TXPIF10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
  89. <submission id="TXPIF10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
  90. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  91. <submission id="TXPIF10303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
  92. <submission id="TXPIF10304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
  93. </model>
  94. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  97. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  98. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  99. <script type="javascript">
  100. <![CDATA[
  101. // 공통코드 Load작업
  102. function CommCode_Load() {
  103. // 관련 Control 초기화
  104. zbcfGetCodeList(new Array("P0103"), new Array("/root/init/P0103list")); // 청구유형
  105. zbcfGetCodeList(new Array("P0155"), new Array("/root/init/P0155list")); // 청구구분
  106. zbcfGetCodeList(new Array("P0028"), new Array("/root/init/P0028list")); // 내원형태
  107. zbcfGetCodeList(new Array("P0235"), new Array("/root/init/P0235list")); // 진료분야
  108. model.refresh();
  109. }
  110. // 2007.09.10 초기화 함수
  111. function fInitialize(){
  112. // 조회 조건 입력값 초기화
  113. model.resetInstanceNode("/root/send");
  114. // 그리드 공라인 없애기
  115. model.removeNodeset("/root/main/list01/griduncoinfo");
  116. model.refresh();
  117. //
  118. // 포커스 이동
  119. model.setFocus("ipt_fromacptym");
  120. }
  121. ]]>
  122. </script>
  123. </xhtml:head>
  124. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  125. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  126. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">일괄접수정보생성조회</caption>
  127. </group>
  128. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  129. <caption id="caption1" class="tit_2" style="left:6px; top:54px; width:147px; height:13px; ">일괄접수정보생성내역</caption>
  130. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:1194px; y2:69px; "/>
  131. <group id="group4" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  132. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  133. <button id="button15" class="btn1_letter2" navindex="4" style="left:1122px; top:7px; width:56px; height:22px; ">
  134. <caption>조회</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. submit("TRPIF10300");
  138. ]]>
  139. </script>
  140. </button>
  141. <line id="line2" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  142. <caption id="caption9" class="search_name" style="left:24px; top:9px; width:86px; height:17px; ">접수일자 :</caption>
  143. <caption id="caption3" class="search_name" style="left:375px; top:9px; width:86px; height:17px; ">청구유형 :</caption>
  144. <select1 id="combo4" ref="/root/send/clamtypecd" class="combo_search" navindex="3" visibility="hidden" appearance="minimal" style="left:716px; top:8px; width:120px; height:19px; ">
  145. <choices>
  146. <itemset nodeset="/root/init/P0103list/P0103">
  147. <label ref="cdnm"/>
  148. <value ref="cdid"/>
  149. </itemset>
  150. </choices>
  151. <script type="javascript" ev:event="xforms-select">
  152. <![CDATA[
  153. // 2007.10.16 청구유형 선택하면 조회버튼 누를 필요 없이 자동으로 조회하는 기능 추가
  154. submit("TRPIF10300");
  155. ]]>
  156. </script>
  157. </select1>
  158. <caption id="caption7" style="left:219px; top:10px; width:15px; height:15px; ">~</caption>
  159. <input id="ipt_fromacptym" ref="/root/send/fromacptdd" class="input_search" navindex="1" inputtype="date" maxlength="8" style="left:115px; top:8px; width:100px; height:19px; ">
  160. <!-- - 2007.05.30 / 화면수정 / 접수일자를 입력받는다. -->
  161. <script type="javascript" ev:event="onkeyup">
  162. <![CDATA[
  163. inputEnterKey("button115", "DOMActivate");
  164. ]]>
  165. </script>
  166. <!-- - 2008.02.18 / 정숙희 선생님 요청사항. -->
  167. <script type="javascript" ev:event="DOMFocusOut">
  168. <![CDATA[
  169. model.setValue("/root/send/toacptdd",model.getValue("/root/send/fromacptdd"));
  170. model.refresh();
  171. ]]>
  172. </script>
  173. <script type="javascript" ev:event="xforms-value-changed">
  174. <![CDATA[
  175. model.setValue("/root/send/toacptdd",model.getValue("/root/send/fromacptdd"));
  176. model.refresh();
  177. ]]>
  178. </script>
  179. </input>
  180. <input id="ipt_toacptym" ref="/root/send/toacptdd" class="input_search" navindex="2" inputtype="date" maxlength="8" style="left:233px; top:8px; width:100px; height:19px; ">
  181. <!-- - 2007.05.30 / 화면수정 / 접수일자를 입력받는다. -->
  182. <script type="javascript" ev:event="onkeyup">
  183. <![CDATA[
  184. inputEnterKey("button4", "DOMActivate");
  185. ]]>
  186. </script>
  187. </input>
  188. <select1 id="rdo_clamtypecd" ref="/root/send/clamtypecd" class="radio_search" navindex="3" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:464px; top:10px; width:246px; height:15px; border-style:none; ">
  189. <choices>
  190. <item>
  191. <label>전체</label>
  192. <value/>
  193. </item>
  194. <item>
  195. <label>요양급여</label>
  196. <value>1</value>
  197. </item>
  198. <item>
  199. <label>의료급여</label>
  200. <value>4</value>
  201. </item>
  202. <item>
  203. <label>산재</label>
  204. <value>6</value>
  205. </item>
  206. </choices>
  207. <!-- - 2008.02.18 / 콤보를 라디오로 변경(정숙희 선생님 요청사항) -->
  208. <script type="javascript" ev:event="xforms-select">
  209. <![CDATA[
  210. submit("TRPIF10300");
  211. ]]>
  212. </script>
  213. </select1>
  214. </group>
  215. <col type="checkbox"/>
  216. <button id="button1" class="btn2_letter2" visibility="hidden" style="left:920px; top:20px; width:42px; height:19px; ">
  217. <caption>삭제</caption>
  218. <script type="javascript" ev:event="DOMActivate">
  219. <![CDATA[
  220. // 체크된 행을 가져온다.
  221. var nodeList = instance1.selectNodes("/root/main/list01/griduncoinfo[chkbox='true']");
  222. var rCSV = getNodeListCSV(nodeList);
  223. model.setValue("/root/main/rCSV", rCSV);
  224. // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  225. var CSV = model.getValue("/root/main/rCSV");
  226. // 가비지 데이터를 삭제한다.
  227. model.resetInstanceNode("/root/send/tmp");
  228. //model.removeNodeset("/root/send/tmp");
  229. setCSVToNode("/root/send/tmp", CSV);
  230. // 미수 생성 요청
  231. submit("TXPIF10302");
  232. // 현재 조건으로 미수대상 조회(미수 생성 후 변경을 반영한다.)
  233. submit("TRPIF10300");
  234. ]]>
  235. </script>
  236. </button>
  237. <button id="button2" class="btn2_letter4" style="left:1130px; top:48px; width:64px; height:19px; ">
  238. <caption>엑셀저장</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  242. if (fileName != "") {
  243. grduncoinfo.saveExcel(fileName, "SheetName", true, true, "", "", "");
  244. }
  245. ]]>
  246. </script>
  247. </button>
  248. <datagrid id="grduncoinfo" nodeset="/root/main/list01/griduncoinfo" caption="^생성^청구유형^청구구분^내원형태^진료년월^진료분야^접수번호^접수일자^청구건수^요양급여총액^본인부담금^청구액^본인상한초과금^지원금^장애인의료비^대불금^청구번호" colsep="^" colwidth="25, 35, 84, 75, 65, 75, 90, 82, 80, 85, 115, 115, 115, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:74px; width:1194px; height:668px; ">
  249. <col ref="chkbox" type="checkbox" visibility="hidden"/>
  250. <col ref="uncoyn" style="text-align:center; "/>
  251. <col disabled="true" ref="clamtypecd" style="text-align:center; "/>
  252. <col disabled="true" ref="clamflag" style="text-align:center; "/>
  253. <col ref="ioflag" style="text-align:center; "/>
  254. <col ref="ordym" format="yyyy-mm" style="text-align:center; "/>
  255. <col ref="ordfildcd" style="text-align:center; "/>
  256. <col ref="acptno" style="text-align:center; "/>
  257. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  258. <col ref="cnt" format="#,###" style="text-align:right; "/>
  259. <col ref="medcaretotamt" format="(-)#,###" style="text-align:right; "/>
  260. <col ref="ownbamt" format="(-)#,###" style="text-align:right; "/>
  261. <col ref="insuclamamt" format="(-)#,###" style="text-align:right; "/>
  262. <col ref="ownbmaxexamt" format="(-)#,###" style="text-align:right; "/>
  263. <col ref="suppamt" format="(-)#,###" style="text-align:right; "/>
  264. <col ref="handcaprfund" format="(-)#,###" style="text-align:right; "/>
  265. <col ref="subtamt" format="(-)#,###" style="text-align:right; "/>
  266. <col ref="clamno" visibility="hidden" style="text-align:center; "/>
  267. <script type="javascript" ev:event="oncopy">
  268. <![CDATA[
  269. grid_oncopy();
  270. ]]>
  271. </script>
  272. </datagrid>
  273. <button id="button115" class="btn2_letter15" visibility="hidden" style="left:20px; top:145px; width:240px; height:19px; ">
  274. <caption>[인풋박스]접수일자로 포커스이동</caption>
  275. <!-- - 2007.05.30 / 화면수정 / 다음 인풋박스로 이동하기위한 [Enter] 이벤트 핸들러 -->
  276. <script type="javascript" ev:event="DOMActivate">
  277. <![CDATA[
  278. model.setFocus("ipt_toacptym");
  279. ]]>
  280. </script>
  281. </button>
  282. <button id="button4" class="btn2_letter16" visibility="hidden" style="left:30px; top:155px; width:240px; height:19px; ">
  283. <caption>[인풋박스]환자유형으로 포커스이동</caption>
  284. <!-- - 2007.05.30 / 화면수정 / 다음 인풋박스로 이동하기위한 [Enter] 이벤트 핸들러 -->
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. model.setFocus("combo4");
  288. ]]>
  289. </script>
  290. </button>
  291. <button id="button5" class="btn2_letter10" disabled="true" visibility="hidden" style="left:967px; top:18px; width:130px; height:19px; ">
  292. <caption>접수미수배치작업확인</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. // 2007.11.23 접수미수정보생성배치로그조회
  296. //modal("SPZSB00301", "", "400", "400" ,"SPZSB00301", "", "");
  297. var todd = getCurrentDate();
  298. todd = todd.toDate().getAddDate(+1, 'D');
  299. zsbfOpenBatchLogPopup("uncomngtmgr.AcptUncoCretBatch",getCurrentDate(),todd.getDateFormat());
  300. ]]>
  301. </script>
  302. </button>
  303. <button id="button10" class="btn2_letter3" style="left:932px; top:48px; width:53px; height:19px; ">
  304. <caption>열카피</caption>
  305. <script type="javascript" ev:event="onclick">
  306. <![CDATA[
  307. grduncoinfo.attribute("selectionmode") = "bycol";
  308. ]]>
  309. </script>
  310. </button>
  311. <button id="button11" class="btn2_letter3" style="left:987px; top:48px; width:53px; height:19px; ">
  312. <caption>행카피</caption>
  313. <script type="javascript" ev:event="onclick">
  314. <![CDATA[
  315. grduncoinfo.attribute("selectionmode") = "byrow";
  316. ]]>
  317. </script>
  318. </button>
  319. <button id="button13" class="btn2_letter3" style="left:877px; top:48px; width:53px; height:19px; ">
  320. <caption>셀카피</caption>
  321. <script type="javascript" ev:event="onclick">
  322. <![CDATA[
  323. grduncoinfo.attribute("selectionmode") = "free";
  324. ]]>
  325. </script>
  326. </button>
  327. <button id="button7" class="btn2_letter6" style="left:1042px; top:48px; width:86px; height:19px; ">
  328. <caption>Open Excel</caption>
  329. <script type="javascript" ev:event="DOMActivate">
  330. <![CDATA[
  331. try {
  332. window.exec("excel");
  333. } catch(e) {
  334. alert(e);
  335. }
  336. ]]>
  337. </script>
  338. </button>
  339. </group>
  340. <group id="group2" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  341. <button id="button42" class="btn4_letter6" disabled="true" visibility="hidden" style="left:915px; top:5px; width:104px; height:22px; ">
  342. <caption>접수미수생성</caption>
  343. <script type="javascript" ev:event="DOMActivate">
  344. <![CDATA[
  345. // 선택 항목이 아무것도 없을 때
  346. var chkflag;
  347. var cnt=0;
  348. int = 0;
  349. for (i = 1; i <grduncoinfo.rows; i++) {
  350. chkflag = model.getValue("/root/main/list01/griduncoinfo["+ i +"]/chkbox");
  351. if (chkflag == "true") {
  352. cnt++;
  353. }
  354. }
  355. if (cnt == 0) {
  356. messageBox("선택된 항목이 존재하지 않습니다. 체크 표시를", "C001");
  357. }
  358. // 체크된 행을 가져온다.
  359. var nodeList = instance1.selectNodes("/root/main/list01/griduncoinfo[chkbox='true']");
  360. var rCSV = getNodeListCSV(nodeList);
  361. model.setValue("/root/main/rCSV", rCSV);
  362. // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  363. var CSV = model.getValue("/root/main/rCSV");
  364. // 노드 초기화
  365. model.destroy("/root/send/tmp");
  366. model.makeNode("/root/send/tmp");
  367. setCSVToNode("/root/send/tmp", CSV);
  368. // 미수 생성 요청
  369. //submit("TXPIF10301");
  370. submit("TXPIF10303");
  371. // 현재 조건으로 미수대상 조회(미수 생성 후 변경을 반영한다.)
  372. submit("TRPIF10300");
  373. ]]>
  374. </script>
  375. </button>
  376. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  377. <button id="button3" class="btn4_letter3" visibility="visible" style="left:1127px; top:5px; width:68px; height:22px; ">
  378. <caption>초기화</caption>
  379. <!-- - 2007.05.30 / 화면수정 / 미수생성을 요청한다. -->
  380. <script type="javascript" ev:event="DOMActivate">
  381. <![CDATA[
  382. fInitialize();
  383. ]]>
  384. </script>
  385. </button>
  386. <button id="button6" class="btn4_letter6" disabled="true" visibility="hidden" style="left:1021px; top:5px; width:104px; height:22px; ">
  387. <caption>접수미수삭제</caption>
  388. <script type="javascript" ev:event="DOMActivate">
  389. <![CDATA[
  390. // 체크된 행을 가져온다.
  391. var nodeList = instance1.selectNodes("/root/main/list01/griduncoinfo[chkbox='true']");
  392. var rCSV = getNodeListCSV(nodeList);
  393. model.setValue("/root/main/rCSV", rCSV);
  394. // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  395. var CSV = model.getValue("/root/main/rCSV");
  396. // 가비지 데이터를 삭제한다.
  397. model.resetInstanceNode("/root/send/tmp");
  398. //model.removeNodeset("/root/send/tmp");
  399. setCSVToNode("/root/send/tmp", CSV);
  400. // 미수 생성 요청
  401. //submit("TXPIF10302");
  402. submit("TXPIF10304");
  403. // 현재 조건으로 미수대상 조회(미수 생성 후 변경을 반영한다.)
  404. submit("TRPIF10300");
  405. ]]>
  406. </script>
  407. </button>
  408. </group>
  409. </xhtml:body>
  410. </xhtml:html>