lib_angar_new 2.0.14 → 2.0.15
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/AccruReten/ClsAccruRetenFilter.d.ts +29 -0
- package/lib_angar/AccruReten/ClsAccruRetenFilter.js +67 -0
- package/lib_angar/AccruReten/ClsAccruRetenFilter.js.map +1 -0
- package/lib_angar/AccruReten/ClsAccruRetenFilter.ts +69 -0
- package/lib_angar/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
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.eStatus;
|
|
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 eStatus {
|
|
26
|
+
Accrual = 0,
|
|
27
|
+
Retention = 1
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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 ClsAccruRetenFilter_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.ClsAccruRetenFilter = void 0;
|
|
14
|
+
const ts_serializer_1 = require("ts-serializer");
|
|
15
|
+
const ClsApiRequest_1 = require("../ApiRequest/ClsApiRequest");
|
|
16
|
+
let ClsAccruRetenFilter = ClsAccruRetenFilter_1 = class ClsAccruRetenFilter extends ts_serializer_1.Serializable {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
this.ClsApiRequest = new ClsApiRequest_1.ClsApiRequest();
|
|
20
|
+
this.Year = new Date().getFullYear();
|
|
21
|
+
this.Month = this.GetMonthNumber();
|
|
22
|
+
this.Type = ClsAccruRetenFilter_1.eStatus.Accrual;
|
|
23
|
+
this.Uuid = "";
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* ������� ����� �������� ������
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
GetMonthNumber() {
|
|
30
|
+
const currentMonthName = new Date().toLocaleString("ru-RU", { month: "long" });
|
|
31
|
+
let monthNumber = 0;
|
|
32
|
+
for (let i = 0; i < 12; i++) {
|
|
33
|
+
const n = i + 1;
|
|
34
|
+
if (new Date(0, i).toLocaleString('ru-RU', { month: 'long' }) === currentMonthName) {
|
|
35
|
+
monthNumber = n;
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return monthNumber;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.ClsAccruRetenFilter = ClsAccruRetenFilter;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "clsApiRequest", type: ClsApiRequest_1.ClsApiRequest, optional: true }),
|
|
45
|
+
__metadata("design:type", ClsApiRequest_1.ClsApiRequest)
|
|
46
|
+
], ClsAccruRetenFilter.prototype, "ClsApiRequest", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "year", optional: true }),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], ClsAccruRetenFilter.prototype, "Year", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "month", optional: true }),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], ClsAccruRetenFilter.prototype, "Month", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "type", optional: true }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], ClsAccruRetenFilter.prototype, "Type", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, ts_serializer_1.SerializeProperty)({ map: "uuid", optional: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], ClsAccruRetenFilter.prototype, "Uuid", void 0);
|
|
63
|
+
exports.ClsAccruRetenFilter = ClsAccruRetenFilter = ClsAccruRetenFilter_1 = __decorate([
|
|
64
|
+
(0, ts_serializer_1.Serialize)({}),
|
|
65
|
+
__metadata("design:paramtypes", [])
|
|
66
|
+
], ClsAccruRetenFilter);
|
|
67
|
+
//# sourceMappingURL=ClsAccruRetenFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClsAccruRetenFilter.js","sourceRoot":"","sources":["ClsAccruRetenFilter.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAA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,IAAI,EAAE,CAAC;;iDAC/B;AAGb;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC/B;AAGd;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACV;AAGlC;IADN,IAAA,iCAAiB,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC/B;8BAlBR,mBAAmB;IAD/B,IAAA,yBAAS,EAAC,EAAE,CAAC;;GACD,mBAAmB,CAmD/B"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { SerializeProperty, Serializable, Serialize } from 'ts-serializer';
|
|
2
|
+
import { ClsApiRequest } from '../ApiRequest/ClsApiRequest';
|
|
3
|
+
|
|
4
|
+
@Serialize({})
|
|
5
|
+
export class ClsAccruRetenFilter extends Serializable
|
|
6
|
+
{
|
|
7
|
+
/**
|
|
8
|
+
* ��������� �������
|
|
9
|
+
*/
|
|
10
|
+
@SerializeProperty({ map: "clsApiRequest", type: ClsApiRequest, optional: true })
|
|
11
|
+
public ClsApiRequest: ClsApiRequest;
|
|
12
|
+
|
|
13
|
+
@SerializeProperty({ map: "year", optional: true })
|
|
14
|
+
public Year: number;
|
|
15
|
+
|
|
16
|
+
@SerializeProperty({ map: "month", optional: true })
|
|
17
|
+
public Month: number;
|
|
18
|
+
|
|
19
|
+
@SerializeProperty({ map: "type", optional: true })
|
|
20
|
+
public Type: ClsAccruRetenFilter.eStatus;
|
|
21
|
+
|
|
22
|
+
@SerializeProperty({ map: "uuid", optional: true })
|
|
23
|
+
public Uuid: string;
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
constructor()
|
|
27
|
+
{
|
|
28
|
+
super();
|
|
29
|
+
this.ClsApiRequest = new ClsApiRequest();
|
|
30
|
+
this.Year = new Date().getFullYear();
|
|
31
|
+
this.Month = this.GetMonthNumber();
|
|
32
|
+
this.Type = ClsAccruRetenFilter.eStatus.Accrual;
|
|
33
|
+
this.Uuid = "";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* ������� ����� �������� ������
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
GetMonthNumber(): number
|
|
41
|
+
{
|
|
42
|
+
const currentMonthName: string = new Date().toLocaleString("ru-RU", { month: "long" });
|
|
43
|
+
let monthNumber: number = 0;
|
|
44
|
+
for (let i: number = 0; i < 12; i++)
|
|
45
|
+
{
|
|
46
|
+
const n: number = i + 1;
|
|
47
|
+
if (new Date(0, i).toLocaleString('ru-RU', { month: 'long' }) === currentMonthName)
|
|
48
|
+
{
|
|
49
|
+
monthNumber = n;
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return monthNumber;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
}
|
|
57
|
+
export declare namespace ClsAccruRetenFilter
|
|
58
|
+
{
|
|
59
|
+
/**
|
|
60
|
+
* ������ ��������
|
|
61
|
+
* 0 - ����������
|
|
62
|
+
* 1 - ���������
|
|
63
|
+
*/
|
|
64
|
+
enum eStatus
|
|
65
|
+
{
|
|
66
|
+
Accrual = 0,
|
|
67
|
+
Retention = 1
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -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/clstimesheedate.ts","./timesheestock/clstimesheedateput.ts","./timesheestock/clstimesheestock.ts","./timesheestock/clstimesheestockfilter.ts","./user/clsuser.ts","./viewproperty/arraytablefield.ts","./viewproperty/tablefield.ts"],"version":"5.6.3"}
|
|
1
|
+
{"root":["./index.ts","./accrureten/clsaccruretenfilter.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/clstimesheedateput.ts","./timesheestock/clstimesheestock.ts","./timesheestock/clstimesheestockfilter.ts","./user/clsuser.ts","./viewproperty/arraytablefield.ts","./viewproperty/tablefield.ts"],"version":"5.6.3"}
|