<?php
global $runnerTableSettings;
$runnerTableSettings['vw_production_plan_for_work_order'] = array(
	'name' => 'vw_production_plan_for_work_order',
	'shortName' => 'vw_production_plan_for_work_order',
	'pagesByType' => array(
		'list' => array( 
			'list' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'list' => 'list',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'list' => 'list',
		'search' => 'search' 
	),
	'afterEditDetails' => 'vw_production_plan_for_work_order',
	'afterAddDetail' => 'vw_production_plan_for_work_order',
	'detailsBadgeColor' => '4682b4',
	'strOrderBy' => 'order by 	production_plan_id desc',
	'orderInfo' => array( 
		array(
			'index' => 1,
			'dir' => 'DESC',
			'field' => 'production_plan_id' 
		) 
	),
	'sql' => 'SELECT
	production_plan_id,
	production_plan_no,
	plan_date,
	period_from,
	period_to,
	warehouse_id,
	warehouse_code,
	warehouse_name,
	production_area,
	shift_code,
	production_plan_status,
	production_plan_detail_id,
	schedule_date,
	finished_good_id,
	finished_good_sku,
	finished_good_name,
	finished_good_description,
	work_description,
	production_line,
	production_qty,
	uom,
	priority_no,
	notes,
	existing_work_order_id,
	existing_work_order_no,
	work_order_status
FROM
	vw_production_plan_for_work_order
	
	order by 	production_plan_id desc',
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'production_plan_id' => array(
			'name' => 'production_plan_id',
			'goodName' => 'production_plan_id',
			'strField' => 'production_plan_id',
			'index' => 1,
			'type' => 3,
			'sqlExpression' => 'production_plan_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'production_plan_no' => array(
			'name' => 'production_plan_no',
			'goodName' => 'production_plan_no',
			'strField' => 'production_plan_no',
			'index' => 2,
			'sqlExpression' => 'production_plan_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'plan_date' => array(
			'name' => 'plan_date',
			'goodName' => 'plan_date',
			'strField' => 'plan_date',
			'index' => 3,
			'type' => 7,
			'sqlExpression' => 'plan_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'period_from' => array(
			'name' => 'period_from',
			'goodName' => 'period_from',
			'strField' => 'period_from',
			'index' => 4,
			'type' => 7,
			'sqlExpression' => 'period_from',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'period_to' => array(
			'name' => 'period_to',
			'goodName' => 'period_to',
			'strField' => 'period_to',
			'index' => 5,
			'type' => 7,
			'sqlExpression' => 'period_to',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'warehouse_id' => array(
			'name' => 'warehouse_id',
			'goodName' => 'warehouse_id',
			'strField' => 'warehouse_id',
			'index' => 6,
			'type' => 3,
			'sqlExpression' => 'warehouse_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'warehouse_code' => array(
			'name' => 'warehouse_code',
			'goodName' => 'warehouse_code',
			'strField' => 'warehouse_code',
			'index' => 7,
			'sqlExpression' => 'warehouse_code',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'warehouse_name' => array(
			'name' => 'warehouse_name',
			'goodName' => 'warehouse_name',
			'strField' => 'warehouse_name',
			'index' => 8,
			'sqlExpression' => 'warehouse_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'production_area' => array(
			'name' => 'production_area',
			'goodName' => 'production_area',
			'strField' => 'production_area',
			'index' => 9,
			'sqlExpression' => 'production_area',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'shift_code' => array(
			'name' => 'shift_code',
			'goodName' => 'shift_code',
			'strField' => 'shift_code',
			'index' => 10,
			'sqlExpression' => 'shift_code',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'production_plan_status' => array(
			'name' => 'production_plan_status',
			'goodName' => 'production_plan_status',
			'strField' => 'production_plan_status',
			'index' => 11,
			'sqlExpression' => 'production_plan_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'production_plan_detail_id' => array(
			'name' => 'production_plan_detail_id',
			'goodName' => 'production_plan_detail_id',
			'strField' => 'production_plan_detail_id',
			'index' => 12,
			'type' => 3,
			'sqlExpression' => 'production_plan_detail_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'schedule_date' => array(
			'name' => 'schedule_date',
			'goodName' => 'schedule_date',
			'strField' => 'schedule_date',
			'index' => 13,
			'type' => 7,
			'sqlExpression' => 'schedule_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'finished_good_id' => array(
			'name' => 'finished_good_id',
			'goodName' => 'finished_good_id',
			'strField' => 'finished_good_id',
			'index' => 14,
			'type' => 3,
			'sqlExpression' => 'finished_good_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'finished_good_sku' => array(
			'name' => 'finished_good_sku',
			'goodName' => 'finished_good_sku',
			'strField' => 'finished_good_sku',
			'index' => 15,
			'sqlExpression' => 'finished_good_sku',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'finished_good_name' => array(
			'name' => 'finished_good_name',
			'goodName' => 'finished_good_name',
			'strField' => 'finished_good_name',
			'index' => 16,
			'sqlExpression' => 'finished_good_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'finished_good_description' => array(
			'name' => 'finished_good_description',
			'goodName' => 'finished_good_description',
			'strField' => 'finished_good_description',
			'index' => 17,
			'sqlExpression' => 'finished_good_description',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'work_description' => array(
			'name' => 'work_description',
			'goodName' => 'work_description',
			'strField' => 'work_description',
			'index' => 18,
			'sqlExpression' => 'work_description',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'production_line' => array(
			'name' => 'production_line',
			'goodName' => 'production_line',
			'strField' => 'production_line',
			'index' => 19,
			'sqlExpression' => 'production_line',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'production_qty' => array(
			'name' => 'production_qty',
			'goodName' => 'production_qty',
			'strField' => 'production_qty',
			'index' => 20,
			'type' => 14,
			'sqlExpression' => 'production_qty',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'uom' => array(
			'name' => 'uom',
			'goodName' => 'uom',
			'strField' => 'uom',
			'index' => 21,
			'sqlExpression' => 'uom',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'priority_no' => array(
			'name' => 'priority_no',
			'goodName' => 'priority_no',
			'strField' => 'priority_no',
			'index' => 22,
			'type' => 3,
			'sqlExpression' => 'priority_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'notes' => array(
			'name' => 'notes',
			'goodName' => 'notes',
			'strField' => 'notes',
			'index' => 23,
			'type' => 201,
			'sqlExpression' => 'notes',
			'viewFormats' => array(
				'view' => array(
					'textShowFirstN' => 50 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'existing_work_order_id' => array(
			'name' => 'existing_work_order_id',
			'goodName' => 'existing_work_order_id',
			'strField' => 'existing_work_order_id',
			'index' => 24,
			'type' => 3,
			'sqlExpression' => 'existing_work_order_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'existing_work_order_no' => array(
			'name' => 'existing_work_order_no',
			'goodName' => 'existing_work_order_no',
			'strField' => 'existing_work_order_no',
			'index' => 25,
			'sqlExpression' => 'existing_work_order_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		),
		'work_order_status' => array(
			'name' => 'work_order_status',
			'goodName' => 'work_order_status',
			'strField' => 'work_order_status',
			'index' => 26,
			'sqlExpression' => 'work_order_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_production_plan_for_work_order' 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	production_plan_id,
	production_plan_no,
	plan_date,
	period_from,
	period_to,
	warehouse_id,
	warehouse_code,
	warehouse_name,
	production_area,
	shift_code,
	production_plan_status,
	production_plan_detail_id,
	schedule_date,
	finished_good_id,
	finished_good_sku,
	finished_good_name,
	finished_good_description,
	work_description,
	production_line,
	production_qty,
	uom,
	priority_no,
	notes,
	existing_work_order_id,
	existing_work_order_no,
	work_order_status
FROM
	vw_production_plan_for_work_order
	
	order by 	production_plan_id desc',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'production_plan_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'production_plan_id' 
				),
				'encrypted' => false,
				'columnName' => 'production_plan_id' 
			),
			array(
				'sql' => 'production_plan_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'production_plan_no' 
				),
				'encrypted' => false,
				'columnName' => 'production_plan_no' 
			),
			array(
				'sql' => 'plan_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'plan_date' 
				),
				'encrypted' => false,
				'columnName' => 'plan_date' 
			),
			array(
				'sql' => 'period_from',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'period_from' 
				),
				'encrypted' => false,
				'columnName' => 'period_from' 
			),
			array(
				'sql' => 'period_to',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'period_to' 
				),
				'encrypted' => false,
				'columnName' => 'period_to' 
			),
			array(
				'sql' => 'warehouse_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'warehouse_id' 
				),
				'encrypted' => false,
				'columnName' => 'warehouse_id' 
			),
			array(
				'sql' => 'warehouse_code',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'warehouse_code' 
				),
				'encrypted' => false,
				'columnName' => 'warehouse_code' 
			),
			array(
				'sql' => 'warehouse_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'warehouse_name' 
				),
				'encrypted' => false,
				'columnName' => 'warehouse_name' 
			),
			array(
				'sql' => 'production_area',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'production_area' 
				),
				'encrypted' => false,
				'columnName' => 'production_area' 
			),
			array(
				'sql' => 'shift_code',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'shift_code' 
				),
				'encrypted' => false,
				'columnName' => 'shift_code' 
			),
			array(
				'sql' => 'production_plan_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'production_plan_status' 
				),
				'encrypted' => false,
				'columnName' => 'production_plan_status' 
			),
			array(
				'sql' => 'production_plan_detail_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'production_plan_detail_id' 
				),
				'encrypted' => false,
				'columnName' => 'production_plan_detail_id' 
			),
			array(
				'sql' => 'schedule_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'schedule_date' 
				),
				'encrypted' => false,
				'columnName' => 'schedule_date' 
			),
			array(
				'sql' => 'finished_good_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'finished_good_id' 
				),
				'encrypted' => false,
				'columnName' => 'finished_good_id' 
			),
			array(
				'sql' => 'finished_good_sku',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'finished_good_sku' 
				),
				'encrypted' => false,
				'columnName' => 'finished_good_sku' 
			),
			array(
				'sql' => 'finished_good_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'finished_good_name' 
				),
				'encrypted' => false,
				'columnName' => 'finished_good_name' 
			),
			array(
				'sql' => 'finished_good_description',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'finished_good_description' 
				),
				'encrypted' => false,
				'columnName' => 'finished_good_description' 
			),
			array(
				'sql' => 'work_description',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'work_description' 
				),
				'encrypted' => false,
				'columnName' => 'work_description' 
			),
			array(
				'sql' => 'production_line',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'production_line' 
				),
				'encrypted' => false,
				'columnName' => 'production_line' 
			),
			array(
				'sql' => 'production_qty',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'production_qty' 
				),
				'encrypted' => false,
				'columnName' => 'production_qty' 
			),
			array(
				'sql' => 'uom',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'uom' 
				),
				'encrypted' => false,
				'columnName' => 'uom' 
			),
			array(
				'sql' => 'priority_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'priority_no' 
				),
				'encrypted' => false,
				'columnName' => 'priority_no' 
			),
			array(
				'sql' => 'notes',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'notes' 
				),
				'encrypted' => false,
				'columnName' => 'notes' 
			),
			array(
				'sql' => 'existing_work_order_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'existing_work_order_id' 
				),
				'encrypted' => false,
				'columnName' => 'existing_work_order_id' 
			),
			array(
				'sql' => 'existing_work_order_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'existing_work_order_no' 
				),
				'encrypted' => false,
				'columnName' => 'existing_work_order_no' 
			),
			array(
				'sql' => 'work_order_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'work_order_status' 
				),
				'encrypted' => false,
				'columnName' => 'work_order_status' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'vw_production_plan_for_work_order',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'vw_production_plan_for_work_order',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'production_plan_id',
						'production_plan_no',
						'plan_date',
						'period_from',
						'period_to',
						'warehouse_id',
						'warehouse_code',
						'warehouse_name',
						'production_area',
						'shift_code',
						'production_plan_status',
						'production_plan_detail_id',
						'schedule_date',
						'finished_good_id',
						'finished_good_sku',
						'finished_good_name',
						'finished_good_description',
						'work_description',
						'production_line',
						'production_qty',
						'uom',
						'priority_no',
						'notes',
						'existing_work_order_id',
						'existing_work_order_no',
						'work_order_status' 
					),
					'name' => 'vw_production_plan_for_work_order' 
				),
				'joinOn' => array(
					'sql' => '',
					'parsed' => false,
					'type' => 'LogicalExpression',
					'contained' => array( 
						 
					),
					'unionType' => 0,
					'column' => null 
				),
				'joinList' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'JoinOn',
					'field1' => array( 
						 
					),
					'field2' => array( 
						 
					) 
				),
				'link' => 0 
			) 
		),
		'where' => array(
			'sql' => '',
			'parsed' => false,
			'type' => 'LogicalExpression',
			'contained' => array( 
				 
			),
			'unionType' => 0,
			'column' => null 
		),
		'groupBy' => array( 
			 
		),
		'having' => array(
			'sql' => '',
			'parsed' => false,
			'type' => 'LogicalExpression',
			'contained' => array( 
				 
			),
			'unionType' => 0,
			'column' => null 
		),
		'orderBy' => array( 
			array(
				'sql' => 'production_plan_id desc',
				'parsed' => true,
				'type' => 'OrderByListItem',
				'column' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_production_plan_for_work_order',
					'name' => 'production_plan_id' 
				),
				'asc' => false,
				'columnNumber' => 1 
			) 
		),
		'colsIndex' => array( 
			array(
				'fieldIndex' => 0,
				'orderByIndex' => 0,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 1,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 2,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 3,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 4,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 5,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 6,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 7,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 8,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 9,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 10,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 11,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 12,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 13,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 14,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 15,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 16,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 17,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 18,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 19,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 20,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 21,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 22,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 23,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 24,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 25,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'production_plan_id,
	production_plan_no,
	plan_date,
	period_from,
	period_to,
	warehouse_id,
	warehouse_code,
	warehouse_name,
	production_area,
	shift_code,
	production_plan_status,
	production_plan_detail_id,
	schedule_date,
	finished_good_id,
	finished_good_sku,
	finished_good_name,
	finished_good_description,
	work_description,
	production_line,
	production_qty,
	uom,
	priority_no,
	notes,
	existing_work_order_id,
	existing_work_order_no,
	work_order_status',
		'fromListSql' => 'FROM
	vw_production_plan_for_work_order',
		'orderBySql' => 'order by 	production_plan_id desc',
		'tailSql' => '' 
	),
	'hasJsEvents' => true,
	'originalTable' => 'vw_production_plan_for_work_order',
	'originalPagesByType' => array(
		'list' => array( 
			'list' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'list' => 'list',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'list' => 'list',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'production_plan_id',
			'production_plan_no',
			'plan_date',
			'period_from',
			'period_to',
			'warehouse_id',
			'warehouse_code',
			'warehouse_name',
			'production_area',
			'shift_code',
			'production_plan_status',
			'production_plan_detail_id',
			'schedule_date',
			'finished_good_id',
			'finished_good_sku',
			'finished_good_name',
			'finished_good_description',
			'work_description',
			'production_line',
			'production_qty',
			'uom',
			'priority_no',
			'notes',
			'existing_work_order_id',
			'existing_work_order_no',
			'work_order_status' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'production_plan_id',
			'production_plan_no',
			'plan_date',
			'period_from',
			'period_to',
			'warehouse_id',
			'warehouse_code',
			'warehouse_name',
			'production_area',
			'shift_code',
			'production_plan_status',
			'production_plan_detail_id',
			'schedule_date',
			'finished_good_id',
			'finished_good_sku',
			'finished_good_name',
			'finished_good_description',
			'work_description',
			'production_line',
			'production_qty',
			'uom',
			'priority_no',
			'notes',
			'existing_work_order_id',
			'existing_work_order_no',
			'work_order_status' 
		) 
	),
	'connId' => 'conn',
	'clickActions' => array(
		'row' => array(
			'action' => 'noaction' 
		),
		'fields' => array(
			 
		) 
	),
	'geoCoding' => array(
		'enabled' => false,
		'latField' => '',
		'lonField' => '',
		'addressFields' => array( 
			 
		) 
	),
	'whereTabs' => array( 
		 
	),
	'labels' => array(
		 
	),
	'chartSettings' => array(
		 
	),
	'dataSourceOperations' => array(
		 
	),
	'calendarSettings' => array(
		'categoryColors' => array( 
			 
		) 
	),
	'ganttSettings' => array(
		'categoryColors' => array( 
			 
		) 
	) 
);

global $runnerTableLabels;
if( mlang_getcurrentlang() === 'English' ) {
	$runnerTableLabels['vw_production_plan_for_work_order'] = array(
	'tableCaption' => 'View Production Plan For Work Order',
	'fieldLabels' => array(
		'production_plan_id' => 'Production Plan ID',
		'production_plan_no' => 'Production Plan No.',
		'plan_date' => 'Plan Date',
		'period_from' => 'Period From',
		'period_to' => 'Period To',
		'warehouse_id' => 'Warehouse ID',
		'warehouse_code' => 'Warehouse Code',
		'warehouse_name' => 'Warehouse Name',
		'production_area' => 'Production Area',
		'shift_code' => 'Shift Code',
		'production_plan_status' => 'Production Plan Status',
		'production_plan_detail_id' => 'Production Plan Detail ID',
		'schedule_date' => 'Schedule Date',
		'finished_good_id' => 'Finished Good ID',
		'finished_good_sku' => 'Finished Good SKU',
		'finished_good_name' => 'Finished Good Name',
		'finished_good_description' => 'Finished Good Description',
		'work_description' => 'Work Description',
		'production_line' => 'Production Line',
		'production_qty' => 'Production Qty',
		'uom' => 'UOM',
		'priority_no' => 'Priority No.',
		'notes' => 'Notes',
		'existing_work_order_id' => 'Existing Work Order ID',
		'existing_work_order_no' => 'Existing Work Order No.',
		'work_order_status' => 'Work Order Status' 
	),
	'fieldTooltips' => array(
		'production_plan_id' => '',
		'production_plan_no' => '',
		'plan_date' => '',
		'period_from' => '',
		'period_to' => '',
		'warehouse_id' => '',
		'warehouse_code' => '',
		'warehouse_name' => '',
		'production_area' => '',
		'shift_code' => '',
		'production_plan_status' => '',
		'production_plan_detail_id' => '',
		'schedule_date' => '',
		'finished_good_id' => '',
		'finished_good_sku' => '',
		'finished_good_name' => '',
		'finished_good_description' => '',
		'work_description' => '',
		'production_line' => '',
		'production_qty' => '',
		'uom' => '',
		'priority_no' => '',
		'notes' => '',
		'existing_work_order_id' => '',
		'existing_work_order_no' => '',
		'work_order_status' => '' 
	),
	'fieldPlaceholders' => array(
		'production_plan_id' => '',
		'production_plan_no' => '',
		'plan_date' => '',
		'period_from' => '',
		'period_to' => '',
		'warehouse_id' => '',
		'warehouse_code' => '',
		'warehouse_name' => '',
		'production_area' => '',
		'shift_code' => '',
		'production_plan_status' => '',
		'production_plan_detail_id' => '',
		'schedule_date' => '',
		'finished_good_id' => '',
		'finished_good_sku' => '',
		'finished_good_name' => '',
		'finished_good_description' => '',
		'work_description' => '',
		'production_line' => '',
		'production_qty' => '',
		'uom' => '',
		'priority_no' => '',
		'notes' => '',
		'existing_work_order_id' => '',
		'existing_work_order_no' => '',
		'work_order_status' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>