77 lines
2.1 KiB
C#
77 lines
2.1 KiB
C#
using BLL;
|
|
using FineUIPro.Web.CQMS.WBS;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
|
|
namespace FineUIPro.Web.DigData
|
|
{
|
|
public partial class WBSAnalysis : PageBase
|
|
{
|
|
/// <summary>
|
|
/// 加载页面
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!IsPostBack)
|
|
{
|
|
this.ucTree.IsShowLevel = false;
|
|
BindGrid();
|
|
}
|
|
}
|
|
|
|
protected void changeTree(object sender, EventArgs e)
|
|
{
|
|
this.hdWorkPackageCode.Text = this.ucTree.WorkPackageCode;
|
|
BindGrid();
|
|
}
|
|
|
|
#region 绑定数据Grid1
|
|
/// <summary>
|
|
/// 绑定数据Grid1
|
|
/// </summary>
|
|
private void BindGrid()
|
|
{
|
|
var getData = WBSAnalysisService.getDataDWList(this.hdWorkPackageCode.Text, this.Grid1);
|
|
Grid1.RecordCount = WBSAnalysisService.count;
|
|
Grid1.DataSource = getData;
|
|
Grid1.DataBind();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 改变索引事件
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
|
{
|
|
BindGrid();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 分页下拉选择事件
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
|
|
BindGrid();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 排序
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
|
|
{
|
|
this.BindGrid();
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
} |