Beispiel #1
0
        //rdb/checkbox


        //Evaluate
        private void btn_evaluate(object sender, RoutedEventArgs e)
        {
            int ctr = 0;

            foreach (IndexScore _score in this.rebaObject.getScoreList())
            {
                if (!_score.validate())
                {
                    Helpers.ToastError(Window.GetWindow(this), "Input error", _score.error_message, MessageBoxButton.OK);
                    return;
                }
                ctr++;
            }

            RebaReport _view;

            if (this._employee != null)
            {
                _view = new RebaReport(this.RebaObject, this._employee, typeOfEvaluation);
            }
            else
            {
                _view = new RebaReport(this.RebaObject, typeOfEvaluation);
            }
            _view.Show();
        }
Beispiel #2
0
        //rdb/checkbox
      
        
        //Evaluate
        private void btn_evaluate(object sender, RoutedEventArgs e)
        {
           
            int ctr = 0;

            foreach (IndexScore _score in this.rebaObject.getScoreList())
            {
                if (!_score.validate())
                {
                    Helpers.ToastError(Window.GetWindow(this), "Input error", _score.error_message, MessageBoxButton.OK);
                    return;
                }
                ctr++;
            }

            RebaReport _view;
            if (this._employee != null) _view = new RebaReport(this.RebaObject, this._employee , typeOfEvaluation);
            else  _view = new RebaReport(this.RebaObject, typeOfEvaluation);
            _view.Show();
        }