T_ATS_HOLIDAYTYPE(假期类型) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FID | 内码 | int | 0 | |||
FNUMBER | 编码 | nvarchar | 30 | ' ' | |||
FHOLIDAYUNIT | 假期单位 | char | 1 | ✓ | |||
FISOVER | 允许超额请假 | char | 1 | ✓ | |||
FISPERIOD | 启用周期 | char | 1 | ✓ | |||
FPERIODLIMIT | 周期长度 | int | ✓ | ||||
FPERIODUNIT | 周期长度单位 | char | 1 | ✓ | |||
FISFILLHOLIDAY | 允许补请假 | char | 1 | ✓ | |||
FFILLHOLIDAYLIMIT | 补请假期限 | int | ✓ | ||||
FFILLHOLIDAYUNIT | 补请假期限单位 | char | 1 | ✓ | |||
FISINCLUDEREST | 包含公休日 | char | 1 | ✓ | |||
FISINCLUDELEGAL | 包含法定假日 | char | 1 | ✓ | |||
FISMINHOLIDAY | 控制请假最小额度 | char | 1 | ✓ | |||
FMINHOLIDAYLIMIT | 请假最小额度 | decimal | 19,6 | ✓ | |||
FISLIMIT | 控制额度 | char | 1 | ✓ | |||
FISSYSPRESET | 系统预置 | char | 1 | ✓ | |||
FMGRCENTERID | 人事管理中心 | int | ✓ | ||||
FCREATEORGID | 创建组织 | int | ✓ | ||||
FUSEORGID | 使用组织 | int | ✓ | ||||
FCREATORID | 创建人 | int | ✓ | ||||
FCREATEDATE | 创建日期 | datetime | ✓ | ||||
FMODIFIERID | 修改人 | int | ✓ | ||||
FMODIFYDATE | 修改日期 | datetime | ✓ | ||||
FAUDITORID | 审核人 | int | ✓ | ||||
FAUDITDATE | 审核日期 | datetime | ✓ | ||||
FFORBIDDERID | 禁用人 | int | ✓ | ||||
FFORBIDDATE | 禁用日期 | datetime | ✓ | ||||
FDOCUMENTSTATUS | 数据状态 | char | 1 | ✓ | |||
FFORBIDSTATUS | 禁用状态 | char | 1 | ✓ | |||
FMASTERID | FMASTERID | int | ✓ | 0 |
--建表脚本--
create table T_ATS_HOLIDAYTYPE(
FID int not null comment '内码'
,FNUMBER nvarchar(30) not null comment '编码'
,FHOLIDAYUNIT char(1) default null comment '假期单位'
,FISOVER char(1) default null comment '允许超额请假'
,FISPERIOD char(1) default null comment '启用周期'
,FPERIODLIMIT int default null comment '周期长度'
,FPERIODUNIT char(1) default null comment '周期长度单位'
,FISFILLHOLIDAY char(1) default null comment '允许补请假'
,FFILLHOLIDAYLIMIT int default null comment '补请假期限'
,FFILLHOLIDAYUNIT char(1) default null comment '补请假期限单位'
,FISINCLUDEREST char(1) default null comment '包含公休日'
,FISINCLUDELEGAL char(1) default null comment '包含法定假日'
,FISMINHOLIDAY char(1) default null comment '控制请假最小额度'
,FMINHOLIDAYLIMIT decimal(19,6) default null comment '请假最小额度'
,FISLIMIT char(1) default null comment '控制额度'
,FISSYSPRESET char(1) default null comment '系统预置'
,FMGRCENTERID int default null comment '人事管理中心'
,FCREATEORGID int default null comment '创建组织'
,FUSEORGID int default null comment '使用组织'
,FCREATORID int default null comment '创建人'
,FCREATEDATE datetime default null comment '创建日期'
,FMODIFIERID int default null comment '修改人'
,FMODIFYDATE datetime default null comment '修改日期'
,FAUDITORID int default null comment '审核人'
,FAUDITDATE datetime default null comment '审核日期'
,FFORBIDDERID int default null comment '禁用人'
,FFORBIDDATE datetime default null comment '禁用日期'
,FDOCUMENTSTATUS char(1) default null comment '数据状态'
,FFORBIDSTATUS char(1) default null comment '禁用状态'
,FMASTERID int default 0 comment 'FMASTERID'
,primary key (FID)
) comment = '假期类型'
--查询--
select FID as "fid",FNUMBER as "fnumber",FHOLIDAYUNIT as "fholidayunit",FISOVER as "fisover",FISPERIOD as "fisperiod",FPERIODLIMIT as "fperiodlimit",FPERIODUNIT as "fperiodunit",FISFILLHOLIDAY as "fisfillholiday",FFILLHOLIDAYLIMIT as "ffillholidaylimit",FFILLHOLIDAYUNIT as "ffillholidayunit",FISINCLUDEREST as "fisincluderest",FISINCLUDELEGAL as "fisincludelegal",FISMINHOLIDAY as "fisminholiday",FMINHOLIDAYLIMIT as "fminholidaylimit",FISLIMIT as "fislimit",FISSYSPRESET as "fissyspreset",FMGRCENTERID as "fmgrcenterid",FCREATEORGID as "fcreateorgid",FUSEORGID as "fuseorgid",FCREATORID as "fcreatorid",FCREATEDATE as "fcreatedate",FMODIFIERID as "fmodifierid",FMODIFYDATE as "fmodifydate",FAUDITORID as "fauditorid",FAUDITDATE as "fauditdate",FFORBIDDERID as "fforbidderid",FFORBIDDATE as "fforbiddate",FDOCUMENTSTATUS as "fdocumentstatus",FFORBIDSTATUS as "fforbidstatus",FMASTERID as "fmasterid" from T_ATS_HOLIDAYTYPE
--查询(中文字段)--
select FID as "内码",FNUMBER as "编码",FHOLIDAYUNIT as "假期单位",FISOVER as "允许超额请假",FISPERIOD as "启用周期",FPERIODLIMIT as "周期长度",FPERIODUNIT as "周期长度单位",FISFILLHOLIDAY as "允许补请假",FFILLHOLIDAYLIMIT as "补请假期限",FFILLHOLIDAYUNIT as "补请假期限单位",FISINCLUDEREST as "包含公休日",FISINCLUDELEGAL as "包含法定假日",FISMINHOLIDAY as "控制请假最小额度",FMINHOLIDAYLIMIT as "请假最小额度",FISLIMIT as "控制额度",FISSYSPRESET as "系统预置",FMGRCENTERID as "人事管理中心",FCREATEORGID as "创建组织",FUSEORGID as "使用组织",FCREATORID as "创建人",FCREATEDATE as "创建日期",FMODIFIERID as "修改人",FMODIFYDATE as "修改日期",FAUDITORID as "审核人",FAUDITDATE as "审核日期",FFORBIDDERID as "禁用人",FFORBIDDATE as "禁用日期",FDOCUMENTSTATUS as "数据状态",FFORBIDSTATUS as "禁用状态",FMASTERID as "FMASTERID" from T_ATS_HOLIDAYTYPE
--INSERT脚本--
insert into T_ATS_HOLIDAYTYPE(FID,FNUMBER,FHOLIDAYUNIT,FISOVER,FISPERIOD,FPERIODLIMIT,FPERIODUNIT,FISFILLHOLIDAY,FFILLHOLIDAYLIMIT,FFILLHOLIDAYUNIT,FISINCLUDEREST,FISINCLUDELEGAL,FISMINHOLIDAY,FMINHOLIDAYLIMIT,FISLIMIT,FISSYSPRESET,FMGRCENTERID,FCREATEORGID,FUSEORGID,FCREATORID,FCREATEDATE,FMODIFIERID,FMODIFYDATE,FAUDITORID,FAUDITDATE,FFORBIDDERID,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS,FMASTERID) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
--UPDATE脚本--
update T_ATS_HOLIDAYTYPE set FID=?,FNUMBER=?,FHOLIDAYUNIT=?,FISOVER=?,FISPERIOD=?,FPERIODLIMIT=?,FPERIODUNIT=?,FISFILLHOLIDAY=?,FFILLHOLIDAYLIMIT=?,FFILLHOLIDAYUNIT=?,FISINCLUDEREST=?,FISINCLUDELEGAL=?,FISMINHOLIDAY=?,FMINHOLIDAYLIMIT=?,FISLIMIT=?,FISSYSPRESET=?,FMGRCENTERID=?,FCREATEORGID=?,FUSEORGID=?,FCREATORID=?,FCREATEDATE=?,FMODIFIERID=?,FMODIFYDATE=?,FAUDITORID=?,FAUDITDATE=?,FFORBIDDERID=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=?,FMASTERID=? where FID=?
--delete脚本--
delete from T_ATS_HOLIDAYTYPE where FID=?
--给字段加备注--
alter table T_ATS_HOLIDAYTYPE comment '假期类型';
alter table T_ATS_HOLIDAYTYPE modify column FID int not null comment '内码';
alter table T_ATS_HOLIDAYTYPE modify column FNUMBER nvarchar(30) not null comment '编码';
alter table T_ATS_HOLIDAYTYPE modify column FHOLIDAYUNIT char(1) default null comment '假期单位';
alter table T_ATS_HOLIDAYTYPE modify column FISOVER char(1) default null comment '允许超额请假';
alter table T_ATS_HOLIDAYTYPE modify column FISPERIOD char(1) default null comment '启用周期';
alter table T_ATS_HOLIDAYTYPE modify column FPERIODLIMIT int default null comment '周期长度';
alter table T_ATS_HOLIDAYTYPE modify column FPERIODUNIT char(1) default null comment '周期长度单位';
alter table T_ATS_HOLIDAYTYPE modify column FISFILLHOLIDAY char(1) default null comment '允许补请假';
alter table T_ATS_HOLIDAYTYPE modify column FFILLHOLIDAYLIMIT int default null comment '补请假期限';
alter table T_ATS_HOLIDAYTYPE modify column FFILLHOLIDAYUNIT char(1) default null comment '补请假期限单位';
alter table T_ATS_HOLIDAYTYPE modify column FISINCLUDEREST char(1) default null comment '包含公休日';
alter table T_ATS_HOLIDAYTYPE modify column FISINCLUDELEGAL char(1) default null comment '包含法定假日';
alter table T_ATS_HOLIDAYTYPE modify column FISMINHOLIDAY char(1) default null comment '控制请假最小额度';
alter table T_ATS_HOLIDAYTYPE modify column FMINHOLIDAYLIMIT decimal(19,6) default null comment '请假最小额度';
alter table T_ATS_HOLIDAYTYPE modify column FISLIMIT char(1) default null comment '控制额度';
alter table T_ATS_HOLIDAYTYPE modify column FISSYSPRESET char(1) default null comment '系统预置';
alter table T_ATS_HOLIDAYTYPE modify column FMGRCENTERID int default null comment '人事管理中心';
alter table T_ATS_HOLIDAYTYPE modify column FCREATEORGID int default null comment '创建组织';
alter table T_ATS_HOLIDAYTYPE modify column FUSEORGID int default null comment '使用组织';
alter table T_ATS_HOLIDAYTYPE modify column FCREATORID int default null comment '创建人';
alter table T_ATS_HOLIDAYTYPE modify column FCREATEDATE datetime default null comment '创建日期';
alter table T_ATS_HOLIDAYTYPE modify column FMODIFIERID int default null comment '修改人';
alter table T_ATS_HOLIDAYTYPE modify column FMODIFYDATE datetime default null comment '修改日期';
alter table T_ATS_HOLIDAYTYPE modify column FAUDITORID int default null comment '审核人';
alter table T_ATS_HOLIDAYTYPE modify column FAUDITDATE datetime default null comment '审核日期';
alter table T_ATS_HOLIDAYTYPE modify column FFORBIDDERID int default null comment '禁用人';
alter table T_ATS_HOLIDAYTYPE modify column FFORBIDDATE datetime default null comment '禁用日期';
alter table T_ATS_HOLIDAYTYPE modify column FDOCUMENTSTATUS char(1) default null comment '数据状态';
alter table T_ATS_HOLIDAYTYPE modify column FFORBIDSTATUS char(1) default null comment '禁用状态';
alter table T_ATS_HOLIDAYTYPE modify column FMASTERID int default 0 comment 'FMASTERID';
T_ATS_HOLIDAYTYPE_L(假期类型多语言) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FPKID | 多语言内码 | int | 0 | |||
FID | 假期类型内码 | int | ✓ | ||||
FLOCALEID | 语种 | int | ✓ | ||||
FNAME | 名称 | nvarchar | 80 | ✓ | ' ' | ||
FDESCRIPTION | 备注 | nvarchar | 255 | ✓ | ' ' |
--建表脚本--
create table T_ATS_HOLIDAYTYPE_L(
FPKID int not null comment '多语言内码'
,FID int default null comment '假期类型内码'
,FLOCALEID int default null comment '语种'
,FNAME nvarchar(80) default ' ' comment '名称'
,FDESCRIPTION nvarchar(255) default ' ' comment '备注'
,primary key (FPKID)
) comment = '假期类型多语言'
--查询--
select FPKID as "fpkid",FID as "fid",FLOCALEID as "flocaleid",FNAME as "fname",FDESCRIPTION as "fdescription" from T_ATS_HOLIDAYTYPE_L
--查询(中文字段)--
select FPKID as "多语言内码",FID as "假期类型内码",FLOCALEID as "语种",FNAME as "名称",FDESCRIPTION as "备注" from T_ATS_HOLIDAYTYPE_L
--INSERT脚本--
insert into T_ATS_HOLIDAYTYPE_L(FPKID,FID,FLOCALEID,FNAME,FDESCRIPTION) values (?,?,?,?,?)
--UPDATE脚本--
update T_ATS_HOLIDAYTYPE_L set FPKID=?,FID=?,FLOCALEID=?,FNAME=?,FDESCRIPTION=? where FPKID=?
--delete脚本--
delete from T_ATS_HOLIDAYTYPE_L where FPKID=?
--给字段加备注--
alter table T_ATS_HOLIDAYTYPE_L comment '假期类型多语言';
alter table T_ATS_HOLIDAYTYPE_L modify column FPKID int not null comment '多语言内码';
alter table T_ATS_HOLIDAYTYPE_L modify column FID int default null comment '假期类型内码';
alter table T_ATS_HOLIDAYTYPE_L modify column FLOCALEID int default null comment '语种';
alter table T_ATS_HOLIDAYTYPE_L modify column FNAME nvarchar(80) default ' ' comment '名称';
alter table T_ATS_HOLIDAYTYPE_L modify column FDESCRIPTION nvarchar(255) default ' ' comment '备注';
推荐阅读