20230915wbs数据分析页面框架实现
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user