Пример #1
0
        private void ButtonVoid_Click(object sender, RoutedEventArgs e)
        {
            List <int> sysNos = GetCheckedNo();

            if (sysNos.Count > 0)
            {
                _Facade.Void(sysNos, (result) =>
                {
                    if (result)
                    {
                        //Window.Alert("批量作废成功!");
                        Window.Alert(ResGroupBuyingQuery.Msg_BatchVoidSuccess);
                        DataGrid.Bind();
                    }
                    else
                    {
                        //Window.Alert("批量作废失败!");
                        Window.Alert(ResGroupBuyingQuery.Msg_BatchVoidFailed);
                    }
                });
            }
        }
Пример #2
0
 private void ButtonVoid_Click(object sender, RoutedEventArgs e)
 {
     Window.Confirm(ResGroupBuyingMaintain.Info_ConfirmDeActive, (s, a) =>
     {
         if (a.DialogResult == DialogResultType.OK)
         {
             _Facade.Void(new List <int>()
             {
                 Convert.ToInt32(sysNo)
             }, (result) =>
             {
                 if (result)
                 {
                     // Window.Alert("作废成功!");
                     Window.Alert(ResGroupBuyingMaintain.Msg_VoidSuccess);
                     InitPage(sysNo);
                     this.Window.Refresh();
                 }
             });
         }
     });
 }