SMRAR00300_가수금상계조회.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRAR00300" position="absolute 0 0 1199 787" titletext="가수금 상계 조회" oninit="SMRAR00300_oninit" onload="SMRAR00300_onload">
  5. <Layouts>
  6. <Layout>
  7. <MaskEdit id="cpt_gaamtsum" taborder="5" position="absolute 978 759 1098 782" style="background:#ffccccff;" anchor="right bottom" mask="9,999999999"/>
  8. <Button position="absolute 1139 25 1195 47" id="btn_print" class="btn4" visible="true" text="출력" anchor="top right" onclick="btn_print_onclick"/>
  9. <Static id="caption6" text="가수금 상계 조회" class="tit_1" position="absolute 0 0 293 25"/>
  10. <Shape id="line2" class="line_6" position="absolute 0 46 1195 52" anchor="left top right" onclick="line2_onclick"/>
  11. <Div id="grp_sea" anchor="left top right" taborder="1" class="div_SA2" position="absolute 0 50 1195 90">
  12. <Layouts>
  13. <Layout>
  14. <Button id="button2" taborder="2" text="조회" class="btn1" position="absolute 720 10 776 32" onclick="grp_sea_button2_onclick"/>
  15. <Shape id="line5" linetype="vertical" class="line_4" position="absolute 701 9 707 31"/>
  16. <Calendar id="ipt_gadate_fr" taborder="3" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 457 10 562 29" mask="yyyy-mm-dd"/>
  17. <Static id="caption2" text="~" position="absolute 566 12 581 29"/>
  18. <Calendar id="ipt_gadate_to" taborder="4" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 582 10 684 29" mask="yyyy-mm-dd"/>
  19. <Static id="caption3" text="가수금일자 :" class="search_name" position="absolute 356 10 460 27"/>
  20. <Edit id="opt_aactcd" taborder="5" readonly="true" class="output" position="absolute 270 10 325 29"/>
  21. <Static id="caption5" text="예금계좌 :" class="search_name" position="absolute 31 10 135 27"/>
  22. <Combo id="cmb_aactno" taborder="6" innerdataset="@ds_init_bankinfo" codecolumn="aactcd" datacolumn="aactno" class="combo_s_essential" position="absolute 120 10 270 29" onitemchanged="grp_sea_cmb_aactno_onitemchanged"/>
  23. </Layout>
  24. </Layouts>
  25. </Div>
  26. <Shape id="line3" class="line_10" position="absolute 0 115 1195 121" anchor="left top right"/>
  27. <Grid id="grd_main" taborder="2" binddataset="ds_main_maindatalist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 120 1195 755" anchor="all">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="25"/>
  32. <Column size="0"/>
  33. <Column size="130"/>
  34. <Column size="50"/>
  35. <Column size="74"/>
  36. <Column size="56"/>
  37. <Column size="238"/>
  38. <Column size="77"/>
  39. <Column size="77"/>
  40. <Column size="80"/>
  41. <Column size="102"/>
  42. <Column size="59"/>
  43. <Column size="0"/>
  44. <Column size="228"/>
  45. </Columns>
  46. <Rows>
  47. <Row size="24" band="head"/>
  48. <Row size="24"/>
  49. </Rows>
  50. <Band id="head">
  51. <Cell/>
  52. <Cell col="1" text="기관코드"/>
  53. <Cell col="2" text="예금계좌"/>
  54. <Cell col="3" text="보조과목"/>
  55. <Cell col="4" text="가수금일자"/>
  56. <Cell col="5" text="구분"/>
  57. <Cell col="6" text="적 요"/>
  58. <Cell col="7" text="전표작성일자"/>
  59. <Cell col="8" text="승인전표번호"/>
  60. <Cell col="9" text="asis전표번호"/>
  61. <Cell col="10" text="상계금액"/>
  62. <Cell col="11" text="Row No."/>
  63. <Cell col="12" text="미결전표번호"/>
  64. <Cell col="13" text="전표적요"/>
  65. </Band>
  66. <Band id="body">
  67. <Cell celltype="head"/>
  68. <Cell col="1" text="bind:instcd"/>
  69. <Cell col="2" text="bind:aactno"/>
  70. <Cell col="3" text="bind:aactcd"/>
  71. <Cell col="4" displaytype="date" text="bind:gadate" calendardisplaynulltype="nulltext"/>
  72. <Cell col="5" text="bind:gubun"/>
  73. <Cell col="6" style="align:left middle;padding:0 0 0 3;" text="bind:rmrk"/>
  74. <Cell col="7" displaytype="date" text="bind:ymdwrite" calendardisplaynulltype="nulltext"/>
  75. <Cell col="8" text="bind:sanctslipno"/>
  76. <Cell col="9" text="bind:seqwrite"/>
  77. <Cell col="10" displaytype="number" text="bind:janamt"/>
  78. <Cell col="11" text="bind:rowcnt"/>
  79. <Cell col="12" text="bind:unslno"/>
  80. <Cell col="13" style="align:left middle;padding:0 0 0 3;" text="bind:slipcmt"/>
  81. </Band>
  82. </Format>
  83. </Formats>
  84. </Grid>
  85. <Button id="ipt_excsave" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 96 1195 115" anchor="top right" onclick="ipt_excsave_onclick"/>
  86. <Button id="button18" taborder="4" text="전표취소" class="btn2" position="absolute 1050 96 1114 115" anchor="top right" onclick="button18_onclick"/>
  87. <Static id="caption21" text="출력 목록" class="tit_2" position="absolute 0 99 131 120"/>
  88. <Static id="caption7" text="(* 100,000건 이상 조회가 안됩니다. 계좌와 가수금일자를 선택하신 후 조회 해 주세요.)" position="absolute 85 99 585 112"/>
  89. <Static id="caption1" text="합 계" class="cell_1" position="absolute 877 759 977 782" anchor="right bottom"/>
  90. </Layout>
  91. </Layouts>
  92. <Objects>
  93. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  94. <ColumnInfo>
  95. <Column id="instcd" type="STRING" size="256"/>
  96. <Column id="gadate_fr" type="STRING" size="256"/>
  97. <Column id="gadate_to" type="STRING" size="256"/>
  98. <Column id="aactno" type="STRING" size="256"/>
  99. <Column id="aactcd" type="STRING" size="256"/>
  100. </ColumnInfo>
  101. <Rows>
  102. <Row>
  103. <Col id="instcd"/>
  104. <Col id="gadate_fr"/>
  105. <Col id="gadate_to"/>
  106. <Col id="aactno"/>
  107. <Col id="aactcd"/>
  108. </Row>
  109. </Rows>
  110. </Dataset>
  111. <Dataset id="ds_main_maindatalist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  112. <ColumnInfo>
  113. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  114. <Column id="aactcd" type="STRING" size="256" sumtext="계좌코드"/>
  115. <Column id="gadate" type="STRING" size="256" sumtext="가수금일자"/>
  116. <Column id="gubun" type="STRING" size="256" sumtext="구분"/>
  117. <Column id="rmrk" type="STRING" size="256" sumtext="적요"/>
  118. <Column id="gaamt" type="STRING" size="256" sumtext="가수금"/>
  119. <Column id="janamt" type="STRING" size="256" sumtext="잔액"/>
  120. <Column id="sangflag" type="STRING" size="256" sumtext="상계여부"/>
  121. <Column id="line" type="STRING" size="256" sumtext="NO."/>
  122. <Column id="seqline" type="STRING" size="256" sumtext="SEQ NO."/>
  123. <Column id="ymdwrite" type="STRING" size="256" sumtext="전표일자"/>
  124. <Column id="unslno" type="STRING" size="256" sumtext="미결전표번호"/>
  125. <Column id="sanctslipno" type="STRING" size="256" sumtext="승인전표번호"/>
  126. <Column id="aactno" type="STRING" size="256" sumtext="계좌번호"/>
  127. <Column id="seqwrite" type="STRING" size="256" sumtext="구버전번호"/>
  128. <Column id="rowcnt" type="STRING" size="256" sumtext="row cnt"/>
  129. <Column id="slipcmt" type="STRING" size="256" sumtext="전표적요"/>
  130. </ColumnInfo>
  131. </Dataset>
  132. <Dataset id="ds_init_bankinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  133. <ColumnInfo>
  134. <Column id="aactcd" type="STRING" size="256" sumtext="계좌코드"/>
  135. <Column id="aactno" type="STRING" size="256" sumtext="계좌번호"/>
  136. </ColumnInfo>
  137. </Dataset>
  138. <Dataset id="ds_hidden_apsl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  139. <ColumnInfo>
  140. <Column id="sumjanamt" type="STRING" size="256"/>
  141. </ColumnInfo>
  142. <Rows>
  143. <Row/>
  144. </Rows>
  145. </Dataset>
  146. </Objects>
  147. <Bind>
  148. <BindItem id="item0" compid="grp_sea.cmb_aactno" propid="value" datasetid="ds_send" columnid=""/>
  149. <BindItem id="item1" compid="grp_sea.opt_aactcd" propid="value" datasetid="ds_send" columnid="aactcd"/>
  150. <BindItem id="item2" compid="grp_sea.ipt_gadate_to" propid="value" datasetid="ds_send" columnid="gadate_to"/>
  151. <BindItem id="item3" compid="grp_sea.ipt_gadate_fr" propid="value" datasetid="ds_send" columnid="gadate_fr"/>
  152. <BindItem id="item5" compid="cpt_gaamtsum" propid="value" datasetid="ds_hidden_apsl" columnid="sumjanamt"/>
  153. </Bind>
  154. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  155. * System Name :
  156. * Job Name :
  157. * Creator :
  158. * Make Date : 2017-06-19
  159. * Description :
  160. *---------------------------------------------------------------------------------------
  161. * Modify Date Modifier Modify Description
  162. *---------------------------------------------------------------------------------------
  163. * 2017-06-19 Live Converter TF->XP
  164. *
  165. *---------------------------------------------------------------------------------------
  166. ****************************************************************************************/
  167. include "com_commonxp::comm_main.xjs";
  168. include "mis_miscommonxp::MIS.xjs";
  169. function SMRAR00300_oninit(obj:Form, e:InitEventInfo)
  170. {
  171. frmf_initForm(obj);
  172. }
  173. function SMRAR00300_onload(obj:Form, e:LoadEventInfo)
  174. {
  175. grdf_initGrid(grd_main);
  176. grdf_setRowTypeIcon(grd_main, 0);
  177. var fdate = utlf_getCurrentDate();
  178. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  179. ds_send.setColumn(0, "gadate_fr", String(fdate).substr(0,4)+"0101" );
  180. ds_send.setColumn(0, "gadate_to", fdate);
  181. var oParam = {};
  182. oParam.id = "TRRAR00101";
  183. oParam.service = "accountinginfoapp.AccountingInfo";
  184. oParam.method = "reqGetAccountCdList";
  185. oParam.inds = "req=ds_send";
  186. oParam.outds = "ds_init_bankinfo=bankinfo";
  187. oParam.async = false;
  188. //oParam.callback = "cf_TRRAR00101";
  189. tranf_submit(oParam);
  190. frmf_addComboItem("grp_sea.cmb_aactno","--전체--","","above");
  191. grp_sea.cmb_aactno.index = 0;
  192. }
  193. function grp_sea_cmb_aactno_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  194. {
  195. ds_send.setColumn(0, "aactcd", obj.value);
  196. }
  197. function grp_sea_button2_onclick(obj:Button, e:ClickEventInfo)
  198. {
  199. var oParam = {};
  200. oParam.id = "TRRAR00301";
  201. oParam.service = "accountinginfoapp.AccountingInfo";
  202. oParam.method = "getSanggyeHistory";
  203. oParam.inds = "req=ds_send";
  204. oParam.outds = "ds_main_maindatalist=maindatalist";
  205. oParam.async = false;
  206. //oParam.callback = "cf_TRRAR00301";
  207. tranf_submit(oParam);
  208. ds_hidden_apsl.setColumn(0, "sumjanamt", ds_main_maindatalist.getSum("janamt"));
  209. }
  210. function ipt_excsave_onclick(obj:Button, e:ClickEventInfo)
  211. {
  212. misfSaveExcel(grd_main);
  213. }
  214. function button18_onclick(obj:Button, e:ClickEventInfo)
  215. {
  216. misfGridIUD(grd_main, "D");
  217. var cnt = 0;
  218. for ( var i = 0; i < ds_main_maindatalist.rowcount; i++ )
  219. {
  220. if ( ds_main_maindatalist.getRowType(i) == 8)
  221. {
  222. cnt = cnt + 1;
  223. }
  224. }
  225. if ( cnt > 1)
  226. {
  227. alert("동시에 여러건을 선택해서 취소 처리 할 수 없습니다.\n\n한 건만 선택해 주세요.");
  228. grp_sea.button2.click();
  229. return false;
  230. }
  231. if ( String(ds_main_maindatalist.getColumn(ds_main_maindatalist.rowposition, "ymdwrite")).length == 0 || String(ds_main_maindatalist.getColumn(ds_main_maindatalist.rowposition, "sanctslipno")).length== 0 )
  232. {
  233. alert("전표작성일자 또는 승인전표번호가 없는 상계건은 이 화면에서 취소 처리 할 수 없습니다.");
  234. grp_sea.button2.click();
  235. return false;
  236. }
  237. rtn = sysf_messageBox(" 다음 전표를 삭제하고, 해당건의 가수금 상계를 취소하시겠습니까? " + "\n\n" +
  238. " - 전표작성일자 : "+ ds_main_maindatalist.getColumn(ds_main_maindatalist.rowposition, "ymdwrite") + "\n" +
  239. " - 전표번호 : "+ ds_main_maindatalist.getColumn(ds_main_maindatalist.rowposition, "sanctslipno") + "\n\n" +
  240. "[주의사항]" + "\n\n" +
  241. " 먼저 전표발의등록 프로그램을 통해 해당 전표가 작업 대상 전표의 내용이 맞는지 반드시 확인부탁드립니다. " + "\n\n" +
  242. "혹시 해당 전표일자, 전표번호가 다른 내용의 전표이면 작업을 중단하시고, 전산실 담당자에게 연락부탁드립니다. " ,"Q99");
  243. if ( rtn == "6" )
  244. {
  245. var oParam = {};
  246. oParam.id = "TXRAR00301";
  247. oParam.service = "accountinginfoapp.AccountingInfo";
  248. oParam.method = "reqExeSanggyeCancel";
  249. oParam.inds = "req=ds_main_maindatalist:u";
  250. oParam.outds = "ds_=unsllist";
  251. oParam.async = false;
  252. //oParam.callback = "cf_TXRAR00301";
  253. tranf_submit(oParam);
  254. grp_sea.button2.click();
  255. }
  256. else
  257. {
  258. grp_sea.button2.click();
  259. }
  260. }
  261. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  262. {
  263. var objDOM = rptf_createDOM();
  264. rptf_setNodeListToDOM(objDOM, "/root/main/maindatalist", ds_main_maindatalist);
  265. var objParam = new Object();
  266. objParam.xml_data_XML1 = objDOM.documentElement.source;
  267. var option = null;
  268. rptf_exeReportPreview30(["SMRAR00301"],[objParam], option);
  269. }
  270. ]]></Script>
  271. </Form>
  272. </FDL>