强烈推荐篇:HR基础管理 / 基础管理(1)原创
金蝶云社区-枯藤老树昏鸦
枯藤老树昏鸦
5人赞赏了该文章 118次浏览 未经作者许可,禁止转载编辑于2024年02月23日 08:48:36

image.png


--建表脚本--

create table T_HR_BUSINESSDELEGATE(

FID int not null  comment '业务委托内码'

,FNUMBER nvarchar(80) default null  comment '编码'

,FSOURCEBOID int not null  comment '源业务组织'

,FMANAGEMENTCENTERID int not null  comment '目标管理中心'

,FDELEGATETYPE 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) default ''''  comment '数据状态'

,FFORBIDSTATUS char(1) default ''''  comment '禁用状态'

,primary key (FID)

) comment = 'hr业务委托'


--查询--

select FID as "fid",FNUMBER as "fnumber",FSOURCEBOID as "fsourceboid",FMANAGEMENTCENTERID as "fmanagementcenterid",FDELEGATETYPE as "fdelegatetype",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" from T_HR_BUSINESSDELEGATE


--查询(中文字段)--

select FID as "业务委托内码",FNUMBER as "编码",FSOURCEBOID as "源业务组织",FMANAGEMENTCENTERID as "目标管理中心",FDELEGATETYPE 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 "禁用状态" from T_HR_BUSINESSDELEGATE


--INSERT脚本--

insert into T_HR_BUSINESSDELEGATE(FID,FNUMBER,FSOURCEBOID,FMANAGEMENTCENTERID,FDELEGATETYPE,FEFFECTDATE,FEXPIRYDATE,FREMARK,FCREATEORGID,FUSEORGID,FCREATORID,FMODIFIERID,FAUDITORID,FFORBIDORID,FCREATEDATE,FMODIFYDATE,FAUDITDATE,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)


--UPDATE脚本--

update T_HR_BUSINESSDELEGATE set FID=?,FNUMBER=?,FSOURCEBOID=?,FMANAGEMENTCENTERID=?,FDELEGATETYPE=?,FEFFECTDATE=?,FEXPIRYDATE=?,FREMARK=?,FCREATEORGID=?,FUSEORGID=?,FCREATORID=?,FMODIFIERID=?,FAUDITORID=?,FFORBIDORID=?,FCREATEDATE=?,FMODIFYDATE=?,FAUDITDATE=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=? where FID=?


--delete脚本--

delete from T_HR_BUSINESSDELEGATE where FID=?


--给字段加备注--

alter table T_HR_BUSINESSDELEGATE comment 'hr业务委托';

alter table T_HR_BUSINESSDELEGATE modify column FID int not null  comment '业务委托内码';

alter table T_HR_BUSINESSDELEGATE modify column FNUMBER nvarchar(80) default null  comment '编码';

alter table T_HR_BUSINESSDELEGATE modify column FSOURCEBOID int not null  comment '源业务组织';

alter table T_HR_BUSINESSDELEGATE modify column FMANAGEMENTCENTERID int not null  comment '目标管理中心';

alter table T_HR_BUSINESSDELEGATE modify column FDELEGATETYPE nvarchar(20) default null  comment '委托类型';

alter table T_HR_BUSINESSDELEGATE modify column FEFFECTDATE datetime default null  comment '生效日期';

alter table T_HR_BUSINESSDELEGATE modify column FEXPIRYDATE datetime default null  comment '失效日期';

alter table T_HR_BUSINESSDELEGATE modify column FREMARK nvarchar(255) default null  comment '描述';

alter table T_HR_BUSINESSDELEGATE modify column FCREATEORGID int not null  comment '创建组织';

alter table T_HR_BUSINESSDELEGATE modify column FUSEORGID int not null  comment '使用组织';

alter table T_HR_BUSINESSDELEGATE modify column FCREATORID int not null  comment '创建人';

alter table T_HR_BUSINESSDELEGATE modify column FMODIFIERID int not null  comment '修改人';

alter table T_HR_BUSINESSDELEGATE modify column FAUDITORID int not null  comment '审核人';

alter table T_HR_BUSINESSDELEGATE modify column FFORBIDORID int not null  comment '禁用人';

alter table T_HR_BUSINESSDELEGATE modify column FCREATEDATE datetime default null  comment '创建日期';

alter table T_HR_BUSINESSDELEGATE modify column FMODIFYDATE datetime default null  comment '修改日期';

alter table T_HR_BUSINESSDELEGATE modify column FAUDITDATE datetime default null  comment '审核日期';

alter table T_HR_BUSINESSDELEGATE modify column FFORBIDDATE datetime default null  comment '禁用日期';

alter table T_HR_BUSINESSDELEGATE modify column FDOCUMENTSTATUS char(1) default ''''  comment '数据状态';

alter table T_HR_BUSINESSDELEGATE modify column FFORBIDSTATUS char(1) default ''''  comment '禁用状态';



--建表脚本--

create table T_HR_BUSINESSDELEGATE_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_BUSINESSDELEGATE_L


--查询(中文字段)--

select FPKID as "多语言内码",FID as "业务委托内码",FLOCALEID as "语言码",FNAME as "名称" from T_HR_BUSINESSDELEGATE_L


--INSERT脚本--

insert into T_HR_BUSINESSDELEGATE_L(FPKID,FID,FLOCALEID,FNAME) values (?,?,?,?)


--UPDATE脚本--

update T_HR_BUSINESSDELEGATE_L set FPKID=?,FID=?,FLOCALEID=?,FNAME=? where FPKID=?


--delete脚本--

delete from T_HR_BUSINESSDELEGATE_L where FPKID=?


--给字段加备注--

alter table T_HR_BUSINESSDELEGATE_L comment 'hr业务委托';

alter table T_HR_BUSINESSDELEGATE_L modify column FPKID int not null  comment '多语言内码';

alter table T_HR_BUSINESSDELEGATE_L modify column FID int default null  comment '业务委托内码';

alter table T_HR_BUSINESSDELEGATE_L modify column FLOCALEID int default null  comment '语言码';

alter table T_HR_BUSINESSDELEGATE_L modify column FNAME nvarchar(100) default null  comment '名称';


--建表脚本--

create table T_HR_DISPATCHSITE(

FID int not null  comment '内码'

,FNUMBER nvarchar(80) 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 '禁用状态'

,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" from T_HR_DISPATCHSITE


--查询(中文字段)--

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 "禁用状态" from T_HR_DISPATCHSITE


--INSERT脚本--

insert into T_HR_DISPATCHSITE(FID,FNUMBER,FMASTERID,FCREATEORGID,FUSEORGID,FCREATORID,FMODIFIERID,FAUDITORID,FFORBIDDERID,FCREATEDATE,FMODIFYDATE,FAUDITDATE,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)


--UPDATE脚本--

update T_HR_DISPATCHSITE set FID=?,FNUMBER=?,FMASTERID=?,FCREATEORGID=?,FUSEORGID=?,FCREATORID=?,FMODIFIERID=?,FAUDITORID=?,FFORBIDDERID=?,FCREATEDATE=?,FMODIFYDATE=?,FAUDITDATE=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=? where FID=?


--delete脚本--

delete from T_HR_DISPATCHSITE where FID=?


--给字段加备注--

alter table T_HR_DISPATCHSITE comment '外派地点';

alter table T_HR_DISPATCHSITE modify column FID int not null  comment '内码';

alter table T_HR_DISPATCHSITE modify column FNUMBER nvarchar(80) default null  comment '编码';

alter table T_HR_DISPATCHSITE modify column FMASTERID int default null  comment '用于分配的内码';

alter table T_HR_DISPATCHSITE modify column FCREATEORGID int default null  comment '创建组织';

alter table T_HR_DISPATCHSITE modify column FUSEORGID int default null  comment '使用组织';

alter table T_HR_DISPATCHSITE modify column FCREATORID int default null  comment '创建人';

alter table T_HR_DISPATCHSITE modify column FMODIFIERID int default null  comment '修改人';

alter table T_HR_DISPATCHSITE modify column FAUDITORID int default null  comment '审核人';

alter table T_HR_DISPATCHSITE modify column FFORBIDDERID int default null  comment '禁用人';

alter table T_HR_DISPATCHSITE modify column FCREATEDATE datetime default null  comment '创建日期';

alter table T_HR_DISPATCHSITE modify column FMODIFYDATE datetime default null  comment '修改日期';

alter table T_HR_DISPATCHSITE modify column FAUDITDATE datetime default null  comment '审核日期';

alter table T_HR_DISPATCHSITE modify column FFORBIDDATE datetime default null  comment '禁用日期';

alter table T_HR_DISPATCHSITE modify column FDOCUMENTSTATUS char(1) default null  comment '数据状态';

alter table T_HR_DISPATCHSITE modify column FFORBIDSTATUS char(1) default null  comment '禁用状态';



--建表脚本--

create table T_HR_DISPATCHSITE_L(

FPKID int not null  comment '多语言内码'

,FID int not null  comment '主键'

,FLOCALEID int 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",FADDRESS as "faddress",FDESCRIPTION as "fdescription",FNAME as "fname" from T_HR_DISPATCHSITE_L


--查询(中文字段)--

select FPKID as "多语言内码",FID as "主键",FLOCALEID as "语言码",FADDRESS as "地址信息",FDESCRIPTION as "描述",FNAME as "名称" from T_HR_DISPATCHSITE_L


--INSERT脚本--

insert into T_HR_DISPATCHSITE_L(FPKID,FID,FLOCALEID,FADDRESS,FDESCRIPTION,FNAME) values (?,?,?,?,?,?)


--UPDATE脚本--

update T_HR_DISPATCHSITE_L set FPKID=?,FID=?,FLOCALEID=?,FADDRESS=?,FDESCRIPTION=?,FNAME=? where FPKID=?


--delete脚本--

delete from T_HR_DISPATCHSITE_L where FPKID=?


--给字段加备注--

alter table T_HR_DISPATCHSITE_L comment '外派地点多语言';

alter table T_HR_DISPATCHSITE_L modify column FPKID int not null  comment '多语言内码';

alter table T_HR_DISPATCHSITE_L modify column FID int not null  comment '主键';

alter table T_HR_DISPATCHSITE_L modify column FLOCALEID int default null  comment '语言码';

alter table T_HR_DISPATCHSITE_L modify column FADDRESS nvarchar(255) default null  comment '地址信息';

alter table T_HR_DISPATCHSITE_L modify column FDESCRIPTION nvarchar(255) default null  comment '描述';

alter table T_HR_DISPATCHSITE_L modify column FNAME nvarchar(80) default null  comment '名称';



--建表脚本--

create table T_HR_LEGALPERSON(

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 '禁用状态'

,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" from T_HR_LEGALPERSON


--查询(中文字段)--

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 "禁用状态" from T_HR_LEGALPERSON


--INSERT脚本--

insert into T_HR_LEGALPERSON(FID,FNUMBER,FMASTERID,FCREATEORGID,FUSEORGID,FCREATORID,FMODIFIERID,FAUDITORID,FFORBIDDERID,FCREATEDATE,FMODIFYDATE,FAUDITDATE,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)


--UPDATE脚本--

update T_HR_LEGALPERSON set FID=?,FNUMBER=?,FMASTERID=?,FCREATEORGID=?,FUSEORGID=?,FCREATORID=?,FMODIFIERID=?,FAUDITORID=?,FFORBIDDERID=?,FCREATEDATE=?,FMODIFYDATE=?,FAUDITDATE=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=? where FID=?


--delete脚本--

delete from T_HR_LEGALPERSON where FID=?


--给字段加备注--

alter table T_HR_LEGALPERSON comment '企业劳动合同甲方';

alter table T_HR_LEGALPERSON modify column FID int not null  comment '内码';

alter table T_HR_LEGALPERSON modify column FNUMBER nvarchar(30) default null  comment '编码';

alter table T_HR_LEGALPERSON modify column FMASTERID int default null  comment '用于分配的内码';

alter table T_HR_LEGALPERSON modify column FCREATEORGID int default null  comment '创建组织';

alter table T_HR_LEGALPERSON modify column FUSEORGID int default null  comment '使用组织';

alter table T_HR_LEGALPERSON modify column FCREATORID int default null  comment '创建人';

alter table T_HR_LEGALPERSON modify column FMODIFIERID int default null  comment '修改人';

alter table T_HR_LEGALPERSON modify column FAUDITORID int default null  comment '审核人';

alter table T_HR_LEGALPERSON modify column FFORBIDDERID int default null  comment '禁用人';

alter table T_HR_LEGALPERSON modify column FCREATEDATE datetime default null  comment '创建日期';

alter table T_HR_LEGALPERSON modify column FMODIFYDATE datetime default null  comment '修改日期';

alter table T_HR_LEGALPERSON modify column FAUDITDATE datetime default null  comment '审核日期';

alter table T_HR_LEGALPERSON modify column FFORBIDDATE datetime default null  comment '禁用日期';

alter table T_HR_LEGALPERSON modify column FDOCUMENTSTATUS char(1) default null  comment '数据状态';

alter table T_HR_LEGALPERSON modify column FFORBIDSTATUS char(1) default null  comment '禁用状态';



--建表脚本--

create table T_HR_LEGALPERSON_L(

FPKID int not null  comment '多语言内码'

,FID int not null  comment '主键'

,FLOCALEID int default null  comment '语言码'

,FLEGALPERSON nvarchar(80) 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_LEGALPERSON_L


--查询(中文字段)--

select FPKID as "多语言内码",FID as "主键",FLOCALEID as "语言码",FLEGALPERSON as "法人代表",FADDRESS as "地址信息",FDESCRIPTION as "描述",FNAME as "名称" from T_HR_LEGALPERSON_L


--INSERT脚本--

insert into T_HR_LEGALPERSON_L(FPKID,FID,FLOCALEID,FLEGALPERSON,FADDRESS,FDESCRIPTION,FNAME) values (?,?,?,?,?,?,?)


--UPDATE脚本--

update T_HR_LEGALPERSON_L set FPKID=?,FID=?,FLOCALEID=?,FLEGALPERSON=?,FADDRESS=?,FDESCRIPTION=?,FNAME=? where FPKID=?


--delete脚本--

delete from T_HR_LEGALPERSON_L where FPKID=?


--给字段加备注--

alter table T_HR_LEGALPERSON_L comment '企业劳动合同甲方多语言表';

alter table T_HR_LEGALPERSON_L modify column FPKID int not null  comment '多语言内码';

alter table T_HR_LEGALPERSON_L modify column FID int not null  comment '主键';

alter table T_HR_LEGALPERSON_L modify column FLOCALEID int default null  comment '语言码';

alter table T_HR_LEGALPERSON_L modify column FLEGALPERSON nvarchar(80) default null  comment '法人代表';

alter table T_HR_LEGALPERSON_L modify column FADDRESS nvarchar(255) default null  comment '地址信息';

alter table T_HR_LEGALPERSON_L modify column FDESCRIPTION nvarchar(255) default null  comment '描述';

alter table T_HR_LEGALPERSON_L modify column FNAME nvarchar(80) default null  comment '名称';



上传图片


图标赞 5
5人点赞
还没有人点赞,快来当第一个点赞的人吧!
图标打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!