提交 e0b61b45 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 f20a8266
......@@ -38,7 +38,7 @@ export default {
updatedate: '更新时间',
enable: '逻辑有效标志',
zgxllx: '最高学历学习形式',
tozjdate: '中建系统工作时间',
tozjdate: '建筑系统工作时间',
jxkhcj: '绩效考核成绩(近两年)',
dyxljssj: '第一学历毕业时间',
yglx: '员工类型',
......@@ -52,7 +52,7 @@ export default {
rank: '职级',
zcbh: '职称编号',
pimmajorsetypename: '所属业务系统',
zjxtgznx: '中建系统工作年限',
zjxtgznx: '建筑系统工作年限',
gznx: '工作年限',
xb: '性别',
createdate: '建立时间',
......@@ -154,9 +154,9 @@ export default {
bdwgznx: "本单位工作年限",
bjgznx: "局工作年限",
careername: "专业技术资格(职称)",
zjxtgznx: "中建系统工作年限",
zjxtgznx: "建筑系统工作年限",
cjgzsj: "参加工作时间",
tozjdate: "中建系统工作时间",
tozjdate: "建筑系统工作时间",
dbdwsj: "本单位工作时间",
rank: "职级",
rdsj: "入党时间",
......@@ -217,8 +217,8 @@ export default {
zgxlsxzy: "最高学历所学专业",
cjgzsj: "参加工作时间",
gznx: "工作年限",
tozjdate: "中建系统工作时间",
zjxtgznx: "中建系统工作年限",
tozjdate: "建筑系统工作时间",
zjxtgznx: "建筑系统工作年限",
dzjbjsj: "局工作时间",
bjgznx: "局工作年限",
dbdwsj: "本单位工作时间",
......
......@@ -37,7 +37,7 @@ export default {
updatedate: '更新时间',
enable: '逻辑有效标志',
zgxllx: '最高学历学习形式',
tozjdate: '中建系统工作时间',
tozjdate: '建筑系统工作时间',
jxkhcj: '绩效考核成绩(近两年)',
dyxljssj: '第一学历毕业时间',
yglx: '员工类型',
......@@ -51,7 +51,7 @@ export default {
rank: '职级',
zcbh: '职称编号',
pimmajorsetypename: '所属业务系统',
zjxtgznx: '中建系统工作年限',
zjxtgznx: '建筑系统工作年限',
gznx: '工作年限',
xb: '性别',
createdate: '建立时间',
......@@ -153,9 +153,9 @@ export default {
bdwgznx: '本单位工作年限',
bjgznx: '局工作年限',
careername: '专业技术资格(职称)',
zjxtgznx: '中建系统工作年限',
zjxtgznx: '建筑系统工作年限',
cjgzsj: '参加工作时间',
tozjdate: '中建系统工作时间',
tozjdate: '建筑系统工作时间',
dbdwsj: '本单位工作时间',
rank: '职级',
rdsj: '入党时间',
......@@ -216,8 +216,8 @@ export default {
zgxlsxzy: '最高学历所学专业',
cjgzsj: '参加工作时间',
gznx: '工作年限',
tozjdate: '中建系统工作时间',
zjxtgznx: '中建系统工作年限',
tozjdate: '建筑系统工作时间',
zjxtgznx: '建筑系统工作年限',
dzjbjsj: '局工作时间',
bjgznx: '局工作年限',
dbdwsj: '本单位工作时间',
......
......@@ -21,7 +21,7 @@ export default {
xwz: '学位证',
xllx: '学习形式',
xxxz: '学校性质',
tozjdate: '中建系统工作时间',
tozjdate: '建筑系统工作时间',
jlglbh: '记录管理编号',
jlspzt: '记录审批状态',
btz: '毕业证',
......@@ -39,7 +39,7 @@ export default {
createdate: '建立时间',
xl: '学历',
dbdwsj: '本单位工作时间',
zjxtgznx: '中建系统工作年限',
zjxtgznx: '建筑系统工作年限',
bjgznx: '局工作年限',
ormorgid: '组织标识',
pimpersonname: '员工名称',
......
......@@ -20,7 +20,7 @@ export default {
xwz: '学位证',
xllx: '学习形式',
xxxz: '学校性质',
tozjdate: '中建系统工作时间',
tozjdate: '建筑系统工作时间',
jlglbh: '记录管理编号',
jlspzt: '记录审批状态',
btz: '毕业证',
......@@ -38,7 +38,7 @@ export default {
createdate: '建立时间',
xl: '学历',
dbdwsj: '本单位工作时间',
zjxtgznx: '中建系统工作年限',
zjxtgznx: '建筑系统工作年限',
bjgznx: '局工作年限',
ormorgid: '组织标识',
pimpersonname: '员工名称',
......
......@@ -114,7 +114,7 @@ export default {
cjgzsj: '参加工作时间',
gwksrq: '岗位开始日期',
orgsectorid: '部门ID',
tozjdate: '到中建系统时间',
tozjdate: '到建筑系统时间',
zjhm: '证件号码',
pimpersonid: '人员信息标识',
blacklistreasons: '黑名单原因',
......@@ -450,7 +450,7 @@ export default {
gw: "岗位",
zj: "专家类型",
cjgzsj: "参加工作时间",
tozjdate: "到中建系统时间",
tozjdate: "到建筑系统时间",
dzjbjsj: "到局时间",
dbdwsj: "到本单位时间",
gzzt: "挂职状态",
......@@ -536,7 +536,7 @@ export default {
postaladdress: "通讯地址",
rdsj1: "入党时间",
rtsj: "入团时间",
tozjdate: "到中建系统时间",
tozjdate: "到建筑系统时间",
dzjbjsj: "到局时间",
rzqd: "入职渠道",
gzzt: "挂职状态",
......@@ -740,7 +740,7 @@ export default {
rank: "职级",
zj: "专家类型",
cjgzsj: "参加工作时间",
tozjdate: "到中建系统时间",
tozjdate: "到建筑系统时间",
dzjbjsj: "到局时间",
dbdwsj: "到本单位时间",
pimpersonid: "人员信息标识",
......
......@@ -113,7 +113,7 @@ export default {
cjgzsj: '参加工作时间',
gwksrq: '岗位开始日期',
orgsectorid: '部门ID',
tozjdate: '到中建系统时间',
tozjdate: '到建筑系统时间',
zjhm: '证件号码',
pimpersonid: '人员信息标识',
blacklistreasons: '黑名单原因',
......@@ -449,7 +449,7 @@ export default {
gw: '岗位',
zj: '专家类型',
cjgzsj: '参加工作时间',
tozjdate: '到中建系统时间',
tozjdate: '到建筑系统时间',
dzjbjsj: '到局时间',
dbdwsj: '到本单位时间',
gzzt: '挂职状态',
......@@ -535,7 +535,7 @@ export default {
postaladdress: '通讯地址',
rdsj1: '入党时间',
rtsj: '入团时间',
tozjdate: '到中建系统时间',
tozjdate: '到建筑系统时间',
dzjbjsj: '到局时间',
rzqd: '入职渠道',
gzzt: '挂职状态',
......@@ -739,7 +739,7 @@ export default {
rank: '职级',
zj: '专家类型',
cjgzsj: '参加工作时间',
tozjdate: '到中建系统时间',
tozjdate: '到建筑系统时间',
dzjbjsj: '到局时间',
dbdwsj: '到本单位时间',
pimpersonid: '人员信息标识',
......
......@@ -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:55:01","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:55:01","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:55:01","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:55:01","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:55:01","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:55:01","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:55:01","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:55:01","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:55:01","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:55:01","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:55:01","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:55:01","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 19:55:55","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 19:55:55","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 19:55:55","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 19:55:55","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 19:55:55","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 19:55:55","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 19:55:55","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 19:55:55","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 19:55:55","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 19:55:55","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 19:55:55","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 19:55:55","createman":"示例操作者","pimpersonname":null}
];
......
......@@ -85,9 +85,9 @@ 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+'_pimarchivesrecords',JSON.stringify(res.data.pimarchivesrecords));
this.tempStorage.setItem(context.srfsessionkey+'_pimarchivesloanandreturns',JSON.stringify(res.data.pimarchivesloanandreturns));
this.tempStorage.setItem(context.srfsessionkey+'_pimarchiveschanges',JSON.stringify(res.data.pimarchiveschanges));
return res;
}
......@@ -105,21 +105,6 @@ export default class PIMARCHIVESServiceBase extends EntityService {
return Http.getInstance().post(`/pimpeople/${context.pimperson}/pimarchives/${context.pimarchives}/save`,data,isloading);
}
let masterData:any = {};
let pimarchiveschangesData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimarchiveschanges'),'undefined')){
pimarchiveschangesData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimarchiveschanges') as any);
if(pimarchiveschangesData && pimarchiveschangesData.length && pimarchiveschangesData.length > 0){
pimarchiveschangesData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimarchiveschangeid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimarchiveschanges = pimarchiveschangesData;
let pimarchivesrecordsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimarchivesrecords'),'undefined')){
pimarchivesrecordsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimarchivesrecords') as any);
......@@ -150,11 +135,26 @@ export default class PIMARCHIVESServiceBase extends EntityService {
}
}
masterData.pimarchivesloanandreturns = pimarchivesloanandreturnsData;
let pimarchiveschangesData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimarchiveschanges'),'undefined')){
pimarchiveschangesData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimarchiveschanges') as any);
if(pimarchiveschangesData && pimarchiveschangesData.length && pimarchiveschangesData.length > 0){
pimarchiveschangesData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimarchiveschangeid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimarchiveschanges = pimarchiveschangesData;
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+'_pimarchivesrecords',JSON.stringify(res.data.pimarchivesrecords));
this.tempStorage.setItem(context.srfsessionkey+'_pimarchivesloanandreturns',JSON.stringify(res.data.pimarchivesloanandreturns));
this.tempStorage.setItem(context.srfsessionkey+'_pimarchiveschanges',JSON.stringify(res.data.pimarchiveschanges));
return res;
}
......@@ -172,9 +172,9 @@ 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+'_pimarchivesrecords',JSON.stringify(res.data.pimarchivesrecords));
this.tempStorage.setItem(context.srfsessionkey+'_pimarchivesloanandreturns',JSON.stringify(res.data.pimarchivesloanandreturns));
this.tempStorage.setItem(context.srfsessionkey+'_pimarchiveschanges',JSON.stringify(res.data.pimarchiveschanges));
return res;
}
......@@ -193,21 +193,6 @@ export default class PIMARCHIVESServiceBase extends EntityService {
return Http.getInstance().put(`/pimpeople/${context.pimperson}/pimarchives/${context.pimarchives}`,data,isloading);
}
let masterData:any = {};
let pimarchiveschangesData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimarchiveschanges'),'undefined')){
pimarchiveschangesData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimarchiveschanges') as any);
if(pimarchiveschangesData && pimarchiveschangesData.length && pimarchiveschangesData.length > 0){
pimarchiveschangesData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimarchiveschangeid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimarchiveschanges = pimarchiveschangesData;
let pimarchivesrecordsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimarchivesrecords'),'undefined')){
pimarchivesrecordsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimarchivesrecords') as any);
......@@ -238,11 +223,26 @@ export default class PIMARCHIVESServiceBase extends EntityService {
}
}
masterData.pimarchivesloanandreturns = pimarchivesloanandreturnsData;
let pimarchiveschangesData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimarchiveschanges'),'undefined')){
pimarchiveschangesData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimarchiveschanges') as any);
if(pimarchiveschangesData && pimarchiveschangesData.length && pimarchiveschangesData.length > 0){
pimarchiveschangesData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimarchiveschangeid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimarchiveschanges = pimarchiveschangesData;
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+'_pimarchivesrecords',JSON.stringify(res.data.pimarchivesrecords));
this.tempStorage.setItem(context.srfsessionkey+'_pimarchivesloanandreturns',JSON.stringify(res.data.pimarchivesloanandreturns));
this.tempStorage.setItem(context.srfsessionkey+'_pimarchiveschanges',JSON.stringify(res.data.pimarchiveschanges));
return res;
}
......@@ -282,21 +282,6 @@ export default class PIMARCHIVESServiceBase extends EntityService {
return Http.getInstance().post(`/pimpeople/${context.pimperson}/pimarchives`,data,isloading);
}
let masterData:any = {};
let pimarchiveschangesData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimarchiveschanges'),'undefined')){
pimarchiveschangesData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimarchiveschanges') as any);
if(pimarchiveschangesData && pimarchiveschangesData.length && pimarchiveschangesData.length > 0){
pimarchiveschangesData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimarchiveschangeid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimarchiveschanges = pimarchiveschangesData;
let pimarchivesrecordsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimarchivesrecords'),'undefined')){
pimarchivesrecordsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimarchivesrecords') as any);
......@@ -327,6 +312,21 @@ export default class PIMARCHIVESServiceBase extends EntityService {
}
}
masterData.pimarchivesloanandreturns = pimarchivesloanandreturnsData;
let pimarchiveschangesData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimarchiveschanges'),'undefined')){
pimarchiveschangesData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimarchiveschanges') as any);
if(pimarchiveschangesData && pimarchiveschangesData.length && pimarchiveschangesData.length > 0){
pimarchiveschangesData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimarchiveschangeid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimarchiveschanges = pimarchiveschangesData;
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
......@@ -336,9 +336,9 @@ 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+'_pimarchivesrecords',JSON.stringify(res.data.pimarchivesrecords));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimarchivesloanandreturns',JSON.stringify(res.data.pimarchivesloanandreturns));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimarchiveschanges',JSON.stringify(res.data.pimarchiveschanges));
return res;
}
......
......@@ -65,36 +65,6 @@ export default class PIMPERSONServiceBase extends EntityService {
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
let trmtrianpeopleData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_trmtrianpeople'),'undefined')){
trmtrianpeopleData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_trmtrianpeople') as any);
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 pimpatentsData: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 && pimpatentsData.length > 0){
pimpatentsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimpatentid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimpatents = pimpatentsData;
let pimachievementsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimachievements'),'undefined')){
pimachievementsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimachievements') as any);
......@@ -110,21 +80,6 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.pimachievements = pimachievementsData;
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 pimpapersData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimpapers'),'undefined')){
pimpapersData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimpapers') as any);
......@@ -170,21 +125,6 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.pimrewardpunishments = pimrewardpunishmentsData;
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) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimcontractid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimcontracts = pimcontractsData;
let pimresearchfindingsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimresearchfindings'),'undefined')){
pimresearchfindingsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimresearchfindings') as any);
......@@ -215,21 +155,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.attendancemreportmxes = attendancemreportmxesData;
let pimeducationsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimeducations'),'undefined')){
pimeducationsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimeducations') as any);
if(pimeducationsData && pimeducationsData.length && pimeducationsData.length > 0){
pimeducationsData.forEach((item:any) => {
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) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimeducationid = null;
item.pimcontractid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimeducations = pimeducationsData;
masterData.pimcontracts = pimcontractsData;
let pimtitlesData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimtitles'),'undefined')){
pimtitlesData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimtitles') as any);
......@@ -245,6 +185,36 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.pimtitles = pimtitlesData;
let pimeducationsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimeducations'),'undefined')){
pimeducationsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimeducations') as any);
if(pimeducationsData && pimeducationsData.length && pimeducationsData.length > 0){
pimeducationsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimeducationid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimeducations = pimeducationsData;
let pimvocationalsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimvocationals'),'undefined')){
pimvocationalsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimvocationals') as any);
if(pimvocationalsData && pimvocationalsData.length && pimvocationalsData.length > 0){
pimvocationalsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimvocationalid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimvocationals = pimvocationalsData;
let pimfaminfosData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimfaminfos'),'undefined')){
pimfaminfosData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimfaminfos') as any);
......@@ -290,21 +260,6 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.pimpersonabilities = pimpersonabilitiesData;
let pimvocationalsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimvocationals'),'undefined')){
pimvocationalsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimvocationals') as any);
if(pimvocationalsData && pimvocationalsData.length && pimvocationalsData.length > 0){
pimvocationalsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimvocationalid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimvocationals = pimvocationalsData;
let pimdistirbutionsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimdistirbutions'),'undefined')){
pimdistirbutionsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimdistirbutions') as any);
......@@ -365,6 +320,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.pimarmycadres = pimarmycadresData;
let pimpatentsData: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 && pimpatentsData.length > 0){
pimpatentsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimpatentid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimpatents = pimpatentsData;
let pimarchivesData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimarchives'),'undefined')){
pimarchivesData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimarchives') as any);
......@@ -380,29 +350,59 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
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 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;
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/pimpeople/${context.pimperson}`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_trmtrianpeople',JSON.stringify(res.data.trmtrianpeople));
this.tempStorage.setItem(context.srfsessionkey+'_pimpatents',JSON.stringify(res.data.pimpatents));
this.tempStorage.setItem(context.srfsessionkey+'_pimachievements',JSON.stringify(res.data.pimachievements));
this.tempStorage.setItem(context.srfsessionkey+'_pimvacations',JSON.stringify(res.data.pimvacations));
this.tempStorage.setItem(context.srfsessionkey+'_pimpapers',JSON.stringify(res.data.pimpapers));
this.tempStorage.setItem(context.srfsessionkey+'_pimlanguageabilities',JSON.stringify(res.data.pimlanguageabilities));
this.tempStorage.setItem(context.srfsessionkey+'_pimrewardpunishments',JSON.stringify(res.data.pimrewardpunishments));
this.tempStorage.setItem(context.srfsessionkey+'_pimcontracts',JSON.stringify(res.data.pimcontracts));
this.tempStorage.setItem(context.srfsessionkey+'_pimresearchfindings',JSON.stringify(res.data.pimresearchfindings));
this.tempStorage.setItem(context.srfsessionkey+'_attendancemreportmxes',JSON.stringify(res.data.attendancemreportmxes));
this.tempStorage.setItem(context.srfsessionkey+'_pimeducations',JSON.stringify(res.data.pimeducations));
this.tempStorage.setItem(context.srfsessionkey+'_pimcontracts',JSON.stringify(res.data.pimcontracts));
this.tempStorage.setItem(context.srfsessionkey+'_pimtitles',JSON.stringify(res.data.pimtitles));
this.tempStorage.setItem(context.srfsessionkey+'_pimeducations',JSON.stringify(res.data.pimeducations));
this.tempStorage.setItem(context.srfsessionkey+'_pimvocationals',JSON.stringify(res.data.pimvocationals));
this.tempStorage.setItem(context.srfsessionkey+'_pimfaminfos',JSON.stringify(res.data.pimfaminfos));
this.tempStorage.setItem(context.srfsessionkey+'_pimworkhistories',JSON.stringify(res.data.pimworkhistories));
this.tempStorage.setItem(context.srfsessionkey+'_pimpersonabilities',JSON.stringify(res.data.pimpersonabilities));
this.tempStorage.setItem(context.srfsessionkey+'_pimvocationals',JSON.stringify(res.data.pimvocationals));
this.tempStorage.setItem(context.srfsessionkey+'_pimdistirbutions',JSON.stringify(res.data.pimdistirbutions));
this.tempStorage.setItem(context.srfsessionkey+'_pimpersonchanges',JSON.stringify(res.data.pimpersonchanges));
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+'_pimarchives',JSON.stringify(res.data.pimarchives));
this.tempStorage.setItem(context.srfsessionkey+'_trmtrianpeople',JSON.stringify(res.data.trmtrianpeople));
this.tempStorage.setItem(context.srfsessionkey+'_pimvacations',JSON.stringify(res.data.pimvacations));
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+'_trmtrianpeople',JSON.stringify(res.data.trmtrianpeople));
this.tempStorage.setItem(context.srfsessionkey+'_pimpatents',JSON.stringify(res.data.pimpatents));
this.tempStorage.setItem(context.srfsessionkey+'_pimachievements',JSON.stringify(res.data.pimachievements));
this.tempStorage.setItem(context.srfsessionkey+'_pimvacations',JSON.stringify(res.data.pimvacations));
this.tempStorage.setItem(context.srfsessionkey+'_pimpapers',JSON.stringify(res.data.pimpapers));
this.tempStorage.setItem(context.srfsessionkey+'_pimlanguageabilities',JSON.stringify(res.data.pimlanguageabilities));
this.tempStorage.setItem(context.srfsessionkey+'_pimrewardpunishments',JSON.stringify(res.data.pimrewardpunishments));
this.tempStorage.setItem(context.srfsessionkey+'_pimcontracts',JSON.stringify(res.data.pimcontracts));
this.tempStorage.setItem(context.srfsessionkey+'_pimresearchfindings',JSON.stringify(res.data.pimresearchfindings));
this.tempStorage.setItem(context.srfsessionkey+'_attendancemreportmxes',JSON.stringify(res.data.attendancemreportmxes));
this.tempStorage.setItem(context.srfsessionkey+'_pimeducations',JSON.stringify(res.data.pimeducations));
this.tempStorage.setItem(context.srfsessionkey+'_pimcontracts',JSON.stringify(res.data.pimcontracts));
this.tempStorage.setItem(context.srfsessionkey+'_pimtitles',JSON.stringify(res.data.pimtitles));
this.tempStorage.setItem(context.srfsessionkey+'_pimeducations',JSON.stringify(res.data.pimeducations));
this.tempStorage.setItem(context.srfsessionkey+'_pimvocationals',JSON.stringify(res.data.pimvocationals));
this.tempStorage.setItem(context.srfsessionkey+'_pimfaminfos',JSON.stringify(res.data.pimfaminfos));
this.tempStorage.setItem(context.srfsessionkey+'_pimworkhistories',JSON.stringify(res.data.pimworkhistories));
this.tempStorage.setItem(context.srfsessionkey+'_pimpersonabilities',JSON.stringify(res.data.pimpersonabilities));
this.tempStorage.setItem(context.srfsessionkey+'_pimvocationals',JSON.stringify(res.data.pimvocationals));
this.tempStorage.setItem(context.srfsessionkey+'_pimdistirbutions',JSON.stringify(res.data.pimdistirbutions));
this.tempStorage.setItem(context.srfsessionkey+'_pimpersonchanges',JSON.stringify(res.data.pimpersonchanges));
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+'_pimarchives',JSON.stringify(res.data.pimarchives));
this.tempStorage.setItem(context.srfsessionkey+'_trmtrianpeople',JSON.stringify(res.data.trmtrianpeople));
this.tempStorage.setItem(context.srfsessionkey+'_pimvacations',JSON.stringify(res.data.pimvacations));
return res;
}
......@@ -505,36 +505,6 @@ export default class PIMPERSONServiceBase extends EntityService {
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
let trmtrianpeopleData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_trmtrianpeople'),'undefined')){
trmtrianpeopleData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_trmtrianpeople') as any);
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 pimpatentsData: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 && pimpatentsData.length > 0){
pimpatentsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimpatentid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimpatents = pimpatentsData;
let pimachievementsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimachievements'),'undefined')){
pimachievementsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimachievements') as any);
......@@ -550,21 +520,6 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.pimachievements = pimachievementsData;
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 pimpapersData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimpapers'),'undefined')){
pimpapersData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimpapers') as any);
......@@ -610,21 +565,6 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.pimrewardpunishments = pimrewardpunishmentsData;
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) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimcontractid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimcontracts = pimcontractsData;
let pimresearchfindingsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimresearchfindings'),'undefined')){
pimresearchfindingsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimresearchfindings') as any);
......@@ -655,21 +595,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.attendancemreportmxes = attendancemreportmxesData;
let pimeducationsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimeducations'),'undefined')){
pimeducationsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimeducations') as any);
if(pimeducationsData && pimeducationsData.length && pimeducationsData.length > 0){
pimeducationsData.forEach((item:any) => {
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) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimeducationid = null;
item.pimcontractid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimeducations = pimeducationsData;
masterData.pimcontracts = pimcontractsData;
let pimtitlesData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimtitles'),'undefined')){
pimtitlesData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimtitles') as any);
......@@ -685,6 +625,36 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.pimtitles = pimtitlesData;
let pimeducationsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimeducations'),'undefined')){
pimeducationsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimeducations') as any);
if(pimeducationsData && pimeducationsData.length && pimeducationsData.length > 0){
pimeducationsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimeducationid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimeducations = pimeducationsData;
let pimvocationalsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimvocationals'),'undefined')){
pimvocationalsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimvocationals') as any);
if(pimvocationalsData && pimvocationalsData.length && pimvocationalsData.length > 0){
pimvocationalsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimvocationalid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimvocationals = pimvocationalsData;
let pimfaminfosData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimfaminfos'),'undefined')){
pimfaminfosData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimfaminfos') as any);
......@@ -713,38 +683,23 @@ export default class PIMPERSONServiceBase extends EntityService {
}
});
}
}
masterData.pimworkhistories = pimworkhistoriesData;
let pimpersonabilitiesData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimpersonabilities'),'undefined')){
pimpersonabilitiesData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimpersonabilities') as any);
if(pimpersonabilitiesData && pimpersonabilitiesData.length && pimpersonabilitiesData.length > 0){
pimpersonabilitiesData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimpersonabilityid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimpersonabilities = pimpersonabilitiesData;
let pimvocationalsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimvocationals'),'undefined')){
pimvocationalsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimvocationals') as any);
if(pimvocationalsData && pimvocationalsData.length && pimvocationalsData.length > 0){
pimvocationalsData.forEach((item:any) => {
}
masterData.pimworkhistories = pimworkhistoriesData;
let pimpersonabilitiesData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimpersonabilities'),'undefined')){
pimpersonabilitiesData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimpersonabilities') as any);
if(pimpersonabilitiesData && pimpersonabilitiesData.length && pimpersonabilitiesData.length > 0){
pimpersonabilitiesData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimvocationalid = null;
item.pimpersonabilityid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimvocationals = pimvocationalsData;
masterData.pimpersonabilities = pimpersonabilitiesData;
let pimdistirbutionsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimdistirbutions'),'undefined')){
pimdistirbutionsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimdistirbutions') as any);
......@@ -805,6 +760,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.pimarmycadres = pimarmycadresData;
let pimpatentsData: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 && pimpatentsData.length > 0){
pimpatentsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimpatentid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimpatents = pimpatentsData;
let pimarchivesData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimarchives'),'undefined')){
pimarchivesData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimarchives') as any);
......@@ -820,6 +790,36 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
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 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;
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+'_trmtrianpeople',JSON.stringify(res.data.trmtrianpeople));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimpatents',JSON.stringify(res.data.pimpatents));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimachievements',JSON.stringify(res.data.pimachievements));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimvacations',JSON.stringify(res.data.pimvacations));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimpapers',JSON.stringify(res.data.pimpapers));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimlanguageabilities',JSON.stringify(res.data.pimlanguageabilities));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimrewardpunishments',JSON.stringify(res.data.pimrewardpunishments));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimcontracts',JSON.stringify(res.data.pimcontracts));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimresearchfindings',JSON.stringify(res.data.pimresearchfindings));
this.tempStorage.setItem(tempContext.srfsessionkey+'_attendancemreportmxes',JSON.stringify(res.data.attendancemreportmxes));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimeducations',JSON.stringify(res.data.pimeducations));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimcontracts',JSON.stringify(res.data.pimcontracts));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimtitles',JSON.stringify(res.data.pimtitles));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimeducations',JSON.stringify(res.data.pimeducations));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimvocationals',JSON.stringify(res.data.pimvocationals));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimfaminfos',JSON.stringify(res.data.pimfaminfos));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimworkhistories',JSON.stringify(res.data.pimworkhistories));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimpersonabilities',JSON.stringify(res.data.pimpersonabilities));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimvocationals',JSON.stringify(res.data.pimvocationals));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimdistirbutions',JSON.stringify(res.data.pimdistirbutions));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimpersonchanges',JSON.stringify(res.data.pimpersonchanges));
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+'_pimarchives',JSON.stringify(res.data.pimarchives));
this.tempStorage.setItem(tempContext.srfsessionkey+'_trmtrianpeople',JSON.stringify(res.data.trmtrianpeople));
this.tempStorage.setItem(tempContext.srfsessionkey+'_pimvacations',JSON.stringify(res.data.pimvacations));
return res;
}
......@@ -864,36 +864,6 @@ export default class PIMPERSONServiceBase extends EntityService {
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
let trmtrianpeopleData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_trmtrianpeople'),'undefined')){
trmtrianpeopleData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_trmtrianpeople') as any);
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 pimpatentsData: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 && pimpatentsData.length > 0){
pimpatentsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimpatentid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimpatents = pimpatentsData;
let pimachievementsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimachievements'),'undefined')){
pimachievementsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimachievements') as any);
......@@ -909,21 +879,6 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.pimachievements = pimachievementsData;
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 pimpapersData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimpapers'),'undefined')){
pimpapersData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimpapers') as any);
......@@ -969,21 +924,6 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.pimrewardpunishments = pimrewardpunishmentsData;
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) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimcontractid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimcontracts = pimcontractsData;
let pimresearchfindingsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimresearchfindings'),'undefined')){
pimresearchfindingsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimresearchfindings') as any);
......@@ -1014,21 +954,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.attendancemreportmxes = attendancemreportmxesData;
let pimeducationsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimeducations'),'undefined')){
pimeducationsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimeducations') as any);
if(pimeducationsData && pimeducationsData.length && pimeducationsData.length > 0){
pimeducationsData.forEach((item:any) => {
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) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimeducationid = null;
item.pimcontractid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimeducations = pimeducationsData;
masterData.pimcontracts = pimcontractsData;
let pimtitlesData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimtitles'),'undefined')){
pimtitlesData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimtitles') as any);
......@@ -1044,6 +984,36 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.pimtitles = pimtitlesData;
let pimeducationsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimeducations'),'undefined')){
pimeducationsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimeducations') as any);
if(pimeducationsData && pimeducationsData.length && pimeducationsData.length > 0){
pimeducationsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimeducationid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimeducations = pimeducationsData;
let pimvocationalsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimvocationals'),'undefined')){
pimvocationalsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimvocationals') as any);
if(pimvocationalsData && pimvocationalsData.length && pimvocationalsData.length > 0){
pimvocationalsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimvocationalid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimvocationals = pimvocationalsData;
let pimfaminfosData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimfaminfos'),'undefined')){
pimfaminfosData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimfaminfos') as any);
......@@ -1089,21 +1059,6 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.pimpersonabilities = pimpersonabilitiesData;
let pimvocationalsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimvocationals'),'undefined')){
pimvocationalsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimvocationals') as any);
if(pimvocationalsData && pimvocationalsData.length && pimvocationalsData.length > 0){
pimvocationalsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimvocationalid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimvocationals = pimvocationalsData;
let pimdistirbutionsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimdistirbutions'),'undefined')){
pimdistirbutionsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimdistirbutions') as any);
......@@ -1164,6 +1119,21 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
masterData.pimarmycadres = pimarmycadresData;
let pimpatentsData: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 && pimpatentsData.length > 0){
pimpatentsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.pimpatentid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.pimpatents = pimpatentsData;
let pimarchivesData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_pimarchives'),'undefined')){
pimarchivesData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_pimarchives') as any);
......@@ -1179,29 +1149,59 @@ export default class PIMPERSONServiceBase extends EntityService {
}
}
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 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;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/pimpeople/${context.pimperson}/save`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_trmtrianpeople',JSON.stringify(res.data.trmtrianpeople));
this.tempStorage.setItem(context.srfsessionkey+'_pimpatents',JSON.stringify(res.data.pimpatents));
this.tempStorage.setItem(context.srfsessionkey+'_pimachievements',JSON.stringify(res.data.pimachievements));
this.tempStorage.setItem(context.srfsessionkey+'_pimvacations',JSON.stringify(res.data.pimvacations));
this.tempStorage.setItem(context.srfsessionkey+'_pimpapers',JSON.stringify(res.data.pimpapers));
this.tempStorage.setItem(context.srfsessionkey+'_pimlanguageabilities',JSON.stringify(res.data.pimlanguageabilities));
this.tempStorage.setItem(context.srfsessionkey+'_pimrewardpunishments',JSON.stringify(res.data.pimrewardpunishments));
this.tempStorage.setItem(context.srfsessionkey+'_pimcontracts',JSON.stringify(res.data.pimcontracts));
this.tempStorage.setItem(context.srfsessionkey+'_pimresearchfindings',JSON.stringify(res.data.pimresearchfindings));
this.tempStorage.setItem(context.srfsessionkey+'_attendancemreportmxes',JSON.stringify(res.data.attendancemreportmxes));
this.tempStorage.setItem(context.srfsessionkey+'_pimeducations',JSON.stringify(res.data.pimeducations));
this.tempStorage.setItem(context.srfsessionkey+'_pimcontracts',JSON.stringify(res.data.pimcontracts));
this.tempStorage.setItem(context.srfsessionkey+'_pimtitles',JSON.stringify(res.data.pimtitles));
this.tempStorage.setItem(context.srfsessionkey+'_pimeducations',JSON.stringify(res.data.pimeducations));
this.tempStorage.setItem(context.srfsessionkey+'_pimvocationals',JSON.stringify(res.data.pimvocationals));
this.tempStorage.setItem(context.srfsessionkey+'_pimfaminfos',JSON.stringify(res.data.pimfaminfos));
this.tempStorage.setItem(context.srfsessionkey+'_pimworkhistories',JSON.stringify(res.data.pimworkhistories));
this.tempStorage.setItem(context.srfsessionkey+'_pimpersonabilities',JSON.stringify(res.data.pimpersonabilities));
this.tempStorage.setItem(context.srfsessionkey+'_pimvocationals',JSON.stringify(res.data.pimvocationals));
this.tempStorage.setItem(context.srfsessionkey+'_pimdistirbutions',JSON.stringify(res.data.pimdistirbutions));
this.tempStorage.setItem(context.srfsessionkey+'_pimpersonchanges',JSON.stringify(res.data.pimpersonchanges));
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+'_pimarchives',JSON.stringify(res.data.pimarchives));
this.tempStorage.setItem(context.srfsessionkey+'_trmtrianpeople',JSON.stringify(res.data.trmtrianpeople));
this.tempStorage.setItem(context.srfsessionkey+'_pimvacations',JSON.stringify(res.data.pimvacations));
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+'_trmtrianpeople',JSON.stringify(res.data.trmtrianpeople));
this.tempStorage.setItem(context.srfsessionkey+'_pimpatents',JSON.stringify(res.data.pimpatents));
this.tempStorage.setItem(context.srfsessionkey+'_pimachievements',JSON.stringify(res.data.pimachievements));
this.tempStorage.setItem(context.srfsessionkey+'_pimvacations',JSON.stringify(res.data.pimvacations));
this.tempStorage.setItem(context.srfsessionkey+'_pimpapers',JSON.stringify(res.data.pimpapers));
this.tempStorage.setItem(context.srfsessionkey+'_pimlanguageabilities',JSON.stringify(res.data.pimlanguageabilities));
this.tempStorage.setItem(context.srfsessionkey+'_pimrewardpunishments',JSON.stringify(res.data.pimrewardpunishments));
this.tempStorage.setItem(context.srfsessionkey+'_pimcontracts',JSON.stringify(res.data.pimcontracts));
this.tempStorage.setItem(context.srfsessionkey+'_pimresearchfindings',JSON.stringify(res.data.pimresearchfindings));
this.tempStorage.setItem(context.srfsessionkey+'_attendancemreportmxes',JSON.stringify(res.data.attendancemreportmxes));
this.tempStorage.setItem(context.srfsessionkey+'_pimeducations',JSON.stringify(res.data.pimeducations));
this.tempStorage.setItem(context.srfsessionkey+'_pimcontracts',JSON.stringify(res.data.pimcontracts));
this.tempStorage.setItem(context.srfsessionkey+'_pimtitles',JSON.stringify(res.data.pimtitles));
this.tempStorage.setItem(context.srfsessionkey+'_pimeducations',JSON.stringify(res.data.pimeducations));
this.tempStorage.setItem(context.srfsessionkey+'_pimvocationals',JSON.stringify(res.data.pimvocationals));
this.tempStorage.setItem(context.srfsessionkey+'_pimfaminfos',JSON.stringify(res.data.pimfaminfos));
this.tempStorage.setItem(context.srfsessionkey+'_pimworkhistories',JSON.stringify(res.data.pimworkhistories));
this.tempStorage.setItem(context.srfsessionkey+'_pimpersonabilities',JSON.stringify(res.data.pimpersonabilities));
this.tempStorage.setItem(context.srfsessionkey+'_pimvocationals',JSON.stringify(res.data.pimvocationals));
this.tempStorage.setItem(context.srfsessionkey+'_pimdistirbutions',JSON.stringify(res.data.pimdistirbutions));
this.tempStorage.setItem(context.srfsessionkey+'_pimpersonchanges',JSON.stringify(res.data.pimpersonchanges));
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+'_pimarchives',JSON.stringify(res.data.pimarchives));
this.tempStorage.setItem(context.srfsessionkey+'_trmtrianpeople',JSON.stringify(res.data.trmtrianpeople));
this.tempStorage.setItem(context.srfsessionkey+'_pimvacations',JSON.stringify(res.data.pimvacations));
return res;
}
......
......@@ -1046,10 +1046,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: false, type: 'string', message: '专业技术资格(职称) 值不能为空', trigger: 'blur' },
],
zjxtgznx: [
{ type: 'number', message: '中建系统工作年限 值必须为数值类型', trigger: 'change' },
{ type: 'number', message: '中建系统工作年限 值必须为数值类型', trigger: 'blur' },
{ required: false, type: 'number', message: '中建系统工作年限 值不能为空', trigger: 'change' },
{ required: false, type: 'number', message: '中建系统工作年限 值不能为空', trigger: 'blur' },
{ type: 'number', message: '建筑系统工作年限 值必须为数值类型', trigger: 'change' },
{ type: 'number', message: '建筑系统工作年限 值必须为数值类型', trigger: 'blur' },
{ required: false, type: 'number', message: '建筑系统工作年限 值不能为空', trigger: 'change' },
{ required: false, type: 'number', message: '建筑系统工作年限 值不能为空', trigger: 'blur' },
],
cjgzsj: [
{ type: 'string', message: '参加工作时间 值必须为字符串类型', trigger: 'change' },
......@@ -1058,10 +1058,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: false, type: 'string', message: '参加工作时间 值不能为空', trigger: 'blur' },
],
tozjdate: [
{ type: 'string', message: '中建系统工作时间 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '中建系统工作时间 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '中建系统工作时间 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '中建系统工作时间 值不能为空', trigger: 'blur' },
{ type: 'string', message: '建筑系统工作时间 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '建筑系统工作时间 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '建筑系统工作时间 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '建筑系统工作时间 值不能为空', trigger: 'blur' },
],
dbdwsj: [
{ type: 'string', message: '本单位工作时间 值必须为字符串类型', trigger: 'change' },
......@@ -1308,11 +1308,11 @@ export default class MainBase extends Vue implements ControlInterface {
,
careername: new FormItemModel({ caption: '专业技术资格(职称)', detailType: 'FORMITEM', name: 'careername', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
zjxtgznx: new FormItemModel({ caption: '中建系统工作年限', detailType: 'FORMITEM', name: 'zjxtgznx', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
zjxtgznx: new FormItemModel({ caption: '建筑系统工作年限', detailType: 'FORMITEM', name: 'zjxtgznx', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
cjgzsj: new FormItemModel({ caption: '参加工作时间', detailType: 'FORMITEM', name: 'cjgzsj', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
tozjdate: new FormItemModel({ caption: '中建系统工作时间', detailType: 'FORMITEM', name: 'tozjdate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
tozjdate: new FormItemModel({ caption: '建筑系统工作时间', detailType: 'FORMITEM', name: 'tozjdate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
dbdwsj: new FormItemModel({ caption: '本单位工作时间', detailType: 'FORMITEM', name: 'dbdwsj', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
......
......@@ -1303,14 +1303,14 @@ export default class MainBase extends Vue implements ControlInterface {
},
{
name: 'tozjdate',
label: '中建系统工作时间',
label: '建筑系统工作时间',
langtag: 'entities.pcmdetail.main_grid.columns.tozjdate',
show: true,
util: 'PX'
},
{
name: 'zjxtgznx',
label: '中建系统工作年限',
label: '建筑系统工作年限',
langtag: 'entities.pcmdetail.main_grid.columns.zjxtgznx',
show: true,
util: 'PX'
......
......@@ -1150,10 +1150,10 @@ export default class ReadRYInfoFormBase extends Vue implements ControlInterface
{ required: false, type: 'string', message: '入团时间 值不能为空', trigger: 'blur' },
],
tozjdate: [
{ type: 'string', message: '到中建系统时间 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '到中建系统时间 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '到中建系统时间 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '到中建系统时间 值不能为空', trigger: 'blur' },
{ type: 'string', message: '到建筑系统时间 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '到建筑系统时间 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '到建筑系统时间 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '到建筑系统时间 值不能为空', trigger: 'blur' },
],
dzjbjsj: [
{ type: 'string', message: '到局时间 值必须为字符串类型', trigger: 'change' },
......@@ -1374,7 +1374,7 @@ export default class ReadRYInfoFormBase extends Vue implements ControlInterface
,
rtsj: new FormItemModel({ caption: '入团时间', detailType: 'FORMITEM', name: 'rtsj', visible: false, isShowCaption: true, form: this, disabled: false, enableCond: 0 })
,
tozjdate: new FormItemModel({ caption: '到中建系统时间', detailType: 'FORMITEM', name: 'tozjdate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 })
tozjdate: new FormItemModel({ caption: '到建筑系统时间', detailType: 'FORMITEM', name: 'tozjdate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 })
,
dzjbjsj: new FormItemModel({ caption: '到局时间', detailType: 'FORMITEM', name: 'dzjbjsj', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 })
,
......
......@@ -1263,10 +1263,10 @@ export default class RYInfoFormBase extends Vue implements ControlInterface {
{ required: false, type: 'string', message: '参加工作时间 值不能为空', trigger: 'blur' },
],
tozjdate: [
{ type: 'string', message: '到中建系统时间 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '到中建系统时间 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '到中建系统时间 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '到中建系统时间 值不能为空', trigger: 'blur' },
{ type: 'string', message: '到建筑系统时间 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '到建筑系统时间 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '到建筑系统时间 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '到建筑系统时间 值不能为空', trigger: 'blur' },
],
dzjbjsj: [
{ type: 'string', message: '到局时间 值必须为字符串类型', trigger: 'change' },
......@@ -1511,7 +1511,7 @@ export default class RYInfoFormBase extends Vue implements ControlInterface {
,
cjgzsj: new FormItemModel({ caption: '参加工作时间', detailType: 'FORMITEM', name: 'cjgzsj', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
tozjdate: new FormItemModel({ caption: '到中建系统时间', detailType: 'FORMITEM', name: 'tozjdate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
tozjdate: new FormItemModel({ caption: '到建筑系统时间', detailType: 'FORMITEM', name: 'tozjdate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
dzjbjsj: new FormItemModel({ caption: '到局时间', detailType: 'FORMITEM', name: 'dzjbjsj', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
......
......@@ -38,11 +38,11 @@
git clone -b master $para2 ehr/
export NODE_OPTIONS=--max-old-space-size=4096
cd ehr/
mvn clean package -Pwebapi
cd ehr-provider/ehr-provider-webapi
mvn -Pwebapi docker:build
mvn -Pwebapi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ehr-provider-webapi.yaml iBizEE --with-registry-auth
mvn clean package -Pehrpim
cd ehr-app/ehr-app-ehrpim
mvn -Pehrpim docker:build
mvn -Pehrpim docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ehr-app-ehrpim.yaml iBizEE --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-app-ehr.jar
EXPOSE 8080
EXPOSE 6092
ADD ehr-app-ehr.jar /ehr-app-ehr.jar
......@@ -3,9 +3,23 @@ services:
ehr-app-ehr:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-app-ehr:latest
ports:
- "8080:8080"
- "6092:6092"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=6092
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-app-ehrapp.jar
EXPOSE 8080
EXPOSE 6092
ADD ehr-app-ehrapp.jar /ehr-app-ehrapp.jar
......@@ -3,9 +3,23 @@ services:
ehr-app-ehrapp:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-app-ehrapp:latest
ports:
- "8080:8080"
- "6092:6092"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=6092
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-app-ehrhelp.jar
EXPOSE 8080
EXPOSE 6092
ADD ehr-app-ehrhelp.jar /ehr-app-ehrhelp.jar
......@@ -3,9 +3,23 @@ services:
ehr-app-ehrhelp:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-app-ehrhelp:latest
ports:
- "8080:8080"
- "6092:6092"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=6092
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-app-ehrmob.jar
EXPOSE 8080
EXPOSE 6092
ADD ehr-app-ehrmob.jar /ehr-app-ehrmob.jar
......@@ -3,9 +3,23 @@ services:
ehr-app-ehrmob:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-app-ehrmob:latest
ports:
- "8080:8080"
- "6092:6092"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=6092
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-app-ehrorm.jar
EXPOSE 8080
EXPOSE 6092
ADD ehr-app-ehrorm.jar /ehr-app-ehrorm.jar
......@@ -3,9 +3,23 @@ services:
ehr-app-ehrorm:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-app-ehrorm:latest
ports:
- "8080:8080"
- "6092:6092"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=6092
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-app-ehrpcm.jar
EXPOSE 8080
EXPOSE 6092
ADD ehr-app-ehrpcm.jar /ehr-app-ehrpcm.jar
......@@ -3,9 +3,23 @@ services:
ehr-app-ehrpcm:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-app-ehrpcm:latest
ports:
- "8080:8080"
- "6092:6092"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=6092
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-app-ehrpcm2.jar
EXPOSE 8080
EXPOSE 6092
ADD ehr-app-ehrpcm2.jar /ehr-app-ehrpcm2.jar
......@@ -3,9 +3,23 @@ services:
ehr-app-ehrpcm2:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-app-ehrpcm2:latest
ports:
- "8080:8080"
- "6092:6092"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=6092
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-app-ehrpim.jar
EXPOSE 8080
EXPOSE 6092
ADD ehr-app-ehrpim.jar /ehr-app-ehrpim.jar
......@@ -3,9 +3,23 @@ services:
ehr-app-ehrpim:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-app-ehrpim:latest
ports:
- "8080:8080"
- "6092:6092"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=6092
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-app-ehrweb.jar
EXPOSE 8080
EXPOSE 6092
ADD ehr-app-ehrweb.jar /ehr-app-ehrweb.jar
......@@ -3,9 +3,23 @@ services:
ehr-app-ehrweb:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-app-ehrweb:latest
ports:
- "8080:8080"
- "6092:6092"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=6092
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-app-web.jar
EXPOSE 8080
EXPOSE 6092
ADD ehr-app-web.jar /ehr-app-web.jar
......@@ -3,9 +3,23 @@ services:
ehr-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-app-web:latest
ports:
- "8080:8080"
- "6092:6092"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=6092
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-provider-parttimeperson.jar
EXPOSE 5080
EXPOSE 8081
ADD ehr-provider-parttimeperson.jar /ehr-provider-parttimeperson.jar
......@@ -3,23 +3,9 @@ services:
ehr-provider-parttimeperson:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-provider-parttimeperson:latest
ports:
- "5080:5080"
- "8081:8081"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=5080
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-provider-saasadmin.jar
EXPOSE 5080
EXPOSE 8081
ADD ehr-provider-saasadmin.jar /ehr-provider-saasadmin.jar
......@@ -3,23 +3,9 @@ services:
ehr-provider-saasadmin:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-provider-saasadmin:latest
ports:
- "5080:5080"
- "8081:8081"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=5080
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-provider-specialrole.jar
EXPOSE 5080
EXPOSE 8081
ADD ehr-provider-specialrole.jar /ehr-provider-specialrole.jar
......@@ -3,23 +3,9 @@ services:
ehr-provider-specialrole:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-provider-specialrole:latest
ports:
- "5080:5080"
- "8081:8081"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=5080
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-provider-webapi.jar
EXPOSE 5080
EXPOSE 8081
ADD ehr-provider-webapi.jar /ehr-provider-webapi.jar
......@@ -3,23 +3,9 @@ services:
ehr-provider-webapi:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-provider-webapi:latest
ports:
- "5080:5080"
- "8081:8081"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=5080
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ehr-provider-wfcallback.jar
EXPOSE 5080
EXPOSE 8081
ADD ehr-provider-wfcallback.jar /ehr-provider-wfcallback.jar
......@@ -3,23 +3,9 @@ services:
ehr-provider-wfcallback:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ehr-provider-wfcallback:latest
ports:
- "5080:5080"
- "8081:8081"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=5080
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=BPMEHR
- SPRING_DATASOURCE_PASSWORD=sys
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@172.16.170.71:1521:localorcl
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=oracle.jdbc.driver.OracleDriver
- SPRING_DATASOURCE_DEFAULTSCHEMA=BPMEHR
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
mode: replicated
replicas: 1
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册