数据表:t_org_organizations(组织机构)

t_org_organizations(组织机构):描述

名称

t_org_organizations(组织机构)

代码

t_org_organizations

注释

组织机构

模型

BOS

主键

pk_org_organizations


t_org_organizations(组织机构):列规格定义

名称

代码

数据类型

长度

强制

注释

组织内码

FORGID

int

 

TRUE

 

组织编码

FNUMBER

nvarchar(30)

30

TRUE

 

组织形态内码

FORGFORMID

int

 

TRUE

来源于基础资料

联系人

FCONTACT

nvarchar(100)

100

TRUE

 

联系电话

FTEL

nvarchar(100)

100

TRUE

 

地址

FADDRESS

nvarchar(255)

255

TRUE

 

组织职能

FORGFUNCTIONS

nvarchar(255)

255

TRUE

来源于基础资料

是否核算组织

FISACCOUNTORG

char(1)

1

TRUE

0:否 1:是

是否业务组织

FISBUSINESSORG

char(1)

1

TRUE

0:否 1:是

核算组织类型

FACCTORGTYPE

nvarchar(30)

30

TRUE

0:否 1:是

所属法人

FPARENTID

int

 

TRUE

 

创建人

FCREATORID

int

 

TRUE

 

创建日期

FCREATEDATE

datetime

 

FALSE

 

修改人

FMODIFIERID

int

 

TRUE

 

修改日期

FMODIFYDATE

datetime

 

FALSE

 

禁用状态

FFORBIDSTATUS

char(1)

1

TRUE

0:否 1:是

禁用人

FFORBIDORID

int

 

TRUE

 

禁用日期

FFORBIDDATE

datetime

 

FALSE

 

状态

FDOCUMENTSTATUS

char(1)

1

TRUE

 

系统预置

FISSYSPRESET

char(1)

1

TRUE

 

审核人

FAUDITORID

int

 

TRUE

 

审核日期

FAUDITDATE

datetime

 

FALSE

 

Column_23

facctgrangeid

int

 

FALSE

 

Column_24

fvaluationmethod

varchar(20)

20

FALSE

 

Column_25

facctgorgid

int

 

FALSE

 

Column_26

facctgsystemid

int

 

FALSE

 

Column_27

fdividedbasis

varchar(20)

20

FALSE

 

默认会计政策

FACCTPOLICYID

int

 

FALSE

 

邮编

FPOSTCODE

varchar(30)

30

FALSE

 


t_org_organizations(组织机构):脚本代码

if exists (select 1
from sysindexes
where id = object_id('t_org_organizations')
and name = 'idx_org_organizations_parentid'
and indid > 0
and indid < 255)
drop index t_org_organizations.idx_org_organizations_parentid
go

if exists (select 1
from sysobjects
where id = object_id('t_org_organizations')
and type = 'U')
drop table t_org_organizations
go

/*==============================================================*/
/* Table: t_org_organizations */
/*==============================================================*/
create table t_org_organizations (
FORGID int not null default 0,
FNUMBER nvarchar(30) not null default '',
FORGFORMID int not null default 0,
FCONTACT nvarchar(100) not null default '',
FTEL nvarchar(100) not null default '',
FADDRESS nvarchar(255) not null default '',
FORGFUNCTIONS nvarchar(255) not null default '',
FISACCOUNTORG char(1) not null default '0',
FISBUSINESSORG char(1) not null default '0',
FACCTORGTYPE nvarchar(30) not null default '',
FPARENTID int not null default 0,
FCREATORID int not null default 0,
FCREATEDATE datetime null,
FMODIFIERID int not null default 0,
FMODIFYDATE datetime null,
FFORBIDSTATUS char(1) not null default '',
FFORBIDORID int not null default 0,
FFORBIDDATE datetime null,
FDOCUMENTSTATUS char(1) not null default '',
FISSYSPRESET char(1) not null default '0',
FAUDITORID int not null default 0,
FAUDITDATE datetime null,
facctgrangeid int null,
fvaluationmethod varchar(20) null,
facctgorgid int null,
facctgsystemid int null,
fdividedbasis varchar(20) null,
FACCTPOLICYID int null,
FPOSTCODE varchar(30) null,
constraint PK_ORG_ORGANIZATIONS primary key (FORGID)
)
go

/*==============================================================*/
/* Index: idx_org_organizations_parentid */
/*==============================================================*/
create index idx_org_organizations_parentid on t_org_organizations (
FPARENTID ASC
)
go


t_org_organizations(组织机构):键值定义

名称

代码

主要的

pk_org_organizations

pk_org_organizations

TRUE


t_org_organizations(组织机构):索引定义

名称

代码

唯一的

群集器

主要的

外键

候选键

表格

idx_org_organizations_parentid

idx_org_organizations_parentid

FALSE

FALSE

FALSE

FALSE

FALSE

t_org_organizations(组织机构)