Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBizEHR
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBizEHR解决方案
iBizEHR
提交
c2faa23a
提交
c2faa23a
编写于
5月 18, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibizdev提交
上级
dc7bb9e4
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
470 行增加
和
470 行删除
+470
-470
pimeducations.ts
app_EHRPim/src/mock/entity/pimeducations/pimeducations.ts
+6
-6
pimperson-service-base.ts
app_EHRPim/src/service/pimperson/pimperson-service-base.ts
+464
-464
未找到文件。
app_EHRPim/src/mock/entity/pimeducations/pimeducations.ts
浏览文件 @
c2faa23a
...
...
@@ -4,12 +4,12 @@ const mock = MockAdapter.getInstance();
// 模拟数据
const
mockDatas
:
Array
<
any
>
=
[
{
"sxzy"
:
null
,
"jlczz"
:
null
,
"ygbh"
:
null
,
"ormorgsectorid"
:
null
,
"bz"
:
null
,
"reason"
:
null
,
"xl"
:
null
,
"xkml"
:
null
,
"jymc"
:
null
,
"jssj"
:
null
,
"ormorgid"
:
null
,
"bdwgznx"
:
null
,
"createdate"
:
"2020-05-18 16:
14:00"
,
"enable"
:
1
,
"updateman"
:
"示例操作者"
,
"zjxtgznx"
:
null
,
"srfkey"
:
"1"
,
"gznx"
:
null
,
"cjgzsj"
:
null
,
"qssj"
:
null
,
"fj"
:
null
,
"pimeducationname"
:
"教育信息"
,
"pimeducationid"
:
"1"
,
"orgid"
:
null
,
"bjgznx"
:
null
,
"xllx"
:
null
,
"spstate"
:
null
,
"jlss"
:
null
,
"byyx"
:
null
,
"orgsectorid"
:
null
,
"tozjdate"
:
null
,
"btz"
:
null
,
"pimpersonid"
:
null
,
"sfdyxl"
:
null
,
"xxxz"
:
null
,
"xlcx"
:
null
,
"sfzgxl"
:
null
,
"jlspzt"
:
null
,
"xwz"
:
null
,
"degree"
:
null
,
"jlglbh"
:
null
,
"dbdwsj"
:
null
,
"dzjbjsj"
:
null
,
"updatedate"
:
"2020-05-18 16:14:00
"
,
"createman"
:
"示例操作者"
,
"pimpersonname"
:
null
},
{
"sxzy"
:
null
,
"jlczz"
:
null
,
"ygbh"
:
null
,
"ormorgsectorid"
:
null
,
"bz"
:
null
,
"reason"
:
null
,
"xl"
:
null
,
"xkml"
:
null
,
"jymc"
:
null
,
"jssj"
:
null
,
"ormorgid"
:
null
,
"bdwgznx"
:
null
,
"createdate"
:
"2020-05-18 16:
14:00"
,
"enable"
:
1
,
"updateman"
:
"示例操作者"
,
"zjxtgznx"
:
null
,
"srfkey"
:
"2"
,
"gznx"
:
null
,
"cjgzsj"
:
null
,
"qssj"
:
null
,
"fj"
:
null
,
"pimeducationname"
:
"教育信息(1)"
,
"pimeducationid"
:
"2"
,
"orgid"
:
null
,
"bjgznx"
:
null
,
"xllx"
:
null
,
"spstate"
:
null
,
"jlss"
:
null
,
"byyx"
:
null
,
"orgsectorid"
:
null
,
"tozjdate"
:
null
,
"btz"
:
null
,
"pimpersonid"
:
null
,
"sfdyxl"
:
null
,
"xxxz"
:
null
,
"xlcx"
:
null
,
"sfzgxl"
:
null
,
"jlspzt"
:
null
,
"xwz"
:
null
,
"degree"
:
null
,
"jlglbh"
:
null
,
"dbdwsj"
:
null
,
"dzjbjsj"
:
null
,
"updatedate"
:
"2020-05-18 16:14:00
"
,
"createman"
:
"示例操作者"
,
"pimpersonname"
:
null
},
{
"sxzy"
:
null
,
"jlczz"
:
null
,
"ygbh"
:
null
,
"ormorgsectorid"
:
null
,
"bz"
:
null
,
"reason"
:
null
,
"xl"
:
null
,
"xkml"
:
null
,
"jymc"
:
null
,
"jssj"
:
null
,
"ormorgid"
:
null
,
"bdwgznx"
:
null
,
"createdate"
:
"2020-05-18 16:
14:00"
,
"enable"
:
1
,
"updateman"
:
"示例操作者"
,
"zjxtgznx"
:
null
,
"srfkey"
:
"3"
,
"gznx"
:
null
,
"cjgzsj"
:
null
,
"qssj"
:
null
,
"fj"
:
null
,
"pimeducationname"
:
"教育信息(2)"
,
"pimeducationid"
:
"3"
,
"orgid"
:
null
,
"bjgznx"
:
null
,
"xllx"
:
null
,
"spstate"
:
null
,
"jlss"
:
null
,
"byyx"
:
null
,
"orgsectorid"
:
null
,
"tozjdate"
:
null
,
"btz"
:
null
,
"pimpersonid"
:
null
,
"sfdyxl"
:
null
,
"xxxz"
:
null
,
"xlcx"
:
null
,
"sfzgxl"
:
null
,
"jlspzt"
:
null
,
"xwz"
:
null
,
"degree"
:
null
,
"jlglbh"
:
null
,
"dbdwsj"
:
null
,
"dzjbjsj"
:
null
,
"updatedate"
:
"2020-05-18 16:14:00
"
,
"createman"
:
"示例操作者"
,
"pimpersonname"
:
null
},
{
"sxzy"
:
null
,
"jlczz"
:
null
,
"ygbh"
:
null
,
"ormorgsectorid"
:
null
,
"bz"
:
null
,
"reason"
:
null
,
"xl"
:
null
,
"xkml"
:
null
,
"jymc"
:
null
,
"jssj"
:
null
,
"ormorgid"
:
null
,
"bdwgznx"
:
null
,
"createdate"
:
"2020-05-18 16:
14:00"
,
"enable"
:
1
,
"updateman"
:
"示例操作者"
,
"zjxtgznx"
:
null
,
"srfkey"
:
"4"
,
"gznx"
:
null
,
"cjgzsj"
:
null
,
"qssj"
:
null
,
"fj"
:
null
,
"pimeducationname"
:
"教育信息(3)"
,
"pimeducationid"
:
"4"
,
"orgid"
:
null
,
"bjgznx"
:
null
,
"xllx"
:
null
,
"spstate"
:
null
,
"jlss"
:
null
,
"byyx"
:
null
,
"orgsectorid"
:
null
,
"tozjdate"
:
null
,
"btz"
:
null
,
"pimpersonid"
:
null
,
"sfdyxl"
:
null
,
"xxxz"
:
null
,
"xlcx"
:
null
,
"sfzgxl"
:
null
,
"jlspzt"
:
null
,
"xwz"
:
null
,
"degree"
:
null
,
"jlglbh"
:
null
,
"dbdwsj"
:
null
,
"dzjbjsj"
:
null
,
"updatedate"
:
"2020-05-18 16:14:00
"
,
"createman"
:
"示例操作者"
,
"pimpersonname"
:
null
},
{
"sxzy"
:
null
,
"jlczz"
:
null
,
"ygbh"
:
null
,
"ormorgsectorid"
:
null
,
"bz"
:
null
,
"reason"
:
null
,
"xl"
:
null
,
"xkml"
:
null
,
"jymc"
:
null
,
"jssj"
:
null
,
"ormorgid"
:
null
,
"bdwgznx"
:
null
,
"createdate"
:
"2020-05-18 16:
14:00"
,
"enable"
:
1
,
"updateman"
:
"示例操作者"
,
"zjxtgznx"
:
null
,
"srfkey"
:
"5"
,
"gznx"
:
null
,
"cjgzsj"
:
null
,
"qssj"
:
null
,
"fj"
:
null
,
"pimeducationname"
:
"教育信息(4)"
,
"pimeducationid"
:
"5"
,
"orgid"
:
null
,
"bjgznx"
:
null
,
"xllx"
:
null
,
"spstate"
:
null
,
"jlss"
:
null
,
"byyx"
:
null
,
"orgsectorid"
:
null
,
"tozjdate"
:
null
,
"btz"
:
null
,
"pimpersonid"
:
null
,
"sfdyxl"
:
null
,
"xxxz"
:
null
,
"xlcx"
:
null
,
"sfzgxl"
:
null
,
"jlspzt"
:
null
,
"xwz"
:
null
,
"degree"
:
null
,
"jlglbh"
:
null
,
"dbdwsj"
:
null
,
"dzjbjsj"
:
null
,
"updatedate"
:
"2020-05-18 16:14:00
"
,
"createman"
:
"示例操作者"
,
"pimpersonname"
:
null
},
{
"sxzy"
:
null
,
"jlczz"
:
null
,
"ygbh"
:
null
,
"ormorgsectorid"
:
null
,
"bz"
:
null
,
"reason"
:
null
,
"xl"
:
null
,
"xkml"
:
null
,
"jymc"
:
null
,
"jssj"
:
null
,
"ormorgid"
:
null
,
"bdwgznx"
:
null
,
"createdate"
:
"2020-05-18 16:
14:00"
,
"enable"
:
1
,
"updateman"
:
"示例操作者"
,
"zjxtgznx"
:
null
,
"srfkey"
:
"6"
,
"gznx"
:
null
,
"cjgzsj"
:
null
,
"qssj"
:
null
,
"fj"
:
null
,
"pimeducationname"
:
"教育信息(5)"
,
"pimeducationid"
:
"6"
,
"orgid"
:
null
,
"bjgznx"
:
null
,
"xllx"
:
null
,
"spstate"
:
null
,
"jlss"
:
null
,
"byyx"
:
null
,
"orgsectorid"
:
null
,
"tozjdate"
:
null
,
"btz"
:
null
,
"pimpersonid"
:
null
,
"sfdyxl"
:
null
,
"xxxz"
:
null
,
"xlcx"
:
null
,
"sfzgxl"
:
null
,
"jlspzt"
:
null
,
"xwz"
:
null
,
"degree"
:
null
,
"jlglbh"
:
null
,
"dbdwsj"
:
null
,
"dzjbjsj"
:
null
,
"updatedate"
:
"2020-05-18 16:14:00
"
,
"createman"
:
"示例操作者"
,
"pimpersonname"
:
null
}
{
"sxzy"
:
null
,
"jlczz"
:
null
,
"ygbh"
:
null
,
"ormorgsectorid"
:
null
,
"bz"
:
null
,
"reason"
:
null
,
"xl"
:
null
,
"xkml"
:
null
,
"jymc"
:
null
,
"jssj"
:
null
,
"ormorgid"
:
null
,
"bdwgznx"
:
null
,
"createdate"
:
"2020-05-18 16:
34:29"
,
"enable"
:
1
,
"updateman"
:
"示例操作者"
,
"zjxtgznx"
:
null
,
"srfkey"
:
"1"
,
"gznx"
:
null
,
"cjgzsj"
:
null
,
"qssj"
:
null
,
"fj"
:
null
,
"pimeducationname"
:
"教育信息"
,
"pimeducationid"
:
"1"
,
"orgid"
:
null
,
"bjgznx"
:
null
,
"xllx"
:
null
,
"spstate"
:
null
,
"jlss"
:
null
,
"byyx"
:
null
,
"orgsectorid"
:
null
,
"tozjdate"
:
null
,
"btz"
:
null
,
"pimpersonid"
:
null
,
"sfdyxl"
:
null
,
"xxxz"
:
null
,
"xlcx"
:
null
,
"sfzgxl"
:
null
,
"jlspzt"
:
null
,
"xwz"
:
null
,
"degree"
:
null
,
"jlglbh"
:
null
,
"dbdwsj"
:
null
,
"dzjbjsj"
:
null
,
"updatedate"
:
"2020-05-18 16:34:29
"
,
"createman"
:
"示例操作者"
,
"pimpersonname"
:
null
},
{
"sxzy"
:
null
,
"jlczz"
:
null
,
"ygbh"
:
null
,
"ormorgsectorid"
:
null
,
"bz"
:
null
,
"reason"
:
null
,
"xl"
:
null
,
"xkml"
:
null
,
"jymc"
:
null
,
"jssj"
:
null
,
"ormorgid"
:
null
,
"bdwgznx"
:
null
,
"createdate"
:
"2020-05-18 16:
34:29"
,
"enable"
:
1
,
"updateman"
:
"示例操作者"
,
"zjxtgznx"
:
null
,
"srfkey"
:
"2"
,
"gznx"
:
null
,
"cjgzsj"
:
null
,
"qssj"
:
null
,
"fj"
:
null
,
"pimeducationname"
:
"教育信息(1)"
,
"pimeducationid"
:
"2"
,
"orgid"
:
null
,
"bjgznx"
:
null
,
"xllx"
:
null
,
"spstate"
:
null
,
"jlss"
:
null
,
"byyx"
:
null
,
"orgsectorid"
:
null
,
"tozjdate"
:
null
,
"btz"
:
null
,
"pimpersonid"
:
null
,
"sfdyxl"
:
null
,
"xxxz"
:
null
,
"xlcx"
:
null
,
"sfzgxl"
:
null
,
"jlspzt"
:
null
,
"xwz"
:
null
,
"degree"
:
null
,
"jlglbh"
:
null
,
"dbdwsj"
:
null
,
"dzjbjsj"
:
null
,
"updatedate"
:
"2020-05-18 16:34:29
"
,
"createman"
:
"示例操作者"
,
"pimpersonname"
:
null
},
{
"sxzy"
:
null
,
"jlczz"
:
null
,
"ygbh"
:
null
,
"ormorgsectorid"
:
null
,
"bz"
:
null
,
"reason"
:
null
,
"xl"
:
null
,
"xkml"
:
null
,
"jymc"
:
null
,
"jssj"
:
null
,
"ormorgid"
:
null
,
"bdwgznx"
:
null
,
"createdate"
:
"2020-05-18 16:
34:29"
,
"enable"
:
1
,
"updateman"
:
"示例操作者"
,
"zjxtgznx"
:
null
,
"srfkey"
:
"3"
,
"gznx"
:
null
,
"cjgzsj"
:
null
,
"qssj"
:
null
,
"fj"
:
null
,
"pimeducationname"
:
"教育信息(2)"
,
"pimeducationid"
:
"3"
,
"orgid"
:
null
,
"bjgznx"
:
null
,
"xllx"
:
null
,
"spstate"
:
null
,
"jlss"
:
null
,
"byyx"
:
null
,
"orgsectorid"
:
null
,
"tozjdate"
:
null
,
"btz"
:
null
,
"pimpersonid"
:
null
,
"sfdyxl"
:
null
,
"xxxz"
:
null
,
"xlcx"
:
null
,
"sfzgxl"
:
null
,
"jlspzt"
:
null
,
"xwz"
:
null
,
"degree"
:
null
,
"jlglbh"
:
null
,
"dbdwsj"
:
null
,
"dzjbjsj"
:
null
,
"updatedate"
:
"2020-05-18 16:34:29
"
,
"createman"
:
"示例操作者"
,
"pimpersonname"
:
null
},
{
"sxzy"
:
null
,
"jlczz"
:
null
,
"ygbh"
:
null
,
"ormorgsectorid"
:
null
,
"bz"
:
null
,
"reason"
:
null
,
"xl"
:
null
,
"xkml"
:
null
,
"jymc"
:
null
,
"jssj"
:
null
,
"ormorgid"
:
null
,
"bdwgznx"
:
null
,
"createdate"
:
"2020-05-18 16:
34:29"
,
"enable"
:
1
,
"updateman"
:
"示例操作者"
,
"zjxtgznx"
:
null
,
"srfkey"
:
"4"
,
"gznx"
:
null
,
"cjgzsj"
:
null
,
"qssj"
:
null
,
"fj"
:
null
,
"pimeducationname"
:
"教育信息(3)"
,
"pimeducationid"
:
"4"
,
"orgid"
:
null
,
"bjgznx"
:
null
,
"xllx"
:
null
,
"spstate"
:
null
,
"jlss"
:
null
,
"byyx"
:
null
,
"orgsectorid"
:
null
,
"tozjdate"
:
null
,
"btz"
:
null
,
"pimpersonid"
:
null
,
"sfdyxl"
:
null
,
"xxxz"
:
null
,
"xlcx"
:
null
,
"sfzgxl"
:
null
,
"jlspzt"
:
null
,
"xwz"
:
null
,
"degree"
:
null
,
"jlglbh"
:
null
,
"dbdwsj"
:
null
,
"dzjbjsj"
:
null
,
"updatedate"
:
"2020-05-18 16:34:29
"
,
"createman"
:
"示例操作者"
,
"pimpersonname"
:
null
},
{
"sxzy"
:
null
,
"jlczz"
:
null
,
"ygbh"
:
null
,
"ormorgsectorid"
:
null
,
"bz"
:
null
,
"reason"
:
null
,
"xl"
:
null
,
"xkml"
:
null
,
"jymc"
:
null
,
"jssj"
:
null
,
"ormorgid"
:
null
,
"bdwgznx"
:
null
,
"createdate"
:
"2020-05-18 16:
34:29"
,
"enable"
:
1
,
"updateman"
:
"示例操作者"
,
"zjxtgznx"
:
null
,
"srfkey"
:
"5"
,
"gznx"
:
null
,
"cjgzsj"
:
null
,
"qssj"
:
null
,
"fj"
:
null
,
"pimeducationname"
:
"教育信息(4)"
,
"pimeducationid"
:
"5"
,
"orgid"
:
null
,
"bjgznx"
:
null
,
"xllx"
:
null
,
"spstate"
:
null
,
"jlss"
:
null
,
"byyx"
:
null
,
"orgsectorid"
:
null
,
"tozjdate"
:
null
,
"btz"
:
null
,
"pimpersonid"
:
null
,
"sfdyxl"
:
null
,
"xxxz"
:
null
,
"xlcx"
:
null
,
"sfzgxl"
:
null
,
"jlspzt"
:
null
,
"xwz"
:
null
,
"degree"
:
null
,
"jlglbh"
:
null
,
"dbdwsj"
:
null
,
"dzjbjsj"
:
null
,
"updatedate"
:
"2020-05-18 16:34:29
"
,
"createman"
:
"示例操作者"
,
"pimpersonname"
:
null
},
{
"sxzy"
:
null
,
"jlczz"
:
null
,
"ygbh"
:
null
,
"ormorgsectorid"
:
null
,
"bz"
:
null
,
"reason"
:
null
,
"xl"
:
null
,
"xkml"
:
null
,
"jymc"
:
null
,
"jssj"
:
null
,
"ormorgid"
:
null
,
"bdwgznx"
:
null
,
"createdate"
:
"2020-05-18 16:
34:29"
,
"enable"
:
1
,
"updateman"
:
"示例操作者"
,
"zjxtgznx"
:
null
,
"srfkey"
:
"6"
,
"gznx"
:
null
,
"cjgzsj"
:
null
,
"qssj"
:
null
,
"fj"
:
null
,
"pimeducationname"
:
"教育信息(5)"
,
"pimeducationid"
:
"6"
,
"orgid"
:
null
,
"bjgznx"
:
null
,
"xllx"
:
null
,
"spstate"
:
null
,
"jlss"
:
null
,
"byyx"
:
null
,
"orgsectorid"
:
null
,
"tozjdate"
:
null
,
"btz"
:
null
,
"pimpersonid"
:
null
,
"sfdyxl"
:
null
,
"xxxz"
:
null
,
"xlcx"
:
null
,
"sfzgxl"
:
null
,
"jlspzt"
:
null
,
"xwz"
:
null
,
"degree"
:
null
,
"jlglbh"
:
null
,
"dbdwsj"
:
null
,
"dzjbjsj"
:
null
,
"updatedate"
:
"2020-05-18 16:34:29
"
,
"createman"
:
"示例操作者"
,
"pimpersonname"
:
null
}
];
...
...
app_EHRPim/src/service/pimperson/pimperson-service-base.ts
浏览文件 @
c2faa23a
...
...
@@ -65,126 +65,6 @@ export default class PIMPERSONServiceBase extends EntityService {
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
attendancemreportmxesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
),
'undefined'
)){
attendancemreportmxesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
)
as
any
);
if
(
attendancemreportmxesData
&&
attendancemreportmxesData
.
length
&&
attendancemreportmxesData
.
length
>
0
){
attendancemreportmxesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
attendancemreportmxid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
attendancemreportmxes
=
attendancemreportmxesData
;
let
pimpersonchangesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
),
'undefined'
)){
pimpersonchangesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
)
as
any
);
if
(
pimpersonchangesData
&&
pimpersonchangesData
.
length
&&
pimpersonchangesData
.
length
>
0
){
pimpersonchangesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimpersonchangeid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimpersonchanges
=
pimpersonchangesData
;
let
pimtitlesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitles'
),
'undefined'
)){
pimtitlesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitles'
)
as
any
);
if
(
pimtitlesData
&&
pimtitlesData
.
length
&&
pimtitlesData
.
length
>
0
){
pimtitlesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimtitleid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimtitles
=
pimtitlesData
;
let
pimexitandentriesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
),
'undefined'
)){
pimexitandentriesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
)
as
any
);
if
(
pimexitandentriesData
&&
pimexitandentriesData
.
length
&&
pimexitandentriesData
.
length
>
0
){
pimexitandentriesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimexitandentryid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimexitandentries
=
pimexitandentriesData
;
let
pimfaminfosData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
),
'undefined'
)){
pimfaminfosData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
)
as
any
);
if
(
pimfaminfosData
&&
pimfaminfosData
.
length
&&
pimfaminfosData
.
length
>
0
){
pimfaminfosData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimfaminfoid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimfaminfos
=
pimfaminfosData
;
let
pimarchivesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives'
),
'undefined'
)){
pimarchivesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives'
)
as
any
);
if
(
pimarchivesData
&&
pimarchivesData
.
length
&&
pimarchivesData
.
length
>
0
){
pimarchivesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimarchivesid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimarchives
=
pimarchivesData
;
let
pimarmycadresData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
),
'undefined'
)){
pimarmycadresData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
)
as
any
);
if
(
pimarmycadresData
&&
pimarmycadresData
.
length
&&
pimarmycadresData
.
length
>
0
){
pimarmycadresData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimarmycadresid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimarmycadres
=
pimarmycadresData
;
let
pimworkhistoriesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
),
'undefined'
)){
pimworkhistoriesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
)
as
any
);
if
(
pimworkhistoriesData
&&
pimworkhistoriesData
.
length
&&
pimworkhistoriesData
.
length
>
0
){
pimworkhistoriesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimworkhistoryid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimworkhistories
=
pimworkhistoriesData
;
let
trmtrianpeopleData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
),
'undefined'
)){
trmtrianpeopleData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
)
as
any
);
...
...
@@ -200,36 +80,36 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
trmtrianpeople
=
trmtrianpeopleData
;
let
pim
achievem
entsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
achievem
ents'
),
'undefined'
)){
pim
achievementsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimachievem
ents'
)
as
any
);
if
(
pim
achievementsData
&&
pimachievementsData
.
length
&&
pimachievem
entsData
.
length
>
0
){
pim
achievem
entsData
.
forEach
((
item
:
any
)
=>
{
let
pim
pat
entsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
pat
ents'
),
'undefined'
)){
pim
patentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpat
ents'
)
as
any
);
if
(
pim
patentsData
&&
pimpatentsData
.
length
&&
pimpat
entsData
.
length
>
0
){
pim
pat
entsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
achievements
id
=
null
;
item
.
pim
patent
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
achievements
=
pimachievem
entsData
;
let
pim
pat
entsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
pat
ents'
),
'undefined'
)){
pim
patentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpat
ents'
)
as
any
);
if
(
pim
patentsData
&&
pimpatentsData
.
length
&&
pimpat
entsData
.
length
>
0
){
pim
pat
entsData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
patents
=
pimpat
entsData
;
let
pim
achievem
entsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
achievem
ents'
),
'undefined'
)){
pim
achievementsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimachievem
ents'
)
as
any
);
if
(
pim
achievementsData
&&
pimachievementsData
.
length
&&
pimachievem
entsData
.
length
>
0
){
pim
achievem
entsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
patent
id
=
null
;
item
.
pim
achievements
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
patents
=
pimpat
entsData
;
masterData
.
pim
achievements
=
pimachievem
entsData
;
let
pimpapersData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpapers'
),
'undefined'
)){
pimpapersData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpapers'
)
as
any
);
...
...
@@ -290,36 +170,36 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimcontracts
=
pimcontractsData
;
let
pim
education
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
education
s'
),
'undefined'
)){
pim
educationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimeducation
s'
)
as
any
);
if
(
pim
educationsData
&&
pimeducationsData
.
length
&&
pimeducation
sData
.
length
>
0
){
pim
education
sData
.
forEach
((
item
:
any
)
=>
{
let
pim
researchfinding
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
researchfinding
s'
),
'undefined'
)){
pim
researchfindingsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimresearchfinding
s'
)
as
any
);
if
(
pim
researchfindingsData
&&
pimresearchfindingsData
.
length
&&
pimresearchfinding
sData
.
length
>
0
){
pim
researchfinding
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
education
id
=
null
;
item
.
pim
researchfindings
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
educations
=
pimeducation
sData
;
let
pim
researchfinding
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
researchfinding
s'
),
'undefined'
)){
pim
researchfindingsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimresearchfinding
s'
)
as
any
);
if
(
pim
researchfindingsData
&&
pimresearchfindingsData
.
length
&&
pimresearchfinding
sData
.
length
>
0
){
pim
researchfinding
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
researchfindings
=
pimresearchfinding
sData
;
let
pim
education
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
education
s'
),
'undefined'
)){
pim
educationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimeducation
s'
)
as
any
);
if
(
pim
educationsData
&&
pimeducationsData
.
length
&&
pimeducation
sData
.
length
>
0
){
pim
education
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
researchfindings
id
=
null
;
item
.
pim
education
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
researchfindings
=
pimresearchfinding
sData
;
masterData
.
pim
educations
=
pimeducation
sData
;
let
pimpersonabilitiesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonabilities'
),
'undefined'
)){
pimpersonabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonabilities'
)
as
any
);
...
...
@@ -380,131 +260,6 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimvocationals
=
pimvocationalsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/pimpeople/
${
context
.
pimperson
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
,
JSON
.
stringify
(
res
.
data
.
trmtrianpeople
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpatents'
,
JSON
.
stringify
(
res
.
data
.
pimpatents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpapers'
,
JSON
.
stringify
(
res
.
data
.
pimpapers
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimcontracts'
,
JSON
.
stringify
(
res
.
data
.
pimcontracts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimeducations'
,
JSON
.
stringify
(
res
.
data
.
pimeducations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimresearchfindings'
,
JSON
.
stringify
(
res
.
data
.
pimresearchfindings
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonabilities'
,
JSON
.
stringify
(
res
.
data
.
pimpersonabilities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimdistirbutions'
,
JSON
.
stringify
(
res
.
data
.
pimdistirbutions
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimlanguageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabilities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocationals
));
return
res
;
}
/**
* YZSFYZFP接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PIMPERSONServiceBase
*/
public
async
YZSFYZFP
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
post
(
`/pimpeople/
${
context
.
pimperson
}
/yzsfyzfp`
,
data
,
isloading
);
}
/**
* ToggleLeader接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PIMPERSONServiceBase
*/
public
async
ToggleLeader
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
post
(
`/pimpeople/
${
context
.
pimperson
}
/toggleleader`
,
data
,
isloading
);
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PIMPERSONServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/pimpeople/
${
context
.
pimperson
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
,
JSON
.
stringify
(
res
.
data
.
trmtrianpeople
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpatents'
,
JSON
.
stringify
(
res
.
data
.
pimpatents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpapers'
,
JSON
.
stringify
(
res
.
data
.
pimpapers
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimcontracts'
,
JSON
.
stringify
(
res
.
data
.
pimcontracts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimeducations'
,
JSON
.
stringify
(
res
.
data
.
pimeducations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimresearchfindings'
,
JSON
.
stringify
(
res
.
data
.
pimresearchfindings
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonabilities'
,
JSON
.
stringify
(
res
.
data
.
pimpersonabilities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimdistirbutions'
,
JSON
.
stringify
(
res
.
data
.
pimdistirbutions
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimlanguageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabilities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocationals
));
return
res
;
}
/**
* PersonUpdateInfo接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PIMPERSONServiceBase
*/
public
async
PersonUpdateInfo
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
put
(
`/pimpeople/
${
context
.
pimperson
}
/personupdateinfo`
,
data
,
isloading
);
}
/**
* FillPersonType接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PIMPERSONServiceBase
*/
public
async
FillPersonType
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
post
(
`/pimpeople/
${
context
.
pimperson
}
/fillpersontype`
,
data
,
isloading
);
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PIMPERSONServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
attendancemreportmxesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
),
'undefined'
)){
attendancemreportmxesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
)
as
any
);
...
...
@@ -520,6 +275,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
attendancemreportmxes
=
attendancemreportmxesData
;
let
pimtitlesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitles'
),
'undefined'
)){
pimtitlesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitles'
)
as
any
);
if
(
pimtitlesData
&&
pimtitlesData
.
length
&&
pimtitlesData
.
length
>
0
){
pimtitlesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimtitleid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimtitles
=
pimtitlesData
;
let
pimpersonchangesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
),
'undefined'
)){
pimpersonchangesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
)
as
any
);
...
...
@@ -535,21 +305,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimpersonchanges
=
pimpersonchangesData
;
let
pim
title
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
title
s'
),
'undefined'
)){
pim
titlesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitle
s'
)
as
any
);
if
(
pim
titlesData
&&
pimtitlesData
.
length
&&
pimtitle
sData
.
length
>
0
){
pim
title
sData
.
forEach
((
item
:
any
)
=>
{
let
pim
faminfo
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
faminfo
s'
),
'undefined'
)){
pim
faminfosData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimfaminfo
s'
)
as
any
);
if
(
pim
faminfosData
&&
pimfaminfosData
.
length
&&
pimfaminfo
sData
.
length
>
0
){
pim
faminfo
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
title
id
=
null
;
item
.
pim
faminfo
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
titles
=
pimtitle
sData
;
masterData
.
pim
faminfos
=
pimfaminfo
sData
;
let
pimexitandentriesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
),
'undefined'
)){
pimexitandentriesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
)
as
any
);
...
...
@@ -565,36 +335,36 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimexitandentries
=
pimexitandentriesData
;
let
pim
faminfo
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
faminfo
s'
),
'undefined'
)){
pim
faminfosData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimfaminfo
s'
)
as
any
);
if
(
pim
faminfosData
&&
pimfaminfosData
.
length
&&
pimfaminfo
sData
.
length
>
0
){
pim
faminfo
sData
.
forEach
((
item
:
any
)
=>
{
let
pim
archive
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
archive
s'
),
'undefined'
)){
pim
archivesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchive
s'
)
as
any
);
if
(
pim
archivesData
&&
pimarchivesData
.
length
&&
pimarchive
sData
.
length
>
0
){
pim
archive
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
faminfo
id
=
null
;
item
.
pim
archives
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
faminfos
=
pimfaminfo
sData
;
let
pim
archiv
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
archiv
es'
),
'undefined'
)){
pim
archivesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchiv
es'
)
as
any
);
if
(
pim
archivesData
&&
pimarchivesData
.
length
&&
pimarchiv
esData
.
length
>
0
){
pim
archiv
esData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
archives
=
pimarchive
sData
;
let
pim
workhistori
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
workhistori
es'
),
'undefined'
)){
pim
workhistoriesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimworkhistori
es'
)
as
any
);
if
(
pim
workhistoriesData
&&
pimworkhistoriesData
.
length
&&
pimworkhistori
esData
.
length
>
0
){
pim
workhistori
esData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
archives
id
=
null
;
item
.
pim
workhistory
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
archives
=
pimarchiv
esData
;
masterData
.
pim
workhistories
=
pimworkhistori
esData
;
let
pimarmycadresData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
),
'undefined'
)){
pimarmycadresData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
)
as
any
);
...
...
@@ -610,21 +380,131 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimarmycadres
=
pimarmycadresData
;
let
pimworkhistoriesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
),
'undefined'
)){
pimworkhistoriesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
)
as
any
);
if
(
pimworkhistoriesData
&&
pimworkhistoriesData
.
length
&&
pimworkhistoriesData
.
length
>
0
){
pimworkhistoriesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimworkhistoryid
=
null
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/pimpeople/
${
context
.
pimperson
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
,
JSON
.
stringify
(
res
.
data
.
trmtrianpeople
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpatents'
,
JSON
.
stringify
(
res
.
data
.
pimpatents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpapers'
,
JSON
.
stringify
(
res
.
data
.
pimpapers
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimcontracts'
,
JSON
.
stringify
(
res
.
data
.
pimcontracts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimresearchfindings'
,
JSON
.
stringify
(
res
.
data
.
pimresearchfindings
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimeducations'
,
JSON
.
stringify
(
res
.
data
.
pimeducations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonabilities'
,
JSON
.
stringify
(
res
.
data
.
pimpersonabilities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimdistirbutions'
,
JSON
.
stringify
(
res
.
data
.
pimdistirbutions
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimlanguageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabilities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocationals
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
return
res
;
}
/**
* YZSFYZFP接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PIMPERSONServiceBase
*/
public
async
YZSFYZFP
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
post
(
`/pimpeople/
${
context
.
pimperson
}
/yzsfyzfp`
,
data
,
isloading
);
}
/**
* ToggleLeader接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PIMPERSONServiceBase
*/
public
async
ToggleLeader
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
post
(
`/pimpeople/
${
context
.
pimperson
}
/toggleleader`
,
data
,
isloading
);
}
delete
item
.
srffrontuf
;
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PIMPERSONServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/pimpeople/
${
context
.
pimperson
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
,
JSON
.
stringify
(
res
.
data
.
trmtrianpeople
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpatents'
,
JSON
.
stringify
(
res
.
data
.
pimpatents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpapers'
,
JSON
.
stringify
(
res
.
data
.
pimpapers
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimcontracts'
,
JSON
.
stringify
(
res
.
data
.
pimcontracts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimresearchfindings'
,
JSON
.
stringify
(
res
.
data
.
pimresearchfindings
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimeducations'
,
JSON
.
stringify
(
res
.
data
.
pimeducations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonabilities'
,
JSON
.
stringify
(
res
.
data
.
pimpersonabilities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimdistirbutions'
,
JSON
.
stringify
(
res
.
data
.
pimdistirbutions
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimlanguageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabilities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocationals
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
return
res
;
}
});
/**
* PersonUpdateInfo接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PIMPERSONServiceBase
*/
public
async
PersonUpdateInfo
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
put
(
`/pimpeople/
${
context
.
pimperson
}
/personupdateinfo`
,
data
,
isloading
);
}
/**
* FillPersonType接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PIMPERSONServiceBase
*/
public
async
FillPersonType
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
post
(
`/pimpeople/
${
context
.
pimperson
}
/fillpersontype`
,
data
,
isloading
);
}
masterData
.
pimworkhistories
=
pimworkhistoriesData
;
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PIMPERSONServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
trmtrianpeopleData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
),
'undefined'
)){
trmtrianpeopleData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
)
as
any
);
...
...
@@ -640,36 +520,36 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
trmtrianpeople
=
trmtrianpeopleData
;
let
pim
achievem
entsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
achievem
ents'
),
'undefined'
)){
pim
achievementsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimachievem
ents'
)
as
any
);
if
(
pim
achievementsData
&&
pimachievementsData
.
length
&&
pimachievem
entsData
.
length
>
0
){
pim
achievem
entsData
.
forEach
((
item
:
any
)
=>
{
let
pim
pat
entsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
pat
ents'
),
'undefined'
)){
pim
patentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpat
ents'
)
as
any
);
if
(
pim
patentsData
&&
pimpatentsData
.
length
&&
pimpat
entsData
.
length
>
0
){
pim
pat
entsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
achievements
id
=
null
;
item
.
pim
patent
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
achievements
=
pimachievem
entsData
;
let
pim
pat
entsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
pat
ents'
),
'undefined'
)){
pim
patentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpat
ents'
)
as
any
);
if
(
pim
patentsData
&&
pimpatentsData
.
length
&&
pimpat
entsData
.
length
>
0
){
pim
pat
entsData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
patents
=
pimpat
entsData
;
let
pim
achievem
entsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
achievem
ents'
),
'undefined'
)){
pim
achievementsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimachievem
ents'
)
as
any
);
if
(
pim
achievementsData
&&
pimachievementsData
.
length
&&
pimachievem
entsData
.
length
>
0
){
pim
achievem
entsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
patent
id
=
null
;
item
.
pim
achievements
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
patents
=
pimpat
entsData
;
masterData
.
pim
achievements
=
pimachievem
entsData
;
let
pimpapersData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpapers'
),
'undefined'
)){
pimpapersData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpapers'
)
as
any
);
...
...
@@ -730,36 +610,36 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimcontracts
=
pimcontractsData
;
let
pim
education
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
education
s'
),
'undefined'
)){
pim
educationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimeducation
s'
)
as
any
);
if
(
pim
educationsData
&&
pimeducationsData
.
length
&&
pimeducation
sData
.
length
>
0
){
pim
education
sData
.
forEach
((
item
:
any
)
=>
{
let
pim
researchfinding
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
researchfinding
s'
),
'undefined'
)){
pim
researchfindingsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimresearchfinding
s'
)
as
any
);
if
(
pim
researchfindingsData
&&
pimresearchfindingsData
.
length
&&
pimresearchfinding
sData
.
length
>
0
){
pim
researchfinding
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
education
id
=
null
;
item
.
pim
researchfindings
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
educations
=
pimeducation
sData
;
let
pim
researchfinding
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
researchfinding
s'
),
'undefined'
)){
pim
researchfindingsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimresearchfinding
s'
)
as
any
);
if
(
pim
researchfindingsData
&&
pimresearchfindingsData
.
length
&&
pimresearchfinding
sData
.
length
>
0
){
pim
researchfinding
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
researchfindings
=
pimresearchfinding
sData
;
let
pim
education
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
education
s'
),
'undefined'
)){
pim
educationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimeducation
s'
)
as
any
);
if
(
pim
educationsData
&&
pimeducationsData
.
length
&&
pimeducation
sData
.
length
>
0
){
pim
education
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
researchfindings
id
=
null
;
item
.
pim
education
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
researchfindings
=
pimresearchfinding
sData
;
masterData
.
pim
educations
=
pimeducation
sData
;
let
pimpersonabilitiesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonabilities'
),
'undefined'
)){
pimpersonabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonabilities'
)
as
any
);
...
...
@@ -820,50 +700,6 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimvocationals
=
pimvocationalsData
;
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
(
`/pimpeople`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_trmtrianpeople'
,
JSON
.
stringify
(
res
.
data
.
trmtrianpeople
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimpatents'
,
JSON
.
stringify
(
res
.
data
.
pimpatents
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimpapers'
,
JSON
.
stringify
(
res
.
data
.
pimpapers
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimcontracts'
,
JSON
.
stringify
(
res
.
data
.
pimcontracts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimeducations'
,
JSON
.
stringify
(
res
.
data
.
pimeducations
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimresearchfindings'
,
JSON
.
stringify
(
res
.
data
.
pimresearchfindings
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimpersonabilities'
,
JSON
.
stringify
(
res
.
data
.
pimpersonabilities
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimdistirbutions'
,
JSON
.
stringify
(
res
.
data
.
pimdistirbutions
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimlanguageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabilities
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimvocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocationals
));
return
res
;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PIMPERSONServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
attendancemreportmxesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
),
'undefined'
)){
attendancemreportmxesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
)
as
any
);
...
...
@@ -879,6 +715,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
attendancemreportmxes
=
attendancemreportmxesData
;
let
pimtitlesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitles'
),
'undefined'
)){
pimtitlesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitles'
)
as
any
);
if
(
pimtitlesData
&&
pimtitlesData
.
length
&&
pimtitlesData
.
length
>
0
){
pimtitlesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimtitleid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimtitles
=
pimtitlesData
;
let
pimpersonchangesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
),
'undefined'
)){
pimpersonchangesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
)
as
any
);
...
...
@@ -894,21 +745,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimpersonchanges
=
pimpersonchangesData
;
let
pim
title
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
title
s'
),
'undefined'
)){
pim
titlesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitle
s'
)
as
any
);
if
(
pim
titlesData
&&
pimtitlesData
.
length
&&
pimtitle
sData
.
length
>
0
){
pim
title
sData
.
forEach
((
item
:
any
)
=>
{
let
pim
faminfo
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
faminfo
s'
),
'undefined'
)){
pim
faminfosData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimfaminfo
s'
)
as
any
);
if
(
pim
faminfosData
&&
pimfaminfosData
.
length
&&
pimfaminfo
sData
.
length
>
0
){
pim
faminfo
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
title
id
=
null
;
item
.
pim
faminfo
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
titles
=
pimtitle
sData
;
masterData
.
pim
faminfos
=
pimfaminfo
sData
;
let
pimexitandentriesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
),
'undefined'
)){
pimexitandentriesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
)
as
any
);
...
...
@@ -924,36 +775,36 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimexitandentries
=
pimexitandentriesData
;
let
pim
faminfo
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
faminfo
s'
),
'undefined'
)){
pim
faminfosData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimfaminfo
s'
)
as
any
);
if
(
pim
faminfosData
&&
pimfaminfosData
.
length
&&
pimfaminfo
sData
.
length
>
0
){
pim
faminfo
sData
.
forEach
((
item
:
any
)
=>
{
let
pim
archive
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
archive
s'
),
'undefined'
)){
pim
archivesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchive
s'
)
as
any
);
if
(
pim
archivesData
&&
pimarchivesData
.
length
&&
pimarchive
sData
.
length
>
0
){
pim
archive
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
faminfo
id
=
null
;
item
.
pim
archives
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
faminfos
=
pimfaminfo
sData
;
let
pim
archiv
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
archiv
es'
),
'undefined'
)){
pim
archivesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchiv
es'
)
as
any
);
if
(
pim
archivesData
&&
pimarchivesData
.
length
&&
pimarchiv
esData
.
length
>
0
){
pim
archiv
esData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
archives
=
pimarchive
sData
;
let
pim
workhistori
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
workhistori
es'
),
'undefined'
)){
pim
workhistoriesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimworkhistori
es'
)
as
any
);
if
(
pim
workhistoriesData
&&
pimworkhistoriesData
.
length
&&
pimworkhistori
esData
.
length
>
0
){
pim
workhistori
esData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
archives
id
=
null
;
item
.
pim
workhistory
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
archives
=
pimarchiv
esData
;
masterData
.
pim
workhistories
=
pimworkhistori
esData
;
let
pimarmycadresData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
),
'undefined'
)){
pimarmycadresData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
)
as
any
);
...
...
@@ -969,21 +820,50 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimarmycadres
=
pimarmycadresData
;
let
pimworkhistoriesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
),
'undefined'
)){
pimworkhistoriesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
)
as
any
);
if
(
pimworkhistoriesData
&&
pimworkhistoriesData
.
length
&&
pimworkhistoriesData
.
length
>
0
){
pimworkhistoriesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimworkhistoryid
=
null
;
}
delete
item
.
srffrontuf
;
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
(
`/pimpeople`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_trmtrianpeople'
,
JSON
.
stringify
(
res
.
data
.
trmtrianpeople
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimpatents'
,
JSON
.
stringify
(
res
.
data
.
pimpatents
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimpapers'
,
JSON
.
stringify
(
res
.
data
.
pimpapers
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimcontracts'
,
JSON
.
stringify
(
res
.
data
.
pimcontracts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimresearchfindings'
,
JSON
.
stringify
(
res
.
data
.
pimresearchfindings
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimeducations'
,
JSON
.
stringify
(
res
.
data
.
pimeducations
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimpersonabilities'
,
JSON
.
stringify
(
res
.
data
.
pimpersonabilities
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimdistirbutions'
,
JSON
.
stringify
(
res
.
data
.
pimdistirbutions
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimlanguageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabilities
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimvocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocationals
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
return
res
;
}
masterData
.
pimworkhistories
=
pimworkhistoriesData
;
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PIMPERSONServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
trmtrianpeopleData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
),
'undefined'
)){
trmtrianpeopleData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
)
as
any
);
...
...
@@ -999,36 +879,36 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
trmtrianpeople
=
trmtrianpeopleData
;
let
pim
achievem
entsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
achievem
ents'
),
'undefined'
)){
pim
achievementsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimachievem
ents'
)
as
any
);
if
(
pim
achievementsData
&&
pimachievementsData
.
length
&&
pimachievem
entsData
.
length
>
0
){
pim
achievem
entsData
.
forEach
((
item
:
any
)
=>
{
let
pim
pat
entsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
pat
ents'
),
'undefined'
)){
pim
patentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpat
ents'
)
as
any
);
if
(
pim
patentsData
&&
pimpatentsData
.
length
&&
pimpat
entsData
.
length
>
0
){
pim
pat
entsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
achievements
id
=
null
;
item
.
pim
patent
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
achievements
=
pimachievem
entsData
;
let
pim
pat
entsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
pat
ents'
),
'undefined'
)){
pim
patentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpat
ents'
)
as
any
);
if
(
pim
patentsData
&&
pimpatentsData
.
length
&&
pimpat
entsData
.
length
>
0
){
pim
pat
entsData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
patents
=
pimpat
entsData
;
let
pim
achievem
entsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
achievem
ents'
),
'undefined'
)){
pim
achievementsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimachievem
ents'
)
as
any
);
if
(
pim
achievementsData
&&
pimachievementsData
.
length
&&
pimachievem
entsData
.
length
>
0
){
pim
achievem
entsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
patent
id
=
null
;
item
.
pim
achievements
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
patents
=
pimpat
entsData
;
masterData
.
pim
achievements
=
pimachievem
entsData
;
let
pimpapersData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpapers'
),
'undefined'
)){
pimpapersData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpapers'
)
as
any
);
...
...
@@ -1089,36 +969,36 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimcontracts
=
pimcontractsData
;
let
pim
education
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
education
s'
),
'undefined'
)){
pim
educationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimeducation
s'
)
as
any
);
if
(
pim
educationsData
&&
pimeducationsData
.
length
&&
pimeducation
sData
.
length
>
0
){
pim
education
sData
.
forEach
((
item
:
any
)
=>
{
let
pim
researchfinding
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
researchfinding
s'
),
'undefined'
)){
pim
researchfindingsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimresearchfinding
s'
)
as
any
);
if
(
pim
researchfindingsData
&&
pimresearchfindingsData
.
length
&&
pimresearchfinding
sData
.
length
>
0
){
pim
researchfinding
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
education
id
=
null
;
item
.
pim
researchfindings
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
educations
=
pimeducation
sData
;
let
pim
researchfinding
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
researchfinding
s'
),
'undefined'
)){
pim
researchfindingsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimresearchfinding
s'
)
as
any
);
if
(
pim
researchfindingsData
&&
pimresearchfindingsData
.
length
&&
pimresearchfinding
sData
.
length
>
0
){
pim
researchfinding
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
researchfindings
=
pimresearchfinding
sData
;
let
pim
education
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
education
s'
),
'undefined'
)){
pim
educationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimeducation
s'
)
as
any
);
if
(
pim
educationsData
&&
pimeducationsData
.
length
&&
pimeducation
sData
.
length
>
0
){
pim
education
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
researchfindings
id
=
null
;
item
.
pim
education
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
researchfindings
=
pimresearchfinding
sData
;
masterData
.
pim
educations
=
pimeducation
sData
;
let
pimpersonabilitiesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonabilities'
),
'undefined'
)){
pimpersonabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonabilities'
)
as
any
);
...
...
@@ -1179,29 +1059,149 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimvocationals
=
pimvocationalsData
;
let
attendancemreportmxesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
),
'undefined'
)){
attendancemreportmxesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
)
as
any
);
if
(
attendancemreportmxesData
&&
attendancemreportmxesData
.
length
&&
attendancemreportmxesData
.
length
>
0
){
attendancemreportmxesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
attendancemreportmxid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
attendancemreportmxes
=
attendancemreportmxesData
;
let
pimtitlesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitles'
),
'undefined'
)){
pimtitlesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitles'
)
as
any
);
if
(
pimtitlesData
&&
pimtitlesData
.
length
&&
pimtitlesData
.
length
>
0
){
pimtitlesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimtitleid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimtitles
=
pimtitlesData
;
let
pimpersonchangesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
),
'undefined'
)){
pimpersonchangesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
)
as
any
);
if
(
pimpersonchangesData
&&
pimpersonchangesData
.
length
&&
pimpersonchangesData
.
length
>
0
){
pimpersonchangesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimpersonchangeid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimpersonchanges
=
pimpersonchangesData
;
let
pimfaminfosData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
),
'undefined'
)){
pimfaminfosData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
)
as
any
);
if
(
pimfaminfosData
&&
pimfaminfosData
.
length
&&
pimfaminfosData
.
length
>
0
){
pimfaminfosData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimfaminfoid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimfaminfos
=
pimfaminfosData
;
let
pimexitandentriesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
),
'undefined'
)){
pimexitandentriesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
)
as
any
);
if
(
pimexitandentriesData
&&
pimexitandentriesData
.
length
&&
pimexitandentriesData
.
length
>
0
){
pimexitandentriesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimexitandentryid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimexitandentries
=
pimexitandentriesData
;
let
pimarchivesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives'
),
'undefined'
)){
pimarchivesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives'
)
as
any
);
if
(
pimarchivesData
&&
pimarchivesData
.
length
&&
pimarchivesData
.
length
>
0
){
pimarchivesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimarchivesid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimarchives
=
pimarchivesData
;
let
pimworkhistoriesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
),
'undefined'
)){
pimworkhistoriesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
)
as
any
);
if
(
pimworkhistoriesData
&&
pimworkhistoriesData
.
length
&&
pimworkhistoriesData
.
length
>
0
){
pimworkhistoriesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimworkhistoryid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimworkhistories
=
pimworkhistoriesData
;
let
pimarmycadresData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
),
'undefined'
)){
pimarmycadresData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
)
as
any
);
if
(
pimarmycadresData
&&
pimarmycadresData
.
length
&&
pimarmycadresData
.
length
>
0
){
pimarmycadresData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimarmycadresid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimarmycadres
=
pimarmycadresData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/pimpeople/
${
context
.
pimperson
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
,
JSON
.
stringify
(
res
.
data
.
trmtrianpeople
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpatents'
,
JSON
.
stringify
(
res
.
data
.
pimpatents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpapers'
,
JSON
.
stringify
(
res
.
data
.
pimpapers
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimcontracts'
,
JSON
.
stringify
(
res
.
data
.
pimcontracts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimeducations'
,
JSON
.
stringify
(
res
.
data
.
pimeducations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimresearchfindings'
,
JSON
.
stringify
(
res
.
data
.
pimresearchfindings
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimeducations'
,
JSON
.
stringify
(
res
.
data
.
pimeducations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonabilities'
,
JSON
.
stringify
(
res
.
data
.
pimpersonabilities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimdistirbutions'
,
JSON
.
stringify
(
res
.
data
.
pimdistirbutions
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimlanguageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabilities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocationals
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
return
res
;
}
...
...
@@ -1285,27 +1285,27 @@ export default class PIMPERSONServiceBase extends EntityService {
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/pimpeople/getdraft`
,
isloading
);
res
.
data
.
pimperson
=
data
.
pimperson
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
,
JSON
.
stringify
(
res
.
data
.
trmtrianpeople
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpatents'
,
JSON
.
stringify
(
res
.
data
.
pimpatents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpapers'
,
JSON
.
stringify
(
res
.
data
.
pimpapers
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimcontracts'
,
JSON
.
stringify
(
res
.
data
.
pimcontracts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimeducations'
,
JSON
.
stringify
(
res
.
data
.
pimeducations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimresearchfindings'
,
JSON
.
stringify
(
res
.
data
.
pimresearchfindings
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimeducations'
,
JSON
.
stringify
(
res
.
data
.
pimeducations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonabilities'
,
JSON
.
stringify
(
res
.
data
.
pimpersonabilities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimdistirbutions'
,
JSON
.
stringify
(
res
.
data
.
pimdistirbutions
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimlanguageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabilities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocationals
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
return
res
;
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录