ATS考勤2.20考勤计算(出差单)
T_ATS_TRIP(出差单) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FID | 内码 | int | 0 | |||
FDOCID | 考勤档案内码 | int | ✓ | ||||
FSTAFFID | 员工内码 | int | ✓ | ||||
FPERSONID | 人员内码 | int | ✓ | ||||
FMGRCENTERID | 人事管理中心内码 | int | ✓ | ||||
FPRIMARYORGID | 主业务组织内码 | int | ✓ | ||||
FISWHOLEDAY | 是否整天 | char | 1 | ✓ | |||
FSTARTDATE | 开始日期 | datetime | ✓ | ||||
FSTARTTIME | 开始时间 | datetime | ✓ | ||||
FENDDATE | 结束日期 | datetime | ✓ | ||||
FENDTIME | 结束时间 | datetime | ✓ | ||||
FREALSTARTTIME | 出差实际开始时间 | datetime | ✓ | ||||
FREALENDTIME | 出差实际结束时间 | datetime | ✓ | ||||
FTRIPDAYS | 出差天数 | decimal | 19,6 | ✓ | |||
FSTARTPLACE | 出发地点 | nvarchar | 80 | ✓ | |||
FENDPLACE | 目的地点 | nvarchar | 80 | ✓ | |||
FISLEGHOLY | 是否节假日 | char | 1 | ✓ | |||
FISPUBHOLY | 是否公休日 | char | 1 | ✓ | |||
FAPPLYDATE | 申请日期 | datetime | ✓ | ||||
FCREATORID | 创建人 | int | ✓ | ||||
FCREATEDATE | 创建日期 | datetime | ✓ | ||||
FMODIFIERID | 修改人 | int | ✓ | ||||
FMODIFYDATE | 修改日期 | datetime | ✓ | ||||
FAUDITORID | 审核人 | int | ✓ | ||||
FAUDITDATE | 审核日期 | datetime | ✓ | ||||
FFORBIDDERID | 禁用人 | int | ✓ | ||||
FFORBIDDATE | 禁用日期 | datetime | ✓ | ||||
FDOCUMENTSTATUS | 数据状态 | char | 1 | ✓ | |||
FFORBIDSTATUS | 禁用状态 | char | 1 | ✓ | |||
FBILLNO | 单据编号 | nvarchar | 30 | ✓ | |||
FBILLTYPEID | 单据类型 | varchar | 36 | ✓ |
--建表脚本--
create table T_ATS_TRIP(
FID int not null comment '内码'
,FDOCID int default null comment '考勤档案内码'
,FSTAFFID int default null comment '员工内码'
,FPERSONID int default null comment '人员内码'
,FMGRCENTERID int default null comment '人事管理中心内码'
,FPRIMARYORGID int default null comment '主业务组织内码'
,FISWHOLEDAY char(1) default null comment '是否整天'
,FSTARTDATE datetime default null comment '开始日期'
,FSTARTTIME datetime default null comment '开始时间'
,FENDDATE datetime default null comment '结束日期'
,FENDTIME datetime default null comment '结束时间'
,FREALSTARTTIME datetime default null comment '出差实际开始时间'
,FREALENDTIME datetime default null comment '出差实际结束时间'
,FTRIPDAYS decimal(19,6) default null comment '出差天数'
,FSTARTPLACE nvarchar(80) default null comment '出发地点'
,FENDPLACE nvarchar(80) default null comment '目的地点'
,FISLEGHOLY char(1) default null comment '是否节假日'
,FISPUBHOLY char(1) default null comment '是否公休日'
,FAPPLYDATE datetime 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 '禁用状态'
,FBILLNO nvarchar(30) default null comment '单据编号'
,FBILLTYPEID varchar(36) default null comment '单据类型'
,primary key (FID)
) comment = '出差单'
--查询--
select FID as "fid",FDOCID as "fdocid",FSTAFFID as "fstaffid",FPERSONID as "fpersonid",FMGRCENTERID as "fmgrcenterid",FPRIMARYORGID as "fprimaryorgid",FISWHOLEDAY as "fiswholeday",FSTARTDATE as "fstartdate",FSTARTTIME as "fstarttime",FENDDATE as "fenddate",FENDTIME as "fendtime",FREALSTARTTIME as "frealstarttime",FREALENDTIME as "frealendtime",FTRIPDAYS as "ftripdays",FSTARTPLACE as "fstartplace",FENDPLACE as "fendplace",FISLEGHOLY as "fislegholy",FISPUBHOLY as "fispubholy",FAPPLYDATE as "fapplydate",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",FBILLNO as "fbillno",FBILLTYPEID as "fbilltypeid" from T_ATS_TRIP
--查询(中文字段)--
select FID as "内码",FDOCID as "考勤档案内码",FSTAFFID as "员工内码",FPERSONID as "人员内码",FMGRCENTERID as "人事管理中心内码",FPRIMARYORGID as "主业务组织内码",FISWHOLEDAY as "是否整天",FSTARTDATE as "开始日期",FSTARTTIME as "开始时间",FENDDATE as "结束日期",FENDTIME as "结束时间",FREALSTARTTIME as "出差实际开始时间",FREALENDTIME as "出差实际结束时间",FTRIPDAYS as "出差天数",FSTARTPLACE as "出发地点",FENDPLACE as "目的地点",FISLEGHOLY as "是否节假日",FISPUBHOLY as "是否公休日",FAPPLYDATE as "申请日期",FCREATORID as "创建人",FCREATEDATE as "创建日期",FMODIFIERID as "修改人",FMODIFYDATE as "修改日期",FAUDITORID as "审核人",FAUDITDATE as "审核日期",FFORBIDDERID as "禁用人",FFORBIDDATE as "禁用日期",FDOCUMENTSTATUS as "数据状态",FFORBIDSTATUS as "禁用状态",FBILLNO as "单据编号",FBILLTYPEID as "单据类型" from T_ATS_TRIP
--INSERT脚本--
insert into T_ATS_TRIP(FID,FDOCID,FSTAFFID,FPERSONID,FMGRCENTERID,FPRIMARYORGID,FISWHOLEDAY,FSTARTDATE,FSTARTTIME,FENDDATE,FENDTIME,FREALSTARTTIME,FREALENDTIME,FTRIPDAYS,FSTARTPLACE,FENDPLACE,FISLEGHOLY,FISPUBHOLY,FAPPLYDATE,FCREATORID,FCREATEDATE,FMODIFIERID,FMODIFYDATE,FAUDITORID,FAUDITDATE,FFORBIDDERID,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS,FBILLNO,FBILLTYPEID) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
--UPDATE脚本--
update T_ATS_TRIP set FID=?,FDOCID=?,FSTAFFID=?,FPERSONID=?,FMGRCENTERID=?,FPRIMARYORGID=?,FISWHOLEDAY=?,FSTARTDATE=?,FSTARTTIME=?,FENDDATE=?,FENDTIME=?,FREALSTARTTIME=?,FREALENDTIME=?,FTRIPDAYS=?,FSTARTPLACE=?,FENDPLACE=?,FISLEGHOLY=?,FISPUBHOLY=?,FAPPLYDATE=?,FCREATORID=?,FCREATEDATE=?,FMODIFIERID=?,FMODIFYDATE=?,FAUDITORID=?,FAUDITDATE=?,FFORBIDDERID=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=?,FBILLNO=?,FBILLTYPEID=? where FID=?
--delete脚本--
delete from T_ATS_TRIP where FID=?
--给字段加备注--
alter table T_ATS_TRIP comment '出差单';
alter table T_ATS_TRIP modify column FID int not null comment '内码';
alter table T_ATS_TRIP modify column FDOCID int default null comment '考勤档案内码';
alter table T_ATS_TRIP modify column FSTAFFID int default null comment '员工内码';
alter table T_ATS_TRIP modify column FPERSONID int default null comment '人员内码';
alter table T_ATS_TRIP modify column FMGRCENTERID int default null comment '人事管理中心内码';
alter table T_ATS_TRIP modify column FPRIMARYORGID int default null comment '主业务组织内码';
alter table T_ATS_TRIP modify column FISWHOLEDAY char(1) default null comment '是否整天';
alter table T_ATS_TRIP modify column FSTARTDATE datetime default null comment '开始日期';
alter table T_ATS_TRIP modify column FSTARTTIME datetime default null comment '开始时间';
alter table T_ATS_TRIP modify column FENDDATE datetime default null comment '结束日期';
alter table T_ATS_TRIP modify column FENDTIME datetime default null comment '结束时间';
alter table T_ATS_TRIP modify column FREALSTARTTIME datetime default null comment '出差实际开始时间';
alter table T_ATS_TRIP modify column FREALENDTIME datetime default null comment '出差实际结束时间';
alter table T_ATS_TRIP modify column FTRIPDAYS decimal(19,6) default null comment '出差天数';
alter table T_ATS_TRIP modify column FSTARTPLACE nvarchar(80) default null comment '出发地点';
alter table T_ATS_TRIP modify column FENDPLACE nvarchar(80) default null comment '目的地点';
alter table T_ATS_TRIP modify column FISLEGHOLY char(1) default null comment '是否节假日';
alter table T_ATS_TRIP modify column FISPUBHOLY char(1) default null comment '是否公休日';
alter table T_ATS_TRIP modify column FAPPLYDATE datetime default null comment '申请日期';
alter table T_ATS_TRIP modify column FCREATORID int default null comment '创建人';
alter table T_ATS_TRIP modify column FCREATEDATE datetime default null comment '创建日期';
alter table T_ATS_TRIP modify column FMODIFIERID int default null comment '修改人';
alter table T_ATS_TRIP modify column FMODIFYDATE datetime default null comment '修改日期';
alter table T_ATS_TRIP modify column FAUDITORID int default null comment '审核人';
alter table T_ATS_TRIP modify column FAUDITDATE datetime default null comment '审核日期';
alter table T_ATS_TRIP modify column FFORBIDDERID int default null comment '禁用人';
alter table T_ATS_TRIP modify column FFORBIDDATE datetime default null comment '禁用日期';
alter table T_ATS_TRIP modify column FDOCUMENTSTATUS char(1) default null comment '数据状态';
alter table T_ATS_TRIP modify column FFORBIDSTATUS char(1) default null comment '禁用状态';
alter table T_ATS_TRIP modify column FBILLNO nvarchar(30) default null comment '单据编号';
alter table T_ATS_TRIP modify column FBILLTYPEID varchar(36) default null comment '单据类型';
ATS考勤2.20考勤计算(出差单)
本文2024-09-16 18:17:22发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-21176.html