20230915wbs数据分析页面框架实现
This commit is contained in:
@@ -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>
|
||||
/// 绑定分公司 单位-项目树
|
||||
|
||||
Reference in New Issue
Block a user