代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,22 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Data.SqlClient;
|
||||
using BLL;
|
||||
using System.Data;
|
||||
using BLL;
|
||||
using System;
|
||||
|
||||
namespace FineUIPro.Web.InterFace
|
||||
{
|
||||
public partial class IFLogList : PageBase
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
// BLL.ConstValue.InitConstValueDropDownList(this.drpDataType, "DataType", true);
|
||||
// BLL.ConstValue.InitConstValueDropDownList(this.drpDataType, "DataType", true);
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
@@ -25,12 +18,12 @@ namespace FineUIPro.Web.InterFace
|
||||
|
||||
private void BindGrid()
|
||||
{
|
||||
Model.InterFaceLog interFaceLog=new Model.InterFaceLog();
|
||||
interFaceLog.InterFaceName=txtUserName.Text;
|
||||
var q= BLL.InterFaceLogService.GetInterFaceLogByModle(interFaceLog);
|
||||
Model.InterFaceLog interFaceLog = new Model.InterFaceLog();
|
||||
interFaceLog.InterFaceName = txtUserName.Text;
|
||||
var q = BLL.InterFaceLogService.GetInterFaceLogByModle(interFaceLog);
|
||||
Grid1.RecordCount = InterFaceLogService.count;
|
||||
Grid1.DataSource= InterFaceLogService.getListData(interFaceLog, Grid1);
|
||||
Grid1.DataBind();
|
||||
Grid1.DataSource = InterFaceLogService.getListData(interFaceLog, Grid1);
|
||||
Grid1.DataBind();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
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 InterFaceTask : PageBase
|
||||
{
|
||||
@@ -33,9 +29,9 @@
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
Model.InterFaceTask interFaceTask=new Model.InterFaceTask();
|
||||
Model.InterFaceTask interFaceTask = new Model.InterFaceTask();
|
||||
interFaceTask.InterFaceName = txtInterFaceName.Text;
|
||||
var q= BLL.InterFaceTaskService.GetInterFaceTaskByModle(interFaceTask);
|
||||
var q = BLL.InterFaceTaskService.GetInterFaceTaskByModle(interFaceTask);
|
||||
Grid1.DataSource = q;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
@@ -50,7 +46,7 @@
|
||||
{
|
||||
if (this.CurrUser != null)
|
||||
{
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(null,this.CurrUser.PersonId, BLL.Const.InterFaceTaskMenuId);
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(null, this.CurrUser.PersonId, BLL.Const.InterFaceTaskMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnModify))
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user