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; }
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(); }
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)); }