Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
ВОЛОШИН_КП_СУБД(1).docx
Скачиваний:
3
Добавлен:
22.09.2019
Размер:
5.63 Mб
Скачать

Приложение 14 – тестирование

--улицы

EXECPStreetInsert 'Стахановская'

EXEC PStreetInsert 'Савина'

EXEC PStreetInsert 'Заводская'

EXEC PStreetInsert 'Кирова'

EXEC PStreetInsert 'Лесозаводская'

EXEC PStreetInsert 'Школьная'

EXEC PStreetInsert 'Почтовая'

EXEC PStreetInsert 'Северная'

SELECT * FROM Street

--типыорганизаций

EXEC PToOrganozationInsert 'балансосодержащая'

EXEC PToOrganozationInsert 'обслуживающая'

SELECT * FROM TypeOfOrganization

--организации

EXEC POrganizationInsert 'МУП "СыктывкарскийВодоканал"',NULL,1

EXEC POrganizationInsert '"СпецАвтоХозяйство"',NULL,2

EXEC POrganizationInsert 'ТСЖ "Лесозаводское"',NULL,2

EXEC POrganizationInsert 'ТСЖ "Северная-61"',NULL,2

SELECT * FROM Organization

--водоисточники

EXEC PWaterSourceInsert 'ПГ-93','40', 1, 1

EXEC PWaterSourceInsert 'ПГ-6','7', 2, 2

EXEC PWaterSourceInsert 'ПГ-14','68', 3, 1

EXEC PWaterSourceInsert 'ПГ-5','79-а', 4, 2

EXEC PWaterSourceInsert 'ПГ-41','61', 8, 4

EXEC PWaterSourceInsert 'ПГ-97','2/5', 6, 3

EXEC PWaterSourceInsert 'ПВ-300','69', 2, 1

SELECT * FROM WaterSource

--гидранты

EXEC PHydrantInsert 1,250,1

EXEC PHydrantInsert 0,200,2

EXEC PHydrantInsert 0,100,3

EXEC PHydrantInsert 0,150,4

EXEC PHydrantInsert 0,150,5

EXEC PHydrantInsert 0,200,6

SELECT * FROM Hydrant

--водоемы

EXEC PPondInsert 300,7

SELECT * FROM Pond

--проверка

EXEC PInspectionInsert '23-06-2011',1

EXEC PInspectionInsert '26-07-2011',1

EXEC PInspectionInsert '28-08-2011',1

EXEC PInspectionInsert '10-09-2011',1

EXEC PInspectionInsert '13-10-2011',1

EXEC PInspectionInsert '18-11-2011',1

EXEC PInspectionInsert '19-12-2011',1

EXEC PInspectionInsert '25-08-2011',2

EXEC PInspectionInsert '26-09-2011',2

EXEC PInspectionInsert '30-10-2011',2

EXEC PInspectionInsert '5-11-2011',2

EXEC PInspectionInsert '13-11-2011',2

EXEC PInspectionInsert '25-11-2011',2

SELECT * FROM Inspection

--неисправность

EXEC PDefectInsert 'исправен', 0, 1,1

EXEC PDefectInsert 'исправен', 0, 1,1

EXEC PDefectInsert 'поломанкран', 10, 1,1

EXEC PDefectInsert 'исправен', 0, 1,1

EXEC PDefectInsert 'исправен', 0, 1,1

EXEC PDefectInsert 'исправен', 0, 1,1

EXEC PDefectInsert 'поломанкран', 10, 0,1

EXEC PDefectInsert 'исправен', 0, 1,2

EXEC PDefectInsert 'исправен', 0, 1,2

EXEC PDefectInsert 'нетконуса', 4, 1,2

EXEC PDefectInsert 'неочищен', 5, 1,2

EXEC PDefectInsert 'исправен', 0, 1,2

EXEC PDefectInsert 'исправен', 0, 1,2

EXEC PDefectUpdate 'поломанкран', 10, 0,1,3

EXEC PDefectDelete 4

EXEC PInspectionDelete 8

EXEC PInspectionUpdate '10-12-2011',2,12

SELECT * FROM Defect

--письма

EXECPLetterInsert '29-08-2011',NULL,'10-09-2011','ворганизацию',1,3

EXECPLetterInsert '30-10-2011',NULL,'5-11-2011','ворганизацию',2,9

EXEC PLetterInsert '6-11-2011',NULL,'13-11-2011','ворганизацию',2,10

EXEC PLetterInsert '21-12-2011',NULL,'05-01-2012','ворганизацию',1,13

SELECT * FROM Letter

--проверканеисправности

EXEC PTestDefectInsert 1,1,NULL

EXEC PTestDefectInsert 2,2,NULL

EXEC PTestDefectInsert 3,3,1

EXEC PTestDefectInsert 5,4,NULL

EXEC PTestDefectInsert 6,5,NULL

EXEC PTestDefectInsert 7,6,NULL

EXEC PTestDefectInsert 8,7,NULL

EXEC PTestDefectInsert 9,9,2

EXEC PTestDefectInsert 10,10,3

EXEC PTestDefectInsert 11,11,NULL

EXEC PTestDefectInsert 12,12,NULL

EXEC PTestDefectInsert 13,13,4

SELECT * FROM TestDefect

EXEC PWSFind 'Стахановская','40'

EXEC PLetterToOrganization 1

EXEC PPlanProverki '21-01-2012'