diff --git a/DataBase/版本日志/SGGLDB_WH_2024-07-29-bwj.sql b/DataBase/版本日志/SGGLDB_WH_2024-07-29-bwj.sql
new file mode 100644
index 00000000..012b7ff5
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_WH_2024-07-29-bwj.sql
@@ -0,0 +1,4 @@
+ALTER TABLE WBS_UnitWork ALTER COLUMN SuperUnitWork NVARCHAR(50)
+GO
+update WBS_UnitWork set SuperUnitWork='0'
+GO
\ No newline at end of file
diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-07-27-phf.sql b/DataBase/版本日志/SGGLDB_WH_V2024-07-27-phf.sql
new file mode 100644
index 00000000..0dc97a6e
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_WH_V2024-07-27-phf.sql
@@ -0,0 +1,46 @@
+alter table sys_menu
+alter COLUMN menuname nvarchar(200);
+
+UPDATE SYS_MENU set MenuName='ϵͳ嵥
Process System List'
+WHERE MENUID='197F9A9A-480C-4CC3-B6B7-3A7D382DC3EB';
+
+
+UPDATE SYS_MENU set MenuName='ǹϵͳ嵥
Non-Process System List'
+WHERE MENUID='022428DC-FC99-4916-B8AF-6A9DC885DFAF';
+
+UPDATE SYS_MENU set MenuName='ܵ
Piping'
+WHERE MENUID='D94C1BA4-9DFD-4514-AE12-6F886C5D8C9B';
+
+UPDATE SYS_MENU set MenuName='豸
Static Equipment'
+WHERE MENUID='982F746C-084C-445C-9AE8-8C37BDFE7994';
+
+UPDATE SYS_MENU set MenuName='豸
Rotating Equipment'
+WHERE MENUID='7E2FB5F9-FB99-4455-B68F-460F1F9A2676';
+
+UPDATE SYS_MENU set MenuName='DZ
Instrumentation'
+WHERE MENUID='88F51059-55B4-4CD5-A38C-36404E5029F6';
+
+UPDATE SYS_MENU set MenuName='
Electrical'
+WHERE MENUID='296E75D2-192A-4D1F-8471-DD34263F8691';
+
+UPDATE SYS_MENU set MenuName='
Firefighting'
+WHERE MENUID='794E64E2-FDD2-4B7D-8408-F7FB06F9C92A';
+
+UPDATE SYS_MENU set MenuName='//ṹ
Civil Structure'
+WHERE MENUID='95C39F86-C060-452E-BA37-D891C466A39B';
+
+UPDATE SYS_MENU set MenuName='
Telecom'
+WHERE MENUID='58FFBD80-ACB9-4830-A18A-E025D9600D94';
+
+UPDATE SYS_MENU set MenuName='ع
Plumbing'
+WHERE MENUID='95295BF7-FB51-480D-9902-6ADA4E8427FC';
+
+UPDATE SYS_MENU set MenuName='β
Punch List Form'
+WHERE MENUID='016903B1-3B86-4CF5-AFF8-FF8BE389BEE5';
+
+
+alter table Transfer_PunchlistFrom
+alter COLUMN Num_No nvarchar(50);
+
+alter table Transfer_PunchlistFrom
+alter COLUMN IsMatI nvarchar(50);
diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-07-29-phf.sql b/DataBase/版本日志/SGGLDB_WH_V2024-07-29-phf.sql
new file mode 100644
index 00000000..98757ca9
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_WH_V2024-07-29-phf.sql
@@ -0,0 +1,21 @@
+alter table Transfer_LHCSystemList
+add SystemNo nvarchar(50) NULL;
+
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+values('E305689E-5D84-4C1A-BF67-85FA2D828115','ƽͳƱ','Transfer/Chart/Systemstatus.aspx',50,'3517DBE2-9728-4BA0-9EA5-AE2147DB883B'
+,'Menu_Transfer',0,1,1)
+go
+
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+values('60838E30-4A46-4878-B299-C234900B10B7','ƽͳͼ','Transfer/Chart/SystemstatusChart.aspx',51,'3517DBE2-9728-4BA0-9EA5-AE2147DB883B'
+,'Menu_Transfer',0,1,1)
+go
+
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+values('25C13642-AE77-42E2-B0FB-32663B68F93F','ƽ״̬ܱ','Transfer/Chart/SystemStatusSummary.aspx',60,'3517DBE2-9728-4BA0-9EA5-AE2147DB883B',
+'Menu_Transfer',0,1,1)
+go
+
diff --git a/SGGL/BLL/ProjectData/UnitWorkService.cs b/SGGL/BLL/ProjectData/UnitWorkService.cs
index 524d22ad..5eafa6e3 100644
--- a/SGGL/BLL/ProjectData/UnitWorkService.cs
+++ b/SGGL/BLL/ProjectData/UnitWorkService.cs
@@ -636,5 +636,41 @@ namespace BLL
return string.Empty;
}
}
+
+ ///
+ /// 是否可增加子级
+ ///
+ ///
+ /// true-可以,false-不可以
+ public static bool IsCanAddUnitWork(string unitWorkId)
+ {
+ var unitWork = Funs.DB.WBS_UnitWork.FirstOrDefault(x => x.UnitWorkId == unitWorkId);
+ if (unitWork != null)
+ {
+ if (unitWork.IsChild == true)
+ {
+ return false;
+ }
+ else
+ {
+ return true;
+ }
+ }
+ else
+ {
+ return true;
+ }
+ }
+
+ ///
+ /// 是否存在子级单位工程
+ ///
+ ///
+ ///
+ public static bool IsExitsUnitWorkBySuperUnitWork(string superUnitWork)
+ {
+ return (from x in Funs.DB.WBS_UnitWork where x.SuperUnitWork == superUnitWork select x).Count() > 0;
+ }
+
}
}
diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt
index 83bd7d69..85710119 100644
--- a/SGGL/FineUIPro.Web/ErrLog.txt
+++ b/SGGL/FineUIPro.Web/ErrLog.txt
@@ -750,3 +750,82 @@ IP地址:::1
出错时间:07/25/2024 13:36:33
出错时间:07/25/2024 13:36:33
+
+错误信息开始=====>
+错误类型:SqlException
+错误信息:参数化查询 '(@ProjectId nvarchar(4000),@Type nvarchar(1))select * from Trans' 需要参数 '@ProjectId',但未提供该参数。
+错误堆栈:
+ 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
+ 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
+ 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
+ 在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
+ 在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
+ 在 System.Data.SqlClient.SqlDataReader.get_MetaData()
+ 在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
+ 在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
+ 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
+ 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
+ 在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
+ 在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
+ 在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
+ 在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
+ 在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
+ 在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
+ 在 BLL.SQLHelper.GetDataTableRunText(String strSql, SqlParameter[] parameters) 位置 G:\公司项目\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\SQLHelper.cs:行号 311
+ 在 FineUIPro.Web.Transfer.LHCSystemList.BindGrid() 位置 G:\公司项目\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Transfer\LHCSystemList.aspx.cs:行号 78
+ 在 FineUIPro.Web.Transfer.LHCSystemList.Page_Load(Object sender, EventArgs e) 位置 G:\公司项目\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Transfer\LHCSystemList.aspx.cs:行号 42
+ 在 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)
+出错时间:07/29/2024 16:03:19
+出错文件:http://localhost:8579/Transfer/LHCSystemList.aspx?Type=0
+IP地址:::1
+操作人员:JT
+
+出错时间:07/29/2024 16:03:19
+
+
+错误信息开始=====>
+错误类型:HttpParseException
+错误信息:FineUIPro.ControlBaseCollection 必须具有类型为“FineUIPro.ControlBase”的项。“div”的类型为“System.Web.UI.HtmlControls.HtmlGenericControl”。
+错误堆栈:
+ 在 System.Web.UI.TemplateParser.ProcessException(Exception ex)
+ 在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
+ 在 System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
+----错误类型:HttpException
+----错误信息:
+----FineUIPro.ControlBaseCollection 必须具有类型为“FineUIPro.ControlBase”的项。“div”的类型为“System.Web.UI.HtmlControls.HtmlGenericControl”。
+----错误堆栈:
+ 在 System.Web.UI.CollectionBuilder.GetChildControlType(String tagName, IDictionary attribs)
+ 在 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty)
+ 在 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText)
+ 在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
+出错时间:07/29/2024 16:40:04
+出错文件:http://localhost:8579/Transfer/Chart/SystemstatusChart.aspx
+IP地址:::1
+
+出错时间:07/29/2024 16:40:04
+
+
+错误信息开始=====>
+错误类型:HttpCompileException
+错误信息:g:\公司项目\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Transfer\Chart\SystemstatusChart.aspx(166): error CS0103: 当前上下文中不存在名称“Two”
+错误堆栈:
+ 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
+ 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
+ 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
+ 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
+ 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
+ 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
+ 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
+ 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+ 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
+ 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
+出错时间:07/29/2024 16:47:59
+出错文件:http://localhost:8579/Transfer/Chart/SystemstatusChart.aspx
+IP地址:::1
+
+出错时间:07/29/2024 16:47:59
+
diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/NonProcessSystemList导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/NonProcessSystemList导入模板.xls
index 9777cbda..122ef869 100644
Binary files a/SGGL/FineUIPro.Web/File/Excel/DataIn/NonProcessSystemList导入模板.xls and b/SGGL/FineUIPro.Web/File/Excel/DataIn/NonProcessSystemList导入模板.xls differ
diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/ProcessSystemList导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/ProcessSystemList导入模板.xls
index 35340a31..24e57678 100644
Binary files a/SGGL/FineUIPro.Web/File/Excel/DataIn/ProcessSystemList导入模板.xls and b/SGGL/FineUIPro.Web/File/Excel/DataIn/ProcessSystemList导入模板.xls differ
diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/PunchlistFrom导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/PunchlistFrom导入模板.xls
index 5dcc1217..815c3387 100644
Binary files a/SGGL/FineUIPro.Web/File/Excel/DataIn/PunchlistFrom导入模板.xls and b/SGGL/FineUIPro.Web/File/Excel/DataIn/PunchlistFrom导入模板.xls differ
diff --git a/SGGL/FineUIPro.Web/File/Excel/DataOut/PunchlistFrom导出模板.xlsx b/SGGL/FineUIPro.Web/File/Excel/DataOut/PunchlistFrom导出模板.xlsx
new file mode 100644
index 00000000..bab50255
Binary files /dev/null and b/SGGL/FineUIPro.Web/File/Excel/DataOut/PunchlistFrom导出模板.xlsx differ
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 37e95cc3..b2870513 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -2024,6 +2024,9 @@
+
+
+
@@ -2045,6 +2048,7 @@
+
@@ -17611,6 +17615,27 @@
PunchlistFromSort.aspx
+
+ Systemstatus.aspx
+ ASPXCodeBehind
+
+
+ Systemstatus.aspx
+
+
+ SystemstatusChart.aspx
+ ASPXCodeBehind
+
+
+ SystemstatusChart.aspx
+
+
+ SystemStatusSummary.aspx
+ ASPXCodeBehind
+
+
+ SystemStatusSummary.aspx
+
TransferChart.aspx
ASPXCodeBehind
@@ -17758,6 +17783,13 @@
PunchlistFromDataIn.aspx
+
+ PunchlistFromEdit.aspx
+ ASPXCodeBehind
+
+
+ PunchlistFromEdit.aspx
+
RotatingEquipment.aspx
ASPXCodeBehind
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user
index cb873201..63722353 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user
@@ -1,7 +1,7 @@
- Release|Any CPU
+ Debug|Any CPU
true
false
diff --git a/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx b/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx
index b40a4897..2cfc5ae8 100644
--- a/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx
+++ b/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx
@@ -4,129 +4,122 @@
+
单位工程
-
diff --git a/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx.cs b/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx.cs
index 073d2831..ed797e6e 100644
--- a/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx.cs
+++ b/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx.cs
@@ -2,170 +2,28 @@
using System;
using System.Collections.Generic;
using System.Data;
-using System.Data.SqlClient;
using System.Linq;
namespace FineUIPro.Web.ProjectData
{
public partial class UnitWork : PageBase
{
+ #region 页面加载
///
- /// 项目id
+ /// 页面加载
///
- public string ProjectId
- {
- get
- {
- return (string)ViewState["ProjectId"];
- }
- set
- {
- ViewState["ProjectId"] = value;
- }
- }
+ ///
+ ///
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
- this.ProjectId = this.CurrUser.LoginProjectId;
GetButtonPower();
- ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
-
- // 绑定表格
- BindGrid();
- btnNew.OnClientClick = Window1.GetShowReference("UnitWorkEdit.aspx") + "return false;";
-
-
+ InitTreeMenu();
}
}
- ///
- /// 绑定数据
- ///
+ #endregion
- public void BindGrid()
- {
- if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
- {
- DataTable tb = ChecklistData(this.CurrUser.LoginProjectId);
- Grid1.RecordCount = tb.Rows.Count;
- tb = GetFilteredTable(Grid1.FilteredData, tb);
- var table = this.GetPagedDataTable(Grid1, tb);
-
- Grid1.DataSource = table;
- Grid1.DataBind();
- }
- }
-
-
- protected DataTable ChecklistData(string projectId)
- {
- string strSql = @"select UnitWorkId,UnitWorkCode,UnitWorkName,Costs,Weights,MainItemAndDesignProfessionalIds,SuperUnitWork,(case IsChild when '1' then 'true' else 'false' end) isChild,(case ProjectType when '1' then '建筑工程' when '2' then '安装工程' else '' end ) ProjectType ,Unit.UnitName AS UnitId,SupervisorUnit.UnitName AS SupervisorUnitId,NDEUnit.UnitName AS NDEUnit from [dbo].[WBS_UnitWork] AS UnitWork
- Left join Base_Unit AS Unit on UnitWork.UnitId=Unit.UnitId
- Left join Base_Unit AS SupervisorUnit on UnitWork.SupervisorUnitId=SupervisorUnit.UnitId
- Left join Base_Unit AS NDEUnit on UnitWork.NDEUnit=NDEUnit.UnitId where ProjectId=@ProjectId ";
-
- List listStr = new List
- {
- new SqlParameter("@ProjectId", projectId)
- };
- if (!string.IsNullOrEmpty(this.txtUnitWorkCode.Text.Trim()))
- {
- strSql += " AND UnitWorkCode like @UnitWorkCode";
- listStr.Add(new SqlParameter("@UnitWorkCode", "%" + this.txtUnitWorkCode.Text.Trim() + "%"));
- }
- if (!string.IsNullOrEmpty(this.txtUnitWorkName.Text.Trim()))
- {
- strSql += " AND UnitWorkName like @UnitWorkName";
- listStr.Add(new SqlParameter("@UnitWorkName", "%" + this.txtUnitWorkName.Text.Trim() + "%"));
- }
- SqlParameter[] parameter = listStr.ToArray();
- DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
- return tb;
- }
- protected void btnMenuModify_Click(object sender, EventArgs e)
- {
- EditData();
- }
-
- protected void btnMenuDel_Click(object sender, EventArgs e)
- {
- if (Grid1.SelectedRowIndexArray.Length > 0)
- {
- string message = string.Empty;
- foreach (int rowIndex in Grid1.SelectedRowIndexArray)
- {
- string rowID = Grid1.DataKeys[rowIndex][0].ToString();
- var unitwork = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(rowID);
- if (unitwork != null)
- {
- string rowMessage= this.judgementDelete(rowID, unitwork.UnitWorkName);
- if (string.IsNullOrEmpty(rowMessage))
- {
- BLL.BreakdownProjectService.DeleteAllBreakdownByUnitWorkId(rowID);
- BLL.DivisionProjectService.DeleteDivisionProjectByUnitWorkId(rowID);
- BLL.UnitWorkService.DeleteUnitWorkById(rowID);
- }
- else
- {
- message += rowMessage;
- }
- }
- }
-
- BindGrid();
- if (string.IsNullOrEmpty(message))
- {
- ShowNotify("删除数据成功!", MessageBoxIcon.Success);
- }
- else
- {
- Alert.ShowInParent(message, MessageBoxIcon.Warning);
- }
- }
- }
-
- ///
- /// 判断是否可删除
- ///
- ///
- ///
- ///
- private string judgementDelete(string rowID,string name)
- {
- string content = string.Empty;
- var inspection = from x in Funs.DB.ProcessControl_InspectionManagement where x.UnitWorkId == rowID select x;
- foreach (var item in inspection)
- {
- content += "共检通知单【"+ item.InspectionCode+ "】";
- }
-
- if (!string.IsNullOrEmpty(content))
- {
- content += "中已使用单位工程【" + name + "】!";
- }
- return content;
- }
-
- ///
- /// 编辑数据方法
- ///
- private void EditData()
- {
-
- if (Grid1.SelectedRowIndexArray.Length == 0)
- {
- Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
- return;
- }
- if (this.btnMenuModify.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面
- {
- PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("UnitWorkView.aspx?UnitWorkId={0}", Grid1.SelectedRowID, "查看 - ")));
- }
- else
- {
- PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("UnitWorkEdit.aspx?UnitWorkId={0}", Grid1.SelectedRowID, "编辑 - ")));
- }
- }
#region 获取按钮权限
///
/// 获取按钮权限
@@ -178,85 +36,498 @@ namespace FineUIPro.Web.ProjectData
{
return;
}
- var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.UnitWorkMenuId);
+ var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.UnitWorkMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
- this.btnNew.Hidden = false;
+ this.btnMenuAdd.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnModify))
{
- this.btnMenuModify.Hidden = false;
+ this.btnMenuEdit.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnDelete))
{
- this.btnMenuDel.Hidden = false;
+ this.btnMenuDelete.Hidden = false;
}
}
}
#endregion
+ #region 加载树
///
- /// 获取对应主项及设计专业
+ /// 加载树
///
- ///
- ///
- protected string ConvertDesignProfessionalName(object MainItemAndDesignProfessionalIds)
+ private void InitTreeMenu()
{
- string ProfessionalName = string.Empty;
- if (MainItemAndDesignProfessionalIds != null)
+ this.trProjects.Nodes.Clear();
+ this.trProjects.ShowBorder = false;
+ this.trProjects.ShowHeader = false;
+ this.trProjects.EnableIcons = true;
+ this.trProjects.AutoScroll = true;
+ this.trProjects.EnableSingleClickExpand = true;
+ Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
+ if (project != null)
{
- ProfessionalName = UnitWorkService.GetMainItemAndDesignProfessionalName(MainItemAndDesignProfessionalIds.ToString(), CurrUser.LoginProjectId);
+ TreeNode node = new TreeNode();
+ node.Text = project.ProjectName;
+ node.NodeID = project.ProjectId;
+ node.CommandName = "project";
+ node.EnableClickEvent = true;
+ node.EnableExpandEvent = true;
+ this.trProjects.Nodes.Add(node);
+ TreeNode emptyNode = new TreeNode();
+ emptyNode.Text = "";
+ emptyNode.NodeID = "";
+ node.Nodes.Add(emptyNode);
}
- return ProfessionalName;
}
- protected void btnSearch_Click(object sender, EventArgs e)
+ #endregion
+
+ #region 展开树
+ ///
+ /// 展开树
+ ///
+ ///
+ ///
+ protected void trProjects_NodeExpand(object sender, TreeNodeEventArgs e)
{
+ e.Node.Nodes.Clear();
+ if (e.Node.CommandName == "project") //展开项目节点
+ {
+ var unitWorks = from x in Funs.DB.WBS_UnitWork
+ where x.ProjectId == e.Node.NodeID && x.SuperUnitWork == "0"
+ orderby x.UnitWorkCode
+ select x;
+ foreach (var unitWork in unitWorks)
+ {
+ TreeNode newNode = new TreeNode();
+ newNode.Text = unitWork.UnitWorkName;
+ newNode.NodeID = unitWork.UnitWorkId;
+ newNode.CommandName = "unitWork";
+ newNode.EnableExpandEvent = true;
+ newNode.EnableClickEvent = true;
+ e.Node.Nodes.Add(newNode);
+ var installation2s = from x in Funs.DB.WBS_UnitWork where x.SuperUnitWork == unitWork.UnitWorkId orderby x.UnitWorkCode select x;
+ if (installation2s.Count() > 0)
+ {
+ TreeNode emptyNode = new TreeNode();
+ emptyNode.Text = "";
+ emptyNode.NodeID = "";
+ newNode.Nodes.Add(emptyNode);
+ }
+ }
+ }
+ else if (e.Node.CommandName == "unitWork") //展开装置/单元节点
+ {
+ var unitWorks = from x in Funs.DB.WBS_UnitWork
+ where x.SuperUnitWork == e.Node.NodeID
+ orderby x.UnitWorkCode
+ select x;
+ foreach (var unitWork in unitWorks)
+ {
+ TreeNode newNode = new TreeNode();
+ newNode.Text = unitWork.UnitWorkName;
+ newNode.NodeID = unitWork.UnitWorkId;
+ newNode.CommandName = "unitWork";
+ newNode.EnableExpandEvent = true;
+ newNode.EnableClickEvent = true;
+ e.Node.Nodes.Add(newNode);
+ var installation3s = from x in Funs.DB.WBS_UnitWork where x.SuperUnitWork == unitWork.UnitWorkId orderby x.UnitWorkCode select x;
+ if (installation3s.Count() > 0)
+ {
+ TreeNode emptyNode = new TreeNode();
+ emptyNode.Text = "";
+ emptyNode.NodeID = "";
+ newNode.Nodes.Add(emptyNode);
+ }
+ }
+ }
+ }
+ #endregion
+
+ #region Tree点击事件
+ ///
+ /// Tree点击事件
+ ///
+ ///
+ ///
+ protected void trProjects_NodeCommand(object sender, TreeCommandEventArgs e)
+ {
+ if (this.Grid1.Rows.Count > 0)
+ {
+ SaveData();
+ }
BindGrid();
}
+ #endregion
- protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ #region 保存方法
+ ///
+ /// 保存方法
+ ///
+ private void SaveData()
{
- EditData();
+ //string rowId = this.Grid1.Rows[0].RowID;
+ //string type = this.Grid1.Rows[0].Values[4].ToString();
+
+ //if (type == "unitProject")
+ //{
+ // Model.Wbs_UnitProjectInit unitProject = BLL.UnitProjectInitService.GetUnitProjectInitByUnitProjectCode(rowId);
+ // if (unitProject != null)
+ // {
+ // BLL.UnitProjectInitService.UpdateUnitProjectInit(unitProject);
+ // }
+ //}
+ //else if (type == "wbsSet")
+ //{
+ // Model.WBS_WbsSetInit wbsSet = BLL.WbsSetInitService.GetWbsSetInitByWbsSetCode(rowId);
+ // if (wbsSet != null)
+ // {
+ // var childWbsSets = BLL.WbsSetInitService.GetWbsSetInitsBySuperWbsSetCode(this.trProjects.SelectedNodeID);
+ // //wbsSet.StartDate = Convert.ToDateTime(this.Grid1.Rows[0].Values[2].ToString());
+ // //wbsSet.EndDate = Convert.ToDateTime(this.Grid1.Rows[0].Values[3].ToString());
+ // BLL.WbsSetInitService.UpdateWbsSetInit(wbsSet);
+ // }
+ //}
+ }
+ #endregion
+
+ #region 修改关闭窗口
+ ///
+ /// 关闭窗口
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ ShowNotify("修改成功!", MessageBoxIcon.Success);
+
+ getWBSSet();
+ }
+ #endregion
+
+ #region 拷贝关闭窗口
+ ///
+ /// 拷贝关闭窗口
+ ///
+ ///
+ ///
+ protected void Window2_Close(object sender, WindowCloseEventArgs e)
+ {
+ ShowNotify("增加成功!", MessageBoxIcon.Success);
+
+ getWBSSet();
+ }
+ #endregion
+
+ #region 右键增加、修改、删除方法
+ ///
+ /// 右键修改事件
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ if (this.trProjects.SelectedNode != null && this.trProjects.SelectedNode.CommandName != "project")
+ {
+ if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.UnitWorkMenuId, BLL.Const.BtnModify))
+ {
+ this.hdSelectId.Text = this.trProjects.SelectedNode.NodeID;
+ PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("UnitWorkEdit.aspx?Id={0}", this.trProjects.SelectedNode.NodeID, "编辑 - ")));
+ }
+ else
+ {
+ ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+ else
+ {
+ ShowNotify("项目节点无法修改!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 增加
+ ///
+ ///
+ ///
+ protected void btnMenuAdd_Click(object sender, EventArgs e)
+ {
+ if (this.trProjects.SelectedNode != null)
+ {
+ if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.UnitWorkMenuId, BLL.Const.BtnAdd))
+ {
+ string openUrl = String.Format("UnitWorkEdit.aspx?SuperId={0}", this.trProjects.SelectedNode.NodeID, "增加 - ");
+
+ PageContext.RegisterStartupScript(Window2.GetSaveStateReference(hdSelectId.ClientID)
+ + Window2.GetShowReference(openUrl));
+ }
+ else
+ {
+ ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+ else
+ {
+ ShowNotify("请选择树节点!", MessageBoxIcon.Warning);
+ }
}
- protected void btnMenuView_Click(object sender, EventArgs e)
+
+ ///
+ /// 右键删除事件
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
{
- if (Grid1.SelectedRowIndexArray.Length == 0)
+ if (this.trProjects.SelectedNode != null)
{
- Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
- return;
+ if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.UnitWorkMenuId, BLL.Const.BtnDelete))
+ {
+ if (this.trProjects.SelectedNode.CommandName != "project") //非专业节点可以删除
+ {
+ string id = this.trProjects.SelectedNode.NodeID;
+ Model.WBS_UnitWork unitWork = BLL.UnitWorkService.getUnitWorkByUnitWorkId(id);
+ if (unitWork.SuperUnitWork == "0") //删除一级装置
+ {
+ BLL.UnitWorkService.DeleteUnitWorkById(id);
+ var unitWork2s = from x in Funs.DB.WBS_UnitWork where x.SuperUnitWork == id select x;
+ foreach (var unitWork2 in unitWork2s)
+ {
+ BLL.UnitWorkService.DeleteUnitWorkById(unitWork2.UnitWorkId);
+ var unitWork3s = from x in Funs.DB.WBS_UnitWork where x.SuperUnitWork == unitWork2.UnitWorkId select x;
+ foreach (var unitWork3 in unitWork3s)
+ {
+ BLL.UnitWorkService.DeleteUnitWorkById(unitWork3.UnitWorkId);
+ }
+ }
+ }
+ else
+ {
+ Model.WBS_UnitWork unitWork2 = BLL.UnitWorkService.getUnitWorkByUnitWorkId(id);
+ Model.WBS_UnitWork unitWork1 = BLL.UnitWorkService.getUnitWorkByUnitWorkId(unitWork2.SuperUnitWork);
+ if (unitWork1.SuperUnitWork == "0") //删除二级装置
+ {
+ BLL.UnitWorkService.DeleteUnitWorkById(id);
+ var unitWork3s = from x in Funs.DB.WBS_UnitWork where x.SuperUnitWork == id select x;
+ foreach (var unitWork3 in unitWork3s)
+ {
+ BLL.UnitWorkService.DeleteUnitWorkById(unitWork3.UnitWorkId);
+ }
+ }
+ else //删除二级装置
+ {
+ BLL.UnitWorkService.DeleteUnitWorkById(id);
+ }
+ }
+ ShowNotify("删除成功!", MessageBoxIcon.Success);
+ InitTreeMenu();
+ }
+ else
+ {
+ ShowNotify("项目节点无法删除!", MessageBoxIcon.Warning);
+ }
+ }
+ else
+ {
+ ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
}
- PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("UnitWorkView.aspx?UnitWorkId={0}", Grid1.SelectedRowID, "查看 - ")));
+ else
+ {
+ ShowNotify("请选择树节点!", MessageBoxIcon.Warning);
+ }
+ }
+ #endregion
+
+ #region 绑定数据
+ ///
+ /// 绑定数据
+ ///
+ ///
+ ///
+ protected void Grid1_FilterChange(object sender, EventArgs e)
+ {
+ BindGrid();
}
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
+ Grid1.PageIndex = e.NewPageIndex;
BindGrid();
}
+ ///
+ /// Grid1排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ Grid1.SortDirection = e.SortDirection;
+ Grid1.SortField = e.SortField;
+ BindGrid();
+ }
+
+ ///
+ /// 分页下拉选择事件
+ ///
+ ///
+ ///
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
- ///
- /// 重置
- ///
- ///
- ///
- protected void btnRset_Click(object sender, EventArgs e)
- {
- txtUnitWorkCode.Text = "";
- txtUnitWorkName.Text = "";
- BindGrid();
- }
- protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ ///
+ /// 加载Grid
+ ///
+ private void BindGrid()
{
+ List items = new List();
+ if (this.trProjects.SelectedNode != null)
+ {
+ if (this.trProjects.SelectedNode.CommandName == "unitWork")
+ {
+ Model.WBS_UnitWork installation = BLL.UnitWorkService.getUnitWorkByUnitWorkId(this.trProjects.SelectedNode.NodeID);
+ Model.WBS_UnitWork item = new Model.WBS_UnitWork();
+ if (installation != null)
+ {
+ item.UnitWorkId = installation.UnitWorkId;
+ item.UnitWorkCode = installation.UnitWorkCode;
+ item.UnitWorkName = installation.UnitWorkName;
+ //item.ProjectType = "unitWork";
+ items.Add(item);
+ }
+ }
+ this.Grid1.DataSource = items;
+ this.Grid1.DataBind();
+ }
+ }
+ #endregion
+
+ #region 根据所给Id定位到对应装置
+ ///
+ /// 根据所给Id定位到对应装置
+ ///
+ private void getWBSSet()
+ {
+ string unitWorkId = string.Empty;
+ string pUnitWorkId = string.Empty;
+ string ppUnitWorkId = string.Empty;
+ string projectId = this.CurrUser.LoginProjectId;
+ string id = this.hdSelectId.Text;
+ Model.WBS_UnitWork installation = BLL.UnitWorkService.getUnitWorkByUnitWorkId(id);
+ if (installation.SuperUnitWork == "0") //一级装置
+ {
+ ppUnitWorkId = id;
+ }
+ else
+ {
+ if (BLL.UnitWorkService.IsCanAddUnitWork(id)) //二级装置
+ {
+ pUnitWorkId = id;
+ ppUnitWorkId = installation.SuperUnitWork;
+ }
+ else //三级装置
+ {
+ unitWorkId = id;
+ pUnitWorkId = installation.SuperUnitWork;
+ Model.WBS_UnitWork pInstallation = BLL.UnitWorkService.getUnitWorkByUnitWorkId(installation.SuperUnitWork);
+ if (pInstallation != null)
+ {
+ ppUnitWorkId = pInstallation.SuperUnitWork;
+ }
+ }
+ }
+ this.trProjects.Nodes.Clear();
+ this.trProjects.ShowBorder = false;
+ this.trProjects.ShowHeader = false;
+ this.trProjects.EnableIcons = true;
+ this.trProjects.AutoScroll = true;
+ this.trProjects.EnableSingleClickExpand = true;
+ Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
+ if (project != null)
+ {
+ TreeNode node = new TreeNode();
+ node.Text = project.ProjectName;
+ node.NodeID = project.ProjectId;
+ node.EnableClickEvent = true;
+ this.trProjects.Nodes.Add(node);
+ node.Expanded = true;
+ var unitWork1s = from x in Funs.DB.WBS_UnitWork
+ where x.ProjectId == projectId && x.SuperUnitWork == "0"
+ orderby x.UnitWorkCode
+ select x;
+ foreach (var unitWork1 in unitWork1s)
+ {
+ TreeNode newNode1 = new TreeNode();
+ newNode1.Text = unitWork1.UnitWorkName;
+ newNode1.NodeID = unitWork1.UnitWorkId;
+ newNode1.CommandName = "unitWork";
+ newNode1.EnableExpandEvent = true;
+ newNode1.EnableClickEvent = true;
+ node.Nodes.Add(newNode1);
+ if (unitWork1.UnitWorkId == ppUnitWorkId)
+ {
+ newNode1.Expanded = true;
+ var unitWork2s = from x in Funs.DB.WBS_UnitWork where x.SuperUnitWork == unitWork1.SuperUnitWork orderby x.UnitWorkCode select x;
+ foreach (var unitWork2 in unitWork2s)
+ {
+ TreeNode newNode2 = new TreeNode();
+ newNode2.Text = unitWork2.UnitWorkName;
+ newNode2.NodeID = unitWork2.UnitWorkId;
+ newNode2.CommandName = "unitWork";
+ newNode2.EnableExpandEvent = true;
+ newNode2.EnableClickEvent = true;
+ newNode1.Nodes.Add(newNode2);
+ if (unitWork2.UnitWorkId == pUnitWorkId)
+ {
+ newNode2.Expanded = true;
+ var unitWork3s = from x in Funs.DB.WBS_UnitWork where x.SuperUnitWork == unitWork2.UnitWorkId orderby x.UnitWorkCode select x;
+ foreach (var unitWork3 in unitWork3s)
+ {
+ TreeNode newNode3 = new TreeNode();
+ newNode3.Text = unitWork3.UnitWorkName;
+ newNode3.NodeID = unitWork3.UnitWorkId;
+ newNode3.CommandName = "unitWork";
+ newNode3.EnableExpandEvent = true;
+ newNode3.EnableClickEvent = true;
+ newNode2.Nodes.Add(newNode3);
+ }
+ }
+ else
+ {
+ if (BLL.UnitWorkService.IsExitsUnitWorkBySuperUnitWork(unitWork2.UnitWorkId))
+ {
+ TreeNode emptyNode = new TreeNode();
+ emptyNode.Text = "";
+ emptyNode.NodeID = "";
+ newNode2.Nodes.Add(emptyNode);
+ }
+ }
+ }
+ }
+ else
+ {
+ if (BLL.UnitWorkService.IsExitsUnitWorkBySuperUnitWork(unitWork1.UnitWorkId))
+ {
+ TreeNode emptyNode = new TreeNode();
+ emptyNode.Text = "";
+ emptyNode.NodeID = "";
+ newNode1.Nodes.Add(emptyNode);
+ }
+ }
+ }
+ }
+ this.trProjects.SelectedNodeID = this.hdSelectId.Text;
BindGrid();
}
+ #endregion
}
}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx.designer.cs b/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx.designer.cs
index 1f21c25d..17411897 100644
--- a/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx.designer.cs
@@ -31,13 +31,58 @@ namespace FineUIPro.Web.ProjectData {
protected global::FineUIPro.PageManager PageManager1;
///
- /// Panel1 控件。
+ /// RegionPanel1 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.Panel Panel1;
+ protected global::FineUIPro.RegionPanel RegionPanel1;
+
+ ///
+ /// Region1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Region Region1;
+
+ ///
+ /// panel2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel panel2;
+
+ ///
+ /// trProjects 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Tree trProjects;
+
+ ///
+ /// hdSelectId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdSelectId;
+
+ ///
+ /// Region2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Region Region2;
///
/// Grid1 控件。
@@ -48,69 +93,6 @@ namespace FineUIPro.Web.ProjectData {
///
protected global::FineUIPro.Grid Grid1;
- ///
- /// Toolbar1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Toolbar Toolbar1;
-
- ///
- /// txtUnitWorkCode 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.TextBox txtUnitWorkCode;
-
- ///
- /// txtUnitWorkName 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.TextBox txtUnitWorkName;
-
- ///
- /// btnSearch 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnSearch;
-
- ///
- /// btnRset 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnRset;
-
- ///
- /// btnNew 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnNew;
-
- ///
- /// lblPageIndex 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.WebControls.Label lblPageIndex;
-
///
/// ToolbarSeparator1 控件。
///
@@ -147,6 +129,15 @@ namespace FineUIPro.Web.ProjectData {
///
protected global::FineUIPro.Window Window1;
+ ///
+ /// Window2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window2;
+
///
/// Menu1 控件。
///
@@ -157,30 +148,30 @@ namespace FineUIPro.Web.ProjectData {
protected global::FineUIPro.Menu Menu1;
///
- /// btnMenuModify 控件。
+ /// btnMenuAdd 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.MenuButton btnMenuModify;
+ protected global::FineUIPro.MenuButton btnMenuAdd;
///
- /// btnMenuView 控件。
+ /// btnMenuEdit 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.MenuButton btnMenuView;
+ protected global::FineUIPro.MenuButton btnMenuEdit;
///
- /// btnMenuDel 控件。
+ /// btnMenuDelete 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.MenuButton btnMenuDel;
+ protected global::FineUIPro.MenuButton btnMenuDelete;
}
}
diff --git a/SGGL/FineUIPro.Web/ProjectData/UnitWorkEdit.aspx b/SGGL/FineUIPro.Web/ProjectData/UnitWorkEdit.aspx
index db93ee75..aa3d2f55 100644
--- a/SGGL/FineUIPro.Web/ProjectData/UnitWorkEdit.aspx
+++ b/SGGL/FineUIPro.Web/ProjectData/UnitWorkEdit.aspx
@@ -4,59 +4,31 @@
-单位工程
-
+
+ 编辑单位工程