
pdfDocument = {
{BEGIN backgroundImage}
	background: {
		image: {$backgroundImage},
		{BEGIN bgWidth}
		imgWidth: {$bgWidth},
		imgHeight: {$bgHeight},
		{END bgWidth}
	},
{END backgroundImage}
	styles: {
				bodycell: {
			fontSize:12,
		},
		headcell: {
			fontSize:12,
			bold: true
		},

	
						pagesummary: {
		fillColor: '#ffffbb',
	},
	globalsummary: {
		fillColor: '#ffe0b0',
	},
			group_1: {
			fillColor: '#90EE90'
		},
		nbgroup_1: {
			fillColor: '#90EE90'
		},
		header_1: {
			fillColor: '#90EE90',
			fontSize: 15,
			bold: true
		},
		/* new style styles */
		header_placa: {
			fillColor: '#90EE90',
			fontSize: 15,
			bold: true
		},
		group_placa: {
			fillColor: '#90EE90'
		},

			group_2: {
			fillColor: '#ADD8E6'
		},
		nbgroup_2: {
			fillColor: '#ADD8E6'
		},
		header_2: {
			fillColor: '#ADD8E6',
			fontSize: 15,
			bold: true
		},
		/* new style styles */
		header_Action: {
			fillColor: '#ADD8E6',
			fontSize: 15,
			bold: true
		},
		group_Action: {
			fillColor: '#ADD8E6'
		},

		
	blackshade: {
		fontSize: 15,
	},
	summarycell: {
		border:[false, true, false, true ]
	},
/*
		.grouptotalsrow + :not(.grouptotalsrow) > * {
		border-top:solid #808080 1px; 
	}
	*/	
			},
	defaultStyle: {
		fontSize: 14,
	},
	"content": [
		{BEGIN body}
		{BEGIN embedded_grid_caption}
			{
				text: '{$jscaption Reporte_Ganador_Log}',
			},
		{END embedded_grid_caption}
		{BEGIN embedded_page_title}
			{
				text: '{$jspagetitlelabel Reporte_Ganador_Log rprint}',
			},
		{END embedded_page_title}		
		{ 
			{BEGIN standalone_page}
			pageBreak: 'before',
			standAlonePage: true,
			{END standalone_page}
			{BEGIN embedded_grid}
			embeddedPage: true,
			{END embedded_grid}
			layout: {
				hLineWidth: function(i, node) { return 0.1; },
				vLineWidth: function(i, node) { 
					return 0.1; 
				},
				hLineColor: function(i, node) { return 'lightgray'; },
				vLineColor: function(i, node) { return 'lightgray'; },
			},
			table: {
				{BEGIN embedded_grid}
				embeddedPage: true,
				{END embedded_grid}
				
				tableForm: true,
				headerRows: 1 
								{BEGIN embedded_grid} -1 {END embedded_grid} ,

				widths: [
														"%",
										"%",
										"%",
										"%",
										"%",
										"%",
										"%",
										"%",
										"%",
															],
							
				body: [
				{BEGIN standalone_page}
					[
						{
							colSpan: 9,
							border:[false, false,false,false],
							stack: [

																										
{
	table: {
	
				
		location: 'top',
		
		
		widths: [
								"*", 
					 ],	
		
	
		body: [
				
				[
																{
	cellId: 'c2',
	col:0,
	row:0,
			
		
	//	static colspan/rowspan
		
			
			
	
			"stack": [
		
				
			{"text":"{$jspagetitlelabel Reporte_Ganador_Log rprint}","hidden":"{$item_hide_print_header}","fontSize":30},
				
				
			{"text":"{$printtabheader_text}","hidden":"{$item_hide_print_subheader}"},
				
		  ],
  "border": [ false, false, false, false ],
              "alignment": 'left',
     
      
      },

											],
		
		]
	}
}
,
								
																										
{
	table: {
	
				
		location: 'above-grid',
		
		
		widths: [
								"*", 
					 ],	
		
	
		body: [
				
				[
																{
	cellId: 'c1',
	col:0,
	row:0,
			
		
	//	static colspan/rowspan
		
			
			
	
			"text": [
		
				
			{"text":"Página %current% / %total%","hidden":"{$item_hide_print_pages}","isHtml":true,"page_indicator":true},
				
		  ],
  "border": [ false, false, false, false ],
              "alignment": 'left',
     
      
      },

											],
		
		]
	}
}
,
															]
						},
					],
				{END standalone_page}

																


{BEGIN grid_row}
	{BEGIN placa_firstnewgroup}
		[
								{
				text: '{$jslabel Reporte_Ganador_Log placa }',
				style: 'blackshade',
				alignment: '{$placa_align}',
			},
											{
				text: '{$jslabel Reporte_Ganador_Log Action }',
				style: 'blackshade',
				alignment: '{$Action_align}',
			},
																																								
																		{
				text: '{$jslabel Reporte_Ganador_Log id }',
				style: 'blackshade',
				alignment: '{$id_align}',
			},
											{
				text: '{$jslabel Reporte_Ganador_Log Fecha }',
				style: 'blackshade',
				alignment: '{$Fecha_align}',
			},
											{
				text: '{$jslabel Reporte_Ganador_Log ci }',
				style: 'blackshade',
				alignment: '{$ci_align}',
			},
											{
				text: '{$jslabel Reporte_Ganador_Log Ganador }',
				style: 'blackshade',
				alignment: '{$Ganador_align}',
			},
											{
				text: '{$jslabel Reporte_Ganador_Log Detalle }',
				style: 'blackshade',
				alignment: '{$Detalle_align}',
			},
											{
				text: '{$jslabel Reporte_Ganador_Log Responsable }',
				style: 'blackshade',
				alignment: '{$Responsable_align}',
			},
											{
				text: '{$jslabel Reporte_Ganador_Log ip }',
				style: 'blackshade',
				alignment: '{$ip_align}',
			},
						],
		
	[
								{
				stack: [
					{$placa_value},
									],
				style: "header_1"
			},
					
											{
				stack: [
					{$Action_value},
									],
				style: "header_2"
			},
					
							
																		{
				text: [
										{$id_value}
									],
				alignment: '{$id_align}',
			},
											{
				text: [
										{$Fecha_value}
									],
				alignment: '{$Fecha_align}',
			},
											{
				text: [
										{$ci_value}
									],
				alignment: '{$ci_align}',
			},
											{
				text: [
										{$Ganador_value}
									],
				alignment: '{$Ganador_align}',
			},
											{
				text: [
										{$Detalle_value}
									],
				alignment: '{$Detalle_align}',
			},
											{
				text: [
										{$Responsable_value}
									],
				alignment: '{$Responsable_align}',
			},
											{
				text: [
										{$ip_value}
									],
				alignment: '{$ip_align}',
			},
					
	],
	{END placa_firstnewgroup}
	{BEGIN Action_firstnewgroup}
		
	[
								{
				text: [
											''
									],
				style: "group_1"
			},

											{
				stack: [
					{$Action_value},
									],
				style: "header_2"
			},
					
							
																		{
				text: [
										{$id_value}
									],
				alignment: '{$id_align}',
			},
											{
				text: [
										{$Fecha_value}
									],
				alignment: '{$Fecha_align}',
			},
											{
				text: [
										{$ci_value}
									],
				alignment: '{$ci_align}',
			},
											{
				text: [
										{$Ganador_value}
									],
				alignment: '{$Ganador_align}',
			},
											{
				text: [
										{$Detalle_value}
									],
				alignment: '{$Detalle_align}',
			},
											{
				text: [
										{$Responsable_value}
									],
				alignment: '{$Responsable_align}',
			},
											{
				text: [
										{$ip_value}
									],
				alignment: '{$ip_align}',
			},
					
	],
	{END Action_firstnewgroup}

{BEGIN nonewgroup}
	[
				{
						text: '',
						style: 'group_1',
		},
				{
						text: '',
						style: 'group_2',
		},
		
																		{
				text: {$id_value},
				alignment: '{$id_align}',
			},
											{
				text: {$Fecha_value},
				alignment: '{$Fecha_align}',
			},
											{
				text: {$ci_value},
				alignment: '{$ci_align}',
			},
											{
				text: {$Ganador_value},
				alignment: '{$Ganador_align}',
			},
											{
				text: {$Detalle_value},
				alignment: '{$Detalle_align}',
			},
											{
				text: {$Responsable_value},
				alignment: '{$Responsable_align}',
			},
											{
				text: {$ip_value},
				alignment: '{$ip_align}',
			},
						],
{END nonewgroup}


			{BEGIN Action_endgroup}

				[
											{
					text: [''],
					style: 'group_1',
				},
							
																		{
					text: ['Resumen de {$jslabel Reporte_Ganador_Log Action } ', 
						{$Action_grval},
						' - ', 
						{$groupAction_total_cnt}, 
						' Registros totales'
					],
					style: 'group_2',
					colSpan: 8				},
																																																										],
		
		
		
		
			

		{END Action_endgroup}
	
			{BEGIN placa_endgroup}

				[
			
											{
					text: ['Resumen de {$jslabel Reporte_Ganador_Log placa } ', 
						{$placa_grval},
						' - ', 
						{$groupplaca_total_cnt}, 
						' Registros totales'
					],
					style: 'group_1',
					colSpan: 9				},
																																																																	],
		
		
		
		
			

		{END placa_endgroup}
	
{END grid_row}



		[
						{
				text: '{$jslabel Reporte_Ganador_Log placa }',
				alignment: '{$placa_align}',
				style: 'blackshade'
			},
						{
				text: '{$jslabel Reporte_Ganador_Log Action }',
				alignment: '{$Action_align}',
				style: 'blackshade'
			},
						{
				text: '{$jslabel Reporte_Ganador_Log id }',
				alignment: '{$id_align}',
				style: 'blackshade'
			},
						{
				text: '{$jslabel Reporte_Ganador_Log Fecha }',
				alignment: '{$Fecha_align}',
				style: 'blackshade'
			},
						{
				text: '{$jslabel Reporte_Ganador_Log ci }',
				alignment: '{$ci_align}',
				style: 'blackshade'
			},
						{
				text: '{$jslabel Reporte_Ganador_Log Ganador }',
				alignment: '{$Ganador_align}',
				style: 'blackshade'
			},
						{
				text: '{$jslabel Reporte_Ganador_Log Detalle }',
				alignment: '{$Detalle_align}',
				style: 'blackshade'
			},
						{
				text: '{$jslabel Reporte_Ganador_Log Responsable }',
				alignment: '{$Responsable_align}',
				style: 'blackshade'
			},
						{
				text: '{$jslabel Reporte_Ganador_Log ip }',
				alignment: '{$ip_align}',
				style: 'blackshade'
			},
					],










{BEGIN global_summary}
	[
		{
			text: 'Resumen global {$global_total_cnt} - Registros totales',
			colSpan: 9,
			style: 'globalsummary',
		}
	],

	
	
	
	
{END global_summary}
									]
			
			}
		},
		{END body}
	],
	footer: [
								
{
	table: {
	
				
		location: 'below-grid',
		
		
		widths: [
								"*", 
					 ],	
		
	
		body: [
				
				[
																{
	cellId: 'c1',
	col:0,
	row:0,
			
		
	//	static colspan/rowspan
		
			
			
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
              "alignment": 'left',
     
      
      },

											],
		
		]
	}
}
			],
	};


pdfFonts = {$pdfFonts};
