金蝶K/3 审批相关SQL语句

金蝶K/3 审批相关SQL语句

 --http://127.0.0.1/lightApp/todocheckTask.aspx?AccID=84&&FClasstypeID=1071&&FBillID=1312

select xt.fuserid ,xt.fname,u.fname as fusername ,e.FName as fempname from t_xuntong_user xt with (nolock)
                                                inner join t_user u  with (nolock) on xt.fuserid=u.fuserid
                                                inner join t_Emp e with(nolock) on u.FEmpID=e.FItemID
                                                where u.FUserID>=16384 and xt.fopenid=‘5b025f91e4b0d301fd093ca3‘

 use AIS20180607113701
select fopenid,* from dbo.t_XunTong_User where Fname =‘landv‘
go

use [KDAcctDB]
select facctid,* from dbo.t_ad_kdAccount_gl where FAcctName =‘landv‘
go

select DB_ID(‘AIS20180607113701‘)

SELECT TOP 100 FID,FPushTypeID,FBillTypeID,FInterID,FEntryID,FStatus,FExtInfo
FROM t_SuspendWorkPushQueue WITH(NOLOCK)
ORDER BY FID ASC

select xt.fuserid ,xt.fname,u.fname as fusername ,e.FName as fempname from t_xuntong_user xt with (nolock)
                                                inner join t_user u  with (nolock) on xt.fuserid=u.fuserid
                                                inner join t_Emp e with(nolock) on u.FEmpID=e.FItemID
                                                where u.FUserID>=16384 and xt.fopenid=‘5b025f91e4b0d301fd093ca3‘

--查询已办的集合
select * from (select top 7 t1.FClassTypeID as DocTypeID,i1.FName_CHS as DocTypeName,t1.FBillID as DocID,t4.FName as PrevPerson,i2.FtableName,
                    t1.FUpdateDate as PrevDate,t1.FContent as Title,substring(FContent,charindex(‘:‘,FContent)+1,CHARINDEX(‘,‘,FContent)-CHARINDEX(‘:‘,FContent)-1) as DocNo,t1.FReaded as ReadStatus ,t2.FTaskID as FTaskID
                    from ICClassMCTaskCenter t1  with (nolock)  inner join (--支持移动审批的单据集合
select FClassTypeID,FName_CHS from (
select tb2.FID as FClassTypeID,tb2.FName_CHS as FName_CHS from (
select FClassTypeID    from ICMobileBillType
union
select fid as FClassTypeID from icclasstype where FID>=200000000  and  FBillTypeID=3
union
select fid as FClassTypeID FROM ICClassType  where FID>1000000 and   FFunctionID=259 and FBillTypeID=3 and (FControl & 1) = 1
) tb1
 inner join ICClassType  tb2 on tb1.FClassTypeID=tb2.FID
 where tb2.FMobileControl&2=2
)s1 

 ) i1  on  t1.FClassTypeID=i1.FClassTypeID
                    left join ICClassMCTaskUser t2  with (nolock) on t1.FID=t2.FTaskID
                    left join t_user t4  with (nolock) on t1.FSenderID=t4.FUserID
                    left join icclasstype i2  with (nolock) on i2.FID=t1.FClassTypeID   where   1=1 and t1.FStatus = 1 and t1.FProcessUserID = 16398 and(t2.FMobileDeletedStatus is null or t2.FMobileDeletedStatus<>1) and ((t2.FMobileDeletedStatusUserId is null or  t2.FMobileDeletedStatusUserId=0) or t2.FMobileDeletedStatusUserId=16398)  and  t2.FUserID in (select FGroupID from t_group where FUserID = 16398 union select 16398)  order by t1.FUpdateDate Desc ) Re where  1=1 

select  * from ICClassType where FID=‘1000051‘select * from ICClassTypeEntry where FParentID=‘1000051‘select * from ICClassTableInfo  where FClassTypeID=‘1000051‘

原文地址:https://www.cnblogs.com/landv/p/9424851.html

时间: 2024-10-04 12:19:51

金蝶K/3 审批相关SQL语句的相关文章

金蝶K/3 报销相关SQL语句

金蝶K/3 报销相关SQL语句 use AIS20180607113701 select fopenid,* from dbo.t_XunTong_User where Fname ='' go use [KDAcctDB] select facctid,* from dbo.t_ad_kdAccount_gl where FAcctName ='landv' go http://127.0.0.1//LightApp/ExpenseManagement/ExpenseManagement.ht

金蝶K/3 固定置产相关SQL语句

金蝶K/3 固定置产相关SQL语句 select * from vw_fa_card --固定置产打印原始数据 select FAssetID,FAssetNumber,FAssetName,FGroupName,FUnit,FNum,FLocationName,FGuid from vw_fa_card --序号,资产编码,资产名称,类别,单位,数量,使用部门,Guid select * from vw_AssetInvent_FACardGroup select * from vw_fa_c

oracle 常用相关sql 语句

一.oracle 常用相关sql 语句 1. 连接数据库       su - oracle -c " sqlsplus 用户/密码     注:首次登陆用  sqlplus / as sysdba            注: 关闭数据库:注:shutdown可加关闭选项,从最温和到最粗暴的行为选项为(shutdown.shutdown transactional.shutdown immediate.shutdown abort)                 shutdown:关闭,等待每

mysql数据库中相关sql语句

使用sql语句创建一张表: CREATE TABLE 表名(字段1名称 字段1类型(字段1长度),字段2名称 字段2类型(字段2长度)); 使用sql给表重命名: RENAME TABLE 旧表名 TO 新表名; 将一张表中的编号在某一区间中的数据的某个字段统一更新: UPDATE  表名 SET 字段名=字段值 WHERE id >区间开始值 AND id<区间结束值

ORACLE基本SQL语句-用户及建表篇

一.用户相关SQL语句 /*新建用户*/create user SA identified by 2013; 说明:SA用户名,2013密码 /*授权connect,resource给用户sa*/grant connect,resource to sa; 说明:CONNECT角色: --是授予最终用户的典型权利,最基本的 . ESOURCE 角色: --是授予开发人员的 /*查询所有的用户*/select * from all_users; /*将表STU查询权限授予SA*/GRANT SELE

动态产生和删除相关组件并生成SQL语句

(********************************************************************************************************** * * * 窗体描述:产生SQL条件语句,系统模块 [计划管理-打卡] 打印大/小卡 *           能够根据维护进去的条件,生成过软类型: 缸内过软.缸外过软.连续皂洗.空白 * * 关键功能点:1.动态产生和删除子/父等相关组件按钮(注意移动组件位置) *        

如何从页面SQL语句进行相关后台查询

前几天刚刚做了一个页面书写sql语句,到后台查询相关结果的案例,给大家分享一下.有不足之处请大家多指教!!! 一.页面:因为查询的表不固定,所以表格需要自助生成(这是利用了"jqGrid") 若是不利用"jqGrid"也可以参考方法2. 方法1. <div> <nobr> <div> <form method="get" action="/management/transactionFlow/i

创建数据库和表相关的SQL语句

SQL server注释语句有两种: 一种是单行注释,一种是多行注释. ******************** 单行注释用:--注释一行内容 多行注释用:/* *注释 *多行内容 */ 创建数据库: 语句如下: /*创建数据库主文件 create database student:新建数据库逻辑名称为student filename='d:\stduent_data.mdf':数据库文件保存路径和名字. on primary:primary—默认文件组,表示表是建立在主文件组上,可以省略. s

金蝶BOS 7.5 SQL语句生成分析

今天刚好有空,就分析下 金蝶BOS 7.5 SQL语句生成 方式.(分析环境 Oracle 11.0.2 , 金蝶BOS 7.5.0) 1 操作思路 思路是这样的,在开发环境触发SQL操作,然后在数据库中查出最近执行的SQL,对其分析. 数据库里使用SQL语句: --这里只查询JDBC操作的SQL语句 SELECT t.sql_id,        t.sql_text,        t.sql_fulltext,        to_char(t.last_active_time, 'yyy