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

jackwang 部署微服务应用

上级 1347fed7
......@@ -561,7 +561,12 @@ export class HRContractGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrcontracts', parameterName: 'hrcontract' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HRContractGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrcontracts', parameterName: 'hrcontract' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -562,9 +562,9 @@ export class HRDistributionGridViewBase extends GridViewBase {
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
......@@ -613,9 +613,9 @@ export class HRDistributionGridViewBase extends GridViewBase {
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
......
......@@ -214,9 +214,9 @@ export class HRDistributionV_001Base extends GridView9Base {
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
......@@ -253,9 +253,9 @@ export class HRDistributionV_001Base extends GridView9Base {
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
......
......@@ -561,7 +561,12 @@ export class HREducationGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hreducations', parameterName: 'hreducation' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HREducationGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hreducations', parameterName: 'hreducation' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -561,7 +561,12 @@ export class HRResearchGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrresearches', parameterName: 'hrresearch' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HRResearchGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrresearches', parameterName: 'hrresearch' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -561,7 +561,12 @@ export class HRRewardGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrrewards', parameterName: 'hrreward' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HRRewardGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrrewards', parameterName: 'hrreward' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -561,7 +561,12 @@ export class HRTechnicalTitleGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrtechnicaltitles', parameterName: 'hrtechnicaltitle' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HRTechnicalTitleGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrtechnicaltitles', parameterName: 'hrtechnicaltitle' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -561,7 +561,12 @@ export class HRTrainingRecordGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrtrainingrecords', parameterName: 'hrtrainingrecord' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HRTrainingRecordGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrtrainingrecords', parameterName: 'hrtrainingrecord' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -561,7 +561,12 @@ export class HRWorkRecordGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrworkrecords', parameterName: 'hrworkrecord' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HRWorkRecordGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hremployee && true){
deResParameters = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
]
}
const parameters: any[] = [
{ pathName: 'hrworkrecords', parameterName: 'hrworkrecord' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -48,6 +48,11 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrcontract){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrcontracts/${context.hrcontract}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrcontracts/${context.hrcontract}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrcontracts`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrcontract){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrcontracts/${context.hrcontract}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrcontracts/${context.hrcontract}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrcontract){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrcontracts/${context.hrcontract}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrcontracts/${context.hrcontract}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrcontract){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrcontracts/${context.hrcontract}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrcontracts/${context.hrcontract}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrcontracts/getdraft`,isloading);
res.data.hrcontract = data.hrcontract;
return res;
}
let res:any = await Http.getInstance().get(`/hrcontracts/getdraft`,isloading);
res.data.hrcontract = data.hrcontract;
......@@ -149,6 +190,13 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrcontract){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrcontracts/${context.hrcontract}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrcontracts/${context.hrcontract}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrcontract){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrcontracts/${context.hrcontract}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrcontracts/${context.hrcontract}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRContractServiceBase extends EntityService {
* @memberof HRContractServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrcontracts/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrcontracts/fetchdefault`,tempData,isloading);
return res;
......
......@@ -53,6 +53,11 @@ export default class HRDistributionServiceBase extends EntityService {
return res;
}
if(context.hremployee && context.hrdistribution){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrdistributions/${context.hrdistribution}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrdistributions/${context.hrdistribution}/select`,isloading);
return res;
......@@ -82,6 +87,20 @@ export default class HRDistributionServiceBase extends EntityService {
return res;
}
if(context.hremployee && true){
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrdistributions`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -113,6 +132,13 @@ export default class HRDistributionServiceBase extends EntityService {
return res;
}
if(context.hremployee && context.hrdistribution){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrdistributions/${context.hrdistribution}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrdistributions/${context.hrdistribution}`,data,isloading);
......@@ -133,6 +159,10 @@ export default class HRDistributionServiceBase extends EntityService {
if(context.hrpost && context.hrdistribution){
let res:any = Http.getInstance().delete(`/hrposts/${context.hrpost}/hrdistributions/${context.hrdistribution}`,isloading);
return res;
}
if(context.hremployee && context.hrdistribution){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrdistributions/${context.hrdistribution}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrdistributions/${context.hrdistribution}`,isloading);
return res;
......@@ -153,6 +183,11 @@ export default class HRDistributionServiceBase extends EntityService {
return res;
}
if(context.hremployee && context.hrdistribution){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrdistributions/${context.hrdistribution}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrdistributions/${context.hrdistribution}`,isloading);
return res;
......@@ -174,6 +209,12 @@ export default class HRDistributionServiceBase extends EntityService {
return res;
}
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrdistributions/getdraft`,isloading);
res.data.hrdistribution = data.hrdistribution;
return res;
}
let res:any = await Http.getInstance().get(`/hrdistributions/getdraft`,isloading);
res.data.hrdistribution = data.hrdistribution;
......@@ -197,6 +238,13 @@ export default class HRDistributionServiceBase extends EntityService {
return res;
}
if(context.hremployee && context.hrdistribution){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrdistributions/${context.hrdistribution}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrdistributions/${context.hrdistribution}/checkkey`,data,isloading);
return res;
}
......@@ -218,6 +266,13 @@ export default class HRDistributionServiceBase extends EntityService {
return res;
}
if(context.hremployee && context.hrdistribution){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrdistributions/${context.hrdistribution}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrdistributions/${context.hrdistribution}/save`,data,isloading);
......@@ -240,6 +295,11 @@ export default class HRDistributionServiceBase extends EntityService {
let res:any = Http.getInstance().get(`/hrposts/${context.hrpost}/hrdistributions/fetchdefault`,tempData,isloading);
return res;
}
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrdistributions/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrdistributions/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hreducation){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hreducations/${context.hreducation}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hreducations/${context.hreducation}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hreducations`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hreducation){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hreducations/${context.hreducation}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hreducations/${context.hreducation}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hreducation){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hreducations/${context.hreducation}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hreducations/${context.hreducation}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hreducation){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hreducations/${context.hreducation}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hreducations/${context.hreducation}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hreducations/getdraft`,isloading);
res.data.hreducation = data.hreducation;
return res;
}
let res:any = await Http.getInstance().get(`/hreducations/getdraft`,isloading);
res.data.hreducation = data.hreducation;
......@@ -149,6 +190,13 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hreducation){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hreducations/${context.hreducation}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hreducations/${context.hreducation}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hreducation){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hreducations/${context.hreducation}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hreducations/${context.hreducation}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HREducationServiceBase extends EntityService {
* @memberof HREducationServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hreducations/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hreducations/fetchdefault`,tempData,isloading);
return res;
......
......@@ -75,8 +75,18 @@ export default class HREmployeeServiceBase extends EntityService {
let res:any = await Http.getInstance().post(`/hremployees`,data,isloading);
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrarchives',JSON.stringify(res.data.hrarchives?res.data.hrarchives:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrcertificates',JSON.stringify(res.data.hrcertificates?res.data.hrcertificates:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrcontracts',JSON.stringify(res.data.hrcontracts?res.data.hrcontracts:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrdistributions',JSON.stringify(res.data.hrdistributions?res.data.hrdistributions:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hreducations',JSON.stringify(res.data.hreducations?res.data.hreducations:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrfamilies',JSON.stringify(res.data.hrfamilies?res.data.hrfamilies:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrlanguageabilities',JSON.stringify(res.data.hrlanguageabilities?res.data.hrlanguageabilities:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrpapers',JSON.stringify(res.data.hrpapers?res.data.hrpapers:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrpatents',JSON.stringify(res.data.hrpatents?res.data.hrpatents:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrresearches',JSON.stringify(res.data.hrresearches?res.data.hrresearches:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrrewards',JSON.stringify(res.data.hrrewards?res.data.hrrewards:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrtechnicaltitles',JSON.stringify(res.data.hrtechnicaltitles?res.data.hrtechnicaltitles:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrtrainingrecords',JSON.stringify(res.data.hrtrainingrecords?res.data.hrtrainingrecords:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrworkrecords',JSON.stringify(res.data.hrworkrecords?res.data.hrworkrecords:[]));
return res;
}
......
......@@ -48,6 +48,11 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpaper){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrpapers/${context.hrpaper}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrpapers/${context.hrpaper}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrpapers`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpaper){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrpapers/${context.hrpaper}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrpapers/${context.hrpaper}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpaper){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrpapers/${context.hrpaper}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrpapers/${context.hrpaper}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpaper){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrpapers/${context.hrpaper}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrpapers/${context.hrpaper}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrpapers/getdraft`,isloading);
res.data.hrpaper = data.hrpaper;
return res;
}
let res:any = await Http.getInstance().get(`/hrpapers/getdraft`,isloading);
res.data.hrpaper = data.hrpaper;
......@@ -149,6 +190,13 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpaper){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrpapers/${context.hrpaper}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrpapers/${context.hrpaper}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpaper){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrpapers/${context.hrpaper}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrpapers/${context.hrpaper}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRPaperServiceBase extends EntityService {
* @memberof HRPaperServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrpapers/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrpapers/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpatent){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrpatents/${context.hrpatent}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrpatents/${context.hrpatent}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrpatents`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpatent){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrpatents/${context.hrpatent}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrpatents/${context.hrpatent}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpatent){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrpatents/${context.hrpatent}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrpatents/${context.hrpatent}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpatent){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrpatents/${context.hrpatent}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrpatents/${context.hrpatent}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrpatents/getdraft`,isloading);
res.data.hrpatent = data.hrpatent;
return res;
}
let res:any = await Http.getInstance().get(`/hrpatents/getdraft`,isloading);
res.data.hrpatent = data.hrpatent;
......@@ -149,6 +190,13 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpatent){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrpatents/${context.hrpatent}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrpatents/${context.hrpatent}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrpatent){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrpatents/${context.hrpatent}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrpatents/${context.hrpatent}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRPatentServiceBase extends EntityService {
* @memberof HRPatentServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrpatents/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrpatents/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrresearch){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrresearches/${context.hrresearch}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrresearches/${context.hrresearch}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrresearches`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrresearch){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrresearches/${context.hrresearch}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrresearches/${context.hrresearch}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrresearch){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrresearches/${context.hrresearch}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrresearches/${context.hrresearch}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrresearch){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrresearches/${context.hrresearch}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrresearches/${context.hrresearch}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrresearches/getdraft`,isloading);
res.data.hrresearch = data.hrresearch;
return res;
}
let res:any = await Http.getInstance().get(`/hrresearches/getdraft`,isloading);
res.data.hrresearch = data.hrresearch;
......@@ -149,6 +190,13 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrresearch){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrresearches/${context.hrresearch}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrresearches/${context.hrresearch}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrresearch){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrresearches/${context.hrresearch}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrresearches/${context.hrresearch}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRResearchServiceBase extends EntityService {
* @memberof HRResearchServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrresearches/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrresearches/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrreward){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrrewards/${context.hrreward}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrrewards/${context.hrreward}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrrewards`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrreward){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrrewards/${context.hrreward}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrrewards/${context.hrreward}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrreward){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrrewards/${context.hrreward}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrrewards/${context.hrreward}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrreward){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrrewards/${context.hrreward}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrrewards/${context.hrreward}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrrewards/getdraft`,isloading);
res.data.hrreward = data.hrreward;
return res;
}
let res:any = await Http.getInstance().get(`/hrrewards/getdraft`,isloading);
res.data.hrreward = data.hrreward;
......@@ -149,6 +190,13 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrreward){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrrewards/${context.hrreward}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrrewards/${context.hrreward}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrreward){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrrewards/${context.hrreward}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrrewards/${context.hrreward}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRRewardServiceBase extends EntityService {
* @memberof HRRewardServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrrewards/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrrewards/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtechnicaltitle){
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrtechnicaltitles/${context.hrtechnicaltitle}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrtechnicaltitles/${context.hrtechnicaltitle}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrtechnicaltitles`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtechnicaltitle){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hremployees/${context.hremployee}/hrtechnicaltitles/${context.hrtechnicaltitle}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrtechnicaltitles/${context.hrtechnicaltitle}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtechnicaltitle){
let res:any = Http.getInstance().delete(`/hremployees/${context.hremployee}/hrtechnicaltitles/${context.hrtechnicaltitle}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrtechnicaltitles/${context.hrtechnicaltitle}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtechnicaltitle){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrtechnicaltitles/${context.hrtechnicaltitle}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrtechnicaltitles/${context.hrtechnicaltitle}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let res:any = await Http.getInstance().get(`/hremployees/${context.hremployee}/hrtechnicaltitles/getdraft`,isloading);
res.data.hrtechnicaltitle = data.hrtechnicaltitle;
return res;
}
let res:any = await Http.getInstance().get(`/hrtechnicaltitles/getdraft`,isloading);
res.data.hrtechnicaltitle = data.hrtechnicaltitle;
......@@ -149,6 +190,13 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtechnicaltitle){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrtechnicaltitles/${context.hrtechnicaltitle}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrtechnicaltitles/${context.hrtechnicaltitle}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && context.hrtechnicaltitle){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hremployees/${context.hremployee}/hrtechnicaltitles/${context.hrtechnicaltitle}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrtechnicaltitles/${context.hrtechnicaltitle}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRTechnicalTitleServiceBase extends EntityService {
* @memberof HRTechnicalTitleServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hremployee && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hremployees/${context.hremployee}/hrtechnicaltitles/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrtechnicaltitles/fetchdefault`,tempData,isloading);
return res;
......
......@@ -199,7 +199,7 @@ export class TreeExpViewtreeexpbarTreeExpBarBase extends MainControlBase {
if (Object.is(expmode, 'TR09')) {
return {
viewname: 'hrtechnical-title-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRTECHNICALTITLE_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrtechnicaltitle'
};
}
......@@ -213,77 +213,77 @@ export class TreeExpViewtreeexpbarTreeExpBarBase extends MainControlBase {
if (Object.is(expmode, 'TR10')) {
return {
viewname: 'hrcontract-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRCONTRACT_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrcontract'
};
}
if (Object.is(expmode, 'TR12')) {
return {
viewname: 'hrreward-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRREWARD_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrreward'
};
}
if (Object.is(expmode, 'TR07')) {
return {
viewname: 'hrarchives-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRARCHIVES_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrarchives'
};
}
if (Object.is(expmode, 'TR11')) {
return {
viewname: 'hrcertificate-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRCERTIFICATE_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrcertificate'
};
}
if (Object.is(expmode, 'TR06')) {
return {
viewname: 'hrwork-record-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRWORKRECORD_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrworkrecord'
};
}
if (Object.is(expmode, 'TR14')) {
return {
viewname: 'hrresearch-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRRESEARCH_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrresearch'
};
}
if (Object.is(expmode, 'TR05')) {
return {
viewname: 'hrfamily-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRFAMILY_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrfamily'
};
}
if (Object.is(expmode, 'TR13')) {
return {
viewname: 'hrtraining-record-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRTRAININGRECORD_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrtrainingrecord'
};
}
if (Object.is(expmode, 'TR04')) {
return {
viewname: 'hrlanguage-ability-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRLANGUAGEABILITY_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrlanguageability'
};
}
if (Object.is(expmode, 'TR03')) {
return {
viewname: 'hreducation-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HREDUCATION_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hreducation'
};
}
if (Object.is(expmode, 'TR01')) {
return {
viewname: 'hrdistribution-grid-view',
parentdata: {},
parentdata: {"srfparentdefname":"HREMPLOYEEID","srfparentdename":"HREMPLOYEE","srfparentmode":"DER1N_HRDISTRIBUTION_HREMPLOYEE_HREMPLOYEEID_327A4D"},
deKeyField:'hrdistribution'
};
}
......
......@@ -138,7 +138,7 @@ tag='YesNo' codelistType='STATIC' :data="data" :context="context" :viewparams="v
paramItem='hrpost'
:parentdata='{"srfparentdefname":"HRPOSTID","srfparentdename":"HRPOST","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_HRDISTRIBUTION_HRPOST_HRPOSTID","SRFDER1NID":"DER1N_HRDISTRIBUTION_HRPOST_HRPOSTID"}'
:parameters="[
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
]"
:context="context"
:viewparams="viewparams"
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册