ATS考勤2.17考勤计算( 汇总计算表)
T_ATS_SUMCALC(汇总计算表) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FID | 内码 | int | 0 | |||
FSTAFFID | 员工id | int | 0 | ||||
FPERSONID | 人员id | int | 0 | ||||
FMGRCENTERID | 人事管理中心 | int | 0 | ||||
FSCHEMEID | 汇总方案 | int | ✓ | ||||
FBILLNO | 单据编号 | nvarchar | 30 | ✓ | |||
FBILLTYPEID | 单据类型 | varchar | 36 | ✓ | |||
FCREATORID | 创建人 | int | ✓ | ||||
FCREATEDATE | 创建日期 | datetime | ✓ | ||||
FMODIFIERID | 修改人 | int | ✓ | ||||
FMODIFYDATE | 修改日期 | datetime | ✓ | ||||
FAUDITORID | 审核人 | int | ✓ | ||||
FAUDITDATE | 审核日期 | datetime | ✓ | ||||
FFORBIDDERID | 禁用人 | int | ✓ | ||||
FFORBIDDATE | 禁用日期 | datetime | ✓ | ||||
FDOCUMENTSTATUS | 数据状态 | char | 1 | ✓ | |||
FFORBIDSTATUS | 禁用状态 | char | 1 | ✓ | |||
FSTARTDATE | 汇总开始日期 | datetime | ✓ | ||||
FENDDATE | 汇总结束日期 | datetime | ✓ | ||||
FISPAY | 是否提交薪酬 | char | 1 | ✓ | |||
FPAYDATE | 薪酬日期 | datetime | ✓ | ||||
FISPAYUSE | 薪酬引入状态 | char | 1 | ✓ | |||
FSUBMITPAYDATE | 提交薪酬时间 | datetime | ✓ | ||||
FSUBMITPAYUSERID | 提交薪酬人 | int | ✓ | ||||
FPRIMARYORGID | 主业务组织 | int | ✓ | ||||
FDOCID | 职员姓名 | int | ✓ | ||||
FIMPORTDATE | 薪酬引入日期 | datetime | ✓ |
--建表脚本--
create table T_ATS_SUMCALC(
FID int not null comment '内码'
,FSTAFFID int not null comment '员工id'
,FPERSONID int not null comment '人员id'
,FMGRCENTERID int not null comment '人事管理中心'
,FSCHEMEID int default null comment '汇总方案'
,FBILLNO nvarchar(30) default null comment '单据编号'
,FBILLTYPEID varchar(36) 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 '禁用状态'
,FSTARTDATE datetime default null comment '汇总开始日期'
,FENDDATE datetime default null comment '汇总结束日期'
,FISPAY char(1) default null comment '是否提交薪酬'
,FPAYDATE datetime default null comment '薪酬日期'
,FISPAYUSE char(1) default null comment '薪酬引入状态'
,FSUBMITPAYDATE datetime default null comment '提交薪酬时间'
,FSUBMITPAYUSERID int default null comment '提交薪酬人'
,FPRIMARYORGID int default null comment '主业务组织'
,FDOCID int default null comment '职员姓名'
,FIMPORTDATE datetime default null comment '薪酬引入日期'
,primary key (FID)
) comment = '汇总计算表'
--查询--
select FID as "fid",FSTAFFID as "fstaffid",FPERSONID as "fpersonid",FMGRCENTERID as "fmgrcenterid",FSCHEMEID as "fschemeid",FBILLNO as "fbillno",FBILLTYPEID as "fbilltypeid",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",FSTARTDATE as "fstartdate",FENDDATE as "fenddate",FISPAY as "fispay",FPAYDATE as "fpaydate",FISPAYUSE as "fispayuse",FSUBMITPAYDATE as "fsubmitpaydate",FSUBMITPAYUSERID as "fsubmitpayuserid",FPRIMARYORGID as "fprimaryorgid",FDOCID as "fdocid",FIMPORTDATE as "fimportdate" from T_ATS_SUMCALC
--查询(中文字段)--
select FID as "内码",FSTAFFID as "员工id",FPERSONID as "人员id",FMGRCENTERID as "人事管理中心",FSCHEMEID as "汇总方案",FBILLNO as "单据编号",FBILLTYPEID as "单据类型",FCREATORID as "创建人",FCREATEDATE as "创建日期",FMODIFIERID as "修改人",FMODIFYDATE as "修改日期",FAUDITORID as "审核人",FAUDITDATE as "审核日期",FFORBIDDERID as "禁用人",FFORBIDDATE as "禁用日期",FDOCUMENTSTATUS as "数据状态",FFORBIDSTATUS as "禁用状态",FSTARTDATE as "汇总开始日期",FENDDATE as "汇总结束日期",FISPAY as "是否提交薪酬",FPAYDATE as "薪酬日期",FISPAYUSE as "薪酬引入状态",FSUBMITPAYDATE as "提交薪酬时间",FSUBMITPAYUSERID as "提交薪酬人",FPRIMARYORGID as "主业务组织",FDOCID as "职员姓名",FIMPORTDATE as "薪酬引入日期" from T_ATS_SUMCALC
--INSERT脚本--
insert into T_ATS_SUMCALC(FID,FSTAFFID,FPERSONID,FMGRCENTERID,FSCHEMEID,FBILLNO,FBILLTYPEID,FCREATORID,FCREATEDATE,FMODIFIERID,FMODIFYDATE,FAUDITORID,FAUDITDATE,FFORBIDDERID,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS,FSTARTDATE,FENDDATE,FISPAY,FPAYDATE,FISPAYUSE,FSUBMITPAYDATE,FSUBMITPAYUSERID,FPRIMARYORGID,FDOCID,FIMPORTDATE) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
--UPDATE脚本--
update T_ATS_SUMCALC set FID=?,FSTAFFID=?,FPERSONID=?,FMGRCENTERID=?,FSCHEMEID=?,FBILLNO=?,FBILLTYPEID=?,FCREATORID=?,FCREATEDATE=?,FMODIFIERID=?,FMODIFYDATE=?,FAUDITORID=?,FAUDITDATE=?,FFORBIDDERID=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=?,FSTARTDATE=?,FENDDATE=?,FISPAY=?,FPAYDATE=?,FISPAYUSE=?,FSUBMITPAYDATE=?,FSUBMITPAYUSERID=?,FPRIMARYORGID=?,FDOCID=?,FIMPORTDATE=? where FID=?
--delete脚本--
delete from T_ATS_SUMCALC where FID=?
--给字段加备注--
alter table T_ATS_SUMCALC comment '汇总计算表';
alter table T_ATS_SUMCALC modify column FID int not null comment '内码';
alter table T_ATS_SUMCALC modify column FSTAFFID int not null comment '员工id';
alter table T_ATS_SUMCALC modify column FPERSONID int not null comment '人员id';
alter table T_ATS_SUMCALC modify column FMGRCENTERID int not null comment '人事管理中心';
alter table T_ATS_SUMCALC modify column FSCHEMEID int default null comment '汇总方案';
alter table T_ATS_SUMCALC modify column FBILLNO nvarchar(30) default null comment '单据编号';
alter table T_ATS_SUMCALC modify column FBILLTYPEID varchar(36) default null comment '单据类型';
alter table T_ATS_SUMCALC modify column FCREATORID int default null comment '创建人';
alter table T_ATS_SUMCALC modify column FCREATEDATE datetime default null comment '创建日期';
alter table T_ATS_SUMCALC modify column FMODIFIERID int default null comment '修改人';
alter table T_ATS_SUMCALC modify column FMODIFYDATE datetime default null comment '修改日期';
alter table T_ATS_SUMCALC modify column FAUDITORID int default null comment '审核人';
alter table T_ATS_SUMCALC modify column FAUDITDATE datetime default null comment '审核日期';
alter table T_ATS_SUMCALC modify column FFORBIDDERID int default null comment '禁用人';
alter table T_ATS_SUMCALC modify column FFORBIDDATE datetime default null comment '禁用日期';
alter table T_ATS_SUMCALC modify column FDOCUMENTSTATUS char(1) default null comment '数据状态';
alter table T_ATS_SUMCALC modify column FFORBIDSTATUS char(1) default null comment '禁用状态';
alter table T_ATS_SUMCALC modify column FSTARTDATE datetime default null comment '汇总开始日期';
alter table T_ATS_SUMCALC modify column FENDDATE datetime default null comment '汇总结束日期';
alter table T_ATS_SUMCALC modify column FISPAY char(1) default null comment '是否提交薪酬';
alter table T_ATS_SUMCALC modify column FPAYDATE datetime default null comment '薪酬日期';
alter table T_ATS_SUMCALC modify column FISPAYUSE char(1) default null comment '薪酬引入状态';
alter table T_ATS_SUMCALC modify column FSUBMITPAYDATE datetime default null comment '提交薪酬时间';
alter table T_ATS_SUMCALC modify column FSUBMITPAYUSERID int default null comment '提交薪酬人';
alter table T_ATS_SUMCALC modify column FPRIMARYORGID int default null comment '主业务组织';
alter table T_ATS_SUMCALC modify column FDOCID int default null comment '职员姓名';
alter table T_ATS_SUMCALC modify column FIMPORTDATE datetime default null comment '薪酬引入日期';
ATS考勤2.17考勤计算( 汇总计算表)
本文2024-09-16 18:17:24发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-21179.html