GS1-128

GS1-128은 Code 128 바코드 사양을 사용하여 구현하는 GS1의 응용 프로그램 표준입니다. 이전 정식 이름은 UCC/EAN-128이었습니다. 더 이상 사용되지 않는 이름으로 UCC-128 및 EAN-128도 있습니다. GS1-128은 유통기한, 배치 번호, 수량, 중량 및 사용자에게 필요한 기타 여러 특성과 같은 추가 데이터를 포함하기 위해 일련의 응용 프로그램 식별자를 사용합니다.

수식에서 BCGS1128 함수를 사용하여 GS1-128을 만들 수 있습니다: =BC_GS1_128(value, color, backgroudColor, showLabel, labelPosition, fontFamily, fontStyle, fontWeight, fontTextDecoration, fontTextAlign, fontSize, quietZonLeft, quietZoneRight, quietZoneTop, quietZoneBottom)
window.onload = function () { var spread = new GC.Spread.Sheets.Workbook(document.getElementById('ss'), {sheetCount: 1}); initSpread(spread); }; var FORMULA = 'BC_GS1_128'; function initSpread(spread) { var sheet = spread.getSheet(0); spread.suspendPaint(); _initCustomSheet(sheet); spread.resumePaint(); } function _initCustomSheet(sheet) { sheet.name('customSheet'); _setData(sheet); _setStyle(sheet); for (var row = 3; row < 7; row++) { sheet.setFormula(row, 3, '=' + FORMULA + '(C' + (row + 1) + ')'); sheet.setFormula(row, 4, '=' + FORMULA + '(C' + (row + 1) + ', , , false)'); sheet.setFormula(row, 5, '=' + FORMULA + '(C' + (row + 1) + ', , , true, "top", "Arial", "normal")'); } } function _setData(sheet) { sheet.getCell(1, 1).value('Service'); sheet.getCell(1, 2).value('Number'); sheet.getCell(1, 3).value('GS1_128 Code'); sheet.getCell(2, 3).value('Default'); sheet.getCell(2, 4).value('Hidden Label'); sheet.getCell(2, 5).value('Customer Label Font'); var dataArray = [ ['Police', 911], ['Telephone Directory Assistance', 411], ['Non-emergency Municipal Services', 311], ['Travel Info Call 511', 511] ]; sheet.setArray(3, 1, dataArray); } function _setStyle(sheet) { for (var row = 3; row < 7; row++) { sheet.setRowHeight(row, 80); } sheet.addSpan(1, 1, 2, 1) sheet.addSpan(1, 2, 2, 1) sheet.addSpan(1, 3, 1, 3) sheet.setColumnWidth(0, 20); sheet.setColumnWidth(1, 200); sheet.setColumnWidth(2, 80); sheet.setColumnWidth(3, 200); sheet.setColumnWidth(4, 200); sheet.setColumnWidth(5, 200); sheet.getRange(1, 1, 2, 5) .foreColor('#000') .backColor('#FFF3CE') .borderLeft(new GC.Spread.Sheets.LineBorder('orange', GC.Spread.Sheets.LineStyle.thin), {outline: true}) .borderBottom(new GC.Spread.Sheets.LineBorder('orange', GC.Spread.Sheets.LineStyle.thin), {outline: true}); sheet .getRange(1, 1, 6, 5) .vAlign(GC.Spread.Sheets.VerticalAlign.center) .hAlign(GC.Spread.Sheets.HorizontalAlign.center) .setBorder(new GC.Spread.Sheets.LineBorder('orange', GC.Spread.Sheets.LineStyle.medium), {outline: true}); sheet.getRange(1, 1, 5, 1).wordWrap(true); }
<!doctype html> <html style="height:100%;font-size:14px;"> <head> <meta name="spreadjs culture" content="ko-kr"/> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" type="text/css" href="$DEMOROOT$/ko/purejs/node_modules/@mescius/spread-sheets/styles/gc.spread.sheets.excel2013white.css"> <script src="$DEMOROOT$/ko/purejs/node_modules/@mescius/spread-sheets/dist/gc.spread.sheets.all.min.js" type="text/javascript"></script> <script src="$DEMOROOT$/ko/purejs/node_modules/@mescius/spread-sheets-barcode/dist/gc.spread.sheets.barcode.min.js" type="text/javascript"></script> <script src="$DEMOROOT$/ko/purejs/node_modules/@mescius/spread-sheets-resources-ko/dist/gc.spread.sheets.resources.ko.min.js" type="text/javascript"></script> <script src="$DEMOROOT$/spread/source/js/license.js" type="text/javascript"></script> <script src="app.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="styles.css"> </head> <body> <div class="sample-tutorial"> <div id="ss" class="sample-tutorial"></div> </div> </body> </html>
.sample-tutorial { position: relative; height: 100%; overflow: hidden; } body { position: absolute; top: 0; bottom: 0; left: 0; right: 0; }