/**
 * Created by Mai on 2017/4/1.
 */
var BillsGridSetting = {
    cols: [
        {
            head: {
                titleNames: ['项目编码'],
                spanCols: [1],
                spanRows: [2],
                vAlign: [1, 1],
                hAlign: [1, 1],
                font: 'Arial'
            },
            data: {
                field: 'code',
                vAlign: 1,
                hAlign: 0,
                font: 'Arial'
            },
            width: 200
        },
        {
            head: {
                titleNames: ['项目名称'],
                spanCols: [1],
                spanRows: [2],
                vAlign: [1, 1],
                hAlign: [1, 1],
                font: 'Arial'
            },
            data: {
                field: 'name',
                vAlign: 1,
                hAlign: 0,
                font: 'Arial'
            },
            width: 150
        },
        {
            head: {
                titleNames:[ '单位'],
                spanCols: [1],
                spanRows: [2],
                vAlign: [1, 1],
                hAlign: [1, 1],
                font: 'Arial'
            },
            data: {
                field: 'unit',
                vAlign: 1,
                hAlign: 1,
                font: 'Arial'
            },
            width: 40
        },
        {
            head: {
                titleNames:[ '工程量'],
                spanCols: [1],
                spanRows: [2],
                vAlign: [1, 1],
                hAlign: [1, 1],
                font: 'Arial'
            },
            data: {
                field: 'Quantity',
                vAlign: 1,
                hAlign: 2,
                font: 'Arial'
            },
            width: 60
        },
        {
            head: {
                titleNames: ['单价'],
                spanCols: [1],
                spanRows: [2],
                vAlign: [1, 1],
                hAlign: [1, 1],
                font: 'Arial'
            },
            data: {
                field: 'UnitPrice',
                vAlign: 1,
                hAlign: 2,
                font: 'Arial'
            },
            width: 60
        },
        {
            head: {
                titleNames: ['设计数量', '数量1'],
                spanCols: [2, 1],
                spanRows: [1, 1],
                vAlign: [1, 1],
                hAlign: [1, 1],
                font: 'Arial'
            },
            data: {
                field: 'DesignQuantity',
                vAlign: 1,
                hAlign: 2,
                font: 'Arial'
            },
            width: 60
        },
        {
            head: {
                titleNames: ['', '数量2'],
                spanCols: [0, 1],
                spanRows: [1, 1],
                vAlign: [1, 1],
                hAlign: [1, 1],
                font: 'Arial'
            },
            data: {
                field: 'DesignQuantity2',
                vAlign: 1,
                hAlign: 2,
                font: 'Arial'
            },
            width: 60
        },
        {
            head: {
                titleNames: ['ID', ''],
                spanCols: [1, 0],
                spanRows: [2, 0],
                vAlign: [1, 1],
                hAlign: [1, 1],
                font: 'Arial'
            },
            data: {
                field: 'ID',
                vAlign: 1,
                hAlign: 2,
                font: 'Arial'
            },
            width: 60
        },
        {
            head: {
                titleNames: ['ParentID', ''],
                spanCols: [1, 0],
                spanRows: [2, 0],
                vAlign: [1, 1],
                hAlign: [1, 1],
                font: 'Arial'
            },
            data: {
                field: 'ParentID',
                vAlign: 1,
                hAlign: 2,
                font: 'Arial'
            },
            width: 60
        },
        {
            head: {
                titleNames: ['NextSiblingID', ''],
                spanCols: [1, 0],
                spanRows: [2, 0],
                vAlign: [1, 1],
                hAlign: [1, 1],
                font: 'Arial'
            },
            data: {
                field: 'NextSiblingID',
                vAlign: 1,
                hAlign: 2,
                font: 'Arial'
            },
            width: 60
        },
        {
            head: {
                titleNames: ['人工费单价', ''],
                spanCols: [1, 0],
                spanRows: [2, 0],
                vAlign: [1, 1],
                hAlign: [1, 1],
                font: 'Arial'
            },
            data: {
                field: 'FeesIndex.labour.unitFee',
                vAlign: 1,
                hAlign: 2,
                font: 'Arial'
            },
            width: 60
        },
        {
            head: {
                titleNames: ['机械费单价', ''],
                spanCols: [1, 0],
                spanRows: [2, 0],
                vAlign: [1, 1],
                hAlign: [1, 1],
                font: 'Arial'
            },
            data: {
                field: 'FeesIndex.machine.unitFee',
                vAlign: 1,
                hAlign: 2,
                font: 'Arial'
            },
            width: 60
        },
        {
            head: {
                titleNames: ['局部汇总', ''],
                spanCols: [1, 0],
                spanRows: [2, 0],
                vAlign: [1, 1],
                hAlign: [1, 1],
                font: 'Arial'
            },
            data: {
                field: 'FlagsIndex.isPartGather.flag',
                vAlign: 1,
                hAlign: 2,
                font: 'Arial'
            },
            width: 60
        }
    ],
    headRows: 2,
    headRowHeight: [20, 20],
    defaultRowHeight: 21,
    emptyRows: 3,
    treeCol: 0
};