Revision 46458
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/test/resources/org/gvsig/expressionevaluator/impl/TestScript1_1.cosa | ||
---|---|---|
2 | 2 |
|
3 | 3 |
create procedure form_onSetvalues form, values as |
4 | 4 |
begin |
5 |
print("form_onSetvalues"); |
|
5 |
-- print('form_onSetvalues'); |
|
6 |
pass; |
|
6 | 7 |
end |
7 | 8 |
|
8 | 9 |
create procedure form_onFieldEnter form, field as |
9 | 10 |
begin |
10 |
print("form_onFieldEnter"); |
|
11 |
-- print('form_onFieldEnter'); |
|
12 |
pass; |
|
11 | 13 |
end |
12 | 14 |
|
13 | 15 |
create procedure form_onFieldExit form, field as |
14 | 16 |
begin |
15 |
print("form_onFieldExit"); |
|
17 |
-- print('form_onFieldExit'); |
|
18 |
pass; |
|
16 | 19 |
end |
17 | 20 |
|
18 | 21 |
create procedure form_onFieldChanged form, field as |
19 | 22 |
begin |
20 |
print("form_onFieldChanged"); |
|
23 |
-- print('form_onFieldChanged ' || field.getName()); |
|
24 |
case |
|
25 |
when field.getName() = 'bracketvcs' then |
|
26 |
begin |
|
27 |
rotationField := form.getField('rotationangleimage'); |
|
28 |
bracket := field.getRelatedFeature(); |
|
29 |
-- print(' bracket: ' || tostr(bracket.extinca) ); |
|
30 |
-- print(' bracket rotation: ' || tostr(bracket.rotationangleimage) ); |
|
31 |
-- print(' vertical-signal rotation: ' || tostr(rotationField.getValue()) ); |
|
32 |
if rotationField.getValue() is null then |
|
33 |
rotationField.setValue(bracket.rotationangleimage); |
|
34 |
end |
|
35 |
end |
|
36 |
end |
|
21 | 37 |
end |
22 | 38 |
|
23 | 39 |
create function form_validate form as |
24 |
$$ |
|
40 |
begin |
|
41 |
-- print('form_validate'); |
|
25 | 42 |
return true; |
26 |
$$
|
|
43 |
end
|
|
27 | 44 |
|
28 | 45 |
create procedure form_onLoad form as |
29 |
$$ |
|
30 |
print("form_onLoad"); |
|
31 |
$$ |
|
46 |
begin |
|
47 |
-- print('form_onLoad'); |
|
48 |
return; |
|
49 |
end |
|
32 | 50 |
|
33 | 51 |
create procedure form_clear form as |
34 |
$$ |
|
35 |
print("form_clear"); |
|
36 |
$$ |
|
52 |
begin |
|
53 |
-- print('form_clear'); |
|
54 |
pass; |
|
55 |
end |
|
37 | 56 |
|
38 | 57 |
create function form_isReadOnly form as |
39 | 58 |
begin |
... | ... | |
41 | 60 |
return true; |
42 | 61 |
end if |
43 | 62 |
return false; |
44 |
-- set fecha_accidente = form.getField('FECHA_ACCIDENTE').getValue();
|
|
45 |
-- if fecha_accidente = null then
|
|
63 |
-- fecha_accidente := form.getField('FECHA_ACCIDENTE').getValue();
|
|
64 |
-- if fecha_accidente is null then
|
|
46 | 65 |
-- return false; |
47 | 66 |
-- end if |
48 |
-- set fecha_de_cierre = application().getProperty('CEGESEV.accidentes.fecha_de_cierre');
|
|
49 |
-- if fecha_de_cierre = null then
|
|
67 |
-- fecha_de_cierre := application().getProperty('CEGESEV.accidentes.fecha_de_cierre');
|
|
68 |
-- if fecha_de_cierre is null then
|
|
50 | 69 |
-- return true; |
51 | 70 |
-- end if |
52 |
-- return Date(fecha_de_cierre) > Date(fecha_accidente);
|
|
71 |
-- return cast(fecha_de_cierre as date) > (fecha_accidente as date);
|
|
53 | 72 |
end |
Also available in: Unified diff