瀏覽代碼

因應CDFA 家常收據和費率欄位的長度

Jessica Tseng 3 年之前
父節點
當前提交
ab036863fd

+ 1 - 1
EVCB_OCPP.Domain/App.config

@@ -16,7 +16,7 @@
   </entityFramework>
   <connectionStrings>
     <add name="ConnectionLogDBContext" connectionString="data source=172.1.2.187,1434\SQLEXPRESS2017;initial catalog=StandardOCPP_ConnectionLog;persist security info=True;user id=sa;password=Ph0930118811;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
-    <add name="MainDBContext" connectionString="data source=.\SQLEXPRESS;initial catalog=StandardOCPP_Main;;persist security info=True;user id=sa;password=Ph0930118811;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
+    <add name="MainDBContext" connectionString="data source=172.1.2.187\SQLEXPRESS2017;initial catalog=StandardOCPP_Main;;persist security info=True;user id=sa;password=Ph0930118811;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
     <add name="MeterValueDBContext" connectionString="data source=172.1.2.187\SQLEXPRESS2017;initial catalog=StandardOCPP_MeterValue;;persist security info=True;user id=sa;password=Ph0930118811;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
    
 </connectionStrings>

+ 14 - 1
EVCB_OCPP.Domain/EVCB_OCPP.Domain.csproj

@@ -226,6 +226,14 @@
     <Compile Include="MainDBContextMigrations\202108100251030_Rename_Receipt_TransactionTable.Designer.cs">
       <DependentUpon>202108100251030_Rename_Receipt_TransactionTable.cs</DependentUpon>
     </Compile>
+    <Compile Include="MainDBContextMigrations\202112030223402_Modify_Transaction_FeeLength.cs" />
+    <Compile Include="MainDBContextMigrations\202112030223402_Modify_Transaction_FeeLength.Designer.cs">
+      <DependentUpon>202112030223402_Modify_Transaction_FeeLength.cs</DependentUpon>
+    </Compile>
+    <Compile Include="MainDBContextMigrations\202112060214293_Modify_Transaction_ReceiptLength.cs" />
+    <Compile Include="MainDBContextMigrations\202112060214293_Modify_Transaction_ReceiptLength.Designer.cs">
+      <DependentUpon>202112060214293_Modify_Transaction_ReceiptLength.cs</DependentUpon>
+    </Compile>
     <Compile Include="MainDBContextMigrations\Configuration.cs" />
     <Compile Include="MeterValueDBContext.cs" />
     <Compile Include="MeterValueDBContextMigrations\201907150814558_Init.cs" />
@@ -264,7 +272,6 @@
     <Compile Include="Models\Database\MachineOperateRecord.cs" />
     <Compile Include="Models\Database\MachineVersionFile.cs" />
     <Compile Include="Models\Database\ServerMessage.cs" />
-    <Compile Include="Models\Database\TransactionDataRecord.cs" />
     <Compile Include="Models\Database\TransactionRecord.cs" />
     <Compile Include="Models\Database\UploadFile.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
@@ -405,6 +412,12 @@
     <EmbeddedResource Include="MainDBContextMigrations\202108100251030_Rename_Receipt_TransactionTable.resx">
       <DependentUpon>202108100251030_Rename_Receipt_TransactionTable.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="MainDBContextMigrations\202112030223402_Modify_Transaction_FeeLength.resx">
+      <DependentUpon>202112030223402_Modify_Transaction_FeeLength.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="MainDBContextMigrations\202112060214293_Modify_Transaction_ReceiptLength.resx">
+      <DependentUpon>202112060214293_Modify_Transaction_ReceiptLength.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="MeterValueDBContextMigrations\201907150814558_Init.resx">
       <DependentUpon>201907150814558_Init.cs</DependentUpon>
     </EmbeddedResource>

+ 29 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202112030223402_Modify_Transaction_FeeLength.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 Modify_Transaction_FeeLength : IMigrationMetadata
+    {
+        private readonly ResourceManager Resources = new ResourceManager(typeof(Modify_Transaction_FeeLength));
+        
+        string IMigrationMetadata.Id
+        {
+            get { return "202112030223402_Modify_Transaction_FeeLength"; }
+        }
+        
+        string IMigrationMetadata.Source
+        {
+            get { return null; }
+        }
+        
+        string IMigrationMetadata.Target
+        {
+            get { return Resources.GetString("Target"); }
+        }
+    }
+}

+ 18 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202112030223402_Modify_Transaction_FeeLength.cs

@@ -0,0 +1,18 @@
+namespace EVCB_OCPP.Domain.MainDBContextMigrations
+{
+    using System;
+    using System.Data.Entity.Migrations;
+    
+    public partial class Modify_Transaction_FeeLength : DbMigration
+    {
+        public override void Up()
+        {
+            AlterColumn("dbo.TransactionRecord", "Fee", c => c.String(maxLength: 1500));
+        }
+        
+        public override void Down()
+        {
+            AlterColumn("dbo.TransactionRecord", "Fee", c => c.String(maxLength: 500));
+        }
+    }
+}

文件差異過大導致無法顯示
+ 120 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202112030223402_Modify_Transaction_FeeLength.resx


+ 29 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202112060214293_Modify_Transaction_ReceiptLength.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 Modify_Transaction_ReceiptLength : IMigrationMetadata
+    {
+        private readonly ResourceManager Resources = new ResourceManager(typeof(Modify_Transaction_ReceiptLength));
+        
+        string IMigrationMetadata.Id
+        {
+            get { return "202112060214293_Modify_Transaction_ReceiptLength"; }
+        }
+        
+        string IMigrationMetadata.Source
+        {
+            get { return null; }
+        }
+        
+        string IMigrationMetadata.Target
+        {
+            get { return Resources.GetString("Target"); }
+        }
+    }
+}

+ 18 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202112060214293_Modify_Transaction_ReceiptLength.cs

@@ -0,0 +1,18 @@
+namespace EVCB_OCPP.Domain.MainDBContextMigrations
+{
+    using System;
+    using System.Data.Entity.Migrations;
+    
+    public partial class Modify_Transaction_ReceiptLength : DbMigration
+    {
+        public override void Up()
+        {
+            AlterColumn("dbo.TransactionRecord", "Receipt", c => c.String(maxLength: 3000));
+        }
+        
+        public override void Down()
+        {
+            AlterColumn("dbo.TransactionRecord", "Receipt", c => c.String(maxLength: 500));
+        }
+    }
+}

文件差異過大導致無法顯示
+ 120 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202112060214293_Modify_Transaction_ReceiptLength.resx


+ 2 - 2
EVCB_OCPP.Domain/Models/Database/TransactionRecord.cs

@@ -152,13 +152,13 @@
         /// <summary>
         /// 收費明細
         /// </summary>
-        [StringLength(500)]
+        [StringLength(3000)]
         public string Receipt { set; get; }
 
         /// <summary>
         /// 收費標準
         /// </summary>
-        [StringLength(500)]
+        [StringLength(1500)]
         public string Fee { 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("69ed52f")]
+[assembly: AssemblyInformationalVersion("2e4a9e8")]

部分文件因文件數量過多而無法顯示