private void cancelAudit_Click(object sender, RoutedEventArgs e) { selected.Clear(); string tip = string.Empty; foreach (GiftVoucherProductRelationReqVM item in this.productreqgd.ItemsSource) { if (item.IsChecked) { selected.Add(item.SysNo); } } if (!string.IsNullOrEmpty(tip)) { Window.Alert("提示", tip, MessageType.Information, (obj, args) => { Window.Refresh(); }); return; } if (selected.Count == 0) { Window.Alert("请选择至少选择一个商品!"); return; } if (selected != null && selected.Count > 0) { _facade.BatchCancelAuditVoucherRequest(selected, (msg) => { Window.Alert("提示", msg, MessageType.Information, (obj, args) => { Window.Refresh(); }); }); } }