Beispiel #1
0
        public static string GetAreaName(this TreeListRow row, AreaFilter areaFilter)
        {
            switch (row.Level)
            {
            case 0:     //country
                return(LOVResources.CountryName(row.Code));

            case 1:     //River absin district or NUTS
            {
                AreaFilter.RegionType type = areaFilter.TypeRegion;

                if (type == AreaFilter.RegionType.RiverBasinDistrict)
                {
                    return(LOVResources.RiverBasinDistrictName(row.Code));
                }
                else
                {
                    return(LOVResources.NutsRegionName(row.Code));
                }
            }

            default:
                return(string.Empty);
            }
        }
Beispiel #2
0
    protected string GetRowCss(object obj)
    {
        TreeListRow row = (TreeListRow)obj;

        return(row.GetRowCssClass());
    }
Beispiel #3
0
 public static bool AllowFacilityLink(this TreeListRow row)
 {
     return(!TreeListRow.CODE_UNKNOWN.Equals(row.Code));
 }
Beispiel #4
0
 public static string GetCodeAndParent(this TreeListRow row)
 {
     return(row.Code + "&" + row.ParentCode);
 }
Beispiel #5
0
 public static string GetIndentCssClass(this TreeListRow row)
 {
     return(CssBuilder.IndentLevelCss(row.Level));
 }
Beispiel #6
0
 public static string GetRowCssClass(this TreeListRow row)
 {
     return("generalListStyle_row " + CssBuilder.TreeLevelCss(row.Level));
 }
Beispiel #7
0
 public static string GetAnnexIActivityName(this TreeListRow row)
 {
     return(LOVResources.AnnexIActivityName(row.Code));
 }