﻿//-----------------------------------------------------------------------------------
//GLOBAL VARS
//-----------------------------------------------------------------------------------
var EMPTY_ROW = "no filter";
//-----------------------------------------------------------------------------------
//TABLE DEFINITION
//-----------------------------------------------------------------------------------

var gridDef = {
	amountPerPage : 20,
	useMultiSort : false,
	datatype : 0,
	data : giroArray,

    // data : "data/giro_csv.xml",
	colDef : [
	{
		title : "BC-Nr",
		titleClass : "", //default for th,
		cellClass : "TableText",
		type : "Number",
		width : 100, //auto
		alignment : "right",
		compareFunction : compare,
		isVisible : true,
		useAutoIndex : false,
		useAutoFilter : true
	},
	{
		title : "SIC-Nr",
		titleClass : "",
		cellClass : "TableText",
		type : "Number",
		width : 100, //auto
		alignment : "right",
		compareFunction : compare,
		isVisible : true,
		useAutoIndex : false,
		useAutoFilter : true
	},
	{
		title : "Kontonummer",
		titleClass : "", //default for th
		cellClass : "TableText",
		type : "String",
		width : 170, //auto
		alignment : "center",
		compareFunction : compare,
		isVisible : true,
		useAutoIndex : false,
		useAutoFilter : true
	},
	{
		title : "Kontoinhaber",
		titleClass : "", //default for th
		cellClass : "TableText",
		type : "String",
		width : 200,
		alignment : "left",
		compareFunction : compare,
		isVisible : true,
		useAutoIndex : true,
		useAutoFilter : true
	},
	{
		title : "PLZ",
		titleClass : "", //default for th
		cellClass : "TableText",
		type : "String",
		width : 120, //auto
		alignment : "center",
		compareFunction : compare,
		isVisible : true,
		useAutoIndex : true,
		useAutoFilter : true
	},
	{
		title : "Ort",
		titleClass : "", //default for th
		cellClass : "TableText",
		type : "String",
		width : 100, //auto
		alignment : "left",
		compareFunction : compare,
		isVisible : true,
		useAutoIndex : true,
		useAutoFilter : true
	}
	],
	keyCol : "BC-Nr",
	//rowHandler : rowHandler,
	rowStyle : {
		markClass : "hn_tablerow_marked",
		darkClass : "hn_tablerow",
		lightClass : "hn_tablerow",
		hoverClass : "hn_tablerow_hover"
	},
	tableStyle : {
		tableClass : "FunctionTable",
		thClass : "TableFunctionHeader", //cells with controls  && filters &| titles
		border : 0,
		cellpadding : 2,
		cellspacing : 1
	},
	resetSortControl : {
		img : {
			src : "/n/mmr/tcoreference/GiroKontenListe/resetsort/source", width : 16, height : 16, alt : "Reset sort"
		},
		text : ""
	},
	resetSearchControl : {
		img : {
			src : "/n/mmr/tcoreference/GiroKontenListe/resetsearch/source", width : 16, height : 16, alt : "Reset search"
		},
		text : ""
	},
	resetMarkControl : {
		img : {
			src : "/n/mmr/tcoreference/GiroKontenListe/resetmark/source", width : 16, height : 16, alt : "Reset select"
		},
		text : ""
	},
	amountControl : {
		img : { },
		text : "Zeilen: "
	},
	searchControl : {
		img : {
			src : "/n/mmr/tcoreference/GiroKontenListe/search/source", width : 16, height : 16, alt : "Suchen"
		},
		text : "Suchen: "
	},
	imgSortAsc : 	{
		src : "/n/mmr/tcoreference/GiroKontenListe/sortasc/source", width : 10, height : 10
	},
	imgSortDesc : 	{
		src : "/n/mmr/tcoreference/GiroKontenListe/sortdesc/source", width : 10, height : 10
	},
	imgSortAscActive : 	{
		src : "/n/mmr/tcoreference/GiroKontenListe/sortasca/source", width : 10, height : 10
	},
	imgSortDescActive : 	{
		src : "/n/mmr/tcoreference/GiroKontenListe/sortdesca/source", width : 10, height : 10
	},
	imgMultiSortAscActive : 	{
		src : "/n/mmr/tcoreference/GiroKontenListe/sortascma/source", width : 10, height : 10
	},
	imgMultiSortDescActive : 	{
		src : "/n/mmr/tcoreference/GiroKontenListe/sortdescma/source", width : 10, height : 10
	},
	imgFirstPage : {
		src : "/n/mmr/tcoreference/GiroKontenListe/firstpage/source", width : 10, height : 10
	},
	imgLastPage : 	{
		src : "/n/mmr/tcoreference/GiroKontenListe/lastpage/source", width : 10, height : 10
	},
	imgPrevPage : 	{
		src : "/n/mmr/tcoreference/GiroKontenListe/prevpage/source", width : 10, height : 10
	},
	imgNextPage : 	{
		src : "/n/mmr/tcoreference/GiroKontenListe/nextpage/source", width : 10, height : 10
	}
};
