BOM(部品表)3

Wijmoのコントロールを使用して、製品に必要な部品を一覧表にする部品表(BOM:Bill Of Materials)を作成する例です。このサンプルでは、次のシナリオを確認することができます。

  • ComboBoxの選択肢に応じて、グリッドデータのフィルタリングします
  • グリッドの任意のセルを結合して表示します
  • グリッドをツリー形式で表示します(ツリー形式の場合はセルを結合することはできません)
  • Menuを利用して、PDF出力時の設定を変更します
  • FlexGridPdfConverterを利用して、FlexGridをPDF出力します
import 'bootstrap.css'; import '@mescius/wijmo.styles/wijmo.css'; import './styles.css'; import { FlexGrid, HeadersVisibility } from '@mescius/wijmo.grid'; import { ComboBox, Menu } from '@mescius/wijmo.input'; import '@mescius/wijmo.cultures/wijmo.culture.ja'; import { gridData, treeData } from './data'; import * as pdf from '@mescius/wijmo.pdf'; import * as gridPdf from '@mescius/wijmo.grid.pdf'; import * as wijmo from '@mescius/wijmo'; // document.readyState === 'complete' ? init() : window.onload = init; // function init() { var grid = new FlexGrid('#grid', { allowMerging: 'Cells', alternatingRowStep: 0, autoGenerateColumns: false, columns: [ { binding: 'productType', width: '1.3*', header: '製品タイプ', isReadOnly: true, allowMerging: true, cssClass: 'marged' }, { binding: 'productCode', width: '1.7*', header: '商品コード', isReadOnly: true, allowMerging: true, cssClass: 'marged' }, { binding: 'name', width: '1.5*', header: '名称' }, { binding: 'category', width: '*', header: '区分', }, { binding: 'supplier', width: '1.5*', header: 'サプライヤ', allowMerging: true, cssClass: 'marged' }, { binding: 'date', width: '*', header: '発注日' }, { binding: 'status', width: '*', header: '作業状況', allowMerging: true, cssClass: 'marged' }, { binding: 'others', width: '*', header: '備考' }, ], itemsSource: gridData(), headersVisibility: HeadersVisibility.Column }); grid.formatItem.addHandler(function (s, e) { if (e.col === 1 && e.panel !== s.columnHeaders && (document.getElementById('cb')).checked && e.cell.childNodes.length < 2) { let padding = Number(e.cell.style.paddingLeft.split('p')[0]) + 22; e.cell.style.paddingLeft = `${padding}px`; } }); const combo = new ComboBox('#combo', { itemsSource: [ { status: 'すべて ' }, { status: '作業中' }, { status: '完了' }, ], displayMemberPath: 'status', selectedIndexChanged: (s, e) => { grid.collectionView.filter = (item) => s.selectedIndex === 0 ? item : item.status === s.selectedItem.status; } }); grid.select(-1, -1); document.getElementById('cb').addEventListener('change', (e) => { document.getElementsByName("marged").forEach((element) => { element.disabled = e.target.checked; }); grid.columns[0].visible = !e.target.checked; grid.childItemsPath = e.target.checked ? ['path1', 'path2', 'path3'] : null; grid.itemsSource = e.target.checked ? treeData() : gridData(); combo.onSelectedIndexChanged(); }); document.getElementsByName("marged").forEach((element) => { element.addEventListener('change', (e) => { grid.columns.forEach((column) => { if (column.cssClass !== null) column.allowMerging = document.getElementById('radioyes').checked; }); }); }); let scaleMode = gridPdf.ScaleMode.ActualSize, orientation = pdf.PdfPageOrientation.Portrait, exportMode = gridPdf.ExportMode.All; // let menuScaleMode = new Menu('#lbScaleMode', { selectedIndexChanged: (s) => { if (s.selectedIndex >= 0) { scaleMode = wijmo.asEnum(s.selectedValue, gridPdf.ScaleMode); updateMenuHeader(s, 'グリッドのサイズ'); } } }); let menuOrientation = new Menu('#lbOrientation', { selectedIndexChanged: (s) => { if (s.selectedIndex >= 0) { orientation = wijmo.asEnum(s.selectedValue, pdf.PdfPageOrientation); updateMenuHeader(s, 'ページの向き'); } } }); let menuExportMode = new Menu('#lbExportMode', { selectedIndexChanged: (s) => { if (s.selectedIndex >= 0) { exportMode = wijmo.asEnum(s.selectedValue, gridPdf.ExportMode); updateMenuHeader(s, '出力範囲'); } } }); updateMenuHeader(menuScaleMode, 'グリッドのサイズ'); updateMenuHeader(menuOrientation, 'ページの向き'); updateMenuHeader(menuExportMode, '出力範囲'); // function updateMenuHeader(menu, header) { menu.header = header + ': <b>' + menu.text + '</b>'; } document.querySelector('#btnExport').addEventListener('click', () => { gridPdf.FlexGridPdfConverter.export(grid, 'FlexGrid.pdf', { embeddedFonts: [{ source: 'https://demo.mescius.jp/wijmo/sample/fonts/ipaexg.ttf', name: 'ipaexg' }], maxPages: 10, exportMode: exportMode, scaleMode: scaleMode, documentOptions: { pageSettings: { layout: orientation }, header: { declarative: { text: '\t&[Page] / &[Pages]' } }, footer: { declarative: { text: '\t&[Page] / &[Pages]' } } }, styles: { cellStyle: { font: { family: 'ipaexg' }, backgroundColor: '#ffffff', borderColor: '#c6c6c6' }, altCellStyle: { backgroundColor: '#f9f9f9' }, groupCellStyle: { backgroundColor: '#dddddd' }, headerCellStyle: { backgroundColor: '#eaeaea' } } }); }); }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>MESCIUS Wijmo BOM Example3</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name=”description” content=”Wijmoのコントロールを使用して、製品に必要な部品を一覧表にする部品表を作成する例です。” /> <!-- SystemJS --> <script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.21.5/system.src.js" integrity="sha512-skZbMyvYdNoZfLmiGn5ii6KmklM82rYX2uWctBhzaXPxJgiv4XBwJnFGr5k8s+6tE1pcR1nuTKghozJHyzMcoA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <script src="systemjs.config.js"></script> <script> System.import('./src/app'); </script> </head> <body> <div class="container-fluid"> <div class="itemArea form-inline well"> <div> <label for="combo">作業状況: </label> <div id="combo"></div> <div class="chekbox" id="chekbox"> <label for="chekbox">グリッドの表示形式: </label> <p>セルを結合して表示します。 </p> <input type="radio" name="marged" id="radioyes" checked>はい <input type="radio" name="marged" id="radiono">いいえ </div> <input type="checkbox" id="cb">ツリー形式で表示します。 </div> <div> <label for="combo">出力設定: </label> <div id="menu"> <ul class="list-inline"> <li> <select id="lbScaleMode"> <option value="0" selected>実際のサイズ</option> <option value="1">ページ幅に合わせる</option> <option value="2">ページ全体に合わせる</option> </select> </li> <li> <select id="lbOrientation"> <option value="0" selected>縦</option> <option value="1">横</option> </select> </li> <li> <select id="lbExportMode"> <option value="0" selected>すべて</option> <option value="1">選択範囲のみ</option> </select> </li> </ul> <button class="btn btn-default" id="btnExport">エクスポート</button> </div> </div> </div> <div id="grid"></div> </div> </body> </html>
export function gridData() { return [ //BTA { productType: 'TypeA', productCode: "BTA-01", name: "BicycleTypeA", category: "プロダクト", quantity: 1, unitPrice: 35000, supplier: 'GrapeCycle Ltd.', date: new Date(), others: '承認待ち', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-02", name: "ボディ", category: "パーツ", quantity: 1, unitPrice: 4500, supplier: 'シラー製作所', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-02-01", name: "フレーム", category: "パーツ", quantity: 1, unitPrice: 3000, supplier: 'シラー製作所', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-02-02", name: "ハンドル", category: "パーツ", quantity: 1, unitPrice: 1500, supplier: 'シラー製作所', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-03", name: "ベル", category: "パーツ", quantity: 1, unitPrice: 5, supplier: '仙台ベル工房', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-04", name: "リフレクター", category: "パーツ", quantity: 2, unitPrice: 500, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-05", name: "サドル", category: "パーツ", quantity: 1, unitPrice: 1000, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-06", name: "ホイール", category: "パーツ", quantity: 2, unitPrice: 3000, supplier: '', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-06-01", name: "リム", category: "パーツ", quantity: 2, unitPrice: 2000, supplier: '葡萄製鉄(株)', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-06-02", name: "スポーク", category: "パーツ", quantity: 24, unitPrice: 100, supplier: '葡萄製鉄(株)', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-06-03", name: "ハブ", category: "パーツ", quantity: 2, unitPrice: 600, supplier: '葡萄製鉄(株)', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-07", name: "トランスミッション", category: "パーツ", quantity: 4500, unitPrice: 4000, supplier: 'BigTheBudo', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-07-01", name: "スプロケット", category: "パーツ", quantity: 8, unitPrice: 800, supplier: 'BigTheBudo', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-07-02", name: "チェーン", category: "パーツ", quantity: 1, unitPrice: 500, supplier: '葡萄チェーン', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-07-03", name: "シフトレバー", category: "パーツ", quantity: 1, unitPrice: 500, supplier: 'BigTheBudo', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-07-04", name: "シフトワイヤー", category: "パーツ", quantity: 2, unitPrice: 200, supplier: 'BigTheBudo', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-08", name: "ブレーキ", category: "パーツ", quantity: 0, unitPrice: 5000, supplier: 'Muscut Parts Thai', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-08-01", name: "ブレーキレバー", category: "パーツ", quantity: 2, unitPrice: 400, supplier: 'Muscut Parts Thai', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-08-02", name: "ブレーキワイヤー", category: "パーツ", quantity: 2, unitPrice: 200, supplier: 'Muscut Parts Thai', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-09", name: "ペダル", category: "パーツ", quantity: 2, unitPrice: 1000, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeA', productCode: "BTA-10", name: "スタンド", category: "パーツ", quantity: 1, unitPrice: 3000, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '作業中' }, { productType: 'TypeB', productCode: "BTB-01", name: "BicycleTypeB", category: "プロダクト", quantity: 1, unitPrice: 35000, supplier: 'GrapeCycle Ltd.', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-02", name: "ボディ", category: "パーツ", quantity: 1, unitPrice: 4500, supplier: 'シラー製作所', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-02-01", name: "フレーム", category: "パーツ", quantity: 1, unitPrice: 3000, supplier: 'シラー製作所', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-02-02", name: "ハンドル", category: "パーツ", quantity: 1, unitPrice: 1500, supplier: 'シラー製作所', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-03", name: "ベル", category: "パーツ", quantity: 1, unitPrice: 500, supplier: '仙台ベル工房', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-04", name: "リフレクター", category: "パーツ", quantity: 2, unitPrice: 500, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-05", name: "サドル", category: "パーツ", quantity: 1, unitPrice: 1000, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-06", name: "ホイール", category: "パーツ", quantity: 2, unitPrice: 8000, supplier: '', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-06-01", name: "リム", category: "パーツ", quantity: 2, unitPrice: 2000, supplier: '葡萄製鉄(株)', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-06-02", name: "スポーク", category: "パーツ", quantity: 24, unitPrice: 100, supplier: '葡萄製鉄(株)', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-06-03", name: "ハブ", category: "パーツ", quantity: 2, unitPrice: 600, supplier: '葡萄製鉄(株)', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-07", name: "トランスミッション", category: "パーツ", quantity: 0, unitPrice: 7500, supplier: 'BigTheBudo', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-07-01", name: "スプロケット", category: "パーツ", quantity: 8, unitPrice: 800, supplier: 'BigTheBudo', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-07-02", name: "チェーン", category: "パーツ", quantity: 1, unitPrice: 500, supplier: '葡萄チェーン', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-07-03", name: "シフトレバー", category: "パーツ", quantity: 1, unitPrice: 500, supplier: 'BigTheBudo', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-07-04", name: "シフトワイヤー", category: "パーツ", quantity: 2, unitPrice: 200, supplier: 'BigTheBudo', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-08", name: "ブレーキ", category: "パーツ", quantity: 0, unitPrice: 6000, supplier: 'Muscut Parts Thai', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-08-01", name: "ブレーキレバー", category: "パーツ", quantity: 2, unitPrice: 400, supplier: 'Muscut Parts Thai', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-08-02", name: "ブレーキワイヤー", category: "パーツ", quantity: 2, unitPrice: 200, supplier: 'Muscut Parts Thai', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-09", name: "ペダル", category: "パーツ", quantity: 2, unitPrice: 1000, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '完了' }, { productType: 'TypeB', productCode: "BTB-10", name: "スタンド", category: "パーツ", quantity: 1, unitPrice: 3000, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '完了' }, ]; } export function treeData() { return [{ productCode: "BTA-01", name: "BicycleTypeA", category: "プロダクト", quantity: 1, unitPrice: 35000, supplier: 'GrapeCycle Ltd.', date: new Date(), others: '承認待ち', status: '作業中', path1: [ { productCode: "BTA-02", name: "ボディ", category: "パーツ", quantity: 1, unitPrice: 4500, supplier: 'シラー製作所', date: new Date(), others: '', status: '作業中', path2: [ { productCode: "BTA-02-01", name: "フレーム", category: "パーツ", quantity: 1, unitPrice: 3000, supplier: 'シラー製作所', date: new Date(), others: '', status: '作業中' }, { productCode: "BTA-02-02", name: "ハンドル", category: "パーツ", quantity: 1, unitPrice: 1500, supplier: 'シラー製作所', date: new Date(), others: '', status: '作業中' }, ], }, { productCode: "BTA-03", name: "ベル", category: "パーツ", quantity: 1, unitPrice: 5, supplier: '仙台ベル工房', date: new Date(), others: '', status: '作業中' }, { productCode: "BTA-04", name: "リフレクター", category: "パーツ", quantity: 2, unitPrice: 500, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '作業中' }, { productCode: "BTA-05", name: "サドル", category: "パーツ", quantity: 1, unitPrice: 1000, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '作業中' }, { productCode: "BTA-06", name: "ホイール", category: "パーツ", quantity: 2, unitPrice: 3000, supplier: '', date: new Date(), others: '', status: '作業中', path2: [ { productCode: "BTA-06-01", name: "リム", category: "パーツ", quantity: 2, unitPrice: 2000, supplier: '葡萄製鉄(株)', date: new Date(), others: '', status: '作業中' }, { productCode: "BTA-06-02", name: "スポーク", category: "パーツ", quantity: 24, unitPrice: 100, supplier: '葡萄製鉄(株)', date: new Date(), others: '', status: '作業中' }, { productCode: "BTA-06-03", name: "ハブ", category: "パーツ", quantity: 2, unitPrice: 900, supplier: '葡萄製鉄(株)', date: new Date(), others: '', status: '作業中' }, ] }, { productCode: "BTA-07", name: "トランスミッション", category: "パーツ", quantity: 0, unitPrice: 4000, supplier: 'BigTheBudo', date: new Date(), others: '', status: '作業中', path2: [ { productCode: "BTA-07-01", name: "スプロケット", category: "パーツ", quantity: 8, unitPrice: 800, supplier: 'BigTheBudo', date: new Date(), others: '', status: '作業中' }, { productCode: "BTA-07-02", name: "チェーン", category: "パーツ", quantity: 1, unitPrice: 500, supplier: '葡萄チェーン', date: new Date(), others: '', status: '作業中' }, { productCode: "BTA-07-03", name: "シフトレバー", category: "パーツ", quantity: 1, unitPrice: 500, supplier: 'BigTheBudo', date: new Date(), others: '', status: '作業中' }, { productCode: "BTA-07-04", name: "シフトワイヤー", category: "パーツ", quantity: 2, unitPrice: 200, supplier: 'BigTheBudo', date: new Date(), others: '', status: '作業中' }, ] }, { productCode: "BTA-08", name: "ブレーキ", category: "パーツ", quantity: 0, unitPrice: 1500, supplier: 'Muscut Parts Thai', date: new Date(), others: '', status: '作業中', path2: [ { productCode: "BTA-08-01", name: "ブレーキレバー", category: "パーツ", quantity: 2, unitPrice: 400, supplier: 'Muscut Parts Thai', date: new Date(), others: '', status: '作業中' }, { productCode: "BTA-08-02", name: "ブレーキワイヤー", category: "パーツ", quantity: 2, unitPrice: 200, supplier: 'Muscut Parts Thai', date: new Date(), others: '', status: '作業中' }, ] }, { productCode: "BTA-09", name: "ペダル", category: "パーツ", quantity: 2, unitPrice: 1000, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '作業中' }, { productCode: "BTA-10", name: "スタンド", category: "パーツ", quantity: 1, unitPrice: 3000, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '作業中' }, ], }, { productCode: "BTB-01", name: "BicycleTypeB", category: "プロダクト", quantity: 1, unitPrice: 35000, supplier: 'GrapeCycle Ltd.', date: new Date(), others: '', status: '完了', path1: [ { productCode: "BTB-02", name: "ボディ", category: "パーツ", quantity: 1, unitPrice: 4500, supplier: 'シラー製作所', date: new Date(), others: '', status: '完了', path2: [ { productCode: "BTB-02-01", name: "フレーム", category: "パーツ", quantity: 1, unitPrice: 3000, supplier: 'シラー製作所', date: new Date(), others: '', status: '完了' }, { productCode: "BTB-02-02", name: "ハンドル", category: "パーツ", quantity: 1, unitPrice: 1500, supplier: 'シラー製作所', date: new Date(), others: '', status: '完了' }, ], }, { productCode: "BTB-03", name: "ベル", category: "パーツ", quantity: 1, unitPrice: 500, supplier: '仙台ベル工房', date: new Date(), others: '', status: '完了' }, { productCode: "BTB-04", name: "リフレクター", category: "パーツ", quantity: 2, unitPrice: 500, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '完了' }, { productCode: "BTB-05", name: "サドル", category: "パーツ", quantity: 1, unitPrice: 1000, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '完了' }, { productCode: "BTB-06", name: "ホイール", category: "パーツ", quantity: 2, unitPrice: 4000, supplier: '', date: new Date(), others: '', status: '完了', path2: [ { productCode: "BTB-06-01", name: "リム", category: "パーツ", quantity: 2, unitPrice: 2000, supplier: '葡萄製鉄(株)', date: new Date(), others: '', status: '完了' }, { productCode: "BTB-06-02", name: "スポーク", category: "パーツ", quantity: 24, unitPrice: 500, supplier: '葡萄製鉄(株)', date: new Date(), others: '', status: '完了' }, { productCode: "BTB-06-03", name: "ハブ", category: "パーツ", quantity: 2, unitPrice: 1500, supplier: '葡萄製鉄(株)', date: new Date(), others: '', status: '完了' }, ] }, { productCode: "BTA-07", name: "トランスミッション", category: "パーツ", quantity: 0, unitPrice: 4000, supplier: 'BigTheBudo', date: new Date(), others: '', status: '完了', path2: [ { productCode: "BTA-07-01", name: "スプロケット", category: "パーツ", quantity: 8, unitPrice: 800, supplier: 'BigTheBudo', date: new Date(), others: '', status: '完了' }, { productCode: "BTA-07-02", name: "チェーン", category: "パーツ", quantity: 1, unitPrice: 500, supplier: '葡萄チェーン', date: new Date(), others: '', status: '完了' }, { productCode: "BTA-07-03", name: "シフトレバー", category: "パーツ", quantity: 1, unitPrice: 500, supplier: 'BigTheBudo', date: new Date(), others: '', status: '完了' }, { productCode: "BTA-07-04", name: "シフトワイヤー", category: "パーツ", quantity: 2, unitPrice: 200, supplier: 'BigTheBudo', date: new Date(), others: '', status: '完了' }, ] }, { productCode: "BTB-08", name: "ブレーキ", category: "パーツ", quantity: 0, unitPrice: 6000, supplier: 'Muscut Parts Thai', date: new Date(), others: '', status: '完了', path2: [ { productCode: "BTB-08-01", name: "ブレーキレバー", category: "パーツ", quantity: 2, unitPrice: 400, supplier: 'Muscut Parts Thai', date: new Date(), others: '', status: '完了' }, { productCode: "BTB-08-02", name: "ブレーキワイヤー", category: "パーツ", quantity: 2, unitPrice: 200, supplier: 'Muscut Parts Thai', date: new Date(), others: '', status: '完了' }, ] }, { productCode: "BTB-09", name: "ペダル", category: "パーツ", quantity: 2, unitPrice: 1000, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '完了' }, { productCode: "BTB-10", name: "スタンド", category: "パーツ", quantity: 1, unitPrice: 3000, supplier: '(株)葡萄自転車', date: new Date(), others: '', status: '完了' } ] }, ]; }
.wj-flexgrid { max-height: 300px; } .itemArea{ display: flex; flex-direction: row; } .wj-cell.wj-group:not(.wj-state-selected):not(.wj-state-multi-selected) { background-color: white; } .chekbox{ margin-top: 10px } #cb{ margin-top: 10px }
(function (global) { System.config({ transpiler: 'plugin-babel', babelOptions: { es2015: true }, meta: { '*.css': { loader: 'css' } }, paths: { // paths serve as alias 'npm:': 'node_modules/' }, // map tells the System loader where to look for things map: { 'jszip': 'npm:jszip/dist/jszip.js', '@mescius/wijmo': 'npm:@mescius/wijmo/index.js', '@mescius/wijmo.input': 'npm:@mescius/wijmo.input/index.js', '@mescius/wijmo.styles': 'npm:@mescius/wijmo.styles', '@mescius/wijmo.cultures': 'npm:@mescius/wijmo.cultures', '@mescius/wijmo.chart': 'npm:@mescius/wijmo.chart/index.js', '@mescius/wijmo.chart.analytics': 'npm:@mescius/wijmo.chart.analytics/index.js', '@mescius/wijmo.chart.animation': 'npm:@mescius/wijmo.chart.animation/index.js', '@mescius/wijmo.chart.annotation': 'npm:@mescius/wijmo.chart.annotation/index.js', '@mescius/wijmo.chart.finance': 'npm:@mescius/wijmo.chart.finance/index.js', '@mescius/wijmo.chart.finance.analytics': 'npm:@mescius/wijmo.chart.finance.analytics/index.js', '@mescius/wijmo.chart.hierarchical': 'npm:@mescius/wijmo.chart.hierarchical/index.js', '@mescius/wijmo.chart.interaction': 'npm:@mescius/wijmo.chart.interaction/index.js', '@mescius/wijmo.chart.radar': 'npm:@mescius/wijmo.chart.radar/index.js', '@mescius/wijmo.chart.render': 'npm:@mescius/wijmo.chart.render/index.js', '@mescius/wijmo.chart.webgl': 'npm:@mescius/wijmo.chart.webgl/index.js', '@mescius/wijmo.chart.map': 'npm:@mescius/wijmo.chart.map/index.js', '@mescius/wijmo.gauge': 'npm:@mescius/wijmo.gauge/index.js', '@mescius/wijmo.grid': 'npm:@mescius/wijmo.grid/index.js', '@mescius/wijmo.grid.detail': 'npm:@mescius/wijmo.grid.detail/index.js', '@mescius/wijmo.grid.filter': 'npm:@mescius/wijmo.grid.filter/index.js', '@mescius/wijmo.grid.search': 'npm:@mescius/wijmo.grid.search/index.js', '@mescius/wijmo.grid.grouppanel': 'npm:@mescius/wijmo.grid.grouppanel/index.js', '@mescius/wijmo.grid.multirow': 'npm:@mescius/wijmo.grid.multirow/index.js', '@mescius/wijmo.grid.transposed': 'npm:@mescius/wijmo.grid.transposed/index.js', '@mescius/wijmo.grid.transposedmultirow': 'npm:@mescius/wijmo.grid.transposedmultirow/index.js', '@mescius/wijmo.grid.pdf': 'npm:@mescius/wijmo.grid.pdf/index.js', '@mescius/wijmo.grid.sheet': 'npm:@mescius/wijmo.grid.sheet/index.js', '@mescius/wijmo.grid.xlsx': 'npm:@mescius/wijmo.grid.xlsx/index.js', '@mescius/wijmo.grid.selector': 'npm:@mescius/wijmo.grid.selector/index.js', '@mescius/wijmo.grid.cellmaker': 'npm:@mescius/wijmo.grid.cellmaker/index.js', '@mescius/wijmo.nav': 'npm:@mescius/wijmo.nav/index.js', '@mescius/wijmo.odata': 'npm:@mescius/wijmo.odata/index.js', '@mescius/wijmo.olap': 'npm:@mescius/wijmo.olap/index.js', '@mescius/wijmo.rest': 'npm:@mescius/wijmo.rest/index.js', '@mescius/wijmo.pdf': 'npm:@mescius/wijmo.pdf/index.js', '@mescius/wijmo.pdf.security': 'npm:@mescius/wijmo.pdf.security/index.js', '@mescius/wijmo.viewer': 'npm:@mescius/wijmo.viewer/index.js', '@mescius/wijmo.xlsx': 'npm:@mescius/wijmo.xlsx/index.js', '@mescius/wijmo.undo': 'npm:@mescius/wijmo.undo/index.js', '@mescius/wijmo.interop.grid': 'npm:@mescius/wijmo.interop.grid/index.js', '@mescius/wijmo.touch': 'npm:@mescius/wijmo.touch/index.js', '@mescius/wijmo.cloud': 'npm:@mescius/wijmo.cloud/index.js', '@mescius/wijmo.barcode': 'npm:@mescius/wijmo.barcode/index.js', '@mescius/wijmo.barcode.common': 'npm:@mescius/wijmo.barcode.common/index.js', '@mescius/wijmo.barcode.composite': 'npm:@mescius/wijmo.barcode.composite/index.js', '@mescius/wijmo.barcode.specialized': 'npm:@mescius/wijmo.barcode.specialized/index.js', 'jszip': 'npm:jszip/dist/jszip.js', 'react': 'npm:react/umd/react.production.min.js', 'react-dom': 'npm:react-dom/umd/react-dom.production.min.js', 'react-dom/client': 'npm:react-dom/umd/react-dom.production.min.js', 'redux': 'npm:redux/dist/redux.min.js', 'react-redux': 'npm:react-redux/dist/react-redux.min.js', 'bootstrap.css': 'npm:bootstrap/dist/css/bootstrap.min.css', 'css': 'npm:systemjs-plugin-css/css.js', 'plugin-babel': 'npm:systemjs-plugin-babel/plugin-babel.js', 'systemjs-babel-build':'npm:systemjs-plugin-babel/systemjs-babel-browser.js' }, // packages tells the System loader how to load when no filename and/or no extension packages: { src: { defaultExtension: 'js' }, "node_modules": { defaultExtension: 'js' }, } }); })(this);