--建表脚本--
create table T_HR_MANAGEMENTCENTER(
FID int not null comment '管理中心内码'
,FNUMBER nvarchar(80) default null comment '编码'
,FHRBOID int not null comment 'hr业务组织'
,FMCNATURE nvarchar(20) default null comment '管理中心性质'
,FEFFECTDATE datetime default null comment '生效日期'
,FEXPIRYDATE datetime default null comment '失效日期'
,FREMARK nvarchar(255) default null comment '描述'
,FCREATEORGID int not null comment '创建组织'
,FUSEORGID int not null comment '使用组织'
,FCREATORID int not null comment '创建人'
,FMODIFIERID int not null comment '修改人'
,FAUDITORID int not null comment '审核人'
,FFORBIDORID int not null comment '禁用人'
,FCREATEDATE datetime default null comment '创建日期'
,FMODIFYDATE datetime default null comment '修改日期'
,FAUDITDATE datetime default null comment '审核日期'
,FFORBIDDATE datetime default null comment '禁用日期'
,FDOCUMENTSTATUS char(1) not null comment '数据状态'
,FFORBIDSTATUS char(1) not null comment '禁用状态'
,FISPRESETPAYITEM char(1) not null comment '是否预插薪酬项目'
,FISPRESETATSITEM char(1) not null comment '是否预插考勤项目'
,FISPRESETHOLYTYPE char(1) not null comment '是否预插假期类型'
,FISPRESETSHIFT char(1) not null comment '是否预插班次'
,primary key (FID)
) comment = 'hr管理中心设置'
--查询--
select FID as "fid",FNUMBER as "fnumber",FHRBOID as "fhrboid",FMCNATURE as "fmcnature",FEFFECTDATE as "feffectdate",FEXPIRYDATE as "fexpirydate",FREMARK as "fremark",FCREATEORGID as "fcreateorgid",FUSEORGID as "fuseorgid",FCREATORID as "fcreatorid",FMODIFIERID as "fmodifierid",FAUDITORID as "fauditorid",FFORBIDORID as "fforbidorid",FCREATEDATE as "fcreatedate",FMODIFYDATE as "fmodifydate",FAUDITDATE as "fauditdate",FFORBIDDATE as "fforbiddate",FDOCUMENTSTATUS as "fdocumentstatus",FFORBIDSTATUS as "fforbidstatus",FISPRESETPAYITEM as "fispresetpayitem",FISPRESETATSITEM as "fispresetatsitem",FISPRESETHOLYTYPE as "fispresetholytype",FISPRESETSHIFT as "fispresetshift" from T_HR_MANAGEMENTCENTER
--查询(中文字段)--
select FID as "管理中心内码",FNUMBER as "编码",FHRBOID as "hr业务组织",FMCNATURE as "管理中心性质",FEFFECTDATE as "生效日期",FEXPIRYDATE as "失效日期",FREMARK as "描述",FCREATEORGID as "创建组织",FUSEORGID as "使用组织",FCREATORID as "创建人",FMODIFIERID as "修改人",FAUDITORID as "审核人",FFORBIDORID as "禁用人",FCREATEDATE as "创建日期",FMODIFYDATE as "修改日期",FAUDITDATE as "审核日期",FFORBIDDATE as "禁用日期",FDOCUMENTSTATUS as "数据状态",FFORBIDSTATUS as "禁用状态",FISPRESETPAYITEM as "是否预插薪酬项目",FISPRESETATSITEM as "是否预插考勤项目",FISPRESETHOLYTYPE as "是否预插假期类型",FISPRESETSHIFT as "是否预插班次" from T_HR_MANAGEMENTCENTER
--INSERT脚本--
insert into T_HR_MANAGEMENTCENTER(FID,FNUMBER,FHRBOID,FMCNATURE,FEFFECTDATE,FEXPIRYDATE,FREMARK,FCREATEORGID,FUSEORGID,FCREATORID,FMODIFIERID,FAUDITORID,FFORBIDORID,FCREATEDATE,FMODIFYDATE,FAUDITDATE,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS,FISPRESETPAYITEM,FISPRESETATSITEM,FISPRESETHOLYTYPE,FISPRESETSHIFT) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
--UPDATE脚本--
update T_HR_MANAGEMENTCENTER set FID=?,FNUMBER=?,FHRBOID=?,FMCNATURE=?,FEFFECTDATE=?,FEXPIRYDATE=?,FREMARK=?,FCREATEORGID=?,FUSEORGID=?,FCREATORID=?,FMODIFIERID=?,FAUDITORID=?,FFORBIDORID=?,FCREATEDATE=?,FMODIFYDATE=?,FAUDITDATE=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=?,FISPRESETPAYITEM=?,FISPRESETATSITEM=?,FISPRESETHOLYTYPE=?,FISPRESETSHIFT=? where FID=?
--delete脚本--
delete from T_HR_MANAGEMENTCENTER where FID=?
--给字段加备注--
alter table T_HR_MANAGEMENTCENTER comment 'hr管理中心设置';
alter table T_HR_MANAGEMENTCENTER modify column FID int not null comment '管理中心内码';
alter table T_HR_MANAGEMENTCENTER modify column FNUMBER nvarchar(80) default null comment '编码';
alter table T_HR_MANAGEMENTCENTER modify column FHRBOID int not null comment 'hr业务组织';
alter table T_HR_MANAGEMENTCENTER modify column FMCNATURE nvarchar(20) default null comment '管理中心性质';
alter table T_HR_MANAGEMENTCENTER modify column FEFFECTDATE datetime default null comment '生效日期';
alter table T_HR_MANAGEMENTCENTER modify column FEXPIRYDATE datetime default null comment '失效日期';
alter table T_HR_MANAGEMENTCENTER modify column FREMARK nvarchar(255) default null comment '描述';
alter table T_HR_MANAGEMENTCENTER modify column FCREATEORGID int not null comment '创建组织';
alter table T_HR_MANAGEMENTCENTER modify column FUSEORGID int not null comment '使用组织';
alter table T_HR_MANAGEMENTCENTER modify column FCREATORID int not null comment '创建人';
alter table T_HR_MANAGEMENTCENTER modify column FMODIFIERID int not null comment '修改人';
alter table T_HR_MANAGEMENTCENTER modify column FAUDITORID int not null comment '审核人';
alter table T_HR_MANAGEMENTCENTER modify column FFORBIDORID int not null comment '禁用人';
alter table T_HR_MANAGEMENTCENTER modify column FCREATEDATE datetime default null comment '创建日期';
alter table T_HR_MANAGEMENTCENTER modify column FMODIFYDATE datetime default null comment '修改日期';
alter table T_HR_MANAGEMENTCENTER modify column FAUDITDATE datetime default null comment '审核日期';
alter table T_HR_MANAGEMENTCENTER modify column FFORBIDDATE datetime default null comment '禁用日期';
alter table T_HR_MANAGEMENTCENTER modify column FDOCUMENTSTATUS char(1) not null comment '数据状态';
alter table T_HR_MANAGEMENTCENTER modify column FFORBIDSTATUS char(1) not null comment '禁用状态';
alter table T_HR_MANAGEMENTCENTER modify column FISPRESETPAYITEM char(1) not null comment '是否预插薪酬项目';
alter table T_HR_MANAGEMENTCENTER modify column FISPRESETATSITEM char(1) not null comment '是否预插考勤项目';
alter table T_HR_MANAGEMENTCENTER modify column FISPRESETHOLYTYPE char(1) not null comment '是否预插假期类型';
alter table T_HR_MANAGEMENTCENTER modify column FISPRESETSHIFT char(1) not null comment '是否预插班次';
--建表脚本--
create table T_HR_MANAGEMENTCENTER_L(
FPKID int not null comment '多语言内码'
,FID int default null comment '管理中心内码'
,FLOCALEID int default null comment '语言码'
,FNAME nvarchar(100) default null comment '名称'
,primary key (FPKID)
) comment = 'hr管理中心设置多语言表'
--查询--
select FPKID as "fpkid",FID as "fid",FLOCALEID as "flocaleid",FNAME as "fname" from T_HR_MANAGEMENTCENTER_L
--查询(中文字段)--
select FPKID as "多语言内码",FID as "管理中心内码",FLOCALEID as "语言码",FNAME as "名称" from T_HR_MANAGEMENTCENTER_L
--INSERT脚本--
insert into T_HR_MANAGEMENTCENTER_L(FPKID,FID,FLOCALEID,FNAME) values (?,?,?,?)
--UPDATE脚本--
update T_HR_MANAGEMENTCENTER_L set FPKID=?,FID=?,FLOCALEID=?,FNAME=? where FPKID=?
--delete脚本--
delete from T_HR_MANAGEMENTCENTER_L where FPKID=?
--给字段加备注--
alter table T_HR_MANAGEMENTCENTER_L comment 'hr管理中心设置多语言表';
alter table T_HR_MANAGEMENTCENTER_L modify column FPKID int not null comment '多语言内码';
alter table T_HR_MANAGEMENTCENTER_L modify column FID int default null comment '管理中心内码';
alter table T_HR_MANAGEMENTCENTER_L modify column FLOCALEID int default null comment '语言码';
alter table T_HR_MANAGEMENTCENTER_L modify column FNAME nvarchar(100) default null comment '名称';
--建表脚本--
create table T_HR_PracticeUnit(
FID int not null comment '内码'
,FNUMBER nvarchar(30) default null comment '编码'
,FMASTERID int default null comment '用于分配的内码'
,FCREATEORGID int default null comment '创建组织'
,FUSEORGID int default null comment '使用组织'
,FCREATORID int default null comment '创建人'
,FMODIFIERID int default null comment '修改人'
,FAUDITORID int default null comment '审核人'
,FFORBIDDERID int default null comment '禁用人'
,FCREATEDATE datetime default null comment '创建日期'
,FMODIFYDATE datetime default null comment '修改日期'
,FAUDITDATE datetime default null comment '审核日期'
,FFORBIDDATE datetime default null comment '禁用日期'
,FDOCUMENTSTATUS char(1) default null comment '数据状态'
,FFORBIDSTATUS char(1) default null comment '禁用状态'
,FTEL nvarchar(80) default null comment '联系方式'
,primary key (FID)
) comment = '实习单位'
--查询--
select FID as "fid",FNUMBER as "fnumber",FMASTERID as "fmasterid",FCREATEORGID as "fcreateorgid",FUSEORGID as "fuseorgid",FCREATORID as "fcreatorid",FMODIFIERID as "fmodifierid",FAUDITORID as "fauditorid",FFORBIDDERID as "fforbidderid",FCREATEDATE as "fcreatedate",FMODIFYDATE as "fmodifydate",FAUDITDATE as "fauditdate",FFORBIDDATE as "fforbiddate",FDOCUMENTSTATUS as "fdocumentstatus",FFORBIDSTATUS as "fforbidstatus",FTEL as "ftel" from T_HR_PracticeUnit
--查询(中文字段)--
select FID as "内码",FNUMBER as "编码",FMASTERID as "用于分配的内码",FCREATEORGID as "创建组织",FUSEORGID as "使用组织",FCREATORID as "创建人",FMODIFIERID as "修改人",FAUDITORID as "审核人",FFORBIDDERID as "禁用人",FCREATEDATE as "创建日期",FMODIFYDATE as "修改日期",FAUDITDATE as "审核日期",FFORBIDDATE as "禁用日期",FDOCUMENTSTATUS as "数据状态",FFORBIDSTATUS as "禁用状态",FTEL as "联系方式" from T_HR_PracticeUnit
--INSERT脚本--
insert into T_HR_PracticeUnit(FID,FNUMBER,FMASTERID,FCREATEORGID,FUSEORGID,FCREATORID,FMODIFIERID,FAUDITORID,FFORBIDDERID,FCREATEDATE,FMODIFYDATE,FAUDITDATE,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS,FTEL) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
--UPDATE脚本--
update T_HR_PracticeUnit set FID=?,FNUMBER=?,FMASTERID=?,FCREATEORGID=?,FUSEORGID=?,FCREATORID=?,FMODIFIERID=?,FAUDITORID=?,FFORBIDDERID=?,FCREATEDATE=?,FMODIFYDATE=?,FAUDITDATE=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=?,FTEL=? where FID=?
--delete脚本--
delete from T_HR_PracticeUnit where FID=?
--给字段加备注--
alter table T_HR_PracticeUnit comment '实习单位';
alter table T_HR_PracticeUnit modify column FID int not null comment '内码';
alter table T_HR_PracticeUnit modify column FNUMBER nvarchar(30) default null comment '编码';
alter table T_HR_PracticeUnit modify column FMASTERID int default null comment '用于分配的内码';
alter table T_HR_PracticeUnit modify column FCREATEORGID int default null comment '创建组织';
alter table T_HR_PracticeUnit modify column FUSEORGID int default null comment '使用组织';
alter table T_HR_PracticeUnit modify column FCREATORID int default null comment '创建人';
alter table T_HR_PracticeUnit modify column FMODIFIERID int default null comment '修改人';
alter table T_HR_PracticeUnit modify column FAUDITORID int default null comment '审核人';
alter table T_HR_PracticeUnit modify column FFORBIDDERID int default null comment '禁用人';
alter table T_HR_PracticeUnit modify column FCREATEDATE datetime default null comment '创建日期';
alter table T_HR_PracticeUnit modify column FMODIFYDATE datetime default null comment '修改日期';
alter table T_HR_PracticeUnit modify column FAUDITDATE datetime default null comment '审核日期';
alter table T_HR_PracticeUnit modify column FFORBIDDATE datetime default null comment '禁用日期';
alter table T_HR_PracticeUnit modify column FDOCUMENTSTATUS char(1) default null comment '数据状态';
alter table T_HR_PracticeUnit modify column FFORBIDSTATUS char(1) default null comment '禁用状态';
alter table T_HR_PracticeUnit modify column FTEL nvarchar(80) default null comment '联系方式';
--建表脚本--
create table T_HR_PracticeUnit_L(
FPKID int not null comment '多语言内码'
,FID int not null comment '主键'
,FLOCALEID int default null comment '语言码'
,FLEGALPERSON nvarchar(100) default null comment '法人代表'
,FADDRESS nvarchar(255) default null comment '地址信息'
,FDESCRIPTION nvarchar(255) default null comment '描述'
,FNAME nvarchar(80) default null comment '名称'
,primary key (FPKID)
) comment = '实习单位多语言'
--查询--
select FPKID as "fpkid",FID as "fid",FLOCALEID as "flocaleid",FLEGALPERSON as "flegalperson",FADDRESS as "faddress",FDESCRIPTION as "fdescription",FNAME as "fname" from T_HR_PracticeUnit_L
--查询(中文字段)--
select FPKID as "多语言内码",FID as "主键",FLOCALEID as "语言码",FLEGALPERSON as "法人代表",FADDRESS as "地址信息",FDESCRIPTION as "描述",FNAME as "名称" from T_HR_PracticeUnit_L
--INSERT脚本--
insert into T_HR_PracticeUnit_L(FPKID,FID,FLOCALEID,FLEGALPERSON,FADDRESS,FDESCRIPTION,FNAME) values (?,?,?,?,?,?,?)
--UPDATE脚本--
update T_HR_PracticeUnit_L set FPKID=?,FID=?,FLOCALEID=?,FLEGALPERSON=?,FADDRESS=?,FDESCRIPTION=?,FNAME=? where FPKID=?
--delete脚本--
delete from T_HR_PracticeUnit_L where FPKID=?
--给字段加备注--
alter table T_HR_PracticeUnit_L comment '实习单位多语言';
alter table T_HR_PracticeUnit_L modify column FPKID int not null comment '多语言内码';
alter table T_HR_PracticeUnit_L modify column FID int not null comment '主键';
alter table T_HR_PracticeUnit_L modify column FLOCALEID int default null comment '语言码';
alter table T_HR_PracticeUnit_L modify column FLEGALPERSON nvarchar(100) default null comment '法人代表';
alter table T_HR_PracticeUnit_L modify column FADDRESS nvarchar(255) default null comment '地址信息';
alter table T_HR_PracticeUnit_L modify column FDESCRIPTION nvarchar(255) default null comment '描述';
alter table T_HR_PracticeUnit_L modify column FNAME nvarchar(80) default null comment '名称';
推荐阅读