diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-04-02 22:00:15 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-04-02 22:00:15 +0300 |
| commit | 37f64f8193684ebe99b29bf0ccef2863b69722d1 (patch) | |
| tree | 3631177a59902f78d3863b68dcd811687f13b772 /Software/Visual_Studio/Tango.BL/Entities | |
| parent | 3dcf3242705a7522617d4b5f7ca4d9b918e48ca5 (diff) | |
| download | Tango-37f64f8193684ebe99b29bf0ccef2863b69722d1.tar.gz Tango-37f64f8193684ebe99b29bf0ccef2863b69722d1.zip | |
Eureka PPC. Input brush stop content control. Weight in gram.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/Entities/Job.cs | 4 | ||||
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/Entities/Segment.cs | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/Job.cs b/Software/Visual_Studio/Tango.BL/Entities/Job.cs index f4bde2599..2784dea32 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/Job.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/Job.cs @@ -118,7 +118,7 @@ namespace Tango.BL.Entities return 0; var gramPerlength = Rml.GetGramPer1000mLength; - var weight = (LengthIncludingNumberOfUnits * gramPerlength) / (1000 * 1000);//(kg) + var weight = (LengthIncludingNumberOfUnits * gramPerlength) / (1000 );//(g) return weight; } } @@ -637,7 +637,7 @@ namespace Tango.BL.Entities double length = GetLength(); - var weight = (length * GramPerLength) / (1000 * 1000);//length in m, return value in kg + var weight = (length * GramPerLength) / (1000 );//length in m, return value in g return weight; } diff --git a/Software/Visual_Studio/Tango.BL/Entities/Segment.cs b/Software/Visual_Studio/Tango.BL/Entities/Segment.cs index be72100a5..5a99442e4 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/Segment.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/Segment.cs @@ -271,6 +271,16 @@ namespace Tango.BL.Entities } } + public BrushStop FirstBrushStop + { + get { if (BrushStops.Count == 1)//Intersegment?? - null + return BrushStops[0]; + else if(BrushStops.Count >= 5) + return BrushStops[1]; + else + return null; } + } + public static Color GetRelativeRGB(Color first, Color second, double firstOffset, double secondOffset, double offset) { var color = new Color(); |
