Details

    • Type: New Feature
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: Trunk, 16.11.01
    • Fix Version/s: 16.11.01
    • Component/s: None
    • Labels:
      None

      Description

      QR 2d barcode gives me a lot of fun when I use an adroid mobile. After google search, without any difficulty I found zxing: http://code.google.com/p/zxing/, it's in Apache License.

      I'll submit a sample component of zxing to generate 2d qr barcode.

      1. greetings.png
        1 kB
        Shi Yusen
      2. ofbiz-trunk-zxing.patch
        18 kB
        Shi Yusen
      3. zxing-core-1.6.jar
        342 kB
        Shi Yusen
      4. zxing-javase-1.6.jar
        20 kB
        Shi Yusen

        Activity

        Show
        shiys Shi Yusen added a comment - The greetings.png is generated by visiting: http://localhost:8080/zxing/control/qrcode?text=Hi%20OFBiz%20Members,%20Happy%20Chinese%20New%20Year!%20Shi%20Jinghai%20from%20Beijing&width=200&height=200 Have fun and happy new Chinese year!
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Hi Yusen,

        Do we really need to have a component/webapp for that? I mean, it's great, but could we not integrate it in Example rather, and put the jars in base/lib? what do you think?

        Thanks

        Show
        jacques.le.roux Jacques Le Roux added a comment - Hi Yusen, Do we really need to have a component/webapp for that? I mean, it's great, but could we not integrate it in Example rather, and put the jars in base/lib? what do you think? Thanks
        Hide
        shiys Shi Yusen added a comment -

        Hi Jacques,

        Yes, I agree with you. Only the jars and a simple sample are required as the barcode4j. I'm not sure where to put them.

        Regards,

        Show
        shiys Shi Yusen added a comment - Hi Jacques, Yes, I agree with you. Only the jars and a simple sample are required as the barcode4j. I'm not sure where to put them. Regards,
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Yusen,

        I'd suggest a new Barcodes Menu in Example. When you will have done it (can you?), I will also add an example using the std one I already posted for Product long time ago (it's generated in a PDF using FOP)

        Thanks!

        Show
        jacques.le.roux Jacques Le Roux added a comment - Yusen, I'd suggest a new Barcodes Menu in Example. When you will have done it (can you?), I will also add an example using the std one I already posted for Product long time ago (it's generated in a PDF using FOP) Thanks!
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Bump...

        Show
        jacques.le.roux Jacques Le Roux added a comment - Bump...
        Hide
        shi.jinghai Shi Jinghai added a comment -

        To make QRCode functions work.

        Show
        shi.jinghai Shi Jinghai added a comment - To make QRCode functions work.
        Hide
        shi.jinghai Shi Jinghai added a comment -

        I just submitted some pieces of code to trunk. Here are the changes:

        1. Add zxing-core-3.2.0.jar to framework/base/lib and .classpath. This jar is in Apache License 2.0 and got from http://repo1.maven.org/maven2/com/google/zxing/core/3.2.0/.
        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

        Briefly, you can visit http://demo-trunk-ofbiz.apache.org/example/control/ExampleReportPdfBarcode?exampleId=EX01 to see a QRCode with OFBiz logo in the center when it's updated.

        Show
        shi.jinghai Shi Jinghai added a comment - I just submitted some pieces of code to trunk. Here are the changes: 1. Add zxing-core-3.2.0.jar to framework/base/lib and .classpath. This jar is in Apache License 2.0 and got from http://repo1.maven.org/maven2/com/google/zxing/core/3.2.0/ . 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 Briefly, you can visit http://demo-trunk-ofbiz.apache.org/example/control/ExampleReportPdfBarcode?exampleId=EX01 to see a QRCode with OFBiz logo in the center when it's updated.
        Show
        shi.jinghai Shi Jinghai added a comment - It's in trunk. Example page is here: http://demo-trunk-ofbiz.apache.org/example/control/ExampleReportPdfBarcode?exampleId=EX01

          People

          • Assignee:
            shi.jinghai Shi Jinghai
            Reporter:
            shiys Shi Yusen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 24h
              24h
              Remaining:
              Remaining Estimate - 24h
              24h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development