예제 #1
0
            protected override string GetCurrentValue()
            {
                switch (Page.AdminPageLevel)
                {
                case AdminPageLevel.State:
                    return
                        ((States.GetColumn(StatesColumn, Page.StateCode) ?? Empty).ToString());

                case AdminPageLevel.County:
                    return
                        ((Counties.GetColumn(CountiesColumn, Page.StateCode, Page.CountyCode) ??
                          Empty).ToString());

                case AdminPageLevel.Local:
                    return
                        ((LocalDistricts.GetColumnByStateCodeLocalKey(LocalDistrictsColumn,
                                                                      Page.StateCode, Page.LocalKey) ?? Empty).ToString());

                default:
                    return(null);
                }
            }