-- 作者:ybil
-- 发布时间:2008/12/2 15:29:00
--
\'\'\' if e.datacol.name = "金额" then dim sum1,sum2 as Double dim dt as DataTable = e.DataTable dim dr1,dr2,dr3 as DataRow dr1= dt.Find("[编号]= \'03\'") dr2= dt.Find("[编号]= \'05\'") dr3= dt.Find("[编号]= \'18\'")
sum1 = dt .Compute("Sum(金额)","[编号] In(\'06\',\'07\',\'08\',\'09\',\'10\',\'11\',\'12\',\'13\',\'14\',\'15\',\'16\')") sum2 = dt .Compute("Sum(金额)","[编号] In(\'19\',\'20\',\'21\')") dr1("金额") = sum1+sum2 dr2("金额") = sum1 dr3("金额") = sum2 End if
|