ATS考勤2.16考勤计算(考勤排班信息表)
T_ATS_ROSTER(考勤排班信息表) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FID | 内码 | int | 0 | |||
FBILLNO | 单据编号 | varchar | 30 | ✓ | |||
FDOCID | 考勤档案内码 | int | ✓ | ||||
FROSTERDATE | 排班日期 | datetime | ✓ | ||||
FSHIFTINFOID | 班次内码 | int | ✓ | ||||
FSTAFFID | 员工内码 | int | ✓ | ||||
FPERSONID | 人员内码 | int | ✓ | ||||
FMGRCENTERID | 人事管理中心内码 | int | ✓ | ||||
FPRIMARYORGID | 主业务组织内码 | int | ✓ | ||||
FCREATORID | 创建人 | int | ✓ | ||||
FCREATEDATE | 创建日期 | datetime | ✓ | ||||
FMODIFIERID | 修改人 | int | ✓ | ||||
FMODIFYDATE | 修改日期 | datetime | ✓ | ||||
FAUDITORID | 审核人 | int | ✓ | ||||
FAUDITDATE | 审核日期 | datetime | ✓ | ||||
FFORBIDDERID | 禁用人 | int | ✓ | ||||
FFORBIDDATE | 禁用日期 | datetime | ✓ | ||||
FDOCUMENTSTATUS | 数据状态 | char | 1 | ✓ | |||
FFORBIDSTATUS | 禁用状态 | char | 1 | ✓ | |||
FBILLTYPEID | 单据类型 | varchar | 36 | ✓ | |||
FISWEEKEND | 是否周末 | char | 1 | ✓ | |||
备注:考勤排班信息表 |
--建表脚本--
create table T_ATS_ROSTER(
FID int not null comment '内码'
,FBILLNO varchar(30) default null comment '单据编号'
,FDOCID int default null comment '考勤档案内码'
,FROSTERDATE datetime default null comment '排班日期'
,FSHIFTINFOID int default null comment '班次内码'
,FSTAFFID int default null comment '员工内码'
,FPERSONID int default null comment '人员内码'
,FMGRCENTERID int default null comment '人事管理中心内码'
,FPRIMARYORGID 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 '禁用状态'
,FBILLTYPEID varchar(36) default null comment '单据类型'
,FISWEEKEND char(1) default null comment '是否周末'
,primary key (FID)
) comment = '考勤排班信息表'
--查询--
select FID as "fid",FBILLNO as "fbillno",FDOCID as "fdocid",FROSTERDATE as "frosterdate",FSHIFTINFOID as "fshiftinfoid",FSTAFFID as "fstaffid",FPERSONID as "fpersonid",FMGRCENTERID as "fmgrcenterid",FPRIMARYORGID as "fprimaryorgid",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",FBILLTYPEID as "fbilltypeid",FISWEEKEND as "fisweekend" from T_ATS_ROSTER
--查询(中文字段)--
select FID as "内码",FBILLNO as "单据编号",FDOCID as "考勤档案内码",FROSTERDATE as "排班日期",FSHIFTINFOID as "班次内码",FSTAFFID as "员工内码",FPERSONID as "人员内码",FMGRCENTERID as "人事管理中心内码",FPRIMARYORGID as "主业务组织内码",FCREATORID as "创建人",FCREATEDATE as "创建日期",FMODIFIERID as "修改人",FMODIFYDATE as "修改日期",FAUDITORID as "审核人",FAUDITDATE as "审核日期",FFORBIDDERID as "禁用人",FFORBIDDATE as "禁用日期",FDOCUMENTSTATUS as "数据状态",FFORBIDSTATUS as "禁用状态",FBILLTYPEID as "单据类型",FISWEEKEND as "是否周末" from T_ATS_ROSTER
--INSERT脚本--
insert into T_ATS_ROSTER(FID,FBILLNO,FDOCID,FROSTERDATE,FSHIFTINFOID,FSTAFFID,FPERSONID,FMGRCENTERID,FPRIMARYORGID,FCREATORID,FCREATEDATE,FMODIFIERID,FMODIFYDATE,FAUDITORID,FAUDITDATE,FFORBIDDERID,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS,FBILLTYPEID,FISWEEKEND) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
--UPDATE脚本--
update T_ATS_ROSTER set FID=?,FBILLNO=?,FDOCID=?,FROSTERDATE=?,FSHIFTINFOID=?,FSTAFFID=?,FPERSONID=?,FMGRCENTERID=?,FPRIMARYORGID=?,FCREATORID=?,FCREATEDATE=?,FMODIFIERID=?,FMODIFYDATE=?,FAUDITORID=?,FAUDITDATE=?,FFORBIDDERID=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=?,FBILLTYPEID=?,FISWEEKEND=? where FID=?
--delete脚本--
delete from T_ATS_ROSTER where FID=?
--给字段加备注--
alter table T_ATS_ROSTER comment '考勤排班信息表';
alter table T_ATS_ROSTER modify column FID int not null comment '内码';
alter table T_ATS_ROSTER modify column FBILLNO varchar(30) default null comment '单据编号';
alter table T_ATS_ROSTER modify column FDOCID int default null comment '考勤档案内码';
alter table T_ATS_ROSTER modify column FROSTERDATE datetime default null comment '排班日期';
alter table T_ATS_ROSTER modify column FSHIFTINFOID int default null comment '班次内码';
alter table T_ATS_ROSTER modify column FSTAFFID int default null comment '员工内码';
alter table T_ATS_ROSTER modify column FPERSONID int default null comment '人员内码';
alter table T_ATS_ROSTER modify column FMGRCENTERID int default null comment '人事管理中心内码';
alter table T_ATS_ROSTER modify column FPRIMARYORGID int default null comment '主业务组织内码';
alter table T_ATS_ROSTER modify column FCREATORID int default null comment '创建人';
alter table T_ATS_ROSTER modify column FCREATEDATE datetime default null comment '创建日期';
alter table T_ATS_ROSTER modify column FMODIFIERID int default null comment '修改人';
alter table T_ATS_ROSTER modify column FMODIFYDATE datetime default null comment '修改日期';
alter table T_ATS_ROSTER modify column FAUDITORID int default null comment '审核人';
alter table T_ATS_ROSTER modify column FAUDITDATE datetime default null comment '审核日期';
alter table T_ATS_ROSTER modify column FFORBIDDERID int default null comment '禁用人';
alter table T_ATS_ROSTER modify column FFORBIDDATE datetime default null comment '禁用日期';
alter table T_ATS_ROSTER modify column FDOCUMENTSTATUS char(1) default null comment '数据状态';
alter table T_ATS_ROSTER modify column FFORBIDSTATUS char(1) default null comment '禁用状态';
alter table T_ATS_ROSTER modify column FBILLTYPEID varchar(36) default null comment '单据类型';
alter table T_ATS_ROSTER modify column FISWEEKEND char(1) default null comment '是否周末';
ATS考勤2.16考勤计算(考勤排班信息表)
本文2024-09-16 18:17:24发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-21180.html