protected void ASPxGridViewPoint_OnCustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
try
{
PointIdKeys = e.Parameters;//传递参数 LogHelper.WriteLog("PointIdKeys:"+PointIdKeys); object[] paramets = e.Parameters.Split(';');//分割参数 if (string.IsNullOrEmpty(rootPath))
{
rootPath = ConstConfig.strWebServerM;
} string filePath = rootPath + @"\App_Config\SQL\ORACLE\index_over_view\overView_34_gridPoint.sql"; string fileContent = FileHelper.FileToString(filePath); string sqlContent = fileContent; LogHelper.WriteLog("PointIdKeys 参数长度:" + paramets.Length); string sql = string.Format(sqlContent,paramets);
DataTable dataTable = PublicBllBase.GetDataTable(sql);
if (dataTable != null)
{
this.ASPxGridViewPoint.DataSource = dataTable;
this.ASPxGridViewPoint.DataBind();
} }
catch (Exception exception)
{
LogHelper.WriteLog("WebChartControlIndex", exception);
}
} protected void ASPxGridViewPoint_OnBeforeColumnSortingGrouping(object sender, ASPxGridViewBeforeColumnGroupingSortingEventArgs e)
{
try
{
object[] paramets = PointIdKeys.Split(';');//分割参数 if (string.IsNullOrEmpty(rootPath))
{
rootPath = ConstConfig.strWebServerM;
} string filePath = rootPath + @"\App_Config\SQL\ORACLE\index_over_view\overView_34_gridPoint.sql"; string fileContent = FileHelper.FileToString(filePath); string sqlContent = fileContent; LogHelper.WriteLog("PointIdKeys 参数长度:" + paramets.Length); string sql = string.Format(sqlContent, paramets);
DataTable dataTable = PublicBllBase.GetDataTable(sql);
if (dataTable != null)
{
this.ASPxGridViewPoint.DataSource = dataTable;
this.ASPxGridViewPoint.DataBind();
} }
catch (Exception exception)
{
LogHelper.WriteLog("WebChartControlIndex", exception);
}
} protected void ASPxGridViewPoint_OnPageIndexChanged_(object sender, EventArgs e)
{
try
{
object[] paramets = PointIdKeys.Split(';');//分割参数 if (string.IsNullOrEmpty(rootPath))
{
rootPath = ConstConfig.strWebServerM;
} string filePath = rootPath + @"\App_Config\SQL\ORACLE\index_over_view\overView_34_gridPoint.sql"; string fileContent = FileHelper.FileToString(filePath); string sqlContent = fileContent; LogHelper.WriteLog("PointIdKeys 参数长度:" + paramets.Length); string sql = string.Format(sqlContent, paramets);
DataTable dataTable = PublicBllBase.GetDataTable(sql);
if (dataTable != null)
{
this.ASPxGridViewPoint.DataSource = dataTable;
this.ASPxGridViewPoint.DataBind();
}
}
catch (Exception exception)
{
LogHelper.WriteLog("WebChartControlIndex", exception);
}
}

ASPxGridView 排序、分页、加载数据必需的三个函数的更多相关文章

  1. java攻城狮之路(Android篇)--widget_webview_metadata_popupwindow_tabhost_分页加载数据_菜单

    一.widget:桌面小控件1 写一个类extends AppWidgetProvider 2 在清单文件件中注册: <receiver android:name=".ExampleA ...

  2. Android中ListView分页加载数据

    public class MainActivity extends Activity { private ListView listView=null; //listview的数据填充器 privat ...

  3. 【Android进阶】Listview分页加载数据的实现

    Listview分页加载数据的实现 public class MainActivity extends Activity { protected static final int SUCCESS_GE ...

  4. jQuery 滚动条 滚动到底部(下拉到底部) 加载数据(触发事件、处理逻辑)、分页加载数据

    1.针对浏览器整个窗口滚动 主要代码: <script type="text/javascript"> ; function GetProductListPageFun ...

  5. listView 分页加载数据

    Android应用 开发中,采用ListView组件来展示数据是很常用的功能,当一个应用要展现很多的数据时,一般情况下都不会把所有的数据一次就展示出来,而是通过分页 的形式来展示数据,个人觉得这样会有 ...

  6. Android GridView 分页加载数据

    android UI 往右滑动,滑动到最后一页就自动加载数据并显示 如图: package cn.anycall.ju; import java.util.ArrayList; import java ...

  7. Android之分页加载数据

    基本的原理和我的上一篇随笔“Android之下拉刷新ListView”差不多,代码里面有注释,这里就不废话了,直接上代码. 自定义的分页显示ListView——PagedListView.java代码 ...

  8. mui前端框架下拉刷新分页加载数据

    前台 mui.init(); (function($) { //阻尼系数 var deceleration = mui.os.ios?0.003:0.0009; $('.mui-scroll-wrap ...

  9. android ListView 分页加载数据

    1.mainActivity <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ...

随机推荐

  1. jquery二级导航

    效果图 直接放代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset=" ...

  2. OpenLayers 6 学习笔记2 WMS服务避坑记录

    心血来潮,花1小时安装软件写代码+复习api,顺便熟悉一波wms 再次强化认知了wms获取要素的能力没有wfs强,有待考究 原文链接(转载请声明@秋意正寒  博客园/知乎/B站/csdn/小专栏):h ...

  3. textarea输入文字限制个数

    说明: w-count固定为数字部分的class textarea-active为超出最大输入文字个数报错信息的class html 部分: <div class="wrap wrap ...

  4. opencv —— getRotationMatrix2D、warpAffine 仿射变换实现图像旋转缩放

    仿射变换的基本概念 仿射变换是一种二维坐标(x, y)到二维坐标(u, v)的线性变换,其数学表达式形式如下: 对应的齐次坐标矩阵表示形式为: 仿射变换保持了二维图形的“平直性”(直线经仿射变换后依然 ...

  5. win10下载

    Win10 简体中文正式版 微软MSDN官方ISO镜像下载(2020年1月21日更新) 官方地址:https://www.microsoft.com/zh-cn/software-download/w ...

  6. Java Web Servlet知识点讲解(一)

    一.Web应用架构 如图所示: HTTP协议:一个简单的请求一响应协议,通常运行在TCP之上,它指定了客户端可能发送给服务器什么样的信息以及得到什么样的响应. JDBC:Java语言中用来规范客户端程 ...

  7. 第3种方法获取redis cluster主从关系

    需求:使用cluster slots命令,获取redis cluster 主从对应关系. 说明:cluster slots命令对应的字段说明:http://redis.cn/commands/clus ...

  8. BZOJ #2506. calc [根号分治,莫队,二分]

    \(p\) 是个正常范围, \(\sqrt p <= 100\) 比较小,预处理出来 \(a_i % p == k\) 的位置,然后丢进去,最后询问的 \(p\) 如果大于 \(100\) 就莫 ...

  9. CF #618 div.2

    序 闲来无事,打场CF,本人蒟蒻,考场A了前三道,第四有解答 正文 T1 Non-zero 是道水题.... 给你一个序列a.要求你输出最少的操作次数使这个序列的累和与累乘都不为0: 一次操作指给\( ...

  10. 将小账本上传到GitHub

    在假期的时候我已经注册好了用户 https://www.cnblogs.com/1234yyf/p/12312072.html 然后我将我的小账本上传到GitHub上面:一步一步跟着就可以上传成功!! ...