lib_angar_new 2.0.34 → 2.0.35
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/Driver/ClsDriverData.d.ts +25 -0
- package/lib_angar/Driver/ClsDriverData.js +56 -0
- package/lib_angar/Driver/ClsDriverData.js.map +1 -0
- package/lib_angar/Driver/ClsDriverData.ts +49 -0
- package/lib_angar/Driver/ClsDriverFilter.d.ts +22 -0
- package/lib_angar/Driver/ClsDriverFilter.js +56 -0
- package/lib_angar/Driver/ClsDriverFilter.js.map +1 -0
- package/lib_angar/Driver/ClsDriverFilter.ts +51 -0
- package/lib_angar/TimesheeStock/ClsTimesheeDate.js.map +1 -1
- package/lib_angar/TimesheeStock/ClsTimesheeDate.ts +60 -67
- package/lib_angar/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Serializable } from 'ts-serializer';
|
|
2
|
+
export declare class ClsDriverData extends Serializable {
|
|
3
|
+
/**
|
|
4
|
+
* uuid ������
|
|
5
|
+
*/
|
|
6
|
+
Uuid: string;
|
|
7
|
+
/**
|
|
8
|
+
* ��� ��������
|
|
9
|
+
*/
|
|
10
|
+
Name: string;
|
|
11
|
+
/**
|
|
12
|
+
* ����������
|
|
13
|
+
*/
|
|
14
|
+
Premium: number;
|
|
15
|
+
/**
|
|
16
|
+
*���������
|
|
17
|
+
*/
|
|
18
|
+
Detention: number;
|
|
19
|
+
constructor();
|
|
20
|
+
/**
|
|
21
|
+
* ������������ ������ ������� ClsDriverData � json string
|
|
22
|
+
* @param listClsDriverData
|
|
23
|
+
*/
|
|
24
|
+
ArrayClsDriverDataToJson(listClsDriverData: Array<ClsDriverData>): string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ClsDriverData = void 0;
|
|
13
|
+
const ts_serializer_1 = require("ts-serializer");
|
|
14
|
+
let ClsDriverData = class ClsDriverData extends ts_serializer_1.Serializable {
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
this.Uuid = "";
|
|
18
|
+
this.Name = "";
|
|
19
|
+
this.Premium = 0;
|
|
20
|
+
this.Detention = 0;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* ������������ ������ ������� ClsDriverData � json string
|
|
24
|
+
* @param listClsDriverData
|
|
25
|
+
*/
|
|
26
|
+
ArrayClsDriverDataToJson(listClsDriverData) {
|
|
27
|
+
const arrayObject = new Array();
|
|
28
|
+
listClsDriverData.forEach((item) => {
|
|
29
|
+
const row = item.serialize();
|
|
30
|
+
arrayObject.push(row);
|
|
31
|
+
});
|
|
32
|
+
return JSON.stringify(arrayObject);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.ClsDriverData = ClsDriverData;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "uuid", optional: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ClsDriverData.prototype, "Uuid", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "name", optional: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], ClsDriverData.prototype, "Name", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "premium", optional: true }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], ClsDriverData.prototype, "Premium", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "detention", optional: true }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], ClsDriverData.prototype, "Detention", void 0);
|
|
52
|
+
exports.ClsDriverData = ClsDriverData = __decorate([
|
|
53
|
+
(0, ts_serializer_1.Serialize)({}),
|
|
54
|
+
__metadata("design:paramtypes", [])
|
|
55
|
+
], ClsDriverData);
|
|
56
|
+
//# sourceMappingURL=ClsDriverData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClsDriverData.js","sourceRoot":"","sources":["ClsDriverData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA2E;AAGpE,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAY;IAyB3C;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACvB,CAAC;IAED;;;MAGE;IACF,wBAAwB,CAAC,iBAAuC;QAC5D,MAAM,WAAW,GAAkB,IAAI,KAAK,EAAU,CAAC;QACvD,iBAAiB,CAAC,OAAO,CAAC,CAAC,IAAmB,EAAE,EAAE;YAC9C,MAAM,GAAG,GAAW,IAAI,CAAC,SAAS,EAAE,CAAC;YACrC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;CACJ,CAAA;AA7CY,sCAAa;AAKf;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC/B;AAMb;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC/B;AAMb;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC/B;AAMhB;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC/B;wBAvBhB,aAAa;IADzB,IAAA,yBAAS,EAAC,EAAE,CAAC;;GACD,aAAa,CA6CzB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { SerializeProperty, Serializable, Serialize } from 'ts-serializer';
|
|
2
|
+
|
|
3
|
+
@Serialize({})
|
|
4
|
+
export class ClsDriverData extends Serializable {
|
|
5
|
+
/**
|
|
6
|
+
* uuid ������
|
|
7
|
+
*/
|
|
8
|
+
@SerializeProperty({ map: "uuid", optional: true })
|
|
9
|
+
public Uuid: string;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* ��� ��������
|
|
13
|
+
*/
|
|
14
|
+
@SerializeProperty({ map: "name", optional: true })
|
|
15
|
+
public Name: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* ����������
|
|
19
|
+
*/
|
|
20
|
+
@SerializeProperty({ map: "premium", optional: true })
|
|
21
|
+
public Premium: number;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*���������
|
|
25
|
+
*/
|
|
26
|
+
@SerializeProperty({ map: "detention", optional: true })
|
|
27
|
+
public Detention: number;
|
|
28
|
+
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
this.Uuid = "";
|
|
32
|
+
this.Name = "";
|
|
33
|
+
this.Premium = 0;
|
|
34
|
+
this.Detention = 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* ������������ ������ ������� ClsDriverData � json string
|
|
39
|
+
* @param listClsDriverData
|
|
40
|
+
*/
|
|
41
|
+
ArrayClsDriverDataToJson(listClsDriverData: Array<ClsDriverData>) {
|
|
42
|
+
const arrayObject: Array<object> = new Array<object>();
|
|
43
|
+
listClsDriverData.forEach((item: ClsDriverData) => {
|
|
44
|
+
const row: object = item.serialize();
|
|
45
|
+
arrayObject.push(row);
|
|
46
|
+
});
|
|
47
|
+
return JSON.stringify(arrayObject);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Serializable } from 'ts-serializer';
|
|
2
|
+
import { ClsApiRequest } from '../ApiRequest/ClsApiRequest';
|
|
3
|
+
export declare class ClsDriverFilter extends Serializable {
|
|
4
|
+
/**
|
|
5
|
+
* ��������� �������
|
|
6
|
+
*/
|
|
7
|
+
ClsApiRequest: ClsApiRequest;
|
|
8
|
+
/**
|
|
9
|
+
* ���
|
|
10
|
+
*/
|
|
11
|
+
Year: number;
|
|
12
|
+
/**
|
|
13
|
+
* �����
|
|
14
|
+
*/
|
|
15
|
+
Month: number;
|
|
16
|
+
constructor();
|
|
17
|
+
/**
|
|
18
|
+
* ������� ����� �������� ������
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
GetMonthNumber(): number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ClsDriverFilter = void 0;
|
|
13
|
+
const ts_serializer_1 = require("ts-serializer");
|
|
14
|
+
const ClsApiRequest_1 = require("../ApiRequest/ClsApiRequest");
|
|
15
|
+
let ClsDriverFilter = class ClsDriverFilter extends ts_serializer_1.Serializable {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
this.ClsApiRequest = new ClsApiRequest_1.ClsApiRequest();
|
|
19
|
+
this.Year = new Date().getFullYear();
|
|
20
|
+
this.Month = this.GetMonthNumber();
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* ������� ����� �������� ������
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
GetMonthNumber() {
|
|
27
|
+
const currentMonthName = new Date().toLocaleString("ru-RU", { month: "long" });
|
|
28
|
+
let monthNumber = 0;
|
|
29
|
+
for (let i = 0; i < 12; i++) {
|
|
30
|
+
const n = i + 1;
|
|
31
|
+
if (new Date(0, i).toLocaleString('ru-RU', { month: 'long' }) === currentMonthName) {
|
|
32
|
+
monthNumber = n;
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return monthNumber;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
exports.ClsDriverFilter = ClsDriverFilter;
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "clsApiRequest", type: ClsApiRequest_1.ClsApiRequest, optional: true }),
|
|
42
|
+
__metadata("design:type", ClsApiRequest_1.ClsApiRequest)
|
|
43
|
+
], ClsDriverFilter.prototype, "ClsApiRequest", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "year", optional: true }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], ClsDriverFilter.prototype, "Year", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "month", optional: true }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], ClsDriverFilter.prototype, "Month", void 0);
|
|
52
|
+
exports.ClsDriverFilter = ClsDriverFilter = __decorate([
|
|
53
|
+
(0, ts_serializer_1.Serialize)({}),
|
|
54
|
+
__metadata("design:paramtypes", [])
|
|
55
|
+
], ClsDriverFilter);
|
|
56
|
+
//# sourceMappingURL=ClsDriverFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClsDriverFilter.js","sourceRoot":"","sources":["ClsDriverFilter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA2E;AAC3E,+DAA4D;AAGrD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,4BAAY;IAmB7C;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,aAAa,GAAG,IAAI,6BAAa,EAAE,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;IACvC,CAAC;IAED;;;OAGG;IACH,cAAc;QACV,MAAM,gBAAgB,GAAW,IAAI,IAAI,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;QACvF,IAAI,WAAW,GAAW,CAAC,CAAC;QAC5B,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;YAClC,MAAM,CAAC,GAAW,CAAC,GAAG,CAAC,CAAC;YACxB,IAAI,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,KAAK,gBAAgB,EAAE,CAAC;gBACjF,WAAW,GAAG,CAAC,CAAC;gBAChB,MAAM;YACV,CAAC;QACL,CAAC;QACD,OAAO,WAAW,CAAC;IACvB,CAAC;CACJ,CAAA;AA1CY,0CAAe;AAKjB;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,6BAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC3D,6BAAa;sDAAC;AAM7B;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC/B;AAMb;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC/B;0BAjBZ,eAAe;IAD3B,IAAA,yBAAS,EAAC,EAAE,CAAC;;GACD,eAAe,CA0C3B"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { SerializeProperty, Serializable, Serialize } from 'ts-serializer';
|
|
2
|
+
import { ClsApiRequest } from '../ApiRequest/ClsApiRequest';
|
|
3
|
+
|
|
4
|
+
@Serialize({})
|
|
5
|
+
export class ClsDriverFilter extends Serializable {
|
|
6
|
+
/**
|
|
7
|
+
* ��������� �������
|
|
8
|
+
*/
|
|
9
|
+
@SerializeProperty({ map: "clsApiRequest", type: ClsApiRequest, optional: true })
|
|
10
|
+
public ClsApiRequest: ClsApiRequest;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* ���
|
|
14
|
+
*/
|
|
15
|
+
@SerializeProperty({ map: "year", optional: true })
|
|
16
|
+
public Year: number;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* �����
|
|
20
|
+
*/
|
|
21
|
+
@SerializeProperty({ map: "month", optional: true })
|
|
22
|
+
public Month: number;
|
|
23
|
+
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
this.ClsApiRequest = new ClsApiRequest();
|
|
27
|
+
this.Year = new Date().getFullYear();
|
|
28
|
+
this.Month = this.GetMonthNumber();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* ������� ����� �������� ������
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
GetMonthNumber(): number {
|
|
36
|
+
const currentMonthName: string = new Date().toLocaleString("ru-RU", { month: "long" });
|
|
37
|
+
let monthNumber: number = 0;
|
|
38
|
+
for (let i: number = 0; i < 12; i++) {
|
|
39
|
+
const n: number = i + 1;
|
|
40
|
+
if (new Date(0, i).toLocaleString('ru-RU', { month: 'long' }) === currentMonthName) {
|
|
41
|
+
monthNumber = n;
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return monthNumber;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClsTimesheeDate.js","sourceRoot":"","sources":["ClsTimesheeDate.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,iDAA2E;AAGpE,IAAM,eAAe,uBAArB,MAAM,eAAgB,SAAQ,4BAAY;
|
|
1
|
+
{"version":3,"file":"ClsTimesheeDate.js","sourceRoot":"","sources":["ClsTimesheeDate.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,iDAA2E;AAGpE,IAAM,eAAe,uBAArB,MAAM,eAAgB,SAAQ,4BAAY;IA+B7C;QACI,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;IAElB,CAAC;IAED;;;OAGG;IACH,2BAA2B,CAAC,oBAA4C;QACpE,MAAM,WAAW,GAAkB,IAAI,KAAK,EAAU,CAAC;QACvD,oBAAoB,CAAC,OAAO,CAAC,CAAC,IAAqB,EAAE,EAAE;YACnD,MAAM,GAAG,GAAW,IAAI,CAAC,SAAS,EAAE,CAAC;YACrC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAED;;;;MAIE;IACF,iCAAiC,CAAC,WAA0B;QACxD,MAAM,oBAAoB,GAA2B,IAAI,KAAK,EAAmB,CAAC;QAClF,WAAW,CAAC,OAAO,CAAC,CAAC,IAAY,EAAE,EAAE;YACjC,MAAM,gBAAgB,GAAoB,IAAI,iBAAe,EAAE,CAAC;YAChE,gBAAgB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YACnC,oBAAoB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAChD,CAAC,CAAC,CAAA;QACF,OAAO,oBAAoB,CAAC;IAChC,CAAC;CACJ,CAAA;AApEY,0CAAe;AAKjB;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;0BA7BX,eAAe;IAD3B,IAAA,yBAAS,EAAC,EAAE,CAAC;;GACD,eAAe,CAoE3B"}
|
|
@@ -1,81 +1,74 @@
|
|
|
1
1
|
import { SerializeProperty, Serializable, Serialize } from 'ts-serializer';
|
|
2
2
|
|
|
3
3
|
@Serialize({})
|
|
4
|
-
export class ClsTimesheeDate extends Serializable
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
public Id: number;
|
|
4
|
+
export class ClsTimesheeDate extends Serializable {
|
|
5
|
+
/**
|
|
6
|
+
* id записи
|
|
7
|
+
*/
|
|
8
|
+
@SerializeProperty({ map: "id", optional: true })
|
|
9
|
+
public Id: number;
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Код пользователя
|
|
13
|
+
*/
|
|
14
|
+
@SerializeProperty({ map: "link_t14login", optional: true })
|
|
15
|
+
public LinkT14login: number;
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Полная дата табеля
|
|
19
|
+
*/
|
|
20
|
+
@SerializeProperty({ map: "date", optional: true })
|
|
21
|
+
public DateTimeshee: Date;
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Планируемое рабочее время
|
|
25
|
+
*/
|
|
26
|
+
@SerializeProperty({ map: "plan", optional: true })
|
|
27
|
+
public Plan: number;
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Фактическое рабочее время
|
|
31
|
+
*/
|
|
32
|
+
@SerializeProperty({ map: "fact", optional: true })
|
|
33
|
+
public Fact: number;
|
|
35
34
|
|
|
35
|
+
constructor() {
|
|
36
|
+
super();
|
|
37
|
+
this.Id = 0;
|
|
38
|
+
this.LinkT14login = 0;
|
|
39
|
+
this.DateTimeshee = new Date();
|
|
40
|
+
this.Plan = 0;
|
|
41
|
+
this.Fact = 0;
|
|
36
42
|
|
|
37
|
-
|
|
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
|
-
}
|
|
43
|
+
}
|
|
46
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Конвертируем список классов ClsTimesheeStock в json string
|
|
47
|
+
* @param listClsUser
|
|
48
|
+
*/
|
|
49
|
+
ArrayClsTimesheeStockToJson(listClsTimesheeStock: Array<ClsTimesheeDate>) {
|
|
50
|
+
const arrayObject: Array<object> = new Array<object>();
|
|
51
|
+
listClsTimesheeStock.forEach((item: ClsTimesheeDate) => {
|
|
52
|
+
const row: object = item.serialize();
|
|
53
|
+
arrayObject.push(row);
|
|
54
|
+
});
|
|
55
|
+
return JSON.stringify(arrayObject);
|
|
56
|
+
}
|
|
47
57
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
}
|
|
58
|
+
/**
|
|
59
|
+
* Конвертируем список объектов в Array<ClsTimesheeStock>
|
|
60
|
+
* @param arrayObject
|
|
61
|
+
* @returns
|
|
62
|
+
*/
|
|
63
|
+
ArrayObjectToListClsTimesheeStock(arrayObject: Array<object>): Array<ClsTimesheeDate> {
|
|
64
|
+
const listClsTimesheeStock: Array<ClsTimesheeDate> = new Array<ClsTimesheeDate>();
|
|
65
|
+
arrayObject.forEach((item: object) => {
|
|
66
|
+
const сlsTimesheeStock: ClsTimesheeDate = new ClsTimesheeDate();
|
|
67
|
+
сlsTimesheeStock.deserialize(item);
|
|
68
|
+
listClsTimesheeStock.push(сlsTimesheeStock);
|
|
69
|
+
})
|
|
70
|
+
return listClsTimesheeStock;
|
|
71
|
+
}
|
|
79
72
|
}
|
|
80
73
|
|
|
81
74
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./index.ts","./accrureten/clsaccrureten.ts","./accrureten/clsaccruretenfilter.ts","./accrureten/clsaccrureteninsert.ts","./accrureten/clsguideaccrureten.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","./salarydf/clssalarydrv.ts","./salarydf/clssalaryfwd.ts","./timesheestock/clstimesheedate.ts","./timesheestock/clstimesheedateput.ts","./timesheestock/clstimesheeoffice.ts","./timesheestock/clstimesheestock.ts","./timesheestock/clstimesheestockfilter.ts","./user/clsuser.ts","./viewproperty/arraytablefield.ts","./viewproperty/tablefield.ts"],"version":"5.9.3"}
|
|
1
|
+
{"root":["./index.ts","./accrureten/clsaccrureten.ts","./accrureten/clsaccruretenfilter.ts","./accrureten/clsaccrureteninsert.ts","./accrureten/clsguideaccrureten.ts","./alert/clsalert.ts","./apirequest/clsapirequest.ts","./apiresponse/clsapiresponse.ts","./completedwork/clscompletedwork.ts","./completedwork/clscompletedworkfilter.ts","./detentionpremium/clsdetentionpremium.ts","./driver/clsdriverdata.ts","./driver/clsdriverfilter.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","./salarydf/clssalarydrv.ts","./salarydf/clssalaryfwd.ts","./timesheestock/clstimesheedate.ts","./timesheestock/clstimesheedateput.ts","./timesheestock/clstimesheeoffice.ts","./timesheestock/clstimesheestock.ts","./timesheestock/clstimesheestockfilter.ts","./user/clsuser.ts","./viewproperty/arraytablefield.ts","./viewproperty/tablefield.ts"],"version":"5.9.3"}
|