Exemplo n.º 1
0
        private void method_9()
        {
            this.TableName = "SurveyLogic";
            SurveyLogicDal surveyLogicDal = new SurveyLogicDal();

            if (this.IsFilter)
            {
                string string_ = string.Format("select * from SurveyLogic where page_id ='{0}'", this.FilterPageId);
                this.lSurveyLogic = surveyLogicDal.GetListBySql(string_);
            }
            else
            {
                this.lSurveyLogic = surveyLogicDal.GetList();
            }
            this.DataGrid1.ItemsSource = this.lSurveyLogic;
        }
Exemplo n.º 2
0
        public List <SurveyLogic> GetSurveyLogic()
        {
            SurveyLogicDal surveyLogicDal = new SurveyLogicDal();

            return(surveyLogicDal.GetList());
        }