lib_angar_new 2.0.5 → 2.0.7
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.
- package/lib_angar/TimesheeStock/ClsTimesheeDate.d.ts +35 -0
- package/lib_angar/TimesheeStock/ClsTimesheeDate.js +76 -0
- package/lib_angar/TimesheeStock/ClsTimesheeDate.js.map +1 -0
- package/lib_angar/TimesheeStock/ClsTimesheeDate.ts +83 -0
- package/lib_angar/TimesheeStock/ClsTimesheeStock.d.ts +5 -27
- package/lib_angar/TimesheeStock/ClsTimesheeStock.js +10 -52
- package/lib_angar/TimesheeStock/ClsTimesheeStock.js.map +1 -1
- package/lib_angar/TimesheeStock/ClsTimesheeStock.ts +9 -64
- package/lib_angar/index.d.ts +1 -0
- package/lib_angar/index.js +3 -1
- package/lib_angar/index.js.map +1 -1
- package/lib_angar/index.ts +1 -0
- package/lib_angar/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Serializable } from 'ts-serializer';
|
|
2
|
+
export declare class ClsTimesheeDate extends Serializable {
|
|
3
|
+
/**
|
|
4
|
+
* id записи
|
|
5
|
+
*/
|
|
6
|
+
Id: number;
|
|
7
|
+
/**
|
|
8
|
+
* Код пользователя
|
|
9
|
+
*/
|
|
10
|
+
LinkT14login: number;
|
|
11
|
+
/**
|
|
12
|
+
* Полная дата табеля
|
|
13
|
+
*/
|
|
14
|
+
DateTimeshee: Date;
|
|
15
|
+
/**
|
|
16
|
+
* Планируемое рабочее время
|
|
17
|
+
*/
|
|
18
|
+
Plan: number;
|
|
19
|
+
/**
|
|
20
|
+
* Фактическое рабочее время
|
|
21
|
+
*/
|
|
22
|
+
Fact: number;
|
|
23
|
+
constructor();
|
|
24
|
+
/**
|
|
25
|
+
* Конвертируем список классов ClsTimesheeStock в json string
|
|
26
|
+
* @param listClsUser
|
|
27
|
+
*/
|
|
28
|
+
ArrayClsTimesheeStockToJson(listClsTimesheeStock: Array<ClsTimesheeDate>): string;
|
|
29
|
+
/**
|
|
30
|
+
* Конвертируем список объектов в Array<ClsTimesheeStock>
|
|
31
|
+
* @param arrayObject
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
34
|
+
ArrayObjectToListClsTimesheeStock(arrayObject: Array<object>): Array<ClsTimesheeDate>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 ClsTimesheeDate_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.ClsTimesheeDate = void 0;
|
|
14
|
+
const ts_serializer_1 = require("ts-serializer");
|
|
15
|
+
let ClsTimesheeDate = ClsTimesheeDate_1 = class ClsTimesheeDate extends ts_serializer_1.Serializable {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
this.Id = 0;
|
|
19
|
+
this.LinkT14login = 0;
|
|
20
|
+
this.DateTimeshee = new Date();
|
|
21
|
+
this.Plan = 0;
|
|
22
|
+
this.Fact = 0;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Конвертируем список классов ClsTimesheeStock в json string
|
|
26
|
+
* @param listClsUser
|
|
27
|
+
*/
|
|
28
|
+
ArrayClsTimesheeStockToJson(listClsTimesheeStock) {
|
|
29
|
+
const arrayObject = new Array();
|
|
30
|
+
listClsTimesheeStock.forEach((item) => {
|
|
31
|
+
const row = item.serialize();
|
|
32
|
+
arrayObject.push(row);
|
|
33
|
+
});
|
|
34
|
+
return JSON.stringify(arrayObject);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Конвертируем список объектов в Array<ClsTimesheeStock>
|
|
38
|
+
* @param arrayObject
|
|
39
|
+
* @returns
|
|
40
|
+
*/
|
|
41
|
+
ArrayObjectToListClsTimesheeStock(arrayObject) {
|
|
42
|
+
const listClsTimesheeStock = new Array();
|
|
43
|
+
arrayObject.forEach((item) => {
|
|
44
|
+
const сlsTimesheeStock = new ClsTimesheeDate_1();
|
|
45
|
+
сlsTimesheeStock.deserialize(item);
|
|
46
|
+
listClsTimesheeStock.push(сlsTimesheeStock);
|
|
47
|
+
});
|
|
48
|
+
return listClsTimesheeStock;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
exports.ClsTimesheeDate = ClsTimesheeDate;
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "id", optional: true }),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], ClsTimesheeDate.prototype, "Id", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "link_t14login", optional: true }),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], ClsTimesheeDate.prototype, "LinkT14login", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "date", optional: true }),
|
|
62
|
+
__metadata("design:type", Date)
|
|
63
|
+
], ClsTimesheeDate.prototype, "DateTimeshee", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "plan", optional: true }),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], ClsTimesheeDate.prototype, "Plan", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "fact", optional: true }),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], ClsTimesheeDate.prototype, "Fact", void 0);
|
|
72
|
+
exports.ClsTimesheeDate = ClsTimesheeDate = ClsTimesheeDate_1 = __decorate([
|
|
73
|
+
(0, ts_serializer_1.Serialize)({}),
|
|
74
|
+
__metadata("design:paramtypes", [])
|
|
75
|
+
], ClsTimesheeDate);
|
|
76
|
+
//# sourceMappingURL=ClsTimesheeDate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClsTimesheeDate.js","sourceRoot":"","sources":["ClsTimesheeDate.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,iDAA2E;AAGpE,IAAM,eAAe,uBAArB,MAAM,eAAgB,SAAQ,4BAAY;IAiChD;QAEC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;QACZ,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;QACtB,IAAI,CAAC,YAAY,GAAG,IAAI,IAAI,EAAE,CAAC;QAC/B,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;IACf,CAAC;IAGD;;;OAGG;IACH,2BAA2B,CAAC,oBAA4C;QAEvE,MAAM,WAAW,GAAkB,IAAI,KAAK,EAAU,CAAC;QACvD,oBAAoB,CAAC,OAAO,CAAC,CAAC,IAAqB,EAAE,EAAE;YAEtD,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,iCAAiC,CAAC,WAA0B;QAE3D,MAAM,oBAAoB,GAA2B,IAAI,KAAK,EAAmB,CAAC;QAClF,WAAW,CAAC,OAAO,CAAC,CAAC,IAAY,EAAE,EAAE;YAEpC,MAAM,gBAAgB,GAAoB,IAAI,iBAAe,EAAE,CAAC;YAChE,gBAAgB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YACnC,oBAAoB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAA;QACF,OAAO,oBAAoB,CAAC;IAC7B,CAAC;CACD,CAAA;AA3EY,0CAAe;AAMpB;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC/B;AAMX;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAChC;AAMrB;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC9B,IAAI;qDAAC;AAMnB;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC/B;AAMb;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC/B;0BA9BR,eAAe;IAD3B,IAAA,yBAAS,EAAC,EAAE,CAAC;;GACD,eAAe,CA2E3B"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { SerializeProperty, Serializable, Serialize } from 'ts-serializer';
|
|
2
|
+
|
|
3
|
+
@Serialize({})
|
|
4
|
+
export class ClsTimesheeDate extends Serializable
|
|
5
|
+
{
|
|
6
|
+
/**
|
|
7
|
+
* id записи
|
|
8
|
+
*/
|
|
9
|
+
@SerializeProperty({ map: "id", optional: true })
|
|
10
|
+
public Id: number;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Код пользователя
|
|
14
|
+
*/
|
|
15
|
+
@SerializeProperty({ map: "link_t14login", optional: true })
|
|
16
|
+
public LinkT14login: number;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Полная дата табеля
|
|
20
|
+
*/
|
|
21
|
+
@SerializeProperty({ map: "date", optional: true })
|
|
22
|
+
public DateTimeshee: Date;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Планируемое рабочее время
|
|
26
|
+
*/
|
|
27
|
+
@SerializeProperty({ map: "plan", optional: true })
|
|
28
|
+
public Plan: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Фактическое рабочее время
|
|
32
|
+
*/
|
|
33
|
+
@SerializeProperty({ map: "fact", optional: true })
|
|
34
|
+
public Fact: number;
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
constructor()
|
|
38
|
+
{
|
|
39
|
+
super();
|
|
40
|
+
this.Id = 0;
|
|
41
|
+
this.LinkT14login = 0;
|
|
42
|
+
this.DateTimeshee = new Date();
|
|
43
|
+
this.Plan = 0;
|
|
44
|
+
this.Fact = 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Конвертируем список классов ClsTimesheeStock в json string
|
|
50
|
+
* @param listClsUser
|
|
51
|
+
*/
|
|
52
|
+
ArrayClsTimesheeStockToJson(listClsTimesheeStock: Array<ClsTimesheeDate>)
|
|
53
|
+
{
|
|
54
|
+
const arrayObject: Array<object> = new Array<object>();
|
|
55
|
+
listClsTimesheeStock.forEach((item: ClsTimesheeDate) =>
|
|
56
|
+
{
|
|
57
|
+
const row: object = item.serialize();
|
|
58
|
+
arrayObject.push(row);
|
|
59
|
+
});
|
|
60
|
+
return JSON.stringify(arrayObject);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Конвертируем список объектов в Array<ClsTimesheeStock>
|
|
65
|
+
* @param arrayObject
|
|
66
|
+
* @returns
|
|
67
|
+
*/
|
|
68
|
+
ArrayObjectToListClsTimesheeStock(arrayObject: Array<object>): Array<ClsTimesheeDate>
|
|
69
|
+
{
|
|
70
|
+
const listClsTimesheeStock: Array<ClsTimesheeDate> = new Array<ClsTimesheeDate>();
|
|
71
|
+
arrayObject.forEach((item: object) =>
|
|
72
|
+
{
|
|
73
|
+
const сlsTimesheeStock: ClsTimesheeDate = new ClsTimesheeDate();
|
|
74
|
+
сlsTimesheeStock.deserialize(item);
|
|
75
|
+
listClsTimesheeStock.push(сlsTimesheeStock);
|
|
76
|
+
})
|
|
77
|
+
return listClsTimesheeStock;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
@@ -1,35 +1,13 @@
|
|
|
1
1
|
import { Serializable } from 'ts-serializer';
|
|
2
|
+
import { ClsTimesheeDate } from './ClsTimesheeDate';
|
|
2
3
|
export declare class ClsTimesheeStock extends Serializable {
|
|
3
4
|
/**
|
|
4
|
-
* id
|
|
5
|
+
* id ������
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
+
Storeman: number;
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* ��� ������������
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Полная дата табеля
|
|
13
|
-
*/
|
|
14
|
-
DateTimeshee: Date;
|
|
15
|
-
/**
|
|
16
|
-
* Планируемое рабочее время
|
|
17
|
-
*/
|
|
18
|
-
Plan: number;
|
|
19
|
-
/**
|
|
20
|
-
* Фактическое рабочее время
|
|
21
|
-
*/
|
|
22
|
-
Fact: number;
|
|
11
|
+
List: Array<ClsTimesheeDate>;
|
|
23
12
|
constructor();
|
|
24
|
-
/**
|
|
25
|
-
* Конвертируем список классов ClsTimesheeStock в json string
|
|
26
|
-
* @param listClsUser
|
|
27
|
-
*/
|
|
28
|
-
ArrayClsTimesheeStockToJson(listClsTimesheeStock: Array<ClsTimesheeStock>): string;
|
|
29
|
-
/**
|
|
30
|
-
* Конвертируем список объектов в Array<ClsTimesheeStock>
|
|
31
|
-
* @param arrayObject
|
|
32
|
-
* @returns
|
|
33
|
-
*/
|
|
34
|
-
ArrayObjectToListClsTimesheeStock(arrayObject: Array<object>): Array<ClsTimesheeStock>;
|
|
35
13
|
}
|
|
@@ -8,69 +8,27 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var ClsTimesheeStock_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.ClsTimesheeStock = void 0;
|
|
14
13
|
const ts_serializer_1 = require("ts-serializer");
|
|
15
|
-
const
|
|
16
|
-
let ClsTimesheeStock =
|
|
14
|
+
const ClsTimesheeDate_1 = require("./ClsTimesheeDate");
|
|
15
|
+
let ClsTimesheeStock = class ClsTimesheeStock extends ts_serializer_1.Serializable {
|
|
17
16
|
constructor() {
|
|
18
17
|
super();
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.DateTimeshee = new Date();
|
|
22
|
-
this.Plan = 0;
|
|
23
|
-
this.Fact = 0;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Конвертируем список классов ClsTimesheeStock в json string
|
|
27
|
-
* @param listClsUser
|
|
28
|
-
*/
|
|
29
|
-
ArrayClsTimesheeStockToJson(listClsTimesheeStock) {
|
|
30
|
-
const arrayObject = new Array();
|
|
31
|
-
listClsTimesheeStock.forEach((item) => {
|
|
32
|
-
const row = item.serialize();
|
|
33
|
-
arrayObject.push(row);
|
|
34
|
-
});
|
|
35
|
-
return JSON.stringify(arrayObject);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Конвертируем список объектов в Array<ClsTimesheeStock>
|
|
39
|
-
* @param arrayObject
|
|
40
|
-
* @returns
|
|
41
|
-
*/
|
|
42
|
-
ArrayObjectToListClsTimesheeStock(arrayObject) {
|
|
43
|
-
const listClsTimesheeStock = new Array();
|
|
44
|
-
arrayObject.forEach((item) => {
|
|
45
|
-
const сlsTimesheeStock = new ClsTimesheeStock_1();
|
|
46
|
-
сlsTimesheeStock.deserialize(item);
|
|
47
|
-
listClsTimesheeStock.push(сlsTimesheeStock);
|
|
48
|
-
});
|
|
49
|
-
return listClsTimesheeStock;
|
|
18
|
+
this.Storeman = 0;
|
|
19
|
+
this.List = new Array();
|
|
50
20
|
}
|
|
51
21
|
};
|
|
52
22
|
exports.ClsTimesheeStock = ClsTimesheeStock;
|
|
53
23
|
__decorate([
|
|
54
|
-
(0, ts_serializer_1.SerializeProperty)({ map: "
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], ClsTimesheeStock.prototype, "Id", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, ts_serializer_1.SerializeProperty)({ map: "link_t14login", optional: true }),
|
|
24
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "Storeman", optional: true }),
|
|
59
25
|
__metadata("design:type", Number)
|
|
60
|
-
], ClsTimesheeStock.prototype, "
|
|
26
|
+
], ClsTimesheeStock.prototype, "Storeman", void 0);
|
|
61
27
|
__decorate([
|
|
62
|
-
(0, ts_serializer_1.SerializeProperty)({ map: "
|
|
63
|
-
__metadata("design:type",
|
|
64
|
-
], ClsTimesheeStock.prototype, "
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, ts_serializer_1.SerializeProperty)({ map: "plan", optional: true }),
|
|
67
|
-
__metadata("design:type", Number)
|
|
68
|
-
], ClsTimesheeStock.prototype, "Plan", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, ts_serializer_1.SerializeProperty)({ map: "fact", optional: true }),
|
|
71
|
-
__metadata("design:type", Number)
|
|
72
|
-
], ClsTimesheeStock.prototype, "Fact", void 0);
|
|
73
|
-
exports.ClsTimesheeStock = ClsTimesheeStock = ClsTimesheeStock_1 = __decorate([
|
|
28
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "List", list: true, type: ClsTimesheeDate_1.ClsTimesheeDate, optional: true }),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], ClsTimesheeStock.prototype, "List", void 0);
|
|
31
|
+
exports.ClsTimesheeStock = ClsTimesheeStock = __decorate([
|
|
74
32
|
(0, ts_serializer_1.Serialize)({}),
|
|
75
33
|
__metadata("design:paramtypes", [])
|
|
76
34
|
], ClsTimesheeStock);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClsTimesheeStock.js","sourceRoot":"","sources":["ClsTimesheeStock.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClsTimesheeStock.js","sourceRoot":"","sources":["ClsTimesheeStock.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA2E;AAC3E,uDAAoD;AAG7C,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,4BAAY;IAcjD;QAEC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,KAAK,EAAmB,CAAC;IAC1C,CAAC;CACD,CAAA;AApBY,4CAAgB;AAMrB;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC/B;AAMjB;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,iCAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACzE,KAAK;8CAAkB;2BAZxB,gBAAgB;IAD5B,IAAA,yBAAS,EAAC,EAAE,CAAC;;GACD,gBAAgB,CAoB5B"}
|
|
@@ -1,81 +1,26 @@
|
|
|
1
1
|
import { SerializeProperty, Serializable, Serialize } from 'ts-serializer';
|
|
2
|
-
import {
|
|
2
|
+
import { ClsTimesheeDate } from './ClsTimesheeDate';
|
|
3
3
|
|
|
4
4
|
@Serialize({})
|
|
5
5
|
export class ClsTimesheeStock extends Serializable
|
|
6
6
|
{
|
|
7
7
|
/**
|
|
8
|
-
* id
|
|
8
|
+
* id ������
|
|
9
9
|
*/
|
|
10
|
-
@SerializeProperty({ map: "
|
|
11
|
-
public
|
|
10
|
+
@SerializeProperty({ map: "Storeman", optional: true })
|
|
11
|
+
public Storeman: number;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* ��� ������������
|
|
15
15
|
*/
|
|
16
|
-
@SerializeProperty({ map: "
|
|
17
|
-
public
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Полная дата табеля
|
|
21
|
-
*/
|
|
22
|
-
@SerializeProperty({ map: "date", optional: true })
|
|
23
|
-
public DateTimeshee: Date;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Планируемое рабочее время
|
|
27
|
-
*/
|
|
28
|
-
@SerializeProperty({ map: "plan", optional: true })
|
|
29
|
-
public Plan: number;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Фактическое рабочее время
|
|
33
|
-
*/
|
|
34
|
-
@SerializeProperty({ map: "fact", optional: true })
|
|
35
|
-
public Fact: number;
|
|
36
|
-
|
|
16
|
+
@SerializeProperty({ map: "List", list: true, type: ClsTimesheeDate, optional: true })
|
|
17
|
+
public List: Array<ClsTimesheeDate>;
|
|
37
18
|
|
|
38
19
|
constructor()
|
|
39
20
|
{
|
|
40
21
|
super();
|
|
41
|
-
this.
|
|
42
|
-
this.
|
|
43
|
-
this.DateTimeshee = new Date();
|
|
44
|
-
this.Plan = 0;
|
|
45
|
-
this.Fact = 0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Конвертируем список классов ClsTimesheeStock в json string
|
|
51
|
-
* @param listClsUser
|
|
52
|
-
*/
|
|
53
|
-
ArrayClsTimesheeStockToJson(listClsTimesheeStock: Array<ClsTimesheeStock>)
|
|
54
|
-
{
|
|
55
|
-
const arrayObject: Array<object> = new Array<object>();
|
|
56
|
-
listClsTimesheeStock.forEach((item: ClsTimesheeStock) =>
|
|
57
|
-
{
|
|
58
|
-
const row: object = item.serialize();
|
|
59
|
-
arrayObject.push(row);
|
|
60
|
-
});
|
|
61
|
-
return JSON.stringify(arrayObject);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Конвертируем список объектов в Array<ClsTimesheeStock>
|
|
66
|
-
* @param arrayObject
|
|
67
|
-
* @returns
|
|
68
|
-
*/
|
|
69
|
-
ArrayObjectToListClsTimesheeStock(arrayObject: Array<object>): Array<ClsTimesheeStock>
|
|
70
|
-
{
|
|
71
|
-
const listClsTimesheeStock: Array<ClsTimesheeStock> = new Array<ClsTimesheeStock>();
|
|
72
|
-
arrayObject.forEach((item: object) =>
|
|
73
|
-
{
|
|
74
|
-
const сlsTimesheeStock: ClsTimesheeStock = new ClsTimesheeStock();
|
|
75
|
-
сlsTimesheeStock.deserialize(item);
|
|
76
|
-
listClsTimesheeStock.push(сlsTimesheeStock);
|
|
77
|
-
})
|
|
78
|
-
return listClsTimesheeStock;
|
|
22
|
+
this.Storeman = 0;
|
|
23
|
+
this.List = new Array<ClsTimesheeDate>();
|
|
79
24
|
}
|
|
80
25
|
}
|
|
81
26
|
|
package/lib_angar/index.d.ts
CHANGED
|
@@ -24,4 +24,5 @@ export { TableField } from "./ViewProperty/TableField";
|
|
|
24
24
|
export { ArrayTableField } from "./ViewProperty/ArrayTableField";
|
|
25
25
|
export { ClsPercent } from "./SalaryAll/ClsPercent";
|
|
26
26
|
export { ClsTimesheeStockFilter } from "./TimesheeStock/ClsTimesheeStockFilter";
|
|
27
|
+
export { ClsTimesheeDate } from "./TimesheeStock/ClsTimesheeDate";
|
|
27
28
|
export { ClsTimesheeStock } from "./TimesheeStock/ClsTimesheeStock";
|
package/lib_angar/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClsTimesheeStock = exports.ClsTimesheeStockFilter = exports.ClsPercent = exports.ArrayTableField = exports.TableField = exports.ClsDetentionPremium = exports.ClsTotalHand = exports.ClsInOutRoot = exports.ClsPrinter = exports.ClsInOut = exports.ClsCompletedWorkFilter = exports.ClsCompletedWork = exports.ClsJobDone = exports.ClsPrintDistribute = exports.ClsDistribute = exports.ClsRootDistribute = exports.ClsOutcoming = exports.ClsOutcomingFilter = exports.ClsInvoice = exports.ClsSalaryAll = exports.ClsSalaryAllFilter = exports.ClsInvoiceFilter = exports.ClsRoot = exports.ClsApiResponse = exports.ClsApiRequest = exports.ClsUser = exports.ClsAlert = void 0;
|
|
3
|
+
exports.ClsTimesheeStock = exports.ClsTimesheeDate = exports.ClsTimesheeStockFilter = exports.ClsPercent = exports.ArrayTableField = exports.TableField = exports.ClsDetentionPremium = exports.ClsTotalHand = exports.ClsInOutRoot = exports.ClsPrinter = exports.ClsInOut = exports.ClsCompletedWorkFilter = exports.ClsCompletedWork = exports.ClsJobDone = exports.ClsPrintDistribute = exports.ClsDistribute = exports.ClsRootDistribute = exports.ClsOutcoming = exports.ClsOutcomingFilter = exports.ClsInvoice = exports.ClsSalaryAll = exports.ClsSalaryAllFilter = exports.ClsInvoiceFilter = exports.ClsRoot = exports.ClsApiResponse = exports.ClsApiRequest = exports.ClsUser = exports.ClsAlert = void 0;
|
|
4
4
|
var ClsAlert_1 = require("./Alert/ClsAlert");
|
|
5
5
|
Object.defineProperty(exports, "ClsAlert", { enumerable: true, get: function () { return ClsAlert_1.ClsAlert; } });
|
|
6
6
|
var ClsUser_1 = require("./User/ClsUser");
|
|
@@ -53,6 +53,8 @@ var ClsPercent_1 = require("./SalaryAll/ClsPercent");
|
|
|
53
53
|
Object.defineProperty(exports, "ClsPercent", { enumerable: true, get: function () { return ClsPercent_1.ClsPercent; } });
|
|
54
54
|
var ClsTimesheeStockFilter_1 = require("./TimesheeStock/ClsTimesheeStockFilter");
|
|
55
55
|
Object.defineProperty(exports, "ClsTimesheeStockFilter", { enumerable: true, get: function () { return ClsTimesheeStockFilter_1.ClsTimesheeStockFilter; } });
|
|
56
|
+
var ClsTimesheeDate_1 = require("./TimesheeStock/ClsTimesheeDate");
|
|
57
|
+
Object.defineProperty(exports, "ClsTimesheeDate", { enumerable: true, get: function () { return ClsTimesheeDate_1.ClsTimesheeDate; } });
|
|
56
58
|
var ClsTimesheeStock_1 = require("./TimesheeStock/ClsTimesheeStock");
|
|
57
59
|
Object.defineProperty(exports, "ClsTimesheeStock", { enumerable: true, get: function () { return ClsTimesheeStock_1.ClsTimesheeStock; } });
|
|
58
60
|
//# sourceMappingURL=index.js.map
|
package/lib_angar/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAAnC,oGAAA,QAAQ,OAAA;AACjB,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;AAChB,4DAA2D;AAAlD,8GAAA,aAAa,OAAA;AACtB,+DAA8D;AAArD,gHAAA,cAAc,OAAA;AACvB,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;AAChB,+DAA8D;AAArD,oHAAA,gBAAgB,OAAA;AACzB,qEAAoE;AAA3D,wHAAA,kBAAkB,OAAA;AAC3B,yDAAwD;AAA/C,4GAAA,YAAY,OAAA;AACrB,mDAAkD;AAAzC,wGAAA,UAAU,OAAA;AACnB,qEAAoE;AAA3D,wHAAA,kBAAkB,OAAA;AAC3B,yDAAwD;AAA/C,4GAAA,YAAY,OAAA;AACrB,mEAAkE;AAAzD,sHAAA,iBAAiB,OAAA;AAC1B,2DAA0D;AAAjD,8GAAA,aAAa,OAAA;AACtB,qEAAoE;AAA3D,wHAAA,kBAAkB,OAAA;AAC3B,mDAAkD;AAAzC,wGAAA,UAAU,OAAA;AACnB,qEAAmE;AAA1D,oHAAA,gBAAgB,OAAA;AACzB,iFAAgF;AAAvE,gIAAA,sBAAsB,OAAA;AAC/B,6CAA4C;AAAnC,oGAAA,QAAQ,OAAA;AACjB,mDAAkD;AAAzC,wGAAA,UAAU,OAAA;AACnB,qDAAoD;AAA3C,4GAAA,YAAY,OAAA;AACrB,qDAAoD;AAA3C,4GAAA,YAAY,OAAA;AACrB,8EAA6E;AAApE,0HAAA,mBAAmB,OAAA;AAC5B,wDAAuD;AAA9C,wGAAA,UAAU,OAAA;AACnB,kEAAiE;AAAxD,kHAAA,eAAe,OAAA;AACxB,qDAAoD;AAA3C,wGAAA,UAAU,OAAA;AACnB,iFAAgF;AAAvE,gIAAA,sBAAsB,OAAA;AAC/B,qEAAoE;AAA3D,oHAAA,gBAAgB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAAnC,oGAAA,QAAQ,OAAA;AACjB,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;AAChB,4DAA2D;AAAlD,8GAAA,aAAa,OAAA;AACtB,+DAA8D;AAArD,gHAAA,cAAc,OAAA;AACvB,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;AAChB,+DAA8D;AAArD,oHAAA,gBAAgB,OAAA;AACzB,qEAAoE;AAA3D,wHAAA,kBAAkB,OAAA;AAC3B,yDAAwD;AAA/C,4GAAA,YAAY,OAAA;AACrB,mDAAkD;AAAzC,wGAAA,UAAU,OAAA;AACnB,qEAAoE;AAA3D,wHAAA,kBAAkB,OAAA;AAC3B,yDAAwD;AAA/C,4GAAA,YAAY,OAAA;AACrB,mEAAkE;AAAzD,sHAAA,iBAAiB,OAAA;AAC1B,2DAA0D;AAAjD,8GAAA,aAAa,OAAA;AACtB,qEAAoE;AAA3D,wHAAA,kBAAkB,OAAA;AAC3B,mDAAkD;AAAzC,wGAAA,UAAU,OAAA;AACnB,qEAAmE;AAA1D,oHAAA,gBAAgB,OAAA;AACzB,iFAAgF;AAAvE,gIAAA,sBAAsB,OAAA;AAC/B,6CAA4C;AAAnC,oGAAA,QAAQ,OAAA;AACjB,mDAAkD;AAAzC,wGAAA,UAAU,OAAA;AACnB,qDAAoD;AAA3C,4GAAA,YAAY,OAAA;AACrB,qDAAoD;AAA3C,4GAAA,YAAY,OAAA;AACrB,8EAA6E;AAApE,0HAAA,mBAAmB,OAAA;AAC5B,wDAAuD;AAA9C,wGAAA,UAAU,OAAA;AACnB,kEAAiE;AAAxD,kHAAA,eAAe,OAAA;AACxB,qDAAoD;AAA3C,wGAAA,UAAU,OAAA;AACnB,iFAAgF;AAAvE,gIAAA,sBAAsB,OAAA;AAC/B,mEAAkE;AAAzD,kHAAA,eAAe,OAAA;AACxB,qEAAoE;AAA3D,oHAAA,gBAAgB,OAAA"}
|
package/lib_angar/index.ts
CHANGED
|
@@ -24,4 +24,5 @@ export { TableField } from "./ViewProperty/TableField";
|
|
|
24
24
|
export { ArrayTableField } from "./ViewProperty/ArrayTableField";
|
|
25
25
|
export { ClsPercent } from "./SalaryAll/ClsPercent";
|
|
26
26
|
export { ClsTimesheeStockFilter } from "./TimesheeStock/ClsTimesheeStockFilter";
|
|
27
|
+
export { ClsTimesheeDate } from "./TimesheeStock/ClsTimesheeDate";
|
|
27
28
|
export { ClsTimesheeStock } from "./TimesheeStock/ClsTimesheeStock";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./index.ts","./alert/clsalert.ts","./apirequest/clsapirequest.ts","./apiresponse/clsapiresponse.ts","./completedwork/clscompletedwork.ts","./completedwork/clscompletedworkfilter.ts","./detentionpremium/clsdetentionpremium.ts","./inout/clsinout.ts","./inout/clsinoutroot.ts","./inout/clstotalhand.ts","./invoice/clsinvoice.ts","./invoice/clsinvoicefilter.ts","./jobdone/clsjobdone.ts","./outcoming/clsdistribute.ts","./outcoming/clsoutcoming.ts","./outcoming/clsoutcomingfilter.ts","./outcoming/clsprintdistribute.ts","./outcoming/clsrootdistribute.ts","./printer/clsprinter.ts","./root/clsroot.ts","./salaryall/clspercent.ts","./salaryall/clssalaryall.ts","./salaryall/clssalaryallfilter.ts","./timesheestock/clstimesheestock.ts","./timesheestock/clstimesheestockfilter.ts","./user/clsuser.ts","./viewproperty/arraytablefield.ts","./viewproperty/tablefield.ts"],"version":"5.6.3"}
|
|
1
|
+
{"root":["./index.ts","./alert/clsalert.ts","./apirequest/clsapirequest.ts","./apiresponse/clsapiresponse.ts","./completedwork/clscompletedwork.ts","./completedwork/clscompletedworkfilter.ts","./detentionpremium/clsdetentionpremium.ts","./inout/clsinout.ts","./inout/clsinoutroot.ts","./inout/clstotalhand.ts","./invoice/clsinvoice.ts","./invoice/clsinvoicefilter.ts","./jobdone/clsjobdone.ts","./outcoming/clsdistribute.ts","./outcoming/clsoutcoming.ts","./outcoming/clsoutcomingfilter.ts","./outcoming/clsprintdistribute.ts","./outcoming/clsrootdistribute.ts","./printer/clsprinter.ts","./root/clsroot.ts","./salaryall/clspercent.ts","./salaryall/clssalaryall.ts","./salaryall/clssalaryallfilter.ts","./timesheestock/clstimesheedate.ts","./timesheestock/clstimesheestock.ts","./timesheestock/clstimesheestockfilter.ts","./user/clsuser.ts","./viewproperty/arraytablefield.ts","./viewproperty/tablefield.ts"],"version":"5.6.3"}
|