From 43eee355dc85bc4c5c35b2140326f1516e992efe Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Tue, 24 Oct 2023 14:17:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PZHGL/InformationProject/ConstructionLog.aspx.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx.cs b/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx.cs index bf53912b..e64b9de9 100644 --- a/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx.cs +++ b/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx.cs @@ -549,8 +549,12 @@ namespace FineUIPro.Web.PZHGL.InformationProject this.txtFileCode.Text = BLL.SQLHelper.RunProcNewId("SpGetThreeNumber", "ZHGL_ConstructionLog", "FileCode", this.CurrUser.LoginProjectId, prefix); this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", today); this.txtWeek.Text = Funs.GetWeekDay(today.DayOfWeek.ToString()); - this.txtWeather.Text = string.Empty; - this.txtTemperature.Text = string.Empty; + var getW = WeatherService.GetWeather(this.CurrUser.LoginProjectId); + if (getW != null) + { + this.txtWeather.Text = getW.WeatherRef; + this.txtTemperature.Text = getW.AllTem; + } var log = (from x in Funs.DB.ZHGL_ConstructionLog where x.ProjectId == this.CurrUser.LoginProjectId && x.CompileDate == today select x).FirstOrDefault(); @@ -593,7 +597,7 @@ namespace FineUIPro.Web.PZHGL.InformationProject } } this.txtRemark.Text = string.Empty; - this.txtHSETodaySummary.Text = "安全事故:次;安全检查:次;安全检查累计问题项:项,已整改:项。"; + this.txtHSETodaySummary.Text = "安全事故:次;安全检查:次;安全检查累计问题项:项,已整改:项。"; this.txtHSETodaySummaryRemark.Text = string.Empty; this.txtHSETomorrowPlan.Text = string.Empty; this.txtHSETomorrowPlanRemark.Text = string.Empty;