SPRSD08401_세금계산서중복조회.xfdl 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRSD08401" position="absolute 0 0 706 454" titletext="임차장비 리스트" oninit="SPRSD08401_oninit" onload="SPRSD08401_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="line1" class="line_10" position="absolute -1 30 699 36"/>
  8. <Grid id="grd_taxulist" taborder="1" binddataset="ds_main_taxulist" useinputpanel="false" position="absolute -1 35 699 422" autoenter="select" autofittype="col" cellsizingtype="col" oncelldblclick="grd_taxulist_oncelldblclick">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="24"/>
  13. <Column size="80"/>
  14. <Column size="80"/>
  15. <Column size="100"/>
  16. <Column size="150"/>
  17. <Column size="60"/>
  18. <Column size="120"/>
  19. <Column size="60"/>
  20. </Columns>
  21. <Rows>
  22. <Row size="24" band="head"/>
  23. <Row size="24"/>
  24. </Rows>
  25. <Band id="head">
  26. <Cell/>
  27. <Cell col="1" text="기준일자"/>
  28. <Cell col="2" text="작성일자"/>
  29. <Cell col="3" text="사업자등록번호"/>
  30. <Cell col="4" text="상호"/>
  31. <Cell col="5" text="대표자"/>
  32. <Cell col="6" text="총금액"/>
  33. <Cell col="7" text="중복건수"/>
  34. </Band>
  35. <Band id="body">
  36. <Cell celltype="head"/>
  37. <Cell col="1" displaytype="date" text="bind:basedd" mask="yyyy-MM" calendardisplaynulltype="nulltext"/>
  38. <Cell col="2" displaytype="date" text="bind:acptdd" mask="yyyy-MM" calendardisplaynulltype="nulltext"/>
  39. <Cell col="3" displaytype="date" text="bind:entrregno" calendardisplaynulltype="nulltext"/>
  40. <Cell col="4" text="bind:cmpynm" maskchar="-"/>
  41. <Cell col="5" text="bind:prsdnm"/>
  42. <Cell col="6" displaytype="number" text="bind:totamt"/>
  43. <Cell col="7" text="bind:cnt"/>
  44. </Band>
  45. </Format>
  46. </Formats>
  47. </Grid>
  48. <Static id="caption1" text="국세청 세금계산서 중복리스트" class="tit_2" position="absolute 0 -1 240 20"/>
  49. <Button id="button3" taborder="2" text="Excel 저장" class="btn5" position="absolute 621 11 696 30" onclick="button3_onclick"/>
  50. <Shape id="line32" class="line_6" position="absolute 0 421 700 427"/>
  51. <Button id="btn_cancel" taborder="3" text="닫기" class="btn4" position="absolute 643 425 699 447" onclick="btn_cancel_onclick"/>
  52. </Layout>
  53. </Layouts>
  54. <Objects>
  55. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  56. <Dataset id="ds_main_taxulist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  57. <ColumnInfo>
  58. <Column id="basedd" type="STRING" size="256" sumtext="기준일자"/>
  59. <Column id="acptdd" type="STRING" size="256" sumtext="작성일자(검수일자)"/>
  60. <Column id="entrregno" type="STRING" size="256" sumtext="사업자등록번호"/>
  61. <Column id="cmpynm" type="STRING" size="256" sumtext="상호"/>
  62. <Column id="prsdnm" type="STRING" size="256" sumtext="대표자"/>
  63. <Column id="totamt" type="STRING" size="256" sumtext="합계금액"/>
  64. <Column id="cnt" type="STRING" size="256" sumtext="중복건수"/>
  65. </ColumnInfo>
  66. </Dataset>
  67. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  68. <ColumnInfo>
  69. <Column id="instcd" type="STRING" size="256"/>
  70. <Column id="ubasedd" type="STRING" size="256"/>
  71. </ColumnInfo>
  72. <Rows>
  73. <Row>
  74. <Col id="instcd"/>
  75. <Col id="ubasedd"/>
  76. </Row>
  77. </Rows>
  78. </Dataset>
  79. </Objects>
  80. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  81. * System Name :
  82. * Job Name :
  83. * Creator :
  84. * Make Date : 2017-06-19
  85. * Description :
  86. *---------------------------------------------------------------------------------------
  87. * Modify Date Modifier Modify Description
  88. *---------------------------------------------------------------------------------------
  89. * 2017-06-19 Live Converter TF->XP
  90. *
  91. *---------------------------------------------------------------------------------------
  92. ****************************************************************************************/
  93. include "com_commonxp::comm_main.xjs";
  94. include "mis_miscommonxp::MIS.xjs";
  95. function SPRSD08401_oninit(obj:Form, e:InitEventInfo)
  96. {
  97. frmf_initForm(obj);
  98. }
  99. function SPRSD08401_onload(obj:Form, e:LoadEventInfo)
  100. {
  101. grdf_initGrid(grd_taxulist);
  102. try
  103. {
  104. ds_init.copyData(arg_ds_init);
  105. }
  106. catch(e)
  107. {
  108. }
  109. fInitialize();
  110. }
  111. function fInitialize()
  112. {
  113. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  114. ds_send.setColumn(0, "ubasedd", ds_init.getColumn(0, "ubasedd"));
  115. misfGridInit(grd_taxulist);
  116. var oParam = {};
  117. oParam.id = "TRRSC08402";
  118. oParam.service = "purcbaseapp.PurcBaseMngt";
  119. oParam.method = "reqGetProTaxLst";
  120. oParam.inds = "req=ds_send";
  121. oParam.outds = "ds_main_taxulist=taxulist";
  122. oParam.async = false;
  123. //oParam.callback = "cf_TRRSC08402";
  124. tranf_submit(oParam);
  125. }
  126. function grd_taxulist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  127. {
  128. var basedd = ds_main_taxulist.getColumn(ds_main_taxulist.rowposition, "basedd");
  129. var acptdd = ds_main_taxulist.getColumn(ds_main_taxulist.rowposition, "acptdd");
  130. var entrregno = ds_main_taxulist.getColumn(ds_main_taxulist.rowposition, "entrregno");
  131. var totamt = ds_main_taxulist.getColumn(ds_main_taxulist.rowposition, "totamt");
  132. var receiveref = eval("opener.ds_copynode");
  133. if (frmf_checkOpener())
  134. {
  135. opener.dsf_makeValue(receiveref, "para_basedd", "string", basedd, 0);
  136. opener.dsf_makeValue(receiveref, "para_acptdd", "string", acptdd, 0);
  137. opener.dsf_makeValue(receiveref, "para_entrregno", "string", entrregno, 0);
  138. opener.dsf_makeValue(receiveref, "para_totamt", "string", totamt, 0);
  139. opener.dsf_makeValue(receiveref, "para_flag", "string", "F", 0);
  140. }
  141. else
  142. {
  143. var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
  144. }
  145. this.close();
  146. }
  147. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  148. {
  149. this.close();
  150. }
  151. function button3_onclick(obj:Button, e:ClickEventInfo)
  152. {
  153. if( ds_main_taxulist.rowcount > 0)
  154. {
  155. grdf_exportExcel(grd_taxulist, "세금계산서 검증리스트_" + utlf_getCurrentDate(), "세금계산서 검증", "true", "", "");
  156. }
  157. else
  158. {
  159. sysf_messageBox("저장 데이터가","I004");
  160. }
  161. }
  162. ]]></Script>
  163. </Form>
  164. </FDL>