SMPAM00500_미수발생종결관리.xrw 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>임상 연구 검사비 미수 청구 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <ptlist>
  11. <ptinfo>
  12. <errflag/>
  13. <uncosumamt/>
  14. <rcptsumamt/>
  15. <remnamt/>
  16. <pid/>
  17. <hngnm/>
  18. <ordtype/>
  19. <orddd/>
  20. <cretno/>
  21. <dschdd/>
  22. <orddeptcd/>
  23. <orddeptnm/>
  24. <orddrid/>
  25. <insukind/>
  26. <insukindnm/>
  27. <suppkind/>
  28. <suppkindnm/>
  29. <uncocd/>
  30. <unconm/>
  31. <uncorcptflag/>
  32. <uncoamt/>
  33. <rcptamt/>
  34. <debtamt/>
  35. <endyn/>
  36. <rcptdd/>
  37. <rcptno/>
  38. <rcptseqno/>
  39. <seqno/>
  40. <rcptstat/>
  41. <rcptexecdd/>
  42. </ptinfo>
  43. </ptlist>
  44. <uncolist>
  45. <uncoinfo>
  46. <pid/>
  47. <hngnm/>
  48. <ordtype/>
  49. <orddd/>
  50. <cretno/>
  51. <dschdd/>
  52. <orddeptcd/>
  53. <orddeptnm/>
  54. <orddrid/>
  55. <insukind/>
  56. <insukindnm/>
  57. <suppkind/>
  58. <suppkindnm/>
  59. <uncocd/>
  60. <unconm/>
  61. <uncorcptflag/>
  62. <uncoamt/>
  63. <rcptamt/>
  64. <debtamt/>
  65. <endyn/>
  66. <rcptdd/>
  67. <rcptno/>
  68. <rcptseqno/>
  69. <seqno/>
  70. <rcptexecdd/>
  71. <rcptstat/>
  72. <remfact/>
  73. </uncoinfo>
  74. </uncolist>
  75. </main>
  76. <send>
  77. <fromdd/>
  78. <todd/>
  79. <totalflag/>
  80. <rcptflag/>
  81. <pid/>
  82. <orddd/>
  83. <cretno/>
  84. <dschdd/>
  85. <uncocd/>
  86. <unco/>
  87. </send>
  88. <init/>
  89. <hidden>
  90. <uncoamt>0</uncoamt>
  91. <rcptamt>0</rcptamt>
  92. <remnamt>0</remnamt>
  93. </hidden>
  94. </root>
  95. </instance>
  96. <submission id="TRPAM00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ptlist/ptinfo"/>
  97. <submission id="TRPAM00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/uncolist/uncoinfo"/>
  98. <submission id="TXPAM00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  99. </model>
  100. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  103. <script type="javascript">
  104. <![CDATA[
  105. function fGetUncoList(isNew) {
  106. if (isNew) {
  107. if (!grd_err.isCell(event.target)) {
  108. return;
  109. }
  110. if (grd_err.row < grd_err.fixedRows) {
  111. return;
  112. }
  113. var row = grd_err.row;
  114. model.setValue("/root/send/pid", model.getValue("/root/main/ptlist/ptinfo[" + row + "]/pid"));
  115. model.setValue("/root/send/orddd", model.getValue("/root/main/ptlist/ptinfo[" + row + "]/orddd"));
  116. model.setValue("/root/send/cretno", model.getValue("/root/main/ptlist/ptinfo[" + row + "]/cretno"));
  117. model.setValue("/root/send/dschdd", model.getValue("/root/main/ptlist/ptinfo[" + row + "]/dschdd"));
  118. model.setValue("/root/send/uncocd", model.getValue("/root/main/ptlist/ptinfo[" + row + "]/uncocd"));
  119. }
  120. grd_unco.rebuildStyle();
  121. submit("TRPAM00502");
  122. var cnt = instance1.selectNodes("/root/main/uncolist/uncoinfo").length;
  123. if (cnt > 0) {
  124. var selKey = model.getValue("/root/send/pid")
  125. + model.getValue("/root/send/orddd")
  126. + model.getValue("/root/send/cretno")
  127. + model.getValue("/root/send/uncocd");
  128. var prevKey = model.getValue("/root/main/uncolist/uncoinfo/pid")
  129. + model.getValue("/root/main/uncolist/uncoinfo/orddd")
  130. + model.getValue("/root/main/uncolist/uncoinfo/cretno")
  131. + model.getValue("/root/main/uncolist/uncoinfo/uncocd");
  132. var color = "white";
  133. for (var i = 1; i <= cnt; i++) {
  134. var currKey = model.getValue("/root/main/uncolist/uncoinfo[" + i + "]/pid")
  135. + model.getValue("/root/main/uncolist/uncoinfo[" + i + "]/orddd")
  136. + model.getValue("/root/main/uncolist/uncoinfo[" + i + "]/cretno")
  137. + model.getValue("/root/main/uncolist/uncoinfo[" + i + "]/uncocd");
  138. if (currKey != prevKey) {
  139. color = color == "white" ? "#ebebeb" : "white";
  140. prevKey = currKey;
  141. }
  142. if (currKey == selKey) {
  143. color = "#ffffa0";
  144. }
  145. grd_unco.rowStyle(i, "all", "background-color") = color;
  146. if (currKey == selKey) {
  147. grd_unco.cellStyle("border-color", i, grd_unco.colRef("dschdd")) = "#ff0000";
  148. grd_unco.cellStyle("border-width", i, grd_unco.colRef("dschdd")) = "2px";
  149. grd_unco.cellStyle("border-style", i, grd_unco.colRef("dschdd")) = "solid";
  150. grd_unco.cellStyle("border-color", i, grd_unco.colRef("endyn")) = "#ff0000";
  151. grd_unco.cellStyle("border-width", i, grd_unco.colRef("endyn")) = "2px";
  152. grd_unco.cellStyle("border-style", i, grd_unco.colRef("endyn")) = "solid";
  153. grd_unco.cellStyle("border-color", i, grd_unco.colRef("uncoamt")) = "#ff0000";
  154. grd_unco.cellStyle("border-width", i, grd_unco.colRef("uncoamt")) = "2px";
  155. grd_unco.cellStyle("border-style", i, grd_unco.colRef("uncoamt")) = "solid";
  156. grd_unco.cellStyle("border-color", i, grd_unco.colRef("rcptamt")) = "#ff0000";
  157. grd_unco.cellStyle("border-width", i, grd_unco.colRef("rcptamt")) = "2px";
  158. grd_unco.cellStyle("border-style", i, grd_unco.colRef("rcptamt")) = "solid";
  159. grd_unco.cellStyle("border-color", i, grd_unco.colRef("debtamt")) = "#ff0000";
  160. grd_unco.cellStyle("border-width", i, grd_unco.colRef("debtamt")) = "2px";
  161. grd_unco.cellStyle("border-style", i, grd_unco.colRef("debtamt")) = "solid";
  162. grd_unco.cellStyle("border-color", i, grd_unco.colRef("rcptstat")) = "#ff0000";
  163. grd_unco.cellStyle("border-width", i, grd_unco.colRef("rcptstat")) = "2px";
  164. grd_unco.cellStyle("border-style", i, grd_unco.colRef("rcptstat")) = "solid";
  165. }
  166. }
  167. }
  168. }
  169. function fSetUncoAmt() {
  170. var uncoamt = 0;
  171. var rcptamt = 0;
  172. var selKey = model.getValue("/root/send/pid")
  173. + model.getValue("/root/send/orddd")
  174. + model.getValue("/root/send/cretno")
  175. + model.getValue("/root/send/uncocd");
  176. var cnt = instance1.selectNodes("/root/main/uncolist/uncoinfo").length;
  177. for (var i = 1; i <= cnt; i++) {
  178. var currKey = model.getValue("/root/main/uncolist/uncoinfo[" + i + "]/pid")
  179. + model.getValue("/root/main/uncolist/uncoinfo[" + i + "]/orddd")
  180. + model.getValue("/root/main/uncolist/uncoinfo[" + i + "]/cretno")
  181. + model.getValue("/root/main/uncolist/uncoinfo[" + i + "]/uncocd");
  182. if (selKey != currKey) {
  183. continue;
  184. }
  185. uncoamt += parseInt(model.getValue("/root/main/uncolist/uncoinfo[" + i + "]/uncoamt"));
  186. rcptamt += parseInt(model.getValue("/root/main/uncolist/uncoinfo[" + i + "]/rcptamt"));
  187. rcptamt += parseInt(model.getValue("/root/main/uncolist/uncoinfo[" + i + "]/debtamt"));
  188. }
  189. var remnamt = uncoamt - rcptamt;
  190. model.setValue("/root/hidden/uncoamt", uncoamt);
  191. model.setValue("/root/hidden/rcptamt", rcptamt);
  192. model.setValue("/root/hidden/remnamt", remnamt);
  193. cap_uncoamt.refresh();
  194. cap_rcptamt.refresh();
  195. cap_remnamt.refresh();
  196. }
  197. ]]>
  198. </script>
  199. <script type="javascript" ev:event="xforms-ready">
  200. <![CDATA[
  201. model.setValue("/root/send/fromdd", "19000101");
  202. model.setValue("/root/send/todd", getCurrentDate());
  203. ipt_fromdd.refresh();
  204. ipt_todd.refresh();
  205. ]]>
  206. </script>
  207. </xhtml:head>
  208. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  209. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:41px; background-color:#fffbf2; border-color:#ffd799; "/>
  210. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:1130px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  211. <caption>조회</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. model.setValue("/root/hidden/uncoamt", "0");
  215. model.setValue("/root/hidden/rcptamt", "0");
  216. model.setValue("/root/hidden/remnamt", "0");
  217. cap_uncoamt.refresh();
  218. cap_rcptamt.refresh();
  219. cap_remnamt.refresh();
  220. submit("TRPAM00501");
  221. model.resetInstanceNode("/root/main/uncolist/uncoinfo");
  222. grd_unco.refresh();
  223. grd_unco.rebuildStyle();
  224. ]]>
  225. </script>
  226. </button>
  227. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:160px; height:13px; font-family:돋움; vertical-align:middle; ">미수 발생 및 종결 관리</caption>
  228. <caption id="caption1" class="search_name" style="left:5px; top:32px; width:95px; height:17px; ">수납 기간 :</caption>
  229. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="0" inputtype="date" style="left:101px; top:31px; width:90px; height:19px; "/>
  230. <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="2" inputtype="date" style="left:206px; top:31px; width:90px; height:19px; "/>
  231. <caption id="caption4" style="left:191px; top:35px; width:15px; height:15px; text-align:center; ">~</caption>
  232. <line id="line13" style="x1:1118px; y1:28px; x2:1118px; y2:55px; border-color:#FFD799; border-left-style:solid; "/>
  233. <caption id="caption2" class="tit_2" style="left:0px; top:70px; width:185px; height:14px; ">미수 발생 및 종결 오류 내역</caption>
  234. <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1195px; y2:85px; "/>
  235. <datagrid id="grd_err" nodeset="/root/main/ptlist/ptinfo" allowselection="false" backcoloralternate="#ffffff" caption="오류^미수합계^수납합계^미수잔액^등록번호^환자명^진료형태^진료일^생성번호^퇴원일^진료과코드^진료과^진료의^주유형코드^주유형^보조유형코드^보조유형^미수코드^미수명^정산구분^미수금액^수납금액^대손금액^종결여부^수납일^영수증번호^영수증일련번호^영수증번호별일련번호^수납상태^수납일" colsep="^" colwidth="40, 90, 90, 90, 60, 60, 60, 80, 0, 80, 0, 120, 0, 0, 80, 0, 90, 0, 140, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:0px; top:90px; width:1195px; height:390px; text-align:center; ">
  236. <col disabled="true" ref="errflag" type="combo" style="text-align:center; ">
  237. <choices>
  238. <item>
  239. <label>종결</label>
  240. <value>E</value>
  241. </item>
  242. <item>
  243. <label>미결</label>
  244. <value>P</value>
  245. </item>
  246. </choices>
  247. </col>
  248. <col ref="uncosumamt" format="(-)#,###" style="font-weight:bold; color:red; text-align:right; padding-right:2; "/>
  249. <col ref="rcptsumamt" format="(-)#,###" style="font-weight:bold; color:blue; text-align:right; padding-right:2; "/>
  250. <col ref="remnamt" format="(-)#,###" style="font-weight:bold; color:purple; text-align:right; padding-right:2; "/>
  251. <col ref="pid" style="text-align:center; "/>
  252. <col ref="hngnm" style="text-align:center; "/>
  253. <col disabled="true" ref="ordtype" type="combo" style="text-align:center; ">
  254. <choices>
  255. <item>
  256. <label>외래</label>
  257. <value>O</value>
  258. </item>
  259. <item>
  260. <label>입원</label>
  261. <value>I</value>
  262. </item>
  263. <item>
  264. <label>응급</label>
  265. <value>E</value>
  266. </item>
  267. </choices>
  268. </col>
  269. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  270. <col ref="cretno"/>
  271. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  272. <col ref="orddeptcd"/>
  273. <col ref="orddeptnm" style="text-align:center; "/>
  274. <col ref="orddrid"/>
  275. <col ref="insukind"/>
  276. <col ref="insukindnm" style="text-align:center; "/>
  277. <col ref="suppkind"/>
  278. <col ref="suppkindnm" style="text-align:center; "/>
  279. <col ref="uncocd"/>
  280. <col ref="unconm" style="text-align:center; "/>
  281. <col ref="uncorcptflag"/>
  282. <col ref="uncoamt"/>
  283. <col ref="rcptamt"/>
  284. <col ref="debtamt"/>
  285. <col disabled="true" ref="endyn" type="combo" style="text-align:center; ">
  286. <choices>
  287. <item>
  288. <label>종결</label>
  289. <value>Y</value>
  290. </item>
  291. <item>
  292. <label>미결</label>
  293. <value>N</value>
  294. </item>
  295. </choices>
  296. </col>
  297. <col ref="rcptdd"/>
  298. <col ref="rcptno"/>
  299. <col ref="rcptseqno"/>
  300. <col ref="seqno"/>
  301. <col ref="rcptstat"/>
  302. <col ref="rcptexecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  303. <script type="javascript" ev:event="ondblclick">
  304. <![CDATA[
  305. if (!grd_err.isCell(event.target)) {
  306. return;
  307. }
  308. model.setValue("/root/send/totalflag", "");
  309. model.setValue("/root/send/rcptflag", "");
  310. var row = grd_err.row;
  311. model.setValue("/root/hidden/uncoamt", model.getValue("/root/main/ptlist/ptinfo[" + row + "]/uncosumamt"));
  312. model.setValue("/root/hidden/rcptamt", model.getValue("/root/main/ptlist/ptinfo[" + row + "]/rcptsumamt"));
  313. model.setValue("/root/hidden/remnamt", model.getValue("/root/main/ptlist/ptinfo[" + row + "]/remnamt"));
  314. cap_uncoamt.refresh();
  315. cap_rcptamt.refresh();
  316. cap_remnamt.refresh();
  317. chk_totalflag.refresh();
  318. chk_rcptflag.refresh();
  319. fGetUncoList(true);
  320. ]]>
  321. </script>
  322. </datagrid>
  323. <caption id="caption3" class="tit_2" style="left:0px; top:490px; width:118px; height:14px; ">환자별 미수 내역</caption>
  324. <line id="line2" class="line_1" style="x1:0px; y1:505px; x2:1195px; y2:505px; "/>
  325. <datagrid id="grd_unco" nodeset="/root/main/uncolist/uncoinfo" caption="등록번호^환자명^진료형태^진료일^생성번호^퇴원일^진료과코드^진료과^진료의^주유형코드^주유형^보조유형코드^보조유형^미수코드^미수명^정산구분^미수금액^수납금액^대손금액^종결여부^수납상태^RCPTDD^RCPTNO^R.SEQNO^SEQNO^수납일^비고" colsep="^" colwidth="60, 60, 60, 80, 60, 100, 0, 120, 0, 0, 0, 0, 0, 60, 140, 60, 80, 80, 80, 60, 60, 80, 60, 60, 60, 80, 200" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="free" style="left:0px; top:510px; width:1195px; height:230px; text-align:center; ">
  326. <col ref="pid" style="text-align:center; "/>
  327. <col ref="hngnm" style="text-align:center; "/>
  328. <col disabled="true" ref="ordtype" type="combo" style="text-align:center; ">
  329. <choices>
  330. <item>
  331. <label>외래</label>
  332. <value>O</value>
  333. </item>
  334. <item>
  335. <label>입원</label>
  336. <value>I</value>
  337. </item>
  338. <item>
  339. <label>응급</label>
  340. <value>E</value>
  341. </item>
  342. </choices>
  343. </col>
  344. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  345. <col ref="cretno" style="text-align:center; "/>
  346. <col ref="dschdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  347. <col ref="orddeptcd"/>
  348. <col ref="orddeptnm" style="text-align:center; "/>
  349. <col ref="orddrid"/>
  350. <col ref="insukind"/>
  351. <col ref="insukindnm" style="text-align:center; "/>
  352. <col ref="suppkind"/>
  353. <col ref="suppkindnm" style="text-align:center; "/>
  354. <col ref="uncocd" style="text-align:center; "/>
  355. <col ref="unconm" style="text-align:center; "/>
  356. <col disabled="true" ref="uncorcptflag" type="combo" style="text-align:center; ">
  357. <choices>
  358. <item>
  359. <label>발생</label>
  360. <value>1</value>
  361. </item>
  362. <item>
  363. <label>입금</label>
  364. <value>2</value>
  365. </item>
  366. </choices>
  367. </col>
  368. <col ref="uncoamt" type="input" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  369. <col ref="rcptamt" type="input" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  370. <col ref="debtamt" type="input" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  371. <col ref="endyn" type="combo" style="text-align:center; ">
  372. <choices>
  373. <item>
  374. <label>종결</label>
  375. <value>Y</value>
  376. </item>
  377. <item>
  378. <label>미결</label>
  379. <value>N</value>
  380. </item>
  381. </choices>
  382. </col>
  383. <col ref="rcptstat" type="combo" style="text-align:center; ">
  384. <choices>
  385. <item>
  386. <label>C</label>
  387. <value>C</value>
  388. </item>
  389. <item>
  390. <label>D</label>
  391. <value>D</value>
  392. </item>
  393. <item>
  394. <label>Y</label>
  395. <value>Y</value>
  396. </item>
  397. </choices>
  398. </col>
  399. <col ref="rcptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  400. <col ref="rcptno" style="text-align:center; "/>
  401. <col ref="rcptseqno" style="text-align:center; "/>
  402. <col ref="seqno" style="text-align:center; "/>
  403. <col ref="rcptexecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  404. <col ref="remfact" style="text-align:left; "/>
  405. <script type="javascript" ev:event="onclick">
  406. <![CDATA[
  407. if (!grd_unco.isCell(event.target)) {
  408. return;
  409. }
  410. if (grd_unco.row > 0 && grd_unco.colAttribute(grd_unco.col, "type") == "input") {
  411. grd_unco.editCell();
  412. }
  413. ]]>
  414. </script>
  415. <script type="javascript" ev:event="xforms-value-changed">
  416. <![CDATA[
  417. grd_unco.cellStyle("font-weight", grd_unco.row, grd_unco.col) = "bold";
  418. grd_unco.cellStyle("background-color", grd_unco.row, grd_unco.col) = "#ffb4b4";
  419. fSetUncoAmt();
  420. ]]>
  421. </script>
  422. </datagrid>
  423. <select id="chk_totalflag" ref="/root/send/totalflag" overflow="visible" appearance="full" style="left:140px; top:488px; width:130px; height:15px; border-style:none; ">
  424. <choices>
  425. <item>
  426. <label>미수 내역 전체 조회</label>
  427. <value>Y</value>
  428. </item>
  429. </choices>
  430. <script type="javascript" ev:event="xforms-value-changed">
  431. <![CDATA[
  432. if (model.getValue("/root/send/pid") != "") {
  433. fGetUncoList(false);
  434. fSetUncoAmt();
  435. }
  436. ]]>
  437. </script>
  438. </select>
  439. <select id="chk_rcptflag" ref="/root/send/rcptflag" overflow="visible" appearance="full" style="left:280px; top:488px; width:115px; height:15px; border-style:none; ">
  440. <choices>
  441. <item>
  442. <label>수납 취소건 포함</label>
  443. <value>Y</value>
  444. </item>
  445. </choices>
  446. <script type="javascript" ev:event="xforms-value-changed">
  447. <![CDATA[
  448. if (model.getValue("/root/send/pid") != "") {
  449. fGetUncoList(false);
  450. fSetUncoAmt();
  451. }
  452. ]]>
  453. </script>
  454. </select>
  455. <caption id="caption5" style="left:310px; top:31px; width:415px; height:20px; ">※ 발생 및 종결 기준 : [ 등록번호 ] [ 진료일 ] [ 생성번호 ] [ 미수코드 ]</caption>
  456. <button id="btn_xls1" class="btn2_letter2" style="left:1153px; top:65px; width:42px; height:19px; ">
  457. <caption>엑셀</caption>
  458. <script type="javascript" ev:event="DOMActivate">
  459. <![CDATA[
  460. var day = model.getValue("/root/send/fromdd") + "-" + model.getValue("/root/send/todd");
  461. var filename = window.fileDialog("save", ",", false, "미수 발생 및 종결 오류 내역_" + day, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  462. grd_err.saveExcel(filename, "sheetname:오류내역;colhiddenextend:false;rowhiddenextend:false");
  463. messageBox("엑셀 저장이 완료되었습니다.", "I999");
  464. ]]>
  465. </script>
  466. </button>
  467. <button id="btn_xls2" class="btn2_letter2" style="left:1153px; top:485px; width:42px; height:19px; ">
  468. <caption>엑셀</caption>
  469. <script type="javascript" ev:event="DOMActivate">
  470. <![CDATA[
  471. var info = model.getValue("/root/send/pid");
  472. var filename = window.fileDialog("save", ",", false, "환자별 미수 내역_" + info, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  473. grd_unco.saveExcel(filename, "sheetname:미수내역;colhiddenextend:false;rowhiddenextend:false");
  474. messageBox("엑셀 저장이 완료되었습니다.", "I999");
  475. ]]>
  476. </script>
  477. </button>
  478. <button id="btn_save" class="btn4_letter6" style="left:1092px; top:743px; width:104px; height:22px; ">
  479. <caption>수정내역저장</caption>
  480. <script type="javascript" ev:event="DOMActivate">
  481. <![CDATA[
  482. var rows = grd_unco.rows;
  483. var cnt = 0;
  484. for (var i = 1; i < rows; i++) {
  485. if (grd_unco.rowStatus(i) == 2) {
  486. cnt++;
  487. }
  488. }
  489. if (cnt < 1) {
  490. messageBox("수정된 내역이 없습니다.", "E999");
  491. return;
  492. } else if (messageBox("[ " + cnt + " ] 개의 미수 데이터를 수정하시겠습니까?", "Q999") != 6) {
  493. return;
  494. }
  495. var str = grd_unco.getUpdateData("update");
  496. model.setValue("/root/send/unco", str);
  497. submit("TXPAM00301");
  498. model.setValue("/root/send/totalflag", "");
  499. model.setValue("/root/send/rcptflag", "");
  500. chk_totalflag.refresh();
  501. chk_rcptflag.refresh();
  502. fGetUncoList(false);
  503. fSetUncoAmt();
  504. ]]>
  505. </script>
  506. </button>
  507. <caption id="caption6" style="left:745px; top:483px; width:35px; height:20px; vertical-align:middle; padding-top:1; ">발생 :</caption>
  508. <caption id="cap_uncoamt" ref="/root/hidden/uncoamt" format="(-)#,###" style="left:781px; top:483px; width:80px; height:20px; font-weight:bold; color:red; text-align:right; padding-right:2; border-color:#808080; border-style:solid; ">0</caption>
  509. <caption id="cap_rcptamt" ref="/root/hidden/rcptamt" format="(-)#,###" style="left:910px; top:483px; width:80px; height:20px; font-weight:bold; color:blue; text-align:right; padding-right:2; border-color:#808080; border-style:solid; ">0</caption>
  510. <caption id="caption8" style="left:874px; top:483px; width:35px; height:20px; vertical-align:middle; padding-top:1; ">수납 :</caption>
  511. <caption id="cap_remnamt" ref="/root/hidden/remnamt" format="(-)#,###" style="left:1040px; top:483px; width:80px; height:20px; font-weight:bold; color:purple; text-align:right; padding-right:2; border-color:#808080; border-style:solid; ">0</caption>
  512. <caption id="caption10" style="left:1004px; top:483px; width:35px; height:20px; vertical-align:middle; padding-top:1; ">잔액 :</caption>
  513. <caption id="caption7" visibility="hidden" style="left:542px; top:744px; width:538px; height:20px; color:#646464; ">환자별 수정 내역은 수정 후 바로 갱신되지만, 미수 발생 및 종결 오류 내역은 재조회 후 갱신됩니다.</caption>
  514. </xhtml:body>
  515. </xhtml:html>