Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nghyd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
A compter du 1er avril, attention à vos pipelines :
Nouvelles limitations de Docker Hub
Show more breadcrumbs
Cassiopée
nghyd
Commits
b7082144
Commit
b7082144
authored
5 years ago
by
mathias.chouet
Browse files
Options
Downloads
Patches
Plain Diff
Fix
#156
parent
ec5a720d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
src/app/components/fixedvar-results/fixed-results.component.ts
+15
-2
15 additions, 2 deletions
...pp/components/fixedvar-results/fixed-results.component.ts
with
16 additions
and
3 deletions
README.md
+
1
−
1
View file @
b7082144
...
...
@@ -139,7 +139,7 @@ Custom Material SVG Icons will only show up when the application is deployed on
throw "Toto.Equation() : invalid variable name " + sVarCalc;
}
return new Result(v);
return new Result(v
, this
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/app/components/fixedvar-results/fixed-results.component.ts
+
15
−
2
View file @
b7082144
...
...
@@ -6,6 +6,7 @@ import { CalculatorResults } from "../../results/calculator-results";
import
{
I18nService
}
from
"
../../services/internationalisation/internationalisation.service
"
;
import
{
ApplicationSetupService
}
from
"
../../services/app-setup/app-setup.service
"
;
import
*
as
XLSX
from
"
xlsx
"
;
import
{
Structure
}
from
"
jalhyd
"
;
@
Component
({
selector
:
"
fixed-results
"
,
...
...
@@ -67,8 +68,14 @@ export class FixedResultsComponent {
const
data
=
[];
// 1. fixed parameters
for
(
const
fp
of
this
.
fixedParams
)
{
let
label
=
this
.
formattedLabel
(
fp
);
// add structure position before label
if
(
fp
.
paramDefinition
.
parentNub
instanceof
Structure
)
{
const
pos
=
fp
.
paramDefinition
.
parentNub
.
findPositionInParent
();
label
=
this
.
intlService
.
localizeText
(
"
INFO_OUVRAGE
"
)
+
"
n°
"
+
(
pos
+
1
)
+
"
:
"
+
label
;
}
data
.
push
({
label
:
this
.
formattedLabel
(
fp
)
,
label
:
label
,
value
:
this
.
formattedValue
(
fp
),
isCalcResult
:
false
// for CSS
});
...
...
@@ -82,8 +89,14 @@ export class FixedResultsComponent {
)
{
// 2.1. main result (sometimes empty, for ex. in "Section paramétrée")
if
(
res
.
name
&&
res
.
resultElement
.
vCalc
!==
undefined
)
{
let
rLabel
=
this
.
_fixedResults
.
calculatedParameterHeader
;
// add structure position before label
if
(
res
.
sourceNub
instanceof
Structure
)
{
const
pos
=
res
.
sourceNub
.
findPositionInParent
();
rLabel
=
this
.
intlService
.
localizeText
(
"
INFO_OUVRAGE
"
)
+
"
n°
"
+
(
pos
+
1
)
+
"
:
"
+
rLabel
;
}
data
.
push
({
label
:
this
.
_fixedResults
.
calculatedParameterHeader
,
label
:
rLabel
,
value
:
this
.
intlService
.
formatResult
(
res
.
name
,
res
.
resultElement
.
vCalc
),
isCalcResult
:
true
// for CSS
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment