T_ATS_ATTENDPERSON(考勤档案) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FID | 内码 | int | 0 | |||
FNUMBER | 编码 | nvarchar | 30 | ' ' | |||
FSTAFFID | 员工内码 | int | ✓ | ||||
FPERSONID | 人员内码 | int | ✓ | ||||
FMGRCENTERID | 人事管理中心 | int | ✓ | ||||
FFIRSTCARDTYPE | 主要打卡方式 | char | 1 | ✓ | |||
FISMUST | 是否打卡考勤 | char | 1 | ✓ | |||
FFirstSystemRecordId | 系统登记号 | nvarchar | 80 | ✓ | |||
FFIRSTCARD | 主考勤卡号 | nvarchar | 80 | ✓ | |||
FFIRSTBEGINTIME | 生效时间 | datetime | ✓ | ||||
FCALENDARID | 工作日历 | int | ✓ | ||||
FISSYSPRESET | 系统预置 | char | 1 | ✓ | |||
FCREATEORGID | 创建组织 | int | ✓ | ||||
FUSEORGID | 使用组织 | int | ✓ | ||||
FCREATORID | 创建人 | int | ✓ | ||||
FCREATEDATE | 创建日期 | datetime | ✓ | ||||
FMODIFIERID | 修改人 | int | ✓ | ||||
FMODIFYDATE | 修改日期 | datetime | ✓ | ||||
FAUDITORID | 审核人 | int | ✓ | ||||
FAUDITDATE | 审核日期 | datetime | ✓ | ||||
FFORBIDDERID | 禁用人 | int | ✓ | ||||
FFORBIDDATE | 禁用日期 | datetime | ✓ | ||||
FDOCUMENTSTATUS | 数据状态 | char | 1 | ✓ | |||
FFORBIDSTATUS | 禁用状态 | char | 1 | ✓ | |||
FMASTERID | FMASTERID | int | ✓ | 0 | |||
FDefaultShift | 默认班次 | int | ✓ | 0 | |||
FBEGINTIME | FBEGINTIME | datetime | ✓ | ||||
备注:考勤档案 |
--建表脚本--
create table T_ATS_ATTENDPERSON(
FID int not null comment '内码'
,FNUMBER nvarchar(30) not null comment '编码'
,FSTAFFID int default null comment '员工内码'
,FPERSONID int default null comment '人员内码'
,FMGRCENTERID int default null comment '人事管理中心'
,FFIRSTCARDTYPE char(1) default null comment '主要打卡方式'
,FISMUST char(1) default null comment '是否打卡考勤'
,FFirstSystemRecordId nvarchar(80) default null comment '系统登记号'
,FFIRSTCARD nvarchar(80) default null comment '主考勤卡号'
,FFIRSTBEGINTIME datetime default null comment '生效时间'
,FCALENDARID int default null comment '工作日历'
,FISSYSPRESET char(1) default null comment '系统预置'
,FCREATEORGID int default null comment '创建组织'
,FUSEORGID 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 '禁用状态'
,FMASTERID int default 0 comment 'FMASTERID'
,FDefaultShift int default 0 comment '默认班次'
,FBEGINTIME datetime default null comment 'FBEGINTIME'
,primary key (FID)
) comment = '考勤档案'
--查询--
select FID as "fid",FNUMBER as "fnumber",FSTAFFID as "fstaffid",FPERSONID as "fpersonid",FMGRCENTERID as "fmgrcenterid",FFIRSTCARDTYPE as "ffirstcardtype",FISMUST as "fismust",FFirstSystemRecordId as "ffirstsystemrecordid",FFIRSTCARD as "ffirstcard",FFIRSTBEGINTIME as "ffirstbegintime",FCALENDARID as "fcalendarid",FISSYSPRESET as "fissyspreset",FCREATEORGID as "fcreateorgid",FUSEORGID as "fuseorgid",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",FMASTERID as "fmasterid",FDefaultShift as "fdefaultshift",FBEGINTIME as "fbegintime" from T_ATS_ATTENDPERSON
--查询(中文字段)--
select FID as "内码",FNUMBER as "编码",FSTAFFID as "员工内码",FPERSONID as "人员内码",FMGRCENTERID as "人事管理中心",FFIRSTCARDTYPE as "主要打卡方式",FISMUST as "是否打卡考勤",FFirstSystemRecordId as "系统登记号",FFIRSTCARD as "主考勤卡号",FFIRSTBEGINTIME as "生效时间",FCALENDARID as "工作日历",FISSYSPRESET as "系统预置",FCREATEORGID as "创建组织",FUSEORGID as "使用组织",FCREATORID as "创建人",FCREATEDATE as "创建日期",FMODIFIERID as "修改人",FMODIFYDATE as "修改日期",FAUDITORID as "审核人",FAUDITDATE as "审核日期",FFORBIDDERID as "禁用人",FFORBIDDATE as "禁用日期",FDOCUMENTSTATUS as "数据状态",FFORBIDSTATUS as "禁用状态",FMASTERID as "FMASTERID",FDefaultShift as "默认班次",FBEGINTIME as "FBEGINTIME" from T_ATS_ATTENDPERSON
--INSERT脚本--
insert into T_ATS_ATTENDPERSON(FID,FNUMBER,FSTAFFID,FPERSONID,FMGRCENTERID,FFIRSTCARDTYPE,FISMUST,FFirstSystemRecordId,FFIRSTCARD,FFIRSTBEGINTIME,FCALENDARID,FISSYSPRESET,FCREATEORGID,FUSEORGID,FCREATORID,FCREATEDATE,FMODIFIERID,FMODIFYDATE,FAUDITORID,FAUDITDATE,FFORBIDDERID,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS,FMASTERID,FDefaultShift,FBEGINTIME) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
--UPDATE脚本--
update T_ATS_ATTENDPERSON set FID=?,FNUMBER=?,FSTAFFID=?,FPERSONID=?,FMGRCENTERID=?,FFIRSTCARDTYPE=?,FISMUST=?,FFirstSystemRecordId=?,FFIRSTCARD=?,FFIRSTBEGINTIME=?,FCALENDARID=?,FISSYSPRESET=?,FCREATEORGID=?,FUSEORGID=?,FCREATORID=?,FCREATEDATE=?,FMODIFIERID=?,FMODIFYDATE=?,FAUDITORID=?,FAUDITDATE=?,FFORBIDDERID=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=?,FMASTERID=?,FDefaultShift=?,FBEGINTIME=? where FID=?
--delete脚本--
delete from T_ATS_ATTENDPERSON where FID=?
--给字段加备注--
alter table T_ATS_ATTENDPERSON comment '考勤档案';
alter table T_ATS_ATTENDPERSON modify column FID int not null comment '内码';
alter table T_ATS_ATTENDPERSON modify column FNUMBER nvarchar(30) not null comment '编码';
alter table T_ATS_ATTENDPERSON modify column FSTAFFID int default null comment '员工内码';
alter table T_ATS_ATTENDPERSON modify column FPERSONID int default null comment '人员内码';
alter table T_ATS_ATTENDPERSON modify column FMGRCENTERID int default null comment '人事管理中心';
alter table T_ATS_ATTENDPERSON modify column FFIRSTCARDTYPE char(1) default null comment '主要打卡方式';
alter table T_ATS_ATTENDPERSON modify column FISMUST char(1) default null comment '是否打卡考勤';
alter table T_ATS_ATTENDPERSON modify column FFirstSystemRecordId nvarchar(80) default null comment '系统登记号';
alter table T_ATS_ATTENDPERSON modify column FFIRSTCARD nvarchar(80) default null comment '主考勤卡号';
alter table T_ATS_ATTENDPERSON modify column FFIRSTBEGINTIME datetime default null comment '生效时间';
alter table T_ATS_ATTENDPERSON modify column FCALENDARID int default null comment '工作日历';
alter table T_ATS_ATTENDPERSON modify column FISSYSPRESET char(1) default null comment '系统预置';
alter table T_ATS_ATTENDPERSON modify column FCREATEORGID int default null comment '创建组织';
alter table T_ATS_ATTENDPERSON modify column FUSEORGID int default null comment '使用组织';
alter table T_ATS_ATTENDPERSON modify column FCREATORID int default null comment '创建人';
alter table T_ATS_ATTENDPERSON modify column FCREATEDATE datetime default null comment '创建日期';
alter table T_ATS_ATTENDPERSON modify column FMODIFIERID int default null comment '修改人';
alter table T_ATS_ATTENDPERSON modify column FMODIFYDATE datetime default null comment '修改日期';
alter table T_ATS_ATTENDPERSON modify column FAUDITORID int default null comment '审核人';
alter table T_ATS_ATTENDPERSON modify column FAUDITDATE datetime default null comment '审核日期';
alter table T_ATS_ATTENDPERSON modify column FFORBIDDERID int default null comment '禁用人';
alter table T_ATS_ATTENDPERSON modify column FFORBIDDATE datetime default null comment '禁用日期';
alter table T_ATS_ATTENDPERSON modify column FDOCUMENTSTATUS char(1) default null comment '数据状态';
alter table T_ATS_ATTENDPERSON modify column FFORBIDSTATUS char(1) default null comment '禁用状态';
alter table T_ATS_ATTENDPERSON modify column FMASTERID int default 0 comment 'FMASTERID';
alter table T_ATS_ATTENDPERSON modify column FDefaultShift int default 0 comment '默认班次';
alter table T_ATS_ATTENDPERSON modify column FBEGINTIME datetime default null comment 'FBEGINTIME';
T_ATS_ATTENDPERSON_L(考勤档案多语言表) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FPKID | 多语言内码 | int | 0 | |||
FID | 考勤档案内码 | int | ✓ | ||||
FLOCALEID | 语种 | int | ✓ | ||||
FDESCRIPTION | 备注 | nvarchar | 255 | ' ' | |||
FNAME | 名称 | nvarchar | 80 | ' ' |
--建表脚本--
create table T_ATS_ATTENDPERSON_L(
FPKID int not null comment '多语言内码'
,FID int default null comment '考勤档案内码'
,FLOCALEID int default null comment '语种'
,FDESCRIPTION nvarchar(255) not null comment '备注'
,FNAME nvarchar(80) not null comment '名称'
,primary key (FPKID)
) comment = '考勤档案多语言表'
--查询--
select FPKID as "fpkid",FID as "fid",FLOCALEID as "flocaleid",FDESCRIPTION as "fdescription",FNAME as "fname" from T_ATS_ATTENDPERSON_L
--查询(中文字段)--
select FPKID as "多语言内码",FID as "考勤档案内码",FLOCALEID as "语种",FDESCRIPTION as "备注",FNAME as "名称" from T_ATS_ATTENDPERSON_L
--INSERT脚本--
insert into T_ATS_ATTENDPERSON_L(FPKID,FID,FLOCALEID,FDESCRIPTION,FNAME) values (?,?,?,?,?)
--UPDATE脚本--
update T_ATS_ATTENDPERSON_L set FPKID=?,FID=?,FLOCALEID=?,FDESCRIPTION=?,FNAME=? where FPKID=?
--delete脚本--
delete from T_ATS_ATTENDPERSON_L where FPKID=?
--给字段加备注--
alter table T_ATS_ATTENDPERSON_L comment '考勤档案多语言表';
alter table T_ATS_ATTENDPERSON_L modify column FPKID int not null comment '多语言内码';
alter table T_ATS_ATTENDPERSON_L modify column FID int default null comment '考勤档案内码';
alter table T_ATS_ATTENDPERSON_L modify column FLOCALEID int default null comment '语种';
alter table T_ATS_ATTENDPERSON_L modify column FDESCRIPTION nvarchar(255) not null comment '备注';
alter table T_ATS_ATTENDPERSON_L modify column FNAME nvarchar(80) not null comment '名称';
推荐阅读