代码无效引用清理,试压包资料界面看板修改

This commit is contained in:
2025-10-10 14:33:21 +08:00
parent 87fb529521
commit 55b798135c
933 changed files with 5897 additions and 7541 deletions
@@ -1,11 +1,8 @@
using BLL;
using Model;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.InterFace
@@ -25,7 +22,8 @@ namespace FineUIPro.Web.InterFace
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack) {
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
InterFaceTaskId = Request.Params["InterFaceTaskId"];
InterFaceSetService.InitInterFaceDropDownList(DropInterFaceSet, false);
@@ -52,15 +50,15 @@ namespace FineUIPro.Web.InterFace
if (!string.IsNullOrEmpty(InterFaceTaskId))
{
var model = BLL.InterFaceTaskService.GetInterFaceTaskById(InterFaceTaskId);
txtFrequency.Text= model.Frequency;
txtInterFaceName.Text= model.InterFaceName;
txtFrequency.Text = model.Frequency;
txtInterFaceName.Text = model.InterFaceName;
IsEnable.Checked = (bool)model.Enable;
var a = model.InterFaceSetLists.Split(',');
var a = model.InterFaceSetLists.Split(',');
var q = (from x in a select new { id = Guid.NewGuid().ToString(), InterFaceSetId = x.ToString() }).ToList();
Grid1.DataSource= q;
Grid1.DataBind();
Grid1.DataSource = q;
Grid1.DataBind();
}
}
protected void btnSave_Click(object sender, EventArgs e)
@@ -68,7 +66,7 @@ namespace FineUIPro.Web.InterFace
List<string> list = new List<string>();
JArray EditorArr = Grid1.GetMergedData();
if (EditorArr.Count > 0)
{
{
for (int i = 0; i < EditorArr.Count; i++)
{
JObject objects = (JObject)EditorArr[i];
@@ -76,20 +74,20 @@ namespace FineUIPro.Web.InterFace
list.Add(objects["values"]["InterFaceSetId"].ToString());
}
}
if (!string.IsNullOrEmpty(InterFaceTaskId))
{
var model=BLL.InterFaceTaskService.GetInterFaceTaskById(InterFaceTaskId);
model.InterFaceName=txtInterFaceName.Text;
var model = BLL.InterFaceTaskService.GetInterFaceTaskById(InterFaceTaskId);
model.InterFaceName = txtInterFaceName.Text;
model.Frequency = txtFrequency.Text;
model.InterFaceSetLists=string .Join(",", list);
model.InterFaceSetLists = string.Join(",", list);
model.CreateTime = DateTime.Now;
model.Enable = IsEnable.Checked;
InterFaceTaskService.UpdateInterFaceTask(model);
}
else
{
Model.InterFaceTask model =new Model.InterFaceTask();
Model.InterFaceTask model = new Model.InterFaceTask();
model.InterFaceTaskId = SQLHelper.GetNewID(typeof(Model.InterFaceTask));
InterFaceTaskId = model.InterFaceTaskId;
model.InterFaceName = txtInterFaceName.Text;
@@ -102,7 +100,7 @@ namespace FineUIPro.Web.InterFace
QuartzServices.SyncISchedulerById(InterFaceTaskId);
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
private string GetDeleteScript()
{