lib_angar_new 2.0.41 → 2.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/lib_angar/Invoice/ClsInvoice.ts +247 -241
  2. package/package.json +1 -1
  3. package/lib_angar/AccruReten/ClsAccruReten.d.ts +0 -22
  4. package/lib_angar/AccruReten/ClsAccruReten.js +0 -82
  5. package/lib_angar/AccruReten/ClsAccruReten.js.map +0 -1
  6. package/lib_angar/AccruReten/ClsAccruRetenFilter.d.ts +0 -29
  7. package/lib_angar/AccruReten/ClsAccruRetenFilter.js +0 -79
  8. package/lib_angar/AccruReten/ClsAccruRetenFilter.js.map +0 -1
  9. package/lib_angar/AccruReten/ClsAccruRetenInsert.d.ts +0 -24
  10. package/lib_angar/AccruReten/ClsAccruRetenInsert.js +0 -92
  11. package/lib_angar/AccruReten/ClsAccruRetenInsert.js.map +0 -1
  12. package/lib_angar/AccruReten/ClsGuideAccruReten.d.ts +0 -17
  13. package/lib_angar/AccruReten/ClsGuideAccruReten.js +0 -61
  14. package/lib_angar/AccruReten/ClsGuideAccruReten.js.map +0 -1
  15. package/lib_angar/Alert/ClsAlert.d.ts +0 -29
  16. package/lib_angar/Alert/ClsAlert.js +0 -15
  17. package/lib_angar/Alert/ClsAlert.js.map +0 -1
  18. package/lib_angar/ApiRequest/ClsApiRequest.d.ts +0 -24
  19. package/lib_angar/ApiRequest/ClsApiRequest.js +0 -49
  20. package/lib_angar/ApiRequest/ClsApiRequest.js.map +0 -1
  21. package/lib_angar/ApiResponse/ClsApiResponse.d.ts +0 -9
  22. package/lib_angar/ApiResponse/ClsApiResponse.js +0 -45
  23. package/lib_angar/ApiResponse/ClsApiResponse.js.map +0 -1
  24. package/lib_angar/CompletedWork/ClsCompletedWork.d.ts +0 -32
  25. package/lib_angar/CompletedWork/ClsCompletedWork.js +0 -239
  26. package/lib_angar/CompletedWork/ClsCompletedWork.js.map +0 -1
  27. package/lib_angar/CompletedWork/ClsCompletedWorkFilter.d.ts +0 -11
  28. package/lib_angar/CompletedWork/ClsCompletedWorkFilter.js +0 -40
  29. package/lib_angar/CompletedWork/ClsCompletedWorkFilter.js.map +0 -1
  30. package/lib_angar/DetentionPremium/ClsDetentionPremium.d.ts +0 -19
  31. package/lib_angar/DetentionPremium/ClsDetentionPremium.js +0 -81
  32. package/lib_angar/DetentionPremium/ClsDetentionPremium.js.map +0 -1
  33. package/lib_angar/Driver/ClsDriverData.d.ts +0 -26
  34. package/lib_angar/Driver/ClsDriverData.js +0 -66
  35. package/lib_angar/Driver/ClsDriverData.js.map +0 -1
  36. package/lib_angar/Driver/ClsDriverFilter.d.ts +0 -22
  37. package/lib_angar/Driver/ClsDriverFilter.js +0 -56
  38. package/lib_angar/Driver/ClsDriverFilter.js.map +0 -1
  39. package/lib_angar/InOut/ClsInOut.d.ts +0 -24
  40. package/lib_angar/InOut/ClsInOut.js +0 -135
  41. package/lib_angar/InOut/ClsInOut.js.map +0 -1
  42. package/lib_angar/InOut/ClsInOutRoot.d.ts +0 -11
  43. package/lib_angar/InOut/ClsInOutRoot.js +0 -55
  44. package/lib_angar/InOut/ClsInOutRoot.js.map +0 -1
  45. package/lib_angar/InOut/ClsTotalHand.d.ts +0 -39
  46. package/lib_angar/InOut/ClsTotalHand.js +0 -18
  47. package/lib_angar/InOut/ClsTotalHand.js.map +0 -1
  48. package/lib_angar/Intensity/ClsIntensity.d.ts +0 -23
  49. package/lib_angar/Intensity/ClsIntensity.js +0 -61
  50. package/lib_angar/Intensity/ClsIntensity.js.map +0 -1
  51. package/lib_angar/Intensity/ClsIntensityFilter.d.ts +0 -28
  52. package/lib_angar/Intensity/ClsIntensityFilter.js +0 -54
  53. package/lib_angar/Intensity/ClsIntensityFilter.js.map +0 -1
  54. package/lib_angar/Invoice/ClsInvoice.d.ts +0 -78
  55. package/lib_angar/Invoice/ClsInvoice.js +0 -221
  56. package/lib_angar/Invoice/ClsInvoice.js.map +0 -1
  57. package/lib_angar/Invoice/ClsInvoiceFilter.d.ts +0 -40
  58. package/lib_angar/Invoice/ClsInvoiceFilter.js +0 -68
  59. package/lib_angar/Invoice/ClsInvoiceFilter.js.map +0 -1
  60. package/lib_angar/JobDone/ClsJobDone.d.ts +0 -20
  61. package/lib_angar/JobDone/ClsJobDone.js +0 -43
  62. package/lib_angar/JobDone/ClsJobDone.js.map +0 -1
  63. package/lib_angar/Outcoming/ClsDistribute.d.ts +0 -19
  64. package/lib_angar/Outcoming/ClsDistribute.js +0 -42
  65. package/lib_angar/Outcoming/ClsDistribute.js.map +0 -1
  66. package/lib_angar/Outcoming/ClsOutcoming.d.ts +0 -41
  67. package/lib_angar/Outcoming/ClsOutcoming.js +0 -122
  68. package/lib_angar/Outcoming/ClsOutcoming.js.map +0 -1
  69. package/lib_angar/Outcoming/ClsOutcomingFilter.d.ts +0 -16
  70. package/lib_angar/Outcoming/ClsOutcomingFilter.js +0 -38
  71. package/lib_angar/Outcoming/ClsOutcomingFilter.js.map +0 -1
  72. package/lib_angar/Outcoming/ClsPrintDistribute.d.ts +0 -24
  73. package/lib_angar/Outcoming/ClsPrintDistribute.js +0 -48
  74. package/lib_angar/Outcoming/ClsPrintDistribute.js.map +0 -1
  75. package/lib_angar/Outcoming/ClsRootDistribute.d.ts +0 -22
  76. package/lib_angar/Outcoming/ClsRootDistribute.js +0 -46
  77. package/lib_angar/Outcoming/ClsRootDistribute.js.map +0 -1
  78. package/lib_angar/Printer/ClsPrinter.d.ts +0 -28
  79. package/lib_angar/Printer/ClsPrinter.js +0 -71
  80. package/lib_angar/Printer/ClsPrinter.js.map +0 -1
  81. package/lib_angar/Root/ClsRoot.d.ts +0 -20
  82. package/lib_angar/Root/ClsRoot.js +0 -44
  83. package/lib_angar/Root/ClsRoot.js.map +0 -1
  84. package/lib_angar/SalaryAll/ClsPercent.d.ts +0 -12
  85. package/lib_angar/SalaryAll/ClsPercent.js +0 -34
  86. package/lib_angar/SalaryAll/ClsPercent.js.map +0 -1
  87. package/lib_angar/SalaryAll/ClsSalaryAll.d.ts +0 -81
  88. package/lib_angar/SalaryAll/ClsSalaryAll.js +0 -258
  89. package/lib_angar/SalaryAll/ClsSalaryAll.js.map +0 -1
  90. package/lib_angar/SalaryAll/ClsSalaryAllFilter.d.ts +0 -25
  91. package/lib_angar/SalaryAll/ClsSalaryAllFilter.js +0 -50
  92. package/lib_angar/SalaryAll/ClsSalaryAllFilter.js.map +0 -1
  93. package/lib_angar/SalaryDF/ClsSalaryDrv.d.ts +0 -32
  94. package/lib_angar/SalaryDF/ClsSalaryDrv.js +0 -89
  95. package/lib_angar/SalaryDF/ClsSalaryDrv.js.map +0 -1
  96. package/lib_angar/SalaryDF/ClsSalaryFwd.d.ts +0 -31
  97. package/lib_angar/SalaryDF/ClsSalaryFwd.js +0 -84
  98. package/lib_angar/SalaryDF/ClsSalaryFwd.js.map +0 -1
  99. package/lib_angar/TimesheeStock/ClsTimesheeDate.d.ts +0 -35
  100. package/lib_angar/TimesheeStock/ClsTimesheeDate.js +0 -76
  101. package/lib_angar/TimesheeStock/ClsTimesheeDate.js.map +0 -1
  102. package/lib_angar/TimesheeStock/ClsTimesheeDatePut.d.ts +0 -21
  103. package/lib_angar/TimesheeStock/ClsTimesheeDatePut.js +0 -45
  104. package/lib_angar/TimesheeStock/ClsTimesheeDatePut.js.map +0 -1
  105. package/lib_angar/TimesheeStock/ClsTimesheeOffice.d.ts +0 -37
  106. package/lib_angar/TimesheeStock/ClsTimesheeOffice.js +0 -86
  107. package/lib_angar/TimesheeStock/ClsTimesheeOffice.js.map +0 -1
  108. package/lib_angar/TimesheeStock/ClsTimesheeStock.d.ts +0 -25
  109. package/lib_angar/TimesheeStock/ClsTimesheeStock.js +0 -50
  110. package/lib_angar/TimesheeStock/ClsTimesheeStock.js.map +0 -1
  111. package/lib_angar/TimesheeStock/ClsTimesheeStockFilter.d.ts +0 -26
  112. package/lib_angar/TimesheeStock/ClsTimesheeStockFilter.js +0 -61
  113. package/lib_angar/TimesheeStock/ClsTimesheeStockFilter.js.map +0 -1
  114. package/lib_angar/User/ClsUser.d.ts +0 -31
  115. package/lib_angar/User/ClsUser.js +0 -71
  116. package/lib_angar/User/ClsUser.js.map +0 -1
  117. package/lib_angar/ViewProperty/ArrayTableField.d.ts +0 -6
  118. package/lib_angar/ViewProperty/ArrayTableField.js +0 -30
  119. package/lib_angar/ViewProperty/ArrayTableField.js.map +0 -1
  120. package/lib_angar/ViewProperty/TableField.d.ts +0 -25
  121. package/lib_angar/ViewProperty/TableField.js +0 -54
  122. package/lib_angar/ViewProperty/TableField.js.map +0 -1
  123. package/lib_angar/index.d.ts +0 -38
  124. package/lib_angar/index.js +0 -80
  125. package/lib_angar/index.js.map +0 -1
  126. package/lib_angar/tsconfig.tsbuildinfo +0 -1
@@ -3,252 +3,258 @@ import { ArrayTableField } from "../ViewProperty/ArrayTableField";
3
3
  import { TableField } from "../ViewProperty/TableField";
4
4
 
5
5
  @Serialize({})
6
- export class ClsInvoice extends Serializable
7
- {
8
- /**
9
- * Id накладной в базе данных
10
- */
11
- @SerializeProperty({ map: "id", optional: true })
12
- public Id: number;
13
-
14
- /**
15
- * Номер накладной в году
16
- */
17
- @SerializeProperty({ map: "number", optional: true })
18
- public Number: number;
19
-
20
- /**
21
- * Id агента
22
- */
23
- @SerializeProperty({ map: "agentID", optional: true })
24
- public AgentID: number;
25
-
26
- /**
27
- * Дата накладной
28
- */
29
- @SerializeProperty({ map: "date", optional: true })
30
- public Date: Date;
31
-
32
- /**
33
- * Дата доставки накладной
34
- */
35
- @SerializeProperty({ map: "dateDeliv", optional: true })
36
- public DateDeliv: Date;
37
-
38
- /**
39
- * Секция 1 кто собирал
40
- */
41
- @SerializeProperty({ map: "linkStoreman1", optional: true })
42
- public LinkStoreman1: number;
43
-
44
- /**
45
- * Секция 2 кто собирал
46
- */
47
- @SerializeProperty({ map: "linkStoreman2", optional: true })
48
- public LinkStoreman2: number;
49
-
50
- /**
51
- * Секция 3 кто собирал
52
- */
53
- @SerializeProperty({ map: "linkStoreman3", optional: true })
54
- public LinkStoreman3: number;
55
-
56
- /**
57
- * Секция 4 кто собирал
58
- */
59
- @SerializeProperty({ map: "linkStoreman4", optional: true })
60
- public LinkStoreman4: number;
61
-
62
- /**
63
- * Комплектовщик и упаковщик кто проверял
64
- */
65
- @SerializeProperty({ map: "linkPackager", optional: true })
66
- public LinkPackager: number;
67
-
68
- /**
69
- * Наименование контрагента
70
- */
71
- @SerializeProperty({ map: "agentName", optional: true })
72
- public AgentName: string;
73
-
74
- /**
75
- * Статус накладной
76
- */
77
- @SerializeProperty({ map: "status", optional: true })
78
- public Status: ClsInvoice.eStatus
79
-
80
- constructor()
81
- {
82
- super();
83
- this.Id = 0;
84
- this.Number = 0;
85
- this.AgentID = 0;
86
- this.Date = new Date();
87
- this.DateDeliv = new Date();
88
- this.LinkStoreman1 = 0;
89
- this.LinkStoreman2 = 0;
90
- this.LinkStoreman3 = 0;
91
- this.LinkStoreman4 = 0;
92
- this.LinkPackager = 0;
93
- this.AgentName = "";
94
- this.Status = ClsInvoice.eStatus.Unknown;
95
- /*this.AdditionalData = ;*/
96
- }
97
-
98
- /**
6
+ export class ClsInvoice extends Serializable {
7
+ /**
8
+ * Id накладной в базе данных
9
+ */
10
+ @SerializeProperty({ map: "id", optional: true })
11
+ public Id: number;
12
+
13
+ /**
14
+ * Номер накладной в году
15
+ */
16
+ @SerializeProperty({ map: "number", optional: true })
17
+ public Number: number;
18
+
19
+ /**
20
+ * Id агента
21
+ */
22
+ @SerializeProperty({ map: "agentID", optional: true })
23
+ public AgentID: number;
24
+
25
+ /**
26
+ * Дата накладной
27
+ */
28
+ @SerializeProperty({ map: "date", optional: true })
29
+ public Date: Date;
30
+
31
+ /**
32
+ * Дата доставки накладной
33
+ */
34
+ @SerializeProperty({ map: "dateDeliv", optional: true })
35
+ public DateDeliv: Date;
36
+
37
+ /**
38
+ * Секция 1 кто собирал
39
+ */
40
+ @SerializeProperty({ map: "linkStoreman1", optional: true })
41
+ public LinkStoreman1: number;
42
+
43
+ /**
44
+ * Секция 2 кто собирал
45
+ */
46
+ @SerializeProperty({ map: "linkStoreman2", optional: true })
47
+ public LinkStoreman2: number;
48
+
49
+ /**
50
+ * Секция 3 кто собирал
51
+ */
52
+ @SerializeProperty({ map: "linkStoreman3", optional: true })
53
+ public LinkStoreman3: number;
54
+
55
+ /**
56
+ * Секция 4 кто собирал
57
+ */
58
+ @SerializeProperty({ map: "linkStoreman4", optional: true })
59
+ public LinkStoreman4: number;
60
+
61
+ /**
62
+ * Комплектовщик и упаковщик кто проверял
63
+ */
64
+ @SerializeProperty({ map: "linkPackager", optional: true })
65
+ public LinkPackager: number;
66
+
67
+ /**
68
+ * Наименование контрагента
69
+ */
70
+ @SerializeProperty({ map: "agentName", optional: true })
71
+ public AgentName: string;
72
+
73
+ /**
74
+ * Статус накладной
75
+ */
76
+ @SerializeProperty({ map: "status", optional: true })
77
+ public Status: ClsInvoice.eStatus
78
+
79
+ /**
80
+ * Id в основной таблице naklad
81
+ */
82
+ @SerializeProperty({ map: "IdNakMain", optional: true })
83
+ public IdNakMain: number;
84
+
85
+ /**
86
+ * Коментарий
87
+ */
88
+ @SerializeProperty({ map: "comment", optional: true })
89
+ public Comment: string;
90
+
91
+
92
+ constructor() {
93
+ super();
94
+ this.Id = 0;
95
+ this.Number = 0;
96
+ this.AgentID = 0;
97
+ this.Date = new Date();
98
+ this.DateDeliv = new Date();
99
+ this.LinkStoreman1 = 0;
100
+ this.LinkStoreman2 = 0;
101
+ this.LinkStoreman3 = 0;
102
+ this.LinkStoreman4 = 0;
103
+ this.LinkPackager = 0;
104
+ this.AgentName = "";
105
+ this.Status = ClsInvoice.eStatus.Unknown;
106
+ this.IdNakMain = 0;
107
+ this.Comment = "";
108
+ /*this.AdditionalData = ;*/
109
+ }
110
+
111
+ /**
99
112
  * Конвертируем список классов ClsUser в json string
100
113
  * @param listClsUser
101
114
  */
102
- ArrayClsInvoiceToJson(listClsInvoice: Array<ClsInvoice>)
103
- {
104
- const arrayObject: Array<object> = new Array<object>();
105
- listClsInvoice.forEach((item: ClsInvoice) =>
106
- {
107
- const row: object = item.serialize();
108
- arrayObject.push(row);
109
- });
110
- return JSON.stringify(arrayObject);
111
- }
112
-
113
- /**
114
- * Конвертируем список объектов в Array<ClsInvoice>
115
- * @param arrayObject
116
- * @returns
117
- */
118
- ArrayObjectToListClsInvoice(arrayObject: Array<object>): Array<ClsInvoice>
119
- {
120
- const listClsInvoice: Array<ClsInvoice> = new Array<ClsInvoice>();
121
- arrayObject.forEach((item: object) =>
122
- {
123
- const сlsInvoice: ClsInvoice = new ClsInvoice();
124
- сlsInvoice.deserialize(item);
125
- listClsInvoice.push(сlsInvoice);
126
- })
127
- return listClsInvoice;
128
- }
129
-
130
- ShowTable()
131
- {
132
- const arrayTableField: ArrayTableField = new ArrayTableField();
133
- let tableField: TableField = new TableField();
134
- tableField.Field = "Id";
135
- tableField.ColumnName = "Id";
136
- tableField.ShowDefault = false;
137
- tableField.ComponentName = "";
138
- arrayTableField.ArrayFields.push(tableField);
139
-
140
- tableField = new TableField();
141
- tableField.Field = "Check";
142
- tableField.ColumnName = "О";
143
- tableField.ShowDefault = true;
144
- tableField.ComponentName = "";
145
- tableField.Width = "25";
146
- arrayTableField.ArrayFields.push(tableField);
147
-
148
- tableField = new TableField();
149
- tableField.Field = "LinkStoreman1";
150
- tableField.ColumnName = "С1";
151
- tableField.ShowDefault = true;
152
- tableField.ComponentName = "";
153
- tableField.Width = "25";
154
- arrayTableField.ArrayFields.push(tableField);
155
-
156
- tableField = new TableField();
157
- tableField.Field = "LinkStoreman2";
158
- tableField.ColumnName = "С2";
159
- tableField.ShowDefault = true;
160
- tableField.ComponentName = "";
161
- tableField.Width = "25";
162
- arrayTableField.ArrayFields.push(tableField);
163
-
164
- tableField = new TableField();
165
- tableField.Field = "LinkStoreman3";
166
- tableField.ColumnName = "С3";
167
- tableField.ShowDefault = true;
168
- tableField.ComponentName = "";
169
- tableField.Width = "25";
170
- arrayTableField.ArrayFields.push(tableField);
171
-
172
- tableField = new TableField();
173
- tableField.Field = "LinkStoreman4";
174
- tableField.ColumnName = "С4";
175
- tableField.ShowDefault = true;
176
- tableField.ComponentName = "";
177
- tableField.Width = "25";
178
- arrayTableField.ArrayFields.push(tableField);
179
-
180
- tableField = new TableField();
181
- tableField.Field = "LinkPackager";
182
- tableField.ColumnName = "Км";
183
- tableField.ShowDefault = true;
184
- tableField.ComponentName = "";
185
- tableField.Width = "25";
186
- arrayTableField.ArrayFields.push(tableField);
187
-
188
- tableField = new TableField();
189
- tableField.Field = "Date";
190
- tableField.ColumnName = "Дата";
191
- tableField.ShowDefault = true;
192
- tableField.ComponentName = "";
193
- tableField.Width = "85";
194
- arrayTableField.ArrayFields.push(tableField);
195
-
196
- tableField = new TableField();
197
- tableField.Field = "Number";
198
- tableField.ColumnName = "Номер";
199
- tableField.ShowDefault = true;
200
- tableField.ComponentName = "";
201
- tableField.Width = "60";
202
- arrayTableField.ArrayFields.push(tableField);
203
-
204
- tableField = new TableField();
205
- tableField.Field = "AgentName";
206
- tableField.ColumnName = "Контрагент";
207
- tableField.ShowDefault = true;
208
- tableField.ComponentName = "";
209
- tableField.Width = "300";
210
- arrayTableField.ArrayFields.push(tableField);
211
-
212
- tableField = new TableField();
213
- tableField.Field = "AgentID";
214
- tableField.ColumnName = "";
215
- tableField.ShowDefault = false;
216
- tableField.ComponentName = "";
217
- arrayTableField.ArrayFields.push(tableField);
218
-
219
- tableField = new TableField();
220
- tableField.Field = "Tools";
221
- tableField.ColumnName = "Опции";
222
- tableField.ShowDefault = true;
223
- tableField.ComponentName = "";
224
- tableField.Width = "93";
225
- arrayTableField.ArrayFields.push(tableField);
226
-
227
- tableField = new TableField();
228
- tableField.Field = "Done";
229
- tableField.ColumnName = "Закрыть работу";
230
- tableField.ShowDefault = true;
231
- tableField.ComponentName = "";
232
- tableField.Width = "150";
233
- arrayTableField.ArrayFields.push(tableField);
234
- return arrayTableField;
235
- }
115
+ ArrayClsInvoiceToJson(listClsInvoice: Array<ClsInvoice>) {
116
+ const arrayObject: Array<object> = new Array<object>();
117
+ listClsInvoice.forEach((item: ClsInvoice) => {
118
+ const row: object = item.serialize();
119
+ arrayObject.push(row);
120
+ });
121
+ return JSON.stringify(arrayObject);
122
+ }
123
+
124
+ /**
125
+ * Конвертируем список объектов в Array<ClsInvoice>
126
+ * @param arrayObject
127
+ * @returns
128
+ */
129
+ ArrayObjectToListClsInvoice(arrayObject: Array<object>): Array<ClsInvoice> {
130
+ const listClsInvoice: Array<ClsInvoice> = new Array<ClsInvoice>();
131
+ arrayObject.forEach((item: object) => {
132
+ const сlsInvoice: ClsInvoice = new ClsInvoice();
133
+ сlsInvoice.deserialize(item);
134
+ listClsInvoice.push(сlsInvoice);
135
+ })
136
+ return listClsInvoice;
137
+ }
138
+
139
+ ShowTable() {
140
+ const arrayTableField: ArrayTableField = new ArrayTableField();
141
+ let tableField: TableField = new TableField();
142
+ tableField.Field = "Id";
143
+ tableField.ColumnName = "Id";
144
+ tableField.ShowDefault = false;
145
+ tableField.ComponentName = "";
146
+ arrayTableField.ArrayFields.push(tableField);
147
+
148
+ tableField = new TableField();
149
+ tableField.Field = "Check";
150
+ tableField.ColumnName = "О";
151
+ tableField.ShowDefault = true;
152
+ tableField.ComponentName = "";
153
+ tableField.Width = "25";
154
+ arrayTableField.ArrayFields.push(tableField);
155
+
156
+ tableField = new TableField();
157
+ tableField.Field = "LinkStoreman1";
158
+ tableField.ColumnName = "С1";
159
+ tableField.ShowDefault = true;
160
+ tableField.ComponentName = "";
161
+ tableField.Width = "25";
162
+ arrayTableField.ArrayFields.push(tableField);
163
+
164
+ tableField = new TableField();
165
+ tableField.Field = "LinkStoreman2";
166
+ tableField.ColumnName = "С2";
167
+ tableField.ShowDefault = true;
168
+ tableField.ComponentName = "";
169
+ tableField.Width = "25";
170
+ arrayTableField.ArrayFields.push(tableField);
171
+
172
+ tableField = new TableField();
173
+ tableField.Field = "LinkStoreman3";
174
+ tableField.ColumnName = "С3";
175
+ tableField.ShowDefault = true;
176
+ tableField.ComponentName = "";
177
+ tableField.Width = "25";
178
+ arrayTableField.ArrayFields.push(tableField);
179
+
180
+ tableField = new TableField();
181
+ tableField.Field = "LinkStoreman4";
182
+ tableField.ColumnName = "С4";
183
+ tableField.ShowDefault = true;
184
+ tableField.ComponentName = "";
185
+ tableField.Width = "25";
186
+ arrayTableField.ArrayFields.push(tableField);
187
+
188
+ tableField = new TableField();
189
+ tableField.Field = "LinkPackager";
190
+ tableField.ColumnName = "Км";
191
+ tableField.ShowDefault = true;
192
+ tableField.ComponentName = "";
193
+ tableField.Width = "25";
194
+ arrayTableField.ArrayFields.push(tableField);
195
+
196
+ tableField = new TableField();
197
+ tableField.Field = "Date";
198
+ tableField.ColumnName = "Дата";
199
+ tableField.ShowDefault = true;
200
+ tableField.ComponentName = "";
201
+ tableField.Width = "85";
202
+ arrayTableField.ArrayFields.push(tableField);
203
+
204
+ tableField = new TableField();
205
+ tableField.Field = "Number";
206
+ tableField.ColumnName = "Номер";
207
+ tableField.ShowDefault = true;
208
+ tableField.ComponentName = "";
209
+ tableField.Width = "60";
210
+ arrayTableField.ArrayFields.push(tableField);
211
+
212
+ tableField = new TableField();
213
+ tableField.Field = "AgentName";
214
+ tableField.ColumnName = "Контрагент";
215
+ tableField.ShowDefault = true;
216
+ tableField.ComponentName = "";
217
+ tableField.Width = "300";
218
+ arrayTableField.ArrayFields.push(tableField);
219
+
220
+ tableField = new TableField();
221
+ tableField.Field = "AgentID";
222
+ tableField.ColumnName = "";
223
+ tableField.ShowDefault = false;
224
+ tableField.ComponentName = "";
225
+ arrayTableField.ArrayFields.push(tableField);
226
+
227
+ tableField = new TableField();
228
+ tableField.Field = "Tools";
229
+ tableField.ColumnName = "Опции";
230
+ tableField.ShowDefault = true;
231
+ tableField.ComponentName = "";
232
+ tableField.Width = "93";
233
+ arrayTableField.ArrayFields.push(tableField);
234
+
235
+ tableField = new TableField();
236
+ tableField.Field = "Done";
237
+ tableField.ColumnName = "Закрыть работу";
238
+ tableField.ShowDefault = true;
239
+ tableField.ComponentName = "";
240
+ tableField.Width = "150";
241
+ arrayTableField.ArrayFields.push(tableField);
242
+ return arrayTableField;
243
+ }
236
244
  }
237
245
 
238
- export namespace ClsInvoice
239
- {
240
- /**
241
- * Статус накладной
242
- * 0 - нерасперделена
243
- * 1 - распределена
244
- * 2 - все работы по накладной завершены
245
- */
246
- export enum eStatus
247
- {
248
- Unknown = 0,
249
- Distribute = 1,
250
- JobDone = 2
251
- }
246
+ export namespace ClsInvoice {
247
+ /**
248
+ * Статус накладной
249
+ * 0 - нерасперделена
250
+ * 1 - распределена
251
+ * 2 - все работы по накладной завершены
252
+ */
253
+ export enum eStatus {
254
+ Unknown = 0,
255
+ Distribute = 1,
256
+ JobDone = 2
257
+ }
252
258
  }
253
259
 
254
260
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lib_angar_new",
3
- "version": "2.0.41",
3
+ "version": "2.0.42",
4
4
  "description": "lib_angar",
5
5
  "main": "lib_angar/index.js",
6
6
  "types": "lib_angar/index.d.ts",
@@ -1,22 +0,0 @@
1
- import { Serializable } from 'ts-serializer';
2
- import { ClsAccruRetenFilter } from './ClsAccruRetenFilter';
3
- export declare class ClsAccruReten extends Serializable {
4
- Id: number;
5
- DetentionPremiumName: string;
6
- Comment: string;
7
- Amount: number;
8
- Type: ClsAccruRetenFilter.Status;
9
- DateEvent: Date;
10
- constructor();
11
- /**
12
- * ������������ ������ ������� ClsAccruReten � json string
13
- * @param listClsAccruReten
14
- */
15
- ArrayClsAccruRetenToJson(listClsAccruReten: Array<ClsAccruReten>): string;
16
- /**
17
- * ������������ ������ �������� � Array<ClsAccruReten>
18
- * @param arrayObject
19
- * @returns
20
- */
21
- ArrayObjectToListlistClsAccruReten(arrayObject: Array<object>): Array<ClsAccruReten>;
22
- }
@@ -1,82 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var ClsAccruReten_1;
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.ClsAccruReten = void 0;
14
- const ts_serializer_1 = require("ts-serializer");
15
- const ClsAccruRetenFilter_1 = require("./ClsAccruRetenFilter");
16
- let ClsAccruReten = ClsAccruReten_1 = class ClsAccruReten extends ts_serializer_1.Serializable {
17
- constructor() {
18
- super();
19
- this.Id = 0;
20
- this.DetentionPremiumName = "";
21
- this.Comment = "";
22
- this.Amount = 0;
23
- this.Type = ClsAccruRetenFilter_1.ClsAccruRetenFilter.Status.Accrual;
24
- this.DateEvent = new Date();
25
- }
26
- /**
27
- * ������������ ������ ������� ClsAccruReten � json string
28
- * @param listClsAccruReten
29
- */
30
- ArrayClsAccruRetenToJson(listClsAccruReten) {
31
- const arrayObject = new Array();
32
- listClsAccruReten.forEach((item) => {
33
- const row = item.serialize();
34
- arrayObject.push(row);
35
- });
36
- return JSON.stringify(arrayObject);
37
- }
38
- /**
39
- * ������������ ������ �������� � Array<ClsAccruReten>
40
- * @param arrayObject
41
- * @returns
42
- */
43
- ArrayObjectToListlistClsAccruReten(arrayObject) {
44
- const listClsAccruReten = new Array();
45
- arrayObject.forEach((item) => {
46
- const clsAccruReten = new ClsAccruReten_1();
47
- clsAccruReten.deserialize(item);
48
- listClsAccruReten.push(clsAccruReten);
49
- });
50
- return listClsAccruReten;
51
- }
52
- };
53
- exports.ClsAccruReten = ClsAccruReten;
54
- __decorate([
55
- (0, ts_serializer_1.SerializeProperty)({ map: "id", optional: true }),
56
- __metadata("design:type", Number)
57
- ], ClsAccruReten.prototype, "Id", void 0);
58
- __decorate([
59
- (0, ts_serializer_1.SerializeProperty)({ map: "detentionpremiumname", optional: true }),
60
- __metadata("design:type", String)
61
- ], ClsAccruReten.prototype, "DetentionPremiumName", void 0);
62
- __decorate([
63
- (0, ts_serializer_1.SerializeProperty)({ map: "comment", optional: true }),
64
- __metadata("design:type", String)
65
- ], ClsAccruReten.prototype, "Comment", void 0);
66
- __decorate([
67
- (0, ts_serializer_1.SerializeProperty)({ map: "amount", optional: true }),
68
- __metadata("design:type", Number)
69
- ], ClsAccruReten.prototype, "Amount", void 0);
70
- __decorate([
71
- (0, ts_serializer_1.SerializeProperty)({ map: "type", optional: true }),
72
- __metadata("design:type", Number)
73
- ], ClsAccruReten.prototype, "Type", void 0);
74
- __decorate([
75
- (0, ts_serializer_1.SerializeProperty)({ map: "date_event", optional: true }),
76
- __metadata("design:type", Date)
77
- ], ClsAccruReten.prototype, "DateEvent", void 0);
78
- exports.ClsAccruReten = ClsAccruReten = ClsAccruReten_1 = __decorate([
79
- (0, ts_serializer_1.Serialize)({}),
80
- __metadata("design:paramtypes", [])
81
- ], ClsAccruReten);
82
- //# sourceMappingURL=ClsAccruReten.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClsAccruReten.js","sourceRoot":"","sources":["ClsAccruReten.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,iDAA2E;AAC3E,+DAA4D;AAGrD,IAAM,aAAa,qBAAnB,MAAM,aAAc,SAAQ,4BAAY;IAqB9C;QAEC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;QACZ,IAAI,CAAC,oBAAoB,GAAG,EAAE,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,yCAAmB,CAAC,MAAM,CAAC,OAAO,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;IAC7B,CAAC;IAED;;;MAGE;IACF,wBAAwB,CAAC,iBAAuC;QAE/D,MAAM,WAAW,GAAkB,IAAI,KAAK,EAAU,CAAC;QACvD,iBAAiB,CAAC,OAAO,CAAC,CAAC,IAAmB,EAAE,EAAE;YAEjD,MAAM,GAAG,GAAW,IAAI,CAAC,SAAS,EAAE,CAAC;YACrC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACpC,CAAC;IAED;;;;MAIE;IACF,kCAAkC,CAAC,WAA0B;QAE5D,MAAM,iBAAiB,GAAyB,IAAI,KAAK,EAAiB,CAAC;QAC3E,WAAW,CAAC,OAAO,CAAC,CAAC,IAAY,EAAE,EAAE;YAEpC,MAAM,aAAa,GAAkB,IAAI,eAAa,EAAE,CAAC;YACzD,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAChC,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACvC,CAAC,CAAC,CAAA;QACF,OAAO,iBAAiB,CAAC;IAC1B,CAAC;CACD,CAAA;AA/DY,sCAAa;AAGlB;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAC/B;AAGX;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,sBAAsB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DAC/B;AAG7B;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC/B;AAGhB;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC/B;AAGf;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACX;AAGjC;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACvC,IAAI;gDAAC;wBAlBX,aAAa;IADzB,IAAA,yBAAS,EAAC,EAAE,CAAC;;GACD,aAAa,CA+DzB"}
@@ -1,29 +0,0 @@
1
- import { Serializable } from 'ts-serializer';
2
- import { ClsApiRequest } from '../ApiRequest/ClsApiRequest';
3
- export declare class ClsAccruRetenFilter extends Serializable {
4
- /**
5
- * Параметры запроса
6
- */
7
- ClsApiRequest: ClsApiRequest;
8
- Year: number;
9
- Month: number;
10
- Type: ClsAccruRetenFilter.Status;
11
- Uuid: string;
12
- constructor();
13
- /**
14
- * Находим номер текущего месяца
15
- * @returns
16
- */
17
- GetMonthNumber(): number;
18
- }
19
- export declare namespace ClsAccruRetenFilter {
20
- /**
21
- * Статус действия
22
- * 0 - начисление
23
- * 1 - удержание
24
- */
25
- enum Status {
26
- Accrual = 0,
27
- Retention = 1
28
- }
29
- }