现在的位置: 首页 > 综合 > 正文

金蝶主要表说明(开发人员专用)

2012年11月07日 ⁄ 综合 ⁄ 共 2777字 ⁄ 字号 评论关闭
用于KIS专业版,K310.4 其他版本测试使用

 select distinct id from 表名

distinct是过滤掉重复的记录
 
字段信息表
select * from ICTransactionType
select * from ICTemplate
select * from ICTemplateEntry
 
ICTransactionType 主要业务单据表
ICTemplate 单据表头字段描述
ICTemplateEntry 单据表体字段描述
关联信息是ICTransactionType.fTemplateid=ICTemplate.fid=ICTemplateEntry.fid
ICChatBillTitle 单据序时簿模版表
GLNoteCitation 套打模版表
t_TableDescription 表描述
t_FieldDescription 表字段描述
t_SystemProfile  系统参数
    CL--总账
    IC--业务
    StartPeriod--启用期间
    CurrentPeriod--当前期间
    CurrentYear--当前年度
    StartYear--启用年度
 
ICBal 存货余额表
ICInvBal 库房存货余额表
ICInventory 存货表
ICInvInitial 存货初始数据表
dbo.t_rp_BillType --应收应付单据类型
 t_RP_NewReceiveBill 预收 收款单
 
1 --单据类型
SELECT t1.FID,t1.FName,t1.FNumber,t1.FNote,t1.FAcctID,t2.FNumber as FAcctNumber 
FROM ICBillType t1 left join t_Account t2 ON t1.FAcctID=t2.FAccountID Order by t1.FID
---单据对应交易类型
select fbillid,FbillName as fbillname,fcanalterbillno,fcheckaftersave,fusebillcoderule 
from icbillno where fbillid>0 order by fbillid
3
---单据设置(编码规则)
SELECT FBillName AS FBillName,FDesc,( case FCanAlterBillNo when 1 then '是' else '否' end) FCanAlterBillNo,
( case FCheckAfterSave when 1 then '是' else '否' end) FCheckAfterSave,
( case FUseBillCodeRule when 1 then '是' else '否' end) FUseBillCodeRule FROM ICBillNo where FBillID IN (SELECT ABS(FID) FROM ICClassType WHERE FControl&32>0) Order by FPos

部分存储过程描述

t_Rpt_Content 自定义报表

t_Rpt_Leaderaudit 报表审批信息表

t_Rpt_MultiAcct 多账套设置表

t_Rpt_MultiAcctEntry 账套信息表

t_Rpt_MultiAcctRight 账套授权信息表

t_Rpt_Profile 报表参数设置表

t_Rpt_PropClass 报表属性类别表

t_Rpt_PropItem 报表类别项目表

 

部分存储过程描述

t_Rpt_Content 自定义报表

t_Rpt_Leaderaudit 报表审批信息表

t_Rpt_MultiAcct 多账套设置表

t_Rpt_MultiAcctEntry 账套信息表

t_Rpt_MultiAcctRight 账套授权信息表

t_Rpt_Profile 报表参数设置表

t_Rpt_PropClass 报表属性类别表

t_Rpt_PropItem 报表类别项目表

t_Rpt_Right 报表授权信息表

t_Rpt_View 报表视图设置表

t_Rpt_LeaderAudit2 报表审批信息表

t_Rpt_MultiAcct2 多账套设置表

t_Rpt_MultiAcctEntry2 账套信息表

t_Rpt_MultiAcctRight2 账套授权信息表

t_Rpt_Profile2 报表参数设置表

t_Rpt_PropClass2 报表属性类别表

t_Rpt_PropItem2 报表类别项目表

t_Rpt_Right2 报表授权信息表

t_Rpt_View2 报表视图设置表

 

 单据状态值

 FStatus 里的每个值都是什么意思 有0 1 2 3
0未审核
1审核
2被关联
3核销或关闭

 

 --K312.1关键字有关信息
--类型
select FItemClassID,FNumber,FName as FName,' ' As FFieldName From t_itemclass Where FType=1 and FItemClassID not in(6,7,2023) and FItemClassID>0
SELECT *,FName_CHS as FName
FROM ICClassType WHERE  FID>0  and FBillTypeID=1 and FControl & 1 = 1
ORDER BY FName_CHS
SELECT * FROM ICCLASSACTIONLIST T1 LEFT OUTER JOIN ICCLASSACTION T2 ON (T1.FCLASSACTIONID=T2.FID) WHERE T1.FCLASSTYPEID=1001303 ORDER BY T1.FORDER
SELECT Distinct FTypeID, FName FROM t_SubMesType  ORDER BY FTypeID
--关键字表
Select FCaption As FCaption ,FInterID,FKeyword,FValueType,FDataSource,FBaseField,FSourceSql,FSourceField,FISAllowEnter,FISNeed from ICReportKeywords where FKeywordType=0 order by FInterID ASC

K312.1 应收凭证模版相关存储过程
select count(1) as recordcount  from syscolumns where id=(select id from sysobjects where name='t_log')

select FNoteTranType,FBillTimeStamp from ICVoucherTplType
where FInterID=5001

SELECT FTimeStamp,* FROM ICCLassType WHERE FID=1000000

--exec p_rp_UpdateVoucherTpl 1000000,5001,'0x00000000000922F5' 

抱歉!评论已关闭.