ATS考勤2.15考勤计算(打卡记录表)

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

ATS考勤2.15考勤计算(打卡记录表)

T_ATS_RECORD(打卡记录表)
是否主键字段名字段描述数据类型长度可空缺省值备注
FID 主键 int

0

FCREATORID 创建人 int



FCREATEDATE 创建时间 datetime



FORGID 当前组织 int



FMGRCENTERID 人事管理中心 int



FCHECKTIME 打卡时间 datetime



FCHECKDATETIME 打卡日期时间 datetime



FCHECKDATE 打卡日期 datetime



FPERSONID 人员id int



FSTAFFID 员工id int



FCARD 考勤卡号 nvarchar 80


FHARDWARENUMBER 硬件编号 nvarchar 80


FHARDWAREID 考勤硬件id int



FMACHINENAME 机器名 nvarchar 80


FPOSTNUMBER 端口号 nvarchar 80


FCHECKTYPE 进出类型说明该次打卡是进是出 nvarchar 30


FDOCID 考勤档案id int



--建表脚本--

create table T_ATS_RECORD(

FID int not null  comment '主键'

,FCREATORID int default null  comment '创建人'

,FCREATEDATE datetime default null  comment '创建时间'

,FORGID int default null  comment '当前组织'

,FMGRCENTERID int default null  comment '人事管理中心'

,FCHECKTIME datetime default null  comment '打卡时间'

,FCHECKDATETIME datetime default null  comment '打卡日期时间'

,FCHECKDATE datetime default null  comment '打卡日期'

,FPERSONID int default null  comment '人员id'

,FSTAFFID int default null  comment '员工id'

,FCARD nvarchar(80) default null  comment '考勤卡号'

,FHARDWARENUMBER nvarchar(80) default null  comment '硬件编号'

,FHARDWAREID int default null  comment '考勤硬件id'

,FMACHINENAME nvarchar(80) default null  comment '机器名'

,FPOSTNUMBER nvarchar(80) default null  comment '端口号'

,FCHECKTYPE nvarchar(30) default null  comment '进出类型说明该次打卡是进是出'

,FDOCID int default null  comment '考勤档案id'

,primary key (FID)

) comment = '打卡记录表'


--查询--

select FID as "fid",FCREATORID as "fcreatorid",FCREATEDATE as "fcreatedate",FORGID as "forgid",FMGRCENTERID as "fmgrcenterid",FCHECKTIME as "fchecktime",FCHECKDATETIME as "fcheckdatetime",FCHECKDATE as "fcheckdate",FPERSONID as "fpersonid",FSTAFFID as "fstaffid",FCARD as "fcard",FHARDWARENUMBER as "fhardwarenumber",FHARDWAREID as "fhardwareid",FMACHINENAME as "fmachinename",FPOSTNUMBER as "fpostnumber",FCHECKTYPE as "fchecktype",FDOCID as "fdocid" from T_ATS_RECORD


--查询(中文字段)--

select FID as "主键",FCREATORID as "创建人",FCREATEDATE as "创建时间",FORGID as "当前组织",FMGRCENTERID as "人事管理中心",FCHECKTIME as "打卡时间",FCHECKDATETIME as "打卡日期时间",FCHECKDATE as "打卡日期",FPERSONID as "人员id",FSTAFFID as "员工id",FCARD as "考勤卡号",FHARDWARENUMBER as "硬件编号",FHARDWAREID as "考勤硬件id",FMACHINENAME as "机器名",FPOSTNUMBER as "端口号",FCHECKTYPE as "进出类型说明该次打卡是进是出",FDOCID as "考勤档案id" from T_ATS_RECORD


--INSERT脚本--

insert into T_ATS_RECORD(FID,FCREATORID,FCREATEDATE,FORGID,FMGRCENTERID,FCHECKTIME,FCHECKDATETIME,FCHECKDATE,FPERSONID,FSTAFFID,FCARD,FHARDWARENUMBER,FHARDWAREID,FMACHINENAME,FPOSTNUMBER,FCHECKTYPE,FDOCID) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)


--UPDATE脚本--

update T_ATS_RECORD set FID=?,FCREATORID=?,FCREATEDATE=?,FORGID=?,FMGRCENTERID=?,FCHECKTIME=?,FCHECKDATETIME=?,FCHECKDATE=?,FPERSONID=?,FSTAFFID=?,FCARD=?,FHARDWARENUMBER=?,FHARDWAREID=?,FMACHINENAME=?,FPOSTNUMBER=?,FCHECKTYPE=?,FDOCID=? where FID=?


--delete脚本--

delete from T_ATS_RECORD where FID=?


--给字段加备注--

alter table T_ATS_RECORD comment '打卡记录表';

alter table T_ATS_RECORD modify column FID int not null  comment '主键';

alter table T_ATS_RECORD modify column FCREATORID int default null  comment '创建人';

alter table T_ATS_RECORD modify column FCREATEDATE datetime default null  comment '创建时间';

alter table T_ATS_RECORD modify column FORGID int default null  comment '当前组织';

alter table T_ATS_RECORD modify column FMGRCENTERID int default null  comment '人事管理中心';

alter table T_ATS_RECORD modify column FCHECKTIME datetime default null  comment '打卡时间';

alter table T_ATS_RECORD modify column FCHECKDATETIME datetime default null  comment '打卡日期时间';

alter table T_ATS_RECORD modify column FCHECKDATE datetime default null  comment '打卡日期';

alter table T_ATS_RECORD modify column FPERSONID int default null  comment '人员id';

alter table T_ATS_RECORD modify column FSTAFFID int default null  comment '员工id';

alter table T_ATS_RECORD modify column FCARD nvarchar(80) default null  comment '考勤卡号';

alter table T_ATS_RECORD modify column FHARDWARENUMBER nvarchar(80) default null  comment '硬件编号';

alter table T_ATS_RECORD modify column FHARDWAREID int default null  comment '考勤硬件id';

alter table T_ATS_RECORD modify column FMACHINENAME nvarchar(80) default null  comment '机器名';

alter table T_ATS_RECORD modify column FPOSTNUMBER nvarchar(80) default null  comment '端口号';

alter table T_ATS_RECORD modify column FCHECKTYPE nvarchar(30) default null  comment '进出类型说明该次打卡是进是出';

alter table T_ATS_RECORD modify column FDOCID int default null  comment '考勤档案id';



T_ATS_RECORD_BAK(打卡记录表)
是否主键字段名字段描述数据类型长度可空缺省值备注
FID 主键 int

0

FCREATORID 创建人 int



FCREATEDATE 创建时间 datetime



FORGID 当前组织 int



FMGRCENTERID 人事管理中心 int



FCARD 考勤卡号 nvarchar 80


FCHECKTIME 打卡时间 datetime



FCHECKDATETIME 打卡日期时间 datetime



FCHECKDATE 打卡日期 datetime



FPERSONID 人员id int



FSTAFFID 员工id int



FHARDWARENUMBER 硬件编号 nvarchar 80


FHARDWAREID 考勤硬件id int



FMACHINENAME 机器名 nvarchar 80


FPOSTNUMBER 端口号 nvarchar 80


FCHECKTYPE 进出类型说明该次打卡是进是出 nvarchar 30


FDOCID 考勤档案id int



--建表脚本--

create table T_ATS_RECORD_BAK(

FID int not null  comment '主键'

,FCREATORID int default null  comment '创建人'

,FCREATEDATE datetime default null  comment '创建时间'

,FORGID int default null  comment '当前组织'

,FMGRCENTERID int default null  comment '人事管理中心'

,FCARD nvarchar(80) default null  comment '考勤卡号'

,FCHECKTIME datetime default null  comment '打卡时间'

,FCHECKDATETIME datetime default null  comment '打卡日期时间'

,FCHECKDATE datetime default null  comment '打卡日期'

,FPERSONID int default null  comment '人员id'

,FSTAFFID int default null  comment '员工id'

,FHARDWARENUMBER nvarchar(80) default null  comment '硬件编号'

,FHARDWAREID int default null  comment '考勤硬件id'

,FMACHINENAME nvarchar(80) default null  comment '机器名'

,FPOSTNUMBER nvarchar(80) default null  comment '端口号'

,FCHECKTYPE nvarchar(30) default null  comment '进出类型说明该次打卡是进是出'

,FDOCID int default null  comment '考勤档案id'

,primary key (FID)

) comment = '打卡记录表'


--查询--

select FID as "fid",FCREATORID as "fcreatorid",FCREATEDATE as "fcreatedate",FORGID as "forgid",FMGRCENTERID as "fmgrcenterid",FCARD as "fcard",FCHECKTIME as "fchecktime",FCHECKDATETIME as "fcheckdatetime",FCHECKDATE as "fcheckdate",FPERSONID as "fpersonid",FSTAFFID as "fstaffid",FHARDWARENUMBER as "fhardwarenumber",FHARDWAREID as "fhardwareid",FMACHINENAME as "fmachinename",FPOSTNUMBER as "fpostnumber",FCHECKTYPE as "fchecktype",FDOCID as "fdocid" from T_ATS_RECORD_BAK


--查询(中文字段)--

select FID as "主键",FCREATORID as "创建人",FCREATEDATE as "创建时间",FORGID as "当前组织",FMGRCENTERID as "人事管理中心",FCARD as "考勤卡号",FCHECKTIME as "打卡时间",FCHECKDATETIME as "打卡日期时间",FCHECKDATE as "打卡日期",FPERSONID as "人员id",FSTAFFID as "员工id",FHARDWARENUMBER as "硬件编号",FHARDWAREID as "考勤硬件id",FMACHINENAME as "机器名",FPOSTNUMBER as "端口号",FCHECKTYPE as "进出类型说明该次打卡是进是出",FDOCID as "考勤档案id" from T_ATS_RECORD_BAK


--INSERT脚本--

insert into T_ATS_RECORD_BAK(FID,FCREATORID,FCREATEDATE,FORGID,FMGRCENTERID,FCARD,FCHECKTIME,FCHECKDATETIME,FCHECKDATE,FPERSONID,FSTAFFID,FHARDWARENUMBER,FHARDWAREID,FMACHINENAME,FPOSTNUMBER,FCHECKTYPE,FDOCID) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)


--UPDATE脚本--

update T_ATS_RECORD_BAK set FID=?,FCREATORID=?,FCREATEDATE=?,FORGID=?,FMGRCENTERID=?,FCARD=?,FCHECKTIME=?,FCHECKDATETIME=?,FCHECKDATE=?,FPERSONID=?,FSTAFFID=?,FHARDWARENUMBER=?,FHARDWAREID=?,FMACHINENAME=?,FPOSTNUMBER=?,FCHECKTYPE=?,FDOCID=? where FID=?


--delete脚本--

delete from T_ATS_RECORD_BAK where FID=?


--给字段加备注--

alter table T_ATS_RECORD_BAK comment '打卡记录表';

alter table T_ATS_RECORD_BAK modify column FID int not null  comment '主键';

alter table T_ATS_RECORD_BAK modify column FCREATORID int default null  comment '创建人';

alter table T_ATS_RECORD_BAK modify column FCREATEDATE datetime default null  comment '创建时间';

alter table T_ATS_RECORD_BAK modify column FORGID int default null  comment '当前组织';

alter table T_ATS_RECORD_BAK modify column FMGRCENTERID int default null  comment '人事管理中心';

alter table T_ATS_RECORD_BAK modify column FCARD nvarchar(80) default null  comment '考勤卡号';

alter table T_ATS_RECORD_BAK modify column FCHECKTIME datetime default null  comment '打卡时间';

alter table T_ATS_RECORD_BAK modify column FCHECKDATETIME datetime default null  comment '打卡日期时间';

alter table T_ATS_RECORD_BAK modify column FCHECKDATE datetime default null  comment '打卡日期';

alter table T_ATS_RECORD_BAK modify column FPERSONID int default null  comment '人员id';

alter table T_ATS_RECORD_BAK modify column FSTAFFID int default null  comment '员工id';

alter table T_ATS_RECORD_BAK modify column FHARDWARENUMBER nvarchar(80) default null  comment '硬件编号';

alter table T_ATS_RECORD_BAK modify column FHARDWAREID int default null  comment '考勤硬件id';

alter table T_ATS_RECORD_BAK modify column FMACHINENAME nvarchar(80) default null  comment '机器名';

alter table T_ATS_RECORD_BAK modify column FPOSTNUMBER nvarchar(80) default null  comment '端口号';

alter table T_ATS_RECORD_BAK modify column FCHECKTYPE nvarchar(30) default null  comment '进出类型说明该次打卡是进是出';

alter table T_ATS_RECORD_BAK modify column FDOCID int default null  comment '考勤档案id';


上传图片


ATS考勤2.15考勤计算(打卡记录表)

T_ATS_RECORD(打卡记录表)是否主键字段名字段描述数据类型长度可空缺省值备注 ✓ FID 主键 int ...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息