20230915wbs数据分析页面框架实现
This commit is contained in:
@@ -8,7 +8,22 @@ using System.Linq;
|
||||
namespace FineUIPro.Web.DigData
|
||||
{
|
||||
public partial class ProjectWBSAnalysis : PageBase
|
||||
{
|
||||
{
|
||||
/// <summary>
|
||||
/// 项目ID
|
||||
/// </summary>
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
@@ -17,17 +32,17 @@ namespace FineUIPro.Web.DigData
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ucTree.IsShowAll = false;
|
||||
this.ucTree.Level= this.hdLevel.Text = "0";
|
||||
{
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
this.ucTree.ProjectId = this.ProjectId;
|
||||
this.ucTree.IsShowLevel = false;
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
protected void changeTree(object sender, EventArgs e)
|
||||
{
|
||||
this.hdWorkPackageCode.Text = this.ucTree.WorkPackageCode;
|
||||
this.hdLevel.Text = this.ucTree.Level;
|
||||
this.hdWorkPackageCode.Text = this.ucTree.WorkPackageId;
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
@@ -37,8 +52,8 @@ namespace FineUIPro.Web.DigData
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
var getData = WBSAnalysisService.getDataDWList(this.hdLevel.Text,this.hdWorkPackageCode.Text, this.Grid1);
|
||||
Grid1.RecordCount = WBSAnalysisService.count;
|
||||
var getData = ProjectWBSAnalysisService.getDataDWList(this.ProjectId, this.hdWorkPackageCode.Text, this.Grid1);
|
||||
Grid1.RecordCount = ProjectWBSAnalysisService.count;
|
||||
Grid1.DataSource = getData;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user