Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

387 строки
19 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Created with Jaspersoft Studio version 6.17.0.final using JasperReports Library version 6.17.0-6d93193241dd8cc42629e188b94f9e0bc5722efd -->
  3. <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="StockTakeVarianceReport" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="f00b4a24-af11-4263-9e82-3966acf01017">
  4. <parameter name="stockSubCategory" class="java.lang.String">
  5. <defaultValueExpression><![CDATA["stockSubCategory"]]></defaultValueExpression>
  6. </parameter>
  7. <parameter name="stockCategory" class="java.lang.String">
  8. <defaultValueExpression><![CDATA["stockCategory"]]></defaultValueExpression>
  9. </parameter>
  10. <parameter name="itemNo" class="java.lang.String">
  11. <defaultValueExpression><![CDATA["itemCode"]]></defaultValueExpression>
  12. </parameter>
  13. <parameter name="year" class="java.lang.String"/>
  14. <parameter name="reportDate" class="java.lang.String"/>
  15. <parameter name="reportTime" class="java.lang.String"/>
  16. <parameter name="storeLocation" class="java.lang.String">
  17. <parameterDescription><![CDATA["storeLocation"]]></parameterDescription>
  18. </parameter>
  19. <parameter name="balanceFilterStart" class="java.lang.String">
  20. <parameterDescription><![CDATA["balanceFilterStart"]]></parameterDescription>
  21. </parameter>
  22. <parameter name="balanceFilterEnd" class="java.lang.String">
  23. <parameterDescription><![CDATA["balanceFilterEnd"]]></parameterDescription>
  24. </parameter>
  25. <parameter name="lastInDateStart" class="java.lang.String">
  26. <parameterDescription><![CDATA["lastInDateStart"]]></parameterDescription>
  27. </parameter>
  28. <parameter name="lastOutDateStart" class="java.lang.String">
  29. <parameterDescription><![CDATA["lastOutDateStart"]]></parameterDescription>
  30. </parameter>
  31. <parameter name="lastInDateEnd" class="java.lang.String">
  32. <parameterDescription><![CDATA["lastInDateStart"]]></parameterDescription>
  33. </parameter>
  34. <parameter name="lastOutDateEnd" class="java.lang.String">
  35. <parameterDescription><![CDATA["lastOutDateStart"]]></parameterDescription>
  36. </parameter>
  37. <queryString>
  38. <![CDATA[]]>
  39. </queryString>
  40. <field name="stockSubCategory" class="java.lang.String"/>
  41. <field name="itemNo" class="java.lang.String"/>
  42. <field name="itemName" class="java.lang.String"/>
  43. <field name="unitOfMeasure" class="java.lang.String"/>
  44. <field name="lotNo" class="java.lang.String"/>
  45. <field name="expiryDate" class="java.lang.String"/>
  46. <field name="openingBalance" class="java.lang.String"/>
  47. <field name="cumStockIn" class="java.lang.String"/>
  48. <field name="cumStockOut" class="java.lang.String"/>
  49. <field name="currentBookBalance" class="java.lang.String"/>
  50. <field name="totalCumStockIn" class="java.lang.String"/>
  51. <field name="totalOpeningBalance" class="java.lang.String"/>
  52. <field name="totalCumStockOut" class="java.lang.String"/>
  53. <field name="totalCurrentBalance" class="java.lang.String"/>
  54. <field name="lastMovementDate" class="java.lang.String"/>
  55. <field name="lastInDate" class="java.lang.String"/>
  56. <field name="storeLocation" class="java.lang.String"/>
  57. <field name="stockTakeQty" class="java.lang.String"/>
  58. <field name="variance" class="java.lang.String"/>
  59. <field name="variancePercentage" class="java.lang.String"/>
  60. <group name="Group1" keepTogether="true" preventOrphanFooter="true">
  61. <groupExpression><![CDATA[$F{itemNo}]]></groupExpression>
  62. <groupHeader>
  63. <band height="19">
  64. <textField textAdjust="StretchHeight">
  65. <reportElement x="10" y="0" width="579" height="18" uuid="89a0d4b3-860b-4fa9-b8b4-cb1d9a19b053"/>
  66. <textElement textAlignment="Left" verticalAlignment="Top" markup="styled">
  67. <font fontName="微軟正黑體" isBold="true"/>
  68. </textElement>
  69. <textFieldExpression><![CDATA[$F{itemNo}+" "+$F{itemName}+" "+$F{unitOfMeasure}]]></textFieldExpression>
  70. </textField>
  71. </band>
  72. </groupHeader>
  73. <groupFooter>
  74. <band height="20" splitType="Stretch">
  75. <property name="com.jaspersoft.studio.unit.height" value="pixel"/>
  76. <printWhenExpression><![CDATA[$V{Group1_COUNT} > 1]]></printWhenExpression>
  77. <staticText>
  78. <reportElement isPrintRepeatedValues="false" x="271" y="0" width="72" height="18" isRemoveLineWhenBlank="true" printWhenGroupChanges="Group1" uuid="73e4fded-40e2-44d5-b789-34a33978ed5a">
  79. <property name="com.jaspersoft.studio.unit.y" value="px"/>
  80. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  81. <property name="com.jaspersoft.studio.unit.width" value="px"/>
  82. <printWhenExpression><![CDATA[$V{Group1_COUNT} > 1]]></printWhenExpression>
  83. </reportElement>
  84. <textElement textAlignment="Right" verticalAlignment="Middle">
  85. <font fontName="微軟正黑體" size="10"/>
  86. </textElement>
  87. <text><![CDATA[貨品總量:]]></text>
  88. </staticText>
  89. <textField textAdjust="StretchHeight" isBlankWhenNull="true">
  90. <reportElement isPrintRepeatedValues="false" x="344" y="0" width="64" height="18" isRemoveLineWhenBlank="true" printWhenGroupChanges="Group1" uuid="2a6656d2-98da-4b90-9c3b-e26f05ac07e2">
  91. <printWhenExpression><![CDATA[$V{Group1_COUNT} > 1]]></printWhenExpression>
  92. </reportElement>
  93. <textElement textAlignment="Right" verticalAlignment="Middle">
  94. <font fontName="微軟正黑體"/>
  95. </textElement>
  96. <textFieldExpression><![CDATA[$F{totalCurrentBalance}]]></textFieldExpression>
  97. </textField>
  98. <line>
  99. <reportElement isPrintRepeatedValues="false" x="0" y="19" width="799" height="1" isRemoveLineWhenBlank="true" printWhenGroupChanges="Group1" uuid="bb5e28fc-6ecd-4fd2-aef9-0729f29b8154">
  100. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  101. <printWhenExpression><![CDATA[$V{Group1_COUNT} > 1]]></printWhenExpression>
  102. </reportElement>
  103. </line>
  104. </band>
  105. <band height="1">
  106. <printWhenExpression><![CDATA[$V{Group1_COUNT} == 1]]></printWhenExpression>
  107. <line>
  108. <reportElement isPrintRepeatedValues="false" x="0" y="0" width="799" height="1" isRemoveLineWhenBlank="true" uuid="3bfeae91-19a7-4048-853e-2986b230ddb6">
  109. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  110. <printWhenExpression><![CDATA[$V{Group1_COUNT} == 1]]></printWhenExpression>
  111. </reportElement>
  112. </line>
  113. </band>
  114. </groupFooter>
  115. </group>
  116. <background>
  117. <band splitType="Stretch"/>
  118. </background>
  119. <pageHeader>
  120. <band height="58" splitType="Stretch">
  121. <line>
  122. <reportElement x="0" y="57" width="799" height="1" uuid="f513c3ec-7fbf-471f-a2e4-253a28919190">
  123. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  124. </reportElement>
  125. </line>
  126. <line>
  127. <reportElement x="0" y="53" width="799" height="1" uuid="351a15c1-61e4-4af3-bb48-dea07b8df3c2">
  128. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  129. </reportElement>
  130. </line>
  131. <staticText>
  132. <reportElement x="290" y="0" width="220" height="23" uuid="ae59d134-591e-4212-b594-6388bc15e629">
  133. <property name="com.jaspersoft.studio.unit.y" value="px"/>
  134. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  135. </reportElement>
  136. <textElement textAlignment="Center" verticalAlignment="Middle">
  137. <font fontName="微軟正黑體" size="16" isBold="true"/>
  138. </textElement>
  139. <text><![CDATA[庫存盤點報告]]></text>
  140. </staticText>
  141. <textField>
  142. <reportElement x="717" y="0" width="30" height="23" uuid="2b671e24-ab30-4c72-8d3c-0e68a7b7cb36">
  143. <property name="com.jaspersoft.studio.unit.width" value="px"/>
  144. </reportElement>
  145. <textElement textAlignment="Center" verticalAlignment="Middle"/>
  146. <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
  147. </textField>
  148. <textField>
  149. <reportElement x="100" y="30" width="335" height="23" uuid="d88b718c-786a-44b6-bdce-99e483bbe1f6"/>
  150. <textElement verticalAlignment="Middle">
  151. <font fontName="微軟正黑體" size="12" isBold="true"/>
  152. </textElement>
  153. <textFieldExpression><![CDATA[$P{reportDate}]]></textFieldExpression>
  154. </textField>
  155. <textField>
  156. <reportElement x="708" y="29" width="90" height="23" uuid="d117e97e-8158-4aef-9e48-d19456c4073c"/>
  157. <textElement textAlignment="Left" verticalAlignment="Middle">
  158. <font fontName="微軟正黑體" size="12" isBold="true"/>
  159. </textElement>
  160. <textFieldExpression><![CDATA[$P{reportTime}]]></textFieldExpression>
  161. </textField>
  162. <staticText>
  163. <reportElement x="747" y="0" width="21" height="23" uuid="5a1b4b58-b7b1-48c9-b229-7e96392c6425">
  164. <property name="com.jaspersoft.studio.unit.y" value="px"/>
  165. <property name="com.jaspersoft.studio.unit.width" value="px"/>
  166. </reportElement>
  167. <textElement textAlignment="Center" verticalAlignment="Middle">
  168. <font fontName="微軟正黑體" size="12"/>
  169. </textElement>
  170. <text><![CDATA[/]]></text>
  171. </staticText>
  172. <textField evaluationTime="Report">
  173. <reportElement x="768" y="0" width="30" height="23" uuid="5b03c2ae-7466-4029-8d79-d3ea8f128e06">
  174. <property name="com.jaspersoft.studio.unit.width" value="px"/>
  175. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  176. </reportElement>
  177. <textElement textAlignment="Center" verticalAlignment="Middle"/>
  178. <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
  179. </textField>
  180. <staticText>
  181. <reportElement x="640" y="29" width="68" height="23" uuid="3741c716-b76a-442a-a4f8-0152853941d5">
  182. <property name="com.jaspersoft.studio.unit.y" value="px"/>
  183. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  184. </reportElement>
  185. <textElement textAlignment="Left" verticalAlignment="Middle">
  186. <font fontName="微軟正黑體" size="12" isBold="true"/>
  187. </textElement>
  188. <text><![CDATA[報告時間:]]></text>
  189. </staticText>
  190. <staticText>
  191. <reportElement x="10" y="30" width="90" height="23" uuid="0628b331-5736-4f93-bed3-2278011456aa">
  192. <property name="com.jaspersoft.studio.unit.y" value="px"/>
  193. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  194. </reportElement>
  195. <textElement textAlignment="Left" verticalAlignment="Middle">
  196. <font fontName="微軟正黑體" size="12" isBold="true"/>
  197. </textElement>
  198. <text><![CDATA[報告日期:]]></text>
  199. </staticText>
  200. <staticText>
  201. <reportElement x="677" y="0" width="40" height="23" uuid="db6e3fb3-b375-497b-bfc2-1795ec7ecefb">
  202. <property name="com.jaspersoft.studio.unit.y" value="px"/>
  203. <property name="com.jaspersoft.studio.unit.width" value="px"/>
  204. </reportElement>
  205. <textElement textAlignment="Center" verticalAlignment="Middle">
  206. <font fontName="微軟正黑體" size="12"/>
  207. </textElement>
  208. <text><![CDATA[頁數]]></text>
  209. </staticText>
  210. </band>
  211. </pageHeader>
  212. <columnHeader>
  213. <band height="20">
  214. <staticText>
  215. <reportElement isPrintRepeatedValues="false" x="10" y="1" width="118" height="18" isPrintInFirstWholeBand="true" uuid="12b01171-4800-444d-b50a-e9b204f526a7">
  216. <property name="com.jaspersoft.studio.unit.y" value="px"/>
  217. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  218. <property name="com.jaspersoft.studio.unit.width" value="px"/>
  219. </reportElement>
  220. <textElement textAlignment="Left" verticalAlignment="Middle">
  221. <font fontName="微軟正黑體" size="10"/>
  222. </textElement>
  223. <text><![CDATA[批號]]></text>
  224. </staticText>
  225. <staticText>
  226. <reportElement isPrintRepeatedValues="false" x="130" y="1" width="98" height="18" isPrintInFirstWholeBand="true" uuid="8d6b48f0-38f2-45b9-b306-9e7c81b99d5f">
  227. <property name="com.jaspersoft.studio.unit.y" value="px"/>
  228. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  229. <property name="com.jaspersoft.studio.unit.width" value="px"/>
  230. </reportElement>
  231. <textElement textAlignment="Center" verticalAlignment="Middle">
  232. <font fontName="微軟正黑體" size="10"/>
  233. </textElement>
  234. <text><![CDATA[到期日]]></text>
  235. </staticText>
  236. <staticText>
  237. <reportElement isPrintRepeatedValues="false" x="344" y="1" width="64" height="18" isPrintInFirstWholeBand="true" uuid="38b97df1-2013-4b2d-a48d-06015c159953">
  238. <property name="com.jaspersoft.studio.unit.y" value="px"/>
  239. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  240. <property name="com.jaspersoft.studio.unit.width" value="px"/>
  241. </reportElement>
  242. <textElement textAlignment="Right" verticalAlignment="Middle">
  243. <font fontName="微軟正黑體" size="10"/>
  244. </textElement>
  245. <text><![CDATA[現存存量]]></text>
  246. </staticText>
  247. <staticText>
  248. <reportElement isPrintRepeatedValues="false" x="228" y="1" width="110" height="18" isPrintInFirstWholeBand="true" uuid="e95a755d-4ecb-4900-ac9a-3a6e3b9b3470">
  249. <property name="com.jaspersoft.studio.unit.y" value="px"/>
  250. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  251. <property name="com.jaspersoft.studio.unit.width" value="px"/>
  252. </reportElement>
  253. <textElement textAlignment="Center" verticalAlignment="Middle">
  254. <font fontName="微軟正黑體" size="10"/>
  255. </textElement>
  256. <text><![CDATA[存貨位置]]></text>
  257. </staticText>
  258. <staticText>
  259. <reportElement isPrintRepeatedValues="false" x="688" y="1" width="110" height="18" isPrintInFirstWholeBand="true" uuid="12a99c2d-6eb7-44c3-b442-37a89be3fe15">
  260. <property name="com.jaspersoft.studio.unit.y" value="px"/>
  261. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  262. <property name="com.jaspersoft.studio.unit.width" value="px"/>
  263. </reportElement>
  264. <textElement textAlignment="Center" verticalAlignment="Middle">
  265. <font fontName="微軟正黑體" size="10"/>
  266. </textElement>
  267. <text><![CDATA[最後出入倉日期]]></text>
  268. </staticText>
  269. <staticText>
  270. <reportElement isPrintRepeatedValues="false" x="558" y="1" width="100" height="18" isPrintInFirstWholeBand="true" uuid="921c16b3-172b-43b9-a090-24d2ee88a1b2">
  271. <property name="com.jaspersoft.studio.unit.y" value="px"/>
  272. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  273. <property name="com.jaspersoft.studio.unit.width" value="px"/>
  274. </reportElement>
  275. <textElement textAlignment="Right" verticalAlignment="Middle">
  276. <font fontName="微軟正黑體" size="10"/>
  277. </textElement>
  278. <text><![CDATA[盤盈虧百分比]]></text>
  279. </staticText>
  280. <staticText>
  281. <reportElement isPrintRepeatedValues="false" x="481" y="1" width="74" height="18" isPrintInFirstWholeBand="true" uuid="5dfc210f-b576-472b-a8a2-9db870c19b92">
  282. <property name="com.jaspersoft.studio.unit.y" value="px"/>
  283. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  284. <property name="com.jaspersoft.studio.unit.width" value="px"/>
  285. </reportElement>
  286. <textElement textAlignment="Right" verticalAlignment="Middle">
  287. <font fontName="微軟正黑體" size="10"/>
  288. </textElement>
  289. <text><![CDATA[盤盈虧]]></text>
  290. </staticText>
  291. <staticText>
  292. <reportElement isPrintRepeatedValues="false" x="408" y="1" width="72" height="18" isPrintInFirstWholeBand="true" uuid="1590e6c1-5f5a-46ca-84ae-a45e2d4c5a0b">
  293. <property name="com.jaspersoft.studio.unit.y" value="px"/>
  294. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  295. <property name="com.jaspersoft.studio.unit.width" value="px"/>
  296. </reportElement>
  297. <textElement textAlignment="Right" verticalAlignment="Middle">
  298. <font fontName="微軟正黑體" size="10"/>
  299. </textElement>
  300. <text><![CDATA[盤點數]]></text>
  301. </staticText>
  302. <line>
  303. <reportElement isPrintRepeatedValues="false" x="0" y="19" width="800" height="1" isPrintInFirstWholeBand="true" uuid="8bdc6e64-fc14-4fee-bfd3-f2e68abdc606">
  304. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  305. </reportElement>
  306. </line>
  307. </band>
  308. </columnHeader>
  309. <detail>
  310. <band height="18" splitType="Stretch">
  311. <textField textAdjust="StretchHeight">
  312. <reportElement x="130" y="0" width="98" height="18" uuid="608e1ba1-d37b-492e-a6c5-c8e97dfaf14a">
  313. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  314. </reportElement>
  315. <textElement textAlignment="Center" verticalAlignment="Middle">
  316. <font fontName="微軟正黑體"/>
  317. </textElement>
  318. <textFieldExpression><![CDATA[$F{expiryDate}]]></textFieldExpression>
  319. </textField>
  320. <textField textAdjust="StretchHeight">
  321. <reportElement x="10" y="0" width="118" height="18" uuid="1d7293e1-dab1-473e-bdb9-f13cc2b29e19">
  322. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  323. <property name="com.jaspersoft.studio.unit.width" value="px"/>
  324. </reportElement>
  325. <textElement textAlignment="Left" verticalAlignment="Middle">
  326. <font fontName="微軟正黑體" size="10"/>
  327. </textElement>
  328. <textFieldExpression><![CDATA[$F{lotNo}]]></textFieldExpression>
  329. </textField>
  330. <textField textAdjust="StretchHeight">
  331. <reportElement x="344" y="0" width="64" height="18" uuid="48601d57-e240-4390-9ec7-71c77773ee86">
  332. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  333. </reportElement>
  334. <textElement textAlignment="Right" verticalAlignment="Middle">
  335. <font fontName="微軟正黑體"/>
  336. </textElement>
  337. <textFieldExpression><![CDATA[$F{currentBookBalance}]]></textFieldExpression>
  338. </textField>
  339. <textField textAdjust="StretchHeight">
  340. <reportElement x="228" y="0" width="110" height="18" uuid="f8664cfc-0eb6-497a-bce6-2171e3d9e43a">
  341. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  342. </reportElement>
  343. <textElement textAlignment="Center" verticalAlignment="Middle">
  344. <font fontName="微軟正黑體"/>
  345. </textElement>
  346. <textFieldExpression><![CDATA[$F{storeLocation}]]></textFieldExpression>
  347. </textField>
  348. <textField textAdjust="StretchHeight">
  349. <reportElement x="688" y="0" width="110" height="18" uuid="19641d4c-43f5-42ef-b76a-1efc06f9805a">
  350. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  351. </reportElement>
  352. <textElement textAlignment="Center" verticalAlignment="Middle">
  353. <font fontName="微軟正黑體"/>
  354. </textElement>
  355. <textFieldExpression><![CDATA[$F{lastMovementDate}]]></textFieldExpression>
  356. </textField>
  357. <textField textAdjust="StretchHeight">
  358. <reportElement x="408" y="0" width="72" height="18" uuid="02d11283-5166-45fd-a900-6ae62315ac0a">
  359. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  360. </reportElement>
  361. <textElement textAlignment="Right" verticalAlignment="Middle">
  362. <font fontName="微軟正黑體"/>
  363. </textElement>
  364. <textFieldExpression><![CDATA[$F{stockTakeQty}]]></textFieldExpression>
  365. </textField>
  366. <textField textAdjust="StretchHeight">
  367. <reportElement x="481" y="0" width="74" height="18" uuid="68b8a311-ac96-4df6-9b9f-fb0db60c8a2d">
  368. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  369. </reportElement>
  370. <textElement textAlignment="Right" verticalAlignment="Middle">
  371. <font fontName="微軟正黑體"/>
  372. </textElement>
  373. <textFieldExpression><![CDATA[$F{variance}]]></textFieldExpression>
  374. </textField>
  375. <textField textAdjust="StretchHeight">
  376. <reportElement x="558" y="0" width="100" height="18" uuid="c49f3615-0417-4724-a048-127fafce1d10">
  377. <property name="com.jaspersoft.studio.unit.height" value="px"/>
  378. </reportElement>
  379. <textElement textAlignment="Right" verticalAlignment="Middle">
  380. <font fontName="微軟正黑體"/>
  381. </textElement>
  382. <textFieldExpression><![CDATA[$F{variancePercentage}]]></textFieldExpression>
  383. </textField>
  384. </band>
  385. </detail>
  386. </jasperReport>