Dodaj pliki projektów.

This commit is contained in:
2025-10-31 12:50:24 +01:00
parent 06b6823bd9
commit 7173a37b29
169 changed files with 53145 additions and 0 deletions
@@ -0,0 +1,21 @@
-- =============================================
-- Author: MK
-- Create date:
-- Description:
-- 0.2 sortowanie wg kodu
-- =============================================
CREATE PROCEDURE myconsult_haftmittel.ListaSkladnikow
AS
BEGIN
SET NOCOUNT ON;
SELECT 0 AS Id, '' AS Kod, '' AS Nazwa
UNION ALL
SELECT SLW_ID
, SLW_WartoscS
, SLW_Nazwa
FROM CDN.Slowniki
WHERE SLW_SLSId = 144
ORDER BY Kod
END
GO
@@ -0,0 +1,4 @@
ALTER TABLE [myconsult_haftmittel].[Lista]
ADD CONSTRAINT [FK_Lista_OpeKarty]
FOREIGN KEY (hml_OpeNumer)
REFERENCES [CDN].[OpeKarty] (Ope_GIDNumer)
@@ -0,0 +1,4 @@
ALTER TABLE [myconsult_haftmittel].[Lista]
ADD CONSTRAINT [FK_Lista_TwrKarty]
FOREIGN KEY (hml_TwrNumer)
REFERENCES [CDN].[TwrKarty] (Twr_GIDNumer)
+108
View File
@@ -0,0 +1,108 @@
-- =========================================
-- Create table template
-- v 0.2 zmiana pól od obrazków na ze smallint na bit, zwiększenie ilości obrazków
-- =========================================
CREATE TABLE [myconsult_haftmittel].[Lista]
(
hml_TwrTyp smallint NOT NULL,
hml_TwrNumer int NOT NULL,
hml_DataPowstania datetime default GetDate(),
hml_DataArchiwizacji datetime default null,
hml_Herstellort nvarchar(max) default '',
hml_SDStext nvarchar(max) default '',
hml_SDS1 bit default 0,
hml_SDS2 bit default 0,
hml_SDS3 bit default 0,
hml_SDS4 bit default 0,
hml_SDS5 bit default 0,
hml_SDS6 bit default 0,
hml_SDS7 bit default 0,
hml_SDS8 bit default 0,
hml_SDS9 bit default 0,
hml_SDS10 bit default 0,
hml_Schichten nvarchar(max) default '',
hml_Eigenschaften nvarchar(max) default '',
hml_Anleitung nvarchar(max) default '',
hml_FS_od decimal(15,4) default 0,
hml_FS_do decimal(15,4) default 0,
hml_Dichte decimal(15,4) default 0,
hml_Dichte_do decimal(15,4) default 0,
hml_Viskositat_od decimal(15,4) default 0,
hml_Viskositat_do decimal(15,4) default 0,
hml_Farbe nvarchar(max) default '',
hml_Verdunnung nvarchar(max) default '',
hml_Schichtdicke_od decimal(15,4) default 0,
hml_Schichtdicke_do decimal(15,4) default 0,
hml_Leistung decimal(15,4) default 0,
hml_Lagerkapazitat decimal(15,4) default 0,
hml_Verarbeitung nvarchar(max) default '',
hml_Inh0_Id int default 0,
hml_Inh0_Procent decimal(18,4) default 0,
hml_Inh0_ProcentDo decimal(18,4) default 0,
hml_Inh1_Id int default 0,
hml_Inh1_Procent decimal(18,4) default 0,
hml_Inh1_ProcentDo decimal(18,4) default 0,
hml_Inh2_Id int default 0,
hml_Inh2_Procent decimal(18,4) default 0,
hml_Inh2_ProcentDo decimal(18,4) default 0,
hml_Inh3_Id int default 0,
hml_Inh3_Procent decimal(18,4) default 0,
hml_Inh3_ProcentDo decimal(18,4) default 0,
hml_Inh4_Id int default 0,
hml_Inh4_Procent decimal(18,4) default 0,
hml_Inh4_ProcentDo decimal(18,4) default 0,
hml_Inh5_Id int default 0,
hml_Inh5_Procent decimal(18,4) default 0,
hml_Inh5_ProcentDo decimal(18,4) default 0,
hml_Inh6_Id int default 0,
hml_Inh6_Procent decimal(18,4) default 0,
hml_Inh6_ProcentDo decimal(18,4) default 0,
hml_Inh7_Id int default 0,
hml_Inh7_Procent decimal(18,4) default 0,
hml_Inh7_ProcentDo decimal(18,4) default 0,
hml_Inh8_Id int default 0,
hml_Inh8_Procent decimal(18,4) default 0,
hml_Inh8_ProcentDo decimal(18,4) default 0,
hml_Inh9_Id int default 0,
hml_Inh9_Procent decimal(18,4) default 0,
hml_Inh9_ProcentDo decimal(18,4) default 0,
hml_Inh10_Id int default 0,
hml_Inh10_Procent decimal(18,4) default 0,
hml_Inh10_ProcentDo decimal(18,4) default 0,
hml_Inh11_Id int default 0,
hml_Inh11_Procent decimal(18,4) default 0,
hml_Inh11_ProcentDo decimal(18,4) default 0,
hml_Inh12_Id int default 0,
hml_Inh12_Procent decimal(18,4) default 0,
hml_Inh12_ProcentDo decimal(18,4) default 0,
hml_Inh13_Id int default 0,
hml_Inh13_Procent decimal(18,4) default 0,
hml_Inh13_ProcentDo decimal(18,4) default 0,
hml_Inh14_Id int default 0,
hml_Inh14_Procent decimal(18,4) default 0,
hml_Inh14_ProcentDo decimal(18,4) default 0,
hml_Inh15_Id int default 0,
hml_Inh15_Procent decimal(18,4) default 0,
hml_Inh15_ProcentDo decimal(18,4) default 0,
hml_Inh16_Id int default 0,
hml_Inh16_Procent decimal(18,4) default 0,
hml_Inh16_ProcentDo decimal(18,4) default 0,
hml_Inh17_Id int default 0,
hml_Inh17_Procent decimal(18,4) default 0,
hml_Inh17_ProcentDo decimal(18,4) default 0,
hml_Inh18_Id int default 0,
hml_Inh18_Procent decimal(18,4) default 0,
hml_Inh18_ProcentDo decimal(18,4) default 0,
hml_Inh19_Id int default 0,
hml_Inh19_Procent decimal(18,4) default 0,
hml_Inh19_ProcentDo decimal(18,4) default 0,
hml_Behelter nvarchar(max) default '',
hml_OpeNumer int default 0,
hml_Text1 nvarchar(max) default '',
hml_Text2 nvarchar(max) default '',
hml_Text3 nvarchar(max) default '',
hml_Text4 nvarchar(max) default ''
)
GO
@@ -0,0 +1 @@
CREATE SCHEMA [myconsult_haftmittel]