waldek 5 лет назад
Родитель
Сommit
962effbf74
100 измененных файлов: 60806 добавлений и 0 удалений
  1. 22
    0
      JPK_v1.sln
  2. 294
    0
      JPK_v1/Constans/JG.cs
  3. 71
    0
      JPK_v1/Constans/TCel.cs
  4. 34
    0
      JPK_v1/Constans/US.cs
  5. 31
    0
      JPK_v1/Constans/Waluta.cs
  6. 16
    0
      JPK_v1/Core/ErrorMessage.cs
  7. 19
    0
      JPK_v1/Core/SpCtrl.cs
  8. 45
    0
      JPK_v1/Dzienik.Designer.cs
  9. 19
    0
      JPK_v1/Dzienik.cs
  10. 120
    0
      JPK_v1/Dzienik.resx
  11. 45
    0
      JPK_v1/DzienikCTRL.Designer.cs
  12. 19
    0
      JPK_v1/DzienikCTRL.cs
  13. 120
    0
      JPK_v1/DzienikCTRL.resx
  14. 59
    0
      JPK_v1/FA.Designer.cs
  15. 27
    0
      JPK_v1/FA.cs
  16. 120
    0
      JPK_v1/FA.resx
  17. 45
    0
      JPK_v1/FAPoz.Designer.cs
  18. 19
    0
      JPK_v1/FAPoz.cs
  19. 120
    0
      JPK_v1/FAPoz.resx
  20. 59
    0
      JPK_v1/FAPozCtrl.Designer.cs
  21. 19
    0
      JPK_v1/FAPozCtrl.cs
  22. 120
    0
      JPK_v1/FAPozCtrl.resx
  23. 45
    0
      JPK_v1/FA_Ctrl.Designer.cs
  24. 19
    0
      JPK_v1/FA_Ctrl.cs
  25. 120
    0
      JPK_v1/FA_Ctrl.resx
  26. 6445
    0
      JPK_v1/Faktury_VAT_-JPK_FA(3).Designer.cs
  27. 749
    0
      JPK_v1/Faktury_VAT_-JPK_FA(3).xsd
  28. 749
    0
      JPK_v1/Faktury_VAT_-JPK_FA(3)1.xsd
  29. 222
    0
      JPK_v1/Form1.Designer.cs
  30. 295
    0
      JPK_v1/Form1.cs
  31. 1256
    0
      JPK_v1/Form1.resx
  32. 379
    0
      JPK_v1/Header.Designer.cs
  33. 1315
    0
      JPK_v1/Header.cs
  34. 120
    0
      JPK_v1/Header.resx
  35. 378
    0
      JPK_v1/JPK_v1.csproj
  36. 20
    0
      JPK_v1/JPK_v1.sln
  37. 59
    0
      JPK_v1/KGZapis.Designer.cs
  38. 83
    0
      JPK_v1/KGZapis.cs
  39. 120
    0
      JPK_v1/KGZapis.resx
  40. 45
    0
      JPK_v1/KGZapisCTRL.Designer.cs
  41. 19
    0
      JPK_v1/KGZapisCTRL.cs
  42. 120
    0
      JPK_v1/KGZapisCTRL.resx
  43. 333
    0
      JPK_v1/Podmiot.Designer.cs
  44. 36
    0
      JPK_v1/Podmiot.cs
  45. 120
    0
      JPK_v1/Podmiot.resx
  46. 80
    0
      JPK_v1/Popup.Designer.cs
  47. 31
    0
      JPK_v1/Popup.cs
  48. 120
    0
      JPK_v1/Popup.resx
  49. 22
    0
      JPK_v1/Program.cs
  50. 56
    0
      JPK_v1/ProgresMy.cs
  51. 36
    0
      JPK_v1/Properties/AssemblyInfo.cs
  52. 63
    0
      JPK_v1/Properties/Resources.Designer.cs
  53. 117
    0
      JPK_v1/Properties/Resources.resx
  54. 26
    0
      JPK_v1/Properties/Settings.Designer.cs
  55. 7
    0
      JPK_v1/Properties/Settings.settings
  56. 113
    0
      JPK_v1/Rachunek.Designer.cs
  57. 27
    0
      JPK_v1/Rachunek.cs
  58. 120
    0
      JPK_v1/Rachunek.resx
  59. 59
    0
      JPK_v1/SP.Designer.cs
  60. 168
    0
      JPK_v1/SP.cs
  61. 120
    0
      JPK_v1/SP.resx
  62. 59
    0
      JPK_v1/SP_CTRL.Designer.cs
  63. 42
    0
      JPK_v1/SP_CTRL.cs
  64. 120
    0
      JPK_v1/SP_CTRL.resx
  65. 7225
    0
      JPK_v1/Schemat_JPK_FA(1)_v1-0.designer.cs
  66. 605
    0
      JPK_v1/Schemat_JPK_FA(1)_v1-0.xsd
  67. 7114
    0
      JPK_v1/Schemat_JPK_FA(2)_v1-0.Designer.cs
  68. 619
    0
      JPK_v1/Schemat_JPK_FA(2)_v1-0.xsd
  69. 6401
    0
      JPK_v1/Schemat_JPK_KR(1)_v1-0.Designer.cs
  70. 400
    0
      JPK_v1/Schemat_JPK_KR(1)_v1-0.xsd
  71. 459
    0
      JPK_v1/Schemat_JPK_VAT(1)_v1-0.xsd
  72. 6506
    0
      JPK_v1/Schemat_JPK_VAT(2)_v1-0.designer.cs
  73. 518
    0
      JPK_v1/Schemat_JPK_VAT(2)_v1-0.xsd
  74. 2770
    0
      JPK_v1/Schemat_JPK_VAT(3)_v1-1.Designer.cs
  75. 506
    0
      JPK_v1/Schemat_JPK_VAT(3)_v1-1.xsd
  76. 5347
    0
      JPK_v1/Schemat_JPK_WB(1)_v1-0.Designer.cs
  77. 220
    0
      JPK_v1/Schemat_JPK_WB(1)_v1-0.xsd
  78. 151
    0
      JPK_v1/Signed.cs
  79. 45
    0
      JPK_v1/Tax.Designer.cs
  80. 19
    0
      JPK_v1/Tax.cs
  81. 120
    0
      JPK_v1/Tax.resx
  82. 59
    0
      JPK_v1/WyciagWier.Designer.cs
  83. 56
    0
      JPK_v1/WyciagWier.cs
  84. 120
    0
      JPK_v1/WyciagWier.resx
  85. 59
    0
      JPK_v1/WyciagWierszCtrl.Designer.cs
  86. 46
    0
      JPK_v1/WyciagWierszCtrl.cs
  87. 120
    0
      JPK_v1/WyciagWierszCtrl.resx
  88. 59
    0
      JPK_v1/ZA.Designer.cs
  89. 79
    0
      JPK_v1/ZA.cs
  90. 120
    0
      JPK_v1/ZA.resx
  91. 59
    0
      JPK_v1/ZA_CTRL.Designer.cs
  92. 40
    0
      JPK_v1/ZA_CTRL.cs
  93. 120
    0
      JPK_v1/ZA_CTRL.resx
  94. 59
    0
      JPK_v1/ZOIS.Designer.cs
  95. 101
    0
      JPK_v1/ZOIS.cs
  96. 120
    0
      JPK_v1/ZOIS.resx
  97. 3
    0
      JPK_v1/app.config
  98. 2
    0
      JPK_v1/desktop.ini
  99. 4683
    0
      JPK_v1/initupload.designer.cs
  100. 0
    0
      JPK_v1/initupload.xsd

+ 22
- 0
JPK_v1.sln Просмотреть файл

@@ -0,0 +1,22 @@
1
+
2
+Microsoft Visual Studio Solution File, Format Version 12.00
3
+# Visual Studio 14
4
+VisualStudioVersion = 14.0.25420.1
5
+MinimumVisualStudioVersion = 10.0.40219.1
6
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JPK_v1", "JPK_v1\JPK_v1.csproj", "{74C85571-EB07-4F9F-9EF3-06EFE80950AC}"
7
+EndProject
8
+Global
9
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
10
+		Debug|Any CPU = Debug|Any CPU
11
+		Release|Any CPU = Release|Any CPU
12
+	EndGlobalSection
13
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
14
+		{74C85571-EB07-4F9F-9EF3-06EFE80950AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15
+		{74C85571-EB07-4F9F-9EF3-06EFE80950AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
16
+		{74C85571-EB07-4F9F-9EF3-06EFE80950AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
17
+		{74C85571-EB07-4F9F-9EF3-06EFE80950AC}.Release|Any CPU.Build.0 = Release|Any CPU
18
+	EndGlobalSection
19
+	GlobalSection(SolutionProperties) = preSolution
20
+		HideSolutionNode = FALSE
21
+	EndGlobalSection
22
+EndGlobal

+ 294
- 0
JPK_v1/Constans/JG.cs Просмотреть файл

@@ -0,0 +1,294 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+
6
+namespace JPK_v1.Constans
7
+{
8
+    public class JG
9
+    {
10
+        private List<SpName> list;
11
+        public JG()
12
+        {
13
+            list = new List<SpName>();
14
+            SpName s = new SpName();
15
+            s.Kod = "CARC";
16
+            s.Describe = "Idea Getin Leasing S.A.";
17
+            s.NIP = "5213482474";
18
+            s.Regon = "141374292";
19
+            s.Gmina = "Wrocław";
20
+            s.Kraj = "PL";
21
+            s.MiastoPoczta = "Wrocław";
22
+            s.Miejscowosc = "Wrocław";
23
+            s.Poczta = "53-611";
24
+            s.Powiat = "wrocławski";
25
+            s.Ulica = "Strzegomska";
26
+            s.Wojewodztwo = "dolnośląskie";
27
+            s.Dom = "";
28
+            s.Budynek = "42b";
29
+            list.Add(s);
30
+            s = new SpName();
31
+            s.Kod = "GLSK";
32
+            s.Describe = "Getin Leasing SKA";
33
+            s.NIP = "8992741240";
34
+            s.Regon = "022063779";
35
+            s.Gmina = "Wrocław";
36
+            s.Kraj = "PL";
37
+            s.MiastoPoczta = "Wrocław";
38
+            s.Miejscowosc = "Wrocław";
39
+            s.Poczta = "53-413";
40
+            s.Powiat = "wrocławski";
41
+            s.Ulica = "Gwiaździsta";
42
+            s.Wojewodztwo = "dolnośląskie";
43
+            s.Dom = "";
44
+            s.Budynek = "66";
45
+            list.Add(s);
46
+            s = new SpName();
47
+            s.Kod = "GLK2";
48
+            s.Describe = "Getin Leasing SKA 2";
49
+            s.NIP = "5272696521";
50
+            s.Regon = "146771566";
51
+            s.Gmina = "Wrocław";
52
+            s.Kraj = "PL";
53
+            s.MiastoPoczta = "Wrocław";
54
+            s.Miejscowosc = "Wrocław";
55
+            s.Poczta = "53-413";
56
+            s.Powiat = "wrocławski";
57
+            s.Ulica = "Gwiaździsta";
58
+            s.Wojewodztwo = "dolnośląskie";
59
+            s.Dom = "";
60
+            s.Budynek = "66";
61
+            list.Add(s);
62
+            s = new SpName();
63
+            s.Kod = "GLK3";
64
+            s.Describe = "Getin Leasing SKA 3";
65
+            s.NIP = "5272695935";
66
+            s.Regon = "146748930";
67
+            s.Gmina = "Wrocław";
68
+            s.Kraj = "PL";
69
+            s.MiastoPoczta = "Wrocław";
70
+            s.Miejscowosc = "Wrocław";
71
+            s.Poczta = "53-413";
72
+            s.Powiat = "wrocławski";
73
+            s.Ulica = "Gwiaździsta";
74
+            s.Wojewodztwo = "dolnośląskie";
75
+            s.Dom = "";
76
+            s.Budynek = "66";
77
+            list.Add(s);
78
+            s = new SpName();
79
+            s.Kod = "CFM1";
80
+            s.Describe = "Getin Fleet SA";
81
+            s.NIP = "8971699432";
82
+            s.Regon = "933036760";
83
+            s.Gmina = "Wrocław";
84
+            s.Kraj = "PL";
85
+            s.MiastoPoczta = "Wrocław";
86
+            s.Miejscowosc = "Wrocław";
87
+            s.Poczta = "53-413";
88
+            s.Powiat = "wrocławski";
89
+            s.Ulica = "Gwiaździsta";
90
+            s.Wojewodztwo = "dolnośląskie";
91
+            s.Dom = "";
92
+            s.Budynek = "66";
93
+            list.Add(s);
94
+            s = new SpName();
95
+            s.Kod = "PF00";
96
+            s.Describe = "EXPERT UBEZPIECZENIA SP. Z O.O.";
97
+            s.NIP = "8992494913";
98
+            s.Regon = "932970719";
99
+            s.Gmina = "Wrocław";
100
+            s.Kraj = "PL";
101
+            s.MiastoPoczta = "Wrocław";
102
+            s.Miejscowosc = "Wrocław";
103
+            s.Poczta = "53-413";
104
+            s.Powiat = "wrocławski";
105
+            s.Ulica = "Gwiaździsta";
106
+            s.Wojewodztwo = "dolnośląskie";
107
+            s.Dom = "";
108
+            s.Budynek = "66";
109
+            list.Add(s);
110
+            s = new SpName();
111
+            s.Kod = "PFSK";
112
+            s.Describe = "EXPERT UBEZPIECZENIA 1 SP. Z O.O.";
113
+            s.NIP = "8992739384";
114
+            s.Regon = "021981007";
115
+            s.Gmina = "Wrocław";
116
+            s.Kraj = "PL";
117
+            s.MiastoPoczta = "Wrocław";
118
+            s.Miejscowosc = "Wrocław";
119
+            s.Poczta = "53-413";
120
+            s.Powiat = "wrocławski";
121
+            s.Ulica = "Gwiaździsta";
122
+            s.Wojewodztwo = "dolnośląskie";
123
+            s.Dom = "";
124
+            s.Budynek = "66";
125
+            list.Add(s);
126
+            s = new SpName();
127
+            s.Kod = "GL00";
128
+            s.Describe = "Expert Finance Service Spółka Z Ograniczoną Odpowiedzialnością";
129
+            s.NIP = "8992777166";
130
+            s.Regon = "362987135";
131
+            s.Gmina = "Wrocław";
132
+            s.Kraj = "PL";
133
+            s.MiastoPoczta = "Wrocław";
134
+            s.Miejscowosc = "Wrocław";
135
+            s.Poczta = "53-413";
136
+            s.Powiat = "wrocławski";
137
+            s.Ulica = "Gwiaździsta";
138
+            s.Wojewodztwo = "dolnośląskie";
139
+            s.Dom = "";
140
+            s.Budynek = "66";
141
+            list.Add(s);
142
+            s = new SpName();
143
+            s.Kod = "GL02";
144
+            s.Describe = "GETIN LEASING 2 Sp. z o.o.";
145
+            s.NIP = "8992777172";
146
+            s.Regon = "362987388";
147
+            s.Gmina = "Wrocław";
148
+            s.Kraj = "PL";
149
+            s.MiastoPoczta = "Wrocław";
150
+            s.Miejscowosc = "Wrocław";
151
+            s.Poczta = "53-413";
152
+            s.Powiat = "wrocławski";
153
+            s.Ulica = "Gwiaździsta";
154
+            s.Wojewodztwo = "dolnośląskie";
155
+            s.Dom = "";
156
+            s.Budynek = "66";
157
+            list.Add(s);
158
+            s = new SpName();
159
+            s.Kod = "GL04";
160
+            s.Describe = "GETIN LEASING 4 Sp. z o.o.";
161
+            s.NIP = "8992777189";
162
+            s.Regon = "362987483";
163
+            s.Gmina = "Wrocław";
164
+            s.Kraj = "PL";
165
+            s.MiastoPoczta = "Wrocław";
166
+            s.Miejscowosc = "Wrocław";
167
+            s.Poczta = "53-413";
168
+            s.Powiat = "wrocławski";
169
+            s.Ulica = "Gwiaździsta";
170
+            s.Wojewodztwo = "dolnośląskie";
171
+            s.Dom = "";
172
+            s.Budynek = "66";
173
+            list.Add(s);
174
+            s = new SpName();
175
+            s.Kod = "GL05";
176
+            s.Describe = "GETIN LEASING  5 Sp. z o.o.";
177
+            s.NIP = "8992777195";
178
+            s.Regon = "362987550";
179
+            s.Gmina = "Wrocław";
180
+            s.Kraj = "PL";
181
+            s.MiastoPoczta = "Wrocław";
182
+            s.Miejscowosc = "Wrocław";
183
+            s.Poczta = "53-413";
184
+            s.Powiat = "wrocławski";
185
+            s.Ulica = "Gwiaździsta";
186
+            s.Wojewodztwo = "dolnośląskie";
187
+            s.Dom = "";
188
+            s.Budynek = "66";
189
+            list.Add(s);
190
+            s = new SpName();
191
+            s.Kod = "GK02";
192
+            s.Describe = "GETIN LEASING 2 Sp. z o.o. SK";
193
+            s.NIP = "8992779314";
194
+            s.Regon = "363193288";
195
+            s.Gmina = "Wrocław";
196
+            s.Kraj = "PL";
197
+            s.MiastoPoczta = "Wrocław";
198
+            s.Miejscowosc = "Wrocław";
199
+            s.Poczta = "53-413";
200
+            s.Powiat = "wrocławski";
201
+            s.Ulica = "Gwiaździsta";
202
+            s.Wojewodztwo = "dolnośląskie";
203
+            s.Dom = "";
204
+            s.Budynek = "66";
205
+            list.Add(s);
206
+            s = new SpName();
207
+            s.Kod = "GLK4";
208
+            s.Describe = "GETIN RENT Sp. z o.o.";
209
+            s.NIP = "8992777278";
210
+            s.Regon = "362987649";
211
+            s.Gmina = "Wrocław";
212
+            s.Kraj = "PL";
213
+            s.MiastoPoczta = "Wrocław";
214
+            s.Miejscowosc = "Wrocław";
215
+            s.Poczta = "53-413";
216
+            s.Powiat = "wrocławski";
217
+            s.Ulica = "Gwiaździsta";
218
+            s.Wojewodztwo = "dolnośląskie";
219
+            s.Dom = "";
220
+            s.Budynek = "66";
221
+            list.Add(s);
222
+            s = new SpName();
223
+            s.Kod = "EDB1";
224
+            s.Describe = "EUROPEJSKI DOM BROKERSKI SP. Z O.O.";
225
+            s.NIP = "8992739906";
226
+            s.Regon = "022027973";
227
+            s.Gmina = "Wrocław";
228
+            s.Kraj = "PL";
229
+            s.MiastoPoczta = "Wrocław";
230
+            s.Miejscowosc = "Wrocław";
231
+            s.Poczta = "53-413";
232
+            s.Powiat = "wrocławski";
233
+            s.Ulica = "Gwiaździsta";
234
+            s.Wojewodztwo = "dolnośląskie";
235
+            s.Dom = "";
236
+            s.Budynek = "66";
237
+            list.Add(s);
238
+            s = new SpName();
239
+            s.Kod = "MEZO";
240
+            s.Describe = "MULTIFINANCE EXPERT SP. Z O.O.";
241
+            s.NIP = "8992739177";
242
+            s.Regon = "022003665";
243
+            s.Gmina = "Wrocław";
244
+            s.Kraj = "PL";
245
+            s.MiastoPoczta = "Wrocław";
246
+            s.Miejscowosc = "Wrocław";
247
+            s.Poczta = "53-413";
248
+            s.Powiat = "wrocławski";
249
+            s.Ulica = "Gwiaździsta";
250
+            s.Wojewodztwo = "dolnośląskie";
251
+            s.Dom = "";
252
+            s.Budynek = "66";
253
+            list.Add(s);
254
+            s = new SpName();
255
+            s.Kod = "MFE1";
256
+            s.Describe = "MFE MULTIAGENT SP. Z O.O.";
257
+            s.NIP = "5213630911";
258
+            s.Regon = "146111864";
259
+            s.Gmina = "Wrocław";
260
+            s.Kraj = "PL";
261
+            s.MiastoPoczta = "Wrocław";
262
+            s.Miejscowosc = "Wrocław";
263
+            s.Poczta = "53-413";
264
+            s.Powiat = "wrocławski";
265
+            s.Ulica = "Gwiaździsta";
266
+            s.Wojewodztwo = "dolnośląskie";
267
+            s.Dom = "";
268
+            s.Budynek = "66";
269
+            list.Add(s);
270
+        }
271
+        public List<SpName> Lista
272
+        {
273
+            get { return list; }
274
+        }
275
+    }
276
+
277
+    public class SpName
278
+    {
279
+        public String Kod { get; set; }
280
+        public String Describe { get; set; }
281
+        public String NIP { get; set; }
282
+        public String Regon { get; set; }
283
+        public String Kraj { get; set; }
284
+        public String Powiat { get; set; }
285
+        public String Dom { get; set; }
286
+        public String Budynek { get; set; }
287
+        public String Gmina { get; set; }
288
+        public String Ulica { get; set; }
289
+        public String Poczta { get; set; }
290
+        public String MiastoPoczta { get; set; }
291
+        public String Wojewodztwo { get; set; }
292
+        public String Miejscowosc { get; set; }
293
+    }
294
+}

+ 71
- 0
JPK_v1/Constans/TCel.cs Просмотреть файл

@@ -0,0 +1,71 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+
6
+namespace JPK_v1.Constans
7
+{
8
+   
9
+
10
+    public class TCels
11
+    {
12
+        private List<TCel> list;
13
+        public TCels()
14
+        {
15
+            list = new List<TCel>();
16
+            TCel c = new TCel();
17
+            c.Key = 0;
18
+            c.Describe = "złożenie po raz pierwszy deklaracji za dany okres";
19
+            list.Add(c);
20
+            c = new TCel();
21
+            c.Key = 1;
22
+            c.Describe = "korekta deklaracji 1";
23
+            list.Add(c);
24
+            c = new TCel();
25
+            c.Key = 2;
26
+            c.Describe = "korekta deklaracji 2";
27
+            list.Add(c);
28
+            c = new TCel();
29
+            c.Key = 3;
30
+            c.Describe = "korekta deklaracji 3";
31
+            list.Add(c);
32
+            c = new TCel();
33
+            c.Key = 4;
34
+            c.Describe = "korekta deklaracji 4";
35
+            list.Add(c);
36
+            c = new TCel();
37
+            c.Key = 5;
38
+            c.Describe = "korekta deklaracji 5";
39
+            list.Add(c);
40
+            c = new TCel();
41
+            c.Key = 6;
42
+            c.Describe = "korekta deklaracji 6";
43
+            list.Add(c);
44
+            c = new TCel();
45
+            c.Key = 7;
46
+            c.Describe = "korekta deklaracji 7";
47
+            list.Add(c);
48
+            c = new TCel();
49
+            c.Key = 8;
50
+            c.Describe = "korekta deklaracji 8";
51
+            list.Add(c);
52
+            c = new TCel();
53
+            c.Key = 9;
54
+            c.Describe = "korekta deklaracji 9";
55
+            list.Add(c);
56
+            c = new TCel();
57
+            c.Key = 10;
58
+            c.Describe = "korekta deklaracji 10";
59
+            list.Add(c);
60
+        }
61
+        public List<TCel> Cel { get{return list;} set{list = value;} }
62
+    }
63
+    public class TCel
64
+    {
65
+        public TCel()
66
+        {
67
+        }
68
+        public int Key { get; set; }
69
+        public String Describe { get; set; }
70
+    }
71
+}

+ 34
- 0
JPK_v1/Constans/US.cs Просмотреть файл

@@ -0,0 +1,34 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+
6
+namespace JPK_v1.Constans
7
+{
8
+    public class US
9
+    {
10
+        private List<UsDIDIC> list;
11
+
12
+        public US()
13
+        {
14
+            list = new List<UsDIDIC>();
15
+            UsDIDIC d = new UsDIDIC();
16
+            d.Kod = "0271";
17
+            d.Describe = "DOLNOŚLĄSKI URZĄD SKARBOWY WE WROCŁAWIUI";
18
+            list.Add(d);
19
+			d = new UsDIDIC();
20
+			d.Kod = "0225";
21
+			d.Describe = "URZĄD SKARBOWY WROCŁAW-KRZYKI";
22
+			list.Add(d);
23
+		}
24
+
25
+
26
+        public List<UsDIDIC> Lista { get{return list;} }
27
+    }
28
+
29
+    public class UsDIDIC
30
+	{
31
+        public String Kod { get; set; }
32
+        public String Describe { get; set; }
33
+	}
34
+}

+ 31
- 0
JPK_v1/Constans/Waluta.cs Просмотреть файл

@@ -0,0 +1,31 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+
6
+namespace JPK_v1.Constans
7
+{
8
+    public class Waluta
9
+    {
10
+        public String Kod { get; set; }
11
+        public String Opis { get; set; }
12
+    }
13
+
14
+    public class WalutaLista
15
+    {
16
+        private  List<Waluta> list;
17
+        public List<Waluta> Waluta { get { return list; } set { list = value; } }
18
+        public WalutaLista()
19
+        {
20
+            list = new List<Waluta>();
21
+            Waluta w = new Waluta();
22
+            w.Kod = "PLN";
23
+            w.Opis = "PLN";
24
+            list.Add(w);
25
+            w = new Waluta();
26
+            w.Kod = "EUR";
27
+            w.Opis = "EUR";
28
+            list.Add(w);
29
+        }
30
+    }
31
+}

+ 16
- 0
JPK_v1/Core/ErrorMessage.cs Просмотреть файл

@@ -0,0 +1,16 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Threading.Tasks;
6
+
7
+namespace JPK_v1.Core
8
+{
9
+    public class ErrorMessage
10
+    {
11
+        public String Message { get; set; }
12
+        public String Code { get; set; }
13
+        public String[] Errors { get; set; }
14
+        public String RequestId { get; set; }
15
+    }
16
+}

+ 19
- 0
JPK_v1/Core/SpCtrl.cs Просмотреть файл

@@ -0,0 +1,19 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Threading.Tasks;
6
+
7
+namespace JPK_v1.Core
8
+{
9
+    public class  SpCtrl
10
+    {
11
+        public SpCtrl()
12
+        {
13
+        }
14
+        public String Typ { get; set; }
15
+        public int Ile { get; set; }
16
+        public Decimal Kwota { get; set; }
17
+
18
+    }
19
+}

+ 45
- 0
JPK_v1/Dzienik.Designer.cs Просмотреть файл

@@ -0,0 +1,45 @@
1
+namespace JPK_v1
2
+{
3
+    partial class Dzienik
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.SuspendLayout();
32
+            // 
33
+            // Dzienik
34
+            // 
35
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
36
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
37
+            this.Name = "Dzienik";
38
+            this.Size = new System.Drawing.Size(692, 389);
39
+            this.ResumeLayout(false);
40
+
41
+        }
42
+
43
+        #endregion
44
+    }
45
+}

+ 19
- 0
JPK_v1/Dzienik.cs Просмотреть файл

@@ -0,0 +1,19 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class Dzienik : UserControl
13
+    {
14
+        public Dzienik()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+    }
19
+}

+ 120
- 0
JPK_v1/Dzienik.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 45
- 0
JPK_v1/DzienikCTRL.Designer.cs Просмотреть файл

@@ -0,0 +1,45 @@
1
+namespace JPK_v1
2
+{
3
+    partial class DzienikCTRL
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.SuspendLayout();
32
+            // 
33
+            // DzienikCTRL
34
+            // 
35
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
36
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
37
+            this.Name = "DzienikCTRL";
38
+            this.Size = new System.Drawing.Size(787, 375);
39
+            this.ResumeLayout(false);
40
+
41
+        }
42
+
43
+        #endregion
44
+    }
45
+}

+ 19
- 0
JPK_v1/DzienikCTRL.cs Просмотреть файл

@@ -0,0 +1,19 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class DzienikCTRL : UserControl
13
+    {
14
+        public DzienikCTRL()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+    }
19
+}

+ 120
- 0
JPK_v1/DzienikCTRL.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 59
- 0
JPK_v1/FA.Designer.cs Просмотреть файл

@@ -0,0 +1,59 @@
1
+namespace JPK_v1
2
+{
3
+    partial class FA
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.dataFA = new System.Windows.Forms.DataGridView();
32
+            ((System.ComponentModel.ISupportInitialize)(this.dataFA)).BeginInit();
33
+            this.SuspendLayout();
34
+            // 
35
+            // dataFA
36
+            // 
37
+            this.dataFA.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
38
+            this.dataFA.Location = new System.Drawing.Point(3, 22);
39
+            this.dataFA.Name = "dataFA";
40
+            this.dataFA.Size = new System.Drawing.Size(895, 405);
41
+            this.dataFA.TabIndex = 0;
42
+            // 
43
+            // FA
44
+            // 
45
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
46
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
47
+            this.Controls.Add(this.dataFA);
48
+            this.Name = "FA";
49
+            this.Size = new System.Drawing.Size(912, 491);
50
+            ((System.ComponentModel.ISupportInitialize)(this.dataFA)).EndInit();
51
+            this.ResumeLayout(false);
52
+
53
+        }
54
+
55
+        #endregion
56
+
57
+        private System.Windows.Forms.DataGridView dataFA;
58
+    }
59
+}

+ 27
- 0
JPK_v1/FA.cs Просмотреть файл

@@ -0,0 +1,27 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class FA : UserControl
13
+    {
14
+        public FA()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+
19
+        public void dataInitFv()
20
+        {
21
+            DataGridViewColumn column = new DataGridViewTextBoxColumn();
22
+            column.HeaderText = "DataWys";
23
+            this.dataFA.Columns.Add(column);
24
+
25
+        }
26
+    }
27
+}

+ 120
- 0
JPK_v1/FA.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 45
- 0
JPK_v1/FAPoz.Designer.cs Просмотреть файл

@@ -0,0 +1,45 @@
1
+namespace JPK_v1
2
+{
3
+    partial class FAPoz
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.SuspendLayout();
32
+            // 
33
+            // FAPoz
34
+            // 
35
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
36
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
37
+            this.Name = "FAPoz";
38
+            this.Size = new System.Drawing.Size(774, 377);
39
+            this.ResumeLayout(false);
40
+
41
+        }
42
+
43
+        #endregion
44
+    }
45
+}

+ 19
- 0
JPK_v1/FAPoz.cs Просмотреть файл

@@ -0,0 +1,19 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class FAPoz : UserControl
13
+    {
14
+        public FAPoz()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+    }
19
+}

+ 120
- 0
JPK_v1/FAPoz.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 59
- 0
JPK_v1/FAPozCtrl.Designer.cs Просмотреть файл

@@ -0,0 +1,59 @@
1
+namespace JPK_v1
2
+{
3
+    partial class FAPozCtrl
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.dataGridView1 = new System.Windows.Forms.DataGridView();
32
+            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
33
+            this.SuspendLayout();
34
+            // 
35
+            // dataGridView1
36
+            // 
37
+            this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
38
+            this.dataGridView1.Location = new System.Drawing.Point(3, 47);
39
+            this.dataGridView1.Name = "dataGridView1";
40
+            this.dataGridView1.Size = new System.Drawing.Size(777, 359);
41
+            this.dataGridView1.TabIndex = 0;
42
+            // 
43
+            // FAPozCtrl
44
+            // 
45
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
46
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
47
+            this.Controls.Add(this.dataGridView1);
48
+            this.Name = "FAPozCtrl";
49
+            this.Size = new System.Drawing.Size(798, 409);
50
+            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
51
+            this.ResumeLayout(false);
52
+
53
+        }
54
+
55
+        #endregion
56
+
57
+        private System.Windows.Forms.DataGridView dataGridView1;
58
+    }
59
+}

+ 19
- 0
JPK_v1/FAPozCtrl.cs Просмотреть файл

@@ -0,0 +1,19 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class FAPozCtrl : UserControl
13
+    {
14
+        public FAPozCtrl()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+    }
19
+}

+ 120
- 0
JPK_v1/FAPozCtrl.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 45
- 0
JPK_v1/FA_Ctrl.Designer.cs Просмотреть файл

@@ -0,0 +1,45 @@
1
+namespace JPK_v1
2
+{
3
+    partial class FA_Ctrl
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.SuspendLayout();
32
+            // 
33
+            // FA_Ctrl
34
+            // 
35
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
36
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
37
+            this.Name = "FA_Ctrl";
38
+            this.Size = new System.Drawing.Size(882, 409);
39
+            this.ResumeLayout(false);
40
+
41
+        }
42
+
43
+        #endregion
44
+    }
45
+}

+ 19
- 0
JPK_v1/FA_Ctrl.cs Просмотреть файл

@@ -0,0 +1,19 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class FA_Ctrl : UserControl
13
+    {
14
+        public FA_Ctrl()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+    }
19
+}

+ 120
- 0
JPK_v1/FA_Ctrl.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 6445
- 0
JPK_v1/Faktury_VAT_-JPK_FA(3).Designer.cs
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 749
- 0
JPK_v1/Faktury_VAT_-JPK_FA(3).xsd Просмотреть файл

@@ -0,0 +1,749 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:etd="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2018/08/24/eD/DefinicjeTypy/" xmlns:kck="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" xmlns:tns="http://jpk.mf.gov.pl/wzor/2019/09/27/09271/" targetNamespace="http://jpk.mf.gov.pl/wzor/2019/09/27/09271/" elementFormDefault="qualified" attributeFormDefault="unqualified" xml:lang="pl">
3
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2018/08/24/eD/DefinicjeTypy/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2018/08/24/eD/DefinicjeTypy/StrukturyDanych_v5-0E.xsd"/>
4
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/KodyCechKrajow_v3-0E.xsd"/>
5
+	<xsd:simpleType name="TKodFormularza">
6
+		<xsd:annotation>
7
+			<xsd:documentation>Symbol wzoru formularza</xsd:documentation>
8
+		</xsd:annotation>
9
+		<xsd:restriction base="xsd:string">
10
+			<xsd:enumeration value="JPK_FA"/>
11
+		</xsd:restriction>
12
+	</xsd:simpleType>
13
+	<xsd:simpleType name="TCelZlozenia">
14
+		<xsd:annotation>
15
+			<xsd:documentation>Określenie celu złożenia JPK</xsd:documentation>
16
+		</xsd:annotation>
17
+		<xsd:restriction base="xsd:byte">
18
+			<xsd:enumeration value="1">
19
+				<xsd:annotation>
20
+					<xsd:documentation>złożenie JPK po raz pierwszy</xsd:documentation>
21
+				</xsd:annotation>
22
+			</xsd:enumeration>
23
+		</xsd:restriction>
24
+	</xsd:simpleType>
25
+	<xsd:complexType name="TNaglowek">
26
+		<xsd:annotation>
27
+			<xsd:documentation>Nagłówek JPK_FA</xsd:documentation>
28
+		</xsd:annotation>
29
+		<xsd:sequence>
30
+			<xsd:element name="KodFormularza">
31
+				<xsd:complexType>
32
+					<xsd:simpleContent>
33
+						<xsd:extension base="tns:TKodFormularza">
34
+							<xsd:attribute name="kodSystemowy" type="xsd:string" use="required" fixed="JPK_FA (3)"/>
35
+							<xsd:attribute name="wersjaSchemy" type="xsd:string" use="required" fixed="1-0"/>
36
+						</xsd:extension>
37
+					</xsd:simpleContent>
38
+				</xsd:complexType>
39
+			</xsd:element>
40
+			<xsd:element name="WariantFormularza">
41
+				<xsd:simpleType>
42
+					<xsd:restriction base="xsd:byte">
43
+						<xsd:enumeration value="3"/>
44
+					</xsd:restriction>
45
+				</xsd:simpleType>
46
+			</xsd:element>
47
+			<xsd:element name="CelZlozenia" type="tns:TCelZlozenia"/>
48
+			<xsd:element name="DataWytworzeniaJPK" type="etd:TDataCzas">
49
+				<xsd:annotation>
50
+					<xsd:documentation>Data i czas wytworzenia JPK_FA</xsd:documentation>
51
+				</xsd:annotation>
52
+			</xsd:element>
53
+			<xsd:element name="DataOd" type="tns:TData">
54
+				<xsd:annotation>
55
+					<xsd:documentation>Data początkowa okresu, którego dotyczy JPK_FA</xsd:documentation>
56
+				</xsd:annotation>
57
+			</xsd:element>
58
+			<xsd:element name="DataDo" type="tns:TData">
59
+				<xsd:annotation>
60
+					<xsd:documentation>Data końcowa okresu, którego dotyczy JPK_FA</xsd:documentation>
61
+				</xsd:annotation>
62
+			</xsd:element>
63
+			<xsd:element name="KodUrzedu" type="etd:TKodUS">
64
+				<xsd:annotation>
65
+					<xsd:documentation>Kod urzędu skarbowego, właściwy dla podatnika przekazującego JPK_FA</xsd:documentation>
66
+				</xsd:annotation>
67
+			</xsd:element>
68
+		</xsd:sequence>
69
+	</xsd:complexType>
70
+	<xsd:simpleType name="TKwotowy">
71
+		<xsd:annotation>
72
+			<xsd:documentation>Wartość numeryczna 18 znaków max, w tym 2 znaki po przecinku</xsd:documentation>
73
+		</xsd:annotation>
74
+		<xsd:restriction base="xsd:decimal">
75
+			<xsd:totalDigits value="18"/>
76
+			<xsd:fractionDigits value="2"/>
77
+		</xsd:restriction>
78
+	</xsd:simpleType>
79
+	<xsd:simpleType name="TNaturalnyJPK">
80
+		<xsd:annotation>
81
+			<xsd:documentation>Liczby naturalne większe od zera</xsd:documentation>
82
+		</xsd:annotation>
83
+		<xsd:restriction base="etd:TNaturalny">
84
+			<xsd:minExclusive value="0"/>
85
+		</xsd:restriction>
86
+	</xsd:simpleType>
87
+	<xsd:simpleType name="TZnakowyJPK">
88
+		<xsd:annotation>
89
+			<xsd:documentation>Typ znakowy ograniczony do 256 znaków</xsd:documentation>
90
+		</xsd:annotation>
91
+		<xsd:restriction base="xsd:token">
92
+			<xsd:minLength value="1"/>
93
+			<xsd:maxLength value="256"/>
94
+		</xsd:restriction>
95
+	</xsd:simpleType>
96
+	<xsd:simpleType name="TIlosciJPK">
97
+		<xsd:annotation>
98
+			<xsd:documentation>Wykorzystywany do określenia ilości. Wartość numeryczna 22 znaki max, w tym 6 po przecinku.</xsd:documentation>
99
+		</xsd:annotation>
100
+		<xsd:restriction base="xsd:decimal">
101
+			<xsd:totalDigits value="22"/>
102
+			<xsd:fractionDigits value="6"/>
103
+		</xsd:restriction>
104
+	</xsd:simpleType>
105
+	<xsd:simpleType name="TData">
106
+		<xsd:restriction base="etd:TData">
107
+			<xsd:minInclusive value="2016-07-01"/>
108
+			<xsd:maxInclusive value="2030-01-01"/>
109
+		</xsd:restriction>
110
+	</xsd:simpleType>
111
+	<xsd:simpleType name="TDataT">
112
+		<xsd:annotation>
113
+			<xsd:documentation>Data transakcji lub zdarzenia</xsd:documentation>
114
+		</xsd:annotation>
115
+		<xsd:restriction base="etd:TData">
116
+			<xsd:minInclusive value="2006-01-01"/>
117
+			<xsd:maxInclusive value="2030-01-01"/>
118
+		</xsd:restriction>
119
+	</xsd:simpleType>
120
+	<xsd:element name="JPK">
121
+		<xsd:annotation>
122
+			<xsd:documentation>Jednolity plik kontrolny dla faktur VAT</xsd:documentation>
123
+		</xsd:annotation>
124
+		<xsd:complexType>
125
+			<xsd:sequence>
126
+				<xsd:element name="Naglowek">
127
+					<xsd:annotation>
128
+						<xsd:documentation>Nagłówek JPK_FA</xsd:documentation>
129
+					</xsd:annotation>
130
+					<xsd:complexType>
131
+						<xsd:complexContent>
132
+							<xsd:extension base="tns:TNaglowek"/>
133
+						</xsd:complexContent>
134
+					</xsd:complexType>
135
+				</xsd:element>
136
+				<xsd:element name="Podmiot1">
137
+					<xsd:complexType>
138
+						<xsd:sequence>
139
+							<xsd:element name="IdentyfikatorPodmiotu" type="etd:TIdentyfikatorOsobyNiefizycznej1">
140
+								<xsd:annotation>
141
+									<xsd:documentation>Dane identyfikujące podmiot</xsd:documentation>
142
+								</xsd:annotation>
143
+							</xsd:element>
144
+							<xsd:choice>
145
+								<xsd:element name="AdresPodmiotu" type="etd:TAdresPolski1">
146
+									<xsd:annotation>
147
+										<xsd:documentation>Adres podmiotu w Polsce</xsd:documentation>
148
+									</xsd:annotation>
149
+								</xsd:element>
150
+								<xsd:element name="AdresPodmiotu2" type="etd:TAdresZagraniczny">
151
+									<xsd:annotation>
152
+										<xsd:documentation>Adres podmiotu zagraniczny</xsd:documentation>
153
+									</xsd:annotation>
154
+								</xsd:element>
155
+							</xsd:choice>
156
+						</xsd:sequence>
157
+					</xsd:complexType>
158
+				</xsd:element>
159
+				<xsd:element name="Faktura" maxOccurs="unbounded">
160
+					<xsd:annotation>
161
+						<xsd:documentation>Na podstawie art. 106 a-q ustawy z 11 marca 2004 r. o podatku od towarów i usług (Dz. U. z 2018 r. poz. 2174 z późn. zm.). Wartości sprzedaży i kwoty podatku wypełnia się w walucie, w której wystawiono fakturę, z wyjątkiem pól, w których kwoty podatku zostały przeliczone zgodnie z art. 31a w związku z art. 106e ust. 11 ustawy</xsd:documentation>
162
+					</xsd:annotation>
163
+					<xsd:complexType>
164
+						<xsd:sequence>
165
+							<xsd:element name="KodWaluty" type="kck:currCode_Type">
166
+								<xsd:annotation>
167
+									<xsd:documentation>Trzyliterowy kod waluty (ISO-4217), w której faktura, zamówienie lub umowa zostały wystawione</xsd:documentation>
168
+								</xsd:annotation>
169
+							</xsd:element>
170
+							<xsd:element name="P_1" type="tns:TDataT">
171
+								<xsd:annotation>
172
+									<xsd:documentation>Data wystawienia</xsd:documentation>
173
+								</xsd:annotation>
174
+							</xsd:element>
175
+							<xsd:element name="P_2A" type="tns:TZnakowyJPK">
176
+								<xsd:annotation>
177
+									<xsd:documentation>Kolejny numer faktury, nadany w ramach jednej lub więcej serii, który w sposób jednoznaczny indentyfikuje fakturę</xsd:documentation>
178
+								</xsd:annotation>
179
+							</xsd:element>
180
+							<xsd:element name="P_3A" type="tns:TZnakowyJPK" minOccurs="0">
181
+								<xsd:annotation>
182
+									<xsd:documentation>Imię i nazwisko lub nazwa nabywcy towarów lub usług. Pole opcjonalne dla przypadku określonego w art. 106e ust. 5 pkt 3 ustawy</xsd:documentation>
183
+								</xsd:annotation>
184
+							</xsd:element>
185
+							<xsd:element name="P_3B" type="tns:TZnakowyJPK" minOccurs="0">
186
+								<xsd:annotation>
187
+									<xsd:documentation>Adres nabywcy. Pole opcjonalne dla przypadków określonych w art. 106e ust. 5 pkt 3 ustawy oraz w § 3 pkt 4 rozporządzenia Ministra Finansów z dnia 3 grudnia 2013 r. w sprawie wystawiania faktur (Dz. U. z 2013 r., poz. 1485)</xsd:documentation>
188
+								</xsd:annotation>
189
+							</xsd:element>
190
+							<xsd:element name="P_3C" type="tns:TZnakowyJPK">
191
+								<xsd:annotation>
192
+									<xsd:documentation>Imię i nazwisko lub nazwa sprzedawcy towarów lub usług</xsd:documentation>
193
+								</xsd:annotation>
194
+							</xsd:element>
195
+							<xsd:element name="P_3D" type="tns:TZnakowyJPK">
196
+								<xsd:annotation>
197
+									<xsd:documentation>Adres sprzedawcy</xsd:documentation>
198
+								</xsd:annotation>
199
+							</xsd:element>
200
+							<xsd:element name="P_4A" type="kck:MSCountryCode_Type" minOccurs="0">
201
+								<xsd:annotation>
202
+									<xsd:documentation>Kod (prefiks) podatnika VAT UE dla przypadków określonych w art. 97 ust. 10 ustawy</xsd:documentation>
203
+								</xsd:annotation>
204
+							</xsd:element>
205
+							<xsd:element name="P_4B" type="etd:TNrIdentyfikacjiPodatkowej" minOccurs="0">
206
+								<xsd:annotation>
207
+									<xsd:documentation>Numer, za pomocą którego podatnik jest zidentyfikowany na potrzeby podatku, z zastrzeżeniem pkt 24 lit. a ustawy. Pole opcjonalne dla przypadku określonego w art. 106e ust. 4 pkt 2 ustawy. W przypadku faktur wystawianych w procedurze uproszczonej przez drugiego w kolejności podatnika, o którym mowa w art. 135 ust. 1 pkt 4 lit. b i c oraz ust. 2 ustawy, numer, o którym mowa w art. 136 ust. 1 pkt 3 ustawy</xsd:documentation>
208
+								</xsd:annotation>
209
+							</xsd:element>
210
+							<xsd:element name="P_5A" type="kck:MSCountryCode_Type" minOccurs="0">
211
+								<xsd:annotation>
212
+									<xsd:documentation>Kod (prefiks) nabywcy - podatnika VAT UE dla przypadków określonych w art. 97 ust. 10 ustawy</xsd:documentation>
213
+								</xsd:annotation>
214
+							</xsd:element>
215
+							<xsd:element name="P_5B" type="etd:TNrIdentyfikacjiPodatkowej" minOccurs="0">
216
+								<xsd:annotation>
217
+									<xsd:documentation>Numer, za pomocą którego nabywca towarów lub usług jest identyfikowany dla podatku lub podatku od wartości dodanej, pod którym otrzymał on towary lub usługi, z zastrzeżeniem pkt 24 lit. b ustawy. Pole opcjonalne dla przypadku określonego w art. 106e ust. 5 pkt 2 ustawy. W przypadku faktur wystawianych w procedurze uproszczonej przez drugiego w kolejności podatnika, o którym mowa w art. 135 ust. 1 pkt 4 lit. b i c oraz ust. 2 ustawy, numer, o którym mowa w art. 136 ust. 1 pkt 4 ustawy</xsd:documentation>
218
+								</xsd:annotation>
219
+							</xsd:element>
220
+							<xsd:element name="P_6" type="tns:TDataT" minOccurs="0">
221
+								<xsd:annotation>
222
+									<xsd:documentation>Data dokonania lub zakończenia dostawy towarów lub wykonania usługi lub data otrzymania zapłaty, o której mowa w art. 106b ust. 1 pkt 4, o ile taka data jest określona i różni się od daty wystawienia faktury</xsd:documentation>
223
+								</xsd:annotation>
224
+							</xsd:element>
225
+							<xsd:sequence minOccurs="0">
226
+								<xsd:annotation>
227
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3 oraz ust. 4 pkt 1, a także ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy</xsd:documentation>
228
+								</xsd:annotation>
229
+								<!--gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true" oraz gdy pole P_18 przyjmuje wartość "true"-->
230
+								<xsd:element name="P_13_1" type="tns:TKwotowy">
231
+									<xsd:annotation>
232
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką podstawową - aktualnie 23% albo 22%. W przypadku faktur zaliczkowych, kwota zaliczki netto</xsd:documentation>
233
+									</xsd:annotation>
234
+								</xsd:element>
235
+								<xsd:element name="P_14_1" type="tns:TKwotowy">
236
+									<xsd:annotation>
237
+										<xsd:documentation>Kwota podatku od sumy wartości sprzedaży netto ze stawką podstawową - aktualnie 23% albo 22%. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy</xsd:documentation>
238
+									</xsd:annotation>
239
+								</xsd:element>
240
+								<xsd:element name="P_14_1W" type="tns:TKwotowy" minOccurs="0">
241
+									<xsd:annotation>
242
+										<xsd:documentation>W przypadku gdy faktura jest wystawiona w walucie obcej, kwota podatku od sumy wartości sprzedaży netto ze stawką podstawową, przeliczona zgodnie z art. 31a w związku z art. 106e ust. 11 ustawy - aktualnie 23% albo 22%. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy </xsd:documentation>
243
+									</xsd:annotation>
244
+								</xsd:element>
245
+							</xsd:sequence>
246
+							<xsd:sequence minOccurs="0">
247
+								<xsd:annotation>
248
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3 oraz ust. 4 pkt 1, a także ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy</xsd:documentation>
249
+								</xsd:annotation>
250
+								<!--gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true" oraz gdy pole P_18 przyjmuje wartość "true"-->
251
+								<xsd:element name="P_13_2" type="tns:TKwotowy">
252
+									<xsd:annotation>
253
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką obniżoną pierwszą - aktualnie 8 % albo 7%. W przypadku faktur zaliczkowych, kwota zaliczki netto</xsd:documentation>
254
+									</xsd:annotation>
255
+								</xsd:element>
256
+								<xsd:element name="P_14_2" type="tns:TKwotowy">
257
+									<xsd:annotation>
258
+										<xsd:documentation>Kwota podatku od sumy wartości sprzedaży netto ze stawką obniżoną pierwszą - aktualnie 8% albo 7%. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy</xsd:documentation>
259
+									</xsd:annotation>
260
+								</xsd:element>
261
+								<xsd:element name="P_14_2W" type="tns:TKwotowy" minOccurs="0">
262
+									<xsd:annotation>
263
+										<xsd:documentation>W przypadku gdy faktura jest wystawiona w walucie obcej, kwota podatku od sumy wartości sprzedaży netto ze stawką obniżoną, przeliczona zgodnie z art. 31a w związku z art. 106e ust. 11 ustawy - aktualnie 8% albo 7%. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy</xsd:documentation>
264
+									</xsd:annotation>
265
+								</xsd:element>
266
+							</xsd:sequence>
267
+							<xsd:sequence minOccurs="0">
268
+								<xsd:annotation>
269
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3 oraz ust. 4 pkt 1, a także ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy</xsd:documentation>
270
+								</xsd:annotation>
271
+								<!--gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true" oraz gdy pole P_18 przyjmuje wartość "true"-->
272
+								<xsd:element name="P_13_3" type="tns:TKwotowy">
273
+									<xsd:annotation>
274
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką obniżoną drugą - aktualnie 5%. W przypadku faktur zaliczkowych, kwota zaliczki netto</xsd:documentation>
275
+									</xsd:annotation>
276
+								</xsd:element>
277
+								<xsd:element name="P_14_3" type="tns:TKwotowy">
278
+									<xsd:annotation>
279
+										<xsd:documentation>Kwota podatku od sumy wartości sprzedaży netto ze stawką obniżoną drugą - aktualnie 5%. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy</xsd:documentation>
280
+									</xsd:annotation>
281
+								</xsd:element>
282
+								<xsd:element name="P_14_3W" type="tns:TKwotowy" minOccurs="0">
283
+									<xsd:annotation>
284
+										<xsd:documentation>W przypadku gdy faktura jest wystawiona w walucie obcej, kwota podatku od sumy wartości sprzedaży netto ze stawką obniżoną drugą, przeliczona zgodnie z art. 31a w związku z art. 106e ust. 11 ustawy - aktualnie 5%. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy</xsd:documentation>
285
+									</xsd:annotation>
286
+								</xsd:element>
287
+							</xsd:sequence>
288
+							<xsd:sequence minOccurs="0">
289
+								<xsd:annotation>
290
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3 oraz ust. 4 pkt 1, a także ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy</xsd:documentation>
291
+								</xsd:annotation>
292
+								<!--gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true" oraz gdy pole P_18 przyjmuje wartość "true"-->
293
+								<xsd:element name="P_13_4" type="tns:TKwotowy">
294
+									<xsd:annotation>
295
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką obniżoną trzecią w walucie, w której faktura została wystawiona - procedura odwrotnego obciążenia, dla której podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 i 8 ustawy VAT oraz dla stawki 4% w przypadku ryczałtu dla taksówek osobowych. W przypadku faktur zaliczkowych, kwota zaliczki netto</xsd:documentation>
296
+									</xsd:annotation>
297
+								</xsd:element>
298
+								<xsd:element name="P_14_4" type="tns:TKwotowy">
299
+									<xsd:annotation>
300
+										<xsd:documentation>Kwota "0" dla procedury odwrotnego obciążenia, dla której podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 i 8 ustawy VAT oraz kwota podatku od sumy wartości sprzedaży netto dla stawki 4% w walucie, w której faktura została wystawiona w przypadku ryczałtu dla taksówek osobowych. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy</xsd:documentation>
301
+									</xsd:annotation>
302
+								</xsd:element>
303
+								<xsd:element name="P_14_4W" type="tns:TKwotowy" minOccurs="0">
304
+									<xsd:annotation>
305
+										<xsd:documentation>W przypadku gdy faktura jest wystawiona w walucie obcej, kwota "0" dla procedury odwrotnego obciążenia, dla której podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 i 8 ustawy VAT oraz kwota podatku od sumy wartości sprzedaży netto w walucie obcej dla stawki 4% w przypadku ryczałtu dla taksówek osobowych, przeliczona zgodnie z art. 31a w związku z art. 106e ust. 11 ustawy. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy</xsd:documentation>
306
+									</xsd:annotation>
307
+								</xsd:element>
308
+							</xsd:sequence>
309
+							<xsd:element name="P_13_5" type="tns:TKwotowy" minOccurs="0">
310
+								<xsd:annotation>
311
+									<xsd:documentation>Suma wartości sprzedaży netto dla transakcji dostawy towarów oraz świadczenia usług poza terytorium kraju. W przypadku faktur zaliczkowych, kwota zaliczki netto. Pole opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 oraz ust. 4 pkt 1, a także ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy</xsd:documentation>
312
+								</xsd:annotation>
313
+							</xsd:element>
314
+							<xsd:element name="P_13_6" type="tns:TKwotowy" minOccurs="0">
315
+								<xsd:annotation>
316
+									<xsd:documentation>Suma wartości sprzedaży netto ze stawką 0%. W przypadku faktur zaliczkowych, kwota zaliczki netto. Pole opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3, a także ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy</xsd:documentation>
317
+								</xsd:annotation>
318
+							</xsd:element>
319
+							<xsd:element name="P_13_7" type="tns:TKwotowy" minOccurs="0">
320
+								<xsd:annotation>
321
+									<xsd:documentation>Suma wartości sprzedaży zwolnionej. W przypadku faktur zaliczkowych, kwota zaliczki netto. Pola opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3, a także ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy</xsd:documentation>
322
+								</xsd:annotation>
323
+							</xsd:element>
324
+							<xsd:element name="P_15" type="tns:TKwotowy">
325
+								<xsd:annotation>
326
+									<xsd:documentation>Kwota należności ogółem lub w przypadku faktur zaliczkowych, otrzymana kwota zapłaty</xsd:documentation>
327
+								</xsd:annotation>
328
+							</xsd:element>
329
+							<xsd:element name="P_16" type="xsd:boolean" default="false">
330
+								<xsd:annotation>
331
+									<xsd:documentation>W przypadku dostawy towarów lub świadczenia usług, w odniesieniu do których obowiązek podatkowy powstaje zgodnie z art. 19a ust. 5 pkt 1 lub art. 21 ust. 1 - wyrazy "metoda kasowa", należy podać wartość "true"; w przeciwnym przypadku - wartość "false"</xsd:documentation>
332
+								</xsd:annotation>
333
+							</xsd:element>
334
+							<xsd:element name="P_17" type="xsd:boolean" default="false">
335
+								<xsd:annotation>
336
+									<xsd:documentation>W przypadku faktur, o których mowa w art. 106d ust. 1 - wyraz "samofakturowanie", należy podać wartość "true"; w przeciwnym przypadku - wartość "false"</xsd:documentation>
337
+								</xsd:annotation>
338
+							</xsd:element>
339
+							<xsd:element name="P_18" type="xsd:boolean" default="false">
340
+								<xsd:annotation>
341
+									<xsd:documentation>W przypadku dostawy towarów lub wykonania usługi, dla których obowiązanym do rozliczenia podatku od wartości dodanej lub podatku o podobnym charakterze jest nabywca towaru lub usługi - wyrazy "odwrotne obciążenie", należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
342
+								</xsd:annotation>
343
+							</xsd:element>
344
+							<xsd:element name="P_18A" type="xsd:boolean" default="false">
345
+								<xsd:annotation>
346
+									<xsd:documentation>W przypadku faktur, w których kwota należności ogółem stanowi kwotę, o której mowa w art. 19 pkt 2 ustawy z dnia 6 marca 2018 r. - Prawo przedsiębiorców, obejmujących dokonaną na rzecz podatnika dostawę towarów lub świadczenie usług wymienionych w załączniku nr 15 do ustawy - wyrazy „mechanizm podzielonej płatności”, należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
347
+								</xsd:annotation>
348
+							</xsd:element>
349
+							<xsd:element name="P_19" type="xsd:boolean" default="false">
350
+								<xsd:annotation>
351
+									<xsd:documentation>W przypadku dostawy towarów lub świadczenia usług zwolnionych od podatku na podstawie art. 43 ust. 1, art. 113 ust. 1 i 9 albo przepisów wydanych na podstawie art. 82 ust. 3 należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
352
+								</xsd:annotation>
353
+							</xsd:element>
354
+							<xsd:sequence minOccurs="0">
355
+								<xsd:element name="P_19A" type="tns:TZnakowyJPK" default="false" minOccurs="0">
356
+									<xsd:annotation>
357
+										<xsd:documentation>Jeśli pole P_19 równa się "true" - należy wskazać przepis ustawy albo aktu wydanego na podstawie ustawy, na podstawie którego podatnik stosuje zwolnienie od podatku</xsd:documentation>
358
+									</xsd:annotation>
359
+								</xsd:element>
360
+								<xsd:element name="P_19B" type="tns:TZnakowyJPK" default="false" minOccurs="0">
361
+									<xsd:annotation>
362
+										<xsd:documentation>Jeśli pole P_19 równa się "true" - należy wskazać przepis dyrektywy 2006/112/WE, który zwalnia od podatku taką dostawę towarów lub takie świadczenie usług</xsd:documentation>
363
+									</xsd:annotation>
364
+								</xsd:element>
365
+								<xsd:element name="P_19C" type="tns:TZnakowyJPK" default="false" minOccurs="0">
366
+									<xsd:annotation>
367
+										<xsd:documentation>Jeśli pole P_19 równa się "true" - należy wskazać inną podstawę prawną wskazującą na to, że dostawa towarów lub świadczenie usług korzysta ze zwolnienia
368
+</xsd:documentation>
369
+									</xsd:annotation>
370
+								</xsd:element>
371
+							</xsd:sequence>
372
+							<xsd:element name="P_20" type="xsd:boolean" default="false">
373
+								<xsd:annotation>
374
+									<xsd:documentation>W przypadku, o którym mowa w art. 106c ustawy należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
375
+								</xsd:annotation>
376
+							</xsd:element>
377
+							<xsd:sequence minOccurs="0">
378
+								<xsd:element name="P_20A" type="tns:TZnakowyJPK">
379
+									<xsd:annotation>
380
+										<xsd:documentation>Jeśli pole P_20 równa się "true" - należy podać nazwę organu egzekucyjnego lub imię i nazwisko komornika sądowego</xsd:documentation>
381
+									</xsd:annotation>
382
+								</xsd:element>
383
+								<xsd:element name="P_20B" type="tns:TZnakowyJPK">
384
+									<xsd:annotation>
385
+										<xsd:documentation>Jeśli pole P_20 równa się "true" - należy podać adres organu egzekucyjnego lub komornika sądowego</xsd:documentation>
386
+									</xsd:annotation>
387
+								</xsd:element>
388
+							</xsd:sequence>
389
+							<xsd:element name="P_21" type="xsd:boolean" default="false">
390
+								<xsd:annotation>
391
+									<xsd:documentation>W przypadku faktur wystawianych w imieniu i na rzecz podatnika przez jego przedstawiciela podatkowego należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
392
+								</xsd:annotation>
393
+							</xsd:element>
394
+							<xsd:sequence minOccurs="0">
395
+								<xsd:element name="P_21A" type="tns:TZnakowyJPK" default="false">
396
+									<xsd:annotation>
397
+										<xsd:documentation>Jeśli pole P_21 równa się "true" - należy podać nazwę lub imię i nazwisko przedstawiciela podatkowego</xsd:documentation>
398
+									</xsd:annotation>
399
+								</xsd:element>
400
+								<xsd:element name="P_21B" type="tns:TZnakowyJPK" default="false">
401
+									<xsd:annotation>
402
+										<xsd:documentation>Jeśli pole P_21 równa się "true" - należy podać adres przedstawiciela podatkowego</xsd:documentation>
403
+									</xsd:annotation>
404
+								</xsd:element>
405
+								<xsd:element name="P_21C" type="tns:TZnakowyJPK" default="false">
406
+									<xsd:annotation>
407
+										<xsd:documentation>Jeśli pole P_21 równa się "true" - należy podać numer przedstawiciela podatkowego, za pomocą którego jest on zidentyfikowany na potrzeby podatku</xsd:documentation>
408
+									</xsd:annotation>
409
+								</xsd:element>
410
+							</xsd:sequence>
411
+							<xsd:element name="P_22" type="xsd:boolean" default="false">
412
+								<xsd:annotation>
413
+									<xsd:documentation>W przypadku gdy przedmiotem wewnątrzwspólnotowej dostawy są nowe środki transportu należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
414
+								</xsd:annotation>
415
+							</xsd:element>
416
+							<xsd:sequence minOccurs="0">
417
+								<xsd:element name="P_22A" type="etd:TData">
418
+									<xsd:annotation>
419
+										<xsd:documentation>Jeśli pole P_22 równa się "true" - należy podać datę dopuszczenia nowego środka transportu do użytku</xsd:documentation>
420
+									</xsd:annotation>
421
+								</xsd:element>
422
+								<xsd:element name="P_22B" type="tns:TZnakowyJPK" minOccurs="0">
423
+									<xsd:annotation>
424
+										<xsd:documentation>Jeśli pole P_22 równa się "true" a dostawa dotyczy pojazdów lądowych, o których mowa w art. 2 pkt 10 lit. a ustawy - należy podać przebieg pojazdu</xsd:documentation>
425
+									</xsd:annotation>
426
+								</xsd:element>
427
+								<xsd:element name="P_22C" type="tns:TZnakowyJPK" minOccurs="0">
428
+									<xsd:annotation>
429
+										<xsd:documentation>Jeśli pole P_22 równa się "true" a dostawa dotyczy jednostek pływających, o których mowa w art. 2 pkt 10 lit. b ustawy, oraz statków powietrznych, o których mowa w art. 2 pkt 10 lit. c ustawy, należy podać liczbę godzin roboczych używania nowego środka transportu</xsd:documentation>
430
+									</xsd:annotation>
431
+								</xsd:element>
432
+							</xsd:sequence>
433
+							<xsd:element name="P_23" type="xsd:boolean" default="false">
434
+								<xsd:annotation>
435
+									<xsd:documentation>W przypadku faktur wystawianych w procedurze uproszczonej przez drugiego w kolejności podatnika, o którym mowa w art. 135 ust. 1 pkt 4 lit. b i c oraz ust. 2, zawierającej adnotację, o której mowa w art. 136 ust. 1 pkt 1 i stwierdzenie, o którym mowa w art. 136 ust. 1 pkt 2 ustawy należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
436
+								</xsd:annotation>
437
+							</xsd:element>
438
+							<xsd:element name="P_106E_2" type="xsd:boolean" default="false">
439
+								<xsd:annotation>
440
+									<xsd:documentation>W przypadku świadczenia usług turystyki, dla których podstawę opodatkowania stanowi zgodnie z art. 119 ust. 1 kwota marży, faktura - w zakresie danych określonych w ust. 1 pkt 1-17 - powinna zawierać wyłącznie dane określone w ust. 1 pkt 1-8 i 15-17, a także wyrazy "procedura marży dla biur podróży", należy podać wartość "true", w przeciwnym przypadku - wartość "false"
441
+</xsd:documentation>
442
+								</xsd:annotation>
443
+							</xsd:element>
444
+							<xsd:sequence>
445
+								<xsd:element name="P_106E_3" type="xsd:boolean" default="false">
446
+									<xsd:annotation>
447
+										<xsd:documentation>W przypadku dostawy towarów używanych, dzieł sztuki, przedmiotów kolekcjonerskich i antyków, dla których podstawę opodatkowania stanowi zgodnie z art. 120 ust. 4 i 5 marża, należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
448
+									</xsd:annotation>
449
+								</xsd:element>
450
+								<xsd:element name="P_106E_3A" type="tns:TZnakowyJPK" default="false" minOccurs="0">
451
+									<xsd:annotation>
452
+										<xsd:documentation>Jeżeli pole P_106E_3 równa się "true", należy podać wyrazy: "procedura marży - towary używane" lub "procedura marży - dzieła sztuki" lub "procedura marży - przedmioty kolekcjonerskie i antyki"</xsd:documentation>
453
+									</xsd:annotation>
454
+								</xsd:element>
455
+							</xsd:sequence>
456
+							<xsd:element name="RodzajFaktury">
457
+								<xsd:annotation>
458
+									<xsd:documentation>Rodzaj faktury</xsd:documentation>
459
+								</xsd:annotation>
460
+								<xsd:simpleType>
461
+									<xsd:restriction base="tns:TZnakowyJPK">
462
+										<xsd:enumeration value="VAT">
463
+											<xsd:annotation>
464
+												<xsd:documentation>Faktura podstawowa oraz faktura wystawiona w związku z art. 106f ust. 3 ustawy</xsd:documentation>
465
+											</xsd:annotation>
466
+										</xsd:enumeration>
467
+										<xsd:enumeration value="KOREKTA">
468
+											<xsd:annotation>
469
+												<xsd:documentation>Faktura korygująca</xsd:documentation>
470
+											</xsd:annotation>
471
+										</xsd:enumeration>
472
+										<xsd:enumeration value="ZAL">
473
+											<xsd:annotation>
474
+												<xsd:documentation>Faktura dokumentująca otrzymanie zapłaty lub jej części przed dokonaniem czynności oraz faktura wystawiona w związku z art. 106f ust. 4 ustawy</xsd:documentation>
475
+											</xsd:annotation>
476
+										</xsd:enumeration>
477
+									</xsd:restriction>
478
+								</xsd:simpleType>
479
+							</xsd:element>
480
+							<xsd:sequence minOccurs="0">
481
+								<xsd:element name="PrzyczynaKorekty" type="tns:TZnakowyJPK">
482
+									<xsd:annotation>
483
+										<xsd:documentation>Przyczyna korekty dla faktur korygujących</xsd:documentation>
484
+									</xsd:annotation>
485
+								</xsd:element>
486
+								<xsd:element name="NrFaKorygowanej" type="tns:TZnakowyJPK">
487
+									<xsd:annotation>
488
+										<xsd:documentation>Numer faktury korygowanej</xsd:documentation>
489
+									</xsd:annotation>
490
+								</xsd:element>
491
+								<xsd:element name="OkresFaKorygowanej" type="tns:TZnakowyJPK" minOccurs="0">
492
+									<xsd:annotation>
493
+										<xsd:documentation>Dla faktury korygującej - okres, do którego odnosi się udzielany opust lub obniżka, w przypadku gdy podatnik udziela opustu lub obniżki ceny w odniesieniu do wszystkich dostaw towarów lub usług dokonanych lub świadczonych na rzecz jednego odbiorcy w danym okresie</xsd:documentation>
494
+									</xsd:annotation>
495
+								</xsd:element>
496
+							</xsd:sequence>
497
+							<xsd:element name="NrFaZaliczkowej" type="tns:TZnakowyJPK" minOccurs="0">
498
+								<xsd:annotation>
499
+									<xsd:documentation>Dla faktury, o której mowa w art. 106f ust. 3 i 4 ustawy - numery poprzednich faktur zaliczkowych</xsd:documentation>
500
+								</xsd:annotation>
501
+							</xsd:element>
502
+						</xsd:sequence>
503
+					</xsd:complexType>
504
+				</xsd:element>
505
+				<xsd:element name="FakturaCtrl">
506
+					<xsd:annotation>
507
+						<xsd:documentation>Sumy kontrolne dla faktur</xsd:documentation>
508
+					</xsd:annotation>
509
+					<xsd:complexType>
510
+						<xsd:sequence>
511
+							<xsd:element name="LiczbaFaktur" type="tns:TNaturalnyJPK">
512
+								<xsd:annotation>
513
+									<xsd:documentation>Liczba faktur, w okresie którego dotyczy JPK_FA</xsd:documentation>
514
+								</xsd:annotation>
515
+							</xsd:element>
516
+							<xsd:element name="WartoscFaktur" type="tns:TKwotowy">
517
+								<xsd:annotation>
518
+									<xsd:documentation>Łączna wartość kolumny P_15 w tabeli Faktura w okresie, którego dotyczy JPK_FA</xsd:documentation>
519
+								</xsd:annotation>
520
+							</xsd:element>
521
+						</xsd:sequence>
522
+					</xsd:complexType>
523
+				</xsd:element>
524
+				<xsd:element name="FakturaWiersz" maxOccurs="unbounded">
525
+					<xsd:annotation>
526
+						<xsd:documentation>Szczegółowe pozycje faktur w walucie, w której wystawiono fakturę</xsd:documentation>
527
+					</xsd:annotation>
528
+					<xsd:complexType>
529
+						<xsd:sequence>
530
+							<xsd:element name="P_2B" type="tns:TZnakowyJPK">
531
+								<xsd:annotation>
532
+									<xsd:documentation>Kolejny numer faktury, nadany w ramach jednej lub więcej serii, który w sposób jednoznaczny indentyfikuje fakturę</xsd:documentation>
533
+								</xsd:annotation>
534
+							</xsd:element>
535
+							<xsd:element name="P_7" type="tns:TZnakowyJPK" minOccurs="0">
536
+								<xsd:annotation>
537
+									<xsd:documentation>Nazwa (rodzaj) towaru lub usługi. Pole opcjonalne wyłącznie dla przypadku określonego w art 106j ust. 3 pkt 2 ustawy (faktura korekta)</xsd:documentation>
538
+								</xsd:annotation>
539
+							</xsd:element>
540
+							<xsd:element name="P_8A" type="tns:TZnakowyJPK" minOccurs="0">
541
+								<xsd:annotation>
542
+									<xsd:documentation>Miara dostarczonych towarów lub zakres wykonanych usług. Pole opcjonalne dla przypadku określonego w art. 106e ust. 5 pkt 3 ustawy</xsd:documentation>
543
+								</xsd:annotation>
544
+							</xsd:element>
545
+							<xsd:element name="P_8B" type="tns:TIlosciJPK" minOccurs="0">
546
+								<xsd:annotation>
547
+									<xsd:documentation>Ilość (liczba) dostarczonych towarów lub zakres wykonanych usług. Pole opcjonalne dla przypadku określonego w art. 106e ust. 5 pkt 3 ustawy</xsd:documentation>
548
+								</xsd:annotation>
549
+							</xsd:element>
550
+							<xsd:element name="P_9A" type="tns:TKwotowy" minOccurs="0">
551
+								<xsd:annotation>
552
+									<xsd:documentation>Cena jednostkowa towaru lub usługi bez kwoty podatku (cena jednostkowa netto). Pole opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3 oraz ust. 5 pkt 3 ustawy</xsd:documentation>
553
+								</xsd:annotation>
554
+							</xsd:element>
555
+							<xsd:element name="P_9B" type="tns:TKwotowy" minOccurs="0">
556
+								<xsd:annotation>
557
+									<xsd:documentation>Cena wraz z kwotą podatku (cena jednostkowa brutto), w przypadku zastosowania art. 106e ust. 7 i 8 ustawy</xsd:documentation>
558
+								</xsd:annotation>
559
+							</xsd:element>
560
+							<xsd:element name="P_10" type="tns:TKwotowy" minOccurs="0">
561
+								<xsd:annotation>
562
+									<xsd:documentation>Kwoty wszelkich opustów lub obniżek cen, w tym w formie rabatu z tytułu wcześniejszej zapłaty, o ile nie zostały one uwzględnione w cenie jednostkowej netto. Pole opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3 oraz ust. 5 pkt 1 ustawy</xsd:documentation>
563
+								</xsd:annotation>
564
+							</xsd:element>
565
+							<xsd:element name="P_11" type="tns:TKwotowy" minOccurs="0">
566
+								<xsd:annotation>
567
+									<xsd:documentation>Wartość dostarczonych towarów lub wykonanych usług, objętych transakcją, bez kwoty podatku (wartość sprzedaży netto). Pole opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3 oraz ust. 5 pkt 3 ustawy</xsd:documentation>
568
+								</xsd:annotation>
569
+							</xsd:element>
570
+							<xsd:element name="P_11A" type="tns:TKwotowy" minOccurs="0">
571
+								<xsd:annotation>
572
+									<xsd:documentation>Wartość sprzedaży brutto, w przypadku zastosowania art. 106e ust. 7 i 8 ustawy</xsd:documentation>
573
+								</xsd:annotation>
574
+							</xsd:element>
575
+							<xsd:element name="P_12" minOccurs="0">
576
+								<xsd:annotation>
577
+									<xsd:documentation>Stawka podatku. Pole opcjonalne dla przypadków określonych w art. 106e ust. 2, 3, 4 pkt 3 i ust. 5 pkt 3 ustawy</xsd:documentation>
578
+								</xsd:annotation>
579
+								<!--gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"-->
580
+								<xsd:simpleType>
581
+									<xsd:restriction base="tns:TZnakowyJPK">
582
+										<xsd:maxLength value="2"/>
583
+										<xsd:enumeration value="23"/>
584
+										<xsd:enumeration value="22"/>
585
+										<xsd:enumeration value="8"/>
586
+										<xsd:enumeration value="7"/>
587
+										<xsd:enumeration value="5"/>
588
+										<xsd:enumeration value="4"/>
589
+										<xsd:enumeration value="3"/>
590
+										<xsd:enumeration value="0"/>
591
+										<xsd:enumeration value="zw">
592
+											<xsd:annotation>
593
+												<xsd:documentation>zwolnione z opodatkowania</xsd:documentation>
594
+											</xsd:annotation>
595
+										</xsd:enumeration>
596
+										<xsd:enumeration value="oo">
597
+											<xsd:annotation>
598
+												<xsd:documentation>odwrotne obciążenie</xsd:documentation>
599
+											</xsd:annotation>
600
+										</xsd:enumeration>
601
+										<xsd:enumeration value="np">
602
+											<xsd:annotation>
603
+												<xsd:documentation>niepodlegające opodatkowaniu-transakcje dostawy towarów oraz świadczenia usług poza terytorium kraju</xsd:documentation>
604
+											</xsd:annotation>
605
+										</xsd:enumeration>
606
+									</xsd:restriction>
607
+								</xsd:simpleType>
608
+							</xsd:element>
609
+						</xsd:sequence>
610
+					</xsd:complexType>
611
+				</xsd:element>
612
+				<xsd:element name="FakturaWierszCtrl">
613
+					<xsd:annotation>
614
+						<xsd:documentation>Sumy kontrolne dla wierszy faktur</xsd:documentation>
615
+					</xsd:annotation>
616
+					<xsd:complexType>
617
+						<xsd:sequence>
618
+							<xsd:element name="LiczbaWierszyFaktur" type="tns:TNaturalnyJPK">
619
+								<xsd:annotation>
620
+									<xsd:documentation>Liczba wierszy faktur, w okresie którego dotyczy JPK_FA</xsd:documentation>
621
+								</xsd:annotation>
622
+							</xsd:element>
623
+							<xsd:element name="WartoscWierszyFaktur" type="tns:TKwotowy">
624
+								<xsd:annotation>
625
+									<xsd:documentation>Łączna wartość kolumny P_11 tabeli FakturaWiersz w okresie, którego dotyczy JPK_FA</xsd:documentation>
626
+								</xsd:annotation>
627
+							</xsd:element>
628
+						</xsd:sequence>
629
+					</xsd:complexType>
630
+				</xsd:element>
631
+				<xsd:sequence minOccurs="0">
632
+					<xsd:element name="Zamowienie" maxOccurs="unbounded">
633
+						<xsd:annotation>
634
+							<xsd:documentation>Zamówienia lub umowy, o których mowa w art. 106f ust. 1 pkt 4 ustawy (dla faktur zaliczkowych) w walucie, w której wystawiono fakturę zaliczkową</xsd:documentation>
635
+						</xsd:annotation>
636
+						<xsd:complexType>
637
+							<xsd:sequence>
638
+								<xsd:element name="P_2AZ" type="tns:TZnakowyJPK">
639
+									<xsd:annotation>
640
+										<xsd:documentation>Numer faktury, z którym związane jest zamówienie lub umowa, identyczny jak w polu P_2A</xsd:documentation>
641
+									</xsd:annotation>
642
+								</xsd:element>
643
+								<xsd:element name="WartoscZamowienia" type="tns:TKwotowy">
644
+									<xsd:annotation>
645
+										<xsd:documentation>Wartość zamówienia lub umowy z uwzględnieniem kwoty podatku</xsd:documentation>
646
+									</xsd:annotation>
647
+								</xsd:element>
648
+								<xsd:sequence>
649
+									<xsd:element name="ZamowienieWiersz" maxOccurs="unbounded">
650
+										<xsd:annotation>
651
+											<xsd:documentation>Szczegółowe pozycje zamówienia lub umowy w walucie, w której wystawiono fakturę zaliczkową</xsd:documentation>
652
+										</xsd:annotation>
653
+										<xsd:complexType>
654
+											<xsd:sequence>
655
+												<xsd:element name="P_7Z" type="tns:TZnakowyJPK" minOccurs="0">
656
+													<xsd:annotation>
657
+														<xsd:documentation>Nazwa (rodzaj) towaru lub usługi</xsd:documentation>
658
+													</xsd:annotation>
659
+												</xsd:element>
660
+												<xsd:element name="P_8AZ" type="tns:TZnakowyJPK" minOccurs="0">
661
+													<xsd:annotation>
662
+														<xsd:documentation>Miara zamówionego towaru lub zakres usługi</xsd:documentation>
663
+													</xsd:annotation>
664
+												</xsd:element>
665
+												<xsd:element name="P_8BZ" type="tns:TIlosciJPK" minOccurs="0">
666
+													<xsd:annotation>
667
+														<xsd:documentation>Ilość zamówionego towaru lub zakres usługi</xsd:documentation>
668
+													</xsd:annotation>
669
+												</xsd:element>
670
+												<xsd:element name="P_9AZ" type="tns:TKwotowy" minOccurs="0">
671
+													<xsd:annotation>
672
+														<xsd:documentation>Cena jednostkowa netto</xsd:documentation>
673
+													</xsd:annotation>
674
+												</xsd:element>
675
+												<xsd:element name="P_11NettoZ" type="tns:TKwotowy" minOccurs="0">
676
+													<xsd:annotation>
677
+														<xsd:documentation>Wartość zamówionego towaru lub usługi bez kwoty podatku</xsd:documentation>
678
+													</xsd:annotation>
679
+												</xsd:element>
680
+												<xsd:element name="P_11VatZ" type="tns:TKwotowy" minOccurs="0">
681
+													<xsd:annotation>
682
+														<xsd:documentation>Kwota podatku od zamówionego towaru lub usługi</xsd:documentation>
683
+													</xsd:annotation>
684
+												</xsd:element>
685
+												<xsd:element name="P_12Z" minOccurs="0">
686
+													<xsd:annotation>
687
+														<xsd:documentation>Stawka podatku</xsd:documentation>
688
+													</xsd:annotation>
689
+													<!--gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"-->
690
+													<xsd:simpleType>
691
+														<xsd:restriction base="tns:TZnakowyJPK">
692
+															<xsd:maxLength value="2"/>
693
+															<xsd:enumeration value="23"/>
694
+															<xsd:enumeration value="22"/>
695
+															<xsd:enumeration value="8"/>
696
+															<xsd:enumeration value="7"/>
697
+															<xsd:enumeration value="5"/>
698
+															<xsd:enumeration value="4"/>
699
+															<xsd:enumeration value="3"/>
700
+															<xsd:enumeration value="0"/>
701
+															<xsd:enumeration value="zw">
702
+																<xsd:annotation>
703
+																	<xsd:documentation>zwolnione z opodatkowania</xsd:documentation>
704
+																</xsd:annotation>
705
+															</xsd:enumeration>
706
+															<xsd:enumeration value="oo">
707
+																<xsd:annotation>
708
+																	<xsd:documentation>odwrotne obciążenie</xsd:documentation>
709
+																</xsd:annotation>
710
+															</xsd:enumeration>
711
+															<xsd:enumeration value="np">
712
+																<xsd:annotation>
713
+																	<xsd:documentation>niepodlegające opodatkowaniu-transakcje dostawy towarów oraz świadczenia usług poza terytorium kraju</xsd:documentation>
714
+																</xsd:annotation>
715
+															</xsd:enumeration>
716
+														</xsd:restriction>
717
+													</xsd:simpleType>
718
+												</xsd:element>
719
+											</xsd:sequence>
720
+										</xsd:complexType>
721
+									</xsd:element>
722
+								</xsd:sequence>
723
+							</xsd:sequence>
724
+						</xsd:complexType>
725
+					</xsd:element>
726
+					<xsd:element name="ZamowienieCtrl">
727
+						<xsd:annotation>
728
+							<xsd:documentation>Sumy kontrolne dla zamówień lub umów</xsd:documentation>
729
+						</xsd:annotation>
730
+						<xsd:complexType>
731
+							<xsd:sequence>
732
+								<xsd:element name="LiczbaZamowien" type="tns:TNaturalnyJPK">
733
+									<xsd:annotation>
734
+										<xsd:documentation>Liczba zamówień lub umów, w okresie którego dotyczy JPK_FA</xsd:documentation>
735
+									</xsd:annotation>
736
+								</xsd:element>
737
+								<xsd:element name="WartoscZamowien" type="tns:TKwotowy">
738
+									<xsd:annotation>
739
+										<xsd:documentation>Łączna wartość kolumny WartoscZamowienia w Tabeli Zamowienie w okresie, którego dotyczy JPK_FA</xsd:documentation>
740
+									</xsd:annotation>
741
+								</xsd:element>
742
+							</xsd:sequence>
743
+						</xsd:complexType>
744
+					</xsd:element>
745
+				</xsd:sequence>
746
+			</xsd:sequence>
747
+		</xsd:complexType>
748
+	</xsd:element>
749
+</xsd:schema>

+ 749
- 0
JPK_v1/Faktury_VAT_-JPK_FA(3)1.xsd Просмотреть файл

@@ -0,0 +1,749 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:etd="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2018/08/24/eD/DefinicjeTypy/" xmlns:kck="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" xmlns:tns="http://jpk.mf.gov.pl/wzor/2019/09/27/09271/" targetNamespace="http://jpk.mf.gov.pl/wzor/2019/09/27/09271/" elementFormDefault="qualified" attributeFormDefault="unqualified" xml:lang="pl">
3
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2018/08/24/eD/DefinicjeTypy/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2018/08/24/eD/DefinicjeTypy/StrukturyDanych_v5-0E.xsd"/>
4
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/KodyCechKrajow_v3-0E.xsd"/>
5
+	<xsd:simpleType name="TKodFormularza">
6
+		<xsd:annotation>
7
+			<xsd:documentation>Symbol wzoru formularza</xsd:documentation>
8
+		</xsd:annotation>
9
+		<xsd:restriction base="xsd:string">
10
+			<xsd:enumeration value="JPK_FA"/>
11
+		</xsd:restriction>
12
+	</xsd:simpleType>
13
+	<xsd:simpleType name="TCelZlozenia">
14
+		<xsd:annotation>
15
+			<xsd:documentation>Określenie celu złożenia JPK</xsd:documentation>
16
+		</xsd:annotation>
17
+		<xsd:restriction base="xsd:byte">
18
+			<xsd:enumeration value="1">
19
+				<xsd:annotation>
20
+					<xsd:documentation>złożenie JPK po raz pierwszy</xsd:documentation>
21
+				</xsd:annotation>
22
+			</xsd:enumeration>
23
+		</xsd:restriction>
24
+	</xsd:simpleType>
25
+	<xsd:complexType name="TNaglowek">
26
+		<xsd:annotation>
27
+			<xsd:documentation>Nagłówek JPK_FA</xsd:documentation>
28
+		</xsd:annotation>
29
+		<xsd:sequence>
30
+			<xsd:element name="KodFormularza">
31
+				<xsd:complexType>
32
+					<xsd:simpleContent>
33
+						<xsd:extension base="tns:TKodFormularza">
34
+							<xsd:attribute name="kodSystemowy" type="xsd:string" use="required" fixed="JPK_FA (3)"/>
35
+							<xsd:attribute name="wersjaSchemy" type="xsd:string" use="required" fixed="1-0"/>
36
+						</xsd:extension>
37
+					</xsd:simpleContent>
38
+				</xsd:complexType>
39
+			</xsd:element>
40
+			<xsd:element name="WariantFormularza">
41
+				<xsd:simpleType>
42
+					<xsd:restriction base="xsd:byte">
43
+						<xsd:enumeration value="3"/>
44
+					</xsd:restriction>
45
+				</xsd:simpleType>
46
+			</xsd:element>
47
+			<xsd:element name="CelZlozenia" type="tns:TCelZlozenia"/>
48
+			<xsd:element name="DataWytworzeniaJPK" type="etd:TDataCzas">
49
+				<xsd:annotation>
50
+					<xsd:documentation>Data i czas wytworzenia JPK_FA</xsd:documentation>
51
+				</xsd:annotation>
52
+			</xsd:element>
53
+			<xsd:element name="DataOd" type="tns:TData">
54
+				<xsd:annotation>
55
+					<xsd:documentation>Data początkowa okresu, którego dotyczy JPK_FA</xsd:documentation>
56
+				</xsd:annotation>
57
+			</xsd:element>
58
+			<xsd:element name="DataDo" type="tns:TData">
59
+				<xsd:annotation>
60
+					<xsd:documentation>Data końcowa okresu, którego dotyczy JPK_FA</xsd:documentation>
61
+				</xsd:annotation>
62
+			</xsd:element>
63
+			<xsd:element name="KodUrzedu" type="etd:TKodUS">
64
+				<xsd:annotation>
65
+					<xsd:documentation>Kod urzędu skarbowego, właściwy dla podatnika przekazującego JPK_FA</xsd:documentation>
66
+				</xsd:annotation>
67
+			</xsd:element>
68
+		</xsd:sequence>
69
+	</xsd:complexType>
70
+	<xsd:simpleType name="TKwotowy">
71
+		<xsd:annotation>
72
+			<xsd:documentation>Wartość numeryczna 18 znaków max, w tym 2 znaki po przecinku</xsd:documentation>
73
+		</xsd:annotation>
74
+		<xsd:restriction base="xsd:decimal">
75
+			<xsd:totalDigits value="18"/>
76
+			<xsd:fractionDigits value="2"/>
77
+		</xsd:restriction>
78
+	</xsd:simpleType>
79
+	<xsd:simpleType name="TNaturalnyJPK">
80
+		<xsd:annotation>
81
+			<xsd:documentation>Liczby naturalne większe od zera</xsd:documentation>
82
+		</xsd:annotation>
83
+		<xsd:restriction base="etd:TNaturalny">
84
+			<xsd:minExclusive value="0"/>
85
+		</xsd:restriction>
86
+	</xsd:simpleType>
87
+	<xsd:simpleType name="TZnakowyJPK">
88
+		<xsd:annotation>
89
+			<xsd:documentation>Typ znakowy ograniczony do 256 znaków</xsd:documentation>
90
+		</xsd:annotation>
91
+		<xsd:restriction base="xsd:token">
92
+			<xsd:minLength value="1"/>
93
+			<xsd:maxLength value="256"/>
94
+		</xsd:restriction>
95
+	</xsd:simpleType>
96
+	<xsd:simpleType name="TIlosciJPK">
97
+		<xsd:annotation>
98
+			<xsd:documentation>Wykorzystywany do określenia ilości. Wartość numeryczna 22 znaki max, w tym 6 po przecinku.</xsd:documentation>
99
+		</xsd:annotation>
100
+		<xsd:restriction base="xsd:decimal">
101
+			<xsd:totalDigits value="22"/>
102
+			<xsd:fractionDigits value="6"/>
103
+		</xsd:restriction>
104
+	</xsd:simpleType>
105
+	<xsd:simpleType name="TData">
106
+		<xsd:restriction base="etd:TData">
107
+			<xsd:minInclusive value="2016-07-01"/>
108
+			<xsd:maxInclusive value="2030-01-01"/>
109
+		</xsd:restriction>
110
+	</xsd:simpleType>
111
+	<xsd:simpleType name="TDataT">
112
+		<xsd:annotation>
113
+			<xsd:documentation>Data transakcji lub zdarzenia</xsd:documentation>
114
+		</xsd:annotation>
115
+		<xsd:restriction base="etd:TData">
116
+			<xsd:minInclusive value="2006-01-01"/>
117
+			<xsd:maxInclusive value="2030-01-01"/>
118
+		</xsd:restriction>
119
+	</xsd:simpleType>
120
+	<xsd:element name="JPK">
121
+		<xsd:annotation>
122
+			<xsd:documentation>Jednolity plik kontrolny dla faktur VAT</xsd:documentation>
123
+		</xsd:annotation>
124
+		<xsd:complexType>
125
+			<xsd:sequence>
126
+				<xsd:element name="Naglowek">
127
+					<xsd:annotation>
128
+						<xsd:documentation>Nagłówek JPK_FA</xsd:documentation>
129
+					</xsd:annotation>
130
+					<xsd:complexType>
131
+						<xsd:complexContent>
132
+							<xsd:extension base="tns:TNaglowek"/>
133
+						</xsd:complexContent>
134
+					</xsd:complexType>
135
+				</xsd:element>
136
+				<xsd:element name="Podmiot1">
137
+					<xsd:complexType>
138
+						<xsd:sequence>
139
+							<xsd:element name="IdentyfikatorPodmiotu" type="etd:TIdentyfikatorOsobyNiefizycznej1">
140
+								<xsd:annotation>
141
+									<xsd:documentation>Dane identyfikujące podmiot</xsd:documentation>
142
+								</xsd:annotation>
143
+							</xsd:element>
144
+							<xsd:choice>
145
+								<xsd:element name="AdresPodmiotu" type="etd:TAdresPolski1">
146
+									<xsd:annotation>
147
+										<xsd:documentation>Adres podmiotu w Polsce</xsd:documentation>
148
+									</xsd:annotation>
149
+								</xsd:element>
150
+								<xsd:element name="AdresPodmiotu2" type="etd:TAdresZagraniczny">
151
+									<xsd:annotation>
152
+										<xsd:documentation>Adres podmiotu zagraniczny</xsd:documentation>
153
+									</xsd:annotation>
154
+								</xsd:element>
155
+							</xsd:choice>
156
+						</xsd:sequence>
157
+					</xsd:complexType>
158
+				</xsd:element>
159
+				<xsd:element name="Faktura" maxOccurs="unbounded">
160
+					<xsd:annotation>
161
+						<xsd:documentation>Na podstawie art. 106 a-q ustawy z 11 marca 2004 r. o podatku od towarów i usług (Dz. U. z 2018 r. poz. 2174 z późn. zm.). Wartości sprzedaży i kwoty podatku wypełnia się w walucie, w której wystawiono fakturę, z wyjątkiem pól, w których kwoty podatku zostały przeliczone zgodnie z art. 31a w związku z art. 106e ust. 11 ustawy</xsd:documentation>
162
+					</xsd:annotation>
163
+					<xsd:complexType>
164
+						<xsd:sequence>
165
+							<xsd:element name="KodWaluty" type="kck:currCode_Type">
166
+								<xsd:annotation>
167
+									<xsd:documentation>Trzyliterowy kod waluty (ISO-4217), w której faktura, zamówienie lub umowa zostały wystawione</xsd:documentation>
168
+								</xsd:annotation>
169
+							</xsd:element>
170
+							<xsd:element name="P_1" type="tns:TDataT">
171
+								<xsd:annotation>
172
+									<xsd:documentation>Data wystawienia</xsd:documentation>
173
+								</xsd:annotation>
174
+							</xsd:element>
175
+							<xsd:element name="P_2A" type="tns:TZnakowyJPK">
176
+								<xsd:annotation>
177
+									<xsd:documentation>Kolejny numer faktury, nadany w ramach jednej lub więcej serii, który w sposób jednoznaczny indentyfikuje fakturę</xsd:documentation>
178
+								</xsd:annotation>
179
+							</xsd:element>
180
+							<xsd:element name="P_3A" type="tns:TZnakowyJPK" minOccurs="0">
181
+								<xsd:annotation>
182
+									<xsd:documentation>Imię i nazwisko lub nazwa nabywcy towarów lub usług. Pole opcjonalne dla przypadku określonego w art. 106e ust. 5 pkt 3 ustawy</xsd:documentation>
183
+								</xsd:annotation>
184
+							</xsd:element>
185
+							<xsd:element name="P_3B" type="tns:TZnakowyJPK" minOccurs="0">
186
+								<xsd:annotation>
187
+									<xsd:documentation>Adres nabywcy. Pole opcjonalne dla przypadków określonych w art. 106e ust. 5 pkt 3 ustawy oraz w § 3 pkt 4 rozporządzenia Ministra Finansów z dnia 3 grudnia 2013 r. w sprawie wystawiania faktur (Dz. U. z 2013 r., poz. 1485)</xsd:documentation>
188
+								</xsd:annotation>
189
+							</xsd:element>
190
+							<xsd:element name="P_3C" type="tns:TZnakowyJPK">
191
+								<xsd:annotation>
192
+									<xsd:documentation>Imię i nazwisko lub nazwa sprzedawcy towarów lub usług</xsd:documentation>
193
+								</xsd:annotation>
194
+							</xsd:element>
195
+							<xsd:element name="P_3D" type="tns:TZnakowyJPK">
196
+								<xsd:annotation>
197
+									<xsd:documentation>Adres sprzedawcy</xsd:documentation>
198
+								</xsd:annotation>
199
+							</xsd:element>
200
+							<xsd:element name="P_4A" type="kck:MSCountryCode_Type" minOccurs="0">
201
+								<xsd:annotation>
202
+									<xsd:documentation>Kod (prefiks) podatnika VAT UE dla przypadków określonych w art. 97 ust. 10 ustawy</xsd:documentation>
203
+								</xsd:annotation>
204
+							</xsd:element>
205
+							<xsd:element name="P_4B" type="etd:TNrIdentyfikacjiPodatkowej" minOccurs="0">
206
+								<xsd:annotation>
207
+									<xsd:documentation>Numer, za pomocą którego podatnik jest zidentyfikowany na potrzeby podatku, z zastrzeżeniem pkt 24 lit. a ustawy. Pole opcjonalne dla przypadku określonego w art. 106e ust. 4 pkt 2 ustawy. W przypadku faktur wystawianych w procedurze uproszczonej przez drugiego w kolejności podatnika, o którym mowa w art. 135 ust. 1 pkt 4 lit. b i c oraz ust. 2 ustawy, numer, o którym mowa w art. 136 ust. 1 pkt 3 ustawy</xsd:documentation>
208
+								</xsd:annotation>
209
+							</xsd:element>
210
+							<xsd:element name="P_5A" type="kck:MSCountryCode_Type" minOccurs="0">
211
+								<xsd:annotation>
212
+									<xsd:documentation>Kod (prefiks) nabywcy - podatnika VAT UE dla przypadków określonych w art. 97 ust. 10 ustawy</xsd:documentation>
213
+								</xsd:annotation>
214
+							</xsd:element>
215
+							<xsd:element name="P_5B" type="etd:TNrIdentyfikacjiPodatkowej" minOccurs="0">
216
+								<xsd:annotation>
217
+									<xsd:documentation>Numer, za pomocą którego nabywca towarów lub usług jest identyfikowany dla podatku lub podatku od wartości dodanej, pod którym otrzymał on towary lub usługi, z zastrzeżeniem pkt 24 lit. b ustawy. Pole opcjonalne dla przypadku określonego w art. 106e ust. 5 pkt 2 ustawy. W przypadku faktur wystawianych w procedurze uproszczonej przez drugiego w kolejności podatnika, o którym mowa w art. 135 ust. 1 pkt 4 lit. b i c oraz ust. 2 ustawy, numer, o którym mowa w art. 136 ust. 1 pkt 4 ustawy</xsd:documentation>
218
+								</xsd:annotation>
219
+							</xsd:element>
220
+							<xsd:element name="P_6" type="tns:TDataT" minOccurs="0">
221
+								<xsd:annotation>
222
+									<xsd:documentation>Data dokonania lub zakończenia dostawy towarów lub wykonania usługi lub data otrzymania zapłaty, o której mowa w art. 106b ust. 1 pkt 4, o ile taka data jest określona i różni się od daty wystawienia faktury</xsd:documentation>
223
+								</xsd:annotation>
224
+							</xsd:element>
225
+							<xsd:sequence minOccurs="0">
226
+								<xsd:annotation>
227
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3 oraz ust. 4 pkt 1, a także ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy</xsd:documentation>
228
+								</xsd:annotation>
229
+								<!--gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true" oraz gdy pole P_18 przyjmuje wartość "true"-->
230
+								<xsd:element name="P_13_1" type="tns:TKwotowy">
231
+									<xsd:annotation>
232
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką podstawową - aktualnie 23% albo 22%. W przypadku faktur zaliczkowych, kwota zaliczki netto</xsd:documentation>
233
+									</xsd:annotation>
234
+								</xsd:element>
235
+								<xsd:element name="P_14_1" type="tns:TKwotowy">
236
+									<xsd:annotation>
237
+										<xsd:documentation>Kwota podatku od sumy wartości sprzedaży netto ze stawką podstawową - aktualnie 23% albo 22%. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy</xsd:documentation>
238
+									</xsd:annotation>
239
+								</xsd:element>
240
+								<xsd:element name="P_14_1W" type="tns:TKwotowy" minOccurs="0">
241
+									<xsd:annotation>
242
+										<xsd:documentation>W przypadku gdy faktura jest wystawiona w walucie obcej, kwota podatku od sumy wartości sprzedaży netto ze stawką podstawową, przeliczona zgodnie z art. 31a w związku z art. 106e ust. 11 ustawy - aktualnie 23% albo 22%. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy </xsd:documentation>
243
+									</xsd:annotation>
244
+								</xsd:element>
245
+							</xsd:sequence>
246
+							<xsd:sequence minOccurs="0">
247
+								<xsd:annotation>
248
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3 oraz ust. 4 pkt 1, a także ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy</xsd:documentation>
249
+								</xsd:annotation>
250
+								<!--gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true" oraz gdy pole P_18 przyjmuje wartość "true"-->
251
+								<xsd:element name="P_13_2" type="tns:TKwotowy">
252
+									<xsd:annotation>
253
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką obniżoną pierwszą - aktualnie 8 % albo 7%. W przypadku faktur zaliczkowych, kwota zaliczki netto</xsd:documentation>
254
+									</xsd:annotation>
255
+								</xsd:element>
256
+								<xsd:element name="P_14_2" type="tns:TKwotowy">
257
+									<xsd:annotation>
258
+										<xsd:documentation>Kwota podatku od sumy wartości sprzedaży netto ze stawką obniżoną pierwszą - aktualnie 8% albo 7%. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy</xsd:documentation>
259
+									</xsd:annotation>
260
+								</xsd:element>
261
+								<xsd:element name="P_14_2W" type="tns:TKwotowy" minOccurs="0">
262
+									<xsd:annotation>
263
+										<xsd:documentation>W przypadku gdy faktura jest wystawiona w walucie obcej, kwota podatku od sumy wartości sprzedaży netto ze stawką obniżoną, przeliczona zgodnie z art. 31a w związku z art. 106e ust. 11 ustawy - aktualnie 8% albo 7%. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy</xsd:documentation>
264
+									</xsd:annotation>
265
+								</xsd:element>
266
+							</xsd:sequence>
267
+							<xsd:sequence minOccurs="0">
268
+								<xsd:annotation>
269
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3 oraz ust. 4 pkt 1, a także ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy</xsd:documentation>
270
+								</xsd:annotation>
271
+								<!--gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true" oraz gdy pole P_18 przyjmuje wartość "true"-->
272
+								<xsd:element name="P_13_3" type="tns:TKwotowy">
273
+									<xsd:annotation>
274
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką obniżoną drugą - aktualnie 5%. W przypadku faktur zaliczkowych, kwota zaliczki netto</xsd:documentation>
275
+									</xsd:annotation>
276
+								</xsd:element>
277
+								<xsd:element name="P_14_3" type="tns:TKwotowy">
278
+									<xsd:annotation>
279
+										<xsd:documentation>Kwota podatku od sumy wartości sprzedaży netto ze stawką obniżoną drugą - aktualnie 5%. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy</xsd:documentation>
280
+									</xsd:annotation>
281
+								</xsd:element>
282
+								<xsd:element name="P_14_3W" type="tns:TKwotowy" minOccurs="0">
283
+									<xsd:annotation>
284
+										<xsd:documentation>W przypadku gdy faktura jest wystawiona w walucie obcej, kwota podatku od sumy wartości sprzedaży netto ze stawką obniżoną drugą, przeliczona zgodnie z art. 31a w związku z art. 106e ust. 11 ustawy - aktualnie 5%. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy</xsd:documentation>
285
+									</xsd:annotation>
286
+								</xsd:element>
287
+							</xsd:sequence>
288
+							<xsd:sequence minOccurs="0">
289
+								<xsd:annotation>
290
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3 oraz ust. 4 pkt 1, a także ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy</xsd:documentation>
291
+								</xsd:annotation>
292
+								<!--gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true" oraz gdy pole P_18 przyjmuje wartość "true"-->
293
+								<xsd:element name="P_13_4" type="tns:TKwotowy">
294
+									<xsd:annotation>
295
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką obniżoną trzecią w walucie, w której faktura została wystawiona - procedura odwrotnego obciążenia, dla której podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 i 8 ustawy VAT oraz dla stawki 4% w przypadku ryczałtu dla taksówek osobowych. W przypadku faktur zaliczkowych, kwota zaliczki netto</xsd:documentation>
296
+									</xsd:annotation>
297
+								</xsd:element>
298
+								<xsd:element name="P_14_4" type="tns:TKwotowy">
299
+									<xsd:annotation>
300
+										<xsd:documentation>Kwota "0" dla procedury odwrotnego obciążenia, dla której podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 i 8 ustawy VAT oraz kwota podatku od sumy wartości sprzedaży netto dla stawki 4% w walucie, w której faktura została wystawiona w przypadku ryczałtu dla taksówek osobowych. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy</xsd:documentation>
301
+									</xsd:annotation>
302
+								</xsd:element>
303
+								<xsd:element name="P_14_4W" type="tns:TKwotowy" minOccurs="0">
304
+									<xsd:annotation>
305
+										<xsd:documentation>W przypadku gdy faktura jest wystawiona w walucie obcej, kwota "0" dla procedury odwrotnego obciążenia, dla której podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 i 8 ustawy VAT oraz kwota podatku od sumy wartości sprzedaży netto w walucie obcej dla stawki 4% w przypadku ryczałtu dla taksówek osobowych, przeliczona zgodnie z art. 31a w związku z art. 106e ust. 11 ustawy. W przypadku faktur zaliczkowych, kwota podatku wyliczona według wzoru, o którym mowa w art. 106f ust. 1 pkt 3 ustawy</xsd:documentation>
306
+									</xsd:annotation>
307
+								</xsd:element>
308
+							</xsd:sequence>
309
+							<xsd:element name="P_13_5" type="tns:TKwotowy" minOccurs="0">
310
+								<xsd:annotation>
311
+									<xsd:documentation>Suma wartości sprzedaży netto dla transakcji dostawy towarów oraz świadczenia usług poza terytorium kraju. W przypadku faktur zaliczkowych, kwota zaliczki netto. Pole opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 oraz ust. 4 pkt 1, a także ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy</xsd:documentation>
312
+								</xsd:annotation>
313
+							</xsd:element>
314
+							<xsd:element name="P_13_6" type="tns:TKwotowy" minOccurs="0">
315
+								<xsd:annotation>
316
+									<xsd:documentation>Suma wartości sprzedaży netto ze stawką 0%. W przypadku faktur zaliczkowych, kwota zaliczki netto. Pole opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3, a także ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy</xsd:documentation>
317
+								</xsd:annotation>
318
+							</xsd:element>
319
+							<xsd:element name="P_13_7" type="tns:TKwotowy" minOccurs="0">
320
+								<xsd:annotation>
321
+									<xsd:documentation>Suma wartości sprzedaży zwolnionej. W przypadku faktur zaliczkowych, kwota zaliczki netto. Pola opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3, a także ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy</xsd:documentation>
322
+								</xsd:annotation>
323
+							</xsd:element>
324
+							<xsd:element name="P_15" type="tns:TKwotowy">
325
+								<xsd:annotation>
326
+									<xsd:documentation>Kwota należności ogółem lub w przypadku faktur zaliczkowych, otrzymana kwota zapłaty</xsd:documentation>
327
+								</xsd:annotation>
328
+							</xsd:element>
329
+							<xsd:element name="P_16" type="xsd:boolean" default="false">
330
+								<xsd:annotation>
331
+									<xsd:documentation>W przypadku dostawy towarów lub świadczenia usług, w odniesieniu do których obowiązek podatkowy powstaje zgodnie z art. 19a ust. 5 pkt 1 lub art. 21 ust. 1 - wyrazy "metoda kasowa", należy podać wartość "true"; w przeciwnym przypadku - wartość "false"</xsd:documentation>
332
+								</xsd:annotation>
333
+							</xsd:element>
334
+							<xsd:element name="P_17" type="xsd:boolean" default="false">
335
+								<xsd:annotation>
336
+									<xsd:documentation>W przypadku faktur, o których mowa w art. 106d ust. 1 - wyraz "samofakturowanie", należy podać wartość "true"; w przeciwnym przypadku - wartość "false"</xsd:documentation>
337
+								</xsd:annotation>
338
+							</xsd:element>
339
+							<xsd:element name="P_18" type="xsd:boolean" default="false">
340
+								<xsd:annotation>
341
+									<xsd:documentation>W przypadku dostawy towarów lub wykonania usługi, dla których obowiązanym do rozliczenia podatku od wartości dodanej lub podatku o podobnym charakterze jest nabywca towaru lub usługi - wyrazy "odwrotne obciążenie", należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
342
+								</xsd:annotation>
343
+							</xsd:element>
344
+							<xsd:element name="P_18A" type="xsd:boolean" default="false">
345
+								<xsd:annotation>
346
+									<xsd:documentation>W przypadku faktur, w których kwota należności ogółem stanowi kwotę, o której mowa w art. 19 pkt 2 ustawy z dnia 6 marca 2018 r. - Prawo przedsiębiorców, obejmujących dokonaną na rzecz podatnika dostawę towarów lub świadczenie usług wymienionych w załączniku nr 15 do ustawy - wyrazy „mechanizm podzielonej płatności”, należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
347
+								</xsd:annotation>
348
+							</xsd:element>
349
+							<xsd:element name="P_19" type="xsd:boolean" default="false">
350
+								<xsd:annotation>
351
+									<xsd:documentation>W przypadku dostawy towarów lub świadczenia usług zwolnionych od podatku na podstawie art. 43 ust. 1, art. 113 ust. 1 i 9 albo przepisów wydanych na podstawie art. 82 ust. 3 należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
352
+								</xsd:annotation>
353
+							</xsd:element>
354
+							<xsd:sequence minOccurs="0">
355
+								<xsd:element name="P_19A" type="tns:TZnakowyJPK" default="false" minOccurs="0">
356
+									<xsd:annotation>
357
+										<xsd:documentation>Jeśli pole P_19 równa się "true" - należy wskazać przepis ustawy albo aktu wydanego na podstawie ustawy, na podstawie którego podatnik stosuje zwolnienie od podatku</xsd:documentation>
358
+									</xsd:annotation>
359
+								</xsd:element>
360
+								<xsd:element name="P_19B" type="tns:TZnakowyJPK" default="false" minOccurs="0">
361
+									<xsd:annotation>
362
+										<xsd:documentation>Jeśli pole P_19 równa się "true" - należy wskazać przepis dyrektywy 2006/112/WE, który zwalnia od podatku taką dostawę towarów lub takie świadczenie usług</xsd:documentation>
363
+									</xsd:annotation>
364
+								</xsd:element>
365
+								<xsd:element name="P_19C" type="tns:TZnakowyJPK" default="false" minOccurs="0">
366
+									<xsd:annotation>
367
+										<xsd:documentation>Jeśli pole P_19 równa się "true" - należy wskazać inną podstawę prawną wskazującą na to, że dostawa towarów lub świadczenie usług korzysta ze zwolnienia
368
+</xsd:documentation>
369
+									</xsd:annotation>
370
+								</xsd:element>
371
+							</xsd:sequence>
372
+							<xsd:element name="P_20" type="xsd:boolean" default="false">
373
+								<xsd:annotation>
374
+									<xsd:documentation>W przypadku, o którym mowa w art. 106c ustawy należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
375
+								</xsd:annotation>
376
+							</xsd:element>
377
+							<xsd:sequence minOccurs="0">
378
+								<xsd:element name="P_20A" type="tns:TZnakowyJPK">
379
+									<xsd:annotation>
380
+										<xsd:documentation>Jeśli pole P_20 równa się "true" - należy podać nazwę organu egzekucyjnego lub imię i nazwisko komornika sądowego</xsd:documentation>
381
+									</xsd:annotation>
382
+								</xsd:element>
383
+								<xsd:element name="P_20B" type="tns:TZnakowyJPK">
384
+									<xsd:annotation>
385
+										<xsd:documentation>Jeśli pole P_20 równa się "true" - należy podać adres organu egzekucyjnego lub komornika sądowego</xsd:documentation>
386
+									</xsd:annotation>
387
+								</xsd:element>
388
+							</xsd:sequence>
389
+							<xsd:element name="P_21" type="xsd:boolean" default="false">
390
+								<xsd:annotation>
391
+									<xsd:documentation>W przypadku faktur wystawianych w imieniu i na rzecz podatnika przez jego przedstawiciela podatkowego należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
392
+								</xsd:annotation>
393
+							</xsd:element>
394
+							<xsd:sequence minOccurs="0">
395
+								<xsd:element name="P_21A" type="tns:TZnakowyJPK" default="false">
396
+									<xsd:annotation>
397
+										<xsd:documentation>Jeśli pole P_21 równa się "true" - należy podać nazwę lub imię i nazwisko przedstawiciela podatkowego</xsd:documentation>
398
+									</xsd:annotation>
399
+								</xsd:element>
400
+								<xsd:element name="P_21B" type="tns:TZnakowyJPK" default="false">
401
+									<xsd:annotation>
402
+										<xsd:documentation>Jeśli pole P_21 równa się "true" - należy podać adres przedstawiciela podatkowego</xsd:documentation>
403
+									</xsd:annotation>
404
+								</xsd:element>
405
+								<xsd:element name="P_21C" type="tns:TZnakowyJPK" default="false">
406
+									<xsd:annotation>
407
+										<xsd:documentation>Jeśli pole P_21 równa się "true" - należy podać numer przedstawiciela podatkowego, za pomocą którego jest on zidentyfikowany na potrzeby podatku</xsd:documentation>
408
+									</xsd:annotation>
409
+								</xsd:element>
410
+							</xsd:sequence>
411
+							<xsd:element name="P_22" type="xsd:boolean" default="false">
412
+								<xsd:annotation>
413
+									<xsd:documentation>W przypadku gdy przedmiotem wewnątrzwspólnotowej dostawy są nowe środki transportu należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
414
+								</xsd:annotation>
415
+							</xsd:element>
416
+							<xsd:sequence minOccurs="0">
417
+								<xsd:element name="P_22A" type="etd:TData">
418
+									<xsd:annotation>
419
+										<xsd:documentation>Jeśli pole P_22 równa się "true" - należy podać datę dopuszczenia nowego środka transportu do użytku</xsd:documentation>
420
+									</xsd:annotation>
421
+								</xsd:element>
422
+								<xsd:element name="P_22B" type="tns:TZnakowyJPK" minOccurs="0">
423
+									<xsd:annotation>
424
+										<xsd:documentation>Jeśli pole P_22 równa się "true" a dostawa dotyczy pojazdów lądowych, o których mowa w art. 2 pkt 10 lit. a ustawy - należy podać przebieg pojazdu</xsd:documentation>
425
+									</xsd:annotation>
426
+								</xsd:element>
427
+								<xsd:element name="P_22C" type="tns:TZnakowyJPK" minOccurs="0">
428
+									<xsd:annotation>
429
+										<xsd:documentation>Jeśli pole P_22 równa się "true" a dostawa dotyczy jednostek pływających, o których mowa w art. 2 pkt 10 lit. b ustawy, oraz statków powietrznych, o których mowa w art. 2 pkt 10 lit. c ustawy, należy podać liczbę godzin roboczych używania nowego środka transportu</xsd:documentation>
430
+									</xsd:annotation>
431
+								</xsd:element>
432
+							</xsd:sequence>
433
+							<xsd:element name="P_23" type="xsd:boolean" default="false">
434
+								<xsd:annotation>
435
+									<xsd:documentation>W przypadku faktur wystawianych w procedurze uproszczonej przez drugiego w kolejności podatnika, o którym mowa w art. 135 ust. 1 pkt 4 lit. b i c oraz ust. 2, zawierającej adnotację, o której mowa w art. 136 ust. 1 pkt 1 i stwierdzenie, o którym mowa w art. 136 ust. 1 pkt 2 ustawy należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
436
+								</xsd:annotation>
437
+							</xsd:element>
438
+							<xsd:element name="P_106E_2" type="xsd:boolean" default="false">
439
+								<xsd:annotation>
440
+									<xsd:documentation>W przypadku świadczenia usług turystyki, dla których podstawę opodatkowania stanowi zgodnie z art. 119 ust. 1 kwota marży, faktura - w zakresie danych określonych w ust. 1 pkt 1-17 - powinna zawierać wyłącznie dane określone w ust. 1 pkt 1-8 i 15-17, a także wyrazy "procedura marży dla biur podróży", należy podać wartość "true", w przeciwnym przypadku - wartość "false"
441
+</xsd:documentation>
442
+								</xsd:annotation>
443
+							</xsd:element>
444
+							<xsd:sequence>
445
+								<xsd:element name="P_106E_3" type="xsd:boolean" default="false">
446
+									<xsd:annotation>
447
+										<xsd:documentation>W przypadku dostawy towarów używanych, dzieł sztuki, przedmiotów kolekcjonerskich i antyków, dla których podstawę opodatkowania stanowi zgodnie z art. 120 ust. 4 i 5 marża, należy podać wartość "true", w przeciwnym przypadku - wartość "false"</xsd:documentation>
448
+									</xsd:annotation>
449
+								</xsd:element>
450
+								<xsd:element name="P_106E_3A" type="tns:TZnakowyJPK" default="false" minOccurs="0">
451
+									<xsd:annotation>
452
+										<xsd:documentation>Jeżeli pole P_106E_3 równa się "true", należy podać wyrazy: "procedura marży - towary używane" lub "procedura marży - dzieła sztuki" lub "procedura marży - przedmioty kolekcjonerskie i antyki"</xsd:documentation>
453
+									</xsd:annotation>
454
+								</xsd:element>
455
+							</xsd:sequence>
456
+							<xsd:element name="RodzajFaktury">
457
+								<xsd:annotation>
458
+									<xsd:documentation>Rodzaj faktury</xsd:documentation>
459
+								</xsd:annotation>
460
+								<xsd:simpleType>
461
+									<xsd:restriction base="tns:TZnakowyJPK">
462
+										<xsd:enumeration value="VAT">
463
+											<xsd:annotation>
464
+												<xsd:documentation>Faktura podstawowa oraz faktura wystawiona w związku z art. 106f ust. 3 ustawy</xsd:documentation>
465
+											</xsd:annotation>
466
+										</xsd:enumeration>
467
+										<xsd:enumeration value="KOREKTA">
468
+											<xsd:annotation>
469
+												<xsd:documentation>Faktura korygująca</xsd:documentation>
470
+											</xsd:annotation>
471
+										</xsd:enumeration>
472
+										<xsd:enumeration value="ZAL">
473
+											<xsd:annotation>
474
+												<xsd:documentation>Faktura dokumentująca otrzymanie zapłaty lub jej części przed dokonaniem czynności oraz faktura wystawiona w związku z art. 106f ust. 4 ustawy</xsd:documentation>
475
+											</xsd:annotation>
476
+										</xsd:enumeration>
477
+									</xsd:restriction>
478
+								</xsd:simpleType>
479
+							</xsd:element>
480
+							<xsd:sequence minOccurs="0">
481
+								<xsd:element name="PrzyczynaKorekty" type="tns:TZnakowyJPK">
482
+									<xsd:annotation>
483
+										<xsd:documentation>Przyczyna korekty dla faktur korygujących</xsd:documentation>
484
+									</xsd:annotation>
485
+								</xsd:element>
486
+								<xsd:element name="NrFaKorygowanej" type="tns:TZnakowyJPK">
487
+									<xsd:annotation>
488
+										<xsd:documentation>Numer faktury korygowanej</xsd:documentation>
489
+									</xsd:annotation>
490
+								</xsd:element>
491
+								<xsd:element name="OkresFaKorygowanej" type="tns:TZnakowyJPK" minOccurs="0">
492
+									<xsd:annotation>
493
+										<xsd:documentation>Dla faktury korygującej - okres, do którego odnosi się udzielany opust lub obniżka, w przypadku gdy podatnik udziela opustu lub obniżki ceny w odniesieniu do wszystkich dostaw towarów lub usług dokonanych lub świadczonych na rzecz jednego odbiorcy w danym okresie</xsd:documentation>
494
+									</xsd:annotation>
495
+								</xsd:element>
496
+							</xsd:sequence>
497
+							<xsd:element name="NrFaZaliczkowej" type="tns:TZnakowyJPK" minOccurs="0">
498
+								<xsd:annotation>
499
+									<xsd:documentation>Dla faktury, o której mowa w art. 106f ust. 3 i 4 ustawy - numery poprzednich faktur zaliczkowych</xsd:documentation>
500
+								</xsd:annotation>
501
+							</xsd:element>
502
+						</xsd:sequence>
503
+					</xsd:complexType>
504
+				</xsd:element>
505
+				<xsd:element name="FakturaCtrl">
506
+					<xsd:annotation>
507
+						<xsd:documentation>Sumy kontrolne dla faktur</xsd:documentation>
508
+					</xsd:annotation>
509
+					<xsd:complexType>
510
+						<xsd:sequence>
511
+							<xsd:element name="LiczbaFaktur" type="tns:TNaturalnyJPK">
512
+								<xsd:annotation>
513
+									<xsd:documentation>Liczba faktur, w okresie którego dotyczy JPK_FA</xsd:documentation>
514
+								</xsd:annotation>
515
+							</xsd:element>
516
+							<xsd:element name="WartoscFaktur" type="tns:TKwotowy">
517
+								<xsd:annotation>
518
+									<xsd:documentation>Łączna wartość kolumny P_15 w tabeli Faktura w okresie, którego dotyczy JPK_FA</xsd:documentation>
519
+								</xsd:annotation>
520
+							</xsd:element>
521
+						</xsd:sequence>
522
+					</xsd:complexType>
523
+				</xsd:element>
524
+				<xsd:element name="FakturaWiersz" maxOccurs="unbounded">
525
+					<xsd:annotation>
526
+						<xsd:documentation>Szczegółowe pozycje faktur w walucie, w której wystawiono fakturę</xsd:documentation>
527
+					</xsd:annotation>
528
+					<xsd:complexType>
529
+						<xsd:sequence>
530
+							<xsd:element name="P_2B" type="tns:TZnakowyJPK">
531
+								<xsd:annotation>
532
+									<xsd:documentation>Kolejny numer faktury, nadany w ramach jednej lub więcej serii, który w sposób jednoznaczny indentyfikuje fakturę</xsd:documentation>
533
+								</xsd:annotation>
534
+							</xsd:element>
535
+							<xsd:element name="P_7" type="tns:TZnakowyJPK" minOccurs="0">
536
+								<xsd:annotation>
537
+									<xsd:documentation>Nazwa (rodzaj) towaru lub usługi. Pole opcjonalne wyłącznie dla przypadku określonego w art 106j ust. 3 pkt 2 ustawy (faktura korekta)</xsd:documentation>
538
+								</xsd:annotation>
539
+							</xsd:element>
540
+							<xsd:element name="P_8A" type="tns:TZnakowyJPK" minOccurs="0">
541
+								<xsd:annotation>
542
+									<xsd:documentation>Miara dostarczonych towarów lub zakres wykonanych usług. Pole opcjonalne dla przypadku określonego w art. 106e ust. 5 pkt 3 ustawy</xsd:documentation>
543
+								</xsd:annotation>
544
+							</xsd:element>
545
+							<xsd:element name="P_8B" type="tns:TIlosciJPK" minOccurs="0">
546
+								<xsd:annotation>
547
+									<xsd:documentation>Ilość (liczba) dostarczonych towarów lub zakres wykonanych usług. Pole opcjonalne dla przypadku określonego w art. 106e ust. 5 pkt 3 ustawy</xsd:documentation>
548
+								</xsd:annotation>
549
+							</xsd:element>
550
+							<xsd:element name="P_9A" type="tns:TKwotowy" minOccurs="0">
551
+								<xsd:annotation>
552
+									<xsd:documentation>Cena jednostkowa towaru lub usługi bez kwoty podatku (cena jednostkowa netto). Pole opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3 oraz ust. 5 pkt 3 ustawy</xsd:documentation>
553
+								</xsd:annotation>
554
+							</xsd:element>
555
+							<xsd:element name="P_9B" type="tns:TKwotowy" minOccurs="0">
556
+								<xsd:annotation>
557
+									<xsd:documentation>Cena wraz z kwotą podatku (cena jednostkowa brutto), w przypadku zastosowania art. 106e ust. 7 i 8 ustawy</xsd:documentation>
558
+								</xsd:annotation>
559
+							</xsd:element>
560
+							<xsd:element name="P_10" type="tns:TKwotowy" minOccurs="0">
561
+								<xsd:annotation>
562
+									<xsd:documentation>Kwoty wszelkich opustów lub obniżek cen, w tym w formie rabatu z tytułu wcześniejszej zapłaty, o ile nie zostały one uwzględnione w cenie jednostkowej netto. Pole opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3 oraz ust. 5 pkt 1 ustawy</xsd:documentation>
563
+								</xsd:annotation>
564
+							</xsd:element>
565
+							<xsd:element name="P_11" type="tns:TKwotowy" minOccurs="0">
566
+								<xsd:annotation>
567
+									<xsd:documentation>Wartość dostarczonych towarów lub wykonanych usług, objętych transakcją, bez kwoty podatku (wartość sprzedaży netto). Pole opcjonalne dla przypadków określonych w art. 106e ust. 2 i 3 oraz ust. 5 pkt 3 ustawy</xsd:documentation>
568
+								</xsd:annotation>
569
+							</xsd:element>
570
+							<xsd:element name="P_11A" type="tns:TKwotowy" minOccurs="0">
571
+								<xsd:annotation>
572
+									<xsd:documentation>Wartość sprzedaży brutto, w przypadku zastosowania art. 106e ust. 7 i 8 ustawy</xsd:documentation>
573
+								</xsd:annotation>
574
+							</xsd:element>
575
+							<xsd:element name="P_12" minOccurs="0">
576
+								<xsd:annotation>
577
+									<xsd:documentation>Stawka podatku. Pole opcjonalne dla przypadków określonych w art. 106e ust. 2, 3, 4 pkt 3 i ust. 5 pkt 3 ustawy</xsd:documentation>
578
+								</xsd:annotation>
579
+								<!--gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"-->
580
+								<xsd:simpleType>
581
+									<xsd:restriction base="tns:TZnakowyJPK">
582
+										<xsd:maxLength value="2"/>
583
+										<xsd:enumeration value="23"/>
584
+										<xsd:enumeration value="22"/>
585
+										<xsd:enumeration value="8"/>
586
+										<xsd:enumeration value="7"/>
587
+										<xsd:enumeration value="5"/>
588
+										<xsd:enumeration value="4"/>
589
+										<xsd:enumeration value="3"/>
590
+										<xsd:enumeration value="0"/>
591
+										<xsd:enumeration value="zw">
592
+											<xsd:annotation>
593
+												<xsd:documentation>zwolnione z opodatkowania</xsd:documentation>
594
+											</xsd:annotation>
595
+										</xsd:enumeration>
596
+										<xsd:enumeration value="oo">
597
+											<xsd:annotation>
598
+												<xsd:documentation>odwrotne obciążenie</xsd:documentation>
599
+											</xsd:annotation>
600
+										</xsd:enumeration>
601
+										<xsd:enumeration value="np">
602
+											<xsd:annotation>
603
+												<xsd:documentation>niepodlegające opodatkowaniu-transakcje dostawy towarów oraz świadczenia usług poza terytorium kraju</xsd:documentation>
604
+											</xsd:annotation>
605
+										</xsd:enumeration>
606
+									</xsd:restriction>
607
+								</xsd:simpleType>
608
+							</xsd:element>
609
+						</xsd:sequence>
610
+					</xsd:complexType>
611
+				</xsd:element>
612
+				<xsd:element name="FakturaWierszCtrl">
613
+					<xsd:annotation>
614
+						<xsd:documentation>Sumy kontrolne dla wierszy faktur</xsd:documentation>
615
+					</xsd:annotation>
616
+					<xsd:complexType>
617
+						<xsd:sequence>
618
+							<xsd:element name="LiczbaWierszyFaktur" type="tns:TNaturalnyJPK">
619
+								<xsd:annotation>
620
+									<xsd:documentation>Liczba wierszy faktur, w okresie którego dotyczy JPK_FA</xsd:documentation>
621
+								</xsd:annotation>
622
+							</xsd:element>
623
+							<xsd:element name="WartoscWierszyFaktur" type="tns:TKwotowy">
624
+								<xsd:annotation>
625
+									<xsd:documentation>Łączna wartość kolumny P_11 tabeli FakturaWiersz w okresie, którego dotyczy JPK_FA</xsd:documentation>
626
+								</xsd:annotation>
627
+							</xsd:element>
628
+						</xsd:sequence>
629
+					</xsd:complexType>
630
+				</xsd:element>
631
+				<xsd:sequence minOccurs="0">
632
+					<xsd:element name="Zamowienie" maxOccurs="unbounded">
633
+						<xsd:annotation>
634
+							<xsd:documentation>Zamówienia lub umowy, o których mowa w art. 106f ust. 1 pkt 4 ustawy (dla faktur zaliczkowych) w walucie, w której wystawiono fakturę zaliczkową</xsd:documentation>
635
+						</xsd:annotation>
636
+						<xsd:complexType>
637
+							<xsd:sequence>
638
+								<xsd:element name="P_2AZ" type="tns:TZnakowyJPK">
639
+									<xsd:annotation>
640
+										<xsd:documentation>Numer faktury, z którym związane jest zamówienie lub umowa, identyczny jak w polu P_2A</xsd:documentation>
641
+									</xsd:annotation>
642
+								</xsd:element>
643
+								<xsd:element name="WartoscZamowienia" type="tns:TKwotowy">
644
+									<xsd:annotation>
645
+										<xsd:documentation>Wartość zamówienia lub umowy z uwzględnieniem kwoty podatku</xsd:documentation>
646
+									</xsd:annotation>
647
+								</xsd:element>
648
+								<xsd:sequence>
649
+									<xsd:element name="ZamowienieWiersz" maxOccurs="unbounded">
650
+										<xsd:annotation>
651
+											<xsd:documentation>Szczegółowe pozycje zamówienia lub umowy w walucie, w której wystawiono fakturę zaliczkową</xsd:documentation>
652
+										</xsd:annotation>
653
+										<xsd:complexType>
654
+											<xsd:sequence>
655
+												<xsd:element name="P_7Z" type="tns:TZnakowyJPK" minOccurs="0">
656
+													<xsd:annotation>
657
+														<xsd:documentation>Nazwa (rodzaj) towaru lub usługi</xsd:documentation>
658
+													</xsd:annotation>
659
+												</xsd:element>
660
+												<xsd:element name="P_8AZ" type="tns:TZnakowyJPK" minOccurs="0">
661
+													<xsd:annotation>
662
+														<xsd:documentation>Miara zamówionego towaru lub zakres usługi</xsd:documentation>
663
+													</xsd:annotation>
664
+												</xsd:element>
665
+												<xsd:element name="P_8BZ" type="tns:TIlosciJPK" minOccurs="0">
666
+													<xsd:annotation>
667
+														<xsd:documentation>Ilość zamówionego towaru lub zakres usługi</xsd:documentation>
668
+													</xsd:annotation>
669
+												</xsd:element>
670
+												<xsd:element name="P_9AZ" type="tns:TKwotowy" minOccurs="0">
671
+													<xsd:annotation>
672
+														<xsd:documentation>Cena jednostkowa netto</xsd:documentation>
673
+													</xsd:annotation>
674
+												</xsd:element>
675
+												<xsd:element name="P_11NettoZ" type="tns:TKwotowy" minOccurs="0">
676
+													<xsd:annotation>
677
+														<xsd:documentation>Wartość zamówionego towaru lub usługi bez kwoty podatku</xsd:documentation>
678
+													</xsd:annotation>
679
+												</xsd:element>
680
+												<xsd:element name="P_11VatZ" type="tns:TKwotowy" minOccurs="0">
681
+													<xsd:annotation>
682
+														<xsd:documentation>Kwota podatku od zamówionego towaru lub usługi</xsd:documentation>
683
+													</xsd:annotation>
684
+												</xsd:element>
685
+												<xsd:element name="P_12Z" minOccurs="0">
686
+													<xsd:annotation>
687
+														<xsd:documentation>Stawka podatku</xsd:documentation>
688
+													</xsd:annotation>
689
+													<!--gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"-->
690
+													<xsd:simpleType>
691
+														<xsd:restriction base="tns:TZnakowyJPK">
692
+															<xsd:maxLength value="2"/>
693
+															<xsd:enumeration value="23"/>
694
+															<xsd:enumeration value="22"/>
695
+															<xsd:enumeration value="8"/>
696
+															<xsd:enumeration value="7"/>
697
+															<xsd:enumeration value="5"/>
698
+															<xsd:enumeration value="4"/>
699
+															<xsd:enumeration value="3"/>
700
+															<xsd:enumeration value="0"/>
701
+															<xsd:enumeration value="zw">
702
+																<xsd:annotation>
703
+																	<xsd:documentation>zwolnione z opodatkowania</xsd:documentation>
704
+																</xsd:annotation>
705
+															</xsd:enumeration>
706
+															<xsd:enumeration value="oo">
707
+																<xsd:annotation>
708
+																	<xsd:documentation>odwrotne obciążenie</xsd:documentation>
709
+																</xsd:annotation>
710
+															</xsd:enumeration>
711
+															<xsd:enumeration value="np">
712
+																<xsd:annotation>
713
+																	<xsd:documentation>niepodlegające opodatkowaniu-transakcje dostawy towarów oraz świadczenia usług poza terytorium kraju</xsd:documentation>
714
+																</xsd:annotation>
715
+															</xsd:enumeration>
716
+														</xsd:restriction>
717
+													</xsd:simpleType>
718
+												</xsd:element>
719
+											</xsd:sequence>
720
+										</xsd:complexType>
721
+									</xsd:element>
722
+								</xsd:sequence>
723
+							</xsd:sequence>
724
+						</xsd:complexType>
725
+					</xsd:element>
726
+					<xsd:element name="ZamowienieCtrl">
727
+						<xsd:annotation>
728
+							<xsd:documentation>Sumy kontrolne dla zamówień lub umów</xsd:documentation>
729
+						</xsd:annotation>
730
+						<xsd:complexType>
731
+							<xsd:sequence>
732
+								<xsd:element name="LiczbaZamowien" type="tns:TNaturalnyJPK">
733
+									<xsd:annotation>
734
+										<xsd:documentation>Liczba zamówień lub umów, w okresie którego dotyczy JPK_FA</xsd:documentation>
735
+									</xsd:annotation>
736
+								</xsd:element>
737
+								<xsd:element name="WartoscZamowien" type="tns:TKwotowy">
738
+									<xsd:annotation>
739
+										<xsd:documentation>Łączna wartość kolumny WartoscZamowienia w Tabeli Zamowienie w okresie, którego dotyczy JPK_FA</xsd:documentation>
740
+									</xsd:annotation>
741
+								</xsd:element>
742
+							</xsd:sequence>
743
+						</xsd:complexType>
744
+					</xsd:element>
745
+				</xsd:sequence>
746
+			</xsd:sequence>
747
+		</xsd:complexType>
748
+	</xsd:element>
749
+</xsd:schema>

+ 222
- 0
JPK_v1/Form1.Designer.cs Просмотреть файл

@@ -0,0 +1,222 @@
1
+namespace JPK_v1
2
+{
3
+    partial class Form1
4
+    {
5
+        /// <summary>
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary>
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Windows Form Designer generated code
24
+
25
+        /// <summary>
26
+        /// Required method for Designer support - do not modify
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
32
+            this.menuStrip1 = new System.Windows.Forms.MenuStrip();
33
+            this.plikToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
34
+            this.vATToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
35
+            this.fAKTURYToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
36
+            this.kGToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
37
+            this.wBToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
38
+            this.tabp6 = new System.Windows.Forms.TabPage();
39
+            this.tabp5 = new System.Windows.Forms.TabPage();
40
+            this.tabp4 = new System.Windows.Forms.TabPage();
41
+            this.tabp3 = new System.Windows.Forms.TabPage();
42
+            this.tabp2 = new System.Windows.Forms.TabPage();
43
+            this.tabp1 = new System.Windows.Forms.TabPage();
44
+            this.tcon1 = new System.Windows.Forms.TabControl();
45
+            this.tabp7 = new System.Windows.Forms.TabPage();
46
+            this.menuStrip1.SuspendLayout();
47
+            this.tcon1.SuspendLayout();
48
+            this.SuspendLayout();
49
+            // 
50
+            // menuStrip1
51
+            // 
52
+            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
53
+            this.plikToolStripMenuItem});
54
+            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
55
+            this.menuStrip1.Name = "menuStrip1";
56
+            this.menuStrip1.Size = new System.Drawing.Size(945, 24);
57
+            this.menuStrip1.TabIndex = 0;
58
+            this.menuStrip1.Text = "menuStrip1";
59
+            // 
60
+            // plikToolStripMenuItem
61
+            // 
62
+            this.plikToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
63
+            this.vATToolStripMenuItem,
64
+            this.fAKTURYToolStripMenuItem,
65
+            this.kGToolStripMenuItem,
66
+            this.wBToolStripMenuItem});
67
+            this.plikToolStripMenuItem.Name = "plikToolStripMenuItem";
68
+            this.plikToolStripMenuItem.Size = new System.Drawing.Size(38, 20);
69
+            this.plikToolStripMenuItem.Text = "Plik";
70
+            // 
71
+            // vATToolStripMenuItem
72
+            // 
73
+            this.vATToolStripMenuItem.Name = "vATToolStripMenuItem";
74
+            this.vATToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
75
+            this.vATToolStripMenuItem.Text = "VAT";
76
+            this.vATToolStripMenuItem.Click += new System.EventHandler(this.vATToolStripMenuItem_Click);
77
+            // 
78
+            // fAKTURYToolStripMenuItem
79
+            // 
80
+            this.fAKTURYToolStripMenuItem.Name = "fAKTURYToolStripMenuItem";
81
+            this.fAKTURYToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
82
+            this.fAKTURYToolStripMenuItem.Text = "FAKTURY";
83
+            this.fAKTURYToolStripMenuItem.Click += new System.EventHandler(this.fAKTURYToolStripMenuItem_Click);
84
+            // 
85
+            // kGToolStripMenuItem
86
+            // 
87
+            this.kGToolStripMenuItem.Name = "kGToolStripMenuItem";
88
+            this.kGToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
89
+            this.kGToolStripMenuItem.Text = "KG";
90
+            this.kGToolStripMenuItem.Click += new System.EventHandler(this.kGToolStripMenuItem_Click);
91
+            // 
92
+            // wBToolStripMenuItem
93
+            // 
94
+            this.wBToolStripMenuItem.Name = "wBToolStripMenuItem";
95
+            this.wBToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
96
+            this.wBToolStripMenuItem.Text = "WB";
97
+            this.wBToolStripMenuItem.Click += new System.EventHandler(this.wBToolStripMenuItem_Click);
98
+            // 
99
+            // tabp6
100
+            // 
101
+            this.tabp6.Location = new System.Drawing.Point(4, 22);
102
+            this.tabp6.Name = "tabp6";
103
+            this.tabp6.Padding = new System.Windows.Forms.Padding(3);
104
+            this.tabp6.Size = new System.Drawing.Size(938, 428);
105
+            this.tabp6.TabIndex = 5;
106
+            this.tabp6.Text = "ZakupCTR";
107
+            this.tabp6.UseVisualStyleBackColor = true;
108
+            // 
109
+            // tabp5
110
+            // 
111
+            this.tabp5.Location = new System.Drawing.Point(4, 22);
112
+            this.tabp5.Name = "tabp5";
113
+            this.tabp5.Padding = new System.Windows.Forms.Padding(3);
114
+            this.tabp5.Size = new System.Drawing.Size(938, 428);
115
+            this.tabp5.TabIndex = 4;
116
+            this.tabp5.Text = "Zakup";
117
+            this.tabp5.UseVisualStyleBackColor = true;
118
+            // 
119
+            // tabp4
120
+            // 
121
+            this.tabp4.Location = new System.Drawing.Point(4, 22);
122
+            this.tabp4.Name = "tabp4";
123
+            this.tabp4.Padding = new System.Windows.Forms.Padding(3);
124
+            this.tabp4.Size = new System.Drawing.Size(938, 428);
125
+            this.tabp4.TabIndex = 3;
126
+            this.tabp4.Text = "SprzedażCTR";
127
+            this.tabp4.UseVisualStyleBackColor = true;
128
+            // 
129
+            // tabp3
130
+            // 
131
+            this.tabp3.Location = new System.Drawing.Point(4, 22);
132
+            this.tabp3.Name = "tabp3";
133
+            this.tabp3.Padding = new System.Windows.Forms.Padding(3);
134
+            this.tabp3.Size = new System.Drawing.Size(938, 428);
135
+            this.tabp3.TabIndex = 2;
136
+            this.tabp3.Text = "Sprzedaż";
137
+            this.tabp3.UseVisualStyleBackColor = true;
138
+            // 
139
+            // tabp2
140
+            // 
141
+            this.tabp2.Location = new System.Drawing.Point(4, 22);
142
+            this.tabp2.Name = "tabp2";
143
+            this.tabp2.Padding = new System.Windows.Forms.Padding(3);
144
+            this.tabp2.Size = new System.Drawing.Size(938, 428);
145
+            this.tabp2.TabIndex = 1;
146
+            this.tabp2.Text = "Podmiot";
147
+            this.tabp2.UseVisualStyleBackColor = true;
148
+            // 
149
+            // tabp1
150
+            // 
151
+            this.tabp1.Location = new System.Drawing.Point(4, 22);
152
+            this.tabp1.Name = "tabp1";
153
+            this.tabp1.Padding = new System.Windows.Forms.Padding(3);
154
+            this.tabp1.Size = new System.Drawing.Size(938, 428);
155
+            this.tabp1.TabIndex = 0;
156
+            this.tabp1.Text = "Nagłówek";
157
+            this.tabp1.UseVisualStyleBackColor = true;
158
+            // 
159
+            // tcon1
160
+            // 
161
+            this.tcon1.Controls.Add(this.tabp1);
162
+            this.tcon1.Controls.Add(this.tabp2);
163
+            this.tcon1.Controls.Add(this.tabp3);
164
+            this.tcon1.Controls.Add(this.tabp4);
165
+            this.tcon1.Controls.Add(this.tabp5);
166
+            this.tcon1.Controls.Add(this.tabp6);
167
+            this.tcon1.Controls.Add(this.tabp7);
168
+            this.tcon1.Location = new System.Drawing.Point(0, 43);
169
+            this.tcon1.Name = "tcon1";
170
+            this.tcon1.SelectedIndex = 0;
171
+            this.tcon1.Size = new System.Drawing.Size(946, 454);
172
+            this.tcon1.TabIndex = 1;
173
+            this.tcon1.Visible = false;
174
+            // 
175
+            // tabp7
176
+            // 
177
+            this.tabp7.Location = new System.Drawing.Point(4, 22);
178
+            this.tabp7.Name = "tabp7";
179
+            this.tabp7.Padding = new System.Windows.Forms.Padding(3);
180
+            this.tabp7.Size = new System.Drawing.Size(938, 428);
181
+            this.tabp7.TabIndex = 6;
182
+            this.tabp7.Text = "tabPage1";
183
+            this.tabp7.UseVisualStyleBackColor = true;
184
+            // 
185
+            // Form1
186
+            // 
187
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
188
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
189
+            this.ClientSize = new System.Drawing.Size(945, 498);
190
+            this.Controls.Add(this.tcon1);
191
+            this.Controls.Add(this.menuStrip1);
192
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
193
+            this.MainMenuStrip = this.menuStrip1;
194
+            this.Name = "Form1";
195
+            this.Text = "JPK";
196
+            this.menuStrip1.ResumeLayout(false);
197
+            this.menuStrip1.PerformLayout();
198
+            this.tcon1.ResumeLayout(false);
199
+            this.ResumeLayout(false);
200
+            this.PerformLayout();
201
+
202
+        }
203
+
204
+        #endregion
205
+
206
+        private System.Windows.Forms.MenuStrip menuStrip1;
207
+        private System.Windows.Forms.ToolStripMenuItem plikToolStripMenuItem;
208
+        private System.Windows.Forms.ToolStripMenuItem vATToolStripMenuItem;
209
+        private System.Windows.Forms.ToolStripMenuItem fAKTURYToolStripMenuItem;
210
+        private System.Windows.Forms.ToolStripMenuItem kGToolStripMenuItem;
211
+        private System.Windows.Forms.ToolStripMenuItem wBToolStripMenuItem;
212
+        private System.Windows.Forms.TabPage tabp6;
213
+        private System.Windows.Forms.TabPage tabp5;
214
+        private System.Windows.Forms.TabPage tabp4;
215
+        private System.Windows.Forms.TabPage tabp3;
216
+        private System.Windows.Forms.TabPage tabp2;
217
+        private System.Windows.Forms.TabPage tabp1;
218
+        private System.Windows.Forms.TabControl tcon1;
219
+        private System.Windows.Forms.TabPage tabp7;
220
+    }
221
+}
222
+

+ 295
- 0
JPK_v1/Form1.cs Просмотреть файл

@@ -0,0 +1,295 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Data;
5
+using System.Drawing;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class Form1 : Form
13
+    {
14
+        public Form1()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+
19
+        private void vATToolStripMenuItem_Click(object sender, EventArgs e)
20
+        {
21
+            this.tcon1.Visible = true;
22
+             Header h1 = new Header();
23
+            Podmiot p1 = new Podmiot();
24
+            h1.Faktury = false;
25
+            SP sp1 = new SP();
26
+            ZA za1 = new ZA();
27
+            sp1.SP_init_tab();
28
+            SP_CTRL spctr = new SP_CTRL();
29
+            ZA_CTRL zactr = new ZA_CTRL();
30
+            spctr.SP_init_tab();
31
+            za1.ZA_init_tab();
32
+            zactr.ZA_init_tab();
33
+            h1.lPodmiot = p1;
34
+            h1.lSp = sp1;
35
+            h1.lSpCtr = spctr;
36
+            h1.lZa = za1;
37
+            h1.lZaCtr = zactr;
38
+
39
+            if (tcon1.TabPages[0].Controls.Count > 0)
40
+            {
41
+                tcon1.TabPages[0].Controls.RemoveAt(0);
42
+            }
43
+            tcon1.TabPages[0].Controls.Add(h1);
44
+            if (tcon1.TabPages[1].Controls.Count > 0)
45
+            {
46
+                tcon1.TabPages[1].Controls.RemoveAt(0);
47
+            }
48
+            tcon1.TabPages[1].Controls.Add(p1);
49
+            tcon1.TabPages[2].ToolTipText = "Sprzedaż";
50
+            tcon1.TabPages[2].Text = "Sprzedaż";
51
+            if (tcon1.TabPages[2].Controls.Count > 0)
52
+            {
53
+                tcon1.TabPages[2].Controls.RemoveAt(0);
54
+            }
55
+            tcon1.TabPages[2].Controls.Add(sp1);
56
+            tcon1.TabPages[3].ToolTipText = "SprzedażCtrl";
57
+            tcon1.TabPages[3].Text = "SprzedażCtrl";
58
+            if (tcon1.TabPages[3].Controls.Count > 0)
59
+            {
60
+                tcon1.TabPages[3].Controls.RemoveAt(0);
61
+            }
62
+            tcon1.TabPages[3].Controls.Add(spctr);
63
+            tcon1.TabPages[4].ToolTipText = "Zakup";
64
+            tcon1.TabPages[4].Text = "Zakup";
65
+            if (tcon1.TabPages[4].Controls.Count > 0)
66
+            {
67
+                tcon1.TabPages[4].Controls.RemoveAt(0);
68
+            }
69
+            tcon1.TabPages[4].Controls.Add(za1);
70
+            if (tcon1.TabPages.Count == 5)
71
+            {
72
+                tcon1.TabPages.Add(tabp6);
73
+            }
74
+            tcon1.TabPages[5].ToolTipText = "ZakupCtrl";
75
+            tcon1.TabPages[5].Text = "ZakupCtrl";
76
+            if (tcon1.TabPages[5].Controls.Count > 0)
77
+            {
78
+                tcon1.TabPages[5].Controls.RemoveAt(0);
79
+            }
80
+            tcon1.TabPages[5].Controls.Add(zactr);
81
+            if (tcon1.TabPages.Count > 6)
82
+            {
83
+                tcon1.TabPages.Remove(tabp7);
84
+            }
85
+            h1.InitDok("VAT");
86
+            h1.WB = false;
87
+            h1.Faktury = false;
88
+            h1.Kg = false;
89
+        }
90
+
91
+        private void fAKTURYToolStripMenuItem_Click(object sender, EventArgs e)
92
+        {
93
+            this.tcon1.Visible = true;
94
+            Header h1 = new Header();
95
+            h1.Faktury = true;
96
+			h1.Kg = false;
97
+            Podmiot p1 = new Podmiot();
98
+            FA fv = new FA();
99
+            FA_Ctrl fvctrl = new FA_Ctrl();
100
+            Tax tax = new Tax();
101
+            FAPoz poz = new FAPoz();
102
+            FAPozCtrl pozctrl = new FAPozCtrl();
103
+            h1.lPodmiot = p1;
104
+            fv.dataInitFv();
105
+            if (tcon1.TabPages[0].Controls.Count > 0)
106
+            {
107
+                tcon1.TabPages[0].Controls.RemoveAt(0);
108
+            }
109
+            tcon1.TabPages[0].Controls.Add(h1);
110
+            if (tcon1.TabPages[1].Controls.Count > 0)
111
+            {
112
+                tcon1.TabPages[1].Controls.RemoveAt(0);
113
+            }
114
+            tcon1.TabPages[1].Controls.Add(p1);
115
+            tcon1.TabPages[2].ToolTipText = "Faktury";
116
+            tcon1.TabPages[2].Text = "Faktury";
117
+            if (tcon1.TabPages[2].Controls.Count > 0)
118
+            {
119
+                tcon1.TabPages[2].Controls.RemoveAt(0);
120
+            }
121
+            tcon1.TabPages[2].Controls.Add(fv);
122
+            tcon1.TabPages[3].ToolTipText = "FakturyCtrl";
123
+            tcon1.TabPages[3].Text = "FakturyCtrl";
124
+            if (tcon1.TabPages[3].Controls.Count > 0)
125
+            {
126
+                tcon1.TabPages[3].Controls.RemoveAt(0);
127
+            }
128
+            tcon1.TabPages[3].Controls.Add(fvctrl);
129
+            tcon1.TabPages[4].ToolTipText = "Podatek";
130
+            tcon1.TabPages[4].Text = "Podatek";
131
+            if (tcon1.TabPages[4].Controls.Count > 0)
132
+            {
133
+                tcon1.TabPages[4].Controls.RemoveAt(0);
134
+            }
135
+            tcon1.TabPages[4].Controls.Add(tax);
136
+            if (tcon1.TabPages.Count == 5)
137
+            {
138
+                tcon1.TabPages.Add(tabp6);
139
+            }
140
+            tcon1.TabPages[5].ToolTipText = "Pozycje";
141
+            tcon1.TabPages[5].Text = "Pozycje";
142
+            if (tcon1.TabPages[5].Controls.Count > 0)
143
+            {
144
+                tcon1.TabPages[5].Controls.RemoveAt(0);
145
+            }
146
+            tcon1.TabPages[5].Controls.Add(poz);
147
+            if (tcon1.TabPages.Count == 6)
148
+            {
149
+                tcon1.TabPages.Add(tabp7);
150
+            }
151
+            tcon1.TabPages[6].ToolTipText = "PozycjeCtrl";
152
+            tcon1.TabPages[6].Text = "PozycjeCtrl";
153
+            if (tcon1.TabPages[6].Controls.Count > 0)
154
+            {
155
+                tcon1.TabPages[6].Controls.RemoveAt(0);
156
+            }
157
+            tcon1.TabPages[6].Controls.Add(pozctrl);
158
+            h1.InitDok("FA");
159
+            h1.WB = false;
160
+            h1.Faktury = true;
161
+            h1.Kg = false;
162
+        }
163
+
164
+        private void kGToolStripMenuItem_Click(object sender, EventArgs e)
165
+        {
166
+            this.tcon1.Visible = true;
167
+            Header h1 = new Header();
168
+            Podmiot p1 = new Podmiot();
169
+            ZOIS z1 = new ZOIS();
170
+            h1.zois = z1;
171
+            h1.zois.ZOIS_init_tab();
172
+            Dzienik d1 = new Dzienik();
173
+            DzienikCTRL dctrl = new DzienikCTRL();
174
+            KGZapis kg = new KGZapis();
175
+            h1.kgza = kg;
176
+            h1.kgza.KGZA_init_tab();
177
+            KGZapisCTRL kgCtrl = new KGZapisCTRL();
178
+            h1.lPodmiot = p1;
179
+            if (tcon1.TabPages[0].Controls.Count > 0)
180
+            {
181
+                tcon1.TabPages[0].Controls.RemoveAt(0);
182
+            }
183
+            tcon1.TabPages[0].Controls.Add(h1);
184
+            if (tcon1.TabPages[1].Controls.Count > 0)
185
+            {
186
+                tcon1.TabPages[1].Controls.RemoveAt(0);
187
+            }
188
+            tcon1.TabPages[1].Controls.Add(p1);
189
+            tcon1.TabPages[2].ToolTipText = "ZOiS";
190
+            tcon1.TabPages[2].Text = "ZOiS";
191
+            if (tcon1.TabPages[2].Controls.Count > 0)
192
+            {
193
+                tcon1.TabPages[2].Controls.RemoveAt(0);
194
+            }
195
+            tcon1.TabPages[2].Controls.Add(z1);
196
+            tcon1.TabPages[3].ToolTipText = "Dzienik";
197
+            tcon1.TabPages[3].Text = "Dzienik";
198
+            if (tcon1.TabPages[3].Controls.Count > 0)
199
+            {
200
+                tcon1.TabPages[3].Controls.RemoveAt(0);
201
+            }
202
+            tcon1.TabPages[3].Controls.Add(d1);
203
+            tcon1.TabPages[4].ToolTipText = "DzienikCtrl";
204
+            tcon1.TabPages[4].Text = "DzienikCtrl";
205
+            if (tcon1.TabPages[4].Controls.Count > 0)
206
+            {
207
+                tcon1.TabPages[4].Controls.RemoveAt(0);
208
+            }
209
+            tcon1.TabPages[4].Controls.Add(dctrl);
210
+            if (tcon1.TabPages.Count == 5)
211
+            {
212
+                tcon1.TabPages.Add(tabp6);
213
+            }
214
+            tcon1.TabPages[5].ToolTipText = "KontaZapis";
215
+            tcon1.TabPages[5].Text = "KontaZapis";
216
+            if (tcon1.TabPages[5].Controls.Count > 0)
217
+            {
218
+                tcon1.TabPages[5].Controls.RemoveAt(0);
219
+            }
220
+            tcon1.TabPages[5].Controls.Add(kg);
221
+            if (tcon1.TabPages.Count == 6)
222
+            {
223
+                tcon1.TabPages.Add(tabp7);
224
+            }
225
+            tcon1.TabPages[6].ToolTipText = "KontaZapisCtrl";
226
+            tcon1.TabPages[6].Text = "KontaZapisCtrl";
227
+            if (tcon1.TabPages[6].Controls.Count > 0)
228
+            {
229
+                tcon1.TabPages[6].Controls.RemoveAt(0);
230
+            }
231
+            tcon1.TabPages[6].Controls.Add(kg);
232
+			h1.InitDok("KG");
233
+			h1.Faktury = false;
234
+			h1.Kg = true;
235
+            h1.WB = false;
236
+        }
237
+
238
+        private void wBToolStripMenuItem_Click(object sender, EventArgs e)
239
+        {
240
+            this.tcon1.Visible = true;
241
+            Header h1 = new Header();
242
+            Podmiot p1 = new Podmiot();
243
+            Rachunek r1 = new Rachunek();
244
+            WyciagWier w1 = new WyciagWier();
245
+            w1.WB_init_tab();
246
+            WyciagWierszCtrl wctrl = new WyciagWierszCtrl();
247
+            wctrl.WBC_init_tab();
248
+            h1.lPodmiot = p1;
249
+            if (tcon1.TabPages[0].Controls.Count > 0)
250
+            {
251
+                tcon1.TabPages[0].Controls.RemoveAt(0);
252
+            }
253
+            tcon1.TabPages[0].Controls.Add(h1);
254
+            if (tcon1.TabPages[1].Controls.Count > 0)
255
+            {
256
+                tcon1.TabPages[1].Controls.RemoveAt(0);
257
+            }
258
+            tcon1.TabPages[1].Controls.Add(p1);
259
+            tcon1.TabPages[2].ToolTipText = "NRB";
260
+            tcon1.TabPages[2].Text = "NRB";
261
+            if (tcon1.TabPages[2].Controls.Count > 0)
262
+            {
263
+                tcon1.TabPages[2].Controls.RemoveAt(0);
264
+            }
265
+            tcon1.TabPages[2].Controls.Add(r1);
266
+            tcon1.TabPages[3].ToolTipText = "Wyciąg";
267
+            tcon1.TabPages[3].Text = "Wyciąg";
268
+            if (tcon1.TabPages[3].Controls.Count > 0)
269
+            {
270
+                tcon1.TabPages[3].Controls.RemoveAt(0);
271
+            }
272
+            tcon1.TabPages[3].Controls.Add(w1);
273
+            tcon1.TabPages[4].ToolTipText = "WyciągCtrl";
274
+            tcon1.TabPages[4].Text = "WyciągCtrl";
275
+            if (tcon1.TabPages[4].Controls.Count > 0)
276
+            {
277
+                tcon1.TabPages[4].Controls.RemoveAt(0);
278
+            }
279
+            tcon1.TabPages[4].Controls.Add(wctrl);
280
+            if (tcon1.TabPages.Count > 5)
281
+            {
282
+                tcon1.TabPages.Remove(tabp7);
283
+                tcon1.TabPages.Remove(tabp6);
284
+            }
285
+            h1.InitDok("WB");
286
+            h1.WBRachunek = r1;
287
+            h1.WBPozycje = w1;
288
+            h1.WBCtrl = wctrl;
289
+            h1.Faktury = false;
290
+            h1.Kg = false;
291
+            h1.WB = true;
292
+
293
+        }
294
+    }
295
+}

+ 1256
- 0
JPK_v1/Form1.resx
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 379
- 0
JPK_v1/Header.Designer.cs Просмотреть файл

@@ -0,0 +1,379 @@
1
+namespace JPK_v1
2
+{
3
+    partial class Header
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.label1 = new System.Windows.Forms.Label();
32
+            this.dateC = new System.Windows.Forms.DateTimePicker();
33
+            this.label2 = new System.Windows.Forms.Label();
34
+            this.dataOd = new System.Windows.Forms.DateTimePicker();
35
+            this.label3 = new System.Windows.Forms.Label();
36
+            this.dataDo = new System.Windows.Forms.DateTimePicker();
37
+            this.label4 = new System.Windows.Forms.Label();
38
+            this.label5 = new System.Windows.Forms.Label();
39
+            this.label6 = new System.Windows.Forms.Label();
40
+            this.label7 = new System.Windows.Forms.Label();
41
+            this.label8 = new System.Windows.Forms.Label();
42
+            this.tKodFor = new System.Windows.Forms.TextBox();
43
+            this.tWariant = new System.Windows.Forms.TextBox();
44
+            this.CWaluta = new System.Windows.Forms.ComboBox();
45
+            this.cUs = new System.Windows.Forms.ComboBox();
46
+            this.tWalDes = new System.Windows.Forms.TextBox();
47
+            this.tDesUS = new System.Windows.Forms.TextBox();
48
+            this.cCel = new System.Windows.Forms.ComboBox();
49
+            this.label9 = new System.Windows.Forms.Label();
50
+            this.label10 = new System.Windows.Forms.Label();
51
+            this.label11 = new System.Windows.Forms.Label();
52
+            this.cJG = new System.Windows.Forms.ComboBox();
53
+            this.fileIN = new System.Windows.Forms.TextBox();
54
+            this.fileOut = new System.Windows.Forms.TextBox();
55
+            this.bIN = new System.Windows.Forms.Button();
56
+            this.bout = new System.Windows.Forms.Button();
57
+            this.button1 = new System.Windows.Forms.Button();
58
+            this.tstatus = new System.Windows.Forms.TextBox();
59
+            this.tJG = new System.Windows.Forms.TextBox();
60
+            this.SuspendLayout();
61
+            // 
62
+            // label1
63
+            // 
64
+            this.label1.AutoSize = true;
65
+            this.label1.Location = new System.Drawing.Point(17, 19);
66
+            this.label1.Name = "label1";
67
+            this.label1.Size = new System.Drawing.Size(119, 13);
68
+            this.label1.TabIndex = 0;
69
+            this.label1.Text = "Data generowania pliku";
70
+            // 
71
+            // dateC
72
+            // 
73
+            this.dateC.Location = new System.Drawing.Point(142, 12);
74
+            this.dateC.Name = "dateC";
75
+            this.dateC.Size = new System.Drawing.Size(123, 20);
76
+            this.dateC.TabIndex = 2;
77
+            // 
78
+            // label2
79
+            // 
80
+            this.label2.AutoSize = true;
81
+            this.label2.Location = new System.Drawing.Point(17, 49);
82
+            this.label2.Name = "label2";
83
+            this.label2.Size = new System.Drawing.Size(102, 13);
84
+            this.label2.TabIndex = 3;
85
+            this.label2.Text = "Okres pliku data od ";
86
+            // 
87
+            // dataOd
88
+            // 
89
+            this.dataOd.Location = new System.Drawing.Point(142, 43);
90
+            this.dataOd.Name = "dataOd";
91
+            this.dataOd.Size = new System.Drawing.Size(123, 20);
92
+            this.dataOd.TabIndex = 4;
93
+            // 
94
+            // label3
95
+            // 
96
+            this.label3.AutoSize = true;
97
+            this.label3.Location = new System.Drawing.Point(271, 43);
98
+            this.label3.Name = "label3";
99
+            this.label3.Size = new System.Drawing.Size(43, 13);
100
+            this.label3.TabIndex = 5;
101
+            this.label3.Text = "data do";
102
+            // 
103
+            // dataDo
104
+            // 
105
+            this.dataDo.Location = new System.Drawing.Point(320, 43);
106
+            this.dataDo.Name = "dataDo";
107
+            this.dataDo.Size = new System.Drawing.Size(123, 20);
108
+            this.dataDo.TabIndex = 6;
109
+            // 
110
+            // label4
111
+            // 
112
+            this.label4.AutoSize = true;
113
+            this.label4.Location = new System.Drawing.Point(17, 82);
114
+            this.label4.Name = "label4";
115
+            this.label4.Size = new System.Drawing.Size(63, 13);
116
+            this.label4.TabIndex = 7;
117
+            this.label4.Text = "Cel zlożenia";
118
+            // 
119
+            // label5
120
+            // 
121
+            this.label5.AutoSize = true;
122
+            this.label5.Location = new System.Drawing.Point(17, 108);
123
+            this.label5.Name = "label5";
124
+            this.label5.Size = new System.Drawing.Size(80, 13);
125
+            this.label5.TabIndex = 9;
126
+            this.label5.Text = "Kod Formularza";
127
+            // 
128
+            // label6
129
+            // 
130
+            this.label6.AutoSize = true;
131
+            this.label6.Location = new System.Drawing.Point(17, 135);
132
+            this.label6.Name = "label6";
133
+            this.label6.Size = new System.Drawing.Size(98, 13);
134
+            this.label6.TabIndex = 10;
135
+            this.label6.Text = "Wariant Formularza";
136
+            // 
137
+            // label7
138
+            // 
139
+            this.label7.AutoSize = true;
140
+            this.label7.Location = new System.Drawing.Point(17, 165);
141
+            this.label7.Name = "label7";
142
+            this.label7.Size = new System.Drawing.Size(41, 13);
143
+            this.label7.TabIndex = 11;
144
+            this.label7.Text = "Waluta";
145
+            // 
146
+            // label8
147
+            // 
148
+            this.label8.AutoSize = true;
149
+            this.label8.Location = new System.Drawing.Point(17, 191);
150
+            this.label8.Name = "label8";
151
+            this.label8.Size = new System.Drawing.Size(85, 13);
152
+            this.label8.TabIndex = 12;
153
+            this.label8.Text = "Urząd Skarbowy";
154
+            // 
155
+            // tKodFor
156
+            // 
157
+            this.tKodFor.Location = new System.Drawing.Point(142, 101);
158
+            this.tKodFor.Name = "tKodFor";
159
+            this.tKodFor.Size = new System.Drawing.Size(410, 20);
160
+            this.tKodFor.TabIndex = 13;
161
+            // 
162
+            // tWariant
163
+            // 
164
+            this.tWariant.Location = new System.Drawing.Point(142, 128);
165
+            this.tWariant.Name = "tWariant";
166
+            this.tWariant.Size = new System.Drawing.Size(410, 20);
167
+            this.tWariant.TabIndex = 14;
168
+            // 
169
+            // CWaluta
170
+            // 
171
+            this.CWaluta.FormattingEnabled = true;
172
+            this.CWaluta.Location = new System.Drawing.Point(142, 157);
173
+            this.CWaluta.Name = "CWaluta";
174
+            this.CWaluta.Size = new System.Drawing.Size(121, 21);
175
+            this.CWaluta.TabIndex = 15;
176
+            this.CWaluta.SelectedIndexChanged += new System.EventHandler(this.CWaluta_SelectedIndexChanged);
177
+            // 
178
+            // cUs
179
+            // 
180
+            this.cUs.FormattingEnabled = true;
181
+            this.cUs.Location = new System.Drawing.Point(142, 183);
182
+            this.cUs.Name = "cUs";
183
+            this.cUs.Size = new System.Drawing.Size(121, 21);
184
+            this.cUs.TabIndex = 16;
185
+            this.cUs.SelectedIndexChanged += new System.EventHandler(this.cUs_SelectedIndexChanged);
186
+            // 
187
+            // tWalDes
188
+            // 
189
+            this.tWalDes.Location = new System.Drawing.Point(274, 157);
190
+            this.tWalDes.Name = "tWalDes";
191
+            this.tWalDes.ReadOnly = true;
192
+            this.tWalDes.Size = new System.Drawing.Size(55, 20);
193
+            this.tWalDes.TabIndex = 17;
194
+            // 
195
+            // tDesUS
196
+            // 
197
+            this.tDesUS.Location = new System.Drawing.Point(274, 183);
198
+            this.tDesUS.Name = "tDesUS";
199
+            this.tDesUS.ReadOnly = true;
200
+            this.tDesUS.Size = new System.Drawing.Size(278, 20);
201
+            this.tDesUS.TabIndex = 18;
202
+            // 
203
+            // cCel
204
+            // 
205
+            this.cCel.FormattingEnabled = true;
206
+            this.cCel.Location = new System.Drawing.Point(144, 74);
207
+            this.cCel.Name = "cCel";
208
+            this.cCel.Size = new System.Drawing.Size(408, 21);
209
+            this.cCel.TabIndex = 19;
210
+            // 
211
+            // label9
212
+            // 
213
+            this.label9.AutoSize = true;
214
+            this.label9.Location = new System.Drawing.Point(20, 225);
215
+            this.label9.Name = "label9";
216
+            this.label9.Size = new System.Drawing.Size(40, 13);
217
+            this.label9.TabIndex = 20;
218
+            this.label9.Text = "Spólka";
219
+            // 
220
+            // label10
221
+            // 
222
+            this.label10.AutoSize = true;
223
+            this.label10.Location = new System.Drawing.Point(20, 251);
224
+            this.label10.Name = "label10";
225
+            this.label10.Size = new System.Drawing.Size(38, 13);
226
+            this.label10.TabIndex = 21;
227
+            this.label10.Text = "Plik IN";
228
+            // 
229
+            // label11
230
+            // 
231
+            this.label11.AutoSize = true;
232
+            this.label11.Location = new System.Drawing.Point(20, 278);
233
+            this.label11.Name = "label11";
234
+            this.label11.Size = new System.Drawing.Size(50, 13);
235
+            this.label11.TabIndex = 22;
236
+            this.label11.Text = "Plik OUT";
237
+            // 
238
+            // cJG
239
+            // 
240
+            this.cJG.FormattingEnabled = true;
241
+            this.cJG.Location = new System.Drawing.Point(144, 217);
242
+            this.cJG.Name = "cJG";
243
+            this.cJG.Size = new System.Drawing.Size(121, 21);
244
+            this.cJG.TabIndex = 23;
245
+            this.cJG.SelectedIndexChanged += new System.EventHandler(this.cJG_SelectedIndexChanged);
246
+            // 
247
+            // fileIN
248
+            // 
249
+            this.fileIN.Location = new System.Drawing.Point(142, 246);
250
+            this.fileIN.Name = "fileIN";
251
+            this.fileIN.Size = new System.Drawing.Size(410, 20);
252
+            this.fileIN.TabIndex = 24;
253
+            // 
254
+            // fileOut
255
+            // 
256
+            this.fileOut.Location = new System.Drawing.Point(142, 271);
257
+            this.fileOut.Name = "fileOut";
258
+            this.fileOut.Size = new System.Drawing.Size(410, 20);
259
+            this.fileOut.TabIndex = 25;
260
+            // 
261
+            // bIN
262
+            // 
263
+            this.bIN.Location = new System.Drawing.Point(558, 244);
264
+            this.bIN.Name = "bIN";
265
+            this.bIN.Size = new System.Drawing.Size(65, 23);
266
+            this.bIN.TabIndex = 26;
267
+            this.bIN.Text = "Wyszukaj";
268
+            this.bIN.UseVisualStyleBackColor = true;
269
+            this.bIN.Click += new System.EventHandler(this.bIN_Click);
270
+            // 
271
+            // bout
272
+            // 
273
+            this.bout.Location = new System.Drawing.Point(558, 271);
274
+            this.bout.Name = "bout";
275
+            this.bout.Size = new System.Drawing.Size(65, 23);
276
+            this.bout.TabIndex = 27;
277
+            this.bout.Text = "Generuj";
278
+            this.bout.UseVisualStyleBackColor = true;
279
+            this.bout.Click += new System.EventHandler(this.bout_Click);
280
+            // 
281
+            // button1
282
+            // 
283
+            this.button1.Location = new System.Drawing.Point(558, 300);
284
+            this.button1.Name = "button1";
285
+            this.button1.Size = new System.Drawing.Size(65, 23);
286
+            this.button1.TabIndex = 28;
287
+            this.button1.Text = "Wyślij";
288
+            this.button1.UseVisualStyleBackColor = true;
289
+            this.button1.Click += new System.EventHandler(this.button1_Click);
290
+            // 
291
+            // tstatus
292
+            // 
293
+            this.tstatus.Location = new System.Drawing.Point(23, 340);
294
+            this.tstatus.Name = "tstatus";
295
+            this.tstatus.ReadOnly = true;
296
+            this.tstatus.Size = new System.Drawing.Size(624, 20);
297
+            this.tstatus.TabIndex = 29;
298
+            // 
299
+            // tJG
300
+            // 
301
+            this.tJG.Location = new System.Drawing.Point(274, 217);
302
+            this.tJG.Name = "tJG";
303
+            this.tJG.ReadOnly = true;
304
+            this.tJG.Size = new System.Drawing.Size(278, 20);
305
+            this.tJG.TabIndex = 30;
306
+            // 
307
+            // Header
308
+            // 
309
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
310
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
311
+            this.Controls.Add(this.tJG);
312
+            this.Controls.Add(this.tstatus);
313
+            this.Controls.Add(this.button1);
314
+            this.Controls.Add(this.bout);
315
+            this.Controls.Add(this.bIN);
316
+            this.Controls.Add(this.fileOut);
317
+            this.Controls.Add(this.fileIN);
318
+            this.Controls.Add(this.cJG);
319
+            this.Controls.Add(this.label11);
320
+            this.Controls.Add(this.label10);
321
+            this.Controls.Add(this.label9);
322
+            this.Controls.Add(this.cCel);
323
+            this.Controls.Add(this.tDesUS);
324
+            this.Controls.Add(this.tWalDes);
325
+            this.Controls.Add(this.cUs);
326
+            this.Controls.Add(this.CWaluta);
327
+            this.Controls.Add(this.tWariant);
328
+            this.Controls.Add(this.tKodFor);
329
+            this.Controls.Add(this.label8);
330
+            this.Controls.Add(this.label7);
331
+            this.Controls.Add(this.label6);
332
+            this.Controls.Add(this.label5);
333
+            this.Controls.Add(this.label4);
334
+            this.Controls.Add(this.dataDo);
335
+            this.Controls.Add(this.label3);
336
+            this.Controls.Add(this.dataOd);
337
+            this.Controls.Add(this.label2);
338
+            this.Controls.Add(this.dateC);
339
+            this.Controls.Add(this.label1);
340
+            this.Name = "Header";
341
+            this.Size = new System.Drawing.Size(804, 363);
342
+            this.ResumeLayout(false);
343
+            this.PerformLayout();
344
+
345
+        }
346
+
347
+        #endregion
348
+
349
+        private System.Windows.Forms.Label label1;
350
+        private System.Windows.Forms.DateTimePicker dateC;
351
+        private System.Windows.Forms.Label label2;
352
+        private System.Windows.Forms.DateTimePicker dataOd;
353
+        private System.Windows.Forms.Label label3;
354
+        private System.Windows.Forms.DateTimePicker dataDo;
355
+        private System.Windows.Forms.Label label4;
356
+        private System.Windows.Forms.Label label5;
357
+        private System.Windows.Forms.Label label6;
358
+        private System.Windows.Forms.Label label7;
359
+        private System.Windows.Forms.Label label8;
360
+        private System.Windows.Forms.TextBox tKodFor;
361
+        private System.Windows.Forms.TextBox tWariant;
362
+        private System.Windows.Forms.ComboBox CWaluta;
363
+        private System.Windows.Forms.ComboBox cUs;
364
+        private System.Windows.Forms.TextBox tWalDes;
365
+        private System.Windows.Forms.TextBox tDesUS;
366
+        private System.Windows.Forms.ComboBox cCel;
367
+        private System.Windows.Forms.Label label9;
368
+        private System.Windows.Forms.Label label10;
369
+        private System.Windows.Forms.Label label11;
370
+        private System.Windows.Forms.ComboBox cJG;
371
+        private System.Windows.Forms.TextBox fileIN;
372
+        private System.Windows.Forms.TextBox fileOut;
373
+        private System.Windows.Forms.Button bIN;
374
+        private System.Windows.Forms.Button bout;
375
+        private System.Windows.Forms.Button button1;
376
+        private System.Windows.Forms.TextBox tstatus;
377
+        private System.Windows.Forms.TextBox tJG;
378
+    }
379
+}

+ 1315
- 0
JPK_v1/Header.cs
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 120
- 0
JPK_v1/Header.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 378
- 0
JPK_v1/JPK_v1.csproj Просмотреть файл

@@ -0,0 +1,378 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4
+  <PropertyGroup>
5
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7
+    <ProjectGuid>{74C85571-EB07-4F9F-9EF3-06EFE80950AC}</ProjectGuid>
8
+    <OutputType>WinExe</OutputType>
9
+    <AppDesignerFolder>Properties</AppDesignerFolder>
10
+    <RootNamespace>JPK_v1</RootNamespace>
11
+    <AssemblyName>JPK_v1</AssemblyName>
12
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
13
+    <FileAlignment>512</FileAlignment>
14
+    <IsWebBootstrapper>false</IsWebBootstrapper>
15
+    <TargetFrameworkProfile />
16
+    <PublishUrl>C:\Users\wkruszka2\Documents\JPK_PGL\</PublishUrl>
17
+    <Install>true</Install>
18
+    <InstallFrom>Disk</InstallFrom>
19
+    <UpdateEnabled>false</UpdateEnabled>
20
+    <UpdateMode>Foreground</UpdateMode>
21
+    <UpdateInterval>7</UpdateInterval>
22
+    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
23
+    <UpdatePeriodically>false</UpdatePeriodically>
24
+    <UpdateRequired>false</UpdateRequired>
25
+    <MapFileExtensions>true</MapFileExtensions>
26
+    <WebPage>publish.htm</WebPage>
27
+    <ApplicationRevision>19</ApplicationRevision>
28
+    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
29
+    <UseApplicationTrust>false</UseApplicationTrust>
30
+    <PublishWizardCompleted>true</PublishWizardCompleted>
31
+    <BootstrapperEnabled>true</BootstrapperEnabled>
32
+  </PropertyGroup>
33
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
34
+    <PlatformTarget>AnyCPU</PlatformTarget>
35
+    <DebugSymbols>true</DebugSymbols>
36
+    <DebugType>full</DebugType>
37
+    <Optimize>false</Optimize>
38
+    <OutputPath>bin\Debug\</OutputPath>
39
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
40
+    <ErrorReport>prompt</ErrorReport>
41
+    <WarningLevel>4</WarningLevel>
42
+    <Prefer32Bit>false</Prefer32Bit>
43
+  </PropertyGroup>
44
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
45
+    <PlatformTarget>AnyCPU</PlatformTarget>
46
+    <DebugType>pdbonly</DebugType>
47
+    <Optimize>true</Optimize>
48
+    <OutputPath>bin\Release\</OutputPath>
49
+    <DefineConstants>TRACE</DefineConstants>
50
+    <ErrorReport>prompt</ErrorReport>
51
+    <WarningLevel>4</WarningLevel>
52
+    <Prefer32Bit>false</Prefer32Bit>
53
+  </PropertyGroup>
54
+  <PropertyGroup>
55
+    <ApplicationIcon>trash_empty_ico.ico</ApplicationIcon>
56
+  </PropertyGroup>
57
+  <PropertyGroup>
58
+    <ManifestCertificateThumbprint>491E141DDF6F3850C505B8455CA1FDCFFAE43BBC</ManifestCertificateThumbprint>
59
+  </PropertyGroup>
60
+  <PropertyGroup>
61
+    <ManifestKeyFile>JPK_v1_TemporaryKey.pfx</ManifestKeyFile>
62
+  </PropertyGroup>
63
+  <PropertyGroup>
64
+    <GenerateManifests>true</GenerateManifests>
65
+  </PropertyGroup>
66
+  <PropertyGroup>
67
+    <SignManifests>false</SignManifests>
68
+  </PropertyGroup>
69
+  <ItemGroup>
70
+    <Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
71
+      <HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
72
+      <Private>True</Private>
73
+    </Reference>
74
+    <Reference Include="System" />
75
+    <Reference Include="System.ComponentModel.DataAnnotations" />
76
+    <Reference Include="System.Core" />
77
+    <Reference Include="System.IO.Compression" />
78
+    <Reference Include="System.IO.Compression.FileSystem" />
79
+    <Reference Include="System.Net" />
80
+    <Reference Include="System.Security" />
81
+    <Reference Include="System.Xml.Linq" />
82
+    <Reference Include="System.Data.DataSetExtensions" />
83
+    <Reference Include="System.Data" />
84
+    <Reference Include="System.Deployment" />
85
+    <Reference Include="System.Drawing" />
86
+    <Reference Include="System.Windows.Forms" />
87
+    <Reference Include="System.Xml" />
88
+    <Reference Include="XadesNetLib">
89
+      <HintPath>..\..\..\..\Downloads\XadesNet_v1.0.1-src\XadesNet\XadesNetLib\bin\Debug\XadesNetLib.dll</HintPath>
90
+    </Reference>
91
+  </ItemGroup>
92
+  <ItemGroup>
93
+    <Compile Include="Constans\JG.cs" />
94
+    <Compile Include="Constans\TCel.cs" />
95
+    <Compile Include="Constans\US.cs" />
96
+    <Compile Include="Constans\Waluta.cs" />
97
+    <Compile Include="Core\ErrorMessage.cs" />
98
+    <Compile Include="Core\SpCtrl.cs" />
99
+    <Compile Include="Dzienik.cs">
100
+      <SubType>UserControl</SubType>
101
+    </Compile>
102
+    <Compile Include="Dzienik.Designer.cs">
103
+      <DependentUpon>Dzienik.cs</DependentUpon>
104
+    </Compile>
105
+    <Compile Include="DzienikCTRL.cs">
106
+      <SubType>UserControl</SubType>
107
+    </Compile>
108
+    <Compile Include="DzienikCTRL.Designer.cs">
109
+      <DependentUpon>DzienikCTRL.cs</DependentUpon>
110
+    </Compile>
111
+    <Compile Include="FA.cs">
112
+      <SubType>UserControl</SubType>
113
+    </Compile>
114
+    <Compile Include="FA.Designer.cs">
115
+      <DependentUpon>FA.cs</DependentUpon>
116
+    </Compile>
117
+    <Compile Include="Faktury_VAT_-JPK_FA%283%29.Designer.cs" />
118
+    <Compile Include="FAPoz.cs">
119
+      <SubType>UserControl</SubType>
120
+    </Compile>
121
+    <Compile Include="FAPoz.Designer.cs">
122
+      <DependentUpon>FAPoz.cs</DependentUpon>
123
+    </Compile>
124
+    <Compile Include="FAPozCtrl.cs">
125
+      <SubType>UserControl</SubType>
126
+    </Compile>
127
+    <Compile Include="FAPozCtrl.Designer.cs">
128
+      <DependentUpon>FAPozCtrl.cs</DependentUpon>
129
+    </Compile>
130
+    <Compile Include="FA_Ctrl.cs">
131
+      <SubType>UserControl</SubType>
132
+    </Compile>
133
+    <Compile Include="FA_Ctrl.Designer.cs">
134
+      <DependentUpon>FA_Ctrl.cs</DependentUpon>
135
+    </Compile>
136
+    <Compile Include="Form1.cs">
137
+      <SubType>Form</SubType>
138
+    </Compile>
139
+    <Compile Include="Form1.Designer.cs">
140
+      <DependentUpon>Form1.cs</DependentUpon>
141
+    </Compile>
142
+    <Compile Include="Header.cs">
143
+      <SubType>UserControl</SubType>
144
+    </Compile>
145
+    <Compile Include="Header.Designer.cs">
146
+      <DependentUpon>Header.cs</DependentUpon>
147
+    </Compile>
148
+    <Compile Include="initupload.designer.cs" />
149
+    <Compile Include="KGZapis.cs">
150
+      <SubType>UserControl</SubType>
151
+    </Compile>
152
+    <Compile Include="KGZapis.Designer.cs">
153
+      <DependentUpon>KGZapis.cs</DependentUpon>
154
+    </Compile>
155
+    <Compile Include="KGZapisCTRL.cs">
156
+      <SubType>UserControl</SubType>
157
+    </Compile>
158
+    <Compile Include="KGZapisCTRL.Designer.cs">
159
+      <DependentUpon>KGZapisCTRL.cs</DependentUpon>
160
+    </Compile>
161
+    <Compile Include="Podmiot.cs">
162
+      <SubType>UserControl</SubType>
163
+    </Compile>
164
+    <Compile Include="Podmiot.Designer.cs">
165
+      <DependentUpon>Podmiot.cs</DependentUpon>
166
+    </Compile>
167
+    <Compile Include="Popup.cs">
168
+      <SubType>Form</SubType>
169
+    </Compile>
170
+    <Compile Include="Popup.Designer.cs">
171
+      <DependentUpon>Popup.cs</DependentUpon>
172
+    </Compile>
173
+    <Compile Include="Program.cs" />
174
+    <Compile Include="ProgresMy.cs" />
175
+    <Compile Include="Properties\AssemblyInfo.cs" />
176
+    <Compile Include="Rachunek.cs">
177
+      <SubType>UserControl</SubType>
178
+    </Compile>
179
+    <Compile Include="Rachunek.Designer.cs">
180
+      <DependentUpon>Rachunek.cs</DependentUpon>
181
+    </Compile>
182
+    <Compile Include="Schemat_JPK_FA%281%29_v1-0.designer.cs" />
183
+    <Compile Include="Schemat_JPK_FA%282%29_v1-0.Designer.cs" />
184
+    <Compile Include="Schemat_JPK_KR%281%29_v1-0.Designer.cs" />
185
+    <Compile Include="Schemat_JPK_VAT%282%29_v1-0.designer.cs" />
186
+    <Compile Include="Schemat_JPK_VAT%283%29_v1-1.Designer.cs" />
187
+    <Compile Include="Schemat_JPK_WB%281%29_v1-0.designer.cs" />
188
+    <Compile Include="Signed.cs" />
189
+    <Compile Include="SP.cs">
190
+      <SubType>UserControl</SubType>
191
+    </Compile>
192
+    <Compile Include="SP.Designer.cs">
193
+      <DependentUpon>SP.cs</DependentUpon>
194
+    </Compile>
195
+    <Compile Include="SP_CTRL.cs">
196
+      <SubType>UserControl</SubType>
197
+    </Compile>
198
+    <Compile Include="SP_CTRL.Designer.cs">
199
+      <DependentUpon>SP_CTRL.cs</DependentUpon>
200
+    </Compile>
201
+    <Compile Include="Tax.cs">
202
+      <SubType>UserControl</SubType>
203
+    </Compile>
204
+    <Compile Include="Tax.Designer.cs">
205
+      <DependentUpon>Tax.cs</DependentUpon>
206
+    </Compile>
207
+    <Compile Include="WyciagWier.cs">
208
+      <SubType>UserControl</SubType>
209
+    </Compile>
210
+    <Compile Include="WyciagWier.Designer.cs">
211
+      <DependentUpon>WyciagWier.cs</DependentUpon>
212
+    </Compile>
213
+    <Compile Include="WyciagWierszCtrl.cs">
214
+      <SubType>UserControl</SubType>
215
+    </Compile>
216
+    <Compile Include="WyciagWierszCtrl.Designer.cs">
217
+      <DependentUpon>WyciagWierszCtrl.cs</DependentUpon>
218
+    </Compile>
219
+    <Compile Include="ZA.cs">
220
+      <SubType>UserControl</SubType>
221
+    </Compile>
222
+    <Compile Include="ZA.Designer.cs">
223
+      <DependentUpon>ZA.cs</DependentUpon>
224
+    </Compile>
225
+    <Compile Include="ZA_CTRL.cs">
226
+      <SubType>UserControl</SubType>
227
+    </Compile>
228
+    <Compile Include="ZA_CTRL.Designer.cs">
229
+      <DependentUpon>ZA_CTRL.cs</DependentUpon>
230
+    </Compile>
231
+    <Compile Include="ZOIS.cs">
232
+      <SubType>UserControl</SubType>
233
+    </Compile>
234
+    <Compile Include="ZOIS.Designer.cs">
235
+      <DependentUpon>ZOIS.cs</DependentUpon>
236
+    </Compile>
237
+    <EmbeddedResource Include="Dzienik.resx">
238
+      <DependentUpon>Dzienik.cs</DependentUpon>
239
+    </EmbeddedResource>
240
+    <EmbeddedResource Include="DzienikCTRL.resx">
241
+      <DependentUpon>DzienikCTRL.cs</DependentUpon>
242
+    </EmbeddedResource>
243
+    <EmbeddedResource Include="FA.resx">
244
+      <DependentUpon>FA.cs</DependentUpon>
245
+    </EmbeddedResource>
246
+    <EmbeddedResource Include="FAPoz.resx">
247
+      <DependentUpon>FAPoz.cs</DependentUpon>
248
+    </EmbeddedResource>
249
+    <EmbeddedResource Include="FAPozCtrl.resx">
250
+      <DependentUpon>FAPozCtrl.cs</DependentUpon>
251
+    </EmbeddedResource>
252
+    <EmbeddedResource Include="FA_Ctrl.resx">
253
+      <DependentUpon>FA_Ctrl.cs</DependentUpon>
254
+    </EmbeddedResource>
255
+    <EmbeddedResource Include="Form1.resx">
256
+      <DependentUpon>Form1.cs</DependentUpon>
257
+    </EmbeddedResource>
258
+    <EmbeddedResource Include="Header.resx">
259
+      <DependentUpon>Header.cs</DependentUpon>
260
+    </EmbeddedResource>
261
+    <EmbeddedResource Include="KGZapis.resx">
262
+      <DependentUpon>KGZapis.cs</DependentUpon>
263
+    </EmbeddedResource>
264
+    <EmbeddedResource Include="KGZapisCTRL.resx">
265
+      <DependentUpon>KGZapisCTRL.cs</DependentUpon>
266
+    </EmbeddedResource>
267
+    <EmbeddedResource Include="Podmiot.resx">
268
+      <DependentUpon>Podmiot.cs</DependentUpon>
269
+    </EmbeddedResource>
270
+    <EmbeddedResource Include="Popup.resx">
271
+      <DependentUpon>Popup.cs</DependentUpon>
272
+    </EmbeddedResource>
273
+    <EmbeddedResource Include="Properties\Resources.resx">
274
+      <Generator>ResXFileCodeGenerator</Generator>
275
+      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
276
+      <SubType>Designer</SubType>
277
+    </EmbeddedResource>
278
+    <Compile Include="Properties\Resources.Designer.cs">
279
+      <AutoGen>True</AutoGen>
280
+      <DependentUpon>Resources.resx</DependentUpon>
281
+      <DesignTime>True</DesignTime>
282
+    </Compile>
283
+    <EmbeddedResource Include="Rachunek.resx">
284
+      <DependentUpon>Rachunek.cs</DependentUpon>
285
+    </EmbeddedResource>
286
+    <EmbeddedResource Include="SP.resx">
287
+      <DependentUpon>SP.cs</DependentUpon>
288
+    </EmbeddedResource>
289
+    <EmbeddedResource Include="SP_CTRL.resx">
290
+      <DependentUpon>SP_CTRL.cs</DependentUpon>
291
+    </EmbeddedResource>
292
+    <EmbeddedResource Include="Tax.resx">
293
+      <DependentUpon>Tax.cs</DependentUpon>
294
+    </EmbeddedResource>
295
+    <EmbeddedResource Include="WyciagWier.resx">
296
+      <DependentUpon>WyciagWier.cs</DependentUpon>
297
+    </EmbeddedResource>
298
+    <EmbeddedResource Include="WyciagWierszCtrl.resx">
299
+      <DependentUpon>WyciagWierszCtrl.cs</DependentUpon>
300
+    </EmbeddedResource>
301
+    <EmbeddedResource Include="ZA.resx">
302
+      <DependentUpon>ZA.cs</DependentUpon>
303
+    </EmbeddedResource>
304
+    <EmbeddedResource Include="ZA_CTRL.resx">
305
+      <DependentUpon>ZA_CTRL.cs</DependentUpon>
306
+    </EmbeddedResource>
307
+    <EmbeddedResource Include="ZOIS.resx">
308
+      <DependentUpon>ZOIS.cs</DependentUpon>
309
+    </EmbeddedResource>
310
+    <None Include="app.config" />
311
+    <None Include="Faktury_VAT_-JPK_FA%283%29.xsd">
312
+      <SubType>Designer</SubType>
313
+    </None>
314
+    <None Include="initupload.xsd">
315
+      <SubType>Designer</SubType>
316
+    </None>
317
+    <None Include="JPK_v1_TemporaryKey.pfx" />
318
+    <None Include="packages.config" />
319
+    <None Include="Properties\Settings.settings">
320
+      <Generator>SettingsSingleFileGenerator</Generator>
321
+      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
322
+    </None>
323
+    <Compile Include="Properties\Settings.Designer.cs">
324
+      <AutoGen>True</AutoGen>
325
+      <DependentUpon>Settings.settings</DependentUpon>
326
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
327
+    </Compile>
328
+    <None Include="Schemat_JPK_FA%281%29_v1-0.xsd">
329
+      <SubType>Designer</SubType>
330
+    </None>
331
+    <None Include="Schemat_JPK_FA%282%29_v1-0.xsd">
332
+      <SubType>Designer</SubType>
333
+    </None>
334
+    <None Include="Schemat_JPK_KR%281%29_v1-0.xsd">
335
+      <SubType>Designer</SubType>
336
+    </None>
337
+    <None Include="Schemat_JPK_VAT%281%29_v1-0.xsd">
338
+      <SubType>Designer</SubType>
339
+    </None>
340
+    <None Include="Schemat_JPK_VAT%282%29_v1-0.xsd">
341
+      <SubType>Designer</SubType>
342
+    </None>
343
+    <None Include="Schemat_JPK_VAT%283%29_v1-1.xsd">
344
+      <SubType>Designer</SubType>
345
+    </None>
346
+    <None Include="Schemat_JPK_WB%281%29_v1-0.xsd">
347
+      <SubType>Designer</SubType>
348
+    </None>
349
+  </ItemGroup>
350
+  <ItemGroup>
351
+    <Content Include="trash_empty_ico.ico" />
352
+  </ItemGroup>
353
+  <ItemGroup>
354
+    <BootstrapperPackage Include=".NETFramework,Version=v4.5.2">
355
+      <Visible>False</Visible>
356
+      <ProductName>Microsoft .NET Framework 4.5.2 %28x86 i x64%29</ProductName>
357
+      <Install>true</Install>
358
+    </BootstrapperPackage>
359
+    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
360
+      <Visible>False</Visible>
361
+      <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
362
+      <Install>false</Install>
363
+    </BootstrapperPackage>
364
+    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
365
+      <Visible>False</Visible>
366
+      <ProductName>.NET Framework 3.5 SP1</ProductName>
367
+      <Install>false</Install>
368
+    </BootstrapperPackage>
369
+  </ItemGroup>
370
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
371
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
372
+       Other similar extension points exist, see Microsoft.Common.targets.
373
+  <Target Name="BeforeBuild">
374
+  </Target>
375
+  <Target Name="AfterBuild">
376
+  </Target>
377
+  -->
378
+</Project>

+ 20
- 0
JPK_v1/JPK_v1.sln Просмотреть файл

@@ -0,0 +1,20 @@
1
+
2
+Microsoft Visual Studio Solution File, Format Version 11.00
3
+# Visual Studio 2010
4
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JPK_v1", "JPK_v1.csproj", "{74C85571-EB07-4F9F-9EF3-06EFE80950AC}"
5
+EndProject
6
+Global
7
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
8
+		Debug|Any CPU = Debug|Any CPU
9
+		Release|Any CPU = Release|Any CPU
10
+	EndGlobalSection
11
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
12
+		{74C85571-EB07-4F9F-9EF3-06EFE80950AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13
+		{74C85571-EB07-4F9F-9EF3-06EFE80950AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
14
+		{74C85571-EB07-4F9F-9EF3-06EFE80950AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
15
+		{74C85571-EB07-4F9F-9EF3-06EFE80950AC}.Release|Any CPU.Build.0 = Release|Any CPU
16
+	EndGlobalSection
17
+	GlobalSection(SolutionProperties) = preSolution
18
+		HideSolutionNode = FALSE
19
+	EndGlobalSection
20
+EndGlobal

+ 59
- 0
JPK_v1/KGZapis.Designer.cs Просмотреть файл

@@ -0,0 +1,59 @@
1
+namespace JPK_v1
2
+{
3
+    partial class KGZapis
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.kgza = new System.Windows.Forms.DataGridView();
32
+            ((System.ComponentModel.ISupportInitialize)(this.kgza)).BeginInit();
33
+            this.SuspendLayout();
34
+            // 
35
+            // kgza
36
+            // 
37
+            this.kgza.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
38
+            this.kgza.Location = new System.Drawing.Point(0, 0);
39
+            this.kgza.Name = "kgza";
40
+            this.kgza.Size = new System.Drawing.Size(804, 384);
41
+            this.kgza.TabIndex = 0;
42
+            // 
43
+            // KGZapis
44
+            // 
45
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
46
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
47
+            this.Controls.Add(this.kgza);
48
+            this.Name = "KGZapis";
49
+            this.Size = new System.Drawing.Size(807, 387);
50
+            ((System.ComponentModel.ISupportInitialize)(this.kgza)).EndInit();
51
+            this.ResumeLayout(false);
52
+
53
+        }
54
+
55
+        #endregion
56
+
57
+        private System.Windows.Forms.DataGridView kgza;
58
+    }
59
+}

+ 83
- 0
JPK_v1/KGZapis.cs Просмотреть файл

@@ -0,0 +1,83 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class KGZapis : UserControl
13
+    {
14
+        public KGZapis()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+        public void addPozkgza(JPK_KG_v1.JPKKontoZapis zap)
19
+        {
20
+            int index;
21
+            index = kgza.Rows.Add();
22
+            kgza.Rows[index].Cells[0].Value = zap.LpZapisu;
23
+            kgza.Rows[index].Cells[1].Value = zap.NrZapisu;
24
+            kgza.Rows[index].Cells[2].Value = zap.KodKontaWinien;
25
+            kgza.Rows[index].Cells[3].Value = zap.KwotaWinien;
26
+            kgza.Rows[index].Cells[4].Value = zap.KwotaWinienWaluta;
27
+            kgza.Rows[index].Cells[5].Value = zap.KodWalutyWinien;
28
+            kgza.Rows[index].Cells[6].Value = zap.OpisZapisuWinien;
29
+            kgza.Rows[index].Cells[7].Value = zap.KodKontaMa;
30
+            kgza.Rows[index].Cells[8].Value = zap.KwotaMa;
31
+            kgza.Rows[index].Cells[9].Value = zap.KwotaMaWaluta;
32
+            kgza.Rows[index].Cells[10].Value = zap.KodWalutyMa;
33
+            kgza.Rows[index].Cells[11].Value = zap.OpisZapisuMa;
34
+          
35
+
36
+        }
37
+        public void clearkgza()
38
+        {
39
+            kgza.Rows.Clear();
40
+        }
41
+        public void KGZA_init_tab()
42
+        {
43
+                                
44
+         DataGridViewColumn column = new DataGridViewTextBoxColumn();
45
+            column.HeaderText = "LpZapisu";
46
+            this.kgza.Columns.Add(column);
47
+            column = new DataGridViewTextBoxColumn();
48
+            column.HeaderText = "NrZapisu";
49
+            this.kgza.Columns.Add(column);
50
+            column = new DataGridViewTextBoxColumn();
51
+            column.HeaderText = "KodKontaWinien";
52
+            this.kgza.Columns.Add(column);
53
+            column = new DataGridViewTextBoxColumn();
54
+            column.HeaderText = "KwotaWinien";
55
+            this.kgza.Columns.Add(column);
56
+            column = new DataGridViewTextBoxColumn();
57
+            column.HeaderText = "KwotaWinienWaluta";
58
+            this.kgza.Columns.Add(column);
59
+            column = new DataGridViewTextBoxColumn();
60
+            column.HeaderText = "KodWalutyWinien";
61
+            this.kgza.Columns.Add(column);
62
+            column = new DataGridViewTextBoxColumn();
63
+            column.HeaderText = "OpisZapisuWinien";
64
+            this.kgza.Columns.Add(column);
65
+            column = new DataGridViewTextBoxColumn();
66
+            column.HeaderText = "KodKontaMa";
67
+            this.kgza.Columns.Add(column);
68
+            column = new DataGridViewTextBoxColumn();
69
+            column.HeaderText = "KwotaMa";
70
+            this.kgza.Columns.Add(column);
71
+            column = new DataGridViewTextBoxColumn();
72
+            column.HeaderText = "KwotaMaWaluta";
73
+            this.kgza.Columns.Add(column);
74
+            column = new DataGridViewTextBoxColumn();
75
+            column.HeaderText = "KodWalutyMa";
76
+            this.kgza.Columns.Add(column);
77
+            column = new DataGridViewTextBoxColumn();
78
+            column.HeaderText = "OpisZapisuMa";
79
+            this.kgza.Columns.Add(column);
80
+          
81
+        }
82
+    }
83
+}

+ 120
- 0
JPK_v1/KGZapis.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 45
- 0
JPK_v1/KGZapisCTRL.Designer.cs Просмотреть файл

@@ -0,0 +1,45 @@
1
+namespace JPK_v1
2
+{
3
+    partial class KGZapisCTRL
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.SuspendLayout();
32
+            // 
33
+            // KGZapisCTRL
34
+            // 
35
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
36
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
37
+            this.Name = "KGZapisCTRL";
38
+            this.Size = new System.Drawing.Size(872, 485);
39
+            this.ResumeLayout(false);
40
+
41
+        }
42
+
43
+        #endregion
44
+    }
45
+}

+ 19
- 0
JPK_v1/KGZapisCTRL.cs Просмотреть файл

@@ -0,0 +1,19 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class KGZapisCTRL : UserControl
13
+    {
14
+        public KGZapisCTRL()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+    }
19
+}

+ 120
- 0
JPK_v1/KGZapisCTRL.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 333
- 0
JPK_v1/Podmiot.Designer.cs Просмотреть файл

@@ -0,0 +1,333 @@
1
+namespace JPK_v1
2
+{
3
+    partial class Podmiot
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.label1 = new System.Windows.Forms.Label();
32
+            this.label2 = new System.Windows.Forms.Label();
33
+            this.label3 = new System.Windows.Forms.Label();
34
+            this.label4 = new System.Windows.Forms.Label();
35
+            this.label5 = new System.Windows.Forms.Label();
36
+            this.label6 = new System.Windows.Forms.Label();
37
+            this.label7 = new System.Windows.Forms.Label();
38
+            this.label8 = new System.Windows.Forms.Label();
39
+            this.label9 = new System.Windows.Forms.Label();
40
+            this.label10 = new System.Windows.Forms.Label();
41
+            this.label11 = new System.Windows.Forms.Label();
42
+            this.label12 = new System.Windows.Forms.Label();
43
+            this.label13 = new System.Windows.Forms.Label();
44
+            this.pNIP = new System.Windows.Forms.TextBox();
45
+            this.pRegon = new System.Windows.Forms.TextBox();
46
+            this.pName = new System.Windows.Forms.TextBox();
47
+            this.pkraj = new System.Windows.Forms.TextBox();
48
+            this.pwoj = new System.Windows.Forms.TextBox();
49
+            this.pPow = new System.Windows.Forms.TextBox();
50
+            this.pGmina = new System.Windows.Forms.TextBox();
51
+            this.pUli = new System.Windows.Forms.TextBox();
52
+            this.pMiejscowosc = new System.Windows.Forms.TextBox();
53
+            this.pPoczta = new System.Windows.Forms.TextBox();
54
+            this.pDom = new System.Windows.Forms.TextBox();
55
+            this.pLokal = new System.Windows.Forms.TextBox();
56
+            this.pMpoczta = new System.Windows.Forms.TextBox();
57
+            this.SuspendLayout();
58
+            // 
59
+            // label1
60
+            // 
61
+            this.label1.AutoSize = true;
62
+            this.label1.Location = new System.Drawing.Point(18, 14);
63
+            this.label1.Name = "label1";
64
+            this.label1.Size = new System.Drawing.Size(25, 13);
65
+            this.label1.TabIndex = 0;
66
+            this.label1.Text = "NIP";
67
+            // 
68
+            // label2
69
+            // 
70
+            this.label2.AutoSize = true;
71
+            this.label2.Location = new System.Drawing.Point(18, 36);
72
+            this.label2.Name = "label2";
73
+            this.label2.Size = new System.Drawing.Size(39, 13);
74
+            this.label2.TabIndex = 1;
75
+            this.label2.Text = "Regon";
76
+            // 
77
+            // label3
78
+            // 
79
+            this.label3.AutoSize = true;
80
+            this.label3.Location = new System.Drawing.Point(18, 59);
81
+            this.label3.Name = "label3";
82
+            this.label3.Size = new System.Drawing.Size(72, 13);
83
+            this.label3.TabIndex = 2;
84
+            this.label3.Text = "Pełna Nazwa";
85
+            // 
86
+            // label4
87
+            // 
88
+            this.label4.AutoSize = true;
89
+            this.label4.Location = new System.Drawing.Point(22, 109);
90
+            this.label4.Name = "label4";
91
+            this.label4.Size = new System.Drawing.Size(25, 13);
92
+            this.label4.TabIndex = 3;
93
+            this.label4.Text = "Kraj";
94
+            // 
95
+            // label5
96
+            // 
97
+            this.label5.AutoSize = true;
98
+            this.label5.Location = new System.Drawing.Point(21, 133);
99
+            this.label5.Name = "label5";
100
+            this.label5.Size = new System.Drawing.Size(74, 13);
101
+            this.label5.TabIndex = 4;
102
+            this.label5.Text = "Województwo";
103
+            // 
104
+            // label6
105
+            // 
106
+            this.label6.AutoSize = true;
107
+            this.label6.Location = new System.Drawing.Point(22, 159);
108
+            this.label6.Name = "label6";
109
+            this.label6.Size = new System.Drawing.Size(39, 13);
110
+            this.label6.TabIndex = 5;
111
+            this.label6.Text = "Powiat";
112
+            // 
113
+            // label7
114
+            // 
115
+            this.label7.AutoSize = true;
116
+            this.label7.Location = new System.Drawing.Point(22, 181);
117
+            this.label7.Name = "label7";
118
+            this.label7.Size = new System.Drawing.Size(37, 13);
119
+            this.label7.TabIndex = 6;
120
+            this.label7.Text = "Gmina";
121
+            // 
122
+            // label8
123
+            // 
124
+            this.label8.AutoSize = true;
125
+            this.label8.Location = new System.Drawing.Point(22, 204);
126
+            this.label8.Name = "label8";
127
+            this.label8.Size = new System.Drawing.Size(31, 13);
128
+            this.label8.TabIndex = 7;
129
+            this.label8.Text = "Ulica";
130
+            // 
131
+            // label9
132
+            // 
133
+            this.label9.AutoSize = true;
134
+            this.label9.Location = new System.Drawing.Point(255, 207);
135
+            this.label9.Name = "label9";
136
+            this.label9.Size = new System.Drawing.Size(69, 13);
137
+            this.label9.TabIndex = 8;
138
+            this.label9.Text = "Numer Domu";
139
+            // 
140
+            // label10
141
+            // 
142
+            this.label10.AutoSize = true;
143
+            this.label10.Location = new System.Drawing.Point(452, 211);
144
+            this.label10.Name = "label10";
145
+            this.label10.Size = new System.Drawing.Size(73, 13);
146
+            this.label10.TabIndex = 9;
147
+            this.label10.Text = "Numer Lokalu";
148
+            // 
149
+            // label11
150
+            // 
151
+            this.label11.AutoSize = true;
152
+            this.label11.Location = new System.Drawing.Point(21, 226);
153
+            this.label11.Name = "label11";
154
+            this.label11.Size = new System.Drawing.Size(68, 13);
155
+            this.label11.TabIndex = 10;
156
+            this.label11.Text = "Miejscowość";
157
+            // 
158
+            // label12
159
+            // 
160
+            this.label12.AutoSize = true;
161
+            this.label12.Location = new System.Drawing.Point(22, 248);
162
+            this.label12.Name = "label12";
163
+            this.label12.Size = new System.Drawing.Size(75, 13);
164
+            this.label12.TabIndex = 11;
165
+            this.label12.Text = "Kod Pocztowy";
166
+            // 
167
+            // label13
168
+            // 
169
+            this.label13.AutoSize = true;
170
+            this.label13.Location = new System.Drawing.Point(255, 248);
171
+            this.label13.Name = "label13";
172
+            this.label13.Size = new System.Drawing.Size(40, 13);
173
+            this.label13.TabIndex = 12;
174
+            this.label13.Text = "Poczta";
175
+            // 
176
+            // pNIP
177
+            // 
178
+            this.pNIP.Location = new System.Drawing.Point(120, 7);
179
+            this.pNIP.Name = "pNIP";
180
+            this.pNIP.Size = new System.Drawing.Size(100, 20);
181
+            this.pNIP.TabIndex = 13;
182
+            // 
183
+            // pRegon
184
+            // 
185
+            this.pRegon.Location = new System.Drawing.Point(120, 29);
186
+            this.pRegon.Name = "pRegon";
187
+            this.pRegon.Size = new System.Drawing.Size(100, 20);
188
+            this.pRegon.TabIndex = 14;
189
+            // 
190
+            // pName
191
+            // 
192
+            this.pName.Location = new System.Drawing.Point(120, 52);
193
+            this.pName.Name = "pName";
194
+            this.pName.Size = new System.Drawing.Size(580, 20);
195
+            this.pName.TabIndex = 15;
196
+            // 
197
+            // pkraj
198
+            // 
199
+            this.pkraj.Location = new System.Drawing.Point(120, 109);
200
+            this.pkraj.Name = "pkraj";
201
+            this.pkraj.Size = new System.Drawing.Size(100, 20);
202
+            this.pkraj.TabIndex = 16;
203
+            // 
204
+            // pwoj
205
+            // 
206
+            this.pwoj.Location = new System.Drawing.Point(120, 130);
207
+            this.pwoj.Name = "pwoj";
208
+            this.pwoj.Size = new System.Drawing.Size(100, 20);
209
+            this.pwoj.TabIndex = 17;
210
+            // 
211
+            // pPow
212
+            // 
213
+            this.pPow.Location = new System.Drawing.Point(120, 152);
214
+            this.pPow.Name = "pPow";
215
+            this.pPow.Size = new System.Drawing.Size(100, 20);
216
+            this.pPow.TabIndex = 18;
217
+            // 
218
+            // pGmina
219
+            // 
220
+            this.pGmina.Location = new System.Drawing.Point(120, 174);
221
+            this.pGmina.Name = "pGmina";
222
+            this.pGmina.Size = new System.Drawing.Size(100, 20);
223
+            this.pGmina.TabIndex = 19;
224
+            // 
225
+            // pUli
226
+            // 
227
+            this.pUli.Location = new System.Drawing.Point(120, 197);
228
+            this.pUli.Name = "pUli";
229
+            this.pUli.Size = new System.Drawing.Size(100, 20);
230
+            this.pUli.TabIndex = 20;
231
+            // 
232
+            // pMiejscowosc
233
+            // 
234
+            this.pMiejscowosc.Location = new System.Drawing.Point(120, 219);
235
+            this.pMiejscowosc.Name = "pMiejscowosc";
236
+            this.pMiejscowosc.Size = new System.Drawing.Size(100, 20);
237
+            this.pMiejscowosc.TabIndex = 21;
238
+            // 
239
+            // pPoczta
240
+            // 
241
+            this.pPoczta.Location = new System.Drawing.Point(120, 241);
242
+            this.pPoczta.Name = "pPoczta";
243
+            this.pPoczta.Size = new System.Drawing.Size(100, 20);
244
+            this.pPoczta.TabIndex = 22;
245
+            // 
246
+            // pDom
247
+            // 
248
+            this.pDom.Location = new System.Drawing.Point(330, 201);
249
+            this.pDom.Name = "pDom";
250
+            this.pDom.Size = new System.Drawing.Size(100, 20);
251
+            this.pDom.TabIndex = 23;
252
+            // 
253
+            // pLokal
254
+            // 
255
+            this.pLokal.Location = new System.Drawing.Point(531, 204);
256
+            this.pLokal.Name = "pLokal";
257
+            this.pLokal.Size = new System.Drawing.Size(100, 20);
258
+            this.pLokal.TabIndex = 24;
259
+            // 
260
+            // pMpoczta
261
+            // 
262
+            this.pMpoczta.Location = new System.Drawing.Point(330, 245);
263
+            this.pMpoczta.Name = "pMpoczta";
264
+            this.pMpoczta.Size = new System.Drawing.Size(100, 20);
265
+            this.pMpoczta.TabIndex = 25;
266
+            // 
267
+            // Podmiot
268
+            // 
269
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
270
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
271
+            this.Controls.Add(this.pMpoczta);
272
+            this.Controls.Add(this.pLokal);
273
+            this.Controls.Add(this.pDom);
274
+            this.Controls.Add(this.pPoczta);
275
+            this.Controls.Add(this.pMiejscowosc);
276
+            this.Controls.Add(this.pUli);
277
+            this.Controls.Add(this.pGmina);
278
+            this.Controls.Add(this.pPow);
279
+            this.Controls.Add(this.pwoj);
280
+            this.Controls.Add(this.pkraj);
281
+            this.Controls.Add(this.pName);
282
+            this.Controls.Add(this.pRegon);
283
+            this.Controls.Add(this.pNIP);
284
+            this.Controls.Add(this.label13);
285
+            this.Controls.Add(this.label12);
286
+            this.Controls.Add(this.label11);
287
+            this.Controls.Add(this.label10);
288
+            this.Controls.Add(this.label9);
289
+            this.Controls.Add(this.label8);
290
+            this.Controls.Add(this.label7);
291
+            this.Controls.Add(this.label6);
292
+            this.Controls.Add(this.label5);
293
+            this.Controls.Add(this.label4);
294
+            this.Controls.Add(this.label3);
295
+            this.Controls.Add(this.label2);
296
+            this.Controls.Add(this.label1);
297
+            this.Name = "Podmiot";
298
+            this.Size = new System.Drawing.Size(739, 307);
299
+            this.ResumeLayout(false);
300
+            this.PerformLayout();
301
+
302
+        }
303
+
304
+        #endregion
305
+
306
+        private System.Windows.Forms.Label label1;
307
+        private System.Windows.Forms.Label label2;
308
+        private System.Windows.Forms.Label label3;
309
+        private System.Windows.Forms.Label label4;
310
+        private System.Windows.Forms.Label label5;
311
+        private System.Windows.Forms.Label label6;
312
+        private System.Windows.Forms.Label label7;
313
+        private System.Windows.Forms.Label label8;
314
+        private System.Windows.Forms.Label label9;
315
+        private System.Windows.Forms.Label label10;
316
+        private System.Windows.Forms.Label label11;
317
+        private System.Windows.Forms.Label label12;
318
+        private System.Windows.Forms.Label label13;
319
+        private System.Windows.Forms.TextBox pNIP;
320
+        private System.Windows.Forms.TextBox pRegon;
321
+        private System.Windows.Forms.TextBox pName;
322
+        private System.Windows.Forms.TextBox pkraj;
323
+        private System.Windows.Forms.TextBox pwoj;
324
+        private System.Windows.Forms.TextBox pPow;
325
+        private System.Windows.Forms.TextBox pGmina;
326
+        private System.Windows.Forms.TextBox pUli;
327
+        private System.Windows.Forms.TextBox pMiejscowosc;
328
+        private System.Windows.Forms.TextBox pPoczta;
329
+        private System.Windows.Forms.TextBox pDom;
330
+        private System.Windows.Forms.TextBox pLokal;
331
+        private System.Windows.Forms.TextBox pMpoczta;
332
+    }
333
+}

+ 36
- 0
JPK_v1/Podmiot.cs Просмотреть файл

@@ -0,0 +1,36 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+using JPK_v1.Constans;
10
+
11
+namespace JPK_v1
12
+{
13
+    public partial class Podmiot : UserControl
14
+    {
15
+        public Podmiot()
16
+        {
17
+            InitializeComponent();
18
+        }
19
+        public void SetPodmiot(SpName lPodmiot)
20
+        {
21
+            pNIP.Text = lPodmiot.NIP;
22
+            pName.Text = lPodmiot.Describe;
23
+            pRegon.Text = lPodmiot.Regon;
24
+            pkraj.Text = lPodmiot.Kraj;
25
+            pwoj.Text = lPodmiot.Wojewodztwo;
26
+            pPow.Text = lPodmiot.Powiat;
27
+            pGmina.Text = lPodmiot.Gmina;
28
+            pUli.Text = lPodmiot.Ulica;
29
+            pDom.Text = lPodmiot.Budynek;
30
+            pLokal.Text = lPodmiot.Dom;
31
+            pMiejscowosc.Text = lPodmiot.Miejscowosc;
32
+            pPoczta.Text = lPodmiot.Poczta;
33
+            pMpoczta.Text = lPodmiot.MiastoPoczta;
34
+        }
35
+    }
36
+}

+ 120
- 0
JPK_v1/Podmiot.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 80
- 0
JPK_v1/Popup.Designer.cs Просмотреть файл

@@ -0,0 +1,80 @@
1
+namespace JPK_v1
2
+{
3
+    partial class Popup
4
+    {
5
+        /// <summary>
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary>
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Windows Form Designer generated code
24
+
25
+        /// <summary>
26
+        /// Required method for Designer support - do not modify
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.label1 = new System.Windows.Forms.Label();
32
+            this.progressBar1 = new System.Windows.Forms.ProgressBar();
33
+            this.SuspendLayout();
34
+            // 
35
+            // label1
36
+            // 
37
+            this.label1.AutoSize = true;
38
+            this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
39
+            this.label1.Location = new System.Drawing.Point(68, 34);
40
+            this.label1.Name = "label1";
41
+            this.label1.Size = new System.Drawing.Size(128, 20);
42
+            this.label1.TabIndex = 0;
43
+            this.label1.Text = "Przetwarzam plik";
44
+            // 
45
+            // progressBar1
46
+            // 
47
+            this.progressBar1.Location = new System.Drawing.Point(12, 102);
48
+            this.progressBar1.Name = "progressBar1";
49
+            this.progressBar1.Size = new System.Drawing.Size(260, 23);
50
+            this.progressBar1.TabIndex = 1;
51
+            // 
52
+            // Popup
53
+            // 
54
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
55
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
56
+            this.BackColor = System.Drawing.SystemColors.Menu;
57
+            this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
58
+            this.ClientSize = new System.Drawing.Size(284, 153);
59
+            this.ControlBox = false;
60
+            this.Controls.Add(this.progressBar1);
61
+            this.Controls.Add(this.label1);
62
+            this.MaximizeBox = false;
63
+            this.MinimizeBox = false;
64
+            this.Name = "Popup";
65
+            this.ShowIcon = false;
66
+            this.ShowInTaskbar = false;
67
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
68
+            this.Text = "Działam :)";
69
+            this.TopMost = true;
70
+            this.ResumeLayout(false);
71
+            this.PerformLayout();
72
+
73
+        }
74
+
75
+        #endregion
76
+
77
+        private System.Windows.Forms.Label label1;
78
+        private System.Windows.Forms.ProgressBar progressBar1;
79
+    }
80
+}

+ 31
- 0
JPK_v1/Popup.cs Просмотреть файл

@@ -0,0 +1,31 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Data;
5
+using System.Drawing;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Threading.Tasks;
9
+using System.Windows.Forms;
10
+
11
+namespace JPK_v1
12
+{
13
+    public partial class Popup : Form
14
+    {
15
+        public Popup()
16
+        {
17
+            InitializeComponent();
18
+   
19
+        }
20
+        public void Prog(int l)
21
+        {
22
+            label1.Refresh();
23
+            progressBar1.Value = l;
24
+            if (l == 100)
25
+            {
26
+                progressBar1.Value = 0;
27
+               
28
+            }
29
+        }
30
+    }
31
+}

+ 120
- 0
JPK_v1/Popup.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 22
- 0
JPK_v1/Program.cs Просмотреть файл

@@ -0,0 +1,22 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Windows.Forms;
5
+
6
+namespace JPK_v1
7
+{
8
+    static class Program
9
+    {
10
+        /// <summary>
11
+        /// The main entry point for the application.
12
+        /// </summary>
13
+        [STAThread]
14
+        static void Main()
15
+        {
16
+            Application.EnableVisualStyles();
17
+            Application.SetCompatibleTextRenderingDefault(false);
18
+            Application.Run(new Form1());
19
+        }
20
+
21
+    }
22
+}

+ 56
- 0
JPK_v1/ProgresMy.cs Просмотреть файл

@@ -0,0 +1,56 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Threading;
6
+using System.Threading.Tasks;
7
+
8
+namespace JPK_v1
9
+{
10
+    public class ProgresMy
11
+    {
12
+        private Popup p;
13
+        private Thread t;
14
+        private bool endThread;
15
+
16
+        public ProgresMy()
17
+        {
18
+            p = new Popup();
19
+        }
20
+        public void Start()
21
+        {
22
+            t = new Thread(Show);
23
+            t.Start();
24
+            endThread = false;
25
+        }
26
+        public void Stop()
27
+        {
28
+            endThread = true;
29
+        }
30
+        void Show()
31
+        {
32
+            p.Show();
33
+         
34
+            int i = 0;
35
+            Thread.Sleep(100);
36
+            while(i<100)
37
+            {
38
+                i++;
39
+                p.Prog(i);
40
+                Thread.Sleep(100);
41
+                if (endThread == true)
42
+                {
43
+                    break;
44
+                }
45
+                else
46
+                {
47
+                    if (i == 100)
48
+                    {
49
+                        i = 0;
50
+                    }
51
+                }
52
+            }
53
+        }
54
+    }
55
+
56
+}

+ 36
- 0
JPK_v1/Properties/AssemblyInfo.cs Просмотреть файл

@@ -0,0 +1,36 @@
1
+using System.Reflection;
2
+using System.Runtime.CompilerServices;
3
+using System.Runtime.InteropServices;
4
+
5
+// General Information about an assembly is controlled through the following 
6
+// set of attributes. Change these attribute values to modify the information
7
+// associated with an assembly.
8
+[assembly: AssemblyTitle("JPK_v1")]
9
+[assembly: AssemblyDescription("")]
10
+[assembly: AssemblyConfiguration("")]
11
+[assembly: AssemblyCompany("")]
12
+[assembly: AssemblyProduct("JPK_v1")]
13
+[assembly: AssemblyCopyright("Copyright ©  2016")]
14
+[assembly: AssemblyTrademark("")]
15
+[assembly: AssemblyCulture("")]
16
+
17
+// Setting ComVisible to false makes the types in this assembly not visible 
18
+// to COM components.  If you need to access a type in this assembly from 
19
+// COM, set the ComVisible attribute to true on that type.
20
+[assembly: ComVisible(false)]
21
+
22
+// The following GUID is for the ID of the typelib if this project is exposed to COM
23
+[assembly: Guid("19f7d6c9-9082-45ad-baab-bb80916d75de")]
24
+
25
+// Version information for an assembly consists of the following four values:
26
+//
27
+//      Major Version
28
+//      Minor Version 
29
+//      Build Number
30
+//      Revision
31
+//
32
+// You can specify all the values or you can default the Build and Revision Numbers 
33
+// by using the '*' as shown below:
34
+// [assembly: AssemblyVersion("1.0.*")]
35
+[assembly: AssemblyVersion("1.0.0.0")]
36
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 63
- 0
JPK_v1/Properties/Resources.Designer.cs Просмотреть файл

@@ -0,0 +1,63 @@
1
+//------------------------------------------------------------------------------
2
+// <auto-generated>
3
+//     This code was generated by a tool.
4
+//     Runtime Version:4.0.30319.42000
5
+//
6
+//     Changes to this file may cause incorrect behavior and will be lost if
7
+//     the code is regenerated.
8
+// </auto-generated>
9
+//------------------------------------------------------------------------------
10
+
11
+namespace JPK_v1.Properties {
12
+    using System;
13
+    
14
+    
15
+    /// <summary>
16
+    ///   A strongly-typed resource class, for looking up localized strings, etc.
17
+    /// </summary>
18
+    // This class was auto-generated by the StronglyTypedResourceBuilder
19
+    // class via a tool like ResGen or Visual Studio.
20
+    // To add or remove a member, edit your .ResX file then rerun ResGen
21
+    // with the /str option, or rebuild your VS project.
22
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23
+    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25
+    internal class Resources {
26
+        
27
+        private static global::System.Resources.ResourceManager resourceMan;
28
+        
29
+        private static global::System.Globalization.CultureInfo resourceCulture;
30
+        
31
+        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32
+        internal Resources() {
33
+        }
34
+        
35
+        /// <summary>
36
+        ///   Returns the cached ResourceManager instance used by this class.
37
+        /// </summary>
38
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39
+        internal static global::System.Resources.ResourceManager ResourceManager {
40
+            get {
41
+                if (object.ReferenceEquals(resourceMan, null)) {
42
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("JPK_v1.Properties.Resources", typeof(Resources).Assembly);
43
+                    resourceMan = temp;
44
+                }
45
+                return resourceMan;
46
+            }
47
+        }
48
+        
49
+        /// <summary>
50
+        ///   Overrides the current thread's CurrentUICulture property for all
51
+        ///   resource lookups using this strongly typed resource class.
52
+        /// </summary>
53
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54
+        internal static global::System.Globalization.CultureInfo Culture {
55
+            get {
56
+                return resourceCulture;
57
+            }
58
+            set {
59
+                resourceCulture = value;
60
+            }
61
+        }
62
+    }
63
+}

+ 117
- 0
JPK_v1/Properties/Resources.resx Просмотреть файл

@@ -0,0 +1,117 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:element name="root" msdata:IsDataSet="true">
64
+      <xsd:complexType>
65
+        <xsd:choice maxOccurs="unbounded">
66
+          <xsd:element name="metadata">
67
+            <xsd:complexType>
68
+              <xsd:sequence>
69
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
70
+              </xsd:sequence>
71
+              <xsd:attribute name="name" type="xsd:string" />
72
+              <xsd:attribute name="type" type="xsd:string" />
73
+              <xsd:attribute name="mimetype" type="xsd:string" />
74
+            </xsd:complexType>
75
+          </xsd:element>
76
+          <xsd:element name="assembly">
77
+            <xsd:complexType>
78
+              <xsd:attribute name="alias" type="xsd:string" />
79
+              <xsd:attribute name="name" type="xsd:string" />
80
+            </xsd:complexType>
81
+          </xsd:element>
82
+          <xsd:element name="data">
83
+            <xsd:complexType>
84
+              <xsd:sequence>
85
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
86
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
87
+              </xsd:sequence>
88
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
89
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
90
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
91
+            </xsd:complexType>
92
+          </xsd:element>
93
+          <xsd:element name="resheader">
94
+            <xsd:complexType>
95
+              <xsd:sequence>
96
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
97
+              </xsd:sequence>
98
+              <xsd:attribute name="name" type="xsd:string" use="required" />
99
+            </xsd:complexType>
100
+          </xsd:element>
101
+        </xsd:choice>
102
+      </xsd:complexType>
103
+    </xsd:element>
104
+  </xsd:schema>
105
+  <resheader name="resmimetype">
106
+    <value>text/microsoft-resx</value>
107
+  </resheader>
108
+  <resheader name="version">
109
+    <value>2.0</value>
110
+  </resheader>
111
+  <resheader name="reader">
112
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
113
+  </resheader>
114
+  <resheader name="writer">
115
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+</root>

+ 26
- 0
JPK_v1/Properties/Settings.Designer.cs Просмотреть файл

@@ -0,0 +1,26 @@
1
+//------------------------------------------------------------------------------
2
+// <auto-generated>
3
+//     This code was generated by a tool.
4
+//     Runtime Version:4.0.30319.42000
5
+//
6
+//     Changes to this file may cause incorrect behavior and will be lost if
7
+//     the code is regenerated.
8
+// </auto-generated>
9
+//------------------------------------------------------------------------------
10
+
11
+namespace JPK_v1.Properties {
12
+    
13
+    
14
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
16
+    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17
+        
18
+        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19
+        
20
+        public static Settings Default {
21
+            get {
22
+                return defaultInstance;
23
+            }
24
+        }
25
+    }
26
+}

+ 7
- 0
JPK_v1/Properties/Settings.settings Просмотреть файл

@@ -0,0 +1,7 @@
1
+<?xml version='1.0' encoding='utf-8'?>
2
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
3
+  <Profiles>
4
+    <Profile Name="(Default)" />
5
+  </Profiles>
6
+  <Settings />
7
+</SettingsFile>

+ 113
- 0
JPK_v1/Rachunek.Designer.cs Просмотреть файл

@@ -0,0 +1,113 @@
1
+namespace JPK_v1
2
+{
3
+    partial class Rachunek
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.label1 = new System.Windows.Forms.Label();
32
+            this.tnrb = new System.Windows.Forms.TextBox();
33
+            this.label2 = new System.Windows.Forms.Label();
34
+            this.label3 = new System.Windows.Forms.Label();
35
+            this.tsp = new System.Windows.Forms.TextBox();
36
+            this.tsk = new System.Windows.Forms.TextBox();
37
+            this.SuspendLayout();
38
+            // 
39
+            // label1
40
+            // 
41
+            this.label1.AutoSize = true;
42
+            this.label1.Location = new System.Drawing.Point(30, 21);
43
+            this.label1.Name = "label1";
44
+            this.label1.Size = new System.Drawing.Size(86, 13);
45
+            this.label1.TabIndex = 0;
46
+            this.label1.Text = "Numer rachunku";
47
+            // 
48
+            // tnrb
49
+            // 
50
+            this.tnrb.Location = new System.Drawing.Point(140, 14);
51
+            this.tnrb.Name = "tnrb";
52
+            this.tnrb.Size = new System.Drawing.Size(243, 20);
53
+            this.tnrb.TabIndex = 1;
54
+            // 
55
+            // label2
56
+            // 
57
+            this.label2.AutoSize = true;
58
+            this.label2.Location = new System.Drawing.Point(30, 50);
59
+            this.label2.Name = "label2";
60
+            this.label2.Size = new System.Drawing.Size(95, 13);
61
+            this.label2.TabIndex = 0;
62
+            this.label2.Text = "Saldo początkowe";
63
+            // 
64
+            // label3
65
+            // 
66
+            this.label3.AutoSize = true;
67
+            this.label3.Location = new System.Drawing.Point(30, 76);
68
+            this.label3.Name = "label3";
69
+            this.label3.Size = new System.Drawing.Size(81, 13);
70
+            this.label3.TabIndex = 2;
71
+            this.label3.Text = "Saldo końcowe";
72
+            // 
73
+            // tsp
74
+            // 
75
+            this.tsp.Location = new System.Drawing.Point(140, 43);
76
+            this.tsp.Name = "tsp";
77
+            this.tsp.Size = new System.Drawing.Size(243, 20);
78
+            this.tsp.TabIndex = 3;
79
+            // 
80
+            // tsk
81
+            // 
82
+            this.tsk.Location = new System.Drawing.Point(140, 69);
83
+            this.tsk.Name = "tsk";
84
+            this.tsk.Size = new System.Drawing.Size(243, 20);
85
+            this.tsk.TabIndex = 4;
86
+            // 
87
+            // Rachunek
88
+            // 
89
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
90
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
91
+            this.Controls.Add(this.tsk);
92
+            this.Controls.Add(this.tsp);
93
+            this.Controls.Add(this.label3);
94
+            this.Controls.Add(this.label2);
95
+            this.Controls.Add(this.tnrb);
96
+            this.Controls.Add(this.label1);
97
+            this.Name = "Rachunek";
98
+            this.Size = new System.Drawing.Size(718, 366);
99
+            this.ResumeLayout(false);
100
+            this.PerformLayout();
101
+
102
+        }
103
+
104
+        #endregion
105
+
106
+        private System.Windows.Forms.Label label1;
107
+        private System.Windows.Forms.TextBox tnrb;
108
+        private System.Windows.Forms.Label label2;
109
+        private System.Windows.Forms.Label label3;
110
+        private System.Windows.Forms.TextBox tsp;
111
+        private System.Windows.Forms.TextBox tsk;
112
+    }
113
+}

+ 27
- 0
JPK_v1/Rachunek.cs Просмотреть файл

@@ -0,0 +1,27 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class Rachunek : UserControl
13
+    {
14
+        public Rachunek()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+
19
+        public void AddData(JPK_WB_v1.JPK a)
20
+        {
21
+            this.tnrb.Text = a.NumerRachunku;
22
+            this.tsp.Text = a.Salda.SaldoPoczatkowe.ToString();
23
+            this.tsk.Text = a.Salda.SaldoKoncowe.ToString();
24
+        }
25
+
26
+    }
27
+}

+ 120
- 0
JPK_v1/Rachunek.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 59
- 0
JPK_v1/SP.Designer.cs Просмотреть файл

@@ -0,0 +1,59 @@
1
+namespace JPK_v1
2
+{
3
+    partial class SP
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.dataSP = new System.Windows.Forms.DataGridView();
32
+            ((System.ComponentModel.ISupportInitialize)(this.dataSP)).BeginInit();
33
+            this.SuspendLayout();
34
+            // 
35
+            // dataSP
36
+            // 
37
+            this.dataSP.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
38
+            this.dataSP.Location = new System.Drawing.Point(0, 0);
39
+            this.dataSP.Name = "dataSP";
40
+            this.dataSP.Size = new System.Drawing.Size(888, 396);
41
+            this.dataSP.TabIndex = 0;
42
+            // 
43
+            // SP
44
+            // 
45
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
46
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
47
+            this.Controls.Add(this.dataSP);
48
+            this.Name = "SP";
49
+            this.Size = new System.Drawing.Size(926, 489);
50
+            ((System.ComponentModel.ISupportInitialize)(this.dataSP)).EndInit();
51
+            this.ResumeLayout(false);
52
+
53
+        }
54
+
55
+        #endregion
56
+
57
+        private System.Windows.Forms.DataGridView dataSP;
58
+    }
59
+}

+ 168
- 0
JPK_v1/SP.cs Просмотреть файл

@@ -0,0 +1,168 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class SP : UserControl
13
+    {
14
+        public SP()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+        public void addPozSP(JPK_VAT_v1.JPKSprzedazWiersz sp)
19
+        {
20
+            int index;
21
+            index = dataSP.Rows.Add();
22
+            dataSP.Rows[index].Cells[0].Value = sp.LpSprzedazy;
23
+            dataSP.Rows[index].Cells[1].Value = sp.DataSprzedazy;
24
+            dataSP.Rows[index].Cells[2].Value = sp.DataWystawienia;
25
+            dataSP.Rows[index].Cells[3].Value = sp.DowodSprzedazy;
26
+            dataSP.Rows[index].Cells[4].Value = sp.NazwaKontrahenta;
27
+            dataSP.Rows[index].Cells[5].Value = sp.AdresKontrahenta;
28
+            dataSP.Rows[index].Cells[6].Value = sp.K_10;
29
+            dataSP.Rows[index].Cells[7].Value = sp.K_11;
30
+            dataSP.Rows[index].Cells[8].Value = sp.K_12;
31
+            dataSP.Rows[index].Cells[9].Value = sp.K_13;
32
+            dataSP.Rows[index].Cells[10].Value = sp.K_14;
33
+            dataSP.Rows[index].Cells[11].Value = sp.K_15;
34
+            dataSP.Rows[index].Cells[12].Value = sp.K_16;
35
+            dataSP.Rows[index].Cells[13].Value = sp.K_17;
36
+            dataSP.Rows[index].Cells[14].Value = sp.K_18;
37
+            dataSP.Rows[index].Cells[15].Value = sp.K_19;
38
+            dataSP.Rows[index].Cells[16].Value = sp.K_20;
39
+            dataSP.Rows[index].Cells[17].Value = sp.K_21;
40
+            dataSP.Rows[index].Cells[18].Value = sp.K_22;
41
+            dataSP.Rows[index].Cells[19].Value = sp.K_23;
42
+            dataSP.Rows[index].Cells[20].Value = sp.K_24;
43
+            dataSP.Rows[index].Cells[21].Value = sp.K_25;
44
+            dataSP.Rows[index].Cells[22].Value = sp.K_26;
45
+            dataSP.Rows[index].Cells[23].Value = sp.K_27;
46
+            dataSP.Rows[index].Cells[24].Value = sp.K_28;
47
+            dataSP.Rows[index].Cells[25].Value = sp.K_29;
48
+            dataSP.Rows[index].Cells[26].Value = sp.K_30;
49
+            dataSP.Rows[index].Cells[27].Value = sp.K_31;
50
+            dataSP.Rows[index].Cells[28].Value = sp.K_32;
51
+            dataSP.Rows[index].Cells[29].Value = sp.K_33;
52
+            dataSP.Rows[index].Cells[30].Value = sp.K_34;
53
+            dataSP.Rows[index].Cells[31].Value = sp.K_35;
54
+            dataSP.Rows[index].Cells[32].Value = sp.K_36;
55
+            dataSP.Rows[index].Cells[33].Value = sp.K_37;
56
+        //    dataSP.Rows[index].Cells[34].Value = sp.K_38;
57
+        }
58
+        public void clearSP()
59
+        {
60
+            dataSP.Rows.Clear();
61
+        }
62
+        public void SP_init_tab()
63
+        {
64
+            DataGridViewColumn column = new DataGridViewTextBoxColumn();
65
+            column.HeaderText = "LpSprzedazy";
66
+            this.dataSP.Columns.Add(column);
67
+            column = new DataGridViewTextBoxColumn();
68
+            column.HeaderText = "DataSP";
69
+            this.dataSP.Columns.Add(column);
70
+            column = new DataGridViewTextBoxColumn();
71
+            column.HeaderText = "DataWs";
72
+            this.dataSP.Columns.Add(column);
73
+            column = new DataGridViewTextBoxColumn();
74
+            column.HeaderText = "NrDok";
75
+            this.dataSP.Columns.Add(column);
76
+            column = new DataGridViewTextBoxColumn();
77
+            column.HeaderText = "Nabywca";
78
+            this.dataSP.Columns.Add(column);
79
+            column = new DataGridViewTextBoxColumn();
80
+            column.HeaderText = "AdresNabywcy";
81
+            this.dataSP.Columns.Add(column);
82
+            column = new DataGridViewTextBoxColumn();
83
+            column.HeaderText = "NettoKrajZW";
84
+            this.dataSP.Columns.Add(column);
85
+            column = new DataGridViewTextBoxColumn();
86
+            column.HeaderText = "NettoZagraZW";
87
+            this.dataSP.Columns.Add(column);
88
+            column = new DataGridViewTextBoxColumn();
89
+            column.HeaderText = "NettoUsł.Art100us1p4";
90
+            this.dataSP.Columns.Add(column);
91
+            column = new DataGridViewTextBoxColumn();
92
+            column.HeaderText = "NettoKraj0";
93
+            this.dataSP.Columns.Add(column);
94
+            column = new DataGridViewTextBoxColumn();
95
+            column.HeaderText = "NettoArt129";
96
+            this.dataSP.Columns.Add(column);
97
+            column = new DataGridViewTextBoxColumn();
98
+            column.HeaderText = "NettoKraj5";
99
+            this.dataSP.Columns.Add(column);
100
+            column = new DataGridViewTextBoxColumn();
101
+            column.HeaderText = "PodatekKraj5";
102
+            this.dataSP.Columns.Add(column);
103
+            column = new DataGridViewTextBoxColumn();
104
+            column.HeaderText = "NettoKraj7/8";
105
+            this.dataSP.Columns.Add(column);
106
+            column = new DataGridViewTextBoxColumn();
107
+            column.HeaderText = "PodatekKraj7/8";
108
+            this.dataSP.Columns.Add(column);
109
+            column = new DataGridViewTextBoxColumn();
110
+            column.HeaderText = "NettoKraj22/23";
111
+            this.dataSP.Columns.Add(column);
112
+            column = new DataGridViewTextBoxColumn();
113
+            column.HeaderText = "PodatekKraj22/23";
114
+            this.dataSP.Columns.Add(column);
115
+            column = new DataGridViewTextBoxColumn();
116
+            column.HeaderText = "NettoWewWspDos";
117
+            this.dataSP.Columns.Add(column);
118
+            column = new DataGridViewTextBoxColumn();
119
+            column.HeaderText = "NettoEksportTowaru";
120
+            this.dataSP.Columns.Add(column);
121
+            column = new DataGridViewTextBoxColumn();
122
+            column.HeaderText = "NettoWewWspNaby";
123
+            this.dataSP.Columns.Add(column);
124
+            column = new DataGridViewTextBoxColumn();
125
+            column.HeaderText = "PodatekWewWspNaby";
126
+            this.dataSP.Columns.Add(column);
127
+            column = new DataGridViewTextBoxColumn();
128
+            column.HeaderText = "NettoImportTowaruArt33a";
129
+            this.dataSP.Columns.Add(column);
130
+            column = new DataGridViewTextBoxColumn();
131
+            column.HeaderText = "PodatekImportTowaruArt33a";
132
+            this.dataSP.Columns.Add(column);
133
+            column = new DataGridViewTextBoxColumn();
134
+            column.HeaderText = "NettoImportUsługWyłArt28b";
135
+            this.dataSP.Columns.Add(column);
136
+            column = new DataGridViewTextBoxColumn();
137
+            column.HeaderText = "PodatekImportUsługWyłArt28b";
138
+            this.dataSP.Columns.Add(column);
139
+            column = new DataGridViewTextBoxColumn();
140
+            column.HeaderText = "NettoImportUsługArt28b";
141
+            this.dataSP.Columns.Add(column);
142
+            column = new DataGridViewTextBoxColumn();
143
+            column.HeaderText = "PodatekImportUsługArt28b";
144
+            this.dataSP.Columns.Add(column);
145
+            column = new DataGridViewTextBoxColumn();
146
+            column.HeaderText = "NettoDostawaTowaruDos";
147
+            this.dataSP.Columns.Add(column);
148
+            column = new DataGridViewTextBoxColumn();
149
+            column.HeaderText = "NettoDostawaTowaruOdb";
150
+            this.dataSP.Columns.Add(column);
151
+            column = new DataGridViewTextBoxColumn();
152
+            column.HeaderText = "PodatekDostawaTowaruDos";
153
+            this.dataSP.Columns.Add(column);
154
+            column = new DataGridViewTextBoxColumn();
155
+            column.HeaderText = "PodatekDostawaTowaruOdb";
156
+            this.dataSP.Columns.Add(column);
157
+            column = new DataGridViewTextBoxColumn();
158
+            column.HeaderText = "PodatekArt14u5";
159
+            this.dataSP.Columns.Add(column);
160
+            column = new DataGridViewTextBoxColumn();
161
+            column.HeaderText = "PodatekArt111u6";
162
+            this.dataSP.Columns.Add(column);
163
+            column = new DataGridViewTextBoxColumn();
164
+            column.HeaderText = "PodatekNależnyPoz24";
165
+            this.dataSP.Columns.Add(column);
166
+        }
167
+    }
168
+}

+ 120
- 0
JPK_v1/SP.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 59
- 0
JPK_v1/SP_CTRL.Designer.cs Просмотреть файл

@@ -0,0 +1,59 @@
1
+namespace JPK_v1
2
+{
3
+    partial class SP_CTRL
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.SPCtrl = new System.Windows.Forms.DataGridView();
32
+            ((System.ComponentModel.ISupportInitialize)(this.SPCtrl)).BeginInit();
33
+            this.SuspendLayout();
34
+            // 
35
+            // SPCtrl
36
+            // 
37
+            this.SPCtrl.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
38
+            this.SPCtrl.Location = new System.Drawing.Point(0, 0);
39
+            this.SPCtrl.Name = "SPCtrl";
40
+            this.SPCtrl.Size = new System.Drawing.Size(426, 314);
41
+            this.SPCtrl.TabIndex = 0;
42
+            // 
43
+            // SP_CTRL
44
+            // 
45
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
46
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
47
+            this.Controls.Add(this.SPCtrl);
48
+            this.Name = "SP_CTRL";
49
+            this.Size = new System.Drawing.Size(1018, 320);
50
+            ((System.ComponentModel.ISupportInitialize)(this.SPCtrl)).EndInit();
51
+            this.ResumeLayout(false);
52
+
53
+        }
54
+
55
+        #endregion
56
+
57
+        private System.Windows.Forms.DataGridView SPCtrl;
58
+    }
59
+}

+ 42
- 0
JPK_v1/SP_CTRL.cs Просмотреть файл

@@ -0,0 +1,42 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+using JPK_v1.Core;
10
+
11
+namespace JPK_v1
12
+{
13
+    public partial class SP_CTRL : UserControl
14
+    {
15
+        public SP_CTRL()
16
+        {
17
+            InitializeComponent();
18
+        }
19
+        public void SpCtrlAdd(SpCtrl spCtr)
20
+        {
21
+            int index;
22
+            index = SPCtrl.Rows.Add();
23
+            SPCtrl.Rows[index].Cells[0].Value = spCtr.Typ;
24
+            SPCtrl.Rows[index].Cells[1].Value = spCtr.Ile;
25
+            SPCtrl.Rows[index].Cells[2].Value = spCtr.Kwota ;
26
+
27
+        }
28
+
29
+        public void SP_init_tab()
30
+        {
31
+            DataGridViewColumn column = new DataGridViewTextBoxColumn();
32
+            column.HeaderText = "Typ podatku";
33
+            this.SPCtrl.Columns.Add(column);
34
+            column = new DataGridViewTextBoxColumn();
35
+            column.HeaderText = "LiczbaWierszySPrzedaży";
36
+            this.SPCtrl.Columns.Add(column);
37
+            column = new DataGridViewTextBoxColumn();
38
+            column.HeaderText = "PodatekNależny";
39
+            this.SPCtrl.Columns.Add(column);
40
+        }
41
+    }
42
+}

+ 120
- 0
JPK_v1/SP_CTRL.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 7225
- 0
JPK_v1/Schemat_JPK_FA(1)_v1-0.designer.cs
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 605
- 0
JPK_v1/Schemat_JPK_FA(1)_v1-0.xsd Просмотреть файл

@@ -0,0 +1,605 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:etd="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/" xmlns:kck="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" xmlns:tns="http://jpk.mf.gov.pl/wzor/2016/03/09/03095/" targetNamespace="http://jpk.mf.gov.pl/wzor/2016/03/09/03095/" elementFormDefault="qualified" attributeFormDefault="unqualified" xml:lang="pl">
3
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/StrukturyDanych_v4-0E.xsd"/>
4
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/KodyCechKrajow_v3-0E.xsd"/>
5
+	<xsd:simpleType name="TKodFormularza">
6
+		<xsd:annotation>
7
+			<xsd:documentation>Symbol wzoru formularza</xsd:documentation>
8
+		</xsd:annotation>
9
+		<xsd:restriction base="xsd:string">
10
+			<xsd:enumeration value="JPK_FA"/>
11
+		</xsd:restriction>
12
+	</xsd:simpleType>
13
+	<xsd:simpleType name="TCelZlozenia">
14
+		<xsd:annotation>
15
+			<xsd:documentation>Określenie celu złożenia JPK</xsd:documentation>
16
+		</xsd:annotation>
17
+		<xsd:restriction base="xsd:byte">
18
+			<xsd:enumeration value="1">
19
+				<xsd:annotation>
20
+					<xsd:documentation>złożenie JPK po raz pierwszy</xsd:documentation>
21
+				</xsd:annotation>
22
+			</xsd:enumeration>
23
+		</xsd:restriction>
24
+	</xsd:simpleType>
25
+	<xsd:complexType name="TNaglowek">
26
+		<xsd:annotation>
27
+			<xsd:documentation>Nagłówek JPK_FA</xsd:documentation>
28
+		</xsd:annotation>
29
+		<xsd:sequence>
30
+			<xsd:element name="KodFormularza">
31
+				<xsd:complexType>
32
+					<xsd:simpleContent>
33
+						<xsd:extension base="tns:TKodFormularza">
34
+							<xsd:attribute name="kodSystemowy" type="xsd:string" use="required" fixed="JPK_FA (1)"/>
35
+							<xsd:attribute name="wersjaSchemy" type="xsd:string" use="required" fixed="1-0"/>
36
+						</xsd:extension>
37
+					</xsd:simpleContent>
38
+				</xsd:complexType>
39
+			</xsd:element>
40
+			<xsd:element name="WariantFormularza">
41
+				<xsd:simpleType>
42
+					<xsd:restriction base="xsd:byte">
43
+						<xsd:enumeration value="1"/>
44
+					</xsd:restriction>
45
+				</xsd:simpleType>
46
+			</xsd:element>
47
+			<xsd:element name="CelZlozenia" type="tns:TCelZlozenia"/>
48
+			<xsd:element name="DataWytworzeniaJPK" type="etd:TDataCzas">
49
+				<xsd:annotation>
50
+					<xsd:documentation>Data i czas wytworzenia JPK_FA</xsd:documentation>
51
+				</xsd:annotation>
52
+			</xsd:element>
53
+			<xsd:element name="DataOd" type="etd:TData">
54
+				<xsd:annotation>
55
+					<xsd:documentation>Data początkowa okresu, którego dotyczy JPK_FA</xsd:documentation>
56
+				</xsd:annotation>
57
+			</xsd:element>
58
+			<xsd:element name="DataDo" type="etd:TData">
59
+				<xsd:annotation>
60
+					<xsd:documentation>Data końcowa okresu, którego dotyczy JPK_FA</xsd:documentation>
61
+				</xsd:annotation>
62
+			</xsd:element>
63
+			<xsd:element name="DomyslnyKodWaluty" type="kck:currCode_Type">
64
+				<xsd:annotation>
65
+					<xsd:documentation>Trzyliterowy kod lokalnej waluty (ISO-4217), domyślny dla wytworzonego JPK_FA</xsd:documentation>
66
+				</xsd:annotation>
67
+			</xsd:element>
68
+			<xsd:element name="KodUrzedu" type="etd:TKodUS"/>
69
+		</xsd:sequence>
70
+	</xsd:complexType>
71
+	<xsd:simpleType name="TKwotowy">
72
+		<xsd:annotation>
73
+			<xsd:documentation>Wartość numeryczna 18 znaków max, w tym 2 znaki po przecinku</xsd:documentation>
74
+		</xsd:annotation>
75
+		<xsd:restriction base="xsd:decimal">
76
+			<xsd:totalDigits value="18"/>
77
+			<xsd:fractionDigits value="2"/>
78
+		</xsd:restriction>
79
+	</xsd:simpleType>
80
+	<xsd:simpleType name="TNaturalnyJPK">
81
+		<xsd:annotation>
82
+			<xsd:documentation>Liczby naturalne większe od zera</xsd:documentation>
83
+		</xsd:annotation>
84
+		<xsd:restriction base="etd:TNaturalny">
85
+			<xsd:minExclusive value="0"/>
86
+		</xsd:restriction>
87
+	</xsd:simpleType>
88
+	<xsd:simpleType name="TZnakowyJPK">
89
+		<xsd:annotation>
90
+			<xsd:documentation>Typ znakowy ograniczony do 256 znaków</xsd:documentation>
91
+		</xsd:annotation>
92
+		<xsd:restriction base="xsd:token">
93
+			<xsd:minLength value="1"/>
94
+			<xsd:maxLength value="256"/>
95
+		</xsd:restriction>
96
+	</xsd:simpleType>
97
+	<xsd:simpleType name="TIlosciJPK">
98
+		<xsd:annotation>
99
+			<xsd:documentation>Wykorzystywany do określenia ilości. Wartość numeryczna 22 znaki max, w tym 6 po przecinku.</xsd:documentation>
100
+		</xsd:annotation>
101
+		<xsd:restriction base="xsd:decimal">
102
+			<xsd:totalDigits value="22"/>
103
+			<xsd:fractionDigits value="6"/>
104
+		</xsd:restriction>
105
+	</xsd:simpleType>
106
+	<xsd:element name="JPK">
107
+		<xsd:annotation>
108
+			<xsd:documentation>Jednolity plik kontrolny dla faktur VAT</xsd:documentation>
109
+		</xsd:annotation>
110
+		<xsd:complexType>
111
+			<xsd:sequence>
112
+				<xsd:element name="Naglowek">
113
+					<xsd:annotation>
114
+						<xsd:documentation>Nagłówek JPK_FA</xsd:documentation>
115
+					</xsd:annotation>
116
+					<xsd:complexType>
117
+						<xsd:complexContent>
118
+							<xsd:extension base="tns:TNaglowek"/>
119
+						</xsd:complexContent>
120
+					</xsd:complexType>
121
+				</xsd:element>
122
+				<xsd:element name="Podmiot1">
123
+					<xsd:complexType>
124
+						<xsd:sequence>
125
+							<xsd:element name="IdentyfikatorPodmiotu" type="etd:TIdentyfikatorOsobyNiefizycznej">
126
+								<xsd:annotation>
127
+									<xsd:documentation>Dane identyfikujące podmiot</xsd:documentation>
128
+								</xsd:annotation>
129
+							</xsd:element>
130
+							<xsd:element name="AdresPodmiotu" type="etd:TAdresPolski">
131
+								<xsd:annotation>
132
+									<xsd:documentation>Adres podmiotu</xsd:documentation>
133
+								</xsd:annotation>
134
+							</xsd:element>
135
+						</xsd:sequence>
136
+					</xsd:complexType>
137
+				</xsd:element>
138
+				<xsd:element name="Faktura" maxOccurs="unbounded">
139
+					<xsd:annotation>
140
+						<xsd:documentation>Na podstawie art.106 a-q ustawy z 11 marca 2004 r. o podatku od towarów i usług /Dz.U. z 2011 r. Nr 177, poz. 1054, z późn. zm./</xsd:documentation>
141
+					</xsd:annotation>
142
+					<xsd:complexType>
143
+						<xsd:sequence>
144
+							<xsd:element name="P_1" type="etd:TData">
145
+								<xsd:annotation>
146
+									<xsd:documentation>Data wystawienia</xsd:documentation>
147
+								</xsd:annotation>
148
+							</xsd:element>
149
+							<xsd:element name="P_2A" type="tns:TZnakowyJPK">
150
+								<xsd:annotation>
151
+									<xsd:documentation>Kolejny numer faktury, nadany w ramach jednej lub więcej serii, który w sposób jednoznaczny indentyfikuje fakturę</xsd:documentation>
152
+								</xsd:annotation>
153
+							</xsd:element>
154
+							<xsd:element name="P_3A" type="tns:TZnakowyJPK" minOccurs="0">
155
+								<xsd:annotation>
156
+									<xsd:documentation>Imię i nazwisko lub nazwa nabywcy towarów lub usług. Pole opcjonalne dla przypadku określonego w art. 106e ust. 5 pkt 3 ustawy.</xsd:documentation>
157
+								</xsd:annotation>
158
+							</xsd:element>
159
+							<xsd:element name="P_3B" type="tns:TZnakowyJPK" minOccurs="0">
160
+								<xsd:annotation>
161
+									<xsd:documentation>Adres nabywcy. Pole opcjonalne dla przypadku określonego w art. 106e ust. 5 pkt 3 ustawy.</xsd:documentation>
162
+								</xsd:annotation>
163
+							</xsd:element>
164
+							<xsd:element name="P_3C" type="tns:TZnakowyJPK">
165
+								<xsd:annotation>
166
+									<xsd:documentation>Imię i nazwisko lub nazwa sprzedawcy towarów lub usług</xsd:documentation>
167
+								</xsd:annotation>
168
+							</xsd:element>
169
+							<xsd:element name="P_3D" type="tns:TZnakowyJPK">
170
+								<xsd:annotation>
171
+									<xsd:documentation>Adres sprzedawcy</xsd:documentation>
172
+								</xsd:annotation>
173
+							</xsd:element>
174
+							<xsd:element name="P_4A" type="kck:MSCountryCode_Type" minOccurs="0">
175
+								<xsd:annotation>
176
+									<xsd:documentation>Kod (prefiks) podatnika VAT UE dla przypadków określonych w art. 97 ust. 10 ustawy</xsd:documentation>
177
+								</xsd:annotation>
178
+							</xsd:element>
179
+							<xsd:element name="P_4B" type="etd:TNrNIP" minOccurs="0">
180
+								<xsd:annotation>
181
+									<xsd:documentation>Numer, za pomocą którego podatnik jest zidentyfikowany na potrzeby podatku, z zastrzeżeniem pkt 24 lit. a ustawy. Pole opcjonalne dla przypadku określonego w art. 106e ust. 4 pkt 2 ustawy.</xsd:documentation>
182
+								</xsd:annotation>
183
+							</xsd:element>
184
+							<xsd:element name="P_5A" type="kck:MSCountryCode_Type" minOccurs="0">
185
+								<xsd:annotation>
186
+									<xsd:documentation>Kod (prefiks) nabywcy - podatnika VAT UE dla przypadków określonych w art. 97 ust. 10 ustawy</xsd:documentation>
187
+								</xsd:annotation>
188
+							</xsd:element>
189
+							<xsd:element name="P_5B" type="etd:TNrNIP" minOccurs="0">
190
+								<xsd:annotation>
191
+									<xsd:documentation>Numer, za pomocą którego nabywca towarów lub usług jest identyfikowany dla podatku lub podatku od wartości dodanej, pod którym otrzymał on towary lub usługi, z zastrzeżeniem pkt 24 lit. b ustawy. Pole opcjonalne dla przypadku określonego w art. 106e ust. 5 pkt 2 ustawy.</xsd:documentation>
192
+								</xsd:annotation>
193
+							</xsd:element>
194
+							<xsd:element name="P_6" type="etd:TData" minOccurs="0">
195
+								<xsd:annotation>
196
+									<xsd:documentation>Data dokonania lub zakończenia dostawy towarów lub wykonania usługi lub data otrzymania zapłaty, o której mowa w art. 106b ust. 1 pkt 4, o ile taka data jest określona i różni się od daty wystawienia faktury</xsd:documentation>
197
+								</xsd:annotation>
198
+							</xsd:element>
199
+							<xsd:sequence minOccurs="0">
200
+								<xsd:annotation>
201
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"). Ponadto pola opcjonalne dla przypadków określnoych w art 106e ust 4 pkt 1 ustawy (gdy pole P_18 przyjmuje wartość "true"), a także art. 106e ust.4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
202
+								</xsd:annotation>
203
+								<xsd:element name="P_13_1" type="tns:TKwotowy">
204
+									<xsd:annotation>
205
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką podstawową - aktualnie 23% albo 22%.</xsd:documentation>
206
+									</xsd:annotation>
207
+								</xsd:element>
208
+								<xsd:element name="P_14_1" type="tns:TKwotowy">
209
+									<xsd:annotation>
210
+										<xsd:documentation>Kwota podatku od sumy wartości sprzedaży netto ze stawką podstawową - aktualnie 23% albo 22%.</xsd:documentation>
211
+									</xsd:annotation>
212
+								</xsd:element>
213
+							</xsd:sequence>
214
+							<xsd:sequence minOccurs="0">
215
+								<xsd:annotation>
216
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"). Ponadto pola opcjonalne dla przypadków określnoych w art 106e ust 4 pkt 1 ustawy (gdy pole P_18 przyjmuje wartość "true"), a także art. 106e ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
217
+								</xsd:annotation>
218
+								<xsd:element name="P_13_2" type="tns:TKwotowy">
219
+									<xsd:annotation>
220
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką obniżoną pierwszą - aktualnie 8 % albo 7%.</xsd:documentation>
221
+									</xsd:annotation>
222
+								</xsd:element>
223
+								<xsd:element name="P_14_2" type="tns:TKwotowy">
224
+									<xsd:annotation>
225
+										<xsd:documentation>Kwota podatku od sumy wartości sprzedaży netto ze stawką obniżoną - aktualnie 8% albo 7%.</xsd:documentation>
226
+									</xsd:annotation>
227
+								</xsd:element>
228
+							</xsd:sequence>
229
+							<xsd:sequence minOccurs="0">
230
+								<xsd:annotation>
231
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"). Ponadto pola opcjonalne dla przypadków określnoych w art. 106e ust 4 pkt 1 ustawy (gdy pole P_18 przyjmuje wartość "true"), a także art. 106e ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
232
+								</xsd:annotation>
233
+								<xsd:element name="P_13_3" type="tns:TKwotowy">
234
+									<xsd:annotation>
235
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką obniżoną drugą - aktualnie 5%.</xsd:documentation>
236
+									</xsd:annotation>
237
+								</xsd:element>
238
+								<xsd:element name="P_14_3" type="tns:TKwotowy">
239
+									<xsd:annotation>
240
+										<xsd:documentation>Kwota podatku od sumy wartości sprzedaży netto ze stawką obniżoną drugą - aktualnie 5%.</xsd:documentation>
241
+									</xsd:annotation>
242
+								</xsd:element>
243
+							</xsd:sequence>
244
+							<xsd:sequence minOccurs="0">
245
+								<xsd:annotation>
246
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"). Ponadto pola opcjonalne dla przypadków określnoych w art. 106e ust. 4 pkt 1 ustawy (gdy pole P_18 przyjmuje wartość "true"), a także art. 106e ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
247
+								</xsd:annotation>
248
+								<xsd:element name="P_13_4" type="tns:TKwotowy">
249
+									<xsd:annotation>
250
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką obniżoną trzecią - pole rezerwowe.</xsd:documentation>
251
+									</xsd:annotation>
252
+								</xsd:element>
253
+								<xsd:element name="P_14_4" type="tns:TKwotowy">
254
+									<xsd:annotation>
255
+										<xsd:documentation>Kwota podatku od sumy wartości sprzedaży netto ze stawką obniżoną trzecią - pole rezerwowe.</xsd:documentation>
256
+									</xsd:annotation>
257
+								</xsd:element>
258
+							</xsd:sequence>
259
+							<xsd:sequence minOccurs="0">
260
+								<xsd:annotation>
261
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"). Ponadto pola opcjonalne dla przypadków określnoych w art 106e ust 4 pkt 1 ustawy (gdy pole P_18 przyjmuje wartość "true"), a także art. 106e ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
262
+								</xsd:annotation>
263
+								<xsd:element name="P_13_5" type="tns:TKwotowy">
264
+									<xsd:annotation>
265
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką obniżoną czwartą - pole rezerwowe. </xsd:documentation>
266
+									</xsd:annotation>
267
+								</xsd:element>
268
+								<xsd:element name="P_14_5" type="tns:TKwotowy">
269
+									<xsd:annotation>
270
+										<xsd:documentation>Kwota podatku od sumy wartości sprzedaży netto ze stawką obniżoną czwartą - pole rezerwowe.</xsd:documentation>
271
+									</xsd:annotation>
272
+								</xsd:element>
273
+							</xsd:sequence>
274
+							<xsd:element name="P_13_6" type="tns:TKwotowy" minOccurs="0">
275
+								<xsd:annotation>
276
+									<xsd:documentation>Suma wartości sprzedaży netto ze stawką 0%. Pole opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"), a także art. 106e ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
277
+								</xsd:annotation>
278
+							</xsd:element>
279
+							<xsd:element name="P_13_7" type="tns:TKwotowy" minOccurs="0">
280
+								<xsd:annotation>
281
+									<xsd:documentation>Suma wartości sprzedaży zwolnionej. Pole opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"), a także art. 106e ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
282
+								</xsd:annotation>
283
+							</xsd:element>
284
+							<xsd:element name="P_15" type="tns:TKwotowy">
285
+								<xsd:annotation>
286
+									<xsd:documentation>Kwota należności ogółem</xsd:documentation>
287
+								</xsd:annotation>
288
+							</xsd:element>
289
+							<xsd:element name="P_16" type="xsd:boolean" default="false">
290
+								<xsd:annotation>
291
+									<xsd:documentation>W przypadku dostawy towarów lub świadczenia usług, w odniesieniu do których obowiązek podatkowy powstaje zgodnie z art. 19a ust. 5 pkt 1 lub art. 21 ust. 1 - wyrazy "metoda kasowa", należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
292
+								</xsd:annotation>
293
+							</xsd:element>
294
+							<xsd:element name="P_17" type="xsd:boolean" default="false">
295
+								<xsd:annotation>
296
+									<xsd:documentation>W przypadku faktur, o których mowa w art. 106d ust. 1 - wyraz "samofakturowanie", należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
297
+								</xsd:annotation>
298
+							</xsd:element>
299
+							<xsd:element name="P_18" type="xsd:boolean" default="false">
300
+								<xsd:annotation>
301
+									<xsd:documentation>W przypadku dostawy towarów lub wykonania usługi, dla których obowiązanym do rozliczenia podatku, podatku od wartości dodanej lub podatku o podobnym charakterze jest nabywca towaru lub usługi - wyrazy "odwrotne obciążenie", należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
302
+								</xsd:annotation>
303
+							</xsd:element>
304
+							<xsd:element name="P_19" type="xsd:boolean" default="false">
305
+								<xsd:annotation>
306
+									<xsd:documentation>W przypadku dostawy towarów lub świadczenia usług zwolnionych od podatku na podstawie art. 43 ust. 1, art. 113 ust. 1 i 9 albo przepisów wydanych na podstawie art. 82 ust. 3 należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
307
+								</xsd:annotation>
308
+							</xsd:element>
309
+							<xsd:sequence minOccurs="0">
310
+								<xsd:element name="P_19A" type="tns:TZnakowyJPK" default="false" minOccurs="0">
311
+									<xsd:annotation>
312
+										<xsd:documentation>Jeśli pole P_19 równa się "true" - należy wskazać przepis ustawy albo aktu wydanego na podstawie ustawy, na podstawie którego podatnik stosuje zwolnienie od podatku</xsd:documentation>
313
+									</xsd:annotation>
314
+								</xsd:element>
315
+								<xsd:element name="P_19B" type="tns:TZnakowyJPK" default="false" minOccurs="0">
316
+									<xsd:annotation>
317
+										<xsd:documentation>Jeśli pole P_19 równa się "true" - należy wskazać przepis dyrektywy 2006/112/WE, który zwalnia od podatku taką dostawę towarów lub takie świadczenie usług</xsd:documentation>
318
+									</xsd:annotation>
319
+								</xsd:element>
320
+								<xsd:element name="P_19C" type="tns:TZnakowyJPK" default="false" minOccurs="0">
321
+									<xsd:annotation>
322
+										<xsd:documentation>Jeśli pole P_19 równa się "true" - należy wskazać inną podstawę prawną wskazującą na to, że dostawa towarów lub świadczenie usług korzysta ze zwolnienia
323
+</xsd:documentation>
324
+									</xsd:annotation>
325
+								</xsd:element>
326
+							</xsd:sequence>
327
+							<xsd:element name="P_20" type="xsd:boolean" default="false">
328
+								<xsd:annotation>
329
+									<xsd:documentation>W przypadku, o którym mowa w art. 106c ustawy należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
330
+								</xsd:annotation>
331
+							</xsd:element>
332
+							<xsd:sequence minOccurs="0">
333
+								<xsd:element name="P_20A" type="tns:TZnakowyJPK">
334
+									<xsd:annotation>
335
+										<xsd:documentation>Jeśli pole P_20 równa się "true" - należy podać nazwę organu egzekucyjnego lub imię i nazwisko komornika sądowego</xsd:documentation>
336
+									</xsd:annotation>
337
+								</xsd:element>
338
+								<xsd:element name="P_20B" type="tns:TZnakowyJPK">
339
+									<xsd:annotation>
340
+										<xsd:documentation>Jeśli pole P_20 równa się "true" - należy podać adres organu egzekucyjnego lub komornika sądowego</xsd:documentation>
341
+									</xsd:annotation>
342
+								</xsd:element>
343
+							</xsd:sequence>
344
+							<xsd:element name="P_21" type="xsd:boolean" default="false">
345
+								<xsd:annotation>
346
+									<xsd:documentation>W przypadku faktur wystawianych w imieniu i na rzecz podatnika przez jego przedstawiciela podatkowego należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
347
+								</xsd:annotation>
348
+							</xsd:element>
349
+							<xsd:sequence minOccurs="0">
350
+								<xsd:element name="P_21A" type="tns:TZnakowyJPK" default="false">
351
+									<xsd:annotation>
352
+										<xsd:documentation>Jeśli pole P_21 równa się "true" - należy podać nazwę lub imię i nazwisko przedstawiciela podatkowego</xsd:documentation>
353
+									</xsd:annotation>
354
+								</xsd:element>
355
+								<xsd:element name="P_21B" type="tns:TZnakowyJPK" default="false">
356
+									<xsd:annotation>
357
+										<xsd:documentation>Jeśli pole P_21 równa się "true" - należy podać adres przedstawiciela podatkowego</xsd:documentation>
358
+									</xsd:annotation>
359
+								</xsd:element>
360
+								<xsd:element name="P_21C" type="tns:TZnakowyJPK" default="false">
361
+									<xsd:annotation>
362
+										<xsd:documentation>Jeśli pole P_21 równa się "true" - należy podać numer przedstawiciela podatkowego, za pomocą którego jest on zidentyfikowany na potrzeby podatku</xsd:documentation>
363
+									</xsd:annotation>
364
+								</xsd:element>
365
+							</xsd:sequence>
366
+							<xsd:sequence minOccurs="0">
367
+								<xsd:annotation>
368
+									<xsd:documentation>W przypadku gdy przedmiotem wewnątrzwspólnotowej dostawy są nowe środki transportu należy podać datę dopuszczenia nowego środka transportu do użytku oraz: 
369
+A) przebieg pojazdu - w przypadku pojazdów lądowych, o których mowa w art. 2 pkt 10 lit. a ustawy
370
+B) liczbę godzin roboczych używania nowego środka transportu - w przypadku jednostek pływających, o których mowa w art. 2 pkt 10 lit. b ustawy , oraz statków powietrznych, o których mowa w art. 2 pkt 10 lit. c ustawy</xsd:documentation>
371
+								</xsd:annotation>
372
+								<xsd:element name="P_22A" type="etd:TData">
373
+									<xsd:annotation>
374
+										<xsd:documentation>Data dopuszczenia nowego środka transportu do użytku</xsd:documentation>
375
+									</xsd:annotation>
376
+								</xsd:element>
377
+								<xsd:element name="P_22B" type="tns:TZnakowyJPK" minOccurs="0">
378
+									<xsd:annotation>
379
+										<xsd:documentation>Przebieg pojazdu - w przypadku pojazdów lądowych, o których mowa w art. 2 pkt 10 lit. a ustawy</xsd:documentation>
380
+									</xsd:annotation>
381
+								</xsd:element>
382
+								<xsd:element name="P_22C" type="tns:TZnakowyJPK" minOccurs="0">
383
+									<xsd:annotation>
384
+										<xsd:documentation>Liczba godzin roboczych używania nowego środka transportu - w przypadku jednostek pływających, o których mowa w art. 2 pkt 10 lit. b, oraz statków powietrznych, o których mowa w art. 2 pkt 10 lit. c ustawy</xsd:documentation>
385
+									</xsd:annotation>
386
+								</xsd:element>
387
+							</xsd:sequence>
388
+							<xsd:element name="P_23" type="xsd:boolean" default="false">
389
+								<xsd:annotation>
390
+									<xsd:documentation>W przypadku faktur wystawianych przez drugiego w kolejności podatnika, o którym mowa w art. 135 ust. 1 pkt 4 lit. b i c, w wewnątrzwspólnotowej transakcji trójstronnej (procedurze uproszczonej) - dane określone w art. 136, należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
391
+								</xsd:annotation>
392
+							</xsd:element>
393
+							<xsd:element name="P_106E_2" type="xsd:boolean" default="false">
394
+								<xsd:annotation>
395
+									<xsd:documentation>W przypadku świadczenia usług turystyki, dla których podstawę opodatkowania stanowi zgodnie z art. 119 ust. 1 kwota marży, faktura - w zakresie danych określonych w ust. 1 pkt 1-17 - powinna zawierać wyłącznie dane określone w ust. 1 pkt 1-8 i 15-17, a także wyrazy "procedura marży dla biur podróży", należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"
396
+</xsd:documentation>
397
+								</xsd:annotation>
398
+							</xsd:element>
399
+							<xsd:sequence minOccurs="0">
400
+								<xsd:element name="P_106E_3" type="xsd:boolean" default="false">
401
+									<xsd:annotation>
402
+										<xsd:documentation>W przypadku dostawy towarów używanych, dzieł sztuki, przedmiotów kolekcjonerskich i antyków, dla których podstawę opodatkowania stanowi zgodnie z art. 120 ust. 4 i 5 marża, należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
403
+									</xsd:annotation>
404
+								</xsd:element>
405
+								<xsd:element name="P_106E_3A" type="tns:TZnakowyJPK" default="false" minOccurs="0">
406
+									<xsd:annotation>
407
+										<xsd:documentation>Jeżeli pole P_106E_3 równa się wartości "true", należy podać wyrazy: "procedura marży - towary używane" lub "procedura marży - dzieła sztuki" lub "procedura marży - przedmioty kolekcjonerskie i antyki"</xsd:documentation>
408
+									</xsd:annotation>
409
+								</xsd:element>
410
+							</xsd:sequence>
411
+							<xsd:element name="RodzajFaktury">
412
+								<xsd:annotation>
413
+									<xsd:documentation>Rodzaj faktury: VAT - podstawowa; KOREKTA - korygująca; ZAL - faktura dokumentująca otrzymanie zapłaty lub jej części przed dokonaniem czynności (art.106b ust. 1 pkt 4 ustawy); POZ - pozostałe</xsd:documentation>
414
+								</xsd:annotation>
415
+								<xsd:simpleType>
416
+									<xsd:restriction base="tns:TZnakowyJPK">
417
+										<xsd:enumeration value="VAT"/>
418
+										<xsd:enumeration value="KOREKTA"/>
419
+										<xsd:enumeration value="ZAL"/>
420
+										<xsd:enumeration value="POZ"/>
421
+									</xsd:restriction>
422
+								</xsd:simpleType>
423
+							</xsd:element>
424
+							<xsd:sequence minOccurs="0">
425
+								<xsd:element name="PrzyczynaKorekty" type="tns:TZnakowyJPK">
426
+									<xsd:annotation>
427
+										<xsd:documentation>Przyczyna korekty dla faktur korygujących</xsd:documentation>
428
+									</xsd:annotation>
429
+								</xsd:element>
430
+								<xsd:element name="NrFaKorygowanej" type="tns:TZnakowyJPK">
431
+									<xsd:annotation>
432
+										<xsd:documentation>Numer faktury korygowanej</xsd:documentation>
433
+									</xsd:annotation>
434
+								</xsd:element>
435
+								<xsd:element name="OkresFaKorygowanej" type="tns:TZnakowyJPK">
436
+									<xsd:annotation>
437
+										<xsd:documentation>Dla faktury korygującej - okres, do którego odnosi się udzielany opust lub obniżka, w przypadku gdy podatnik udziela opustu lub obniżki ceny w odniesieniu do wszystkich dostaw towarów lub usług dokonanych lub świadczonych na rzecz jednego odbiorcy w danym okresie</xsd:documentation>
438
+									</xsd:annotation>
439
+								</xsd:element>
440
+							</xsd:sequence>
441
+							<xsd:sequence minOccurs="0">
442
+								<xsd:element name="ZALZaplata" type="tns:TKwotowy">
443
+									<xsd:annotation>
444
+										<xsd:documentation>Dla faktury zaliczkowej - otrzymana kwota zapłaty</xsd:documentation>
445
+									</xsd:annotation>
446
+								</xsd:element>
447
+								<xsd:element name="ZALPodatek" type="tns:TKwotowy">
448
+									<xsd:annotation>
449
+										<xsd:documentation>Dla faktury zaliczkowej - kwota podatku wyliczona według wzoru z art.106f ust. 1 pkt 3 ustawy</xsd:documentation>
450
+									</xsd:annotation>
451
+								</xsd:element>
452
+							</xsd:sequence>
453
+						</xsd:sequence>
454
+						<xsd:attribute name="typ" use="required" fixed="G"/>
455
+					</xsd:complexType>
456
+				</xsd:element>
457
+				<xsd:element name="FakturaCtrl">
458
+					<xsd:annotation>
459
+						<xsd:documentation>Sumy kontrolne dla faktur</xsd:documentation>
460
+					</xsd:annotation>
461
+					<xsd:complexType>
462
+						<xsd:sequence>
463
+							<xsd:element name="LiczbaFaktur" type="tns:TNaturalnyJPK">
464
+								<xsd:annotation>
465
+									<xsd:documentation>Liczba faktur, w okresie którego dotyczy JPK_FA</xsd:documentation>
466
+								</xsd:annotation>
467
+							</xsd:element>
468
+							<xsd:element name="WartoscFaktur" type="tns:TKwotowy">
469
+								<xsd:annotation>
470
+									<xsd:documentation>Łączna wartość kwot brutto faktur w okresie, którego dotyczy JPK_FA</xsd:documentation>
471
+								</xsd:annotation>
472
+							</xsd:element>
473
+						</xsd:sequence>
474
+					</xsd:complexType>
475
+				</xsd:element>
476
+				<xsd:element name="StawkiPodatku">
477
+					<xsd:annotation>
478
+						<xsd:documentation>Zestawienie stawek podatku, w okresie którego dotyczy JPK_FA</xsd:documentation>
479
+					</xsd:annotation>
480
+					<xsd:complexType>
481
+						<xsd:sequence>
482
+							<xsd:element name="Stawka1" type="etd:TProcentowy" default="0.23">
483
+								<xsd:annotation>
484
+									<xsd:documentation>Wartość stawki podstawowej</xsd:documentation>
485
+								</xsd:annotation>
486
+							</xsd:element>
487
+							<xsd:element name="Stawka2" type="etd:TProcentowy" default="0.08">
488
+								<xsd:annotation>
489
+									<xsd:documentation>Wartość stawki obniżonej pierwszej</xsd:documentation>
490
+								</xsd:annotation>
491
+							</xsd:element>
492
+							<xsd:element name="Stawka3" type="etd:TProcentowy" default="0.05">
493
+								<xsd:annotation>
494
+									<xsd:documentation>Wartość stawki obniżonej drugiej</xsd:documentation>
495
+								</xsd:annotation>
496
+							</xsd:element>
497
+							<xsd:element name="Stawka4" type="etd:TProcentowy" default="0.00">
498
+								<xsd:annotation>
499
+									<xsd:documentation>Wartość stawki obniżonej trzeciej - pole rezerwowe</xsd:documentation>
500
+								</xsd:annotation>
501
+							</xsd:element>
502
+							<xsd:element name="Stawka5" type="etd:TProcentowy" default="0.00">
503
+								<xsd:annotation>
504
+									<xsd:documentation>Wartość stawki obniżonej czwartej - pole rezerwowe</xsd:documentation>
505
+								</xsd:annotation>
506
+							</xsd:element>
507
+						</xsd:sequence>
508
+					</xsd:complexType>
509
+				</xsd:element>
510
+				<xsd:element name="FakturaWiersz" maxOccurs="unbounded">
511
+					<xsd:annotation>
512
+						<xsd:documentation>Szczegółowe pozycje faktur</xsd:documentation>
513
+					</xsd:annotation>
514
+					<xsd:complexType>
515
+						<xsd:sequence>
516
+							<xsd:element name="P_2B" type="tns:TZnakowyJPK">
517
+								<xsd:annotation>
518
+									<xsd:documentation>Kolejny numer faktury, nadany w ramach jednej lub więcej serii, który w sposób jednoznaczny indentyfikuje fakturę</xsd:documentation>
519
+								</xsd:annotation>
520
+							</xsd:element>
521
+							<xsd:element name="P_7" type="tns:TZnakowyJPK" minOccurs="0">
522
+								<xsd:annotation>
523
+									<xsd:documentation>Nazwa (rodzaj) towaru lub usługi. Pole opcjonalne wyłącznie dla przypadku określonego w art 106j ust.3 pkt 2 ustawy (faktura korekta)</xsd:documentation>
524
+								</xsd:annotation>
525
+							</xsd:element>
526
+							<xsd:element name="P_8A" type="tns:TZnakowyJPK" minOccurs="0">
527
+								<xsd:annotation>
528
+									<xsd:documentation>Miara dostarczonych towarów lub zakres wykonanych usług. Pole opcjonalne dla przypadku określonego w art 106e ust. 5 pkt 3 ustawy.</xsd:documentation>
529
+								</xsd:annotation>
530
+							</xsd:element>
531
+							<xsd:element name="P_8B" type="tns:TIlosciJPK" minOccurs="0">
532
+								<xsd:annotation>
533
+									<xsd:documentation>Ilość (liczba) dostarczonych towarów lub zakres wykonanych usług. Pole opcjonalne dla przypadku określonego w art 106e ust. 5 pkt 3 ustawy.</xsd:documentation>
534
+								</xsd:annotation>
535
+							</xsd:element>
536
+							<xsd:element name="P_9A" type="tns:TKwotowy" minOccurs="0">
537
+								<xsd:annotation>
538
+									<xsd:documentation>Cena jednostkowa towaru lub usługi bez kwoty podatku (cena jednostkowa netto). Pole opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true") oraz dla przypadku określonego w art 106e ust. 5 pkt 3 ustawy.</xsd:documentation>
539
+								</xsd:annotation>
540
+							</xsd:element>
541
+							<xsd:element name="P_9B" type="tns:TKwotowy" minOccurs="0">
542
+								<xsd:annotation>
543
+									<xsd:documentation>W przypadku zastosowania art.106e ustawy, cena wraz z kwotą podatku (cena jednostkowa brutto)</xsd:documentation>
544
+								</xsd:annotation>
545
+							</xsd:element>
546
+							<xsd:element name="P_10" type="tns:TKwotowy" minOccurs="0">
547
+								<xsd:annotation>
548
+									<xsd:documentation>Kwoty wszelkich opustów lub obniżek cen, w tym w formie rabatu z tytułu wcześniejszej zapłaty, o ile nie zostały one uwzględnione w cenie jednostkowej netto. Pole opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true") oraz dla przypadku określonego w art. 106e ust. 5 pkt 1 ustawy.</xsd:documentation>
549
+								</xsd:annotation>
550
+							</xsd:element>
551
+							<xsd:element name="P_11" type="tns:TKwotowy" minOccurs="0">
552
+								<xsd:annotation>
553
+									<xsd:documentation>Wartość dostarczonych towarów lub wykonanych usług, objętych transakcją, bez kwoty podatku (wartość sprzedaży netto). Pole opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true") oraz dla przypadku określonego w art. 106e ust. 5 pkt 3 ustawy.</xsd:documentation>
554
+								</xsd:annotation>
555
+							</xsd:element>
556
+							<xsd:element name="P_11A" type="tns:TKwotowy" minOccurs="0">
557
+								<xsd:annotation>
558
+									<xsd:documentation>W przypadku zastosowania art. 106e ust.7 i 8 ustawy, wartość sprzedaży brutto</xsd:documentation>
559
+								</xsd:annotation>
560
+							</xsd:element>
561
+							<xsd:element name="P_12" minOccurs="0">
562
+								<xsd:annotation>
563
+									<xsd:documentation>Stawka podatku. Pole opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"), a także art. 106e ust.4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
564
+								</xsd:annotation>
565
+								<xsd:simpleType>
566
+									<xsd:restriction base="tns:TZnakowyJPK">
567
+										<xsd:maxLength value="2"/>
568
+										<xsd:enumeration value="23"/>
569
+										<xsd:enumeration value="22"/>
570
+										<xsd:enumeration value="8"/>
571
+										<xsd:enumeration value="7"/>
572
+										<xsd:enumeration value="5"/>
573
+										<xsd:enumeration value="3"/>
574
+										<xsd:enumeration value="0"/>
575
+										<xsd:enumeration value="zw"/>
576
+									</xsd:restriction>
577
+								</xsd:simpleType>
578
+							</xsd:element>
579
+						</xsd:sequence>
580
+						<xsd:attribute name="typ" use="required" fixed="G"/>
581
+					</xsd:complexType>
582
+				</xsd:element>
583
+				<xsd:element name="FakturaWierszCtrl">
584
+					<xsd:annotation>
585
+						<xsd:documentation>Sumy kontrolne dla wierszy faktur</xsd:documentation>
586
+					</xsd:annotation>
587
+					<xsd:complexType>
588
+						<xsd:sequence>
589
+							<xsd:element name="LiczbaWierszyFaktur" type="tns:TNaturalnyJPK">
590
+								<xsd:annotation>
591
+									<xsd:documentation>Liczba wierszy faktur, w okresie którego dotyczy JPK_FA</xsd:documentation>
592
+								</xsd:annotation>
593
+							</xsd:element>
594
+							<xsd:element name="WartoscWierszyFaktur" type="tns:TKwotowy">
595
+								<xsd:annotation>
596
+									<xsd:documentation>Łączna wartość kolumny P_11 tabeli FakturaWiersz w okresie, którego dotyczy JPK_FA</xsd:documentation>
597
+								</xsd:annotation>
598
+							</xsd:element>
599
+						</xsd:sequence>
600
+					</xsd:complexType>
601
+				</xsd:element>
602
+			</xsd:sequence>
603
+		</xsd:complexType>
604
+	</xsd:element>
605
+</xsd:schema>

+ 7114
- 0
JPK_v1/Schemat_JPK_FA(2)_v1-0.Designer.cs
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 619
- 0
JPK_v1/Schemat_JPK_FA(2)_v1-0.xsd Просмотреть файл

@@ -0,0 +1,619 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:etd="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2018/08/24/eD/DefinicjeTypy/" xmlns:kck="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" xmlns:tns="http://jpk.mf.gov.pl/wzor/2019/03/21/03211/" targetNamespace="http://jpk.mf.gov.pl/wzor/2019/03/21/03211/" elementFormDefault="qualified" attributeFormDefault="unqualified" xml:lang="pl">
3
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2018/08/24/eD/DefinicjeTypy/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2018/08/24/eD/DefinicjeTypy/StrukturyDanych_v5-0E.xsd"/>
4
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/KodyCechKrajow_v3-0E.xsd"/>
5
+	<xsd:simpleType name="TKodFormularza">
6
+		<xsd:annotation>
7
+			<xsd:documentation>Symbol wzoru formularza</xsd:documentation>
8
+		</xsd:annotation>
9
+		<xsd:restriction base="xsd:string">
10
+			<xsd:enumeration value="JPK_FA"/>
11
+		</xsd:restriction>
12
+	</xsd:simpleType>
13
+	<xsd:simpleType name="TCelZlozenia">
14
+		<xsd:annotation>
15
+			<xsd:documentation>Określenie celu złożenia JPK</xsd:documentation>
16
+		</xsd:annotation>
17
+		<xsd:restriction base="xsd:byte">
18
+			<xsd:enumeration value="1">
19
+				<xsd:annotation>
20
+					<xsd:documentation>złożenie JPK po raz pierwszy</xsd:documentation>
21
+				</xsd:annotation>
22
+			</xsd:enumeration>
23
+		</xsd:restriction>
24
+	</xsd:simpleType>
25
+	<xsd:complexType name="TNaglowek">
26
+		<xsd:annotation>
27
+			<xsd:documentation>Nagłówek JPK_FA</xsd:documentation>
28
+		</xsd:annotation>
29
+		<xsd:sequence>
30
+			<xsd:element name="KodFormularza">
31
+				<xsd:complexType>
32
+					<xsd:simpleContent>
33
+						<xsd:extension base="tns:TKodFormularza">
34
+							<xsd:attribute name="kodSystemowy" type="xsd:string" use="required" fixed="JPK_FA (2)"/>
35
+							<xsd:attribute name="wersjaSchemy" type="xsd:string" use="required" fixed="1-0"/>
36
+						</xsd:extension>
37
+					</xsd:simpleContent>
38
+				</xsd:complexType>
39
+			</xsd:element>
40
+			<xsd:element name="WariantFormularza">
41
+				<xsd:simpleType>
42
+					<xsd:restriction base="xsd:byte">
43
+						<xsd:enumeration value="2"/>
44
+					</xsd:restriction>
45
+				</xsd:simpleType>
46
+			</xsd:element>
47
+			<xsd:element name="CelZlozenia" type="tns:TCelZlozenia"/>
48
+			<xsd:element name="DataWytworzeniaJPK" type="etd:TDataCzas">
49
+				<xsd:annotation>
50
+					<xsd:documentation>Data i czas wytworzenia JPK_FA</xsd:documentation>
51
+				</xsd:annotation>
52
+			</xsd:element>
53
+			<xsd:element name="DataOd" type="etd:TData">
54
+				<xsd:annotation>
55
+					<xsd:documentation>Data początkowa okresu, którego dotyczy JPK_FA</xsd:documentation>
56
+				</xsd:annotation>
57
+			</xsd:element>
58
+			<xsd:element name="DataDo" type="etd:TData">
59
+				<xsd:annotation>
60
+					<xsd:documentation>Data końcowa okresu, którego dotyczy JPK_FA</xsd:documentation>
61
+				</xsd:annotation>
62
+			</xsd:element>
63
+			<xsd:element name="DomyslnyKodWaluty" type="kck:currCode_Type">
64
+				<xsd:annotation>
65
+					<xsd:documentation>Trzyliterowy kod lokalnej waluty (ISO-4217), domyślny dla wytworzonego JPK_FA</xsd:documentation>
66
+				</xsd:annotation>
67
+			</xsd:element>
68
+			<xsd:element name="KodUrzedu" type="etd:TKodUS"/>
69
+		</xsd:sequence>
70
+	</xsd:complexType>
71
+	<xsd:simpleType name="TKwotowy">
72
+		<xsd:annotation>
73
+			<xsd:documentation>Wartość numeryczna 18 znaków max, w tym 2 znaki po przecinku</xsd:documentation>
74
+		</xsd:annotation>
75
+		<xsd:restriction base="xsd:decimal">
76
+			<xsd:totalDigits value="18"/>
77
+			<xsd:fractionDigits value="2"/>
78
+		</xsd:restriction>
79
+	</xsd:simpleType>
80
+	<xsd:simpleType name="TNaturalnyJPK">
81
+		<xsd:annotation>
82
+			<xsd:documentation>Liczby naturalne większe od zera</xsd:documentation>
83
+		</xsd:annotation>
84
+		<xsd:restriction base="etd:TNaturalny">
85
+			<xsd:minExclusive value="0"/>
86
+		</xsd:restriction>
87
+	</xsd:simpleType>
88
+	<xsd:simpleType name="TZnakowyJPK">
89
+		<xsd:annotation>
90
+			<xsd:documentation>Typ znakowy ograniczony do 256 znaków</xsd:documentation>
91
+		</xsd:annotation>
92
+		<xsd:restriction base="xsd:token">
93
+			<xsd:minLength value="1"/>
94
+			<xsd:maxLength value="256"/>
95
+		</xsd:restriction>
96
+	</xsd:simpleType>
97
+	<xsd:simpleType name="TIlosciJPK">
98
+		<xsd:annotation>
99
+			<xsd:documentation>Wykorzystywany do określenia ilości. Wartość numeryczna 22 znaki max, w tym 6 po przecinku.</xsd:documentation>
100
+		</xsd:annotation>
101
+		<xsd:restriction base="xsd:decimal">
102
+			<xsd:totalDigits value="22"/>
103
+			<xsd:fractionDigits value="6"/>
104
+		</xsd:restriction>
105
+	</xsd:simpleType>
106
+	<xsd:element name="JPK">
107
+		<xsd:annotation>
108
+			<xsd:documentation>Jednolity plik kontrolny dla faktur VAT</xsd:documentation>
109
+		</xsd:annotation>
110
+		<xsd:complexType>
111
+			<xsd:sequence>
112
+				<xsd:element name="Naglowek">
113
+					<xsd:annotation>
114
+						<xsd:documentation>Nagłówek JPK_FA</xsd:documentation>
115
+					</xsd:annotation>
116
+					<xsd:complexType>
117
+						<xsd:complexContent>
118
+							<xsd:extension base="tns:TNaglowek"/>
119
+						</xsd:complexContent>
120
+					</xsd:complexType>
121
+				</xsd:element>
122
+				<xsd:element name="Podmiot1">
123
+					<xsd:complexType>
124
+						<xsd:sequence>
125
+							<xsd:element name="IdentyfikatorPodmiotu" type="etd:TIdentyfikatorOsobyNiefizycznej">
126
+								<xsd:annotation>
127
+									<xsd:documentation>Dane identyfikujące podmiot</xsd:documentation>
128
+								</xsd:annotation>
129
+							</xsd:element>
130
+							<xsd:element name="AdresPodmiotu" type="etd:TAdresPolski">
131
+								<xsd:annotation>
132
+									<xsd:documentation>Adres podmiotu</xsd:documentation>
133
+								</xsd:annotation>
134
+							</xsd:element>
135
+						</xsd:sequence>
136
+					</xsd:complexType>
137
+				</xsd:element>
138
+				<xsd:element name="Faktura" maxOccurs="unbounded">
139
+					<xsd:annotation>
140
+						<xsd:documentation>Na podstawie art.106 a-q ustawy z 11 marca 2004 r. o podatku od towarów i usług /Dz.U. z 2018 r. poz. 2174 z późn. zm./</xsd:documentation>
141
+					</xsd:annotation>
142
+					<xsd:complexType>
143
+						<xsd:sequence>
144
+							<xsd:element name="P_1" type="etd:TData">
145
+								<xsd:annotation>
146
+									<xsd:documentation>Data wystawienia</xsd:documentation>
147
+								</xsd:annotation>
148
+							</xsd:element>
149
+							<xsd:element name="P_2A" type="tns:TZnakowyJPK">
150
+								<xsd:annotation>
151
+									<xsd:documentation>Kolejny numer faktury, nadany w ramach jednej lub więcej serii, który w sposób jednoznaczny indentyfikuje fakturę</xsd:documentation>
152
+								</xsd:annotation>
153
+							</xsd:element>
154
+							<xsd:element name="P_3A" type="tns:TZnakowyJPK" minOccurs="0">
155
+								<xsd:annotation>
156
+									<xsd:documentation>Imię i nazwisko lub nazwa nabywcy towarów lub usług. Pole opcjonalne dla przypadku określonego w art. 106e ust. 5 pkt 3 ustawy.</xsd:documentation>
157
+								</xsd:annotation>
158
+							</xsd:element>
159
+							<xsd:element name="P_3B" type="tns:TZnakowyJPK" minOccurs="0">
160
+								<xsd:annotation>
161
+									<xsd:documentation>Adres nabywcy. Pole opcjonalne dla przypadków określonych w art. 106e ust. 5 pkt 3 ustawy oraz w § 3 pkt 4 rozporządzenia Ministra Finansów z dnia 3 grudnia 2013 r. w sprawie wystawiania faktur (Dz. U. 2013 r.,  poz. 1485).</xsd:documentation>
162
+								</xsd:annotation>
163
+							</xsd:element>
164
+							<xsd:element name="P_3C" type="tns:TZnakowyJPK">
165
+								<xsd:annotation>
166
+									<xsd:documentation>Imię i nazwisko lub nazwa sprzedawcy towarów lub usług</xsd:documentation>
167
+								</xsd:annotation>
168
+							</xsd:element>
169
+							<xsd:element name="P_3D" type="tns:TZnakowyJPK">
170
+								<xsd:annotation>
171
+									<xsd:documentation>Adres sprzedawcy</xsd:documentation>
172
+								</xsd:annotation>
173
+							</xsd:element>
174
+							<xsd:element name="P_4A" type="kck:MSCountryCode_Type" minOccurs="0">
175
+								<xsd:annotation>
176
+									<xsd:documentation>Kod (prefiks) podatnika VAT UE dla przypadków określonych w art. 97 ust. 10 ustawy</xsd:documentation>
177
+								</xsd:annotation>
178
+							</xsd:element>
179
+							<xsd:element name="P_4B" type="etd:TNrIdentyfikacjiPodatkowej" minOccurs="0">
180
+								<xsd:annotation>
181
+									<xsd:documentation>Numer, za pomocą którego podatnik jest zidentyfikowany na potrzeby podatku, z zastrzeżeniem pkt 24 lit. a ustawy. Pole opcjonalne dla przypadku określonego w art. 106e ust. 4 pkt 2 ustawy.</xsd:documentation>
182
+								</xsd:annotation>
183
+							</xsd:element>
184
+							<xsd:element name="P_5A" type="kck:MSCountryCode_Type" minOccurs="0">
185
+								<xsd:annotation>
186
+									<xsd:documentation>Kod (prefiks) nabywcy - podatnika VAT UE dla przypadków określonych w art. 97 ust. 10 ustawy</xsd:documentation>
187
+								</xsd:annotation>
188
+							</xsd:element>
189
+							<xsd:element name="P_5B" type="etd:TNrIdentyfikacjiPodatkowej" minOccurs="0">
190
+								<xsd:annotation>
191
+									<xsd:documentation>Numer, za pomocą którego nabywca towarów lub usług jest identyfikowany dla podatku lub podatku od wartości dodanej, pod którym otrzymał on towary lub usługi, z zastrzeżeniem pkt 24 lit. b ustawy. Pole opcjonalne dla przypadku określonego w art. 106e ust. 5 pkt 2 ustawy.</xsd:documentation>
192
+								</xsd:annotation>
193
+							</xsd:element>
194
+							<xsd:element name="P_6" type="etd:TData" minOccurs="0">
195
+								<xsd:annotation>
196
+									<xsd:documentation>Data dokonania lub zakończenia dostawy towarów lub wykonania usługi lub data otrzymania zapłaty, o której mowa w art. 106b ust. 1 pkt 4, o ile taka data jest określona i różni się od daty wystawienia faktury</xsd:documentation>
197
+								</xsd:annotation>
198
+							</xsd:element>
199
+							<xsd:sequence minOccurs="0">
200
+								<xsd:annotation>
201
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"). Ponadto pola opcjonalne dla przypadków określonych w art 106e ust 4 pkt 1 ustawy (gdy pole P_18 przyjmuje wartość "true"), a także art. 106e ust.4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
202
+								</xsd:annotation>
203
+								<xsd:element name="P_13_1" type="tns:TKwotowy">
204
+									<xsd:annotation>
205
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką podstawową - aktualnie 23% albo 22%.</xsd:documentation>
206
+									</xsd:annotation>
207
+								</xsd:element>
208
+								<xsd:element name="P_14_1" type="tns:TKwotowy">
209
+									<xsd:annotation>
210
+										<xsd:documentation>Kwota podatku od sumy wartości sprzedaży netto ze stawką podstawową - aktualnie 23% albo 22%.</xsd:documentation>
211
+									</xsd:annotation>
212
+								</xsd:element>
213
+							</xsd:sequence>
214
+							<xsd:sequence minOccurs="0">
215
+								<xsd:annotation>
216
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"). Ponadto pola opcjonalne dla przypadków określonych w art 106e ust 4 pkt 1 ustawy (gdy pole P_18 przyjmuje wartość "true"), a także art. 106e ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
217
+								</xsd:annotation>
218
+								<xsd:element name="P_13_2" type="tns:TKwotowy">
219
+									<xsd:annotation>
220
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką obniżoną pierwszą - aktualnie 8 % albo 7%.</xsd:documentation>
221
+									</xsd:annotation>
222
+								</xsd:element>
223
+								<xsd:element name="P_14_2" type="tns:TKwotowy">
224
+									<xsd:annotation>
225
+										<xsd:documentation>Kwota podatku od sumy wartości sprzedaży netto ze stawką obniżoną - aktualnie 8% albo 7%.</xsd:documentation>
226
+									</xsd:annotation>
227
+								</xsd:element>
228
+							</xsd:sequence>
229
+							<xsd:sequence minOccurs="0">
230
+								<xsd:annotation>
231
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"). Ponadto pola opcjonalne dla przypadków określonych w art. 106e ust 4 pkt 1 ustawy (gdy pole P_18 przyjmuje wartość "true"), a także art. 106e ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
232
+								</xsd:annotation>
233
+								<xsd:element name="P_13_3" type="tns:TKwotowy">
234
+									<xsd:annotation>
235
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką obniżoną drugą - aktualnie 5%.</xsd:documentation>
236
+									</xsd:annotation>
237
+								</xsd:element>
238
+								<xsd:element name="P_14_3" type="tns:TKwotowy">
239
+									<xsd:annotation>
240
+										<xsd:documentation>Kwota podatku od sumy wartości sprzedaży netto ze stawką obniżoną drugą - aktualnie 5%.</xsd:documentation>
241
+									</xsd:annotation>
242
+								</xsd:element>
243
+							</xsd:sequence>
244
+							<xsd:sequence minOccurs="0">
245
+								<xsd:annotation>
246
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"). Ponadto pola opcjonalne dla przypadków określonych w art. 106e ust. 4 pkt 1 ustawy (gdy pole P_18 przyjmuje wartość "true"), a także art. 106e ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
247
+								</xsd:annotation>
248
+								<xsd:element name="P_13_4" type="tns:TKwotowy">
249
+									<xsd:annotation>
250
+										<xsd:documentation>Suma wartości sprzedaży netto ze stawką obniżoną trzecią  - procedura odwrotnego obciążenia, dla której podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 i 8 ustawy VAT oraz dla stawki 4% w przypadku ryczałtu dla taksówek osobowych.</xsd:documentation>
251
+									</xsd:annotation>
252
+								</xsd:element>
253
+								<xsd:element name="P_14_4" type="tns:TKwotowy">
254
+									<xsd:annotation>
255
+										<xsd:documentation>Kwota "0" dla procedury odwrotnego obciążenia, dla której podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 i 8 ustawy VAT oraz kwota podatku od sumy wartości sprzedaży netto dla stawki 4% w przypadku ryczałtu dla taksówek osobowych.</xsd:documentation>
256
+									</xsd:annotation>
257
+								</xsd:element>
258
+							</xsd:sequence>
259
+							<xsd:sequence minOccurs="0">
260
+								<xsd:annotation>
261
+									<xsd:documentation>Pola opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"). Ponadto pola opcjonalne dla przypadków określonych w art 106e ust 4 pkt 1 ustawy (gdy pole P_18 przyjmuje wartość "true"), a także art. 106e ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
262
+								</xsd:annotation>
263
+								<xsd:element name="P_13_5" type="tns:TKwotowy">
264
+									<xsd:annotation>
265
+										<xsd:documentation>Suma wartości sprzedaży netto dla transakcji dostawy towarów oraz świadczenia usług poza terytorium kraju.</xsd:documentation>
266
+									</xsd:annotation>
267
+								</xsd:element>
268
+								<xsd:element name="P_14_5" type="tns:TKwotowy">
269
+									<xsd:annotation>
270
+										<xsd:documentation>Kwota ”0” dla transakcji dostawy towarów oraz świadczenia usług poza terytorium kraju.</xsd:documentation>
271
+									</xsd:annotation>
272
+								</xsd:element>
273
+							</xsd:sequence>
274
+							<xsd:element name="P_13_6" type="tns:TKwotowy" minOccurs="0">
275
+								<xsd:annotation>
276
+									<xsd:documentation>Suma wartości sprzedaży netto ze stawką 0%. Pole opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"), a także art. 106e ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
277
+								</xsd:annotation>
278
+							</xsd:element>
279
+							<xsd:element name="P_13_7" type="tns:TKwotowy" minOccurs="0">
280
+								<xsd:annotation>
281
+									<xsd:documentation>Suma wartości sprzedaży zwolnionej. Pole opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"), a także art. 106e ust. 4 pkt 3 i ust. 5 pkt 1-3 ustawy.</xsd:documentation>
282
+								</xsd:annotation>
283
+							</xsd:element>
284
+							<xsd:element name="P_15" type="tns:TKwotowy">
285
+								<xsd:annotation>
286
+									<xsd:documentation>Kwota należności ogółem</xsd:documentation>
287
+								</xsd:annotation>
288
+							</xsd:element>
289
+							<xsd:element name="P_16" type="xsd:boolean" default="false">
290
+								<xsd:annotation>
291
+									<xsd:documentation>W przypadku dostawy towarów lub świadczenia usług, w odniesieniu do których obowiązek podatkowy powstaje zgodnie z art. 19a ust. 5 pkt 1 lub art. 21 ust. 1 - wyrazy "metoda kasowa", należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
292
+								</xsd:annotation>
293
+							</xsd:element>
294
+							<xsd:element name="P_17" type="xsd:boolean" default="false">
295
+								<xsd:annotation>
296
+									<xsd:documentation>W przypadku faktur, o których mowa w art. 106d ust. 1 - wyraz "samofakturowanie", należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
297
+								</xsd:annotation>
298
+							</xsd:element>
299
+							<xsd:element name="P_18" type="xsd:boolean" default="false">
300
+								<xsd:annotation>
301
+									<xsd:documentation>W przypadku dostawy towarów lub wykonania usługi, dla których obowiązanym do rozliczenia podatku, podatku od wartości dodanej lub podatku o podobnym charakterze jest nabywca towaru lub usługi - wyrazy "odwrotne obciążenie", należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
302
+								</xsd:annotation>
303
+							</xsd:element>
304
+							<xsd:element name="P_19" type="xsd:boolean" default="false">
305
+								<xsd:annotation>
306
+									<xsd:documentation>W przypadku dostawy towarów lub świadczenia usług zwolnionych od podatku na podstawie art. 43 ust. 1, art. 113 ust. 1 i 9 albo przepisów wydanych na podstawie art. 82 ust. 3 należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
307
+								</xsd:annotation>
308
+							</xsd:element>
309
+							<xsd:sequence minOccurs="0">
310
+								<xsd:element name="P_19A" type="tns:TZnakowyJPK" default="false" minOccurs="0">
311
+									<xsd:annotation>
312
+										<xsd:documentation>Jeśli pole P_19 równa się "true" - należy wskazać przepis ustawy albo aktu wydanego na podstawie ustawy, na podstawie którego podatnik stosuje zwolnienie od podatku</xsd:documentation>
313
+									</xsd:annotation>
314
+								</xsd:element>
315
+								<xsd:element name="P_19B" type="tns:TZnakowyJPK" default="false" minOccurs="0">
316
+									<xsd:annotation>
317
+										<xsd:documentation>Jeśli pole P_19 równa się "true" - należy wskazać przepis dyrektywy 2006/112/WE, który zwalnia od podatku taką dostawę towarów lub takie świadczenie usług</xsd:documentation>
318
+									</xsd:annotation>
319
+								</xsd:element>
320
+								<xsd:element name="P_19C" type="tns:TZnakowyJPK" default="false" minOccurs="0">
321
+									<xsd:annotation>
322
+										<xsd:documentation>Jeśli pole P_19 równa się "true" - należy wskazać inną podstawę prawną wskazującą na to, że dostawa towarów lub świadczenie usług korzysta ze zwolnienia
323
+</xsd:documentation>
324
+									</xsd:annotation>
325
+								</xsd:element>
326
+							</xsd:sequence>
327
+							<xsd:element name="P_20" type="xsd:boolean" default="false">
328
+								<xsd:annotation>
329
+									<xsd:documentation>W przypadku, o którym mowa w art. 106c ustawy należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
330
+								</xsd:annotation>
331
+							</xsd:element>
332
+							<xsd:sequence minOccurs="0">
333
+								<xsd:element name="P_20A" type="tns:TZnakowyJPK">
334
+									<xsd:annotation>
335
+										<xsd:documentation>Jeśli pole P_20 równa się "true" - należy podać nazwę organu egzekucyjnego lub imię i nazwisko komornika sądowego</xsd:documentation>
336
+									</xsd:annotation>
337
+								</xsd:element>
338
+								<xsd:element name="P_20B" type="tns:TZnakowyJPK">
339
+									<xsd:annotation>
340
+										<xsd:documentation>Jeśli pole P_20 równa się "true" - należy podać adres organu egzekucyjnego lub komornika sądowego</xsd:documentation>
341
+									</xsd:annotation>
342
+								</xsd:element>
343
+							</xsd:sequence>
344
+							<xsd:element name="P_21" type="xsd:boolean" default="false">
345
+								<xsd:annotation>
346
+									<xsd:documentation>W przypadku faktur wystawianych w imieniu i na rzecz podatnika przez jego przedstawiciela podatkowego należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
347
+								</xsd:annotation>
348
+							</xsd:element>
349
+							<xsd:sequence minOccurs="0">
350
+								<xsd:element name="P_21A" type="tns:TZnakowyJPK" default="false">
351
+									<xsd:annotation>
352
+										<xsd:documentation>Jeśli pole P_21 równa się "true" - należy podać nazwę lub imię i nazwisko przedstawiciela podatkowego</xsd:documentation>
353
+									</xsd:annotation>
354
+								</xsd:element>
355
+								<xsd:element name="P_21B" type="tns:TZnakowyJPK" default="false">
356
+									<xsd:annotation>
357
+										<xsd:documentation>Jeśli pole P_21 równa się "true" - należy podać adres przedstawiciela podatkowego</xsd:documentation>
358
+									</xsd:annotation>
359
+								</xsd:element>
360
+								<xsd:element name="P_21C" type="tns:TZnakowyJPK" default="false">
361
+									<xsd:annotation>
362
+										<xsd:documentation>Jeśli pole P_21 równa się "true" - należy podać numer przedstawiciela podatkowego, za pomocą którego jest on zidentyfikowany na potrzeby podatku</xsd:documentation>
363
+									</xsd:annotation>
364
+								</xsd:element>
365
+							</xsd:sequence>
366
+							<xsd:sequence minOccurs="0">
367
+								<xsd:annotation>
368
+									<xsd:documentation>W przypadku gdy przedmiotem wewnątrzwspólnotowej dostawy są nowe środki transportu należy podać datę dopuszczenia nowego środka transportu do użytku oraz: 
369
+A) przebieg pojazdu - w przypadku pojazdów lądowych, o których mowa w art. 2 pkt 10 lit. a ustawy
370
+B) liczbę godzin roboczych używania nowego środka transportu - w przypadku jednostek pływających, o których mowa w art. 2 pkt 10 lit. b ustawy , oraz statków powietrznych, o których mowa w art. 2 pkt 10 lit. c ustawy</xsd:documentation>
371
+								</xsd:annotation>
372
+								<xsd:element name="P_22A" type="etd:TData">
373
+									<xsd:annotation>
374
+										<xsd:documentation>Data dopuszczenia nowego środka transportu do użytku</xsd:documentation>
375
+									</xsd:annotation>
376
+								</xsd:element>
377
+								<xsd:element name="P_22B" type="tns:TZnakowyJPK" minOccurs="0">
378
+									<xsd:annotation>
379
+										<xsd:documentation>Przebieg pojazdu - w przypadku pojazdów lądowych, o których mowa w art. 2 pkt 10 lit. a ustawy</xsd:documentation>
380
+									</xsd:annotation>
381
+								</xsd:element>
382
+								<xsd:element name="P_22C" type="tns:TZnakowyJPK" minOccurs="0">
383
+									<xsd:annotation>
384
+										<xsd:documentation>Liczba godzin roboczych używania nowego środka transportu - w przypadku jednostek pływających, o których mowa w art. 2 pkt 10 lit. b, oraz statków powietrznych, o których mowa w art. 2 pkt 10 lit. c ustawy</xsd:documentation>
385
+									</xsd:annotation>
386
+								</xsd:element>
387
+							</xsd:sequence>
388
+							<xsd:element name="P_23" type="xsd:boolean" default="false">
389
+								<xsd:annotation>
390
+									<xsd:documentation>W przypadku faktur wystawianych przez drugiego w kolejności podatnika, o którym mowa w art. 135 ust. 1 pkt 4 lit. b i c, w wewnątrzwspólnotowej transakcji trójstronnej (procedurze uproszczonej) - dane określone w art. 136, należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
391
+								</xsd:annotation>
392
+							</xsd:element>
393
+							<xsd:element name="P_106E_2" type="xsd:boolean" default="false">
394
+								<xsd:annotation>
395
+									<xsd:documentation>W przypadku świadczenia usług turystyki, dla których podstawę opodatkowania stanowi zgodnie z art. 119 ust. 1 kwota marży, faktura - w zakresie danych określonych w ust. 1 pkt 1-17 - powinna zawierać wyłącznie dane określone w ust. 1 pkt 1-8 i 15-17, a także wyrazy "procedura marży dla biur podróży", należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"
396
+</xsd:documentation>
397
+								</xsd:annotation>
398
+							</xsd:element>
399
+							<xsd:sequence minOccurs="0">
400
+								<xsd:element name="P_106E_3" type="xsd:boolean" default="false">
401
+									<xsd:annotation>
402
+										<xsd:documentation>W przypadku dostawy towarów używanych, dzieł sztuki, przedmiotów kolekcjonerskich i antyków, dla których podstawę opodatkowania stanowi zgodnie z art. 120 ust. 4 i 5 marża, należy podać wartość "true"; w przeciwnym przypadku - wartość - "false"</xsd:documentation>
403
+									</xsd:annotation>
404
+								</xsd:element>
405
+								<xsd:element name="P_106E_3A" type="tns:TZnakowyJPK" default="false" minOccurs="0">
406
+									<xsd:annotation>
407
+										<xsd:documentation>Jeżeli pole P_106E_3 równa się wartości "true", należy podać wyrazy: "procedura marży - towary używane" lub "procedura marży - dzieła sztuki" lub "procedura marży - przedmioty kolekcjonerskie i antyki"</xsd:documentation>
408
+									</xsd:annotation>
409
+								</xsd:element>
410
+							</xsd:sequence>
411
+							<xsd:element name="RodzajFaktury">
412
+								<xsd:annotation>
413
+									<xsd:documentation>Rodzaj faktury: VAT - podstawowa; KOREKTA - korygująca; ZAL - faktura dokumentująca otrzymanie zapłaty lub jej części przed dokonaniem czynności oraz faktura końcowa (art.106b ust. 1 pkt 4 ustawy)</xsd:documentation>
414
+								</xsd:annotation>
415
+								<xsd:simpleType>
416
+									<xsd:restriction base="tns:TZnakowyJPK">
417
+										<xsd:enumeration value="VAT"/>
418
+										<xsd:enumeration value="KOREKTA"/>
419
+										<xsd:enumeration value="ZAL"/>
420
+									</xsd:restriction>
421
+								</xsd:simpleType>
422
+							</xsd:element>
423
+							<xsd:sequence minOccurs="0">
424
+								<xsd:element name="PrzyczynaKorekty" type="tns:TZnakowyJPK">
425
+									<xsd:annotation>
426
+										<xsd:documentation>Przyczyna korekty dla faktur korygujących</xsd:documentation>
427
+									</xsd:annotation>
428
+								</xsd:element>
429
+								<xsd:element name="NrFaKorygowanej" type="tns:TZnakowyJPK">
430
+									<xsd:annotation>
431
+										<xsd:documentation>Numer faktury korygowanej</xsd:documentation>
432
+									</xsd:annotation>
433
+								</xsd:element>
434
+								<xsd:element name="OkresFaKorygowanej" type="tns:TZnakowyJPK" minOccurs="0">
435
+									<xsd:annotation>
436
+										<xsd:documentation>Dla faktury korygującej - okres, do którego odnosi się udzielany opust lub obniżka, w przypadku gdy podatnik udziela opustu lub obniżki ceny w odniesieniu do wszystkich dostaw towarów lub usług dokonanych lub świadczonych na rzecz jednego odbiorcy w danym okresie</xsd:documentation>
437
+									</xsd:annotation>
438
+								</xsd:element>
439
+							</xsd:sequence>
440
+							<xsd:sequence minOccurs="0">
441
+								<xsd:element name="ZALZaplata" type="tns:TKwotowy">
442
+									<xsd:annotation>
443
+										<xsd:documentation>Dla faktury zaliczkowej - otrzymana kwota zapłaty</xsd:documentation>
444
+									</xsd:annotation>
445
+								</xsd:element>
446
+								<xsd:element name="ZALPodatek" type="tns:TKwotowy">
447
+									<xsd:annotation>
448
+										<xsd:documentation>Dla faktury zaliczkowej - kwota podatku wyliczona według wzoru z art.106f ust. 1 pkt 3 ustawy</xsd:documentation>
449
+									</xsd:annotation>
450
+								</xsd:element>
451
+							</xsd:sequence>
452
+						</xsd:sequence>
453
+						<xsd:attribute name="typ" use="required" fixed="G"/>
454
+					</xsd:complexType>
455
+				</xsd:element>
456
+				<xsd:element name="FakturaCtrl">
457
+					<xsd:annotation>
458
+						<xsd:documentation>Sumy kontrolne dla faktur</xsd:documentation>
459
+					</xsd:annotation>
460
+					<xsd:complexType>
461
+						<xsd:sequence>
462
+							<xsd:element name="LiczbaFaktur" type="tns:TNaturalnyJPK">
463
+								<xsd:annotation>
464
+									<xsd:documentation>Liczba faktur, w okresie którego dotyczy JPK_FA</xsd:documentation>
465
+								</xsd:annotation>
466
+							</xsd:element>
467
+							<xsd:element name="WartoscFaktur" type="tns:TKwotowy">
468
+								<xsd:annotation>
469
+									<xsd:documentation>Łączna wartość kwot brutto faktur w okresie, którego dotyczy JPK_FA</xsd:documentation>
470
+								</xsd:annotation>
471
+							</xsd:element>
472
+						</xsd:sequence>
473
+					</xsd:complexType>
474
+				</xsd:element>
475
+				<xsd:element name="StawkiPodatku">
476
+					<xsd:annotation>
477
+						<xsd:documentation>Zestawienie stawek podatku, w okresie którego dotyczy JPK_FA</xsd:documentation>
478
+					</xsd:annotation>
479
+					<xsd:complexType>
480
+						<xsd:sequence>
481
+							<xsd:element name="Stawka1" type="etd:TProcentowy" default="0.23">
482
+								<xsd:annotation>
483
+									<xsd:documentation>Wartość stawki podstawowej</xsd:documentation>
484
+								</xsd:annotation>
485
+							</xsd:element>
486
+							<xsd:element name="Stawka2" type="etd:TProcentowy" default="0.08">
487
+								<xsd:annotation>
488
+									<xsd:documentation>Wartość stawki obniżonej pierwszej</xsd:documentation>
489
+								</xsd:annotation>
490
+							</xsd:element>
491
+							<xsd:element name="Stawka3" type="etd:TProcentowy" default="0.05">
492
+								<xsd:annotation>
493
+									<xsd:documentation>Wartość stawki obniżonej drugiej</xsd:documentation>
494
+								</xsd:annotation>
495
+							</xsd:element>
496
+							<xsd:element name="Stawka4" type="etd:TProcentowy" default="0.00">
497
+								<xsd:annotation>
498
+									<xsd:documentation>Wartość stawki obniżonej trzeciej - pole rezerwowe</xsd:documentation>
499
+								</xsd:annotation>
500
+							</xsd:element>
501
+							<xsd:element name="Stawka5" type="etd:TProcentowy" default="0.00">
502
+								<xsd:annotation>
503
+									<xsd:documentation>Wartość stawki obniżonej czwartej - pole rezerwowe</xsd:documentation>
504
+								</xsd:annotation>
505
+							</xsd:element>
506
+						</xsd:sequence>
507
+					</xsd:complexType>
508
+				</xsd:element>
509
+				<xsd:element name="FakturaWiersz" maxOccurs="unbounded">
510
+					<xsd:annotation>
511
+						<xsd:documentation>Szczegółowe pozycje faktur</xsd:documentation>
512
+					</xsd:annotation>
513
+					<xsd:complexType>
514
+						<xsd:sequence>
515
+							<xsd:element name="P_2B" type="tns:TZnakowyJPK">
516
+								<xsd:annotation>
517
+									<xsd:documentation>Kolejny numer faktury, nadany w ramach jednej lub więcej serii, który w sposób jednoznaczny indentyfikuje fakturę</xsd:documentation>
518
+								</xsd:annotation>
519
+							</xsd:element>
520
+							<xsd:element name="P_7" type="tns:TZnakowyJPK" minOccurs="0">
521
+								<xsd:annotation>
522
+									<xsd:documentation>Nazwa (rodzaj) towaru lub usługi. Pole opcjonalne wyłącznie dla przypadku określonego w art 106j ust.3 pkt 2 ustawy (faktura korekta)</xsd:documentation>
523
+								</xsd:annotation>
524
+							</xsd:element>
525
+							<xsd:element name="P_8A" type="tns:TZnakowyJPK" minOccurs="0">
526
+								<xsd:annotation>
527
+									<xsd:documentation>Miara dostarczonych towarów lub zakres wykonanych usług. Pole opcjonalne dla przypadku określonego w art 106e ust. 5 pkt 3 ustawy.</xsd:documentation>
528
+								</xsd:annotation>
529
+							</xsd:element>
530
+							<xsd:element name="P_8B" type="tns:TIlosciJPK" minOccurs="0">
531
+								<xsd:annotation>
532
+									<xsd:documentation>Ilość (liczba) dostarczonych towarów lub zakres wykonanych usług. Pole opcjonalne dla przypadku określonego w art 106e ust. 5 pkt 3 ustawy.</xsd:documentation>
533
+								</xsd:annotation>
534
+							</xsd:element>
535
+							<xsd:element name="P_9A" type="tns:TKwotowy" minOccurs="0">
536
+								<xsd:annotation>
537
+									<xsd:documentation>Cena jednostkowa towaru lub usługi bez kwoty podatku (cena jednostkowa netto). Pole opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true") oraz dla przypadku określonego w art 106e ust. 5 pkt 3 ustawy.</xsd:documentation>
538
+								</xsd:annotation>
539
+							</xsd:element>
540
+							<xsd:element name="P_9B" type="tns:TKwotowy" minOccurs="0">
541
+								<xsd:annotation>
542
+									<xsd:documentation>W przypadku zastosowania art.106e ustawy, cena wraz z kwotą podatku (cena jednostkowa brutto)</xsd:documentation>
543
+								</xsd:annotation>
544
+							</xsd:element>
545
+							<xsd:element name="P_10" type="tns:TKwotowy" minOccurs="0">
546
+								<xsd:annotation>
547
+									<xsd:documentation>Kwoty wszelkich opustów lub obniżek cen, w tym w formie rabatu z tytułu wcześniejszej zapłaty, o ile nie zostały one uwzględnione w cenie jednostkowej netto. Pole opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true") oraz dla przypadku określonego w art. 106e ust. 5 pkt 1 ustawy.</xsd:documentation>
548
+								</xsd:annotation>
549
+							</xsd:element>
550
+							<xsd:element name="P_11" type="tns:TKwotowy" minOccurs="0">
551
+								<xsd:annotation>
552
+									<xsd:documentation>Wartość dostarczonych towarów lub wykonanych usług, objętych transakcją, bez kwoty podatku (wartość sprzedaży netto). Pole opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true") oraz dla przypadku określonego w art. 106e ust. 5 pkt 3 ustawy.</xsd:documentation>
553
+								</xsd:annotation>
554
+							</xsd:element>
555
+							<xsd:element name="P_11A" type="tns:TKwotowy" minOccurs="0">
556
+								<xsd:annotation>
557
+									<xsd:documentation>W przypadku zastosowania art. 106e ust.7 i 8 ustawy, wartość sprzedaży brutto</xsd:documentation>
558
+								</xsd:annotation>
559
+							</xsd:element>
560
+							<xsd:element name="P_12" minOccurs="0">
561
+								<xsd:annotation>
562
+									<xsd:documentation>Stawka podatku. Pole opcjonalne dla przypadków określonych w art. 106e ust.2 i 3 ustawy (gdy przynajmniej jedno z pól P_106E_2 i P_106E_3 przyjmuje wartość "true"), a także art. 106e ust.4 pkt 3 i ust. 5 pkt 3 ustawy.</xsd:documentation>
563
+								</xsd:annotation>
564
+								<xsd:simpleType>
565
+									<xsd:restriction base="tns:TZnakowyJPK">
566
+										<xsd:maxLength value="2"/>
567
+										<xsd:enumeration value="23"/>
568
+										<xsd:enumeration value="22"/>
569
+										<xsd:enumeration value="8"/>
570
+										<xsd:enumeration value="7"/>
571
+										<xsd:enumeration value="5"/>
572
+										<xsd:enumeration value="4"/>
573
+										<xsd:enumeration value="3"/>
574
+										<xsd:enumeration value="0"/>
575
+										<xsd:enumeration value="zw">
576
+											<xsd:annotation>
577
+												<xsd:documentation>zwolnione z opodatkowania</xsd:documentation>
578
+											</xsd:annotation>
579
+										</xsd:enumeration>
580
+										<xsd:enumeration value="oo">
581
+											<xsd:annotation>
582
+												<xsd:documentation>odwrotne obciążenie</xsd:documentation>
583
+											</xsd:annotation>
584
+										</xsd:enumeration>
585
+										<xsd:enumeration value="np">
586
+											<xsd:annotation>
587
+												<xsd:documentation>niepodlegające opodatkowaniu-transakcje dostawy towarów oraz świadczenia usług poza terytorium kraju</xsd:documentation>
588
+											</xsd:annotation>
589
+										</xsd:enumeration>
590
+									</xsd:restriction>
591
+								</xsd:simpleType>
592
+							</xsd:element>
593
+						</xsd:sequence>
594
+						<xsd:attribute name="typ" use="required" fixed="G"/>
595
+					</xsd:complexType>
596
+				</xsd:element>
597
+				<xsd:element name="FakturaWierszCtrl">
598
+					<xsd:annotation>
599
+						<xsd:documentation>Sumy kontrolne dla wierszy faktur</xsd:documentation>
600
+					</xsd:annotation>
601
+					<xsd:complexType>
602
+						<xsd:sequence>
603
+							<xsd:element name="LiczbaWierszyFaktur" type="tns:TNaturalnyJPK">
604
+								<xsd:annotation>
605
+									<xsd:documentation>Liczba wierszy faktur, w okresie którego dotyczy JPK_FA</xsd:documentation>
606
+								</xsd:annotation>
607
+							</xsd:element>
608
+							<xsd:element name="WartoscWierszyFaktur" type="tns:TKwotowy">
609
+								<xsd:annotation>
610
+									<xsd:documentation>Łączna wartość kolumny P_11 tabeli FakturaWiersz w okresie, którego dotyczy JPK_FA</xsd:documentation>
611
+								</xsd:annotation>
612
+							</xsd:element>
613
+						</xsd:sequence>
614
+					</xsd:complexType>
615
+				</xsd:element>
616
+			</xsd:sequence>
617
+		</xsd:complexType>
618
+	</xsd:element>
619
+</xsd:schema>

+ 6401
- 0
JPK_v1/Schemat_JPK_KR(1)_v1-0.Designer.cs
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 400
- 0
JPK_v1/Schemat_JPK_KR(1)_v1-0.xsd Просмотреть файл

@@ -0,0 +1,400 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:etd="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/" xmlns:kck="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" xmlns:tns="http://jpk.mf.gov.pl/wzor/2016/03/09/03091/" targetNamespace="http://jpk.mf.gov.pl/wzor/2016/03/09/03091/" elementFormDefault="qualified" attributeFormDefault="unqualified" xml:lang="pl">
3
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/StrukturyDanych_v4-0E.xsd"/>
4
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/KodyCechKrajow_v3-0E.xsd"/>
5
+	<xsd:simpleType name="TKodFormularza">
6
+		<xsd:annotation>
7
+			<xsd:documentation>Symbol wzoru formularza</xsd:documentation>
8
+		</xsd:annotation>
9
+		<xsd:restriction base="xsd:string">
10
+			<xsd:enumeration value="JPK_KR"/>
11
+		</xsd:restriction>
12
+	</xsd:simpleType>
13
+	<xsd:simpleType name="TCelZlozenia">
14
+		<xsd:annotation>
15
+			<xsd:documentation>Określenie celu złożenia JPK</xsd:documentation>
16
+		</xsd:annotation>
17
+		<xsd:restriction base="xsd:byte">
18
+			<xsd:enumeration value="1">
19
+				<xsd:annotation>
20
+					<xsd:documentation>złożenie JPK po raz pierwszy</xsd:documentation>
21
+				</xsd:annotation>
22
+			</xsd:enumeration>
23
+		</xsd:restriction>
24
+	</xsd:simpleType>
25
+	<xsd:complexType name="TNaglowek">
26
+		<xsd:annotation>
27
+			<xsd:documentation>Nagłówek JPK_KR</xsd:documentation>
28
+		</xsd:annotation>
29
+		<xsd:sequence>
30
+			<xsd:element name="KodFormularza">
31
+				<xsd:complexType>
32
+					<xsd:simpleContent>
33
+						<xsd:extension base="tns:TKodFormularza">
34
+							<xsd:attribute name="kodSystemowy" type="xsd:string" use="required" fixed="JPK_KR (1)"/>
35
+							<xsd:attribute name="wersjaSchemy" type="xsd:string" use="required" fixed="1-0"/>
36
+						</xsd:extension>
37
+					</xsd:simpleContent>
38
+				</xsd:complexType>
39
+			</xsd:element>
40
+			<xsd:element name="WariantFormularza">
41
+				<xsd:simpleType>
42
+					<xsd:restriction base="xsd:byte">
43
+						<xsd:enumeration value="1"/>
44
+					</xsd:restriction>
45
+				</xsd:simpleType>
46
+			</xsd:element>
47
+			<xsd:element name="CelZlozenia" type="tns:TCelZlozenia"/>
48
+			<xsd:element name="DataWytworzeniaJPK" type="etd:TDataCzas">
49
+				<xsd:annotation>
50
+					<xsd:documentation>Data i czas wytworzenia JPK_KR</xsd:documentation>
51
+				</xsd:annotation>
52
+			</xsd:element>
53
+			<xsd:element name="DataOd" type="etd:TData">
54
+				<xsd:annotation>
55
+					<xsd:documentation>Data początkowa okresu, którego dotyczy JPK_KR</xsd:documentation>
56
+				</xsd:annotation>
57
+			</xsd:element>
58
+			<xsd:element name="DataDo" type="etd:TData">
59
+				<xsd:annotation>
60
+					<xsd:documentation>Data końcowa okresu, którego dotyczy JPK_KR</xsd:documentation>
61
+				</xsd:annotation>
62
+			</xsd:element>
63
+			<xsd:element name="DomyslnyKodWaluty" type="kck:currCode_Type">
64
+				<xsd:annotation>
65
+					<xsd:documentation>Trzyliterowy kod lokalnej waluty (ISO-4217), domyślny dla wytworzonego JPK_KR</xsd:documentation>
66
+				</xsd:annotation>
67
+			</xsd:element>
68
+			<xsd:element name="KodUrzedu" type="etd:TKodUS"/>
69
+		</xsd:sequence>
70
+	</xsd:complexType>
71
+	<xsd:simpleType name="TKwotowy">
72
+		<xsd:annotation>
73
+			<xsd:documentation>Wartość numeryczna 18 znaków max, w tym 2 znaki po przecinku</xsd:documentation>
74
+		</xsd:annotation>
75
+		<xsd:restriction base="xsd:decimal">
76
+			<xsd:totalDigits value="18"/>
77
+			<xsd:fractionDigits value="2"/>
78
+		</xsd:restriction>
79
+	</xsd:simpleType>
80
+	<xsd:simpleType name="TNaturalnyJPK">
81
+		<xsd:annotation>
82
+			<xsd:documentation>Liczby naturalne większe od zera</xsd:documentation>
83
+		</xsd:annotation>
84
+		<xsd:restriction base="etd:TNaturalny">
85
+			<xsd:minExclusive value="0"/>
86
+		</xsd:restriction>
87
+	</xsd:simpleType>
88
+	<xsd:simpleType name="TZnakowyJPK">
89
+		<xsd:annotation>
90
+			<xsd:documentation>Typ znakowy ograniczony do 256 znaków</xsd:documentation>
91
+		</xsd:annotation>
92
+		<xsd:restriction base="xsd:token">
93
+			<xsd:minLength value="1"/>
94
+			<xsd:maxLength value="256"/>
95
+		</xsd:restriction>
96
+	</xsd:simpleType>
97
+	<xsd:element name="JPK">
98
+		<xsd:annotation>
99
+			<xsd:documentation>Jednolity plik kontrolny dla ksiąg rachunkowych</xsd:documentation>
100
+		</xsd:annotation>
101
+		<xsd:complexType>
102
+			<xsd:sequence>
103
+				<xsd:element name="Naglowek" type="tns:TNaglowek">
104
+					<xsd:annotation>
105
+						<xsd:documentation>Nagłówek JPK_KR</xsd:documentation>
106
+					</xsd:annotation>
107
+				</xsd:element>
108
+				<xsd:element name="Podmiot1">
109
+					<xsd:complexType>
110
+						<xsd:sequence>
111
+							<xsd:element name="IdentyfikatorPodmiotu" type="etd:TIdentyfikatorOsobyNiefizycznej">
112
+								<xsd:annotation>
113
+									<xsd:documentation>Dane identyfikujące podmiot</xsd:documentation>
114
+								</xsd:annotation>
115
+							</xsd:element>
116
+							<xsd:element name="AdresPodmiotu" type="etd:TAdresPolski">
117
+								<xsd:annotation>
118
+									<xsd:documentation>Adres podmiotu</xsd:documentation>
119
+								</xsd:annotation>
120
+							</xsd:element>
121
+						</xsd:sequence>
122
+					</xsd:complexType>
123
+				</xsd:element>
124
+				<xsd:element name="ZOiS" maxOccurs="unbounded">
125
+					<xsd:annotation>
126
+						<xsd:documentation>Zestawienie obrotów i sald</xsd:documentation>
127
+					</xsd:annotation>
128
+					<xsd:complexType>
129
+						<xsd:sequence>
130
+							<xsd:element name="KodKonta" type="tns:TZnakowyJPK">
131
+								<xsd:annotation>
132
+									<xsd:documentation>Identyfikator konta ostatecznego zapisu (konta pomocniczego lub konta księgi głównej, jeżeli nie jest wymagany zapis na kontach pomocniczych)</xsd:documentation>
133
+								</xsd:annotation>
134
+							</xsd:element>
135
+							<xsd:element name="OpisKonta" type="tns:TZnakowyJPK">
136
+								<xsd:annotation>
137
+									<xsd:documentation>Nazwa konta</xsd:documentation>
138
+								</xsd:annotation>
139
+							</xsd:element>
140
+							<xsd:element name="TypKonta" type="tns:TZnakowyJPK">
141
+								<xsd:annotation>
142
+									<xsd:documentation>Typ konta (bilansowe, pozabilansowe, rozliczeniowe lub wynikowe)</xsd:documentation>
143
+								</xsd:annotation>
144
+							</xsd:element>
145
+							<xsd:element name="KodZespolu" type="tns:TZnakowyJPK">
146
+								<xsd:annotation>
147
+									<xsd:documentation>Kod zespołu kont wg Wykazu Kont Syntetycznych (kont księgi głównej)</xsd:documentation>
148
+								</xsd:annotation>
149
+							</xsd:element>
150
+							<xsd:element name="OpisZespolu" type="tns:TZnakowyJPK">
151
+								<xsd:annotation>
152
+									<xsd:documentation>Opis zespołu kont</xsd:documentation>
153
+								</xsd:annotation>
154
+							</xsd:element>
155
+							<xsd:element name="KodKategorii" type="tns:TZnakowyJPK">
156
+								<xsd:annotation>
157
+									<xsd:documentation>Kod kategorii konta według Zespołu Kont Syntetycznych (kont księgi głównej)</xsd:documentation>
158
+								</xsd:annotation>
159
+							</xsd:element>
160
+							<xsd:element name="OpisKategorii" type="tns:TZnakowyJPK">
161
+								<xsd:annotation>
162
+									<xsd:documentation>Nazwa kategorii konta</xsd:documentation>
163
+								</xsd:annotation>
164
+							</xsd:element>
165
+							<xsd:element name="KodPodkategorii" type="tns:TZnakowyJPK" minOccurs="0">
166
+								<xsd:annotation>
167
+									<xsd:documentation>Kod podkategorii konta ksiąg pomocniczych w ramach poszczególnej kategorii Zespołu Kont Syntetycznych</xsd:documentation>
168
+								</xsd:annotation>
169
+							</xsd:element>
170
+							<xsd:element name="OpisPodkategorii" type="tns:TZnakowyJPK" minOccurs="0">
171
+								<xsd:annotation>
172
+									<xsd:documentation>Nazwa podkategorii konta</xsd:documentation>
173
+								</xsd:annotation>
174
+							</xsd:element>
175
+							<xsd:element name="BilansOtwarciaWinien" type="tns:TKwotowy">
176
+								<xsd:annotation>
177
+									<xsd:documentation>Bilans otwarcia po stronie Winien w walucie polskiej</xsd:documentation>
178
+								</xsd:annotation>
179
+							</xsd:element>
180
+							<xsd:element name="BilansOtwarciaMa" type="tns:TKwotowy">
181
+								<xsd:annotation>
182
+									<xsd:documentation>Bilans otwarcia po stronie Ma w walucie polskiej</xsd:documentation>
183
+								</xsd:annotation>
184
+							</xsd:element>
185
+							<xsd:element name="ObrotyWinien" type="tns:TKwotowy">
186
+								<xsd:annotation>
187
+									<xsd:documentation>Obroty konta po stronie Winien, w okresie którego dotyczy JPK</xsd:documentation>
188
+								</xsd:annotation>
189
+							</xsd:element>
190
+							<xsd:element name="ObrotyMa" type="tns:TKwotowy">
191
+								<xsd:annotation>
192
+									<xsd:documentation>Obroty konta po stronie Ma, w okresie którego dotyczy JPK</xsd:documentation>
193
+								</xsd:annotation>
194
+							</xsd:element>
195
+							<xsd:element name="ObrotyWinienNarast" type="tns:TKwotowy">
196
+								<xsd:annotation>
197
+									<xsd:documentation>Obroty konta po stronie Winien, w okresie od otwarcia ksiąg do daty końcowej okresu, którego dotyczy JPK</xsd:documentation>
198
+								</xsd:annotation>
199
+							</xsd:element>
200
+							<xsd:element name="ObrotyMaNarast" type="tns:TKwotowy">
201
+								<xsd:annotation>
202
+									<xsd:documentation>Obroty konta po stronie Ma, w okresie od otwarcia ksiąg do daty końcowej okresu, którego dotyczy JPK</xsd:documentation>
203
+								</xsd:annotation>
204
+							</xsd:element>
205
+							<xsd:element name="SaldoWinien" type="tns:TKwotowy">
206
+								<xsd:annotation>
207
+									<xsd:documentation>Saldo po stronie Winien w walucie polskiej na datę końcową okresu, którego dotyczy JPK z uwzględnieniem bilansu otwarcia</xsd:documentation>
208
+								</xsd:annotation>
209
+							</xsd:element>
210
+							<xsd:element name="SaldoMa" type="tns:TKwotowy">
211
+								<xsd:annotation>
212
+									<xsd:documentation>Saldo po stronie Ma w walucie polskiej na datę końcową okresu, którego dotyczy JPK z uwzlędnieniem bilansu otwarcia</xsd:documentation>
213
+								</xsd:annotation>
214
+							</xsd:element>
215
+						</xsd:sequence>
216
+						<xsd:attribute name="typ" use="required" fixed="G"/>
217
+					</xsd:complexType>
218
+				</xsd:element>
219
+				<xsd:element name="Dziennik" maxOccurs="unbounded">
220
+					<xsd:annotation>
221
+						<xsd:documentation>Dziennik</xsd:documentation>
222
+					</xsd:annotation>
223
+					<xsd:complexType>
224
+						<xsd:sequence>
225
+							<xsd:element name="LpZapisuDziennika" type="tns:TNaturalnyJPK">
226
+								<xsd:annotation>
227
+									<xsd:documentation>Numer kolejny zapisu dziennika</xsd:documentation>
228
+								</xsd:annotation>
229
+							</xsd:element>
230
+							<xsd:element name="NrZapisuDziennika" type="tns:TZnakowyJPK">
231
+								<xsd:annotation>
232
+									<xsd:documentation>Numer zapisu w dzienniku</xsd:documentation>
233
+								</xsd:annotation>
234
+							</xsd:element>
235
+							<xsd:element name="OpisDziennika" type="tns:TZnakowyJPK">
236
+								<xsd:annotation>
237
+									<xsd:documentation>Opis dziennika</xsd:documentation>
238
+								</xsd:annotation>
239
+							</xsd:element>
240
+							<xsd:element name="NrDowoduKsiegowego" type="tns:TZnakowyJPK">
241
+								<xsd:annotation>
242
+									<xsd:documentation>Numer dowodu księgowego (faktury, PK itp.)</xsd:documentation>
243
+								</xsd:annotation>
244
+							</xsd:element>
245
+							<xsd:element name="RodzajDowodu" type="tns:TZnakowyJPK">
246
+								<xsd:annotation>
247
+									<xsd:documentation>Rodzaj dowodu księgowego (np. faktura, PK, zestawienie, wyciąg bankowy, raport kasowy, raport okresowy z kasy fiskalnej, zamknięcia kont, przeksięgowania techniczne i inne)</xsd:documentation>
248
+								</xsd:annotation>
249
+							</xsd:element>
250
+							<xsd:element name="DataOperacji" type="etd:TData">
251
+								<xsd:annotation>
252
+									<xsd:documentation>Data dokonania operacji gospodarczej (np. data sprzedaży, zakupu)</xsd:documentation>
253
+								</xsd:annotation>
254
+							</xsd:element>
255
+							<xsd:element name="DataDowodu" type="etd:TData">
256
+								<xsd:annotation>
257
+									<xsd:documentation>Data sporządzenia dowodu księgowego</xsd:documentation>
258
+								</xsd:annotation>
259
+							</xsd:element>
260
+							<xsd:element name="DataKsiegowania" type="etd:TData">
261
+								<xsd:annotation>
262
+									<xsd:documentation>Data, pod którą ujęto dowód w księgach</xsd:documentation>
263
+								</xsd:annotation>
264
+							</xsd:element>
265
+							<xsd:element name="KodOperatora" type="tns:TZnakowyJPK">
266
+								<xsd:annotation>
267
+									<xsd:documentation>Dane pozwalające na ustalenie osoby odpowiedzialnej za treść zapisu</xsd:documentation>
268
+								</xsd:annotation>
269
+							</xsd:element>
270
+							<xsd:element name="OpisOperacji" type="tns:TZnakowyJPK">
271
+								<xsd:annotation>
272
+									<xsd:documentation>Opis operacji w dzienniku</xsd:documentation>
273
+								</xsd:annotation>
274
+							</xsd:element>
275
+							<xsd:element name="DziennikKwotaOperacji" type="tns:TKwotowy">
276
+								<xsd:annotation>
277
+									<xsd:documentation>Wartość operacji ujęta w Dzienniku</xsd:documentation>
278
+								</xsd:annotation>
279
+							</xsd:element>
280
+						</xsd:sequence>
281
+						<xsd:attribute name="typ" use="required" fixed="G"/>
282
+					</xsd:complexType>
283
+				</xsd:element>
284
+				<xsd:element name="DziennikCtrl">
285
+					<xsd:annotation>
286
+						<xsd:documentation>Sumy kontrolne dla tabeli Dziennik</xsd:documentation>
287
+					</xsd:annotation>
288
+					<xsd:complexType>
289
+						<xsd:sequence>
290
+							<xsd:element name="LiczbaWierszyDziennika" type="tns:TNaturalnyJPK">
291
+								<xsd:annotation>
292
+									<xsd:documentation>Liczba wierszy Dziennika</xsd:documentation>
293
+								</xsd:annotation>
294
+							</xsd:element>
295
+							<xsd:element name="SumaKwotOperacji" type="tns:TKwotowy">
296
+								<xsd:annotation>
297
+									<xsd:documentation>Suma wartości kwot operacji - (elementu KwotaOperacji)</xsd:documentation>
298
+								</xsd:annotation>
299
+							</xsd:element>
300
+						</xsd:sequence>
301
+					</xsd:complexType>
302
+				</xsd:element>
303
+				<xsd:element name="KontoZapis" maxOccurs="unbounded">
304
+					<xsd:annotation>
305
+						<xsd:documentation>Zapisy na kontach księgi głównej i ksiąg pomocniczych</xsd:documentation>
306
+					</xsd:annotation>
307
+					<xsd:complexType>
308
+						<xsd:sequence>
309
+							<xsd:element name="LpZapisu" type="tns:TNaturalnyJPK">
310
+								<xsd:annotation>
311
+									<xsd:documentation>Numer kolejny zapisu konta</xsd:documentation>
312
+								</xsd:annotation>
313
+							</xsd:element>
314
+							<xsd:element name="NrZapisu" type="tns:TZnakowyJPK">
315
+								<xsd:annotation>
316
+									<xsd:documentation>Numer (kod) zapisu na koncie pozwalający na jego powiązanie z zapisem w Dzienniku (identyczny z elementem NrZapisuDziennika)</xsd:documentation>
317
+								</xsd:annotation>
318
+							</xsd:element>
319
+							<xsd:element name="KodKontaWinien" type="tns:TZnakowyJPK" default="null">
320
+								<xsd:annotation>
321
+									<xsd:documentation>Identyfikator konta zapisu (konta pomocniczego lub konta księgi głównej, jeżeli nie jest wymagany zapis na kontach pomocniczych) dla zapisu po stronie Winien</xsd:documentation>
322
+								</xsd:annotation>
323
+							</xsd:element>
324
+							<xsd:element name="KwotaWinien" type="tns:TKwotowy">
325
+								<xsd:annotation>
326
+									<xsd:documentation>Kwota zapisu transakcji po stronie Winien</xsd:documentation>
327
+								</xsd:annotation>
328
+							</xsd:element>
329
+							<xsd:element name="KwotaWinienWaluta" type="tns:TKwotowy" minOccurs="0">
330
+								<xsd:annotation>
331
+									<xsd:documentation>Kwota zapisu transakcji po stronie Winien w walucie obcej dla operacji walutowych</xsd:documentation>
332
+								</xsd:annotation>
333
+							</xsd:element>
334
+							<xsd:element name="KodWalutyWinien" type="kck:currCode_Type" minOccurs="0">
335
+								<xsd:annotation>
336
+									<xsd:documentation>Kod waluty dla operacji walutowych dla księgowań po stronie Winien</xsd:documentation>
337
+								</xsd:annotation>
338
+							</xsd:element>
339
+							<xsd:element name="OpisZapisuWinien" type="tns:TZnakowyJPK" minOccurs="0">
340
+								<xsd:annotation>
341
+									<xsd:documentation>Opis zapisu transakcji po stronie Winien</xsd:documentation>
342
+								</xsd:annotation>
343
+							</xsd:element>
344
+							<xsd:element name="KodKontaMa" type="tns:TZnakowyJPK" default="null">
345
+								<xsd:annotation>
346
+									<xsd:documentation>Identyfikator konta zapisu (konta pomocniczego lub konta księgi głównej, jeżeli nie jest wymagany zapis na kontach pomocniczych) dla zapisu po stronie Ma</xsd:documentation>
347
+								</xsd:annotation>
348
+							</xsd:element>
349
+							<xsd:element name="KwotaMa" type="tns:TKwotowy">
350
+								<xsd:annotation>
351
+									<xsd:documentation>Kwota zapisu transakcji po stronie Ma</xsd:documentation>
352
+								</xsd:annotation>
353
+							</xsd:element>
354
+							<xsd:element name="KwotaMaWaluta" type="tns:TKwotowy" minOccurs="0">
355
+								<xsd:annotation>
356
+									<xsd:documentation>Kwota zapisu transakcji po stronie Ma w walucie obcej dla operacji walutowych</xsd:documentation>
357
+								</xsd:annotation>
358
+							</xsd:element>
359
+							<xsd:element name="KodWalutyMa" type="kck:currCode_Type" minOccurs="0">
360
+								<xsd:annotation>
361
+									<xsd:documentation>Kod waluty dla operacji walutowych księgowanych po stronie Ma</xsd:documentation>
362
+								</xsd:annotation>
363
+							</xsd:element>
364
+							<xsd:element name="OpisZapisuMa" type="tns:TZnakowyJPK" minOccurs="0">
365
+								<xsd:annotation>
366
+									<xsd:documentation>Opis zapisu transakcji po stronie Ma</xsd:documentation>
367
+								</xsd:annotation>
368
+							</xsd:element>
369
+						</xsd:sequence>
370
+						<xsd:attribute name="typ" use="required" fixed="G"/>
371
+					</xsd:complexType>
372
+				</xsd:element>
373
+				<xsd:element name="KontoZapisCtrl">
374
+					<xsd:annotation>
375
+						<xsd:documentation>Sumy kontrolne dla tabeli KontoZapis</xsd:documentation>
376
+					</xsd:annotation>
377
+					<xsd:complexType>
378
+						<xsd:sequence>
379
+							<xsd:element name="LiczbaWierszyKontoZapisj" type="tns:TNaturalnyJPK">
380
+								<xsd:annotation>
381
+									<xsd:documentation>Liczba zapisów tabeli KontoZapis</xsd:documentation>
382
+								</xsd:annotation>
383
+							</xsd:element>
384
+							<xsd:element name="SumaWinien" type="tns:TKwotowy">
385
+								<xsd:annotation>
386
+									<xsd:documentation>Suma wartości wierszy (zapisów) po stronie Winien (elementu KwotaWinien)</xsd:documentation>
387
+								</xsd:annotation>
388
+							</xsd:element>
389
+							<xsd:element name="SumaMa" type="tns:TKwotowy">
390
+								<xsd:annotation>
391
+									<xsd:documentation>Suma wartości wierszy (zapisów) po stronie Ma (elementu KwotaMa)</xsd:documentation>
392
+								</xsd:annotation>
393
+							</xsd:element>
394
+						</xsd:sequence>
395
+					</xsd:complexType>
396
+				</xsd:element>
397
+			</xsd:sequence>
398
+		</xsd:complexType>
399
+	</xsd:element>
400
+</xsd:schema>

+ 459
- 0
JPK_v1/Schemat_JPK_VAT(1)_v1-0.xsd Просмотреть файл

@@ -0,0 +1,459 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:etd="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/" xmlns:kck="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" xmlns:tns="http://jpk.mf.gov.pl/wzor/2016/03/09/03094/" targetNamespace="http://jpk.mf.gov.pl/wzor/2016/03/09/03094/" elementFormDefault="qualified" attributeFormDefault="unqualified" xml:lang="pl">
3
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/StrukturyDanych_v4-0E.xsd"/>
4
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/KodyCechKrajow_v3-0E.xsd"/>
5
+	<xsd:simpleType name="TKodFormularza">
6
+		<xsd:annotation>
7
+			<xsd:documentation>Symbol wzoru formularza</xsd:documentation>
8
+		</xsd:annotation>
9
+		<xsd:restriction base="xsd:string">
10
+			<xsd:enumeration value="JPK_VAT"/>
11
+		</xsd:restriction>
12
+	</xsd:simpleType>
13
+	<xsd:simpleType name="TCelZlozenia">
14
+		<xsd:annotation>
15
+			<xsd:documentation>Określenie celu złożenia JPK</xsd:documentation>
16
+		</xsd:annotation>
17
+		<xsd:restriction base="xsd:byte">
18
+			<xsd:enumeration value="1">
19
+				<xsd:annotation>
20
+					<xsd:documentation>złożenie JPK po raz pierwszy</xsd:documentation>
21
+				</xsd:annotation>
22
+			</xsd:enumeration>
23
+		</xsd:restriction>
24
+	</xsd:simpleType>
25
+	<xsd:complexType name="TNaglowek">
26
+		<xsd:annotation>
27
+			<xsd:documentation>Nagłówek JPK_VAT</xsd:documentation>
28
+		</xsd:annotation>
29
+		<xsd:sequence>
30
+			<xsd:element name="KodFormularza">
31
+				<xsd:complexType>
32
+					<xsd:simpleContent>
33
+						<xsd:extension base="tns:TKodFormularza">
34
+							<xsd:attribute name="kodSystemowy" type="xsd:string" use="required" fixed="JPK_VAT (1)"/>
35
+							<xsd:attribute name="wersjaSchemy" type="xsd:string" use="required" fixed="1-0"/>
36
+						</xsd:extension>
37
+					</xsd:simpleContent>
38
+				</xsd:complexType>
39
+			</xsd:element>
40
+			<xsd:element name="WariantFormularza">
41
+				<xsd:simpleType>
42
+					<xsd:restriction base="xsd:byte">
43
+						<xsd:enumeration value="1"/>
44
+					</xsd:restriction>
45
+				</xsd:simpleType>
46
+			</xsd:element>
47
+			<xsd:element name="CelZlozenia" type="tns:TCelZlozenia"/>
48
+			<xsd:element name="DataWytworzeniaJPK" type="etd:TDataCzas">
49
+				<xsd:annotation>
50
+					<xsd:documentation>Data i czas wytworzenia JPK_VAT</xsd:documentation>
51
+				</xsd:annotation>
52
+			</xsd:element>
53
+			<xsd:element name="DataOd" type="etd:TData">
54
+				<xsd:annotation>
55
+					<xsd:documentation>Data początkowa okresu, którego dotyczy JPK_VAT</xsd:documentation>
56
+				</xsd:annotation>
57
+			</xsd:element>
58
+			<xsd:element name="DataDo" type="etd:TData">
59
+				<xsd:annotation>
60
+					<xsd:documentation>Data końcowa okresu, którego dotyczy JPK_VAT</xsd:documentation>
61
+				</xsd:annotation>
62
+			</xsd:element>
63
+			<xsd:element name="DomyslnyKodWaluty" type="kck:currCode_Type">
64
+				<xsd:annotation>
65
+					<xsd:documentation>Trzyliterowy kod lokalnej waluty (ISO-4217), domyślny dla wytworzonego JPK_VAT</xsd:documentation>
66
+				</xsd:annotation>
67
+			</xsd:element>
68
+			<xsd:element name="KodUrzedu" type="etd:TKodUS"/>
69
+		</xsd:sequence>
70
+	</xsd:complexType>
71
+	<xsd:simpleType name="TKwotowy">
72
+		<xsd:annotation>
73
+			<xsd:documentation>Wartość numeryczna 18 znaków max, w tym 2 znaki po przecinku</xsd:documentation>
74
+		</xsd:annotation>
75
+		<xsd:restriction base="xsd:decimal">
76
+			<xsd:totalDigits value="18"/>
77
+			<xsd:fractionDigits value="2"/>
78
+		</xsd:restriction>
79
+	</xsd:simpleType>
80
+	<xsd:simpleType name="TNaturalnyJPK">
81
+		<xsd:annotation>
82
+			<xsd:documentation>Liczby naturalne większe od zera</xsd:documentation>
83
+		</xsd:annotation>
84
+		<xsd:restriction base="etd:TNaturalny">
85
+			<xsd:minExclusive value="0"/>
86
+		</xsd:restriction>
87
+	</xsd:simpleType>
88
+	<xsd:simpleType name="TZnakowyJPK">
89
+		<xsd:annotation>
90
+			<xsd:documentation>Typ znakowy ograniczony do 256 znaków</xsd:documentation>
91
+		</xsd:annotation>
92
+		<xsd:restriction base="xsd:token">
93
+			<xsd:minLength value="1"/>
94
+			<xsd:maxLength value="256"/>
95
+		</xsd:restriction>
96
+	</xsd:simpleType>
97
+	<xsd:element name="JPK">
98
+		<xsd:annotation>
99
+			<xsd:documentation>Jednolity plik kontrolny dla ewidencji zakupu i sprzedaży VAT</xsd:documentation>
100
+		</xsd:annotation>
101
+		<xsd:complexType>
102
+			<xsd:sequence>
103
+				<xsd:element name="Naglowek" type="tns:TNaglowek">
104
+					<xsd:annotation>
105
+						<xsd:documentation>Nagłówek JPK_VAT</xsd:documentation>
106
+					</xsd:annotation>
107
+				</xsd:element>
108
+				<xsd:element name="Podmiot1">
109
+					<xsd:complexType>
110
+						<xsd:sequence>
111
+							<xsd:element name="IdentyfikatorPodmiotu" type="etd:TIdentyfikatorOsobyNiefizycznej">
112
+								<xsd:annotation>
113
+									<xsd:documentation>Dane identyfikujące podmiot</xsd:documentation>
114
+								</xsd:annotation>
115
+							</xsd:element>
116
+							<xsd:element name="AdresPodmiotu" type="etd:TAdresPolski">
117
+								<xsd:annotation>
118
+									<xsd:documentation>Adres podmiotu</xsd:documentation>
119
+								</xsd:annotation>
120
+							</xsd:element>
121
+						</xsd:sequence>
122
+					</xsd:complexType>
123
+				</xsd:element>
124
+				<xsd:sequence minOccurs="0">
125
+					<xsd:element name="SprzedazWiersz" maxOccurs="unbounded">
126
+						<xsd:annotation>
127
+							<xsd:documentation>Ewidencja sprzedaży oraz nabyć towarów i usług dla których podmiot obowiązany jest naliczyć podatek należny - tj. wewnątrzwspólnotowe nabycia towarów, import towarów podlegających rozliczeniu zgodnie z art. 33 a ustawy, import usług z wyłączeniem usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28 b ustawy, import usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28 b ustawy, dostawa towarów, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 5 ustawy (wypełnia nabywca), dostawa towarów, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 lub 8 ustawy (wypełnia nabywca) </xsd:documentation>
128
+						</xsd:annotation>
129
+						<xsd:complexType>
130
+							<xsd:sequence>
131
+								<xsd:element name="LpSprzedazy" type="tns:TNaturalnyJPK">
132
+									<xsd:annotation>
133
+										<xsd:documentation>Lp. wiersza ewidencji sprzedaży VAT</xsd:documentation>
134
+									</xsd:annotation>
135
+								</xsd:element>
136
+								<xsd:element name="DataSprzedazy" type="etd:TData" minOccurs="0">
137
+									<xsd:annotation>
138
+										<xsd:documentation>Data sprzedaży, o ile jest określona i różni się od daty wystawienia faktury. W przeciwnym przypadku - pole puste</xsd:documentation>
139
+									</xsd:annotation>
140
+								</xsd:element>
141
+								<xsd:element name="DataWystawienia" type="etd:TData">
142
+									<xsd:annotation>
143
+										<xsd:documentation>Data wystawienia</xsd:documentation>
144
+									</xsd:annotation>
145
+								</xsd:element>
146
+								<xsd:element name="NrDokumentu" type="tns:TZnakowyJPK">
147
+									<xsd:annotation>
148
+										<xsd:documentation>Numer dokumentu</xsd:documentation>
149
+									</xsd:annotation>
150
+								</xsd:element>
151
+								<xsd:element name="NazwaNabywcy" type="tns:TZnakowyJPK" minOccurs="0">
152
+									<xsd:annotation>
153
+										<xsd:documentation>Imię i nazwisko lub nazwa nabywcy towarów lub usług</xsd:documentation>
154
+									</xsd:annotation>
155
+								</xsd:element>
156
+								<xsd:element name="AdresNabywcy" type="tns:TZnakowyJPK" minOccurs="0">
157
+									<xsd:annotation>
158
+										<xsd:documentation>Adres nabywcy towarów lub usług</xsd:documentation>
159
+									</xsd:annotation>
160
+								</xsd:element>
161
+								<xsd:element name="K_10" type="tns:TKwotowy" minOccurs="0">
162
+									<xsd:annotation>
163
+										<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, zwolnione od podatku</xsd:documentation>
164
+									</xsd:annotation>
165
+								</xsd:element>
166
+								<xsd:element name="K_11" type="tns:TKwotowy" minOccurs="0">
167
+									<xsd:annotation>
168
+										<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług poza terytorium kraju</xsd:documentation>
169
+									</xsd:annotation>
170
+								</xsd:element>
171
+								<xsd:element name="K_12" type="tns:TKwotowy" minOccurs="0">
172
+									<xsd:annotation>
173
+										<xsd:documentation>Kwota netto - w tym świadczenie usług, o których mowa w art. 100 ust. 1 pkt 4 ustawy</xsd:documentation>
174
+									</xsd:annotation>
175
+								</xsd:element>
176
+								<xsd:element name="K_13" type="tns:TKwotowy" minOccurs="0">
177
+									<xsd:annotation>
178
+										<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 0%</xsd:documentation>
179
+									</xsd:annotation>
180
+								</xsd:element>
181
+								<xsd:element name="K_14" type="tns:TKwotowy" minOccurs="0">
182
+									<xsd:annotation>
183
+										<xsd:documentation>Kwota netto - w tym dostawa towarów, o której mowa w art. 129 ustawy</xsd:documentation>
184
+									</xsd:annotation>
185
+								</xsd:element>
186
+								<xsd:sequence minOccurs="0">
187
+									<xsd:element name="K_15" type="tns:TKwotowy">
188
+										<xsd:annotation>
189
+											<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 5%</xsd:documentation>
190
+										</xsd:annotation>
191
+									</xsd:element>
192
+									<xsd:element name="K_16" type="tns:TKwotowy">
193
+										<xsd:annotation>
194
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 5%</xsd:documentation>
195
+										</xsd:annotation>
196
+									</xsd:element>
197
+								</xsd:sequence>
198
+								<xsd:sequence minOccurs="0">
199
+									<xsd:element name="K_17" type="tns:TKwotowy">
200
+										<xsd:annotation>
201
+											<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 7% albo 8%</xsd:documentation>
202
+										</xsd:annotation>
203
+									</xsd:element>
204
+									<xsd:element name="K_18" type="tns:TKwotowy">
205
+										<xsd:annotation>
206
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 7% albo 8%</xsd:documentation>
207
+										</xsd:annotation>
208
+									</xsd:element>
209
+								</xsd:sequence>
210
+								<xsd:sequence minOccurs="0">
211
+									<xsd:element name="K_19" type="tns:TKwotowy">
212
+										<xsd:annotation>
213
+											<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 22% albo 23%</xsd:documentation>
214
+										</xsd:annotation>
215
+									</xsd:element>
216
+									<xsd:element name="K_20" type="tns:TKwotowy">
217
+										<xsd:annotation>
218
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 22% albo 23%</xsd:documentation>
219
+										</xsd:annotation>
220
+									</xsd:element>
221
+								</xsd:sequence>
222
+								<xsd:element name="K_21" type="tns:TKwotowy" minOccurs="0">
223
+									<xsd:annotation>
224
+										<xsd:documentation>Kwota netto - Wewnątrzwspólnotowa dostawa towarów</xsd:documentation>
225
+									</xsd:annotation>
226
+								</xsd:element>
227
+								<xsd:element name="K_22" type="tns:TKwotowy" minOccurs="0">
228
+									<xsd:annotation>
229
+										<xsd:documentation>Kwota netto - Eksport towarów</xsd:documentation>
230
+									</xsd:annotation>
231
+								</xsd:element>
232
+								<xsd:sequence minOccurs="0">
233
+									<xsd:element name="K_23" type="tns:TKwotowy">
234
+										<xsd:annotation>
235
+											<xsd:documentation>Kwota netto - Wewnątrzwspólnotowe nabycie towarów</xsd:documentation>
236
+										</xsd:annotation>
237
+									</xsd:element>
238
+									<xsd:element name="K_24" type="tns:TKwotowy">
239
+										<xsd:annotation>
240
+											<xsd:documentation>Kwota podatku należnego - Wewnątrzwspólnotowe nabycie towarów</xsd:documentation>
241
+										</xsd:annotation>
242
+									</xsd:element>
243
+								</xsd:sequence>
244
+								<xsd:sequence minOccurs="0">
245
+									<xsd:element name="K_25" type="tns:TKwotowy">
246
+										<xsd:annotation>
247
+											<xsd:documentation>Kwota netto - Import towarów podlegający rozliczeniu zgodnie z art. 33a ustawy</xsd:documentation>
248
+										</xsd:annotation>
249
+									</xsd:element>
250
+									<xsd:element name="K_26" type="tns:TKwotowy">
251
+										<xsd:annotation>
252
+											<xsd:documentation>Kwota podatku należnego - Import towarów podlegający rozliczeniu zgodnie z art. 33a ustawy</xsd:documentation>
253
+										</xsd:annotation>
254
+									</xsd:element>
255
+								</xsd:sequence>
256
+								<xsd:sequence minOccurs="0">
257
+									<xsd:element name="K_27" type="tns:TKwotowy">
258
+										<xsd:annotation>
259
+											<xsd:documentation>Kwota netto - Import usług z wyłączeniem usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28b ustawy</xsd:documentation>
260
+										</xsd:annotation>
261
+									</xsd:element>
262
+									<xsd:element name="K_28" type="tns:TKwotowy">
263
+										<xsd:annotation>
264
+											<xsd:documentation>Kwota podatku należnego - Import usług z wyłączeniem usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28b ustawy</xsd:documentation>
265
+										</xsd:annotation>
266
+									</xsd:element>
267
+								</xsd:sequence>
268
+								<xsd:sequence minOccurs="0">
269
+									<xsd:element name="K_29" type="tns:TKwotowy">
270
+										<xsd:annotation>
271
+											<xsd:documentation>Kwota netto - Import usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28b ustawy</xsd:documentation>
272
+										</xsd:annotation>
273
+									</xsd:element>
274
+									<xsd:element name="K_30" type="tns:TKwotowy">
275
+										<xsd:annotation>
276
+											<xsd:documentation>Kwota podatku należnego - Import usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28b ustawy</xsd:documentation>
277
+										</xsd:annotation>
278
+									</xsd:element>
279
+								</xsd:sequence>
280
+								<xsd:element name="K_31" type="tns:TKwotowy" minOccurs="0">
281
+									<xsd:annotation>
282
+										<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 lub 8 ustawy (wypełnia dostawca)</xsd:documentation>
283
+									</xsd:annotation>
284
+								</xsd:element>
285
+								<xsd:sequence minOccurs="0">
286
+									<xsd:element name="K_32" type="tns:TKwotowy">
287
+										<xsd:annotation>
288
+											<xsd:documentation>Kwota netto - Dostawa towarów, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 5 ustawy (wypełnia nabywca)</xsd:documentation>
289
+										</xsd:annotation>
290
+									</xsd:element>
291
+									<xsd:element name="K_33" type="tns:TKwotowy">
292
+										<xsd:annotation>
293
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 5 ustawy (wypełnia nabywca)</xsd:documentation>
294
+										</xsd:annotation>
295
+									</xsd:element>
296
+								</xsd:sequence>
297
+								<xsd:sequence minOccurs="0">
298
+									<xsd:element name="K_34" type="tns:TKwotowy">
299
+										<xsd:annotation>
300
+											<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 lub 8 ustawy (wypełnia nabywca)</xsd:documentation>
301
+										</xsd:annotation>
302
+									</xsd:element>
303
+									<xsd:element name="K_35" type="tns:TKwotowy">
304
+										<xsd:annotation>
305
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów oraz świadczenie usług, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 lub 8 ustawy (wypełnia nabywca)</xsd:documentation>
306
+										</xsd:annotation>
307
+									</xsd:element>
308
+								</xsd:sequence>
309
+								<xsd:element name="K_36" type="tns:TKwotowy" minOccurs="0">
310
+									<xsd:annotation>
311
+										<xsd:documentation>Kwota podatku należnego od towarów i usług objętych spisem z natury, o którym mowa w art. 14 ust. 5 ustawy</xsd:documentation>
312
+									</xsd:annotation>
313
+								</xsd:element>
314
+								<xsd:element name="K_37" type="tns:TKwotowy" minOccurs="0">
315
+									<xsd:annotation>
316
+										<xsd:documentation>Zwrot odliczonej lub zwróconej kwoty wydatkowanej na zakup kas rejestrujących, o którym mowa w art. 111 ust. 6 ustawy</xsd:documentation>
317
+									</xsd:annotation>
318
+								</xsd:element>
319
+								<xsd:element name="K_38" type="tns:TKwotowy" minOccurs="0">
320
+									<xsd:annotation>
321
+										<xsd:documentation>Kwota podatku należnego od wewnątrzwspólnotowego nabycia środków transportu, wykazanego w poz. 24, podlegająca wpłacie w terminie, o którym mowa w art. 103 ust. 3, w związku z ust. 4 ustawy</xsd:documentation>
322
+									</xsd:annotation>
323
+								</xsd:element>
324
+							</xsd:sequence>
325
+							<xsd:attribute name="typ" use="required" fixed="G"/>
326
+						</xsd:complexType>
327
+					</xsd:element>
328
+					<xsd:element name="SprzedazCtrl">
329
+						<xsd:annotation>
330
+							<xsd:documentation>Sumy kontrolne dla ewidencji sprzedaży VAT</xsd:documentation>
331
+						</xsd:annotation>
332
+						<xsd:complexType>
333
+							<xsd:sequence>
334
+								<xsd:element name="LiczbaWierszySprzedazy" type="tns:TNaturalnyJPK">
335
+									<xsd:annotation>
336
+										<xsd:documentation>Liczba wierszy ewidencji sprzedaży, w okresie którego dotyczy JPK</xsd:documentation>
337
+									</xsd:annotation>
338
+								</xsd:element>
339
+								<xsd:element name="PodatekNalezny" type="tns:TKwotowy">
340
+									<xsd:annotation>
341
+										<xsd:documentation>Podatek należny wg ewidencji sprzedaży w okresie, którego dotyczy JPK</xsd:documentation>
342
+									</xsd:annotation>
343
+								</xsd:element>
344
+							</xsd:sequence>
345
+						</xsd:complexType>
346
+					</xsd:element>
347
+				</xsd:sequence>
348
+				<xsd:sequence minOccurs="0">
349
+					<xsd:element name="ZakupWiersz" maxOccurs="unbounded">
350
+						<xsd:annotation>
351
+							<xsd:documentation>Ewidencja zakupu VAT</xsd:documentation>
352
+						</xsd:annotation>
353
+						<xsd:complexType>
354
+							<xsd:sequence>
355
+								<xsd:element name="LpZakupu" type="tns:TNaturalnyJPK">
356
+									<xsd:annotation>
357
+										<xsd:documentation>Lp. wiersza ewidencji zakupu VAT</xsd:documentation>
358
+									</xsd:annotation>
359
+								</xsd:element>
360
+								<xsd:element name="NazwaWystawcy" type="tns:TZnakowyJPK">
361
+									<xsd:annotation>
362
+										<xsd:documentation>Imię i nazwisko lub nazwa wystawcy faktury</xsd:documentation>
363
+									</xsd:annotation>
364
+								</xsd:element>
365
+								<xsd:element name="AdresWystawcy" type="tns:TZnakowyJPK">
366
+									<xsd:annotation>
367
+										<xsd:documentation>Adres wystawcy faktury</xsd:documentation>
368
+									</xsd:annotation>
369
+								</xsd:element>
370
+								<xsd:element name="NrIdWystawcy" type="etd:TNrIdentyfikacjiPodatkowej">
371
+									<xsd:annotation>
372
+										<xsd:documentation>NIP lub inny numer służący identyfikacji dla celów podatkowych wystawcy faktury</xsd:documentation>
373
+									</xsd:annotation>
374
+								</xsd:element>
375
+								<xsd:element name="NrFaktury" type="tns:TZnakowyJPK">
376
+									<xsd:annotation>
377
+										<xsd:documentation>Nr faktury</xsd:documentation>
378
+									</xsd:annotation>
379
+								</xsd:element>
380
+								<xsd:element name="DataWplywuFaktury" type="etd:TData" minOccurs="0">
381
+									<xsd:annotation>
382
+										<xsd:documentation>Data wpływu faktury VAT</xsd:documentation>
383
+									</xsd:annotation>
384
+								</xsd:element>
385
+								<xsd:sequence minOccurs="0">
386
+									<xsd:element name="K_42" type="tns:TKwotowy">
387
+										<xsd:annotation>
388
+											<xsd:documentation>Kwota netto - Nabycie towarów i usług zaliczanych u podatnika do środków trwałych</xsd:documentation>
389
+										</xsd:annotation>
390
+									</xsd:element>
391
+									<xsd:element name="K_43" type="tns:TKwotowy">
392
+										<xsd:annotation>
393
+											<xsd:documentation>Kwota podatku naliczonego - Nabycie towarów i usług zaliczanych u podatnika do środków trwałych</xsd:documentation>
394
+										</xsd:annotation>
395
+									</xsd:element>
396
+								</xsd:sequence>
397
+								<xsd:sequence minOccurs="0">
398
+									<xsd:element name="K_44" type="tns:TKwotowy">
399
+										<xsd:annotation>
400
+											<xsd:documentation>Kwota netto - Nabycie towarów i usług pozostałych</xsd:documentation>
401
+										</xsd:annotation>
402
+									</xsd:element>
403
+									<xsd:element name="K_45" type="tns:TKwotowy">
404
+										<xsd:annotation>
405
+											<xsd:documentation>Kwota podatku naliczonego - Nabycie towarów i usług pozostałych</xsd:documentation>
406
+										</xsd:annotation>
407
+									</xsd:element>
408
+								</xsd:sequence>
409
+								<xsd:element name="K_46" type="tns:TKwotowy" minOccurs="0">
410
+									<xsd:annotation>
411
+										<xsd:documentation>Korekta podatku naliczonego od nabycia środków trwałych</xsd:documentation>
412
+									</xsd:annotation>
413
+								</xsd:element>
414
+								<xsd:element name="K_47" type="tns:TKwotowy" minOccurs="0">
415
+									<xsd:annotation>
416
+										<xsd:documentation>Korekta podatku naliczonego od pozostałych nabyć</xsd:documentation>
417
+									</xsd:annotation>
418
+								</xsd:element>
419
+								<xsd:element name="K_48" type="tns:TKwotowy" minOccurs="0">
420
+									<xsd:annotation>
421
+										<xsd:documentation>Korekta podatku naliczonego, o której mowa w art. 89b ust. 1 ustawy</xsd:documentation>
422
+									</xsd:annotation>
423
+								</xsd:element>
424
+							</xsd:sequence>
425
+							<xsd:attribute name="typ" use="required" fixed="G"/>
426
+						</xsd:complexType>
427
+					</xsd:element>
428
+					<xsd:element name="ZakupCtrl">
429
+						<xsd:annotation>
430
+							<xsd:documentation>Sumy kontrolne dla ewidencji zakupu VAT</xsd:documentation>
431
+						</xsd:annotation>
432
+						<xsd:complexType>
433
+							<xsd:sequence>
434
+								<xsd:element name="LiczbaWierszyZakupow" type="tns:TNaturalnyJPK">
435
+									<xsd:annotation>
436
+										<xsd:documentation>Liczba wierszy ewidencji zakupu, w okresie którego dotyczy JPK</xsd:documentation>
437
+									</xsd:annotation>
438
+								</xsd:element>
439
+								<xsd:element name="PodatekNaliczony" type="tns:TKwotowy">
440
+									<xsd:annotation>
441
+										<xsd:documentation>Razem kwota podatku naliczonego do odliczenia</xsd:documentation>
442
+									</xsd:annotation>
443
+								</xsd:element>
444
+							</xsd:sequence>
445
+						</xsd:complexType>
446
+					</xsd:element>
447
+				</xsd:sequence>
448
+			</xsd:sequence>
449
+		</xsd:complexType>
450
+		<xsd:unique name="klucz_LpSprzedaz">
451
+			<xsd:selector xpath=".//tns:SprzedazWiersz/tns:LpSprzedazy"/>
452
+			<xsd:field xpath="."/>
453
+		</xsd:unique>
454
+		<xsd:unique name="klucz_LpZakup">
455
+			<xsd:selector xpath=".//tns:ZakupWiersz/tns:LpZakupu"/>
456
+			<xsd:field xpath="."/>
457
+		</xsd:unique>
458
+	</xsd:element>
459
+</xsd:schema>

+ 6506
- 0
JPK_v1/Schemat_JPK_VAT(2)_v1-0.designer.cs
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 518
- 0
JPK_v1/Schemat_JPK_VAT(2)_v1-0.xsd Просмотреть файл

@@ -0,0 +1,518 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!-- edited with XMLSpy v2015 sp2 (http://www.altova.com) by Jarosław Oleśniewicz (Ministerstwo Finansów) -->
3
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:etd="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/" xmlns:kck="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" xmlns:tns="http://jpk.mf.gov.pl/wzor/2016/10/26/10261/" targetNamespace="http://jpk.mf.gov.pl/wzor/2016/10/26/10261/" elementFormDefault="qualified" attributeFormDefault="unqualified" xml:lang="pl">
4
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/StrukturyDanych_v4-0E.xsd"/>
5
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/KodyCechKrajow_v3-0E.xsd"/>
6
+	<xsd:simpleType name="TKodFormularza">
7
+		<xsd:annotation>
8
+			<xsd:documentation>Symbol wzoru formularza</xsd:documentation>
9
+		</xsd:annotation>
10
+		<xsd:restriction base="xsd:string">
11
+			<xsd:enumeration value="JPK_VAT"/>
12
+		</xsd:restriction>
13
+	</xsd:simpleType>
14
+	<xsd:complexType name="TNaglowek">
15
+		<xsd:annotation>
16
+			<xsd:documentation>Nagłówek JPK_VAT</xsd:documentation>
17
+		</xsd:annotation>
18
+		<xsd:sequence>
19
+			<xsd:element name="KodFormularza">
20
+				<xsd:complexType>
21
+					<xsd:simpleContent>
22
+						<xsd:extension base="tns:TKodFormularza">
23
+							<xsd:attribute name="kodSystemowy" type="xsd:string" use="required" fixed="JPK_VAT (2)"/>
24
+							<xsd:attribute name="wersjaSchemy" type="xsd:string" use="required" fixed="1-0"/>
25
+						</xsd:extension>
26
+					</xsd:simpleContent>
27
+				</xsd:complexType>
28
+			</xsd:element>
29
+			<xsd:element name="WariantFormularza">
30
+				<xsd:simpleType>
31
+					<xsd:restriction base="xsd:byte">
32
+						<xsd:enumeration value="2"/>
33
+					</xsd:restriction>
34
+				</xsd:simpleType>
35
+			</xsd:element>
36
+			<xsd:element name="CelZlozenia" type="etd:TCelZlozenia"/>
37
+			<xsd:element name="DataWytworzeniaJPK" type="etd:TDataCzas">
38
+				<xsd:annotation>
39
+					<xsd:documentation>Data i czas wytworzenia JPK_VAT</xsd:documentation>
40
+				</xsd:annotation>
41
+			</xsd:element>
42
+			<xsd:element name="DataOd" type="etd:TData">
43
+				<xsd:annotation>
44
+					<xsd:documentation>Data początkowa okresu, którego dotyczy JPK_VAT</xsd:documentation>
45
+				</xsd:annotation>
46
+			</xsd:element>
47
+			<xsd:element name="DataDo" type="etd:TData">
48
+				<xsd:annotation>
49
+					<xsd:documentation>Data końcowa okresu, którego dotyczy JPK_VAT</xsd:documentation>
50
+				</xsd:annotation>
51
+			</xsd:element>
52
+			<xsd:element name="DomyslnyKodWaluty" type="kck:currCode_Type">
53
+				<xsd:annotation>
54
+					<xsd:documentation>Trzyliterowy kod lokalnej waluty (ISO-4217), domyślny dla wytworzonego JPK_VAT</xsd:documentation>
55
+				</xsd:annotation>
56
+			</xsd:element>
57
+			<xsd:element name="KodUrzedu" type="etd:TKodUS"/>
58
+		</xsd:sequence>
59
+	</xsd:complexType>
60
+	<xsd:simpleType name="TKwotowy">
61
+		<xsd:annotation>
62
+			<xsd:documentation>Wartość numeryczna 18 znaków max, w tym 2 znaki po przecinku</xsd:documentation>
63
+		</xsd:annotation>
64
+		<xsd:restriction base="xsd:decimal">
65
+			<xsd:totalDigits value="18"/>
66
+			<xsd:fractionDigits value="2"/>
67
+		</xsd:restriction>
68
+	</xsd:simpleType>
69
+	<xsd:simpleType name="TNaturalnyJPK">
70
+		<xsd:annotation>
71
+			<xsd:documentation>Liczby naturalne większe od zera</xsd:documentation>
72
+		</xsd:annotation>
73
+		<xsd:restriction base="etd:TNaturalny">
74
+			<xsd:minExclusive value="0"/>
75
+		</xsd:restriction>
76
+	</xsd:simpleType>
77
+	<xsd:simpleType name="TZnakowyJPK">
78
+		<xsd:annotation>
79
+			<xsd:documentation>Typ znakowy ograniczony do 256 znaków</xsd:documentation>
80
+		</xsd:annotation>
81
+		<xsd:restriction base="xsd:token">
82
+			<xsd:minLength value="1"/>
83
+			<xsd:maxLength value="256"/>
84
+		</xsd:restriction>
85
+	</xsd:simpleType>
86
+	<xsd:complexType name="TAdresJPK">
87
+		<xsd:annotation>
88
+			<xsd:documentation>Informacje opisujące adres</xsd:documentation>
89
+		</xsd:annotation>
90
+		<xsd:sequence>
91
+			<xsd:element name="KodKraju" type="etd:TKodKraju">
92
+				<xsd:annotation>
93
+					<xsd:documentation>Kraj</xsd:documentation>
94
+				</xsd:annotation>
95
+			</xsd:element>
96
+			<xsd:element name="Wojewodztwo" type="etd:TJednAdmin" minOccurs="0">
97
+				<xsd:annotation>
98
+					<xsd:documentation>Województwo</xsd:documentation>
99
+				</xsd:annotation>
100
+			</xsd:element>
101
+			<xsd:element name="Powiat" type="etd:TJednAdmin" minOccurs="0">
102
+				<xsd:annotation>
103
+					<xsd:documentation>Powiat</xsd:documentation>
104
+				</xsd:annotation>
105
+			</xsd:element>
106
+			<xsd:element name="Gmina" type="etd:TJednAdmin" minOccurs="0">
107
+				<xsd:annotation>
108
+					<xsd:documentation>Gmina</xsd:documentation>
109
+				</xsd:annotation>
110
+			</xsd:element>
111
+			<xsd:element name="Ulica" type="etd:TUlica" minOccurs="0">
112
+				<xsd:annotation>
113
+					<xsd:documentation>Nazwa ulicy</xsd:documentation>
114
+				</xsd:annotation>
115
+			</xsd:element>
116
+			<xsd:element name="NrDomu" type="etd:TNrBudynku" minOccurs="0">
117
+				<xsd:annotation>
118
+					<xsd:documentation>Numer budynku</xsd:documentation>
119
+				</xsd:annotation>
120
+			</xsd:element>
121
+			<xsd:element name="NrLokalu" type="etd:TNrLokalu" minOccurs="0">
122
+				<xsd:annotation>
123
+					<xsd:documentation>Numer lokalu</xsd:documentation>
124
+				</xsd:annotation>
125
+			</xsd:element>
126
+			<xsd:element name="Miejscowosc" type="etd:TMiejscowosc">
127
+				<xsd:annotation>
128
+					<xsd:documentation>Nazwa miejscowości</xsd:documentation>
129
+				</xsd:annotation>
130
+			</xsd:element>
131
+			<xsd:element name="KodPocztowy" type="etd:TKodPocztowy" minOccurs="0">
132
+				<xsd:annotation>
133
+					<xsd:documentation>Kod pocztowy</xsd:documentation>
134
+				</xsd:annotation>
135
+			</xsd:element>
136
+			<xsd:element name="Poczta" type="etd:TMiejscowosc" minOccurs="0">
137
+				<xsd:annotation>
138
+					<xsd:documentation>Nazwa urzędu pocztowego</xsd:documentation>
139
+				</xsd:annotation>
140
+			</xsd:element>
141
+		</xsd:sequence>
142
+	</xsd:complexType>
143
+	<xsd:element name="JPK">
144
+		<xsd:annotation>
145
+			<xsd:documentation>Jednolity plik kontrolny dla ewidencji zakupu i sprzedaży VAT</xsd:documentation>
146
+		</xsd:annotation>
147
+		<xsd:complexType>
148
+			<xsd:sequence>
149
+				<xsd:element name="Naglowek" type="tns:TNaglowek">
150
+					<xsd:annotation>
151
+						<xsd:documentation>Nagłówek JPK_VAT</xsd:documentation>
152
+					</xsd:annotation>
153
+				</xsd:element>
154
+				<xsd:element name="Podmiot1">
155
+					<xsd:complexType>
156
+						<xsd:sequence>
157
+							<xsd:element name="IdentyfikatorPodmiotu" type="etd:TIdentyfikatorOsobyNiefizycznej">
158
+								<xsd:annotation>
159
+									<xsd:documentation>Dane identyfikujące podmiot</xsd:documentation>
160
+								</xsd:annotation>
161
+							</xsd:element>
162
+							<xsd:element name="AdresPodmiotu" type="tns:TAdresJPK">
163
+								<xsd:annotation>
164
+									<xsd:documentation>Adres podmiotu</xsd:documentation>
165
+								</xsd:annotation>
166
+							</xsd:element>
167
+						</xsd:sequence>
168
+					</xsd:complexType>
169
+				</xsd:element>
170
+				<xsd:sequence minOccurs="0">
171
+					<xsd:element name="SprzedazWiersz" maxOccurs="unbounded">
172
+						<xsd:annotation>
173
+							<xsd:documentation>Ewidencja sprzedaży oraz nabyć towarów i usług dla których podmiot obowiązany jest naliczyć podatek należny - tj. wewnątrzwspólnotowe nabycia towarów, import towarów podlegających rozliczeniu zgodnie z art. 33 a ustawy, import usług z wyłączeniem usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28 b ustawy, import usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28 b ustawy, dostawa towarów, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 5 ustawy (wypełnia nabywca), dostawa towarów, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 lub 8 ustawy (wypełnia nabywca)</xsd:documentation>
174
+						</xsd:annotation>
175
+						<xsd:complexType>
176
+							<xsd:sequence>
177
+								<xsd:element name="LpSprzedazy" type="tns:TNaturalnyJPK">
178
+									<xsd:annotation>
179
+										<xsd:documentation>Lp. wiersza ewidencji sprzedaży VAT</xsd:documentation>
180
+									</xsd:annotation>
181
+								</xsd:element>
182
+								<xsd:element name="NrKontrahenta" type="etd:TNrIdentyfikacjiPodatkowej">
183
+									<xsd:annotation>
184
+										<xsd:documentation>Numer, za pomocą którego kontrahent jest zidentyfikowany na potrzeby podatku lub podatku od wartości dodanej</xsd:documentation>
185
+									</xsd:annotation>
186
+								</xsd:element>
187
+								<xsd:element name="NazwaKontrahenta" type="tns:TZnakowyJPK">
188
+									<xsd:annotation>
189
+										<xsd:documentation>Imię i nazwisko lub nazwa kontrahenta</xsd:documentation>
190
+									</xsd:annotation>
191
+								</xsd:element>
192
+								<xsd:element name="AdresKontrahenta" type="tns:TZnakowyJPK">
193
+									<xsd:annotation>
194
+										<xsd:documentation>Adres kontrahenta</xsd:documentation>
195
+									</xsd:annotation>
196
+								</xsd:element>
197
+								<xsd:element name="DowodSprzedazy" type="tns:TZnakowyJPK">
198
+									<xsd:annotation>
199
+										<xsd:documentation>Numer dowodu sprzedaży</xsd:documentation>
200
+									</xsd:annotation>
201
+								</xsd:element>
202
+								<xsd:element name="DataWystawienia" type="etd:TData">
203
+									<xsd:annotation>
204
+										<xsd:documentation>Data wystawienia dowodu sprzedaży</xsd:documentation>
205
+									</xsd:annotation>
206
+								</xsd:element>
207
+								<xsd:element name="DataSprzedazy" type="etd:TData" minOccurs="0">
208
+									<xsd:annotation>
209
+										<xsd:documentation>Data sprzedaży, o ile jest określona i różni się od daty wystawienia dowodu sprzedaży. W przeciwnym przypadku - pole puste</xsd:documentation>
210
+									</xsd:annotation>
211
+								</xsd:element>
212
+								<xsd:element name="K_10" type="tns:TKwotowy" minOccurs="0">
213
+									<xsd:annotation>
214
+										<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, zwolnione od podatku</xsd:documentation>
215
+									</xsd:annotation>
216
+								</xsd:element>
217
+								<xsd:element name="K_11" type="tns:TKwotowy" minOccurs="0">
218
+									<xsd:annotation>
219
+										<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług poza terytorium kraju</xsd:documentation>
220
+									</xsd:annotation>
221
+								</xsd:element>
222
+								<xsd:element name="K_12" type="tns:TKwotowy" minOccurs="0">
223
+									<xsd:annotation>
224
+										<xsd:documentation>Kwota netto - w tym świadczenie usług, o których mowa w art. 100 ust. 1 pkt 4 ustawy</xsd:documentation>
225
+									</xsd:annotation>
226
+								</xsd:element>
227
+								<xsd:element name="K_13" type="tns:TKwotowy" minOccurs="0">
228
+									<xsd:annotation>
229
+										<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 0%</xsd:documentation>
230
+									</xsd:annotation>
231
+								</xsd:element>
232
+								<xsd:element name="K_14" type="tns:TKwotowy" minOccurs="0">
233
+									<xsd:annotation>
234
+										<xsd:documentation>Kwota netto - w tym dostawa towarów, o której mowa w art. 129 ustawy</xsd:documentation>
235
+									</xsd:annotation>
236
+								</xsd:element>
237
+								<xsd:sequence minOccurs="0">
238
+									<xsd:element name="K_15" type="tns:TKwotowy">
239
+										<xsd:annotation>
240
+											<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 5%</xsd:documentation>
241
+										</xsd:annotation>
242
+									</xsd:element>
243
+									<xsd:element name="K_16" type="tns:TKwotowy">
244
+										<xsd:annotation>
245
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 5%</xsd:documentation>
246
+										</xsd:annotation>
247
+									</xsd:element>
248
+								</xsd:sequence>
249
+								<xsd:sequence minOccurs="0">
250
+									<xsd:element name="K_17" type="tns:TKwotowy">
251
+										<xsd:annotation>
252
+											<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 7% albo 8%</xsd:documentation>
253
+										</xsd:annotation>
254
+									</xsd:element>
255
+									<xsd:element name="K_18" type="tns:TKwotowy">
256
+										<xsd:annotation>
257
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 7% albo 8%</xsd:documentation>
258
+										</xsd:annotation>
259
+									</xsd:element>
260
+								</xsd:sequence>
261
+								<xsd:sequence minOccurs="0">
262
+									<xsd:element name="K_19" type="tns:TKwotowy">
263
+										<xsd:annotation>
264
+											<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 22% albo 23%</xsd:documentation>
265
+										</xsd:annotation>
266
+									</xsd:element>
267
+									<xsd:element name="K_20" type="tns:TKwotowy">
268
+										<xsd:annotation>
269
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 22% albo 23%</xsd:documentation>
270
+										</xsd:annotation>
271
+									</xsd:element>
272
+								</xsd:sequence>
273
+								<xsd:element name="K_21" type="tns:TKwotowy" minOccurs="0">
274
+									<xsd:annotation>
275
+										<xsd:documentation>Kwota netto - Wewnątrzwspólnotowa dostawa towarów</xsd:documentation>
276
+									</xsd:annotation>
277
+								</xsd:element>
278
+								<xsd:element name="K_22" type="tns:TKwotowy" minOccurs="0">
279
+									<xsd:annotation>
280
+										<xsd:documentation>Kwota netto - Eksport towarów</xsd:documentation>
281
+									</xsd:annotation>
282
+								</xsd:element>
283
+								<xsd:sequence minOccurs="0">
284
+									<xsd:element name="K_23" type="tns:TKwotowy">
285
+										<xsd:annotation>
286
+											<xsd:documentation>Kwota netto - Wewnątrzwspólnotowe nabycie towarów</xsd:documentation>
287
+										</xsd:annotation>
288
+									</xsd:element>
289
+									<xsd:element name="K_24" type="tns:TKwotowy">
290
+										<xsd:annotation>
291
+											<xsd:documentation>Kwota podatku należnego - Wewnątrzwspólnotowe nabycie towarów</xsd:documentation>
292
+										</xsd:annotation>
293
+									</xsd:element>
294
+								</xsd:sequence>
295
+								<xsd:sequence minOccurs="0">
296
+									<xsd:element name="K_25" type="tns:TKwotowy">
297
+										<xsd:annotation>
298
+											<xsd:documentation>Kwota netto - Import towarów podlegający rozliczeniu zgodnie z art. 33a ustawy</xsd:documentation>
299
+										</xsd:annotation>
300
+									</xsd:element>
301
+									<xsd:element name="K_26" type="tns:TKwotowy">
302
+										<xsd:annotation>
303
+											<xsd:documentation>Kwota podatku należnego - Import towarów podlegający rozliczeniu zgodnie z art. 33a ustawy</xsd:documentation>
304
+										</xsd:annotation>
305
+									</xsd:element>
306
+								</xsd:sequence>
307
+								<xsd:sequence minOccurs="0">
308
+									<xsd:element name="K_27" type="tns:TKwotowy">
309
+										<xsd:annotation>
310
+											<xsd:documentation>Kwota netto - Import usług z wyłączeniem usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28b ustawy</xsd:documentation>
311
+										</xsd:annotation>
312
+									</xsd:element>
313
+									<xsd:element name="K_28" type="tns:TKwotowy">
314
+										<xsd:annotation>
315
+											<xsd:documentation>Kwota podatku należnego - Import usług z wyłączeniem usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28b ustawy</xsd:documentation>
316
+										</xsd:annotation>
317
+									</xsd:element>
318
+								</xsd:sequence>
319
+								<xsd:sequence minOccurs="0">
320
+									<xsd:element name="K_29" type="tns:TKwotowy">
321
+										<xsd:annotation>
322
+											<xsd:documentation>Kwota netto - Import usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28b ustawy</xsd:documentation>
323
+										</xsd:annotation>
324
+									</xsd:element>
325
+									<xsd:element name="K_30" type="tns:TKwotowy">
326
+										<xsd:annotation>
327
+											<xsd:documentation>Kwota podatku należnego - Import usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28b ustawy</xsd:documentation>
328
+										</xsd:annotation>
329
+									</xsd:element>
330
+								</xsd:sequence>
331
+								<xsd:element name="K_31" type="tns:TKwotowy" minOccurs="0">
332
+									<xsd:annotation>
333
+										<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 lub 8 ustawy (wypełnia dostawca)</xsd:documentation>
334
+									</xsd:annotation>
335
+								</xsd:element>
336
+								<xsd:sequence minOccurs="0">
337
+									<xsd:element name="K_32" type="tns:TKwotowy">
338
+										<xsd:annotation>
339
+											<xsd:documentation>Kwota netto - Dostawa towarów, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 5 ustawy (wypełnia nabywca)</xsd:documentation>
340
+										</xsd:annotation>
341
+									</xsd:element>
342
+									<xsd:element name="K_33" type="tns:TKwotowy">
343
+										<xsd:annotation>
344
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 5 ustawy (wypełnia nabywca)</xsd:documentation>
345
+										</xsd:annotation>
346
+									</xsd:element>
347
+								</xsd:sequence>
348
+								<xsd:sequence minOccurs="0">
349
+									<xsd:element name="K_34" type="tns:TKwotowy">
350
+										<xsd:annotation>
351
+											<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 lub 8 ustawy (wypełnia nabywca)</xsd:documentation>
352
+										</xsd:annotation>
353
+									</xsd:element>
354
+									<xsd:element name="K_35" type="tns:TKwotowy">
355
+										<xsd:annotation>
356
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów oraz świadczenie usług, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 lub 8 ustawy (wypełnia nabywca)</xsd:documentation>
357
+										</xsd:annotation>
358
+									</xsd:element>
359
+								</xsd:sequence>
360
+								<xsd:element name="K_36" type="tns:TKwotowy" minOccurs="0">
361
+									<xsd:annotation>
362
+										<xsd:documentation>Kwota podatku należnego od towarów i usług objętych spisem z natury, o którym mowa w art. 14 ust. 5 ustawy</xsd:documentation>
363
+									</xsd:annotation>
364
+								</xsd:element>
365
+								<xsd:element name="K_37" type="tns:TKwotowy" minOccurs="0">
366
+									<xsd:annotation>
367
+										<xsd:documentation>Zwrot odliczonej lub zwróconej kwoty wydatkowanej na zakup kas rejestrujących, o którym mowa w art. 111 ust. 6 ustawy</xsd:documentation>
368
+									</xsd:annotation>
369
+								</xsd:element>
370
+								<xsd:element name="K_38" type="tns:TKwotowy" minOccurs="0">
371
+									<xsd:annotation>
372
+										<xsd:documentation>Kwota podatku należnego od wewnątrzwspólnotowego nabycia środków transportu, wykazanego w elemencie K_24, podlegająca wpłacie w terminie, o którym mowa w art. 103 ust. 3, w związku z ust. 4 ustawy</xsd:documentation>
373
+									</xsd:annotation>
374
+								</xsd:element>
375
+								<xsd:element name="K_39" type="tns:TKwotowy" minOccurs="0">
376
+									<xsd:annotation>
377
+										<xsd:documentation>Kwota podatku od wewnątrzwspólnotowego nabycia paliw silnikowych, podlegająca wpłacie w terminach,
378
+o których mowa w art. 103 ust. 5a i 5b ustawy</xsd:documentation>
379
+									</xsd:annotation>
380
+								</xsd:element>
381
+							</xsd:sequence>
382
+							<xsd:attribute name="typ" use="required" fixed="G"/>
383
+						</xsd:complexType>
384
+					</xsd:element>
385
+					<xsd:element name="SprzedazCtrl">
386
+						<xsd:annotation>
387
+							<xsd:documentation>Sumy kontrolne dla ewidencji sprzedaży VAT</xsd:documentation>
388
+						</xsd:annotation>
389
+						<xsd:complexType>
390
+							<xsd:sequence>
391
+								<xsd:element name="LiczbaWierszySprzedazy" type="tns:TNaturalnyJPK">
392
+									<xsd:annotation>
393
+										<xsd:documentation>Liczba wierszy ewidencji sprzedaży, w okresie którego dotyczy JPK</xsd:documentation>
394
+									</xsd:annotation>
395
+								</xsd:element>
396
+								<xsd:element name="PodatekNalezny" type="tns:TKwotowy">
397
+									<xsd:annotation>
398
+										<xsd:documentation>Podatek należny wg ewidencji sprzedaży w okresie, którego dotyczy JPK - suma kwot z elementów K_16, K_18, K_20, K_24, K_26, K_28, K_30, K_33, K_35, K_36 i K_37 pomniejszona o kwotę z elementów K_38 i K_39</xsd:documentation>
399
+									</xsd:annotation>
400
+								</xsd:element>
401
+							</xsd:sequence>
402
+						</xsd:complexType>
403
+					</xsd:element>
404
+				</xsd:sequence>
405
+				<xsd:sequence minOccurs="0">
406
+					<xsd:element name="ZakupWiersz" maxOccurs="unbounded">
407
+						<xsd:annotation>
408
+							<xsd:documentation>Ewidencja zakupu VAT</xsd:documentation>
409
+						</xsd:annotation>
410
+						<xsd:complexType>
411
+							<xsd:sequence>
412
+								<xsd:element name="LpZakupu" type="tns:TNaturalnyJPK">
413
+									<xsd:annotation>
414
+										<xsd:documentation>Lp. wiersza ewidencji zakupu VAT</xsd:documentation>
415
+									</xsd:annotation>
416
+								</xsd:element>
417
+								<xsd:element name="NrDostawcy" type="etd:TNrIdentyfikacjiPodatkowej">
418
+									<xsd:annotation>
419
+										<xsd:documentation>Numer, za pomocą którego dostawca (kontrahent) jest zidentyfikowany na potrzeby podatku lub podatku od wartości dodanej</xsd:documentation>
420
+									</xsd:annotation>
421
+								</xsd:element>
422
+								<xsd:element name="NazwaDostawcy" type="tns:TZnakowyJPK">
423
+									<xsd:annotation>
424
+										<xsd:documentation>Imię i nazwisko lub nazwa dostawcy (kontrahenta)</xsd:documentation>
425
+									</xsd:annotation>
426
+								</xsd:element>
427
+								<xsd:element name="AdresDostawcy" type="tns:TZnakowyJPK">
428
+									<xsd:annotation>
429
+										<xsd:documentation>Adres dostawcy (kontrahenta)</xsd:documentation>
430
+									</xsd:annotation>
431
+								</xsd:element>
432
+								<xsd:element name="DowodZakupu" type="tns:TZnakowyJPK">
433
+									<xsd:annotation>
434
+										<xsd:documentation>Numer dowodu zakupu</xsd:documentation>
435
+									</xsd:annotation>
436
+								</xsd:element>
437
+								<xsd:element name="DataZakupu" type="etd:TData">
438
+									<xsd:annotation>
439
+										<xsd:documentation>Data wystawienia dowodu zakupu</xsd:documentation>
440
+									</xsd:annotation>
441
+								</xsd:element>
442
+								<xsd:element name="DataWplywu" type="etd:TData" minOccurs="0">
443
+									<xsd:annotation>
444
+										<xsd:documentation>Data wpływu dowodu zakupu</xsd:documentation>
445
+									</xsd:annotation>
446
+								</xsd:element>
447
+								<xsd:sequence minOccurs="0">
448
+									<xsd:element name="K_43" type="tns:TKwotowy">
449
+										<xsd:annotation>
450
+											<xsd:documentation>Kwota netto - Nabycie towarów i usług zaliczanych u podatnika do środków trwałych</xsd:documentation>
451
+										</xsd:annotation>
452
+									</xsd:element>
453
+									<xsd:element name="K_44" type="tns:TKwotowy">
454
+										<xsd:annotation>
455
+											<xsd:documentation>Kwota podatku naliczonego - Nabycie towarów i usług zaliczanych u podatnika do środków trwałych</xsd:documentation>
456
+										</xsd:annotation>
457
+									</xsd:element>
458
+								</xsd:sequence>
459
+								<xsd:sequence minOccurs="0">
460
+									<xsd:element name="K_45" type="tns:TKwotowy">
461
+										<xsd:annotation>
462
+											<xsd:documentation>Kwota netto - Nabycie towarów i usług pozostałych</xsd:documentation>
463
+										</xsd:annotation>
464
+									</xsd:element>
465
+									<xsd:element name="K_46" type="tns:TKwotowy">
466
+										<xsd:annotation>
467
+											<xsd:documentation>Kwota podatku naliczonego - Nabycie towarów i usług pozostałych</xsd:documentation>
468
+										</xsd:annotation>
469
+									</xsd:element>
470
+								</xsd:sequence>
471
+								<xsd:element name="K_47" type="tns:TKwotowy" minOccurs="0">
472
+									<xsd:annotation>
473
+										<xsd:documentation>Korekta podatku naliczonego od nabycia środków trwałych</xsd:documentation>
474
+									</xsd:annotation>
475
+								</xsd:element>
476
+								<xsd:element name="K_48" type="tns:TKwotowy" minOccurs="0">
477
+									<xsd:annotation>
478
+										<xsd:documentation>Korekta podatku naliczonego od pozostałych nabyć</xsd:documentation>
479
+									</xsd:annotation>
480
+								</xsd:element>
481
+								<xsd:element name="K_49" type="tns:TKwotowy" minOccurs="0">
482
+									<xsd:annotation>
483
+										<xsd:documentation>Korekta podatku naliczonego, o której mowa w art. 89b ust. 1 ustawy</xsd:documentation>
484
+									</xsd:annotation>
485
+								</xsd:element>
486
+								<xsd:element name="K_50" type="tns:TKwotowy" minOccurs="0">
487
+									<xsd:annotation>
488
+										<xsd:documentation>Korekta podatku naliczonego, o której mowa w art. 89b ust. 4 ustawy</xsd:documentation>
489
+									</xsd:annotation>
490
+								</xsd:element>
491
+							</xsd:sequence>
492
+							<xsd:attribute name="typ" use="required" fixed="G"/>
493
+						</xsd:complexType>
494
+					</xsd:element>
495
+					<xsd:element name="ZakupCtrl">
496
+						<xsd:annotation>
497
+							<xsd:documentation>Sumy kontrolne dla ewidencji zakupu VAT</xsd:documentation>
498
+						</xsd:annotation>
499
+						<xsd:complexType>
500
+							<xsd:sequence>
501
+								<xsd:element name="LiczbaWierszyZakupow" type="tns:TNaturalnyJPK">
502
+									<xsd:annotation>
503
+										<xsd:documentation>Liczba wierszy ewidencji zakupu, w okresie którego dotyczy JPK</xsd:documentation>
504
+									</xsd:annotation>
505
+								</xsd:element>
506
+								<xsd:element name="PodatekNaliczony" type="tns:TKwotowy">
507
+									<xsd:annotation>
508
+										<xsd:documentation>Razem kwota podatku naliczonego do odliczenia - suma kwot z elementów K_44, K_46, K_47, K_48, K_49 i K_50</xsd:documentation>
509
+									</xsd:annotation>
510
+								</xsd:element>
511
+							</xsd:sequence>
512
+						</xsd:complexType>
513
+					</xsd:element>
514
+				</xsd:sequence>
515
+			</xsd:sequence>
516
+		</xsd:complexType>
517
+	</xsd:element>
518
+</xsd:schema>

+ 2770
- 0
JPK_v1/Schemat_JPK_VAT(3)_v1-1.Designer.cs
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 506
- 0
JPK_v1/Schemat_JPK_VAT(3)_v1-1.xsd Просмотреть файл

@@ -0,0 +1,506 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:etd="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/" xmlns:tns="http://jpk.mf.gov.pl/wzor/2017/11/13/1113/" targetNamespace="http://jpk.mf.gov.pl/wzor/2017/11/13/1113/" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" xml:lang="pl">
3
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/StrukturyDanych_v4-0E.xsd"/>
4
+	<xsd:simpleType name="TKodFormularza">
5
+		<xsd:annotation>
6
+			<xsd:documentation>Symbol wzoru formularza</xsd:documentation>
7
+		</xsd:annotation>
8
+		<xsd:restriction base="xsd:string">
9
+			<xsd:enumeration value="JPK_VAT"/>
10
+		</xsd:restriction>
11
+	</xsd:simpleType>
12
+	<xsd:simpleType name="TDataCzas">
13
+		<xsd:restriction base="etd:TDataCzas">
14
+			<xsd:minInclusive value="2016-07-01T00:00:00Z"/>
15
+			<xsd:maxInclusive value="2030-12-31T23:59:59Z"/>
16
+		</xsd:restriction>
17
+	</xsd:simpleType>
18
+	<xsd:simpleType name="TData">
19
+		<xsd:restriction base="etd:TData">
20
+			<xsd:minInclusive value="2016-07-01"/>
21
+			<xsd:maxInclusive value="2030-01-01"/>
22
+		</xsd:restriction>
23
+	</xsd:simpleType>
24
+	<xsd:simpleType name="TDataT">
25
+		<xsd:annotation>
26
+			<xsd:documentation>Data transakcji lub zdarzenia</xsd:documentation>
27
+		</xsd:annotation>
28
+		<xsd:restriction base="etd:TData">
29
+			<xsd:minInclusive value="2006-01-01"/>
30
+			<xsd:maxInclusive value="2030-01-01"/>
31
+		</xsd:restriction>
32
+	</xsd:simpleType>
33
+	<xsd:complexType name="TNaglowek">
34
+		<xsd:annotation>
35
+			<xsd:documentation>Nagłówek JPK_VAT</xsd:documentation>
36
+		</xsd:annotation>
37
+		<xsd:sequence>
38
+			<xsd:element name="KodFormularza">
39
+				<xsd:complexType>
40
+					<xsd:simpleContent>
41
+						<xsd:extension base="tns:TKodFormularza">
42
+						<xsd:attribute name="kodSystemowy" type="xsd:string" use="required" fixed="JPK_VAT (3)"/>
43
+							<xsd:attribute name="wersjaSchemy" type="xsd:string" use="required" fixed="1-1"/>
44
+						</xsd:extension>
45
+					</xsd:simpleContent>
46
+				</xsd:complexType>
47
+			</xsd:element>
48
+			<xsd:element name="WariantFormularza">
49
+				<xsd:simpleType>
50
+					<xsd:restriction base="xsd:byte">
51
+						<xsd:enumeration value="3"/>
52
+					</xsd:restriction>
53
+				</xsd:simpleType>
54
+			</xsd:element>
55
+			<xsd:element name="CelZlozenia" default="0">
56
+				<xsd:simpleType>
57
+					<xsd:restriction base="etd:TNaturalny">
58
+						<xsd:maxInclusive value="999"/>
59
+					</xsd:restriction>
60
+				</xsd:simpleType>
61
+			</xsd:element>
62
+			<xsd:element name="DataWytworzeniaJPK" type="tns:TDataCzas">
63
+				<xsd:annotation>
64
+					<xsd:documentation>Data i czas wytworzenia JPK_VAT</xsd:documentation>
65
+				</xsd:annotation>
66
+			</xsd:element>
67
+			<xsd:element name="DataOd" type="tns:TData">
68
+				<xsd:annotation>
69
+					<xsd:documentation>Data początkowa okresu, którego dotyczy JPK_VAT</xsd:documentation>
70
+				</xsd:annotation>
71
+			</xsd:element>
72
+			<xsd:element name="DataDo" type="tns:TData">
73
+				<xsd:annotation>
74
+					<xsd:documentation>Data końcowa okresu, którego dotyczy JPK_VAT</xsd:documentation>
75
+				</xsd:annotation>
76
+			</xsd:element>
77
+			<xsd:element name="NazwaSystemu">
78
+				<xsd:annotation>
79
+					<xsd:documentation>Nazwa systemu, z którego pochodzą dane</xsd:documentation>
80
+				</xsd:annotation>
81
+				<xsd:simpleType>
82
+					<xsd:restriction base="xsd:token">
83
+						<xsd:minLength value="1"/>
84
+						<xsd:maxLength value="240"/>
85
+					</xsd:restriction>
86
+				</xsd:simpleType>
87
+			</xsd:element>
88
+		</xsd:sequence>
89
+	</xsd:complexType>
90
+	<xsd:simpleType name="TKwotowy">
91
+		<xsd:annotation>
92
+			<xsd:documentation>Wartość numeryczna 18 znaków max, w tym 2 znaki po przecinku</xsd:documentation>
93
+		</xsd:annotation>
94
+		<xsd:restriction base="xsd:decimal">
95
+			<xsd:totalDigits value="18"/>
96
+			<xsd:fractionDigits value="2"/>
97
+		</xsd:restriction>
98
+	</xsd:simpleType>
99
+	<xsd:simpleType name="TNaturalnyJPK">
100
+		<xsd:annotation>
101
+			<xsd:documentation>Liczby naturalne większe od zera</xsd:documentation>
102
+		</xsd:annotation>
103
+		<xsd:restriction base="etd:TNaturalny">
104
+			<xsd:minExclusive value="0"/>
105
+		</xsd:restriction>
106
+	</xsd:simpleType>
107
+	<xsd:simpleType name="TZnakowyJPK">
108
+		<xsd:annotation>
109
+			<xsd:documentation>Typ znakowy ograniczony do 256 znaków</xsd:documentation>
110
+		</xsd:annotation>
111
+		<xsd:restriction base="xsd:token">
112
+			<xsd:minLength value="1"/>
113
+			<xsd:maxLength value="256"/>
114
+		</xsd:restriction>
115
+	</xsd:simpleType>
116
+	<xsd:simpleType name="TAdresEmail">
117
+		<xsd:annotation>
118
+			<xsd:documentation>Adres e-mail</xsd:documentation>
119
+		</xsd:annotation>
120
+		<xsd:restriction base="xsd:token">
121
+			<xsd:minLength value="5"/>
122
+			<xsd:maxLength value="50"/>
123
+			<xsd:pattern value="([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})"/>
124
+		</xsd:restriction>
125
+	</xsd:simpleType>
126
+	<xsd:element name="JPK">
127
+		<xsd:annotation>
128
+			<xsd:documentation>Jednolity plik kontrolny dla ewidencji zakupu i sprzedaży VAT</xsd:documentation>
129
+		</xsd:annotation>
130
+		<xsd:complexType>
131
+			<xsd:sequence>
132
+				<xsd:element name="Naglowek" type="tns:TNaglowek">
133
+					<xsd:annotation>
134
+						<xsd:documentation>Nagłówek JPK_VAT</xsd:documentation>
135
+					</xsd:annotation>
136
+				</xsd:element>
137
+				<xsd:element name="Podmiot1">
138
+					<xsd:complexType>
139
+						<xsd:sequence>
140
+							<xsd:element name="NIP" type="etd:TNrNIP">
141
+								<xsd:annotation>
142
+									<xsd:documentation>Identyfikator podatkowy NIP</xsd:documentation>
143
+								</xsd:annotation>
144
+							</xsd:element>
145
+							<xsd:element name="PelnaNazwa">
146
+								<xsd:annotation>
147
+									<xsd:documentation>Pełna nazwa</xsd:documentation>
148
+								</xsd:annotation>
149
+								<xsd:simpleType>
150
+									<xsd:restriction base="xsd:token">
151
+										<xsd:maxLength value="240"/>
152
+										<xsd:minLength value="1"/>
153
+									</xsd:restriction>
154
+								</xsd:simpleType>
155
+							</xsd:element>
156
+							<xsd:element name="Email" type="tns:TAdresEmail" minOccurs="0"/>
157
+						</xsd:sequence>
158
+					</xsd:complexType>
159
+				</xsd:element>
160
+				<xsd:sequence minOccurs="0">
161
+					<xsd:element name="SprzedazWiersz" maxOccurs="unbounded">
162
+						<xsd:annotation>
163
+							<xsd:documentation>Ewidencja sprzedaży oraz nabyć towarów i usług dla których podmiot obowiązany jest naliczyć podatek należny - tj. wewnątrzwspólnotowe nabycia towarów, import towarów podlegających rozliczeniu zgodnie z art. 33 a ustawy, import usług z wyłączeniem usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28 b ustawy, import usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28 b ustawy, dostawa towarów, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 5 ustawy (wypełnia nabywca), dostawa towarów, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 lub 8 ustawy (wypełnia nabywca)</xsd:documentation>
164
+						</xsd:annotation>
165
+						<xsd:complexType>
166
+							<xsd:sequence>
167
+								<xsd:element name="LpSprzedazy" type="tns:TNaturalnyJPK">
168
+									<xsd:annotation>
169
+										<xsd:documentation>Lp. wiersza ewidencji sprzedaży VAT</xsd:documentation>
170
+									</xsd:annotation>
171
+								</xsd:element>
172
+								<xsd:element name="NrKontrahenta" type="etd:TNrIdentyfikacjiPodatkowej">
173
+									<xsd:annotation>
174
+										<xsd:documentation>Numer, za pomocą którego kontrahent jest zidentyfikowany na potrzeby podatku lub podatku od wartości dodanej</xsd:documentation>
175
+									</xsd:annotation>
176
+								</xsd:element>
177
+								<xsd:element name="NazwaKontrahenta" type="tns:TZnakowyJPK">
178
+									<xsd:annotation>
179
+										<xsd:documentation>Imię i nazwisko lub nazwa kontrahenta</xsd:documentation>
180
+									</xsd:annotation>
181
+								</xsd:element>
182
+								<xsd:element name="AdresKontrahenta" type="tns:TZnakowyJPK">
183
+									<xsd:annotation>
184
+										<xsd:documentation>Adres kontrahenta</xsd:documentation>
185
+									</xsd:annotation>
186
+								</xsd:element>
187
+								<xsd:element name="DowodSprzedazy" type="tns:TZnakowyJPK">
188
+									<xsd:annotation>
189
+										<xsd:documentation>Numer dowodu sprzedaży</xsd:documentation>
190
+									</xsd:annotation>
191
+								</xsd:element>
192
+								<xsd:element name="DataWystawienia" type="tns:TDataT">
193
+									<xsd:annotation>
194
+										<xsd:documentation>Data wystawienia dowodu sprzedaży</xsd:documentation>
195
+									</xsd:annotation>
196
+								</xsd:element>
197
+								<xsd:element name="DataSprzedazy" type="tns:TDataT" minOccurs="0">
198
+									<xsd:annotation>
199
+										<xsd:documentation>Data sprzedaży, o ile jest określona i różni się od daty wystawienia dowodu sprzedaży. W przeciwnym przypadku - pole puste</xsd:documentation>
200
+									</xsd:annotation>
201
+								</xsd:element>
202
+								<xsd:element name="K_10" type="tns:TKwotowy" minOccurs="0">
203
+									<xsd:annotation>
204
+										<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, zwolnione od podatku</xsd:documentation>
205
+									</xsd:annotation>
206
+								</xsd:element>
207
+								<xsd:element name="K_11" type="tns:TKwotowy" minOccurs="0">
208
+									<xsd:annotation>
209
+										<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług poza terytorium kraju</xsd:documentation>
210
+									</xsd:annotation>
211
+								</xsd:element>
212
+								<xsd:element name="K_12" type="tns:TKwotowy" minOccurs="0">
213
+									<xsd:annotation>
214
+										<xsd:documentation>Kwota netto - w tym świadczenie usług, o których mowa w art. 100 ust. 1 pkt 4 ustawy</xsd:documentation>
215
+									</xsd:annotation>
216
+								</xsd:element>
217
+								<xsd:element name="K_13" type="tns:TKwotowy" minOccurs="0">
218
+									<xsd:annotation>
219
+										<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 0%</xsd:documentation>
220
+									</xsd:annotation>
221
+								</xsd:element>
222
+								<xsd:element name="K_14" type="tns:TKwotowy" minOccurs="0">
223
+									<xsd:annotation>
224
+										<xsd:documentation>Kwota netto - w tym dostawa towarów, o której mowa w art. 129 ustawy</xsd:documentation>
225
+									</xsd:annotation>
226
+								</xsd:element>
227
+								<xsd:sequence minOccurs="0">
228
+									<xsd:element name="K_15" type="tns:TKwotowy">
229
+										<xsd:annotation>
230
+											<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 5%</xsd:documentation>
231
+										</xsd:annotation>
232
+									</xsd:element>
233
+									<xsd:element name="K_16" type="tns:TKwotowy">
234
+										<xsd:annotation>
235
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 5%</xsd:documentation>
236
+										</xsd:annotation>
237
+									</xsd:element>
238
+								</xsd:sequence>
239
+								<xsd:sequence minOccurs="0">
240
+									<xsd:element name="K_17" type="tns:TKwotowy">
241
+										<xsd:annotation>
242
+											<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 7% albo 8%</xsd:documentation>
243
+										</xsd:annotation>
244
+									</xsd:element>
245
+									<xsd:element name="K_18" type="tns:TKwotowy">
246
+										<xsd:annotation>
247
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 7% albo 8%</xsd:documentation>
248
+										</xsd:annotation>
249
+									</xsd:element>
250
+								</xsd:sequence>
251
+								<xsd:sequence minOccurs="0">
252
+									<xsd:element name="K_19" type="tns:TKwotowy">
253
+										<xsd:annotation>
254
+											<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 22% albo 23%</xsd:documentation>
255
+										</xsd:annotation>
256
+									</xsd:element>
257
+									<xsd:element name="K_20" type="tns:TKwotowy">
258
+										<xsd:annotation>
259
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów oraz świadczenie usług na terytorium kraju, opodatkowane stawką 22% albo 23%</xsd:documentation>
260
+										</xsd:annotation>
261
+									</xsd:element>
262
+								</xsd:sequence>
263
+								<xsd:element name="K_21" type="tns:TKwotowy" minOccurs="0">
264
+									<xsd:annotation>
265
+										<xsd:documentation>Kwota netto - Wewnątrzwspólnotowa dostawa towarów</xsd:documentation>
266
+									</xsd:annotation>
267
+								</xsd:element>
268
+								<xsd:element name="K_22" type="tns:TKwotowy" minOccurs="0">
269
+									<xsd:annotation>
270
+										<xsd:documentation>Kwota netto - Eksport towarów</xsd:documentation>
271
+									</xsd:annotation>
272
+								</xsd:element>
273
+								<xsd:sequence minOccurs="0">
274
+									<xsd:element name="K_23" type="tns:TKwotowy">
275
+										<xsd:annotation>
276
+											<xsd:documentation>Kwota netto - Wewnątrzwspólnotowe nabycie towarów</xsd:documentation>
277
+										</xsd:annotation>
278
+									</xsd:element>
279
+									<xsd:element name="K_24" type="tns:TKwotowy">
280
+										<xsd:annotation>
281
+											<xsd:documentation>Kwota podatku należnego - Wewnątrzwspólnotowe nabycie towarów</xsd:documentation>
282
+										</xsd:annotation>
283
+									</xsd:element>
284
+								</xsd:sequence>
285
+								<xsd:sequence minOccurs="0">
286
+									<xsd:element name="K_25" type="tns:TKwotowy">
287
+										<xsd:annotation>
288
+											<xsd:documentation>Kwota netto - Import towarów podlegający rozliczeniu zgodnie z art. 33a ustawy</xsd:documentation>
289
+										</xsd:annotation>
290
+									</xsd:element>
291
+									<xsd:element name="K_26" type="tns:TKwotowy">
292
+										<xsd:annotation>
293
+											<xsd:documentation>Kwota podatku należnego - Import towarów podlegający rozliczeniu zgodnie z art. 33a ustawy</xsd:documentation>
294
+										</xsd:annotation>
295
+									</xsd:element>
296
+								</xsd:sequence>
297
+								<xsd:sequence minOccurs="0">
298
+									<xsd:element name="K_27" type="tns:TKwotowy">
299
+										<xsd:annotation>
300
+											<xsd:documentation>Kwota netto - Import usług z wyłączeniem usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28b ustawy</xsd:documentation>
301
+										</xsd:annotation>
302
+									</xsd:element>
303
+									<xsd:element name="K_28" type="tns:TKwotowy">
304
+										<xsd:annotation>
305
+											<xsd:documentation>Kwota podatku należnego - Import usług z wyłączeniem usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28b ustawy</xsd:documentation>
306
+										</xsd:annotation>
307
+									</xsd:element>
308
+								</xsd:sequence>
309
+								<xsd:sequence minOccurs="0">
310
+									<xsd:element name="K_29" type="tns:TKwotowy">
311
+										<xsd:annotation>
312
+											<xsd:documentation>Kwota netto - Import usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28b ustawy</xsd:documentation>
313
+										</xsd:annotation>
314
+									</xsd:element>
315
+									<xsd:element name="K_30" type="tns:TKwotowy">
316
+										<xsd:annotation>
317
+											<xsd:documentation>Kwota podatku należnego - Import usług nabywanych od podatników podatku od wartości dodanej, do których stosuje się art. 28b ustawy</xsd:documentation>
318
+										</xsd:annotation>
319
+									</xsd:element>
320
+								</xsd:sequence>
321
+								<xsd:element name="K_31" type="tns:TKwotowy" minOccurs="0">
322
+									<xsd:annotation>
323
+										<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 lub 8 ustawy (wypełnia dostawca)</xsd:documentation>
324
+									</xsd:annotation>
325
+								</xsd:element>
326
+								<xsd:sequence minOccurs="0">
327
+									<xsd:element name="K_32" type="tns:TKwotowy">
328
+										<xsd:annotation>
329
+											<xsd:documentation>Kwota netto - Dostawa towarów, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 5 ustawy (wypełnia nabywca)</xsd:documentation>
330
+										</xsd:annotation>
331
+									</xsd:element>
332
+									<xsd:element name="K_33" type="tns:TKwotowy">
333
+										<xsd:annotation>
334
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 5 ustawy (wypełnia nabywca)</xsd:documentation>
335
+										</xsd:annotation>
336
+									</xsd:element>
337
+								</xsd:sequence>
338
+								<xsd:sequence minOccurs="0">
339
+									<xsd:element name="K_34" type="tns:TKwotowy">
340
+										<xsd:annotation>
341
+											<xsd:documentation>Kwota netto - Dostawa towarów oraz świadczenie usług, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 lub 8 ustawy (wypełnia nabywca)</xsd:documentation>
342
+										</xsd:annotation>
343
+									</xsd:element>
344
+									<xsd:element name="K_35" type="tns:TKwotowy">
345
+										<xsd:annotation>
346
+											<xsd:documentation>Kwota podatku należnego - Dostawa towarów oraz świadczenie usług, dla których podatnikiem jest nabywca zgodnie z art. 17 ust. 1 pkt 7 lub 8 ustawy (wypełnia nabywca)</xsd:documentation>
347
+										</xsd:annotation>
348
+									</xsd:element>
349
+								</xsd:sequence>
350
+								<xsd:element name="K_36" type="tns:TKwotowy" minOccurs="0">
351
+									<xsd:annotation>
352
+										<xsd:documentation>Kwota podatku należnego od towarów i usług objętych spisem z natury, o którym mowa w art. 14 ust. 5 ustawy</xsd:documentation>
353
+									</xsd:annotation>
354
+								</xsd:element>
355
+								<xsd:element name="K_37" type="tns:TKwotowy" minOccurs="0">
356
+									<xsd:annotation>
357
+										<xsd:documentation>Zwrot odliczonej lub zwróconej kwoty wydatkowanej na zakup kas rejestrujących, o którym mowa w art. 111 ust. 6 ustawy</xsd:documentation>
358
+									</xsd:annotation>
359
+								</xsd:element>
360
+								<xsd:element name="K_38" type="tns:TKwotowy" minOccurs="0">
361
+									<xsd:annotation>
362
+										<xsd:documentation>Kwota podatku należnego od wewnątrzwspólnotowego nabycia środków transportu, wykazanego w elemencie K_24, podlegająca wpłacie w terminie, o którym mowa w art. 103 ust. 3, w związku z ust. 4 ustawy</xsd:documentation>
363
+									</xsd:annotation>
364
+								</xsd:element>
365
+								<xsd:element name="K_39" type="tns:TKwotowy" minOccurs="0">
366
+									<xsd:annotation>
367
+										<xsd:documentation>Kwota podatku od wewnątrzwspólnotowego nabycia paliw silnikowych, podlegająca wpłacie w terminach,
368
+o których mowa w art. 103 ust. 5a i 5b ustawy</xsd:documentation>
369
+									</xsd:annotation>
370
+								</xsd:element>
371
+							</xsd:sequence>
372
+						</xsd:complexType>
373
+					</xsd:element>
374
+					<xsd:element name="SprzedazCtrl">
375
+						<xsd:annotation>
376
+							<xsd:documentation>Sumy kontrolne dla ewidencji sprzedaży VAT</xsd:documentation>
377
+						</xsd:annotation>
378
+						<xsd:complexType>
379
+							<xsd:sequence>
380
+								<xsd:element name="LiczbaWierszySprzedazy" type="tns:TNaturalnyJPK">
381
+									<xsd:annotation>
382
+										<xsd:documentation>Liczba wierszy ewidencji sprzedaży, w okresie którego dotyczy JPK</xsd:documentation>
383
+									</xsd:annotation>
384
+								</xsd:element>
385
+								<xsd:element name="PodatekNalezny" type="tns:TKwotowy">
386
+									<xsd:annotation>
387
+										<xsd:documentation>Podatek należny wg ewidencji sprzedaży w okresie, którego dotyczy JPK - suma kwot z elementów K_16, K_18, K_20, K_24, K_26, K_28, K_30, K_33, K_35, K_36 i K_37 pomniejszona o kwotę z elementów K_38 i K_39</xsd:documentation>
388
+									</xsd:annotation>
389
+								</xsd:element>
390
+							</xsd:sequence>
391
+						</xsd:complexType>
392
+					</xsd:element>
393
+				</xsd:sequence>
394
+				<xsd:sequence minOccurs="0">
395
+					<xsd:element name="ZakupWiersz" maxOccurs="unbounded">
396
+						<xsd:annotation>
397
+							<xsd:documentation>Ewidencja zakupu VAT</xsd:documentation>
398
+						</xsd:annotation>
399
+						<xsd:complexType>
400
+							<xsd:sequence>
401
+								<xsd:element name="LpZakupu" type="tns:TNaturalnyJPK">
402
+									<xsd:annotation>
403
+										<xsd:documentation>Lp. wiersza ewidencji zakupu VAT</xsd:documentation>
404
+									</xsd:annotation>
405
+								</xsd:element>
406
+								<xsd:element name="NrDostawcy" type="etd:TNrIdentyfikacjiPodatkowej">
407
+									<xsd:annotation>
408
+										<xsd:documentation>Numer, za pomocą którego dostawca (kontrahent) jest zidentyfikowany na potrzeby podatku lub podatku od wartości dodanej</xsd:documentation>
409
+									</xsd:annotation>
410
+								</xsd:element>
411
+								<xsd:element name="NazwaDostawcy" type="tns:TZnakowyJPK">
412
+									<xsd:annotation>
413
+										<xsd:documentation>Imię i nazwisko lub nazwa dostawcy (kontrahenta)</xsd:documentation>
414
+									</xsd:annotation>
415
+								</xsd:element>
416
+								<xsd:element name="AdresDostawcy" type="tns:TZnakowyJPK">
417
+									<xsd:annotation>
418
+										<xsd:documentation>Adres dostawcy (kontrahenta)</xsd:documentation>
419
+									</xsd:annotation>
420
+								</xsd:element>
421
+								<xsd:element name="DowodZakupu" type="tns:TZnakowyJPK">
422
+									<xsd:annotation>
423
+										<xsd:documentation>Numer dowodu zakupu</xsd:documentation>
424
+									</xsd:annotation>
425
+								</xsd:element>
426
+								<xsd:element name="DataZakupu" type="tns:TDataT">
427
+									<xsd:annotation>
428
+										<xsd:documentation>Data wystawienia dowodu zakupu</xsd:documentation>
429
+									</xsd:annotation>
430
+								</xsd:element>
431
+								<xsd:element name="DataWplywu" type="tns:TDataT" minOccurs="0">
432
+									<xsd:annotation>
433
+										<xsd:documentation>Data wpływu dowodu zakupu</xsd:documentation>
434
+									</xsd:annotation>
435
+								</xsd:element>
436
+								<xsd:sequence minOccurs="0">
437
+									<xsd:element name="K_43" type="tns:TKwotowy">
438
+										<xsd:annotation>
439
+											<xsd:documentation>Kwota netto - Nabycie towarów i usług zaliczanych u podatnika do środków trwałych</xsd:documentation>
440
+										</xsd:annotation>
441
+									</xsd:element>
442
+									<xsd:element name="K_44" type="tns:TKwotowy">
443
+										<xsd:annotation>
444
+											<xsd:documentation>Kwota podatku naliczonego - Nabycie towarów i usług zaliczanych u podatnika do środków trwałych</xsd:documentation>
445
+										</xsd:annotation>
446
+									</xsd:element>
447
+								</xsd:sequence>
448
+								<xsd:sequence minOccurs="0">
449
+									<xsd:element name="K_45" type="tns:TKwotowy">
450
+										<xsd:annotation>
451
+											<xsd:documentation>Kwota netto - Nabycie towarów i usług pozostałych</xsd:documentation>
452
+										</xsd:annotation>
453
+									</xsd:element>
454
+									<xsd:element name="K_46" type="tns:TKwotowy">
455
+										<xsd:annotation>
456
+											<xsd:documentation>Kwota podatku naliczonego - Nabycie towarów i usług pozostałych</xsd:documentation>
457
+										</xsd:annotation>
458
+									</xsd:element>
459
+								</xsd:sequence>
460
+								<xsd:element name="K_47" type="tns:TKwotowy" minOccurs="0">
461
+									<xsd:annotation>
462
+										<xsd:documentation>Korekta podatku naliczonego od nabycia środków trwałych</xsd:documentation>
463
+									</xsd:annotation>
464
+								</xsd:element>
465
+								<xsd:element name="K_48" type="tns:TKwotowy" minOccurs="0">
466
+									<xsd:annotation>
467
+										<xsd:documentation>Korekta podatku naliczonego od pozostałych nabyć</xsd:documentation>
468
+									</xsd:annotation>
469
+								</xsd:element>
470
+								<xsd:element name="K_49" type="tns:TKwotowy" minOccurs="0">
471
+									<xsd:annotation>
472
+										<xsd:documentation>Korekta podatku naliczonego, o której mowa w art. 89b ust. 1 ustawy</xsd:documentation>
473
+									</xsd:annotation>
474
+								</xsd:element>
475
+								<xsd:element name="K_50" type="tns:TKwotowy" minOccurs="0">
476
+									<xsd:annotation>
477
+										<xsd:documentation>Korekta podatku naliczonego, o której mowa w art. 89b ust. 4 ustawy</xsd:documentation>
478
+									</xsd:annotation>
479
+								</xsd:element>
480
+							</xsd:sequence>
481
+						</xsd:complexType>
482
+					</xsd:element>
483
+					<xsd:element name="ZakupCtrl">
484
+						<xsd:annotation>
485
+							<xsd:documentation>Sumy kontrolne dla ewidencji zakupu VAT</xsd:documentation>
486
+						</xsd:annotation>
487
+						<xsd:complexType>
488
+							<xsd:sequence>
489
+								<xsd:element name="LiczbaWierszyZakupow" type="tns:TNaturalnyJPK">
490
+									<xsd:annotation>
491
+										<xsd:documentation>Liczba wierszy ewidencji zakupu, w okresie którego dotyczy JPK</xsd:documentation>
492
+									</xsd:annotation>
493
+								</xsd:element>
494
+								<xsd:element name="PodatekNaliczony" type="tns:TKwotowy">
495
+									<xsd:annotation>
496
+										<xsd:documentation>Razem kwota podatku naliczonego do odliczenia - suma kwot z elementów K_44, K_46, K_47, K_48, K_49 i K_50</xsd:documentation>
497
+									</xsd:annotation>
498
+								</xsd:element>
499
+							</xsd:sequence>
500
+						</xsd:complexType>
501
+					</xsd:element>
502
+				</xsd:sequence>
503
+			</xsd:sequence>
504
+		</xsd:complexType>
505
+	</xsd:element>
506
+</xsd:schema>

+ 5347
- 0
JPK_v1/Schemat_JPK_WB(1)_v1-0.Designer.cs
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 220
- 0
JPK_v1/Schemat_JPK_WB(1)_v1-0.xsd Просмотреть файл

@@ -0,0 +1,220 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:etd="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/" xmlns:kck="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" xmlns:tns="http://jpk.mf.gov.pl/wzor/2016/03/09/03092/" targetNamespace="http://jpk.mf.gov.pl/wzor/2016/03/09/03092/" elementFormDefault="qualified" attributeFormDefault="unqualified" xml:lang="pl">
3
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2016/01/25/eD/DefinicjeTypy/StrukturyDanych_v4-0E.xsd"/>
4
+	<xsd:import namespace="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/" schemaLocation="http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2013/05/23/eD/KodyCECHKRAJOW/KodyCechKrajow_v3-0E.xsd"/>
5
+	<xsd:complexType name="TNaglowek">
6
+		<xsd:annotation>
7
+			<xsd:documentation>Nagłówek JPK_WB</xsd:documentation>
8
+		</xsd:annotation>
9
+		<xsd:sequence>
10
+			<xsd:element name="KodFormularza">
11
+				<xsd:complexType>
12
+					<xsd:simpleContent>
13
+						<xsd:extension base="tns:TKodFormularza">
14
+							<xsd:attribute name="kodSystemowy" type="xsd:string" use="required" fixed="JPK_WB (1)"/>
15
+							<xsd:attribute name="wersjaSchemy" type="xsd:string" use="required" fixed="1-0"/>
16
+						</xsd:extension>
17
+					</xsd:simpleContent>
18
+				</xsd:complexType>
19
+			</xsd:element>
20
+			<xsd:element name="WariantFormularza">
21
+				<xsd:simpleType>
22
+					<xsd:restriction base="xsd:byte">
23
+						<xsd:enumeration value="1"/>
24
+					</xsd:restriction>
25
+				</xsd:simpleType>
26
+			</xsd:element>
27
+			<xsd:element name="CelZlozenia" type="tns:TCelZlozenia"/>
28
+			<xsd:element name="DataWytworzeniaJPK" type="etd:TDataCzas">
29
+				<xsd:annotation>
30
+					<xsd:documentation>Data i czas wytworzenia JPK_WB</xsd:documentation>
31
+				</xsd:annotation>
32
+			</xsd:element>
33
+			<xsd:element name="DataOd" type="etd:TData">
34
+				<xsd:annotation>
35
+					<xsd:documentation>Data początkowa okresu, którego dotyczy JPK_WB</xsd:documentation>
36
+				</xsd:annotation>
37
+			</xsd:element>
38
+			<xsd:element name="DataDo" type="etd:TData">
39
+				<xsd:annotation>
40
+					<xsd:documentation>Data końcowa okresu, którego dotyczy JPK_WB</xsd:documentation>
41
+				</xsd:annotation>
42
+			</xsd:element>
43
+			<xsd:element name="DomyslnyKodWaluty" type="kck:currCode_Type">
44
+				<xsd:annotation>
45
+					<xsd:documentation>Trzyliterowy kod lokalnej waluty (ISO-4217), domyślny dla wytworzonego JPK_WB</xsd:documentation>
46
+				</xsd:annotation>
47
+			</xsd:element>
48
+			<xsd:element name="KodUrzedu" type="etd:TKodUS"/>
49
+		</xsd:sequence>
50
+	</xsd:complexType>
51
+	<xsd:simpleType name="TKwotowy">
52
+		<xsd:annotation>
53
+			<xsd:documentation>Wartość numeryczna 18 znaków max, w tym 2 znaki po przecinku</xsd:documentation>
54
+		</xsd:annotation>
55
+		<xsd:restriction base="xsd:decimal">
56
+			<xsd:totalDigits value="18"/>
57
+			<xsd:fractionDigits value="2"/>
58
+		</xsd:restriction>
59
+	</xsd:simpleType>
60
+	<xsd:simpleType name="TNaturalnyJPK">
61
+		<xsd:annotation>
62
+			<xsd:documentation>Liczby naturalne większe od zera</xsd:documentation>
63
+		</xsd:annotation>
64
+		<xsd:restriction base="etd:TNaturalny">
65
+			<xsd:minExclusive value="0"/>
66
+		</xsd:restriction>
67
+	</xsd:simpleType>
68
+	<xsd:simpleType name="TZnakowyJPK">
69
+		<xsd:annotation>
70
+			<xsd:documentation>Typ znakowy ograniczony do 256 znaków</xsd:documentation>
71
+		</xsd:annotation>
72
+		<xsd:restriction base="xsd:token">
73
+			<xsd:minLength value="1"/>
74
+			<xsd:maxLength value="256"/>
75
+		</xsd:restriction>
76
+	</xsd:simpleType>
77
+	<xsd:simpleType name="TKodFormularza">
78
+		<xsd:annotation>
79
+			<xsd:documentation>Symbol wzoru formularza</xsd:documentation>
80
+		</xsd:annotation>
81
+		<xsd:restriction base="xsd:string">
82
+			<xsd:enumeration value="JPK_WB"/>
83
+		</xsd:restriction>
84
+	</xsd:simpleType>
85
+	<xsd:simpleType name="TCelZlozenia">
86
+		<xsd:annotation>
87
+			<xsd:documentation>Określenie celu złożenia JPK</xsd:documentation>
88
+		</xsd:annotation>
89
+		<xsd:restriction base="xsd:byte">
90
+			<xsd:enumeration value="1">
91
+				<xsd:annotation>
92
+					<xsd:documentation>złożenie JPK po raz pierwszy</xsd:documentation>
93
+				</xsd:annotation>
94
+			</xsd:enumeration>
95
+		</xsd:restriction>
96
+	</xsd:simpleType>
97
+	<xsd:element name="JPK">
98
+		<xsd:annotation>
99
+			<xsd:documentation>Jednolity plik kontrolny dla wyciągu bankowego</xsd:documentation>
100
+		</xsd:annotation>
101
+		<xsd:complexType>
102
+			<xsd:sequence>
103
+				<xsd:element name="Naglowek" type="tns:TNaglowek">
104
+					<xsd:annotation>
105
+						<xsd:documentation>Nagłówek JPK_WB</xsd:documentation>
106
+					</xsd:annotation>
107
+				</xsd:element>
108
+				<xsd:element name="Podmiot1">
109
+					<xsd:complexType>
110
+						<xsd:sequence>
111
+							<xsd:element name="IdentyfikatorPodmiotu" type="etd:TIdentyfikatorOsobyNiefizycznej">
112
+								<xsd:annotation>
113
+									<xsd:documentation>Dane identyfikujące podmiot</xsd:documentation>
114
+								</xsd:annotation>
115
+							</xsd:element>
116
+							<xsd:element name="AdresPodmiotu" type="etd:TAdresPolski">
117
+								<xsd:annotation>
118
+									<xsd:documentation>Adres podmiotu</xsd:documentation>
119
+								</xsd:annotation>
120
+							</xsd:element>
121
+						</xsd:sequence>
122
+					</xsd:complexType>
123
+				</xsd:element>
124
+				<xsd:element name="NumerRachunku">
125
+					<xsd:annotation>
126
+						<xsd:documentation>Numer IBAN rachunku, którego dotyczy wyciąg</xsd:documentation>
127
+					</xsd:annotation>
128
+					<xsd:simpleType>
129
+						<xsd:restriction base="xsd:string">
130
+							<xsd:pattern value="[A-Z]{2}[0-9]{2}[0-9A-Z]{10,30}"/>
131
+						</xsd:restriction>
132
+					</xsd:simpleType>
133
+				</xsd:element>
134
+				<xsd:element name="Salda">
135
+					<xsd:annotation>
136
+						<xsd:documentation>Salda wyciągu</xsd:documentation>
137
+					</xsd:annotation>
138
+					<xsd:complexType>
139
+						<xsd:sequence>
140
+							<xsd:element name="SaldoPoczatkowe" type="tns:TKwotowy">
141
+								<xsd:annotation>
142
+									<xsd:documentation>Saldo początkowe wyciągu</xsd:documentation>
143
+								</xsd:annotation>
144
+							</xsd:element>
145
+							<xsd:element name="SaldoKoncowe" type="tns:TKwotowy">
146
+								<xsd:annotation>
147
+									<xsd:documentation>Saldo końcowe wyciągu</xsd:documentation>
148
+								</xsd:annotation>
149
+							</xsd:element>
150
+						</xsd:sequence>
151
+					</xsd:complexType>
152
+				</xsd:element>
153
+				<xsd:element name="WyciagWiersz" maxOccurs="unbounded">
154
+					<xsd:annotation>
155
+						<xsd:documentation>Szczegółowe wiersze (zapisy) wyciągu bankowego</xsd:documentation>
156
+					</xsd:annotation>
157
+					<xsd:complexType>
158
+						<xsd:sequence>
159
+							<xsd:element name="NumerWiersza" type="tns:TNaturalnyJPK">
160
+								<xsd:annotation>
161
+									<xsd:documentation>Kolejny numer wiersza (zapisu) wyciągu</xsd:documentation>
162
+								</xsd:annotation>
163
+							</xsd:element>
164
+							<xsd:element name="DataOperacji" type="etd:TData">
165
+								<xsd:annotation>
166
+									<xsd:documentation>Data operacji</xsd:documentation>
167
+								</xsd:annotation>
168
+							</xsd:element>
169
+							<xsd:element name="NazwaPodmiotu" type="tns:TZnakowyJPK">
170
+								<xsd:annotation>
171
+									<xsd:documentation>Nazwa podmiotu będącego stroną operacji</xsd:documentation>
172
+								</xsd:annotation>
173
+							</xsd:element>
174
+							<xsd:element name="OpisOperacji" type="tns:TZnakowyJPK">
175
+								<xsd:annotation>
176
+									<xsd:documentation>Opis operacji/transakcji</xsd:documentation>
177
+								</xsd:annotation>
178
+							</xsd:element>
179
+							<xsd:element name="KwotaOperacji" type="tns:TKwotowy">
180
+								<xsd:annotation>
181
+									<xsd:documentation>Kwota operacji</xsd:documentation>
182
+								</xsd:annotation>
183
+							</xsd:element>
184
+							<xsd:element name="SaldoOperacji" type="tns:TKwotowy">
185
+								<xsd:annotation>
186
+									<xsd:documentation>Saldo operacji</xsd:documentation>
187
+								</xsd:annotation>
188
+							</xsd:element>
189
+						</xsd:sequence>
190
+						<xsd:attribute name="typ" use="required" fixed="G"/>
191
+					</xsd:complexType>
192
+				</xsd:element>
193
+				<xsd:element name="WyciagCtrl">
194
+					<xsd:annotation>
195
+						<xsd:documentation>Sumy kontrolne dla wyciągu bankowego</xsd:documentation>
196
+					</xsd:annotation>
197
+					<xsd:complexType>
198
+						<xsd:sequence>
199
+							<xsd:element name="LiczbaWierszy" type="tns:TNaturalnyJPK">
200
+								<xsd:annotation>
201
+									<xsd:documentation>Liczba wierszy wyciągu bankowego, w okresie którego dotyczy wyciąg</xsd:documentation>
202
+								</xsd:annotation>
203
+							</xsd:element>
204
+							<xsd:element name="SumaObciazen" type="tns:TKwotowy">
205
+								<xsd:annotation>
206
+									<xsd:documentation>Suma kwot obciążeń rachunku w okresie, którego dotyczy wyciąg</xsd:documentation>
207
+								</xsd:annotation>
208
+							</xsd:element>
209
+							<xsd:element name="SumaUznan" type="tns:TKwotowy">
210
+								<xsd:annotation>
211
+									<xsd:documentation>Suma kwot uznań rachunku w okresie, którego dotyczy wyciąg</xsd:documentation>
212
+								</xsd:annotation>
213
+							</xsd:element>
214
+						</xsd:sequence>
215
+					</xsd:complexType>
216
+				</xsd:element>
217
+			</xsd:sequence>
218
+		</xsd:complexType>
219
+	</xsd:element>
220
+</xsd:schema>

+ 151
- 0
JPK_v1/Signed.cs Просмотреть файл

@@ -0,0 +1,151 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Deployment.Internal.CodeSigning;
4
+using System.Linq;
5
+using System.Security.Cryptography;
6
+using System.Security.Cryptography.X509Certificates;
7
+using System.Security.Cryptography.Xml;
8
+using System.Text;
9
+using System.Threading.Tasks;
10
+using System.Xml;
11
+
12
+
13
+namespace JPK_v1
14
+{
15
+    public class Signed
16
+    {
17
+        public String XmlIN { get; set; }
18
+        public String XmlOut { get; set; }
19
+
20
+        private RSACryptoServiceProvider csp;
21
+        private X509SelectionFlag sele;
22
+        private X509Certificate2Collection col;
23
+
24
+        public Signed()
25
+        {
26
+            XmlIN = "";
27
+            XmlOut = "";
28
+        }
29
+
30
+        public int RunSigned(bool sel)
31
+        {
32
+            if (XmlIN == "")
33
+            {
34
+                return -1;
35
+            }
36
+            X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
37
+            store.Open(OpenFlags.MaxAllowed);
38
+
39
+            csp = new RSACryptoServiceProvider();
40
+            if (sel == false)
41
+            {
42
+                sele = X509SelectionFlag.SingleSelection;
43
+                col = X509Certificate2UI.SelectFromCollection(store.Certificates, "Wybierz", "Wybierz", sele);
44
+            }
45
+            store.Close();
46
+            if (col.Count > 0)
47
+            {
48
+                X509Certificate2 cert1 = col[0];
49
+
50
+                KeyInfoX509Data keyData = new KeyInfoX509Data();
51
+                //   keyData.AddSubjectName(cert1.FriendlyName);
52
+                keyData.AddSubjectName(cert1.SubjectName.Name);
53
+                //   keyData.AddIssuerSerial(cert1.FriendlyName,cert1.GetSerialNumberString());
54
+                csp = (RSACryptoServiceProvider)cert1.PrivateKey;
55
+                
56
+                RSACryptoServiceProvider rsaKey = csp;
57
+               
58
+                XmlDocument xmlDoc = new XmlDocument();
59
+   
60
+                xmlDoc.LoadXml(XmlIN);
61
+
62
+   //             xmlDoc = XadesHelper.Sign(xmlDoc).Using(cert1).
63
+     //           IncludingCertificateInSignature().SignAndGetXml();
64
+
65
+
66
+                XmlNodeList xnList = xmlDoc.GetElementsByTagName("Signature");
67
+                if (xnList.Count == 0)
68
+                {
69
+                    int test = SignXml(xmlDoc, rsaKey, keyData);
70
+                    if (test == 0)
71
+                    {
72
+                        XmlOut = xmlDoc.OuterXml;
73
+                        return 1;
74
+                    }
75
+                    else
76
+                    {
77
+                        return -1;
78
+                    }
79
+                }
80
+                else
81
+                {
82
+                    XmlOut = xmlDoc.OuterXml;
83
+                }
84
+            }
85
+
86
+
87
+
88
+            return 0;
89
+        }
90
+        public static int SignXml(XmlDocument xmlDoc, AsymmetricAlgorithm Key, KeyInfoX509Data keydata)
91
+        {
92
+            // Check arguments. 
93
+          /*    CryptoConfig.AddAlgorithm(typeof(RSAPKCS1SHA256SignatureDescription), "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256");
94
+            if (xmlDoc == null)
95
+                throw new ArgumentException("xmlDoc");
96
+            if (Key == null)
97
+                throw new ArgumentException("Key");
98
+
99
+            // Create a SignedXml object.
100
+            SignedXml signedXml = new SignedXml(xmlDoc);
101
+            KeyInfo keyInfo = new KeyInfo();
102
+
103
+      //      XaDesSignedXml xades;
104
+
105
+            keyInfo.AddClause(keydata);
106
+            signedXml.Signature.Id = "ID" + "20160808";
107
+            signedXml.KeyInfo = keyInfo;
108
+            signedXml.SignedInfo.SignatureMethod = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";
109
+            // Add the key to the SignedXml document.
110
+            signedXml.SigningKey = Key;
111
+ 
112
+            // Create a reference to be signed.
113
+            Reference reference = new Reference();
114
+            reference.Uri = "";
115
+
116
+            // Add an enveloped transformation to the reference.
117
+            
118
+            
119
+            reference.AddTransform(new XmlDsigEnvelopedSignatureTransform());
120
+            reference.AddTransform(new XmlDsigExcC14NTransform());
121
+            reference.DigestMethod = "http://www.w3.org/2001/04/xmlenc#sha256";
122
+
123
+         //   XmlDsigEnvelopedSignatureTransform env = new XmlDsigEnvelopedSignatureTransform();
124
+            
125
+
126
+         //   reference.AddTransform(env);
127
+
128
+            // Add the reference to the SignedXml object.
129
+            signedXml.AddReference(reference);
130
+     
131
+            // Compute the signature.
132
+            try
133
+            {
134
+                signedXml.ComputeSignature();
135
+            }
136
+            catch (CryptographicException c)
137
+            {
138
+                return 1;
139
+            }
140
+            // Get the XML representation of the signature and save 
141
+            // it to an XmlElement object.
142
+            XmlElement xmlDigitalSignature = signedXml.GetXml();
143
+         //   xmlDigitalSignature.SetAttribute("Id", signedXml.Signature.Id);
144
+           
145
+            // Append the element to the XML document.
146
+            
147
+            xmlDoc.DocumentElement.AppendChild(xmlDoc.ImportNode(xmlDigitalSignature, true)); */
148
+            return 0;
149
+        }
150
+    }
151
+}

+ 45
- 0
JPK_v1/Tax.Designer.cs Просмотреть файл

@@ -0,0 +1,45 @@
1
+namespace JPK_v1
2
+{
3
+    partial class Tax
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.SuspendLayout();
32
+            // 
33
+            // Tax
34
+            // 
35
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
36
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
37
+            this.Name = "Tax";
38
+            this.Size = new System.Drawing.Size(784, 394);
39
+            this.ResumeLayout(false);
40
+
41
+        }
42
+
43
+        #endregion
44
+    }
45
+}

+ 19
- 0
JPK_v1/Tax.cs Просмотреть файл

@@ -0,0 +1,19 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class Tax : UserControl
13
+    {
14
+        public Tax()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+    }
19
+}

+ 120
- 0
JPK_v1/Tax.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 59
- 0
JPK_v1/WyciagWier.Designer.cs Просмотреть файл

@@ -0,0 +1,59 @@
1
+namespace JPK_v1
2
+{
3
+    partial class WyciagWier
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.wbpoz = new System.Windows.Forms.DataGridView();
32
+            ((System.ComponentModel.ISupportInitialize)(this.wbpoz)).BeginInit();
33
+            this.SuspendLayout();
34
+            // 
35
+            // wbpoz
36
+            // 
37
+            this.wbpoz.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
38
+            this.wbpoz.Location = new System.Drawing.Point(3, 22);
39
+            this.wbpoz.Name = "wbpoz";
40
+            this.wbpoz.Size = new System.Drawing.Size(809, 354);
41
+            this.wbpoz.TabIndex = 0;
42
+            // 
43
+            // WyciagWier
44
+            // 
45
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
46
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
47
+            this.Controls.Add(this.wbpoz);
48
+            this.Name = "WyciagWier";
49
+            this.Size = new System.Drawing.Size(815, 379);
50
+            ((System.ComponentModel.ISupportInitialize)(this.wbpoz)).EndInit();
51
+            this.ResumeLayout(false);
52
+
53
+        }
54
+
55
+        #endregion
56
+
57
+        private System.Windows.Forms.DataGridView wbpoz;
58
+    }
59
+}

+ 56
- 0
JPK_v1/WyciagWier.cs Просмотреть файл

@@ -0,0 +1,56 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class WyciagWier : UserControl
13
+    {
14
+        public WyciagWier()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+        public void addPozWB(JPK_WB_v1.JPKWyciagWiersz wbp)
19
+        {
20
+            int index;
21
+            index = wbpoz.Rows.Add();
22
+            wbpoz.Rows[index].Cells[0].Value = wbp.NumerWiersza;
23
+            wbpoz.Rows[index].Cells[1].Value = wbp.DataOperacji;
24
+            wbpoz.Rows[index].Cells[2].Value = wbp.NazwaPodmiotu;
25
+            wbpoz.Rows[index].Cells[3].Value = wbp.OpisOperacji;
26
+            wbpoz.Rows[index].Cells[4].Value = wbp.KwotaOperacji;
27
+            wbpoz.Rows[index].Cells[5].Value = wbp.SaldoOperacji;
28
+        }
29
+        public void clearWB()
30
+        {
31
+            wbpoz.Rows.Clear();
32
+        }
33
+        public void WB_init_tab()
34
+        {
35
+            DataGridViewColumn column = new DataGridViewTextBoxColumn();
36
+            column.HeaderText = "NumerWiersza";
37
+            this.wbpoz.Columns.Add(column);
38
+            column = new DataGridViewTextBoxColumn();
39
+            column.HeaderText = "DataOperacji";
40
+            this.wbpoz.Columns.Add(column);
41
+            column = new DataGridViewTextBoxColumn();
42
+            column.HeaderText = "NazwaPodmiotu";
43
+            this.wbpoz.Columns.Add(column);
44
+            column = new DataGridViewTextBoxColumn();
45
+            column.HeaderText = "OpisOperacji";
46
+            this.wbpoz.Columns.Add(column);
47
+            column = new DataGridViewTextBoxColumn();
48
+            column.HeaderText = "KwotaOperacji";
49
+            this.wbpoz.Columns.Add(column);
50
+            column = new DataGridViewTextBoxColumn();
51
+            column.HeaderText = "SaldoOperacji";
52
+            this.wbpoz.Columns.Add(column);
53
+           
54
+        }
55
+    }
56
+}

+ 120
- 0
JPK_v1/WyciagWier.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 59
- 0
JPK_v1/WyciagWierszCtrl.Designer.cs Просмотреть файл

@@ -0,0 +1,59 @@
1
+namespace JPK_v1
2
+{
3
+    partial class WyciagWierszCtrl
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.wbCtrl = new System.Windows.Forms.DataGridView();
32
+            ((System.ComponentModel.ISupportInitialize)(this.wbCtrl)).BeginInit();
33
+            this.SuspendLayout();
34
+            // 
35
+            // wbCtrl
36
+            // 
37
+            this.wbCtrl.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
38
+            this.wbCtrl.Location = new System.Drawing.Point(3, 14);
39
+            this.wbCtrl.Name = "wbCtrl";
40
+            this.wbCtrl.Size = new System.Drawing.Size(364, 150);
41
+            this.wbCtrl.TabIndex = 0;
42
+            // 
43
+            // WyciagWierszCtrl
44
+            // 
45
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
46
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
47
+            this.Controls.Add(this.wbCtrl);
48
+            this.Name = "WyciagWierszCtrl";
49
+            this.Size = new System.Drawing.Size(902, 397);
50
+            ((System.ComponentModel.ISupportInitialize)(this.wbCtrl)).EndInit();
51
+            this.ResumeLayout(false);
52
+
53
+        }
54
+
55
+        #endregion
56
+
57
+        private System.Windows.Forms.DataGridView wbCtrl;
58
+    }
59
+}

+ 46
- 0
JPK_v1/WyciagWierszCtrl.cs Просмотреть файл

@@ -0,0 +1,46 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class WyciagWierszCtrl : UserControl
13
+    {
14
+        public WyciagWierszCtrl()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+        public void addPozWBC(JPK_WB_v1.JPKWyciagCtrl wbp)
19
+        {
20
+            int index;
21
+            index = wbCtrl.Rows.Add();
22
+            wbCtrl.Rows[index].Cells[0].Value = wbp.LiczbaWierszy;
23
+            wbCtrl.Rows[index].Cells[1].Value = wbp.SumaObciazen;
24
+            wbCtrl.Rows[index].Cells[2].Value = wbp.SumaUznan;
25
+          
26
+        }
27
+        public void clearWBC()
28
+        {
29
+            wbCtrl.Rows.Clear();
30
+        }
31
+        public void WBC_init_tab()
32
+        {
33
+            DataGridViewColumn column = new DataGridViewTextBoxColumn();
34
+            column.HeaderText = "LiczbaWierszy";
35
+            this.wbCtrl.Columns.Add(column);
36
+            column = new DataGridViewTextBoxColumn();
37
+            column.HeaderText = "SumaObciazen";
38
+            this.wbCtrl.Columns.Add(column);
39
+            column = new DataGridViewTextBoxColumn();
40
+            column.HeaderText = "SumaUznan";
41
+            this.wbCtrl.Columns.Add(column);
42
+            
43
+
44
+        }
45
+    }
46
+}

+ 120
- 0
JPK_v1/WyciagWierszCtrl.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 59
- 0
JPK_v1/ZA.Designer.cs Просмотреть файл

@@ -0,0 +1,59 @@
1
+namespace JPK_v1
2
+{
3
+    partial class ZA
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.dataZa = new System.Windows.Forms.DataGridView();
32
+            ((System.ComponentModel.ISupportInitialize)(this.dataZa)).BeginInit();
33
+            this.SuspendLayout();
34
+            // 
35
+            // dataZa
36
+            // 
37
+            this.dataZa.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
38
+            this.dataZa.Location = new System.Drawing.Point(0, 0);
39
+            this.dataZa.Name = "dataZa";
40
+            this.dataZa.Size = new System.Drawing.Size(926, 398);
41
+            this.dataZa.TabIndex = 0;
42
+            // 
43
+            // ZA
44
+            // 
45
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
46
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
47
+            this.Controls.Add(this.dataZa);
48
+            this.Name = "ZA";
49
+            this.Size = new System.Drawing.Size(955, 456);
50
+            ((System.ComponentModel.ISupportInitialize)(this.dataZa)).EndInit();
51
+            this.ResumeLayout(false);
52
+
53
+        }
54
+
55
+        #endregion
56
+
57
+        private System.Windows.Forms.DataGridView dataZa;
58
+    }
59
+}

+ 79
- 0
JPK_v1/ZA.cs Просмотреть файл

@@ -0,0 +1,79 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class ZA : UserControl
13
+    {
14
+        public ZA()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+        public void ZaAdd(JPK_VAT_v1.JPKZakupWiersz z)
19
+        {
20
+            int index;
21
+            index = dataZa.Rows.Add();
22
+            dataZa.Rows[index].Cells[0].Value = z.LpZakupu;
23
+            dataZa.Rows[index].Cells[1].Value = z.NazwaDostawcy;
24
+            dataZa.Rows[index].Cells[2].Value = z.AdresDostawcy;
25
+            dataZa.Rows[index].Cells[3].Value = z.NrDostawcy;
26
+            dataZa.Rows[index].Cells[4].Value = z.DataWplywu;
27
+            dataZa.Rows[index].Cells[5].Value = z.DataZakupu;
28
+            dataZa.Rows[index].Cells[6].Value = z.K_43;
29
+            dataZa.Rows[index].Cells[7].Value = z.K_44;
30
+            dataZa.Rows[index].Cells[8].Value = z.K_45;
31
+            dataZa.Rows[index].Cells[9].Value = z.K_46;
32
+            dataZa.Rows[index].Cells[10].Value = z.K_47;
33
+            dataZa.Rows[index].Cells[11].Value = z.K_48;
34
+          //  dataZa.Rows[index].Cells[12].Value = z.K_49;
35
+        }
36
+        public void ZA_init_tab()
37
+        {
38
+            DataGridViewColumn column = new DataGridViewTextBoxColumn();
39
+            column.HeaderText = "LpZakupu";
40
+            this.dataZa.Columns.Add(column);
41
+            column = new DataGridViewTextBoxColumn();
42
+            column.HeaderText = "NazwaWystawcy";
43
+            this.dataZa.Columns.Add(column);
44
+            column = new DataGridViewTextBoxColumn();
45
+            column.HeaderText = "AdresWystawcy";
46
+            this.dataZa.Columns.Add(column);
47
+            column = new DataGridViewTextBoxColumn();
48
+            column.HeaderText = "NIPWystawcy";
49
+            this.dataZa.Columns.Add(column);
50
+            column = new DataGridViewTextBoxColumn();
51
+            column.HeaderText = "NumerFaktury";
52
+            this.dataZa.Columns.Add(column);
53
+            column = new DataGridViewTextBoxColumn();
54
+            column.HeaderText = "DataWpływu";
55
+            this.dataZa.Columns.Add(column);
56
+            column = new DataGridViewTextBoxColumn();
57
+            column.HeaderText = "NettoZaDoŚrTr";
58
+            this.dataZa.Columns.Add(column);
59
+            column = new DataGridViewTextBoxColumn();
60
+            column.HeaderText = "PodatekZaDoŚrTr";
61
+            this.dataZa.Columns.Add(column);
62
+            column = new DataGridViewTextBoxColumn();
63
+            column.HeaderText = "NettoPozostałe";
64
+            this.dataZa.Columns.Add(column);
65
+            column = new DataGridViewTextBoxColumn();
66
+            column.HeaderText = "PodatekPozostałe";
67
+            this.dataZa.Columns.Add(column);
68
+            column = new DataGridViewTextBoxColumn();
69
+            column.HeaderText = "PodatekKorZaDoŚrTr";
70
+            this.dataZa.Columns.Add(column);
71
+            column = new DataGridViewTextBoxColumn();
72
+            column.HeaderText = "PodatekKorPozostałe";
73
+            this.dataZa.Columns.Add(column);
74
+            column = new DataGridViewTextBoxColumn();
75
+            column.HeaderText = "PodatekKorPozostałeArt89b";
76
+            this.dataZa.Columns.Add(column);
77
+        }
78
+    }
79
+}

+ 120
- 0
JPK_v1/ZA.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 59
- 0
JPK_v1/ZA_CTRL.Designer.cs Просмотреть файл

@@ -0,0 +1,59 @@
1
+namespace JPK_v1
2
+{
3
+    partial class ZA_CTRL
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.dataZaCtrl = new System.Windows.Forms.DataGridView();
32
+            ((System.ComponentModel.ISupportInitialize)(this.dataZaCtrl)).BeginInit();
33
+            this.SuspendLayout();
34
+            // 
35
+            // dataZaCtrl
36
+            // 
37
+            this.dataZaCtrl.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
38
+            this.dataZaCtrl.Location = new System.Drawing.Point(0, 0);
39
+            this.dataZaCtrl.Name = "dataZaCtrl";
40
+            this.dataZaCtrl.Size = new System.Drawing.Size(594, 324);
41
+            this.dataZaCtrl.TabIndex = 0;
42
+            // 
43
+            // ZA_CTRL
44
+            // 
45
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
46
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
47
+            this.Controls.Add(this.dataZaCtrl);
48
+            this.Name = "ZA_CTRL";
49
+            this.Size = new System.Drawing.Size(851, 373);
50
+            ((System.ComponentModel.ISupportInitialize)(this.dataZaCtrl)).EndInit();
51
+            this.ResumeLayout(false);
52
+
53
+        }
54
+
55
+        #endregion
56
+
57
+        private System.Windows.Forms.DataGridView dataZaCtrl;
58
+    }
59
+}

+ 40
- 0
JPK_v1/ZA_CTRL.cs Просмотреть файл

@@ -0,0 +1,40 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+using JPK_v1.Core;
10
+
11
+namespace JPK_v1
12
+{
13
+    public partial class ZA_CTRL : UserControl
14
+    {
15
+        public ZA_CTRL()
16
+        {
17
+            InitializeComponent();
18
+        }
19
+        public void ZaCtrlAdd(SpCtrl zctrl)
20
+        {
21
+            int index;
22
+            index = dataZaCtrl.Rows.Add();
23
+            dataZaCtrl.Rows[index].Cells[0].Value = zctrl.Typ;
24
+            dataZaCtrl.Rows[index].Cells[1].Value = zctrl.Ile;
25
+            dataZaCtrl.Rows[index].Cells[2].Value = zctrl.Kwota;
26
+        }
27
+        public void ZA_init_tab()
28
+        {
29
+            DataGridViewColumn column = new DataGridViewTextBoxColumn();
30
+            column.HeaderText = "TypPodatku";
31
+            this.dataZaCtrl.Columns.Add(column);
32
+            column = new DataGridViewTextBoxColumn();
33
+            column.HeaderText = "LiczbaWierszy";
34
+            this.dataZaCtrl.Columns.Add(column);
35
+            column = new DataGridViewTextBoxColumn();
36
+            column.HeaderText = "PodatekNaliczony";
37
+            this.dataZaCtrl.Columns.Add(column);
38
+        }
39
+    }
40
+}

+ 120
- 0
JPK_v1/ZA_CTRL.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 59
- 0
JPK_v1/ZOIS.Designer.cs Просмотреть файл

@@ -0,0 +1,59 @@
1
+namespace JPK_v1
2
+{
3
+    partial class ZOIS
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary> 
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            this.dzois = new System.Windows.Forms.DataGridView();
32
+            ((System.ComponentModel.ISupportInitialize)(this.dzois)).BeginInit();
33
+            this.SuspendLayout();
34
+            // 
35
+            // dzois
36
+            // 
37
+            this.dzois.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
38
+            this.dzois.Location = new System.Drawing.Point(0, 3);
39
+            this.dzois.Name = "dzois";
40
+            this.dzois.Size = new System.Drawing.Size(885, 373);
41
+            this.dzois.TabIndex = 0;
42
+            // 
43
+            // ZOIS
44
+            // 
45
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
46
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
47
+            this.Controls.Add(this.dzois);
48
+            this.Name = "ZOIS";
49
+            this.Size = new System.Drawing.Size(888, 397);
50
+            ((System.ComponentModel.ISupportInitialize)(this.dzois)).EndInit();
51
+            this.ResumeLayout(false);
52
+
53
+        }
54
+
55
+        #endregion
56
+
57
+        private System.Windows.Forms.DataGridView dzois;
58
+    }
59
+}

+ 101
- 0
JPK_v1/ZOIS.cs Просмотреть файл

@@ -0,0 +1,101 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Drawing;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Text;
8
+using System.Windows.Forms;
9
+
10
+namespace JPK_v1
11
+{
12
+    public partial class ZOIS : UserControl
13
+    {
14
+        public ZOIS()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+        public void addPozZOIS(JPK_KG_v1.JPKZOiS zois)
19
+        {
20
+            int index;
21
+            index = dzois.Rows.Add();
22
+            dzois.Rows[index].Cells[0].Value = zois.KodKonta;
23
+            dzois.Rows[index].Cells[1].Value = zois.OpisKonta;
24
+            dzois.Rows[index].Cells[2].Value = zois.TypKonta;
25
+            dzois.Rows[index].Cells[3].Value = zois.KodZespolu;
26
+            dzois.Rows[index].Cells[4].Value = zois.OpisZespolu;
27
+            dzois.Rows[index].Cells[5].Value = zois.KodKategorii;
28
+            dzois.Rows[index].Cells[6].Value = zois.OpisKategorii;
29
+            dzois.Rows[index].Cells[7].Value = zois.KodPodkategorii;
30
+            dzois.Rows[index].Cells[8].Value = zois.OpisPodkategorii;
31
+            dzois.Rows[index].Cells[9].Value = zois.BilansOtwarciaWinien;
32
+            dzois.Rows[index].Cells[10].Value = zois.BilansOtwarciaMa;
33
+            dzois.Rows[index].Cells[11].Value = zois.ObrotyWinien;
34
+            dzois.Rows[index].Cells[12].Value = zois.ObrotyMa;
35
+            dzois.Rows[index].Cells[13].Value = zois.ObrotyWinienNarast;
36
+            dzois.Rows[index].Cells[14].Value = zois.ObrotyMaNarast;
37
+            dzois.Rows[index].Cells[15].Value = zois.SaldoWinien;
38
+            dzois.Rows[index].Cells[16].Value = zois.SaldoMa;
39
+
40
+        }
41
+        public void clearZOIS()
42
+        {
43
+            dzois.Rows.Clear();
44
+        }
45
+        public void ZOIS_init_tab()
46
+        {
47
+       
48
+            DataGridViewColumn column = new DataGridViewTextBoxColumn();
49
+            column.HeaderText = "KodKonta";
50
+            this.dzois.Columns.Add(column);
51
+            column = new DataGridViewTextBoxColumn();
52
+            column.HeaderText = "OpisKonta";
53
+            this.dzois.Columns.Add(column);
54
+            column = new DataGridViewTextBoxColumn();
55
+            column.HeaderText = "TypKonta";
56
+            this.dzois.Columns.Add(column);
57
+            column = new DataGridViewTextBoxColumn();
58
+            column.HeaderText = "KodZespolu";
59
+            this.dzois.Columns.Add(column);
60
+            column = new DataGridViewTextBoxColumn();
61
+            column.HeaderText = "OpisZespolu";
62
+            this.dzois.Columns.Add(column);
63
+            column = new DataGridViewTextBoxColumn();
64
+            column.HeaderText = "KodKategorii";
65
+            this.dzois.Columns.Add(column);
66
+            column = new DataGridViewTextBoxColumn();
67
+            column.HeaderText = "OpisKategorii";
68
+            this.dzois.Columns.Add(column);
69
+            column = new DataGridViewTextBoxColumn();
70
+            column.HeaderText = "KodPodkategorii";
71
+            this.dzois.Columns.Add(column);
72
+            column = new DataGridViewTextBoxColumn();
73
+            column.HeaderText = "OpisPodkategorii";
74
+            this.dzois.Columns.Add(column);
75
+            column = new DataGridViewTextBoxColumn();
76
+            column.HeaderText = "BilansOtwarciaWinien";
77
+            this.dzois.Columns.Add(column);
78
+            column = new DataGridViewTextBoxColumn();
79
+            column.HeaderText = "BilansOtwarciaMa";
80
+            this.dzois.Columns.Add(column);
81
+            column = new DataGridViewTextBoxColumn();
82
+            column.HeaderText = "ObrotyWinien";
83
+            this.dzois.Columns.Add(column);
84
+            column = new DataGridViewTextBoxColumn();
85
+            column.HeaderText = "ObrotyMa";
86
+            this.dzois.Columns.Add(column);
87
+            column = new DataGridViewTextBoxColumn();
88
+            column.HeaderText = "ObrotyWinienNarast";
89
+            this.dzois.Columns.Add(column);
90
+            column = new DataGridViewTextBoxColumn();
91
+            column.HeaderText = "ObrotyMaNarast";
92
+            this.dzois.Columns.Add(column);
93
+            column = new DataGridViewTextBoxColumn();
94
+            column.HeaderText = "SaldoWinien";
95
+            this.dzois.Columns.Add(column);
96
+            column = new DataGridViewTextBoxColumn();
97
+            column.HeaderText = "SaldoMa";
98
+            this.dzois.Columns.Add(column);
99
+        }
100
+    }
101
+}

+ 120
- 0
JPK_v1/ZOIS.resx Просмотреть файл

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 3
- 0
JPK_v1/app.config Просмотреть файл

@@ -0,0 +1,3 @@
1
+<?xml version="1.0"?>
2
+<configuration>
3
+<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

+ 2
- 0
JPK_v1/desktop.ini Просмотреть файл

@@ -0,0 +1,2 @@
1
+[LocalizedFileNames]
2
+Faktury_VAT_-JPK_FA(3).xsd=@Faktury_VAT_-JPK_FA(3),0

+ 4683
- 0
JPK_v1/initupload.designer.cs
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 0
- 0
JPK_v1/initupload.xsd Просмотреть файл


Некоторые файлы не были показаны из-за большого количества измененных файлов