ATS考勤2.2考勤计算(自动计算、多语言表)
T_ATS_AUTOCALC(自动计算) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FID | FID | int | 0 | |||
FMasterID | FMasterID | int | ✓ | ||||
FNUMBER | FNUMBER | nvarchar | 30 | ✓ | |||
FMGRCENTERID | 人事管理中心 | int | ✓ | ||||
FDATE | 月 | nvarchar | 30 | ✓ | |||
FWEEK | 星期 | nvarchar | 30 | ✓ | |||
FTIME | 执行时间 | datetime | ✓ | ||||
FNEXTEXCUTEDATE | 下次执行时间 | datetime | ✓ | ||||
FCALCRULE | 计算规则 | int | ✓ | ||||
FEXCUTEFREQUENCY | 执行频率 | nvarchar | 30 | ✓ | |||
FSTOPSTATUE | 启用状态 | char | 1 | ✓ | |||
FCREATORID | 创建人 | int | ✓ | ||||
FCREATEDATE | 创建日期 | datetime | ✓ | ||||
FMODIFIERID | 修改人 | int | ✓ | ||||
FMODIFYDATE | 修改日期 | datetime | ✓ | ||||
FAUDITORID | 审核人 | int | ✓ | ||||
FAUDITDATE | 审核日期 | datetime | ✓ | ||||
FFORBIDDERID | 禁用人 | int | ✓ | ||||
FFORBIDDATE | 禁用日期 | datetime | ✓ | ||||
FDOCUMENTSTATUS | 数据状态 | char | 1 | ✓ | |||
FFORBIDSTATUS | 禁用状态 | char | 1 | ✓ | |||
FPRIMARYORGID | 主业务组织 | int | ✓ | ||||
FCREATEORGID | 创建组织 | int | ✓ | ||||
FUSEORGID | 使用组织 | int | ✓ |
--建表脚本--
create table T_ATS_AUTOCALC(
FID int not null comment 'FID'
,FMasterID int default null comment 'FMasterID'
,FNUMBER nvarchar(30) default null comment 'FNUMBER'
,FMGRCENTERID int default null comment '人事管理中心'
,FDATE nvarchar(30) default null comment '月'
,FWEEK nvarchar(30) default null comment '星期'
,FTIME datetime default null comment '执行时间'
,FNEXTEXCUTEDATE datetime default null comment '下次执行时间'
,FCALCRULE int default null comment '计算规则'
,FEXCUTEFREQUENCY nvarchar(30) default null comment '执行频率'
,FSTOPSTATUE char(1) 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 '禁用状态'
,FPRIMARYORGID int default null comment '主业务组织'
,FCREATEORGID int default null comment '创建组织'
,FUSEORGID int default null comment '使用组织'
,primary key (FID)
) comment = '自动计算'
--查询--
select FID as "fid",FMasterID as "fmasterid",FNUMBER as "fnumber",FMGRCENTERID as "fmgrcenterid",FDATE as "fdate",FWEEK as "fweek",FTIME as "ftime",FNEXTEXCUTEDATE as "fnextexcutedate",FCALCRULE as "fcalcrule",FEXCUTEFREQUENCY as "fexcutefrequency",FSTOPSTATUE as "fstopstatue",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",FPRIMARYORGID as "fprimaryorgid",FCREATEORGID as "fcreateorgid",FUSEORGID as "fuseorgid" from T_ATS_AUTOCALC
--查询(中文字段)--
select FID as "FID",FMasterID as "FMasterID",FNUMBER as "FNUMBER",FMGRCENTERID as "人事管理中心",FDATE as "月",FWEEK as "星期",FTIME as "执行时间",FNEXTEXCUTEDATE as "下次执行时间",FCALCRULE as "计算规则",FEXCUTEFREQUENCY as "执行频率",FSTOPSTATUE as "启用状态",FCREATORID as "创建人",FCREATEDATE as "创建日期",FMODIFIERID as "修改人",FMODIFYDATE as "修改日期",FAUDITORID as "审核人",FAUDITDATE as "审核日期",FFORBIDDERID as "禁用人",FFORBIDDATE as "禁用日期",FDOCUMENTSTATUS as "数据状态",FFORBIDSTATUS as "禁用状态",FPRIMARYORGID as "主业务组织",FCREATEORGID as "创建组织",FUSEORGID as "使用组织" from T_ATS_AUTOCALC
--INSERT脚本--
insert into T_ATS_AUTOCALC(FID,FMasterID,FNUMBER,FMGRCENTERID,FDATE,FWEEK,FTIME,FNEXTEXCUTEDATE,FCALCRULE,FEXCUTEFREQUENCY,FSTOPSTATUE,FCREATORID,FCREATEDATE,FMODIFIERID,FMODIFYDATE,FAUDITORID,FAUDITDATE,FFORBIDDERID,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS,FPRIMARYORGID,FCREATEORGID,FUSEORGID) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
--UPDATE脚本--
update T_ATS_AUTOCALC set FID=?,FMasterID=?,FNUMBER=?,FMGRCENTERID=?,FDATE=?,FWEEK=?,FTIME=?,FNEXTEXCUTEDATE=?,FCALCRULE=?,FEXCUTEFREQUENCY=?,FSTOPSTATUE=?,FCREATORID=?,FCREATEDATE=?,FMODIFIERID=?,FMODIFYDATE=?,FAUDITORID=?,FAUDITDATE=?,FFORBIDDERID=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=?,FPRIMARYORGID=?,FCREATEORGID=?,FUSEORGID=? where FID=?
--delete脚本--
delete from T_ATS_AUTOCALC where FID=?
--给字段加备注--
alter table T_ATS_AUTOCALC comment '自动计算';
alter table T_ATS_AUTOCALC modify column FID int not null comment 'FID';
alter table T_ATS_AUTOCALC modify column FMasterID int default null comment 'FMasterID';
alter table T_ATS_AUTOCALC modify column FNUMBER nvarchar(30) default null comment 'FNUMBER';
alter table T_ATS_AUTOCALC modify column FMGRCENTERID int default null comment '人事管理中心';
alter table T_ATS_AUTOCALC modify column FDATE nvarchar(30) default null comment '月';
alter table T_ATS_AUTOCALC modify column FWEEK nvarchar(30) default null comment '星期';
alter table T_ATS_AUTOCALC modify column FTIME datetime default null comment '执行时间';
alter table T_ATS_AUTOCALC modify column FNEXTEXCUTEDATE datetime default null comment '下次执行时间';
alter table T_ATS_AUTOCALC modify column FCALCRULE int default null comment '计算规则';
alter table T_ATS_AUTOCALC modify column FEXCUTEFREQUENCY nvarchar(30) default null comment '执行频率';
alter table T_ATS_AUTOCALC modify column FSTOPSTATUE char(1) default null comment '启用状态';
alter table T_ATS_AUTOCALC modify column FCREATORID int default null comment '创建人';
alter table T_ATS_AUTOCALC modify column FCREATEDATE datetime default null comment '创建日期';
alter table T_ATS_AUTOCALC modify column FMODIFIERID int default null comment '修改人';
alter table T_ATS_AUTOCALC modify column FMODIFYDATE datetime default null comment '修改日期';
alter table T_ATS_AUTOCALC modify column FAUDITORID int default null comment '审核人';
alter table T_ATS_AUTOCALC modify column FAUDITDATE datetime default null comment '审核日期';
alter table T_ATS_AUTOCALC modify column FFORBIDDERID int default null comment '禁用人';
alter table T_ATS_AUTOCALC modify column FFORBIDDATE datetime default null comment '禁用日期';
alter table T_ATS_AUTOCALC modify column FDOCUMENTSTATUS char(1) default null comment '数据状态';
alter table T_ATS_AUTOCALC modify column FFORBIDSTATUS char(1) default null comment '禁用状态';
alter table T_ATS_AUTOCALC modify column FPRIMARYORGID int default null comment '主业务组织';
alter table T_ATS_AUTOCALC modify column FCREATEORGID int default null comment '创建组织';
alter table T_ATS_AUTOCALC modify column FUSEORGID int default null comment '使用组织';
T_ATS_AUTOCALC_L(自动计算多语言表) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FPKID | FPKID | int | 0 | |||
FID | FID | int | ✓ | ||||
FLocaleID | FLocaleID | int | ✓ | ||||
FNAME | FNAME | nvarchar | 80 | ✓ |
--建表脚本--
create table T_ATS_AUTOCALC_L(
FPKID int not null comment 'FPKID'
,FID int default null comment 'FID'
,FLocaleID int default null comment 'FLocaleID'
,FNAME nvarchar(80) default null comment 'FNAME'
,primary key (FPKID)
) comment = '自动计算多语言表'
--查询--
select FPKID as "fpkid",FID as "fid",FLocaleID as "flocaleid",FNAME as "fname" from T_ATS_AUTOCALC_L
--查询(中文字段)--
select FPKID as "FPKID",FID as "FID",FLocaleID as "FLocaleID",FNAME as "FNAME" from T_ATS_AUTOCALC_L
--INSERT脚本--
insert into T_ATS_AUTOCALC_L(FPKID,FID,FLocaleID,FNAME) values (?,?,?,?)
--UPDATE脚本--
update T_ATS_AUTOCALC_L set FPKID=?,FID=?,FLocaleID=?,FNAME=? where FPKID=?
--delete脚本--
delete from T_ATS_AUTOCALC_L where FPKID=?
--给字段加备注--
alter table T_ATS_AUTOCALC_L comment '自动计算多语言表';
alter table T_ATS_AUTOCALC_L modify column FPKID int not null comment 'FPKID';
alter table T_ATS_AUTOCALC_L modify column FID int default null comment 'FID';
alter table T_ATS_AUTOCALC_L modify column FLocaleID int default null comment 'FLocaleID';
alter table T_ATS_AUTOCALC_L modify column FNAME nvarchar(80) default null comment 'FNAME';
ATS考勤2.2考勤计算(自动计算、多语言表)
本文2024-09-16 18:17:32发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-21194.html