
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_nombre_premio: {
			fillColor: '#90EE90',
			fontSize: 15,
			bold: true
		},
		group_nombre_premio: {
			fillColor: '#90EE90'
		},

		
	blackshade: {
		fontSize: 15,
	},
	summarycell: {
		border:[false, true, false, true ]
	},
/*
		td.blackshade {
		border-bottom:solid #808080 1px; 
	}
	.grouptotalsrow + :not(.grouptotalsrow) > * {
		border-top:solid #808080 1px; 
	}
	*/	
			},
	defaultStyle: {
		fontSize: 14,
	},
	"content": [
		{BEGIN body}
		{BEGIN embedded_grid_caption}
			{
				text: '{$jscaption premios_fecha_Report}',
			},
		{END embedded_grid_caption}
		{BEGIN embedded_page_title}
			{
				text: '{$jspagetitlelabel premios_fecha_Report 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: 4,
							border:[false, false,false,false],
							stack: [

																										
{
	table: {
	
				
		location: 'top',
		
		
		widths: [
								"*", 
					 ],	
		
	
		body: [
				
				[
																{
	cellId: 'c2',
	col:0,
	row:0,
			
		
	//	static colspan/rowspan
		
			
			
	
			"stack": [
		
				
			{"text":"{$jspagetitlelabel premios_fecha_Report 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 nombre_premio_newgroup}
		[
						{
				colSpan: 4,
				text: ['{$jslabel premios_fecha_Report nombre_premio } ', {$nombre_premio_grval}],
				style: 'header_1',
			}
		],

				[
								{
					text: [''],
					style: 'group_1',
				},
																											{
						text: '{$jslabel premios_fecha_Report cantidad }',
						style: 'blackshade'
					},
																			{
						text: '{$jslabel premios_fecha_Report entregado }',
						style: 'blackshade'
					},
																			{
						text: '{$jslabel premios_fecha_Report saldo }',
						style: 'blackshade'
					},
											],
				{END nombre_premio_newgroup}
	
			{BEGIN row_data}
		[
						{
							text: '',
							style: 'group_1',
			},
			
																		{
					text: {$cantidad_value},
					alignment: '{$cantidad_align}',
				},
															{
					text: {$entregado_value},
					alignment: '{$entregado_align}',
				},
															{
					text: {$saldo_value},
					alignment: '{$saldo_align}',
				},
									],
		{END row_data}
	
					{BEGIN nombre_premio_endgroup}

				[
			
						{
				colSpan:4,
				text: ['Resumen de {$jslabel premios_fecha_Report nombre_premio } ', 
					{$nombre_premio_grval},
					' - ', 
					{$groupnombre_premio_total_cnt}, 
					' Registros totales'],
				style: 'group_1',
			},
					],
			
				[
									{
				text: [
				
									'Sum ',
						
				],
							style: 'group_1',
			
						},
									{
				text: [
				
									{$groupnombre_premio_totalcantidad_sum},
						
				],
							style: 'group_1',
			
							alignment: '{$cantidad_align}',
						},
									{
				text: [
				
									{$groupnombre_premio_totalentregado_sum},
						
				],
							style: 'group_1',
			
							alignment: '{$entregado_align}',
						},
									{
				text: [
				
									{$groupnombre_premio_totalsaldo_sum},
						
				],
							style: 'group_1',
			
							alignment: '{$saldo_align}',
						},
					],
		
				[
									{
				text: [
				
									'Media ',
						
				],
				
				style: 'group_1',
			
						
			},
									{
				text: [
				
									{$groupnombre_premio_totalcantidad_avg},
						
				],
				
				style: 'group_1',
			
							alignment: '{$cantidad_align}',
						
			},
									{
				text: [
				
									{$groupnombre_premio_totalentregado_avg},
						
				],
				
				style: 'group_1',
			
							alignment: '{$entregado_align}',
						
			},
									{
				text: [
				
									{$groupnombre_premio_totalsaldo_avg},
						
				],
				
				style: 'group_1',
			
							alignment: '{$saldo_align}',
						
			},
					],
		
		
		
		{END nombre_premio_endgroup}
			
{END grid_row}

		[
								{
				text: '{$jslabel premios_fecha_Report nombre_premio }',
				style: 'blackshade'
			},
																																	{
				text: '{$jslabel premios_fecha_Report cantidad }',
				alignment: '{$cantidad_align}',
				style: 'blackshade'
			},
											{
				text: '{$jslabel premios_fecha_Report entregado }',
				alignment: '{$entregado_align}',
				style: 'blackshade'
			},
											{
				text: '{$jslabel premios_fecha_Report saldo }',
				alignment: '{$saldo_align}',
				style: 'blackshade'
			},
							],







	[
		{	
			text: 'Resumen de la pagina {$page_total_cnt} - Registros totales',
			colSpan: 4,
			style: 'pagesummary',
		}
	],

		[
							{
			text: [
			 
				'Sum ', 
						
							'', 
						],
			style: 'pagesummary',
			
					},
							{
			text: [
						
							{$page_totalcantidad_sum},
						],
			style: 'pagesummary',
			
			 
			alignment: '{$cantidad_align}',
					},
							{
			text: [
						
							{$page_totalentregado_sum},
						],
			style: 'pagesummary',
			
			 
			alignment: '{$entregado_align}',
					},
							{
			text: [
						
							{$page_totalsaldo_sum},
						],
			style: 'pagesummary',
			
			 
			alignment: '{$saldo_align}',
					},
			],
	
		[
							{
			text: [
			 
				'Promedio ', 
			
							'',
						],
			style: 'pagesummary',

					},
							{
			text: [
			
							{$page_totalcantidad_avg},
						],
			style: 'pagesummary',

			 
			alignment: '{$cantidad_align}',
					},
							{
			text: [
			
							{$page_totalentregado_avg},
						],
			style: 'pagesummary',

			 
			alignment: '{$entregado_align}',
					},
							{
			text: [
			
							{$page_totalsaldo_avg},
						],
			style: 'pagesummary',

			 
			alignment: '{$saldo_align}',
					},
			],
	
	
	


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

		[
							{
			text: [
							'Sum ',
			
							'',
						],
			style: 'globalsummary',

					},
							{
			text: [
			
							{$global_totalcantidad_sum},
						],
			style: 'globalsummary',

			 
			alignment: '{$cantidad_align}',
					},
							{
			text: [
			
							{$global_totalentregado_sum},
						],
			style: 'globalsummary',

			 
			alignment: '{$entregado_align}',
					},
							{
			text: [
			
							{$global_totalsaldo_sum},
						],
			style: 'globalsummary',

			 
			alignment: '{$saldo_align}',
					},
			],
	
		[
							{
			text: [
							'Promedio ',
			
							'',
						],
			style: 'globalsummary',

					},
							{
			text: [
			
							{$global_totalcantidad_avg},
						],
			style: 'globalsummary',

			 
			alignment: '{$cantidad_align}',
					},
							{
			text: [
			
							{$global_totalentregado_avg},
						],
			style: 'globalsummary',

			 
			alignment: '{$entregado_align}',
					},
							{
			text: [
			
							{$global_totalsaldo_avg},
						],
			style: 'globalsummary',

			 
			alignment: '{$saldo_align}',
					},
			],
	
	
	
{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};
