aspxgridview根据不同内容汇总数据
2011-05-13 17:16
253 查看
int totalSum; |
02 | protected void lggrdpcxx_CustomSummaryCalculate( object sender, DevExpress.Data.CustomSummaryEventArgs e) |
03 | { |
04 | string yszt ; |
05 | string ywzt ; |
06 | string yxxs ; |
07 | string sfqy ; |
08 | if (lggrdpcxx.VisibleRowCount > 0) |
09 | { |
10 | yszt = e.GetValue( "验收状态" ).ToString(); |
11 | ywzt = e.GetValue( "业务状态" ).ToString(); |
12 | yxxs = e.GetValue( "允许销售" ).ToString(); |
13 | sfqy = e.GetValue( "是否启用" ).ToString(); |
14 | // Initialization. |
15 | if (e.SummaryProcess == DevExpress.Data.CustomSummaryProcess.Start) |
16 | totalSum = 0; |
17 | // Calculation. |
18 | if (e.SummaryProcess == DevExpress.Data.CustomSummaryProcess.Calculate) |
19 | if (yszt == "合格" && ywzt == "入库完成" && yxxs == "是" && sfqy == "是" ) |
20 | totalSum += Convert.ToInt32(e.FieldValue); |
21 | // Finalization. |
22 | if (e.SummaryProcess == DevExpress.Data.CustomSummaryProcess.Finalize) |
23 | e.TotalValue = totalSum; |
24 | } |
25 | } |
相关文章推荐
- aspxgridview根据不同内容汇总数据
- 20150709---Web中GridView控件根据绑定的数据显示不同的图片
- aspxGridview 根据单元格值得不同,设置单元格字体的颜色
- 关于dev的Gridview控件的行数据的颜色控制,根据不同的值设置不同颜色
- ASPxGridView数据汇总
- 必须根据不同的数据内容来套用不同的编码或是译码函式,以便取得对应的字节或是字符串数据
- AspxGridView 数据的汇总统计
- GridView根据获取的值显示不同内容
- AspxGridView客户端多列汇总勾选的数据
- 关于dev的Gridview控件的行数据的颜色控制,根据不同的值设置不同颜色
- GridView、DateTable数据行 内容自适应 不换行
- mysql语句 一个表统计每天产生的不同类型数据 根据类型字段 统计每天有多少
- Repeater 绑定数据如何根据数据列的内容排序
- mysql 根据select内容批量更新数据
- mysql 根据select内容批量更新数据
- jQuery数据检索中根据关键字快速定位GridView指定行的实现方法
- javascript 根据select所选项的不同显示和隐藏部分内容
- GridView模版列中根据数据动态添加RadioButtonList项
- AspxGridView控件定时动态显示数据
- Extjs textarea 实现 数据框根据内容自动扩张