using System;
using BLL;
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.DataSource = InterFaceLogService.getListData(interFaceLog, Grid1);
Grid1.RecordCount = InterFaceLogService.count;
Grid1.DataBind();
}
#endregion
protected string GetUnitName(object unitId)
{
string unitName = "";
if (unitId != null)
{
unitName = BLL.UnitService.GetUnitNameByUnitId(unitId.ToString());
}
return unitName;
}
///
/// 分页下拉选择
///
///
///
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();
}
///
/// 查询
///
///
///
protected void TextBox_TextChanged(object sender, EventArgs e)
{
this.BindGrid();
}
}
}