Exemplo n.º 1
0
        /// <summary>
        /// 数据全部导出
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ProductReviewReplyList_ExportAllClick(object sender, EventArgs e)
        {
            if (filterReplyVM == null || this.ProductReviewReplyList.TotalCount < 1)
            {
                Window.Alert(ResComment.Information_ExportFailed);
                return;
            }
            ColumnSet col = new ColumnSet();

            col.Add("Title", "讨论标题");
            col.Add("ProductID", "商品ID");
            col.Add("Content", "回复内容");
            col.Add("InUser", "创建人");
            col.Add("InDate", "创建时间");
            col.Add("EditUser", "更新人");
            col.Add("EditDate", "更新时间");


            filterReply          = modelReply.ConvertVM <ProductReviewReplyQueryVM, ProductReviewReplyQueryFilter>();
            filterReply.PageInfo = new ECCentral.QueryFilter.Common.PagingInfo()
            {
                PageSize  = ConstValue.MaxRowCountLimit,
                PageIndex = 0,
                SortBy    = string.Empty
            };
            facade.ExportReplyExcelFile(filterReply, new ColumnSet[] { col });
        }