Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBizEHR
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBizEHR解决方案
iBizEHR
提交
4f376f3e
提交
4f376f3e
编写于
5月 18, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibizdev提交
上级
e0d72b64
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
479 行增加
和
479 行删除
+479
-479
pimeducations.ts
app_EHRPim/src/mock/entity/pimeducations/pimeducations.ts
+6
-6
pimarchives-service-base.ts
...HRPim/src/service/pimarchives/pimarchives-service-base.ts
+47
-47
pimperson-service-base.ts
app_EHRPim/src/service/pimperson/pimperson-service-base.ts
+426
-426
未找到文件。
app_EHRPim/src/mock/entity/pimeducations/pimeducations.ts
浏览文件 @
4f376f3e
...
...
@@ -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 18:
10:47"
,
"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 18:10:47
"
,
"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 18:
10:47"
,
"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 18:10:47
"
,
"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 18:
10:47"
,
"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 18:10:47
"
,
"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 18:
10:47"
,
"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 18:10:47
"
,
"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 18:
10:47"
,
"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 18:10:47
"
,
"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 18:
10:47"
,
"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 18:10:47
"
,
"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 18:
33:34"
,
"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 18:33:34
"
,
"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 18:
33:34"
,
"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 18:33:34
"
,
"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 18:
33:34"
,
"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 18:33:34
"
,
"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 18:
33:34"
,
"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 18:33:34
"
,
"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 18:
33:34"
,
"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 18:33:34
"
,
"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 18:
33:34"
,
"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 18:33:34
"
,
"createman"
:
"示例操作者"
,
"pimpersonname"
:
null
}
];
...
...
app_EHRPim/src/service/pimarchives/pimarchives-service-base.ts
浏览文件 @
4f376f3e
...
...
@@ -85,8 +85,8 @@ export default class PIMARCHIVESServiceBase extends EntityService {
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/pimarchives/getdraft`
,
isloading
);
res
.
data
.
pimarchives
=
data
.
pimarchives
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchiveschanges'
,
JSON
.
stringify
(
res
.
data
.
pimarchiveschanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchivesloanandreturns'
,
JSON
.
stringify
(
res
.
data
.
pimarchivesloanandreturns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchiveschanges'
,
JSON
.
stringify
(
res
.
data
.
pimarchiveschanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchivesrecords'
,
JSON
.
stringify
(
res
.
data
.
pimarchivesrecords
));
return
res
;
}
...
...
@@ -105,36 +105,36 @@ export default class PIMARCHIVESServiceBase extends EntityService {
return
Http
.
getInstance
().
post
(
`/pimpeople/
${
context
.
pimperson
}
/pimarchives/
${
context
.
pimarchives
}
/save`
,
data
,
isloading
);
}
let
masterData
:
any
=
{};
let
pimarchives
change
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives
change
s'
),
'undefined'
)){
pimarchives
changesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchiveschange
s'
)
as
any
);
if
(
pimarchives
changesData
&&
pimarchiveschangesData
.
length
&&
pimarchiveschange
sData
.
length
>
0
){
pimarchives
change
sData
.
forEach
((
item
:
any
)
=>
{
let
pimarchives
loanandreturn
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives
loanandreturn
s'
),
'undefined'
)){
pimarchives
loanandreturnsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchivesloanandreturn
s'
)
as
any
);
if
(
pimarchives
loanandreturnsData
&&
pimarchivesloanandreturnsData
.
length
&&
pimarchivesloanandreturn
sData
.
length
>
0
){
pimarchives
loanandreturn
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimarchives
change
id
=
null
;
item
.
pimarchives
loanandreturn
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimarchives
changes
=
pimarchiveschange
sData
;
let
pimarchives
loanandreturn
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives
loanandreturn
s'
),
'undefined'
)){
pimarchives
loanandreturnsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchivesloanandreturn
s'
)
as
any
);
if
(
pimarchives
loanandreturnsData
&&
pimarchivesloanandreturnsData
.
length
&&
pimarchivesloanandreturn
sData
.
length
>
0
){
pimarchives
loanandreturn
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pimarchives
loanandreturns
=
pimarchivesloanandreturn
sData
;
let
pimarchives
change
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives
change
s'
),
'undefined'
)){
pimarchives
changesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchiveschange
s'
)
as
any
);
if
(
pimarchives
changesData
&&
pimarchiveschangesData
.
length
&&
pimarchiveschange
sData
.
length
>
0
){
pimarchives
change
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimarchives
loanandreturn
id
=
null
;
item
.
pimarchives
change
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimarchives
loanandreturns
=
pimarchivesloanandreturn
sData
;
masterData
.
pimarchives
changes
=
pimarchiveschange
sData
;
let
pimarchivesrecordsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchivesrecords'
),
'undefined'
)){
pimarchivesrecordsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchivesrecords'
)
as
any
);
...
...
@@ -152,8 +152,8 @@ export default class PIMARCHIVESServiceBase extends EntityService {
masterData
.
pimarchivesrecords
=
pimarchivesrecordsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/pimarchives/
${
context
.
pimarchives
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchiveschanges'
,
JSON
.
stringify
(
res
.
data
.
pimarchiveschanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchivesloanandreturns'
,
JSON
.
stringify
(
res
.
data
.
pimarchivesloanandreturns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchiveschanges'
,
JSON
.
stringify
(
res
.
data
.
pimarchiveschanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchivesrecords'
,
JSON
.
stringify
(
res
.
data
.
pimarchivesrecords
));
return
res
;
}
...
...
@@ -172,8 +172,8 @@ export default class PIMARCHIVESServiceBase extends EntityService {
return
Http
.
getInstance
().
get
(
`/pimpeople/
${
context
.
pimperson
}
/pimarchives/
${
context
.
pimarchives
}
`
,
isloading
);
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/pimarchives/
${
context
.
pimarchives
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchiveschanges'
,
JSON
.
stringify
(
res
.
data
.
pimarchiveschanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchivesloanandreturns'
,
JSON
.
stringify
(
res
.
data
.
pimarchivesloanandreturns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchiveschanges'
,
JSON
.
stringify
(
res
.
data
.
pimarchiveschanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchivesrecords'
,
JSON
.
stringify
(
res
.
data
.
pimarchivesrecords
));
return
res
;
...
...
@@ -193,36 +193,36 @@ export default class PIMARCHIVESServiceBase extends EntityService {
return
Http
.
getInstance
().
put
(
`/pimpeople/
${
context
.
pimperson
}
/pimarchives/
${
context
.
pimarchives
}
`
,
data
,
isloading
);
}
let
masterData
:
any
=
{};
let
pimarchives
change
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives
change
s'
),
'undefined'
)){
pimarchives
changesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchiveschange
s'
)
as
any
);
if
(
pimarchives
changesData
&&
pimarchiveschangesData
.
length
&&
pimarchiveschange
sData
.
length
>
0
){
pimarchives
change
sData
.
forEach
((
item
:
any
)
=>
{
let
pimarchives
loanandreturn
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives
loanandreturn
s'
),
'undefined'
)){
pimarchives
loanandreturnsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchivesloanandreturn
s'
)
as
any
);
if
(
pimarchives
loanandreturnsData
&&
pimarchivesloanandreturnsData
.
length
&&
pimarchivesloanandreturn
sData
.
length
>
0
){
pimarchives
loanandreturn
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimarchives
change
id
=
null
;
item
.
pimarchives
loanandreturn
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimarchives
changes
=
pimarchiveschange
sData
;
let
pimarchives
loanandreturn
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives
loanandreturn
s'
),
'undefined'
)){
pimarchives
loanandreturnsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchivesloanandreturn
s'
)
as
any
);
if
(
pimarchives
loanandreturnsData
&&
pimarchivesloanandreturnsData
.
length
&&
pimarchivesloanandreturn
sData
.
length
>
0
){
pimarchives
loanandreturn
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pimarchives
loanandreturns
=
pimarchivesloanandreturn
sData
;
let
pimarchives
change
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives
change
s'
),
'undefined'
)){
pimarchives
changesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchiveschange
s'
)
as
any
);
if
(
pimarchives
changesData
&&
pimarchiveschangesData
.
length
&&
pimarchiveschange
sData
.
length
>
0
){
pimarchives
change
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimarchives
loanandreturn
id
=
null
;
item
.
pimarchives
change
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimarchives
loanandreturns
=
pimarchivesloanandreturn
sData
;
masterData
.
pimarchives
changes
=
pimarchiveschange
sData
;
let
pimarchivesrecordsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchivesrecords'
),
'undefined'
)){
pimarchivesrecordsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchivesrecords'
)
as
any
);
...
...
@@ -240,8 +240,8 @@ export default class PIMARCHIVESServiceBase extends EntityService {
masterData
.
pimarchivesrecords
=
pimarchivesrecordsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/pimarchives/
${
context
.
pimarchives
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchiveschanges'
,
JSON
.
stringify
(
res
.
data
.
pimarchiveschanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchivesloanandreturns'
,
JSON
.
stringify
(
res
.
data
.
pimarchivesloanandreturns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchiveschanges'
,
JSON
.
stringify
(
res
.
data
.
pimarchiveschanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchivesrecords'
,
JSON
.
stringify
(
res
.
data
.
pimarchivesrecords
));
return
res
;
}
...
...
@@ -282,36 +282,36 @@ export default class PIMARCHIVESServiceBase extends EntityService {
return
Http
.
getInstance
().
post
(
`/pimpeople/
${
context
.
pimperson
}
/pimarchives`
,
data
,
isloading
);
}
let
masterData
:
any
=
{};
let
pimarchives
change
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives
change
s'
),
'undefined'
)){
pimarchives
changesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchiveschange
s'
)
as
any
);
if
(
pimarchives
changesData
&&
pimarchiveschangesData
.
length
&&
pimarchiveschange
sData
.
length
>
0
){
pimarchives
change
sData
.
forEach
((
item
:
any
)
=>
{
let
pimarchives
loanandreturn
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives
loanandreturn
s'
),
'undefined'
)){
pimarchives
loanandreturnsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchivesloanandreturn
s'
)
as
any
);
if
(
pimarchives
loanandreturnsData
&&
pimarchivesloanandreturnsData
.
length
&&
pimarchivesloanandreturn
sData
.
length
>
0
){
pimarchives
loanandreturn
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimarchives
change
id
=
null
;
item
.
pimarchives
loanandreturn
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimarchives
changes
=
pimarchiveschange
sData
;
let
pimarchives
loanandreturn
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives
loanandreturn
s'
),
'undefined'
)){
pimarchives
loanandreturnsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchivesloanandreturn
s'
)
as
any
);
if
(
pimarchives
loanandreturnsData
&&
pimarchivesloanandreturnsData
.
length
&&
pimarchivesloanandreturn
sData
.
length
>
0
){
pimarchives
loanandreturn
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pimarchives
loanandreturns
=
pimarchivesloanandreturn
sData
;
let
pimarchives
change
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives
change
s'
),
'undefined'
)){
pimarchives
changesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchiveschange
s'
)
as
any
);
if
(
pimarchives
changesData
&&
pimarchiveschangesData
.
length
&&
pimarchiveschange
sData
.
length
>
0
){
pimarchives
change
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimarchives
loanandreturn
id
=
null
;
item
.
pimarchives
change
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimarchives
loanandreturns
=
pimarchivesloanandreturn
sData
;
masterData
.
pimarchives
changes
=
pimarchiveschange
sData
;
let
pimarchivesrecordsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchivesrecords'
),
'undefined'
)){
pimarchivesrecordsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchivesrecords'
)
as
any
);
...
...
@@ -336,8 +336,8 @@ export default class PIMARCHIVESServiceBase extends EntityService {
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/pimarchives`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimarchiveschanges'
,
JSON
.
stringify
(
res
.
data
.
pimarchiveschanges
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimarchivesloanandreturns'
,
JSON
.
stringify
(
res
.
data
.
pimarchivesloanandreturns
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimarchiveschanges'
,
JSON
.
stringify
(
res
.
data
.
pimarchiveschanges
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimarchivesrecords'
,
JSON
.
stringify
(
res
.
data
.
pimarchivesrecords
));
return
res
;
}
...
...
app_EHRPim/src/service/pimperson/pimperson-service-base.ts
浏览文件 @
4f376f3e
...
...
@@ -65,21 +65,21 @@ export default class PIMPERSONServiceBase extends EntityService {
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
pim
vocational
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
vocational
s'
),
'undefined'
)){
pim
vocationalsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvocational
s'
)
as
any
);
if
(
pim
vocationalsData
&&
pimvocationalsData
.
length
&&
pimvocational
sData
.
length
>
0
){
pim
vocational
sData
.
forEach
((
item
:
any
)
=>
{
let
pim
personabilitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
personabilitie
s'
),
'undefined'
)){
pim
personabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonabilitie
s'
)
as
any
);
if
(
pim
personabilitiesData
&&
pimpersonabilitiesData
.
length
&&
pimpersonabilitie
sData
.
length
>
0
){
pim
personabilitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
vocational
id
=
null
;
item
.
pim
personability
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
vocationals
=
pimvocational
sData
;
masterData
.
pim
personabilities
=
pimpersonabilitie
sData
;
let
pimpersonchangesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
),
'undefined'
)){
pimpersonchangesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
)
as
any
);
...
...
@@ -95,21 +95,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimpersonchanges
=
pimpersonchangesData
;
let
pim
languageabilitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
languageabilitie
s'
),
'undefined'
)){
pim
languageabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimlanguageabilitie
s'
)
as
any
);
if
(
pim
languageabilitiesData
&&
pimlanguageabilitiesData
.
length
&&
pimlanguageabilitie
sData
.
length
>
0
){
pim
languageabilitie
sData
.
forEach
((
item
:
any
)
=>
{
let
pim
distirbution
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
distirbution
s'
),
'undefined'
)){
pim
distirbutionsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimdistirbution
s'
)
as
any
);
if
(
pim
distirbutionsData
&&
pimdistirbutionsData
.
length
&&
pimdistirbution
sData
.
length
>
0
){
pim
distirbution
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
languageability
id
=
null
;
item
.
pim
distirbution
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
languageabilities
=
pimlanguageabilitie
sData
;
masterData
.
pim
distirbutions
=
pimdistirbution
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
);
...
...
@@ -125,66 +125,81 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimexitandentries
=
pimexitandentriesData
;
let
pimar
chiv
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimar
chiv
es'
),
'undefined'
)){
pimar
chivesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchiv
es'
)
as
any
);
if
(
pimar
chivesData
&&
pimarchivesData
.
length
&&
pimarchiv
esData
.
length
>
0
){
pimar
chiv
esData
.
forEach
((
item
:
any
)
=>
{
let
pimar
mycadr
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimar
mycadr
es'
),
'undefined'
)){
pimar
mycadresData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarmycadr
es'
)
as
any
);
if
(
pimar
mycadresData
&&
pimarmycadresData
.
length
&&
pimarmycadr
esData
.
length
>
0
){
pimar
mycadr
esData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimar
chiv
esid
=
null
;
item
.
pimar
mycadr
esid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimar
chives
=
pimarchiv
esData
;
let
trmtrianpeople
Data
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
trmtrianpeople
'
),
'undefined'
)){
trmtrianpeopleData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_trmtrianpeople
'
)
as
any
);
if
(
trmtrianpeopleData
&&
trmtrianpeopleData
.
length
&&
trmtrianpeople
Data
.
length
>
0
){
trmtrianpeople
Data
.
forEach
((
item
:
any
)
=>
{
masterData
.
pimar
mycadres
=
pimarmycadr
esData
;
let
pimpatents
Data
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
pimpatents
'
),
'undefined'
)){
pimpatentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpatents
'
)
as
any
);
if
(
pimpatentsData
&&
pimpatentsData
.
length
&&
pimpatents
Data
.
length
>
0
){
pimpatents
Data
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
trmtrianperson
id
=
null
;
item
.
pimpatent
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
trmtrianpeople
=
trmtrianpeople
Data
;
let
attendancemreportmxe
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
attendancemreportmxe
s'
),
'undefined'
)){
attendancemreportmxesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_attendancemreportmxe
s'
)
as
any
);
if
(
attendancemreportmxesData
&&
attendancemreportmxesData
.
length
&&
attendancemreportmxe
sData
.
length
>
0
){
attendancemreportmxe
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pimpatents
=
pimpatents
Data
;
let
pimvacation
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
pimvacation
s'
),
'undefined'
)){
pimvacationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvacation
s'
)
as
any
);
if
(
pimvacationsData
&&
pimvacationsData
.
length
&&
pimvacation
sData
.
length
>
0
){
pimvacation
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
attendancemreportmx
id
=
null
;
item
.
pimvacation
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
attendancemreportmxes
=
attendancemreportmxe
sData
;
let
pimar
mycadr
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimar
mycadr
es'
),
'undefined'
)){
pimar
mycadresData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarmycadr
es'
)
as
any
);
if
(
pimar
mycadresData
&&
pimarmycadresData
.
length
&&
pimarmycadr
esData
.
length
>
0
){
pimar
mycadr
esData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pimvacations
=
pimvacation
sData
;
let
pimar
chiv
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimar
chiv
es'
),
'undefined'
)){
pimar
chivesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchiv
es'
)
as
any
);
if
(
pimar
chivesData
&&
pimarchivesData
.
length
&&
pimarchiv
esData
.
length
>
0
){
pimar
chiv
esData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimar
mycadr
esid
=
null
;
item
.
pimar
chiv
esid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimarmycadres
=
pimarmycadresData
;
masterData
.
pimarchives
=
pimarchivesData
;
let
trmtrianpeopleData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
),
'undefined'
)){
trmtrianpeopleData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
)
as
any
);
if
(
trmtrianpeopleData
&&
trmtrianpeopleData
.
length
&&
trmtrianpeopleData
.
length
>
0
){
trmtrianpeopleData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
trmtrianpersonid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
trmtrianpeople
=
trmtrianpeopleData
;
let
pimachievementsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimachievements'
),
'undefined'
)){
pimachievementsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimachievements'
)
as
any
);
...
...
@@ -200,21 +215,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimachievements
=
pimachievementsData
;
let
pim
titl
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
titl
es'
),
'undefined'
)){
pim
titlesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitl
es'
)
as
any
);
if
(
pim
titlesData
&&
pimtitlesData
.
length
&&
pimtitl
esData
.
length
>
0
){
pim
titl
esData
.
forEach
((
item
:
any
)
=>
{
let
pim
languageabiliti
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
languageabiliti
es'
),
'undefined'
)){
pim
languageabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimlanguageabiliti
es'
)
as
any
);
if
(
pim
languageabilitiesData
&&
pimlanguageabilitiesData
.
length
&&
pimlanguageabiliti
esData
.
length
>
0
){
pim
languageabiliti
esData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
title
id
=
null
;
item
.
pim
languageability
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
titles
=
pimtitl
esData
;
masterData
.
pim
languageabilities
=
pimlanguageabiliti
esData
;
let
pimpapersData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpapers'
),
'undefined'
)){
pimpapersData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpapers'
)
as
any
);
...
...
@@ -230,51 +245,51 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimpapers
=
pimpapersData
;
let
pimfaminfo
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
pimfaminfo
s'
),
'undefined'
)){
pimfaminfosData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimfaminfo
s'
)
as
any
);
if
(
pimfaminfosData
&&
pimfaminfosData
.
length
&&
pimfaminfo
sData
.
length
>
0
){
pimfaminfo
sData
.
forEach
((
item
:
any
)
=>
{
let
attendancemreportmxe
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
attendancemreportmxe
s'
),
'undefined'
)){
attendancemreportmxesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_attendancemreportmxe
s'
)
as
any
);
if
(
attendancemreportmxesData
&&
attendancemreportmxesData
.
length
&&
attendancemreportmxe
sData
.
length
>
0
){
attendancemreportmxe
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimfaminfo
id
=
null
;
item
.
attendancemreportmx
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimfaminfos
=
pimfaminfo
sData
;
let
pim
patent
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
patent
s'
),
'undefined'
)){
pim
patentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpatent
s'
)
as
any
);
if
(
pim
patentsData
&&
pimpatentsData
.
length
&&
pimpatent
sData
.
length
>
0
){
pim
patent
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
attendancemreportmxes
=
attendancemreportmxe
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
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
patent
id
=
null
;
item
.
pim
researchfindings
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
patents
=
pimpatent
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
)
=>
{
masterData
.
pim
researchfindings
=
pimresearchfinding
sData
;
let
pim
titl
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
titl
es'
),
'undefined'
)){
pim
titlesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitl
es'
)
as
any
);
if
(
pim
titlesData
&&
pimtitlesData
.
length
&&
pimtitl
esData
.
length
>
0
){
pim
titl
esData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
workhistory
id
=
null
;
item
.
pim
title
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
workhistories
=
pimworkhistori
esData
;
masterData
.
pim
titles
=
pimtitl
esData
;
let
pimrewardpunishmentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
),
'undefined'
)){
pimrewardpunishmentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
)
as
any
);
...
...
@@ -290,119 +305,104 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimrewardpunishments
=
pimrewardpunishmentsData
;
let
pimvacationsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvacations'
),
'undefined'
)){
pimvacationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvacations'
)
as
any
);
if
(
pimvacationsData
&&
pimvacationsData
.
length
&&
pimvacationsData
.
length
>
0
){
pimvacationsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimvacationid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimvacations
=
pimvacationsData
;
let
pimcontractsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimcontracts'
),
'undefined'
)){
pimcontractsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimcontracts'
)
as
any
);
if
(
pimcontractsData
&&
pimcontractsData
.
length
&&
pimcontractsData
.
length
>
0
){
pimcontractsData
.
forEach
((
item
:
any
)
=>
{
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
.
pim
contract
id
=
null
;
item
.
pim
faminfo
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
contracts
=
pimcontract
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
)
=>
{
masterData
.
pim
faminfos
=
pimfaminfo
sData
;
let
pim
vocational
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
vocational
s'
),
'undefined'
)){
pim
vocationalsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvocational
s'
)
as
any
);
if
(
pim
vocationalsData
&&
pimvocationalsData
.
length
&&
pimvocational
sData
.
length
>
0
){
pim
vocational
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
education
id
=
null
;
item
.
pim
vocational
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
vocationals
=
pimvocational
sData
;
let
pim
workhistorie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
workhistorie
s'
),
'undefined'
)){
pim
workhistoriesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimworkhistorie
s'
)
as
any
);
if
(
pim
workhistoriesData
&&
pimworkhistoriesData
.
length
&&
pimworkhistorie
sData
.
length
>
0
){
pim
workhistorie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
researchfindings
id
=
null
;
item
.
pim
workhistory
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
researchfindings
=
pimresearchfinding
sData
;
let
pim
personabilitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
personabilitie
s'
),
'undefined'
)){
pim
personabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonabilitie
s'
)
as
any
);
if
(
pim
personabilitiesData
&&
pimpersonabilitiesData
.
length
&&
pimpersonabilitie
sData
.
length
>
0
){
pim
personabilitie
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
workhistories
=
pimworkhistorie
sData
;
let
pim
contract
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
contract
s'
),
'undefined'
)){
pim
contractsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimcontract
s'
)
as
any
);
if
(
pim
contractsData
&&
pimcontractsData
.
length
&&
pimcontract
sData
.
length
>
0
){
pim
contract
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
personability
id
=
null
;
item
.
pim
contract
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
personabilities
=
pimpersonabilitie
sData
;
let
pim
distirbu
tionsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
distirbu
tions'
),
'undefined'
)){
pim
distirbutionsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimdistirbu
tions'
)
as
any
);
if
(
pim
distirbutionsData
&&
pimdistirbutionsData
.
length
&&
pimdistirbu
tionsData
.
length
>
0
){
pim
distirbu
tionsData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
contracts
=
pimcontract
sData
;
let
pim
educa
tionsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
educa
tions'
),
'undefined'
)){
pim
educationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimeduca
tions'
)
as
any
);
if
(
pim
educationsData
&&
pimeducationsData
.
length
&&
pimeduca
tionsData
.
length
>
0
){
pim
educa
tionsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
distirbu
tionid
=
null
;
item
.
pim
educa
tionid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
distirbutions
=
pimdistirbu
tionsData
;
masterData
.
pim
educations
=
pimeduca
tionsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/pimpeople/
${
context
.
pimperson
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
vocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocational
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
personabilities'
,
JSON
.
stringify
(
res
.
data
.
pimpersonabilitie
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
languageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabilitie
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
distirbutions'
,
JSON
.
stringify
(
res
.
data
.
pimdistirbution
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpatents'
,
JSON
.
stringify
(
res
.
data
.
pimpatents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
,
JSON
.
stringify
(
res
.
data
.
trmtrianpeople
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
titles'
,
JSON
.
stringify
(
res
.
data
.
pimtitl
es
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
languageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabiliti
es
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpapers'
,
JSON
.
stringify
(
res
.
data
.
pimpapers
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimresearchfindings'
,
JSON
.
stringify
(
res
.
data
.
pimresearchfindings
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
patents'
,
JSON
.
stringify
(
res
.
data
.
pimpatent
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
vocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocational
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
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
));
return
res
;
}
...
...
@@ -443,27 +443,27 @@ export default class PIMPERSONServiceBase extends EntityService {
*/
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
+
'_pim
vocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocational
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
personabilities'
,
JSON
.
stringify
(
res
.
data
.
pimpersonabilitie
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
languageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabilitie
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
distirbutions'
,
JSON
.
stringify
(
res
.
data
.
pimdistirbution
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpatents'
,
JSON
.
stringify
(
res
.
data
.
pimpatents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
,
JSON
.
stringify
(
res
.
data
.
trmtrianpeople
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
titles'
,
JSON
.
stringify
(
res
.
data
.
pimtitl
es
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
languageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabiliti
es
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpapers'
,
JSON
.
stringify
(
res
.
data
.
pimpapers
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimresearchfindings'
,
JSON
.
stringify
(
res
.
data
.
pimresearchfindings
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
patents'
,
JSON
.
stringify
(
res
.
data
.
pimpatent
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
vocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocational
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
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
));
return
res
;
}
...
...
@@ -505,21 +505,21 @@ export default class PIMPERSONServiceBase extends EntityService {
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
pim
vocational
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
vocational
s'
),
'undefined'
)){
pim
vocationalsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvocational
s'
)
as
any
);
if
(
pim
vocationalsData
&&
pimvocationalsData
.
length
&&
pimvocational
sData
.
length
>
0
){
pim
vocational
sData
.
forEach
((
item
:
any
)
=>
{
let
pim
personabilitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
personabilitie
s'
),
'undefined'
)){
pim
personabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonabilitie
s'
)
as
any
);
if
(
pim
personabilitiesData
&&
pimpersonabilitiesData
.
length
&&
pimpersonabilitie
sData
.
length
>
0
){
pim
personabilitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
vocational
id
=
null
;
item
.
pim
personability
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
vocationals
=
pimvocational
sData
;
masterData
.
pim
personabilities
=
pimpersonabilitie
sData
;
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 +535,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimpersonchanges
=
pimpersonchangesData
;
let
pim
languageabilitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
languageabilitie
s'
),
'undefined'
)){
pim
languageabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimlanguageabilitie
s'
)
as
any
);
if
(
pim
languageabilitiesData
&&
pimlanguageabilitiesData
.
length
&&
pimlanguageabilitie
sData
.
length
>
0
){
pim
languageabilitie
sData
.
forEach
((
item
:
any
)
=>
{
let
pim
distirbution
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
distirbution
s'
),
'undefined'
)){
pim
distirbutionsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimdistirbution
s'
)
as
any
);
if
(
pim
distirbutionsData
&&
pimdistirbutionsData
.
length
&&
pimdistirbution
sData
.
length
>
0
){
pim
distirbution
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
languageability
id
=
null
;
item
.
pim
distirbution
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
languageabilities
=
pimlanguageabilitie
sData
;
masterData
.
pim
distirbutions
=
pimdistirbution
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,66 +565,81 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimexitandentries
=
pimexitandentriesData
;
let
pimar
chiv
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimar
chiv
es'
),
'undefined'
)){
pimar
chivesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchiv
es'
)
as
any
);
if
(
pimar
chivesData
&&
pimarchivesData
.
length
&&
pimarchiv
esData
.
length
>
0
){
pimar
chiv
esData
.
forEach
((
item
:
any
)
=>
{
let
pimar
mycadr
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimar
mycadr
es'
),
'undefined'
)){
pimar
mycadresData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarmycadr
es'
)
as
any
);
if
(
pimar
mycadresData
&&
pimarmycadresData
.
length
&&
pimarmycadr
esData
.
length
>
0
){
pimar
mycadr
esData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimar
chiv
esid
=
null
;
item
.
pimar
mycadr
esid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimar
chives
=
pimarchiv
esData
;
let
trmtrianpeople
Data
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
trmtrianpeople
'
),
'undefined'
)){
trmtrianpeopleData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_trmtrianpeople
'
)
as
any
);
if
(
trmtrianpeopleData
&&
trmtrianpeopleData
.
length
&&
trmtrianpeople
Data
.
length
>
0
){
trmtrianpeople
Data
.
forEach
((
item
:
any
)
=>
{
masterData
.
pimar
mycadres
=
pimarmycadr
esData
;
let
pimpatents
Data
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
pimpatents
'
),
'undefined'
)){
pimpatentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpatents
'
)
as
any
);
if
(
pimpatentsData
&&
pimpatentsData
.
length
&&
pimpatents
Data
.
length
>
0
){
pimpatents
Data
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
trmtrianperson
id
=
null
;
item
.
pimpatent
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
trmtrianpeople
=
trmtrianpeople
Data
;
let
attendancemreportmxe
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
attendancemreportmxe
s'
),
'undefined'
)){
attendancemreportmxesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_attendancemreportmxe
s'
)
as
any
);
if
(
attendancemreportmxesData
&&
attendancemreportmxesData
.
length
&&
attendancemreportmxe
sData
.
length
>
0
){
attendancemreportmxe
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pimpatents
=
pimpatents
Data
;
let
pimvacation
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
pimvacation
s'
),
'undefined'
)){
pimvacationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvacation
s'
)
as
any
);
if
(
pimvacationsData
&&
pimvacationsData
.
length
&&
pimvacation
sData
.
length
>
0
){
pimvacation
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
attendancemreportmx
id
=
null
;
item
.
pimvacation
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
attendancemreportmxes
=
attendancemreportmxe
sData
;
let
pimar
mycadr
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimar
mycadr
es'
),
'undefined'
)){
pimar
mycadresData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarmycadr
es'
)
as
any
);
if
(
pimar
mycadresData
&&
pimarmycadresData
.
length
&&
pimarmycadr
esData
.
length
>
0
){
pimar
mycadr
esData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pimvacations
=
pimvacation
sData
;
let
pimar
chiv
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimar
chiv
es'
),
'undefined'
)){
pimar
chivesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchiv
es'
)
as
any
);
if
(
pimar
chivesData
&&
pimarchivesData
.
length
&&
pimarchiv
esData
.
length
>
0
){
pimar
chiv
esData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimar
mycadr
esid
=
null
;
item
.
pimar
chiv
esid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimarmycadres
=
pimarmycadresData
;
masterData
.
pimarchives
=
pimarchivesData
;
let
trmtrianpeopleData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
),
'undefined'
)){
trmtrianpeopleData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
)
as
any
);
if
(
trmtrianpeopleData
&&
trmtrianpeopleData
.
length
&&
trmtrianpeopleData
.
length
>
0
){
trmtrianpeopleData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
trmtrianpersonid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
trmtrianpeople
=
trmtrianpeopleData
;
let
pimachievementsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimachievements'
),
'undefined'
)){
pimachievementsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimachievements'
)
as
any
);
...
...
@@ -640,21 +655,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimachievements
=
pimachievementsData
;
let
pim
titl
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
titl
es'
),
'undefined'
)){
pim
titlesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitl
es'
)
as
any
);
if
(
pim
titlesData
&&
pimtitlesData
.
length
&&
pimtitl
esData
.
length
>
0
){
pim
titl
esData
.
forEach
((
item
:
any
)
=>
{
let
pim
languageabiliti
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
languageabiliti
es'
),
'undefined'
)){
pim
languageabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimlanguageabiliti
es'
)
as
any
);
if
(
pim
languageabilitiesData
&&
pimlanguageabilitiesData
.
length
&&
pimlanguageabiliti
esData
.
length
>
0
){
pim
languageabiliti
esData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
title
id
=
null
;
item
.
pim
languageability
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
titles
=
pimtitl
esData
;
masterData
.
pim
languageabilities
=
pimlanguageabiliti
esData
;
let
pimpapersData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpapers'
),
'undefined'
)){
pimpapersData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpapers'
)
as
any
);
...
...
@@ -670,51 +685,51 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimpapers
=
pimpapersData
;
let
pimfaminfo
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
pimfaminfo
s'
),
'undefined'
)){
pimfaminfosData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimfaminfo
s'
)
as
any
);
if
(
pimfaminfosData
&&
pimfaminfosData
.
length
&&
pimfaminfo
sData
.
length
>
0
){
pimfaminfo
sData
.
forEach
((
item
:
any
)
=>
{
let
attendancemreportmxe
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
attendancemreportmxe
s'
),
'undefined'
)){
attendancemreportmxesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_attendancemreportmxe
s'
)
as
any
);
if
(
attendancemreportmxesData
&&
attendancemreportmxesData
.
length
&&
attendancemreportmxe
sData
.
length
>
0
){
attendancemreportmxe
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimfaminfo
id
=
null
;
item
.
attendancemreportmx
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimfaminfos
=
pimfaminfo
sData
;
let
pim
patent
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
patent
s'
),
'undefined'
)){
pim
patentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpatent
s'
)
as
any
);
if
(
pim
patentsData
&&
pimpatentsData
.
length
&&
pimpatent
sData
.
length
>
0
){
pim
patent
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
attendancemreportmxes
=
attendancemreportmxe
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
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
patent
id
=
null
;
item
.
pim
researchfindings
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
patents
=
pimpatent
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
)
=>
{
masterData
.
pim
researchfindings
=
pimresearchfinding
sData
;
let
pim
titl
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
titl
es'
),
'undefined'
)){
pim
titlesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitl
es'
)
as
any
);
if
(
pim
titlesData
&&
pimtitlesData
.
length
&&
pimtitl
esData
.
length
>
0
){
pim
titl
esData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
workhistory
id
=
null
;
item
.
pim
title
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
workhistories
=
pimworkhistori
esData
;
masterData
.
pim
titles
=
pimtitl
esData
;
let
pimrewardpunishmentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
),
'undefined'
)){
pimrewardpunishmentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
)
as
any
);
...
...
@@ -730,96 +745,81 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimrewardpunishments
=
pimrewardpunishmentsData
;
let
pimvacationsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvacations'
),
'undefined'
)){
pimvacationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvacations'
)
as
any
);
if
(
pimvacationsData
&&
pimvacationsData
.
length
&&
pimvacationsData
.
length
>
0
){
pimvacationsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimvacationid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimvacations
=
pimvacationsData
;
let
pimcontractsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimcontracts'
),
'undefined'
)){
pimcontractsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimcontracts'
)
as
any
);
if
(
pimcontractsData
&&
pimcontractsData
.
length
&&
pimcontractsData
.
length
>
0
){
pimcontractsData
.
forEach
((
item
:
any
)
=>
{
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
.
pim
contract
id
=
null
;
item
.
pim
faminfo
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
contracts
=
pimcontract
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
)
=>
{
masterData
.
pim
faminfos
=
pimfaminfo
sData
;
let
pim
vocational
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
vocational
s'
),
'undefined'
)){
pim
vocationalsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvocational
s'
)
as
any
);
if
(
pim
vocationalsData
&&
pimvocationalsData
.
length
&&
pimvocational
sData
.
length
>
0
){
pim
vocational
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
education
id
=
null
;
item
.
pim
vocational
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
vocationals
=
pimvocational
sData
;
let
pim
workhistorie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
workhistorie
s'
),
'undefined'
)){
pim
workhistoriesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimworkhistorie
s'
)
as
any
);
if
(
pim
workhistoriesData
&&
pimworkhistoriesData
.
length
&&
pimworkhistorie
sData
.
length
>
0
){
pim
workhistorie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
researchfindings
id
=
null
;
item
.
pim
workhistory
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
researchfindings
=
pimresearchfinding
sData
;
let
pim
personabilitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
personabilitie
s'
),
'undefined'
)){
pim
personabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonabilitie
s'
)
as
any
);
if
(
pim
personabilitiesData
&&
pimpersonabilitiesData
.
length
&&
pimpersonabilitie
sData
.
length
>
0
){
pim
personabilitie
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
workhistories
=
pimworkhistorie
sData
;
let
pim
contract
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
contract
s'
),
'undefined'
)){
pim
contractsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimcontract
s'
)
as
any
);
if
(
pim
contractsData
&&
pimcontractsData
.
length
&&
pimcontract
sData
.
length
>
0
){
pim
contract
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
personability
id
=
null
;
item
.
pim
contract
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
personabilities
=
pimpersonabilitie
sData
;
let
pim
distirbu
tionsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
distirbu
tions'
),
'undefined'
)){
pim
distirbutionsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimdistirbu
tions'
)
as
any
);
if
(
pim
distirbutionsData
&&
pimdistirbutionsData
.
length
&&
pimdistirbu
tionsData
.
length
>
0
){
pim
distirbu
tionsData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
contracts
=
pimcontract
sData
;
let
pim
educa
tionsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
educa
tions'
),
'undefined'
)){
pim
educationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimeduca
tions'
)
as
any
);
if
(
pim
educationsData
&&
pimeducationsData
.
length
&&
pimeduca
tionsData
.
length
>
0
){
pim
educa
tionsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
distirbu
tionid
=
null
;
item
.
pim
educa
tionid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
distirbutions
=
pimdistirbu
tionsData
;
masterData
.
pim
educations
=
pimeduca
tionsData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
...
...
@@ -829,27 +829,27 @@ export default class PIMPERSONServiceBase extends EntityService {
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/pimpeople`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pim
vocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocational
s
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pim
personabilities'
,
JSON
.
stringify
(
res
.
data
.
pimpersonabilitie
s
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pim
languageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabilitie
s
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pim
distirbutions'
,
JSON
.
stringify
(
res
.
data
.
pimdistirbution
s
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimpatents'
,
JSON
.
stringify
(
res
.
data
.
pimpatents
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_trmtrianpeople'
,
JSON
.
stringify
(
res
.
data
.
trmtrianpeople
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pim
titles'
,
JSON
.
stringify
(
res
.
data
.
pimtitl
es
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pim
languageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabiliti
es
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimpapers'
,
JSON
.
stringify
(
res
.
data
.
pimpapers
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimresearchfindings'
,
JSON
.
stringify
(
res
.
data
.
pimresearchfindings
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pim
patents'
,
JSON
.
stringify
(
res
.
data
.
pimpatent
s
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pim
vocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocational
s
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
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
));
return
res
;
}
...
...
@@ -864,21 +864,21 @@ export default class PIMPERSONServiceBase extends EntityService {
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
pim
vocational
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
vocational
s'
),
'undefined'
)){
pim
vocationalsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvocational
s'
)
as
any
);
if
(
pim
vocationalsData
&&
pimvocationalsData
.
length
&&
pimvocational
sData
.
length
>
0
){
pim
vocational
sData
.
forEach
((
item
:
any
)
=>
{
let
pim
personabilitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
personabilitie
s'
),
'undefined'
)){
pim
personabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonabilitie
s'
)
as
any
);
if
(
pim
personabilitiesData
&&
pimpersonabilitiesData
.
length
&&
pimpersonabilitie
sData
.
length
>
0
){
pim
personabilitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
vocational
id
=
null
;
item
.
pim
personability
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
vocationals
=
pimvocational
sData
;
masterData
.
pim
personabilities
=
pimpersonabilitie
sData
;
let
pimpersonchangesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
),
'undefined'
)){
pimpersonchangesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
)
as
any
);
...
...
@@ -886,44 +886,89 @@ export default class PIMPERSONServiceBase extends EntityService {
pimpersonchangesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimpersonchangeid
=
null
;
item
.
pimpersonchangeid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimpersonchanges
=
pimpersonchangesData
;
let
pimdistirbutionsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimdistirbutions'
),
'undefined'
)){
pimdistirbutionsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimdistirbutions'
)
as
any
);
if
(
pimdistirbutionsData
&&
pimdistirbutionsData
.
length
&&
pimdistirbutionsData
.
length
>
0
){
pimdistirbutionsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimdistirbutionid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimdistirbutions
=
pimdistirbutionsData
;
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
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
.
pim
personchanges
=
pimpersonchang
esData
;
let
pim
languageabilitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
languageabilitie
s'
),
'undefined'
)){
pim
languageabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimlanguageabilitie
s'
)
as
any
);
if
(
pim
languageabilitiesData
&&
pimlanguageabilitiesData
.
length
&&
pimlanguageabilitie
sData
.
length
>
0
){
pim
languageabilitie
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
armycadres
=
pimarmycadr
esData
;
let
pim
patent
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
patent
s'
),
'undefined'
)){
pim
patentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpatent
s'
)
as
any
);
if
(
pim
patentsData
&&
pimpatentsData
.
length
&&
pimpatent
sData
.
length
>
0
){
pim
patent
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
languageability
id
=
null
;
item
.
pim
patent
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
languageabilities
=
pimlanguageabilitie
sData
;
let
pim
exitandentrie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
exitandentrie
s'
),
'undefined'
)){
pim
exitandentriesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimexitandentrie
s'
)
as
any
);
if
(
pim
exitandentriesData
&&
pimexitandentriesData
.
length
&&
pimexitandentrie
sData
.
length
>
0
){
pim
exitandentrie
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
patents
=
pimpatent
sData
;
let
pim
vacation
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
vacation
s'
),
'undefined'
)){
pim
vacationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvacation
s'
)
as
any
);
if
(
pim
vacationsData
&&
pimvacationsData
.
length
&&
pimvacation
sData
.
length
>
0
){
pim
vacation
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
exitandentry
id
=
null
;
item
.
pim
vacation
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
exitandentries
=
pimexitandentrie
sData
;
masterData
.
pim
vacations
=
pimvacation
sData
;
let
pimarchivesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives'
),
'undefined'
)){
pimarchivesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimarchives'
)
as
any
);
...
...
@@ -954,36 +999,6 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
trmtrianpeople
=
trmtrianpeopleData
;
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
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
pimachievementsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimachievements'
),
'undefined'
)){
pimachievementsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimachievements'
)
as
any
);
...
...
@@ -999,21 +1014,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimachievements
=
pimachievementsData
;
let
pim
titl
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
titl
es'
),
'undefined'
)){
pim
titlesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitl
es'
)
as
any
);
if
(
pim
titlesData
&&
pimtitlesData
.
length
&&
pimtitl
esData
.
length
>
0
){
pim
titl
esData
.
forEach
((
item
:
any
)
=>
{
let
pim
languageabiliti
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
languageabiliti
es'
),
'undefined'
)){
pim
languageabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimlanguageabiliti
es'
)
as
any
);
if
(
pim
languageabilitiesData
&&
pimlanguageabilitiesData
.
length
&&
pimlanguageabiliti
esData
.
length
>
0
){
pim
languageabiliti
esData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
title
id
=
null
;
item
.
pim
languageability
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
titles
=
pimtitl
esData
;
masterData
.
pim
languageabilities
=
pimlanguageabiliti
esData
;
let
pimpapersData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpapers'
),
'undefined'
)){
pimpapersData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpapers'
)
as
any
);
...
...
@@ -1029,51 +1044,51 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimpapers
=
pimpapersData
;
let
pimfaminfo
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
pimfaminfo
s'
),
'undefined'
)){
pimfaminfosData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimfaminfo
s'
)
as
any
);
if
(
pimfaminfosData
&&
pimfaminfosData
.
length
&&
pimfaminfo
sData
.
length
>
0
){
pimfaminfo
sData
.
forEach
((
item
:
any
)
=>
{
let
attendancemreportmxe
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
attendancemreportmxe
s'
),
'undefined'
)){
attendancemreportmxesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_attendancemreportmxe
s'
)
as
any
);
if
(
attendancemreportmxesData
&&
attendancemreportmxesData
.
length
&&
attendancemreportmxe
sData
.
length
>
0
){
attendancemreportmxe
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimfaminfo
id
=
null
;
item
.
attendancemreportmx
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimfaminfos
=
pimfaminfo
sData
;
let
pim
patent
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
patent
s'
),
'undefined'
)){
pim
patentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpatent
s'
)
as
any
);
if
(
pim
patentsData
&&
pimpatentsData
.
length
&&
pimpatent
sData
.
length
>
0
){
pim
patent
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
attendancemreportmxes
=
attendancemreportmxe
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
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
patent
id
=
null
;
item
.
pim
researchfindings
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
patents
=
pimpatent
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
)
=>
{
masterData
.
pim
researchfindings
=
pimresearchfinding
sData
;
let
pim
titl
esData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
titl
es'
),
'undefined'
)){
pim
titlesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimtitl
es'
)
as
any
);
if
(
pim
titlesData
&&
pimtitlesData
.
length
&&
pimtitl
esData
.
length
>
0
){
pim
titl
esData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
workhistory
id
=
null
;
item
.
pim
title
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
workhistories
=
pimworkhistori
esData
;
masterData
.
pim
titles
=
pimtitl
esData
;
let
pimrewardpunishmentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
),
'undefined'
)){
pimrewardpunishmentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
)
as
any
);
...
...
@@ -1089,119 +1104,104 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData
.
pimrewardpunishments
=
pimrewardpunishmentsData
;
let
pimvacationsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvacations'
),
'undefined'
)){
pimvacationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvacations'
)
as
any
);
if
(
pimvacationsData
&&
pimvacationsData
.
length
&&
pimvacationsData
.
length
>
0
){
pimvacationsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pimvacationid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pimvacations
=
pimvacationsData
;
let
pimcontractsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimcontracts'
),
'undefined'
)){
pimcontractsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimcontracts'
)
as
any
);
if
(
pimcontractsData
&&
pimcontractsData
.
length
&&
pimcontractsData
.
length
>
0
){
pimcontractsData
.
forEach
((
item
:
any
)
=>
{
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
.
pim
contract
id
=
null
;
item
.
pim
faminfo
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
contracts
=
pimcontract
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
)
=>
{
masterData
.
pim
faminfos
=
pimfaminfo
sData
;
let
pim
vocational
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
vocational
s'
),
'undefined'
)){
pim
vocationalsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimvocational
s'
)
as
any
);
if
(
pim
vocationalsData
&&
pimvocationalsData
.
length
&&
pimvocational
sData
.
length
>
0
){
pim
vocational
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
education
id
=
null
;
item
.
pim
vocational
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
vocationals
=
pimvocational
sData
;
let
pim
workhistorie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
workhistorie
s'
),
'undefined'
)){
pim
workhistoriesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimworkhistorie
s'
)
as
any
);
if
(
pim
workhistoriesData
&&
pimworkhistoriesData
.
length
&&
pimworkhistorie
sData
.
length
>
0
){
pim
workhistorie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
researchfindings
id
=
null
;
item
.
pim
workhistory
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
researchfindings
=
pimresearchfinding
sData
;
let
pim
personabilitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
personabilitie
s'
),
'undefined'
)){
pim
personabilitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimpersonabilitie
s'
)
as
any
);
if
(
pim
personabilitiesData
&&
pimpersonabilitiesData
.
length
&&
pimpersonabilitie
sData
.
length
>
0
){
pim
personabilitie
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
workhistories
=
pimworkhistorie
sData
;
let
pim
contract
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
contract
s'
),
'undefined'
)){
pim
contractsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimcontract
s'
)
as
any
);
if
(
pim
contractsData
&&
pimcontractsData
.
length
&&
pimcontract
sData
.
length
>
0
){
pim
contract
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
personability
id
=
null
;
item
.
pim
contract
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
personabilities
=
pimpersonabilitie
sData
;
let
pim
distirbu
tionsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
distirbu
tions'
),
'undefined'
)){
pim
distirbutionsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimdistirbu
tions'
)
as
any
);
if
(
pim
distirbutionsData
&&
pimdistirbutionsData
.
length
&&
pimdistirbu
tionsData
.
length
>
0
){
pim
distirbu
tionsData
.
forEach
((
item
:
any
)
=>
{
masterData
.
pim
contracts
=
pimcontract
sData
;
let
pim
educa
tionsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pim
educa
tions'
),
'undefined'
)){
pim
educationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_pimeduca
tions'
)
as
any
);
if
(
pim
educationsData
&&
pimeducationsData
.
length
&&
pimeduca
tionsData
.
length
>
0
){
pim
educa
tionsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
pim
distirbu
tionid
=
null
;
item
.
pim
educa
tionid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
pim
distirbutions
=
pimdistirbu
tionsData
;
masterData
.
pim
educations
=
pimeduca
tionsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/pimpeople/
${
context
.
pimperson
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
vocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocational
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
personabilities'
,
JSON
.
stringify
(
res
.
data
.
pimpersonabilitie
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
languageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabilitie
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
distirbutions'
,
JSON
.
stringify
(
res
.
data
.
pimdistirbution
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpatents'
,
JSON
.
stringify
(
res
.
data
.
pimpatents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
,
JSON
.
stringify
(
res
.
data
.
trmtrianpeople
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
titles'
,
JSON
.
stringify
(
res
.
data
.
pimtitl
es
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
languageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabiliti
es
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpapers'
,
JSON
.
stringify
(
res
.
data
.
pimpapers
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimresearchfindings'
,
JSON
.
stringify
(
res
.
data
.
pimresearchfindings
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
patents'
,
JSON
.
stringify
(
res
.
data
.
pimpatent
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
vocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocational
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
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
));
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
+
'_pim
vocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocational
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
personabilities'
,
JSON
.
stringify
(
res
.
data
.
pimpersonabilitie
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpersonchanges'
,
JSON
.
stringify
(
res
.
data
.
pimpersonchanges
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
languageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabilitie
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
distirbutions'
,
JSON
.
stringify
(
res
.
data
.
pimdistirbution
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimexitandentries'
,
JSON
.
stringify
(
res
.
data
.
pimexitandentries
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpatents'
,
JSON
.
stringify
(
res
.
data
.
pimpatents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarchives'
,
JSON
.
stringify
(
res
.
data
.
pimarchives
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_trmtrianpeople'
,
JSON
.
stringify
(
res
.
data
.
trmtrianpeople
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimarmycadres'
,
JSON
.
stringify
(
res
.
data
.
pimarmycadres
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimachievements'
,
JSON
.
stringify
(
res
.
data
.
pimachievements
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
titles'
,
JSON
.
stringify
(
res
.
data
.
pimtitl
es
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
languageabilities'
,
JSON
.
stringify
(
res
.
data
.
pimlanguageabiliti
es
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimpapers'
,
JSON
.
stringify
(
res
.
data
.
pimpapers
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_attendancemreportmxes'
,
JSON
.
stringify
(
res
.
data
.
attendancemreportmxes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimresearchfindings'
,
JSON
.
stringify
(
res
.
data
.
pimresearchfindings
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimtitles'
,
JSON
.
stringify
(
res
.
data
.
pimtitles
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimfaminfos'
,
JSON
.
stringify
(
res
.
data
.
pimfaminfos
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
patents'
,
JSON
.
stringify
(
res
.
data
.
pimpatent
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pim
vocationals'
,
JSON
.
stringify
(
res
.
data
.
pimvocational
s
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimworkhistories'
,
JSON
.
stringify
(
res
.
data
.
pimworkhistories
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimrewardpunishments'
,
JSON
.
stringify
(
res
.
data
.
pimrewardpunishments
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_pimvacations'
,
JSON
.
stringify
(
res
.
data
.
pimvacations
));
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
));
return
res
;
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录