T_ATS_DETAILCALC(明细计算表) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FID | 内码 | int | 0 | |||
FSTAFFID | 员工id | int | 0 | ||||
FPERSONID | 人员id | int | 0 | ||||
FMGRCENTERID | 人事管理中心 | int | 0 | ||||
FDOCID | 职员姓名 | int | ✓ | ||||
FDATE | 考勤日期 | datetime | ✓ | ||||
FWEEK | 星期 | nvarchar | 30 | ✓ | |||
FSHIFTID | 班次 | int | 0 | ||||
FABSENTMINUTESUM | 旷工分钟数 | int | ✓ | ||||
FCREATORID | 创建人 | int | ✓ | ||||
FCREATEDATE | 创建日期 | datetime | ✓ | ||||
FMODIFIERID | 修改人 | int | ✓ | ||||
FMODIFYDATE | 修改日期 | datetime | ✓ | ||||
FAUDITORID | 审核人 | int | ✓ | ||||
FAUDITDATE | 审核日期 | datetime | ✓ | ||||
FFORBIDDERID | 禁用人 | int | ✓ | ||||
FFORBIDDATE | 禁用日期 | datetime | ✓ | ||||
FDOCUMENTSTATUS | 数据状态 | char | 1 | ✓ | |||
FFORBIDSTATUS | 禁用状态 | char | 1 | ✓ | |||
FPRIMARYORGID | 主业务组织 | int | ✓ | ||||
FBILLTYPEID | 单据类型 | varchar | 36 | ✓ | |||
FBILLNO | 单据编号 | nvarchar | 30 | ✓ | |||
FVERSION | 版本号 | varchar | 36 | ✓ | |||
FSTANDARDLABOR | 标准工时 | decimal | 19,6 | ✓ |
--建表脚本--
create table T_ATS_DETAILCALC(
FID int not null comment '内码'
,FSTAFFID int not null comment '员工id'
,FPERSONID int not null comment '人员id'
,FMGRCENTERID int not null comment '人事管理中心'
,FDOCID int default null comment '职员姓名'
,FDATE datetime default null comment '考勤日期'
,FWEEK nvarchar(30) default null comment '星期'
,FSHIFTID int not null comment '班次'
,FABSENTMINUTESUM 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 '禁用状态'
,FPRIMARYORGID int default null comment '主业务组织'
,FBILLTYPEID varchar(36) default null comment '单据类型'
,FBILLNO nvarchar(30) default null comment '单据编号'
,FVERSION varchar(36) default null comment '版本号'
,FSTANDARDLABOR decimal(19,6) default null comment '标准工时'
,primary key (FID)
) comment = '明细计算表'
--查询--
select FID as "fid",FSTAFFID as "fstaffid",FPERSONID as "fpersonid",FMGRCENTERID as "fmgrcenterid",FDOCID as "fdocid",FDATE as "fdate",FWEEK as "fweek",FSHIFTID as "fshiftid",FABSENTMINUTESUM as "fabsentminutesum",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",FBILLTYPEID as "fbilltypeid",FBILLNO as "fbillno",FVERSION as "fversion",FSTANDARDLABOR as "fstandardlabor" from T_ATS_DETAILCALC
--查询(中文字段)--
select FID as "内码",FSTAFFID as "员工id",FPERSONID as "人员id",FMGRCENTERID as "人事管理中心",FDOCID as "职员姓名",FDATE as "考勤日期",FWEEK as "星期",FSHIFTID as "班次",FABSENTMINUTESUM as "旷工分钟数",FCREATORID as "创建人",FCREATEDATE as "创建日期",FMODIFIERID as "修改人",FMODIFYDATE as "修改日期",FAUDITORID as "审核人",FAUDITDATE as "审核日期",FFORBIDDERID as "禁用人",FFORBIDDATE as "禁用日期",FDOCUMENTSTATUS as "数据状态",FFORBIDSTATUS as "禁用状态",FPRIMARYORGID as "主业务组织",FBILLTYPEID as "单据类型",FBILLNO as "单据编号",FVERSION as "版本号",FSTANDARDLABOR as "标准工时" from T_ATS_DETAILCALC
--INSERT脚本--
insert into T_ATS_DETAILCALC(FID,FSTAFFID,FPERSONID,FMGRCENTERID,FDOCID,FDATE,FWEEK,FSHIFTID,FABSENTMINUTESUM,FCREATORID,FCREATEDATE,FMODIFIERID,FMODIFYDATE,FAUDITORID,FAUDITDATE,FFORBIDDERID,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS,FPRIMARYORGID,FBILLTYPEID,FBILLNO,FVERSION,FSTANDARDLABOR) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
--UPDATE脚本--
update T_ATS_DETAILCALC set FID=?,FSTAFFID=?,FPERSONID=?,FMGRCENTERID=?,FDOCID=?,FDATE=?,FWEEK=?,FSHIFTID=?,FABSENTMINUTESUM=?,FCREATORID=?,FCREATEDATE=?,FMODIFIERID=?,FMODIFYDATE=?,FAUDITORID=?,FAUDITDATE=?,FFORBIDDERID=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=?,FPRIMARYORGID=?,FBILLTYPEID=?,FBILLNO=?,FVERSION=?,FSTANDARDLABOR=? where FID=?
--delete脚本--
delete from T_ATS_DETAILCALC where FID=?
--给字段加备注--
alter table T_ATS_DETAILCALC comment '明细计算表';
alter table T_ATS_DETAILCALC modify column FID int not null comment '内码';
alter table T_ATS_DETAILCALC modify column FSTAFFID int not null comment '员工id';
alter table T_ATS_DETAILCALC modify column FPERSONID int not null comment '人员id';
alter table T_ATS_DETAILCALC modify column FMGRCENTERID int not null comment '人事管理中心';
alter table T_ATS_DETAILCALC modify column FDOCID int default null comment '职员姓名';
alter table T_ATS_DETAILCALC modify column FDATE datetime default null comment '考勤日期';
alter table T_ATS_DETAILCALC modify column FWEEK nvarchar(30) default null comment '星期';
alter table T_ATS_DETAILCALC modify column FSHIFTID int not null comment '班次';
alter table T_ATS_DETAILCALC modify column FABSENTMINUTESUM int default null comment '旷工分钟数';
alter table T_ATS_DETAILCALC modify column FCREATORID int default null comment '创建人';
alter table T_ATS_DETAILCALC modify column FCREATEDATE datetime default null comment '创建日期';
alter table T_ATS_DETAILCALC modify column FMODIFIERID int default null comment '修改人';
alter table T_ATS_DETAILCALC modify column FMODIFYDATE datetime default null comment '修改日期';
alter table T_ATS_DETAILCALC modify column FAUDITORID int default null comment '审核人';
alter table T_ATS_DETAILCALC modify column FAUDITDATE datetime default null comment '审核日期';
alter table T_ATS_DETAILCALC modify column FFORBIDDERID int default null comment '禁用人';
alter table T_ATS_DETAILCALC modify column FFORBIDDATE datetime default null comment '禁用日期';
alter table T_ATS_DETAILCALC modify column FDOCUMENTSTATUS char(1) default null comment '数据状态';
alter table T_ATS_DETAILCALC modify column FFORBIDSTATUS char(1) default null comment '禁用状态';
alter table T_ATS_DETAILCALC modify column FPRIMARYORGID int default null comment '主业务组织';
alter table T_ATS_DETAILCALC modify column FBILLTYPEID varchar(36) default null comment '单据类型';
alter table T_ATS_DETAILCALC modify column FBILLNO nvarchar(30) default null comment '单据编号';
alter table T_ATS_DETAILCALC modify column FVERSION varchar(36) default null comment '版本号';
alter table T_ATS_DETAILCALC modify column FSTANDARDLABOR decimal(19,6) default null comment '标准工时';
推荐阅读