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
+71
View File
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<Name>SQL</Name>
<SchemaVersion>2.0</SchemaVersion>
<ProjectVersion>4.1</ProjectVersion>
<ProjectGuid>{e37f93fc-c4a1-47e8-988f-3f91c68a5a1f}</ProjectGuid>
<DSP>Microsoft.Data.Tools.Schema.Sql.Sql120DatabaseSchemaProvider</DSP>
<OutputType>Database</OutputType>
<RootPath>
</RootPath>
<RootNamespace>SQL</RootNamespace>
<AssemblyName>SQL</AssemblyName>
<ModelCollation>1033, CI</ModelCollation>
<DefaultFileStructure>BySchemaAndSchemaType</DefaultFileStructure>
<DeployToDatabase>True</DeployToDatabase>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetLanguage>CS</TargetLanguage>
<AppDesignerFolder>Properties</AppDesignerFolder>
<SqlServerVerification>False</SqlServerVerification>
<IncludeCompositeObjects>True</IncludeCompositeObjects>
<TargetDatabaseSet>True</TargetDatabaseSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<BuildScriptName>$(MSBuildProjectName).sql</BuildScriptName>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<BuildScriptName>$(MSBuildProjectName).sql</BuildScriptName>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion>
<!-- Default to the v11.0 targets path if the targets file for the current VS version is not found -->
<SSDTExists Condition="Exists('$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets')">True</SSDTExists>
<VisualStudioVersion Condition="'$(SSDTExists)' == ''">11.0</VisualStudioVersion>
</PropertyGroup>
<Import Condition="'$(SQLDBExtensionsRefPath)' != ''" Project="$(SQLDBExtensionsRefPath)\Microsoft.Data.Tools.Schema.SqlTasks.targets" />
<Import Condition="'$(SQLDBExtensionsRefPath)' == ''" Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" />
<ItemGroup>
<Folder Include="Properties" />
<Folder Include="myconsult_haftmittel" />
<Folder Include="myconsult_haftmittel\Tables" />
<Folder Include="myconsult_haftmittel\Procedures" />
</ItemGroup>
<ItemGroup>
<None Include="myconsult_haftmittel\Tables\FK_Lista_OpeKarty.sql" />
<None Include="myconsult_haftmittel\Tables\FK_Lista_TwrKarty.sql" />
<None Include="myconsult_haftmittel\Tables\Lista.sql" />
<None Include="myconsult_haftmittel\myconsult_haftmittel schema.sql" />
<None Include="myconsult_haftmittel\Procedures\ListaSkladnikow.sql" />
</ItemGroup>
</Project>
@@ -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]