2023-08-04
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
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;
|
||||
|
||||
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);
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
#region BindGrid
|
||||
|
||||
private void BindGrid()
|
||||
{
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
protected string GetUnitName(object unitId)
|
||||
{
|
||||
string unitName = "";
|
||||
if (unitId != null)
|
||||
{
|
||||
unitName = BLL.UnitService.GetUnitNameByUnitId(unitId.ToString());
|
||||
}
|
||||
return unitName;
|
||||
}
|
||||
/// <summary>
|
||||
/// 分页下拉选择
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
Grid1.PageIndex = e.NewPageIndex;
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
|
||||
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
|
||||
{
|
||||
Grid1.SortDirection = e.SortDirection;
|
||||
Grid1.SortField = e.SortField;
|
||||
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user