modificato campo partita

This commit is contained in:
2025-07-07 14:57:02 +02:00
parent a9fc350dc7
commit 02139ede14

View File

@@ -0,0 +1,391 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.21.3.final using JasperReports Library version 6.21.3-4a3078d20785ebe464f18037d738d12fc98c13cf -->
<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="ReportCarichiDaProduzione" pageWidth="842" pageHeight="595" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="a8438d74-9f7c-4aa9-ab2a-b932f7e98cbd">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="RossoGargano\DataAdapter.jrdax"/>
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
<style name="LetturaFacilitata">
<conditionalStyle>
<conditionExpression><![CDATA[($V{REPORT_COUNT} % 2) == 0?true:false]]></conditionExpression>
<style mode="Opaque" backcolor="#E6E6E6"/>
</conditionalStyle>
<conditionalStyle>
<conditionExpression><![CDATA[$F{level}.equals(2 )]]></conditionExpression>
<style isBold="true" isUnderline="true"/>
</conditionalStyle>
<conditionalStyle>
<conditionExpression><![CDATA[$F{level}.equals( 3)]]></conditionExpression>
<style isBold="true"/>
</conditionalStyle>
</style>
<queryString>
<![CDATA[select dtb_docr.cod_mart,
mtb_aart.descrizione,
dtb_docr.partita_mag as lotto,
dtb_docr.unt_doc,
SUM(qta_doc*rap_conv) as quantita,
data_scad,
dtb_doct.cod_dtip,
dtb_doct.num_doc,
dtb_doct.data_doc,
azienda.nome_ditta
from dtb_doct inner join dtb_docr on dtb_doct.cod_dtip=dtb_docr.cod_dtip and
dtb_doct.num_doc=dtb_docr.num_doc and
dtb_doct.data_doc=dtb_docr.data_doc and
dtb_doct.ser_doc=dtb_docr.ser_doc
inner join mtb_aart on dtb_docr.cod_mart=mtb_aart.cod_mart
inner join mtb_partita_mag on mtb_partita_mag.cod_mart=dtb_docr.cod_mart and mtb_partita_mag.partita_mag=dtb_docr.partita_mag,
azienda
where gestione='L'
group by dtb_docr.cod_mart, mtb_aart.descrizione, dtb_docr.partita_mag, data_scad, dtb_doct.num_doc, dtb_doct.data_doc, dtb_docr.unt_doc, dtb_doct.cod_dtip,
azienda.nome_ditta
order by dtb_docr.cod_mart]]>
</queryString>
<field name="cod_mart" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="cod_mart"/>
<property name="com.jaspersoft.studio.field.label" value="cod_mart"/>
</field>
<field name="descrizione" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="descrizione"/>
<property name="com.jaspersoft.studio.field.label" value="descrizione"/>
</field>
<field name="lotto" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="lotto"/>
<property name="com.jaspersoft.studio.field.label" value="lotto"/>
</field>
<field name="unt_doc" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="unt_doc"/>
<property name="com.jaspersoft.studio.field.label" value="unt_doc"/>
</field>
<field name="quantita" class="java.math.BigDecimal">
<property name="com.jaspersoft.studio.field.name" value="quantita"/>
<property name="com.jaspersoft.studio.field.label" value="quantita"/>
</field>
<field name="data_scad" class="java.sql.Timestamp">
<property name="com.jaspersoft.studio.field.name" value="data_scad"/>
<property name="com.jaspersoft.studio.field.label" value="data_scad"/>
</field>
<field name="cod_dtip" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="cod_dtip"/>
<property name="com.jaspersoft.studio.field.label" value="cod_dtip"/>
</field>
<field name="num_doc" class="java.lang.Integer">
<property name="com.jaspersoft.studio.field.name" value="num_doc"/>
<property name="com.jaspersoft.studio.field.label" value="num_doc"/>
</field>
<field name="data_doc" class="java.sql.Timestamp">
<property name="com.jaspersoft.studio.field.name" value="data_doc"/>
<property name="com.jaspersoft.studio.field.label" value="data_doc"/>
</field>
<field name="nome_ditta" class="java.lang.String">
<property name="com.jaspersoft.studio.field.name" value="nome_ditta"/>
<property name="com.jaspersoft.studio.field.label" value="nome_ditta"/>
</field>
<variable name="quantita" class="java.math.BigDecimal" resetType="Group" resetGroup="Gruppo1" calculation="Sum">
<variableExpression><![CDATA[$F{quantita}]]></variableExpression>
</variable>
<variable name="tot_quanità" class="java.math.BigDecimal" incrementType="Group" incrementGroup="Gruppo1" calculation="Sum">
<variableExpression><![CDATA[$V{quantita}]]></variableExpression>
</variable>
<group name="Gruppo1">
<groupExpression><![CDATA[$F{cod_mart}+$F{descrizione}]]></groupExpression>
<groupFooter>
<band height="20">
<textField>
<reportElement x="190" y="0" width="300" height="15" uuid="445ced1f-c664-4258-baed-70213a063b52">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="390a9bf0-efc9-4d78-aec4-ad1bdef041e6"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Totali parziali Quantità " +$F{cod_mart}+": "]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" evaluationTime="Group" evaluationGroup="Gruppo1" pattern="#,##0.00#;-#,##0.00#" isBlankWhenNull="true">
<reportElement x="492" y="0" width="64" height="15" uuid="3e3d2927-fb7b-40fd-bb5e-a2a5967f03ba">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{quantita}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="19" width="802" height="1" forecolor="#E6E6E6" backcolor="#E6E6E6" uuid="678d1537-bbfd-4618-8126-d37ef5779adf">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
</band>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="35" splitType="Stretch">
<textField>
<reportElement mode="Opaque" x="0" y="0" width="800" height="35" forecolor="#46A0C9" backcolor="#FFFFFF" uuid="3e877efa-d5f0-4614-a933-32ed35445287">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<textElement textAlignment="Left">
<font fontName="Arial Black" size="16" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA["Report Carichi da Produzione"]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="58" splitType="Stretch">
<staticText>
<reportElement mode="Opaque" x="69" y="25" width="321" height="25" backcolor="#D1E4EF" uuid="1d7a0fe1-fd0e-4e65-9f9c-c75e6a0144ee">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Descrizione ]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="626" y="25" width="62" height="25" backcolor="#D1E4EF" uuid="b65a7395-ab93-4f69-af77-2e2eafe81e49">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Tipo Documento]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="737" y="25" width="65" height="25" backcolor="#D1E4EF" uuid="98eaae3b-8d7f-4194-92ab-e6acf207c510">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Data Documento]]></text>
</staticText>
<line>
<reportElement x="0" y="52" width="802" height="1" forecolor="#07A0C9" backcolor="#46A0C9" uuid="f7f81c72-72d3-42cf-874b-33227c76f1ca">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
</line>
<staticText>
<reportElement mode="Opaque" x="690" y="25" width="45" height="25" backcolor="#D1E4EF" uuid="54b8f2e6-eb4d-4c25-a11f-bda0053b8130">
<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="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Numero Documento]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="392" y="25" width="65" height="25" backcolor="#D1E4EF" uuid="e202f48c-8996-44ab-bdc6-48ced5e0e4f0">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Lotto]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="0" y="25" width="67" height="25" backcolor="#D1E4EF" uuid="1b78c423-b297-4578-95d2-d8bceef48568">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Articolo]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="559" y="25" width="65" height="25" backcolor="#D1E4EF" uuid="6e872a50-46e7-4bd1-95cb-07e9561152d7">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Data Scadenza]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="492" y="25" width="65" height="25" backcolor="#D1E4EF" uuid="430092d7-4e6a-4180-b35e-5f0969197414">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Quantità]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="459" y="25" width="31" height="25" backcolor="#D1E4EF" uuid="01be2034-8ee2-46a7-b54a-34946da6bc45">
<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="Tahoma" size="8"/>
</textElement>
<text><![CDATA[UM]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="20" splitType="Stretch">
<textField textAdjust="StretchHeight" isBlankWhenNull="true">
<reportElement isPrintRepeatedValues="false" x="69" y="0" width="321" height="15" uuid="1b4e9964-0ab9-4789-b3ac-914ea33f60b9">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="cbbd9c52-e065-4706-b837-a08c2987c0b4"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression><![CDATA[" " +$F{descrizione}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yy " isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="737" y="0" width="65" height="15" uuid="44d87b1d-7a2e-4c67-9bb7-3d4ad26a1779">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="6d4bc8c2-0dc8-4d34-a0a1-bf7c177b415c"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{data_doc}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="626" y="0" width="62" height="15" uuid="28a46b09-2827-4864-83bc-bba69c5362da">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="92f2e009-a524-4037-945d-b9e6a199933d"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{cod_dtip}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="690" y="0" width="45" height="15" uuid="9da0704a-60eb-4d62-a8fa-5e200af9beb8">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="92f2e009-a524-4037-945d-b9e6a199933d"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{num_doc}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yy hh:mm" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="392" y="0" width="65" height="15" uuid="322db73d-3ba3-46eb-a2f0-9fcbdf570886">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="6d4bc8c2-0dc8-4d34-a0a1-bf7c177b415c"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{lotto}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yy hh:mm" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" isPrintRepeatedValues="false" x="0" y="0" width="67" height="15" uuid="66fcf9e1-ce15-447e-a9a1-bebd504ecd9c">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="6d4bc8c2-0dc8-4d34-a0a1-bf7c177b415c"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{cod_mart}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yy " isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="559" y="0" width="65" height="15" uuid="b5849d27-264f-4f1f-944e-039079a44fe3">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="6d4bc8c2-0dc8-4d34-a0a1-bf7c177b415c"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{data_scad}]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.00#;-#,##0.00#" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="492" y="0" width="65" height="15" uuid="69ce9ff5-3943-4951-94fe-5851d8306c64">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="6d4bc8c2-0dc8-4d34-a0a1-bf7c177b415c"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{quantita}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yy hh:mm" isBlankWhenNull="true">
<reportElement stretchType="ElementGroupHeight" x="459" y="0" width="31" height="15" uuid="0b66cabd-436c-47be-b86d-7834b8f44a13">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="6d4bc8c2-0dc8-4d34-a0a1-bf7c177b415c"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{unt_doc}]]></textFieldExpression>
</textField>
</band>
</detail>
<pageFooter>
<band height="32" splitType="Stretch">
<textField>
<reportElement x="340" y="17" width="80" height="15" uuid="3d66c713-05d5-493c-9d28-6dffe26ee9fd"/>
<textElement textAlignment="Right">
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression><![CDATA["Pagina "+$V{PAGE_NUMBER}+" di"]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement x="420" y="17" width="40" height="15" uuid="7a4e0d44-3b9c-4e11-8ef4-82353411f180"/>
<textElement>
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement x="700" y="20" width="100" height="12" uuid="42533a19-5878-45a3-a114-3ababed05ad7"/>
<textElement textAlignment="Right">
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField>
<reportElement x="2" y="19" width="100" height="12" uuid="27009baf-630a-4c55-9b9c-cb3144f078e7"/>
<textElement>
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{nome_ditta}]]></textFieldExpression>
</textField>
</band>
</pageFooter>
<summary>
<band height="38">
<textField>
<reportElement x="190" y="1" width="300" height="15" uuid="af19bf30-b217-4b94-9a11-1d402e5dea26">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="390a9bf0-efc9-4d78-aec4-ad1bdef041e6"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Totali complessivi Quantità: "]]></textFieldExpression>
</textField>
<textField textAdjust="ScaleFont" pattern="#,##0.00#;-#,##0.00#">
<reportElement x="492" y="1" width="65" height="15" uuid="b00988b9-96c5-415f-b067-425662d1921e"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Tahoma" size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{tot_quanità}]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>