SMPIF71500_미수현황(자보).xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  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>미수현황(자보)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <fromdd/>
  11. <todd/>
  12. <certno/>
  13. <ioflag>A</ioflag>
  14. <endyn>A</endyn>
  15. <uncoamt>1000</uncoamt>
  16. <selectflag/>
  17. <srchflag>M</srchflag>
  18. </send>
  19. <main>
  20. <list>
  21. <datagrid1>
  22. <clamym/>
  23. <clamdg/>
  24. <instcmpymark/>
  25. <pid/>
  26. <patnm/>
  27. <ioflag/>
  28. <patrrgstno/>
  29. <acptdd/>
  30. <clamamt/>
  31. <uncoamt/>
  32. <interestamt/>
  33. <instcmpymarknm/>
  34. </datagrid1>
  35. <datagrid2>
  36. <clamym/>
  37. <clamdg/>
  38. <instcmpymark/>
  39. <pid/>
  40. <patnm/>
  41. <ioflag/>
  42. <patrrgstno/>
  43. <acptdd/>
  44. <clamamt/>
  45. <adjtamt/>
  46. <aprvamt/>
  47. <depoamt/>
  48. <uncoamt/>
  49. <interestamt/>
  50. <rem/>
  51. <instcmpymarknm/>
  52. </datagrid2>
  53. </list>
  54. <patinfo>
  55. <patinfolist/>
  56. </patinfo>
  57. </main>
  58. <init>
  59. <U0001list>
  60. <U0001>
  61. <cd/>
  62. <nm/>
  63. </U0001>
  64. </U0001list>
  65. <P0268list>
  66. <P0268>
  67. <cdid/>
  68. <cdnm/>
  69. </P0268>
  70. </P0268list>
  71. </init>
  72. <hidden>
  73. <sppmc02500>
  74. <cond>
  75. <srchcond/>
  76. <pid/>
  77. <hngnm/>
  78. <rrgstno1/>
  79. <rrgstno2/>
  80. <insukind/>
  81. </cond>
  82. </sppmc02500>
  83. </hidden>
  84. </root>
  85. </instance>
  86. <script type="javascript" ev:event="xforms-ready">
  87. <![CDATA[
  88. zbcfGetCodeList(new Array("P0268"), new Array("/root/init/P0268list"));
  89. model.setValue("/root/send/fromdd" , getCurrentDate().substr(0, 6));
  90. model.setValue("/root/send/todd" , getCurrentDate().substr(0, 6));
  91. // 기본값셋팅
  92. // cap_uncoamtyn.visible = false;
  93. // chk_uncoamtyn.visible = false;
  94. btn_rtndetl1.dispatch("DOMActivate");
  95. btn_rtndetl1.dispatch("onclick");
  96. // 손보사 코드 조회
  97. if(submit("TRPIF70305")){
  98. addComboItem("cmb_insucmpymark", "전체", "", "above");
  99. }
  100. // 진료과, 진료의조회
  101. submit("TRPID20309", false);
  102. model.removeNodeset("/root/main/list");
  103. model.refresh();
  104. ]]>
  105. </script>
  106. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  107. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ioflag" resultref="root/hidden/tmp"/>
  108. <!-- 손보사 리스트 조회 -->
  109. <submission id="TRPIF70305" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/U0001list"/>
  110. <!-- 미수현황 -->
  111. <submission id="TRPIF71501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  112. </model>
  113. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  118. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  119. <script type="javascript">
  120. <![CDATA[
  121. function fGetInAftJudgTrgtManList(){
  122. // 환자단위조회를 하는 경우
  123. var patunitsrch1 = model.getValue("/root/send/patunitsrch1").getTrim(); // (stringHelper.js) 문자열 앞뒤에 있는 공백 제거
  124. model.setValue("/root/send/patunitsrch1", patunitsrch1);
  125. if (patunitsrch1 == "") {
  126. model.setValue("/root/send/patunitsrch2", "");
  127. }
  128. else if (patunitsrch1.isNumber()) { // (numericHelper.js) 숫자가 입력된 경우 환자번호로 조회한다.
  129. /** [2007.03.23 jumi]
  130. Table Layout 상에는 pid가 VARCHAR(10) 이지만, 테스트용 data에서는 VARCHAR(8) 이므로 8자리로 구현함
  131. */
  132. // if (patunitsrch1.length < 8) {
  133. // model.setValue("/root/send/patunitsrch1", patunitsrch1.getLeftPad(8, "0")); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
  134. // }
  135. model.setValue("/root/send/patunitsrch2", "pidSrch");
  136. } else { // 문자가 입력된 경우 환자이름으로 조회한다.
  137. if (patunitsrch1.length > 1) {
  138. model.setValue("/root/send/patunitsrch2", "nmSrch");
  139. } else {
  140. model.setValue("/root/send/patunitsrch2", "");
  141. model.refresh();
  142. messageBox("환자단위조회시 검색할 환자이름은 2글자 이상", "C001"); ///환자단위조회시 검색할 환자이름은 2글자 이상 입력하십시오.
  143. return;
  144. }
  145. }
  146. }
  147. ]]>
  148. </script>
  149. </xhtml:head>
  150. <xhtml:body class="datagrid2" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  151. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  152. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:311px; height:14px; ">미수현황(자보)</caption>
  153. </group>
  154. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:737px; ">
  155. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:64px; vertical-align:top; ">
  156. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:64px; background-color:#fffbf2; border-color:#ffd799; "/>
  157. <button id="button1" class="btn1_letter2" style="left:1115px; top:23px; width:56px; height:22px; ">
  158. <caption>조회</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. // 조회구분
  162. model.setValue("/root/send/selectflag", switch1.selectedIndex);
  163. submit("TRPIF71501");
  164. // 청구월별 미수현황
  165. if (switch1.selectedIndex == 0) {
  166. datagrid1.subtotalposition= "below";
  167. datagrid1.subtotal("sum",-1, datagrid1.colRef("clamamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid1.colRef("patrrgstno"), "총합계", false);
  168. datagrid1.subtotal("sum",-1, datagrid1.colRef("uncoamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid1.colRef("patrrgstno"), "총합계", false);
  169. datagrid1.subtotal("sum",-1, datagrid1.colRef("interestamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid1.colRef("patrrgstno"), "총합계", false);
  170. }
  171. // 미납현황
  172. if (switch1.selectedIndex == 1) {
  173. datagrid2.subtotalposition= "below";
  174. datagrid2.subtotal("sum",-1, datagrid2.colRef("clamamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid2.colRef("patrrgstno"), "총합계", false);
  175. datagrid2.subtotal("sum",-1, datagrid2.colRef("adjtamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid2.colRef("patrrgstno"), "총합계", false);
  176. datagrid2.subtotal("sum",-1, datagrid2.colRef("aprvamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid2.colRef("patrrgstno"), "총합계", false);
  177. datagrid2.subtotal("sum",-1, datagrid2.colRef("depoamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid2.colRef("patrrgstno"), "총합계", false);
  178. datagrid2.subtotal("sum",-1, datagrid2.colRef("uncoamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid2.colRef("patrrgstno"), "총합계", false);
  179. datagrid2.subtotal("sum",-1, datagrid2.colRef("interestamt"),"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#f4f4f4; color:#0000ff; ", datagrid2.colRef("patrrgstno"), "총합계", false);
  180. }
  181. ]]>
  182. </script>
  183. </button>
  184. <line id="line13" class="line_4" style="x1:1095px; y1:22px; x2:1095px; y2:44px; "/>
  185. <caption id="caption3" style="left:226px; top:10px; width:15px; height:20px; ">~</caption>
  186. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" format="yyyy-mm" style="left:135px; top:9px; width:86px; height:19px; "/>
  187. <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" format="yyyy-mm" style="left:241px; top:9px; width:85px; height:19px; "/>
  188. <select1 id="radio1" ref="/root/send/ioflag" class="radio_search" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:431px; top:10px; width:145px; height:15px; border-style:none; ">
  189. <choices>
  190. <item>
  191. <label>전체</label>
  192. <value>A</value>
  193. </item>
  194. <item>
  195. <label>입원</label>
  196. <value>I</value>
  197. </item>
  198. <item>
  199. <label>외래</label>
  200. <value>O</value>
  201. </item>
  202. </choices>
  203. </select1>
  204. <caption id="caption7" class="search_name" style="left:341px; top:9px; width:86px; height:17px; ">내원 유형</caption>
  205. <caption id="caption8" class="search_name" style="left:341px; top:35px; width:88px; height:17px; ">손 보 사</caption>
  206. <select1 id="cmb_insucmpymark" ref="/root/send/certno" class="combo_search" appearance="minimal" style="left:435px; top:35px; width:166px; height:19px; ">
  207. <choices>
  208. <itemset nodeset="/root/init/U0001list/U0001">
  209. <label ref="nm"/>
  210. <value ref="cd"/>
  211. </itemset>
  212. </choices>
  213. </select1>
  214. <select1 id="rdo_endyn" ref="/root/send/endyn" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:705px; top:10px; width:149px; height:20px; border-style:none; ">
  215. <choices>
  216. <item>
  217. <label>전체</label>
  218. <value>A</value>
  219. </item>
  220. <item>
  221. <label>완료</label>
  222. <value>Y</value>
  223. </item>
  224. <item>
  225. <label>미완료</label>
  226. <value>N</value>
  227. </item>
  228. </choices>
  229. </select1>
  230. <caption id="caption11" class="search_name" style="left:612px; top:9px; width:116px; height:17px; ">종결 여부</caption>
  231. <caption id="cap_depodd" class="search_name" style="left:15px; top:9px; width:60px; height:17px; ">기간:</caption>
  232. <caption id="cap_uncoamt" class="search_name" style="left:613px; top:35px; width:84px; height:17px; ">미납금액</caption>
  233. <input id="ipt_uncoamt" ref="/root/send/uncoamt" class="input_search" navindex="20" imemode="alpha" maxlength="10" format="#,###" style="left:703px; top:35px; width:89px; height:19px; ">
  234. <hint>
  235. <![CDATA[끝번호]]>
  236. </hint>
  237. <script type="javascript" ev:event="onkeypress">
  238. <![CDATA[
  239. if (event.keyCode == "13") { // Enter 입력 시에
  240. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  241. fGetOutAftJudgTrgtManList("docuSrch");
  242. }
  243. ]]>
  244. </script>
  245. </input>
  246. <select1 id="rdo_srchflag" ref="/root/send/srchflag" appearance="full" cols="1" overflow="visible" style="left:73px; top:7px; width:60px; height:55px; border-style:none; ">
  247. <choices>
  248. <item>
  249. <label>청구월</label>
  250. <value>M</value>
  251. </item>
  252. <item>
  253. <label>청구일</label>
  254. <value>D</value>
  255. </item>
  256. <item>
  257. <label>심결일</label>
  258. <value>DD</value>
  259. </item>
  260. </choices>
  261. <script type="javascript" ev:event="xforms-value-changed">
  262. <![CDATA[
  263. if (rdo_srchflag.value == "M") {
  264. model.setValue(ipt_fromdd.attribute("ref"), ipt_fromdd.value.substring(0,6));
  265. model.setValue(ipt_todd.attribute("ref"), ipt_todd.value.substring(0,6));
  266. ipt_fromdd.attribute("format") = "yyyy-mm";
  267. ipt_todd.attribute("format") = "yyyy-mm";
  268. ipt_fromdd.refresh();
  269. ipt_todd.refresh();
  270. } else {
  271. ipt_fromdd.attribute("format") = "yyyy-mm-dd";
  272. ipt_todd.attribute("format") = "yyyy-mm-dd";
  273. ipt_fromdd.refresh();
  274. ipt_todd.refresh();
  275. }
  276. ]]>
  277. </script>
  278. </select1>
  279. </group>
  280. <switch id="switch1" class="sw_box" style="left:0px; top:104px; width:1194px; height:631px; ">
  281. <case id="case1" selected="true">
  282. <datagrid id="datagrid1" nodeset="/root/main/list/datagrid1" caption="청구월^청구차수^손보사^등록번호^수진자명^내원유형^주민번호^청구일자^청구금액^심결일^심결액^미수액^지연이자^사고번호^정산차수" colsep="^" colwidth="74, 74, 154, 90, 80, 60, 136, 80, 100, 80, 74, 100, 100, 120, 60" dataheight="25" defaultrows="2" ellipsis="true" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:4px; top:13px; width:1183px; height:613px; ">
  283. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  284. <col ref="clamdg" style="text-align:center; "/>
  285. <col disabled="true" ref="instcmpymark" type="combo" style="text-align:center; ">
  286. <choices>
  287. <itemset nodeset="/root/init/U0001list/U0001">
  288. <label ref="nm"/>
  289. <value ref="cd"/>
  290. </itemset>
  291. </choices>
  292. </col>
  293. <col ref="pid" style="text-align:center; "/>
  294. <col ref="patnm" style="text-align:center; "/>
  295. <col ref="ioflag" style="text-align:center; "/>
  296. <col ref="patrrgstno" style="text-align:center; "/>
  297. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  298. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  299. <col ref="notidd" format="yyyy-mm-dd" style="text-align:center; "/>
  300. <col ref="deciamt" format="#,###" style="text-align:right; "/>
  301. <col ref="uncoamt" format="#,###" style="text-align:right; "/>
  302. <col ref="interestamt" format="#,###" style="text-align:right; "/>
  303. <col ref="acdacptno" visibility="hidden"/>
  304. <col ref="dg" style="text-align:center; "/>
  305. </datagrid>
  306. </case>
  307. <case id="case2">
  308. <datagrid id="datagrid2" nodeset="/root/main/list/datagrid2" caption="청구월^차수^손보사^등록번호^수진자명^내원유형^주민번호^청구일자^심결일자^청구금액^심결액^조정금액^동의금액^입금액^미납금액^지연이자^비고^사고번호^정산차수" colsep="^" colwidth="72, 48, 146, 90, 64, 60, 114, 81, 80, 80, 81, 80, 80, 80, 80, 80, 150, 120, 56" dataheight="25" defaultrows="2" ellipsis="true" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:4px; top:13px; width:1183px; height:613px; ">
  309. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  310. <col ref="clamdg" style="text-align:center; "/>
  311. <col disabled="true" ref="instcmpymark" type="combo" style="text-align:center; ">
  312. <choices>
  313. <itemset nodeset="/root/init/U0001list/U0001">
  314. <label ref="nm"/>
  315. <value ref="cd"/>
  316. </itemset>
  317. </choices>
  318. </col>
  319. <col ref="pid" style="text-align:center; "/>
  320. <col ref="patnm" style="text-align:center; "/>
  321. <col ref="ioflag" style="text-align:center; "/>
  322. <col ref="patrrgstno" style="text-align:center; "/>
  323. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  324. <col ref="notidd" format="yyyy-mm-dd" style="text-align:center; "/>
  325. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  326. <col ref="deciamt" format="#,###" style="text-align:right; "/>
  327. <col ref="adjtamt" format="#,###" style="text-align:right; "/>
  328. <col ref="aprvamt" format="#,###" style="text-align:right; "/>
  329. <col ref="depoamt" format="#,###" style="text-align:right; "/>
  330. <col ref="uncoamt" format="#,###" style="text-align:right; "/>
  331. <col ref="interestamt" format="#,###" style="text-align:right; "/>
  332. <col ref="rem" style="text-align:left; "/>
  333. <col ref="acdacptno" visibility="hidden"/>
  334. <col ref="dg" style="text-align:center; "/>
  335. </datagrid>
  336. </case>
  337. </switch>
  338. <button id="btn_rtndetl1" class="btn_sw" group="tab" selected="true" style="left:0px; top:83px; width:137px; height:22px; ">
  339. <caption>청구월별 미수현황</caption>
  340. <toggle case="case1" ev:event="onclick"/>
  341. <script type="javascript" ev:event="DOMActivate">
  342. <![CDATA[
  343. cap_uncoamt.visible = false;
  344. ipt_uncoamt.visible = false;
  345. ]]>
  346. </script>
  347. </button>
  348. <button id="btn_rtndetl2" class="btn_sw" group="tab" style="left:137px; top:83px; width:137px; height:22px; ">
  349. <caption>자보 미완납현황</caption>
  350. <toggle case="case2" ev:event="onclick"/>
  351. <script type="javascript" ev:event="DOMActivate">
  352. <![CDATA[
  353. cap_uncoamt.visible = true;
  354. ipt_uncoamt.visible = true;
  355. ]]>
  356. </script>
  357. </button>
  358. <button id="button93" class="btn6_letter2" style="left:1138px; top:80px; width:56px; height:22px; ">
  359. <caption>출력</caption>
  360. <script type="javascript" ev:event="onclick">
  361. <![CDATA[
  362. window.print();
  363. ]]>
  364. </script>
  365. </button>
  366. <button id="button12" class="btn2_letter4" style="left:1070px; top:82px; width:64px; height:19px; ">
  367. <caption>액셀저장</caption>
  368. <script type="javascript" ev:event="onclick">
  369. <![CDATA[
  370. if(btn_rtndetl1.selected == true){
  371. var fileName = window.fileDialog("save", ",", false, '청구월별 미수현황', "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  372. if (fileName != "") {
  373. datagrid1.saveExcel(fileName, "SheetName", true, true, "", "", "");
  374. }
  375. }else if(btn_rtndetl2.selected == true){
  376. var fileName = window.fileDialog("save", ",", false, '자보 미납현황', "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  377. if (fileName != "") {
  378. datagrid2.saveExcel(fileName, "SheetName", true, true, "", "", "");
  379. }
  380. }
  381. ]]>
  382. </script>
  383. </button>
  384. <button id="button2" class="btn2_letter2" style="left:1025px; top:82px; width:35px; height:15px; ">
  385. <caption>출력</caption>
  386. <script type="javascript" ev:event="DOMActivate">
  387. <![CDATA[
  388. if(btn_rtndetl1.selected == true) {
  389. exeReportPreview("RPPIF71500", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  390. }else if(btn_rtndetl2.selected == true) {
  391. exeReportPreview("RPPIF71510", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  392. }
  393. ]]>
  394. </script>
  395. </button>
  396. </group>
  397. <group id="group1" scroll="auto" style="left:0px; top:752px; width:1195px; height:28px; ">
  398. <button id="button45" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  399. <caption>닫기</caption>
  400. <script type="javascript" ev:event="onclick">
  401. <![CDATA[
  402. window.close();
  403. ]]>
  404. </script>
  405. </button>
  406. </group>
  407. </xhtml:body>
  408. </xhtml:html>