waldek 4 anni fa
parent
commit
551b3815b2

+ 22
- 6
JPK_VDEK/App.config Vedi File

@@ -1,12 +1,28 @@
1
-<?xml version="1.0" encoding="utf-8" ?>
1
+<?xml version="1.0" encoding="utf-8"?>
2 2
 <configuration>
3
-    <startup> 
4
-        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
5
-    </startup>
3
+  <configSections>
4
+    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
5
+    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
6
+  </configSections>
7
+  <startup>
8
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/>
9
+  </startup>
6 10
   <appSettings>
7
-    <add key="JPKOUT" value="\\ndomena.gl.corp\JPK\PRO"/>
11
+    <add key="JPKOUT" value="C:/BK"/>
8 12
     <add key="REJOUT" value="\\ndomena.gl.corp\JPK\PRO"/>
9 13
     <add key="DBOUT" value="C:/DB"/>
10 14
     <add key="ClientSettingsProvider.ServiceUri" value=""/>
11 15
   </appSettings>
12
-</configuration>
16
+  <entityFramework>
17
+    <providers>
18
+      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
19
+      <provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6"/>
20
+    </providers>
21
+  </entityFramework>
22
+  <system.data>
23
+    <DbProviderFactories>
24
+      <remove invariant="System.Data.SQLite.EF6"/>
25
+      <add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6"/>
26
+    <remove invariant="System.Data.SQLite"/><add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/></DbProviderFactories>
27
+  </system.data>
28
+</configuration>

+ 2
- 0
JPK_VDEK/Core/JG.cs Vedi File

@@ -26,6 +26,8 @@ namespace JPK_VDEK.Core
26 26
             s.Wojewodztwo = "dolnośląskie";
27 27
             s.Dom = "";
28 28
             s.Budynek = "42b";
29
+            s.email = "aleksandra.kocon@ideagetin.pl";
30
+            s.telefon = "667897592";
29 31
             list.Add(s);
30 32
             s = new SpName();
31 33
             s.Kod = "GLSK";

+ 48
- 1
JPK_VDEK/Core/JpkData.cs Vedi File

@@ -75,11 +75,28 @@ namespace JPK_VDEK
75 75
 
76 76
             aJpk.Cel = new TCels();
77 77
             aJpk.Urz = new US();
78
+            aJpk.allGtu1 = 0;
79
+            aJpk.allGtu2 = 0;
80
+            aJpk.allGtu3 = 0;
81
+            aJpk.allGtu4 = 0;
82
+            aJpk.allGtu5 = 0;
83
+            aJpk.allGtu6 = 0;
84
+            aJpk.allGtu7 = 0;
85
+            aJpk.allGtu8 = 0;
86
+            aJpk.allGtu9 = 0;
87
+            aJpk.allGtu10 = 0;
88
+            aJpk.allGtu11 = 0;
89
+            aJpk.allGtu12 = 0;
90
+            aJpk.allGtu13 = 0;
91
+            aJpk.allmpp = 0;
92
+            aJpk.alltp = 0;
93
+            aJpk.allmruz = 0;
78 94
         }
79 95
     }
80 96
     public class JJPKZakupWierszExt: JPKEwidencjaZakupWiersz
81 97
     {
82 98
         public string TypDokumentuExt { get; set; }
99
+        public string DokKS { get; set; }
83 100
         public JJPKZakupWierszExt()
84 101
         {
85 102
             TypDokumentuExt = "";
@@ -112,7 +129,7 @@ namespace JPK_VDEK
112 129
     public class JPKSprzedazWierszExt : JPKEwidencjaSprzedazWiersz
113 130
     {
114 131
         public string TypDokumentuExt { get; set; }
115
-
132
+        public string DokKS { get; set; }
116 133
         public JPKSprzedazWierszExt()
117 134
         {
118 135
             TypDokumentuExt = "";
@@ -232,6 +249,19 @@ namespace JPK_VDEK
232 249
 
233 250
         public JPKSumyKontrola Sumy { get; set; }
234 251
         private string outscalony;
252
+        private string outdb;
253
+        public string outDB
254
+        {
255
+            get
256
+            {
257
+                return outdb;
258
+            }
259
+            set
260
+            {
261
+                outdb = value;
262
+                NotifyPropertyChanged();
263
+            }
264
+        }
235 265
         public string outScalony 
236 266
         { 
237 267
             get
@@ -363,6 +393,7 @@ namespace JPK_VDEK
363 393
         public TCels Cel { get; set; }
364 394
         public US Urz { get; set; }
365 395
         public bool wczytalemGL { get; set; }
396
+        public bool wczytalemIL { get; set; }
366 397
 
367 398
         private String uzKorekty;
368 399
         public String UzKorekty
@@ -378,5 +409,21 @@ namespace JPK_VDEK
378 409
                 NotifyPropertyChanged();
379 410
             }
380 411
         }
412
+        public int allGtu1 { get; set; }
413
+        public int allGtu2 { get; set; }
414
+        public int allGtu3 { get; set; }
415
+        public int allGtu4 { get; set; }
416
+        public int allGtu5 { get; set; }
417
+        public int allGtu6 { get; set; }
418
+        public int allGtu7 { get; set; }
419
+        public int allGtu8 { get; set; }
420
+        public int allGtu9 { get; set; }
421
+        public int allGtu10 { get; set; }
422
+        public int allGtu11 { get; set; }
423
+        public int allGtu12 { get; set; }
424
+        public int allGtu13 { get; set; }
425
+        public int allmpp { get; set; }
426
+        public int alltp { get; set; }
427
+        public int allmruz { get; set; }
381 428
     }
382 429
 }

+ 72
- 2
JPK_VDEK/JPK_VDEK.csproj Vedi File

@@ -1,5 +1,6 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <Import Project="..\packages\EntityFramework.6.3.0\build\EntityFramework.props" Condition="Exists('..\packages\EntityFramework.6.3.0\build\EntityFramework.props')" />
3 4
   <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4 5
   <PropertyGroup>
5 6
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -8,15 +9,18 @@
8 9
     <OutputType>WinExe</OutputType>
9 10
     <RootNamespace>JPK_VDEK</RootNamespace>
10 11
     <AssemblyName>JPK_VDEK</AssemblyName>
11
-    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
12
+    <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
12 13
     <FileAlignment>512</FileAlignment>
13 14
     <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
14 15
     <WarningLevel>4</WarningLevel>
15 16
     <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
16 17
     <Deterministic>true</Deterministic>
18
+    <NuGetPackageImportStamp>
19
+    </NuGetPackageImportStamp>
20
+    <TargetFrameworkProfile />
17 21
   </PropertyGroup>
18 22
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19
-    <PlatformTarget>AnyCPU</PlatformTarget>
23
+    <PlatformTarget>x64</PlatformTarget>
20 24
     <DebugSymbols>true</DebugSymbols>
21 25
     <DebugType>full</DebugType>
22 26
     <Optimize>false</Optimize>
@@ -38,9 +42,60 @@
38 42
     <ApplicationIcon>trash_empty_ico.ico</ApplicationIcon>
39 43
   </PropertyGroup>
40 44
   <ItemGroup>
45
+    <Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
46
+      <HintPath>..\packages\EntityFramework.6.3.0\lib\net45\EntityFramework.dll</HintPath>
47
+    </Reference>
48
+    <Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
49
+      <HintPath>..\packages\EntityFramework.6.3.0\lib\net45\EntityFramework.SqlServer.dll</HintPath>
50
+    </Reference>
51
+    <Reference Include="Microsoft.Data.Sqlite, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
52
+      <HintPath>..\packages\Microsoft.Data.Sqlite.Core.5.0.0\lib\netstandard2.0\Microsoft.Data.Sqlite.dll</HintPath>
53
+    </Reference>
54
+    <Reference Include="Plugin.SQLiteConnection, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
55
+      <HintPath>..\packages\Plugin.SQLiteConnection.1.0.0.0\lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10+UAP10\Plugin.SQLiteConnection.dll</HintPath>
56
+    </Reference>
57
+    <Reference Include="Plugin.SQLiteConnection.Abstractions, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
58
+      <HintPath>..\packages\Plugin.SQLiteConnection.1.0.0.0\lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10+UAP10\Plugin.SQLiteConnection.Abstractions.dll</HintPath>
59
+    </Reference>
60
+    <Reference Include="SQLite-net, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
61
+      <HintPath>..\packages\sqlite-net-pcl.1.1.1\lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\SQLite-net.dll</HintPath>
62
+    </Reference>
63
+    <Reference Include="SQLitePCL.raw, Version=0.8.5.0, Culture=neutral, processorArchitecture=MSIL">
64
+      <HintPath>..\packages\SQLitePCL.raw.0.8.6\lib\net45\SQLitePCL.raw.dll</HintPath>
65
+    </Reference>
66
+    <Reference Include="SQLitePCLRaw.batteries_v2, Version=2.0.4.976, Culture=neutral, PublicKeyToken=8226ea5df37bcae9, processorArchitecture=MSIL">
67
+      <HintPath>..\packages\SQLitePCLRaw.bundle_e_sqlite3.2.0.4\lib\net461\SQLitePCLRaw.batteries_v2.dll</HintPath>
68
+    </Reference>
69
+    <Reference Include="SQLitePCLRaw.core, Version=2.0.4.976, Culture=neutral, PublicKeyToken=1488e028ca7ab535, processorArchitecture=MSIL">
70
+      <HintPath>..\packages\SQLitePCLRaw.core.2.0.4\lib\netstandard2.0\SQLitePCLRaw.core.dll</HintPath>
71
+    </Reference>
72
+    <Reference Include="SQLitePCLRaw.nativelibrary, Version=2.0.4.976, Culture=neutral, PublicKeyToken=502ed628492ab262, processorArchitecture=MSIL">
73
+      <HintPath>..\packages\SQLitePCLRaw.bundle_e_sqlite3.2.0.4\lib\net461\SQLitePCLRaw.nativelibrary.dll</HintPath>
74
+    </Reference>
75
+    <Reference Include="SQLitePCLRaw.provider.dynamic_cdecl, Version=2.0.4.976, Culture=neutral, PublicKeyToken=b68184102cba0b3b, processorArchitecture=MSIL">
76
+      <HintPath>..\packages\SQLitePCLRaw.provider.dynamic_cdecl.2.0.4\lib\netstandard2.0\SQLitePCLRaw.provider.dynamic_cdecl.dll</HintPath>
77
+    </Reference>
41 78
     <Reference Include="System" />
79
+    <Reference Include="System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
80
+      <HintPath>..\packages\System.Buffers.4.4.0\lib\netstandard2.0\System.Buffers.dll</HintPath>
81
+    </Reference>
82
+    <Reference Include="System.ComponentModel.DataAnnotations" />
42 83
     <Reference Include="System.Configuration" />
43 84
     <Reference Include="System.Data" />
85
+    <Reference Include="System.Data.SQLite, Version=1.0.106.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=AMD64">
86
+      <SpecificVersion>False</SpecificVersion>
87
+      <HintPath>..\..\..\..\..\bk\sqlite-netFx46-static-binary-bundle-x64-2015-1.0.113.0\System.Data.SQLite.dll</HintPath>
88
+    </Reference>
89
+    <Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
90
+      <HintPath>..\packages\System.Memory.4.5.3\lib\netstandard2.0\System.Memory.dll</HintPath>
91
+    </Reference>
92
+    <Reference Include="System.Numerics" />
93
+    <Reference Include="System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
94
+      <HintPath>..\packages\System.Numerics.Vectors.4.4.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
95
+    </Reference>
96
+    <Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
97
+      <HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
98
+    </Reference>
44 99
     <Reference Include="System.Xml" />
45 100
     <Reference Include="Microsoft.CSharp" />
46 101
     <Reference Include="System.Core" />
@@ -201,6 +256,7 @@
201 256
       <Generator>PublicResXFileCodeGenerator</Generator>
202 257
       <LastGenOutput>Resources.Designer.cs</LastGenOutput>
203 258
     </EmbeddedResource>
259
+    <None Include="packages.config" />
204 260
     <None Include="Properties\Settings.settings">
205 261
       <Generator>SettingsSingleFileGenerator</Generator>
206 262
       <LastGenOutput>Settings.Designer.cs</LastGenOutput>
@@ -219,4 +275,18 @@
219 275
     <Resource Include="icons8-browse-folder-32.png" />
220 276
   </ItemGroup>
221 277
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
278
+  <Import Project="..\packages\SQLitePCL.raw.0.8.6\build\net45\SQLitePCL.raw.targets" Condition="Exists('..\packages\SQLitePCL.raw.0.8.6\build\net45\SQLitePCL.raw.targets')" />
279
+  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
280
+    <PropertyGroup>
281
+      <ErrorText>Ten projekt zawiera odwołania do pakietów NuGet, których nie ma na tym komputerze. Użyj przywracania pakietów NuGet, aby je pobrać. Aby uzyskać więcej informacji, zobacz http://go.microsoft.com/fwlink/?LinkID=322105. Brakujący plik: {0}.</ErrorText>
282
+    </PropertyGroup>
283
+    <Error Condition="!Exists('..\packages\SQLitePCL.raw.0.8.6\build\net45\SQLitePCL.raw.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\SQLitePCL.raw.0.8.6\build\net45\SQLitePCL.raw.targets'))" />
284
+    <Error Condition="!Exists('..\packages\SQLitePCLRaw.lib.e_sqlite3.2.0.4\build\net461\SQLitePCLRaw.lib.e_sqlite3.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\SQLitePCLRaw.lib.e_sqlite3.2.0.4\build\net461\SQLitePCLRaw.lib.e_sqlite3.targets'))" />
285
+    <Error Condition="!Exists('..\packages\EntityFramework.6.3.0\build\EntityFramework.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\EntityFramework.6.3.0\build\EntityFramework.props'))" />
286
+    <Error Condition="!Exists('..\packages\EntityFramework.6.3.0\build\EntityFramework.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\EntityFramework.6.3.0\build\EntityFramework.targets'))" />
287
+    <Error Condition="!Exists('..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets'))" />
288
+  </Target>
289
+  <Import Project="..\packages\SQLitePCLRaw.lib.e_sqlite3.2.0.4\build\net461\SQLitePCLRaw.lib.e_sqlite3.targets" Condition="Exists('..\packages\SQLitePCLRaw.lib.e_sqlite3.2.0.4\build\net461\SQLitePCLRaw.lib.e_sqlite3.targets')" />
290
+  <Import Project="..\packages\EntityFramework.6.3.0\build\EntityFramework.targets" Condition="Exists('..\packages\EntityFramework.6.3.0\build\EntityFramework.targets')" />
291
+  <Import Project="..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets" Condition="Exists('..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets')" />
222 292
 </Project>

+ 1
- 1
JPK_VDEK/JpkSap.xaml Vedi File

@@ -8,7 +8,7 @@
8 8
     <Grid Margin="0,0,10.2,10">
9 9
         <Label Content="Cel złożenia" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top"/>
10 10
         <Label Content="Urząd" HorizontalAlignment="Left" Margin="10,41,0,0" VerticalAlignment="Top"/>
11
-        <Button Content="5. Wygeneruj" HorizontalAlignment="Left" Margin="363,80,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/>
11
+        <Button Content="5. Wygeneruj tylko dla SAP" HorizontalAlignment="Left" Margin="279,80,0,0" VerticalAlignment="Top" Width="159" Click="Button_Click"/>
12 12
         <ComboBox HorizontalAlignment="Left" Name="cCel" Margin="114,13,0,0" VerticalAlignment="Top" Width="324" SelectionChanged="cCel_SelectionChanged"/>
13 13
         <ComboBox HorizontalAlignment="Left"  Name="cUrz" Margin="114,44,0,0" VerticalAlignment="Top" Width="324" SelectionChanged="cUrz_SelectionChanged"/>
14 14
 

+ 9
- 0
JPK_VDEK/JpkSap.xaml.cs Vedi File

@@ -48,6 +48,15 @@ namespace JPK_VDEK
48 48
                 JpkData.getJpk().setUrzad(urz);
49 49
                 JPK jpk = JpkData.getBaseJpk();
50 50
                 Mouse.OverrideCursor = null;
51
+                foreach (var spw in jpk.Ewidencja.SprzedazWiersz)
52
+                {
53
+                    if (spw.SprzedazVAT_Marza == 0 && spw.K_10 == 0 && spw.K_15 == 0 && spw.K_17 == 0 && spw.K_18 == 0 && spw.K_16 == 0 && spw.K_14 == 0 && spw.K_13 == 0 && spw.K_20 == 0 && spw.K_21 == 0 && spw.K_22 == 0 && spw.K_23 == 0 && spw.K_24 == 0 && spw.K_25 == 0 && spw.K_26 == 0 && spw.K_27 == 0 && spw.K_28 == 0 && spw.K_29 == 0 && spw.K_30 == 0 && spw.K_31 == 0 && spw.K_32 == 0 && spw.K_33 == 0 && spw.K_34 == 0 && spw.K_35 == 0
54
+                  && spw.K_36 == 0)
55
+                    {
56
+                        bool f1 = false;
57
+                    }
58
+                }
59
+              
51 60
                 jpk.SaveToFile(s);
52 61
                 MessageBox.Show("Wygenerowano plik JPK", "JPK_VDEK");
53 62
             }

+ 2
- 2
JPK_VDEK/Ogolne.xaml Vedi File

@@ -12,8 +12,8 @@
12 12
         </Grid.ColumnDefinitions>
13 13
         <Label Content="Podaj plik jpk IGL" HorizontalAlignment="Left" Margin="20,10,0,0" VerticalAlignment="Top" Width="123" Grid.ColumnSpan="2"/>
14 14
         <Label Content="Podaj plik jpk SAP" HorizontalAlignment="Left" Margin="20,41,0,0" VerticalAlignment="Top" Width="123" Grid.ColumnSpan="2"/>
15
-        <TextBox x:Name="tigl" HorizontalAlignment="Left" Height="23" Margin="119,13,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="411" Grid.Column="1"/>
16
-        <TextBox x:Name="tgl" HorizontalAlignment="Left" Height="23" Margin="119,44,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="411" Grid.Column="1"/>
15
+        <TextBox x:Name="tigl" HorizontalAlignment="Left" Height="23" Margin="119,13,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="411" Grid.Column="1" MaxLines="1"/>
16
+        <TextBox x:Name="tgl" HorizontalAlignment="Left" Height="23" Margin="119,44,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="411" Grid.Column="1" MaxLines="1"/>
17 17
         <Label Content="Podaj plik jpk scalony" HorizontalAlignment="Left" Margin="20,67,0,0" VerticalAlignment="Top" Width="123" Grid.ColumnSpan="2"/>
18 18
         <TextBox x:Name="tscal" HorizontalAlignment="Left" Height="23" Margin="119,72,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="411" Grid.Column="1"/>
19 19
         <Button HorizontalAlignment="Left" Margin="535,13,0,0" VerticalAlignment="Top" Width="26" Click="Button_Click" Grid.Column="1">

+ 1195
- 339
JPK_VDEK/Ogolne.xaml.cs
File diff soppresso perché troppo grande
Vedi File


+ 1
- 1
JPK_VDEK/OutFile.xaml Vedi File

@@ -12,7 +12,7 @@
12 12
         <Label Content="Plik JPK Vat DB" HorizontalAlignment="Left" Margin="20,71,0,0" VerticalAlignment="Top" RenderTransformOrigin="-3.579,-0.507"/>
13 13
         <TextBox x:Name="tsc" HorizontalAlignment="Left" Height="23" Margin="154,12,0,0" TextWrapping="Wrap" Text="{Binding outScalony}" VerticalAlignment="Top" Width="513"/>
14 14
         <TextBox x:Name="tsr" HorizontalAlignment="Left" Height="23" Margin="154,41,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="513"/>
15
-        <TextBox x:Name="tsdb" HorizontalAlignment="Left" Height="23" Margin="154,71,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="513"/>
15
+        <TextBox x:Name="tsdb" HorizontalAlignment="Left" Height="23" Margin="154,71,0,0" TextWrapping="Wrap" Text="{Binding outDB}" VerticalAlignment="Top" Width="513"/>
16 16
 
17 17
     </Grid>
18 18
     

+ 13
- 17
JPK_VDEK/Properties/Settings.Designer.cs Vedi File

@@ -1,28 +1,24 @@
1 1
 //------------------------------------------------------------------------------
2 2
 // <auto-generated>
3
-//     This code was generated by a tool.
4
-//     Runtime Version:4.0.30319.42000
3
+//     Ten kod został wygenerowany przez narzędzie.
4
+//     Wersja wykonawcza:4.0.30319.42000
5 5
 //
6
-//     Changes to this file may cause incorrect behavior and will be lost if
7
-//     the code is regenerated.
6
+//     Zmiany w tym pliku mogą spowodować nieprawidłowe zachowanie i zostaną utracone, jeśli
7
+//     kod zostanie ponownie wygenerowany.
8 8
 // </auto-generated>
9 9
 //------------------------------------------------------------------------------
10 10
 
11
-namespace JPK_VDEK.Properties
12
-{
13
-
14
-
11
+namespace JPK_VDEK.Properties {
12
+    
13
+    
15 14
     [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16
-    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17
-    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18
-    {
19
-
15
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.3.0.0")]
16
+    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17
+        
20 18
         private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21
-
22
-        public static Settings Default
23
-        {
24
-            get
25
-            {
19
+        
20
+        public static Settings Default {
21
+            get {
26 22
                 return defaultInstance;
27 23
             }
28 24
         }

+ 37
- 4
JPK_VDEK/SPwiersz.xaml Vedi File

@@ -4,9 +4,9 @@
4 4
              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
5 5
              xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
6 6
              xmlns:local="clr-namespace:JPK_VDEK"
7
-             mc:Ignorable="d" Height="512.903" Width="871.939">
8
-    <Grid>
9
-        <DataGrid x:Name="spwiersz" ItemsSource="{Binding ViewSP}" HorizontalAlignment="Left" Height="461" Margin="0,42,0,0" AutoGenerateColumns="False" VerticalAlignment="Top" Width="856"  IsEnabled="True" IsReadOnly="True">
7
+             mc:Ignorable="d" Height="568.103" Width="871.939">
8
+    <Grid Height="558" VerticalAlignment="Top">
9
+        <DataGrid x:Name="spwiersz" ItemsSource="{Binding ViewSP}" HorizontalAlignment="Left" Margin="0,42,0,0" AutoGenerateColumns="False" Width="856"  IsEnabled="True" IsReadOnly="True" Height="420" VerticalAlignment="Top">
10 10
             <DataGrid.Columns>
11 11
                 <DataGridTextColumn Header="" Binding="{Binding LpSprzedazy}" >
12 12
                     <DataGridTextColumn.HeaderTemplate>
@@ -83,12 +83,45 @@
83 83
                 <DataGridTextColumn Header="K_35"  Binding="{Binding K_35}"/>
84 84
                 <DataGridTextColumn Header="K_36"  Binding="{Binding K_36}"/>
85 85
                 <DataGridTextColumn Header="SprzedazVAT_Marza"  Binding="{Binding SprzedazVAT_Marza}"/>
86
+                <DataGridTextColumn Header="Dok KS Sap"  Binding="{Binding DokKS}"/>
86 87
             </DataGrid.Columns>
87 88
         </DataGrid>
88 89
 
89 90
         <Label Content="Szukaj w pozycjach" HorizontalAlignment="Left" Margin="39,10,0,0" VerticalAlignment="Top"/>
90 91
         <TextBox x:Name="tsch" HorizontalAlignment="Left" Height="23" Margin="171,10,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="341"/>
91
-        <Button Content="Szukaj" HorizontalAlignment="Left" Margin="534,10,0,0" VerticalAlignment="Top" Width="75"/>
92
+        <Button Content="Szukaj" HorizontalAlignment="Left" Margin="534,10,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/>
93
+        <Label Content="GTU07" HorizontalAlignment="Left" Margin="38,495,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
94
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="101,495,0,0" TextWrapping="Wrap" Text="{Binding allGtu7}" VerticalAlignment="Top" Width="61"/>
95
+        <Label Content="GTU08" HorizontalAlignment="Left" Margin="182,495,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
96
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="245,495,0,0" TextWrapping="Wrap" Text="{Binding allGtu8}" VerticalAlignment="Top" Width="61"/>
97
+        <Label Content="GTU09" HorizontalAlignment="Left" Margin="322,495,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
98
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="385,495,0,0" TextWrapping="Wrap" Text="{Binding allGtu9}" VerticalAlignment="Top" Width="61"/>
99
+        <Label Content="GTU10" HorizontalAlignment="Left" Margin="458,495,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
100
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="521,495,0,0" TextWrapping="Wrap" Text="{Binding allGtu10}" VerticalAlignment="Top" Width="61"/>
101
+        <Label Content="GTU11" HorizontalAlignment="Left" Margin="594,495,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
102
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="657,495,0,0" TextWrapping="Wrap" Text="{Binding allGtu11}" VerticalAlignment="Top" Width="61"/>
103
+        <Label Content="GTU12" HorizontalAlignment="Left" Margin="732,495,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
104
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="795,495,0,0" TextWrapping="Wrap" Text="{Binding allGtu12}" VerticalAlignment="Top" Width="61"/>
105
+        <Label Content="GTU01" HorizontalAlignment="Left" Margin="38,467,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
106
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="101,467,0,0" TextWrapping="Wrap" Text="{Binding allGtu1}" VerticalAlignment="Top" Width="61"/>
107
+        <Label Content="GTU02" HorizontalAlignment="Left" Margin="182,467,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
108
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="245,467,0,0" TextWrapping="Wrap" Text="{Binding allGtu2}" VerticalAlignment="Top" Width="61"/>
109
+        <Label Content="GTU03" HorizontalAlignment="Left" Margin="322,467,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
110
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="385,467,0,0" TextWrapping="Wrap" Text="{Binding allGtu3}" VerticalAlignment="Top" Width="61"/>
111
+        <Label Content="GTU04" HorizontalAlignment="Left" Margin="458,467,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
112
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="521,467,0,0" TextWrapping="Wrap" Text="{Binding allGtu4}" VerticalAlignment="Top" Width="61"/>
113
+        <Label Content="GTU05" HorizontalAlignment="Left" Margin="594,467,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
114
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="657,467,0,0" TextWrapping="Wrap" Text="{Binding allGtu5}" VerticalAlignment="Top" Width="61"/>
115
+        <Label Content="GTU06" HorizontalAlignment="Left" Margin="732,467,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
116
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="795,467,0,0" TextWrapping="Wrap" Text="{Binding allGtu6}" VerticalAlignment="Top" Width="61"/>
117
+        <Label Content="GTU13" HorizontalAlignment="Left" Margin="38,522,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
118
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="101,522,0,0" TextWrapping="Wrap" Text="{Binding allGtu13}" VerticalAlignment="Top" Width="61"/>
119
+        <Label Content="MPP" HorizontalAlignment="Left" Margin="182,522,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
120
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="245,522,0,0" TextWrapping="Wrap" Text="{Binding allmpp}" VerticalAlignment="Top" Width="61"/>
121
+        <Label Content="TP" HorizontalAlignment="Left" Margin="322,522,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
122
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="385,522,0,0" TextWrapping="Wrap" Text="{Binding alltp}" VerticalAlignment="Top" Width="61"/>
123
+        <Label Content="MR_UZ" HorizontalAlignment="Left" Margin="458,522,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.331,0.312"/>
124
+        <TextBox HorizontalAlignment="Left" Height="26" Margin="521,522,0,0" TextWrapping="Wrap" Text="{Binding allmruz}" VerticalAlignment="Top" Width="61"/>
92 125
 
93 126
     </Grid>
94 127
 </UserControl>

+ 8
- 0
JPK_VDEK/SPwiersz.xaml.cs Vedi File

@@ -24,5 +24,13 @@ namespace JPK_VDEK
24 24
         {
25 25
             InitializeComponent();
26 26
         }
27
+
28
+        private void Button_Click(object sender, RoutedEventArgs e)
29
+        {
30
+            string searchValue = tsch.Text;
31
+
32
+            spwiersz.SelectedIndex = 455;
33
+            spwiersz.ScrollIntoView(spwiersz.SelectedItem);
34
+        }
27 35
     }
28 36
 }

+ 1
- 0
JPK_VDEK/ZaWie.xaml Vedi File

@@ -37,6 +37,7 @@
37 37
                 <DataGridTextColumn Header="K_46" Binding="{Binding Path=K_46}"/>
38 38
                 <DataGridTextColumn Header="K_47" Binding="{Binding Path=K_47}"/>
39 39
                 <DataGridTextColumn Header="ZakupVAT_Marza" Binding="{Binding Path=ZakupVAT_Marza}"/>
40
+                <DataGridTextColumn Header="DokKS Sap" Binding="{Binding Path=DokKS}"/>
40 41
             </DataGrid.Columns>
41 42
         </DataGrid>
42 43
 

+ 22
- 0
JPK_VDEK/packages.config Vedi File

@@ -0,0 +1,22 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<packages>
3
+  <package id="EntityFramework" version="6.3.0" targetFramework="net472" />
4
+  <package id="Microsoft.Data.Sqlite" version="5.0.0" targetFramework="net472" />
5
+  <package id="Microsoft.Data.Sqlite.Core" version="5.0.0" targetFramework="net472" />
6
+  <package id="Plugin.SQLiteConnection" version="1.0.0.0" targetFramework="net472" />
7
+  <package id="sqlite-net-pcl" version="1.1.1" targetFramework="net472" />
8
+  <package id="SQLitePCL.raw" version="0.8.6" targetFramework="net472" />
9
+  <package id="SQLitePCLRaw.bundle_e_sqlite3" version="2.0.4" targetFramework="net472" />
10
+  <package id="SQLitePCLRaw.core" version="2.0.4" targetFramework="net472" />
11
+  <package id="SQLitePCLRaw.lib.e_sqlite3" version="2.0.4" targetFramework="net472" />
12
+  <package id="SQLitePCLRaw.provider.dynamic_cdecl" version="2.0.4" targetFramework="net472" />
13
+  <package id="Stub.System.Data.SQLite.Core.NetFramework" version="1.0.113.3" targetFramework="net472" />
14
+  <package id="System.Buffers" version="4.4.0" targetFramework="net472" />
15
+  <package id="System.Data.SQLite" version="1.0.113.6" targetFramework="net472" />
16
+  <package id="System.Data.SQLite.Core" version="1.0.113.6" targetFramework="net472" />
17
+  <package id="System.Data.SQLite.EF6" version="1.0.113.0" targetFramework="net472" />
18
+  <package id="System.Data.SQLite.Linq" version="1.0.113.0" targetFramework="net472" />
19
+  <package id="System.Memory" version="4.5.3" targetFramework="net472" />
20
+  <package id="System.Numerics.Vectors" version="4.4.0" targetFramework="net472" />
21
+  <package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net472" />
22
+</packages>