提交代码
This commit is contained in:
@@ -134,6 +134,11 @@ namespace FineUIPro.Web.SysManage
|
||||
{
|
||||
txtSerVerUrl.Text = sysSet9.ConstValue;
|
||||
}
|
||||
var sysSet6_Api = (from x in Funs.DB.Sys_Const where x.ConstText == "程序接口访问地址" select x).ToList().FirstOrDefault();
|
||||
if (sysSet6_Api != null)
|
||||
{
|
||||
this.txtSGGLApiUrl.Text = sysSet6_Api.ConstValue;
|
||||
}
|
||||
var sysSet10 = (from x in Funs.DB.Sys_Const where x.ConstText == "集团ESB地址" select x).ToList().FirstOrDefault();
|
||||
if (sysSet10 != null)
|
||||
{
|
||||
@@ -353,6 +358,27 @@ namespace FineUIPro.Web.SysManage
|
||||
Funs.DB.Sys_Const.InsertOnSubmit(newSysSet9);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
Model.Sys_Const sysSet6_Api = db.Sys_Const.FirstOrDefault(x => x.ConstText == "程序接口访问地址");
|
||||
if (sysSet6_Api != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.txtSGGLApiUrl.Text.Trim()))
|
||||
{
|
||||
sysSet6_Api.ConstValue = this.txtSGGLApiUrl.Text.Trim();
|
||||
}
|
||||
db.SubmitChanges();
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.Sys_Const newsysSet6_Api = new Model.Sys_Const();
|
||||
newsysSet6_Api.ID = SQLHelper.GetNewID();
|
||||
if (!string.IsNullOrEmpty(this.txtSGGLApiUrl.Text.Trim()))
|
||||
{
|
||||
newsysSet6_Api.ConstValue = this.txtSGGLApiUrl.Text.Trim();
|
||||
}
|
||||
newsysSet6_Api.ConstText = "程序接口访问地址";
|
||||
Funs.DB.Sys_Const.InsertOnSubmit(newsysSet6_Api);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
Model.Sys_Const sysSet10 = db.Sys_Const.FirstOrDefault(x => x.ConstText == "集团ESB地址");
|
||||
if (sysSet10 != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user