Exemplo n.º 1
0
 private void btnAbort_Click(object sender, RoutedEventArgs e)
 {
     facade.BatchAbortPriceChange(new List <int> {
         this.vm.SysNo.Value
     }, (msg) =>
     {
         Window.Alert(ResPriceChangeMaintain.Msg_Tips, msg, Newegg.Oversea.Silverlight.Controls.Components.MessageType.Information, (obj, args) =>
         {
             Window.Refresh();
         });
     });
 }
Exemplo n.º 2
0
        private void btnAbort_Click(object sender, RoutedEventArgs e)
        {
            var SysList = from item in this.resultCollection
                          where item.IsChecked == true
                          select item.SysNo.Value;

            if (SysList.Count() > 0)
            {
                facade.BatchAbortPriceChange(SysList.ToList(), (msg) =>
                {
                    Window.Alert(ResPriceChangeQuery.Msg_Tips, msg, Newegg.Oversea.Silverlight.Controls.Components.MessageType.Information, (obj, args) =>
                    {
                        this.resultgd.Bind();
                    });
                });
            }
            else
            {
                //Window.Alert("请至少选择一条记录!");
                Window.Alert(ResPriceChangeQuery.Msg_SelectRecord);
            }
        }