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

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,11 @@
namespace FineUIPro.Web.InterFace
{
using BLL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using BLL;
public partial class InterFaceSet : PageBase
{
@@ -17,7 +17,7 @@
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
{
////权限按钮方法
this.GetButtonPower();
btnNew.OnClientClick = Window1.GetShowReference("InterFaceEdit.aspx") + "return false;";
@@ -37,7 +37,7 @@
{
string strSql = "SELECT InterFaceSetId,InterFaceName,InterFaceForUrl,InterFaceUrl,Unit.UnitName as UnitId,AuthUnitName,IsOpen,ValidPeriod,TxtRemarks FROM InterFaceSet"
+ @" AS FaceSet LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = FaceSet.UnitId where 1=1 ";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(this.txtUserName.Text.Trim()))
{
@@ -54,13 +54,13 @@
strSql += " AND IsOpen = @IsOpen";
listStr.Add(new SqlParameter("@IsOpen", this.cbRoleCategory.Items[0].Selected));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
// 2.获取当前分页数据
//var table = this.GetPagedDataTable(Grid1, tb1);
Grid1.RecordCount = tb.Rows.Count;
Grid1.RecordCount = tb.Rows.Count;
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
@@ -76,7 +76,7 @@
{
if (this.CurrUser != null)
{
var buttonList = BLL.CommonService.GetAllButtonList(null,this.CurrUser.PersonId, BLL.Const.InterFaceSetMenuId);
var buttonList = BLL.CommonService.GetAllButtonList(null, this.CurrUser.PersonId, BLL.Const.InterFaceSetMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
@@ -97,7 +97,7 @@
}
}
#endregion
#region
/// <summary>
/// 批量删除数据
@@ -111,11 +111,11 @@
protected void btnStart_Click(object sender, EventArgs e)
{
Model.SGGLDB db = Funs.DB;
List<Model.InterFaceSet> FaceList = db.InterFaceSet.Where(p=>p.IsOpen==true).ToList();
foreach(var item in FaceList)
List<Model.InterFaceSet> FaceList = db.InterFaceSet.Where(p => p.IsOpen == true).ToList();
foreach (var item in FaceList)
{
// if (!string.IsNullOrEmpty(item.InterFaceUrl))
// APIServiceTimer.GetApiData(item.InterFaceSetId, item.InterFaceUrl);
// if (!string.IsNullOrEmpty(item.InterFaceUrl))
// APIServiceTimer.GetApiData(item.InterFaceSetId, item.InterFaceUrl);
}
}
@@ -125,8 +125,8 @@
List<Model.InterFaceSet> FaceList = db.InterFaceSet.Where(p => p.IsOpen == true).ToList();
foreach (var item in FaceList)
{
// if (!string.IsNullOrEmpty(item.InterFaceForUrl))
// APIServiceTimer.UpApiData(item.InterFaceSetId, item.InterFaceForUrl, item.IsReqPost);
// if (!string.IsNullOrEmpty(item.InterFaceForUrl))
// APIServiceTimer.UpApiData(item.InterFaceSetId, item.InterFaceForUrl, item.IsReqPost);
}
}
/// <summary>