|
|
@ -44433,6 +44433,64 @@ export class ICSPreMOLogServiceProxy { |
|
|
|
return Promise.resolve<ICSPreMOLogListDto>(null as any); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @return Success |
|
|
|
*/ |
|
|
|
getCurrentRoles( cancelToken?: CancelToken | undefined): Promise<string[]> { |
|
|
|
let url_ = this.baseUrl + "/api/services/app/ICSPreMOLog/GetCurrentRoles"; |
|
|
|
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.processGetCurrentRoles(_response); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
protected processGetCurrentRoles(response: AxiosResponse): Promise<string[]> { |
|
|
|
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; |
|
|
|
if (Array.isArray(resultData200)) { |
|
|
|
result200 = [] as any; |
|
|
|
for (let item of resultData200) |
|
|
|
result200.push(item); |
|
|
|
} |
|
|
|
else { |
|
|
|
result200 = <any>null; |
|
|
|
} |
|
|
|
return Promise.resolve<string[]>(result200); |
|
|
|
|
|
|
|
} else if (status !== 200 && status !== 204) { |
|
|
|
const _responseText = response.data; |
|
|
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers); |
|
|
|
} |
|
|
|
return Promise.resolve<string[]>(null as any); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param id (optional) |
|
|
|
* @return Success |
|
|
@ -44905,6 +44963,64 @@ export class ICSPreMOUserServiceProxy { |
|
|
|
return Promise.resolve<ICSPreMOUserListDto>(null as any); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @return Success |
|
|
|
*/ |
|
|
|
getCurrentRoles( cancelToken?: CancelToken | undefined): Promise<string[]> { |
|
|
|
let url_ = this.baseUrl + "/api/services/app/ICSPreMOUser/GetCurrentRoles"; |
|
|
|
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.processGetCurrentRoles(_response); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
protected processGetCurrentRoles(response: AxiosResponse): Promise<string[]> { |
|
|
|
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; |
|
|
|
if (Array.isArray(resultData200)) { |
|
|
|
result200 = [] as any; |
|
|
|
for (let item of resultData200) |
|
|
|
result200.push(item); |
|
|
|
} |
|
|
|
else { |
|
|
|
result200 = <any>null; |
|
|
|
} |
|
|
|
return Promise.resolve<string[]>(result200); |
|
|
|
|
|
|
|
} else if (status !== 200 && status !== 204) { |
|
|
|
const _responseText = response.data; |
|
|
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers); |
|
|
|
} |
|
|
|
return Promise.resolve<string[]>(null as any); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @return Success |
|
|
|
*/ |
|
|
@ -46452,6 +46568,64 @@ export class IcsProjectProgressServiceProxy { |
|
|
|
return Promise.resolve<string[]>(null as any); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @return Success |
|
|
|
*/ |
|
|
|
getCurrentRoles( cancelToken?: CancelToken | undefined): Promise<string[]> { |
|
|
|
let url_ = this.baseUrl + "/api/services/app/IcsProjectProgress/GetCurrentRoles"; |
|
|
|
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.processGetCurrentRoles(_response); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
protected processGetCurrentRoles(response: AxiosResponse): Promise<string[]> { |
|
|
|
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; |
|
|
|
if (Array.isArray(resultData200)) { |
|
|
|
result200 = [] as any; |
|
|
|
for (let item of resultData200) |
|
|
|
result200.push(item); |
|
|
|
} |
|
|
|
else { |
|
|
|
result200 = <any>null; |
|
|
|
} |
|
|
|
return Promise.resolve<string[]>(result200); |
|
|
|
|
|
|
|
} else if (status !== 200 && status !== 204) { |
|
|
|
const _responseText = response.data; |
|
|
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers); |
|
|
|
} |
|
|
|
return Promise.resolve<string[]>(null as any); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param userName (optional) |
|
|
|
* @param experimentDate (optional) |
|
|
@ -135723,6 +135897,7 @@ export class IcsResearchSendCheckListDto implements IIcsResearchSendCheckListDto |
|
|
|
inspectionItem: string | undefined; |
|
|
|
inputDocNo: string | undefined; |
|
|
|
memo: string | undefined; |
|
|
|
backGroundColor: string | undefined; |
|
|
|
creatorUserName: string | undefined; |
|
|
|
lastModifierUserName: string | undefined; |
|
|
|
lastModificationTime: moment.Moment | undefined; |
|
|
@ -135761,6 +135936,7 @@ export class IcsResearchSendCheckListDto implements IIcsResearchSendCheckListDto |
|
|
|
this.inspectionItem = _data["inspectionItem"]; |
|
|
|
this.inputDocNo = _data["inputDocNo"]; |
|
|
|
this.memo = _data["memo"]; |
|
|
|
this.backGroundColor = _data["backGroundColor"]; |
|
|
|
this.creatorUserName = _data["creatorUserName"]; |
|
|
|
this.lastModifierUserName = _data["lastModifierUserName"]; |
|
|
|
this.lastModificationTime = _data["lastModificationTime"] ? moment(_data["lastModificationTime"].toString()) : <any>undefined; |
|
|
@ -135799,6 +135975,7 @@ export class IcsResearchSendCheckListDto implements IIcsResearchSendCheckListDto |
|
|
|
data["inspectionItem"] = this.inspectionItem; |
|
|
|
data["inputDocNo"] = this.inputDocNo; |
|
|
|
data["memo"] = this.memo; |
|
|
|
data["backGroundColor"] = this.backGroundColor; |
|
|
|
data["creatorUserName"] = this.creatorUserName; |
|
|
|
data["lastModifierUserName"] = this.lastModifierUserName; |
|
|
|
data["lastModificationTime"] = this.lastModificationTime ? this.lastModificationTime.toISOString() : <any>undefined; |
|
|
@ -135837,6 +136014,7 @@ export interface IIcsResearchSendCheckListDto { |
|
|
|
inspectionItem: string | undefined; |
|
|
|
inputDocNo: string | undefined; |
|
|
|
memo: string | undefined; |
|
|
|
backGroundColor: string | undefined; |
|
|
|
creatorUserName: string | undefined; |
|
|
|
lastModifierUserName: string | undefined; |
|
|
|
lastModificationTime: moment.Moment | undefined; |
|
|
|