diff --git a/src/vue/src/shared/service-proxies/service-proxies.ts b/src/vue/src/shared/service-proxies/service-proxies.ts index 7c61e58a..d8064e17 100644 --- a/src/vue/src/shared/service-proxies/service-proxies.ts +++ b/src/vue/src/shared/service-proxies/service-proxies.ts @@ -46987,6 +46987,73 @@ export class IcsProjectProgressServiceProxy { return Promise.resolve(null as any); } + /** + * @param maxResultCount (optional) + * @param filterText (optional) + * @param sorting (optional) + * @param skipCount (optional) + * @return Success + */ + getTJReport(maxResultCount: number | undefined, filterText: string | null | undefined, sorting: string | null | undefined, skipCount: number | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/api/services/app/IcsProjectProgress/GetTJReport?"; + if (maxResultCount === null) + throw new Error("The parameter 'maxResultCount' cannot be null."); + else if (maxResultCount !== undefined) + url_ += "maxResultCount=" + encodeURIComponent("" + maxResultCount) + "&"; + if (filterText !== undefined && filterText !== null) + url_ += "filterText=" + encodeURIComponent("" + filterText) + "&"; + if (sorting !== undefined && sorting !== null) + url_ += "sorting=" + encodeURIComponent("" + sorting) + "&"; + if (skipCount === null) + throw new Error("The parameter 'skipCount' cannot be null."); + else if (skipCount !== undefined) + url_ += "skipCount=" + encodeURIComponent("" + skipCount) + "&"; + url_ = url_.replace(/[?&]$/, ""); + + let options_: AxiosRequestConfig = { + method: "GET", + url: url_, + headers: { + "Accept": "text/plain" + }, + cancelToken + }; + + return this.instance.request(options_).catch((_error: any) => { + if (isAxiosError(_error) && _error.response) { + return _error.response; + } else { + throw _error; + } + }).then((_response: AxiosResponse) => { + return this.processGetTJReport(_response); + }); + } + + protected processGetTJReport(response: AxiosResponse): Promise { + const status = response.status; + let _headers: any = {}; + if (response.headers && typeof response.headers === "object") { + for (let k in response.headers) { + if (response.headers.hasOwnProperty(k)) { + _headers[k] = response.headers[k]; + } + } + } + if (status === 200) { + const _responseText = response.data; + let result200: any = null; + let resultData200 = _responseText; + result200 = PagedResultDtoOfIcsProProgressTJListDto.fromJS(resultData200); + return Promise.resolve(result200); + + } else if (status !== 200 && status !== 204) { + const _responseText = response.data; + return throwException("An unexpected server error occurred.", status, _responseText, _headers); + } + return Promise.resolve(null as any); + } + /** * @param input (optional) * @param body (optional) @@ -132455,6 +132522,125 @@ export interface IIcsPreProjectReportListDto { id: number; } +export class IcsProProgressTJListDto implements IIcsProProgressTJListDto { + key: string | undefined; + saleOrderNo: string | undefined; + projectCode: string | undefined; + casNo: string | undefined; + moCode: string | undefined; + itemCode: string | undefined; + itemName: string | undefined; + experimentUser: string | undefined; + startTime: moment.Moment | undefined; + endDateTime: moment.Moment | undefined; + experimentStage: string | undefined; + totalWorkTime: number; + deliveryQty: string | undefined; + creatorUserName: string | undefined; + lastModifierUserName: string | undefined; + lastModificationTime: moment.Moment | undefined; + lastModifierUserId: string | undefined; + creationTime: moment.Moment; + creatorUserId: string | undefined; + id: number; + + constructor(data?: IIcsProProgressTJListDto) { + if (data) { + for (var property in data) { + if (data.hasOwnProperty(property)) + (this)[property] = (data)[property]; + } + } + } + + init(_data?: any) { + if (_data) { + this.key = _data["key"]; + this.saleOrderNo = _data["saleOrderNo"]; + this.projectCode = _data["projectCode"]; + this.casNo = _data["casNo"]; + this.moCode = _data["moCode"]; + this.itemCode = _data["itemCode"]; + this.itemName = _data["itemName"]; + this.experimentUser = _data["experimentUser"]; + this.startTime = _data["startTime"] ? moment(_data["startTime"].toString()) : undefined; + this.endDateTime = _data["endDateTime"] ? moment(_data["endDateTime"].toString()) : undefined; + this.experimentStage = _data["experimentStage"]; + this.totalWorkTime = _data["totalWorkTime"]; + this.deliveryQty = _data["deliveryQty"]; + this.creatorUserName = _data["creatorUserName"]; + this.lastModifierUserName = _data["lastModifierUserName"]; + this.lastModificationTime = _data["lastModificationTime"] ? moment(_data["lastModificationTime"].toString()) : undefined; + this.lastModifierUserId = _data["lastModifierUserId"]; + this.creationTime = _data["creationTime"] ? moment(_data["creationTime"].toString()) : undefined; + this.creatorUserId = _data["creatorUserId"]; + this.id = _data["id"]; + } + } + + static fromJS(data: any): IcsProProgressTJListDto { + data = typeof data === 'object' ? data : {}; + let result = new IcsProProgressTJListDto(); + result.init(data); + return result; + } + + toJSON(data?: any) { + data = typeof data === 'object' ? data : {}; + data["key"] = this.key; + data["saleOrderNo"] = this.saleOrderNo; + data["projectCode"] = this.projectCode; + data["casNo"] = this.casNo; + data["moCode"] = this.moCode; + data["itemCode"] = this.itemCode; + data["itemName"] = this.itemName; + data["experimentUser"] = this.experimentUser; + data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined; + data["endDateTime"] = this.endDateTime ? this.endDateTime.toISOString() : undefined; + data["experimentStage"] = this.experimentStage; + data["totalWorkTime"] = this.totalWorkTime; + data["deliveryQty"] = this.deliveryQty; + data["creatorUserName"] = this.creatorUserName; + data["lastModifierUserName"] = this.lastModifierUserName; + data["lastModificationTime"] = this.lastModificationTime ? this.lastModificationTime.toISOString() : undefined; + data["lastModifierUserId"] = this.lastModifierUserId; + data["creationTime"] = this.creationTime ? this.creationTime.toISOString() : undefined; + data["creatorUserId"] = this.creatorUserId; + data["id"] = this.id; + return data; + } + + clone(): IcsProProgressTJListDto { + const json = this.toJSON(); + let result = new IcsProProgressTJListDto(); + result.init(json); + return result; + } +} + +export interface IIcsProProgressTJListDto { + key: string | undefined; + saleOrderNo: string | undefined; + projectCode: string | undefined; + casNo: string | undefined; + moCode: string | undefined; + itemCode: string | undefined; + itemName: string | undefined; + experimentUser: string | undefined; + startTime: moment.Moment | undefined; + endDateTime: moment.Moment | undefined; + experimentStage: string | undefined; + totalWorkTime: number; + deliveryQty: string | undefined; + creatorUserName: string | undefined; + lastModifierUserName: string | undefined; + lastModificationTime: moment.Moment | undefined; + lastModifierUserId: string | undefined; + creationTime: moment.Moment; + creatorUserId: string | undefined; + id: number; +} + export class IcsProducePlan4KelkEditDto implements IIcsProducePlan4KelkEditDto { key: string | undefined; id: number | undefined; @@ -154362,6 +154548,61 @@ export interface IPagedResultDtoOfIcsPreProjectReportListDto { items: IcsPreProjectReportListDto[] | undefined; } +export class PagedResultDtoOfIcsProProgressTJListDto implements IPagedResultDtoOfIcsProProgressTJListDto { + totalCount: number; + items: IcsProProgressTJListDto[] | undefined; + + constructor(data?: IPagedResultDtoOfIcsProProgressTJListDto) { + if (data) { + for (var property in data) { + if (data.hasOwnProperty(property)) + (this)[property] = (data)[property]; + } + } + } + + init(_data?: any) { + if (_data) { + this.totalCount = _data["totalCount"]; + if (Array.isArray(_data["items"])) { + this.items = [] as any; + for (let item of _data["items"]) + this.items.push(IcsProProgressTJListDto.fromJS(item)); + } + } + } + + static fromJS(data: any): PagedResultDtoOfIcsProProgressTJListDto { + data = typeof data === 'object' ? data : {}; + let result = new PagedResultDtoOfIcsProProgressTJListDto(); + result.init(data); + return result; + } + + toJSON(data?: any) { + data = typeof data === 'object' ? data : {}; + data["totalCount"] = this.totalCount; + if (Array.isArray(this.items)) { + data["items"] = []; + for (let item of this.items) + data["items"].push(item.toJSON()); + } + return data; + } + + clone(): PagedResultDtoOfIcsProProgressTJListDto { + const json = this.toJSON(); + let result = new PagedResultDtoOfIcsProProgressTJListDto(); + result.init(json); + return result; + } +} + +export interface IPagedResultDtoOfIcsProProgressTJListDto { + totalCount: number; + items: IcsProProgressTJListDto[] | undefined; +} + export class PagedResultDtoOfIcsProducePlan4KelkListDto implements IPagedResultDtoOfIcsProducePlan4KelkListDto { totalCount: number; items: IcsProducePlan4KelkListDto[] | undefined;