135 lines
4.0 KiB
PHP
Executable File
135 lines
4.0 KiB
PHP
Executable File
<?php
|
|
global $app_list_strings;
|
|
$viewdefs['EcmServiceNews']['DetailView'] = array(
|
|
'templateMeta' => array(
|
|
'form' => array(
|
|
'buttons' => array(
|
|
'EDIT',
|
|
'DELETE',
|
|
'DUPLICATE',
|
|
array(
|
|
'customCode' => '<input title="PDF" ' .
|
|
'class="button" ' .
|
|
'type="button" ' .
|
|
'onclick="createPDF()" ' .
|
|
'value="PDF">')
|
|
),
|
|
),
|
|
'maxColumns' => '2',
|
|
'widths' => array(
|
|
array(
|
|
'label' => '10',
|
|
'field' => '30'
|
|
),
|
|
array(
|
|
'label' => '10',
|
|
'field' => '30'
|
|
)
|
|
),
|
|
'includes' => array(
|
|
array(
|
|
'file' => 'modules/EcmServiceNews/javascript/EcmServiceNewsDetail.js'
|
|
),
|
|
)
|
|
),
|
|
'panels' => array(
|
|
'LBL_DETAILS_TAB' => array(
|
|
array(
|
|
'document_no',
|
|
'service_type',
|
|
),
|
|
array(
|
|
'parent_name',
|
|
'status',
|
|
),
|
|
array(
|
|
'name',
|
|
'repair_status',
|
|
),
|
|
array(
|
|
array(
|
|
'name' => 'register_date',
|
|
'type' => 'datetime',
|
|
'displayParams' => array(
|
|
'showFormats' => true
|
|
)
|
|
),
|
|
array(
|
|
'name' => 'validtill_date',
|
|
'type' => 'datetime',
|
|
'displayParams' => array(
|
|
'showFormats' => true
|
|
)
|
|
)
|
|
),
|
|
array(
|
|
'product_name',
|
|
'product_model',
|
|
),
|
|
array(
|
|
'product_serial_number',
|
|
'realization_date',
|
|
),
|
|
array(
|
|
'product_value',
|
|
'product_year',
|
|
),
|
|
array(
|
|
'estimated_cost',
|
|
),
|
|
),
|
|
'LBL_TO_INFORMATIONS' => array(
|
|
array(
|
|
array(
|
|
'allCols' => true,
|
|
'name' => 'parent_comment',
|
|
'customCode' => '<div>{$fields.parent_comment.value}</div>'
|
|
)
|
|
),
|
|
array(
|
|
array(
|
|
'allCols' => true,
|
|
'name' => 'service_comment',
|
|
'tabIndex' => '1',
|
|
'customCode' => '<div>{$fields.service_comment.value}</div>'
|
|
)
|
|
),
|
|
array(
|
|
array(
|
|
'allCols' => true,
|
|
'name' => 'fault_comment',
|
|
'tabIndex' => '1',
|
|
'customCode' => '<div>{$fields.fault_comment.value}</div>'
|
|
)
|
|
),
|
|
array(
|
|
'parent_contact_name',
|
|
'assigned_user_name',
|
|
),
|
|
array(
|
|
'parent_contact_phone_fax',
|
|
),
|
|
),
|
|
'LBL_COSTS' => array(
|
|
array(
|
|
array(
|
|
'allCols' => true,
|
|
'customCode' => '{include file="modules/EcmServiceNews/tpl/DetailViewItems.tpl"}',
|
|
),
|
|
),
|
|
),
|
|
'LBL_HISTORY' => array (
|
|
array(
|
|
array(
|
|
'allCols' => true,
|
|
'hideLabel' => true,
|
|
'customCode' => '{include file="modules/EcmServiceNews/tpl/DetailViewServiceHistory.tpl"}'
|
|
)
|
|
),
|
|
),
|
|
)
|
|
);
|
|
|
|
?>
|
|
|