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

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,7 @@
using System;
using System.Collections.Generic;
using BLL;
using System;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
namespace FineUIPro.Web.InterFace
{
@@ -42,9 +38,9 @@ namespace FineUIPro.Web.InterFace
this.GetButtonPower();
this.InterFaceSetId = Request.Params["InterFaceSetId"];
BLL.ConstValue.InitConstValueDropDownList(this.drpIsOpen, ConstValue.Group_0001, false);
BLL.InterFaceSetService.InitReqMethodDropDownList(this.DrpUrlReqMethod, false);
BLL.InterFaceSetService.InitReqMethodDropDownList(this.DrpForUrlReqMethod, false);
BLL.InterFaceSetService.InitReqMethodDropDownList(this.DrpCallBackUrlReqMethod, false);
BLL.InterFaceSetService.InitReqMethodDropDownList(this.DrpUrlReqMethod, false);
BLL.InterFaceSetService.InitReqMethodDropDownList(this.DrpForUrlReqMethod, false);
BLL.InterFaceSetService.InitReqMethodDropDownList(this.DrpCallBackUrlReqMethod, false);
this.drpUnit.DataTextField = "UnitName";
this.drpUnit.DataValueField = "UnitId";
this.drpUnit.DataSource = BLL.UnitService.GetUnitDropDownList();
@@ -76,8 +72,8 @@ namespace FineUIPro.Web.InterFace
var FaceSet = BLL.InterFaceSetService.GetInterFaceSetById(this.InterFaceSetId);
if (FaceSet != null)
{
if (!string.IsNullOrEmpty(FaceSet.UnitId))
{
this.drpUnit.SelectedValue = FaceSet.UnitId;
@@ -85,13 +81,13 @@ namespace FineUIPro.Web.InterFace
this.txtFaceName.Text = FaceSet.InterFaceName;
this.txtFaceUrl.Text = FaceSet.InterFaceUrl;
this.txtFaceForUrl.Text = FaceSet.InterFaceForUrl;
this.txtCallBackUrl.Text=FaceSet.InterFaceCallBackUrl;
this.IsCallBack.Checked =(bool) FaceSet.IsCallBack;
this.txtCallBackUrl.Text = FaceSet.InterFaceCallBackUrl;
this.IsCallBack.Checked = (bool)FaceSet.IsCallBack;
if (!string.IsNullOrEmpty(FaceSet.AuthUnitIds))
{
this.drpAuthUnit.Values = FaceSet.AuthUnitIds.Split(',');
}
this.txtRemarks.Text = FaceSet.TxtRemarks;
if (FaceSet.IsOpen.HasValue)
{
@@ -145,7 +141,7 @@ namespace FineUIPro.Web.InterFace
if (item != "")
{
AuthUnitName += item + ",";
}
}
AuthUnitId = AuthUnitId.Substring(0, AuthUnitId.LastIndexOf(","));
@@ -166,9 +162,9 @@ namespace FineUIPro.Web.InterFace
UnitId = UnitId,
IsCallBack = IsCallBack.Checked,
InterFaceCallBackUrl = txtCallBackUrl.Text,
UrlReqMethod=DrpUrlReqMethod.SelectedValue.Trim(),
ForUrlReqMethod=DrpForUrlReqMethod.SelectedValue.Trim(),
CallBackUrlReqMethod=DrpCallBackUrlReqMethod.SelectedValue.Trim()
UrlReqMethod = DrpUrlReqMethod.SelectedValue.Trim(),
ForUrlReqMethod = DrpForUrlReqMethod.SelectedValue.Trim(),
CallBackUrlReqMethod = DrpCallBackUrlReqMethod.SelectedValue.Trim()
};
if (string.IsNullOrEmpty(this.InterFaceSetId))
@@ -183,7 +179,7 @@ namespace FineUIPro.Web.InterFace
BLL.InterFaceSetService.UpdateInterFaceSet(newSet);
BLL.LogService.AddLog(this.CurrUser.PersonId, "修改接口设置" + this.txtFaceName.Text.Trim());
}
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
@@ -195,7 +191,7 @@ namespace FineUIPro.Web.InterFace
/// <returns></returns>
private void GetButtonPower()
{
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.BtnSave))
@@ -208,7 +204,7 @@ namespace FineUIPro.Web.InterFace
protected void IsCallBack_CheckedChanged(object sender, CheckedEventArgs e)
{
if (IsCallBack.Checked==true)
if (IsCallBack.Checked == true)
{
this.txtCallBackUrl.Hidden = false;
}