double iQty= dt.Compute("sum(数量)", string.Format("编码='{0}' and 型号='{1}'", matCode, atch)) == DBNull.Value ?
                    0.000 : Convert.ToDouble(dt.Compute("sum(数量)", string.Format("编码='{0}' and 型号='{1}'", matCode, atch)));
               

posted on 2013-08-06 16:21  清风暮雨  阅读(631)  评论(0)    收藏  举报