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

Miracle 发布系统代码

上级 fe95817f
......@@ -309,6 +309,16 @@
"viewtag": "28aca0d4ad43b8ef609172d9be9359c7",
"memo": "系统自动添加"
},
"hrarchivesborrowv_002": {
"title": "档案借阅",
"caption": "档案借阅",
"viewtype": "DEGRIDVIEW9",
"viewmodule": "HumanResource",
"viewname": "HRArchivesBorrowV_002",
"viewfilename": "hrarchives-borrow-v-002",
"viewtag": "296fd870f472f231791563de41119283",
"memo": ""
},
"hrorgaddressgridview": {
"title": "组织地址表格视图",
"caption": "组织地址",
......@@ -489,6 +499,16 @@
"viewtag": "4f567c340cbb4271d44543b278d29d0f",
"memo": ""
},
"hrarchivesborrowv_001": {
"title": "档案借阅",
"caption": "档案借阅",
"viewtype": "DEOPTVIEW",
"viewmodule": "HumanResource",
"viewname": "HRArchivesBorrowV_001",
"viewfilename": "hrarchives-borrow-v-001",
"viewtag": "4ff919a1d1c42560df859b49cf8a1542",
"memo": ""
},
"hrdutydashboardview": {
"title": "职务看板",
"caption": "职务看板",
......@@ -1529,6 +1549,16 @@
"viewtag": "f03c9544f1a1107bb34a97542dde1a3e",
"memo": ""
},
"hrarchivesborrowgridview": {
"title": "档案借阅表格视图",
"caption": "档案借阅",
"viewtype": "DEGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HRArchivesBorrowGridView",
"viewfilename": "hrarchives-borrow-grid-view",
"viewtag": "f31e79001d0aafc5a665b5dfeb4eea80",
"memo": ""
},
"hrlegaltabexpview": {
"title": "法人信息",
"caption": "法人信息",
......
......@@ -39,10 +39,12 @@ export class AuthServiceRegister {
* @memberof AuthServiceRegister
*/
protected init(): void {
this.allAuthService.set('hroperationunit', () => import('@/authservice/hroperation-unit/hroperation-unit-auth-service'));
this.allAuthService.set('hrarchivesmove', () => import('@/authservice/hrarchives-move/hrarchives-move-auth-service'));
this.allAuthService.set('hroperationunit', () => import('@/authservice/hroperation-unit/hroperation-unit-auth-service'));
this.allAuthService.set('hrfamily', () => import('@/authservice/hrfamily/hrfamily-auth-service'));
this.allAuthService.set('hrreward', () => import('@/authservice/hrreward/hrreward-auth-service'));
this.allAuthService.set('hromhierarchypurposeref', () => import('@/authservice/hromhierarchy-purpose-ref/hromhierarchy-purpose-ref-auth-service'));
this.allAuthService.set('hrarchivesborrow', () => import('@/authservice/hrarchives-borrow/hrarchives-borrow-auth-service'));
this.allAuthService.set('hromhierarchycat', () => import('@/authservice/hromhierarchy-cat/hromhierarchy-cat-auth-service'));
this.allAuthService.set('hrcertificate', () => import('@/authservice/hrcertificate/hrcertificate-auth-service'));
this.allAuthService.set('hrorgcontact', () => import('@/authservice/hrorg-contact/hrorg-contact-auth-service'));
......
import AuthService from '../auth-service';
/**
* 档案借阅权限服务对象基类
*
* @export
* @class HRArchivesBorrowAuthServiceBase
* @extends {AuthService}
*/
export default class HRArchivesBorrowAuthServiceBase extends AuthService {
/**
* Creates an instance of HRArchivesBorrowAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof HRArchivesBorrowAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof HRArchivesBorrowAuthServiceBase
*/
public getOPPrivs(mainSateOPPrivs:any):any{
let curDefaultOPPrivs:any = JSON.parse(JSON.stringify(this.defaultOPPrivs));
if(mainSateOPPrivs){
Object.assign(curDefaultOPPrivs,mainSateOPPrivs);
}
return curDefaultOPPrivs;
}
}
\ No newline at end of file
import HRArchivesBorrowAuthServiceBase from './hrarchives-borrow-auth-service-base';
/**
* 档案借阅权限服务对象
*
* @export
* @class HRArchivesBorrowAuthService
* @extends {HRArchivesBorrowAuthServiceBase}
*/
export default class HRArchivesBorrowAuthService extends HRArchivesBorrowAuthServiceBase {
/**
* Creates an instance of HRArchivesBorrowAuthService.
*
* @param {*} [opts={}]
* @memberof HRArchivesBorrowAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 档案调档权限服务对象基类
*
* @export
* @class HRArchivesMoveAuthServiceBase
* @extends {AuthService}
*/
export default class HRArchivesMoveAuthServiceBase extends AuthService {
/**
* Creates an instance of HRArchivesMoveAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof HRArchivesMoveAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof HRArchivesMoveAuthServiceBase
*/
public getOPPrivs(mainSateOPPrivs:any):any{
let curDefaultOPPrivs:any = JSON.parse(JSON.stringify(this.defaultOPPrivs));
if(mainSateOPPrivs){
Object.assign(curDefaultOPPrivs,mainSateOPPrivs);
}
return curDefaultOPPrivs;
}
}
\ No newline at end of file
import HRArchivesMoveAuthServiceBase from './hrarchives-move-auth-service-base';
/**
* 档案调档权限服务对象
*
* @export
* @class HRArchivesMoveAuthService
* @extends {HRArchivesMoveAuthServiceBase}
*/
export default class HRArchivesMoveAuthService extends HRArchivesMoveAuthServiceBase {
/**
* Creates an instance of HRArchivesMoveAuthService.
*
* @param {*} [opts={}]
* @memberof HRArchivesMoveAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
/**
* 档案借阅
*
* @export
* @interface HRArchivesBorrow
*/
export interface HRArchivesBorrow {
/**
* 建立人
*
* @returns {*}
* @memberof HRArchivesBorrow
*/
createman?: any;
/**
* 建立时间
*
* @returns {*}
* @memberof HRArchivesBorrow
*/
createdate?: any;
/**
* 档案借阅标识
*
* @returns {*}
* @memberof HRArchivesBorrow
*/
hrarchivesborrowid?: any;
/**
* 档案借阅名称
*
* @returns {*}
* @memberof HRArchivesBorrow
*/
hrarchivesborrowname?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof HRArchivesBorrow
*/
updatedate?: any;
/**
* 更新人
*
* @returns {*}
* @memberof HRArchivesBorrow
*/
updateman?: any;
/**
* 档案信息标识
*
* @returns {*}
* @memberof HRArchivesBorrow
*/
hrarchivesid?: any;
/**
* 借阅状态
*
* @returns {*}
* @memberof HRArchivesBorrow
*/
borrowstate?: any;
/**
* 借阅人
*
* @returns {*}
* @memberof HRArchivesBorrow
*/
borrowman?: any;
/**
* 借阅时间
*
* @returns {*}
* @memberof HRArchivesBorrow
*/
begintime?: any;
/**
* 归还时间
*
* @returns {*}
* @memberof HRArchivesBorrow
*/
endtime?: any;
/**
* 审批同意人
*
* @returns {*}
* @memberof HRArchivesBorrow
*/
checkman?: any;
/**
* 审批时间
*
* @returns {*}
* @memberof HRArchivesBorrow
*/
checktime?: any;
/**
* 借阅原因
*
* @returns {*}
* @memberof HRArchivesBorrow
*/
borrowreason?: any;
}
\ No newline at end of file
/**
* 档案调档
*
* @export
* @interface HRArchivesMove
*/
export interface HRArchivesMove {
/**
* 档案调档标识
*
* @returns {*}
* @memberof HRArchivesMove
*/
hrarchivesmoveid?: any;
/**
* 档案调档名称
*
* @returns {*}
* @memberof HRArchivesMove
*/
hrarchivesmovename?: any;
/**
* 更新人
*
* @returns {*}
* @memberof HRArchivesMove
*/
updateman?: any;
/**
* 建立人
*
* @returns {*}
* @memberof HRArchivesMove
*/
createman?: any;
/**
* 建立时间
*
* @returns {*}
* @memberof HRArchivesMove
*/
createdate?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof HRArchivesMove
*/
updatedate?: any;
/**
* 档案信息标识
*
* @returns {*}
* @memberof HRArchivesMove
*/
hrarchivesid?: any;
/**
* 调档类型
*
* @returns {*}
* @memberof HRArchivesMove
*/
movetype?: any;
/**
* 调入单位
*
* @returns {*}
* @memberof HRArchivesMove
*/
moveinorg?: any;
/**
* 调出单位
*
* @returns {*}
* @memberof HRArchivesMove
*/
moveoutorg?: any;
/**
* 调档时间
*
* @returns {*}
* @memberof HRArchivesMove
*/
activetime?: any;
/**
* 备注
*
* @returns {*}
* @memberof HRArchivesMove
*/
memo?: any;
}
\ No newline at end of file
import hrarchivesmove_en_US from '@locale/lanres/entities/hrarchives-move/hrarchives-move_en_US';
import hroperationunit_en_US from '@locale/lanres/entities/hroperation-unit/hroperation-unit_en_US';
import hrfamily_en_US from '@locale/lanres/entities/hrfamily/hrfamily_en_US';
import hrreward_en_US from '@locale/lanres/entities/hrreward/hrreward_en_US';
import hromhierarchypurposeref_en_US from '@locale/lanres/entities/hromhierarchy-purpose-ref/hromhierarchy-purpose-ref_en_US';
import hrarchivesborrow_en_US from '@locale/lanres/entities/hrarchives-borrow/hrarchives-borrow_en_US';
import hromhierarchycat_en_US from '@locale/lanres/entities/hromhierarchy-cat/hromhierarchy-cat_en_US';
import hrcertificate_en_US from '@locale/lanres/entities/hrcertificate/hrcertificate_en_US';
import hrorgcontact_en_US from '@locale/lanres/entities/hrorg-contact/hrorg-contact_en_US';
......@@ -277,10 +279,12 @@ export default {
}
},
entities: {
hrarchivesmove: hrarchivesmove_en_US,
hroperationunit: hroperationunit_en_US,
hrfamily: hrfamily_en_US,
hrreward: hrreward_en_US,
hromhierarchypurposeref: hromhierarchypurposeref_en_US,
hrarchivesborrow: hrarchivesborrow_en_US,
hromhierarchycat: hromhierarchycat_en_US,
hrcertificate: hrcertificate_en_US,
hrorgcontact: hrorgcontact_en_US,
......
import hrarchivesmove_zh_CN from '@locale/lanres/entities/hrarchives-move/hrarchives-move_zh_CN';
import hroperationunit_zh_CN from '@locale/lanres/entities/hroperation-unit/hroperation-unit_zh_CN';
import hrfamily_zh_CN from '@locale/lanres/entities/hrfamily/hrfamily_zh_CN';
import hrreward_zh_CN from '@locale/lanres/entities/hrreward/hrreward_zh_CN';
import hromhierarchypurposeref_zh_CN from '@locale/lanres/entities/hromhierarchy-purpose-ref/hromhierarchy-purpose-ref_zh_CN';
import hrarchivesborrow_zh_CN from '@locale/lanres/entities/hrarchives-borrow/hrarchives-borrow_zh_CN';
import hromhierarchycat_zh_CN from '@locale/lanres/entities/hromhierarchy-cat/hromhierarchy-cat_zh_CN';
import hrcertificate_zh_CN from '@locale/lanres/entities/hrcertificate/hrcertificate_zh_CN';
import hrorgcontact_zh_CN from '@locale/lanres/entities/hrorg-contact/hrorg-contact_zh_CN';
......@@ -276,10 +278,12 @@ export default {
}
},
entities: {
hrarchivesmove: hrarchivesmove_zh_CN,
hroperationunit: hroperationunit_zh_CN,
hrfamily: hrfamily_zh_CN,
hrreward: hrreward_zh_CN,
hromhierarchypurposeref: hromhierarchypurposeref_zh_CN,
hrarchivesborrow: hrarchivesborrow_zh_CN,
hromhierarchycat: hromhierarchycat_zh_CN,
hrcertificate: hrcertificate_zh_CN,
hrorgcontact: hrorgcontact_zh_CN,
......
export default {
fields: {
createman: "建立人",
createdate: "建立时间",
hrarchivesborrowid: "档案借阅标识",
hrarchivesborrowname: "档案借阅名称",
updatedate: "更新时间",
updateman: "更新人",
hrarchivesid: "档案信息标识",
borrowstate: "借阅状态",
borrowman: "借阅人",
begintime: "借阅时间",
endtime: "归还时间",
checkman: "审批同意人",
checktime: "审批时间",
borrowreason: "借阅原因",
},
views: {
v_002: {
caption: "档案借阅",
title: "档案借阅",
},
v_001: {
caption: "档案借阅",
title: "档案借阅",
},
gridview: {
caption: "档案借阅",
title: "档案借阅表格视图",
},
},
main_form: {
details: {
group1: "档案借阅基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "档案借阅标识",
srfmajortext: "档案借阅名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
borrowman: "借阅人",
begintime: "借阅时间",
endtime: "归还时间",
checkman: "审批同意人",
checktime: "审批时间",
borrowreason: "借阅原因",
borrowstate: "借阅状态",
hrarchivesborrowid: "档案借阅标识",
},
uiactions: {
},
},
main_grid: {
columns: {
borrowman: "借阅人",
begintime: "借阅时间",
endtime: "归还时间",
checkman: "审批同意人",
checktime: "审批时间",
borrowreason: "借阅原因",
borrowstate: "借阅状态",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
};
\ No newline at end of file
export default {
fields: {
createman: "建立人",
createdate: "建立时间",
hrarchivesborrowid: "档案借阅标识",
hrarchivesborrowname: "档案借阅名称",
updatedate: "更新时间",
updateman: "更新人",
hrarchivesid: "档案信息标识",
borrowstate: "借阅状态",
borrowman: "借阅人",
begintime: "借阅时间",
endtime: "归还时间",
checkman: "审批同意人",
checktime: "审批时间",
borrowreason: "借阅原因",
},
views: {
v_002: {
caption: "档案借阅",
title: "档案借阅",
},
v_001: {
caption: "档案借阅",
title: "档案借阅",
},
gridview: {
caption: "档案借阅",
title: "档案借阅表格视图",
},
},
main_form: {
details: {
group1: "档案借阅基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "档案借阅标识",
srfmajortext: "档案借阅名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
borrowman: "借阅人",
begintime: "借阅时间",
endtime: "归还时间",
checkman: "审批同意人",
checktime: "审批时间",
borrowreason: "借阅原因",
borrowstate: "借阅状态",
hrarchivesborrowid: "档案借阅标识",
},
uiactions: {
},
},
main_grid: {
columns: {
borrowman: "借阅人",
begintime: "借阅时间",
endtime: "归还时间",
checkman: "审批同意人",
checktime: "审批时间",
borrowreason: "借阅原因",
borrowstate: "借阅状态",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
};
\ No newline at end of file
export default {
fields: {
hrarchivesmoveid: "档案调档标识",
hrarchivesmovename: "档案调档名称",
updateman: "更新人",
createman: "建立人",
createdate: "建立时间",
updatedate: "更新时间",
hrarchivesid: "档案信息标识",
movetype: "调档类型",
moveinorg: "调入单位",
moveoutorg: "调出单位",
activetime: "调档时间",
memo: "备注",
},
};
\ No newline at end of file
export default {
fields: {
hrarchivesmoveid: "档案调档标识",
hrarchivesmovename: "档案调档名称",
updateman: "更新人",
createman: "建立人",
createdate: "建立时间",
updatedate: "更新时间",
hrarchivesid: "档案信息标识",
movetype: "调档类型",
moveinorg: "调入单位",
moveoutorg: "调出单位",
activetime: "调档时间",
memo: "备注",
},
};
\ No newline at end of file
......@@ -7,10 +7,12 @@ import './login/login';
import './upload/upload';
// 实体级接口对象
import './entity/hrarchives-moves/hrarchives-moves';
import './entity/hroperation-units/hroperation-units';
import './entity/hrfamilys/hrfamilys';
import './entity/hrrewards/hrrewards';
import './entity/hromhierarchy-purpose-refs/hromhierarchy-purpose-refs';
import './entity/hrarchives-borrows/hrarchives-borrows';
import './entity/hromhierarchy-cats/hromhierarchy-cats';
import './entity/hrcertificates/hrcertificates';
import './entity/hrorg-contacts/hrorg-contacts';
......
......@@ -255,6 +255,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HROperationUnitEditView",
"viewtag": "28aca0d4ad43b8ef609172d9be9359c7"
},
"hrarchivesborrowv_002": {
"title": "档案借阅",
"caption": "档案借阅",
"viewtype": "DEGRIDVIEW9",
"viewmodule": "HumanResource",
"viewname": "HRArchivesBorrowV_002",
"viewtag": "296fd870f472f231791563de41119283"
},
"hrorgaddressgridview": {
"title": "组织地址表格视图",
"caption": "组织地址",
......@@ -399,6 +407,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HRPostRelV_001",
"viewtag": "4f567c340cbb4271d44543b278d29d0f"
},
"hrarchivesborrowv_001": {
"title": "档案借阅",
"caption": "档案借阅",
"viewtype": "DEOPTVIEW",
"viewmodule": "HumanResource",
"viewname": "HRArchivesBorrowV_001",
"viewtag": "4ff919a1d1c42560df859b49cf8a1542"
},
"hrdutydashboardview": {
"title": "职务看板",
"caption": "职务看板",
......@@ -1231,6 +1247,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HRPostDashboardView",
"viewtag": "f03c9544f1a1107bb34a97542dde1a3e"
},
"hrarchivesborrowgridview": {
"title": "档案借阅表格视图",
"caption": "档案借阅",
"viewtype": "DEGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HRArchivesBorrowGridView",
"viewtag": "f31e79001d0aafc5a665b5dfeb4eea80"
},
"hrlegaltabexpview": {
"title": "法人信息",
"caption": "法人信息",
......
......@@ -836,12 +836,14 @@ export class HRTransferApplyWFDynaEditViewBase extends ViewBase {
}
const { data: _data } = response;
if (this.viewdata) {
this.$emit('viewdataschange', [{ ..._data }]);
this.$emit('close');
} else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
}
this.$emit('viewdataschange', [{ ..._data }]);
this.closeView([{ ..._data }]);
// if (this.viewdata) {
// this.$emit('viewdataschange', [{ ..._data }]);
// this.$emit('close');
// } else if (this.$tabPageExp) {
// this.$tabPageExp.onClose(this.$route.fullPath);
// }
});
}
......
......@@ -39,10 +39,12 @@ export class EntityServiceRegister {
* @memberof EntityServiceRegister
*/
protected init(): void {
this.allEntityService.set('hroperationunit', () => import('@/service/hroperation-unit/hroperation-unit-service'));
this.allEntityService.set('hrarchivesmove', () => import('@/service/hrarchives-move/hrarchives-move-service'));
this.allEntityService.set('hroperationunit', () => import('@/service/hroperation-unit/hroperation-unit-service'));
this.allEntityService.set('hrfamily', () => import('@/service/hrfamily/hrfamily-service'));
this.allEntityService.set('hrreward', () => import('@/service/hrreward/hrreward-service'));
this.allEntityService.set('hromhierarchypurposeref', () => import('@/service/hromhierarchy-purpose-ref/hromhierarchy-purpose-ref-service'));
this.allEntityService.set('hrarchivesborrow', () => import('@/service/hrarchives-borrow/hrarchives-borrow-service'));
this.allEntityService.set('hromhierarchycat', () => import('@/service/hromhierarchy-cat/hromhierarchy-cat-service'));
this.allEntityService.set('hrcertificate', () => import('@/service/hrcertificate/hrcertificate-service'));
this.allEntityService.set('hrorgcontact', () => import('@/service/hrorg-contact/hrorg-contact-service'));
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 档案借阅服务对象基类
*
* @export
* @class HRArchivesBorrowServiceBase
* @extends {EntityServie}
*/
export default class HRArchivesBorrowServiceBase extends EntityService {
/**
* Creates an instance of HRArchivesBorrowServiceBase.
*
* @param {*} [opts={}]
* @memberof HRArchivesBorrowServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof HRArchivesBorrowServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='hrarchivesborrow';
this.APPDEKEY = 'hrarchivesborrowid';
this.APPDENAME = 'hrarchivesborrows';
this.APPDETEXT = 'hrarchivesborrowname';
this.APPNAME = 'pim';
this.SYSTEMNAME = 'ibizhumanresources';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesBorrowServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/hrarchivesborrows/${context.hrarchivesborrow}/select`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesBorrowServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
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(`/hrarchivesborrows`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesBorrowServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrarchivesborrows/${context.hrarchivesborrow}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesBorrowServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/hrarchivesborrows/${context.hrarchivesborrow}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesBorrowServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hrarchivesborrows/${context.hrarchivesborrow}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesBorrowServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hrarchivesborrows/getdraft`,isloading);
res.data.hrarchivesborrow = data.hrarchivesborrow;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesBorrowServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/hrarchivesborrows/${context.hrarchivesborrow}/checkkey`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesBorrowServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrarchivesborrows/${context.hrarchivesborrow}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesBorrowServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrarchivesborrows/fetchdefault`,tempData,isloading);
return res;
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import HRArchivesBorrowServiceBase from './hrarchives-borrow-service-base';
/**
* 档案借阅服务对象
*
* @export
* @class HRArchivesBorrowService
* @extends {HRArchivesBorrowServiceBase}
*/
export default class HRArchivesBorrowService extends HRArchivesBorrowServiceBase {
/**
* Creates an instance of HRArchivesBorrowService.
*
* @param {*} [opts={}]
* @memberof HRArchivesBorrowService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 档案调档服务对象基类
*
* @export
* @class HRArchivesMoveServiceBase
* @extends {EntityServie}
*/
export default class HRArchivesMoveServiceBase extends EntityService {
/**
* Creates an instance of HRArchivesMoveServiceBase.
*
* @param {*} [opts={}]
* @memberof HRArchivesMoveServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof HRArchivesMoveServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='hrarchivesmove';
this.APPDEKEY = 'hrarchivesmoveid';
this.APPDENAME = 'hrarchivesmoves';
this.APPDETEXT = 'hrarchivesmovename';
this.APPNAME = 'pim';
this.SYSTEMNAME = 'ibizhumanresources';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesMoveServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/hrarchivesmoves/${context.hrarchivesmove}/select`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesMoveServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
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(`/hrarchivesmoves`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesMoveServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrarchivesmoves/${context.hrarchivesmove}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesMoveServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/hrarchivesmoves/${context.hrarchivesmove}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesMoveServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hrarchivesmoves/${context.hrarchivesmove}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesMoveServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/hrarchivesmoves/getdraft`,isloading);
res.data.hrarchivesmove = data.hrarchivesmove;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesMoveServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/hrarchivesmoves/${context.hrarchivesmove}/checkkey`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesMoveServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrarchivesmoves/${context.hrarchivesmove}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRArchivesMoveServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrarchivesmoves/fetchdefault`,tempData,isloading);
return res;
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import HRArchivesMoveServiceBase from './hrarchives-move-service-base';
/**
* 档案调档服务对象
*
* @export
* @class HRArchivesMoveService
* @extends {HRArchivesMoveServiceBase}
*/
export default class HRArchivesMoveService extends HRArchivesMoveServiceBase {
/**
* Creates an instance of HRArchivesMoveService.
*
* @param {*} [opts={}]
* @memberof HRArchivesMoveService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import HRArchivesBorrowService from '@/service/hrarchives-borrow/hrarchives-borrow-service';
import HRArchivesBorrowAuthService from '@/authservice/hrarchives-borrow/hrarchives-borrow-auth-service';
/**
* 档案借阅UI服务对象基类
*
* @export
* @class HRArchivesBorrowUIServiceBase
*/
export default class HRArchivesBorrowUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof HRArchivesBorrowUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof HRArchivesBorrowUIServiceBase
*/
public dataService:HRArchivesBorrowService = new HRArchivesBorrowService();
/**
* 所有关联视图
*
* @memberof HRArchivesBorrowUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof HRArchivesBorrowUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof HRArchivesBorrowUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof HRArchivesBorrowUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof HRArchivesBorrowUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* 主状态操作标识Map
*
* @memberof HRArchivesBorrowUIServiceBase
*/
public allDeMainStateOPPrivsMap:Map<string,any> = new Map();
/**
* Creates an instance of HRArchivesBorrowUIServiceBase.
*
* @param {*} [opts={}]
* @memberof HRArchivesBorrowUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.authService = new HRArchivesBorrowAuthService(opts);
this.initViewMap();
this.initDeMainStateMap();
this.initDeMainStateOPPrivsMap();
}
/**
* 初始化视图Map
*
* @memberof HRArchivesBorrowUIServiceBase
*/
public initViewMap(){
this.allViewMap.set(':',{viewname:'v_002',srfappde:'hrarchivesborrows'});
this.allViewMap.set(':',{viewname:'v_001',srfappde:'hrarchivesborrows'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'hrarchivesborrows'});
}
/**
* 初始化主状态集合
*
* @memberof HRArchivesBorrowUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 初始化主状态操作标识
*
* @memberof HRArchivesBorrowUIServiceBase
*/
public initDeMainStateOPPrivsMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof HRArchivesBorrowUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({hrarchivesborrow:srfkey});
const curData:any = result.data;
//判断当前数据模式,默认为true,todo
const iRealDEModel:boolean = true;
let bDataInWF:boolean = false;
let bWFMode:any = false;
// 计算数据模式
if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData);
if (bDataInWF) {
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData);
}
}
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam);
}
/**
* 获取实际的数据类型
*
* @memberof HRArchivesBorrowUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof HRArchivesBorrowUIServiceBase
*/
public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = '';
if (bDataInWF) {
// 判断数据是否在流程中
}
//多表单,todo
const isEnableMultiForm:boolean = false;
const multiFormDEField:string|null =null;
if (isEnableMultiForm && multiFormDEField) {
const objFormValue:string = curData[multiFormDEField];
if(!Environment.isAppMode){
return 'MOBEDITVIEW'+objFormValue;
}
return 'EDITVIEW'+objFormValue;
}
if(!Environment.isAppMode){
if(this.getDEMainStateTag(curData)){
return `MOBEDITVIEW:MSTAG:${ this.getDEMainStateTag(curData)}`;
}
return 'MOBEDITVIEW:';
}
if(this.getDEMainStateTag(curData)){
return `EDITVIEW:MSTAG:${ this.getDEMainStateTag(curData)}`;
}
return 'EDITVIEW:';
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof HRArchivesBorrowUIServiceBase
*/
public getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{
if(!(singleMainField in curData)){
console.warn(`当前数据对象不包含属性${singleMainField},可能会发生错误`);
}
})
for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]])?(i == 0) ? curData[this.mainStateFields[0]] : "":"";
if (this.mainStateFields.length >= 2) {
for (let j = 0; j <= 1; j++) {
let strTag2:string = (curData[this.mainStateFields[1]])?`${strTag}__${(j == 0) ? curData[this.mainStateFields[1]] : ""}`:strTag;
if (this.mainStateFields.length >= 3) {
for (let k = 0; k <= 1; k++) {
let strTag3:string = (curData[this.mainStateFields[2]])?`${strTag2}__${(k == 0) ? curData[this.mainStateFields[2]] : ""}`:strTag2;
// 判断是否存在
return this.allDeMainStateMap.get(strTag3);
}
}else{
return this.allDeMainStateMap.get(strTag2);
}
}
}else{
return this.allDeMainStateMap.get(strTag);
}
}
return null;
}
/**
* 获取数据对象当前操作标识
*
* @param data 当前数据
* @memberof HRArchivesBorrowUIServiceBase
*/
public getDEMainStateOPPrivs(data:any){
if(this.getDEMainStateTag(data)){
return this.allDeMainStateOPPrivsMap.get((this.getDEMainStateTag(data) as string));
}else{
return null;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof HRArchivesBorrowUIServiceBase
*/
public getAllOPPrivs(data:any){
return this.authService.getOPPrivs(this.getDEMainStateOPPrivs(data));
}
}
\ No newline at end of file
import HRArchivesBorrowUIServiceBase from './hrarchives-borrow-ui-service-base';
/**
* 档案借阅UI服务对象
*
* @export
* @class HRArchivesBorrowUIService
*/
export default class HRArchivesBorrowUIService extends HRArchivesBorrowUIServiceBase {
/**
* Creates an instance of HRArchivesBorrowUIService.
*
* @param {*} [opts={}]
* @memberof HRArchivesBorrowUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import HRArchivesMoveService from '@/service/hrarchives-move/hrarchives-move-service';
import HRArchivesMoveAuthService from '@/authservice/hrarchives-move/hrarchives-move-auth-service';
/**
* 档案调档UI服务对象基类
*
* @export
* @class HRArchivesMoveUIServiceBase
*/
export default class HRArchivesMoveUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof HRArchivesMoveUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof HRArchivesMoveUIServiceBase
*/
public dataService:HRArchivesMoveService = new HRArchivesMoveService();
/**
* 所有关联视图
*
* @memberof HRArchivesMoveUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof HRArchivesMoveUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof HRArchivesMoveUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof HRArchivesMoveUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof HRArchivesMoveUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* 主状态操作标识Map
*
* @memberof HRArchivesMoveUIServiceBase
*/
public allDeMainStateOPPrivsMap:Map<string,any> = new Map();
/**
* Creates an instance of HRArchivesMoveUIServiceBase.
*
* @param {*} [opts={}]
* @memberof HRArchivesMoveUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.authService = new HRArchivesMoveAuthService(opts);
this.initViewMap();
this.initDeMainStateMap();
this.initDeMainStateOPPrivsMap();
}
/**
* 初始化视图Map
*
* @memberof HRArchivesMoveUIServiceBase
*/
public initViewMap(){
}
/**
* 初始化主状态集合
*
* @memberof HRArchivesMoveUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 初始化主状态操作标识
*
* @memberof HRArchivesMoveUIServiceBase
*/
public initDeMainStateOPPrivsMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof HRArchivesMoveUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({hrarchivesmove:srfkey});
const curData:any = result.data;
//判断当前数据模式,默认为true,todo
const iRealDEModel:boolean = true;
let bDataInWF:boolean = false;
let bWFMode:any = false;
// 计算数据模式
if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData);
if (bDataInWF) {
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData);
}
}
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam);
}
/**
* 获取实际的数据类型
*
* @memberof HRArchivesMoveUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof HRArchivesMoveUIServiceBase
*/
public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = '';
if (bDataInWF) {
// 判断数据是否在流程中
}
//多表单,todo
const isEnableMultiForm:boolean = false;
const multiFormDEField:string|null =null;
if (isEnableMultiForm && multiFormDEField) {
const objFormValue:string = curData[multiFormDEField];
if(!Environment.isAppMode){
return 'MOBEDITVIEW'+objFormValue;
}
return 'EDITVIEW'+objFormValue;
}
if(!Environment.isAppMode){
if(this.getDEMainStateTag(curData)){
return `MOBEDITVIEW:MSTAG:${ this.getDEMainStateTag(curData)}`;
}
return 'MOBEDITVIEW:';
}
if(this.getDEMainStateTag(curData)){
return `EDITVIEW:MSTAG:${ this.getDEMainStateTag(curData)}`;
}
return 'EDITVIEW:';
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof HRArchivesMoveUIServiceBase
*/
public getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{
if(!(singleMainField in curData)){
console.warn(`当前数据对象不包含属性${singleMainField},可能会发生错误`);
}
})
for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]])?(i == 0) ? curData[this.mainStateFields[0]] : "":"";
if (this.mainStateFields.length >= 2) {
for (let j = 0; j <= 1; j++) {
let strTag2:string = (curData[this.mainStateFields[1]])?`${strTag}__${(j == 0) ? curData[this.mainStateFields[1]] : ""}`:strTag;
if (this.mainStateFields.length >= 3) {
for (let k = 0; k <= 1; k++) {
let strTag3:string = (curData[this.mainStateFields[2]])?`${strTag2}__${(k == 0) ? curData[this.mainStateFields[2]] : ""}`:strTag2;
// 判断是否存在
return this.allDeMainStateMap.get(strTag3);
}
}else{
return this.allDeMainStateMap.get(strTag2);
}
}
}else{
return this.allDeMainStateMap.get(strTag);
}
}
return null;
}
/**
* 获取数据对象当前操作标识
*
* @param data 当前数据
* @memberof HRArchivesMoveUIServiceBase
*/
public getDEMainStateOPPrivs(data:any){
if(this.getDEMainStateTag(data)){
return this.allDeMainStateOPPrivsMap.get((this.getDEMainStateTag(data) as string));
}else{
return null;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof HRArchivesMoveUIServiceBase
*/
public getAllOPPrivs(data:any){
return this.authService.getOPPrivs(this.getDEMainStateOPPrivs(data));
}
}
\ No newline at end of file
import HRArchivesMoveUIServiceBase from './hrarchives-move-ui-service-base';
/**
* 档案调档UI服务对象
*
* @export
* @class HRArchivesMoveUIService
*/
export default class HRArchivesMoveUIService extends HRArchivesMoveUIServiceBase {
/**
* Creates an instance of HRArchivesMoveUIService.
*
* @param {*} [opts={}]
* @memberof HRArchivesMoveUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -39,10 +39,12 @@ export class UIServiceRegister {
* @memberof UIServiceRegister
*/
protected init(): void {
this.allUIService.set('hroperationunit', () => import('@/uiservice/hroperation-unit/hroperation-unit-ui-service'));
this.allUIService.set('hrarchivesmove', () => import('@/uiservice/hrarchives-move/hrarchives-move-ui-service'));
this.allUIService.set('hroperationunit', () => import('@/uiservice/hroperation-unit/hroperation-unit-ui-service'));
this.allUIService.set('hrfamily', () => import('@/uiservice/hrfamily/hrfamily-ui-service'));
this.allUIService.set('hrreward', () => import('@/uiservice/hrreward/hrreward-ui-service'));
this.allUIService.set('hromhierarchypurposeref', () => import('@/uiservice/hromhierarchy-purpose-ref/hromhierarchy-purpose-ref-ui-service'));
this.allUIService.set('hrarchivesborrow', () => import('@/uiservice/hrarchives-borrow/hrarchives-borrow-ui-service'));
this.allUIService.set('hromhierarchycat', () => import('@/uiservice/hromhierarchy-cat/hromhierarchy-cat-ui-service'));
this.allUIService.set('hrcertificate', () => import('@/uiservice/hrcertificate/hrcertificate-ui-service'));
this.allUIService.set('hrorgcontact', () => import('@/uiservice/hrorg-contact/hrorg-contact-ui-service'));
......
......@@ -37,11 +37,6 @@
git clone -b master $para2 ibizhumanresources/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizhumanresources/
mvn clean package -Ppim
cd humanresource-app/humanresource-app-pim
mvn -Ppim docker:build
mvn -Ppim docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-app-pim.yaml iBizEE --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
......
......@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-app-pim.jar
EXPOSE 10327
EXPOSE 8080
ADD humanresource-app-pim.jar /humanresource-app-pim.jar
......@@ -3,25 +3,9 @@ services:
humanresource-app-pim:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-app-pim:latest
ports:
- "10327:10327"
- "8080:8080"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=10327
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
- SPRING_DATASOURCE_PASSWORD=b1@@@772
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
- SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
- SEATA_ENABLED=true
deploy:
resources:
limits:
......
......@@ -7,6 +7,10 @@ logging:
#zuul网关路由设置
zuul:
routes:
hrarchivesmove:
path: /hrarchivesmoves/**
serviceId: ${ibiz.ref.service.ibizhumanresources-hrapi:ibizhumanresources-hrapi}
stripPrefix: false
hroperationunit:
path: /hroperationunits/**
serviceId: ${ibiz.ref.service.ibizhumanresources-hrapi:ibizhumanresources-hrapi}
......@@ -23,6 +27,10 @@ zuul:
path: /hromhierarchypurposerefs/**
serviceId: ${ibiz.ref.service.ibizhumanresources-hrapi:ibizhumanresources-hrapi}
stripPrefix: false
hrarchivesborrow:
path: /hrarchivesborrows/**
serviceId: ${ibiz.ref.service.ibizhumanresources-hrapi:ibizhumanresources-hrapi}
stripPrefix: false
hromhierarchycat:
path: /hromhierarchycats/**
serviceId: ${ibiz.ref.service.ibizhumanresources-hrapi:ibizhumanresources-hrapi}
......
......@@ -96,6 +96,42 @@ public class HRArchivesMove extends EntityMP implements Serializable {
@JSONField(name = "hrarchivesid")
@JsonProperty("hrarchivesid")
private String hrarchivesid;
/**
* 调档类型
*/
@TableField(value = "movetype")
@JSONField(name = "movetype")
@JsonProperty("movetype")
private String movetype;
/**
* 调入单位
*/
@TableField(value = "moveinorg")
@JSONField(name = "moveinorg")
@JsonProperty("moveinorg")
private String moveinorg;
/**
* 调出单位
*/
@TableField(value = "moveoutorg")
@JSONField(name = "moveoutorg")
@JsonProperty("moveoutorg")
private String moveoutorg;
/**
* 调档时间
*/
@TableField(value = "activetime")
@JsonFormat(pattern="yyyy-MM-dd", locale = "zh" , timezone="GMT+8")
@JSONField(name = "activetime" , format="yyyy-MM-dd")
@JsonProperty("activetime")
private Timestamp activetime;
/**
* 备注
*/
@TableField(value = "memo")
@JSONField(name = "memo")
@JsonProperty("memo")
private String memo;
/**
* 员工档案
......@@ -123,6 +159,56 @@ public class HRArchivesMove extends EntityMP implements Serializable {
this.modify("hrarchivesid",hrarchivesid);
}
/**
* 设置 [调档类型]
*/
public void setMovetype(String movetype){
this.movetype = movetype ;
this.modify("movetype",movetype);
}
/**
* 设置 [调入单位]
*/
public void setMoveinorg(String moveinorg){
this.moveinorg = moveinorg ;
this.modify("moveinorg",moveinorg);
}
/**
* 设置 [调出单位]
*/
public void setMoveoutorg(String moveoutorg){
this.moveoutorg = moveoutorg ;
this.modify("moveoutorg",moveoutorg);
}
/**
* 设置 [调档时间]
*/
public void setActivetime(Timestamp activetime){
this.activetime = activetime ;
this.modify("activetime",activetime);
}
/**
* 格式化日期 [调档时间]
*/
public String formatActivetime(){
if (this.activetime == null) {
return null;
}
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
return sdf.format(activetime);
}
/**
* 设置 [备注]
*/
public void setMemo(String memo){
this.memo = memo ;
this.modify("memo",memo);
}
}
......
......@@ -41,6 +41,13 @@ public class HRArchivesMoveSearchContext extends QueryWrapperContext<HRArchivesM
this.getSearchCond().eq("hrarchivesid", n_hrarchivesid_eq);
}
}
private String n_movetype_eq;//[调档类型]
public void setN_movetype_eq(String n_movetype_eq) {
this.n_movetype_eq = n_movetype_eq;
if(!ObjectUtils.isEmpty(this.n_movetype_eq)){
this.getSearchCond().eq("movetype", n_movetype_eq);
}
}
/**
* 启用快速搜索
......
......@@ -105,6 +105,16 @@
</column>
<column name="HRARCHIVESID" remarks="" type="VARCHAR(100)">
</column>
<column name="MOVETYPE" remarks="" type="VARCHAR(60)">
</column>
<column name="MOVEINORG" remarks="" type="VARCHAR(100)">
</column>
<column name="MOVEOUTORG" remarks="" type="VARCHAR(100)">
</column>
<column name="ACTIVETIME" remarks="" type="DATETIME">
</column>
<column name="MEMO" remarks="" type="VARCHAR(1000)">
</column>
</createTable>
</changeSet>
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="HRArchivesMoveResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRARCHIVESID`, t1.`HRARCHIVESMOVEID`, t1.`HRARCHIVESMOVENAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVESMOVE` t1 ) t1 where hrarchivesmoveid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`ACTIVETIME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRARCHIVESID`, t1.`HRARCHIVESMOVEID`, t1.`HRARCHIVESMOVENAME`, t1.`MEMO`, t1.`MOVEINORG`, t1.`MOVEOUTORG`, t1.`MOVETYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVESMOVE` t1 ) t1 where hrarchivesmoveid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -37,12 +37,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRARCHIVESID`, t1.`HRARCHIVESMOVEID`, t1.`HRARCHIVESMOVENAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVESMOVE` t1
<![CDATA[ SELECT t1.`ACTIVETIME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRARCHIVESID`, t1.`HRARCHIVESMOVEID`, t1.`HRARCHIVESMOVENAME`, t1.`MEMO`, t1.`MOVEINORG`, t1.`MOVEOUTORG`, t1.`MOVETYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVESMOVE` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRARCHIVESID`, t1.`HRARCHIVESMOVEID`, t1.`HRARCHIVESMOVENAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVESMOVE` t1
<![CDATA[ SELECT t1.`ACTIVETIME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRARCHIVESID`, t1.`HRARCHIVESMOVEID`, t1.`HRARCHIVESMOVENAME`, t1.`MEMO`, t1.`MOVEINORG`, t1.`MOVEOUTORG`, t1.`MOVETYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVESMOVE` t1
]]>
</sql>
</mapper>
......
......@@ -4,6 +4,14 @@
],
"entities":[
{
"dename":"HRArchivesMove",
"delogicname":"档案调档",
"sysmoudle":{"id":"HUMANRESOURCE","name":"人力"},
"dedataset":[{"id":"Default" , "name":"DEFAULT"}],
"deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}]
}
, {
"dename":"HROperationUnit",
"delogicname":"运营单位",
"sysmoudle":{"id":"BASE","name":"基础"},
......@@ -36,6 +44,14 @@
"datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}]
}
, {
"dename":"HRArchivesBorrow",
"delogicname":"档案借阅",
"sysmoudle":{"id":"HUMANRESOURCE","name":"人力"},
"dedataset":[{"id":"Default" , "name":"DEFAULT"}],
"deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}]
}
, {
"dename":"HROMHierarchyCat",
"delogicname":"结构层次类别",
"sysmoudle":{"id":"BASE","name":"基础"},
......
......@@ -89,12 +89,12 @@
</sequenceFlow>
<sequenceFlow id="rid-49e9839c4ba5dd23b6d04d1a11bde213" sourceRef="sid-4f4cbd1b1c56a1afdf6b732acbdbb3d2" targetRef="sid-aa50f0cdc470fc7eda80586253f9e119" name="">
</sequenceFlow>
<sequenceFlow id="lid-C4444-31ffc83d7a660246be7b0b3b6eb25589" sourceRef="tid-50-2460008b701052acd8ecac24c4d32104" targetRef="tid-40-a89d2487b1f410af51ab756faf165cec" name="驳回">
<conditionExpression xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C4444-31ffc83d7a660246be7b0b3b6eb25589"}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="lid-C7471-05cdc25aefc652bb4942cd5d9f10d927" sourceRef="tid-50-2460008b701052acd8ecac24c4d32104" targetRef="tid-60-5cfc5caf8f5afd9ecd89d8d1b8150fb9" name="审批通过">
<conditionExpression xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C7471-05cdc25aefc652bb4942cd5d9f10d927"}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="lid-C4444-31ffc83d7a660246be7b0b3b6eb25589" sourceRef="tid-50-2460008b701052acd8ecac24c4d32104" targetRef="tid-40-a89d2487b1f410af51ab756faf165cec" name="驳回">
<conditionExpression xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C4444-31ffc83d7a660246be7b0b3b6eb25589"}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="lid-C1738-a1c2b4e373d9cca6b4f4e32c42b8cc93" sourceRef="tid-60-5cfc5caf8f5afd9ecd89d8d1b8150fb9" targetRef="sid-4f4cbd1b1c56a1afdf6b732acbdbb3d2" name="审核通过">
<conditionExpression xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C1738-a1c2b4e373d9cca6b4f4e32c42b8cc93"}]]></conditionExpression>
</sequenceFlow>
......@@ -173,11 +173,11 @@
<omgdi:waypoint x="0" y="0" />
<omgdi:waypoint x="0" y="0" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge-lid-C4444-31ffc83d7a660246be7b0b3b6eb25589" bpmnElement="lid-C4444-31ffc83d7a660246be7b0b3b6eb25589">
<bpmndi:BPMNEdge id="BPMNEdge-lid-C7471-05cdc25aefc652bb4942cd5d9f10d927" bpmnElement="lid-C7471-05cdc25aefc652bb4942cd5d9f10d927">
<omgdi:waypoint x="0" y="0" />
<omgdi:waypoint x="0" y="0" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge-lid-C7471-05cdc25aefc652bb4942cd5d9f10d927" bpmnElement="lid-C7471-05cdc25aefc652bb4942cd5d9f10d927">
<bpmndi:BPMNEdge id="BPMNEdge-lid-C4444-31ffc83d7a660246be7b0b3b6eb25589" bpmnElement="lid-C4444-31ffc83d7a660246be7b0b3b6eb25589">
<omgdi:waypoint x="0" y="0" />
<omgdi:waypoint x="0" y="0" />
</bpmndi:BPMNEdge>
......
package cn.ibizlab.humanresource.hrapi.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import cn.ibizlab.humanresource.util.domain.DTOBase;
import cn.ibizlab.humanresource.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[HRArchivesBorrowDTO]
*/
@Data
public class HRArchivesBorrowDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [CREATEMAN]
*
*/
@JSONField(name = "createman")
@JsonProperty("createman")
private String createman;
/**
* 属性 [CREATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
private Timestamp createdate;
/**
* 属性 [HRARCHIVESBORROWID]
*
*/
@JSONField(name = "hrarchivesborrowid")
@JsonProperty("hrarchivesborrowid")
private String hrarchivesborrowid;
/**
* 属性 [HRARCHIVESBORROWNAME]
*
*/
@JSONField(name = "hrarchivesborrowname")
@JsonProperty("hrarchivesborrowname")
private String hrarchivesborrowname;
/**
* 属性 [UPDATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
private Timestamp updatedate;
/**
* 属性 [UPDATEMAN]
*
*/
@JSONField(name = "updateman")
@JsonProperty("updateman")
private String updateman;
/**
* 属性 [HRARCHIVESID]
*
*/
@JSONField(name = "hrarchivesid")
@JsonProperty("hrarchivesid")
private String hrarchivesid;
/**
* 属性 [BORROWSTATE]
*
*/
@JSONField(name = "borrowstate")
@JsonProperty("borrowstate")
private String borrowstate;
/**
* 属性 [BORROWMAN]
*
*/
@JSONField(name = "borrowman")
@JsonProperty("borrowman")
private String borrowman;
/**
* 属性 [BEGINTIME]
*
*/
@JsonFormat(pattern="yyyy-MM-dd", locale = "zh" , timezone="GMT+8")
@JSONField(name = "begintime" , format="yyyy-MM-dd")
@JsonProperty("begintime")
private Timestamp begintime;
/**
* 属性 [ENDTIME]
*
*/
@JsonFormat(pattern="yyyy-MM-dd", locale = "zh" , timezone="GMT+8")
@JSONField(name = "endtime" , format="yyyy-MM-dd")
@JsonProperty("endtime")
private Timestamp endtime;
/**
* 属性 [CHECKMAN]
*
*/
@JSONField(name = "checkman")
@JsonProperty("checkman")
private String checkman;
/**
* 属性 [CHECKTIME]
*
*/
@JsonFormat(pattern="yyyy-MM-dd", locale = "zh" , timezone="GMT+8")
@JSONField(name = "checktime" , format="yyyy-MM-dd")
@JsonProperty("checktime")
private Timestamp checktime;
/**
* 属性 [BORROWREASON]
*
*/
@JSONField(name = "borrowreason")
@JsonProperty("borrowreason")
private String borrowreason;
/**
* 设置 [HRARCHIVESBORROWNAME]
*/
public void setHrarchivesborrowname(String hrarchivesborrowname){
this.hrarchivesborrowname = hrarchivesborrowname ;
this.modify("hrarchivesborrowname",hrarchivesborrowname);
}
/**
* 设置 [HRARCHIVESID]
*/
public void setHrarchivesid(String hrarchivesid){
this.hrarchivesid = hrarchivesid ;
this.modify("hrarchivesid",hrarchivesid);
}
/**
* 设置 [BORROWSTATE]
*/
public void setBorrowstate(String borrowstate){
this.borrowstate = borrowstate ;
this.modify("borrowstate",borrowstate);
}
/**
* 设置 [BORROWMAN]
*/
public void setBorrowman(String borrowman){
this.borrowman = borrowman ;
this.modify("borrowman",borrowman);
}
/**
* 设置 [BEGINTIME]
*/
public void setBegintime(Timestamp begintime){
this.begintime = begintime ;
this.modify("begintime",begintime);
}
/**
* 设置 [ENDTIME]
*/
public void setEndtime(Timestamp endtime){
this.endtime = endtime ;
this.modify("endtime",endtime);
}
/**
* 设置 [CHECKMAN]
*/
public void setCheckman(String checkman){
this.checkman = checkman ;
this.modify("checkman",checkman);
}
/**
* 设置 [CHECKTIME]
*/
public void setChecktime(Timestamp checktime){
this.checktime = checktime ;
this.modify("checktime",checktime);
}
/**
* 设置 [BORROWREASON]
*/
public void setBorrowreason(String borrowreason){
this.borrowreason = borrowreason ;
this.modify("borrowreason",borrowreason);
}
}
package cn.ibizlab.humanresource.hrapi.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import cn.ibizlab.humanresource.util.domain.DTOBase;
import cn.ibizlab.humanresource.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[HRArchivesMoveDTO]
*/
@Data
public class HRArchivesMoveDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [HRARCHIVESMOVEID]
*
*/
@JSONField(name = "hrarchivesmoveid")
@JsonProperty("hrarchivesmoveid")
private String hrarchivesmoveid;
/**
* 属性 [HRARCHIVESMOVENAME]
*
*/
@JSONField(name = "hrarchivesmovename")
@JsonProperty("hrarchivesmovename")
private String hrarchivesmovename;
/**
* 属性 [UPDATEMAN]
*
*/
@JSONField(name = "updateman")
@JsonProperty("updateman")
private String updateman;
/**
* 属性 [CREATEMAN]
*
*/
@JSONField(name = "createman")
@JsonProperty("createman")
private String createman;
/**
* 属性 [CREATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
private Timestamp createdate;
/**
* 属性 [UPDATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
private Timestamp updatedate;
/**
* 属性 [HRARCHIVESID]
*
*/
@JSONField(name = "hrarchivesid")
@JsonProperty("hrarchivesid")
private String hrarchivesid;
/**
* 属性 [MOVETYPE]
*
*/
@JSONField(name = "movetype")
@JsonProperty("movetype")
private String movetype;
/**
* 属性 [MOVEINORG]
*
*/
@JSONField(name = "moveinorg")
@JsonProperty("moveinorg")
private String moveinorg;
/**
* 属性 [MOVEOUTORG]
*
*/
@JSONField(name = "moveoutorg")
@JsonProperty("moveoutorg")
private String moveoutorg;
/**
* 属性 [ACTIVETIME]
*
*/
@JsonFormat(pattern="yyyy-MM-dd", locale = "zh" , timezone="GMT+8")
@JSONField(name = "activetime" , format="yyyy-MM-dd")
@JsonProperty("activetime")
private Timestamp activetime;
/**
* 属性 [MEMO]
*
*/
@JSONField(name = "memo")
@JsonProperty("memo")
private String memo;
/**
* 设置 [HRARCHIVESMOVENAME]
*/
public void setHrarchivesmovename(String hrarchivesmovename){
this.hrarchivesmovename = hrarchivesmovename ;
this.modify("hrarchivesmovename",hrarchivesmovename);
}
/**
* 设置 [HRARCHIVESID]
*/
public void setHrarchivesid(String hrarchivesid){
this.hrarchivesid = hrarchivesid ;
this.modify("hrarchivesid",hrarchivesid);
}
/**
* 设置 [MOVETYPE]
*/
public void setMovetype(String movetype){
this.movetype = movetype ;
this.modify("movetype",movetype);
}
/**
* 设置 [MOVEINORG]
*/
public void setMoveinorg(String moveinorg){
this.moveinorg = moveinorg ;
this.modify("moveinorg",moveinorg);
}
/**
* 设置 [MOVEOUTORG]
*/
public void setMoveoutorg(String moveoutorg){
this.moveoutorg = moveoutorg ;
this.modify("moveoutorg",moveoutorg);
}
/**
* 设置 [ACTIVETIME]
*/
public void setActivetime(Timestamp activetime){
this.activetime = activetime ;
this.modify("activetime",activetime);
}
/**
* 设置 [MEMO]
*/
public void setMemo(String memo){
this.memo = memo ;
this.modify("memo",memo);
}
}
package cn.ibizlab.humanresource.hrapi.mapping;
import org.mapstruct.*;
import cn.ibizlab.humanresource.core.humanresource.domain.HRArchivesBorrow;
import cn.ibizlab.humanresource.hrapi.dto.HRArchivesBorrowDTO;
import cn.ibizlab.humanresource.util.domain.MappingBase;
import org.mapstruct.factory.Mappers;
@Mapper(componentModel = "spring", uses = {},implementationName="HRApiHRArchivesBorrowMapping",
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE,
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface HRArchivesBorrowMapping extends MappingBase<HRArchivesBorrowDTO, HRArchivesBorrow> {
}
package cn.ibizlab.humanresource.hrapi.mapping;
import org.mapstruct.*;
import cn.ibizlab.humanresource.core.humanresource.domain.HRArchivesMove;
import cn.ibizlab.humanresource.hrapi.dto.HRArchivesMoveDTO;
import cn.ibizlab.humanresource.util.domain.MappingBase;
import org.mapstruct.factory.Mappers;
@Mapper(componentModel = "spring", uses = {},implementationName="HRApiHRArchivesMoveMapping",
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE,
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface HRArchivesMoveMapping extends MappingBase<HRArchivesMoveDTO, HRArchivesMove> {
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册