SMRAR00300_가수금상계조회.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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>가수금 상계 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <maindatalist>
  11. <instcd/>
  12. <aactcd/>
  13. <gadate/>
  14. <gubun/>
  15. <rmrk/>
  16. <gaamt/>
  17. <janamt/>
  18. <sangflag/>
  19. <line/>
  20. <seqline/>
  21. <ymdwrite/>
  22. <unslno/>
  23. <sanctslipno/>
  24. <aactno/>
  25. <seqwrite/>
  26. <rowcnt/>
  27. </maindatalist>
  28. </main>
  29. <send>
  30. <instcd/>
  31. <gadate_fr/>
  32. <gadate_to/>
  33. <aactno/>
  34. <aactcd/>
  35. </send>
  36. <hidden>
  37. <apsl>
  38. <sumjanamt/>
  39. </apsl>
  40. <save/>
  41. </hidden>
  42. <init>
  43. <bankinfo>
  44. <aactno/>
  45. <aactcd/>
  46. </bankinfo>
  47. </init>
  48. <temp>
  49. </temp>
  50. </root>
  51. </instance>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. var fdate = getCurrentDate();
  55. model.removenode( "/root/main/maindatalist");
  56. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  57. model.setValue("/root/send/gadate_fr", fdate.substr(0,4)+"0101" );
  58. model.setValue("/root/send/gadate_to", fdate);
  59. submit("TRRAR00101"); //기관코드 send. / 예금계좌번호,코드 return.
  60. addComboItem("cmb_aactno","--전체--","","above");
  61. model.refresh();
  62. ]]>
  63. </script>
  64. <script type="javascript">
  65. <![CDATA[
  66. //정렬 순서로 sort함.
  67. function fGetSortSeq(){
  68. var num = grd_main.rows- 1;
  69. if(rdo_seq.value == 1){
  70. grd_main.sort(1, 2, num, 2) = "asc";
  71. }else{
  72. grd_main.sort(1, 3, num, 3) = "asc";
  73. }
  74. model.refresh();
  75. }
  76. //출력물순서 저장
  77. //엑셀 입력
  78. function fInputExcel(pGrid) {
  79. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  80. if(fileName != "") {
  81. pGrid.loadExcel(fileName, 1, true);
  82. pGrid.deleteRow(1);
  83. for(i = 1; i < pGrid.rows; i++) {
  84. pGrid.rowStatus(i) = 1;
  85. }
  86. pGrid.refresh();
  87. }
  88. }
  89. ]]>
  90. </script>
  91. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  93. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  94. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  95. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  97. <submission id="TRRAR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/bankinfo"/>
  98. <submission id="TRRAR00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/maindatalist"/>
  99. <submission id="TXRAR00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/save" resultref="/root/temp"/>
  100. <bind id="bind_cpt_sumjanamt" ref="/root/hidden/apsl/sumjanamt" calculate="sum(/root/main/maindatalist/janamt)"/>
  101. </model>
  102. </xhtml:head>
  103. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  104. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  105. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">가수금 상계 조회</caption>
  106. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  107. </group>
  108. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  109. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:38px; vertical-align:top; ">
  110. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:38; background-color:#fffbf2; border-color:#ffd799; "/>
  111. <button id="button2" class="btn1_letter2" navindex="4" style="left:1123px; top:9px; width:56px; height:22px; text-align:left; ">
  112. <caption>조회</caption>
  113. <script type="javascript" ev:event="DOMActivate">
  114. <![CDATA[
  115. //setAlertOn();
  116. submit("TRRAR00301");
  117. //model.setValue("/root/hidden/apsl/sumjanamt", 0);
  118. model.refresh();
  119. ]]>
  120. </script>
  121. </button>
  122. <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  123. <input id="ipt_gadate_fr" ref="/root/send/gadate_fr" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:423px; top:9px; width:110px; height:19px; "/>
  124. <caption id="caption2" style="left:539px; top:9px; width:15px; height:17px; ">~</caption>
  125. <input id="ipt_gadate_to" ref="/root/send/gadate_to" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:556px; top:9px; width:110px; height:19px; "/>
  126. <caption id="caption3" class="search_name" style="left:321px; top:9px; width:104px; height:17px; ">가수금일자 :</caption>
  127. <output id="opt_aactcd" ref="/root/send/aactcd" class="output_fix" appearance="output" style="left:252px; top:9px; width:55px; height:19px; "/>
  128. <caption id="caption5" class="search_name" style="left:11px; top:9px; width:104px; height:17px; ">예금계좌 :</caption>
  129. <select1 id="cmb_aactno" ref="/root/send/aactno" class="combo_s_essential" navindex="1" appearance="minimal" style="left:100px; top:9px; width:150px; height:19px; ">
  130. <choices>
  131. <itemset nodeset="/root/init/bankinfo">
  132. <label ref="aactno"/>
  133. <value ref="aactcd"/>
  134. </itemset>
  135. </choices>
  136. <script type="javascript" ev:event="xforms-value-changed">
  137. <![CDATA[
  138. model.setValue("/root/send/aactcd", cmb_aactno.value);
  139. model.refresh();
  140. ]]>
  141. </script>
  142. </select1>
  143. </group>
  144. <line id="line3" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
  145. <datagrid id="grd_main" nodeset="/root/main/maindatalist" dragmode="false" caption="기관코드^예금계좌^보조과목^가수금일자^구분^적 요^전표작성일자^승인전표번호^asis전표번호^상계금액^Row No.^미결전표번호" colsep="^" colwidth="0, 130, 84, 100, 90, 238, 100, 100, 100, 120, 82, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:80px; width:1194px; height:635px; ">
  146. <col ref="instcd" style="text-align:center; "/>
  147. <col ref="aactno" style="text-align:center; "/>
  148. <col ref="aactcd" style="text-align:center; "/>
  149. <col ref="gadate" format="yyyy-mm-dd" style="text-align:center; "/>
  150. <col ref="gubun" style="text-align:center; "/>
  151. <col ref="rmrk"/>
  152. <col ref="ymdwrite" format="yyyy-mm-dd" style="text-align:center; "/>
  153. <col ref="sanctslipno" style="text-align:center; "/>
  154. <col ref="seqwrite" style="text-align:center; "/>
  155. <col ref="janamt" format="#,###" style="text-align:right; "/>
  156. <col ref="rowcnt" style="text-align:right; "/>
  157. <col ref="unslno"/>
  158. <script type="javascript" ev:event="onaftersort">
  159. <![CDATA[
  160. grd_main.gridToInstance();
  161. ]]>
  162. </script>
  163. </datagrid>
  164. <button id="ipt_excsave" class="btn2_letter4" style="left:1055px; top:52px; width:64px; height:19px; ">
  165. <caption>엑셀저장</caption>
  166. <script type="javascript" ev:event="DOMActivate">
  167. <![CDATA[
  168. misfSaveExcel(grd_main);
  169. ]]>
  170. </script>
  171. </button>
  172. <button id="button18" class="btn2_letter4" style="left:1122px; top:52px; width:64px; height:19px; ">
  173. <caption>전표취소</caption>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. misfGridIUD(grd_main, "D");
  177. model.refresh();
  178. var cnt = 0;
  179. for ( var i = grd_main.fixedRows; i <= grd_main.rows; i++ ) {
  180. if ( grd_main.rowStatus(i)=='4' ) { //delete
  181. cnt = cnt + 1;
  182. }
  183. }
  184. if ( cnt > 1){
  185. alert("동시에 여러건을 선택해서 취소 처리 할 수 없습니다.\n\n한 건만 선택해 주세요.");
  186. button2.dispatch("DOMActivate");
  187. return false;
  188. }
  189. if ( grd_main.valueMatrix(grd_main.row, grd_main.colRef("ymdwrite")).length == 0 ||
  190. grd_main.valueMatrix(grd_main.row, grd_main.colRef("sanctslipno")).length== 0 ){
  191. alert("전표작성일자 또는 승인전표번호가 없는 상계건은 이 화면에서 취소 처리 할 수 없습니다.");
  192. button2.dispatch("DOMActivate");
  193. return false;
  194. }
  195. rtn = messageBox("전표작성일자: "+grd_main.valueMatrix(grd_main.row, grd_main.colRef("ymdwrite"))+", 승인전표번호: "+grd_main.valueMatrix(grd_main.row, grd_main.colRef("sanctslipno"))+" 의 \n\n전표 및 가수금상계를 취소 하며","Q002");
  196. if ( rtn == "6" ) {
  197. //입력,수정,삭제된 data save node 에 담기..
  198. model.setValue("/root/hidden/save",grd_main.getUpdateData());
  199. if(submit("TXRAR00301")) {
  200. button2.dispatch("DOMActivate");
  201. }
  202. }else{
  203. button2.dispatch("DOMActivate");
  204. }
  205. ]]>
  206. </script>
  207. </button>
  208. <caption id="caption21" class="tit_2" style="left:5px; top:57px; width:131px; height:13px; ">출력 목록</caption>
  209. <caption id="caption7" style="left:85px; top:57px; width:500px; height:13px; ">(* 100,000건 이상 조회가 안됩니다. 계좌와 가수금일자를 선택하신 후 조회 해 주세요.)</caption>
  210. </group>
  211. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  212. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  213. </group>
  214. <caption id="caption1" class="cell_1" style="left:877px; top:757px; width:100px; height:23px; text-align:center; vertical-align:middle; ">합 계</caption>
  215. <caption id="cpt_gaamtsum" ref="/root/hidden/apsl/sumjanamt" format="(-)#,###" style="left:978px; top:757px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcccc; "/>
  216. <button id="btn_print" class="btn4_letter2" visibility="visible" style="left:1135px; top:16px; width:56px; height:22px; ">
  217. <caption>출력</caption>
  218. <script type="javascript" ev:event="DOMActivate">
  219. <![CDATA[
  220. exeReportPreview("SMRAR00301", "XMLSTR");
  221. ]]>
  222. </script>
  223. </button>
  224. </xhtml:body>
  225. </xhtml:html>