<?php
global $runnerTableSettings;
$runnerTableSettings['workforce_assignment_place'] = array(
	'name' => 'workforce_assignment_place',
	'shortName' => 'workforce_assignment_place',
	'pagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'masterlist' => array( 
			'masterlist' 
		),
		'masterprint' => array( 
			'masterprint' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'afterEditDetails' => 'workforce_assignment_place',
	'afterAddDetail' => 'workforce_assignment_place',
	'detailsBadgeColor' => 'cd853f',
	'strOrderBy' => 'ORDER BY
    sort_order ASC,
    place_name ASC',
	'orderInfo' => array( 
		array(
			'index' => 7,
			'dir' => 'ASC',
			'field' => 'sort_order' 
		),
		array(
			'index' => 4,
			'dir' => 'ASC',
			'field' => 'place_name' 
		) 
	),
	'sql' => 'SELECT
    id,
    mother_facility_id,
    place_code,
    place_name,
    complete_address,
    is_active,
    sort_order,
    created_by,
    createdAt,
    updated_by,
    updatedAt
FROM workforce_assignment_place
ORDER BY
    sort_order ASC,
    place_name ASC;',
	'keyFields' => array( 
		'id' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'id' => array(
			'name' => 'id',
			'goodName' => 'id',
			'strField' => 'id',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'workforce_assignment_place' 
		),
		'mother_facility_id' => array(
			'name' => 'mother_facility_id',
			'goodName' => 'mother_facility_id',
			'strField' => 'mother_facility_id',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'mother_facility_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'mother_facility',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'facility_code' 
				) 
			),
			'tableName' => 'workforce_assignment_place',
			'viewLinkTable' => 'mother_facility',
			'viewLinkLookup' => true 
		),
		'place_code' => array(
			'name' => 'place_code',
			'goodName' => 'place_code',
			'strField' => 'place_code',
			'index' => 3,
			'sqlExpression' => 'place_code',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'workforce_assignment_place' 
		),
		'place_name' => array(
			'name' => 'place_name',
			'goodName' => 'place_name',
			'strField' => 'place_name',
			'index' => 4,
			'sqlExpression' => 'place_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'workforce_assignment_place' 
		),
		'complete_address' => array(
			'name' => 'complete_address',
			'goodName' => 'complete_address',
			'strField' => 'complete_address',
			'index' => 5,
			'sqlExpression' => 'complete_address',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'workforce_assignment_place' 
		),
		'is_active' => array(
			'name' => 'is_active',
			'goodName' => 'is_active',
			'strField' => 'is_active',
			'index' => 6,
			'type' => 2,
			'sqlExpression' => 'is_active',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'workforce_assignment_place' 
		),
		'sort_order' => array(
			'name' => 'sort_order',
			'goodName' => 'sort_order',
			'strField' => 'sort_order',
			'index' => 7,
			'type' => 3,
			'sqlExpression' => 'sort_order',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'workforce_assignment_place' 
		),
		'created_by' => array(
			'name' => 'created_by',
			'goodName' => 'created_by',
			'strField' => 'created_by',
			'index' => 8,
			'sqlExpression' => 'created_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'workforce_assignment_place' 
		),
		'createdAt' => array(
			'name' => 'createdAt',
			'goodName' => 'createdAt',
			'strField' => 'createdAt',
			'index' => 9,
			'type' => 135,
			'sqlExpression' => 'createdAt',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'workforce_assignment_place' 
		),
		'updated_by' => array(
			'name' => 'updated_by',
			'goodName' => 'updated_by',
			'strField' => 'updated_by',
			'index' => 10,
			'sqlExpression' => 'updated_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'workforce_assignment_place' 
		),
		'updatedAt' => array(
			'name' => 'updatedAt',
			'goodName' => 'updatedAt',
			'strField' => 'updatedAt',
			'index' => 11,
			'type' => 135,
			'sqlExpression' => 'updatedAt',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'workforce_assignment_place' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'Generate_Production_Forcast_by_mother_facility',
			'detailsKeys' => array( 
				'mother_facility_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		),
		array(
			'table' => 'mother_facility',
			'detailsKeys' => array( 
				'mother_facility_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'detailsTables' => array( 
		'external_workforce_requisition_detail' 
	),
	'query' => array(
		'sql' => 'SELECT
    id,
    mother_facility_id,
    place_code,
    place_name,
    complete_address,
    is_active,
    sort_order,
    created_by,
    createdAt,
    updated_by,
    updatedAt
FROM workforce_assignment_place
ORDER BY
    sort_order ASC,
    place_name ASC;',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'workforce_assignment_place',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'mother_facility_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'workforce_assignment_place',
					'name' => 'mother_facility_id' 
				),
				'encrypted' => false,
				'columnName' => 'mother_facility_id' 
			),
			array(
				'sql' => 'place_code',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'workforce_assignment_place',
					'name' => 'place_code' 
				),
				'encrypted' => false,
				'columnName' => 'place_code' 
			),
			array(
				'sql' => 'place_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'workforce_assignment_place',
					'name' => 'place_name' 
				),
				'encrypted' => false,
				'columnName' => 'place_name' 
			),
			array(
				'sql' => 'complete_address',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'workforce_assignment_place',
					'name' => 'complete_address' 
				),
				'encrypted' => false,
				'columnName' => 'complete_address' 
			),
			array(
				'sql' => 'is_active',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'workforce_assignment_place',
					'name' => 'is_active' 
				),
				'encrypted' => false,
				'columnName' => 'is_active' 
			),
			array(
				'sql' => 'sort_order',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'workforce_assignment_place',
					'name' => 'sort_order' 
				),
				'encrypted' => false,
				'columnName' => 'sort_order' 
			),
			array(
				'sql' => 'created_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'workforce_assignment_place',
					'name' => 'created_by' 
				),
				'encrypted' => false,
				'columnName' => 'created_by' 
			),
			array(
				'sql' => 'createdAt',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'workforce_assignment_place',
					'name' => 'createdAt' 
				),
				'encrypted' => false,
				'columnName' => 'createdAt' 
			),
			array(
				'sql' => 'updated_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'workforce_assignment_place',
					'name' => 'updated_by' 
				),
				'encrypted' => false,
				'columnName' => 'updated_by' 
			),
			array(
				'sql' => 'updatedAt',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'workforce_assignment_place',
					'name' => 'updatedAt' 
				),
				'encrypted' => false,
				'columnName' => 'updatedAt' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'workforce_assignment_place',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'workforce_assignment_place',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'mother_facility_id',
						'place_code',
						'place_name',
						'complete_address',
						'is_active',
						'sort_order',
						'created_by',
						'createdAt',
						'updated_by',
						'updatedAt' 
					),
					'name' => 'workforce_assignment_place' 
				),
				'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' => 'sort_order ASC',
				'parsed' => true,
				'type' => 'OrderByListItem',
				'column' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'workforce_assignment_place',
					'name' => 'sort_order' 
				),
				'asc' => true,
				'columnNumber' => 7 
			),
			array(
				'sql' => 'place_name ASC',
				'parsed' => true,
				'type' => 'OrderByListItem',
				'column' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'workforce_assignment_place',
					'name' => 'place_name' 
				),
				'asc' => true,
				'columnNumber' => 4 
			) 
		),
		'colsIndex' => array( 
			array(
				'fieldIndex' => 0,
				'orderByIndex' => -1,
				'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' => 0,
				'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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
    mother_facility_id,
    place_code,
    place_name,
    complete_address,
    is_active,
    sort_order,
    created_by,
    createdAt,
    updated_by,
    updatedAt',
		'fromListSql' => 'FROM workforce_assignment_place',
		'orderBySql' => 'ORDER BY
    sort_order ASC,
    place_name ASC',
		'tailSql' => '' 
	),
	'hasEvents' => true,
	'originalTable' => 'workforce_assignment_place',
	'originalPagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'masterlist' => array( 
			'masterlist' 
		),
		'masterprint' => array( 
			'masterprint' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'id',
			'mother_facility_id',
			'place_code',
			'place_name',
			'complete_address',
			'is_active',
			'sort_order',
			'created_by',
			'createdAt',
			'updated_by',
			'updatedAt' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'mother_facility_id',
			'place_code',
			'place_name',
			'complete_address',
			'is_active',
			'sort_order',
			'created_by',
			'createdAt',
			'updated_by',
			'updatedAt' 
		) 
	),
	'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['workforce_assignment_place'] = array(
	'tableCaption' => 'Workforce Assignment Place',
	'fieldLabels' => array(
		'id' => 'Id',
		'mother_facility_id' => 'Mother Facility Id',
		'place_code' => 'Place Code',
		'place_name' => 'Place Name',
		'complete_address' => 'Complete Address',
		'is_active' => 'Is Active',
		'sort_order' => 'Sort Order',
		'created_by' => 'Created By',
		'createdAt' => 'Created At',
		'updated_by' => 'Updated By',
		'updatedAt' => 'Updated At' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'mother_facility_id' => '',
		'place_code' => '',
		'place_name' => '',
		'complete_address' => '',
		'is_active' => '',
		'sort_order' => '',
		'created_by' => '',
		'createdAt' => '',
		'updated_by' => '',
		'updatedAt' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'mother_facility_id' => '',
		'place_code' => '',
		'place_name' => '',
		'complete_address' => '',
		'is_active' => '',
		'sort_order' => '',
		'created_by' => '',
		'createdAt' => '',
		'updated_by' => '',
		'updatedAt' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>