SMPIF60100_환수내역조회.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>환수내역조회(SMPIF60100)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <termflag>1</termflag>
  11. <fromdd/>
  12. <todd/>
  13. <insukind>11</insukind>
  14. <cpcd/>
  15. <assocd/>
  16. </send>
  17. <main>
  18. <list01>
  19. <gridrtndetl1>
  20. <clamym/>
  21. <uncoym/>
  22. <ioflag/>
  23. <acptno/>
  24. <judgdg/>
  25. <ofidocno/>
  26. <ordfildcd/>
  27. <ofidocarvdd/>
  28. <rtnscheamt/>
  29. <rtnflag/>
  30. <rtndd/>
  31. <rtnamt/>
  32. <rtnacptno/>
  33. <rtnjudgdg/>
  34. <rtnordym/>
  35. <rtnioflag/>
  36. <rtnordfildcd/>
  37. <rtnofidocno/>
  38. <rtnofidocarvdd/>
  39. <rem/>
  40. </gridrtndetl1>
  41. </list01>
  42. <list02>
  43. <gridrtndetl2>
  44. <clamym/>
  45. <uncoym/>
  46. <ioflag/>
  47. <acptno/>
  48. <judgdg/>
  49. <ordfildcd/>
  50. <cpcd/>
  51. <assocd/>
  52. <rtnscheamt/>
  53. <rtnflag/>
  54. <rtndd/>
  55. <rtnamt/>
  56. <rtnacptno/>
  57. <rtnjudgdg/>
  58. <rtnordym/>
  59. <rtnioflag/>
  60. <rtnordfildcd/>
  61. <rtnofidocno/>
  62. <rtnofidocarvdd/>
  63. <rem/>
  64. </gridrtndetl2>
  65. </list02>
  66. </main>
  67. <init>
  68. <P0235list>
  69. <P0235>
  70. <cdid/>
  71. <cdnm/>
  72. </P0235>
  73. </P0235list>
  74. <P0028list>
  75. <P0028>
  76. <cdid/>
  77. <cdnm/>
  78. </P0028>
  79. </P0028list>
  80. <P0302list>
  81. <P0302>
  82. <cdid/>
  83. <cdnm/>
  84. </P0302>
  85. </P0302list>
  86. <P0121list>
  87. <P0121>
  88. <cdid/>
  89. <cdnm/>
  90. </P0121>
  91. </P0121list>
  92. <P0291list>
  93. <P0291>
  94. <cdid/>
  95. <cdnm/>
  96. </P0291>
  97. </P0291list>
  98. <P0415list>
  99. <P0415>
  100. <cdid/>
  101. <cdnm/>
  102. </P0415>
  103. </P0415list>
  104. <U0004list>
  105. <U0004>
  106. <assocd/>
  107. <assonm/>
  108. </U0004>
  109. </U0004list>
  110. <temp>
  111. <code00list>
  112. <code00/>
  113. </code00list>
  114. </temp>
  115. <U0005list>
  116. <U0005>
  117. <cpcd/>
  118. <cpnm/>
  119. </U0005>
  120. </U0005list>
  121. <U0006list>
  122. <U0006>
  123. <assocd/>
  124. <assonm/>
  125. </U0006>
  126. </U0006list>
  127. </init>
  128. </root>
  129. </instance>
  130. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  131. <submission id="TRPIF60101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  132. <submission id="TRPIF60102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list02"/>
  133. <submission id="TRPIF60326" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/U0004list"/>
  134. <submission id="TRPIF60327" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/temp"/>
  135. <submission id="TRPIF60328" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/U0001list"/>
  136. <submission id="TRPIF60329" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/U0006list"/>
  137. </model>
  138. <script type="javascript" ev:event="xforms-ready">
  139. <![CDATA[
  140. // 공통코드 Load작업
  141. CommCode_Load();
  142. ]]>
  143. </script>
  144. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  145. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  146. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  147. <script type="javascript">
  148. <![CDATA[
  149. function Node_Init() {
  150. // NodeSet 초기화
  151. model.resetInstanceNode("/root/main/list01");
  152. model.resetInstanceNode("/root/main/list02");
  153. model.refresh();
  154. }
  155. // 공통코드 Load작업
  156. function CommCode_Load() {
  157. // 관련 Control 초기화
  158. // zbcfGetCodeList(new Array("P0235"), new Array( "/root/init/P0235list")); // 상계청구분야
  159. // zbcfGetCodeList(new Array("P0028"), new Array( "/root/init/P0028list")); // 상계구분
  160. // zbcfGetCodeList(new Array("P0302"), new Array( "/root/init/P0302list")); // 환수구분
  161. // zbcfGetCodeList(new Array("P0121"), new Array( "/root/init/P0121list")); // 청구구분
  162. // zbcfGetCodeList(new Array("P0291"), new Array( "/root/init/P0291list")); // 진료분야
  163. zbcfGetCodeList(new Array("P0415"), new Array( "/root/init/P0415list")); // 시도
  164. // model.refresh();
  165. // ipt_fromdd.disabled = true;
  166. // ipt_todd.disabled = true;
  167. model.makeNode("/root/send/usesrcflag");
  168. model.setValue("/root/send/usesrcflag","srch");
  169. submit("TRPIF60327");
  170. model.setFocus("ipt_fromdd");
  171. }
  172. ]]>
  173. </script>
  174. </xhtml:head>
  175. <xhtml:body class="datagrid2" guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  176. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  177. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:311px; height:14px; ">환수내역조회</caption>
  178. </group>
  179. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:757px; ">
  180. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  181. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  182. <button id="button1" class="btn1_letter2" navindex="5" style="left:1123px; top:7px; width:56px; height:22px; ">
  183. <caption>조회</caption>
  184. <script type="javascript" ev:event="onclick">
  185. <![CDATA[
  186. if(rdo_termflag.value == "1") {
  187. if(ipt_fromdd.value == "") {
  188. messageBox("진료월 시작일을","C001");
  189. model.setFocus("ipt_fromdd");
  190. return false;
  191. }
  192. if(ipt_todd.value == "") {
  193. messageBox("진료월 종료일을","C001");
  194. model.setFocus("ipt_todd");
  195. return false;
  196. }
  197. }
  198. if(rdo_termflag.value == "2") {
  199. if(ipt_fromdd.value == "") {
  200. messageBox("청구월 시작일을","C001");
  201. model.setFocus("ipt_fromdd");
  202. return false;
  203. }
  204. if(ipt_todd.value == "") {
  205. messageBox("청구월 종료일을","C001");
  206. model.setFocus("ipt_todd");
  207. return false;
  208. }
  209. }
  210. if(rdo_termflag.value == "3") {
  211. if(ipt_fromdd.value == "") {
  212. messageBox("환수일자 시작일을","C001");
  213. model.setFocus("ipt_fromdd");
  214. return false;
  215. }
  216. if(ipt_todd.value == "") {
  217. messageBox("환수일자 종료일을","C001");
  218. model.setFocus("ipt_todd");
  219. return false;
  220. }
  221. }
  222. if(rdo_termflag.value == "4") {
  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. if(rdo_insukind.value == '11' || rdo_insukind.value == '41' ) {
  235. submit("TRPIF60101");
  236. btn_rtndetl1.selected = true;
  237. model.toggle("case1");
  238. }
  239. if(rdo_insukind.value == '21') {
  240. submit("TRPIF60102");
  241. btn_rtndetl2.selected = true;
  242. model.toggle("case2");
  243. }
  244. ]]>
  245. </script>
  246. </button>
  247. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  248. <caption id="caption4" class="search_name" style="left:465px; top:9px; width:86px; height:17px; ">보험유형 :</caption>
  249. <select1 id="rdo_insukind" ref="/root/send/insukind" class="radio_search" navindex="4" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:554px; top:10px; width:151px; height:15px; border-style:none; ">
  250. <choices>
  251. <item>
  252. <label>보험</label>
  253. <value>11</value>
  254. </item>
  255. <item>
  256. <label>보호</label>
  257. <value>21</value>
  258. </item>
  259. <item>
  260. <label>산재</label>
  261. <value>41</value>
  262. </item>
  263. </choices>
  264. <script type="javascript" ev:event="xforms-select">
  265. <![CDATA[
  266. if(rdo_insukind.value == "11") {
  267. cpt_cpcd.visible = false;
  268. cpt_assocd.visible = false;
  269. cmb_cpcd.visible = false;
  270. cmb_assocd.visible = false;
  271. }else if(rdo_insukind.value == "41") {
  272. cpt_cpcd.visible = false;
  273. cpt_assocd.visible = false;
  274. cmb_cpcd.visible = false;
  275. cmb_assocd.visible = false;
  276. } else {
  277. cpt_cpcd.visible = true;
  278. cpt_assocd.visible = true;
  279. cmb_cpcd.visible = true;
  280. cmb_assocd.visible = true;
  281. // 시도 조회
  282. model.setFocus("cmb_cpcd");
  283. // if(submit("TRPIF60328")) {
  284. // model.setFocus("cmb_cpcd");
  285. // }
  286. }
  287. ]]>
  288. </script>
  289. </select1>
  290. <caption id="caption3" style="left:345px; top:10px; width:15px; height:20px; ">~</caption>
  291. <select1 id="rdo_termflag" ref="/root/send/termflag" class="radio_search" navindex="1" appearance="full" cols="4" rows="1" overflow="visible" style="left:15px; top:10px; width:240px; height:15px; font-weight:bold; border-style:none; ">
  292. <choices>
  293. <item>
  294. <label>청구월</label>
  295. <value>1</value>
  296. </item>
  297. <item>
  298. <label>미수월</label>
  299. <value>2</value>
  300. </item>
  301. <item>
  302. <label>환수월</label>
  303. <value>3</value>
  304. </item>
  305. <item>
  306. <label>통보월</label>
  307. <value>4</value>
  308. </item>
  309. </choices>
  310. <script type="javascript" ev:event="onclick">
  311. <![CDATA[
  312. // ipt_fromdd.disabled = false;
  313. // ipt_todd.disabled = false;
  314. model.setFocus("ipt_fromdd");
  315. ]]>
  316. </script>
  317. </select1>
  318. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="2" inputtype="date" maxlength="6" format="yyyy-mm" style="left:259px; top:9px; width:81px; height:19px; ">
  319. <script type="javascript" ev:event="DOMFocusOut">
  320. <![CDATA[
  321. ipt_todd.value = ipt_fromdd.value;
  322. ]]>
  323. </script>
  324. </input>
  325. <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="3" inputtype="date" maxlength="6" format="yyyy-mm" style="left:360px; top:9px; width:80px; height:19px; "/>
  326. <select1 id="cmb_cpcd" ref="/root/send/cpcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:780px; top:7px; width:95px; height:19px; ">
  327. <choices>
  328. <itemset nodeset="/root/init/P0415list/P0415">
  329. <label ref="cdnm"/>
  330. <value ref="cdid"/>
  331. </itemset>
  332. </choices>
  333. <script type="javascript" ev:event="xforms-select">
  334. <![CDATA[
  335. // model.resetInstanceNode("/root/init/U0006list");
  336. model.removeNodeset("/root/init/U0006list");
  337. model.resetInstanceNode("/root/send/assocd");
  338. model.refresh();
  339. submit("TRPIF60329"); // 조회조건의 시군구코드 조회
  340. model.refresh();
  341. ]]>
  342. </script>
  343. </select1>
  344. <select1 id="cmb_assocd" ref="/root/send/assocd" class="combo_search" visibility="hidden" appearance="minimal" style="left:995px; top:7px; width:95px; height:19px; ">
  345. <choices>
  346. <itemset nodeset="/root/init/U0006list/U0006">
  347. <label ref="assonm"/>
  348. <value ref="assocd"/>
  349. </itemset>
  350. </choices>
  351. </select1>
  352. <caption id="cpt_cpcd" class="search_name" visibility="hidden" style="left:710px; top:8px; width:65px; height:17px; ">시 도 :</caption>
  353. <caption id="cpt_assocd" class="search_name" visibility="hidden" style="left:905px; top:8px; width:83px; height:17px; ">시 군 구 :</caption>
  354. </group>
  355. <switch id="switch1" class="sw_box" style="left:0px; top:73px; width:1194px; height:662px; ">
  356. <case id="case1" selected="true">
  357. <datagrid id="grd_rtndetl1" nodeset="/root/main/list01/gridrtndetl1" class="datagrid2" caption="청구월^미수월^내원&#xA;유형^접수번호^심사차수^공문번호^공문도착일자^청구&#xA;분야^환수예정액^환수구분^환수일^환수액^상계&#xA;접수번호^상계&#xA;심사차수^상계&#xA;진료월^상계&#xA;구분^상계&#xA;진료과^상계&#xA;공문번호^상계공문&#xA;도착일자^비고" colsep="^" colwidth="55, 55, 40, 65, 65, 80, 80, 40, 80, 80, 80, 80, 65, 65, 55, 40, 45, 80, 80, 166" dataheight="25" defaultrows="2" ellipsis="true" explorerbar="sortshowmove" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:4px; top:13px; width:1183px; height:632px; ">
  358. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  359. <col ref="uncoym" format="yyyy-mm" style="text-align:center; "/>
  360. <col ref="ioflag" style="text-align:center; ">
  361. <choices>
  362. <itemset nodeset="/root/init/P0028list/P0028">
  363. <label ref="cdnm"/>
  364. <value ref="cdid"/>
  365. </itemset>
  366. </choices>
  367. </col>
  368. <col ref="acptno" style="text-align:center; "/>
  369. <col ref="judgdg" style="text-align:center; "/>
  370. <col ref="ofidocno" style="text-align:center; "/>
  371. <col ref="ofidocarvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  372. <col ref="ordfildcd" style="text-align:center; ">
  373. <choices>
  374. <itemset nodeset="/root/init/P0235list/P0235">
  375. <label ref="cdnm"/>
  376. <value ref="cdid"/>
  377. </itemset>
  378. </choices>
  379. </col>
  380. <col ref="rtnscheamt" format="(-)#,###" style="text-align:right; "/>
  381. <col ref="rtnflag">
  382. <choices>
  383. <item>
  384. <label/>
  385. <value/>
  386. </item>
  387. </choices>
  388. </col>
  389. <col ref="rtndd" format="yyyy-mm-dd" style="text-align:center; "/>
  390. <col ref="rtnamt" format="(-)#,###" style="text-align:right; "/>
  391. <col ref="rtnacptno" style="text-align:center; "/>
  392. <col ref="rtnjudgdg" style="text-align:center; "/>
  393. <col ref="rtnordym" style="text-align:center; "/>
  394. <col ref="rtnioflag" style="text-align:center; "/>
  395. <col ref="rtnordfildcd" style="text-align:center; "/>
  396. <col ref="rtnofidocno" style="text-align:center; "/>
  397. <col ref="rtnofidocarvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  398. <col ref="rem"/>
  399. <script type="javascript" ev:event="onaftersort">
  400. <![CDATA[
  401. grd_rtndetl1.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  402. ]]>
  403. </script>
  404. </datagrid>
  405. </case>
  406. <case id="case2">
  407. <datagrid id="grd_rtndetl2" nodeset="/root/main/list02/gridrtndetl2" class="datagrid2" caption="청구월^미수월^내원&#xA;유형^접수번호^심사차수^청구&#xA;분야^시도코드^입금보장기관기호^환수예정액^환수구분^환수일^환수액^상계&#xA;접수번호^상계&#xA;심사차수^상계&#xA;진료월^상계&#xA;I/O^상계&#xA;진료과^공문번호^공문도착일자^비고" colsep="^" colwidth="55, 55, 40, 65, 65, 40, 70, 110, 80, 90, 80, 80, 70, 70, 55, 40, 45, 80, 80, 112" dataheight="25" defaultrows="2" ellipsis="true" explorerbar="sortshowmove" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:4px; top:13px; width:1183px; height:632px; ">
  408. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  409. <col ref="uncoym" format="yyyy-mm" style="text-align:center; "/>
  410. <col ref="ioflag" style="text-align:center; "/>
  411. <col ref="acptno" style="text-align:center; "/>
  412. <col ref="judgdg" style="text-align:center; "/>
  413. <col ref="ordfildcd" style="text-align:center; "/>
  414. <col ref="cpcd" style="text-align:center; "/>
  415. <col disabled="true" ref="assocd" style="text-align:center; ">
  416. <choices>
  417. <itemset nodeset="/root/init/temp/code00list/code00">
  418. <label ref="label"/>
  419. <value ref="value"/>
  420. </itemset>
  421. </choices>
  422. </col>
  423. <col ref="rtnscheamt" format="(-)#,###" style="text-align:right; "/>
  424. <col ref="rtnflag"/>
  425. <col ref="rtndd" format="yyyy-mm-dd" style="text-align:center; "/>
  426. <col ref="rtnamt" format="(-)#,###" style="text-align:right; "/>
  427. <col ref="rtnacptno" style="text-align:center; "/>
  428. <col ref="rtnjudgdg" style="text-align:center; "/>
  429. <col ref="rtnordym" style="text-align:center; "/>
  430. <col ref="rtnioflag" style="text-align:center; "/>
  431. <col ref="rtnordfildcd" style="text-align:center; "/>
  432. <col ref="rtnofidocno" style="text-align:center; "/>
  433. <col ref="rtnofidocarvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  434. <col ref="rem"/>
  435. <script type="javascript" ev:event="onaftersort">
  436. <![CDATA[
  437. grd_rtndetl2.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  438. ]]>
  439. </script>
  440. </datagrid>
  441. </case>
  442. </switch>
  443. <button id="btn_rtndetl1" class="btn_sw" group="tab" selected="true" style="left:0px; top:52px; width:145px; height:22px; ">
  444. <caption>환수구분 (보험/산재)</caption>
  445. <toggle case="case1" ev:event="onclick"/>
  446. </button>
  447. <button id="btn_rtndetl2" class="btn_sw" group="tab" style="left:145px; top:52px; width:137px; height:22px; ">
  448. <caption>환수구분 (보호)</caption>
  449. <toggle case="case2" ev:event="onclick"/>
  450. </button>
  451. <button id="button2" class="btn2_letter4" style="left:1124px; top:50px; width:64px; height:19px; ">
  452. <caption>엑셀저장</caption>
  453. <script type="javascript" ev:event="onclick">
  454. <![CDATA[
  455. var today = new Date();
  456. var yy = today.getYear()+"";
  457. var mm = today.getMonth()+1;
  458. var dd = today.getDate();
  459. if(mm < 10) { mm = "0"+mm; } else { mm = mm+""; }
  460. if(dd < 10) { dd = "0" + dd; } else { dd = dd + ""; }
  461. var tmp = yy+mm+dd;
  462. if(rdo_insukind.value == "11") {
  463. var fileName = window.fileDialog("save", ",", false, "환수내역조회(보험)_"+tmp, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  464. if (fileName != "") { grd_rtndetl1.saveExcel(fileName, "SheetName", true, true, "", "", ""); }
  465. }
  466. if(rdo_insukind.value == "21") {
  467. var fileName = window.fileDialog("save", ",", false, "환수내역조회(보호)_"+tmp, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  468. if (fileName != "") { grd_rtndetl2.saveExcel(fileName, "SheetName", true, true, "", "", ""); }
  469. }
  470. ]]>
  471. </script>
  472. </button>
  473. </group>
  474. </xhtml:body>
  475. </xhtml:html>