SMPIF10100_접수정보생성관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. [개발이력]
  4. 2007.05.30 / 최초작성 / 이종찬
  5. -->
  6. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  7. <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">
  8. <xhtml:head>
  9. <xhtml:title>접수정보생성조회</xhtml:title>
  10. <model id="model1">
  11. <instance id="instance1">
  12. <root xmlns="">
  13. <main>
  14. <list01>
  15. <griduncoinfo>
  16. <chkbox/>
  17. <pid/>
  18. <clamdd/>
  19. <indd/>
  20. <cretfromdd/>
  21. <insukind/>
  22. <insuno/>
  23. <acptno/>
  24. <judgdg/>
  25. <docuseqno/>
  26. <medcaretotamt/>
  27. <ownbamt/>
  28. <insuclamamt/>
  29. <uncoyn/>
  30. </griduncoinfo>
  31. </list01>
  32. <rCSV/>
  33. <list02>
  34. <comboclamym>
  35. <clamymval/>
  36. <clamymlab/>
  37. </comboclamym>
  38. </list02>
  39. <result/>
  40. </main>
  41. <send>
  42. <cpnode/>
  43. <acptno/>
  44. <clamym/>
  45. <clamym2/>
  46. <tmp>
  47. <list>
  48. <chkbox/>
  49. <pid/>
  50. <clamdd/>
  51. <indd/>
  52. <cretfromdd/>
  53. <insukind/>
  54. <insuno/>
  55. <acptno/>
  56. <judgdg/>
  57. <docuseqno/>
  58. <medcaretotamt/>
  59. <ownbamt/>
  60. <insuclamamt/>
  61. <uncoyn/>
  62. </list>
  63. </tmp>
  64. <offset/>
  65. <pagesize>500</pagesize>
  66. </send>
  67. <init>
  68. <P0008list>
  69. <P0008>
  70. <cdid/>
  71. <cdnm/>
  72. </P0008>
  73. </P0008list>
  74. <comboclamym>
  75. <clamymval/>
  76. <clamymlab/>
  77. </comboclamym>
  78. <P0010list>
  79. <P0010>
  80. <cdid/>
  81. <cdnm/>
  82. </P0010>
  83. </P0010list>
  84. <P0370list>
  85. <P0370>
  86. <cdnm/>
  87. <cdid/>
  88. </P0370>
  89. </P0370list>
  90. </init>
  91. <hidden/>
  92. </root>
  93. </instance>
  94. <script type="javascript" ev:event="xforms-ready">
  95. <![CDATA[
  96. // 그리드 헤더에 체크박스를 생성한다.
  97. grd_uncoinfo.fixedcellcheckbox(0,1) = true;
  98. // 공통코드를 로드한다.
  99. CommCode_Load();
  100. // 화면 실행 시 그리드 행이 하나도 안보이도록 한다.
  101. model.removeNodeset("/root/main/list01/griduncoinfo");
  102. model.refresh();
  103. ]]>
  104. </script>
  105. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
  106. <submission id="TRPIF10100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/list01"/>
  107. <submission id="TRPIF10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list02"/>
  108. <submission id="TXPIF10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
  109. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  110. </model>
  111. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  113. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  114. <script type="javascript">
  115. <![CDATA[
  116. // 공통코드 Load작업
  117. function CommCode_Load() {
  118. // 관련 Control 초기화
  119. zbcfGetCodeList(new Array("P0010"), new Array("/root/init/P0010list")); // 보조유형
  120. zbcfGetCodeList(new Array("P0370"), new Array("/root/init/P0370list")); // 미수처리구분
  121. model.refresh();
  122. }
  123. // 2007.09.07 초기화 함수
  124. function fInitialize(){
  125. // 조회 조건 입력값 초기화
  126. model.resetInstanceNode("/root/send");
  127. model.setValue("/root/send/offset","0");
  128. model.setValue("/root/send/pagesize","500");
  129. // 그리드 공라인 없애기
  130. model.removeNodeset("/root/main/list01/griduncoinfo");
  131. model.refresh();
  132. // 포커스 이동
  133. model.setFocus("ipt_acptno");
  134. }
  135. // 2007.08.07 페이지 단위 조회
  136. function fSubmitOnScroll() {
  137. // 2007.10.08 그리드에 vertical scroll이 생성되지 않은 경우는 아래의 루틴을 태우지 않는다.
  138. if (grd_uncoinfo.vscroll.attribute("max") != 0 && grd_uncoinfo.vscroll.attribute("pos") != 0) {
  139. // end of scroll
  140. if (grd_uncoinfo.vscroll.attribute("max") == grd_uncoinfo.vscroll.attribute("pos")) {
  141. model.setValue("/root/send/offset",grd_uncoinfo.rows-1); // grid의 header row는 제외
  142. submit("TRPIF10100");
  143. grd_uncoinfo.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
  144. }
  145. }
  146. }
  147. ]]>
  148. </script>
  149. </xhtml:head>
  150. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  151. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  152. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">접수정보생성조회</caption>
  153. </group>
  154. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  155. <caption id="caption1" class="tit_2" style="left:6px; top:59px; width:121px; height:14px; ">접수정보생성내역</caption>
  156. <line id="line1" class="line_1" style="x1:0px; y1:74px; x2:1194px; y2:74px; "/>
  157. <group id="group4" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  158. <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; "/>
  159. <line id="line2" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  160. <input id="ipt_acptno" ref="/root/send/acptno" class="input_s_essential" navindex="0" inputtype="button" maxlength="15" required="true" style="left:110px; top:8px; width:195px; height:19px; ">
  161. <!-- - 2007.05.30 / 화면수정 / 접수번호를 입력받는다. -->
  162. <script type="javascript" ev:event="onkeyup">
  163. <![CDATA[
  164. // 청구년월을 콤보에 담는다.
  165. inputEnterKey("btn_getclamym", "DOMActivate");
  166. ]]>
  167. </script>
  168. <script type="javascript" ev:event="onbuttonclick">
  169. <![CDATA[
  170. model.makeNode("/root/send/send01/termflag");
  171. model.makeNode("/root/send/send01/fromdd");
  172. model.makeNode("/root/send/send01/todd");
  173. model.makeNode("/root/send/send01/insukind");
  174. model.makeNode("/root/send/send01/acptno");
  175. model.setValue("/root/send/send01/insukind","11");
  176. setParameter("SPPIF30302_RTNTYPE", "P");
  177. modal("SPPIF30302", 1, 1, 1, "SPPIF30302", "/root/send/send01", "/root/send");
  178. model.setValue("/root/send/acptno", getParameter("SPPIF30302_acptno"));
  179. model.removeNodeset("/root/send/send01");
  180. clearParameter("SPPIF30302_RTNTYPE");
  181. clearParameter("SPPIF30302_acptno");
  182. ipt_acptno.refresh();
  183. if( model.getValue("/root/send/acptno") != '' ){
  184. //ipt_srchcond01.dispatch("DOMFocusOut");
  185. btn_getclamym.dispatch("DOMActivate");
  186. }
  187. ]]>
  188. </script>
  189. </input>
  190. <select1 id="cmb_clamym" ref="/root/send/clamym" class="combo_search" navindex="1" appearance="minimal" style="left:470px; top:8px; width:195px; height:19px; ">
  191. <!-- - 2007.05.30 / 화면수정 / 청구년월을 획득한다. -->
  192. <choices>
  193. <itemset nodeset="/root/main/list02/comboclamym">
  194. <label ref="clamymlab"/>
  195. <value ref="clamymval"/>
  196. </itemset>
  197. </choices>
  198. </select1>
  199. <button id="btn_srch" class="btn1_letter2" navindex="2" style="left:1122px; top:7px; width:56px; height:22px; ">
  200. <caption>조회</caption>
  201. <!--
  202. 2007.05.30 / 화면수정 / 미수대상을 조회한다.
  203. '장애인수첩','처리구분' 추후 결정
  204. -->
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. // 2007.10.20 청구년월을 포맷 한다
  208. // 포맷 시작
  209. var str = model.getValue("root/send/clamym");
  210. var ss = "";
  211. var i = 0;
  212. if (str.length == 7) {
  213. // js에서는 0부터 인덱싱한다.
  214. for (i = 0; i < str.length; i++) {
  215. // 건건히 돌리면서 '-'를 제거한다.
  216. if (str.substr(i,1) != "-") {
  217. ss = ss + str.substr(i,1)
  218. }
  219. }
  220. //alert(ss);
  221. model.setValue("root/send/clamym",ss);
  222. }
  223. // 포맷 끝
  224. if (isRequiredControls("ipt_acptno")) {
  225. // 2008.02.12 결과 누적 현상 방지
  226. model.removeNodeset("/root/main/list01/griduncoinfo");
  227. model.setValue("/root/send/offset","0");
  228. // 미수대상 조회 요청
  229. submit("TRPIF10100");
  230. // submit("TRPIF10100");
  231. }
  232. ]]>
  233. </script>
  234. </button>
  235. <caption id="cap_02" class="search_name" style="left:379px; top:9px; width:86px; height:17px; ">청구년월 :</caption>
  236. <caption id="cap_acptno" class="search_name" style="left:21px; top:9px; width:86px; height:17px; ">접수번호 :</caption>
  237. </group>
  238. <col type="checkbox"/>
  239. <button id="button3" class="btn2_letter4" style="left:1130px; top:53px; width:64px; height:19px; ">
  240. <caption>엑셀저장</caption>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  244. if (fileName != "") {
  245. grd_uncoinfo.saveExcel(fileName, "SheetName", true, true, "", "", "");
  246. }
  247. ]]>
  248. </script>
  249. </button>
  250. <!-- - 2007.05.30 / 화면수정 / 이종찬: 의료기획 윤영옥 선생님과 협의 후 '삭제' Button 삭제하였음('일괄접수정보생성' 화면에서만 필요한 기능임) -->
  251. <datagrid id="grd_uncoinfo" nodeset="/root/main/list01/griduncoinfo" visibility="visible" caption="^생성^등록번호^수진자^청구일자^입원일자^적용일자^보험유형^장애수첩^접수번호^심사차수^명번호^미수처리^요양급여총액^본인부담금^청구액^본인부담상한금^지원금^장애인의료비^대불금^비고^조합기호^생성여부" colsep="^" colwidth="25, 35, 68, 73, 71, 72, 72, 73, 62, 69, 73, 60, 73, 93, 93, 93, 93, 93, 93, 93, 150, 100" dataheight="25" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:79px; width:1194px; height:663px; ">
  252. <col ref="chkbox" type="checkbox" visibility="hidden"/>
  253. <col ref="uncoyn" visibility="visible" style="text-align:center; "/>
  254. <col ref="pid" style="text-align:center; "/>
  255. <col ref="patnm" style="text-align:center; "/>
  256. <col ref="clamdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  257. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  258. <col ref="cretfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  259. <col disabled="true" ref="insukind" style="text-align:center; "/>
  260. <col disabled="true" ref="prockindflag" visibility="hidden" style="text-align:center; "/>
  261. <col ref="acptno" style="text-align:center; "/>
  262. <col ref="judgdg" style="text-align:center; "/>
  263. <col ref="docuseqno" style="text-align:center; "/>
  264. <col disabled="true" ref="decotretflag" type="combo" visibility="hidden" style="text-align:center; ">
  265. <choices>
  266. <itemset nodeset="/root/init/P0370list/P0370">
  267. <label ref="cdnm"/>
  268. <value ref="cdid"/>
  269. </itemset>
  270. </choices>
  271. </col>
  272. <col ref="medcaretotamt" format="(-)#,###" style="text-align:right; "/>
  273. <col ref="ownbamt" format="(-)#,###" style="text-align:right; "/>
  274. <col ref="insuclamamt" format="(-)#,###" style="text-align:right; "/>
  275. <col ref="ownbmaxexamt" visibility="visible" format="(-)#,###" style="text-align:right; "/>
  276. <col ref="suppamt" visibility="visible" format="(-)#,###" style="text-align:right; "/>
  277. <col ref="handcaprfund" visibility="visible" format="(-)#,###" style="text-align:right; "/>
  278. <col ref="subtamt" visibility="visible" format="(-)#,###" style="text-align:right; "/>
  279. <col visibility="hidden" style="text-align:center; "/>
  280. <col ref="insuno" style="text-align:center; "/>
  281. <script type="javascript" ev:event="onscroll">
  282. <![CDATA[
  283. fSubmitOnScroll();
  284. ]]>
  285. </script>
  286. </datagrid>
  287. <button id="btn_getclamym" class="btn2_letter13" visibility="hidden" style="left:25px; top:150px; width:163px; height:19px; ">
  288. <caption>[콤보박스]청구년월 내려받기</caption>
  289. <!-- - 2007.05.30 / 화면수정 / 청구년월을 획득하기위한 [Enter] 이벤트 핸들러 -->
  290. <script type="javascript" ev:event="DOMActivate">
  291. <![CDATA[
  292. // 가비지 데이터를 삭제한다.
  293. model.setValue("/root/send/clamym","");
  294. submit("TRPIF10101");
  295. // 조회된 청구년월 콤보의 맨 앞자리에 공백 아이템을 넣어준다.
  296. copyNodeType("/root/main/list02/comboclamym","/root/init/comboclamym","before");
  297. // 청구년월콤보박스에 삽입한 공백 아이템을 보여주기 위해 화면을 갱신한다.
  298. model.refresh();
  299. //return true;
  300. // 청구년월콤보박스로 포커스를 준다.
  301. model.setFocus("cmb_clamym");
  302. // 2007.10.16 청구년월 실제 조회된 건이 1개인 경우 바로 submit 전송한다.
  303. if (cmb_clamym.length == 2) {
  304. cmb_clamym.value = model.getValue("/root/main/list02/comboclamym/clamymlab[2]");
  305. // 2007.10.20 청구년월을 포맷 한다
  306. // 포맷 시작
  307. var str = model.getValue("root/send/clamym2");
  308. var ss = "";
  309. var i = 0;
  310. if (str.length == 7) {
  311. // js에서는 0부터 인덱싱한다.
  312. for (i = 0; i <str.length; i++) {
  313. // 건건히 돌리면서 '-'를 제거한다.
  314. if (str.substr(i,1) != "-") {
  315. ss = ss + str.substr(i,1)
  316. }
  317. }
  318. //alert(ss);
  319. model.setValue("root/send/clamym",ss);
  320. }
  321. // 포맷 끝
  322. submit("TRPIF10100");
  323. }
  324. ]]>
  325. </script>
  326. </button>
  327. </group>
  328. <group id="group2" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  329. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  330. <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1069px; top:5px; width:56px; height:22px; ">
  331. <caption>저장</caption>
  332. <!-- - 2007.05.30 / 화면수정 / 미수생성을 요청한다. -->
  333. <script type="javascript" ev:event="DOMActivate">
  334. <![CDATA[
  335. // 선택 항목이 아무것도 없을 경우 예외 처리한다.
  336. var chkflag;
  337. var cnt=0;
  338. int = 0;
  339. for (i = 1; i < grd_uncoinfo.rows; i++) {
  340. chkflag = model.getValue("/root/main/list01/griduncoinfo["+ i +"]/chkbox");
  341. if (chkflag == "true") {
  342. cnt++;
  343. }
  344. }
  345. if (cnt == 0) {
  346. messageBox("선택된 항목이", "I004");
  347. }
  348. else {
  349. if (messageBox("저장","S001") == 6) {
  350. // 체크된 행만 가져온다.
  351. var nodeList = instance1.selectNodes("/root/main/list01/griduncoinfo[chkbox='true']");
  352. var rCSV = getNodeListCSV(nodeList);
  353. model.setValue("/root/main/rCSV", rCSV);
  354. // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  355. var CSV = model.getValue("/root/main/rCSV");
  356. // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
  357. model.destroy("/root/send/tmp");
  358. model.makeNode("/root/send/tmp");
  359. setCSVToNode("/root/send/tmp", CSV);
  360. // 미수 생성을 요청한다.
  361. submit("TXPIF10102");
  362. // 현재 조건으로 미수대상 조회(미수 생성 후 변경을 반영한다.)
  363. submit("TRPIF10100");
  364. //
  365. // 여기에서 체크를 해제한다.
  366. }
  367. }
  368. ]]>
  369. </script>
  370. </button>
  371. <button id="button1" class="btn4_letter3" visibility="visible" style="left:1127px; top:5px; width:68px; height:22px; ">
  372. <caption>초기화</caption>
  373. <!-- - 2007.05.30 / 화면수정 / 미수생성을 요청한다. -->
  374. <script type="javascript" ev:event="DOMActivate">
  375. <![CDATA[
  376. fInitialize();
  377. ]]>
  378. </script>
  379. </button>
  380. </group>
  381. </xhtml:body>
  382. </xhtml:html>