Commit old changes

This commit is contained in:
2024-12-03 09:55:11 +00:00
parent 6a37a77895
commit 87010acdcc
19 changed files with 3167 additions and 1320 deletions

View File

@@ -58,14 +58,22 @@ $viewdefs [$module_name] = array (
0 => array (
'name' => 'category',
'label' => 'LBL_CATEGORY'
)
),
1 => array (
'name' => 'shape',
'label' => 'Forma'
)
),
2 => array (
0 => array (
'name' => 'time',
'customCode' => '<span id="mojtime">{$fields.time.value}</span>',
'label' => 'LBL_TIME'
)
),
1 => array (
'name' => 'performance',
'label' => 'Wydajność'
)
),
3 => array (
0 => array (

View File

@@ -1,31 +1,31 @@
<?php
$module_name = 'EcmActions';
$viewdefs [$module_name] = array (
'EditView' => array (
'templateMeta' => array (
'maxColumns' => '2',
'widths' => array (
0 => array (
'label' => '10',
'field' => '30'
),
1 => array (
'label' => '10',
'field' => '30'
)
),
'useTabs' => false,
'tabDefs' => array (
'DEFAULT' => array (
'newTab' => false,
'panelDefault' => 'expanded'
),
'LBL_EDITVIEW_PANEL1' => array (
'newTab' => false,
'panelDefault' => 'expanded'
)
),
'javascript' => '
$viewdefs [$module_name] = array(
'EditView' => array(
'templateMeta' => array(
'maxColumns' => '2',
'widths' => array(
0 => array(
'label' => '10',
'field' => '30'
),
1 => array(
'label' => '10',
'field' => '30'
)
),
'useTabs' => false,
'tabDefs' => array(
'DEFAULT' => array(
'newTab' => false,
'panelDefault' => 'expanded'
),
'LBL_EDITVIEW_PANEL1' => array(
'newTab' => false,
'panelDefault' => 'expanded'
)
),
'javascript' => '
<script type="text/javascript" src="include/javascript/popup_parent_helper.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" src="include/jsolait/init.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" src="include/jsolait/lib/urllib.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
@@ -33,63 +33,73 @@ $viewdefs [$module_name] = array (
<script type="text/javascript" src="include/javascript/jsclass_async.js"></script>
<script type="text/javascript" src="include/JSON.js?s={$SUGAR_VERSION}"></script>
<script type="text/javascript" src="modules/EcmActions/js/EditViewDocumentReady.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>',
'includes' => array (
0 => array (
'file' => 'include/JSON.js'
)
)
),
'panels' => array (
'default' => array (
0 => array (
0 => array (
'name' => 'name',
'label' => 'LBL_NAME',
'tabIndex' => '100',
'displayParams' => array (
'size' => 40
)
),
1 => array (
'name' => 'indeks',
'label' => 'LBL_INDEKS',
'tabindex' => '120',
)
),
1 => array (
0 => array (
'name' => 'category',
'label' => 'LBL_CATEGORY',
'tabIndex' => '101',
)
),
2 => array (
0 => array (
'name' => 'time',
'customCode' => "{include file='modules/EcmActions/tpl/EditViewTime.tpl'}",
'label' => 'LBL_TIME',
'tabIndex' => '105',
)
),
3 => array (
0 => array (
'name' => 'cost_action',
'label' => 'LBL_COST_ACTION',
'tabIndex' => '106',
)
),
4 => array (
0 => array (
'name' => 'cost_hour',
'label' => 'LBL_COST_HOUR',
'tabIndex' => '107',
)
),
6 => array (
0 => 'description'
)
)
)
)
);
'includes' => array(
0 => array(
'file' => 'include/JSON.js'
)
)
),
'panels' => array(
'default' => array(
0 => array(
0 => array(
'name' => 'name',
'label' => 'LBL_NAME',
'tabIndex' => '100',
'displayParams' => array(
'size' => 40
)
),
1 => array(
'name' => 'indeks',
'label' => 'LBL_INDEKS',
'tabindex' => '120',
)
),
1 => array(
0 => array(
'name' => 'category',
'label' => 'LBL_CATEGORY',
'tabIndex' => '101',
),
1 => array(
'name' => 'shape',
'label' => 'Forma',
'tabIndex' => '101',
)
),
2 => array(
0 => array(
'name' => 'time',
'customCode' => "{include file='modules/EcmActions/tpl/EditViewTime.tpl'}",
'label' => 'LBL_TIME',
'tabIndex' => '105',
),
1 => array (
'name' => 'performance',
'label' => 'Wydajność',
'tabIndex' => '101',
)
),
3 => array(
0 => array(
'name' => 'cost_action',
'label' => 'LBL_COST_ACTION',
'tabIndex' => '106',
)
),
4 => array(
0 => array(
'name' => 'cost_hour',
'label' => 'LBL_COST_HOUR',
'tabIndex' => '107',
)
),
6 => array(
0 => 'description'
)
)
)
)
)
?>

View File

@@ -129,7 +129,20 @@ $dictionary ['EcmAction'] = array (
'size' => '20',
'enable_range_search' => false,
'precision' => '2'
)
),
'shape' => array(
'name' => 'shape',
'options' => 'ecmproducts_shape_dom',
'vname' => 'Forma',
'len' => 36,
'type' => 'enum'
),
'performance' => array(
'name' => 'performance',
'vname' => 'Wydajność',
'type' => 'decimal',
'len' => '15,2',
),
),
'relationships' => array (),
'optimistic_locking' => true,