20230915wbs数据分析页面框架实现

This commit is contained in:
2023-09-15 10:27:20 +08:00
parent 578bb8bfa7
commit 508d10c3e5
11 changed files with 191 additions and 252 deletions
+10 -35
View File
@@ -19,19 +19,7 @@ namespace FineUIPro.Web.Controls
}
}
public string Level
{
get
{
return (string)ViewState["Level"];
}
set
{
ViewState["Level"] = value;
}
}
public bool IsShowAll
public bool IsShowLevel
{
get;
set;
@@ -48,12 +36,7 @@ namespace FineUIPro.Web.Controls
{
if (!IsPostBack)
{
if (!IsShowAll)
{
this.ckLevel.Items.Remove(this.ckLevel.Items[0]);
this.ckLevel.SelectedIndex = 0;
}
this.Toolbar1.Hidden = !IsShowLevel;
////加载树
SetSubUnitProjectTree(this.trWBS);
@@ -68,7 +51,7 @@ namespace FineUIPro.Web.Controls
/// <param name="e"></param>
protected void trWBS_NodeCommand(object sender, TreeCommandEventArgs e)
{
this.Level = this.ckLevel.SelectedValue;
//this.Level = this.ckLevel.SelectedValue;
if (this.trWBS != null && !string.IsNullOrEmpty(this.trWBS.SelectedNodeID))
{
this.WorkPackageCode = this.trWBS.SelectedNodeID;
@@ -79,26 +62,18 @@ namespace FineUIPro.Web.Controls
}
}
protected void ckLevel_SelectedIndexChanged(object sender, EventArgs e)
{
this.Level = this.ckLevel.SelectedValue;
if (this.trWBS != null && !string.IsNullOrEmpty(this.trWBS.SelectedNodeID))
{
this.WorkPackageCode = this.trWBS.SelectedNodeID;
}
////加载树
SetSubUnitProjectTree(this.trWBS);
if (this.change != null)
{
this.change(this, e);
}
}
public delegate void userEvent(object sender, EventArgs arg);
public event userEvent change;
protected void ckLevel_SelectedIndexChanged(object sender, EventArgs e)
{
////加载树
SetSubUnitProjectTree(this.trWBS);
}
#region -
/// <summary>
/// 绑定分公司 单位-项目树