aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-01-23 14:34:55 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-01-23 14:34:55 +0200
commit60a2692fd4acadfdf8724bb198e38a2689a866fd (patch)
treee0924aa7d75c61875419dca7c31b338addd8661e /Software/Visual_Studio/Tango.CodeGeneration
parent73433f297a3361511ba8ff99e2ff852e376987c5 (diff)
downloadTango-60a2692fd4acadfdf8724bb198e38a2689a866fd.tar.gz
Tango-60a2692fd4acadfdf8724bb198e38a2689a866fd.zip
Added new staple spun process parameters to database, BL and PMR.
Implemented process params index via db. Added new process params in MS. Added JOB_RUN => Upload time, Heating Time, IsGradient...
Diffstat (limited to 'Software/Visual_Studio/Tango.CodeGeneration')
-rw-r--r--Software/Visual_Studio/Tango.CodeGeneration/DbPropertyExtensionModel.cs6
-rw-r--r--Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml6
2 files changed, 12 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.CodeGeneration/DbPropertyExtensionModel.cs b/Software/Visual_Studio/Tango.CodeGeneration/DbPropertyExtensionModel.cs
index 873aabe1e..c02094273 100644
--- a/Software/Visual_Studio/Tango.CodeGeneration/DbPropertyExtensionModel.cs
+++ b/Software/Visual_Studio/Tango.CodeGeneration/DbPropertyExtensionModel.cs
@@ -12,6 +12,7 @@ namespace Tango.CodeGeneration
public double Min { get; set; }
public double Max { get; set; }
public String StringFormat { get; set; }
+ public int? Index { get; set; }
public bool HasDescription
{
@@ -28,6 +29,11 @@ namespace Tango.CodeGeneration
get { return StringFormat != null; }
}
+ public bool HasIndex
+ {
+ get { return Index != null; }
+ }
+
public DbPropertyExtensionModel()
{
StringFormat = "0.0";
diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml
index 780cc2647..76c035df9 100644
--- a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml
+++ b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml
@@ -88,6 +88,12 @@ namespace Tango.BL.Entities
[StringFormat("@(prop.PropertyExtension.StringFormat)")]
</div>
}
+ if (prop.PropertyExtension.HasIndex)
+ {
+ <div>
+ [PropertyIndex(@(prop.PropertyExtension.Index))]
+ </div>
+ }
}
public @(prop.Construct || prop.Complex ? "virtual" : "") @(prop.Type) @(prop.Name)
{