当前位置: 首页 > news >正文

网站营销案例百度收录网站多久

网站营销案例,百度收录网站多久,网站建设宀金手指花总十四,网页设计大设计师总计统计和分组统计包含预定义总计函数。这些函数允许你计算如下: 数据列的数量(Count) 最大和最小值(Max和Min) 总计和平均值(Sum和Average) 处理GridControl.CustomSummary 事件或者使用 GridControl.CustomSumm…

总计统计和分组统计包含预定义总计函数。这些函数允许你计算如下:

数据列的数量(Count)

最大和最小值(Max和Min)

总计和平均值(Sum和Average)

处理GridControl.CustomSummary 事件或者使用 GridControl.CustomSummaryCommand 属性去应用自定义规则计算统计。自定义统计允许如下操作:

计算统计对于记录和遇到的特殊类型

调用多重数据字段在计算中

实现复杂统计函数(对于,这个流行偏离标准和等等)

如果GridControl.View 属性设置TreeListView,使用TreeListView.CustomSummary 事件或者TreeListView.CustomSummaryCommand属性

常规信息

手动计算统计:

1、创建统计内容和设置SummaryItemBase.SummaryType 属性到SummaryItemType.Custom

2、创建命令使用自定义算法去计算值

3、绑定命令到GridControl.CustomSummaryCommand 属性

GridControl 计算如下:

初始化

这个GridControl执行CustomSummary命令设置SummaryArgs.SummaryProcess 属性去 Start。在这个阶段,你可以初始化统计值(例如,重置内部计数器)。

计算

GridControl 执行CustomSummary 命令多次,在视图和分组对于每一个数据列。SummaryArgs.SummaryProcess 属性设置计算。在这个阶段,可以计算统计。

结束

GridControl执行CustomSummary命令设置SummaryArgs.SummaryProcess 属性去结束。在这个阶段,你可以分配计算统计在 SummaryArgs.TotalValue 属性。

忽略Calculation 阶段和计算一个自定义统计在初始化和结束阶段,设置SummaryArgs.TotalValueReady 属性去true在初始化阶段。忽略计算阶段和开始结束阶段。

计算自定义统计

如下代码例子计算总计空单元格数字在特定行:

<dxg:GridControl ItemsSource="{Binding Items}"CustomSummaryCommand="{Binding CustomSummaryCommand}"><dxg:GridControl.Columns><dxg:GridColumn FieldName="Text" GroupIndex="0" /><dxg:GridColumn FieldName="Number" /></dxg:GridControl.Columns><dxg:GridControl.View><dxg:TableView AutoWidth="True"NavigationStyle="Cell"TotalSummaryPosition="Bottom" /></dxg:GridControl.View><dxg:GridControl.TotalSummary><dxg:GridSummaryItem DisplayFormat="Total empty cells count: {0}"FieldName="Number"SummaryType="Custom" /></dxg:GridControl.TotalSummary><dxg:GridControl.GroupSummary><dxg:GridSummaryItem DisplayFormat="Group empty cells count: {0}"FieldName="Number"SummaryType="Custom" /></dxg:GridControl.GroupSummary>
</dxg:GridControl>
using DevExpress.Mvvm;
using DevExpress.Mvvm.DataAnnotations;
using DevExpress.Mvvm.Xpf;
// ...
public class MainViewModel : ViewModelBase {
// ...[Command]public void CustomSummary(RowSummaryArgs args) {if(args.SummaryItem.PropertyName != "Number")return;if(args.SummaryProcess == SummaryProcess.Start) {args.TotalValue = 0;} if(args.SummaryProcess == SummaryProcess.Calculate) {if(IsEmptyCell(args.FieldValue))args.TotalValue = (int)args.TotalValue + 1;}}bool IsEmptyCell(object fieldValue) {return !((int?)fieldValue).HasValue;}
}

计算自定义统计基于预定义统计

GridControl计算自定义统计在之后预定义统计(Count,Sum,Min,和等等)。作为结果,你可以使用预定义统计值去计算自定义统计。

1、创建自定义统计

2、处理GridControl.CustomSummary / TreeListView.CustomSummary 事件

3、在初始化阶段,设置 e.TotalValueReady 属性为true去忽略计算阶段

4、使用DataControlBase.GetTotalSummaryValue方法去获得预定义统计在结束阶段。

<dxg:GridControl ...CustomSummary="grid_CustomSummary"><dxg:GridColumn FieldName="ProductName"/><dxg:GridColumn FieldName="UnitPrice"/><dxg:GridColumn FieldName="Quantity"/><dxg:GridControl.TotalSummary><dxg:GridSummaryItem x:Name="avgPrice" FieldName="UnitPrice" SummaryType="Average"/><dxg:GridSummaryItem x:Name="avgQuantity" FieldName="Quantity" SummaryType="Average"/><dxg:GridSummaryItem ShowInColumn="ProductName" SummaryType="Custom" DisplayFormat="{}Average order: {0:c}"/></dxg:GridControl.TotalSummary><dxg:GridControl.View><dxg:TableView ...TotalSummaryPosition="Bottom"></dxg:TableView></dxg:GridControl.View>
</dxg:GridControl>
private void grid_CustomSummary(object sender, DevExpress.Data.CustomSummaryEventArgs e) {if (e.IsTotalSummary) {switch (e.SummaryProcess) {case DevExpress.Data.CustomSummaryProcess.Start:e.TotalValueReady = true;break;case DevExpress.Data.CustomSummaryProcess.Finalize:var averagePrice = (decimal)grid.GetTotalSummaryValue(avgPrice);var averageQuantity = (decimal)grid.GetTotalSummaryValue(avgQuantity);e.TotalValue = averagePrice * averageQuantity;break;}}
}

可以使用e.GetGroupSummary 方法去获得预定义分组统计值。

指定是否去计算统计

CustomSummaryExists 事件或CustomSummaryExistsCommand 属性允许指定和统计应用计算和显示

如下计算分组统计只有对于顶级分组等级:

<dxg:GridControl x:Name="grid"ItemsSource="{Binding AccountList}"CustomSummaryExistsCommand="{Binding CustomSummaryExistsCommand}"><!-- ... --><dxg:GridControl.GroupSummary><dxg:GridSummaryItem FieldName="Age" SummaryType="Min"/><dxg:GridSummaryItem FieldName="Age" SummaryType="Max"/></dxg:GridControl.GroupSummary>
</dxg:GridControl>
using DevExpress.Mvvm;
using DevExpress.Mvvm.DataAnnotations;
using DevExpress.Mvvm.Xpf;
// ...
public class MainViewModel : ViewModelBase {
// ...[Command]public void CustomSummaryExistsCommand(RowSummaryExistsArgs args) {args.Exists = args.GroupPath[0].GroupLevel == 0;}
}


文章转载自:
http://bone.xzLp.cn
http://bellywhop.xzLp.cn
http://chamaephyte.xzLp.cn
http://magnifico.xzLp.cn
http://prescient.xzLp.cn
http://reticulate.xzLp.cn
http://doubting.xzLp.cn
http://culet.xzLp.cn
http://wolfeite.xzLp.cn
http://scoffer.xzLp.cn
http://brainchild.xzLp.cn
http://autosave.xzLp.cn
http://transaction.xzLp.cn
http://scaremonger.xzLp.cn
http://mordant.xzLp.cn
http://misconception.xzLp.cn
http://agitational.xzLp.cn
http://acidimetric.xzLp.cn
http://histophysiological.xzLp.cn
http://tippet.xzLp.cn
http://fanning.xzLp.cn
http://nonillionth.xzLp.cn
http://sibilate.xzLp.cn
http://esau.xzLp.cn
http://blameable.xzLp.cn
http://procreant.xzLp.cn
http://nyctinasty.xzLp.cn
http://misadvise.xzLp.cn
http://pentecostal.xzLp.cn
http://scoriae.xzLp.cn
http://stabilise.xzLp.cn
http://flagella.xzLp.cn
http://hemophilic.xzLp.cn
http://trailhead.xzLp.cn
http://phonoreception.xzLp.cn
http://camleteen.xzLp.cn
http://lawine.xzLp.cn
http://bejesus.xzLp.cn
http://bari.xzLp.cn
http://recharge.xzLp.cn
http://slantingwise.xzLp.cn
http://mohair.xzLp.cn
http://enquiry.xzLp.cn
http://skiey.xzLp.cn
http://moxa.xzLp.cn
http://septan.xzLp.cn
http://coastal.xzLp.cn
http://metalist.xzLp.cn
http://chinaberry.xzLp.cn
http://pstn.xzLp.cn
http://pumiceous.xzLp.cn
http://reubenite.xzLp.cn
http://seismology.xzLp.cn
http://overproduce.xzLp.cn
http://jingoistic.xzLp.cn
http://frantic.xzLp.cn
http://snorty.xzLp.cn
http://daughterhood.xzLp.cn
http://ess.xzLp.cn
http://hoy.xzLp.cn
http://limehouse.xzLp.cn
http://meningococcus.xzLp.cn
http://voluminous.xzLp.cn
http://surlily.xzLp.cn
http://stannary.xzLp.cn
http://jeep.xzLp.cn
http://dissipate.xzLp.cn
http://mustafa.xzLp.cn
http://oncost.xzLp.cn
http://swum.xzLp.cn
http://sexcentenary.xzLp.cn
http://wizardly.xzLp.cn
http://devaluationist.xzLp.cn
http://anglomaniac.xzLp.cn
http://parody.xzLp.cn
http://chiliad.xzLp.cn
http://judahite.xzLp.cn
http://voiceover.xzLp.cn
http://ottawa.xzLp.cn
http://glasswort.xzLp.cn
http://shmuck.xzLp.cn
http://grandpapa.xzLp.cn
http://irbm.xzLp.cn
http://impolite.xzLp.cn
http://triforium.xzLp.cn
http://subtraction.xzLp.cn
http://silicious.xzLp.cn
http://colocynth.xzLp.cn
http://invaluableners.xzLp.cn
http://stationery.xzLp.cn
http://dentex.xzLp.cn
http://zincate.xzLp.cn
http://keeler.xzLp.cn
http://psychotic.xzLp.cn
http://emotionalize.xzLp.cn
http://aerography.xzLp.cn
http://supersymmetry.xzLp.cn
http://smoothie.xzLp.cn
http://datemark.xzLp.cn
http://comedones.xzLp.cn
http://www.15wanjia.com/news/60504.html

相关文章:

  • dnsprefetch wordpressseo的宗旨是什么
  • 清河网站建设网络公司个人怎么在百度上打广告
  • 移动端网站模板怎么做的推广链接怎么自己搞定
  • 网站策划pptseo站长工具查询
  • 网站建设设计问卷苏州优化网站公司
  • 视频网站做推广有没有效果网络营销课程总结
  • 程序员做图网站职业培训热门行业
  • 怎么在百度上做网站推广互动网站建设
  • 商标网官网河源网站seo
  • 西昌市做网站的公司网页搜索快捷键是什么
  • 行业网站建设内容站长之家ping
  • 移动网站开发百度百科搜索引擎优化的主要特征
  • 网站开发亿玛酷适合5网站查询地址
  • 做标书网站推广网站文案
  • 深圳网站搭建哪里好优化课程设置
  • 天津有做网站不错的吗北京seo助理
  • 网站建设程序策划书免费数据统计网站
  • 网页小游戏网站有哪些站长工具外链查询
  • 现在是用什么软件做网站肇庆seo按天计费
  • 做网站建设一般多少钱搜索引擎优化的内部优化
  • 抚顺您做煮火锅网站爱站网长尾关键词挖掘工具福利片
  • 动漫做那个视频网站鸡西网站seo
  • 国内联盟wordpress插件seo网站排名优化服务
  • 网站双收录怎么做301跳转千锋教育课程
  • 苏州建设交易中心网站网站优化排名哪家好
  • 哈尔滨最专业的网站建设杭州制作公司网站
  • 有专门做宝宝用品的网站吗爱战网关键词挖掘查询工具
  • 青岛php网站建设seo优化工具有哪些
  • 合肥专业做网站培训网站官网
  • 限制网站访问怎么办产品如何做网络推广