SMRAD03200_구매검수발송일별조회.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRAD03200" position="absolute 0 0 1196 800" titletext="구매검수발송일별조회" onload="SMRAD03200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="7" class="div_SA" position="absolute 0 25 1195 65" anchor="left top right"/>
  8. <Static id="caption6" text="구매검수발송일별조회" class="tit_1" position="absolute 0 0 180 25"/>
  9. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1126 35 1182 57" anchor="right" onclick="btn_search_onclick"/>
  10. <Shape id="line13" linetype="vertical" class="line_4" visible="false" position="absolute 1110 35 1116 57" anchor="right"/>
  11. <Shape id="line1" class="line_10" position="absolute 0 89 1195 95" anchor="left top right"/>
  12. <Combo id="cmb_instcd" taborder="2" class="combo_essential" enable="false" position="absolute 78 36 193 55"/>
  13. <Static id="caption2" text="기관 :" class="search_name" position="absolute 12 37 73 54"/>
  14. <Grid id="grd_grntpsn1" taborder="3" binddataset="ds_main_grnt_grntlist2" useinputpanel="false" position="absolute 0 94 1195 799" anchor="all">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="25" band="left"/>
  19. <Column size="106"/>
  20. <Column size="49"/>
  21. <Column size="107"/>
  22. <Column size="59"/>
  23. <Column size="76"/>
  24. <Column size="230"/>
  25. <Column size="58"/>
  26. <Column size="303"/>
  27. <Column size="156"/>
  28. </Columns>
  29. <Rows>
  30. <Row size="24" band="head"/>
  31. <Row size="24"/>
  32. </Rows>
  33. <Band id="head">
  34. <Cell/>
  35. <Cell col="1" colspan="2" text="계약일자" taborder="undefined"/>
  36. <Cell col="3" colspan="2" text="입고일자" taborder="undefined"/>
  37. <Cell col="5" colspan="2" text="품목계정" taborder="undefined"/>
  38. <Cell col="7" colspan="2" text="거래처" taborder="undefined"/>
  39. <Cell col="9" text="금액"/>
  40. </Band>
  41. <Band id="body">
  42. <Cell celltype="head" text="expr:currow+1"/>
  43. <Cell col="1" text="bind:kydate" mask="####-##-##"/>
  44. <Cell col="2" text="bind:kyseq"/>
  45. <Cell col="3" text="bind:ibgoymd" mask="####-##-##"/>
  46. <Cell col="4" text="bind:ibgoseq"/>
  47. <Cell col="5" text="bind:acctid"/>
  48. <Cell col="6" displaytype="text" text="bind:acntnm"/>
  49. <Cell col="7" text="bind:custcode"/>
  50. <Cell col="8" displaytype="text" text="bind:custnm"/>
  51. <Cell col="9" displaytype="number" text="bind:keumak"/>
  52. </Band>
  53. </Format>
  54. </Formats>
  55. </Grid>
  56. <Calendar id="ipt_unsldd" taborder="4" class="input_essential" position="absolute 345 36 460 55"/>
  57. <Static id="caption1" text="구매검수현황" class="tit_2" position="absolute 0 73 131 90"/>
  58. <Static id="caption4" text="총금액" position="absolute 917 69 962 89" anchor="right" style="font:Dotum,9,bold;"/>
  59. <MaskEdit id="input2" taborder="5" mask="(-)#,###" position="absolute 971 69 1110 88" anchor="right"/>
  60. <Static id="caption3" text="발송일 :" class="search_name" position="absolute 265 37 342 54"/>
  61. <Button id="btn_savegrntpsn1excel" taborder="6" text="엑셀저장" class="btn7" position="absolute 1115 67 1195 89" anchor="right" onclick="btn_savegrntpsn1excel_onclick"/>
  62. </Layout>
  63. </Layouts>
  64. <Objects>
  65. <Dataset id="ds_send_save_grntlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  66. <Dataset id="ds_custinfo_custlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  67. <ColumnInfo>
  68. <Column id="aactno" type="STRING" size="256"/>
  69. <Column id="bankcd" type="STRING" size="256"/>
  70. <Column id="depor" type="STRING" size="256"/>
  71. <Column id="custnm" type="STRING" size="256"/>
  72. </ColumnInfo>
  73. <Rows>
  74. <Row>
  75. <Col id="aactno"/>
  76. <Col id="bankcd"/>
  77. <Col id="depor"/>
  78. <Col id="custnm"/>
  79. </Row>
  80. </Rows>
  81. </Dataset>
  82. <Dataset id="ds_send_paydedu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  83. <ColumnInfo>
  84. <Column id="instcd" type="STRING" size="256"/>
  85. <Column id="fromdd" type="STRING" size="256"/>
  86. <Column id="todd" type="STRING" size="256"/>
  87. <Column id="totamt" type="STRING" size="256"/>
  88. </ColumnInfo>
  89. <Rows>
  90. <Row>
  91. <Col id="instcd"/>
  92. <Col id="fromdd"/>
  93. <Col id="todd"/>
  94. <Col id="totamt"/>
  95. </Row>
  96. </Rows>
  97. </Dataset>
  98. <Dataset id="ds_acntinfo_acntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  99. <ColumnInfo>
  100. <Column id="acntnm" type="STRING" size="256"/>
  101. </ColumnInfo>
  102. <Rows>
  103. <Row>
  104. <Col id="acntnm"/>
  105. </Row>
  106. </Rows>
  107. </Dataset>
  108. <Dataset id="ds_main_grnt_grntlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  109. <ColumnInfo>
  110. <Column id="kydate" type="STRING" size="256"/>
  111. <Column id="kyseq" type="STRING" size="256"/>
  112. <Column id="ibgoymd" type="STRING" size="256"/>
  113. <Column id="ibgoseq" type="STRING" size="256"/>
  114. <Column id="acctid" type="STRING" size="256"/>
  115. <Column id="acntnm" type="STRING" size="256"/>
  116. <Column id="custcode" type="STRING" size="256"/>
  117. <Column id="custnm" type="STRING" size="256"/>
  118. <Column id="keumak" type="STRING" size="256"/>
  119. </ColumnInfo>
  120. <Rows>
  121. <Row>
  122. <Col id="kydate"/>
  123. <Col id="kyseq"/>
  124. <Col id="ibgoymd"/>
  125. <Col id="ibgoseq"/>
  126. <Col id="acctid"/>
  127. <Col id="acntnm"/>
  128. <Col id="custcode"/>
  129. <Col id="custnm"/>
  130. <Col id="keumak"/>
  131. </Row>
  132. </Rows>
  133. </Dataset>
  134. <Dataset id="ds_hidden_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  135. <ColumnInfo>
  136. <Column id="pumno" type="STRING" size="256"/>
  137. </ColumnInfo>
  138. </Dataset>
  139. </Objects>
  140. <Bind>
  141. <BindItem id="item0" compid="cmb_instcd" propid="value" datasetid="ds_send_paydedu" columnid="instcd"/>
  142. <BindItem id="item1" compid="ipt_unsldd" propid="value" datasetid="ds_send_paydedu" columnid="fromdd"/>
  143. <BindItem id="item2" compid="input2" propid="value" datasetid="ds_send_paydedu" columnid="totamt"/>
  144. </Bind>
  145. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  146. * System Name :
  147. * Job Name :
  148. * Creator :
  149. * Make Date : 2017-12-04
  150. * Description :
  151. *---------------------------------------------------------------------------------------
  152. * Modify Date Modifier Modify Description
  153. *---------------------------------------------------------------------------------------
  154. * 2017-06-19 Live Converter TF->XP
  155. *
  156. *---------------------------------------------------------------------------------------
  157. ****************************************************************************************/
  158. //=======================================================================================
  159. // Lib Include
  160. //---------------------------------------------------------------------------------------
  161. include "com_commonxp::comm_main.xjs";
  162. include "mis_miscommonxp::MIS.xjs";
  163. include "mis_paybaseinfomngtxp::RWC001.xjs";
  164. include "mis_humtrafactmngtxp::RPB001.xjs";
  165. include "mis_miscommonxp::RAC001.xjs";
  166. include "mis_acntcommonxp::RAD001.xjs";
  167. //=======================================================================================
  168. // Global Form Variable
  169. //---------------------------------------------------------------------------------------
  170. var arErrorCode = new HashArray();
  171. //=======================================================================================
  172. // Function
  173. //---------------------------------------------------------------------------------------
  174. /*-**************************************************************************************
  175. * Argument : N/A
  176. * Description : 초기화
  177. ****************************************************************************************/
  178. function initialize(){
  179. misfGridInit(grd_grntpsn1);
  180. misfMsterDetailSet(grd_grntpsn1,null, "TRRAD03201" ,"Y");
  181. var curdate = utlf_getCurrentDate();
  182. cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  183. var deptcd = sysf_getUserInfo("dutplcecd");
  184. var deptnm = sysf_getUserInfo("dutplcenm");
  185. ds_send_paydedu.setColumn( 0, "fromdd", curdate);
  186. misfComboInstCdListMulti("cmb_instcd",utlf_getCurrentDate(),"","N");
  187. }
  188. //=======================================================================================
  189. // Event
  190. //---------------------------------------------------------------------------------------
  191. /****************************************************************************************
  192. * Components : Form
  193. * Description : 화면 처음 초기화시 폼초기화
  194. ****************************************************************************************/
  195. function SMRAD03200_onload(obj:Form, e:LoadEventInfo)
  196. {
  197. frmf_initForm(obj);
  198. //grdf_initGrid(grd_XXX);
  199. //grdf_setGridSort(grd_XXX);
  200. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  201. initialize();
  202. }
  203. /****************************************************************************************
  204. * Components : Button
  205. * Description : 조회
  206. ****************************************************************************************/
  207. function btn_search_onclick(obj:Button, e:ClickEventInfo) {
  208. misfMsterDetailRetrieve();
  209. var totamt = 0;
  210. var amt = 0;
  211. for (var i = 0; i < ds_main_grnt_grntlist2.rowcount; i++){
  212. amt = dsf_getColumnNullToEmpty(ds_main_grnt_grntlist2, i, "keumak");
  213. if (isNaN(amt) || amt == ""){
  214. amt = 0;
  215. }
  216. totamt = parseFloat(totamt) + parseFloat(amt);
  217. }
  218. ds_send_paydedu.setColumn( 0, "totamt", totamt);
  219. }
  220. /****************************************************************************************
  221. * Components : Button
  222. * Description : 엑셀저장
  223. ****************************************************************************************/
  224. function btn_savegrntpsn1excel_onclick(obj:Button, e:ClickEventInfo) {
  225. misfSaveExcel(grd_grntpsn1, "excel");
  226. }
  227. ]]></Script>
  228. </Form>
  229. </FDL>