Advertisement
aadddrr

backup ReportBarcodeWarranty

May 31st, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.50 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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="Blank_A4_Landscape" pageWidth="254" pageHeight="82" orientation="Landscape" columnWidth="244" leftMargin="5" rightMargin="5" topMargin="2" bottomMargin="2" uuid="e7847621-3291-4ffe-a502-aaa6ee6f783d">
  3.     <property name="com.jaspersoft.studio.unit." value="inch"/>
  4.     <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
  5.     <property name="ireport.zoom" value="3.0"/>
  6.     <property name="ireport.x" value="0"/>
  7.     <property name="ireport.y" value="0"/>
  8.     <subDataset name="dataset1" uuid="7311a7f0-0cb7-495a-aedc-8e907af470eb"/>
  9.     <queryString>
  10.         <![CDATA[SELECT f_get_product_code(A.product_id)||'#'||F.serial_number AS qr_code,
  11.     f_get_product_code(A.product_id) AS model, F.serial_number AS serial_number,
  12.     D.warranty_type_name AS warranty_type_name,
  13.     CASE WHEN D.flg_print_detail = 'Y' THEN true ELSE false END AS is_print_detail,
  14.     G.detail_field, G.detail_value
  15. FROM sl_do_item A
  16. INNER JOIN sl_so_item B ON B.so_item_id = A.ref_id AND B.product_id = A.product_id
  17. INNER JOIN sl_so_warranty_item C ON C.so_item_id = B.so_item_id
  18. INNER JOIN m_warranty_type D ON D.warranty_type_id = C.warranty_type_id
  19. INNER JOIN sl_do_product E ON E.do_item_id = A.do_item_id
  20. INNER JOIN in_product_balance F ON F.product_balance_id = E.product_balance_id
  21. LEFT JOIN m_warranty_type_detail G ON G.warranty_type_id = D.warranty_type_id
  22. WHERE A.do_id = 16837 AND A.tenant_id = 10
  23. ORDER BY qr_code, model, serial_number, warranty_type_name, is_print_detail]]>
  24.     </queryString>
  25.     <field name="qr_code" class="java.lang.String"/>
  26.     <field name="model" class="java.lang.String"/>
  27.     <field name="serial_number" class="java.lang.String"/>
  28.     <field name="warranty_type_name" class="java.lang.String"/>
  29.     <field name="is_print_detail" class="java.lang.Boolean"/>
  30.     <field name="detail_field" class="java.lang.String"/>
  31.     <field name="detail_value" class="java.lang.String"/>
  32.     <variable name="ProductWarrantyNumber" class="java.lang.Integer" resetType="None" incrementType="Group" incrementGroup="ProductWarranty" calculation="Count"/>
  33.     <group name="ProductWarranty">
  34.         <groupExpression><![CDATA[$F{qr_code} + $F{model} + $F{serial_number} + $F{warranty_type_name} + $F{is_print_detail}.toString()]]></groupExpression>
  35.         <groupHeader>
  36.             <band height="33" splitType="Stretch">
  37.                 <staticText>
  38.                     <reportElement x="79" y="10" width="58" height="5" uuid="44df8b0b-efd7-4fbe-a033-d07ec0002bbc"/>
  39.                     <textElement>
  40.                         <font fontName="DejaVu Sans" size="4" isBold="true"/>
  41.                     </textElement>
  42.                     <text><![CDATA[Model / No Serial]]></text>
  43.                 </staticText>
  44.                 <textField isBlankWhenNull="true">
  45.                     <reportElement x="142" y="10" width="102" height="5" uuid="28e69ee5-54db-4c7b-815a-46a3b072d660"/>
  46.                     <textElement>
  47.                         <font fontName="DejaVu Sans" size="4" isBold="true" isPdfEmbedded="false"/>
  48.                     </textElement>
  49.                     <textFieldExpression><![CDATA[$F{model}+" / "+$F{serial_number}]]></textFieldExpression>
  50.                 </textField>
  51.                 <staticText>
  52.                     <reportElement x="79" y="17" width="58" height="5" uuid="68401576-07fe-4cb0-b12f-d3f867416e24">
  53.                         <property name="com.jaspersoft.studio.unit.height" value="inch"/>
  54.                     </reportElement>
  55.                     <textElement>
  56.                         <font fontName="DejaVu Sans" size="4" isBold="true"/>
  57.                     </textElement>
  58.                     <text><![CDATA[Jenis Garansi]]></text>
  59.                 </staticText>
  60.                 <textField isBlankWhenNull="true">
  61.                     <reportElement x="142" y="17" width="102" height="5" uuid="adc9b67d-3380-48cc-a4c6-29963f506806">
  62.                         <property name="com.jaspersoft.studio.unit.height" value="inch"/>
  63.                     </reportElement>
  64.                     <textElement>
  65.                         <font fontName="DejaVu Sans" size="4" isBold="true" isPdfEmbedded="false"/>
  66.                     </textElement>
  67.                     <textFieldExpression><![CDATA[$F{warranty_type_name}]]></textFieldExpression>
  68.                 </textField>
  69.                 <staticText>
  70.                     <reportElement x="138" y="10" width="4" height="5" uuid="abdf2fbe-5c41-4a18-9650-1253bf45bbb4"/>
  71.                     <textElement textAlignment="Center">
  72.                         <font fontName="DejaVu Sans" size="4" isBold="true"/>
  73.                     </textElement>
  74.                     <text><![CDATA[: ]]></text>
  75.                 </staticText>
  76.                 <staticText>
  77.                     <reportElement x="138" y="17" width="4" height="5" uuid="354dc7ec-30ef-43a0-8d0c-9baf9a2b458d"/>
  78.                     <textElement textAlignment="Center">
  79.                         <font fontName="DejaVu Sans" size="4" isBold="true"/>
  80.                     </textElement>
  81.                     <text><![CDATA[: ]]></text>
  82.                 </staticText>
  83.             </band>
  84.         </groupHeader>
  85.         <groupFooter>
  86.             <band/>
  87.         </groupFooter>
  88.     </group>
  89.     <detail>
  90.         <band height="19" splitType="Stretch">
  91.             <textField>
  92.                 <reportElement x="45" y="0" width="199" height="13" uuid="0def111b-1e81-4c03-b2b7-1fae0e9b8c23"/>
  93.                 <textElement textAlignment="Center" verticalAlignment="Middle">
  94.                     <font size="6"/>
  95.                 </textElement>
  96.                 <textFieldExpression><![CDATA[$F{detail_field}]]></textFieldExpression>
  97.             </textField>
  98.             <image onErrorType="Blank">
  99.                 <reportElement x="11" y="0" width="13" height="13" uuid="3179b907-a2b6-46e3-95e9-f8ca63563a8e"/>
  100.                 <imageExpression><![CDATA[com.google.zxing.client.j2se.MatrixToImageWriter.toBufferedImage(
  101.    new com.google.zxing.qrcode.QRCodeWriter().encode(
  102.        $F{qr_code},
  103.        com.google.zxing.BarcodeFormat.QR_CODE, 450, 450))]]></imageExpression>
  104.             </image>
  105.         </band>
  106.     </detail>
  107. </jasperReport>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement