/**
 * Created by CSL on 2017-07-19.
 */

// dispExpr: F8*(L-1); expression: "@('8') * (L-1)";
// 说明：F后跟行号，L替换人工系数值，@后跟ID。用到L的规则必须有labourCoeID属性（反过来不要求）,
// 用到费率的规则必须有feeRateID属性,当有该属性时，会自动显示费率值。
let calcTemplates = [
    {
        ID: 1,
        name: "建筑工程",
        calcItems: [
            {
                ID: "1",
                code: "1",
                name: "基价直接工程费",
                fieldName: "direct",
                dispExpr: "F2+F5+F6+F10",
                expression: "@('2') + @('5') + @('6') + @('10')",
                compiledExpr: "",
                statement: "基价人工费+基价材料费+基价机械费+未计价材料费"
            },
            {
                ID: "2",
                code: "1.1",
                name: "基价人工费",
                fieldName: "",
                dispExpr: "F3+F4",
                expression: "@('3') + @('4')",
                compiledExpr: "",
                statement: "定额基价人工费+定额人工单价(基价)调整"
            },
            {
                ID: "3",
                code: "1.1.1",
                name: "定额基价人工费",
                fieldName: "labour",
                dispExpr: "[定额基价人工费]",
                expression: "base('定额基价人工费').toFixed(2)",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "4",
                code: "1.1.2",
                name: "定额人工单价(基价)调整",
                fieldName: "adjustLabour",
                dispExpr: "F3*(L-1)",
                expression: "@('3') * (L-1)",
                labourCoeID: 22,
                compiledExpr: "",
                statement: "定额基价人工费*[定额人工单价(基价)调整系数-1]",
                memo: "渝建发(2013)51"
            },
            {
                ID: "5",
                code: "1.2",
                name: "基价材料费",
                fieldName: "material",
                dispExpr: "[定额基价材料费]",
                expression: "base('定额基价材料费')",
                compiledExpr: "",
                statement: "定额基价材料费"
            },
            {
                ID: "6",
                code: "1.3",
                name: "基价机械费",
                fieldName: "",
                dispExpr: "F7+F9",
                expression: "@('7') + @('9')",
                compiledExpr: "",
                statement: "定额基价机械费+定额机上人工单价(基价)调整"
            },
            {
                ID: "7",
                code: "1.3.1",
                name: "定额基价机械费",
                fieldName: "machine",
                dispExpr: "[定额基价机械费]",
                expression: "base('定额基价机械费')",
                compiledExpr: "",
                statement: "定额基价机械费"
            },
            {
                ID: "8",
                code: "1.3.1.1",
                name: "其中：定额基价机上人工费",
                fieldName: "",
                dispExpr: "[定额基价机上人工费]",
                expression: "base('定额基价机上人工费')",
                compiledExpr: "",
                statement: "定额基价机上人工费"
            },
            {
                ID: "9",
                code: "1.3.2",
                name: "定额机上人工单价(基价)调整",
                fieldName: "adjustMachineLabour",
                dispExpr: "F8*(L-1)",
                expression: "@('8') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价机上人工费*[定额机上人工单价(基价)调整系数-1]"
            },
            {
                ID: "10",
                code: "1.4",
                name: "未计价材料费",
                fieldName: "mainMaterial",
                dispExpr: "[主材费]+[设备费]",
                expression: "base('主材费') + base('设备费')",
                compiledExpr: "",
                statement: "主材费+设备费"
            },
            {
                ID: "11",
                code: "2",
                name: "企业管理费",
                fieldName: "manage",
                dispExpr: "F3+F5+F7",
                feeRateID: 101,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]",
                memo: "渝建发[2014]27号"
            },
            {
                ID: "12",
                code: "3",
                name: "利润",
                fieldName: "profit",
                dispExpr: "F3+F5+F7",
                feeRateID: 301,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]"
            },
            {
                ID: "13",
                code: "4",
                name: "风险因素",
                fieldName: "risk",
                dispExpr: "F3+F5+F7",
                feeRateID: 701,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]",
                memo: "同定额包干费"
            },
            {
                ID: "14",
                code: "5",
                name: "人材机价差",
                fieldName: "",
                dispExpr: "F15+F16+F17",
                expression: "@('15') + @('16') + @('17')",
                compiledExpr: "",
                statement: "人工费价差+材料费价差+机械费价差"
            },
            {
                ID: "15",
                code: "5.1",
                name: "人工费价差",
                fieldName: "labourDiff",
                dispExpr: "[人工费价差]",
                // expression: "base('市场价格人工费') - base('定额基价人工费(调整后)')",
                expression: "base('人工费价差')",
                compiledExpr: "",
                statement: "市场价格人工费-调整后的定额人工费(基价)"
            },
            {
                ID: "16",
                code: "5.2",
                name: "材料费价差",
                fieldName: "materialDiff",
                dispExpr: "[材料费价差]",
                expression: "base('材料费价差')",
                compiledExpr: "",
                statement: "市场价格材料费-定额基价材料费"
            },
            {
                ID: "17",
                code: "5.3",
                name: "机械费价差",
                fieldName: "machineDiff",
                dispExpr: "[机械费价差]",
                expression: "base('机械费价差')",
                compiledExpr: "",
                statement: "市场价格机械费-调整后的定额基价机械费(基价)"
            },
            {
                ID: "18",
                code: "6",
                name: "综合单价",
                fieldName: "common",
                dispExpr: "F1+F11+F12+F13+F14",
                expression: "@('1') + @('11') + @('12') + @('13') + @('14')",
                compiledExpr: "",
                statement: "基价直接工程费+企业管理费+利润+风险因素+人材机价差"
            }
        ]
    },
    {
        ID: 2,
        name: "装饰工程",
        calcItems: [
            {
                ID: "1",
                code: "1",
                name: "基价直接工程费",
                fieldName: "direct",
                dispExpr: "F2+F5+F6+F10",
                expression: "@('2') + @('5') + @('6') + @('10')",
                compiledExpr: "",
                statement: "基价人工费+基价材料费+基价机械费+未计价材料费"
            },
            {
                ID: "2",
                code: "1.1",
                name: "基价人工费",
                fieldName: "",
                dispExpr: "F3+F4",
                expression: "@('3') + @('4')",
                compiledExpr: "",
                statement: "定额基价人工费+定额人工单价(基价)调整"
            },
            {
                ID: "3",
                code: "1.1.1",
                name: "定额基价人工费",
                fieldName: "labour",
                dispExpr: "[定额基价人工费]",
                expression: "base('定额基价人工费').toFixed(2)",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "4",
                code: "1.1.2",
                name: "定额人工单价(基价)调整",
                fieldName: "adjustLabour",
                dispExpr: "F3*(L-1)",
                expression: "@('3') * (L-1)",
                labourCoeID: 23,
                compiledExpr: "",
                statement: "定额基价人工费*[定额人工单价(基价)调整系数-1]",
                memo: "渝建发(2013)51"
            },
            {
                ID: "5",
                code: "1.2",
                name: "基价材料费",
                fieldName: "material",
                dispExpr: "[定额基价材料费]",
                expression: "base('定额基价材料费')",
                compiledExpr: "",
                statement: "定额基价材料费"
            },
            {
                ID: "6",
                code: "1.3",
                name: "基价机械费",
                fieldName: "",
                dispExpr: "F7+F9",
                expression: "@('7') + @('9')",
                compiledExpr: "",
                statement: "定额基价机械费+定额机上人工单价(基价)调整"
            },
            {
                ID: "7",
                code: "1.3.1",
                name: "定额基价机械费",
                fieldName: "machine",
                dispExpr: "[定额基价机械费]",
                expression: "base('定额基价机械费')",
                compiledExpr: "",
                statement: "定额基价机械费"
            },
            {
                ID: "8",
                code: "1.3.1.1",
                name: "其中：定额基价机上人工费",
                fieldName: "",
                dispExpr: "[定额基价机上人工费]",
                expression: "base('定额基价机上人工费')",
                compiledExpr: "",
                statement: "定额基价机上人工费"
            },
            {
                ID: "9",
                code: "1.3.2",
                name: "定额机上人工单价(基价)调整",
                fieldName: "adjustMachineLabour",
                dispExpr: "F8*(L-1)",
                expression: "@('8') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价机上人工费*[定额机上人工单价(基价)调整系数-1]"
            },
            {
                ID: "10",
                code: "1.4",
                name: "未计价材料费",
                fieldName: "mainMaterial",
                dispExpr: "[主材费]+[设备费]",
                expression: "base('主材费') + base('设备费')",
                compiledExpr: "",
                statement: "主材费+设备费"
            },
            {
                ID: "11",
                code: "2",
                name: "企业管理费",
                fieldName: "manage",
                dispExpr: "F3",
                feeRateID: 107,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "渝建发[2014]27号"
            },
            {
                ID: "12",
                code: "3",
                name: "利润",
                fieldName: "profit",
                dispExpr: "F3",
                feeRateID: 307,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "13",
                code: "4",
                name: "风险因素",
                fieldName: "risk",
                dispExpr: "F3",
                feeRateID: 707,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "同定额包干费"
            },
            {
                ID: "14",
                code: "5",
                name: "人材机价差",
                fieldName: "",
                dispExpr: "F15+F16+F17",
                expression: "@('15') + @('16') + @('17')",
                compiledExpr: "",
                statement: "人工费价差+材料费价差+机械费价差"
            },
            {
                ID: "15",
                code: "5.1",
                name: "人工费价差",
                fieldName: "labourDiff",
                dispExpr: "[人工费价差]",
                expression: "base('市场价格人工费') - base('定额基价人工费(调整后)')",
                compiledExpr: "",
                statement: "市场价格人工费-调整后的定额人工费(基价)"
            },
            {
                ID: "16",
                code: "5.2",
                name: "材料费价差",
                fieldName: "materialDiff",
                dispExpr: "[材料费价差]",
                expression: "base('市场价格材料费') - base('定额基价材料费(调整后)')",
                compiledExpr: "",
                statement: "市场价格材料费-定额基价材料费"
            },
            {
                ID: "17",
                code: "5.3",
                name: "机械费价差",
                fieldName: "machineDiff",
                dispExpr: "[机械费价差]",
                expression: "base('市场价格机械费') - base('定额基价机械费(调整后)')",
                compiledExpr: "",
                statement: "市场价格机械费-调整后的定额基价机械费(基价)"
            },
            {
                ID: "18",
                code: "6",
                name: "综合单价",
                fieldName: "common",
                dispExpr: "F1+F11+F12+F13+F14",
                expression: "@('1') + @('11') + @('12') + @('13') + @('14')",
                compiledExpr: "",
                statement: "基价直接工程费+企业管理费+利润+风险因素+人材机价差"
            }
        ]
    },
    {
        ID: 3,
        name: "仿古建筑工程",
        calcItems: [
            {
                ID: "1",
                code: "1",
                name: "基价直接工程费",
                fieldName: "direct",
                dispExpr: "F2+F5+F6+F10",
                expression: "@('2') + @('5') + @('6') + @('10')",
                compiledExpr: "",
                statement: "基价人工费+基价材料费+基价机械费+未计价材料费"
            },
            {
                ID: "2",
                code: "1.1",
                name: "基价人工费",
                fieldName: "",
                dispExpr: "F3+F4",
                expression: "@('3') + @('4')",
                compiledExpr: "",
                statement: "定额基价人工费+定额人工单价(基价)调整"
            },
            {
                ID: "3",
                code: "1.1.1",
                name: "定额基价人工费",
                fieldName: "labour",
                dispExpr: "[定额基价人工费]",
                expression: "base('定额基价人工费').toFixed(2)",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "4",
                code: "1.1.2",
                name: "定额人工单价(基价)调整",
                fieldName: "adjustLabour",
                dispExpr: "F3*(L-1)",
                expression: "@('3') * (L-1)",
                labourCoeID: 25,
                compiledExpr: "",
                statement: "定额基价人工费*[定额人工单价(基价)调整系数-1]",
                memo: "渝建发(2013)51"
            },
            {
                ID: "5",
                code: "1.2",
                name: "基价材料费",
                fieldName: "material",
                dispExpr: "[定额基价材料费]",
                expression: "base('定额基价材料费')",
                compiledExpr: "",
                statement: "定额基价材料费"
            },
            {
                ID: "6",
                code: "1.3",
                name: "基价机械费",
                fieldName: "",
                dispExpr: "F7+F9",
                expression: "@('7') + @('9')",
                compiledExpr: "",
                statement: "定额基价机械费+定额机上人工单价(基价)调整"
            },
            {
                ID: "7",
                code: "1.3.1",
                name: "定额基价机械费",
                fieldName: "machine",
                dispExpr: "[定额基价机械费]",
                expression: "base('定额基价机械费')",
                compiledExpr: "",
                statement: "定额基价机械费"
            },
            {
                ID: "8",
                code: "1.3.1.1",
                name: "其中：定额基价机上人工费",
                fieldName: "",
                dispExpr: "[定额基价机上人工费]",
                expression: "base('定额基价机上人工费')",
                compiledExpr: "",
                statement: "定额基价机上人工费"
            },
            {
                ID: "9",
                code: "1.3.2",
                name: "定额机上人工单价(基价)调整",
                fieldName: "adjustMachineLabour",
                dispExpr: "F8*(L-1)",
                expression: "@('8') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价机上人工费*[定额机上人工单价(基价)调整系数-1]"
            },
            {
                ID: "10",
                code: "1.4",
                name: "未计价材料费",
                fieldName: "mainMaterial",
                dispExpr: "[主材费]+[设备费]",
                expression: "base('主材费') + base('设备费')",
                compiledExpr: "",
                statement: "主材费+设备费"
            },
            {
                ID: "11",
                code: "2",
                name: "企业管理费",
                fieldName: "manage",
                dispExpr: "F3+F5+F7",
                feeRateID: 104,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]",
                memo: "渝建发[2014]27号"
            },
            {
                ID: "12",
                code: "3",
                name: "利润",
                fieldName: "profit",
                dispExpr: "F3+F5+F7",
                feeRateID: 304,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]"
            },
            {
                ID: "13",
                code: "4",
                name: "风险因素",
                fieldName: "risk",
                dispExpr: "F3+F5+F7",
                feeRateID: 704,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]",
                memo: "同定额包干费"
            },
            {
                ID: "14",
                code: "5",
                name: "人材机价差",
                fieldName: "",
                dispExpr: "F15+F16+F17",
                expression: "@('15') + @('16') + @('17')",
                compiledExpr: "",
                statement: "人工费价差+材料费价差+机械费价差"
            },
            {
                ID: "15",
                code: "5.1",
                name: "人工费价差",
                fieldName: "labourDiff",
                dispExpr: "[人工费价差]",
                expression: "base('市场价格人工费') - base('定额基价人工费(调整后)')",
                compiledExpr: "",
                statement: "市场价格人工费-调整后的定额人工费(基价)"
            },
            {
                ID: "16",
                code: "5.2",
                name: "材料费价差",
                fieldName: "materialDiff",
                dispExpr: "[材料费价差]",
                expression: "base('市场价格材料费') - base('定额基价材料费(调整后)')",
                compiledExpr: "",
                statement: "市场价格材料费-定额基价材料费"
            },
            {
                ID: "17",
                code: "5.3",
                name: "机械费价差",
                fieldName: "machineDiff",
                dispExpr: "[机械费价差]",
                expression: "base('市场价格机械费') - base('定额基价机械费(调整后)')",
                compiledExpr: "",
                statement: "市场价格机械费-调整后的定额基价机械费(基价)"
            },
            {
                ID: "18",
                code: "6",
                name: "综合单价",
                fieldName: "common",
                dispExpr: "F1+F11+F12+F13+F14",
                expression: "@('1') + @('11') + @('12') + @('13') + @('14')",
                compiledExpr: "",
                statement: "基价直接工程费+企业管理费+利润+风险因素+人材机价差"
            }
        ]
    },
    {
        ID: 4,
        name: "安装工程",
        calcItems: [
            {
                ID: "1",
                code: "1",
                name: "基价直接工程费",
                fieldName: "direct",
                dispExpr: "F2+F5+F6+F10",
                expression: "@('2') + @('5') + @('6') + @('10')",
                compiledExpr: "",
                statement: "基价人工费+基价材料费+基价机械费+未计价材料费"
            },
            {
                ID: "2",
                code: "1.1",
                name: "基价人工费",
                fieldName: "",
                dispExpr: "F3+F4",
                expression: "@('3') + @('4')",
                compiledExpr: "",
                statement: "定额基价人工费+定额人工单价(基价)调整"
            },
            {
                ID: "3",
                code: "1.1.1",
                name: "定额基价人工费",
                fieldName: "labour",
                dispExpr: "[定额基价人工费]",
                expression: "base('定额基价人工费').toFixed(2)",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "4",
                code: "1.1.2",
                name: "定额人工单价(基价)调整",
                fieldName: "adjustLabour",
                dispExpr: "F3*(L-1)",
                expression: "@('3') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价人工费*[定额人工单价(基价)调整系数-1]",
                memo: "渝建发(2013)51"
            },
            {
                ID: "5",
                code: "1.2",
                name: "基价材料费",
                fieldName: "material",
                dispExpr: "[定额基价材料费]",
                expression: "base('定额基价材料费')",
                compiledExpr: "",
                statement: "定额基价材料费"
            },
            {
                ID: "6",
                code: "1.3",
                name: "基价机械费",
                fieldName: "",
                dispExpr: "F7+F9",
                expression: "@('7') + @('9')",
                compiledExpr: "",
                statement: "定额基价机械费+定额机上人工单价(基价)调整"
            },
            {
                ID: "7",
                code: "1.3.1",
                name: "定额基价机械费",
                fieldName: "machine",
                dispExpr: "[定额基价机械费]",
                expression: "base('定额基价机械费')",
                compiledExpr: "",
                statement: "定额基价机械费"
            },
            {
                ID: "8",
                code: "1.3.1.1",
                name: "其中：定额基价机上人工费",
                fieldName: "",
                dispExpr: "[定额基价机上人工费]",
                expression: "base('定额基价机上人工费')",
                compiledExpr: "",
                statement: "定额基价机上人工费"
            },
            {
                ID: "9",
                code: "1.3.2",
                name: "定额机上人工单价(基价)调整",
                fieldName: "adjustMachineLabour",
                dispExpr: "F8*(L-1)",
                expression: "@('8') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价机上人工费*[定额机上人工单价(基价)调整系数-1]"
            },
            {
                ID: "10",
                code: "1.4",
                name: "未计价材料费",
                fieldName: "mainMaterial",
                dispExpr: "[主材费]+[设备费]",
                expression: "base('主材费') + base('设备费')",
                compiledExpr: "",
                statement: "主材费+设备费"
            },
            {
                ID: "11",
                code: "2",
                name: "企业管理费",
                fieldName: "manage",
                dispExpr: "F3",
                feeRateID: 108,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "渝建发[2014]27号"
            },
            {
                ID: "12",
                code: "3",
                name: "利润",
                fieldName: "profit",
                dispExpr: "F3",
                feeRateID: 308,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "13",
                code: "4",
                name: "风险因素",
                fieldName: "risk",
                dispExpr: "F3",
                feeRateID: 708,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "同定额包干费"
            },
            {
                ID: "14",
                code: "5",
                name: "人材机价差",
                fieldName: "",
                dispExpr: "F15+F16+F17",
                expression: "@('15') + @('16') + @('17')",
                compiledExpr: "",
                statement: "人工费价差+材料费价差+机械费价差"
            },
            {
                ID: "15",
                code: "5.1",
                name: "人工费价差",
                fieldName: "labourDiff",
                dispExpr: "[人工费价差]",
                expression: "base('市场价格人工费') - base('定额基价人工费(调整后)')",
                compiledExpr: "",
                statement: "市场价格人工费-调整后的定额人工费(基价)"
            },
            {
                ID: "16",
                code: "5.2",
                name: "材料费价差",
                fieldName: "materialDiff",
                dispExpr: "[材料费价差]",
                expression: "base('市场价格材料费') - base('定额基价材料费(调整后)')",
                compiledExpr: "",
                statement: "市场价格材料费-定额基价材料费"
            },
            {
                ID: "17",
                code: "5.3",
                name: "机械费价差",
                fieldName: "machineDiff",
                dispExpr: "[机械费价差]",
                expression: "base('市场价格机械费') - base('定额基价机械费(调整后)')",
                compiledExpr: "",
                statement: "市场价格机械费-调整后的定额基价机械费(基价)"
            },
            {
                ID: "18",
                code: "6",
                name: "综合单价",
                fieldName: "common",
                dispExpr: "F1+F11+F12+F13+F14",
                expression: "@('1') + @('11') + @('12') + @('13') + @('14')",
                compiledExpr: "",
                statement: "基价直接工程费+企业管理费+利润+风险因素+人材机价差"
            }
        ]
    },
    {
        ID: 5,
        name: "市政土建工程",
        calcItems: [
            {
                ID: "1",
                code: "1",
                name: "基价直接工程费",
                fieldName: "direct",
                dispExpr: "F2+F5+F6+F10",
                expression: "@('2') + @('5') + @('6') + @('10')",
                compiledExpr: "",
                statement: "基价人工费+基价材料费+基价机械费+未计价材料费"
            },
            {
                ID: "2",
                code: "1.1",
                name: "基价人工费",
                fieldName: "",
                dispExpr: "F3+F4",
                expression: "@('3') + @('4')",
                compiledExpr: "",
                statement: "定额基价人工费+定额人工单价(基价)调整"
            },
            {
                ID: "3",
                code: "1.1.1",
                name: "定额基价人工费",
                fieldName: "labour",
                dispExpr: "[定额基价人工费]",
                expression: "base('定额基价人工费').toFixed(2)",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "4",
                code: "1.1.2",
                name: "定额人工单价(基价)调整",
                fieldName: "adjustLabour",
                dispExpr: "F3*(L-1)",
                expression: "@('3') * (L-1)",
                labourCoeID: 22,
                compiledExpr: "",
                statement: "定额基价人工费*[定额人工单价(基价)调整系数-1]",
                memo: "渝建发(2013)51"
            },
            {
                ID: "5",
                code: "1.2",
                name: "基价材料费",
                fieldName: "material",
                dispExpr: "[定额基价材料费]",
                expression: "base('定额基价材料费')",
                compiledExpr: "",
                statement: "定额基价材料费"
            },
            {
                ID: "6",
                code: "1.3",
                name: "基价机械费",
                fieldName: "",
                dispExpr: "F7+F9",
                expression: "@('7') + @('9')",
                compiledExpr: "",
                statement: "定额基价机械费+定额机上人工单价(基价)调整"
            },
            {
                ID: "7",
                code: "1.3.1",
                name: "定额基价机械费",
                fieldName: "machine",
                dispExpr: "[定额基价机械费]",
                expression: "base('定额基价机械费')",
                compiledExpr: "",
                statement: "定额基价机械费"
            },
            {
                ID: "8",
                code: "1.3.1.1",
                name: "其中：定额基价机上人工费",
                fieldName: "",
                dispExpr: "[定额基价机上人工费]",
                expression: "base('定额基价机上人工费')",
                compiledExpr: "",
                statement: "定额基价机上人工费"
            },
            {
                ID: "9",
                code: "1.3.2",
                name: "定额机上人工单价(基价)调整",
                fieldName: "adjustMachineLabour",
                dispExpr: "F8*(L-1)",
                expression: "@('8') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价机上人工费*[定额机上人工单价(基价)调整系数-1]"
            },
            {
                ID: "10",
                code: "1.4",
                name: "未计价材料费",
                fieldName: "mainMaterial",
                dispExpr: "[主材费]+[设备费]",
                expression: "base('主材费') + base('设备费')",
                compiledExpr: "",
                statement: "主材费+设备费"
            },
            {
                ID: "11",
                code: "2",
                name: "企业管理费",
                fieldName: "manage",
                dispExpr: "F3+F5+F7",
                feeRateID: 102,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]",
                memo: "渝建发[2014]27号"
            },
            {
                ID: "12",
                code: "3",
                name: "利润",
                fieldName: "profit",
                dispExpr: "F3+F5+F7",
                feeRateID: 302,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]"
            },
            {
                ID: "13",
                code: "4",
                name: "风险因素",
                fieldName: "risk",
                dispExpr: "F3+F5+F7",
                feeRateID: 702,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]",
                memo: "同定额包干费"
            },
            {
                ID: "14",
                code: "5",
                name: "人材机价差",
                fieldName: "",
                dispExpr: "F15+F16+F17",
                expression: "@('15') + @('16') + @('17')",
                compiledExpr: "",
                statement: "人工费价差+材料费价差+机械费价差"
            },
            {
                ID: "15",
                code: "5.1",
                name: "人工费价差",
                fieldName: "labourDiff",
                dispExpr: "[人工费价差]",
                expression: "base('市场价格人工费') - base('定额基价人工费(调整后)')",
                compiledExpr: "",
                statement: "市场价格人工费-调整后的定额人工费(基价)"
            },
            {
                ID: "16",
                code: "5.2",
                name: "材料费价差",
                fieldName: "materialDiff",
                dispExpr: "[材料费价差]",
                expression: "base('市场价格材料费') - base('定额基价材料费(调整后)')",
                compiledExpr: "",
                statement: "市场价格材料费-定额基价材料费"
            },
            {
                ID: "17",
                code: "5.3",
                name: "机械费价差",
                fieldName: "machineDiff",
                dispExpr: "[机械费价差]",
                expression: "base('市场价格机械费') - base('定额基价机械费(调整后)')",
                compiledExpr: "",
                statement: "市场价格机械费-调整后的定额基价机械费(基价)"
            },
            {
                ID: "18",
                code: "6",
                name: "综合单价",
                fieldName: "common",
                dispExpr: "F1+F11+F12+F13+F14",
                expression: "@('1') + @('11') + @('12') + @('13') + @('14')",
                compiledExpr: "",
                statement: "基价直接工程费+企业管理费+利润+风险因素+人材机价差"
            }
        ]
    },
    {
        ID: 6,
        name: "市政安装工程",
        calcItems: [
            {
                ID: "1",
                code: "1",
                name: "基价直接工程费",
                fieldName: "direct",
                dispExpr: "F2+F5+F6+F10",
                expression: "@('2') + @('5') + @('6') + @('10')",
                compiledExpr: "",
                statement: "基价人工费+基价材料费+基价机械费+未计价材料费"
            },
            {
                ID: "2",
                code: "1.1",
                name: "基价人工费",
                fieldName: "",
                dispExpr: "F3+F4",
                expression: "@('3') + @('4')",
                compiledExpr: "",
                statement: "定额基价人工费+定额人工单价(基价)调整"
            },
            {
                ID: "3",
                code: "1.1.1",
                name: "定额基价人工费",
                fieldName: "labour",
                dispExpr: "[定额基价人工费]",
                expression: "base('定额基价人工费').toFixed(2)",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "4",
                code: "1.1.2",
                name: "定额人工单价(基价)调整",
                fieldName: "adjustLabour",
                dispExpr: "F3*(L-1)",
                expression: "@('3') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价人工费*[定额人工单价(基价)调整系数-1]",
                memo: "渝建发(2013)51"
            },
            {
                ID: "5",
                code: "1.2",
                name: "基价材料费",
                fieldName: "material",
                dispExpr: "[定额基价材料费]",
                expression: "base('定额基价材料费')",
                compiledExpr: "",
                statement: "定额基价材料费"
            },
            {
                ID: "6",
                code: "1.3",
                name: "基价机械费",
                fieldName: "",
                dispExpr: "F7+F9",
                expression: "@('7') + @('9')",
                compiledExpr: "",
                statement: "定额基价机械费+定额机上人工单价(基价)调整"
            },
            {
                ID: "7",
                code: "1.3.1",
                name: "定额基价机械费",
                fieldName: "machine",
                dispExpr: "[定额基价机械费]",
                expression: "base('定额基价机械费')",
                compiledExpr: "",
                statement: "定额基价机械费"
            },
            {
                ID: "8",
                code: "1.3.1.1",
                name: "其中：定额基价机上人工费",
                fieldName: "",
                dispExpr: "[定额基价机上人工费]",
                expression: "base('定额基价机上人工费')",
                compiledExpr: "",
                statement: "定额基价机上人工费"
            },
            {
                ID: "9",
                code: "1.3.2",
                name: "定额机上人工单价(基价)调整",
                fieldName: "adjustMachineLabour",
                dispExpr: "F8*(L-1)",
                expression: "@('8') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价机上人工费*[定额机上人工单价(基价)调整系数-1]"
            },
            {
                ID: "10",
                code: "1.4",
                name: "未计价材料费",
                fieldName: "mainMaterial",
                dispExpr: "[主材费]+[设备费]",
                expression: "base('主材费') + base('设备费')",
                compiledExpr: "",
                statement: "主材费+设备费"
            },
            {
                ID: "11",
                code: "2",
                name: "企业管理费",
                fieldName: "manage",
                dispExpr: "F3",
                feeRateID: 109,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "渝建发[2014]27号"
            },
            {
                ID: "12",
                code: "3",
                name: "利润",
                fieldName: "profit",
                dispExpr: "F3",
                feeRateID: 309,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "13",
                code: "4",
                name: "风险因素",
                fieldName: "risk",
                dispExpr: "F3",
                feeRateID: 709,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "同定额包干费"
            },
            {
                ID: "14",
                code: "5",
                name: "人材机价差",
                fieldName: "",
                dispExpr: "F15+F16+F17",
                expression: "@('15') + @('16') + @('17')",
                compiledExpr: "",
                statement: "人工费价差+材料费价差+机械费价差"
            },
            {
                ID: "15",
                code: "5.1",
                name: "人工费价差",
                fieldName: "labourDiff",
                dispExpr: "[人工费价差]",
                expression: "base('市场价格人工费') - base('定额基价人工费(调整后)')",
                compiledExpr: "",
                statement: "市场价格人工费-调整后的定额人工费(基价)"
            },
            {
                ID: "16",
                code: "5.2",
                name: "材料费价差",
                fieldName: "materialDiff",
                dispExpr: "[材料费价差]",
                expression: "base('市场价格材料费') - base('定额基价材料费(调整后)')",
                compiledExpr: "",
                statement: "市场价格材料费-定额基价材料费"
            },
            {
                ID: "17",
                code: "5.3",
                name: "机械费价差",
                fieldName: "machineDiff",
                dispExpr: "[机械费价差]",
                expression: "base('市场价格机械费') - base('定额基价机械费(调整后)')",
                compiledExpr: "",
                statement: "市场价格机械费-调整后的定额基价机械费(基价)"
            },
            {
                ID: "18",
                code: "6",
                name: "综合单价",
                fieldName: "common",
                dispExpr: "F1+F11+F12+F13+F14",
                expression: "@('1') + @('11') + @('12') + @('13') + @('14')",
                compiledExpr: "",
                statement: "基价直接工程费+企业管理费+利润+风险因素+人材机价差"
            }
        ]
    },
    {
        ID: 7,
        name: "人工土石方工程",
        calcItems: [
            {
                ID: "1",
                code: "1",
                name: "基价直接工程费",
                fieldName: "direct",
                dispExpr: "F2+F5+F6+F10",
                expression: "@('2') + @('5') + @('6') + @('10')",
                compiledExpr: "",
                statement: "基价人工费+基价材料费+基价机械费+未计价材料费"
            },
            {
                ID: "2",
                code: "1.1",
                name: "基价人工费",
                fieldName: "",
                dispExpr: "F3+F4",
                expression: "@('3') + @('4')",
                compiledExpr: "",
                statement: "定额基价人工费+定额人工单价(基价)调整"
            },
            {
                ID: "3",
                code: "1.1.1",
                name: "定额基价人工费",
                fieldName: "labour",
                dispExpr: "[定额基价人工费]",
                expression: "base('定额基价人工费').toFixed(2)",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "4",
                code: "1.1.2",
                name: "定额人工单价(基价)调整",
                fieldName: "adjustLabour",
                dispExpr: "F3*(L-1)",
                expression: "@('3') * (L-1)",
                labourCoeID: 21,
                compiledExpr: "",
                statement: "定额基价人工费*[定额人工单价(基价)调整系数-1]",
                memo: "渝建发(2013)51"
            },
            {
                ID: "5",
                code: "1.2",
                name: "基价材料费",
                fieldName: "material",
                dispExpr: "[定额基价材料费]",
                expression: "base('定额基价材料费')",
                compiledExpr: "",
                statement: "定额基价材料费"
            },
            {
                ID: "6",
                code: "1.3",
                name: "基价机械费",
                fieldName: "",
                dispExpr: "F7+F9",
                expression: "@('7') + @('9')",
                compiledExpr: "",
                statement: "定额基价机械费+定额机上人工单价(基价)调整"
            },
            {
                ID: "7",
                code: "1.3.1",
                name: "定额基价机械费",
                fieldName: "machine",
                dispExpr: "[定额基价机械费]",
                expression: "base('定额基价机械费')",
                compiledExpr: "",
                statement: "定额基价机械费"
            },
            {
                ID: "8",
                code: "1.3.1.1",
                name: "其中：定额基价机上人工费",
                fieldName: "",
                dispExpr: "[定额基价机上人工费]",
                expression: "base('定额基价机上人工费')",
                compiledExpr: "",
                statement: "定额基价机上人工费"
            },
            {
                ID: "9",
                code: "1.3.2",
                name: "定额机上人工单价(基价)调整",
                fieldName: "adjustMachineLabour",
                dispExpr: "F8*(L-1)",
                expression: "@('8') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价机上人工费*[定额机上人工单价(基价)调整系数-1]"
            },
            {
                ID: "10",
                code: "1.4",
                name: "未计价材料费",
                fieldName: "mainMaterial",
                dispExpr: "[主材费]+[设备费]",
                expression: "base('主材费') + base('设备费')",
                compiledExpr: "",
                statement: "主材费+设备费"
            },
            {
                ID: "11",
                code: "2",
                name: "企业管理费",
                fieldName: "manage",
                dispExpr: "F3",
                feeRateID: 110,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "渝建发[2014]27号"
            },
            {
                ID: "12",
                code: "3",
                name: "利润",
                fieldName: "profit",
                dispExpr: "F3",
                feeRateID: 310,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "13",
                code: "4",
                name: "风险因素",
                fieldName: "risk",
                dispExpr: "F3",
                feeRateID: 710,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "同定额包干费"
            },
            {
                ID: "14",
                code: "5",
                name: "人材机价差",
                fieldName: "",
                dispExpr: "F15+F16+F17",
                expression: "@('15') + @('16') + @('17')",
                compiledExpr: "",
                statement: "人工费价差+材料费价差+机械费价差"
            },
            {
                ID: "15",
                code: "5.1",
                name: "人工费价差",
                fieldName: "labourDiff",
                dispExpr: "[人工费价差]",
                expression: "base('市场价格人工费') - base('定额基价人工费(调整后)')",
                compiledExpr: "",
                statement: "市场价格人工费-调整后的定额人工费(基价)"
            },
            {
                ID: "16",
                code: "5.2",
                name: "材料费价差",
                fieldName: "materialDiff",
                dispExpr: "[材料费价差]",
                expression: "base('市场价格材料费') - base('定额基价材料费(调整后)')",
                compiledExpr: "",
                statement: "市场价格材料费-定额基价材料费"
            },
            {
                ID: "17",
                code: "5.3",
                name: "机械费价差",
                fieldName: "machineDiff",
                dispExpr: "[机械费价差]",
                expression: "base('市场价格机械费') - base('定额基价机械费(调整后)')",
                compiledExpr: "",
                statement: "市场价格机械费-调整后的定额基价机械费(基价)"
            },
            {
                ID: "18",
                code: "6",
                name: "综合单价",
                fieldName: "common",
                dispExpr: "F1+F11+F12+F13+F14",
                expression: "@('1') + @('11') + @('12') + @('13') + @('14')",
                compiledExpr: "",
                statement: "基价直接工程费+企业管理费+利润+风险因素+人材机价差"
            }
        ]
    },
    {
        ID: 8,
        name: "机械土石方工程",
        calcItems: [
            {
                ID: "1",
                code: "1",
                name: "基价直接工程费",
                fieldName: "direct",
                dispExpr: "F2+F5+F6+F10",
                expression: "@('2') + @('5') + @('6') + @('10')",
                compiledExpr: "",
                statement: "基价人工费+基价材料费+基价机械费+未计价材料费"
            },
            {
                ID: "2",
                code: "1.1",
                name: "基价人工费",
                fieldName: "",
                dispExpr: "F3+F4",
                expression: "@('3') + @('4')",
                compiledExpr: "",
                statement: "定额基价人工费+定额人工单价(基价)调整"
            },
            {
                ID: "3",
                code: "1.1.1",
                name: "定额基价人工费",
                fieldName: "labour",
                dispExpr: "[定额基价人工费]",
                expression: "base('定额基价人工费').toFixed(2)",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "4",
                code: "1.1.2",
                name: "定额人工单价(基价)调整",
                fieldName: "adjustLabour",
                dispExpr: "F3*(L-1)",
                expression: "@('3') * (L-1)",
                labourCoeID: 21,
                compiledExpr: "",
                statement: "定额基价人工费*[定额人工单价(基价)调整系数-1]",
                memo: "渝建发(2013)51"
            },
            {
                ID: "5",
                code: "1.2",
                name: "基价材料费",
                fieldName: "material",
                dispExpr: "[定额基价材料费]",
                expression: "base('定额基价材料费')",
                compiledExpr: "",
                statement: "定额基价材料费"
            },
            {
                ID: "6",
                code: "1.3",
                name: "基价机械费",
                fieldName: "",
                dispExpr: "F7+F9",
                expression: "@('7') + @('9')",
                compiledExpr: "",
                statement: "定额基价机械费+定额机上人工单价(基价)调整"
            },
            {
                ID: "7",
                code: "1.3.1",
                name: "定额基价机械费",
                fieldName: "machine",
                dispExpr: "[定额基价机械费]",
                expression: "base('定额基价机械费')",
                compiledExpr: "",
                statement: "定额基价机械费"
            },
            {
                ID: "8",
                code: "1.3.1.1",
                name: "其中：定额基价机上人工费",
                fieldName: "",
                dispExpr: "[定额基价机上人工费]",
                expression: "base('定额基价机上人工费')",
                compiledExpr: "",
                statement: "定额基价机上人工费"
            },
            {
                ID: "9",
                code: "1.3.2",
                name: "定额机上人工单价(基价)调整",
                fieldName: "adjustMachineLabour",
                dispExpr: "F8*(L-1)",
                expression: "@('8') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价机上人工费*[定额机上人工单价(基价)调整系数-1]"
            },
            {
                ID: "10",
                code: "1.4",
                name: "未计价材料费",
                fieldName: "mainMaterial",
                dispExpr: "[主材费]+[设备费]",
                expression: "base('主材费') + base('设备费')",
                compiledExpr: "",
                statement: "主材费+设备费"
            },
            {
                ID: "11",
                code: "2",
                name: "企业管理费",
                fieldName: "manage",
                dispExpr: "F3+F5+F7",
                feeRateID: 103,
                feeRate: 0.3,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]",
                memo: "渝建发[2014]27号"
            },
            {
                ID: "12",
                code: "3",
                name: "利润",
                fieldName: "profit",
                dispExpr: "F3+F5+F7",
                feeRateID: 303,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]"
            },
            {
                ID: "13",
                code: "4",
                name: "风险因素",
                fieldName: "risk",
                dispExpr: "F3+F5+F7",
                feeRateID: 703,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]",
                memo: "同定额包干费"
            },
            {
                ID: "14",
                code: "5",
                name: "人材机价差",
                fieldName: "",
                dispExpr: "F15+F16+F17",
                expression: "@('15') + @('16') + @('17')",
                compiledExpr: "",
                statement: "人工费价差+材料费价差+机械费价差"
            },
            {
                ID: "15",
                code: "5.1",
                name: "人工费价差",
                fieldName: "labourDiff",
                dispExpr: "[人工费价差]",
                expression: "base('市场价格人工费') - base('定额基价人工费(调整后)')",
                compiledExpr: "",
                statement: "市场价格人工费-调整后的定额人工费(基价)"
            },
            {
                ID: "16",
                code: "5.2",
                name: "材料费价差",
                fieldName: "materialDiff",
                dispExpr: "[材料费价差]",
                expression: "base('市场价格材料费') - base('定额基价材料费(调整后)')",
                compiledExpr: "",
                statement: "市场价格材料费-定额基价材料费"
            },
            {
                ID: "17",
                code: "5.3",
                name: "机械费价差",
                fieldName: "machineDiff",
                dispExpr: "[机械费价差]",
                expression: "base('市场价格机械费') - base('定额基价机械费(调整后)')",
                compiledExpr: "",
                statement: "市场价格机械费-调整后的定额基价机械费(基价)"
            },
            {
                ID: "18",
                code: "6",
                name: "综合单价",
                fieldName: "common",
                dispExpr: "F1+F11+F12+F13+F14",
                expression: "@('1') + @('11') + @('12') + @('13') + @('14')",
                compiledExpr: "",
                statement: "基价直接工程费+企业管理费+利润+风险因素+人材机价差"
            }
        ]
    },
    {
        ID: 9,
        name: "炉窑砌筑工程",
        calcItems: [
            {
                ID: "1",
                code: "1",
                name: "基价直接工程费",
                fieldName: "direct",
                dispExpr: "F2+F5+F6+F10",
                expression: "@('2') + @('5') + @('6') + @('10')",
                compiledExpr: "",
                statement: "基价人工费+基价材料费+基价机械费+未计价材料费"
            },
            {
                ID: "2",
                code: "1.1",
                name: "基价人工费",
                fieldName: "",
                dispExpr: "F3+F4",
                expression: "@('3') + @('4')",
                compiledExpr: "",
                statement: "定额基价人工费+定额人工单价(基价)调整"
            },
            {
                ID: "3",
                code: "1.1.1",
                name: "定额基价人工费",
                fieldName: "labour",
                dispExpr: "[定额基价人工费]",
                expression: "base('定额基价人工费').toFixed(2)",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "4",
                code: "1.1.2",
                name: "定额人工单价(基价)调整",
                fieldName: "adjustLabour",
                dispExpr: "F3*(L-1)",
                expression: "@('3') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价人工费*[定额人工单价(基价)调整系数-1]",
                memo: "渝建发(2013)51"
            },
            {
                ID: "5",
                code: "1.2",
                name: "基价材料费",
                fieldName: "material",
                dispExpr: "[定额基价材料费]",
                expression: "base('定额基价材料费')",
                compiledExpr: "",
                statement: "定额基价材料费"
            },
            {
                ID: "6",
                code: "1.3",
                name: "基价机械费",
                fieldName: "",
                dispExpr: "F7+F9",
                expression: "@('7') + @('9')",
                compiledExpr: "",
                statement: "定额基价机械费+定额机上人工单价(基价)调整"
            },
            {
                ID: "7",
                code: "1.3.1",
                name: "定额基价机械费",
                fieldName: "machine",
                dispExpr: "[定额基价机械费]",
                expression: "base('定额基价机械费')",
                compiledExpr: "",
                statement: "定额基价机械费"
            },
            {
                ID: "8",
                code: "1.3.1.1",
                name: "其中：定额基价机上人工费",
                fieldName: "",
                dispExpr: "[定额基价机上人工费]",
                expression: "base('定额基价机上人工费')",
                compiledExpr: "",
                statement: "定额基价机上人工费"
            },
            {
                ID: "9",
                code: "1.3.2",
                name: "定额机上人工单价(基价)调整",
                fieldName: "adjustMachineLabour",
                dispExpr: "F8*(L-1)",
                expression: "@('8') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价机上人工费*[定额机上人工单价(基价)调整系数-1]"
            },
            {
                ID: "10",
                code: "1.4",
                name: "未计价材料费",
                fieldName: "mainMaterial",
                dispExpr: "[主材费]+[设备费]",
                expression: "base('主材费') + base('设备费')",
                compiledExpr: "",
                statement: "主材费+设备费"
            },
            {
                ID: "11",
                code: "2",
                name: "企业管理费",
                fieldName: "manage",
                dispExpr: "F3+F5+F7",
                feeRateID: 106,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]",
                memo: "渝建发[2014]27号"
            },
            {
                ID: "12",
                code: "3",
                name: "利润",
                fieldName: "profit",
                dispExpr: "F3+F5+F7",
                feeRateID: 306,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]"
            },
            {
                ID: "13",
                code: "4",
                name: "风险因素",
                fieldName: "risk",
                dispExpr: "F3+F5+F7",
                feeRateID: 706,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]",
                memo: "同定额包干费"
            },
            {
                ID: "14",
                code: "5",
                name: "人材机价差",
                fieldName: "",
                dispExpr: "F15+F16+F17",
                expression: "@('15') + @('16') + @('17')",
                compiledExpr: "",
                statement: "人工费价差+材料费价差+机械费价差"
            },
            {
                ID: "15",
                code: "5.1",
                name: "人工费价差",
                fieldName: "labourDiff",
                dispExpr: "[人工费价差]",
                expression: "base('市场价格人工费') - base('定额基价人工费(调整后)')",
                compiledExpr: "",
                statement: "市场价格人工费-调整后的定额人工费(基价)"
            },
            {
                ID: "16",
                code: "5.2",
                name: "材料费价差",
                fieldName: "materialDiff",
                dispExpr: "[材料费价差]",
                expression: "base('市场价格材料费') - base('定额基价材料费(调整后)')",
                compiledExpr: "",
                statement: "市场价格材料费-定额基价材料费"
            },
            {
                ID: "17",
                code: "5.3",
                name: "机械费价差",
                fieldName: "machineDiff",
                dispExpr: "[机械费价差]",
                expression: "base('市场价格机械费') - base('定额基价机械费(调整后)')",
                compiledExpr: "",
                statement: "市场价格机械费-调整后的定额基价机械费(基价)"
            },
            {
                ID: "18",
                code: "6",
                name: "综合单价",
                fieldName: "common",
                dispExpr: "F1+F11+F12+F13+F14",
                expression: "@('1') + @('11') + @('12') + @('13') + @('14')",
                compiledExpr: "",
                statement: "基价直接工程费+企业管理费+利润+风险因素+人材机价差"
            }
        ]
    },
    {
        ID: 10,
        name: "园林工程",
        calcItems: [
            {
                ID: "1",
                code: "1",
                name: "基价直接工程费",
                fieldName: "direct",
                dispExpr: "F2+F5+F6+F10",
                expression: "@('2') + @('5') + @('6') + @('10')",
                compiledExpr: "",
                statement: "基价人工费+基价材料费+基价机械费+未计价材料费"
            },
            {
                ID: "2",
                code: "1.1",
                name: "基价人工费",
                fieldName: "",
                dispExpr: "F3+F4",
                expression: "@('3') + @('4')",
                compiledExpr: "",
                statement: "定额基价人工费+定额人工单价(基价)调整"
            },
            {
                ID: "3",
                code: "1.1.1",
                name: "定额基价人工费",
                fieldName: "labour",
                dispExpr: "[定额基价人工费]",
                expression: "base('定额基价人工费').toFixed(2)",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "4",
                code: "1.1.2",
                name: "定额人工单价(基价)调整",
                fieldName: "adjustLabour",
                dispExpr: "F3*(L-1)",
                expression: "@('3') * (L-1)",
                labourCoeID: 25,
                compiledExpr: "",
                statement: "定额基价人工费*[定额人工单价(基价)调整系数-1]",
                memo: "渝建发(2013)51"
            },
            {
                ID: "5",
                code: "1.2",
                name: "基价材料费",
                fieldName: "material",
                dispExpr: "[定额基价材料费]",
                expression: "base('定额基价材料费')",
                compiledExpr: "",
                statement: "定额基价材料费"
            },
            {
                ID: "6",
                code: "1.3",
                name: "基价机械费",
                fieldName: "",
                dispExpr: "F7+F9",
                expression: "@('7') + @('9')",
                compiledExpr: "",
                statement: "定额基价机械费+定额机上人工单价(基价)调整"
            },
            {
                ID: "7",
                code: "1.3.1",
                name: "定额基价机械费",
                fieldName: "machine",
                dispExpr: "[定额基价机械费]",
                expression: "base('定额基价机械费')",
                compiledExpr: "",
                statement: "定额基价机械费"
            },
            {
                ID: "8",
                code: "1.3.1.1",
                name: "其中：定额基价机上人工费",
                fieldName: "",
                dispExpr: "[定额基价机上人工费]",
                expression: "base('定额基价机上人工费')",
                compiledExpr: "",
                statement: "定额基价机上人工费"
            },
            {
                ID: "9",
                code: "1.3.2",
                name: "定额机上人工单价(基价)调整",
                fieldName: "adjustMachineLabour",
                dispExpr: "F8*(L-1)",
                expression: "@('8') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价机上人工费*[定额机上人工单价(基价)调整系数-1]"
            },
            {
                ID: "10",
                code: "1.4",
                name: "未计价材料费",
                fieldName: "mainMaterial",
                dispExpr: "[主材费]+[设备费]",
                expression: "base('主材费') + base('设备费')",
                compiledExpr: "",
                statement: "主材费+设备费"
            },
            {
                ID: "11",
                code: "2",
                name: "企业管理费",
                fieldName: "manage",
                dispExpr: "F3",
                feeRateID: 111,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "渝建发[2014]27号"
            },
            {
                ID: "12",
                code: "3",
                name: "利润",
                fieldName: "profit",
                dispExpr: "F3",
                feeRateID: 311,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "13",
                code: "4",
                name: "风险因素",
                fieldName: "risk",
                dispExpr: "F3",
                feeRateID: 711,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "同定额包干费"
            },
            {
                ID: "14",
                code: "5",
                name: "人材机价差",
                fieldName: "",
                dispExpr: "F15+F16+F17",
                expression: "@('15') + @('16') + @('17')",
                compiledExpr: "",
                statement: "人工费价差+材料费价差+机械费价差"
            },
            {
                ID: "15",
                code: "5.1",
                name: "人工费价差",
                fieldName: "labourDiff",
                dispExpr: "[人工费价差]",
                expression: "base('市场价格人工费') - base('定额基价人工费(调整后)')",
                compiledExpr: "",
                statement: "市场价格人工费-调整后的定额人工费(基价)"
            },
            {
                ID: "16",
                code: "5.2",
                name: "材料费价差",
                fieldName: "materialDiff",
                dispExpr: "[材料费价差]",
                expression: "base('市场价格材料费') - base('定额基价材料费(调整后)')",
                compiledExpr: "",
                statement: "市场价格材料费-定额基价材料费"
            },
            {
                ID: "17",
                code: "5.3",
                name: "机械费价差",
                fieldName: "machineDiff",
                dispExpr: "[机械费价差]",
                expression: "base('市场价格机械费') - base('定额基价机械费(调整后)')",
                compiledExpr: "",
                statement: "市场价格机械费-调整后的定额基价机械费(基价)"
            },
            {
                ID: "18",
                code: "6",
                name: "综合单价",
                fieldName: "common",
                dispExpr: "F1+F11+F12+F13+F14",
                expression: "@('1') + @('11') + @('12') + @('13') + @('14')",
                compiledExpr: "",
                statement: "基价直接工程费+企业管理费+利润+风险因素+人材机价差"
            }
        ]
    },
    {
        ID: 11,
        name: "绿化工程",
        calcItems: [
            {
                ID: "1",
                code: "1",
                name: "基价直接工程费",
                fieldName: "direct",
                dispExpr: "F2+F5+F6+F10",
                expression: "@('2') + @('5') + @('6') + @('10')",
                compiledExpr: "",
                statement: "基价人工费+基价材料费+基价机械费+未计价材料费"
            },
            {
                ID: "2",
                code: "1.1",
                name: "基价人工费",
                fieldName: "",
                dispExpr: "F3+F4",
                expression: "@('3') + @('4')",
                compiledExpr: "",
                statement: "定额基价人工费+定额人工单价(基价)调整"
            },
            {
                ID: "3",
                code: "1.1.1",
                name: "定额基价人工费",
                fieldName: "labour",
                dispExpr: "[定额基价人工费]",
                expression: "base('定额基价人工费').toFixed(2)",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "4",
                code: "1.1.2",
                name: "定额人工单价(基价)调整",
                fieldName: "adjustLabour",
                dispExpr: "F3*(L-1)",
                expression: "@('3') * (L-1)",
                labourCoeID: 25,
                compiledExpr: "",
                statement: "定额基价人工费*[定额人工单价(基价)调整系数-1]",
                memo: "渝建发(2013)51"
            },
            {
                ID: "5",
                code: "1.2",
                name: "基价材料费",
                fieldName: "material",
                dispExpr: "[定额基价材料费]",
                expression: "base('定额基价材料费')",
                compiledExpr: "",
                statement: "定额基价材料费"
            },
            {
                ID: "6",
                code: "1.3",
                name: "基价机械费",
                fieldName: "",
                dispExpr: "F7+F9",
                expression: "@('7') + @('9')",
                compiledExpr: "",
                statement: "定额基价机械费+定额机上人工单价(基价)调整"
            },
            {
                ID: "7",
                code: "1.3.1",
                name: "定额基价机械费",
                fieldName: "machine",
                dispExpr: "[定额基价机械费]",
                expression: "base('定额基价机械费')",
                compiledExpr: "",
                statement: "定额基价机械费"
            },
            {
                ID: "8",
                code: "1.3.1.1",
                name: "其中：定额基价机上人工费",
                fieldName: "",
                dispExpr: "[定额基价机上人工费]",
                expression: "base('定额基价机上人工费')",
                compiledExpr: "",
                statement: "定额基价机上人工费"
            },
            {
                ID: "9",
                code: "1.3.2",
                name: "定额机上人工单价(基价)调整",
                fieldName: "adjustMachineLabour",
                dispExpr: "F8*(L-1)",
                expression: "@('8') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价机上人工费*[定额机上人工单价(基价)调整系数-1]"
            },
            {
                ID: "10",
                code: "1.4",
                name: "未计价材料费",
                fieldName: "mainMaterial",
                dispExpr: "[主材费]+[设备费]",
                expression: "base('主材费') + base('设备费')",
                compiledExpr: "",
                statement: "主材费+设备费"
            },
            {
                ID: "11",
                code: "2",
                name: "企业管理费",
                fieldName: "manage",
                dispExpr: "F3",
                feeRateID: 112,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "渝建发[2014]27号"
            },
            {
                ID: "12",
                code: "3",
                name: "利润",
                fieldName: "profit",
                dispExpr: "F3",
                feeRateID: 312,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "13",
                code: "4",
                name: "风险因素",
                fieldName: "risk",
                dispExpr: "F3",
                feeRateID: 712,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "同定额包干费"
            },
            {
                ID: "14",
                code: "5",
                name: "人材机价差",
                fieldName: "",
                dispExpr: "F15+F16+F17",
                expression: "@('15') + @('16') + @('17')",
                compiledExpr: "",
                statement: "人工费价差+材料费价差+机械费价差"
            },
            {
                ID: "15",
                code: "5.1",
                name: "人工费价差",
                fieldName: "labourDiff",
                dispExpr: "[人工费价差]",
                expression: "base('市场价格人工费') - base('定额基价人工费(调整后)')",
                compiledExpr: "",
                statement: "市场价格人工费-调整后的定额人工费(基价)"
            },
            {
                ID: "16",
                code: "5.2",
                name: "材料费价差",
                fieldName: "materialDiff",
                dispExpr: "[材料费价差]",
                expression: "base('市场价格材料费') - base('定额基价材料费(调整后)')",
                compiledExpr: "",
                statement: "市场价格材料费-定额基价材料费"
            },
            {
                ID: "17",
                code: "5.3",
                name: "机械费价差",
                fieldName: "machineDiff",
                dispExpr: "[机械费价差]",
                expression: "base('市场价格机械费') - base('定额基价机械费(调整后)')",
                compiledExpr: "",
                statement: "市场价格机械费-调整后的定额基价机械费(基价)"
            },
            {
                ID: "18",
                code: "6",
                name: "综合单价",
                fieldName: "common",
                dispExpr: "F1+F11+F12+F13+F14",
                expression: "@('1') + @('11') + @('12') + @('13') + @('14')",
                compiledExpr: "",
                statement: "基价直接工程费+企业管理费+利润+风险因素+人材机价差"
            }
        ]
    },
    {
        ID: 12,
        name: "单拆除工程",
        calcItems: [
            {
                ID: "1",
                code: "1",
                name: "基价直接工程费",
                fieldName: "direct",
                dispExpr: "F2+F5+F6+F10",
                expression: "@('2') + @('5') + @('6') + @('10')",
                compiledExpr: "",
                statement: "基价人工费+基价材料费+基价机械费+未计价材料费"
            },
            {
                ID: "2",
                code: "1.1",
                name: "基价人工费",
                fieldName: "",
                dispExpr: "F3+F4",
                expression: "@('3') + @('4')",
                compiledExpr: "",
                statement: "定额基价人工费+定额人工单价(基价)调整"
            },
            {
                ID: "3",
                code: "1.1.1",
                name: "定额基价人工费",
                fieldName: "labour",
                dispExpr: "[定额基价人工费]",
                expression: "base('定额基价人工费').toFixed(2)",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "4",
                code: "1.1.2",
                name: "定额人工单价(基价)调整",
                fieldName: "adjustLabour",
                dispExpr: "F3*(L-1)",
                expression: "@('3') * (L-1)",
                labourCoeID: 22,
                compiledExpr: "",
                statement: "定额基价人工费*[定额人工单价(基价)调整系数-1]",
                memo: "渝建发(2013)51"
            },
            {
                ID: "5",
                code: "1.2",
                name: "基价材料费",
                fieldName: "material",
                dispExpr: "[定额基价材料费]",
                expression: "base('定额基价材料费')",
                compiledExpr: "",
                statement: "定额基价材料费"
            },
            {
                ID: "6",
                code: "1.3",
                name: "基价机械费",
                fieldName: "",
                dispExpr: "F7+F9",
                expression: "@('7') + @('9')",
                compiledExpr: "",
                statement: "定额基价机械费+定额机上人工单价(基价)调整"
            },
            {
                ID: "7",
                code: "1.3.1",
                name: "定额基价机械费",
                fieldName: "machine",
                dispExpr: "[定额基价机械费]",
                expression: "base('定额基价机械费')",
                compiledExpr: "",
                statement: "定额基价机械费"
            },
            {
                ID: "8",
                code: "1.3.1.1",
                name: "其中：定额基价机上人工费",
                fieldName: "",
                dispExpr: "[定额基价机上人工费]",
                expression: "base('定额基价机上人工费')",
                compiledExpr: "",
                statement: "定额基价机上人工费"
            },
            {
                ID: "9",
                code: "1.3.2",
                name: "定额机上人工单价(基价)调整",
                fieldName: "adjustMachineLabour",
                dispExpr: "F8*(L-1)",
                expression: "@('8') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价机上人工费*[定额机上人工单价(基价)调整系数-1]"
            },
            {
                ID: "10",
                code: "1.4",
                name: "未计价材料费",
                fieldName: "mainMaterial",
                dispExpr: "[主材费]+[设备费]",
                expression: "base('主材费') + base('设备费')",
                compiledExpr: "",
                statement: "主材费+设备费"
            },
            {
                ID: "11",
                code: "2",
                name: "企业管理费",
                fieldName: "manage",
                dispExpr: "F3",
                feeRateID: 113,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "渝建发[2014]27号"
            },
            {
                ID: "12",
                code: "3",
                name: "利润",
                fieldName: "profit",
                dispExpr: "F3",
                feeRateID: 313,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "13",
                code: "4",
                name: "风险因素",
                fieldName: "risk",
                dispExpr: "F3",
                feeRateID: 713,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "同定额包干费"
            },
            {
                ID: "14",
                code: "5",
                name: "人材机价差",
                fieldName: "",
                dispExpr: "F15+F16+F17",
                expression: "@('15') + @('16') + @('17')",
                compiledExpr: "",
                statement: "人工费价差+材料费价差+机械费价差"
            },
            {
                ID: "15",
                code: "5.1",
                name: "人工费价差",
                fieldName: "labourDiff",
                dispExpr: "[人工费价差]",
                expression: "base('市场价格人工费') - base('定额基价人工费(调整后)')",
                compiledExpr: "",
                statement: "市场价格人工费-调整后的定额人工费(基价)"
            },
            {
                ID: "16",
                code: "5.2",
                name: "材料费价差",
                fieldName: "materialDiff",
                dispExpr: "[材料费价差]",
                expression: "base('市场价格材料费') - base('定额基价材料费(调整后)')",
                compiledExpr: "",
                statement: "市场价格材料费-定额基价材料费"
            },
            {
                ID: "17",
                code: "5.3",
                name: "机械费价差",
                fieldName: "machineDiff",
                dispExpr: "[机械费价差]",
                expression: "base('市场价格机械费') - base('定额基价机械费(调整后)')",
                compiledExpr: "",
                statement: "市场价格机械费-调整后的定额基价机械费(基价)"
            },
            {
                ID: "18",
                code: "6",
                name: "综合单价",
                fieldName: "common",
                dispExpr: "F1+F11+F12+F13+F14",
                expression: "@('1') + @('11') + @('12') + @('13') + @('14')",
                compiledExpr: "",
                statement: "基价直接工程费+企业管理费+利润+风险因素+人材机价差"
            }
        ]
    },
    {
        ID: 13,
        name: "建筑修缮工程",
        calcItems: [
            {
                ID: "1",
                code: "1",
                name: "基价直接工程费",
                fieldName: "direct",
                dispExpr: "F2+F5+F6+F10",
                expression: "@('2') + @('5') + @('6') + @('10')",
                compiledExpr: "",
                statement: "基价人工费+基价材料费+基价机械费+未计价材料费"
            },
            {
                ID: "2",
                code: "1.1",
                name: "基价人工费",
                fieldName: "",
                dispExpr: "F3+F4",
                expression: "@('3') + @('4')",
                compiledExpr: "",
                statement: "定额基价人工费+定额人工单价(基价)调整"
            },
            {
                ID: "3",
                code: "1.1.1",
                name: "定额基价人工费",
                fieldName: "labour",
                dispExpr: "[定额基价人工费]",
                expression: "base('定额基价人工费').toFixed(2)",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "4",
                code: "1.1.2",
                name: "定额人工单价(基价)调整",
                fieldName: "adjustLabour",
                dispExpr: "F3*(L-1)",
                expression: "@('3') * (L-1)",
                labourCoeID: 22,
                compiledExpr: "",
                statement: "定额基价人工费*[定额人工单价(基价)调整系数-1]",
                memo: "渝建发(2013)51"
            },
            {
                ID: "5",
                code: "1.2",
                name: "基价材料费",
                fieldName: "material",
                dispExpr: "[定额基价材料费]",
                expression: "base('定额基价材料费')",
                compiledExpr: "",
                statement: "定额基价材料费"
            },
            {
                ID: "6",
                code: "1.3",
                name: "基价机械费",
                fieldName: "",
                dispExpr: "F7+F9",
                expression: "@('7') + @('9')",
                compiledExpr: "",
                statement: "定额基价机械费+定额机上人工单价(基价)调整"
            },
            {
                ID: "7",
                code: "1.3.1",
                name: "定额基价机械费",
                fieldName: "machine",
                dispExpr: "[定额基价机械费]",
                expression: "base('定额基价机械费')",
                compiledExpr: "",
                statement: "定额基价机械费"
            },
            {
                ID: "8",
                code: "1.3.1.1",
                name: "其中：定额基价机上人工费",
                fieldName: "",
                dispExpr: "[定额基价机上人工费]",
                expression: "base('定额基价机上人工费')",
                compiledExpr: "",
                statement: "定额基价机上人工费"
            },
            {
                ID: "9",
                code: "1.3.2",
                name: "定额机上人工单价(基价)调整",
                fieldName: "adjustMachineLabour",
                dispExpr: "F8*(L-1)",
                expression: "@('8') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价机上人工费*[定额机上人工单价(基价)调整系数-1]"
            },
            {
                ID: "10",
                code: "1.4",
                name: "未计价材料费",
                fieldName: "mainMaterial",
                dispExpr: "[主材费]+[设备费]",
                expression: "base('主材费') + base('设备费')",
                compiledExpr: "",
                statement: "主材费+设备费"
            },
            {
                ID: "11",
                code: "2",
                name: "企业管理费",
                fieldName: "manage",
                dispExpr: "F3+F5+F7",
                feeRateID: 105,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]",
                memo: "渝建发[2014]27号"
            },
            {
                ID: "12",
                code: "3",
                name: "利润",
                fieldName: "profit",
                dispExpr: "F3+F5+F7",
                feeRateID: 305,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]"
            },
            {
                ID: "13",
                code: "4",
                name: "风险因素",
                fieldName: "risk",
                dispExpr: "F3+F5+F7",
                feeRateID: 705,
                expression: "@('3') + @('5') + @('7')",
                compiledExpr: "",
                statement: "[定额基价人工费]+[定额基价材料费]+[定额基价机械费]",
                memo: "同定额包干费"
            },
            {
                ID: "14",
                code: "5",
                name: "人材机价差",
                fieldName: "",
                dispExpr: "F15+F16+F17",
                expression: "@('15') + @('16') + @('17')",
                compiledExpr: "",
                statement: "人工费价差+材料费价差+机械费价差"
            },
            {
                ID: "15",
                code: "5.1",
                name: "人工费价差",
                fieldName: "labourDiff",
                dispExpr: "[人工费价差]",
                expression: "base('市场价格人工费') - base('定额基价人工费(调整后)')",
                compiledExpr: "",
                statement: "市场价格人工费-调整后的定额人工费(基价)"
            },
            {
                ID: "16",
                code: "5.2",
                name: "材料费价差",
                fieldName: "materialDiff",
                dispExpr: "[材料费价差]",
                expression: "base('市场价格材料费') - base('定额基价材料费(调整后)')",
                compiledExpr: "",
                statement: "市场价格材料费-定额基价材料费"
            },
            {
                ID: "17",
                code: "5.3",
                name: "机械费价差",
                fieldName: "machineDiff",
                dispExpr: "[机械费价差]",
                expression: "base('市场价格机械费') - base('定额基价机械费(调整后)')",
                compiledExpr: "",
                statement: "市场价格机械费-调整后的定额基价机械费(基价)"
            },
            {
                ID: "18",
                code: "6",
                name: "综合单价",
                fieldName: "common",
                dispExpr: "F1+F11+F12+F13+F14",
                expression: "@('1') + @('11') + @('12') + @('13') + @('14')",
                compiledExpr: "",
                statement: "基价直接工程费+企业管理费+利润+风险因素+人材机价差"
            }
        ]
    },
    {
        ID: 14,
        name: "安装修缮工程",
        calcItems: [
            {
                ID: "1",
                code: "1",
                name: "基价直接工程费",
                fieldName: "direct",
                dispExpr: "F2+F5+F6+F10",
                expression: "@('2') + @('5') + @('6') + @('10')",
                compiledExpr: "",
                statement: "基价人工费+基价材料费+基价机械费+未计价材料费"
            },
            {
                ID: "2",
                code: "1.1",
                name: "基价人工费",
                fieldName: "",
                dispExpr: "F3+F4",
                expression: "@('3') + @('4')",
                compiledExpr: "",
                statement: "定额基价人工费+定额人工单价(基价)调整"
            },
            {
                ID: "3",
                code: "1.1.1",
                name: "定额基价人工费",
                fieldName: "labour",
                dispExpr: "[定额基价人工费]",
                expression: "base('定额基价人工费').toFixed(2)",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "4",
                code: "1.1.2",
                name: "定额人工单价(基价)调整",
                fieldName: "adjustLabour",
                dispExpr: "F3*(L-1)",
                expression: "@('3') * (L-1)",
                labourCoeID: 22,
                compiledExpr: "",
                statement: "定额基价人工费*[定额人工单价(基价)调整系数-1]",
                memo: "渝建发(2013)51"
            },
            {
                ID: "5",
                code: "1.2",
                name: "基价材料费",
                fieldName: "material",
                dispExpr: "[定额基价材料费]",
                expression: "base('定额基价材料费')",
                compiledExpr: "",
                statement: "定额基价材料费"
            },
            {
                ID: "6",
                code: "1.3",
                name: "基价机械费",
                fieldName: "",
                dispExpr: "F7+F9",
                expression: "@('7') + @('9')",
                compiledExpr: "",
                statement: "定额基价机械费+定额机上人工单价(基价)调整"
            },
            {
                ID: "7",
                code: "1.3.1",
                name: "定额基价机械费",
                fieldName: "machine",
                dispExpr: "[定额基价机械费]",
                expression: "base('定额基价机械费')",
                compiledExpr: "",
                statement: "定额基价机械费"
            },
            {
                ID: "8",
                code: "1.3.1.1",
                name: "其中：定额基价机上人工费",
                fieldName: "",
                dispExpr: "[定额基价机上人工费]",
                expression: "base('定额基价机上人工费')",
                compiledExpr: "",
                statement: "定额基价机上人工费"
            },
            {
                ID: "9",
                code: "1.3.2",
                name: "定额机上人工单价(基价)调整",
                fieldName: "adjustMachineLabour",
                dispExpr: "F8*(L-1)",
                expression: "@('8') * (L-1)",
                labourCoeID: 24,
                compiledExpr: "",
                statement: "定额基价机上人工费*[定额机上人工单价(基价)调整系数-1]"
            },
            {
                ID: "10",
                code: "1.4",
                name: "未计价材料费",
                fieldName: "mainMaterial",
                dispExpr: "[主材费]+[设备费]",
                expression: "base('主材费') + base('设备费')",
                compiledExpr: "",
                statement: "主材费+设备费"
            },
            {
                ID: "11",
                code: "2",
                name: "企业管理费",
                fieldName: "manage",
                dispExpr: "F3",
                feeRateID: 114,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "渝建发[2014]27号"
            },
            {
                ID: "12",
                code: "3",
                name: "利润",
                fieldName: "profit",
                dispExpr: "F3",
                feeRateID: 314,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费"
            },
            {
                ID: "13",
                code: "4",
                name: "风险因素",
                fieldName: "risk",
                dispExpr: "F3",
                feeRateID: 714,
                expression: "@('3')",
                compiledExpr: "",
                statement: "定额基价人工费",
                memo: "同定额包干费"
            },
            {
                ID: "14",
                code: "5",
                name: "人材机价差",
                fieldName: "",
                dispExpr: "F15+F16+F17",
                expression: "@('15') + @('16') + @('17')",
                compiledExpr: "",
                statement: "人工费价差+材料费价差+机械费价差"
            },
            {
                ID: "15",
                code: "5.1",
                name: "人工费价差",
                fieldName: "labourDiff",
                dispExpr: "[人工费价差]",
                expression: "base('市场价格人工费') - base('定额基价人工费(调整后)')",
                compiledExpr: "",
                statement: "市场价格人工费-调整后的定额人工费(基价)"
            },
            {
                ID: "16",
                code: "5.2",
                name: "材料费价差",
                fieldName: "materialDiff",
                dispExpr: "[材料费价差]",
                expression: "base('市场价格材料费') - base('定额基价材料费(调整后)')",
                compiledExpr: "",
                statement: "市场价格材料费-定额基价材料费"
            },
            {
                ID: "17",
                code: "5.3",
                name: "机械费价差",
                fieldName: "machineDiff",
                dispExpr: "[机械费价差]",
                expression: "base('市场价格机械费') - base('定额基价机械费(调整后)')",
                compiledExpr: "",
                statement: "市场价格机械费-调整后的定额基价机械费(基价)"
            },
            {
                ID: "18",
                code: "6",
                name: "综合单价",
                fieldName: "common",
                dispExpr: "F1+F11+F12+F13+F14",
                expression: "@('1') + @('11') + @('12') + @('13') + @('14')",
                compiledExpr: "",
                statement: "基价直接工程费+企业管理费+利润+风险因素+人材机价差"
            }
        ]
    }
];

let calcFeeRates = [
    {
        "ID" : 1,
        "ParentID" : null,
        "name" : "企业管理费",
        "rate" : null,
        "memo" : null
    },
    {
        "ID" : 101,
        "ParentID" : 1,
        "name" : "建筑工程",
        "rate" : 16.36,
        "memo" : null
    },
    {
        "ID" : 102,
        "ParentID" : 1,
        "name" : "市政工程",
        "rate" : 17.43,
        "memo" : null
    },
    {
        "ID" : 103,
        "ParentID" : 1,
        "name" : "机械土石方工程",
        "rate" : 15.76,
        "memo" : null
    },
    {
        "ID" : 104,
        "ParentID" : 1,
        "name" : "仿古建筑工程",
        "rate" : 13.35,
        "memo" : null
    },
    {
        "ID" : 105,
        "ParentID" : 1,
        "name" : "建筑修缮工程",
        "rate" : 15.69,
        "memo" : null
    },
    {
        "ID" : 106,
        "ParentID" : 1,
        "name" : "炉窑砌筑工程",
        "rate" : 14.63,
        "memo" : null
    },
    {
        "ID" : 107,
        "ParentID" : 1,
        "name" : "装饰工程",
        "rate" : 40.93,
        "memo" : null
    },
    {
        "ID" : 108,
        "ParentID" : 1,
        "name" : "安装工程",
        "rate" : 70.19,
        "memo" : null
    },
    {
        "ID" : 109,
        "ParentID" : 1,
        "name" : "市政安装工程",
        "rate" : 68.98,
        "memo" : null
    },
    {
        "ID" : 110,
        "ParentID" : 1,
        "name" : "人工土石方工程",
        "rate" : 36.99,
        "memo" : null
    },
    {
        "ID" : 111,
        "ParentID" : 1,
        "name" : "园林工程",
        "rate" : 16.2,
        "memo" : null
    },
    {
        "ID" : 112,
        "ParentID" : 1,
        "name" : "绿化工程",
        "rate" : 14.21,
        "memo" : null
    },
    {
        "ID" : 113,
        "ParentID" : 1,
        "name" : "单拆除工程",
        "rate" : 9.85,
        "memo" : null
    },
    {
        "ID" : 114,
        "ParentID" : 1,
        "name" : "安装修缮工程",
        "rate" : 54.64,
        "memo" : null
    },
    {
        "ID" : 2,
        "ParentID" : null,
        "name" : "规费",
        "rate" : null,
        "memo" : null
    },
    {
        "ID" : 201,
        "ParentID" : 2,
        "name" : "建筑工程",
        "rate" : 4.87,
        "memo" : null
    },
    {
        "ID" : 202,
        "ParentID" : 2,
        "name" : "市政工程",
        "rate" : 3.61,
        "memo" : null
    },
    {
        "ID" : 203,
        "ParentID" : 2,
        "name" : "机械土石方工程",
        "rate" : 2.15,
        "memo" : null
    },
    {
        "ID" : 204,
        "ParentID" : 2,
        "name" : "仿古建筑工程",
        "rate" : 2.84,
        "memo" : null
    },
    {
        "ID" : 205,
        "ParentID" : 2,
        "name" : "建筑修缮工程",
        "rate" : 2.84,
        "memo" : null
    },
    {
        "ID" : 206,
        "ParentID" : 2,
        "name" : "炉窑砌筑工程",
        "rate" : 3.61,
        "memo" : null
    },
    {
        "ID" : 207,
        "ParentID" : 2,
        "name" : "装饰工程",
        "rate" : 25.2,
        "memo" : null
    },
    {
        "ID" : 208,
        "ParentID" : 2,
        "name" : "安装工程",
        "rate" : 25.83,
        "memo" : null
    },
    {
        "ID" : 209,
        "ParentID" : 2,
        "name" : "市政安装工程",
        "rate" : 25.2,
        "memo" : null
    },
    {
        "ID" : 210,
        "ParentID" : 2,
        "name" : "人工土石方工程",
        "rate" : 20.7,
        "memo" : null
    },
    {
        "ID" : 211,
        "ParentID" : 2,
        "name" : "园林工程",
        "rate" : 20.8,
        "memo" : null
    },
    {
        "ID" : 212,
        "ParentID" : 2,
        "name" : "绿化工程",
        "rate" : 20.8,
        "memo" : null
    },
    {
        "ID" : 213,
        "ParentID" : 2,
        "name" : "单拆除工程",
        "rate" : 17.7,
        "memo" : null
    },
    {
        "ID" : 214,
        "ParentID" : 2,
        "name" : "安装修缮工程",
        "rate" : 20.6,
        "memo" : null
    },
    {
        "ID" : 3,
        "ParentID" : null,
        "name" : "利润",
        "rate" : null,
        "memo" : null
    },
    {
        "ID" : 301,
        "ParentID" : 3,
        "name" : "建筑工程",
        "rate" : 8.73,
        "memo" : null
    },
    {
        "ID" : 302,
        "ParentID" : 3,
        "name" : "市政工程",
        "rate" : 9.20,
        "memo" : null
    },
    {
        "ID" : 303,
        "ParentID" : 3,
        "name" : "机械土石方工程",
        "rate" : 6.50,
        "memo" : null
    },
    {
        "ID" : 304,
        "ParentID" : 3,
        "name" : "仿古建筑工程",
        "rate" : 7.00,
        "memo" : null
    },
    {
        "ID" : 305,
        "ParentID" : 3,
        "name" : "建筑修缮工程",
        "rate" : 3.72,
        "memo" : null
    },
    {
        "ID" : 306,
        "ParentID" : 3,
        "name" : "炉窑砌筑工程",
        "rate" : 8.94,
        "memo" : null
    },
    {
        "ID" : 307,
        "ParentID" : 3,
        "name" : "装饰工程",
        "rate" : 27.50,
        "memo" : null
    },
    {
        "ID" : 308,
        "ParentID" : 3,
        "name" : "安装工程",
        "rate" : 60.40,
        "memo" : null
    },
    {
        "ID" : 309,
        "ParentID" : 3,
        "name" : "市政安装工程",
        "rate" : 56.50,
        "memo" : null
    },
    {
        "ID" : 310,
        "ParentID" : 3,
        "name" : "人工土石方工程",
        "rate" : 12.00,
        "memo" : null
    },
    {
        "ID" : 311,
        "ParentID" : 3,
        "name" : "园林工程",
        "rate" : 8.00,
        "memo" : null
    },
    {
        "ID" : 312,
        "ParentID" : 3,
        "name" : "绿化工程",
        "rate" : 6.50,
        "memo" : null
    },
    {
        "ID" : 313,
        "ParentID" : 3,
        "name" : "单拆除工程",
        "rate" : 4.00,
        "memo" : null
    },
    {
        "ID" : 314,
        "ParentID" : 3,
        "name" : "安装修缮工程",
        "rate" : 25.00,
        "memo" : null
    },
    {
        "ID" : 4,
        "ParentID" : null,
        "name" : "夜间施工费",
        "rate" : null,
        "memo" : null
    },
    {
        "ID" : 401,
        "ParentID" : 4,
        "name" : "建筑工程",
        "rate" : 4.87,
        "memo" : null
    },
    {
        "ID" : 402,
        "ParentID" : 4,
        "name" : "市政工程",
        "rate" : 3.61,
        "memo" : null
    },
    {
        "ID" : 403,
        "ParentID" : 4,
        "name" : "机械土石方工程",
        "rate" : 2.15,
        "memo" : null
    },
    {
        "ID" : 404,
        "ParentID" : 4,
        "name" : "仿古建筑工程",
        "rate" : 2.84,
        "memo" : null
    },
    {
        "ID" : 405,
        "ParentID" : 4,
        "name" : "建筑修缮工程",
        "rate" : 2.84,
        "memo" : null
    },
    {
        "ID" : 406,
        "ParentID" : 4,
        "name" : "炉窑砌筑工程",
        "rate" : 3.61,
        "memo" : null
    },
    {
        "ID" : 407,
        "ParentID" : 4,
        "name" : "装饰工程",
        "rate" : 25.2,
        "memo" : null
    },
    {
        "ID" : 408,
        "ParentID" : 4,
        "name" : "安装工程",
        "rate" : 25.83,
        "memo" : null
    },
    {
        "ID" : 409,
        "ParentID" : 4,
        "name" : "市政安装工程",
        "rate" : 25.2,
        "memo" : null
    },
    {
        "ID" : 410,
        "ParentID" : 4,
        "name" : "人工土石方工程",
        "rate" : 20.7,
        "memo" : null
    },
    {
        "ID" : 411,
        "ParentID" : 4,
        "name" : "园林工程",
        "rate" : 20.8,
        "memo" : null
    },
    {
        "ID" : 412,
        "ParentID" : 4,
        "name" : "绿化工程",
        "rate" : 20.8,
        "memo" : null
    },
    {
        "ID" : 413,
        "ParentID" : 4,
        "name" : "单拆除工程",
        "rate" : 17.7,
        "memo" : null
    },
    {
        "ID" : 414,
        "ParentID" : 4,
        "name" : "安装修缮工程",
        "rate" : 20.6,
        "memo" : null
    },
    {
        "ID" : 5,
        "ParentID" : null,
        "name" : "冬雨季施工增加费",
        "rate" : null,
        "memo" : null
    },
    {
        "ID" : 501,
        "ParentID" : 5,
        "name" : "建筑工程",
        "rate" : 8.73,
        "memo" : null
    },
    {
        "ID" : 502,
        "ParentID" : 5,
        "name" : "市政工程",
        "rate" : 9.20,
        "memo" : null
    },
    {
        "ID" : 503,
        "ParentID" : 5,
        "name" : "机械土石方工程",
        "rate" : 6.50,
        "memo" : null
    },
    {
        "ID" : 504,
        "ParentID" : 5,
        "name" : "仿古建筑工程",
        "rate" : 7.00,
        "memo" : null
    },
    {
        "ID" : 505,
        "ParentID" : 5,
        "name" : "建筑修缮工程",
        "rate" : 3.72,
        "memo" : null
    },
    {
        "ID" : 506,
        "ParentID" : 5,
        "name" : "炉窑砌筑工程",
        "rate" : 8.94,
        "memo" : null
    },
    {
        "ID" : 507,
        "ParentID" : 5,
        "name" : "装饰工程",
        "rate" : 27.50,
        "memo" : null
    },
    {
        "ID" : 508,
        "ParentID" : 5,
        "name" : "安装工程",
        "rate" : 60.40,
        "memo" : null
    },
    {
        "ID" : 509,
        "ParentID" : 5,
        "name" : "市政安装工程",
        "rate" : 56.50,
        "memo" : null
    },
    {
        "ID" : 510,
        "ParentID" : 5,
        "name" : "人工土石方工程",
        "rate" : 12.00,
        "memo" : null
    },
    {
        "ID" : 511,
        "ParentID" : 5,
        "name" : "园林工程",
        "rate" : 8.00,
        "memo" : null
    },
    {
        "ID" : 512,
        "ParentID" : 5,
        "name" : "绿化工程",
        "rate" : 6.50,
        "memo" : null
    },
    {
        "ID" : 513,
        "ParentID" : 5,
        "name" : "单拆除工程",
        "rate" : 4.00,
        "memo" : null
    },
    {
        "ID" : 514,
        "ParentID" : 5,
        "name" : "安装修缮工程",
        "rate" : 25.00,
        "memo" : null
    },
    {
        "ID" : 6,
        "ParentID" : null,
        "name" : "二次搬运费",
        "rate" : null,
        "memo" : null
    },
    {
        "ID" : 601,
        "ParentID" : 6,
        "name" : "建筑工程",
        "rate" : 8.73,
        "memo" : null
    },
    {
        "ID" : 602,
        "ParentID" : 6,
        "name" : "市政工程",
        "rate" : 9.20,
        "memo" : null
    },
    {
        "ID" : 603,
        "ParentID" : 6,
        "name" : "机械土石方工程",
        "rate" : 6.50,
        "memo" : null
    },
    {
        "ID" : 604,
        "ParentID" : 6,
        "name" : "仿古建筑工程",
        "rate" : 7.00,
        "memo" : null
    },
    {
        "ID" : 605,
        "ParentID" : 6,
        "name" : "建筑修缮工程",
        "rate" : 3.72,
        "memo" : null
    },
    {
        "ID" : 606,
        "ParentID" : 6,
        "name" : "炉窑砌筑工程",
        "rate" : 8.94,
        "memo" : null
    },
    {
        "ID" : 607,
        "ParentID" : 6,
        "name" : "装饰工程",
        "rate" : 27.50,
        "memo" : null
    },
    {
        "ID" : 608,
        "ParentID" : 6,
        "name" : "安装工程",
        "rate" : 60.40,
        "memo" : null
    },
    {
        "ID" : 609,
        "ParentID" : 6,
        "name" : "市政安装工程",
        "rate" : 56.50,
        "memo" : null
    },
    {
        "ID" : 610,
        "ParentID" : 6,
        "name" : "人工土石方工程",
        "rate" : 12.00,
        "memo" : null
    },
    {
        "ID" : 611,
        "ParentID" : 6,
        "name" : "园林工程",
        "rate" : 8.00,
        "memo" : null
    },
    {
        "ID" : 612,
        "ParentID" : 6,
        "name" : "绿化工程",
        "rate" : 6.50,
        "memo" : null
    },
    {
        "ID" : 613,
        "ParentID" : 6,
        "name" : "单拆除工程",
        "rate" : 4.00,
        "memo" : null
    },
    {
        "ID" : 614,
        "ParentID" : 6,
        "name" : "安装修缮工程",
        "rate" : 25.00,
        "memo" : null
    },
    {
        "ID" : 7,
        "ParentID" : null,
        "name" : "包干费",
        "rate" : null,
        "memo" : null
    },
    {
        "ID" : 701,
        "ParentID" : 7,
        "name" : "建筑工程",
        "rate" : 1.20,
        "memo" : null
    },
    {
        "ID" : 702,
        "ParentID" : 7,
        "name" : "市政工程",
        "rate" : 1.20,
        "memo" : null
    },
    {
        "ID" : 703,
        "ParentID" : 7,
        "name" : "机械土石方工程",
        "rate" : 1.20,
        "memo" : null
    },
    {
        "ID" : 704,
        "ParentID" : 7,
        "name" : "仿古建筑工程",
        "rate" : 1.20,
        "memo" : null
    },
    {
        "ID" : 705,
        "ParentID" : 7,
        "name" : "建筑修缮工程",
        "rate" : 0.00,
        "memo" : null
    },
    {
        "ID" : 706,
        "ParentID" : 7,
        "name" : "炉窑砌筑工程",
        "rate" : 1.20,
        "memo" : null
    },
    {
        "ID" : 707,
        "ParentID" : 7,
        "name" : "装饰工程",
        "rate" : 3.00,
        "memo" : null
    },
    {
        "ID" : 708,
        "ParentID" : 7,
        "name" : "安装工程",
        "rate" : 3.00,
        "memo" : null
    },
    {
        "ID" : 709,
        "ParentID" : 7,
        "name" : "市政安装工程",
        "rate" : 3.00,
        "memo" : null
    },
    {
        "ID" : 710,
        "ParentID" : 7,
        "name" : "人工土石方工程",
        "rate" : 0.00,
        "memo" : null
    },
    {
        "ID" : 711,
        "ParentID" : 7,
        "name" : "园林工程",
        "rate" : 3.00,
        "memo" : null
    },
    {
        "ID" : 712,
        "ParentID" : 7,
        "name" : "绿化工程",
        "rate" : 3.00,
        "memo" : null
    },
    {
        "ID" : 713,
        "ParentID" : 7,
        "name" : "单拆除工程",
        "rate" : 0.00,
        "memo" : null
    },
    {
        "ID" : 714,
        "ParentID" : 7,
        "name" : "安装修缮工程",
        "rate" : 0.00,
        "memo" : null
    }
];

let calcLabourCoes = [
    {
        "ID" : 1,
        "ParentID" : null,
        "name" : "2006概算定额",
        "coe" : null
    },
    {
        "ID" : 11,
        "ParentID" : 1,
        "name" : "土石方人工",
        "coe" : 2.94
    },
    {
        "ID" : 12,
        "ParentID" : 1,
        "name" : "建筑、市政、维修人工",
        "coe" : 2.84
    },
    {
        "ID" : 13,
        "ParentID" : 1,
        "name" : "装饰人工",
        "coe" : 1
    },
    {
        "ID" : 14,
        "ParentID" : 1,
        "name" : "安装、机械人工",
        "coe" :2.58
    },
    {
        "ID" : 15,
        "ParentID" : 1,
        "name" : "仿古、园林绿化人工",
        "coe" :1
    },
    {
        "ID" : 16,
        "ParentID" : 1,
        "name" : "盾构用工",
        "coe" :1
    },
    {
        "ID" : 2,
        "ParentID" : null,
        "name" : "2008计价定额",
        "coe" :null
    },
    {
        "ID" : 21,
        "ParentID" : 2,
        "name" : "土石方人工",
        "coe" : 2.41
    },
    {
        "ID" : 22,
        "ParentID" : 2,
        "name" : "建筑、市政、维修人工",
        "coe" : 2.48
    },
    {
        "ID" : 23,
        "ParentID" : 2,
        "name" : "装饰人工",
        "coe" : 3.04
    },
    {
        "ID" : 24,
        "ParentID" : 2,
        "name" : "安装、机械人工",
        "coe" :2.39
    },
    {
        "ID" : 25,
        "ParentID" : 2,
        "name" : "仿古、园林绿化人工",
        "coe" :2.39
    },
    {
        "ID" : 26,
        "ParentID" : 2,
        "name" : "盾构用工",
        "coe" :1
    },
    {
        "ID" : 3,
        "ParentID" : null,
        "name" : "2011轨道定额",
        "coe" :null
    },
    {
        "ID" : 31,
        "ParentID" : 3,
        "name" : "土石方人工",
        "coe" : 1.51
    },
    {
        "ID" : 32,
        "ParentID" : 3,
        "name" : "建筑、市政、维修人工",
        "coe" : 1.55
    },
    {
        "ID" : 33,
        "ParentID" : 3,
        "name" : "装饰人工",
        "coe" : 1
    },
    {
        "ID" : 34,
        "ParentID" : 3,
        "name" : "安装、机械人工",
        "coe" :1.49
    },
    {
        "ID" : 35,
        "ParentID" : 3,
        "name" : "仿古、园林绿化人工",
        "coe" :1
    },
    {
        "ID" : 36,
        "ParentID" : 3,
        "name" : "盾构用工",
        "coe" :1.49
    }
];

class CalcProgram {
    constructor(project){
        this.project = project;
        this.calc = new Calculation();
    };

    compileAllTemps(){
        this.calc.compilePublics(calcFeeRates, calcLabourCoes, feeType, rationCalcBase);
        for (let calcTemplate of calcTemplates){
            this.calc.compileTemplate(calcTemplate);
        };
    };

    compile(calcTemplate){
        //this.calc.compilePublics(calcFeeRates, calcLabourCoes, feeType, rationCalcBase);
        this.calc.compileTemplate(calcTemplate);
    };

    calculate(treeNode){
        treeNode.data.gljList = this.project.ration_glj.getGljArrByRation(treeNode.data.ID);
        this.calc.calculate(treeNode);
        projectObj.mainController.showTreeData();
    };
}