Exemplo n.º 1
0
        /// <summary>
        /// 批量阅读
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnBatchRead2_Click(object sender, RoutedEventArgs e)
        {
            List <int> invalidSysNo = new List <int>();

            gridVMReply.ForEach(item =>
            {
                if (item.IsChecked == true)
                {
                    invalidSysNo.Add(item.SysNo.Value);
                }
            });
            if (invalidSysNo.Count > 0)
            {
                facade.BatchSetProductReviewReplyRead(invalidSysNo, (obj, args) =>
                {
                    if (args.FaultsHandle())
                    {
                        return;
                    }

                    ProductReviewReplyList.Bind();
                });
            }
            else
            {
                Window.Alert(ResComment.Information_MoreThanOneRecord, MessageType.Error);
            }
        }