Changeset 4971
- Timestamp:
- Sep 14, 2018, 11:59:32 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.meludi/trunk/src/net/sf/basedb/meludi/servlet/ReferralGeneratorServlet.java
r4951 r4971 1758 1758 xDiffSpecArr[8] = 0.0f; 1759 1759 1760 int bloodLsbelStartNo = 6; 1760 1761 for (int i = 0; i < 9; i++) 1761 1762 { 1763 if (formTemplateName.equals(REF_FORM_TEMPLATE_WHOLE_BLOOD)) 1764 { 1765 if (i >= bloodLsbelStartNo) 1766 { 1767 text = itemId + ".b"; 1768 /* 1769 if (i > bloodLsbelStartNo) 1770 { 1771 text = text + (i - bloodLsbelStartNo + 1); 1772 } 1773 */ 1774 text = text + (i - bloodLsbelStartNo + 1); 1775 } 1776 } 1762 1777 float xTextLowerLeft2 = xTextLowerLeft + i*xLowerLeftDiff + xDiffSpecArr[i]; 1763 1778 pdfUtil.addBoldText(text, textFontSize, align, xTextLowerLeft2, yTextLowerLeft); … … 1768 1783 1769 1784 // Barcode on labels 1785 String labelText = itemId; 1770 1786 float labelBarcodeWidth = 61.7f; 1771 1787 float labelBarcodeHeight = 13.5f; … … 1776 1792 for (int i = 0; i < 9; i++) 1777 1793 { 1794 if (formTemplateName.equals(REF_FORM_TEMPLATE_WHOLE_BLOOD)) 1795 { 1796 if (i >= bloodLsbelStartNo) 1797 { 1798 labelText = itemId + ".b"; 1799 /* 1800 if (i > bloodLsbelStartNo) 1801 { 1802 labelText = labelText + (i - bloodLsbelStartNo + 1); 1803 } 1804 */ 1805 labelText = labelText + (i - bloodLsbelStartNo + 1); 1806 } 1807 } 1778 1808 float xLabelBarcodeLeft2 = xLabelBarcodeLeft + i*xLowerLeftDiff + xDiffSpecArr[i]; 1779 pdfUtil.addBarcode( itemId, xLabelBarcodeLeft2, yLabelBarcodeLeft, labelBarcodeWidth, labelBarcodeHeight, align, rotationDegrees);1809 pdfUtil.addBarcode(labelText, xLabelBarcodeLeft2, yLabelBarcodeLeft, labelBarcodeWidth, labelBarcodeHeight, align, rotationDegrees); 1780 1810 // Barcode label text 1781 String labelText = itemId;1782 1811 float xLabelTextLeft = xLabelBarcodeLeft2 + 22.0f; 1783 1812 float yLabelTextLeft = yLabelBarcodeLeft;
Note: See TracChangeset
for help on using the changeset viewer.