This commit is contained in:
2023-09-07 21:54:58 +08:00
parent b79459a50f
commit f7c72e318c
23 changed files with 920 additions and 104 deletions
+42 -6
View File
@@ -19,6 +19,25 @@ namespace FineUIPro.Web.Controls
}
}
public string Level
{
get
{
return (string)ViewState["Level"];
}
set
{
ViewState["Level"] = value;
}
}
public bool IsShowAll
{
get;
set;
} = true;
#region
/// <summary>
/// 加载页面
@@ -29,8 +48,15 @@ namespace FineUIPro.Web.Controls
{
if (!IsPostBack)
{
if (!IsShowAll)
{
this.ckLevel.Items.Remove(this.ckLevel.Items[0]);
this.ckLevel.SelectedIndex = 0;
}
////加载树
SetSubUnitProjectTree(this.trWBS);
}
}
#endregion
@@ -42,6 +68,7 @@ namespace FineUIPro.Web.Controls
/// <param name="e"></param>
protected void trWBS_NodeCommand(object sender, TreeCommandEventArgs e)
{
this.Level = this.ckLevel.SelectedValue;
if (this.trWBS != null && !string.IsNullOrEmpty(this.trWBS.SelectedNodeID))
{
this.WorkPackageCode = this.trWBS.SelectedNodeID;
@@ -52,6 +79,21 @@ 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;
@@ -153,11 +195,5 @@ namespace FineUIPro.Web.Controls
}
}
#endregion
protected void ckState_SelectedIndexChanged(object sender, EventArgs e)
{
////加载树
SetSubUnitProjectTree(this.trWBS);
}
}
}