Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
93ee12e9
提交
93ee12e9
编写于
8月 10, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jackwang 部署微服务应用
上级
1347fed7
变更
38
展开全部
显示空白字符变更
内嵌
并排
正在显示
38 个修改的文件
包含
3720 行增加
和
60 行删除
+3720
-60
hrcontracts.ts
app_PIM/src/mock/entity/hrcontracts/hrcontracts.ts
+271
-0
hrdistributions.ts
app_PIM/src/mock/entity/hrdistributions/hrdistributions.ts
+271
-0
hreducations.ts
app_PIM/src/mock/entity/hreducations/hreducations.ts
+271
-0
hrpapers.ts
app_PIM/src/mock/entity/hrpapers/hrpapers.ts
+271
-0
hrpatents.ts
app_PIM/src/mock/entity/hrpatents/hrpatents.ts
+271
-0
hrresearchs.ts
app_PIM/src/mock/entity/hrresearchs/hrresearchs.ts
+271
-0
hrrewards.ts
app_PIM/src/mock/entity/hrrewards/hrrewards.ts
+271
-0
hrtechnical-titles.ts
.../src/mock/entity/hrtechnical-titles/hrtechnical-titles.ts
+271
-0
hrtraining-records.ts
.../src/mock/entity/hrtraining-records/hrtraining-records.ts
+271
-0
hrwork-records.ts
app_PIM/src/mock/entity/hrwork-records/hrwork-records.ts
+271
-0
hrcontract-grid-view-base.tsx
...source/hrcontract-grid-view/hrcontract-grid-view-base.tsx
+12
-2
hrdistribution-grid-view-base.tsx
...rdistribution-grid-view/hrdistribution-grid-view-base.tsx
+4
-4
hrdistribution-v-001-base.tsx
...source/hrdistribution-v-001/hrdistribution-v-001-base.tsx
+4
-4
hreducation-grid-view-base.tsx
...urce/hreducation-grid-view/hreducation-grid-view-base.tsx
+12
-2
hrresearch-grid-view-base.tsx
...source/hrresearch-grid-view/hrresearch-grid-view-base.tsx
+12
-2
hrreward-grid-view-base.tsx
...n-resource/hrreward-grid-view/hrreward-grid-view-base.tsx
+12
-2
hrtechnical-title-grid-view-base.tsx
...ical-title-grid-view/hrtechnical-title-grid-view-base.tsx
+12
-2
hrtraining-record-grid-view-base.tsx
...ing-record-grid-view/hrtraining-record-grid-view-base.tsx
+12
-2
hrwork-record-grid-view-base.tsx
.../hrwork-record-grid-view/hrwork-record-grid-view-base.tsx
+12
-2
router.ts
app_PIM/src/pages/ungroup/pim/router.ts
+270
-0
hrcontract-service-base.ts
app_PIM/src/service/hrcontract/hrcontract-service-base.ts
+60
-0
hrdistribution-service-base.ts
...src/service/hrdistribution/hrdistribution-service-base.ts
+60
-0
hreducation-service-base.ts
app_PIM/src/service/hreducation/hreducation-service-base.ts
+60
-0
hremployee-service-base.ts
app_PIM/src/service/hremployee/hremployee-service-base.ts
+10
-0
hrpaper-service-base.ts
app_PIM/src/service/hrpaper/hrpaper-service-base.ts
+60
-0
hrpatent-service-base.ts
app_PIM/src/service/hrpatent/hrpatent-service-base.ts
+60
-0
hrresearch-service-base.ts
app_PIM/src/service/hrresearch/hrresearch-service-base.ts
+60
-0
hrreward-service-base.ts
app_PIM/src/service/hrreward/hrreward-service-base.ts
+60
-0
hrtechnical-title-service-base.ts
...rvice/hrtechnical-title/hrtechnical-title-service-base.ts
+60
-0
hrtraining-record-service-base.ts
...rvice/hrtraining-record/hrtraining-record-service-base.ts
+60
-0
hrwork-record-service-base.ts
...M/src/service/hrwork-record/hrwork-record-service-base.ts
+60
-0
tree-exp-viewtreeexpbar-treeexpbar-base.tsx
...ar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar-base.tsx
+12
-12
if-001-form.html
app_PIM/src/widgets/hrpost/if-001-form/if-001-form.html
+1
-1
config.xml
config.xml
+5
-5
Dockerfile
...urce-app/humanresource-app-pim/src/main/docker/Dockerfile
+1
-1
humanresource-app-pim.yaml
...source-app-pim/src/main/docker/humanresource-app-pim.yaml
+17
-1
Dockerfile
...r/humanresource-provider-hrapi/src/main/docker/Dockerfile
+1
-1
humanresource-provider-hrapi.yaml
...r-hrapi/src/main/docker/humanresource-provider-hrapi.yaml
+1
-17
未找到文件。
app_PIM/src/mock/entity/hrcontracts/hrcontracts.ts
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
app_PIM/src/mock/entity/hrdistributions/hrdistributions.ts
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
app_PIM/src/mock/entity/hreducations/hreducations.ts
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
app_PIM/src/mock/entity/hrpapers/hrpapers.ts
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
app_PIM/src/mock/entity/hrpatents/hrpatents.ts
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
app_PIM/src/mock/entity/hrresearchs/hrresearchs.ts
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
app_PIM/src/mock/entity/hrrewards/hrrewards.ts
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
app_PIM/src/mock/entity/hrtechnical-titles/hrtechnical-titles.ts
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
app_PIM/src/mock/entity/hrtraining-records/hrtraining-records.ts
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
app_PIM/src/mock/entity/hrwork-records/hrwork-records.ts
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
app_PIM/src/pages/human-resource/hrcontract-grid-view/hrcontract-grid-view-base.tsx
浏览文件 @
93ee12e9
...
...
@@ -561,7 +561,12 @@ export class HRContractGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hremployee
&&
true
){
deResParameters
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrcontracts'
,
parameterName
:
'hrcontract'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
@@ -595,7 +600,12 @@ export class HRContractGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hremployee
&&
true
){
deResParameters
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrcontracts'
,
parameterName
:
'hrcontract'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
app_PIM/src/pages/human-resource/hrdistribution-grid-view/hrdistribution-grid-view-base.tsx
浏览文件 @
93ee12e9
...
...
@@ -562,9 +562,9 @@ export class HRDistributionGridViewBase extends GridViewBase {
Object
.
assign
(
tempContext
,
args
[
0
]);
}
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hr
post
&&
true
){
if
(
tempContext
.
hr
employee
&&
true
){
deResParameters
=
[
{
pathName
:
'hr
posts'
,
parameterName
:
'hrpost
'
},
{
pathName
:
'hr
employees'
,
parameterName
:
'hremployee
'
},
]
}
const
parameters
:
any
[]
=
[
...
...
@@ -613,9 +613,9 @@ export class HRDistributionGridViewBase extends GridViewBase {
Object
.
assign
(
tempContext
,
args
[
0
]);
}
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hr
post
&&
true
){
if
(
tempContext
.
hr
employee
&&
true
){
deResParameters
=
[
{
pathName
:
'hr
posts'
,
parameterName
:
'hrpost
'
},
{
pathName
:
'hr
employees'
,
parameterName
:
'hremployee
'
},
]
}
const
parameters
:
any
[]
=
[
...
...
app_PIM/src/pages/human-resource/hrdistribution-v-001/hrdistribution-v-001-base.tsx
浏览文件 @
93ee12e9
...
...
@@ -214,9 +214,9 @@ export class HRDistributionV_001Base extends GridView9Base {
Object
.
assign
(
tempContext
,
args
[
0
]);
}
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hr
post
&&
true
){
if
(
tempContext
.
hr
employee
&&
true
){
deResParameters
=
[
{
pathName
:
'hr
posts'
,
parameterName
:
'hrpost
'
},
{
pathName
:
'hr
employees'
,
parameterName
:
'hremployee
'
},
]
}
const
parameters
:
any
[]
=
[
...
...
@@ -253,9 +253,9 @@ export class HRDistributionV_001Base extends GridView9Base {
Object
.
assign
(
tempContext
,
args
[
0
]);
}
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hr
post
&&
true
){
if
(
tempContext
.
hr
employee
&&
true
){
deResParameters
=
[
{
pathName
:
'hr
posts'
,
parameterName
:
'hrpost
'
},
{
pathName
:
'hr
employees'
,
parameterName
:
'hremployee
'
},
]
}
const
parameters
:
any
[]
=
[
...
...
app_PIM/src/pages/human-resource/hreducation-grid-view/hreducation-grid-view-base.tsx
浏览文件 @
93ee12e9
...
...
@@ -561,7 +561,12 @@ export class HREducationGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hremployee
&&
true
){
deResParameters
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hreducations'
,
parameterName
:
'hreducation'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
@@ -595,7 +600,12 @@ export class HREducationGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hremployee
&&
true
){
deResParameters
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hreducations'
,
parameterName
:
'hreducation'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
app_PIM/src/pages/human-resource/hrresearch-grid-view/hrresearch-grid-view-base.tsx
浏览文件 @
93ee12e9
...
...
@@ -561,7 +561,12 @@ export class HRResearchGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hremployee
&&
true
){
deResParameters
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrresearches'
,
parameterName
:
'hrresearch'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
@@ -595,7 +600,12 @@ export class HRResearchGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hremployee
&&
true
){
deResParameters
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrresearches'
,
parameterName
:
'hrresearch'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
app_PIM/src/pages/human-resource/hrreward-grid-view/hrreward-grid-view-base.tsx
浏览文件 @
93ee12e9
...
...
@@ -561,7 +561,12 @@ export class HRRewardGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hremployee
&&
true
){
deResParameters
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrrewards'
,
parameterName
:
'hrreward'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
@@ -595,7 +600,12 @@ export class HRRewardGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hremployee
&&
true
){
deResParameters
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrrewards'
,
parameterName
:
'hrreward'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
app_PIM/src/pages/human-resource/hrtechnical-title-grid-view/hrtechnical-title-grid-view-base.tsx
浏览文件 @
93ee12e9
...
...
@@ -561,7 +561,12 @@ export class HRTechnicalTitleGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hremployee
&&
true
){
deResParameters
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrtechnicaltitles'
,
parameterName
:
'hrtechnicaltitle'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
@@ -595,7 +600,12 @@ export class HRTechnicalTitleGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hremployee
&&
true
){
deResParameters
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrtechnicaltitles'
,
parameterName
:
'hrtechnicaltitle'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
app_PIM/src/pages/human-resource/hrtraining-record-grid-view/hrtraining-record-grid-view-base.tsx
浏览文件 @
93ee12e9
...
...
@@ -561,7 +561,12 @@ export class HRTrainingRecordGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hremployee
&&
true
){
deResParameters
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrtrainingrecords'
,
parameterName
:
'hrtrainingrecord'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
@@ -595,7 +600,12 @@ export class HRTrainingRecordGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hremployee
&&
true
){
deResParameters
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrtrainingrecords'
,
parameterName
:
'hrtrainingrecord'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
app_PIM/src/pages/human-resource/hrwork-record-grid-view/hrwork-record-grid-view-base.tsx
浏览文件 @
93ee12e9
...
...
@@ -561,7 +561,12 @@ export class HRWorkRecordGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hremployee
&&
true
){
deResParameters
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrworkrecords'
,
parameterName
:
'hrworkrecord'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
@@ -595,7 +600,12 @@ export class HRWorkRecordGridViewBase extends GridViewBase {
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
hremployee
&&
true
){
deResParameters
=
[
{
pathName
:
'hremployees'
,
parameterName
:
'hremployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'hrworkrecords'
,
parameterName
:
'hrworkrecord'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
app_PIM/src/pages/ungroup/pim/router.ts
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
app_PIM/src/service/hrcontract/hrcontract-service-base.ts
浏览文件 @
93ee12e9
...
...
@@ -48,6 +48,11 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrcontract
){
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrcontracts/
${
context
.
hrcontract
}
/select`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrcontracts/
${
context
.
hrcontract
}
/select`
,
isloading
);
return
res
;
...
...
@@ -63,6 +68,20 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrcontracts`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
...
...
@@ -87,6 +106,13 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrcontract
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hremployees/
${
context
.
hremployee
}
/hrcontracts/
${
context
.
hrcontract
}
`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hrcontracts/
${
context
.
hrcontract
}
`
,
data
,
isloading
);
...
...
@@ -104,6 +130,10 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrcontract
){
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hremployees/
${
context
.
hremployee
}
/hrcontracts/
${
context
.
hrcontract
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hrcontracts/
${
context
.
hrcontract
}
`
,
isloading
);
return
res
;
}
...
...
@@ -118,6 +148,11 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrcontract
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrcontracts/
${
context
.
hrcontract
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrcontracts/
${
context
.
hrcontract
}
`
,
isloading
);
return
res
;
...
...
@@ -133,6 +168,12 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrcontracts/getdraft`
,
isloading
);
res
.
data
.
hrcontract
=
data
.
hrcontract
;
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrcontracts/getdraft`
,
isloading
);
res
.
data
.
hrcontract
=
data
.
hrcontract
;
...
...
@@ -149,6 +190,13 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrcontract
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrcontracts/
${
context
.
hrcontract
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
post
(
`/hrcontracts/
${
context
.
hrcontract
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
...
...
@@ -163,6 +211,13 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrcontract
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrcontracts/
${
context
.
hrcontract
}
/save`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrcontracts/
${
context
.
hrcontract
}
/save`
,
data
,
isloading
);
...
...
@@ -180,6 +235,11 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrcontracts/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrcontracts/fetchdefault`
,
tempData
,
isloading
);
return
res
;
...
...
app_PIM/src/service/hrdistribution/hrdistribution-service-base.ts
浏览文件 @
93ee12e9
...
...
@@ -53,6 +53,11 @@ export default class HRDistributionServiceBase extends EntityService {
return
res
;
}
if
(
context
.
hremployee
&&
context
.
hrdistribution
){
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrdistributions/
${
context
.
hrdistribution
}
/select`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrdistributions/
${
context
.
hrdistribution
}
/select`
,
isloading
);
return
res
;
...
...
@@ -82,6 +87,20 @@ export default class HRDistributionServiceBase extends EntityService {
return
res
;
}
if
(
context
.
hremployee
&&
true
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrdistributions`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
...
...
@@ -113,6 +132,13 @@ export default class HRDistributionServiceBase extends EntityService {
return
res
;
}
if
(
context
.
hremployee
&&
context
.
hrdistribution
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hremployees/
${
context
.
hremployee
}
/hrdistributions/
${
context
.
hrdistribution
}
`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hrdistributions/
${
context
.
hrdistribution
}
`
,
data
,
isloading
);
...
...
@@ -133,6 +159,10 @@ export default class HRDistributionServiceBase extends EntityService {
if
(
context
.
hrpost
&&
context
.
hrdistribution
){
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hrposts/
${
context
.
hrpost
}
/hrdistributions/
${
context
.
hrdistribution
}
`
,
isloading
);
return
res
;
}
if
(
context
.
hremployee
&&
context
.
hrdistribution
){
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hremployees/
${
context
.
hremployee
}
/hrdistributions/
${
context
.
hrdistribution
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hrdistributions/
${
context
.
hrdistribution
}
`
,
isloading
);
return
res
;
...
...
@@ -153,6 +183,11 @@ export default class HRDistributionServiceBase extends EntityService {
return
res
;
}
if
(
context
.
hremployee
&&
context
.
hrdistribution
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrdistributions/
${
context
.
hrdistribution
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrdistributions/
${
context
.
hrdistribution
}
`
,
isloading
);
return
res
;
...
...
@@ -174,6 +209,12 @@ export default class HRDistributionServiceBase extends EntityService {
return
res
;
}
if
(
context
.
hremployee
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrdistributions/getdraft`
,
isloading
);
res
.
data
.
hrdistribution
=
data
.
hrdistribution
;
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrdistributions/getdraft`
,
isloading
);
res
.
data
.
hrdistribution
=
data
.
hrdistribution
;
...
...
@@ -197,6 +238,13 @@ export default class HRDistributionServiceBase extends EntityService {
return
res
;
}
if
(
context
.
hremployee
&&
context
.
hrdistribution
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrdistributions/
${
context
.
hrdistribution
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
post
(
`/hrdistributions/
${
context
.
hrdistribution
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
...
...
@@ -218,6 +266,13 @@ export default class HRDistributionServiceBase extends EntityService {
return
res
;
}
if
(
context
.
hremployee
&&
context
.
hrdistribution
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrdistributions/
${
context
.
hrdistribution
}
/save`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrdistributions/
${
context
.
hrdistribution
}
/save`
,
data
,
isloading
);
...
...
@@ -240,6 +295,11 @@ export default class HRDistributionServiceBase extends EntityService {
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrposts/
${
context
.
hrpost
}
/hrdistributions/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
if
(
context
.
hremployee
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrdistributions/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrdistributions/fetchdefault`
,
tempData
,
isloading
);
return
res
;
...
...
app_PIM/src/service/hreducation/hreducation-service-base.ts
浏览文件 @
93ee12e9
...
...
@@ -48,6 +48,11 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hreducation
){
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hreducations/
${
context
.
hreducation
}
/select`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hreducations/
${
context
.
hreducation
}
/select`
,
isloading
);
return
res
;
...
...
@@ -63,6 +68,20 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hreducations`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
...
...
@@ -87,6 +106,13 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hreducation
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hremployees/
${
context
.
hremployee
}
/hreducations/
${
context
.
hreducation
}
`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hreducations/
${
context
.
hreducation
}
`
,
data
,
isloading
);
...
...
@@ -104,6 +130,10 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hreducation
){
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hremployees/
${
context
.
hremployee
}
/hreducations/
${
context
.
hreducation
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hreducations/
${
context
.
hreducation
}
`
,
isloading
);
return
res
;
}
...
...
@@ -118,6 +148,11 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hreducation
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hreducations/
${
context
.
hreducation
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hreducations/
${
context
.
hreducation
}
`
,
isloading
);
return
res
;
...
...
@@ -133,6 +168,12 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hreducations/getdraft`
,
isloading
);
res
.
data
.
hreducation
=
data
.
hreducation
;
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hreducations/getdraft`
,
isloading
);
res
.
data
.
hreducation
=
data
.
hreducation
;
...
...
@@ -149,6 +190,13 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hreducation
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hreducations/
${
context
.
hreducation
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
post
(
`/hreducations/
${
context
.
hreducation
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
...
...
@@ -163,6 +211,13 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hreducation
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hreducations/
${
context
.
hreducation
}
/save`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hreducations/
${
context
.
hreducation
}
/save`
,
data
,
isloading
);
...
...
@@ -180,6 +235,11 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hreducations/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hreducations/fetchdefault`
,
tempData
,
isloading
);
return
res
;
...
...
app_PIM/src/service/hremployee/hremployee-service-base.ts
浏览文件 @
93ee12e9
...
...
@@ -75,8 +75,18 @@ export default class HREmployeeServiceBase extends EntityService {
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrarchives'
,
JSON
.
stringify
(
res
.
data
.
hrarchives
?
res
.
data
.
hrarchives
:[]));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrcertificates'
,
JSON
.
stringify
(
res
.
data
.
hrcertificates
?
res
.
data
.
hrcertificates
:[]));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrcontracts'
,
JSON
.
stringify
(
res
.
data
.
hrcontracts
?
res
.
data
.
hrcontracts
:[]));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrdistributions'
,
JSON
.
stringify
(
res
.
data
.
hrdistributions
?
res
.
data
.
hrdistributions
:[]));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hreducations'
,
JSON
.
stringify
(
res
.
data
.
hreducations
?
res
.
data
.
hreducations
:[]));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrfamilies'
,
JSON
.
stringify
(
res
.
data
.
hrfamilies
?
res
.
data
.
hrfamilies
:[]));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrlanguageabilities'
,
JSON
.
stringify
(
res
.
data
.
hrlanguageabilities
?
res
.
data
.
hrlanguageabilities
:[]));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrpapers'
,
JSON
.
stringify
(
res
.
data
.
hrpapers
?
res
.
data
.
hrpapers
:[]));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrpatents'
,
JSON
.
stringify
(
res
.
data
.
hrpatents
?
res
.
data
.
hrpatents
:[]));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrresearches'
,
JSON
.
stringify
(
res
.
data
.
hrresearches
?
res
.
data
.
hrresearches
:[]));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrrewards'
,
JSON
.
stringify
(
res
.
data
.
hrrewards
?
res
.
data
.
hrrewards
:[]));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrtechnicaltitles'
,
JSON
.
stringify
(
res
.
data
.
hrtechnicaltitles
?
res
.
data
.
hrtechnicaltitles
:[]));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrtrainingrecords'
,
JSON
.
stringify
(
res
.
data
.
hrtrainingrecords
?
res
.
data
.
hrtrainingrecords
:[]));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_hrworkrecords'
,
JSON
.
stringify
(
res
.
data
.
hrworkrecords
?
res
.
data
.
hrworkrecords
:[]));
return
res
;
}
...
...
app_PIM/src/service/hrpaper/hrpaper-service-base.ts
浏览文件 @
93ee12e9
...
...
@@ -48,6 +48,11 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrpaper
){
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrpapers/
${
context
.
hrpaper
}
/select`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrpapers/
${
context
.
hrpaper
}
/select`
,
isloading
);
return
res
;
...
...
@@ -63,6 +68,20 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrpapers`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
...
...
@@ -87,6 +106,13 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrpaper
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hremployees/
${
context
.
hremployee
}
/hrpapers/
${
context
.
hrpaper
}
`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hrpapers/
${
context
.
hrpaper
}
`
,
data
,
isloading
);
...
...
@@ -104,6 +130,10 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrpaper
){
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hremployees/
${
context
.
hremployee
}
/hrpapers/
${
context
.
hrpaper
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hrpapers/
${
context
.
hrpaper
}
`
,
isloading
);
return
res
;
}
...
...
@@ -118,6 +148,11 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrpaper
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrpapers/
${
context
.
hrpaper
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrpapers/
${
context
.
hrpaper
}
`
,
isloading
);
return
res
;
...
...
@@ -133,6 +168,12 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrpapers/getdraft`
,
isloading
);
res
.
data
.
hrpaper
=
data
.
hrpaper
;
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrpapers/getdraft`
,
isloading
);
res
.
data
.
hrpaper
=
data
.
hrpaper
;
...
...
@@ -149,6 +190,13 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrpaper
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrpapers/
${
context
.
hrpaper
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
post
(
`/hrpapers/
${
context
.
hrpaper
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
...
...
@@ -163,6 +211,13 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrpaper
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrpapers/
${
context
.
hrpaper
}
/save`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrpapers/
${
context
.
hrpaper
}
/save`
,
data
,
isloading
);
...
...
@@ -180,6 +235,11 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrpapers/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrpapers/fetchdefault`
,
tempData
,
isloading
);
return
res
;
...
...
app_PIM/src/service/hrpatent/hrpatent-service-base.ts
浏览文件 @
93ee12e9
...
...
@@ -48,6 +48,11 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrpatent
){
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrpatents/
${
context
.
hrpatent
}
/select`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrpatents/
${
context
.
hrpatent
}
/select`
,
isloading
);
return
res
;
...
...
@@ -63,6 +68,20 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrpatents`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
...
...
@@ -87,6 +106,13 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrpatent
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hremployees/
${
context
.
hremployee
}
/hrpatents/
${
context
.
hrpatent
}
`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hrpatents/
${
context
.
hrpatent
}
`
,
data
,
isloading
);
...
...
@@ -104,6 +130,10 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrpatent
){
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hremployees/
${
context
.
hremployee
}
/hrpatents/
${
context
.
hrpatent
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hrpatents/
${
context
.
hrpatent
}
`
,
isloading
);
return
res
;
}
...
...
@@ -118,6 +148,11 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrpatent
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrpatents/
${
context
.
hrpatent
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrpatents/
${
context
.
hrpatent
}
`
,
isloading
);
return
res
;
...
...
@@ -133,6 +168,12 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrpatents/getdraft`
,
isloading
);
res
.
data
.
hrpatent
=
data
.
hrpatent
;
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrpatents/getdraft`
,
isloading
);
res
.
data
.
hrpatent
=
data
.
hrpatent
;
...
...
@@ -149,6 +190,13 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrpatent
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrpatents/
${
context
.
hrpatent
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
post
(
`/hrpatents/
${
context
.
hrpatent
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
...
...
@@ -163,6 +211,13 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrpatent
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrpatents/
${
context
.
hrpatent
}
/save`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrpatents/
${
context
.
hrpatent
}
/save`
,
data
,
isloading
);
...
...
@@ -180,6 +235,11 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrpatents/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrpatents/fetchdefault`
,
tempData
,
isloading
);
return
res
;
...
...
app_PIM/src/service/hrresearch/hrresearch-service-base.ts
浏览文件 @
93ee12e9
...
...
@@ -48,6 +48,11 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrresearch
){
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrresearches/
${
context
.
hrresearch
}
/select`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrresearches/
${
context
.
hrresearch
}
/select`
,
isloading
);
return
res
;
...
...
@@ -63,6 +68,20 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrresearches`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
...
...
@@ -87,6 +106,13 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrresearch
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hremployees/
${
context
.
hremployee
}
/hrresearches/
${
context
.
hrresearch
}
`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hrresearches/
${
context
.
hrresearch
}
`
,
data
,
isloading
);
...
...
@@ -104,6 +130,10 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrresearch
){
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hremployees/
${
context
.
hremployee
}
/hrresearches/
${
context
.
hrresearch
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hrresearches/
${
context
.
hrresearch
}
`
,
isloading
);
return
res
;
}
...
...
@@ -118,6 +148,11 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrresearch
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrresearches/
${
context
.
hrresearch
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrresearches/
${
context
.
hrresearch
}
`
,
isloading
);
return
res
;
...
...
@@ -133,6 +168,12 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrresearches/getdraft`
,
isloading
);
res
.
data
.
hrresearch
=
data
.
hrresearch
;
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrresearches/getdraft`
,
isloading
);
res
.
data
.
hrresearch
=
data
.
hrresearch
;
...
...
@@ -149,6 +190,13 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrresearch
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrresearches/
${
context
.
hrresearch
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
post
(
`/hrresearches/
${
context
.
hrresearch
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
...
...
@@ -163,6 +211,13 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrresearch
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrresearches/
${
context
.
hrresearch
}
/save`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrresearches/
${
context
.
hrresearch
}
/save`
,
data
,
isloading
);
...
...
@@ -180,6 +235,11 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrresearches/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrresearches/fetchdefault`
,
tempData
,
isloading
);
return
res
;
...
...
app_PIM/src/service/hrreward/hrreward-service-base.ts
浏览文件 @
93ee12e9
...
...
@@ -48,6 +48,11 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrreward
){
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrrewards/
${
context
.
hrreward
}
/select`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrrewards/
${
context
.
hrreward
}
/select`
,
isloading
);
return
res
;
...
...
@@ -63,6 +68,20 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrrewards`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
...
...
@@ -87,6 +106,13 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrreward
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hremployees/
${
context
.
hremployee
}
/hrrewards/
${
context
.
hrreward
}
`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hrrewards/
${
context
.
hrreward
}
`
,
data
,
isloading
);
...
...
@@ -104,6 +130,10 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrreward
){
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hremployees/
${
context
.
hremployee
}
/hrrewards/
${
context
.
hrreward
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hrrewards/
${
context
.
hrreward
}
`
,
isloading
);
return
res
;
}
...
...
@@ -118,6 +148,11 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrreward
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrrewards/
${
context
.
hrreward
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrrewards/
${
context
.
hrreward
}
`
,
isloading
);
return
res
;
...
...
@@ -133,6 +168,12 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrrewards/getdraft`
,
isloading
);
res
.
data
.
hrreward
=
data
.
hrreward
;
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrrewards/getdraft`
,
isloading
);
res
.
data
.
hrreward
=
data
.
hrreward
;
...
...
@@ -149,6 +190,13 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrreward
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrrewards/
${
context
.
hrreward
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
post
(
`/hrrewards/
${
context
.
hrreward
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
...
...
@@ -163,6 +211,13 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrreward
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrrewards/
${
context
.
hrreward
}
/save`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrrewards/
${
context
.
hrreward
}
/save`
,
data
,
isloading
);
...
...
@@ -180,6 +235,11 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrrewards/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrrewards/fetchdefault`
,
tempData
,
isloading
);
return
res
;
...
...
app_PIM/src/service/hrtechnical-title/hrtechnical-title-service-base.ts
浏览文件 @
93ee12e9
...
...
@@ -48,6 +48,11 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrtechnicaltitle
){
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrtechnicaltitles/
${
context
.
hrtechnicaltitle
}
/select`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrtechnicaltitles/
${
context
.
hrtechnicaltitle
}
/select`
,
isloading
);
return
res
;
...
...
@@ -63,6 +68,20 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrtechnicaltitles`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
...
...
@@ -87,6 +106,13 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrtechnicaltitle
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hremployees/
${
context
.
hremployee
}
/hrtechnicaltitles/
${
context
.
hrtechnicaltitle
}
`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/hrtechnicaltitles/
${
context
.
hrtechnicaltitle
}
`
,
data
,
isloading
);
...
...
@@ -104,6 +130,10 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrtechnicaltitle
){
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hremployees/
${
context
.
hremployee
}
/hrtechnicaltitles/
${
context
.
hrtechnicaltitle
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/hrtechnicaltitles/
${
context
.
hrtechnicaltitle
}
`
,
isloading
);
return
res
;
}
...
...
@@ -118,6 +148,11 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrtechnicaltitle
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrtechnicaltitles/
${
context
.
hrtechnicaltitle
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrtechnicaltitles/
${
context
.
hrtechnicaltitle
}
`
,
isloading
);
return
res
;
...
...
@@ -133,6 +168,12 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrtechnicaltitles/getdraft`
,
isloading
);
res
.
data
.
hrtechnicaltitle
=
data
.
hrtechnicaltitle
;
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/hrtechnicaltitles/getdraft`
,
isloading
);
res
.
data
.
hrtechnicaltitle
=
data
.
hrtechnicaltitle
;
...
...
@@ -149,6 +190,13 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrtechnicaltitle
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrtechnicaltitles/
${
context
.
hrtechnicaltitle
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
let
res
:
any
=
Http
.
getInstance
().
post
(
`/hrtechnicaltitles/
${
context
.
hrtechnicaltitle
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
...
...
@@ -163,6 +211,13 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
context
.
hrtechnicaltitle
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hremployees/
${
context
.
hremployee
}
/hrtechnicaltitles/
${
context
.
hrtechnicaltitle
}
/save`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/hrtechnicaltitles/
${
context
.
hrtechnicaltitle
}
/save`
,
data
,
isloading
);
...
...
@@ -180,6 +235,11 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrtechnicaltitles/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrtechnicaltitles/fetchdefault`
,
tempData
,
isloading
);
return
res
;
...
...
app_PIM/src/service/hrtraining-record/hrtraining-record-service-base.ts
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
app_PIM/src/service/hrwork-record/hrwork-record-service-base.ts
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
app_PIM/src/widgets/hremployee/tree-exp-viewtreeexpbar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar-base.tsx
浏览文件 @
93ee12e9
...
...
@@ -199,7 +199,7 @@ export class TreeExpViewtreeexpbarTreeExpBarBase extends MainControlBase {
if
(
Object
.
is
(
expmode
,
'TR09'
))
{
return
{
viewname
:
'hrtechnical-title-grid-view'
,
parentdata
:
{},
parentdata
:
{
"srfparentdefname"
:
"HREMPLOYEEID"
,
"srfparentdename"
:
"HREMPLOYEE"
,
"srfparentmode"
:
"DER1N_HRTECHNICALTITLE_HREMPLOYEE_HREMPLOYEEID_327A4D"
},
deKeyField
:
'hrtechnicaltitle'
};
}
...
...
@@ -213,77 +213,77 @@ export class TreeExpViewtreeexpbarTreeExpBarBase extends MainControlBase {
if
(
Object
.
is
(
expmode
,
'TR10'
))
{
return
{
viewname
:
'hrcontract-grid-view'
,
parentdata
:
{},
parentdata
:
{
"srfparentdefname"
:
"HREMPLOYEEID"
,
"srfparentdename"
:
"HREMPLOYEE"
,
"srfparentmode"
:
"DER1N_HRCONTRACT_HREMPLOYEE_HREMPLOYEEID_327A4D"
},
deKeyField
:
'hrcontract'
};
}
if
(
Object
.
is
(
expmode
,
'TR12'
))
{
return
{
viewname
:
'hrreward-grid-view'
,
parentdata
:
{},
parentdata
:
{
"srfparentdefname"
:
"HREMPLOYEEID"
,
"srfparentdename"
:
"HREMPLOYEE"
,
"srfparentmode"
:
"DER1N_HRREWARD_HREMPLOYEE_HREMPLOYEEID_327A4D"
},
deKeyField
:
'hrreward'
};
}
if
(
Object
.
is
(
expmode
,
'TR07'
))
{
return
{
viewname
:
'hrarchives-grid-view'
,
parentdata
:
{},
parentdata
:
{
"srfparentdefname"
:
"HREMPLOYEEID"
,
"srfparentdename"
:
"HREMPLOYEE"
,
"srfparentmode"
:
"DER1N_HRARCHIVES_HREMPLOYEE_HREMPLOYEEID_327A4D"
},
deKeyField
:
'hrarchives'
};
}
if
(
Object
.
is
(
expmode
,
'TR11'
))
{
return
{
viewname
:
'hrcertificate-grid-view'
,
parentdata
:
{},
parentdata
:
{
"srfparentdefname"
:
"HREMPLOYEEID"
,
"srfparentdename"
:
"HREMPLOYEE"
,
"srfparentmode"
:
"DER1N_HRCERTIFICATE_HREMPLOYEE_HREMPLOYEEID_327A4D"
},
deKeyField
:
'hrcertificate'
};
}
if
(
Object
.
is
(
expmode
,
'TR06'
))
{
return
{
viewname
:
'hrwork-record-grid-view'
,
parentdata
:
{},
parentdata
:
{
"srfparentdefname"
:
"HREMPLOYEEID"
,
"srfparentdename"
:
"HREMPLOYEE"
,
"srfparentmode"
:
"DER1N_HRWORKRECORD_HREMPLOYEE_HREMPLOYEEID_327A4D"
},
deKeyField
:
'hrworkrecord'
};
}
if
(
Object
.
is
(
expmode
,
'TR14'
))
{
return
{
viewname
:
'hrresearch-grid-view'
,
parentdata
:
{},
parentdata
:
{
"srfparentdefname"
:
"HREMPLOYEEID"
,
"srfparentdename"
:
"HREMPLOYEE"
,
"srfparentmode"
:
"DER1N_HRRESEARCH_HREMPLOYEE_HREMPLOYEEID_327A4D"
},
deKeyField
:
'hrresearch'
};
}
if
(
Object
.
is
(
expmode
,
'TR05'
))
{
return
{
viewname
:
'hrfamily-grid-view'
,
parentdata
:
{},
parentdata
:
{
"srfparentdefname"
:
"HREMPLOYEEID"
,
"srfparentdename"
:
"HREMPLOYEE"
,
"srfparentmode"
:
"DER1N_HRFAMILY_HREMPLOYEE_HREMPLOYEEID_327A4D"
},
deKeyField
:
'hrfamily'
};
}
if
(
Object
.
is
(
expmode
,
'TR13'
))
{
return
{
viewname
:
'hrtraining-record-grid-view'
,
parentdata
:
{},
parentdata
:
{
"srfparentdefname"
:
"HREMPLOYEEID"
,
"srfparentdename"
:
"HREMPLOYEE"
,
"srfparentmode"
:
"DER1N_HRTRAININGRECORD_HREMPLOYEE_HREMPLOYEEID_327A4D"
},
deKeyField
:
'hrtrainingrecord'
};
}
if
(
Object
.
is
(
expmode
,
'TR04'
))
{
return
{
viewname
:
'hrlanguage-ability-grid-view'
,
parentdata
:
{},
parentdata
:
{
"srfparentdefname"
:
"HREMPLOYEEID"
,
"srfparentdename"
:
"HREMPLOYEE"
,
"srfparentmode"
:
"DER1N_HRLANGUAGEABILITY_HREMPLOYEE_HREMPLOYEEID_327A4D"
},
deKeyField
:
'hrlanguageability'
};
}
if
(
Object
.
is
(
expmode
,
'TR03'
))
{
return
{
viewname
:
'hreducation-grid-view'
,
parentdata
:
{},
parentdata
:
{
"srfparentdefname"
:
"HREMPLOYEEID"
,
"srfparentdename"
:
"HREMPLOYEE"
,
"srfparentmode"
:
"DER1N_HREDUCATION_HREMPLOYEE_HREMPLOYEEID_327A4D"
},
deKeyField
:
'hreducation'
};
}
if
(
Object
.
is
(
expmode
,
'TR01'
))
{
return
{
viewname
:
'hrdistribution-grid-view'
,
parentdata
:
{},
parentdata
:
{
"srfparentdefname"
:
"HREMPLOYEEID"
,
"srfparentdename"
:
"HREMPLOYEE"
,
"srfparentmode"
:
"DER1N_HRDISTRIBUTION_HREMPLOYEE_HREMPLOYEEID_327A4D"
},
deKeyField
:
'hrdistribution'
};
}
...
...
app_PIM/src/widgets/hrpost/if-001-form/if-001-form.html
浏览文件 @
93ee12e9
...
...
@@ -138,7 +138,7 @@ tag='YesNo' codelistType='STATIC' :data="data" :context="context" :viewparams="v
paramItem=
'hrpost'
:parentdata=
'{"srfparentdefname":"HRPOSTID","srfparentdename":"HRPOST","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_HRDISTRIBUTION_HRPOST_HRPOSTID","SRFDER1NID":"DER1N_HRDISTRIBUTION_HRPOST_HRPOSTID"}'
:parameters=
"[
{ pathName: 'hr
posts', parameterName: 'hrpost
' },
{ pathName: 'hr
employees', parameterName: 'hremployee
' },
]"
:context=
"context"
:viewparams=
"viewparams"
...
...
config.xml
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
humanresource-app/humanresource-app-pim/src/main/docker/Dockerfile
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
humanresource-app/humanresource-app-pim/src/main/docker/humanresource-app-pim.yaml
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
humanresource-provider/humanresource-provider-hrapi/src/main/docker/Dockerfile
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
humanresource-provider/humanresource-provider-hrapi/src/main/docker/humanresource-provider-hrapi.yaml
浏览文件 @
93ee12e9
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录