/**
 * Created by Mai on 2017/4/17.
 */
var TEMPLATE_BILLS_SETTING = {
    "emptyRows":1,
    "headRows":1,
    "headRowHeight":[20],
    "treeCol": 0,
    "cols":[{
        "width":200,
        "readOnly":null,
        "head":{
            "titleNames":[
                "编号"
            ],
            "spanCols":[
                1
            ],
            "spanRows":[
                1
            ],
            "vAlign":[
                1
            ],
            "hAlign":[
                1
            ],
            "font":[
                "12px Arial"
            ]
        },
        "data":{
            "field":"code",
            "vAlign":0,
            "hAlign":3,
            "font":"14.6667px Calibri"
        }
    }, {
        "width":300,
        "readOnly":null,
        "head":{
            "titleNames":[
                "名称"
            ],
            "spanCols":[
                1
            ],
            "spanRows":[
                1
            ],
            "vAlign":[
                1
            ],
            "hAlign":[
                1
            ],
            "font":[
                "12px Arial"
            ]
        },
        "data":{
            "field":"name",
            "vAlign":0,
            "hAlign":3,
            "font":"14.6667px Calibri"
        }
    }, {
        "width":50,
        "readOnly":null,
        "head":{
            "titleNames":[
                "单位"
            ],
            "spanCols":[
                1
            ],
            "spanRows":[
                1
            ],
            "vAlign":[
                1
            ],
            "hAlign":[
                1
            ],
            "font":[
                "12px Arial"
            ]
        },
        "data":{
            "field":"unit",
            "vAlign":0,
            "hAlign":1,
            "font":"14.6667px Calibri"
        }
    }, {
        "width":50,
        "readOnly":null,
        "head":{
            "titleNames":[
                "ID"
            ],
            "spanCols":[
                1
            ],
            "spanRows":[
                1
            ],
            "vAlign":[
                1
            ],
            "hAlign":[
                1
            ],
            "font":[
                "12px Arial"
            ]
        },
        "data":{
            "field":"ID",
            "vAlign":0,
            "hAlign":1,
            "font":"14.6667px Calibri"/*,
            "getText": function (node) {
                if (node) {
                    return node.getID();
                } else {
                    return '';
                }
            }*/
        }
    }, {
        "width":50,
        "readOnly":null,
        "head":{
            "titleNames":[
                "ParentID"
            ],
            "spanCols":[
                1
            ],
            "spanRows":[
                1
            ],
            "vAlign":[
                1
            ],
            "hAlign":[
                1
            ],
            "font":[
                "12px Arial"
            ]
        },
        "data":{
            "field":"ParentID",
            "vAlign":0,
            "hAlign":1,
            "font":"14.6667px Calibri"/*,
            "getText": function (node) {
                if (node) {
                    return node.getParentID();
                } else {
                    return '';
                }
            }*/
        }
    }, {
        "width":50,
        "readOnly":null,
        "head":{
            "titleNames":[
                "NextSiblingID"
            ],
            "spanCols":[
                1
            ],
            "spanRows":[
                1
            ],
            "vAlign":[
                1
            ],
            "hAlign":[
                1
            ],
            "font":[
                "12px Arial"
            ]
        },
        "data":{
            "field":"NextSiblingID",
            "vAlign":0,
            "hAlign":1,
            "font":"14.6667px Calibri"/*,
            "getText": function (node) {
                if (node) {
                    return node.getNextSiblingID();
                } else {
                    return '';
                }
            }*/
        }
    }]
};
