OFBIZ-4154 Use ZXing to generate QR 2d barcode.
1. Add zxing-core-3.2.0.jar to framework/base/lib and .classpath. 2. Add services_qrcode.xml and QRCodeService.java in framework/common/. 3. Add qrcode request in common-controller.xml and QRCodeEvents.java under framework/common/. 4. Add qrcode.properties and QRCodeUiLabels.xml under framework/common/. 5. Add a barcode example page in specialpurpose/example, entry is on page: /example/control/EditExample?exampleId=EX01, the example can be seen on page: /example/control/ExampleReportPdfBarcode?exampleId=EX01 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1696921 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -511,4 +511,22 @@ under the License.
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleReportPdfBarcode">
|
||||
<section>
|
||||
<actions>
|
||||
<!-- base/top/specific map first, then more common map added for shared labels -->
|
||||
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
|
||||
<set field="exampleId" from-field="parameters.exampleId"/>
|
||||
<entity-one entity-name="Example" value-field="example"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<platform-specific>
|
||||
<xsl-fo><html-template location="component://example/webapp/example/reports/BarCode.fo.ftl"/></xsl-fo>
|
||||
</platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
|
||||
Reference in New Issue
Block a user