From bfd078c1d269d6fb837d9c0af9cffdb8481c39c7 Mon Sep 17 00:00:00 2001 From: cdk <2441919651@qq.com> Date: 星期日, 17 八月 2025 17:37:51 +0800 Subject: [PATCH] 异常工时bug修改 --- DevApp/Gs.DevApp/Program.cs | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/DevApp/Gs.DevApp/Program.cs b/DevApp/Gs.DevApp/Program.cs index 0af929f..fc5e41d 100644 --- a/DevApp/Gs.DevApp/Program.cs +++ b/DevApp/Gs.DevApp/Program.cs @@ -2,8 +2,9 @@ using CefSharp.WinForms; using Gs.DevApp.DevFrm; using Gs.DevApp.DevFrm.Work; +using Gs.DevApp.Properties; +using Gs.DevApp.ToolBox; using System; -using System.Configuration; using System.Diagnostics; using System.IO; using System.Windows.Forms; @@ -51,17 +52,18 @@ fmLogin.ShowDialog(); if (fmLogin.DialogResult == DialogResult.OK) { - //Application.Run(new DevFrm.User.SysMenu()); - string IsWeight = "0"; + Application.Run(new DevFrm.User.SysMenu()); + return; + bool IsWeight = false; try { - IsWeight = ConfigurationManager.AppSettings["IsWeight"]; + IsWeight = Settings.Default.isWeight; } catch (Exception) { } - if (IsWeight == "1") - Application.Run(new Frm_Work09()); + if (IsWeight == true) + Application.Run(new Frm_Work09(QcSeason.浜х嚎绉伴噸.ToString())); else Application.Run(new FrmMain()); } -- Gitblit v1.9.3