private void method_5() { this.TableName = "SurveyRoadMap"; SurveyRoadMapDal surveyRoadMapDal = new SurveyRoadMapDal(); if (this.IsFilter) { string string_ = string.Format("select * from SurveyRoadMap where page_id ='{0}'", this.FilterPageId); this.lSurveyRoadMap = surveyRoadMapDal.GetListBySql(string_); } else { this.lSurveyRoadMap = surveyRoadMapDal.GetList(); } this.DataGrid1.ItemsSource = this.lSurveyRoadMap; }
public List <SurveyRoadMap> GetSurveyRoadMap() { SurveyRoadMapDal surveyRoadMapDal = new SurveyRoadMapDal(); return(surveyRoadMapDal.GetList()); }