ATS考勤2.13考勤计算( 加班单、多语言表)
T_ATS_OVERTIME(加班单) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FID | 内码 | int | 0 | |||
FDOCID | 考勤档案内码 | int | ✓ | ||||
FSTAFFID | 员工内码 | int | ✓ | ||||
FPERSONID | 人员内码 | int | ✓ | ||||
FMGRCENTERID | 人事管理中心内码 | int | ✓ | ||||
FPRIMARYORGID | 主业务组织内码 | int | ✓ | ||||
FDATE | 加班日期 | datetime | ✓ | ||||
FSTARTTIME | 开始时间 | datetime | ✓ | ||||
FSTARTTIMETYPE | 开始时间时间范围 | char | 1 | ✓ | |||
FENDTIME | 结束时间 | datetime | ✓ | ||||
FENDTIMETYPE | 结束时间时间范围 | char | 1 | ✓ | |||
FAPPLYOTTIME | 申请加班小时数 | decimal | 19,6 | ✓ | |||
FRESTTIME | 休息时长分钟 | int | ✓ | ||||
FOTTYPE | 加班类型 | char | 1 | ✓ | |||
FCOMPENSETYPE | 补偿方式 | char | 1 | ✓ | |||
FOTREASON | 加班原因 | varchar | 36 | ✓ | |||
FREALOTTIME | 实际加班小时数 | decimal | 19,6 | ✓ | |||
FREALSTARTTIME | 实际开始时间 | datetime | ✓ | ||||
FREALENDTIME | 实际结束时间 | datetime | ✓ | ||||
FAPPLYDATE | 申请日期 | datetime | ✓ | ||||
FCREATORID | 创建人 | int | ✓ | ||||
FCREATEDATE | 创建日期 | datetime | ✓ | ||||
FMODIFIERID | 修改人 | int | ✓ | ||||
FMODIFYDATE | 修改日期 | datetime | ✓ | ||||
FAUDITORID | 审核人 | int | ✓ | ||||
FAUDITDATE | 审核日期 | datetime | ✓ | ||||
FFORBIDDERID | 禁用人 | int | ✓ | ||||
FFORBIDDATE | 禁用日期 | datetime | ✓ | ||||
FDOCUMENTSTATUS | 数据状态 | char | 1 | ✓ | |||
FFORBIDSTATUS | 禁用状态 | char | 1 | ✓ | |||
FBILLNO | 单据编号 | nvarchar | 30 | ✓ | |||
FBILLTYPEID | 单据类型 | varchar | 36 | ✓ | |||
FACTUALSTARTTIME | 加班实际开始时间 | datetime | ✓ | ||||
FACTUALENDTIME | 加班实际结束时间 | datetime | ✓ |
--建表脚本--
create table T_ATS_OVERTIME(
FID int not null comment '内码'
,FDOCID int default null comment '考勤档案内码'
,FSTAFFID int default null comment '员工内码'
,FPERSONID int default null comment '人员内码'
,FMGRCENTERID int default null comment '人事管理中心内码'
,FPRIMARYORGID int default null comment '主业务组织内码'
,FDATE datetime default null comment '加班日期'
,FSTARTTIME datetime default null comment '开始时间'
,FSTARTTIMETYPE char(1) default null comment '开始时间时间范围'
,FENDTIME datetime default null comment '结束时间'
,FENDTIMETYPE char(1) default null comment '结束时间时间范围'
,FAPPLYOTTIME decimal(19,6) default null comment '申请加班小时数'
,FRESTTIME int default null comment '休息时长分钟'
,FOTTYPE char(1) default null comment '加班类型'
,FCOMPENSETYPE char(1) default null comment '补偿方式'
,FOTREASON varchar(36) default null comment '加班原因'
,FREALOTTIME decimal(19,6) default null comment '实际加班小时数'
,FREALSTARTTIME datetime default null comment '实际开始时间'
,FREALENDTIME datetime default null comment '实际结束时间'
,FAPPLYDATE datetime 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 '禁用状态'
,FBILLNO nvarchar(30) default null comment '单据编号'
,FBILLTYPEID varchar(36) default null comment '单据类型'
,FACTUALSTARTTIME datetime default null comment '加班实际开始时间'
,FACTUALENDTIME datetime default null comment '加班实际结束时间'
,primary key (FID)
) comment = '加班单'
--查询--
select FID as "fid",FDOCID as "fdocid",FSTAFFID as "fstaffid",FPERSONID as "fpersonid",FMGRCENTERID as "fmgrcenterid",FPRIMARYORGID as "fprimaryorgid",FDATE as "fdate",FSTARTTIME as "fstarttime",FSTARTTIMETYPE as "fstarttimetype",FENDTIME as "fendtime",FENDTIMETYPE as "fendtimetype",FAPPLYOTTIME as "fapplyottime",FRESTTIME as "fresttime",FOTTYPE as "fottype",FCOMPENSETYPE as "fcompensetype",FOTREASON as "fotreason",FREALOTTIME as "frealottime",FREALSTARTTIME as "frealstarttime",FREALENDTIME as "frealendtime",FAPPLYDATE as "fapplydate",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",FBILLNO as "fbillno",FBILLTYPEID as "fbilltypeid",FACTUALSTARTTIME as "factualstarttime",FACTUALENDTIME as "factualendtime" from T_ATS_OVERTIME
--查询(中文字段)--
select FID as "内码",FDOCID as "考勤档案内码",FSTAFFID as "员工内码",FPERSONID as "人员内码",FMGRCENTERID as "人事管理中心内码",FPRIMARYORGID as "主业务组织内码",FDATE as "加班日期",FSTARTTIME as "开始时间",FSTARTTIMETYPE as "开始时间时间范围",FENDTIME as "结束时间",FENDTIMETYPE as "结束时间时间范围",FAPPLYOTTIME as "申请加班小时数",FRESTTIME as "休息时长分钟",FOTTYPE as "加班类型",FCOMPENSETYPE as "补偿方式",FOTREASON as "加班原因",FREALOTTIME as "实际加班小时数",FREALSTARTTIME as "实际开始时间",FREALENDTIME as "实际结束时间",FAPPLYDATE as "申请日期",FCREATORID as "创建人",FCREATEDATE as "创建日期",FMODIFIERID as "修改人",FMODIFYDATE as "修改日期",FAUDITORID as "审核人",FAUDITDATE as "审核日期",FFORBIDDERID as "禁用人",FFORBIDDATE as "禁用日期",FDOCUMENTSTATUS as "数据状态",FFORBIDSTATUS as "禁用状态",FBILLNO as "单据编号",FBILLTYPEID as "单据类型",FACTUALSTARTTIME as "加班实际开始时间",FACTUALENDTIME as "加班实际结束时间" from T_ATS_OVERTIME
--INSERT脚本--
insert into T_ATS_OVERTIME(FID,FDOCID,FSTAFFID,FPERSONID,FMGRCENTERID,FPRIMARYORGID,FDATE,FSTARTTIME,FSTARTTIMETYPE,FENDTIME,FENDTIMETYPE,FAPPLYOTTIME,FRESTTIME,FOTTYPE,FCOMPENSETYPE,FOTREASON,FREALOTTIME,FREALSTARTTIME,FREALENDTIME,FAPPLYDATE,FCREATORID,FCREATEDATE,FMODIFIERID,FMODIFYDATE,FAUDITORID,FAUDITDATE,FFORBIDDERID,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS,FBILLNO,FBILLTYPEID,FACTUALSTARTTIME,FACTUALENDTIME) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
--UPDATE脚本--
update T_ATS_OVERTIME set FID=?,FDOCID=?,FSTAFFID=?,FPERSONID=?,FMGRCENTERID=?,FPRIMARYORGID=?,FDATE=?,FSTARTTIME=?,FSTARTTIMETYPE=?,FENDTIME=?,FENDTIMETYPE=?,FAPPLYOTTIME=?,FRESTTIME=?,FOTTYPE=?,FCOMPENSETYPE=?,FOTREASON=?,FREALOTTIME=?,FREALSTARTTIME=?,FREALENDTIME=?,FAPPLYDATE=?,FCREATORID=?,FCREATEDATE=?,FMODIFIERID=?,FMODIFYDATE=?,FAUDITORID=?,FAUDITDATE=?,FFORBIDDERID=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=?,FBILLNO=?,FBILLTYPEID=?,FACTUALSTARTTIME=?,FACTUALENDTIME=? where FID=?
--delete脚本--
delete from T_ATS_OVERTIME where FID=?
--给字段加备注--
alter table T_ATS_OVERTIME comment '加班单';
alter table T_ATS_OVERTIME modify column FID int not null comment '内码';
alter table T_ATS_OVERTIME modify column FDOCID int default null comment '考勤档案内码';
alter table T_ATS_OVERTIME modify column FSTAFFID int default null comment '员工内码';
alter table T_ATS_OVERTIME modify column FPERSONID int default null comment '人员内码';
alter table T_ATS_OVERTIME modify column FMGRCENTERID int default null comment '人事管理中心内码';
alter table T_ATS_OVERTIME modify column FPRIMARYORGID int default null comment '主业务组织内码';
alter table T_ATS_OVERTIME modify column FDATE datetime default null comment '加班日期';
alter table T_ATS_OVERTIME modify column FSTARTTIME datetime default null comment '开始时间';
alter table T_ATS_OVERTIME modify column FSTARTTIMETYPE char(1) default null comment '开始时间时间范围';
alter table T_ATS_OVERTIME modify column FENDTIME datetime default null comment '结束时间';
alter table T_ATS_OVERTIME modify column FENDTIMETYPE char(1) default null comment '结束时间时间范围';
alter table T_ATS_OVERTIME modify column FAPPLYOTTIME decimal(19,6) default null comment '申请加班小时数';
alter table T_ATS_OVERTIME modify column FRESTTIME int default null comment '休息时长分钟';
alter table T_ATS_OVERTIME modify column FOTTYPE char(1) default null comment '加班类型';
alter table T_ATS_OVERTIME modify column FCOMPENSETYPE char(1) default null comment '补偿方式';
alter table T_ATS_OVERTIME modify column FOTREASON varchar(36) default null comment '加班原因';
alter table T_ATS_OVERTIME modify column FREALOTTIME decimal(19,6) default null comment '实际加班小时数';
alter table T_ATS_OVERTIME modify column FREALSTARTTIME datetime default null comment '实际开始时间';
alter table T_ATS_OVERTIME modify column FREALENDTIME datetime default null comment '实际结束时间';
alter table T_ATS_OVERTIME modify column FAPPLYDATE datetime default null comment '申请日期';
alter table T_ATS_OVERTIME modify column FCREATORID int default null comment '创建人';
alter table T_ATS_OVERTIME modify column FCREATEDATE datetime default null comment '创建日期';
alter table T_ATS_OVERTIME modify column FMODIFIERID int default null comment '修改人';
alter table T_ATS_OVERTIME modify column FMODIFYDATE datetime default null comment '修改日期';
alter table T_ATS_OVERTIME modify column FAUDITORID int default null comment '审核人';
alter table T_ATS_OVERTIME modify column FAUDITDATE datetime default null comment '审核日期';
alter table T_ATS_OVERTIME modify column FFORBIDDERID int default null comment '禁用人';
alter table T_ATS_OVERTIME modify column FFORBIDDATE datetime default null comment '禁用日期';
alter table T_ATS_OVERTIME modify column FDOCUMENTSTATUS char(1) default null comment '数据状态';
alter table T_ATS_OVERTIME modify column FFORBIDSTATUS char(1) default null comment '禁用状态';
alter table T_ATS_OVERTIME modify column FBILLNO nvarchar(30) default null comment '单据编号';
alter table T_ATS_OVERTIME modify column FBILLTYPEID varchar(36) default null comment '单据类型';
alter table T_ATS_OVERTIME modify column FACTUALSTARTTIME datetime default null comment '加班实际开始时间';
alter table T_ATS_OVERTIME modify column FACTUALENDTIME datetime default null comment '加班实际结束时间';
T_ATS_OVERTIME_L(加班单多语言表) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FPKID | 多语言内码 | int | 0 | |||
FID | 加班单内码 | int | ✓ | ||||
FLOCALEID | 语种 | int | ✓ | ||||
FDESCRIPTION | 备注 | nvarchar | 255 | ' ' |
--建表脚本--
create table T_ATS_OVERTIME_L(
FPKID int not null comment '多语言内码'
,FID int default null comment '加班单内码'
,FLOCALEID int default null comment '语种'
,FDESCRIPTION nvarchar(255) not null comment '备注'
,primary key (FPKID)
) comment = '加班单多语言表'
--查询--
select FPKID as "fpkid",FID as "fid",FLOCALEID as "flocaleid",FDESCRIPTION as "fdescription" from T_ATS_OVERTIME_L
--查询(中文字段)--
select FPKID as "多语言内码",FID as "加班单内码",FLOCALEID as "语种",FDESCRIPTION as "备注" from T_ATS_OVERTIME_L
--INSERT脚本--
insert into T_ATS_OVERTIME_L(FPKID,FID,FLOCALEID,FDESCRIPTION) values (?,?,?,?)
--UPDATE脚本--
update T_ATS_OVERTIME_L set FPKID=?,FID=?,FLOCALEID=?,FDESCRIPTION=? where FPKID=?
--delete脚本--
delete from T_ATS_OVERTIME_L where FPKID=?
--给字段加备注--
alter table T_ATS_OVERTIME_L comment '加班单多语言表';
alter table T_ATS_OVERTIME_L modify column FPKID int not null comment '多语言内码';
alter table T_ATS_OVERTIME_L modify column FID int default null comment '加班单内码';
alter table T_ATS_OVERTIME_L modify column FLOCALEID int default null comment '语种';
alter table T_ATS_OVERTIME_L modify column FDESCRIPTION nvarchar(255) not null comment '备注';
ATS考勤2.13考勤计算( 加班单、多语言表)
本文2024-09-16 18:17:25发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-21183.html