Files
qt5-legatus-legacy/Lts/Tests/DatabaseInitialisation/guez_aes_values_ex_42.sql
T
2026-08-13 18:33:10 +02:00

133 lines
11 KiB
SQL
Executable File

-- # $Id$
-- # $HeadURL$
-- # $Author$
-- effectSourceId INTERNAL(0)
INSERT INTO ex_42.aes_charge_administration( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator) SELECT ct.id, p.id, 3, 10000, 0, 0, 0, false from pdm.pdm_charge_type ct CROSS JOIN ex_42.ppm_party p where ct.properties->>'isAdlerChargeType' = 'true';
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (371, 3, 0, 9999, 10, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (371, 2, 0,9999, 20, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (374, 3, 0, 9999, 10, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (374, 2, 0, 9999, 20, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (375, 3, 0, 9999, 10, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (375, 2, 0, 9999, 20, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (376, 3, 0, 9999, 10, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (376, 2, 0, 9999, 20, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (381, 3, 0, 9999, 10, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (381, 2, 0, 9999, 20, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (385, 3, 0, 9999, 10, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (385, 2, 0, 9999, 20, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (394, 3, 0, 9999, 10, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (394, 2, 0, 9999, 20, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (395, 3, 0, 9999, 10, 0, 1488284582000, true );
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (395, 2, 0, 9999, 20, 0, 1488284582000, true );
-- test data party green
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (371, 4, 0, 1000, 0, 0, 1488284582000, true);
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (374, 4, 0, 1000, 0, 0, 1488284582000, true);
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (375, 4, 0, 1000, 0, 0, 1488284582000, true);
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (376, 4, 0, 1000, 0, 0, 1488284582000, true);
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (381, 4, 0, 1000, 0, 0, 1488284582000, true);
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (385, 4, 0, 1000, 0, 0, 1488284582000, true);
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (394, 4, 0, 1000, 0, 0, 1488284582000, true);
INSERT INTO ex_42.aes_charge_administration ( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator)
VALUES (395, 4, 0, 1000, 0, 0, 1488284582000, true);
-- Technical area
INSERT INTO ex_42.aes_entity(charge_type_id, effect_state_id, party_id, participant_id, effect_duration, effect_start, name)
VALUES (421, 6, 0, 0, 0, 1, 'MOUT Area');
INSERT INTO ex_42.aes_technical_area (entity_id, type_id, position_x, position_y, width, length)
VALUES (currval(('ex_42.aes_entity_id_seq'::text)::regclass), 2, 0.15525988, 0.92596303, 152, 121);
-- for Mine Area Report
INSERT INTO ex_42.aes_entity(charge_type_id, effect_state_id, party_id, participant_id, effect_duration, effect_start, name)
VALUES (211, 5, 3, 1, 3600000, 1512642321841, 'Mine area');
INSERT INTO ex_42.aes_mine(entity_id, is_laid_hidden, laying_procedure_type_id)
VALUES(currval(('ex_42.aes_entity_id_seq'::text)::regclass), true, 1);
INSERT INTO ex_42.aes_mine_area(mine_id, width, density)
VALUES(currval(('ex_42.aes_mine_id_seq'::text)::regclass), 50, 1);
INSERT INTO ex_42.aes_mine_area_segment(mine_area_id, element_number, start_position_x, start_position_y, end_position_x, end_position_y)
VALUES(currval(('ex_42.aes_mine_area_id_seq'::text)::regclass), 1, 0.156170698808978, 0.925992181981498, 0.166170698808978, 0.935992181981498);
INSERT INTO ex_42.aes_mine_area_segment(mine_area_id, element_number, start_position_x, start_position_y, end_position_x, end_position_y)
VALUES(currval(('ex_42.aes_mine_area_id_seq'::text)::regclass), 2, 0.156142603466514, 0.925969576798853, 0.156242603466514, 0.926369576798853);
-- for NBC Report
INSERT INTO ex_42.aes_entity(charge_type_id, effect_state_id, party_id, participant_id, effect_duration, effect_start, name)
VALUES (341, 6, 3, 0, 3600000, 1512642321841, 'Chemical agent');
INSERT INTO ex_42.aes_b_c_contamination(entity_id, impact_position_x, impact_position_y, impact_radius, weather_source_id)
VALUES (currval(('ex_42.aes_entity_id_seq'::text)::regclass), 0.1518700638, 0.9262307582, 200, 1);
-- for Vehicle Repair Report
--INSERT INTO ex_42.aes_functional_area_type(id, name, point_symbol, decon_mode, decon_time, maint_mode, maint_time, medic_mode, medic_time)
-- VALUES(0, 'Functional Area', '', 0, 0, 0, 0, 0, 0);
INSERT INTO ex_42.aes_entity(charge_type_id, effect_state_id, party_id, participant_id, effect_duration, effect_start, name)
VALUES (412, 6, 2, 0, 600000000, 1519286580349, 'Functional Area');
--INSERT INTO ex_42.aes_functional_area(entity_id, position_x, position_y, width, length, functional_area_type_id, decon_mode, decon_time, maint_mode, maint_time, medic_mode, medic_time)
-- VALUES (currval(('ex_42.aes_entity_id_seq'::text)::regclass), 0.155432809967393, 0.925950464865556, 46, 46, 0, 0, 0, 1, 0, 0, 0);
-- for Air Support Report
-- INSERT INTO ex_42.aes_entity(charge_type_id, effect_state_id, party_id, participant_id, effect_duration, effect_start, name)
-- VALUES (17001, 5, 2, 0, 0, 1522249553349, 'Air Support');
-- Borderline
INSERT INTO ex_42.aes_entity (charge_type_id, effect_state_id, party_id, participant_id, effect_duration, effect_start, name, effect_marking_in_ta, external_id, is_central) VALUES (312, 4, 2, 0, 0, 1690444698981, 'Test1', false, 0, false);
INSERT INTO ex_42.aes_borderline (entity_id, operator_id) VALUES (currval(('ex_42.aes_entity_id_seq'::text)::regclass), NULL);
INSERT INTO ex_42.aes_borderline_segment (borderline_id, position_index, position_x, position_y)
VALUES (currval(('ex_42.aes_borderline_id_seq'::text)::regclass), 0, 0.15401403293561025, 0.9262516599759301);
INSERT INTO ex_42.aes_borderline_segment (borderline_id, position_index, position_x, position_y)
VALUES (currval(('ex_42.aes_borderline_id_seq'::text)::regclass), 1, 0.15521123194737144, 0.9262607697394275);
INSERT INTO ex_42.aes_borderline_segment (borderline_id, position_index, position_x, position_y)
VALUES (currval(('ex_42.aes_borderline_id_seq'::text)::regclass), 2, 0.15520600446201568, 0.9258487622646644);
INSERT INTO ex_42.aes_borderline_segment (borderline_id, position_index, position_x, position_y)
VALUES (currval(('ex_42.aes_borderline_id_seq'::text)::regclass), 3, 0.15397777595084897, 0.9258204619096445);
INSERT INTO ex_42.aes_entity (charge_type_id, effect_state_id, party_id, participant_id, effect_duration, effect_start, name, effect_marking_in_ta, external_id, is_central) VALUES (312, 4, 2, 0, 0, 1690444698981, 'Test2', false, 0, false);
INSERT INTO ex_42.aes_borderline (entity_id, operator_id) VALUES (currval(('ex_42.aes_entity_id_seq'::text)::regclass), NULL);
INSERT INTO ex_42.aes_borderline_segment (borderline_id, position_index, position_x, position_y)
VALUES (currval(('ex_42.aes_borderline_id_seq'::text)::regclass), 0, 0.1556047680722257, 0.9257651454799318);
INSERT INTO ex_42.aes_borderline_segment (borderline_id, position_index, position_x, position_y)
VALUES (currval(('ex_42.aes_borderline_id_seq'::text)::regclass), 1, 0.15644040084601227, 0.9257731017898273);
INSERT INTO ex_42.aes_borderline_segment (borderline_id, position_index, position_x, position_y)
VALUES (currval(('ex_42.aes_borderline_id_seq'::text)::regclass), 2, 0.15643164132036522, 0.9253634479581523);
INSERT INTO ex_42.aes_borderline_segment (borderline_id, position_index, position_x, position_y)
VALUES (currval(('ex_42.aes_borderline_id_seq'::text)::regclass), 3, 0.15489973296890532, 0.9253416944495698);
INSERT INTO ex_42.aes_borderline_segment (borderline_id, position_index, position_x, position_y)
VALUES (currval(('ex_42.aes_borderline_id_seq'::text)::regclass), 4, 0.15487560954256091, 0.9257621461274502);