示例#1
0
        private void btnCancelAudit_Click(object sender, RoutedEventArgs e)
        {
            selectedSysNo.Clear();

            dynamic source = this.giftVoucherProductdg.ItemsSource as dynamic;

            foreach (var item in source)
            {
                if (item.IsChecked)
                {
                    selectedSysNo.Add(item.SysNo);
                }
            }

            if (selectedSysNo.Count > 0)
            {
                _facade.BatchCancelAuditGiftCardProduct(selectedSysNo, (msg) =>
                {
                    Window.Alert("提示信息", msg, Newegg.Oversea.Silverlight.Controls.Components.MessageType.Information, (obj, args) =>
                    {
                        this.giftVoucherProductdg.Bind();
                    });
                });
            }
            else
            {
                Window.Alert("请选择礼品卡商品!");
                return;
            }
        }