Devxtreme 显示Master-Detail数据列表, 数据显示颜色

  1     ////刷新3/4簇Grid
  2     //function GetClusterGrid(id, coverageId, clusterId) {
  3 
  4     //    var region = getRegionCityName();
  5     //    $.ajax({
  6     //        type: "POST",
  7     //        url: "fast_index_overview.aspx/GetClusterGrid",
  8     //        data: "{id:'" +
  9     //            id +
 10     //            "',coverageId:'" +
 11     //            coverageId +
 12     //            "',clusterId:'" +
 13     //            clusterId +
 14     //            "',region:'" +
 15     //            region +
 16     //            "',sdate:'" +
 17     //            cstartDate +
 18     //            "',edate:'" +
 19     //            cendDate +
 20     //            "'}",
 21     //        contentType: "application/json",
 22     //        dataType: "json",
 23     //        async: false,
 24     //        success: function(result) {
 25 
 26     //            //刷新grid
 27     //            $.getJSON('../data/Grid_Json/' + id + '.json',
 28     //                function(json) {
 29 
 30     //                    $("#" + id)
 31     //                        .dxDataGrid({
 32     //                            dataSource: json,
 33     //                            columnAutoWidth: true,
 34     //                            rowAlternationEnabled: true,
 35     //                            loadPanel: {
 36     //                                enabled: true
 37     //                            },
 38     //                            paging: {
 39     //                                pageSize: 15
 40     //                            },
 41     //                            pager: {
 42     //                                showPageSizeSelector: true,
 43     //                                allowedPageSizes: [10, 15, 30],
 44     //                                showInfo: true
 45     //                            },
 46     //                            selection: {
 47     //                                mode: "single"
 48     //                            },
 49     //                            hoverStateEnabled: true,
 50 
 51     //                            //scrolling: {
 52     //                            //    mode: 'infinite'
 53     //                            //},
 54     //                            sorting: {
 55     //                                mode: "none"
 56     //                            },
 57     //                            allowColumnReordering: true,
 58     //                            //grouping: {
 59     //                            //    autoExpandAll: true
 60     //                            //},
 61     //                            //filterRow: {
 62     //                            //    visible: true,
 63     //                            //    applyFilter: "Immediately"
 64     //                            //},
 65     //                            searchPanel: {
 66     //                                visible: false,
 67     //                                width: 240,
 68     //                                placeholder: "输入关键字查询..."
 69     //                            },
 70     //                            "export": {
 71     //                                enabled: false,
 72     //                                fileName: "统计表",
 73     //                                allowExportSelectedData: false
 74     //                            },
 75     //                            headerFilter: {
 76     //                                visible: false
 77     //                            },
 78     //                            onRowClick: function(info) {
 79     //                                //info.rowElement.hasClass('clicked') ? info.rowElement.removeClass('clicked') : info.rowElement.addClass('clicked')
 80 
 81     //                                setCookies("index_overview_grid_flag", 'cluster');
 82 
 83     //                                var title = "小区维度指标--" + info.columns[0] + ":" + info.values[0];
 84 
 85     //                                popCellPlan(title);
 86     //                            },
 87     //                            onCellPrepared: function (options) {
 88     //                                var fieldData = options.value,
 89     //                                    fieldHtml = "";
 90     //                                if (fieldData) {
 91     //                                    if (options.column.caption.indexOf('指数') > -1) {
 92     //                                        options.cellElement
 93     //                                            .addClass(fieldData > 80
 94     //                                                ? "backgreen"
 95     //                                                : fieldData > 60 ? "backorange" : "backred");
 96 
 97     //                                        //    fieldHtml += "<span class='current-value'>" +
 98     //                                        //        Globalize.format(fieldData.ECI, "c") +
 99     //                                        //        "</span> <span class='diff'>" +
100     //                                        //        Math.abs(fieldData.diff).toFixed(2) +
101     //                                        //        "  </span>";
102     //                                        //} else {
103 
104     //                                        fieldHtml = fieldData.value;
105 
106     //                                        options.cellElement.html(fieldHtml);
107     //                                    }
108     //                                }
109     //                            }
110     //                            //onSelectionChanged: function (selectedItems) {
111     //                            //    var data = selectedItems.selectedRowsData[0];
112     //                            //    if (data) {
113 
114     //                            //        setCookies("index_overview_grid_flag", 'cluster');
115 
116     //                            //        popCellPlan();
117     //                            //    }
118     //                            //}
119     //                        });
120 
121     //                });
122 
123     //            document.getElementById('waiting').style.display = "none";
124     //        },
125     //        error: function(err) {
126     //            document.getElementById('waiting').style.display = "none";
127     //        }
128     //    });
129     //}
130 
131     ////刷新Grid
132     //function GetPointGrid(id, coverageId, clusterId) {
133 
134     //    var region = getRegionCityName();
135 
136     //    $.ajax({
137     //        type: "POST",
138     //        url: "fast_index_overview.aspx/GetPointGrid",
139     //        data: "{id:'" +
140     //            id +
141     //            "',coverageId:'" +
142     //            coverageId +
143     //            "',clusterId:'" +
144     //            clusterId +
145     //            "',region:'" +
146     //            region +
147     //            "',sdate:'" +
148     //            cstartDate +
149     //            "',edate:'" +
150     //            cendDate +
151     //            "'}",
152     //        contentType: "application/json",
153     //        dataType: "json",
154     //        async: true,
155     //        success: function(result) {
156 
157     //            //刷新grid
158     //            $.getJSON('../data/Grid_Json/' + id + '.json',
159     //                function(json) {
160 
161     //                    $("#" + id)
162     //                        .dxDataGrid({
163     //                            dataSource: json,
164     //                            columnAutoWidth: true,
165     //                            rowAlternationEnabled: true,
166     //                            loadPanel: {
167     //                                enabled: true
168     //                            },
169     //                            paging: {
170     //                                pageSize: 15
171     //                            },
172     //                            pager: {
173     //                                showPageSizeSelector: true,
174     //                                allowedPageSizes: [10, 15, 30],
175     //                                showInfo: true
176     //                            },
177     //                            selection: {
178     //                                mode: "single"
179     //                            },
180     //                            hoverStateEnabled: true,
181 
182     //                            //scrolling: {
183     //                            //    mode: 'infinite'
184     //                            //},
185     //                            sorting: {
186     //                                mode: "none"
187     //                            },
188     //                            allowColumnReordering: true,
189     //                            //grouping: {
190     //                            //    autoExpandAll: true
191     //                            //},
192     //                            //filterRow: {
193     //                            //    visible: true,
194     //                            //    applyFilter: "Immediately"
195     //                            //},
196     //                            searchPanel: {
197     //                                visible: false,
198     //                                width: 240,
199     //                                placeholder: "输入关键字查询..."
200     //                            },
201     //                            "export": {
202     //                                enabled: false,
203     //                                fileName: "cellplan",
204     //                                allowExportSelectedData: false
205     //                            },
206     //                            headerFilter: {
207     //                                visible: false
208     //                            },
209     //                            //onSelectionChanged: function(selectedItems) {
210     //                            //    var data = selectedItems.selectedRowsData[0];
211     //                            //    if (data) {
212     //                            //        var id = data.ECI;
213     //                            //        var x = data.LONGITUDE;
214     //                            //        var y = data.LATITUDE;
215     //                            //        console.log(x + y);
216     //                            //        //$('#canshu-Filter').modal('show');
217     //                            //        //$('#canshu-Filter').modal('toggle');
218 
219     //                            //        setCookies("index_overview_grid_flag", 'point');
220 
221     //                            //        popCellPlan();
222     //                            //    }
223     //                            //},
224     //                             onCellPrepared: function (options) {
225     //                                    var fieldData = options.value,
226     //                                        fieldHtml = "";
227     //                                    if (fieldData ) {
228     //                                        if (options.column.caption.indexOf('指数') > -1) {
229     //                                            options.cellElement
230     //                                                .addClass(fieldData > 80
231     //                                                    ? "backgreen"
232     //                                                    : fieldData > 60 ? "backorange" : "backred");
233 
234     //                                            //    fieldHtml += "<span class='current-value'>" +
235     //                                            //        Globalize.format(fieldData.ECI, "c") +
236     //                                            //        "</span> <span class='diff'>" +
237     //                                            //        Math.abs(fieldData.diff).toFixed(2) +
238     //                                            //        "  </span>";
239     //                                            //} else {
240 
241     //                                            fieldHtml = fieldData.value;
242 
243     //                                            options.cellElement.html(fieldHtml);
244     //                                        }
245     //                                    }
246     //                                },
247     //                            onRowClick: function(info) {
248     //                                //info.rowElement.hasClass('clicked') ? info.rowElement.removeClass('clicked') : info.rowElement.addClass('clicked')
249 
250     //                                setCookies("index_overview_grid_flag", 'point');
251 
252 
253     //                                var title = "小区维度指标--" + info.columns[0] + ":" + info.values[0];
254 
255     //                                popCellPlan(title);
256     //                            }
257     //                            //masterDetail: {
258     //                            //    enabled: true,
259     //                            //    template: function (container, options) {
260     //                            //        var currentData = options.data;
261 
262     //                            //        var id = currentData.ECI;
263 
264     //                            //        var sqlId = "getDetail1";
265 
266     //                            //        $.ajax({
267     //                            //            type: "POST",
268     //                            //            url: "fast_index_overview.aspx/GetAjaxDetailGrid",
269     //                            //            data: "{id:'" + sqlId + "',key:'" + id + "',sdate:'" + sdate + "'}",
270     //                            //            contentType: "application/json",
271     //                            //            dataType: "json",
272     //                            //            async: false,
273     //                            //            success: function (result) {
274 
275     //                            //                var rs = result.d;
276 
277     //                            //                var detailData = eval('(' + rs + ')');
278 
279     //                            //                container.addClass("internal-grid-container");
280     //                            //                $("<div>").text("ID:" + id).appendTo(container);
281     //                            //                $("<div>")
282     //                            //                    .addClass("internal-grid")
283     //                            //                    .dxDataGrid({
284 
285     //                            //                        dataSource: detailData,
286     //                            //                        columnAutoWidth: true,
287     //                            //                        rowAlternationEnabled: true,
288     //                            //                        loadPanel: {
289     //                            //                            enabled: true
290     //                            //                        },
291     //                            //                        selection: {
292     //                            //                            mode: "single"
293     //                            //                        },
294     //                            //                        hoverStateEnabled: true,
295     //                            //                        onCellClick: function (clickedCell) {
296     //                            //                            var caption = clickedCell.column.caption;
297     //                            //                            if (caption === "站点配置") {
298 
299     //                            //                                //getPicName(clickedCell.value);
300     //                            //                            }
301     //                            //                            // else {
302 
303     //                            //                            // var x = clickedCell.values[0];
304     //                            //                            // var y = clickedCell.values[0];
305     //                            //                            // soMapscPlan.DeepToXy(x, y);
306     //                            //                            // }
307     //                            //                        }//,
308     //                            //                        // onSelectionChanged: function(selectedItems) {
309     //                            //                        // var data = selectedItems.selectedRowsData[0];
310     //                            //                        // if (data) {
311     //                            //                        // var x = data.LONGITUDE;
312     //                            //                        // var y = data.LATITUDE;
313     //                            //                        // soMapscPlan.DeepToXy(x, y);
314     //                            //                        // }
315     //                            //                        // }
316     //                            //                    }).appendTo(container);
317     //                            //            }
318     //                            //        });
319 
320 
321     //                            //    }
322     //                            //}
323     //                        });
324 
325     //                });
326 
327     //            document.getElementById('waiting').style.display = "none";
328     //        },
329     //        error: function(err) {
330     //            document.getElementById('waiting').style.display = "none";
331     //        }
332     //    });
333     //}

 

转载于:https://www.cnblogs.com/googlegis/p/5855205.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/372345.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

mysql 排序去重复_php mysql 过滤重复记录并排序

table1idname1a2b3ctable2idnamecont1aaa2bbb3aaaaaSELECT*,count(distincttable2.name)FROMtable1,table2WHEREtable1.nametable2.nameGROUPBYtable2.nameORDERBYtable2.idDESC";重复...table1id name1 a2 b3 ctable2id name cont1 a aa2 b bb3 a aaaaSELECT *,count(dis…

Java EE 6测试第I部分– EJB 3.1可嵌入API

我们从Enterprise JavaBeans开发人员那里听到的最常见的请求之一就是需要改进的单元/集成测试支持。 EJB 3.1 Specification引入了EJB 3.1 Embeddable API&#xff0c;用于在Java SE环境中执行EJB组件。 与传统的基于Java EE服务器的执行不同&#xff0c;可嵌入式用法允许客户端…

Flume 中文入门手冊

原文&#xff1a;https://cwiki.apache.org/confluence/display/FLUME/GettingStarted 什么是 Flume NG? Flume NG 旨在比起 Flume OG 变得明显更简单。更小。更easy部署。在这样的情况下&#xff0c;我们不提交Flume NG 到 Flume OG 的后向兼容。当前。我们期待来自感兴趣測试…

原生JavaScript+CSS3实现移动端滑块效果

在做web页面时&#xff0c;无论PC端还是移动端&#xff0c;我们会遇到滑块这样的效果&#xff0c;可能我们往往会想着去网上找插件&#xff0c;其实这个效果非常的简单&#xff0c;插件代码的的代码往往过于臃肿&#xff0c;不如自己动手&#xff0c;自给自足。首先看一下效果图…

mysql的连接名是哪个文件_mysql连接名是什么

{"moduleinfo":{"card_count":[{"count_phone":1,"count":1}],"search_count":[{"count_phone":4,"count":4}]},"card":[{"des":"阿里云数据库专家保驾护航&#xff0c;为用户…

Activiti绩效对决

每个人在学习Activiti时都会一直问到的问题&#xff0c;与软件开发本身一样古老&#xff1a;“它如何执行&#xff1f;”。 到现在为止&#xff0c;当您问我同样的问题时&#xff0c;我将告诉您Activiti如何以各种可能的方式最小化数据库访问&#xff0c;如何将流程结构分解为“…

怎么使用CKEDITOR

出于工作需求&#xff0c;自己在网上找了个文本编辑器控件, 网址是http://ckeditor.com/ 怎么使用&#xff1f; 先插入脚本<script type"text/javascript" src"*/ckeditor.js"></script>, 然后&#xff0c;在自己的脚本里调用CKEDITOR.replac…

centos 打开pdo_mysql_centos中添加php扩展pdo_mysql步骤

pdo_mysql是php中一个mysql连接类了&#xff0c;我们可以直接使用pdo_mysql来操作数据库这样自己可以不需要写数据库操作类了&#xff0c;下面来介绍在centos中安装pdo_mysql扩展的步骤。本文内容是以 CentOS 为例&#xff0c;红帽系列的 Linux 方法应该都是如此&#xff0c;下…

Java线程死锁–案例研究

本文将描述从在IBM JVM 1.6上运行的Weblogic 11g生产系统中观察到的最新Java死锁问题的完整根本原因分析。 此案例研究还将证明掌握线程转储分析技能的重要性&#xff1b; 包括用于IBM JVM Thread Dump格式。 环境规格 – Java EE服务器&#xff1a;Oracle Weblogic Server 1…

bzoj1968: [Ahoi2005]COMMON 约数研究

水题。。。 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; #define rep(i,s,t) for(int is;i<t;i) int main(){int ans0,n;scanf("%d",&n);rep(i,1,n) ansn/i;printf("%d\n…

题目1457:非常可乐(广度优先遍历BFS)

题目链接&#xff1a;http://ac.jobdu.com/problem.php?pid1457 详解链接&#xff1a;https://github.com/zpfbuaa/JobduInCPlusPlus 参考代码&#xff1a; // // 1457 非常可乐.cpp // Jobdu // // Created by PengFei_Zheng on 22/04/2017. // Copyright © 2017 Pe…

mysql查询某张表的所有外键_oracle中查询所有外键引用到某张表的记录

欢迎进入Oracle社区论坛&#xff0c;与200万技术人员互动交流 >>进入 oracle中查询所有外键引用到某张表的记录 //查询表的主键约束名 select * from user_constraints e where e.table_name表名;--输入 //查询所有引用到该主键的记录 select b.table_name,b.column_欢迎…

BTrace for Java应用程序简介

本文的目的是学习如何使用BTrace动态跟踪/观察正在运行的Java应用程序&#xff08;JDK 6&#xff09;&#xff0c;而无需更改应用程序的代码和配置参数。 什么是BTrace&#xff1f; BTrace是一个开源项目&#xff0c;始于2007年&#xff0c;最初由A.Sundararajan和K.Balasubra…

丛铭俣 160809324 (作业1)

老师&#xff0c;助教好&#xff01;我是计科3班的丛铭俣&#xff0c;我的性格阳光开朗&#xff0c;待人大方友善&#xff0c;凡事不喜欢斤斤计较&#xff1b;本人热心&#xff0c;喜欢乐于助人&#xff0c;也喜欢和积极向上的人交朋友。最喜欢打羽毛球&#xff0c;其次是篮球&…

mysql死锁分析_MySQL死锁分析

熟悉或者了解数据库的朋友都知道锁的概念&#xff0c;这里不做过多的解析&#xff01;锁的种类有很多&#xff0c;不同数据库的锁管理方式也不同。这里主要谈下MySQL innodb引擎下的死锁。死锁通俗的来讲就是2个事务相互请求对方持有的锁&#xff0c;这样就会造成2个事务相互等…

在Akka中实现主从/网格计算模式

主从模式是容错和并行计算的主要示例。 模式背后的想法是将工作划分为相同的子任务&#xff0c;然后将其委派给从属。 这些从节点或实例将处理工作任务&#xff0c;并将结果发送回主节点。 然后主节点将编译从所有从节点接收到的结果。关键是从节点仅知道如何处理任务&#xff…

java学习笔记总略

二、正文&#xff08;一&#xff09;Java1.接口和抽象类的区别①抽象类里可以有构造方法&#xff0c;而接口内不能有构造方法。②抽象类中可以有普通成员变量&#xff0c;而接口中不能有普通成员变量。③抽象类中可以包含非抽象的普通方法&#xff0c;而接口中所有的方法必须是…

react实现路由跳转_react实现hash路由

众所周知&#xff0c;目前单页面使用的路由有两种实现方式&#xff1a;hash 模式history 模式hash 模式路由原理&#xff1a;我们先来看hash模式&#xff0c;页面首次加载时需要在load事件中解析初始的URL&#xff0c;从而展示进入的页面。当 # 后面的哈希值发生变化时&#xf…

Java中的Google协议缓冲区

总览 协议缓冲区是一种用于结构化数据的开源编码机制。 它是由Google开发的&#xff0c;旨在实现语言/平台中立且可扩展。 在本文中&#xff0c;我的目的是介绍Java平台上下文中协议缓冲区的基本用法。 Protobuff比XML更快&#xff0c;更简单&#xff0c;并且比JSON更紧凑。 当…

匈牙利哦模板 二分匹配 完全匹配问题

匈牙利算法的核心思想就是 腾空间, 有条件 创造,没条件也要创造! bool find(int x){int i,j;for (j1;j<m;j){ //扫描每个被匹配的人 if (line[x][j]true && used[j]false) //如果有关系并且还没有标记过(这里标记的意思是这次查找曾试图改变过的归属问题&a…