公司级树补充
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectControlPoint.aspx.cs" Inherits="FineUIPro.Web.CQMS.WBS.ProjectControlPoint" %>
|
||||
|
||||
<%@ Register Src="~/Controls/UnitProjectTControl.ascx" TagName="UnitProjectTControl" TagPrefix="uc1" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>现场控制点裁剪</title>
|
||||
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
<style>
|
||||
@@ -24,7 +26,17 @@
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" CssClass="blockpanel" Margin="5px" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true" EnableCollapse="true" Layout="Fit"
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="380" Title="公司-项目" TitleToolTip="公司-项目" ShowBorder="true"
|
||||
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="Fit">
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true" AutoScroll="true"
|
||||
BodyPadding="0px">
|
||||
<uc1:UnitProjectTControl ID="ucTree" runat="server" Onchange="changeTree" />
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panelLeftRegion2" RegionPosition="Left" RegionSplit="true" EnableCollapse="true" Layout="Fit"
|
||||
RegionPercent="20%" Title="现场控制点裁剪" TitleToolTip="现场控制点裁剪" ShowBorder="true" ShowHeader="true"
|
||||
BodyPadding="10px">
|
||||
<Items>
|
||||
@@ -146,7 +158,7 @@
|
||||
Target="Self" EnableResize="false" runat="server" OnClose="Window3_Close" IsModal="true"
|
||||
Width="1000px" Height="600px">
|
||||
</f:Window>
|
||||
<f:Window ID="Windowtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
<f:Window ID="Windowtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
@@ -157,9 +169,9 @@
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true" Hidden="true" Icon="Pencil"
|
||||
runat="server" Text="修改">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuCopy" OnClick="btnMenuCopy_Click" EnablePostBack="true" Hidden="true" Icon="DatabaseCopy"
|
||||
runat="server" Text="拷贝" >
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuCopy" OnClick="btnMenuCopy_Click" EnablePostBack="true" Hidden="true" Icon="DatabaseCopy"
|
||||
runat="server" Text="拷贝">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true" Hidden="true" Icon="Delete"
|
||||
ConfirmText="确认删除选中项?" ConfirmTarget="Top" runat="server" Text="删除">
|
||||
</f:MenuButton>
|
||||
|
||||
@@ -15,6 +15,22 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
public partial class ProjectControlPoint : PageBase
|
||||
{
|
||||
#region 项目主键
|
||||
/// <summary>
|
||||
/// 项目主键
|
||||
/// </summary>
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// 被选择项列表
|
||||
/// </summary>
|
||||
@@ -55,9 +71,23 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
}
|
||||
|
||||
this.ucTree.UnitId = this.CurrUser.UnitId;
|
||||
this.ucTree.ProjectId = this.ProjectId;
|
||||
if (!string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
this.panelLeftRegion.Hidden = true;
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
}
|
||||
this.SelectedList = new List<string>();
|
||||
this.NoSelectedList = new List<string>();
|
||||
GetButtonPower();
|
||||
//GetButtonPower();
|
||||
InitTreeMenu();
|
||||
this.Grid1.Columns[2].Hidden = false;
|
||||
this.Grid1.Columns[3].Hidden = true;
|
||||
@@ -75,17 +105,37 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
|
||||
#region 加载树
|
||||
/// <summary>
|
||||
/// 公司级树加载
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void changeTree(object sender, EventArgs e)
|
||||
{
|
||||
this.ProjectId = this.ucTree.ProjectId;
|
||||
|
||||
if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
btnNew.Hidden = true;
|
||||
}
|
||||
this.GetButtonPower();
|
||||
this.InitTreeMenu();
|
||||
}
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
/// </summary>
|
||||
private void InitTreeMenu()
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.trWBS.Nodes.Clear();
|
||||
this.trWBS.ShowBorder = false;
|
||||
this.trWBS.ShowHeader = false;
|
||||
this.trWBS.EnableIcons = true;
|
||||
this.trWBS.AutoScroll = true;
|
||||
this.trWBS.EnableSingleClickExpand = true;
|
||||
var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId orderby x.UnitWorkCode select x;
|
||||
var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.ProjectId orderby x.UnitWorkCode select x;
|
||||
foreach (var q in unitWorks)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
@@ -202,7 +252,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
cNProfessionalId = e.NodeID.Split('|')[1];
|
||||
}
|
||||
var divisions = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.CNProfessionalId == cNProfessionalId && x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
where x.CNProfessionalId == cNProfessionalId && x.ProjectId == this.ProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
foreach (var q in divisions)
|
||||
@@ -221,7 +271,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode.Checked = true;
|
||||
}
|
||||
var list = (from x in Funs.DB.WBS_DivisionProject
|
||||
where x.SuperDivisionId == q.DivisionProjectId && x.ProjectId == this.CurrUser.LoginProjectId
|
||||
where x.SuperDivisionId == q.DivisionProjectId && x.ProjectId == this.ProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Count > 0)
|
||||
@@ -237,7 +287,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
else if (e.Node.CommandName == "DivisionProject") //展开分部节点
|
||||
{
|
||||
var childDivisions = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.SuperDivisionId == e.Node.NodeID && x.ProjectId == this.CurrUser.LoginProjectId
|
||||
where x.SuperDivisionId == e.Node.NodeID && x.ProjectId == this.ProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
foreach (var q in childDivisions)
|
||||
@@ -256,7 +306,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode.Checked = true;
|
||||
}
|
||||
var list = (from x in Funs.DB.WBS_DivisionProject
|
||||
where x.SuperDivisionId == q.DivisionProjectId && x.ProjectId == this.CurrUser.LoginProjectId
|
||||
where x.SuperDivisionId == q.DivisionProjectId && x.ProjectId == this.ProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Count > 0)
|
||||
@@ -279,7 +329,11 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
/// <param name="e"></param>
|
||||
protected void trWBS_NodeCheck(object sender, FineUIPro.TreeCheckEventArgs e)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId, BLL.Const.BtnSave))
|
||||
if (string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId, BLL.Const.BtnSave))
|
||||
{
|
||||
Model.WBS_DivisionProject divisionProject = BLL.DivisionProjectService.GetDivisionProjectById(e.NodeID);
|
||||
divisionProject.IsSelected = e.Checked;
|
||||
@@ -425,7 +479,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
if (this.trWBS.SelectedNode != null)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId, BLL.Const.BtnModify))
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (this.trWBS.SelectedNode.CommandName != "ProjectType" && this.trWBS.SelectedNode.CommandName != "UnitWork" && this.trWBS.SelectedNode.CommandName != "CNProfessional") //非工程类型和单位工程、专业节点可以修改
|
||||
{
|
||||
@@ -483,7 +537,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
if (this.trWBS.SelectedNode != null)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId, BLL.Const.BtnAdd))
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId, BLL.Const.BtnAdd))
|
||||
{
|
||||
if (this.trWBS.SelectedNode.CommandName != "ProjectType" && this.trWBS.SelectedNode.CommandName != "UnitWork") //非工程类型和单位工程节点可以增加
|
||||
{
|
||||
@@ -517,12 +571,12 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
if (this.trWBS.SelectedNode != null)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId, BLL.Const.BtnDelete))
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId, BLL.Const.BtnDelete))
|
||||
{
|
||||
if (this.trWBS.SelectedNode.CommandName != "ProjectType" && this.trWBS.SelectedNode.CommandName != "UnitWork" && this.trWBS.SelectedNode.CommandName != "CNProfessional") //非工程类型和单位工程、专业节点可以删除
|
||||
{
|
||||
string id = this.trWBS.SelectedNodeID;
|
||||
//var workPackage = Funs.DB.WBS_WorkPackage.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.InitWorkPackageCode == this.trWBS.SelectedNodeID);
|
||||
//var workPackage = Funs.DB.WBS_WorkPackage.FirstOrDefault(x => x.ProjectId == this.ProjectId && x.InitWorkPackageCode == this.trWBS.SelectedNodeID);
|
||||
//if (workPackage != null)
|
||||
//{
|
||||
// ShowNotify("WBS定制中已使用该数据,无法删除!", MessageBoxIcon.Warning);
|
||||
@@ -605,8 +659,8 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
}
|
||||
BLL.DivisionProjectService.DeleteDivisionProject(divisionProjectId);
|
||||
}
|
||||
// Project_CQMSDataService.StatisticalData(this.CurrUser.LoginProjectId, Project_CQMSDataService.CQMSDateType.QualityControlPoint);
|
||||
// Project_CQMSDataService.StatisticalData(this.CurrUser.LoginProjectId, Project_CQMSDataService.CQMSDateType.ProjectDivision);
|
||||
// Project_CQMSDataService.StatisticalData(this.ProjectId, Project_CQMSDataService.CQMSDateType.QualityControlPoint);
|
||||
// Project_CQMSDataService.StatisticalData(this.ProjectId, Project_CQMSDataService.CQMSDateType.ProjectDivision);
|
||||
}
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, id, id, BLL.Const.ProjectControlPointMenuId, "删除分部或子分部工程及其下所有内容!");
|
||||
}
|
||||
@@ -710,7 +764,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
//var controlItemAndCycle = Funs.DB.WBS_ControlItemAndCycle.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.InitControlItemCode == Grid1.SelectedRowID);
|
||||
//var controlItemAndCycle = Funs.DB.WBS_ControlItemAndCycle.FirstOrDefault(x => x.ProjectId == this.ProjectId && x.InitControlItemCode == Grid1.SelectedRowID);
|
||||
//if (controlItemAndCycle != null)
|
||||
//{
|
||||
// ShowNotify("WBS定制中已使用该数据,无法删除!", MessageBoxIcon.Warning);
|
||||
@@ -718,8 +772,8 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
//else
|
||||
//{
|
||||
BLL.BreakdownProjectService.DeleteBreakdown(Grid1.SelectedRowID);
|
||||
//Project_CQMSDataService.StatisticalData(this.CurrUser.LoginProjectId, Project_CQMSDataService.CQMSDateType.QualityControlPoint);
|
||||
//Project_CQMSDataService.StatisticalData(this.CurrUser.LoginProjectId, Project_CQMSDataService.CQMSDateType.ProjectDivision);
|
||||
//Project_CQMSDataService.StatisticalData(this.ProjectId, Project_CQMSDataService.CQMSDateType.QualityControlPoint);
|
||||
//Project_CQMSDataService.StatisticalData(this.ProjectId, Project_CQMSDataService.CQMSDateType.ProjectDivision);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, Grid1.SelectedRowID, Grid1.SelectedRowID, BLL.Const.ProjectControlPointMenuId, "删除分项");
|
||||
Grid1.DataBind();
|
||||
BindGrid();
|
||||
@@ -773,12 +827,16 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
string strSql = @"SELECT BreakdownProjectId,BreakdownCode,BreakdownName,Basis,CheckPoints,RecordAndCode,Class,FenBao,WuHuan,JianLi,YeZhu,Remark,ModelURL,CheckAcceptType"
|
||||
+ @" FROM WBS_BreakdownProject ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
strSql += " where DivisionProjectId = @DivisionProjectId and ProjectId=@ProjectId";
|
||||
listStr.Add(new SqlParameter("@DivisionProjectId", this.trWBS.SelectedNodeID));
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
@@ -868,7 +926,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
if (trWBS.Nodes[i].Nodes[j].NodeID.Split('|')[1] == "1") //建筑工程
|
||||
{
|
||||
var divisionsCV = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.CNProfessionalId == BLL.Const.CNProfessionalCVId && x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
where x.CNProfessionalId == BLL.Const.CNProfessionalCVId && x.ProjectId == this.ProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (divisionsCV.Count > 0) //建筑工程下存在土建内容
|
||||
@@ -882,7 +940,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
trWBS.Nodes[i].Nodes[j].Nodes.Add(newNode3);
|
||||
newNode3.Expanded = true;
|
||||
var divisions = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.CNProfessionalId == BLL.Const.CNProfessionalCVId && x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
where x.CNProfessionalId == BLL.Const.CNProfessionalCVId && x.ProjectId == this.ProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
foreach (var q in divisions)
|
||||
@@ -899,7 +957,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
}
|
||||
newNode3.Nodes.Add(newNode4);
|
||||
var division1s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == q.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == q.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(q.DivisionProjectId))
|
||||
@@ -915,7 +973,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode5.EnableClickEvent = true;
|
||||
newNode4.Nodes.Add(newNode5);
|
||||
var division2s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == division1.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == division1.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(division1.DivisionProjectId))
|
||||
@@ -931,7 +989,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode6.EnableClickEvent = true;
|
||||
newNode5.Nodes.Add(newNode6);
|
||||
var division3s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == division2.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == division2.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(division2.DivisionProjectId))
|
||||
@@ -977,7 +1035,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
else
|
||||
{
|
||||
var divisions = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.CNProfessionalId == BLL.Const.CNProfessionalConstructId && x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
where x.CNProfessionalId == BLL.Const.CNProfessionalConstructId && x.ProjectId == this.ProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
foreach (var q in divisions)
|
||||
@@ -994,7 +1052,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode4.Checked = true;
|
||||
}
|
||||
var division1s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == q.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == q.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(q.DivisionProjectId))
|
||||
@@ -1010,7 +1068,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode5.EnableClickEvent = true;
|
||||
newNode4.Nodes.Add(newNode5);
|
||||
var division2s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == division1.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == division1.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(division1.DivisionProjectId))
|
||||
@@ -1026,7 +1084,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode6.EnableClickEvent = true;
|
||||
newNode5.Nodes.Add(newNode6);
|
||||
var division3s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == division2.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == division2.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(division2.DivisionProjectId))
|
||||
@@ -1086,7 +1144,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
newCNProfessionalNode.Expanded = true;
|
||||
var divisions = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.CNProfessionalId == c.CNProfessionalId && x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
where x.CNProfessionalId == c.CNProfessionalId && x.ProjectId == this.ProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
foreach (var q in divisions)
|
||||
@@ -1103,7 +1161,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode4.Checked = true;
|
||||
}
|
||||
var division1s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == q.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == q.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(q.DivisionProjectId))
|
||||
@@ -1119,7 +1177,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode5.EnableClickEvent = true;
|
||||
newNode4.Nodes.Add(newNode5);
|
||||
var division2s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == division1.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == division1.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(division1.DivisionProjectId))
|
||||
@@ -1135,7 +1193,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode6.EnableClickEvent = true;
|
||||
newNode5.Nodes.Add(newNode6);
|
||||
var division3s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == division2.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == division2.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(division2.DivisionProjectId))
|
||||
@@ -1305,7 +1363,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
return;
|
||||
}
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId);
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
|
||||
+62
-33
@@ -7,11 +7,13 @@
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.CQMS.WBS {
|
||||
|
||||
|
||||
public partial class ProjectControlPoint {
|
||||
|
||||
namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
|
||||
|
||||
public partial class ProjectControlPoint
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
@@ -47,7 +49,34 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// ucTree 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree;
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion2;
|
||||
|
||||
/// <summary>
|
||||
/// trWBS 控件。
|
||||
/// </summary>
|
||||
@@ -56,7 +85,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trWBS;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdSelectId 控件。
|
||||
/// </summary>
|
||||
@@ -65,7 +94,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdSelectId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdUnitWorkId 控件。
|
||||
/// </summary>
|
||||
@@ -74,7 +103,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdUnitWorkId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
@@ -83,7 +112,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
@@ -92,7 +121,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar4 控件。
|
||||
/// </summary>
|
||||
@@ -101,7 +130,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar4;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbHd 控件。
|
||||
/// </summary>
|
||||
@@ -110,7 +139,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbHd;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
@@ -119,7 +148,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
@@ -128,7 +157,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbCheckAcceptType 控件。
|
||||
/// </summary>
|
||||
@@ -137,7 +166,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lbCheckAcceptType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator2 控件。
|
||||
/// </summary>
|
||||
@@ -146,7 +175,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText2 控件。
|
||||
/// </summary>
|
||||
@@ -155,7 +184,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
@@ -164,7 +193,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
@@ -173,7 +202,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window2 控件。
|
||||
/// </summary>
|
||||
@@ -182,7 +211,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window3 控件。
|
||||
/// </summary>
|
||||
@@ -191,7 +220,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window3;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Windowtt 控件。
|
||||
/// </summary>
|
||||
@@ -200,7 +229,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Windowtt;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
@@ -209,7 +238,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuAdd 控件。
|
||||
/// </summary>
|
||||
@@ -218,7 +247,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuAdd;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
@@ -227,7 +256,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuCopy 控件。
|
||||
/// </summary>
|
||||
@@ -236,7 +265,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuCopy;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
@@ -245,7 +274,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Menu2 控件。
|
||||
/// </summary>
|
||||
@@ -254,7 +283,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuModify 控件。
|
||||
/// </summary>
|
||||
@@ -263,7 +292,7 @@ namespace FineUIPro.Web.CQMS.WBS {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuModify;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDel 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectControlPointAuditRecord.aspx.cs" Inherits="FineUIPro.Web.CQMS.WBS.ProjectControlPointAuditRecord" %>
|
||||
|
||||
<%@ Register Src="~/Controls/UnitProjectTControl.ascx" TagName="UnitProjectTControl" TagPrefix="uc1" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>现场控制点审批记录</title>
|
||||
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
<style>
|
||||
@@ -22,30 +24,39 @@
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" CssClass="blockpanel" Margin="5px" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" Layout="Fit"
|
||||
Title="中间面板" ShowBorder="true" ShowHeader="false" BodyPadding="10px">
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="380" Title="公司-项目" TitleToolTip="公司-项目" ShowBorder="true"
|
||||
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="Fit">
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true" AutoScroll="true"
|
||||
BodyPadding="0px">
|
||||
<uc1:UnitProjectTControl ID="ucTree" runat="server" Onchange="changeTree" />
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panel3" RegionPosition="Center" ShowBorder="true"
|
||||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" Width="870px" ShowBorder="true" ShowHeader="false" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="AuditId" AllowSorting="true" EnableColumnLines="true"
|
||||
SortField="CreateDate" SortDirection="ASC" AllowCellEditing="true" ClicksToEdit="1" KeepCurrentSelection="true"
|
||||
ForceFit="true" OnRowCommand="Grid1_RowCommand" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick"
|
||||
SortField="CreateDate" SortDirection="ASC" AllowCellEditing="true" ClicksToEdit="1" KeepCurrentSelection="true"
|
||||
ForceFit="true" OnRowCommand="Grid1_RowCommand" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick"
|
||||
ShowSelectedCell="true" DataIDField="AuditId" AllowPaging="true" IsDatabasePaging="true"
|
||||
PageSize="100" OnPageIndexChange="Grid1_PageIndexChange" AllowFilters="true" OnFilterChange="Grid1_FilterChange">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar4" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:TextBox runat="server" ID="txtAuditCode" Label="编号" LabelAlign="Right"></f:TextBox>
|
||||
|
||||
<f:Button ID="btnSearch" Icon="SystemSearch"
|
||||
EnablePostBack="true" runat="server" ToolTip="查询" OnClick="btnSearch_Click">
|
||||
</f:Button>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnNew" ToolTip="新增" Text="新增" Icon="Add" runat="server" OnClick="btnNew_Click" >
|
||||
<f:TextBox runat="server" ID="txtAuditCode" Label="编号" LabelAlign="Right"></f:TextBox>
|
||||
|
||||
<f:Button ID="btnSearch" Icon="SystemSearch"
|
||||
EnablePostBack="true" runat="server" ToolTip="查询" OnClick="btnSearch_Click">
|
||||
</f:Button>
|
||||
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnNew" ToolTip="新增" Text="新增" Icon="Add" runat="server" OnClick="btnNew_Click">
|
||||
</f:Button>
|
||||
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
@@ -55,7 +66,7 @@
|
||||
<f:RenderField Width="100px" ColumnID="AuditCode" DataField="AuditCode" FieldType="String"
|
||||
HeaderText="编号" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="AuditDate" DataField="AuditDate" FieldType="Date" RendererArgument="yyyy-MM-dd"
|
||||
<f:RenderField Width="100px" ColumnID="AuditDate" DataField="AuditDate" FieldType="Date" RendererArgument="yyyy-MM-dd"
|
||||
HeaderText="日期" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="AuditName" DataField="AuditName" FieldType="String"
|
||||
@@ -63,11 +74,11 @@
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="UserName" DataField="UserName" FieldType="String"
|
||||
HeaderText="审批人" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="40px" ColumnID="Remark" DataField="Remark" FieldType="String"
|
||||
HeaderText="备注" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField HeaderText="附件" ColumnID="download" Width="40px" Text="附件" CommandName="download" />
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField HeaderText="附件" ColumnID="download" Width="40px" Text="附件" CommandName="download" />
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
@@ -89,31 +100,31 @@
|
||||
</Items>
|
||||
</f:Panel>
|
||||
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true" Icon="Pencil"
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true" Icon="Pencil"
|
||||
runat="server" Text="修改">
|
||||
</f:MenuButton>
|
||||
<%-- <f:MenuButton ID="btnMenuCopy" OnClick="btnMenuCopy_Click" EnablePostBack="true"
|
||||
runat="server" Text="拷贝" >
|
||||
</f:MenuButton>--%>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDel_Click" EnablePostBack="true" Icon="Delete"
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDel_Click" EnablePostBack="true" Icon="Delete"
|
||||
ConfirmText="确认删除选中项?" ConfirmTarget="Top" runat="server" Text="删除">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
<f:Window ID="Window1" Title="设计变更单管理" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
<f:Window ID="Window1" Title="设计变更单管理" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||
Width="900px" Height="400px">
|
||||
</f:Window>
|
||||
|
||||
|
||||
|
||||
<f:Window ID="Windowtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
|
||||
<f:Window ID="Windowtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
@@ -121,7 +132,7 @@
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -10,6 +10,21 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
public partial class ProjectControlPointAuditRecord : PageBase
|
||||
{
|
||||
#region 项目主键
|
||||
/// <summary>
|
||||
/// 项目主键
|
||||
/// </summary>
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
public bool Editable
|
||||
{
|
||||
get
|
||||
@@ -22,6 +37,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 页面加载
|
||||
/// <summary>
|
||||
@@ -35,13 +51,42 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
Editable = false;
|
||||
|
||||
GetButtonPower();
|
||||
BindGrid();
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
}
|
||||
|
||||
this.ucTree.UnitId = this.CurrUser.UnitId;
|
||||
this.ucTree.ProjectId = this.ProjectId;
|
||||
if (!string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
this.panelLeftRegion.Hidden = true;
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
}
|
||||
BindGrid();
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 公司级树加载
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void changeTree(object sender, EventArgs e)
|
||||
{
|
||||
this.ProjectId = this.ucTree.ProjectId;
|
||||
|
||||
if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
btnNew.Hidden = true;
|
||||
}
|
||||
this.GetButtonPower();
|
||||
this.BindGrid();
|
||||
}
|
||||
#region 修改关闭窗口
|
||||
/// <summary>
|
||||
/// 关闭窗口
|
||||
@@ -121,6 +166,10 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
string strSql = @"SELECT AuditId
|
||||
,WBS_BreakdownProjectAuditRecord.ProjectId
|
||||
,AuditCode
|
||||
@@ -134,7 +183,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
FROM dbo.WBS_BreakdownProjectAuditRecord left join Sys_User on Auditer = UserId ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
strSql += " where WBS_BreakdownProjectAuditRecord.ProjectId=@ProjectId";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
|
||||
if (!string.IsNullOrEmpty(txtAuditCode.Text))
|
||||
{
|
||||
strSql += " and AuditCode like '%" + txtAuditCode.Text + "%'";
|
||||
@@ -198,7 +247,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
return;
|
||||
}
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointAuditMenuId);
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointAuditMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
|
||||
+29
-2
@@ -42,13 +42,40 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// ucTree 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree;
|
||||
|
||||
/// <summary>
|
||||
/// panel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panel3;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectControlPointFile.aspx.cs" Inherits="FineUIPro.Web.CQMS.WBS.ProjectControlPointFile" %>
|
||||
|
||||
<%@ Register Src="~/Controls/UnitProjectTControl.ascx" TagName="UnitProjectTControl" TagPrefix="uc1" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>现场控制点裁剪</title>
|
||||
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
<style>
|
||||
@@ -24,14 +26,23 @@
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" CssClass="blockpanel" Margin="5px" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true" EnableCollapse="true" Layout="Fit"
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="380" Title="公司-项目" TitleToolTip="公司-项目" ShowBorder="true"
|
||||
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="Fit">
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true" AutoScroll="true"
|
||||
BodyPadding="0px">
|
||||
<uc1:UnitProjectTControl ID="ucTree" runat="server" Onchange="changeTree" />
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panelLeftRegion2" RegionPosition="Left" RegionSplit="true" EnableCollapse="true" Layout="Fit"
|
||||
RegionPercent="20%" Title="现场控制点裁剪" TitleToolTip="现场控制点裁剪" ShowBorder="true" ShowHeader="true"
|
||||
BodyPadding="10px">
|
||||
<Items>
|
||||
<f:Tree ID="trWBS" EnableCollapse="true" ShowHeader="true" OnNodeCheck="trWBS_NodeCheck" OnlyLeafCheck="true"
|
||||
<f:Tree ID="trWBS" EnableCollapse="true" ShowHeader="true" OnNodeCheck="trWBS_NodeCheck" OnlyLeafCheck="true"
|
||||
OnNodeCommand="trWBS_NodeCommand" OnNodeExpand="trWBS_NodeExpand" AutoLeafIdentification="true"
|
||||
runat="server">
|
||||
|
||||
</f:Tree>
|
||||
<f:HiddenField runat="server" ID="hdSelectId">
|
||||
</f:HiddenField>
|
||||
@@ -44,11 +55,11 @@
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" Width="870px" ShowBorder="true" ShowHeader="false" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="BreakdownProjectId" AllowSorting="true" EnableColumnLines="true"
|
||||
SortField="BreakdownCode" SortDirection="ASC" AllowCellEditing="true" ClicksToEdit="1" KeepCurrentSelection="true"
|
||||
SortField="BreakdownCode" SortDirection="ASC" AllowCellEditing="true" ClicksToEdit="1" KeepCurrentSelection="true"
|
||||
ForceFit="true" OnRowCommand="Grid1_RowCommand"
|
||||
ShowSelectedCell="true" DataIDField="BreakdownProjectId" AllowPaging="true" IsDatabasePaging="true"
|
||||
PageSize="100" OnPageIndexChange="Grid1_PageIndexChange" AllowFilters="true" OnFilterChange="Grid1_FilterChange">
|
||||
|
||||
|
||||
<Columns>
|
||||
<f:RenderField Width="70px" ColumnID="BreakdownCode" DataField="BreakdownCode" FieldType="String"
|
||||
HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center">
|
||||
@@ -93,9 +104,9 @@
|
||||
<f:RenderField Width="40px" ColumnID="ModelURL" DataField="ModelURL" FieldType="String" Hidden="true"
|
||||
HeaderText="模板附件" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField HeaderText="附件" ColumnID="download" Width="40px" Text="附件" CommandName="download" />
|
||||
<f:LinkButtonField HeaderText="附件" ColumnID="download" Width="40px" Text="附件" CommandName="download" />
|
||||
</Columns>
|
||||
|
||||
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
@@ -112,20 +123,20 @@
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
|
||||
<f:Window ID="Windowtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
|
||||
<f:Window ID="Windowtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var treeID = '<%= trWBS.ClientID %>';
|
||||
// 保存当前菜单对应的树节点ID
|
||||
var currentNodeId;
|
||||
|
||||
|
||||
|
||||
// 显示菜单后,检查是否禁用菜单项
|
||||
function onMenuShow() {
|
||||
if (currentNodeId) {
|
||||
|
||||
@@ -10,6 +10,22 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
public partial class ProjectControlPointFile : PageBase
|
||||
{
|
||||
#region 项目主键
|
||||
/// <summary>
|
||||
/// 项目主键
|
||||
/// </summary>
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// 被选择项列表
|
||||
/// </summary>
|
||||
@@ -50,9 +66,22 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
}
|
||||
this.ucTree.UnitId = this.CurrUser.UnitId;
|
||||
this.ucTree.ProjectId = this.ProjectId;
|
||||
if (!string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
this.panelLeftRegion.Hidden = true;
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
}
|
||||
this.SelectedList = new List<string>();
|
||||
this.NoSelectedList = new List<string>();
|
||||
GetButtonPower();
|
||||
//GetButtonPower();
|
||||
InitTreeMenu();
|
||||
this.Grid1.Columns[2].Hidden = false;
|
||||
this.Grid1.Columns[3].Hidden = true;
|
||||
@@ -68,18 +97,34 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
#endregion
|
||||
|
||||
#region 加载树
|
||||
|
||||
/// <summary>
|
||||
/// 公司级树加载
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void changeTree(object sender, EventArgs e)
|
||||
{
|
||||
this.ProjectId = this.ucTree.ProjectId;
|
||||
this.GetButtonPower();
|
||||
this.InitTreeMenu();
|
||||
}
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
/// </summary>
|
||||
private void InitTreeMenu()
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.trWBS.Nodes.Clear();
|
||||
this.trWBS.ShowBorder = false;
|
||||
this.trWBS.ShowHeader = false;
|
||||
this.trWBS.EnableIcons = true;
|
||||
this.trWBS.AutoScroll = true;
|
||||
this.trWBS.EnableSingleClickExpand = true;
|
||||
var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId orderby x.UnitWorkCode select x;
|
||||
var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.ProjectId orderby x.UnitWorkCode select x;
|
||||
foreach (var q in unitWorks)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
@@ -196,7 +241,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
cNProfessionalId = e.NodeID.Split('|')[1];
|
||||
}
|
||||
var divisions = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.CNProfessionalId == cNProfessionalId && x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
where x.CNProfessionalId == cNProfessionalId && x.ProjectId == this.ProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
foreach (var q in divisions)
|
||||
@@ -216,7 +261,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
//newNode.Checked = true;
|
||||
|
||||
var list = (from x in Funs.DB.WBS_DivisionProject
|
||||
where x.SuperDivisionId == q.DivisionProjectId && x.ProjectId == this.CurrUser.LoginProjectId
|
||||
where x.SuperDivisionId == q.DivisionProjectId && x.ProjectId == this.ProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Count > 0)
|
||||
@@ -232,7 +277,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
else if (e.Node.CommandName == "DivisionProject") //展开分部节点
|
||||
{
|
||||
var childDivisions = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.SuperDivisionId == e.Node.NodeID && x.ProjectId == this.CurrUser.LoginProjectId
|
||||
where x.SuperDivisionId == e.Node.NodeID && x.ProjectId == this.ProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
foreach (var q in childDivisions)
|
||||
@@ -251,7 +296,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
//newNode.Checked = true;
|
||||
|
||||
var list = (from x in Funs.DB.WBS_DivisionProject
|
||||
where x.SuperDivisionId == q.DivisionProjectId && x.ProjectId == this.CurrUser.LoginProjectId
|
||||
where x.SuperDivisionId == q.DivisionProjectId && x.ProjectId == this.ProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Count > 0)
|
||||
@@ -275,7 +320,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
/// <param name="e"></param>
|
||||
protected void trWBS_NodeCheck(object sender, FineUIPro.TreeCheckEventArgs e)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId, BLL.Const.BtnSave))
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId, BLL.Const.BtnSave))
|
||||
{
|
||||
Model.WBS_DivisionProject divisionProject = BLL.DivisionProjectService.GetDivisionProjectById(e.NodeID);
|
||||
divisionProject.IsSelected = e.Checked;
|
||||
@@ -450,7 +495,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
//var controlItemAndCycle = Funs.DB.WBS_ControlItemAndCycle.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.InitControlItemCode == Grid1.SelectedRowID);
|
||||
//var controlItemAndCycle = Funs.DB.WBS_ControlItemAndCycle.FirstOrDefault(x => x.ProjectId == this.ProjectId && x.InitControlItemCode == Grid1.SelectedRowID);
|
||||
//if (controlItemAndCycle != null)
|
||||
//{
|
||||
// ShowNotify("WBS定制中已使用该数据,无法删除!", MessageBoxIcon.Warning);
|
||||
@@ -511,12 +556,17 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
string strSql = @"SELECT BreakdownProjectId,BreakdownCode,BreakdownName,Basis,CheckPoints,RecordAndCode,Class,FenBao,WuHuan,JianLi,YeZhu,Remark,ModelURL
|
||||
FROM WBS_BreakdownProject ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
strSql += " where IsSelected = 1 and DivisionProjectId = @DivisionProjectId and ProjectId=@ProjectId";
|
||||
listStr.Add(new SqlParameter("@DivisionProjectId", this.trWBS.SelectedNodeID));
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
@@ -602,7 +652,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
if (trWBS.Nodes[i].Nodes[j].NodeID == BLL.Const.CNProfessionalConstructId) //建筑工程
|
||||
{
|
||||
var divisionsCV = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.CNProfessionalId == BLL.Const.CNProfessionalCVId && x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId && x.IsSelected == true
|
||||
where x.CNProfessionalId == BLL.Const.CNProfessionalCVId && x.ProjectId == this.ProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId && x.IsSelected == true
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (divisionsCV.Count > 0) //建筑工程下存在土建内容
|
||||
@@ -616,7 +666,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
trWBS.Nodes[i].Nodes[j].Nodes.Add(newNode3);
|
||||
newNode3.Expanded = true;
|
||||
var divisions = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.CNProfessionalId == BLL.Const.CNProfessionalCVId && x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
where x.CNProfessionalId == BLL.Const.CNProfessionalCVId && x.ProjectId == this.ProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
foreach (var q in divisions)
|
||||
@@ -633,7 +683,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
}
|
||||
newNode3.Nodes.Add(newNode4);
|
||||
var division1s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == q.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == q.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(q.DivisionProjectId))
|
||||
@@ -649,7 +699,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode5.EnableClickEvent = true;
|
||||
newNode4.Nodes.Add(newNode5);
|
||||
var division2s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == division1.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == division1.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(division1.DivisionProjectId))
|
||||
@@ -665,7 +715,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode6.EnableClickEvent = true;
|
||||
newNode5.Nodes.Add(newNode6);
|
||||
var division3s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == division2.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == division2.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(division2.DivisionProjectId))
|
||||
@@ -711,7 +761,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
else
|
||||
{
|
||||
var divisions = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.CNProfessionalId == BLL.Const.CNProfessionalConstructId && x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
where x.CNProfessionalId == BLL.Const.CNProfessionalConstructId && x.ProjectId == this.ProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
foreach (var q in divisions)
|
||||
@@ -728,7 +778,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode4.Checked = true;
|
||||
}
|
||||
var division1s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == q.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == q.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(q.DivisionProjectId))
|
||||
@@ -744,7 +794,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode5.EnableClickEvent = true;
|
||||
newNode4.Nodes.Add(newNode5);
|
||||
var division2s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == division1.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == division1.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(division1.DivisionProjectId))
|
||||
@@ -760,7 +810,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode6.EnableClickEvent = true;
|
||||
newNode5.Nodes.Add(newNode6);
|
||||
var division3s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == division2.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == division2.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(division2.DivisionProjectId))
|
||||
@@ -820,7 +870,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
newCNProfessionalNode.Expanded = true;
|
||||
var divisions = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.CNProfessionalId == c.CNProfessionalId && x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
where x.CNProfessionalId == c.CNProfessionalId && x.ProjectId == this.ProjectId && x.SuperDivisionId == null && x.UnitWorkId == unitWorkId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
foreach (var q in divisions)
|
||||
@@ -837,7 +887,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode4.Checked = true;
|
||||
}
|
||||
var division1s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == q.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == q.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(q.DivisionProjectId))
|
||||
@@ -853,7 +903,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode5.EnableClickEvent = true;
|
||||
newNode4.Nodes.Add(newNode5);
|
||||
var division2s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == division1.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == division1.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(division1.DivisionProjectId))
|
||||
@@ -869,7 +919,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
newNode6.EnableClickEvent = true;
|
||||
newNode5.Nodes.Add(newNode6);
|
||||
var division3s = (from x in BLL.Funs.DB.WBS_DivisionProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperDivisionId == division2.DivisionProjectId
|
||||
where x.ProjectId == this.ProjectId && x.SuperDivisionId == division2.DivisionProjectId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
if (list.Contains(division2.DivisionProjectId))
|
||||
@@ -999,7 +1049,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
return;
|
||||
}
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId);
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -50,6 +50,33 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
/// <summary>
|
||||
/// ucTree 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree;
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion2;
|
||||
|
||||
/// <summary>
|
||||
/// trWBS 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user