Kaynağa Gözat

【软件版本】
V 3.0.6.3,状态:发布;
【模块名称】
G客户NTF统计功能。
【问题原因】
修改LoadConfig,加载时如果没有NTF配置,保存默认配置。
【修改描述】

【测试结果】

sat23 3 yıl önce
ebeveyn
işleme
f3e218e916

+ 4 - 0
SCBC Factory Tools/MOKA Factory Tools.csproj

@@ -177,6 +177,7 @@
     </EmbeddedResource>
     <EmbeddedResource Include="Views\Main.resx">
       <DependentUpon>Main.cs</DependentUpon>
+      <SubType>Designer</SubType>
     </EmbeddedResource>
     <EmbeddedResource Include="Views\Main.zh-CN.resx">
       <DependentUpon>Main.cs</DependentUpon>
@@ -184,9 +185,11 @@
     </EmbeddedResource>
     <EmbeddedResource Include="Views\Login.resx">
       <DependentUpon>Login.cs</DependentUpon>
+      <SubType>Designer</SubType>
     </EmbeddedResource>
     <EmbeddedResource Include="Views\Login.zh-CN.resx">
       <DependentUpon>Login.cs</DependentUpon>
+      <SubType>Designer</SubType>
     </EmbeddedResource>
     <EmbeddedResource Include="LResource.resx">
       <Generator>ResXFileCodeGenerator</Generator>
@@ -258,6 +261,7 @@
     <Content Include="Lib\SQLite\x64\SQLite.Interop.dll" />
     <Content Include="Lib\SQLite\x86\SQLite.Interop.dll" />
     <Content Include="Licence.txt" />
+    <None Include="Resources\%24this.Icon.ico" />
     <Content Include="Runtime\dotnetfx45_full_x86_x64.exe" />
     <Content Include="Upgradelog\Licence3.0.0.1.txt" />
     <Content Include="Upgradelog\Licence3.0.0.2.txt" />

+ 8 - 0
SCBC Factory Tools/Views/Main.cs

@@ -725,11 +725,19 @@ namespace MOKA_Factory_Tools
                 {
                     functionSetting1.NTF = jObject["NTF"].Value<bool>();
                 }
+                else
+                {
+                    SaveJsonConfig("NTF", false);
+                }
 
                 if (jObject["Line"] != null)
                 {
                     functionSetting1.Line = jObject["Line"].Value<string>();
                 }
+                else
+                {
+                    SaveJsonConfig("Line", "");
+                }
 
                 if (jObject["Station"] != null)
                 {