Пример #1
0
        //取消存款
        private void btnCancel_Click(object sender, RoutedEventArgs e)
        {
            OperateRecord     page = new OperateRecord();
            NavigationService ns   = NavigationService.GetNavigationService(this);

            ns.Navigate(page);
        }
Пример #2
0
        //取消开户
        private void btnCancel_Click(object sender, RoutedEventArgs e)
        {
            this.txtAccountName.Clear();
            this.txtIDCard.Clear();
            this.txtAccountName.Clear();
            this.txtPass.Clear();
            this.txtMoney.Clear();
            OperateRecord     page = new OperateRecord();
            NavigationService ns   = NavigationService.GetNavigationService(this);

            ns.Navigate(page);
        }
Пример #3
0
        //开户
        private void btnOk_Click(object sender, RoutedEventArgs e)
        {
            UserAccountInfo accountinfo = new UserAccountInfo();

            accountinfo.UAccountNumber   = this.txtAccountNo.Text;
            accountinfo.UIdCardNumber    = this.txtIDCard.Text;
            accountinfo.UName            = this.txtAccountName.Text;
            accountinfo.UAccountPassword = this.txtPass.Password;
            accountinfo.Balance          = decimal.Parse(this.txtMoney.Text);
            CustomOperation.CreateUser(accountinfo);

            OperateRecord     page = new OperateRecord();
            NavigationService ns   = NavigationService.GetNavigationService(this);

            ns.Navigate(page);
        }
Пример #4
0
        //存款
        private void btnOk_Click(object sender, RoutedEventArgs e)
        {
            UserAccountInfo accountinfo = new UserAccountInfo();

            accountinfo.UAccountNumber = this.txtAccount.Text;
            try
            {
                accountinfo.Balance = decimal.Parse(this.txtmount.Text);
            }
            catch
            {
                MessageBox.Show("金额输入不正确");
            }
            CustomOperation.UpdateSave(accountinfo);

            OperateRecord     page = new OperateRecord();
            NavigationService ns   = NavigationService.GetNavigationService(this);

            ns.Navigate(page);
        }