diff --git a/DataBase/版本日志/SGGLDB_V2024-12-30-gaofei.sql b/DataBase/版本日志/SGGLDB_V2024-12-30-gaofei.sql new file mode 100644 index 00000000..f80a9b2f --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2024-12-30-gaofei.sql @@ -0,0 +1,25 @@ + + + +-- +IF NOT EXISTS (SELECT * FROM Sys_Const WHERE ConstValue = '2025' and GroupId='0008') +BEGIN + INSERT INTO dbo.Sys_Const(ID,ConstValue,ConstText,SortIndex,GroupId) + VALUES(newid(),'2025','2025',2025,'0008') + END +GO +IF NOT EXISTS (SELECT * FROM Sys_Const WHERE ConstValue = '2026' and GroupId='0008') +BEGIN + INSERT INTO dbo.Sys_Const(ID,ConstValue,ConstText,SortIndex,GroupId) + VALUES(newid(),'2026','2026',2026,'0008') + END +GO +IF NOT EXISTS (SELECT * FROM Sys_Const WHERE ConstValue = '2027' and GroupId='0008') +BEGIN + INSERT INTO dbo.Sys_Const(ID,ConstValue,ConstText,SortIndex,GroupId) + VALUES(newid(),'2027','2027',2027,'0008') +END +GO + + + diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index 60b1b75c..c8047891 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -5081,6 +5081,10 @@ namespace BLL /// 上报失败 /// public const string UpState_4 = "4"; + /// + /// 已上报(集团已审核) + /// + public const string UpState_5 = "5"; #endregion #region 风险管控流程定义 diff --git a/SGGL/FineUIPro.Web/ZHGL/Environmental/ArchitectureReport.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Environmental/ArchitectureReport.aspx.cs index 7653660a..0a0aa25a 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Environmental/ArchitectureReport.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Environmental/ArchitectureReport.aspx.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using BLL; +using Newtonsoft.Json.Linq; using AspNet = System.Web.UI.WebControls; namespace FineUIPro.Web.ZHGL.Environmental @@ -48,13 +49,47 @@ namespace FineUIPro.Web.ZHGL.Environmental { int year = Funs.GetNewIntOrZero(drpYear.SelectedValue); int Quarters = Funs.GetNewIntOrZero(drpQuarters.SelectedValue); + Model.Environmental_ArchitectureReport r = Funs.DB.Environmental_ArchitectureReport.FirstOrDefault(e => e.UnitId == drpUnit.SelectedValue && e.Quarters == Quarters && e.Year == year); + if (r != null && r.UpState != BLL.Const.UpState_5) + { + string cncecAPIUrl = string.Empty; + var sysSet9 = (from x in Funs.DB.Sys_Const where x.ConstText == "集团接口地址" select x).ToList().FirstOrDefault(); + if (sysSet9 != null) + { + cncecAPIUrl = sysSet9.ConstValue; + } + if (!string.IsNullOrEmpty(cncecAPIUrl)) + { + try + { + string getUrl = cncecAPIUrl + "/api/InformationData/GetArchitectureAuditState" + "?unitId=" + BLL.Const.UnitId_SEDIN + "&year=" + year + "&quarters=" + Quarters; + var strJosn = APIGetHttpService.Http(getUrl); + if (!string.IsNullOrEmpty(strJosn)) + { + JObject obj = JObject.Parse(strJosn); + if (obj["data"] != null && obj["data"].ToString() == "True") + { + r.UpState = BLL.Const.UpState_5; + Funs.DB.SubmitChanges(); + } + } + } + catch (Exception) + { + } + } + } Model.View_Environmental_ArchitectureReport report = Funs.DB.View_Environmental_ArchitectureReport.FirstOrDefault(e => e.UnitId == drpUnit.SelectedValue && e.Quarters == Quarters && e.Year == year); if (report != null) { string upState = string.Empty; - if (report.UpState == BLL.Const.UpState_3) + if (report.UpState == BLL.Const.UpState_5) { - upState = "(已上报)"; + upState = "(已上报(集团已审核))"; + } + else if (report.UpState == BLL.Const.UpState_3) + { + upState = "(已上报(集团未审核))"; } else { @@ -185,7 +220,7 @@ namespace FineUIPro.Web.ZHGL.Environmental if (getReport != null) { this.btnNew.Hidden = true; - //if (getReport.HandleMan == this.CurrUser.PersonId) //当前人是下一步办理入 + //if (getReport.HandleMan == this.CurrUser.UserId) //当前人是下一步办理入 //{ // if (getReport.HandleState == BLL.Const.HandleState_2) // { @@ -357,15 +392,15 @@ namespace FineUIPro.Web.ZHGL.Environmental /// protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e) { - var units = BLL.UnitService.GetUnitDropDownList(); - if (units != null && !string.IsNullOrEmpty(this.drpUnit.SelectedText)) - { - var unit = units.FirstOrDefault(x => x.UnitName == this.drpUnit.SelectedText); - if (unit != null) - { - drpUnit.SelectedValue = unit.UnitId; - } - } + //var units = BLL.UnitService.GetUnitDropDownList(); + //if (units != null && !string.IsNullOrEmpty(this.drpUnit.SelectedText)) + //{ + // var unit = units.FirstOrDefault(x => x.UnitName == this.drpUnit.SelectedText); + // if (unit != null) + // { + // drpUnit.SelectedValue = unit.UnitId; + // } + //} GetValue(); } diff --git a/SGGL/FineUIPro.Web/ZHGL/Environmental/ArchitectureReportSave.aspx b/SGGL/FineUIPro.Web/ZHGL/Environmental/ArchitectureReportSave.aspx index aef849ad..ce5b7d87 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Environmental/ArchitectureReportSave.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/Environmental/ArchitectureReportSave.aspx @@ -17,6 +17,11 @@ white-space: normal; word-break: break-all; } + + .customlabel span { + color: red; + font-weight: bold; + } @@ -94,6 +99,7 @@ <%----%> +