zoukankan      html  css  js  c++  java
  • ASPxDashboardViewer_OnDashboardLoaded 修改Item参数

     protected void ASPxDashboardViewer_OnDashboardLoaded(object sender, DashboardLoadedWebEventArgs e)
            {
                var id = e.DashboardId;
    
                string regiongEn = CookieHelper.GetCookieValue("regionCityName_EN");
    
                if (id.Contains("163"))
                {
                    Dashboard dashboard = e.Dashboard;
    
                     ChoroplethMapDashboardItem mapDashboardItem = (ChoroplethMapDashboardItem)dashboard.Items["mapDashboardItem1"];
    
                    //DashboardParameter dashboardParameter = dashboard.Parameters["P_REGION"];
    
                    //StaticListLookUpSettings parameterLookUpSettings = new StaticListLookUpSettings();
                    //parameterLookUpSettings.Values.SetValue();
                    //Console.WriteLine(dashboardParameter.LookUpSettings);
    
    
                    //dashboardParameter.LookUpSettings
                }
                if (id.Contains("Map"))
                {
                    Dashboard dashboard = e.Dashboard;
    
                    ChoroplethMapDashboardItem mapDashboardItem = (ChoroplethMapDashboardItem)dashboard.Items["choroplethMapDashboardItem1"];
    
                    string shpPath = Server.MapPath("App_Data/DashBoard/" + regiongEn + "/Map/全境_区县界面_region.shp");
    
                   Console.WriteLine(mapDashboardItem.CustomShapefile.Url);
    
                   mapDashboardItem.CustomShapefile.Url = shpPath;
    
                   Console.WriteLine(mapDashboardItem.CustomShapefile.Url);
                }
    
            }
  • 相关阅读:
    基于CORTEX-M的实时嵌入式系统
    FileZilla 安装配置参考
    【转】Difference between Point-To-Point and Publish/Subscribe JMS Messaging Models
    flush();close();dispose()
    work staff
    堆、栈、内存管理
    2013.8.1 读程序笔记
    C# static
    只包含schema的dll生成和引用方法
    4个月记
  • 原文地址:https://www.cnblogs.com/googlegis/p/5854695.html
Copyright © 2011-2022 走看看