SMLNP00600_소모분석자료.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLNP00600" position="absolute 0 0 1197 783" titletext="소모분석자료" oninit="SMLNP00600_oninit" onload="SMLNP00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="소모분석 자료관리" class="tit_1" position="absolute 0 0 224 23"/>
  8. <Button id="button11" taborder="1" text="출력" class="btn6" position="absolute 0 24 56 46" onclick="button11_onclick"/>
  9. <Button id="btn_reset" taborder="2" text="초기화" class="btn4" position="absolute 1127 24 1195 46" anchor="top right" onclick="btn_reset_onclick"/>
  10. <Shape id="line32" linetype="horizontal" class="line_6" position="absolute 0 45 1194 51" anchor="left top right"/>
  11. <Shape id="line1" class="line_10" position="absolute 0 109 1194 115" anchor="left top right"/>
  12. <Div id="group1" anchor="left top right" taborder="3" class="div_SA" position="absolute 0 49 1195 84">
  13. <Layouts>
  14. <Layout>
  15. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
  16. <Button id="btn_Ref" taborder="1" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="top right" onclick="group1_btn_Ref_onclick"/>
  17. <Static id="caption11" text="기준월 :" class="search_name" position="absolute 40 10 131 27"/>
  18. <Calendar id="input3" taborder="2" autoselect="true" autoskip="true" dateformat="yyyy-MM" editformat="yyyy-MM" class="input_default" position="absolute 125 8 215 27" mask="yyyy-mm" onchanged="group1_input3_onchanged"/>
  19. <Calendar id="input1" taborder="3" autoselect="true" autoskip="true" dateformat="yyyy-MM" editformat="yyyy-MM" class="input_default" position="absolute 245 8 335 27" mask="yyyy-mm" onchanged="group1_input1_onchanged"/>
  20. <Static id="caption8" text="~" position="absolute 222 8 234 28"/>
  21. </Layout>
  22. </Layouts>
  23. </Div>
  24. <Static id="caption3" text="소모분석리스트" class="tit_2" position="absolute 1 93 135 115"/>
  25. <Grid id="grd_usevallist" taborder="4" binddataset="ds_main_usevallist" useinputpanel="false" position="absolute 0 114 1194 754" autofittype="col" cellsizingtype="col" anchor="all">
  26. <Formats>
  27. <Format id="default">
  28. <Columns>
  29. <Column size="120"/>
  30. <Column size="55"/>
  31. <Column size="55"/>
  32. <Column size="55"/>
  33. <Column size="55"/>
  34. <Column size="55"/>
  35. <Column size="3"/>
  36. <Column size="120"/>
  37. <Column size="55"/>
  38. <Column size="55"/>
  39. <Column size="55"/>
  40. <Column size="55"/>
  41. <Column size="55"/>
  42. <Column size="3"/>
  43. <Column size="120"/>
  44. <Column size="55"/>
  45. <Column size="55"/>
  46. <Column size="55"/>
  47. <Column size="55"/>
  48. <Column size="55"/>
  49. </Columns>
  50. <Rows>
  51. <Row size="24" band="head"/>
  52. <Row size="24"/>
  53. </Rows>
  54. <Band id="head">
  55. <Cell text="핵종명"/>
  56. <Cell col="1" text="전월량"/>
  57. <Cell col="2" text="입고량"/>
  58. <Cell col="3" text="사용량"/>
  59. <Cell col="4" text="관리"/>
  60. <Cell col="5" text="잔량"/>
  61. <Cell col="6"/>
  62. <Cell col="7" text="핵종명"/>
  63. <Cell col="8" text="전월량"/>
  64. <Cell col="9" text="입고량"/>
  65. <Cell col="10" text="사용량"/>
  66. <Cell col="11" text="관리"/>
  67. <Cell col="12" text="잔량"/>
  68. <Cell col="13"/>
  69. <Cell col="14" text="핵종명"/>
  70. <Cell col="15" text="전월량"/>
  71. <Cell col="16" text="입고량"/>
  72. <Cell col="17" text="사용량"/>
  73. <Cell col="18" text="관리"/>
  74. <Cell col="19" text="잔량"/>
  75. </Band>
  76. <Band id="body">
  77. <Cell text="bind:itemnm"/>
  78. <Cell col="1" text="bind:bfcnt"/>
  79. <Cell col="2" text="bind:icnt"/>
  80. <Cell col="3" text="bind:ocnt"/>
  81. <Cell col="4" text="bind:mcnt"/>
  82. <Cell col="5" text="bind:scnt"/>
  83. <Cell col="6" text="bind:tab"/>
  84. <Cell col="7" text="bind:itemnm2"/>
  85. <Cell col="8" text="bind:bfcnt2"/>
  86. <Cell col="9" text="bind:icnt2"/>
  87. <Cell col="10" text="bind:ocnt2"/>
  88. <Cell col="11" text="bind:mcnt2"/>
  89. <Cell col="12" text="bind:scnt2"/>
  90. <Cell col="13" text="bind:tab2"/>
  91. <Cell col="14" text="bind:itemnm3"/>
  92. <Cell col="15" text="bind:bfcnt3"/>
  93. <Cell col="16" text="bind:icnt3"/>
  94. <Cell col="17" text="bind:ocnt3"/>
  95. <Cell col="18" text="bind:mcnt3"/>
  96. <Cell col="19" text="bind:scnt3"/>
  97. </Band>
  98. </Format>
  99. </Formats>
  100. </Grid>
  101. <Button id="btn_excel" taborder="5" text="엑셀저장" class="btn7" position="absolute 0 758 80 777" anchor="left bottom" onclick="btn_excel_onclick"/>
  102. </Layout>
  103. </Layouts>
  104. <Objects>
  105. <Dataset id="ds_main_usevallist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  106. <ColumnInfo>
  107. <Column id="itemnm" type="STRING"/>
  108. <Column id="bfcnt" type="STRING"/>
  109. <Column id="icnt" type="STRING"/>
  110. <Column id="ocnt" type="STRING"/>
  111. <Column id="mcnt" type="STRING"/>
  112. <Column id="scnt" type="STRING"/>
  113. <Column id="tab" type="STRING"/>
  114. <Column id="itemnm2" type="STRING"/>
  115. <Column id="bfcnt2" type="STRING"/>
  116. <Column id="icnt2" type="STRING"/>
  117. <Column id="ocnt2" type="STRING"/>
  118. <Column id="mcnt2" type="STRING"/>
  119. <Column id="scnt2" type="STRING"/>
  120. <Column id="tab2" type="STRING"/>
  121. <Column id="itemnm3" type="STRING"/>
  122. <Column id="bfcnt3" type="STRING"/>
  123. <Column id="icnt3" type="STRING"/>
  124. <Column id="ocnt3" type="STRING"/>
  125. <Column id="mcnt3" type="STRING"/>
  126. <Column id="scnt3" type="STRING"/>
  127. </ColumnInfo>
  128. </Dataset>
  129. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  130. <ColumnInfo>
  131. <Column id="srchym" type="STRING" size="256"/>
  132. <Column id="srchym2" type="STRING" size="256"/>
  133. <Column id="srchbdioflag" type="STRING" size="256"/>
  134. </ColumnInfo>
  135. <Rows>
  136. <Row>
  137. <Col id="srchym"/>
  138. <Col id="srchym2"/>
  139. <Col id="srchbdioflag"/>
  140. </Row>
  141. </Rows>
  142. </Dataset>
  143. </Objects>
  144. <Bind>
  145. <BindItem id="item0" compid="group1.input3" propid="value" datasetid="ds_send" columnid="srchym"/>
  146. <BindItem id="item1" compid="group1.input1" propid="value" datasetid="ds_send" columnid="srchym2"/>
  147. </Bind>
  148. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  149. * System Name :
  150. * Job Name :
  151. * Creator :
  152. * Make Date : 2015-05-01
  153. * Description :
  154. *---------------------------------------------------------------------------------------
  155. * Modify Date Modifier Modify Description
  156. *---------------------------------------------------------------------------------------
  157. * 2015-05-01 Live Converter TF->XP
  158. *
  159. *---------------------------------------------------------------------------------------
  160. ****************************************************************************************/
  161. include "com_commonxp::comm_main.xjs";
  162. function SMLNP00600_oninit(obj:Form, e:InitEventInfo)
  163. {
  164. frmf_initForm(obj);
  165. }
  166. function SMLNP00600_onload(obj:Form, e:LoadEventInfo)
  167. {
  168. grdf_initGrid(grd_usevallist);
  169. fSetInit();
  170. }
  171. function fSetInit()
  172. {
  173. ds_main_usevallist.clearData();
  174. var toDay = utlf_getCurrentDate();
  175. var toDays = toDay.substr(0,6)
  176. ds_send.setColumn(0, "srchbdioflag", "O");
  177. ds_send.setColumn(0, "srchym", toDays);
  178. ds_send.setColumn(0, "srchym2", toDays);
  179. }
  180. function group1_input3_onchanged(obj:Calendar, e:ChangeEventInfo)
  181. {
  182. ds_send.setColumn(0, "srchym", String(obj.value).substr(0,6));
  183. }
  184. function group1_input1_onchanged(obj:Calendar, e:ChangeEventInfo)
  185. {
  186. ds_send.setColumn(0, "srchym2", String(obj.value).substr(0,6));
  187. }
  188. function group1_btn_Ref_onclick(obj:Button, e:ClickEventInfo)
  189. {
  190. fGetUseValList();
  191. }
  192. function btn_reset_onclick(obj:Button, e:ClickEventInfo)
  193. {
  194. fSetInit();
  195. }
  196. function button11_onclick(obj:Button, e:ClickEventInfo)
  197. {
  198. fReportPrint();
  199. }
  200. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  201. {
  202. grdf_exportExcel(grd_usevallist, "", "", false, "", "", false);
  203. }
  204. function fGetUseValList()
  205. {
  206. var oParam = {};
  207. oParam.id = "TRLNP00501";
  208. oParam.service = "refprintmngtapp.NmedRefPrintMngt";
  209. oParam.method = "reqGetUseValList";
  210. oParam.inds = "cond=ds_send";
  211. oParam.outds = "ds_main_usevallist=getUseValList";
  212. oParam.async = false;
  213. //oParam.callback = "cf_TRLNP00501";
  214. tranf_submit(oParam);
  215. }
  216. function fReportPrint()
  217. {
  218. var objDOM = rptf_createDOM();
  219. rptf_setNodeListToDOM(objDOM, "/root/main/usevallist", ds_main_usevallist);
  220. rptf_setNodeListToDOM(objDOM, "/root/send", ds_send);
  221. var objParam = new Object();
  222. objParam.xml_data_XML1 = objDOM.documentElement.source;
  223. var option = "";
  224. rptf_exeReportPreview30(["RPLNP00600"],[objParam], option);
  225. }]]></Script>
  226. </Form>
  227. </FDL>