20230824新增项目级wbs用户控件

This commit is contained in:
2023-08-24 10:59:39 +08:00
parent 5e775e6635
commit d7992bdc2a
7 changed files with 308 additions and 10 deletions
@@ -10,15 +10,15 @@ namespace FineUIPro.Web.DigData
/// <summary>
/// 主键
/// </summary>
public string WorkPackageCode
public string WorkPackageId
{
get
{
return (string)ViewState["WorkPackageCode"];
return (string)ViewState["WorkPackageId"];
}
set
{
ViewState["WorkPackageCode"] = value;
ViewState["WorkPackageId"] = value;
}
}
@@ -46,15 +46,16 @@ namespace FineUIPro.Web.DigData
{
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
////权限按钮方法
this.ucTree.WorkPackageCode = this.WorkPackageCode;
// this.ucTree.WorkPackageCode = this.WorkPackageCode;
this.ucTree.ProjectId = this.ProjectId;
}
}
protected void changeTree(object sender, EventArgs e)
{
this.WorkPackageCode = this.ucTree.WorkPackageCode;
this.WorkPackageId = this.ucTree.WorkPackageId;
initControlItem();
}
@@ -96,7 +97,7 @@ namespace FineUIPro.Web.DigData
/// </summary>
protected void initControlItem()
{
var getControlItem = from x in Funs.DB.WBS_ControlItemInit where x.WorkPackageCode == this.WorkPackageCode select x;
var getControlItem = from x in Funs.DB.WBS_ControlItemAndCycle where x.WorkPackageId == this.WorkPackageId select x;
cblControlItem.DataValueField = "ControlItemCode";
cblControlItem.DataTextField = "ControlItemContent";
cblControlItem.DataSource = getControlItem;