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
@@ -23,6 +23,13 @@ namespace FineUIPro.Web.Controls
}
}
public bool IsShowLevel
{
get;
set;
} = true;
/// <summary>
/// 项目ID
/// </summary>
@@ -48,7 +55,8 @@ namespace FineUIPro.Web.Controls
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
{
this.Toolbar1.Hidden = !IsShowLevel;
////加载树
SetSubUnitProjectTree(this.trWBS);
}
+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>
/// 绑定分公司 单位-项目树
@@ -1,6 +1,6 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectWBSAnalysis.aspx.cs" Inherits="FineUIPro.Web.DigData.ProjectWBSAnalysis" %>
<%@ Register Src="~/Controls/WBSControl.ascx" TagName="WBSControl" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/ProjectWBSControl.ascx" TagName="WBSControl" TagPrefix="uc1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
@@ -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();
}
@@ -66,7 +66,7 @@ namespace FineUIPro.Web.DigData
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Web.Controls.WBSControl ucTree;
protected global::FineUIPro.Web.Controls.ProjectWBSControl ucTree;
/// <summary>
/// hdWorkPackageCode 控件。
@@ -18,8 +18,7 @@ namespace FineUIPro.Web.DigData
{
if (!IsPostBack)
{
this.ucTree.IsShowAll = false;
this.ucTree.Level= this.hdLevel.Text = "0";
this.ucTree.IsShowLevel = false;
BindGrid();
}
}
@@ -27,7 +26,6 @@ namespace FineUIPro.Web.DigData
protected void changeTree(object sender, EventArgs e)
{
this.hdWorkPackageCode.Text = this.ucTree.WorkPackageCode;
this.hdLevel.Text = this.ucTree.Level;
BindGrid();
}
@@ -37,7 +35,7 @@ namespace FineUIPro.Web.DigData
/// </summary>
private void BindGrid()
{
var getData = WBSAnalysisService.getDataDWList(this.hdLevel.Text,this.hdWorkPackageCode.Text, this.Grid1);
var getData = WBSAnalysisService.getDataDWList(this.hdWorkPackageCode.Text, this.Grid1);
Grid1.RecordCount = WBSAnalysisService.count;
Grid1.DataSource = getData;
Grid1.DataBind();
-171
View File
@@ -1,171 +0,0 @@
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 (TreeNode )
在 FineUIPro.TreeCommandEventArgs..ctor(TreeNode node, String commandName, String commandArgument)
在 (TreeNode , String , String )
在 FineUIPro.Tree.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:09/07/2023 21:53:15
出错文件:http://localhost:6422/DigData/WBSAnalysis.aspx
IP地址:::1
操作人员:JT
出错时间:09/07/2023 21:53:15
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 FineUIPro.Web.CQMS.Check.EditCheckMonth.Page_Load(Object sender, EventArgs e) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\CQMS\Check\EditCheckMonth.aspx.cs:行号 39
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:09/11/2023 11:02:10
出错文件:http://localhost:6422/CQMS/Check/EditCheckMonth.aspx?months=2023-09-01
IP地址:::1
出错时间:09/11/2023 11:02:10
错误信息开始=====>
错误类型:HttpRequestValidationException
错误信息:从客户端(Panel1$Grid1$ctl04$txtUnit="m&#179;")中检测到有潜在危险的 Request.Form 值。
错误堆栈:
在 System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
在 System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection)
在 System.Web.HttpRequest.get_Form()
在 System.Web.HttpRequest.get_HasForm()
在 System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
在 System.Web.UI.Page.DeterminePostBackMode()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest()
在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
在 System.Web.UI.Page.ProcessRequest(HttpContext context)
在 ASP.jdgl_check_planset_aspx.ProcessRequest(HttpContext context)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
出错时间:09/12/2023 09:47:37
出错文件:http://localhost:6422/JDGL/Check/PlanSet.aspx
IP地址:::1
操作人员:JT
出错时间:09/12/2023 09:47:37
错误信息开始=====>
错误类型:HttpRequestValidationException
错误信息:从客户端(Panel1$Grid1$ctl04$txtUnit="m&#179;")中检测到有潜在危险的 Request.Form 值。
错误堆栈:
在 System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
在 System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection)
在 System.Web.HttpRequest.get_Form()
在 System.Web.HttpRequest.get_HasForm()
在 System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
在 System.Web.UI.Page.DeterminePostBackMode()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest()
在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
在 System.Web.UI.Page.ProcessRequest(HttpContext context)
在 ASP.jdgl_check_planset_aspx.ProcessRequest(HttpContext context)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
出错时间:09/12/2023 09:47:40
出错文件:http://localhost:6422/JDGL/Check/PlanSet.aspx
IP地址:::1
操作人员:JT
出错时间:09/12/2023 09:47:40
错误信息开始=====>
错误类型:HttpRequestValidationException
错误信息:从客户端(Panel1$Grid1$ctl04$txtUnit="m&#179;")中检测到有潜在危险的 Request.Form 值。
错误堆栈:
在 System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
在 System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection)
在 System.Web.HttpRequest.get_Form()
在 System.Web.HttpRequest.get_HasForm()
在 System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
在 System.Web.UI.Page.DeterminePostBackMode()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest()
在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
在 System.Web.UI.Page.ProcessRequest(HttpContext context)
在 ASP.jdgl_check_planset_aspx.ProcessRequest(HttpContext context)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
出错时间:09/12/2023 09:47:42
出错文件:http://localhost:6422/JDGL/Check/PlanSet.aspx
IP地址:::1
操作人员:JT
出错时间:09/12/2023 09:47:42
错误信息开始=====>
错误类型:HttpRequestValidationException
错误信息:从客户端(Panel1$Grid1$ctl04$txtUnit="m&#179;")中检测到有潜在危险的 Request.Form 值。
错误堆栈:
在 System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
在 System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection)
在 System.Web.HttpRequest.get_Form()
在 System.Web.HttpRequest.get_HasForm()
在 System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
在 System.Web.UI.Page.DeterminePostBackMode()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest()
在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
在 System.Web.UI.Page.ProcessRequest(HttpContext context)
在 ASP.jdgl_check_planset_aspx.ProcessRequest(HttpContext context)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
出错时间:09/12/2023 09:48:38
出错文件:http://localhost:6422/JDGL/Check/PlanSet.aspx
IP地址:::1
操作人员:JT
出错时间:09/12/2023 09:48:38
错误信息开始=====>
错误类型:HttpRequestValidationException
错误信息:从客户端(Panel1$Grid1$ctl04$txtUnit="m&#179;")中检测到有潜在危险的 Request.Form 值。
错误堆栈:
在 System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
在 System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection)
在 System.Web.HttpRequest.get_Form()
在 System.Web.HttpRequest.get_HasForm()
在 System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
在 System.Web.UI.Page.DeterminePostBackMode()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest()
在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
在 System.Web.UI.Page.ProcessRequest(HttpContext context)
在 ASP.jdgl_check_planset_aspx.ProcessRequest(HttpContext context)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
出错时间:09/12/2023 09:48:39
出错文件:http://localhost:6422/JDGL/Check/PlanSet.aspx
IP地址:::1
操作人员:JT
出错时间:09/12/2023 09:48:39
+1 -1
View File
@@ -14225,7 +14225,7 @@
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>0</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:6422/</IISUrl>
<IISUrl>http://localhost:9243/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>