瀏覽代碼

2020/10/26 Jessica
Actions:
1.ConnectorStatus 加入 槍型
2.TTIA 功能

Jessica Tseng 4 年之前
父節點
當前提交
1f1f448b44

+ 7 - 0
EVCB_OCPP.Domain/EVCB_OCPP.Domain.csproj

@@ -202,6 +202,10 @@
     <Compile Include="MainDBContextMigrations\202008100245202_Add_ConnectorStatus_TotalEnergy.Designer.cs">
       <DependentUpon>202008100245202_Add_ConnectorStatus_TotalEnergy.cs</DependentUpon>
     </Compile>
+    <Compile Include="MainDBContextMigrations\202010220132355_Add_TTIA_Service.cs" />
+    <Compile Include="MainDBContextMigrations\202010220132355_Add_TTIA_Service.Designer.cs">
+      <DependentUpon>202010220132355_Add_TTIA_Service.cs</DependentUpon>
+    </Compile>
     <Compile Include="MainDBContextMigrations\Configuration.cs" />
     <Compile Include="MeterValueDBContext.cs" />
     <Compile Include="MeterValueDBContextMigrations\201907150814558_Init.cs" />
@@ -363,6 +367,9 @@
     <EmbeddedResource Include="MainDBContextMigrations\202008100245202_Add_ConnectorStatus_TotalEnergy.resx">
       <DependentUpon>202008100245202_Add_ConnectorStatus_TotalEnergy.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="MainDBContextMigrations\202010220132355_Add_TTIA_Service.resx">
+      <DependentUpon>202010220132355_Add_TTIA_Service.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="MeterValueDBContextMigrations\201907150814558_Init.resx">
       <DependentUpon>201907150814558_Init.cs</DependentUpon>
     </EmbeddedResource>

+ 29 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202010220132355_Add_TTIA_Service.Designer.cs

@@ -0,0 +1,29 @@
+// <auto-generated />
+namespace EVCB_OCPP.Domain.MainDBContextMigrations
+{
+    using System.CodeDom.Compiler;
+    using System.Data.Entity.Migrations;
+    using System.Data.Entity.Migrations.Infrastructure;
+    using System.Resources;
+    
+    [GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
+    public sealed partial class Add_TTIA_Service : IMigrationMetadata
+    {
+        private readonly ResourceManager Resources = new ResourceManager(typeof(Add_TTIA_Service));
+        
+        string IMigrationMetadata.Id
+        {
+            get { return "202010220132355_Add_TTIA_Service"; }
+        }
+        
+        string IMigrationMetadata.Source
+        {
+            get { return null; }
+        }
+        
+        string IMigrationMetadata.Target
+        {
+            get { return Resources.GetString("Target"); }
+        }
+    }
+}

+ 24 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202010220132355_Add_TTIA_Service.cs

@@ -0,0 +1,24 @@
+namespace EVCB_OCPP.Domain.MainDBContextMigrations
+{
+    using System;
+    using System.Data.Entity.Migrations;
+    
+    public partial class Add_TTIA_Service : DbMigration
+    {
+        public override void Up()
+        {
+            AddColumn("dbo.ConnectorStatus", "Type", c => c.Int(nullable: false));
+            AddColumn("dbo.Customer", "EnableTTIA", c => c.Boolean(nullable: false));
+            AddColumn("dbo.Machine", "TTIATag", c => c.Int(nullable: false));
+            AddColumn("dbo.TransactionRecord", "UploadedtoTTIA", c => c.Boolean(nullable: false));
+        }
+        
+        public override void Down()
+        {
+            DropColumn("dbo.TransactionRecord", "UploadedtoTTIA");
+            DropColumn("dbo.Machine", "TTIATag");
+            DropColumn("dbo.Customer", "EnableTTIA");
+            DropColumn("dbo.ConnectorStatus", "Type");
+        }
+    }
+}

File diff suppressed because it is too large
+ 120 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202010220132355_Add_TTIA_Service.resx


+ 2 - 0
EVCB_OCPP.Domain/Models/Database/ConnectorStatus.cs

@@ -58,5 +58,7 @@ namespace EVCB_OCPP.Domain.Models.Database
         [DataType("decimal(10,2)")]
         public decimal TotalEnergy { set; get; }
 
+        public int Type { set; get; }
+
     }
 }

+ 6 - 0
EVCB_OCPP.Domain/Models/Database/Customer.cs

@@ -102,6 +102,12 @@ namespace EVCB_OCPP.Domain.Models.Database
         [StringLength(20)]
         public string FTPPassword { set; get; }
 
+
+        public bool EnableTTIA { set; get; }
+
+
+
+
         public Customer()
         {
             Id = Guid.NewGuid();

+ 5 - 0
EVCB_OCPP.Domain/Models/Database/Machine.cs

@@ -211,6 +211,11 @@
 
         public bool IsDelete { set; get; }
 
+        /// <summary>
+        /// TTIA樁號代號
+        /// </summary>
+        public int TTIATag { set; get; }
+
 
 
 

+ 5 - 0
EVCB_OCPP.Domain/Models/Database/TransactionRecord.cs

@@ -141,6 +141,11 @@
         /// </summary>
         public string ErrorMsg { set; get; }
 
+        /// <summary>
+        /// 是否上傳到TTIA
+        /// </summary>
+        public bool UploadedtoTTIA { set; get; }
+
 
 
     }

+ 1 - 1
EVCB_OCPP.Domain/Properties/AssemblyInfo.cs

@@ -35,4 +35,4 @@ using System.Runtime.InteropServices;
 [assembly: AssemblyVersion("0.1.0.0")]
 [assembly: AssemblyFileVersion("0.1.0.0")]
 
-[assembly: AssemblyInformationalVersion("9732599")]
+[assembly: AssemblyInformationalVersion("56c8ec4")]

+ 1 - 1
EVCB_OCPP.MailService/Properties/AssemblyInfo.cs

@@ -35,4 +35,4 @@ using System.Runtime.InteropServices;
 [assembly: AssemblyVersion("0.1.0.0")]
 [assembly: AssemblyFileVersion("0.1.0.0")]
 
-[assembly: AssemblyInformationalVersion("9732599")]
+[assembly: AssemblyInformationalVersion("56c8ec4")]

+ 1 - 1
EVCB_OCPP.Packet/Properties/AssemblyInfo.cs

@@ -35,4 +35,4 @@ using System.Runtime.InteropServices;
 [assembly: AssemblyVersion("0.1.0.0")]
 [assembly: AssemblyFileVersion("0.1.0.0")]
 
-[assembly: AssemblyInformationalVersion("9732599")]
+[assembly: AssemblyInformationalVersion("56c8ec4")]

+ 1 - 1
EVCB_OCPP.Packet20/Properties/AssemblyInfo.cs

@@ -33,4 +33,4 @@ using System.Runtime.InteropServices;
 // [assembly: AssemblyVersion("0.1.0.0")]
 [assembly: AssemblyVersion("0.1.0.0")]
 [assembly: AssemblyFileVersion("0.1.0.0")]
-[assembly: AssemblyInformationalVersion("9732599")]
+[assembly: AssemblyInformationalVersion("56c8ec4")]

Some files were not shown because too many files changed in this diff