/// <summary> /// 数据全部导出 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ProductDiscussReplyList_ExportAllClick(object sender, EventArgs e) { if (filterReplyVM == null || this.ProductDiscussReplyList.TotalCount < 1) { Window.Alert(ResComment.Information_ExportFailed); return; } ColumnSet col = new ColumnSet(); col.Add("Title", "讨论标题", 15); col.Add("ProductID", "商品ID", 15); col.Add("Content", "回复内容", 20); col.Add("InUser", "创建人", 15); col.Add("InDate", "创建时间", 15); col.Add("EditUser", "更新人", 15); col.Add("EditDate", "更新时间", 15); filterReply = modelReply.ConvertVM <ProductDiscussReplyQueryVM, ProductDiscussReplyQueryFilter>(); filterReply.PageInfo = new ECCentral.QueryFilter.Common.PagingInfo() { PageSize = ConstValue.MaxRowCountLimit, PageIndex = 0, SortBy = string.Empty }; facade.ExportReplyExcelFile(filterReplyVM, new ColumnSet[] { col }); }
private void Button_Search2_Click(object sender, RoutedEventArgs e) { if (ValidationManager.Validate(this.QuerySection2)) { filterReply = modelReply.ConvertVM <ProductDiscussReplyQueryVM, ProductDiscussReplyQueryFilter>(); filterReplyVM = Newegg.Oversea.Silverlight.Utilities.UtilityHelper.DeepClone <ProductDiscussReplyQueryFilter>(filterReply); ProductDiscussReplyList.QueryCriteria = this.filterReply; ProductDiscussReplyList.Bind(); } }
public virtual QueryResult QueryProductDiscussReply(ProductDiscussReplyQueryFilter filter) { int totalCount; var dataTable = ObjectFactory <ICommentQueryDA> .Instance.QueryProductDiscussReply(filter, out totalCount); return(new QueryResult() { Data = dataTable, TotalCount = totalCount }); }
/// <summary> /// 查询产品讨论回复 /// </summary> /// <param name="callback"></param> public void QueryProductDiscussReply(ProductDiscussReplyQueryFilter filter, int PageSize, int PageIndex, string SortField, EventHandler <RestClientEventArgs <dynamic> > callback) { filter.PageInfo = new ECCentral.QueryFilter.Common.PagingInfo() { PageSize = PageSize, PageIndex = PageIndex, SortBy = SortField }; string relativeUrl = "/MKTService/CommentInfo/QueryProductDiscussReply"; restClient.QueryDynamicData(relativeUrl, filter, callback); }
public override void OnPageLoad(object sender, EventArgs e) { facade = new ProductDiscussQueryFacade(this); filter = new ProductDiscussQueryFilter(); filterReply = new ProductDiscussReplyQueryFilter(); model = new ProductDiscussQueryVM(); modelReply = new ProductDiscussReplyQueryVM(); model.ChannelID = "1"; modelReply.ChannelID = "1"; model.CompanyCode = Newegg.Oversea.Silverlight.ControlPanel.Core.CPApplication.Current.CompanyCode; modelReply.CompanyCode = Newegg.Oversea.Silverlight.ControlPanel.Core.CPApplication.Current.CompanyCode; //商品状态 comProductStatus.ItemsSource = EnumConverter.GetKeyValuePairs <ECCentral.BizEntity.IM.ProductStatus>(EnumConverter.EnumAppendItemType.All); comReplyProductStatus.ItemsSource = EnumConverter.GetKeyValuePairs <ECCentral.BizEntity.IM.ProductStatus>(EnumConverter.EnumAppendItemType.All); CodeNamePairHelper.GetList("MKT", "ReplyStatus", CodeNamePairAppendItemType.All, (obj, args) => { if (args.FaultsHandle()) { return; } comDiscussStatus.ItemsSource = args.Result; comReplyReviewStatus.ItemsSource = args.Result; }); //顾客类型 CodeNamePairHelper.GetList("MKT", "CustomerCategory", CodeNamePairAppendItemType.All, (obj, args) => { if (args.FaultsHandle()) { return; } comCustomerCategory.ItemsSource = args.Result; comReplyCustomerCategory.ItemsSource = args.Result; }); //回复类型 //CodeNamePairHelper.GetList("MKT", "ReplySource", CodeNamePairAppendItemType.All, (obj, args) => //{ // if (args.FaultsHandle()) return; // comReplyStatus.ItemsSource = args.Result; //}); ProductDiscussBaseInfo.DataContext = model; btnStackPanel.DataContext = model; replySection.DataContext = modelReply; btnReplyStackPanel.DataContext = modelReply; base.OnPageLoad(sender, e); }
public void ExportReplyExcelFile(ProductDiscussReplyQueryFilter filter, ColumnSet[] columns) { string relativeUrl = "/MKTService/CommentInfo/QueryProductDiscussReply"; restClient.ExportFile(relativeUrl, filter, columns); }