1、系统菜单调整;

2、系统看板UI调整;
3、事故事件功能
4、其他
This commit is contained in:
2025-12-10 15:58:02 +08:00
parent 3d00bb7a94
commit 6619f1e004
276 changed files with 131707 additions and 50045 deletions
@@ -1,11 +1,13 @@
namespace FineUIPro.Web.InterFace
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using BLL;
namespace FineUIPro.Web.InterFace
{
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 +19,7 @@
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
{
////权限按钮方法
this.GetButtonPower();
btnNew.OnClientClick = Window1.GetShowReference("InterFaceEdit.aspx") + "return false;";
@@ -37,7 +39,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 +56,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 +78,7 @@
{
if (this.CurrUser != null)
{
var buttonList = BLL.CommonService.GetAllButtonList(null,this.CurrUser.UserId, BLL.Const.InterFaceSetMenuId);
var buttonList = BLL.CommonService.GetAllButtonList(string.Empty, this.CurrUser.UserId, BLL.Const.InterFaceSetMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
@@ -97,7 +99,7 @@
}
}
#endregion
#region
/// <summary>
/// 批量删除数据
@@ -111,11 +113,11 @@
protected void btnStart_Click(object sender, EventArgs e)
{
Model.CNPCDB 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 +127,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>