void ProductShowResult_LoadingDataSource(object sender, LoadingDataEventArgs e) { ProductShowFacade facade = new ProductShowFacade(); facade.GetProductRelatedByQuery(model, e.PageSize, e.PageIndex, e.SortField, (obj, arg) => { this.ProductShowResult.ItemsSource = arg.Result.Rows; this.ProductShowResult.TotalCount = arg.Result.TotalCount; }); }
private void ProductShowResult_ExportAllClick(object sender, EventArgs e) { ProductShowFacade facade = new ProductShowFacade(); ColumnSet col = new ColumnSet(); col.Insert(0, "ProductID", "产品号"); col.Insert(1, "ProductTitle", "产品描述"); col.Insert(2, "Category1Name", "产品一级类"); col.Insert(3, "Category2Name", "产品二级类"); col.Insert(4, "Category3Name", "产品三级类"); col.Insert(5, "FirstOnlineTime", "上架时间"); col.Insert(6, "EditDate", "更新时间"); col.Insert(7, "Status", "状态"); facade.ExprotExecl(model, new ColumnSet[] { col }); }