T_ATS_HOLYLIMIT(假期额度) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FID | 主键 | int | 0 | |||
FBILLNO | 单据编号 | nvarchar | 30 | ✓ | |||
FBILLTYPEID | 单据类型 | varchar | 36 | ✓ | |||
FMGRCENTERID | 人事管理中心 | int | ✓ | ||||
FFORBIDSTATUS | 禁用状态 | char | 1 | ✓ | |||
FAUDITORID | 审核人 | int | ✓ | ||||
FCREATORID | 创建人 | int | ✓ | ||||
FDOCUMENTSTATUS | 单据状态 | char | 1 | ✓ | |||
FMODIFYDATE | 修改日期 | datetime | ✓ | ||||
FFORBIDDATE | 禁用日期 | datetime | ✓ | ||||
FAUDITDATE | 审核日期 | datetime | ✓ | ||||
FCREATEDATE | 创建日期 | datetime | ✓ | ||||
FMODIFIERID | 修改人 | int | ✓ | ||||
FFORBIDDERID | 禁用人 | int | ✓ | ||||
FPRIMARYORGID | 主业务组织 | int | ✓ | ||||
FSTAFFID | 员工信息 | int | ✓ | ||||
FPERSONID | 人员信息 | int | ✓ | ||||
FDOCID | 职员 | int | ✓ | ||||
FHOLYTYPE | 假期类型 | int | ✓ | ||||
FSTARTDATE | 周期开始日期 | datetime | ✓ | ||||
FENDDATE | 周期结束日期 | datetime | ✓ | ||||
FPOSTPONEDATE | 延期日期 | datetime | ✓ | ||||
FHOLYTYPEUNIT | 假期单位 | char | 1 | ✓ | |||
FSTANDARDLIMIT | 标准额度 | decimal | 19,6 | ✓ | |||
FMODIFYLIMIT | 增减额度 | decimal | 19,6 | ✓ | |||
FREALLIMIT | 实际额度 | decimal | 19,6 | ✓ | |||
FUSEDLIMIT | 已用额度 | decimal | 19,6 | ✓ | |||
FLEFTLIMIT | 剩余额度 | decimal | 19,6 | ✓ | |||
备注:T_ATS_HOLYLIMIT(假期额度) |
--建表脚本--
create table T_ATS_HOLYLIMIT(
FID int not null comment '主键'
,FBILLNO nvarchar(30) default null comment '单据编号'
,FBILLTYPEID varchar(36) default null comment '单据类型'
,FMGRCENTERID int default null comment '人事管理中心'
,FFORBIDSTATUS char(1) default null comment '禁用状态'
,FAUDITORID int default null comment '审核人'
,FCREATORID int default null comment '创建人'
,FDOCUMENTSTATUS char(1) default null comment '单据状态'
,FMODIFYDATE datetime default null comment '修改日期'
,FFORBIDDATE datetime default null comment '禁用日期'
,FAUDITDATE datetime default null comment '审核日期'
,FCREATEDATE datetime default null comment '创建日期'
,FMODIFIERID int default null comment '修改人'
,FFORBIDDERID int default null comment '禁用人'
,FPRIMARYORGID int default null comment '主业务组织'
,FSTAFFID int default null comment '员工信息'
,FPERSONID int default null comment '人员信息'
,FDOCID int default null comment '职员'
,FHOLYTYPE int default null comment '假期类型'
,FSTARTDATE datetime default null comment '周期开始日期'
,FENDDATE datetime default null comment '周期结束日期'
,FPOSTPONEDATE datetime default null comment '延期日期'
,FHOLYTYPEUNIT char(1) default null comment '假期单位'
,FSTANDARDLIMIT decimal(19,6) default null comment '标准额度'
,FMODIFYLIMIT decimal(19,6) default null comment '增减额度'
,FREALLIMIT decimal(19,6) default null comment '实际额度'
,FUSEDLIMIT decimal(19,6) default null comment '已用额度'
,FLEFTLIMIT decimal(19,6) default null comment '剩余额度'
,primary key (FID)
) comment = '假期额度'
--查询--
select FID as "fid",FBILLNO as "fbillno",FBILLTYPEID as "fbilltypeid",FMGRCENTERID as "fmgrcenterid",FFORBIDSTATUS as "fforbidstatus",FAUDITORID as "fauditorid",FCREATORID as "fcreatorid",FDOCUMENTSTATUS as "fdocumentstatus",FMODIFYDATE as "fmodifydate",FFORBIDDATE as "fforbiddate",FAUDITDATE as "fauditdate",FCREATEDATE as "fcreatedate",FMODIFIERID as "fmodifierid",FFORBIDDERID as "fforbidderid",FPRIMARYORGID as "fprimaryorgid",FSTAFFID as "fstaffid",FPERSONID as "fpersonid",FDOCID as "fdocid",FHOLYTYPE as "fholytype",FSTARTDATE as "fstartdate",FENDDATE as "fenddate",FPOSTPONEDATE as "fpostponedate",FHOLYTYPEUNIT as "fholytypeunit",FSTANDARDLIMIT as "fstandardlimit",FMODIFYLIMIT as "fmodifylimit",FREALLIMIT as "freallimit",FUSEDLIMIT as "fusedlimit",FLEFTLIMIT as "fleftlimit" from T_ATS_HOLYLIMIT
--查询(中文字段)--
select FID as "主键",FBILLNO as "单据编号",FBILLTYPEID as "单据类型",FMGRCENTERID as "人事管理中心",FFORBIDSTATUS as "禁用状态",FAUDITORID as "审核人",FCREATORID as "创建人",FDOCUMENTSTATUS as "单据状态",FMODIFYDATE as "修改日期",FFORBIDDATE as "禁用日期",FAUDITDATE as "审核日期",FCREATEDATE as "创建日期",FMODIFIERID as "修改人",FFORBIDDERID as "禁用人",FPRIMARYORGID as "主业务组织",FSTAFFID as "员工信息",FPERSONID as "人员信息",FDOCID as "职员",FHOLYTYPE as "假期类型",FSTARTDATE as "周期开始日期",FENDDATE as "周期结束日期",FPOSTPONEDATE as "延期日期",FHOLYTYPEUNIT as "假期单位",FSTANDARDLIMIT as "标准额度",FMODIFYLIMIT as "增减额度",FREALLIMIT as "实际额度",FUSEDLIMIT as "已用额度",FLEFTLIMIT as "剩余额度" from T_ATS_HOLYLIMIT
--INSERT脚本--
insert into T_ATS_HOLYLIMIT(FID,FBILLNO,FBILLTYPEID,FMGRCENTERID,FFORBIDSTATUS,FAUDITORID,FCREATORID,FDOCUMENTSTATUS,FMODIFYDATE,FFORBIDDATE,FAUDITDATE,FCREATEDATE,FMODIFIERID,FFORBIDDERID,FPRIMARYORGID,FSTAFFID,FPERSONID,FDOCID,FHOLYTYPE,FSTARTDATE,FENDDATE,FPOSTPONEDATE,FHOLYTYPEUNIT,FSTANDARDLIMIT,FMODIFYLIMIT,FREALLIMIT,FUSEDLIMIT,FLEFTLIMIT) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
--UPDATE脚本--
update T_ATS_HOLYLIMIT set FID=?,FBILLNO=?,FBILLTYPEID=?,FMGRCENTERID=?,FFORBIDSTATUS=?,FAUDITORID=?,FCREATORID=?,FDOCUMENTSTATUS=?,FMODIFYDATE=?,FFORBIDDATE=?,FAUDITDATE=?,FCREATEDATE=?,FMODIFIERID=?,FFORBIDDERID=?,FPRIMARYORGID=?,FSTAFFID=?,FPERSONID=?,FDOCID=?,FHOLYTYPE=?,FSTARTDATE=?,FENDDATE=?,FPOSTPONEDATE=?,FHOLYTYPEUNIT=?,FSTANDARDLIMIT=?,FMODIFYLIMIT=?,FREALLIMIT=?,FUSEDLIMIT=?,FLEFTLIMIT=? where FID=?
--delete脚本--
delete from T_ATS_HOLYLIMIT where FID=?
--给字段加备注--
alter table T_ATS_HOLYLIMIT comment '假期额度';
alter table T_ATS_HOLYLIMIT modify column FID int not null comment '主键';
alter table T_ATS_HOLYLIMIT modify column FBILLNO nvarchar(30) default null comment '单据编号';
alter table T_ATS_HOLYLIMIT modify column FBILLTYPEID varchar(36) default null comment '单据类型';
alter table T_ATS_HOLYLIMIT modify column FMGRCENTERID int default null comment '人事管理中心';
alter table T_ATS_HOLYLIMIT modify column FFORBIDSTATUS char(1) default null comment '禁用状态';
alter table T_ATS_HOLYLIMIT modify column FAUDITORID int default null comment '审核人';
alter table T_ATS_HOLYLIMIT modify column FCREATORID int default null comment '创建人';
alter table T_ATS_HOLYLIMIT modify column FDOCUMENTSTATUS char(1) default null comment '单据状态';
alter table T_ATS_HOLYLIMIT modify column FMODIFYDATE datetime default null comment '修改日期';
alter table T_ATS_HOLYLIMIT modify column FFORBIDDATE datetime default null comment '禁用日期';
alter table T_ATS_HOLYLIMIT modify column FAUDITDATE datetime default null comment '审核日期';
alter table T_ATS_HOLYLIMIT modify column FCREATEDATE datetime default null comment '创建日期';
alter table T_ATS_HOLYLIMIT modify column FMODIFIERID int default null comment '修改人';
alter table T_ATS_HOLYLIMIT modify column FFORBIDDERID int default null comment '禁用人';
alter table T_ATS_HOLYLIMIT modify column FPRIMARYORGID int default null comment '主业务组织';
alter table T_ATS_HOLYLIMIT modify column FSTAFFID int default null comment '员工信息';
alter table T_ATS_HOLYLIMIT modify column FPERSONID int default null comment '人员信息';
alter table T_ATS_HOLYLIMIT modify column FDOCID int default null comment '职员';
alter table T_ATS_HOLYLIMIT modify column FHOLYTYPE int default null comment '假期类型';
alter table T_ATS_HOLYLIMIT modify column FSTARTDATE datetime default null comment '周期开始日期';
alter table T_ATS_HOLYLIMIT modify column FENDDATE datetime default null comment '周期结束日期';
alter table T_ATS_HOLYLIMIT modify column FPOSTPONEDATE datetime default null comment '延期日期';
alter table T_ATS_HOLYLIMIT modify column FHOLYTYPEUNIT char(1) default null comment '假期单位';
alter table T_ATS_HOLYLIMIT modify column FSTANDARDLIMIT decimal(19,6) default null comment '标准额度';
alter table T_ATS_HOLYLIMIT modify column FMODIFYLIMIT decimal(19,6) default null comment '增减额度';
alter table T_ATS_HOLYLIMIT modify column FREALLIMIT decimal(19,6) default null comment '实际额度';
alter table T_ATS_HOLYLIMIT modify column FUSEDLIMIT decimal(19,6) default null comment '已用额度';
alter table T_ATS_HOLYLIMIT modify column FLEFTLIMIT decimal(19,6) default null comment '剩余额度';
T_ATS_HOLY_L(请假单多语言表) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FPKID | FPKID | int | 0 | |||
FID | FID | int | ✓ | ||||
FLocaleID | FLocaleID | int | ✓ | ||||
FHOLYREASON | 请假原因 | nvarchar | 80 | ✓ |
--建表脚本--
create table T_ATS_HOLY_L(
FPKID int<br> not null comment 'FPKID'
,FID int<br> default null comment 'FID'
,FLocaleID int<br> default null comment 'FLocaleID'
,FHOLYREASON nvarchar(80) default null comment '请假原因'
,primary key (FPKID)
) comment = '请假单多语言表'
--查询--
select FPKID as "fpkid",FID as "fid",FLocaleID as "flocaleid",FHOLYREASON as "fholyreason" from T_ATS_HOLY_L
--查询(中文字段)--
select FPKID as "FPKID",FID as "FID",FLocaleID as "FLocaleID",FHOLYREASON as "请假原因" from T_ATS_HOLY_L
--INSERT脚本--
insert into T_ATS_HOLY_L(FPKID,FID,FLocaleID,FHOLYREASON) values (?,?,?,?)
--UPDATE脚本--
update T_ATS_HOLY_L set FPKID=?,FID=?,FLocaleID=?,FHOLYREASON=? where FPKID=?
--delete脚本--
delete from T_ATS_HOLY_L where FPKID=?
--给字段加备注--
alter table T_ATS_HOLY_L comment '请假单多语言表';
alter table T_ATS_HOLY_L modify column FPKID int<br> not null comment 'FPKID';
alter table T_ATS_HOLY_L modify column FID int<br> default null comment 'FID';
alter table T_ATS_HOLY_L modify column FLocaleID int<br> default null comment 'FLocaleID';
alter table T_ATS_HOLY_L modify column FHOLYREASON nvarchar(80) default null comment '请假原因';
推荐阅读