public SurveyCatalogListVo listSurveyCatalogVo(SurveyCatalogVo surveyCatalogVo) { SurveyCatalogListVo surveyCatalogListVo = new SurveyCatalogListVo(); using (SurveyCatalogService surveyCatalogService = new SurveyCatalogService()) { surveyCatalogListVo = surveyCatalogService.listSurveyCatalogVo(surveyCatalogVo); } return(surveyCatalogListVo); }
public SurveyCatalogListVo listSurveyCatalogVo(SurveyCatalogVo surveyCatalogVo) { SurveyCatalogListVo surveyCatalogListVo = new SurveyCatalogListVo(); List <SurveyCatalogVo> surveyCatalogVolist = new List <SurveyCatalogVo>(); using (SurveyCatalogDao surveyCatalogDao = new SurveyCatalogDao()) { surveyCatalogVolist = surveyCatalogDao.listSurveyCatalogVo(surveyCatalogVo); } surveyCatalogListVo.surveyCatalogVolist = surveyCatalogVolist; return(surveyCatalogListVo); }
protected void Page_Load(object sender, EventArgs e) { showQuestionList = new List <int>(); using (FCdbFacade fcdbFacade = new FCdbFacade()) { SurveyCatalogVo surveyCatalogVo = new SurveyCatalogVo(); surveyCatalogVo.surveyCatalog.surveyCatalogGroupNo = 1; SurveyCatalogListVo surveyCatalogListVo = fcdbFacade.listSurveyCatalogVo(surveyCatalogVo); listResult.DataSource = surveyCatalogListVo.surveyCatalogVolist; listResult.DataBind(); } }