コード例 #1
0
        /// <summary>
        /// 批量设置有效
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            List <BrandAuthorizedVM> list = GetCheckedList(true);

            if (list.Count > 0)
            {
                facade.UpdateBrandAuthorized(list, (obj, arg) =>
                {
                    if (arg.FaultsHandle())
                    {
                        return;
                    }
                    CPApplication.Current.CurrentPage.Context.Window.Alert("提交成功");
                    this.BrandAuthorizedResult.Bind();
                });
            }
            else
            {
                CPApplication.Current.CurrentPage.Context.Window.Alert("没有选择记录", Newegg.Oversea.Silverlight.Controls.Components.MessageType.Error);
            }
        }