Beispiel #1
0
        private void UIButtonReg_Click(object sender, RoutedEventArgs e)
        {
            OpOp.RegistrationClient.EMail          = UIClientForm.EMail;
            OpOp.RegistrationClient.Address        = UIClientForm.Address;
            OpOp.RegistrationClient.PassportNumber = UIClientForm.PassportNum;
            OpOp.RegistrationClient.FirstName      = UIClientForm.FirstName;
            OpOp.RegistrationClient.LastName       = UIClientForm.LastName;
            OpOp.RegistrationClient.MiddleName     = UIClientForm.MiddleName;
            OpOp.RegistrationClient.Country        = UIClientForm.LandName;
            if (OpOp.RegistrationClient.Execute())
            {
                var mbrs = MessageBox.Show(OpOp.RegistrationClient.Information + "\n" + OpOp.StringSource.YouWantToRegistredBankAccount(), OpOp.StringSource.Successfully(), MessageBoxButton.YesNo, MessageBoxImage.Information);
                if (mbrs == MessageBoxResult.Yes)
                {
                    var rb = new RegBankAccount {
                    };
                    rb.UIFindClient.FindById(OpOp.RegistrationClient.IdClient);
                    (Application.Current.MainWindow as IFrame).SetFrame(rb);
                    return;
                }

                var ci = new GetClientInfo {
                };
                ci.GetClientInfo_Loaded(null, null);
                ci.UIFindClient.FindByLogin(OpOp.RegistrationClient.Login);
                ci.FindClient(null, null);
                (Application.Current.MainWindow as IFrame).SetFrame(ci);
                return;
            }

            UIMessage.TextMessage = OpOp.RegistrationClient.Information;
        }
Beispiel #2
0
        private void UIButtonRegAC_Click(object sender, RoutedEventArgs e)
        {
            OpOp.RegistrationCardAccount.CardAccountStatus = OpOp.DataSource.CardStatusUnLocked;
            OpOp.RegistrationCardAccount.CardAccountName   = UICardAccountForm.Namee;
            OpOp.RegistrationCardAccount.CardType          = UICardAccountForm.Type;
            OpOp.RegistrationCardAccount.IdBankAccount     = UIFindAB.IdBankAccount;
            OpOp.RegistrationCardAccount.ExpiredDate       = UICardAccountForm.ExpiredDate;
            if (OpOp.RegistrationCardAccount.Execute())
            {
                var rsmb = MessageBox.Show(OpOp.RegistrationCardAccount.Information + "\n" +
                                           OpOp.StringSource.YouWantToNextRegistredCardAccount(),
                                           OpOp.StringSource.Successfully(), MessageBoxButton.YesNo, MessageBoxImage.Information);

                if (rsmb == MessageBoxResult.Yes)
                {
                    ClearUIThis();
                    UIMessage.TextMessage = "";
                    return;
                }
                else
                {
                    var ci = new GetClientInfo {
                    };
                    ci.GetClientInfo_Loaded(null, null);
                    ci.UIFindClient.FindById(OpOp.RegistrationCardAccount.IdClient);
                    ci.FindClient(null, null);
                    (Application.Current.MainWindow as IFrame).SetFrame(ci);
                    return;
                }
            }
            UIMessage.TextMessage = OpOp.RegistrationCardAccount.Information;
        }
Beispiel #3
0
        private void UIToInfoClient_Click(object sender, RoutedEventArgs e)
        {
            var ci = new GetClientInfo {
            };

            ci.UIFindClient.FindById(OpOp.RegistrationCardAccount.IdClient);
            ci.FindClient(sender, e);
            (Application.Current.MainWindow as IFrame).SetFrame(ci);
        }
Beispiel #4
0
        private void UIButtonRegBankAccount_Click(object sender, RoutedEventArgs e)
        {
            OpOp.AddBankAccount.Balance    = "0";
            OpOp.AddBankAccount.IdCurrency = UIBankAccountForm.IdCurrency;
            OpOp.AddBankAccount.IdCustomer = UIFindClient.IdClient;
            if (OpOp.AddBankAccount.Execute())
            {
                var dg = new BankAccountDialog();
                dg.TextMessage = OpOp.AddBankAccount.Information;
                dg.Owner       = Application.Current.MainWindow;
                dg.ShowDialog();
                var rs = dg.Result;
                switch (rs)
                {
                case 1:
                    var bb = new EditBankAccount();
                    bb.UIFindBankAccount.FindByNumber(OpOp.AddBankAccount.AccountNumber);
                    (Application.Current.MainWindow as IFrame).SetFrame(bb);
                    return;

                case 2:
                    var aa = new RegAC();
                    aa.UIFindAB.FindByNumber(OpOp.AddBankAccount.AccountNumber);
                    (Application.Current.MainWindow as IFrame).SetFrame(aa);
                    return;

                case 3:
                    var rb = new RegBankAccount {
                    };
                    rb.UIFindClient.FindById(OpOp.AddBankAccount.IdCustomer);
                    (Application.Current.MainWindow as IFrame).SetFrame(rb);
                    return;
                }
                var ci = new GetClientInfo();
                ci.GetClientInfo_Loaded(null, null);
                ci.UIFindClient.FindById(OpOp.AddBankAccount.IdCustomer);
                ci.FindClient(null, null);
                (Application.Current.MainWindow as IFrame).SetFrame(ci);

                UIBankAccountForm.ClearUI();
            }
            UIMessage.TextMessage = OpOp.AddBankAccount.Information;
        }