DELETE FROM [dbo].[dispetcher] WHERE (([serialpas] = @Original_serialpas) AND ([fio] = @Original_fio) AND ([tel] = @Original_tel) AND ([doljnost] = @Original_doljnost) AND ([pas] = @Original_pas))
INSERT INTO [dbo].[dispetcher] ([serialpas], [fio], [tel], [doljnost], [pas]) VALUES (@serialpas, @fio, @tel, @doljnost, @pas);
SELECT serialpas, fio, tel, doljnost, pas FROM dispetcher WHERE (serialpas = @serialpas)
SELECT serialpas, fio, tel, doljnost, pas FROM dbo.dispetcher
UPDATE [dbo].[dispetcher] SET [serialpas] = @serialpas, [fio] = @fio, [tel] = @tel, [doljnost] = @doljnost, [pas] = @pas WHERE (([serialpas] = @Original_serialpas) AND ([fio] = @Original_fio) AND ([tel] = @Original_tel) AND ([doljnost] = @Original_doljnost) AND ([pas] = @Original_pas));
SELECT serialpas, fio, tel, doljnost, pas FROM dispetcher WHERE (serialpas = @serialpas)
DELETE FROM [dbo].[jurnal] WHERE (([start] = @Original_start) AND ([serialpas] = @Original_serialpas) AND ([serial] = @Original_serial) AND ([typik] = @Original_typik) AND ((@IsNull_zametka = 1 AND [zametka] IS NULL) OR ([zametka] = @Original_zametka)))
INSERT INTO [dbo].[jurnal] ([start], [serialpas], [serial], [typik], [zametka]) VALUES (@start, @serialpas, @serial, @typik, @zametka);
SELECT start, serialpas, serial, typik, zametka FROM jurnal WHERE (serial = @serial) AND (serialpas = @serialpas) AND (start = @start) AND (typik = @typik)
SELECT start, serialpas, serial, typik, zametka FROM dbo.jurnal
UPDATE [dbo].[jurnal] SET [start] = @start, [serialpas] = @serialpas, [serial] = @serial, [typik] = @typik, [zametka] = @zametka WHERE (([start] = @Original_start) AND ([serialpas] = @Original_serialpas) AND ([serial] = @Original_serial) AND ([typik] = @Original_typik) AND ((@IsNull_zametka = 1 AND [zametka] IS NULL) OR ([zametka] = @Original_zametka)));
SELECT start, serialpas, serial, typik, zametka FROM jurnal WHERE (serial = @serial) AND (serialpas = @serialpas) AND (start = @start) AND (typik = @typik)
DELETE FROM [dbo].[mashinist] WHERE (([serialpas] = @Original_serialpas) AND ((@IsNull_serial = 1 AND [serial] IS NULL) OR ([serial] = @Original_serial)) AND ([fio] = @Original_fio) AND ([tel] = @Original_tel) AND ([staj] = @Original_staj) AND ((@IsNull_kvalif = 1 AND [kvalif] IS NULL) OR ([kvalif] = @Original_kvalif)))
INSERT INTO [dbo].[mashinist] ([serialpas], [serial], [fio], [tel], [staj], [kvalif]) VALUES (@serialpas, @serial, @fio, @tel, @staj, @kvalif);
SELECT serialpas, serial, fio, tel, staj, kvalif FROM mashinist WHERE (serialpas = @serialpas)
SELECT serialpas, serial, fio, tel, staj, kvalif FROM dbo.mashinist
UPDATE [dbo].[mashinist] SET [serialpas] = @serialpas, [serial] = @serial, [fio] = @fio, [tel] = @tel, [staj] = @staj, [kvalif] = @kvalif WHERE (([serialpas] = @Original_serialpas) AND ((@IsNull_serial = 1 AND [serial] IS NULL) OR ([serial] = @Original_serial)) AND ([fio] = @Original_fio) AND ([tel] = @Original_tel) AND ([staj] = @Original_staj) AND ((@IsNull_kvalif = 1 AND [kvalif] IS NULL) OR ([kvalif] = @Original_kvalif)));
SELECT serialpas, serial, fio, tel, staj, kvalif FROM mashinist WHERE (serialpas = @serialpas)
DELETE FROM [dbo].[psostav] WHERE (([serial] = @Original_serial) AND ((@IsNull_typkod = 1 AND [typkod] IS NULL) OR ([typkod] = @Original_typkod)) AND ((@IsNull_stat = 1 AND [stat] IS NULL) OR ([stat] = @Original_stat)) AND ([probeg] = @Original_probeg) AND ([iznos_motor] = @Original_iznos_motor) AND ([iznos_tk] = @Original_iznos_tk))
INSERT INTO [dbo].[psostav] ([serial], [typkod], [stat], [probeg], [iznos_motor], [iznos_tk]) VALUES (@serial, @typkod, @stat, @probeg, @iznos_motor, @iznos_tk);
SELECT serial, typkod, stat, probeg, iznos_motor, iznos_tk FROM psostav WHERE (serial = @serial)
SELECT serial, typkod, stat, probeg, iznos_motor, iznos_tk FROM dbo.psostav
UPDATE [dbo].[psostav] SET [serial] = @serial, [typkod] = @typkod, [stat] = @stat, [probeg] = @probeg, [iznos_motor] = @iznos_motor, [iznos_tk] = @iznos_tk WHERE (([serial] = @Original_serial) AND ((@IsNull_typkod = 1 AND [typkod] IS NULL) OR ([typkod] = @Original_typkod)) AND ((@IsNull_stat = 1 AND [stat] IS NULL) OR ([stat] = @Original_stat)) AND ([probeg] = @Original_probeg) AND ([iznos_motor] = @Original_iznos_motor) AND ([iznos_tk] = @Original_iznos_tk));
SELECT serial, typkod, stat, probeg, iznos_motor, iznos_tk FROM psostav WHERE (serial = @serial)
DELETE FROM [dbo].[raspisanie] WHERE (([start_vremya] = @Original_start_vremya) AND ([start_kod] = @Original_start_kod) AND ((@IsNull_finish_vremya = 1 AND [finish_vremya] IS NULL) OR ([finish_vremya] = @Original_finish_vremya)) AND ((@IsNull_finish_kod = 1 AND [finish_kod] IS NULL) OR ([finish_kod] = @Original_finish_kod)) AND ((@IsNull_naprav = 1 AND [naprav] IS NULL) OR ([naprav] = @Original_naprav)) AND ((@IsNull_vetka = 1 AND [vetka] IS NULL) OR ([vetka] = @Original_vetka)) AND ([serial] = @Original_serial) AND ([serialpas] = @Original_serialpas))
INSERT INTO [dbo].[raspisanie] ([start_vremya], [start_kod], [finish_vremya], [finish_kod], [naprav], [vetka], [serial], [serialpas]) VALUES (@start_vremya, @start_kod, @finish_vremya, @finish_kod, @naprav, @vetka, @serial, @serialpas);
SELECT start_vremya, start_kod, finish_vremya, finish_kod, naprav, vetka, serial, serialpas FROM raspisanie WHERE (serial = @serial) AND (serialpas = @serialpas) AND (start_kod = @start_kod) AND (start_vremya = @start_vremya)
SELECT start_vremya, start_kod, finish_vremya, finish_kod, naprav, vetka, serial, serialpas FROM dbo.raspisanie
UPDATE [dbo].[raspisanie] SET [start_vremya] = @start_vremya, [start_kod] = @start_kod, [finish_vremya] = @finish_vremya, [finish_kod] = @finish_kod, [naprav] = @naprav, [vetka] = @vetka, [serial] = @serial, [serialpas] = @serialpas WHERE (([start_vremya] = @Original_start_vremya) AND ([start_kod] = @Original_start_kod) AND ((@IsNull_finish_vremya = 1 AND [finish_vremya] IS NULL) OR ([finish_vremya] = @Original_finish_vremya)) AND ((@IsNull_finish_kod = 1 AND [finish_kod] IS NULL) OR ([finish_kod] = @Original_finish_kod)) AND ((@IsNull_naprav = 1 AND [naprav] IS NULL) OR ([naprav] = @Original_naprav)) AND ((@IsNull_vetka = 1 AND [vetka] IS NULL) OR ([vetka] = @Original_vetka)) AND ([serial] = @Original_serial) AND ([serialpas] = @Original_serialpas));
SELECT start_vremya, start_kod, finish_vremya, finish_kod, naprav, vetka, serial, serialpas FROM raspisanie WHERE (serial = @serial) AND (serialpas = @serialpas) AND (start_kod = @start_kod) AND (start_vremya = @start_vremya)
DELETE FROM [dbo].[remont] WHERE (([typik] = @Original_typik) AND ((@IsNull_serial = 1 AND [serial] IS NULL) OR ([serial] = @Original_serial)) AND ((@IsNull_start = 1 AND [start] IS NULL) OR ([start] = @Original_start)) AND ((@IsNull_kod = 1 AND [kod] IS NULL) OR ([kod] = @Original_kod)))
INSERT INTO [dbo].[remont] ([typik], [serial], [start], [kod]) VALUES (@typik, @serial, @start, @kod);
SELECT typik, serial, start, kod FROM remont WHERE (typik = @typik)
SELECT typik, serial, start, kod FROM dbo.remont
UPDATE [dbo].[remont] SET [typik] = @typik, [serial] = @serial, [start] = @start, [kod] = @kod WHERE (([typik] = @Original_typik) AND ((@IsNull_serial = 1 AND [serial] IS NULL) OR ([serial] = @Original_serial)) AND ((@IsNull_start = 1 AND [start] IS NULL) OR ([start] = @Original_start)) AND ((@IsNull_kod = 1 AND [kod] IS NULL) OR ([kod] = @Original_kod)));
SELECT typik, serial, start, kod FROM remont WHERE (typik = @typik)
DELETE FROM [dbo].[spravka] WHERE (([kod] = @Original_kod) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_krit = 1 AND [krit] IS NULL) OR ([krit] = @Original_krit)) AND ((@IsNull_srok_dos_det = 1 AND [srok_dos_det] IS NULL) OR ([srok_dos_det] = @Original_srok_dos_det)) AND ((@IsNull_vremya_remonta = 1 AND [vremya_remonta] IS NULL) OR ([vremya_remonta] = @Original_vremya_remonta)))
INSERT INTO [dbo].[spravka] ([kod], [name], [krit], [srok_dos_det], [vremya_remonta]) VALUES (@kod, @name, @krit, @srok_dos_det, @vremya_remonta);
SELECT kod, name, krit, srok_dos_det, vremya_remonta FROM spravka WHERE (kod = @kod)
SELECT kod, name, krit, srok_dos_det, vremya_remonta FROM dbo.spravka
UPDATE [dbo].[spravka] SET [kod] = @kod, [name] = @name, [krit] = @krit, [srok_dos_det] = @srok_dos_det, [vremya_remonta] = @vremya_remonta WHERE (([kod] = @Original_kod) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_krit = 1 AND [krit] IS NULL) OR ([krit] = @Original_krit)) AND ((@IsNull_srok_dos_det = 1 AND [srok_dos_det] IS NULL) OR ([srok_dos_det] = @Original_srok_dos_det)) AND ((@IsNull_vremya_remonta = 1 AND [vremya_remonta] IS NULL) OR ([vremya_remonta] = @Original_vremya_remonta)));
SELECT kod, name, krit, srok_dos_det, vremya_remonta FROM spravka WHERE (kod = @kod)
DELETE FROM [dbo].[stanciya] WHERE (([kod] = @Original_kod) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_paspotok = 1 AND [paspotok] IS NULL) OR ([paspotok] = @Original_paspotok)) AND ((@IsNull_kod_vpered = 1 AND [kod_vpered] IS NULL) OR ([kod_vpered] = @Original_kod_vpered)) AND ((@IsNull_rast_vpered = 1 AND [rast_vpered] IS NULL) OR ([rast_vpered] = @Original_rast_vpered)) AND ((@IsNull_kod_nazad = 1 AND [kod_nazad] IS NULL) OR ([kod_nazad] = @Original_kod_nazad)) AND ((@IsNull_rast_nazad = 1 AND [rast_nazad] IS NULL) OR ([rast_nazad] = @Original_rast_nazad)) AND ((@IsNull_stat = 1 AND [stat] IS NULL) OR ([stat] = @Original_stat)) AND ((@IsNull_start_time = 1 AND [start_time] IS NULL) OR ([start_time] = @Original_start_time)) AND ((@IsNull_finish_time = 1 AND [finish_time] IS NULL) OR ([finish_time] = @Original_finish_time)))
INSERT INTO [dbo].[stanciya] ([kod], [name], [paspotok], [kod_vpered], [rast_vpered], [kod_nazad], [rast_nazad], [stat], [start_time], [finish_time]) VALUES (@kod, @name, @paspotok, @kod_vpered, @rast_vpered, @kod_nazad, @rast_nazad, @stat, @start_time, @finish_time);
SELECT kod, name, paspotok, kod_vpered, rast_vpered, kod_nazad, rast_nazad, stat, start_time, finish_time FROM stanciya WHERE (kod = @kod)
SELECT kod, name, paspotok, kod_vpered, rast_vpered, kod_nazad, rast_nazad, stat, start_time, finish_time FROM dbo.stanciya
UPDATE [dbo].[stanciya] SET [kod] = @kod, [name] = @name, [paspotok] = @paspotok, [kod_vpered] = @kod_vpered, [rast_vpered] = @rast_vpered, [kod_nazad] = @kod_nazad, [rast_nazad] = @rast_nazad, [stat] = @stat, [start_time] = @start_time, [finish_time] = @finish_time WHERE (([kod] = @Original_kod) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_paspotok = 1 AND [paspotok] IS NULL) OR ([paspotok] = @Original_paspotok)) AND ((@IsNull_kod_vpered = 1 AND [kod_vpered] IS NULL) OR ([kod_vpered] = @Original_kod_vpered)) AND ((@IsNull_rast_vpered = 1 AND [rast_vpered] IS NULL) OR ([rast_vpered] = @Original_rast_vpered)) AND ((@IsNull_kod_nazad = 1 AND [kod_nazad] IS NULL) OR ([kod_nazad] = @Original_kod_nazad)) AND ((@IsNull_rast_nazad = 1 AND [rast_nazad] IS NULL) OR ([rast_nazad] = @Original_rast_nazad)) AND ((@IsNull_stat = 1 AND [stat] IS NULL) OR ([stat] = @Original_stat)) AND ((@IsNull_start_time = 1 AND [start_time] IS NULL) OR ([start_time] = @Original_start_time)) AND ((@IsNull_finish_time = 1 AND [finish_time] IS NULL) OR ([finish_time] = @Original_finish_time)));
SELECT kod, name, paspotok, kod_vpered, rast_vpered, kod_nazad, rast_nazad, stat, start_time, finish_time FROM stanciya WHERE (kod = @kod)
INSERT INTO [dbo].[stanitsa] ([Столбец 0], [Столбец 1], [Столбец 2], [Столбец 3], [Столбец 4], [Столбец 5]) VALUES (@Столбец_0, @Столбец_1, @Столбец_2, @Столбец_3, @Столбец_4, @Столбец_5)
SELECT [Столбец 0], [Столбец 1], [Столбец 2], [Столбец 3], [Столбец 4], [Столбец 5] FROM dbo.stanitsa
DELETE FROM [dbo].[typsostav] WHERE (([typkod] = @Original_typkod) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_kolmest = 1 AND [kolmest] IS NULL) OR ([kolmest] = @Original_kolmest)) AND ([dlina] = @Original_dlina) AND ([shirina] = @Original_shirina) AND ([visota] = @Original_visota) AND ((@IsNull_naznachenie = 1 AND [naznachenie] IS NULL) OR ([naznachenie] = @Original_naznachenie)) AND ([koleya] = @Original_koleya) AND ((@IsNull_speed = 1 AND [speed] IS NULL) OR ([speed] = @Original_speed)))
INSERT INTO [dbo].[typsostav] ([typkod], [name], [kolmest], [dlina], [shirina], [visota], [naznachenie], [koleya], [speed]) VALUES (@typkod, @name, @kolmest, @dlina, @shirina, @visota, @naznachenie, @koleya, @speed);
SELECT typkod, name, kolmest, dlina, shirina, visota, naznachenie, koleya, speed FROM typsostav WHERE (typkod = @typkod)
SELECT typkod, name, kolmest, dlina, shirina, visota, naznachenie, koleya, speed FROM dbo.typsostav
UPDATE [dbo].[typsostav] SET [typkod] = @typkod, [name] = @name, [kolmest] = @kolmest, [dlina] = @dlina, [shirina] = @shirina, [visota] = @visota, [naznachenie] = @naznachenie, [koleya] = @koleya, [speed] = @speed WHERE (([typkod] = @Original_typkod) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_kolmest = 1 AND [kolmest] IS NULL) OR ([kolmest] = @Original_kolmest)) AND ([dlina] = @Original_dlina) AND ([shirina] = @Original_shirina) AND ([visota] = @Original_visota) AND ((@IsNull_naznachenie = 1 AND [naznachenie] IS NULL) OR ([naznachenie] = @Original_naznachenie)) AND ([koleya] = @Original_koleya) AND ((@IsNull_speed = 1 AND [speed] IS NULL) OR ([speed] = @Original_speed)));
SELECT typkod, name, kolmest, dlina, shirina, visota, naznachenie, koleya, speed FROM typsostav WHERE (typkod = @typkod)
DELETE FROM [dbo].[vetka] WHERE (([name] = @Original_name) AND ((@IsNull_start_stanciya = 1 AND [start_stanciya] IS NULL) OR ([start_stanciya] = @Original_start_stanciya)) AND ((@IsNull_finish_stanciya = 1 AND [finish_stanciya] IS NULL) OR ([finish_stanciya] = @Original_finish_stanciya)) AND ((@IsNull_depo_status = 1 AND [depo_status] IS NULL) OR ([depo_status] = @Original_depo_status)) AND ((@IsNull_start_status = 1 AND [start_status] IS NULL) OR ([start_status] = @Original_start_status)) AND ((@IsNull_finish_status = 1 AND [finish_status] IS NULL) OR ([finish_status] = @Original_finish_status)))
INSERT INTO [dbo].[vetka] ([name], [start_stanciya], [finish_stanciya], [depo_status], [start_status], [finish_status]) VALUES (@name, @start_stanciya, @finish_stanciya, @depo_status, @start_status, @finish_status);
SELECT name, start_stanciya, finish_stanciya, depo_status, start_status, finish_status FROM vetka WHERE (name = @name)
SELECT name, start_stanciya, finish_stanciya, depo_status, start_status, finish_status FROM dbo.vetka
UPDATE [dbo].[vetka] SET [name] = @name, [start_stanciya] = @start_stanciya, [finish_stanciya] = @finish_stanciya, [depo_status] = @depo_status, [start_status] = @start_status, [finish_status] = @finish_status WHERE (([name] = @Original_name) AND ((@IsNull_start_stanciya = 1 AND [start_stanciya] IS NULL) OR ([start_stanciya] = @Original_start_stanciya)) AND ((@IsNull_finish_stanciya = 1 AND [finish_stanciya] IS NULL) OR ([finish_stanciya] = @Original_finish_stanciya)) AND ((@IsNull_depo_status = 1 AND [depo_status] IS NULL) OR ([depo_status] = @Original_depo_status)) AND ((@IsNull_start_status = 1 AND [start_status] IS NULL) OR ([start_status] = @Original_start_status)) AND ((@IsNull_finish_status = 1 AND [finish_status] IS NULL) OR ([finish_status] = @Original_finish_status)));
SELECT name, start_stanciya, finish_stanciya, depo_status, start_status, finish_status FROM vetka WHERE (name = @name)
SELECT Отправление, [Со станции], Прибытие, [На станцию], Ветка FROM dbo.v_raspisanie
SELECT Тупик, Состав, Неисправность, [Время начала], [Предположительное окончание] FROM dbo.v_remont
dbo.add_dispetcher
dbo.add_mashinist
dbo.add_remont
dbo.add_sostav
dbo.add_sostav_raspis
dbo.add_stanciya
dbo.add_typik
dbo.add_typsostav
dbo.add_vetka
dbo.alignment_interval
dbo.del_dispetcher
dbo.del_mashinist
dbo.del_rasp
dbo.del_remont
dbo.del_sostav
dbo.del_sostav_raspisanie
dbo.del_stanciya
dbo.del_typik
dbo.del_typsostav
dbo.del_vetka
dbo.edit_dispetcher
dbo.edit_mashinist
dbo.edit_psostav
dbo.edit_stanciya
dbo.edit_typsostav
dbo.onesostav
dbo.prov_raspisanie
dbo.sostav_raspisanie
dbo.adtime
dbo.dlina
dbo.dlina_vetka
dbo.kol_stanciy
dbo.maxi_sostav
dbo.paspotok_vetki
dbo.proverka_sostav
dbo.sled_sostav
dbo.start_interval