<?php
global $runnerTableSettings;
$runnerTableSettings['approval_workflow_step'] = array(
	'name' => 'approval_workflow_step',
	'shortName' => 'approval_workflow_step',
	'pagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'afterEditDetails' => 'approval_workflow_step',
	'afterAddDetail' => 'approval_workflow_step',
	'detailsBadgeColor' => '6da5c8',
	'sql' => 'SELECT
	id,
	workflow_id,
	step_no,
	step_name,
	approver_type,
	approver_role_code,
	approver_platform_user_id,
	is_parallel,
	required_approvals,
	escalation_hours
FROM
	approval_workflow_step',
	'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' => 'approval_workflow_step' 
		),
		'workflow_id' => array(
			'name' => 'workflow_id',
			'goodName' => 'workflow_id',
			'strField' => 'workflow_id',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'workflow_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'approval_workflow',
					'lookupTableConnection' => 'conn1',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'workflow_code' 
				) 
			),
			'tableName' => 'approval_workflow_step',
			'viewLinkTable' => 'approval_workflow',
			'viewLinkLookup' => true 
		),
		'step_no' => array(
			'name' => 'step_no',
			'goodName' => 'step_no',
			'strField' => 'step_no',
			'index' => 3,
			'type' => 3,
			'sqlExpression' => 'step_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_workflow_step' 
		),
		'step_name' => array(
			'name' => 'step_name',
			'goodName' => 'step_name',
			'strField' => 'step_name',
			'index' => 4,
			'sqlExpression' => 'step_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_workflow_step' 
		),
		'approver_type' => array(
			'name' => 'approver_type',
			'goodName' => 'approver_type',
			'strField' => 'approver_type',
			'index' => 5,
			'sqlExpression' => 'approver_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_workflow_step' 
		),
		'approver_role_code' => array(
			'name' => 'approver_role_code',
			'goodName' => 'approver_role_code',
			'strField' => 'approver_role_code',
			'index' => 6,
			'sqlExpression' => 'approver_role_code',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_workflow_step' 
		),
		'approver_platform_user_id' => array(
			'name' => 'approver_platform_user_id',
			'goodName' => 'approver_platform_user_id',
			'strField' => 'approver_platform_user_id',
			'index' => 7,
			'type' => 3,
			'sqlExpression' => 'approver_platform_user_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_workflow_step' 
		),
		'is_parallel' => array(
			'name' => 'is_parallel',
			'goodName' => 'is_parallel',
			'strField' => 'is_parallel',
			'index' => 8,
			'type' => 2,
			'sqlExpression' => 'is_parallel',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_workflow_step' 
		),
		'required_approvals' => array(
			'name' => 'required_approvals',
			'goodName' => 'required_approvals',
			'strField' => 'required_approvals',
			'index' => 9,
			'type' => 3,
			'sqlExpression' => 'required_approvals',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_workflow_step' 
		),
		'escalation_hours' => array(
			'name' => 'escalation_hours',
			'goodName' => 'escalation_hours',
			'strField' => 'escalation_hours',
			'index' => 10,
			'type' => 14,
			'sqlExpression' => 'escalation_hours',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'approval_workflow_step' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'approval_workflow',
			'detailsKeys' => array( 
				'workflow_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	workflow_id,
	step_no,
	step_name,
	approver_type,
	approver_role_code,
	approver_platform_user_id,
	is_parallel,
	required_approvals,
	escalation_hours
FROM
	approval_workflow_step',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_workflow_step',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'workflow_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_workflow_step',
					'name' => 'workflow_id' 
				),
				'encrypted' => false,
				'columnName' => 'workflow_id' 
			),
			array(
				'sql' => 'step_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_workflow_step',
					'name' => 'step_no' 
				),
				'encrypted' => false,
				'columnName' => 'step_no' 
			),
			array(
				'sql' => 'step_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_workflow_step',
					'name' => 'step_name' 
				),
				'encrypted' => false,
				'columnName' => 'step_name' 
			),
			array(
				'sql' => 'approver_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_workflow_step',
					'name' => 'approver_type' 
				),
				'encrypted' => false,
				'columnName' => 'approver_type' 
			),
			array(
				'sql' => 'approver_role_code',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_workflow_step',
					'name' => 'approver_role_code' 
				),
				'encrypted' => false,
				'columnName' => 'approver_role_code' 
			),
			array(
				'sql' => 'approver_platform_user_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_workflow_step',
					'name' => 'approver_platform_user_id' 
				),
				'encrypted' => false,
				'columnName' => 'approver_platform_user_id' 
			),
			array(
				'sql' => 'is_parallel',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_workflow_step',
					'name' => 'is_parallel' 
				),
				'encrypted' => false,
				'columnName' => 'is_parallel' 
			),
			array(
				'sql' => 'required_approvals',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_workflow_step',
					'name' => 'required_approvals' 
				),
				'encrypted' => false,
				'columnName' => 'required_approvals' 
			),
			array(
				'sql' => 'escalation_hours',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'approval_workflow_step',
					'name' => 'escalation_hours' 
				),
				'encrypted' => false,
				'columnName' => 'escalation_hours' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'approval_workflow_step',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'approval_workflow_step',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'workflow_id',
						'step_no',
						'step_name',
						'approver_type',
						'approver_role_code',
						'approver_platform_user_id',
						'is_parallel',
						'required_approvals',
						'escalation_hours' 
					),
					'name' => 'approval_workflow_step' 
				),
				'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( 
			 
		),
		'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' => -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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	workflow_id,
	step_no,
	step_name,
	approver_type,
	approver_role_code,
	approver_platform_user_id,
	is_parallel,
	required_approvals,
	escalation_hours',
		'fromListSql' => 'FROM
	approval_workflow_step',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'approval_workflow_step',
	'originalPagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'id',
			'workflow_id',
			'step_no',
			'step_name',
			'approver_type',
			'approver_role_code',
			'approver_platform_user_id',
			'is_parallel',
			'required_approvals',
			'escalation_hours' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'workflow_id',
			'step_no',
			'step_name',
			'approver_type',
			'approver_role_code',
			'approver_platform_user_id',
			'is_parallel',
			'required_approvals',
			'escalation_hours' 
		) 
	),
	'connId' => 'conn1',
	'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['approval_workflow_step'] = array(
	'tableCaption' => 'Approval Workflow Step',
	'fieldLabels' => array(
		'id' => 'Id',
		'workflow_id' => 'Workflow Id',
		'step_no' => 'Step No',
		'step_name' => 'Step Name',
		'approver_type' => 'Approver Type',
		'approver_role_code' => 'Approver Role Code',
		'approver_platform_user_id' => 'Approver Platform User Id',
		'is_parallel' => 'Is Parallel',
		'required_approvals' => 'Required Approvals',
		'escalation_hours' => 'Escalation Hours' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'workflow_id' => '',
		'step_no' => '',
		'step_name' => '',
		'approver_type' => '',
		'approver_role_code' => '',
		'approver_platform_user_id' => '',
		'is_parallel' => '',
		'required_approvals' => '',
		'escalation_hours' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'workflow_id' => '',
		'step_no' => '',
		'step_name' => '',
		'approver_type' => '',
		'approver_role_code' => '',
		'approver_platform_user_id' => '',
		'is_parallel' => '',
		'required_approvals' => '',
		'escalation_hours' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>