easyUI MVC3一些注意的东东(3)

统计合计是有null值的处理

例子:

   decimal ? allIn = (from b in db.ST_BillInDetail
                             join sb in db.ST_Bill on b.billId equals sb.id
                             where (sb.billDate >= startDate && sb.billDate <= endDate && sb.depotId == depotID && sb.billType == (int)ST_BillType.IN )
                             select (decimal?)b.GoodPrice * b.goodCount).Sum();

 

posted @ 2013-04-18 11:58  飞翔的天空  阅读(232)  评论(0编辑  收藏  举报