SPPAS00750_일일미수현황.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. <send>
  10. <fromdd/>
  11. <todd/>
  12. <sendflag/>
  13. </send>
  14. <main>
  15. <msg/>
  16. </main>
  17. <source>
  18. </source>
  19. <result/>
  20. <temp>
  21. </temp>
  22. <list>
  23. <uncolist>
  24. <beftotuncoamt/>
  25. <uncoamt/>
  26. <dayunco/>
  27. <rcptamt/>
  28. <totuncoamt/>
  29. </uncolist>
  30. <befounco>
  31. <beftotuncoamt/>
  32. </befounco>
  33. <totuncoamt>
  34. <totuncoamt/>
  35. </totuncoamt>
  36. <uncorcpt>
  37. <rcptamt/>
  38. </uncorcpt>
  39. <inddunco>
  40. <inunco/>
  41. </inddunco>
  42. <outddunco>
  43. <outunco/>
  44. </outddunco>
  45. </list>
  46. </root>
  47. </instance>
  48. <bind id="bind1" ref="/root/main/outreceivamtlist/receivamtstats" calculate="now() + ."/>
  49. <bind id="bind2" ref="/root/main/outreceivamtsumlist/receivamtsumstats/uncocnt" calculate="sum(/root/main/outreceivamtlist/receivamtstats/uncocnt);"/>
  50. <bind id="bind3" ref="/root/main/outreceivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/outreceivamtlist/receivamtstats/uncoamt);"/>
  51. <bind id="bind4" ref="/root/main/inreceivamtlist/receivamtstats" calculate="now() + ."/>
  52. <bind id="bind5" ref="/root/main/inreceivamtsumlist/receivamtsumstats/uncocnt" calculate="sum(/root/main/inreceivamtlist/receivamtstats/uncocnt);"/>
  53. <bind id="bind6" ref="/root/main/inreceivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/inreceivamtlist/receivamtstats/uncoamt);"/>
  54. <submission id="TRPAS00820" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/list">s</submission>
  55. </model>
  56. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  62. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  63. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  64. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  65. <script type="javascript" src="../../../pam/outordamtmngtweb/js/SMPAO00100.js"/>
  66. <script type="javascript" ev:event="xforms-ready">
  67. <![CDATA[
  68. model.setValue("/root/send/sendflag" , "yyyy");
  69. model.setValue("/root/send/fromdd" , getCurrentDate());
  70. model.refresh();
  71. ]]>
  72. </script>
  73. <script type="javascript">
  74. <![CDATA[
  75. function callLoadingWindow(msg){
  76. body.createChild("xforms:iviewer", "id:ivr_progress; src:../../../com/commonweb/xrw/SPZZZ00400_로딩중화면.xrw; left:100px; top:20px; width:330px; height:120px;");
  77. var ivrObjt = document.all("ivr_progress");
  78. if( msg == '' || msg == '-' ){
  79. msg = "미수총누계를 집계중 입니다...";
  80. }
  81. ivrObjt.model.setValue("/root/main/msg", msg);
  82. ivrObjt.model.refresh();
  83. }
  84. function removeLoadingWindow(){
  85. body.removeChild("ivr_progress");
  86. }
  87. ]]>
  88. </script>
  89. </xhtml:head>
  90. <xhtml:body pagewidth="600" pageheight="200">
  91. <group id="group2" style="left:0px; top:20px; width:585px; height:37px; ">
  92. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:0px; width:580px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  93. <button id="btn_search" class="btn1_letter2" style="left:520px; top:8px; width:56px; height:22px; ">
  94. <caption>조회</caption>
  95. <script type="javascript" ev:event="DOMActivate">
  96. <![CDATA[
  97. if(submit("TRPAS00820")){
  98. // 전일미수총누계
  99. var beftotamt = parseInt(model.getValue("/root/list/befounco/beftotuncoamt"));
  100. model.setValue("/root/list/uncolist/beftotuncoamt", beftotamt);
  101. // 당일미수발생액
  102. var outuncoamt = parseInt(model.getValue("/root/list/uncolist/outuncoamt"));
  103. model.setValue("/root/list/uncolist/dayunco", outuncoamt);
  104. // 당일미수입금액
  105. var rcptamt = parseInt(model.getValue("/root/list/uncorcpt/rcptamt"));
  106. model.setValue("/root/list/uncolist/rcptamt", rcptamt);
  107. // 미수 총 누계 = 전일미수총계 + (당일 미수금액 + 당일 미수입금액)
  108. model.setValue("/root/list/uncolist/totuncoamt", beftotamt + (outuncoamt - rcptamt));
  109. model.refresh();
  110. }
  111. ]]>
  112. </script>
  113. </button>
  114. <line id="line1" class="line_4" visibility="visible" style="x1:510px; y1:8px; x2:510px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  115. <caption id="caption4" class="search_name" style="left:10px; top:10px; width:91px; height:17px; ">미수기간 :</caption>
  116. <input id="input1" ref="/root/send/fromdd" inputtype="date" style="left:102px; top:9px; width:105px; height:19px; "/>
  117. </group>
  118. <group id="group3" style="left:0px; top:0px; width:585px; height:13px; ">
  119. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">일일 미수 현황</caption>
  120. </group>
  121. <caption id="caption2" class="tit_2" style="left:10px; top:66px; width:140px; height:14px; ">미수 현황</caption>
  122. <datagrid id="grd_totuncolist" nodeset="/root/list/uncolist" visibility="visible" caption="전일미수총누계^당일미수발생액^당일미수입금액^미수총누계" colsep="^" colwidth="139, 140, 140, 140" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:85px; width:585px; height:100px; text-align:center; ">
  123. <col ref="beftotuncoamt" format="(-)#,###" style="text-align:right; "/>
  124. <col ref="dayunco" format="(-)#,###" style="text-align:right; "/>
  125. <col ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
  126. <col ref="totuncoamt" format="(-)#,###" style="text-align:right; "/>
  127. </datagrid>
  128. <button id="button1" class="btn2_letter4" style="left:515px; top:65px; width:64px; height:19px; ">
  129. <caption>엑셀저장</caption>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[7
  132. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  133. if (fileName != "")
  134. {
  135. grd_totuncolist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  136. }
  137. ]]>
  138. </script>
  139. </button>
  140. </xhtml:body>
  141. </xhtml:html>