Beispiel #1
0
        public FrmRecapDecEmp(
            RecapDeclarationEmployeurController controller,
            IsDeclarationEmployeurView declaredAnnexeView)
            : this()
        {
            if (controller == null)
            {
                throw new ArgumentNullException("controller");
            }
            if (declaredAnnexeView == null)
            {
                throw new ArgumentNullException("declaredAnnexeView");
            }

            _controller         = controller;
            _declaredAnnexeView = declaredAnnexeView;
            InitGridRecap();
            InitGridVerification();

            var annexeRecap = _controller.GetRecapAnnexe(declaredAnnexeView);

            if (annexeRecap == null)
            {
                throw new ArgumentNullException("annexeRecap");
            }
            gcRecap.DataSource        = annexeRecap.Lignes;
            gcVerification.DataSource = annexeRecap.Verification;
        }
Beispiel #2
0
        public void Exporter(IsDeclarationEmployeurView view)
        {
            if (view == null)
            {
                throw new ArgumentNullException(nameof(view));
            }


            var          dialog = new FolderBrowserDialog();
            DialogResult result = dialog.ShowDialog();

            if (result != DialogResult.OK)
            {
                return;
            }
            if (dialog.SelectedPath == string.Empty)
            {
                return;
            }
            _recapService.Exporter(view.IsAnnexeUnDeclared,
                                   view.IsAnnexeDeuxDeclared,
                                   view.IsAnnexeTroisDeclared,
                                   view.IsAnnexeQuatreDeclared,
                                   view.IsAnnexeCinqDeclared,
                                   view.IsAnnexeSixDeclared,
                                   view.IsAnnexeSeptDeclared,
                                   dialog.SelectedPath);
            XtraMessageBox.Show("Exportation avec succès", "Déclaration", MessageBoxButtons.OK,
                                MessageBoxIcon.Information);
        }
        public FrmDeclaredAnnexe(IsDeclarationEmployeurView currentView)
            : this()
        {
            if (currentView == null)
            {
                throw new ArgumentNullException(nameof(currentView));
            }

            _currentView = currentView;
            Binding();
        }
Beispiel #4
0
        public AnnexeRecap GetRecapAnnexe(IsDeclarationEmployeurView view)
        {
            if (view == null)
            {
                throw new ArgumentNullException(nameof(view));
            }
            //if ()



            return(_recapService.GetAnnexeRecap(
                       view.IsAnnexeUnDeclared,
                       view.IsAnnexeDeuxDeclared,
                       view.IsAnnexeTroisDeclared,
                       view.IsAnnexeQuatreDeclared,
                       view.IsAnnexeCinqDeclared,
                       view.IsAnnexeSixDeclared,
                       view.IsAnnexeSeptDeclared));
        }