-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Le conseiller peut consulter les scores Cléa dans un onglet différent dans l'export détaillé #1805
Merged
cprodhomme
merged 5 commits into
develop
from
EVA-257-le-conseiller-peut-consulter-les-scores-clea-dans-un-onglet-different-dans-lexport-detaille-2
Jan 7, 2025
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Marionvel
force-pushed
the
EVA-257-le-conseiller-peut-consulter-les-scores-clea-dans-un-onglet-different-dans-lexport-detaille-2
branch
2 times, most recently
from
January 6, 2025 16:49
9fc6ccc
to
2e85fac
Compare
Marionvel
force-pushed
the
EVA-257-le-conseiller-peut-consulter-les-scores-clea-dans-un-onglet-different-dans-lexport-detaille-2
branch
from
January 7, 2025 09:49
a70cdf4
to
3dc2c94
Compare
cprodhomme
reviewed
Jan 7, 2025
Comment on lines
4
to
22
class CreationSheetXls | ||
def initialize(titre, entetes, workbook) | ||
@titre = titre | ||
@entetes = entetes | ||
@workbook = workbook | ||
end | ||
|
||
def initialise_sheet | ||
@sheet = @workbook.create_worksheet(name: @titre) | ||
format_premiere_ligne = Spreadsheet::Format.new(weight: :bold, border: :none) | ||
@sheet.row(0).default_format = format_premiere_ligne | ||
@entetes.each_with_index do |entete, colonne| | ||
@sheet[0, colonne] = entete[:titre] | ||
@sheet.column(colonne).width = entete[:taille] | ||
end | ||
|
||
@sheet | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
class CreationSheetXls | |
def initialize(titre, entetes, workbook) | |
@titre = titre | |
@entetes = entetes | |
@workbook = workbook | |
end | |
def initialise_sheet | |
@sheet = @workbook.create_worksheet(name: @titre) | |
format_premiere_ligne = Spreadsheet::Format.new(weight: :bold, border: :none) | |
@sheet.row(0).default_format = format_premiere_ligne | |
@entetes.each_with_index do |entete, colonne| | |
@sheet[0, colonne] = entete[:titre] | |
@sheet.column(colonne).width = entete[:taille] | |
end | |
@sheet | |
end | |
end | |
class Worksheet | |
attribute_reader :sheet | |
def initialize(titre, entetes, workbook) | |
@titre = titre | |
@entetes = entetes | |
@workbook = workbook | |
@sheet = @workbook.create_worksheet(name: @titre) | |
format_premiere_ligne = Spreadsheet::Format.new(weight: :bold, border: :none) | |
@sheet.row(0).default_format = format_premiere_ligne | |
@entetes.each_with_index do |entete, colonne| | |
@sheet[0, colonne] = entete[:titre] | |
@sheet.column(colonne).width = entete[:taille] | |
end | |
end | |
end |
def retourne_le_contenu_du_xls | ||
file_contents = StringIO.new | ||
@sheet.workbook.write file_contents | ||
file_contents.string | ||
end | ||
|
||
def cree_worksheet_donnees | ||
ImportExport::CreationSheetXls.new(WORKSHEET, @entetes, @workbook).initialise_sheet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
ImportExport::CreationSheetXls.new(WORKSHEET, @entetes, @workbook).initialise_sheet | |
onlget = ImportExport::Onglet.new(WORKSHEET, @workbook) | |
onglet.remplis_entete @entetes | |
onglet.worksheet |
end | ||
|
||
def cree_worksheet_synthese | ||
ImportExport::CreationSheetXls.new(WORKSHEET_SYNTHESE, @entetes, @workbook).initialise_sheet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
ImportExport::CreationSheetXls.new(WORKSHEET_SYNTHESE, @entetes, @workbook).initialise_sheet | |
onglet = ImportExport::Onglet.new(WORKSHEET_SYNTHESE, @workbook) | |
onglet.remplis_entete @entetes | |
onglet.worksheet |
Marionvel
force-pushed
the
EVA-257-le-conseiller-peut-consulter-les-scores-clea-dans-un-onglet-different-dans-lexport-detaille-2
branch
from
January 7, 2025 11:02
3dc2c94
to
f6a8057
Compare
… celui des donnees des campagnes
… l'onglet "Synthese" Et supprime ces informations de l'onglet "Donnees"
…ns deux tableaux differents sur le meme onglet synthese
…s domaine afin d'avoir le recap dans l'onglet synthese de l'export
Marionvel
force-pushed
the
EVA-257-le-conseiller-peut-consulter-les-scores-clea-dans-un-onglet-different-dans-lexport-detaille-2
branch
from
January 7, 2025 11:07
64bcce9
to
cd2ddb1
Compare
cprodhomme
approved these changes
Jan 7, 2025
cprodhomme
deleted the
EVA-257-le-conseiller-peut-consulter-les-scores-clea-dans-un-onglet-different-dans-lexport-detaille-2
branch
January 7, 2025 12:19
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.