2011-11-16 又学一招,集合转化临时表的方法: var sql = string.Format(@"select b.FENTRYID,a.{2} from {0} a inner join {1} b on a.FID = b.FID inner join table(strSplit(@FENTRYID, ',')) on b.FENTRYID = FENTRYID", ksql遇到Table(strSplit("xxxx",','))会把它转换成临时表…
关联表更新字段 UPDATE tmp369faa3f7d224b0595670425008 as t1 SET FStatus=-1 where exists(select 1 from t_BD_Supplier where FUseOrgId = t1.FDestOrgID and FMasterId = t1.FMasterId) UPDATE 后面使用别名必须加AS: 另一种写法: update t_pm_otherowner set fcontrolunitid=(select fco…
分页报表首先需要实现的方法就是GetList,这个方法用来获得分页的条件. 其他的就和其他报表类似了. using System; using System.Collections.Generic; using System.Linq; using System.Text; using Kingdee.BOS.Core.Report.PlugIn; using Kingdee.BOS.Core.Report; using System.Data; using Kingdee.BOS.App.Da…