Преглед изворни кода

Merge remote-tracking branch 'origin/master'

master
CANCERYS\kw093 пре 11 часа
родитељ
комит
8a6524c7b4
8 измењених фајлова са 385 додато и 713 уклоњено
  1. +6
    -4
      src/main/java/com/ffii/fpsms/modules/report/service/ItemQcFailReportService.kt
  2. +44
    -32
      src/main/java/com/ffii/fpsms/modules/report/service/ReportService.kt
  3. +6
    -4
      src/main/java/com/ffii/fpsms/modules/report/service/SemiFGProductionAnalysisReportService.kt
  4. +6
    -4
      src/main/java/com/ffii/fpsms/modules/report/service/StockItemConsumptionTrendReportService.kt
  5. +79
    -218
      src/main/resources/jasper/ItemQCReport.jrxml
  6. +20
    -67
      src/main/resources/jasper/StockBalanceReport.jrxml
  7. +7
    -7
      src/main/resources/jasper/StockInTraceabilityReport.jrxml
  8. +217
    -377
      src/main/resources/jasper/StockLedgarReport.jrxml

+ 6
- 4
src/main/java/com/ffii/fpsms/modules/report/service/ItemQcFailReportService.kt Прегледај датотеку

@@ -19,13 +19,15 @@ open class ItemQcFailReportService(
val itemCodeSql = buildMultiValueLikeClause(itemCode, "it.code", "itemCode", args)

val lastInDateStartSql = if (!lastInDateStart.isNullOrBlank()) {
args["lastInDateStart"] = lastInDateStart
"AND sil.receiptDate >= :lastInDateStart"
val formattedDate = lastInDateStart.replace("/", "-")
args["lastInDateStart"] = formattedDate
"AND DATE(sil.receiptDate) >= DATE(:lastInDateStart)"
} else ""

val lastInDateEndSql = if (!lastInDateEnd.isNullOrBlank()) {
args["lastInDateEnd"] = lastInDateEnd
"AND sil.receiptDate < :lastInDateEnd"
val formattedDate = lastInDateEnd.replace("/", "-")
args["lastInDateEnd"] = formattedDate
"AND DATE(sil.receiptDate) <= DATE(:lastInDateEnd)"
} else ""

val sql = """


+ 44
- 32
src/main/java/com/ffii/fpsms/modules/report/service/ReportService.kt Прегледај датотеку

@@ -126,13 +126,15 @@ open class ReportService(
}
val lastOutDateStartSql = if (!lastOutDateStart.isNullOrBlank()) {
args["lastOutDateStart"] = lastOutDateStart
"AND DATE(IFNULL(dpor.RequiredDeliveryDate, do.estimatedArrivalDate)) >= :lastOutDateStart"
val formattedDate = lastOutDateStart.replace("/", "-")
args["lastOutDateStart"] = formattedDate
"AND DATE(IFNULL(dpor.RequiredDeliveryDate, do.estimatedArrivalDate)) >= DATE(:lastOutDateStart)"
} else ""
val lastOutDateEndSql = if (!lastOutDateEnd.isNullOrBlank()) {
args["lastOutDateEnd"] = lastOutDateEnd
"AND DATE(IFNULL(dpor.RequiredDeliveryDate, do.estimatedArrivalDate)) < :lastOutDateEnd"
val formattedDate = lastOutDateEnd.replace("/", "-")
args["lastOutDateEnd"] = formattedDate
"AND DATE(IFNULL(dpor.RequiredDeliveryDate, do.estimatedArrivalDate)) <= DATE(:lastOutDateEnd)"
} else ""
val sql = """
@@ -319,13 +321,15 @@ return result
}
val lastOutDateStartSql = if (!lastOutDateStart.isNullOrBlank()) {
args["lastOutDateStart"] = lastOutDateStart
"AND DATE(IFNULL(dpor.RequiredDeliveryDate, do.estimatedArrivalDate)) >= :lastOutDateStart"
val formattedDate = lastOutDateStart.replace("/", "-")
args["lastOutDateStart"] = formattedDate
"AND DATE(IFNULL(dpor.RequiredDeliveryDate, do.estimatedArrivalDate)) >= DATE(:lastOutDateStart)"
} else ""
val lastOutDateEndSql = if (!lastOutDateEnd.isNullOrBlank()) {
args["lastOutDateEnd"] = lastOutDateEnd
"AND DATE(IFNULL(dpor.RequiredDeliveryDate, do.estimatedArrivalDate)) < :lastOutDateEnd"
val formattedDate = lastOutDateEnd.replace("/", "-")
args["lastOutDateEnd"] = formattedDate
"AND DATE(IFNULL(dpor.RequiredDeliveryDate, do.estimatedArrivalDate)) <= DATE(:lastOutDateEnd)"
} else ""

val sql = """
@@ -510,15 +514,17 @@ fun searchMaterialStockOutTraceabilityReport(
}

val lastOutDateStartSql = if (!lastOutDateStart.isNullOrBlank()) {
args["lastOutDateStart"] = lastOutDateStart
"AND DATE(sol.endTime) >= :lastOutDateStart"
val formattedDate = lastOutDateStart.replace("/", "-")
args["lastOutDateStart"] = formattedDate
"AND DATE(sol.endTime) >= DATE(:lastOutDateStart)"
} else {
""
}

val lastOutDateEndSql = if (!lastOutDateEnd.isNullOrBlank()) {
args["lastOutDateEnd"] = lastOutDateEnd
"AND DATE(sol.endTime) < :lastOutDateEnd"
val formattedDate = lastOutDateEnd.replace("/", "-")
args["lastOutDateEnd"] = formattedDate
"AND DATE(sol.endTime) <= DATE(:lastOutDateEnd)"
} else {
""
}
@@ -703,13 +709,15 @@ fun searchMaterialStockOutTraceabilityReport(
val itemCodeSql = buildMultiValueLikeClause(itemCode, "it.code", "itemCode", args)
val lastInDateStartSql = if (!lastInDateStart.isNullOrBlank()) {
args["lastInDateStart"] = lastInDateStart
"AND sil.receiptDate >= :lastInDateStart"
val formattedDate = lastInDateStart.replace("/", "-")
args["lastInDateStart"] = formattedDate
"AND DATE(sil.receiptDate) >= DATE(:lastInDateStart)"
} else ""
val lastInDateEndSql = if (!lastInDateEnd.isNullOrBlank()) {
args["lastInDateEnd"] = lastInDateEnd
"AND sil.receiptDate < :lastInDateEnd"
val formattedDate = lastInDateEnd.replace("/", "-")
args["lastInDateEnd"] = formattedDate
"AND DATE(sil.receiptDate) <= DATE(:lastInDateEnd)"
} else ""

val sql = """
@@ -798,19 +806,19 @@ fun searchMaterialStockOutTraceabilityReport(
COALESCE(uc.code, '') as unitOfMeasure,
COALESCE(il.lotNo, sil.lotNo, '') as lotNo,
COALESCE(DATE_FORMAT(COALESCE(il.expiryDate, sil.expiryDate), '%Y-%m-%d'), '') as expiryDate,
CAST(ROUND(COALESCE(opening_bal.openingBalance, 0), 0) AS CHAR) as openingBalance,
CAST(ROUND(COALESCE(cum_in.cumStockIn, 0), 0) AS CHAR) as cumStockIn,
CAST(ROUND(COALESCE(cum_out.cumStockOut, 0), 0) AS CHAR) as cumStockOut,
CAST(ROUND(COALESCE(opening_bal.openingBalance, 0) + COALESCE(cum_in.cumStockIn, 0) - COALESCE(cum_out.cumStockOut, 0), 0) AS CHAR) as currentBalance,
FORMAT(ROUND(COALESCE(opening_bal.openingBalance, 0), 0), 0) as openingBalance,
FORMAT(ROUND(COALESCE(cum_in.cumStockIn, 0), 0), 0) as cumStockIn,
FORMAT(ROUND(COALESCE(cum_out.cumStockOut, 0), 0), 0) as cumStockOut,
FORMAT(ROUND(COALESCE(opening_bal.openingBalance, 0) + COALESCE(cum_in.cumStockIn, 0) - COALESCE(cum_out.cumStockOut, 0), 0), 0) as currentBalance,
'' as reOrderLevel,
'' as reOrderQty,
COALESCE(GROUP_CONCAT(DISTINCT wh.code ORDER BY wh.code SEPARATOR ', '), '') as storeLocation,
COALESCE(DATE_FORMAT(cum_in.lastInDate, '%Y-%m-%d'), '') as lastInDate,
COALESCE(DATE_FORMAT(cum_out.lastOutDate, '%Y-%m-%d'), '') as lastOutDate,
CAST(ROUND(SUM(COALESCE(opening_bal.openingBalance, 0)) OVER (PARTITION BY it.code), 0) AS CHAR) as totalOpeningBalance,
CAST(ROUND(SUM(COALESCE(cum_in.cumStockIn, 0)) OVER (PARTITION BY it.code), 0) AS CHAR) as totalCumStockIn,
CAST(ROUND(SUM(COALESCE(cum_out.cumStockOut, 0)) OVER (PARTITION BY it.code), 0) AS CHAR) as totalCumStockOut,
CAST(ROUND(SUM(COALESCE(opening_bal.openingBalance, 0) + COALESCE(cum_in.cumStockIn, 0) - COALESCE(cum_out.cumStockOut, 0)) OVER (PARTITION BY it.code), 0) AS CHAR) as totalCurrentBalance
FORMAT(ROUND(SUM(COALESCE(opening_bal.openingBalance, 0)) OVER (PARTITION BY it.code), 0), 0) as totalOpeningBalance,
FORMAT(ROUND(SUM(COALESCE(cum_in.cumStockIn, 0)) OVER (PARTITION BY it.code), 0), 0) as totalCumStockIn,
FORMAT(ROUND(SUM(COALESCE(cum_out.cumStockOut, 0)) OVER (PARTITION BY it.code), 0), 0) as totalCumStockOut,
FORMAT(ROUND(SUM(COALESCE(opening_bal.openingBalance, 0) + COALESCE(cum_in.cumStockIn, 0) - COALESCE(cum_out.cumStockOut, 0)) OVER (PARTITION BY it.code), 0), 0) as totalCurrentBalance
FROM inventory_lot il
LEFT JOIN items it ON il.itemId = it.id AND it.deleted = false
LEFT JOIN stock_in_line sil ON il.stockInLineId = sil.id AND sil.deleted = false
@@ -877,23 +885,27 @@ fun searchMaterialStockOutTraceabilityReport(
}
if (!lastInDateStart.isNullOrBlank()) {
args["lastInDateStart"] = lastInDateStart
havingConditions.add("(cum_in.lastInDate IS NULL OR cum_in.lastInDate >= :lastInDateStart)")
val formattedDate = lastInDateStart.replace("/", "-")
args["lastInDateStart"] = formattedDate
havingConditions.add("(cum_in.lastInDate IS NOT NULL AND DATE(cum_in.lastInDate) >= DATE(:lastInDateStart))")
}
if (!lastInDateEnd.isNullOrBlank()) {
args["lastInDateEnd"] = lastInDateEnd
havingConditions.add("(cum_in.lastInDate IS NULL OR cum_in.lastInDate < :lastInDateEnd)")
val formattedDate = lastInDateEnd.replace("/", "-")
args["lastInDateEnd"] = formattedDate
havingConditions.add("(cum_in.lastInDate IS NOT NULL AND DATE(cum_in.lastInDate) <= DATE(:lastInDateEnd))")
}
if (!lastOutDateStart.isNullOrBlank()) {
args["lastOutDateStart"] = lastOutDateStart
havingConditions.add("(cum_out.lastOutDate IS NULL OR cum_out.lastOutDate >= :lastOutDateStart)")
val formattedDate = lastOutDateStart.replace("/", "-")
args["lastOutDateStart"] = formattedDate
havingConditions.add("(cum_out.lastOutDate IS NOT NULL AND DATE(cum_out.lastOutDate) >= DATE(:lastOutDateStart))")
}
if (!lastOutDateEnd.isNullOrBlank()) {
args["lastOutDateEnd"] = lastOutDateEnd
havingConditions.add("(cum_out.lastOutDate IS NULL OR cum_out.lastOutDate < :lastOutDateEnd)")
val formattedDate = lastOutDateEnd.replace("/", "-")
args["lastOutDateEnd"] = formattedDate
havingConditions.add("(cum_out.lastOutDate IS NOT NULL AND DATE(cum_out.lastOutDate) <= DATE(:lastOutDateEnd))")
}
val finalSql = if (havingConditions.isNotEmpty()) {


+ 6
- 4
src/main/java/com/ffii/fpsms/modules/report/service/SemiFGProductionAnalysisReportService.kt Прегледај датотеку

@@ -107,13 +107,15 @@ class SemiFGProductionAnalysisReportService(
}
val lastOutDateStartSql = if (!lastOutDateStart.isNullOrBlank()) {
args["lastOutDateStart"] = lastOutDateStart
"AND DATE(sl.modified) >= :lastOutDateStart"
val formattedDate = lastOutDateStart.replace("/", "-")
args["lastOutDateStart"] = formattedDate
"AND DATE(sl.modified) >= DATE(:lastOutDateStart)"
} else ""
val lastOutDateEndSql = if (!lastOutDateEnd.isNullOrBlank()) {
args["lastOutDateEnd"] = lastOutDateEnd
"AND DATE(sl.modified) < :lastOutDateEnd"
val formattedDate = lastOutDateEnd.replace("/", "-")
args["lastOutDateEnd"] = formattedDate
"AND DATE(sl.modified) <= DATE(:lastOutDateEnd)"
} else ""

val sql = """


+ 6
- 4
src/main/java/com/ffii/fpsms/modules/report/service/StockItemConsumptionTrendReportService.kt Прегледај датотеку

@@ -122,13 +122,15 @@ class StockItemConsumptionTrendReportService(
}
val lastOutDateStartSql = if (!lastOutDateStart.isNullOrBlank()) {
args["lastOutDateStart"] = lastOutDateStart
"AND DATE(sl.modified) >= :lastOutDateStart"
val formattedDate = lastOutDateStart.replace("/", "-")
args["lastOutDateStart"] = formattedDate
"AND DATE(sl.modified) >= DATE(:lastOutDateStart)"
} else ""
val lastOutDateEndSql = if (!lastOutDateEnd.isNullOrBlank()) {
args["lastOutDateEnd"] = lastOutDateEnd
"AND DATE(sl.modified) < :lastOutDateEnd"
val formattedDate = lastOutDateEnd.replace("/", "-")
args["lastOutDateEnd"] = formattedDate
"AND DATE(sl.modified) <= DATE(:lastOutDateEnd)"
} else ""

val sql = """


+ 79
- 218
src/main/resources/jasper/ItemQCReport.jrxml Прегледај датотеку

@@ -52,77 +52,45 @@
<field name="remark" class="java.lang.String"/>
<field name="orderRefNo" class="java.lang.String"/>
<field name="stockSubCategory" class="java.lang.String"/>
<group name="Group1">
<groupExpression><![CDATA[$F{itemNo}]]></groupExpression>
<group name="Group1" keepTogether="true">
<groupHeader>
<band height="70">
<band height="44">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
<staticText>
<reportElement x="220" y="2" width="100" height="20" uuid="cef3d30b-3a1a-473b-8c64-7b5853249a2d">
<reportElement x="0" y="26" width="80" height="18" uuid="67fc8d08-74ed-4e63-af62-4bf566c2bea4">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center">
<font fontName="微軟正黑體" size="12"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[貨品名稱]]></text>
<text><![CDATA[到期日]]></text>
</staticText>
<staticText>
<reportElement x="140" y="2" width="80" height="20" uuid="5f174805-6b43-41ee-8ce2-31d24637691b">
<reportElement x="80" y="26" width="70" height="18" uuid="7db4a800-8573-408c-baad-f4f4885625c9">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center">
<font fontName="微軟正黑體" size="12"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[貨品編號]]></text>
<text><![CDATA[品質檢查類型]]></text>
</staticText>
<textField>
<reportElement x="0" y="22" width="140" height="20" uuid="c0b124cd-bcb0-4160-920d-9af8999d8193"/>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<textFieldExpression><![CDATA[$F{stockSubCategory}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="2" width="140" height="20" uuid="ebf23e1d-a6c6-4837-b745-4806da3b941d">
<reportElement x="150" y="26" width="160" height="18" uuid="f6036ff2-a00e-4809-bcb2-f4e86fb1ccf7">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<text><![CDATA[貨物子分類]]></text>
</staticText>
<textField>
<reportElement x="140" y="22" width="80" height="20" uuid="b5f95bb0-7462-4997-bc8e-e8da4e5e1b9b"/>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<textFieldExpression><![CDATA[$F{itemNo}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="220" y="22" width="100" height="20" uuid="5d1ed7c1-ae6d-4cac-8b9c-3108899c2360">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<textFieldExpression><![CDATA[$F{itemName}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="320" y="22" width="61" height="20" uuid="61320e5d-0621-47f0-889b-b3c5e40447c0">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top">
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{unitOfMeasure}]]></textFieldExpression>
</textField>
<text><![CDATA[品質檢查樣板]]></text>
</staticText>
<staticText>
<reportElement x="320" y="2" width="61" height="20" uuid="cbcb5f4c-23a5-4273-910d-c596bcb3c7f0">
<reportElement x="320" y="26" width="170" height="18" uuid="26c0ec07-f36c-4f9a-8b9c-5e485bdd501e">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
@@ -130,10 +98,10 @@
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[單位]]></text>
<text><![CDATA[品質問題點]]></text>
</staticText>
<staticText>
<reportElement x="0" y="52" width="70" height="18" uuid="a5f5f7b8-580b-4f1f-971d-b2a9619d570a">
<reportElement x="489" y="26" width="50" height="18" uuid="808b9adc-e79f-469b-89f8-a4d8035d0b02">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
@@ -141,10 +109,10 @@
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[批]]></text>
<text><![CDATA[批]]></text>
</staticText>
<staticText>
<reportElement x="70" y="52" width="90" height="18" uuid="67fc8d08-74ed-4e63-af62-4bf566c2bea4">
<reportElement x="539" y="26" width="50" height="18" uuid="7d8c7616-20d1-4081-853b-34bf90711d8f">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
@@ -152,10 +120,10 @@
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[到期日]]></text>
<text><![CDATA[瑕疵品數量]]></text>
</staticText>
<staticText>
<reportElement x="160" y="52" width="90" height="18" uuid="7db4a800-8573-408c-baad-f4f4885625c9">
<reportElement x="590" y="26" width="90" height="18" uuid="e36d0d94-9345-46d2-8fa5-604676255cba">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
@@ -163,10 +131,10 @@
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[品質檢查類型]]></text>
<text><![CDATA[備注]]></text>
</staticText>
<staticText>
<reportElement x="250" y="52" width="90" height="18" uuid="f6036ff2-a00e-4809-bcb2-f4e86fb1ccf7">
<reportElement x="680" y="26" width="120" height="18" uuid="8b11690e-d04c-4402-9436-dba241594b9a">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
@@ -174,10 +142,10 @@
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[品質檢查樣板]]></text>
<text><![CDATA[參考編號]]></text>
</staticText>
<staticText>
<reportElement x="340" y="52" width="130" height="18" uuid="26c0ec07-f36c-4f9a-8b9c-5e485bdd501e">
<reportElement x="110" y="4" width="50" height="18" uuid="f27a6aad-f877-4302-be33-a3448b7893b4">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
@@ -185,43 +153,39 @@
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[品質問題點]]></text>
<text><![CDATA[貨品名稱:]]></text>
</staticText>
<staticText>
<reportElement x="470" y="52" width="50" height="18" uuid="808b9adc-e79f-469b-89f8-a4d8035d0b02">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<textField textAdjust="StretchHeight">
<reportElement x="50" y="4" width="60" height="18" uuid="30ba81ba-6635-4ace-b1ef-d833d7593eb7">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<textElement verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[批量]]></text>
</staticText>
<staticText>
<reportElement x="520" y="52" width="50" height="18" uuid="7d8c7616-20d1-4081-853b-34bf90711d8f">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<textFieldExpression><![CDATA[$F{itemNo}]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight">
<reportElement x="160" y="4" width="440" height="18" uuid="c2dc8dba-6e83-4495-9ae2-e613123a104a">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<textElement verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[瑕疵品數量]]></text>
</staticText>
<staticText>
<reportElement x="570" y="52" width="60" height="18" uuid="e36d0d94-9345-46d2-8fa5-604676255cba">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<textFieldExpression><![CDATA[$F{itemName}]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight">
<reportElement x="641" y="4" width="159" height="18" uuid="62800ea8-2c56-47de-972f-30f55bc6018c">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<textElement verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[參考數據]]></text>
</staticText>
<textFieldExpression><![CDATA[$F{unitOfMeasure}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="630" y="52" width="90" height="18" uuid="0405bb1d-d677-436c-85bd-57345f1bb6bc">
<reportElement x="0" y="4" width="50" height="18" uuid="b0af4be3-4429-4821-9609-ad72c36fa7b8">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
@@ -229,10 +193,10 @@
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[備注]]></text>
<text><![CDATA[貨品編號:]]></text>
</staticText>
<staticText>
<reportElement x="720" y="52" width="80" height="18" uuid="8b11690e-d04c-4402-9436-dba241594b9a">
<reportElement x="600" y="4" width="41" height="18" uuid="5ec52cfb-570a-47de-87d1-db8fb44cab6f">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
@@ -240,13 +204,8 @@
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[Order Ref No.]]></text>
<text><![CDATA[單位:]]></text>
</staticText>
<line>
<reportElement x="0" y="68" width="800" height="1" uuid="b9fe93ec-e2d2-4f9a-8339-f61b3c9ef3ab">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
</band>
</groupHeader>
<groupFooter>
@@ -268,25 +227,7 @@
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="180" splitType="Stretch">
<textField>
<reportElement x="90" y="58" width="390" height="23" uuid="4c8a499b-bbdb-4ebd-82be-42470f9614db">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Middle">
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{stockCategory}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="58" width="90" height="23" uuid="27f73af0-5568-440b-8330-cb8b80e3ac52">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<text><![CDATA[貨物分類:]]></text>
</staticText>
<band height="89" splitType="Stretch">
<textField evaluationTime="Report">
<reportElement x="780" y="12" width="20" height="18" uuid="54f6d70c-9c04-4980-9151-f748ccd4a5d4">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
@@ -327,17 +268,12 @@
<text><![CDATA[/]]></text>
</staticText>
<line>
<reportElement x="0" y="90" width="800" height="1" uuid="07a0e89a-653f-4d81-bc4d-8d2b0d07131c">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="0" y="179" width="799" height="1" uuid="ac02dc33-cb8d-4e70-8bcc-42285159d0bc">
<reportElement x="0" y="88" width="799" height="1" uuid="ac02dc33-cb8d-4e70-8bcc-42285159d0bc">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="0" y="175" width="799" height="1" uuid="b4baa70b-6211-49e6-95f4-218c624647e0">
<reportElement x="0" y="84" width="799" height="1" uuid="b4baa70b-6211-49e6-95f4-218c624647e0">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
@@ -380,105 +316,44 @@
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<text><![CDATA[Item QC Report]]></text>
<text><![CDATA[庫存品質檢測報告]]></text>
</staticText>
<textField>
<reportElement x="82" y="136" width="724" height="18" uuid="66d47923-ff26-4dab-8260-da717aeb8109">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<textFieldExpression><![CDATA[$P{storeLocation}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="136" width="82" height="18" uuid="80b48eee-5ff0-4513-a867-87b5e8479c45">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<reportElement x="540" y="58" width="267" height="23" uuid="8b71649c-52ab-40e6-bcd6-a46201d3906d">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<text><![CDATA[店鋪位置:]]></text>
</staticText>
<textField>
<reportElement x="82" y="100" width="724" height="18" uuid="a4e55fc5-bc8d-43a3-919d-8d83ac4790dc">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<textFieldExpression><![CDATA[$P{stockSubCategory}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="100" width="82" height="18" uuid="6817c9dd-71ce-44b4-a06c-556c27b1ffbb">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<text><![CDATA[貨物子分類:]]></text>
</staticText>
<textField>
<reportElement x="82" y="118" width="724" height="18" uuid="4d757786-b0a4-4609-9e23-ff9717e3902c">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<textFieldExpression><![CDATA[$P{balanceFilterStart}+"件"+ " ~ " + $P{balanceFilterEnd}+"件"]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="118" width="82" height="18" uuid="d35a0798-c969-4743-8bac-3155ee34c4e2">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<text><![CDATA[存量:]]></text>
</staticText>
<textField>
<reportElement x="462" y="154" width="336" height="18" uuid="8b71649c-52ab-40e6-bcd6-a46201d3906d">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{lastOutDateStart} + " 到 " + $P{lastOutDateEnd}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="380" y="154" width="82" height="18" uuid="f6ed3fa1-a0bc-4d79-b63b-2cfd7ec1790d">
<reportElement x="420" y="58" width="119" height="23" uuid="f6ed3fa1-a0bc-4d79-b63b-2cfd7ec1790d">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<text><![CDATA[最後出倉日期:]]></text>
<text><![CDATA[最後出倉日期:]]></text>
</staticText>
<staticText>
<reportElement x="0" y="154" width="82" height="18" uuid="b26146a6-0083-4e43-8466-e6e32e3e0120">
<reportElement x="1" y="58" width="118" height="23" uuid="b26146a6-0083-4e43-8466-e6e32e3e0120">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<text><![CDATA[最後入倉日期:]]></text>
<text><![CDATA[最後入倉日期:]]></text>
</staticText>
<textField>
<reportElement x="82" y="154" width="298" height="18" uuid="9fa63848-5dd3-400f-ad19-0671365361c5">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<reportElement x="120" y="58" width="298" height="23" uuid="9fa63848-5dd3-400f-ad19-0671365361c5"/>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{lastInDateStart} + " 到 " + $P{lastInDateEnd}]]></textFieldExpression>
</textField>
@@ -486,72 +361,58 @@
</pageHeader>
<detail>
<band height="17" splitType="Stretch">
<textField>
<reportElement x="0" y="0" width="70" height="17" uuid="20ded9b2-c04b-42d6-bc94-c95ce864ed65"/>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
<textFieldExpression><![CDATA[$F{lotNo}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="70" y="0" width="90" height="17" uuid="2f60426c-0d94-483f-8851-2b9d73b438e3"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<textField textAdjust="StretchHeight">
<reportElement x="0" y="0" width="80" height="17" uuid="2f60426c-0d94-483f-8851-2b9d73b438e3"/>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
<textFieldExpression><![CDATA[$F{expiryDate}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="160" y="0" width="90" height="17" uuid="c738c90c-e341-420f-ac76-4ee2660b038f"/>
<textField textAdjust="StretchHeight">
<reportElement x="80" y="0" width="70" height="17" uuid="c738c90c-e341-420f-ac76-4ee2660b038f"/>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
<textFieldExpression><![CDATA[$F{qcType}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="250" y="0" width="90" height="17" uuid="6e149a04-1b03-4ac6-8c54-c15ae889365d"/>
<textField textAdjust="StretchHeight">
<reportElement x="150" y="0" width="160" height="17" uuid="6e149a04-1b03-4ac6-8c54-c15ae889365d"/>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
<textFieldExpression><![CDATA[$F{qcTemplate}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="340" y="0" width="130" height="17" uuid="e079b438-f9e4-443d-a3f3-c0805292292c"/>
<textField textAdjust="StretchHeight">
<reportElement x="320" y="0" width="170" height="17" uuid="e079b438-f9e4-443d-a3f3-c0805292292c"/>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
<textFieldExpression><![CDATA[$F{qcDefectCriteria}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="470" y="0" width="50" height="17" uuid="4abfba85-9590-4121-aeb3-724182614bea"/>
<textField textAdjust="StretchHeight">
<reportElement x="489" y="0" width="50" height="17" uuid="4abfba85-9590-4121-aeb3-724182614bea"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
<textFieldExpression><![CDATA[$F{lotQty}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="520" y="0" width="50" height="17" uuid="ffa7b57b-4036-40b7-a6b0-d5e217afbb3b"/>
<textField textAdjust="StretchHeight">
<reportElement x="539" y="0" width="50" height="17" uuid="ffa7b57b-4036-40b7-a6b0-d5e217afbb3b"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
<textFieldExpression><![CDATA[$F{defectQty}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="570" y="0" width="60" height="17" uuid="9fb029a9-a16e-48d3-870e-d63af808faab"/>
<textField textAdjust="StretchHeight">
<reportElement x="590" y="0" width="90" height="17" uuid="9fb029a9-a16e-48d3-870e-d63af808faab"/>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
<textFieldExpression><![CDATA[$F{refData}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="630" y="0" width="90" height="17" uuid="af608ffa-d266-4855-a1e0-b7435621cb27"/>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
<textFieldExpression><![CDATA[$F{remark}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="720" y="0" width="80" height="17" uuid="a5e52468-0ed0-4dfb-a305-2873273101c0"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<textField textAdjust="StretchHeight">
<reportElement x="680" y="0" width="120" height="17" uuid="a5e52468-0ed0-4dfb-a305-2873273101c0"/>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
<textFieldExpression><![CDATA[$F{orderRefNo}]]></textFieldExpression>


+ 20
- 67
src/main/resources/jasper/StockBalanceReport.jrxml Прегледај датотеку

@@ -90,7 +90,7 @@
<text><![CDATA[到期日]]></text>
</staticText>
<staticText>
<reportElement x="200" y="23" width="40" height="18" uuid="360cf13a-93e7-45d4-8a4d-9e9506a6ad3f">
<reportElement x="200" y="23" width="50" height="18" uuid="360cf13a-93e7-45d4-8a4d-9e9506a6ad3f">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
@@ -161,7 +161,7 @@
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[ 店鋪位置]]></text>
@@ -273,7 +273,7 @@
<textFieldExpression><![CDATA[$F{totalCumStockIn}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="200" y="1" width="40" height="18" uuid="0a1320e0-dbbc-4da4-bc1e-ca3d21323ad8"/>
<reportElement x="200" y="1" width="50" height="18" uuid="0a1320e0-dbbc-4da4-bc1e-ca3d21323ad8"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
@@ -315,7 +315,7 @@
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="125" splitType="Stretch">
<band height="87" splitType="Stretch">
<textField evaluationTime="Report">
<reportElement x="780" y="2" width="20" height="18" uuid="e45d9b93-df63-4fb5-bfe4-fca6a6d77b2e">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
@@ -356,17 +356,12 @@
<text><![CDATA[/]]></text>
</staticText>
<line>
<reportElement x="1" y="60" width="800" height="1" uuid="54717796-6b42-4a35-a6b3-2657f346207f">
<reportElement x="0" y="86" width="799" height="1" uuid="aadb8fe1-98b7-49d3-b29d-be3b842e9cc7">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="0" y="124" width="799" height="1" uuid="aadb8fe1-98b7-49d3-b29d-be3b842e9cc7">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="0" y="120" width="799" height="1" uuid="f2f17fec-f257-4ad0-b2be-c929e86fb515">
<reportElement x="0" y="82" width="799" height="1" uuid="f2f17fec-f257-4ad0-b2be-c929e86fb515">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
@@ -414,81 +409,39 @@
</textElement>
<text><![CDATA[庫存結餘報告]]></text>
</staticText>
<staticText>
<reportElement x="0" y="81" width="82" height="18" uuid="9cd796f0-8e66-4e27-807d-a577072f9618">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<text><![CDATA[存貨位置:]]></text>
</staticText>
<textField>
<reportElement x="82" y="81" width="724" height="18" uuid="2ad44da6-2192-4435-8b76-61a43657e052">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<textFieldExpression><![CDATA[$P{storeLocation}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="63" width="82" height="18" uuid="d98eeb7e-a6aa-4b33-9c51-43b65ede312d">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<reportElement x="540" y="58" width="267" height="23" uuid="fa6f30ce-d5de-4183-85db-192effe5060a">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<text><![CDATA[存量:]]></text>
</staticText>
<textField>
<reportElement x="82" y="63" width="724" height="18" uuid="f4ad44e4-024e-44c4-b9b0-1ecf13ffcfef">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<textFieldExpression><![CDATA[$P{balanceFilterStart}+"件"+ " ~ " + $P{balanceFilterEnd}+"件"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="462" y="99" width="336" height="18" uuid="91f3d1ce-63d6-40d1-98c8-1550676948ed">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{lastOutDateStart} + " 到 " + $P{lastOutDateEnd}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="380" y="99" width="82" height="18" uuid="902f7ed3-ef26-4c50-86de-7976ab2fa651">
<reportElement x="1" y="58" width="118" height="23" uuid="d7c154f8-2806-42f3-b81a-c5c0fcfe0671">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<text><![CDATA[最後出倉日期:]]></text>
<text><![CDATA[最後入倉日期:]]></text>
</staticText>
<staticText>
<reportElement x="0" y="99" width="82" height="18" uuid="f9323fd3-0e7e-44a3-9abc-a75caed7c3b6">
<reportElement x="420" y="58" width="119" height="23" uuid="032b013c-942f-451a-a5ae-d0b58ab1e5bc">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<text><![CDATA[最後入倉日期:]]></text>
<text><![CDATA[最後出倉日期:]]></text>
</staticText>
<textField>
<reportElement x="82" y="99" width="298" height="18" uuid="af0cff50-cf39-47b2-948d-11b20084062b">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<reportElement x="120" y="58" width="298" height="23" uuid="b26c6258-2ba6-4fb3-b371-a46d1709009d"/>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{lastInDateStart} + " 到 " + $P{lastInDateEnd}]]></textFieldExpression>
</textField>
@@ -505,7 +458,7 @@
<textFieldExpression><![CDATA[$F{expiryDate}]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight">
<reportElement x="200" y="2" width="40" height="17" uuid="91b9dd25-38ac-42c6-8b10-9286ba2ad815"/>
<reportElement x="200" y="2" width="50" height="17" uuid="91b9dd25-38ac-42c6-8b10-9286ba2ad815"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
@@ -560,21 +513,21 @@
<reportElement x="540" y="2" width="110" height="17" uuid="192315a1-142d-465e-8dfa-6e443fb12a3d">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
<textFieldExpression><![CDATA[$F{storeLocation}]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight">
<reportElement x="650" y="2" width="71" height="17" uuid="708c707e-8102-410e-9603-1e97c42a8680"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
<textFieldExpression><![CDATA[$F{lastInDate}]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight">
<reportElement x="730" y="2" width="70" height="17" uuid="b2f99c32-b666-4944-9ad4-8f83b080fee1"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體"/>
</textElement>
<textFieldExpression><![CDATA[$F{lastOutDate}]]></textFieldExpression>


+ 7
- 7
src/main/resources/jasper/StockInTraceabilityReport.jrxml Прегледај датотеку

@@ -141,7 +141,7 @@
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[存貨位置]]></text>
@@ -271,7 +271,7 @@
<groupFooter>
<band height="23">
<staticText>
<reportElement x="190" y="0" width="70" height="18" uuid="8d002bea-8762-4e6b-9101-35a570f55031">
<reportElement x="200" y="0" width="70" height="18" uuid="8d002bea-8762-4e6b-9101-35a570f55031">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
@@ -282,7 +282,7 @@
<text><![CDATA[總入倉數量:]]></text>
</staticText>
<textField>
<reportElement x="260" y="0" width="50" height="18" uuid="d98c4478-22bd-4fd6-9be4-b3777f91de6d">
<reportElement x="270" y="0" width="50" height="18" uuid="d98c4478-22bd-4fd6-9be4-b3777f91de6d">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
@@ -291,7 +291,7 @@
<textFieldExpression><![CDATA[$F{totalStockInQty}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="310" y="0" width="50" height="18" uuid="bac1f216-48f1-4b5b-af50-f8ba18b97b78">
<reportElement x="320" y="0" width="50" height="18" uuid="bac1f216-48f1-4b5b-af50-f8ba18b97b78">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
@@ -300,7 +300,7 @@
<textFieldExpression><![CDATA[$F{totalIqcSampleQty}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="360" y="0" width="50" height="18" uuid="1fb42453-c956-4a2b-8a04-fd297a980b38">
<reportElement x="370" y="0" width="50" height="18" uuid="1fb42453-c956-4a2b-8a04-fd297a980b38">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
@@ -504,7 +504,7 @@
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{iqcDefectPercentage}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{iqcDefectPercentage}+"%"]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight">
<reportElement x="480" y="2" width="50" height="18" uuid="c2575894-67a5-4251-aebd-59999fec00b5">
@@ -528,7 +528,7 @@
<reportElement x="590" y="2" width="80" height="18" uuid="091605c2-1a39-4823-ae74-1c8f51ac0145">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{storeLocation}]]></textFieldExpression>


+ 217
- 377
src/main/resources/jasper/StockLedgarReport.jrxml Прегледај датотеку

@@ -73,94 +73,78 @@
<field name="cumBalance" class="java.lang.String"/>
<field name="jobOrderNo" class="java.lang.String"/>
<field name="orderRefNo" class="java.lang.String"/>
<group name="Group1">
<group name="Group1" keepTogether="true">
<groupExpression><![CDATA[$F{itemNo}]]></groupExpression>
<groupHeader>
<band height="38">
<band height="22">
<staticText>
<reportElement x="0" y="4" width="74" height="18" uuid="395a4da7-e0b7-4cab-a91f-54b8cc66fb3b">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<text><![CDATA[貨物子分類]]></text>
</staticText>
<staticText>
<reportElement x="74" y="4" width="74" height="18" uuid="9c6f4add-cf69-4116-902f-56f96fdcbadb">
<reportElement x="110" y="4" width="50" height="18" uuid="32d5dabf-aee8-4237-bec1-9804eda4e44d">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[貨品編號]]></text>
<text><![CDATA[貨品名稱:]]></text>
</staticText>
<staticText>
<reportElement x="148" y="4" width="74" height="18" uuid="210c795d-cc22-490f-95c0-6f82bc4ed2dd">
<reportElement x="600" y="4" width="41" height="18" uuid="ae6be13c-565c-4f86-9e17-01006b1d89c3">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[貨品名稱]]></text>
<text><![CDATA[單位:]]></text>
</staticText>
<staticText>
<reportElement x="222" y="4" width="74" height="18" uuid="33c54473-a6be-42b5-ae6d-9768cc4cb0f1">
<reportElement x="0" y="4" width="50" height="18" uuid="28b96c27-0614-4f47-8c4e-da85d06fe9cf">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<text><![CDATA[單位]]></text>
</staticText>
<textField>
<reportElement x="0" y="22" width="74" height="16" uuid="e9cc2f94-185d-4a7a-ab46-fee2a8a37d8d">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{stockSubCategory}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="74" y="22" width="74" height="16" uuid="ab2f7e72-1286-4959-81d5-493a95caece1">
<text><![CDATA[貨品編號:]]></text>
</staticText>
<textField textAdjust="StretchHeight">
<reportElement x="641" y="4" width="159" height="18" uuid="c65a54cf-8063-4f8c-b2bd-085da60e6e42">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<textElement verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{itemNo}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{unitOfMeasure}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="148" y="22" width="74" height="16" uuid="7527156f-8f91-4d41-8a60-3c711d14366f">
<textField textAdjust="StretchHeight">
<reportElement x="160" y="4" width="440" height="18" uuid="8055b6d4-f077-4290-978e-d86e62dbb77a">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<textElement verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{itemName}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="222" y="22" width="74" height="16" uuid="615c58fe-f614-4285-a46e-434d8203ec45">
<textField textAdjust="StretchHeight">
<reportElement x="50" y="4" width="60" height="18" uuid="2d79cb40-6410-4d1d-bd8c-0a5d9acb1460">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top">
<textElement verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{unitOfMeasure}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{itemNo}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="8">
<staticText>
<reportElement x="225" y="-14" width="75" height="18" uuid="518b1512-2f82-48ca-b334-652fe5991b72">
<reportElement x="275" y="-14" width="75" height="18" uuid="518b1512-2f82-48ca-b334-652fe5991b72">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
@@ -170,8 +154,8 @@
</textElement>
<text><![CDATA[貨品總量:]]></text>
</staticText>
<textField>
<reportElement x="300" y="-14" width="75" height="18" uuid="44b1dc52-ca89-43b5-9828-31db7207ad22">
<textField textAdjust="StretchHeight">
<reportElement x="350" y="-14" width="75" height="18" uuid="44b1dc52-ca89-43b5-9828-31db7207ad22">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Top">
@@ -180,7 +164,7 @@
<textFieldExpression><![CDATA[$F{totalCumOpeningBal}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="375" y="-14" width="75" height="18" uuid="6c141d7d-766e-49bf-b987-e790312573a5">
<reportElement x="425" y="-14" width="50" height="18" uuid="6c141d7d-766e-49bf-b987-e790312573a5">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Top">
@@ -188,8 +172,8 @@
</textElement>
<textFieldExpression><![CDATA[$F{totalStockIn}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="450" y="-14" width="75" height="18" uuid="f6be72ca-650f-4c37-a149-26d5502be17a">
<textField textAdjust="StretchHeight">
<reportElement x="475" y="-14" width="50" height="18" uuid="f6be72ca-650f-4c37-a149-26d5502be17a">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Top">
@@ -219,21 +203,20 @@
</band>
</groupFooter>
</group>
<title>
<band height="104" splitType="Stretch">
<pageHeader>
<band height="85" splitType="Stretch">
<staticText>
<reportElement x="319" y="0" width="165" height="23" uuid="1666285e-2b4b-4017-810f-fa9a0a9165b6">
<reportElement x="324" y="5" width="165" height="23" uuid="61492f60-688d-4110-b8d2-fcc5b5b24ba7">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<text><![CDATA[Stock Ledgar Report
]]></text>
<text><![CDATA[庫存明細報告]]></text>
</staticText>
<staticText>
<reportElement x="700" y="12" width="40" height="18" uuid="e212b74e-2e71-4547-9e4a-e4ab2ce64462">
<reportElement x="700" y="5" width="40" height="18" uuid="a1e0b60d-cb14-4854-b996-7823c975444d">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
@@ -243,7 +226,7 @@
<text><![CDATA[頁數]]></text>
</staticText>
<textField>
<reportElement x="740" y="12" width="20" height="18" uuid="1b209da7-33e2-4e04-a663-f6170c806ef4">
<reportElement x="740" y="5" width="20" height="18" uuid="7e5c38a6-3c39-4baf-879e-64380d7e68ab">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
@@ -252,7 +235,7 @@
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="760" y="12" width="20" height="18" uuid="542731ff-0b34-401f-af74-5d96753f4a3a">
<reportElement x="760" y="5" width="20" height="18" uuid="f972720c-7c8e-4b65-bd5e-f8b3dfc1b86a">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
@@ -262,7 +245,7 @@
<text><![CDATA[/]]></text>
</staticText>
<textField evaluationTime="Report">
<reportElement x="780" y="12" width="20" height="18" uuid="7124635c-e046-4d7a-9e56-b6a73502a772">
<reportElement x="780" y="5" width="20" height="18" uuid="2e42c0da-c0b4-49cc-9aef-86ab7cd3cdb1">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
@@ -272,7 +255,7 @@
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="35" width="90" height="23" uuid="a00368d1-1269-4721-9e9f-e8c4a3c7f779">
<reportElement x="5" y="30" width="90" height="23" uuid="8ffd692b-4f51-43bc-8568-0b8e5c2a7679">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
@@ -282,16 +265,7 @@
<text><![CDATA[報告日期:]]></text>
</staticText>
<staticText>
<reportElement x="0" y="58" width="90" height="23" uuid="a0ece46c-52e7-41dd-ace6-85bf08d98db7">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<text><![CDATA[貨物分類:]]></text>
</staticText>
<staticText>
<reportElement x="480" y="35" width="90" height="23" uuid="c5cc9643-ab3a-4c5c-9435-589a28f93101">
<reportElement x="485" y="30" width="90" height="23" uuid="9796c4a9-a9b6-492e-800a-49245e349339">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
@@ -301,35 +275,21 @@
<text><![CDATA[報告時間:]]></text>
</staticText>
<textField>
<reportElement x="90" y="35" width="390" height="23" uuid="a4cfc094-4af4-4ce5-acfa-534c17eeadfd"/>
<reportElement x="95" y="30" width="390" height="23" uuid="6ff739e1-2ee7-443f-85ab-7a23cabd63e0"/>
<textElement verticalAlignment="Middle">
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{reportDate}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="90" y="58" width="390" height="23" uuid="9e3719fc-6434-4119-ad51-54f56cb0c110">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Middle">
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{stockCategory}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="103" width="800" height="1" uuid="54929fda-881e-428a-830c-1c06d8d72e67">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
<textField>
<reportElement x="570" y="35" width="228" height="23" uuid="fb55961e-94b2-4011-aaa7-834497b4d352"/>
<reportElement x="575" y="30" width="228" height="23" uuid="784ae665-6ae0-4282-84e7-1716df72cec0"/>
<textElement verticalAlignment="Middle">
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{reportTime}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="81" width="90" height="23" uuid="083407c6-4fec-4ebe-8791-630b25bdd7e5">
<reportElement x="5" y="53" width="90" height="23" uuid="231d8082-a2fb-42fd-9980-cef8382bdeb5">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
@@ -338,7 +298,7 @@
<text><![CDATA[查詢期間:]]></text>
</staticText>
<textField>
<reportElement x="90" y="81" width="490" height="23" uuid="76037c74-490e-4afe-936d-dd8b70230e4c">
<reportElement x="95" y="53" width="490" height="23" uuid="3b98b6fa-9b8c-4248-9fb9-5923888c9569">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Middle">
@@ -346,348 +306,228 @@
</textElement>
<textFieldExpression><![CDATA[$P{reportPeriodStart}+ " 到 " + $P{reportPeriodEnd}]]></textFieldExpression>
</textField>
<line>
<reportElement x="2" y="80" width="799" height="1" uuid="33569f74-fee4-43c9-9bfe-b6bf7e12ecd4">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="2" y="84" width="799" height="1" uuid="da028dee-9baa-4df1-b79f-b1c042a73a6c">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
</band>
</title>
<pageHeader>
<band height="87" splitType="Stretch">
<textField>
<reportElement x="82" y="10" width="716" height="18" uuid="9af5a79d-6d4c-4c9b-b264-1ed593636ee7">
</pageHeader>
<detail>
<band height="56" splitType="Stretch">
<staticText>
<reportElement x="0" y="7" width="75" height="18" uuid="29d7c8b3-689f-46c6-8283-ebc81c12e3b9">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[出入賬日期]]></text>
</staticText>
<textField textAdjust="StretchHeight">
<reportElement x="0" y="25" width="75" height="16" uuid="5fbbcd25-b23a-4c47-a71c-ba7c8d8f1b83">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{stockSubCategory}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{trnDate}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="10" width="82" height="18" uuid="564a8032-1054-444b-b560-d83f6690c7fa">
<reportElement x="75" y="7" width="75" height="18" uuid="8fde28bc-907f-406e-9efc-b1e2ff54d819">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[貨物子分類:]]></text>
<text><![CDATA[出入賬參考編號]]></text>
</staticText>
<staticText>
<reportElement x="0" y="28" width="82" height="18" uuid="408079da-43e7-436f-b6b6-f3ddb01a5c8b">
<reportElement x="150" y="7" width="125" height="18" uuid="1a37e08c-8c54-462f-9a2d-876fc665cdba">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[存量:]]></text>
<text><![CDATA[批號]]></text>
</staticText>
<textField>
<reportElement x="82" y="28" width="716" height="18" uuid="893c7965-bea5-44c4-bfb7-e8eec95d1a23">
<textField textAdjust="StretchHeight">
<reportElement x="150" y="25" width="125" height="16" uuid="c4015ede-c0e8-440f-86c9-05f0d446c774">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{balanceFilterStart}+"件"+ " ~ " + $P{balanceFilterEnd}+"件"]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{lotNo}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="46" width="82" height="18" uuid="1467adc9-9df2-4089-8425-e0e2f9b7d5aa">
<reportElement x="275" y="7" width="75" height="18" uuid="42332f71-1b1f-4cef-a8c8-c2e66f125cb7">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[店鋪位置:]]></text>
<text><![CDATA[到期日]]></text>
</staticText>
<textField>
<reportElement x="82" y="46" width="716" height="18" uuid="4570462e-6802-4ce3-b794-fd3640edb2a3">
<staticText>
<reportElement x="350" y="7" width="75" height="18" uuid="9bfc6cdc-28da-4533-a349-5951fd3bdb8d">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{storeLocation}]]></textFieldExpression>
<text><![CDATA[累計期初存量]]></text>
</staticText>
<textField textAdjust="StretchHeight">
<reportElement x="350" y="25" width="75" height="16" uuid="1984acde-9076-4256-a580-e5b5842fa849">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{cumOpeningBal} == null || $F{cumOpeningBal}.trim().length() == 0
? ""
: new java.text.DecimalFormat("#,##0")
.format(new java.math.BigDecimal($F{cumOpeningBal}))]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="86" width="799" height="1" uuid="f96b760b-49ac-4bdf-b3c1-6d2980da396d">
<staticText>
<reportElement x="425" y="7" width="50" height="18" uuid="75d5ce02-8001-4f6f-85ae-88c6c21c038a">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="0" y="82" width="799" height="1" uuid="4ce11626-0675-44b6-9853-03ac3a7ef745">
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[入庫]]></text>
</staticText>
<staticText>
<reportElement x="475" y="7" width="50" height="18" uuid="86dcb3cb-197d-458e-9530-d2f4de6e5980">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
<textField>
<reportElement x="462" y="64" width="336" height="18" uuid="3174e21b-a637-407f-870c-489aef0a5792">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[出庫]]></text>
</staticText>
<textField textAdjust="StretchHeight">
<reportElement x="475" y="25" width="50" height="16" uuid="ca781a08-f648-41bc-a44f-b4d3fc05bf24">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{lastOutDateStart} + " 到 " + $P{lastOutDateEnd} ]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{stockOut} == null || $F{stockOut}.trim().length() == 0
? ""
: new java.text.DecimalFormat("#,##0")
.format(new java.math.BigDecimal($F{stockOut}))]]></textFieldExpression>
</textField>
<textField>
<reportElement x="82" y="64" width="298" height="18" uuid="bccff937-d5e6-4f85-995b-f832ae1d3c07">
<staticText>
<reportElement x="525" y="7" width="75" height="18" uuid="12c55779-4875-4d8b-914c-9bbf4dcd64ff">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[累計存量]]></text>
</staticText>
<textField textAdjust="StretchHeight">
<reportElement x="525" y="25" width="75" height="16" uuid="0011e1ab-a161-46d8-af84-629e955e5461">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{lastInDateStart} + " 到 " + $P{lastInDateEnd} ]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{cumBalance} == null || $F{cumBalance}.trim().length() == 0
? ""
: new java.text.DecimalFormat("#,##0")
.format(new java.math.BigDecimal($F{cumBalance}))]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="64" width="82" height="18" uuid="2fd1dc30-1085-46a0-b240-9074d95f90d2">
<reportElement x="600" y="7" width="100" height="18" uuid="19e06f3b-0c2a-4e9e-b436-79c21d497ebb">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[最後入倉日期:]]></text>
<text><![CDATA[工單/提料單編號]]></text>
</staticText>
<textField textAdjust="StretchHeight">
<reportElement x="600" y="25" width="100" height="16" uuid="abcf9c0b-8e93-44b0-af99-8b7fe7812ff8">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{orderRefNo}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="380" y="64" width="82" height="18" uuid="a1322eea-6ff1-4749-a106-e642400407b3">
<reportElement x="700" y="7" width="97" height="18" uuid="bb54ccd3-e003-4eba-9d95-d2c9c84767a5">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[最後出倉日期:]]></text>
<text><![CDATA[存貨位置]]></text>
</staticText>
</band>
</pageHeader>
<detail>
<band height="56" splitType="Stretch">
<staticText>
<reportElement x="0" y="7" width="75" height="18" uuid="29d7c8b3-689f-46c6-8283-ebc81c12e3b9">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[出入賬日期]]></text>
</staticText>
<textField>
<reportElement x="0" y="25" width="75" height="16" uuid="5fbbcd25-b23a-4c47-a71c-ba7c8d8f1b83">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{trnDate}]]></textFieldExpression>
</textField>

<staticText>
<reportElement x="75" y="7" width="75" height="18" uuid="8fde28bc-907f-406e-9efc-b1e2ff54d819">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[出入賬參考編號]]></text>
</staticText>

<staticText>
<reportElement x="150" y="7" width="75" height="18" uuid="1a37e08c-8c54-462f-9a2d-876fc665cdba">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[批號]]></text>
</staticText>
<textField>
<reportElement x="150" y="25" width="75" height="16" uuid="c4015ede-c0e8-440f-86c9-05f0d446c774">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{lotNo}]]></textFieldExpression>
</textField>

<staticText>
<reportElement x="225" y="7" width="75" height="18" uuid="42332f71-1b1f-4cef-a8c8-c2e66f125cb7">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[到期日]]></text>
</staticText>

<staticText>
<reportElement x="300" y="7" width="75" height="18" uuid="9bfc6cdc-28da-4533-a349-5951fd3bdb8d">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[累計期初存量]]></text>
</staticText>
<textField>
<reportElement x="300" y="25" width="75" height="16" uuid="1984acde-9076-4256-a580-e5b5842fa849">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[
$F{cumOpeningBal} == null || $F{cumOpeningBal}.trim().length() == 0
? ""
: new java.text.DecimalFormat("#,##0")
.format(new java.math.BigDecimal($F{cumOpeningBal}))
]]></textFieldExpression>
</textField>

<staticText>
<reportElement x="375" y="7" width="75" height="18" uuid="75d5ce02-8001-4f6f-85ae-88c6c21c038a">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[入庫]]></text>
</staticText>
<textField>
<reportElement x="375" y="25" width="75" height="16" uuid="97a63f6a-781a-4c8c-a44f-88e24774c0d6">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[
$F{stockIn} == null || $F{stockIn}.trim().length() == 0
? ""
: new java.text.DecimalFormat("#,##0")
.format(new java.math.BigDecimal($F{stockIn}))
]]></textFieldExpression>
</textField>

<staticText>
<reportElement x="450" y="7" width="75" height="18" uuid="86dcb3cb-197d-458e-9530-d2f4de6e5980">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[出庫]]></text>
</staticText>
<textField>
<reportElement x="450" y="25" width="75" height="16" uuid="ca781a08-f648-41bc-a44f-b4d3fc05bf24">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[
$F{stockOut} == null || $F{stockOut}.trim().length() == 0
? ""
: new java.text.DecimalFormat("#,##0")
.format(new java.math.BigDecimal($F{stockOut}))
]]></textFieldExpression>
</textField>

<staticText>
<reportElement x="525" y="7" width="75" height="18" uuid="12c55779-4875-4d8b-914c-9bbf4dcd64ff">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[累計存量]]></text>
</staticText>
<textField>
<reportElement x="525" y="25" width="75" height="16" uuid="0011e1ab-a161-46d8-af84-629e955e5461">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[
$F{cumBalance} == null || $F{cumBalance}.trim().length() == 0
<textField textAdjust="StretchHeight">
<reportElement x="700" y="25" width="97" height="16" uuid="ce3e11a6-b071-4825-aa2c-ecd03f83c976">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{storeLocation}]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight">
<reportElement x="75" y="25" width="75" height="16" uuid="e2282f48-5570-4344-aff3-cd3eee96bcb2">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{trnRefNo}]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight">
<reportElement x="275" y="25" width="75" height="16" uuid="93210fc7-291c-453f-b543-b3da906c90ca">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{expiryDate}]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight">
<reportElement x="425" y="25" width="50" height="16" uuid="ffe94de6-379f-4c80-a86f-33b8cb5b3830">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{stockIn} == null || $F{stockIn}.trim().length() == 0
? ""
: new java.text.DecimalFormat("#,##0")
.format(new java.math.BigDecimal($F{cumBalance}))
]]></textFieldExpression>
</textField>

<staticText>
<reportElement x="600" y="7" width="75" height="18" uuid="19e06f3b-0c2a-4e9e-b436-79c21d497ebb">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[工單/提料單編號]]></text>
</staticText>
<textField>
<reportElement x="600" y="25" width="75" height="16" uuid="abcf9c0b-8e93-44b0-af99-8b7fe7812ff8">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{orderRefNo}]]></textFieldExpression>
</textField>

<staticText>
<reportElement x="675" y="7" width="122" height="18" uuid="bb54ccd3-e003-4eba-9d95-d2c9c84767a5">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[店鋪位置]]></text>
</staticText>
<textField>
<reportElement x="675" y="25" width="122" height="16" uuid="ce3e11a6-b071-4825-aa2c-ecd03f83c976">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{storeLocation}]]></textFieldExpression>
</textField>

<textField>
<reportElement x="75" y="25" width="75" height="16" uuid="e2282f48-5570-4344-aff3-cd3eee96bcb2">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{trnRefNo}]]></textFieldExpression>
</textField>

<textField>
<reportElement x="225" y="25" width="75" height="16" uuid="93210fc7-291c-453f-b543-b3da906c90ca">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{expiryDate}]]></textFieldExpression>
</textField>
</band>
</detail>
.format(new java.math.BigDecimal($F{stockIn}))]]></textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>

Loading…
Откажи
Сачувај