1
This commit is contained in:
@@ -376,6 +376,13 @@
|
||||
<f:TextBox ID="txtCallBackapiurl" runat="server" Label="文档保存回调地址" LabelWidth="230px"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="100%">
|
||||
<Items>
|
||||
<f:CheckBox ID="ckIsUseLoaclService" runat="server" Label="是否使用本地服务" LabelWidth="230px">
|
||||
</f:CheckBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
|
||||
@@ -1048,6 +1048,18 @@ namespace FineUIPro.Web.SysManage
|
||||
{
|
||||
txtCallBackapiurl.Text = sysSet3.ConstValue;
|
||||
}
|
||||
var sysSet4 = (from x in db.Sys_Const where x.ConstText == "IsUseLoaclService" select x).ToList().FirstOrDefault();
|
||||
if (sysSet4 != null)
|
||||
{
|
||||
if (sysSet4.ConstValue=="1")
|
||||
{
|
||||
ckIsUseLoaclService .Checked=true;
|
||||
}
|
||||
else
|
||||
{
|
||||
ckIsUseLoaclService.Checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
protected void OnlineMenuSetSave_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
@@ -1115,6 +1127,36 @@ namespace FineUIPro.Web.SysManage
|
||||
Funs.DB.Sys_Const.InsertOnSubmit(sysSet3);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
Model.Sys_Const sysSet4 = db.Sys_Const.FirstOrDefault(x => x.ConstText == "IsUseLoaclService");
|
||||
if (sysSet4 != null)
|
||||
{
|
||||
if (ckIsUseLoaclService.Checked)
|
||||
{
|
||||
sysSet4.ConstValue ="1";
|
||||
}
|
||||
else
|
||||
{
|
||||
sysSet4.ConstValue = "0";
|
||||
}
|
||||
|
||||
db.SubmitChanges();
|
||||
}
|
||||
else
|
||||
{
|
||||
sysSet4 = new Model.Sys_Const();
|
||||
if (ckIsUseLoaclService.Checked)
|
||||
{
|
||||
sysSet4.ConstValue = "1";
|
||||
}
|
||||
else
|
||||
{
|
||||
sysSet4.ConstValue = "0";
|
||||
}
|
||||
sysSet4.ConstText = "IsUseLoaclService";
|
||||
sysSet4.ID = SQLHelper.GetNewID();
|
||||
Funs.DB.Sys_Const.InsertOnSubmit(sysSet4);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -869,6 +869,15 @@ namespace FineUIPro.Web.SysManage
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCallBackapiurl;
|
||||
|
||||
/// <summary>
|
||||
/// ckIsUseLoaclService 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBox ckIsUseLoaclService;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar5 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user