Ejemplo n.º 1
0
        private void btnCancelConfirmPhone_Click(object sender, RoutedEventArgs e)
        {
            if (!AuthMgr.HasFunctionPoint(AuthKeyConst.Customer_CancelConfirmPhone))
            {
                CPApplication.Current.CurrentPage.Context.Window.Alert(ResCustomerMaintain.rightMsg_NoRight_CancelConfirmPhone);
                return;
            }
            CustomerBasicVM basicVM = this.ucBasicInfo.DataContext as CustomerBasicVM;

            facade.CancelConfrimPhone(basicVM, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }
                basicVM.CellPhoneConfirmed                = false;
                this.btnCancelConfirmPhone.IsEnabled      = false;
                this.ucDetailInfo.txt_cellphone.IsEnabled = true;
                Window.Alert(ResCustomerMaintain.Info_CancelConfirm);
            });
        }