SMPAS00100_미수금현황.xrw 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. <?xml version="1.0" encoding="UTF-16"?>
  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. <main>
  10. <outreceivamtlist>
  11. <receivamtstats>
  12. <uncocd/>
  13. <discunconm/>
  14. <uncocnt/>
  15. <uncoamt/>
  16. </receivamtstats>
  17. </outreceivamtlist>
  18. <inreceivamtlist>
  19. <receivamtstats>
  20. <uncocd/>
  21. <discunconm/>
  22. <uncocnt/>
  23. <uncoamt/>
  24. </receivamtstats>
  25. </inreceivamtlist>
  26. <outsearch>
  27. <fromdd/>
  28. <todd/>
  29. <ordtype>O</ordtype>
  30. <creatflag>C</creatflag>
  31. <clinicgubun>A</clinicgubun>
  32. <uncocd/>
  33. <restyn>Y</restyn>
  34. <mainrestyn>Y</mainrestyn>
  35. </outsearch>
  36. <insearch>
  37. <fromdd/>
  38. <todd/>
  39. <ordtype>%</ordtype>
  40. <creatflag>C</creatflag>
  41. <uncocd/>
  42. <restyn>Y</restyn>
  43. <mainrestyn>Y</mainrestyn>
  44. </insearch>
  45. <outreceivamtsumlist>
  46. <receivamtsumstats>
  47. <uncocd>합계</uncocd>
  48. <discunconm/>
  49. <uncocnt/>
  50. <uncoamt/>
  51. </receivamtsumstats>
  52. </outreceivamtsumlist>
  53. <inreceivamtsumlist>
  54. <receivamtsumstats>
  55. <uncocd>합계</uncocd>
  56. <discunconm/>
  57. <uncocnt/>
  58. <uncoamt/>
  59. </receivamtsumstats>
  60. </inreceivamtsumlist>
  61. <tmpinfo>
  62. <info>
  63. <user/>
  64. </info>
  65. </tmpinfo>
  66. <outpsnuncoinfo>
  67. <psnuncolist>
  68. <uncocd/>
  69. <pid/>
  70. <hngnm/>
  71. <deptnm/>
  72. <orddd/>
  73. <rcptdd/>
  74. <uncoamt/>
  75. <restamt/>
  76. <rcptamt/>
  77. <discunconm/>
  78. <orddrnm/>
  79. <churchnm/>
  80. <clincstdyno/>
  81. <rcptexecdd/>
  82. <usernm/>
  83. </psnuncolist>
  84. </outpsnuncoinfo>
  85. <inpsnuncoinfo>
  86. <psnuncolist>
  87. <pid/>
  88. <hngnm/>
  89. <deptnm/>
  90. <rcptdd/>
  91. <uncoamt/>
  92. <rcptamt/>
  93. <rcptexecdd/>
  94. <restamt/>
  95. <usernm/>
  96. <uncocd/>
  97. <discunconm/>
  98. <orddrnm/>
  99. </psnuncolist>
  100. </inpsnuncoinfo>
  101. <sprcpuncospec>
  102. <sprcpunco/>
  103. </sprcpuncospec>
  104. </main>
  105. <send>
  106. <fromdd/>
  107. <todd/>
  108. <datagubun/>
  109. <erdata/>
  110. <dcgubun/>
  111. <uncocd/>
  112. <newElement/>
  113. <data>
  114. <sorddd/>
  115. <stodd/>
  116. <suncocd/>
  117. </data>
  118. </send>
  119. </root>
  120. </instance>
  121. <script type="javascript" ev:event="xforms-model-construct-done">
  122. <![CDATA[
  123. //submit("TRPAS00001");
  124. var vToday = new Date();
  125. var tmpYear = vToday.getYear();
  126. var tmpMonth = vToday.getMonth()+1;
  127. var tmpDate = vToday.getDate();
  128. if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
  129. if (tmpDate < 10) { tmpDate = "0"+tmpDate; }
  130. model.setValue("/root/main/outsearch/fromdd" , tmpYear+""+tmpMonth+""+tmpDate);
  131. model.setValue("/root/main/outsearch/todd" , tmpYear+""+tmpMonth+""+tmpDate);
  132. model.setValue("/root/main/insearch/fromdd" , tmpYear+""+tmpMonth+""+tmpDate);
  133. model.setValue("/root/main/insearch/todd" , tmpYear+""+tmpMonth+""+tmpDate);
  134. //Rexport에 출력날자를 보여주기위한 데이터 저장
  135. model.makeNode("/root/main/tmp/print/date");
  136. model.copyNode("/root/main/tmp/print/date", "/root/main/outsearch/fromdd");
  137. model.setValue("/root/main/tmp/print/date", model.getValue("/root/main/outsearch/fromdd"));
  138. model.setValue("/root/send/data/sorddd", getCurrentDate());
  139. model.setValue("/root/send/data/stodd", getCurrentDate());
  140. input7.refresh();
  141. input1.refresh();
  142. input4.refresh();
  143. input5.refresh();
  144. input2.refresh();
  145. input3.refresh();
  146. grd_outunco.explorerbar = "sort";
  147. grd_outuncolist.explorerbar = "sort";
  148. grd_inunco.explorerbar = "sort";
  149. grd_inuncolist.explorerbar = "sort";
  150. ]]>
  151. </script>
  152. <bind id="bind1" ref="/root/main/outreceivamtlist/receivamtstats" calculate="now() + ."/>
  153. <bind id="bind2" ref="/root/main/outreceivamtsumlist/receivamtsumstats/uncocnt" calculate="sum(/root/main/outreceivamtlist/receivamtstats/uncocnt);"/>
  154. <bind id="bind3" ref="/root/main/outreceivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/outreceivamtlist/receivamtstats/uncoamt);"/>
  155. <bind id="bind4" ref="/root/main/inreceivamtlist/receivamtstats" calculate="now() + ."/>
  156. <bind id="bind5" ref="/root/main/inreceivamtsumlist/receivamtsumstats/uncocnt" calculate="sum(/root/main/inreceivamtlist/receivamtstats/uncocnt);"/>
  157. <bind id="bind6" ref="/root/main/inreceivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/inreceivamtlist/receivamtstats/uncoamt);"/>
  158. <submission id="TRPAS00001" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/tmpinfo/info/user"/>
  159. <submission id="TRPAS00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/outsearch" replace="instance" resultref="/root/main/data1"/>
  160. <submission id="TRPAS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/insearch" replace="instance" resultref="/root/main/data1"/>
  161. <submission id="TRPAS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/outsearch" replace="instance" resultref="/root/main/data1"/>
  162. <submission id="TRPAS00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/insearch" replace="instance" resultref="/root/main/data1"/>
  163. <submission id="TRPAS00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/sprcpuncospec"/>
  164. </model>
  165. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  166. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  167. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  168. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  169. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  170. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  171. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  172. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  173. </xhtml:head>
  174. <xhtml:body pagewidth="1211" pageheight="784">
  175. <group id="group2" style="left:0px; top:23px; width:1205px; height:37px; ">
  176. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:0px; width:590px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  177. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:605px; top:0px; width:595px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  178. <caption id="caption2" class="search_name" style="left:125px; top:10px; width:200px; height:17px; ">기간</caption>
  179. <button id="btn_search" class="btn1_letter2" style="left:535px; top:8px; width:56px; height:22px; ">
  180. <caption>조회</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. var fromdd = model.getValue("/root/main/outsearch/fromdd");
  184. var todd = model.getValue("/root/main/outsearch/todd");
  185. if ( fromdd > todd ) {
  186. messageBox("시작일이 종료일 보다 클수 ", "C001")
  187. return;
  188. } else {
  189. model.removeNodeset("/root/main/outreceivamtlist/receivamtstats");
  190. model.resetInstanceNode("/root/main/outpsnuncoinfo/psnuncolist");
  191. submit("TRPAS00100");
  192. copyNodesetType("/root/main/outreceivamtlist/receivamtstats","/root/main/outreceivamtsumlist/receivamtsumstats","after");
  193. grd_outunco.rebuild();
  194. var sumtotal = instance1.selectNodes("/root/main/outreceivamtlist/receivamtstats").length + grd_outunco.fixedRows - 1;
  195. if ( sumtotal =="" ||sumtotal == null || sumtotal == "1" ) {
  196. } else {
  197. grd_outunco.mergeByFree(sumtotal,1,sumtotal,2);
  198. }
  199. }
  200. ]]>
  201. </script>
  202. </button>
  203. <input id="input7" ref="/root/main/outsearch/fromdd" class="input_default" navindex="7" inputtype="date" style="left:180px; top:9px; width:90px; height:19px; ">
  204. <script type="javascript" ev:event="onkeydown">
  205. <![CDATA[
  206. if( event.keyCode == 13 ) {
  207. var pCurTargetObj = event.ptarget.parent;
  208. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  209. event.keyCode = 9;
  210. pCurTargetObj.dispatch("onkeydown");
  211. }
  212. else {
  213. event.keyCode = 9;
  214. }
  215. }
  216. event.stopPropagation();
  217. ]]>
  218. </script>
  219. </input>
  220. <input id="input1" ref="/root/main/outsearch/todd" class="input_default" navindex="7" inputtype="date" style="left:275px; top:9px; width:90px; height:19px; ">
  221. <script type="javascript" ev:event="onkeydown">
  222. <![CDATA[
  223. if( event.keyCode == 13 ) {
  224. var pCurTargetObj = event.ptarget.parent;
  225. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  226. event.keyCode = 9;
  227. pCurTargetObj.dispatch("onkeydown");
  228. }
  229. else {
  230. event.keyCode = 9;
  231. }
  232. }
  233. event.stopPropagation();
  234. ]]>
  235. </script>
  236. </input>
  237. <select1 id="combo1" ref="/root/main/insearch/ordtype" appearance="minimal" style="left:1065px; top:9px; width:60px; height:19px; ">
  238. <choices>
  239. <item>
  240. <label>전체</label>
  241. <value>%</value>
  242. </item>
  243. <item>
  244. <label>입원</label>
  245. <value>I</value>
  246. </item>
  247. <item>
  248. <label>응급</label>
  249. <value>E</value>
  250. </item>
  251. <item>
  252. <label>DSC</label>
  253. <value>D</value>
  254. </item>
  255. </choices>
  256. </select1>
  257. <line id="line1" class="line_4" visibility="hidden" style="x1:530px; y1:5px; x2:530px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  258. <caption id="caption1" class="search_name" style="left:980px; top:10px; width:95px; height:17px; ">진료구분</caption>
  259. <select1 id="combo3" ref="/root/main/outsearch/creatflag" appearance="minimal" style="left:60px; top:9px; width:60px; height:19px; ">
  260. <choices>
  261. <item>
  262. <label>발생</label>
  263. <value>C</value>
  264. </item>
  265. <item>
  266. <label>입금</label>
  267. <value>R</value>
  268. </item>
  269. </choices>
  270. <script type="javascript" ev:event="xforms-value-changed">
  271. <![CDATA[
  272. if ( combo3.value == "4" ) {
  273. combo2.value = "6";
  274. } else if ( combo3.value == "5" ) {
  275. combo2.value = "2";
  276. }
  277. ]]>
  278. </script>
  279. </select1>
  280. <caption id="caption4" class="search_name" style="left:7px; top:10px; width:50px; height:17px; ">기준</caption>
  281. <caption id="caption7" class="search_name" style="left:370px; top:10px; width:115px; height:17px; ">진료완료</caption>
  282. <select1 id="combo4" ref="/root/main/outsearch/clinicgubun" appearance="minimal" style="left:447px; top:9px; width:70px; height:19px; ">
  283. <choices>
  284. <item>
  285. <label>전체</label>
  286. <value>A</value>
  287. </item>
  288. <item>
  289. <label>진료</label>
  290. <value>Y</value>
  291. </item>
  292. <item>
  293. <label>미진료</label>
  294. <value>N</value>
  295. </item>
  296. </choices>
  297. </select1>
  298. <select1 id="combo2" ref="/root/main/insearch/creatflag" appearance="minimal" style="left:665px; top:9px; width:60px; height:19px; ">
  299. <choices>
  300. <item>
  301. <label>발생</label>
  302. <value>C</value>
  303. </item>
  304. <item>
  305. <label>입금</label>
  306. <value>R</value>
  307. </item>
  308. </choices>
  309. <script type="javascript" ev:event="xforms-value-changed">
  310. <![CDATA[
  311. if ( combo3.value == "4" ) {
  312. combo2.value = "6";
  313. } else if ( combo3.value == "5" ) {
  314. combo2.value = "2";
  315. }
  316. ]]>
  317. </script>
  318. </select1>
  319. <caption id="caption9" class="search_name" style="left:610px; top:10px; width:50px; height:17px; ">기준</caption>
  320. <input id="input2" ref="/root/main/insearch/fromdd" class="input_default" navindex="7" inputtype="date" style="left:785px; top:9px; width:90px; height:19px; ">
  321. <script type="javascript" ev:event="onkeydown">
  322. <![CDATA[
  323. if( event.keyCode == 13 ) {
  324. var pCurTargetObj = event.ptarget.parent;
  325. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  326. event.keyCode = 9;
  327. pCurTargetObj.dispatch("onkeydown");
  328. }
  329. else {
  330. event.keyCode = 9;
  331. }
  332. }
  333. event.stopPropagation();
  334. ]]>
  335. </script>
  336. </input>
  337. <caption id="caption10" class="search_name" style="left:733px; top:10px; width:55px; height:17px; ">기간</caption>
  338. <input id="input3" ref="/root/main/insearch/todd" class="input_default" navindex="7" inputtype="date" style="left:880px; top:9px; width:90px; height:19px; ">
  339. <script type="javascript" ev:event="onkeydown">
  340. <![CDATA[
  341. if( event.keyCode == 13 ) {
  342. var pCurTargetObj = event.ptarget.parent;
  343. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  344. event.keyCode = 9;
  345. pCurTargetObj.dispatch("onkeydown");
  346. }
  347. else {
  348. event.keyCode = 9;
  349. }
  350. }
  351. event.stopPropagation();
  352. ]]>
  353. </script>
  354. </input>
  355. <line id="line2" class="line_4" visibility="hidden" style="x1:1135px; y1:7px; x2:1135px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  356. <button id="button5" class="btn1_letter2" style="left:1140px; top:8px; width:56px; height:22px; ">
  357. <caption>조회</caption>
  358. <script type="javascript" ev:event="DOMActivate">
  359. <![CDATA[
  360. var fromdd = model.getValue("/root/main/insearch/fromdd");
  361. var todd = model.getValue("/root/main/insearch/todd");
  362. if ( fromdd > todd ) {
  363. messageBox("시작일이 종료일 보다 클수 ", "C001")
  364. return;
  365. } else {
  366. model.removeNodeset("/root/main/inreceivamtlist/receivamtstats");
  367. model.resetInstanceNode("/root/main/inpsnuncoinfo/psnuncolist");
  368. submit("TRPAS00101");
  369. copyNodesetType("/root/main/inreceivamtlist/receivamtstats","/root/main/inreceivamtsumlist/receivamtsumstats","after");
  370. grd_inunco.rebuild();
  371. var sumtotal = instance1.selectNodes("/root/main/inreceivamtlist/receivamtstats").length + grd_inunco.fixedRows - 1;
  372. if ( sumtotal =="" ||sumtotal == null || sumtotal == "1" ) {
  373. } else {
  374. grd_inunco.mergeByFree(sumtotal,1,sumtotal,2);
  375. }
  376. }
  377. ]]>
  378. </script>
  379. </button>
  380. </group>
  381. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  382. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">미수금현황</caption>
  383. </group>
  384. <datagrid id="grd_outunco" nodeset="/root/main/outreceivamtlist/receivamtstats" caption="계정^계정명^건수^금액" colsep="^" colwidth="99, 218, 91, 132" rowheader="seq" rowsep="|" style="left:5px; top:85px; width:590px; height:320px; ">
  385. <col ref="uncocd" style="text-align:center; "/>
  386. <col ref="discunconm"/>
  387. <col ref="uncocnt" format="(-)#,###" style="text-align:right; "/>
  388. <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
  389. <script type="javascript" ev:event="ondblclick">
  390. <![CDATA[
  391. var rowIndex = 0;
  392. rowIndex = grd_outunco.mouseRow;
  393. model.setValue("/root/main/outsearch/uncocd", grd_outunco.valueMatrix(rowIndex, 1) ) ;
  394. model.removeNodeset("/root/main/outpsnuncoinfo/psnuncolist");
  395. submit("TRPAS00102");
  396. ]]>
  397. </script>
  398. </datagrid>
  399. <datagrid id="grd_outuncolist" nodeset="/root/main/outpsnuncoinfo/psnuncolist" caption="계정^등록번호^환자명^진료과^진료의^진료일^발생일자^발생금액^잔액^입금금액^계정명^본당명^임상시험번호^센터명" colsep="^" colwidth="31, 55, 48, 78, 46, 67, 67, 70, 70, 70, 164, 70, 100, 127" explorerbar="sort" rowheader="seq" rowsep="|" style="left:5px; top:440px; width:590px; height:310px; ">
  400. <col ref="uncocd" style="text-align:center; "/>
  401. <col ref="pid" style="text-align:center; "/>
  402. <col ref="hngnm" style="text-align:center; "/>
  403. <col ref="deptnm" style="text-align:left; "/>
  404. <col ref="orddrnm" style="text-align:center; "/>
  405. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  406. <col ref="rcptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  407. <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
  408. <col ref="restamt" format="(-)#,###" style="text-align:right; "/>
  409. <col ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
  410. <col ref="discunconm" style="text-align:left; "/>
  411. <col ref="churchnm"/>
  412. <col ref="clincstdyno"/>
  413. <col ref="centcd"/>
  414. </datagrid>
  415. <line id="line3" class="line_1" style="x1:5px; y1:80px; x2:595px; y2:80px; "/>
  416. <line id="line4" class="line_1" style="x1:5px; y1:435px; x2:595px; y2:435px; "/>
  417. <caption id="caption6" class="tit_2" style="left:10px; top:65px; width:160px; height:14px; ">외래미수금 현황</caption>
  418. <caption id="caption5" class="tit_2" style="left:5px; top:420px; width:160px; height:14px; ">외래 개인별 미수 현황</caption>
  419. <button id="button1" class="btn4_letter4" style="left:515px; top:750px; width:80px; height:22px; ">
  420. <caption>액셀저장</caption>
  421. <script type="javascript" ev:event="DOMActivate">
  422. <![CDATA[
  423. var vToday = new Date();
  424. var tmpYear = vToday.getYear();
  425. var tmpMonth = vToday.getMonth()+1;
  426. var tmpDate = vToday.getDate();
  427. //
  428. // model.setValue("/root/documenttitle/title",document.title);
  429. // model.refresh();
  430. // var subjectTitle = model.getValue("/root/documenttitle/title");
  431. var uncocd = model.getValue("/root/main/outsearch/uncocd");
  432. if(uncocd=="ALL"){
  433. //엑셀저장 여부(타이틀별)
  434. var fileName = window.fileDialog("save", "", false, " 외래 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  435. }else{
  436. //엑셀저장 여부(타이틀별)
  437. var fileName = window.fileDialog("save", "", false, uncocd + " 외래 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  438. }
  439. if (fileName != "")
  440. {
  441. if(uncocd=="ALL"){
  442. grd_outuncolist.saveExcel(fileName, "외래 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  443. }else{
  444. grd_outuncolist.saveExcel(fileName, uncocd + " 외래 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  445. }
  446. }
  447. ]]>
  448. </script>
  449. </button>
  450. <datagrid id="grd_inunco" nodeset="/root/main/inreceivamtlist/receivamtstats" caption="계정^계정명^건수^금액" colsep="^" colwidth="99, 218, 91, 132" rowheader="seq" rowsep="|" style="left:605px; top:85px; width:590px; height:320px; ">
  451. <col ref="uncocd" style="text-align:center; "/>
  452. <col ref="discunconm"/>
  453. <col ref="uncocnt" format="(-)#,###" style="text-align:right; "/>
  454. <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
  455. <script type="javascript" ev:event="ondblclick">
  456. <![CDATA[
  457. var rowIndex = 0;
  458. rowIndex = grd_inunco.mouseRow;
  459. model.setValue("/root/main/insearch/uncocd", grd_inunco.valueMatrix(rowIndex, 1) ) ;
  460. model.removeNodeset("/root/main/inpsnuncoinfo/psnuncolist");
  461. submit("TRPAS00103");
  462. // model.makeNode("/root/main/search/uncocdflag");
  463. // model.setValue("/root/main/search/uncocdflag", datagrid2.valueMatrix(rowIndex, 1) ) ;
  464. // modal("SMPAS00550", "1","","", "SMPAS00550", "/root/main/search", "/root/main/search");
  465. ]]>
  466. </script>
  467. </datagrid>
  468. <caption id="caption8" class="tit_2" style="left:610px; top:65px; width:160px; height:14px; ">입원미수금 현황</caption>
  469. <line id="line5" class="line_1" style="x1:605px; y1:80px; x2:1195px; y2:80px; "/>
  470. <button id="button2" class="btn4_letter4" style="left:515px; top:405px; width:80px; height:22px; ">
  471. <caption>액셀저장</caption>
  472. <script type="javascript" ev:event="DOMActivate">
  473. <![CDATA[
  474. var vToday = new Date();
  475. var tmpYear = vToday.getYear();
  476. var tmpMonth = vToday.getMonth()+1;
  477. var tmpDate = vToday.getDate();
  478. //
  479. // model.setValue("/root/documenttitle/title",document.title);
  480. // model.refresh();
  481. // var subjectTitle = model.getValue("/root/documenttitle/title");
  482. //엑셀저장 여부(타이틀별)
  483. var fileName = window.fileDialog("save", "", false, "외래 미수금현황"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  484. if (fileName != "")
  485. {
  486. grd_outunco.saveExcel(fileName, "외래 미수금현황"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  487. }
  488. ]]>
  489. </script>
  490. </button>
  491. <button id="button3" class="btn4_letter4" style="left:1115px; top:405px; width:80px; height:22px; ">
  492. <caption>액셀저장</caption>
  493. <script type="javascript" ev:event="DOMActivate">
  494. <![CDATA[
  495. var vToday = new Date();
  496. var tmpYear = vToday.getYear();
  497. var tmpMonth = vToday.getMonth()+1;
  498. var tmpDate = vToday.getDate();
  499. //
  500. // model.setValue("/root/documenttitle/title",document.title);
  501. // model.refresh();
  502. // var subjectTitle = model.getValue("/root/documenttitle/title");
  503. //엑셀저장 여부(타이틀별)
  504. var fileName = window.fileDialog("save", "", false, "입원 미수금현황"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  505. if (fileName != "")
  506. {
  507. grd_inunco.saveExcel(fileName, "입원 미수금현황"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  508. }
  509. ]]>
  510. </script>
  511. </button>
  512. <button id="button4" class="btn4_letter4" style="left:1115px; top:750px; width:80px; height:22px; ">
  513. <caption>액셀저장</caption>
  514. <script type="javascript" ev:event="DOMActivate">
  515. <![CDATA[
  516. var vToday = new Date();
  517. var tmpYear = vToday.getYear();
  518. var tmpMonth = vToday.getMonth()+1;
  519. var tmpDate = vToday.getDate();
  520. //
  521. // model.setValue("/root/documenttitle/title",document.title);
  522. // model.refresh();
  523. // var subjectTitle = model.getValue("/root/documenttitle/title");
  524. var uncocd = model.getValue("/root/main/insearch/uncocd");
  525. if(uncocd=="ALL"){
  526. //엑셀저장 여부(타이틀별)
  527. var fileName = window.fileDialog("save", "", false, " 입원 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  528. }else{
  529. //엑셀저장 여부(타이틀별)
  530. var fileName = window.fileDialog("save", "", false, uncocd + " 입원 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  531. }
  532. if (fileName != "")
  533. {
  534. if(uncocd=="ALL"){
  535. grd_inuncolist.saveExcel(fileName, " 입원 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  536. }else{
  537. grd_inuncolist.saveExcel(fileName, uncocd + " 입원 개인별 미수현황 "+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
  538. }
  539. }
  540. ]]>
  541. </script>
  542. </button>
  543. <caption id="caption3" class="tit_2" style="left:605px; top:420px; width:160px; height:14px; ">입원 개인별 미수 현황</caption>
  544. <line id="line6" class="line_1" style="x1:605px; y1:435px; x2:1195px; y2:435px; "/>
  545. <datagrid id="grd_inuncolist" nodeset="/root/main/inpsnuncoinfo/psnuncolist" caption="계정^등록번호^환자명^진료과^진료의^발생일자^발생금액^입금금액^잔액^계정명" colsep="^" colwidth="35, 58, 55, 95, 49, 67, 70, 70, 70, 164" explorerbar="sort" rowheader="seq" rowsep="|" style="left:605px; top:440px; width:590px; height:310px; ">
  546. <col ref="uncocd" style="text-align:center; "/>
  547. <col ref="pid" style="text-align:center; "/>
  548. <col ref="hngnm" style="text-align:center; "/>
  549. <col ref="deptnm" style="text-align:left; "/>
  550. <col ref="orddrnm" style="text-align:center; "/>
  551. <col ref="rcptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  552. <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
  553. <col ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
  554. <col ref="restamt" format="(-)#,###" style="text-align:right; "/>
  555. <col ref="discunconm" style="text-align:left; "/>
  556. </datagrid>
  557. <select id="checkbox1" ref="/root/main/outsearch/restyn" overflow="visible" appearance="full" style="left:175px; top:420px; width:65px; height:15px; color:#ff0000; border-style:none; ">
  558. <choices>
  559. <item>
  560. <label>잔액만</label>
  561. <value>Y</value>
  562. </item>
  563. </choices>
  564. </select>
  565. <select id="checkbox2" ref="/root/main/insearch/restyn" overflow="visible" appearance="full" style="left:775px; top:420px; width:65px; height:20px; color:#ff0000; border-style:none; ">
  566. <choices>
  567. <item>
  568. <label>잔액만</label>
  569. <value>Y</value>
  570. </item>
  571. </choices>
  572. </select>
  573. <select id="checkbox3" ref="/root/main/outsearch/mainrestyn" overflow="visible" appearance="full" style="left:160px; top:65px; width:65px; height:20px; color:#ff0000; border-style:none; ">
  574. <choices>
  575. <item>
  576. <label>잔액만</label>
  577. <value>Y</value>
  578. </item>
  579. </choices>
  580. </select>
  581. <select id="checkbox4" ref="/root/main/insearch/mainrestyn" overflow="visible" appearance="full" style="left:765px; top:65px; width:65px; height:20px; color:#ff0000; border-style:none; ">
  582. <choices>
  583. <item>
  584. <label>잔액만</label>
  585. <value>Y</value>
  586. </item>
  587. </choices>
  588. </select>
  589. <button id="button27" class="btn3_letter9" style="left:5px; top:750px; width:140px; height:22px; ">
  590. <caption>외래 처방내역 조회</caption>
  591. <script type="javascript" ev:event="DOMActivate">
  592. <![CDATA[
  593. // messageBox("외래 선처치 처방 리스트 입니다. 미수는 처방으로 생성하지 않으므로 미수금액은 차이가 있습니다.", "I999");
  594. //미수 조회 기간 및 미수 유형 가져 옴
  595. model.setValue("/root/send/data/sorddd", model.getValue("/root/main/outsearch/fromdd")) ;
  596. model.setValue("/root/send/data/stodd", model.getValue("/root/main/outsearch/todd")) ;
  597. var rowIndex = 0;
  598. rowIndex = grd_outunco.row;
  599. model.setValue("/root/send/data/suncocd", grd_outunco.valueMatrix(rowIndex, 1) ) ;
  600. submit("TRPAS00104");
  601. datagrid1.visible = "true";
  602. ]]>
  603. </script>
  604. </button>
  605. <input id="input4" ref="/root/send/data/sorddd" class="input_default" navindex="7" visibility="hidden" inputtype="date" style="left:305px; top:750px; width:90px; height:19px; ">
  606. <script type="javascript" ev:event="onkeydown">
  607. <![CDATA[
  608. if( event.keyCode == 13 ) {
  609. var pCurTargetObj = event.ptarget.parent;
  610. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  611. event.keyCode = 9;
  612. pCurTargetObj.dispatch("onkeydown");
  613. }
  614. else {
  615. event.keyCode = 9;
  616. }
  617. }
  618. event.stopPropagation();
  619. ]]>
  620. </script>
  621. </input>
  622. <button id="button6" class="btn1_letter10" style="left:361px; top:405px; width:152px; height:22px; ">
  623. <caption>계정전체 개인별 조회</caption>
  624. <script type="javascript" ev:event="DOMActivate">
  625. <![CDATA[
  626. var rowIndex = 0;
  627. rowIndex = grd_outunco.mouseRow;
  628. model.setValue("/root/main/outsearch/uncocd", "ALL") ;
  629. model.removeNodeset("/root/main/outpsnuncoinfo/psnuncolist");
  630. submit("TRPAS00102");
  631. ]]>
  632. </script>
  633. </button>
  634. <button id="button8" class="btn1_letter10" style="left:950px; top:405px; width:152px; height:22px; ">
  635. <caption>계정전체 개인별 조회</caption>
  636. <script type="javascript" ev:event="DOMActivate">
  637. <![CDATA[
  638. var rowIndex = 0;
  639. rowIndex = grd_inunco.mouseRow;
  640. model.setValue("/root/main/insearch/uncocd", "ALL") ;
  641. model.removeNodeset("/root/main/inpsnuncoinfo/psnuncolist");
  642. submit("TRPAS00103");
  643. ]]>
  644. </script>
  645. </button>
  646. <input id="input5" ref="/root/send/data/stodd" class="input_default" navindex="7" visibility="hidden" inputtype="date" style="left:396px; top:750px; width:90px; height:19px; ">
  647. <script type="javascript" ev:event="onkeydown">
  648. <![CDATA[
  649. if( event.keyCode == 13 ) {
  650. var pCurTargetObj = event.ptarget.parent;
  651. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  652. event.keyCode = 9;
  653. pCurTargetObj.dispatch("onkeydown");
  654. }
  655. else {
  656. event.keyCode = 9;
  657. }
  658. }
  659. event.stopPropagation();
  660. ]]>
  661. </script>
  662. </input>
  663. <button id="button7" class="btn3_letter4" style="left:145px; top:750px; width:80px; height:22px; ">
  664. <caption>엑셀저장</caption>
  665. <script type="javascript" ev:event="DOMActivate">
  666. <![CDATA[
  667. var rowIndex = 0;
  668. rowIndex = grd_outunco.row;
  669. var unconm = grd_outunco.valueMatrix(rowIndex, 2) ;
  670. if (getNodesetCount("/root/main/sprcpuncospec/sprcpunco") > 1) {
  671. var fileName = window.fileDialog("save", "", false, unconm+"처방내역"+ model.getValue("/root/send/data/sorddd"), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  672. if (fileName != "") {
  673. datagrid1.saveExcel(fileName, unconm+"처방내역"+ model.getValue("/root/send/data/sorddd"), true, true, "", "", true);
  674. }
  675. } else {
  676. messageBox("처방 조회내역이 없습니다.", "I999");
  677. }
  678. ]]>
  679. </script>
  680. </button>
  681. <button id="button9" class="btn3_letter4" style="left:225px; top:750px; width:80px; height:22px; ">
  682. <caption>창 닫기</caption>
  683. <script type="javascript" ev:event="DOMActivate">
  684. <![CDATA[
  685. model.removeNodeset("/root/main/sprcpuncospec/sprcpunco");
  686. datagrid1.visible = "false";
  687. ]]>
  688. </script>
  689. </button>
  690. <datagrid id="datagrid1" nodeset="/root/main/sprcpuncospec/sprcpunco" visibility="hidden" caption="등록번호^성명^처방일자^발생일자^실시일자^처방코드^처방명^진료과^진료의^최초등록^최초등록과^처방입력구분^처방분류^선처치등록^미수액" colsep="^" colwidth="56, 56, 70, 70, 70, 74, 197, 74, 55, 56, 72, 84, 61, 70, 100" rowsep="|" style="left:5px; top:240px; width:1190px; height:510px; background-color:#dddddd; ">
  691. <col ref="pid" style="text-align:center; "/>
  692. <col ref="hngnm" style="text-align:center; "/>
  693. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  694. <col ref="rcptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  695. <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
  696. <col ref="prcpcd" format="yyyy-mm-dd" style="text-align:center; "/>
  697. <col ref="khngnm" style="text-align:center; "/>
  698. <col ref="orddeptcd" style="text-align:center; "/>
  699. <col ref="orddrid" style="text-align:center; "/>
  700. <col ref="rgstrid" style="text-align:center; "/>
  701. <col ref="rgstdeptcd" style="text-align:center; "/>
  702. <col ref="prcpinptflag" style="text-align:center; "/>
  703. <col ref="prcpclscd" style="text-align:center; "/>
  704. <col ref="baseflag" style="text-align:center; "/>
  705. <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
  706. </datagrid>
  707. </xhtml:body>
  708. </xhtml:html>