diff --git a/DataBase/版本日志/SGGLDB_WH_2023-08-10-2.sql b/DataBase/版本日志/SGGLDB_WH_2023-08-10-2.sql new file mode 100644 index 00000000..9095259a --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_2023-08-10-2.sql @@ -0,0 +1 @@ +alter table sys_const alter Column ConstValue nvarchar(200) \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/AttachFile/OnlineEditing.aspx.cs b/SGGL/FineUIPro.Web/AttachFile/OnlineEditing.aspx.cs index 9632e4c5..2321a601 100644 --- a/SGGL/FineUIPro.Web/AttachFile/OnlineEditing.aspx.cs +++ b/SGGL/FineUIPro.Web/AttachFile/OnlineEditing.aspx.cs @@ -15,10 +15,10 @@ namespace FineUIPro.Web.AttachFile { get { - var sysSet = (from x in Funs.DB.Sys_Set where x.SetName == "OnlineEditAppid" select x).ToList().FirstOrDefault(); + var sysSet = (from x in Funs.DB.Sys_Const where x.ConstText == "OnlineEditAppid" select x).ToList().FirstOrDefault(); if (sysSet != null) { - return sysSet.SetValue; + return sysSet.ConstValue; } else { @@ -30,10 +30,10 @@ namespace FineUIPro.Web.AttachFile { get { - var sysSet = (from x in Funs.DB.Sys_Set where x.SetName == "OnlineEditAppkey" select x).ToList().FirstOrDefault(); + var sysSet = (from x in Funs.DB.Sys_Const where x.ConstText == "OnlineEditAppkey" select x).ToList().FirstOrDefault(); if (sysSet != null) { - return sysSet.SetValue; + return sysSet.ConstValue; } else { @@ -45,10 +45,10 @@ namespace FineUIPro.Web.AttachFile { get { - var sysSet = (from x in Funs.DB.Sys_Set where x.SetName == "OnlineEditCallBackurl" select x).ToList().FirstOrDefault(); + var sysSet = (from x in Funs.DB.Sys_Const where x.ConstText == "OnlineEditCallBackurl" select x).ToList().FirstOrDefault(); if (sysSet != null) { - return sysSet.SetValue; + return sysSet.ConstValue; } else { diff --git a/SGGL/FineUIPro.Web/SysManage/SysConstSet.aspx.cs b/SGGL/FineUIPro.Web/SysManage/SysConstSet.aspx.cs index c647eabf..5186134f 100644 --- a/SGGL/FineUIPro.Web/SysManage/SysConstSet.aspx.cs +++ b/SGGL/FineUIPro.Web/SysManage/SysConstSet.aspx.cs @@ -1017,6 +1017,7 @@ namespace FineUIPro.Web.SysManage sysSey1.ConstValue = this.txtAppid.Text.Trim(); } sysSey1.ConstText = "OnlineEditAppid"; + sysSey1.ID = SQLHelper.GetNewID(); Funs.DB.Sys_Const.InsertOnSubmit(sysSey1); Funs.DB.SubmitChanges(); } @@ -1037,6 +1038,7 @@ namespace FineUIPro.Web.SysManage sysSey2.ConstValue = this.txtAppkey.Text.Trim(); } sysSey2.ConstText = "OnlineEditAppkey"; + sysSey2.ID = SQLHelper.GetNewID(); Funs.DB.Sys_Const.InsertOnSubmit(sysSey2); Funs.DB.SubmitChanges(); } @@ -1057,6 +1059,7 @@ namespace FineUIPro.Web.SysManage sysSet3.ConstValue = this.txtCallBackapiurl.Text.Trim(); } sysSet3.ConstText = "OnlineEditCallBackurl"; + sysSet3.ID = SQLHelper.GetNewID(); Funs.DB.Sys_Const.InsertOnSubmit(sysSet3); Funs.DB.SubmitChanges(); }