二、K3 Cloud 开发插件《K3 Cloud 常用数据表整理》
一、数据库查询常用表
--查询数据表
select * from
(
select convert(varchar(4000),t1.FKERNELXML.query('//TableName')) as 'Item',t1.FKERNELXML,t2.FNAME, t1.*
from T_META_OBJECTTYPE t1
left join T_META_OBJECTTYPE_L t2 on t1.FID=t2.FID
--where t1.fid='SAL_SaleOrder'
) t
where Item<>'' and FNAME like '%收料通知单%'
通过表T_META_OBJECTTYPE的FKERNNELXML字段进行xml查找
库存状态列表
select t1.FSTOCKSTATUSID,t1.FNUMBER,t2.FNAME from T_BD_STOCKSTATUS t1
left join T_BD_STOCKSTATUS_L t2 on t1.FSTOCKSTATUSID=t2.FSTOCKSTATUSID
单据类型
select t1.FBILLTYPEID,t1.FNUMBER,t2.FNAME from T_BAS_BILLTYPE t1
left join T_BAS_BILLTYPE_L t2 on t1.FBILLTYPEID=t2.FBILLTYPEID
where t1.FBILLFORMID='QM_InspectBill' --单据类型--检验单
基础资料
T_ORG_ORGANIZATIONS 组织表
T_ORG_ORGANIZATIONS_L 组织表
T_BAS_ASSISTANTDATA_L 辅助资料分类
T_BAS_ASSISTANTDATAENTRY 辅助资料列表
T_BAS_ASSISTANTDATAENTRY_L 辅助资料列表
t_bd_accountbook_l(账簿多语言)
t_bd_accountbook(账簿)
t_bd_material(物料)
t_bd_material_l(物料多语言)
T_BD_OPERATOR(业务员)
T_BD_OPERATOR_L(业务员多语言)
T_BD_STAFF(员工表)
t_BD_Stock(仓库)
t_bd_supplier(供应商)
财务
t_AP_payable(应付单表头)
T_AP_PAYBILL(付款单)
t_AR_receivable(应收单表头)
t_AR_receivable(应收单表头)
t_gl_voucher(凭证)
T_IV_PURCHASEIC(采购发票)
T_IV_SALESIC(销售发票)
供应链
T_PUR_POORDER(采购订单)
T_PUR_PRICELIST (价目表)
T_PUR_RECEIVE(采购收料单)
T_PUR_REQUISITION(采购申请)
T_SAL_DELIVERYNOTICE(销售发货通知单)
T_SAL_ORDER(销售订单)
T_SAL_OUTSTOCK(销售出库单)
T_SAL_RETURNSTOCK(销售退货单)
T_STK_INSTOCK(入库单)
T_STK_InvBal(库存余额表)
T_STK_INVENTORY(即时库存表)
4.制造
T_ENG_BOM(物料清单)
T_PRD_INSTOCK(生产入库单)
T_PRD_MO(生产订单)
T_PRD_MORPT(生产汇报单)
T_PRD_PICKMTRL(生产领料单)
T_PRD_PPBOM(生产用料清单)
T_PRD_PREPAREMTRL(生产备料单据头)
T_PRD_RETURNMTRL(生产退料单)
T_SUB_FEEDMTRL(委外补料单)
T_SUB_PICKMTRL(委外领料单)
T_SUB_PPBOM(委外用料清单)
T_SUB_REQORDER(委外订单)
T_SUB_RETURNMTRL(委外退料单)
--物料名称
select m.fmaterialid,m.fmasterid, fname,m.fnumber from t_bd_material m
join t_bd_material_l l on
l.fmaterialid=m.fmaterialid
where 1=1
--and
m.fmaterialid=147002
and m.fnumber='XACPWM0067'
--and l.fname like
'%扯面%'
order by m.fmaterialid desc
--组织
select
V_SCM_OWNERORG_L.FNAME,* from V_SCM_OWNERORG left join V_SCM_OWNERORG_L on
V_SCM_OWNERORG.FORGID=V_SCM_OWNERORG_L.FORGID
select l.FNAME,*
from T_ORG_ORGANIZATIONS o
join T_ORG_ORGANIZATIONS_L l
on
l.FORGID=o.FORGID
--元数据
select * from t_meta_objecttype_l
ml,t_meta_objecttype m where fname like '%工序汇报%' and
ml.fid=m.fid
--部门
select b.FNAME,* from T_BD_DEPARTMENT a join
T_BD_DEPARTMENT_L b on a.FDEPTID=b.FDEPTID
--单据转换
select * from
T_META_CONVERTRULE where
fid='PlanOrder_PPBom'
--通过元数据唯一id查询菜单
select * from
T_META_CONSOLEDETAIL where FOBJECTID like '%stk_%'
--反写规则
select
rl.FNAME, * from T_BF_WRITEBACKRULE r
left join T_BF_WRITEBACKRULE_L rl on
rl.FID=r.FID and rl.FLOCALEID=2052
left join T_BF_WRITEBACKRULECUST rc on
r.FID=rc.FID
where (rl.FNAME like '%生产线生产%' or rl.FID like '%sfc_%') and
rc.FFORBIDSTATUS='A'
--转换规则
select * from T_META_CONVERTRULE where
FID like '%rem_%'
select * from
T_META_CONVERTRULE_L
--反写规则
select * from T_BF_WRITEBACKRULE where
fsourceformid like '%SFC_%' and ftargetformid like
'%SFC_%'
--参数
select * from
t_bas_sysparameter
--枚举值
select * from T_META_FORMENUM e
join
T_META_FORMENUM_L el on el.FID=e.FID
where FNAME like
'%生产线领料单%'
--单据类型
select * from T_BAS_BILLTYPE where FBILLFORMID
like '%REM_INSTOCK%'
--菜单操作对应类名
select * from
T_MDL_FORMOPERATIONTYPE
--操作里面的服务
select * from
T_MDL_FORMBUSINESS_L where FDESC like '%更新即时库存%'
select * from
T_MDL_FORMBUSINESS where FACTIONID=45
--保存界面布局
select * from
T_BAS_FormParameter
where FPARAOBJID like
'%SFC_OperationPlanning%'
--用户
select * from T_SEC_USER
--用户参数
select * FROM T_BAS_UserParameter where FPARAMETEROBJID
like '%rem_%'
--IDE函数
select
fl.FNAME,f.FAPPEARANCECLASS,f.FELEMENTCLASS, * from T_MDL_ELEMENTTYPE f join
T_MDL_ELEMENTTYPE_L fl on f.FID=fl.FID
where FELEMENTCLASS like
'%OPERATIONSTATUS%' or FAPPEARANCECLASS like
'%OPERATIONSTATUS%'
--枚举
select * from T_META_FORMENUM_L where
fname ='REM_业务类型'
select * from t_Meta_Formenumitem where
fid='c4a9508f-7af8-4edb-bb2f-fc21c866ee41'
--权限对象,权限项
select *
from T_SEC_PERMISSIONOBJECT
select * from
T_SEC_PERMISSIONOBJECTENTRY
--通过菜单查找元数据对象,查找表名(在xml中搜t_)
select *
from T_META_OBJECTTYPE h join T_META_OBJECTTYPE_L l on l.FID=h.FID where FNAME
like '%运算日志%'
--单位
select l.FNAME, * from T_BD_UNIT h join
T_BD_UNIT_L l on h.FUNITID=l.FUNITID where l.FNAME like '%千克%'
--单据转换、业务流程、反写规则
SELECT * FROM T_BF_DEFVERSION
SELECT * FROM
T_BF_DEFVERSION_L
SELECT * FROM T_BF_DEFVERSIONLOOKUP
SELECT * FROM
T_BF_INSTANCE
SELECT * FROM T_BF_INSTANCEAMOUNT
SELECT * FROM
T_BF_INSTANCEAMOUNTHIS
SELECT * FROM T_BF_INSTANCEENTRY
SELECT * FROM
T_BF_INSTANCEENTRYHIS
SELECT * FROM T_BF_INSTANCEHIS
SELECT * FROM
T_BF_INSTANCESNAP
SELECT * FROM T_BF_INSTANCESNAPHIS
SELECT * FROM
T_BF_INSTANCETRACK
SELECT * FROM T_BF_MYFAVOURITE
SELECT * FROM
T_BF_PROCDEF
SELECT * FROM T_BF_PROCDEF_L
SELECT * FROM
T_BF_PROCESSTYPE
SELECT * FROM T_BF_PROCESSTYPE_L
SELECT * FROM
T_BF_PUBLISH
SELECT * FROM T_BF_PUBLISH_L
SELECT * FROM
T_BF_PUBLISHENTRY
SELECT * FROM T_BF_TABLEDEFINE
SELECT * FROM
T_BF_TRACKBACKUPLOG
SELECT * FROM T_BF_WRITEBACKRULE
SELECT * FROM
T_BF_WRITEBACKRULE_L
SELECT * FROM T_BF_WRITEBACKRULECUST
SELECT * FROM
T_META_CONVERTRULE
SELECT * FROM T_META_CONVERTRULE_L
--SQL
SERVER单据转换、业务流程、反写规则
CREATE TABLE TMP_COSTCALTABLE
(FTABLENAME
VARCHAR(30));</P>
<P>INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_DEFVERSION');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_DEFVERSION_L');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_DEFVERSIONLOOKUP');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_INSTANCE');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_INSTANCEAMOUNT');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_INSTANCEAMOUNTHIS');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_INSTANCEENTRY');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_INSTANCEENTRYHIS');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_INSTANCEHIS');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_INSTANCESNAP');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_INSTANCESNAPHIS');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_INSTANCETRACK');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_MYFAVOURITE');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_PROCDEF');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_PROCDEF_L');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_PROCESSTYPE');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_PROCESSTYPE_L');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_PUBLISH');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_PUBLISH_L');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_PUBLISHENTRY');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_TABLEDEFINE');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_TRACKBACKUPLOG');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_WRITEBACKRULE');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_WRITEBACKRULE_L');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_BF_WRITEBACKRULECUST');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_META_CONVERTRULE');
INSERT INTO TMP_COSTCALTABLE(FTABLENAME)
VALUES('T_META_CONVERTRULE_L'
SELECT * FROM
TMP_COSTCALTABLE
--查看系统所有表占用的空间情况
create table tmpspace (Fname
varchar(50),
Frows int,
Freserved varchar(50),
Fdata
varchar(50),
Findex_size varchar(50),
Funused
varchar(50));
--插入所有表数据大小
insert into tmpspace
(Fname,Frows,Freserved, Fdata,Findex_size,Funused)
exec sp_msforeachTable
@Command1="sp_spaceused '?'
--查询
WITH FCBCOSTSPACE AS (
select
CONVERT(DECIMAL,replace(sp.fdata,'KB',''))/1024 SPACE_MB,sp.* from tmpspace
sp
inner join TMP_COSTCALTABLE cb on cb.FTABLENAME=sp.Fname)
SELECT * FROM
FCBCOSTSPACE
ORDER BY SPACE_MB DESC
--临时表占用的总大小(M)
select
SUM(CONVERT(DECIMAL,replace(sp.fdata,'KB','')))/1024 M from tmpspace sp
inner
join TMP_COSTCALTABLE cb on cb.FTABLENAME=sp.Fname;
--drop table
tmpspace;
--DROP TABLE TMP_COSTCALTABLE;</P>
二、K3 Cloud 开发插件《K3 Cloud 常用数据表整理》的更多相关文章
- K3 WISE 开发插件《K3 WISE常用数据表整理》
在后台数据库ICClassType表中,字段FID<0的是老单,FID>0的是新单. ----------------系统设置------------------------ FStatu ...
- 一、K3 WISE 开发插件《K3 WISE常用数据表整理》
在后台数据库ICClassType表中,字段FID<0的是老单,FID>0的是新单. ----------------系统设置------------------------FStatus ...
- K3CLOUD 常用数据表
二.K3 Cloud 开发插件<K3 Cloud 常用数据表整理>一.数据库查询常用表 按 Ctrl+C 复制代码 按 Ctrl+C 复制代码 通过表T_META_OBJECTTYPE的F ...
- 金蝶K3常用数据表
金蝶K3WISE常用数据表 K3Wise 14.2 清空密码update t_User set FSID=') F ", ,P T #8 *P!D &D 80!N &@ &l ...
- 【基于WinForm+Access局域网共享数据库的项目总结】之篇二:WinForm开发扇形图统计和Excel数据导出
篇一:WinForm开发总体概述与技术实现 篇二:WinForm开发扇形图统计和Excel数据导出 篇三:Access远程连接数据库和窗体打包部署 [小记]:最近基于WinForm+Access数据库 ...
- 四、K3 WISE 开发插件《工业单据老单插件开发新手指导》
开发环境:K/3 Wise 13.0.K/3 Bos开发平台.Visual Basic 6.0 =============================================== 目录 一 ...
- K3CLOUD常用数据表
一.数据库查询常用表 --查询数据表select * from ( select convert(varchar(4000),t1.FKERNELXML.query('//TableName')) a ...
- 金蝶K3WISE常用数据表
K3Wise 14.2 清空密码update t_User set FSID=') F ", ,P T #8 *P!D &D 80!N &@ <0 C '+''''+' ...
- 三、K3 Cloud 开发插件《K3 Cloud插件开发新手指导 + K3 Cloud插件开发代码调试》
案例需求:在销售订单上新增一个按钮,在订单明细中新增一个字段,命名[即时库存]. 点击按钮,弹出“Hello World!”,并获取订单明细物料的即时库存,填入字段[即时库存]. 开发工具:Visua ...
随机推荐
- Java EE的十三个技术规范
Java 是一种非常棒的语言,健壮,跨平台运行,屏蔽了具体的平台环境的要求,也就是说只要支持java 虚拟机,就可以运行java程序. 下面,我们一起学习一下J2EE的十三种技术规范. 一.JDBC: ...
- Dataguard 主库与备库的Service_Name 不一致时,如何配置客户端TNSName
ORA11G_DG= (DESCRIPTION_LIST= (FAILOVER=on) (DESCRIPTION= (ADDRESS=(PROTOCOL = TCP)(HO ...
- [Php] Deprecated: Function ereg_replace() is deprecated
From: http://www.zxyf.net/n6805c18.shtml 这个问题是因为你用的php版本过高. 在php5.3中,正则函数ereg_replace已经废弃,而dedecms还继 ...
- SVN中图标符号的含义
黄色感叹号(有冲突): 这是有冲突了,冲突就是说你对某个文件进行了修改,别人也对这个文件进行了修改,别人抢在你提交之前先提交了,这时你再提交就会被提示发生冲突,而不允许你提交,防止你的提交覆盖了别人的 ...
- 如何通过SSH及其Client 批量分发文件和执行管理命令
一.前提:已经配置好root和hadoop用户的无密码的SSH访问 二.直接上代码 ##复制单个文件[hadoop@nn1 hadoop]$ for ip in 102 103 104 111 112 ...
- php sql纯语句
条件语句CASE CASE WHEN a.business_mark != END as source_type, 条件语句 CASE ELSE CASE WHEN a.business_mark ! ...
- koa2使用注意点总结
post请求,ajax传入的参数获取的时候为ctx.request.body get请求,ajax传入参数获取的时候为ctx.request.query.参数名 koa-csrf可以设置什么请求的时候 ...
- Oracle:在 debian9 上完美安装 oracle 10.2.0.5 x64
多余废话不说. 多动脑子,思路不要僵化. 关键点: --------------------------------------------------- 安装i386的支持库:libc6-dev:3 ...
- 怎么使用ABBYY中的Bates编号
ABBYY PDF Transformer+ 可让您将 Bates 编号添加到 PDF 文档.Bates 编号可方便文档搜索和检索,并更加有利于电子归档.下面小编给小伙伴们讲讲ABBYY PDF Tr ...
- Python 程序员都会喜欢的 6 个库
在编程时,小挫折可能与大难题一样令人痛苦.没人希望在费劲心思之后,只是做到弹出消息窗口或是快速写入数据库.因此,程序员都会喜欢那些能够快速处理这些问题,同时长远来看也很健壮的解决方案. 下面这6个Py ...