• 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);
                }
    
            }
  • 相关阅读:
    springmvc跳转的几种方式
    DFL库安装dmd2
    python中关于turtle库的学习笔记
    带有进度条的圆周率计算
    Splay——学习笔记
    简述树链剖分
    数学专题——学习笔记
    CDQ分治(三维偏序)——学习笔记
    概率与期望DP
    CSP模拟赛20190922
  • 原文地址:https://www.cnblogs.com/googlegis/p/5854695.html
Copyright © 2020-2023  润新知