From 574d897507ab764dc44c06a047a5d2c77fae5566 Mon Sep 17 00:00:00 2001
From: gaofei <181547018@qq.com>
Date: Mon, 22 May 2023 19:40:52 +0800
Subject: [PATCH 1/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=9B=E5=BA=A6?=
=?UTF-8?q?=E6=8A=A5=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
SGGL/FineUIPro.Web/ErrLog.txt | 614 +----
SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 24 +
.../JDGL/CostAnalysis/JDReport.aspx.cs | 2128 ++++++++--------
SGGL/Model/Model.cs | 2141 +++++++++++++++++
4 files changed, 3262 insertions(+), 1645 deletions(-)
diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt
index e2a3e182..b95cf839 100644
--- a/SGGL/FineUIPro.Web/ErrLog.txt
+++ b/SGGL/FineUIPro.Web/ErrLog.txt
@@ -1,624 +1,62 @@
错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
+错误类型:IndexOutOfRangeException
+错误信息:在位置 -1 处没有任何行。
错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2157
-出错时间:05/11/2023 12:32:31
-出错时间:05/11/2023 12:32:32
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2022
-出错时间:05/11/2023 12:32:32
-出错时间:05/11/2023 12:32:32
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1918
-出错时间:05/11/2023 12:32:32
-出错时间:05/11/2023 12:32:32
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1860
-出错时间:05/11/2023 12:32:32
-出错时间:05/11/2023 12:32:32
-
-
-错误信息开始=====>
-错误类型:NullReferenceException
-错误信息:未将对象引用设置到对象的实例。
-错误堆栈:
- 在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
- 在 FineUIPro.ResourceHelper.GetResourceContentAsBinary(String resName, String resVersion)
- 在 FineUIPro.ResourceHandler.ProcessRequest(HttpContext context)
- 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
- 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
- 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-出错时间:05/11/2023 17:07:02
-出错文件:http://localhost:9733/res.axd?font=lib.fa.fontawesome.woff2&t=636128671740000000
-IP地址:::1
-
-出错时间:05/11/2023 17:07:02
-
-
-错误信息开始=====>
-错误类型:NullReferenceException
-错误信息:未将对象引用设置到对象的实例。
-错误堆栈:
- 在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
- 在 FineUIPro.ResourceHelper.GetResourceContentAsBinary(String resName, String resVersion)
- 在 FineUIPro.ResourceHandler.ProcessRequest(HttpContext context)
- 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
- 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
- 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-出错时间:05/16/2023 15:43:58
-出错文件:http://localhost:9733/res.axd?font=lib.fa.fontawesome.woff2&t=636128671740000000
-IP地址:::1
-
-出错时间:05/16/2023 15:43:58
-
-
-错误信息开始=====>
-错误类型:NullReferenceException
-错误信息:未将对象引用设置到对象的实例。
-错误堆栈:
- 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 296
+ 在 System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
+ 在 System.Data.DataRowCollection.get_Item(Int32 index)
+ 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.GetValue() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 112
+ 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 25
在 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)
-出错时间:05/16/2023 16:41:36
-出错文件:http://localhost:9733/indexProject.aspx?projectId=e9fe4b89-f62d-4b3a-a40c-57c87010aa92
-IP地址:::1
-
-出错时间:05/16/2023 16:41:36
-
-
-错误信息开始=====>
-错误类型:InvalidOperationException
-错误信息:不能将 Null 值赋给类型为 System.Double (不可为 null 的值类型)的成员。
-错误堆栈:
- 在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
- 在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
- 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
- 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
- 在 System.Linq.Queryable.Sum[TSource](IQueryable`1 source, Expression`1 selector)
- 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.BindChart() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 280
- 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.GetValue() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 34
- 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 20
- 在 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)
-出错时间:05/17/2023 11:07:58
+出错时间:05/22/2023 16:07:56
出错文件:http://localhost:9733/JDGL/CostAnalysis/JDReport.aspx
IP地址:::1
操作人员:JT
-出错时间:05/17/2023 11:07:58
+出错时间:05/22/2023 16:07:56
错误信息开始=====>
-错误类型:InvalidOperationException
-错误信息:不能将 Null 值赋给类型为 System.Double (不可为 null 的值类型)的成员。
+错误类型:IndexOutOfRangeException
+错误信息:在位置 -1 处没有任何行。
错误堆栈:
- 在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
- 在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
- 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
- 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
- 在 System.Linq.Queryable.Sum[TSource](IQueryable`1 source, Expression`1 selector)
- 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.BindChart() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 268
- 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.GetValue() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 34
- 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 20
+ 在 System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
+ 在 System.Data.DataRowCollection.get_Item(Int32 index)
+ 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.GetValue() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 114
+ 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 25
在 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)
-出错时间:05/17/2023 11:11:44
+出错时间:05/22/2023 16:10:36
出错文件:http://localhost:9733/JDGL/CostAnalysis/JDReport.aspx
IP地址:::1
操作人员:JT
-出错时间:05/17/2023 11:11:44
+出错时间:05/22/2023 16:10:36
错误信息开始=====>
-错误类型:NullReferenceException
-错误信息:未将对象引用设置到对象的实例。
+错误类型:ArgumentException
+错误信息:Data arrays must not be empty.
错误堆栈:
- 在 (TreeNode )
- 在 FineUIPro.TreeCommandEventArgs..ctor(TreeNode node, String commandName, String commandArgument)
- 在 (TreeNode , String , String )
- 在 FineUIPro.Tree.RaisePostBackEvent(String eventArgument)
+ 在 Aspose.Words.Drawing.Charts.ChartSeriesCollection.Add(String seriesName, String[] categories, Double[] values)
+ 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.btnOut_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 466
+ 在 FineUIPro.Button.OnClick(EventArgs e)
+ 在 (Button , EventArgs )
+ 在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
-出错时间:05/17/2023 11:21:27
-出错文件:http://localhost:9733/JDGL/CostAnalysis/EarnedValueCurve.aspx
+出错时间:05/22/2023 16:13:33
+出错文件:http://localhost:9733/JDGL/CostAnalysis/JDReport.aspx
IP地址:::1
操作人员:JT
-出错时间:05/17/2023 11:21:27
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEService.HSSEServiceClient.GetSupervise_SubUnitReportListToSUB() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14204
- 在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2158
-出错时间:05/17/2023 16:36:26
-出错时间:05/17/2023 16:36:26
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckInfo_Table8ItemListToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14228
- 在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2023
-出错时间:05/17/2023 16:36:26
-出错时间:05/17/2023 16:36:26
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckRectifyListToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14220
- 在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1919
-出错时间:05/17/2023 16:36:26
-出错时间:05/17/2023 16:36:26
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEService.HSSEServiceClient.GetInformation_UrgeReportToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14020
- 在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1861
-出错时间:05/17/2023 16:36:26
-出错时间:05/17/2023 16:36:26
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2157
-出错时间:05/20/2023 12:47:17
-出错时间:05/20/2023 12:47:18
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2022
-出错时间:05/20/2023 12:47:18
-出错时间:05/20/2023 12:47:18
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1918
-出错时间:05/20/2023 12:47:18
-出错时间:05/20/2023 12:47:18
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1860
-出错时间:05/20/2023 12:47:18
-出错时间:05/20/2023 12:47:18
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2157
-出错时间:05/20/2023 14:47:17
-出错时间:05/20/2023 14:47:17
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2022
-出错时间:05/20/2023 14:47:17
-出错时间:05/20/2023 14:47:17
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1918
-出错时间:05/20/2023 14:47:17
-出错时间:05/20/2023 14:47:17
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1860
-出错时间:05/20/2023 14:47:17
-出错时间:05/20/2023 14:47:17
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2157
-出错时间:05/22/2023 13:23:54
-出错时间:05/22/2023 13:23:54
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2022
-出错时间:05/22/2023 13:23:54
-出错时间:05/22/2023 13:23:54
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1918
-出错时间:05/22/2023 13:23:54
-出错时间:05/22/2023 13:23:54
-
-
-错误信息开始=====>
-错误类型:ArgumentException
-错误信息:提供的 URI 方案“http”无效,应为“https”。
-参数名: via
-错误堆栈:
- 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
- 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannel()
- 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
- 在 System.ServiceModel.ClientBase`1.get_Channel()
- 在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1860
-出错时间:05/22/2023 13:23:54
-出错时间:05/22/2023 13:23:54
+出错时间:05/22/2023 16:13:33
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 86cfeb13..17c988b7 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -531,9 +531,12 @@
+
+
+
@@ -8090,6 +8093,13 @@
HSEDataCollect.aspx
+
+ DocFind.aspx
+ ASPXCodeBehind
+
+
+ DocFind.aspx
+
DocManage.aspx
ASPXCodeBehind
@@ -8111,6 +8121,20 @@
DocManageView.aspx
+
+ FileCabinet.aspx
+ ASPXCodeBehind
+
+
+ FileCabinet.aspx
+
+
+ PersonalFileCabinet.aspx
+ ASPXCodeBehind
+
+
+ PersonalFileCabinet.aspx
+
AbsenceDuty.aspx
ASPXCodeBehind
diff --git a/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.cs b/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.cs
index f3a20dd9..c511873c 100644
--- a/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.cs
+++ b/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.cs
@@ -109,242 +109,248 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
lastacwp = acwp;
lastbcwp = bcwp;
}
- this.ChartEV.CreateMaryChart(dt, 1220, 420, null);
- decimal BCWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["累计已完工作预算费用-BCWP"].ToString());
- decimal BCWS = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["累计计划工作预算费用-BCWS"].ToString());
- decimal ACWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["累计已完工作实际费用-ACWP"].ToString());
- decimal mBCWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["本月已完工作预算费用-BCWP"].ToString());
- decimal mBCWS = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["本月计划工作预算费用-BCWS"].ToString());
- decimal mACWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["本月已完工作实际费用-ACWP"].ToString());
- decimal CV = BCWP - ACWP;
- decimal SV = BCWP - BCWS;
- decimal CPI = 0;
- if (ACWP > 0)
+ if (dt.Rows.Count > 0)
{
- CPI = BCWP / ACWP;
- }
- decimal SPI = 0;
- if (BCWS > 0)
- {
- SPI = BCWP / BCWS;
- }
- decimal mCV = mBCWP - mACWP;
- decimal mSV = mBCWP - mBCWS;
- decimal mCPI = 0;
- if (mACWP > 0)
- {
- mCPI = mBCWP / mACWP;
- }
- decimal mSPI = 0;
- if (mBCWS > 0)
- {
- mSPI = mBCWP / mBCWS;
- }
- //总体进度
- DataTable table2 = new DataTable();
- table2.Columns.Add(new DataColumn("Id", typeof(String)));
- table2.Columns.Add(new DataColumn("BCWP", typeof(String)));
- table2.Columns.Add(new DataColumn("BCWS", typeof(String)));
- table2.Columns.Add(new DataColumn("ACWP", typeof(String)));
- table2.Columns.Add(new DataColumn("CV", typeof(String)));
- table2.Columns.Add(new DataColumn("SV", typeof(String)));
- table2.Columns.Add(new DataColumn("CPI", typeof(String)));
- table2.Columns.Add(new DataColumn("SPI", typeof(String)));
- DataRow row2;
- row2 = table2.NewRow();
- row2[0] = SQLHelper.GetNewID();
- row2[1] = BCWP.ToString("0.####");
- row2[2] = BCWS.ToString("0.####");
- row2[3] = ACWP.ToString("0.####");
- row2[4] = CV.ToString("0.####");
- row2[5] = SV.ToString("0.####");
- row2[6] = CPI.ToString("0.####");
- row2[7] = SPI.ToString("0.####");
- table2.Rows.Add(row2);
- this.Grid2.DataSource = table2;
- this.Grid2.DataBind();
- //本月进度
- table2.Rows.Clear();
- row2[0] = SQLHelper.GetNewID();
- row2[1] = mBCWP.ToString("0.####");
- row2[2] = mBCWS.ToString("0.####");
- row2[3] = mACWP.ToString("0.####");
- row2[4] = mCV.ToString("0.####");
- row2[5] = mSV.ToString("0.####");
- row2[6] = mCPI.ToString("0.####");
- row2[7] = mSPI.ToString("0.####");
- table2.Rows.Add(row2);
- this.Grid3.DataSource = table2;
- this.Grid3.DataBind();
- //按专业统计
- DataTable table4 = new DataTable();
- table4.Columns.Add(new DataColumn("Id", typeof(String)));
- table4.Columns.Add(new DataColumn("SupId", typeof(String)));
- table4.Columns.Add(new DataColumn("Name", typeof(String)));
- table4.Columns.Add(new DataColumn("mBCWP", typeof(String)));
- table4.Columns.Add(new DataColumn("mBCWS", typeof(String)));
- table4.Columns.Add(new DataColumn("mACWP", typeof(String)));
- table4.Columns.Add(new DataColumn("mCV", typeof(String)));
- table4.Columns.Add(new DataColumn("mSV", typeof(String)));
- table4.Columns.Add(new DataColumn("mCPI", typeof(String)));
- table4.Columns.Add(new DataColumn("mSPI", typeof(String)));
- table4.Columns.Add(new DataColumn("BCWP", typeof(String)));
- table4.Columns.Add(new DataColumn("BCWS", typeof(String)));
- table4.Columns.Add(new DataColumn("ACWP", typeof(String)));
- table4.Columns.Add(new DataColumn("CV", typeof(String)));
- table4.Columns.Add(new DataColumn("SV", typeof(String)));
- table4.Columns.Add(new DataColumn("CPI", typeof(String)));
- table4.Columns.Add(new DataColumn("SPI", typeof(String)));
- Model.SGGLDB db = Funs.DB;
- var cnProfessionInits = from x in db.WBS_CnProfessionInit select x;
- var cnProfessions = from x in db.WBS_CnProfession where x.ProjectId == this.CurrUser.LoginProjectId select x;
- var unitProjectInits = from x in db.Wbs_UnitProjectInit select x;
- var unitProjects = from x in db.Wbs_UnitProject where x.ProjectId == this.CurrUser.LoginProjectId select x;
- var details = from x in db.View_WBS_CostControlParentDetail
- where x.Months == Funs.GetNewDateTime(date)
- select x;
- DataRow row4;
- decimal cnACWP, cnBCWP, cnBCWS, cnmACWP, cnmBCWP, cnmBCWS, cnCV, cnSV, cnCPI, cnSPI, cnmCV, cnmSV, cnmCPI, cnmSPI,
- unACWP, unBCWP, unBCWS, unmACWP, unmBCWP, unmBCWS, unCV, unSV, unCPI, unSPI, unmCV, unmSV, unmCPI, unmSPI;
- int a = 1, b = 1;
- foreach (var cn in cnProfessionInits)
- {
- cnACWP = 0;
- cnBCWP = 0;
- cnBCWS = 0;
- cnmACWP = 0;
- cnmBCWP = 0;
- cnmBCWS = 0;
- cnCV = 0;
- cnSV = 0;
- cnCPI = 0;
- cnSPI = 0;
- cnmCV = 0;
- cnmSV = 0;
- cnmCPI = 0;
- cnmSPI = 0;
- row4 = table4.NewRow();
- row4[0] = a;
- row4[1] = "0";
- row4[2] = cn.CnProfessionName;
- var cnDetails = (from x in details
- join y in cnProfessions on x.ParentId equals y.CnProfessionId
- where y.OldId == cn.CnProfessionId
- select x).ToList();
- cnmACWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
- cnmBCWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
- cnmBCWS = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
- cnmCV = cnmBCWP - cnmACWP;
- cnmSV = cnmBCWP - cnmBCWS;
- if (cnmACWP > 0)
+ this.ChartEV.CreateMaryChart(dt, 1220, 420, null);
+ decimal BCWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["累计已完工作预算费用-BCWP"].ToString());
+ decimal BCWS = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["累计计划工作预算费用-BCWS"].ToString());
+ decimal ACWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["累计已完工作实际费用-ACWP"].ToString());
+ decimal mBCWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["本月已完工作预算费用-BCWP"].ToString());
+ decimal mBCWS = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["本月计划工作预算费用-BCWS"].ToString());
+ decimal mACWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["本月已完工作实际费用-ACWP"].ToString());
+ decimal CV = BCWP - ACWP;
+ decimal SV = BCWP - BCWS;
+ decimal CPI = 0;
+ if (ACWP > 0)
{
- cnmCPI = cnmBCWP / cnmACWP;
+ CPI = BCWP / ACWP;
}
- if (cnmBCWS > 0)
+ decimal SPI = 0;
+ if (BCWS > 0)
{
- cnmSPI = cnmBCWP / cnmBCWS;
+ SPI = BCWP / BCWS;
}
- row4[3] = cnmBCWP.ToString("0.####");
- row4[4] = cnmBCWS.ToString("0.####");
- row4[5] = cnmACWP.ToString("0.####");
- row4[6] = cnmCV.ToString("0.####");
- row4[7] = cnmSV.ToString("0.####");
- row4[8] = cnmCPI.ToString("0.####");
- row4[9] = cnmSPI.ToString("0.####");
- cnACWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalRealCost).Sum().ToString()) / 10000;
- cnBCWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalPlanCost).Sum().ToString()) / 10000;
- cnBCWS = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalPlanValue).Sum().ToString()) / 10000;
- cnCV = cnBCWP - cnACWP;
- cnSV = cnBCWP - cnBCWS;
- if (cnACWP > 0)
+ decimal mCV = mBCWP - mACWP;
+ decimal mSV = mBCWP - mBCWS;
+ decimal mCPI = 0;
+ if (mACWP > 0)
{
- cnCPI = cnBCWP / cnACWP;
+ mCPI = mBCWP / mACWP;
}
- if (cnBCWS > 0)
+ decimal mSPI = 0;
+ if (mBCWS > 0)
{
- cnSPI = cnBCWP / cnBCWS;
+ mSPI = mBCWP / mBCWS;
}
- row4[10] = cnBCWP.ToString("0.####");
- row4[11] = cnBCWS.ToString("0.####");
- row4[12] = cnACWP.ToString("0.####");
- row4[13] = cnCV.ToString("0.####");
- row4[14] = cnSV.ToString("0.####");
- row4[15] = cnCPI.ToString("0.####");
- row4[16] = cnSPI.ToString("0.####");
- table4.Rows.Add(row4);
- b = 1;
- var unLists = (from x in unitProjectInits where x.CnProfessionId == cn.CnProfessionId orderby x.SortIndex select x).ToList();
- foreach (var un in unLists)
+ //总体进度
+ DataTable table2 = new DataTable();
+ table2.Columns.Add(new DataColumn("Id", typeof(String)));
+ table2.Columns.Add(new DataColumn("BCWP", typeof(String)));
+ table2.Columns.Add(new DataColumn("BCWS", typeof(String)));
+ table2.Columns.Add(new DataColumn("ACWP", typeof(String)));
+ table2.Columns.Add(new DataColumn("CV", typeof(String)));
+ table2.Columns.Add(new DataColumn("SV", typeof(String)));
+ table2.Columns.Add(new DataColumn("CPI", typeof(String)));
+ table2.Columns.Add(new DataColumn("SPI", typeof(String)));
+ DataRow row2;
+ row2 = table2.NewRow();
+ row2[0] = SQLHelper.GetNewID();
+ row2[1] = BCWP.ToString("0.####");
+ row2[2] = BCWS.ToString("0.####");
+ row2[3] = ACWP.ToString("0.####");
+ row2[4] = CV.ToString("0.####");
+ row2[5] = SV.ToString("0.####");
+ row2[6] = CPI.ToString("0.####");
+ row2[7] = SPI.ToString("0.####");
+ table2.Rows.Add(row2);
+ this.Grid2.DataSource = table2;
+ this.Grid2.DataBind();
+ //本月进度
+ table2.Rows.Clear();
+ row2[0] = SQLHelper.GetNewID();
+ row2[1] = mBCWP.ToString("0.####");
+ row2[2] = mBCWS.ToString("0.####");
+ row2[3] = mACWP.ToString("0.####");
+ row2[4] = mCV.ToString("0.####");
+ row2[5] = mSV.ToString("0.####");
+ row2[6] = mCPI.ToString("0.####");
+ row2[7] = mSPI.ToString("0.####");
+ table2.Rows.Add(row2);
+ this.Grid3.DataSource = table2;
+ this.Grid3.DataBind();
+ //按专业统计
+ DataTable table4 = new DataTable();
+ table4.Columns.Add(new DataColumn("Id", typeof(String)));
+ table4.Columns.Add(new DataColumn("SupId", typeof(String)));
+ table4.Columns.Add(new DataColumn("Name", typeof(String)));
+ table4.Columns.Add(new DataColumn("mBCWP", typeof(String)));
+ table4.Columns.Add(new DataColumn("mBCWS", typeof(String)));
+ table4.Columns.Add(new DataColumn("mACWP", typeof(String)));
+ table4.Columns.Add(new DataColumn("mCV", typeof(String)));
+ table4.Columns.Add(new DataColumn("mSV", typeof(String)));
+ table4.Columns.Add(new DataColumn("mCPI", typeof(String)));
+ table4.Columns.Add(new DataColumn("mSPI", typeof(String)));
+ table4.Columns.Add(new DataColumn("BCWP", typeof(String)));
+ table4.Columns.Add(new DataColumn("BCWS", typeof(String)));
+ table4.Columns.Add(new DataColumn("ACWP", typeof(String)));
+ table4.Columns.Add(new DataColumn("CV", typeof(String)));
+ table4.Columns.Add(new DataColumn("SV", typeof(String)));
+ table4.Columns.Add(new DataColumn("CPI", typeof(String)));
+ table4.Columns.Add(new DataColumn("SPI", typeof(String)));
+ Model.SGGLDB db = Funs.DB;
+ var cnProfessionInits = from x in db.WBS_CnProfessionInit select x;
+ var cnProfessions = from x in db.WBS_CnProfession where x.ProjectId == this.CurrUser.LoginProjectId select x;
+ var unitProjectInits = from x in db.Wbs_UnitProjectInit select x;
+ var unitProjects = from x in db.Wbs_UnitProject where x.ProjectId == this.CurrUser.LoginProjectId select x;
+ var details = from x in db.View_WBS_CostControlParentDetail
+ where x.Months == Funs.GetNewDateTime(date)
+ select x;
+ DataRow row4;
+ decimal cnACWP, cnBCWP, cnBCWS, cnmACWP, cnmBCWP, cnmBCWS, cnCV, cnSV, cnCPI, cnSPI, cnmCV, cnmSV, cnmCPI, cnmSPI,
+ unACWP, unBCWP, unBCWS, unmACWP, unmBCWP, unmBCWS, unCV, unSV, unCPI, unSPI, unmCV, unmSV, unmCPI, unmSPI;
+ int a = 1, b = 1;
+ foreach (var cn in cnProfessionInits)
{
- unACWP = 0;
- unBCWP = 0;
- unBCWS = 0;
- unmACWP = 0;
- unmBCWP = 0;
- unmBCWS = 0;
- unCV = 0;
- unSV = 0;
- unCPI = 0;
- unSPI = 0;
- unmCV = 0;
- unmSV = 0;
- unmCPI = 0;
- unmSPI = 0;
+ cnACWP = 0;
+ cnBCWP = 0;
+ cnBCWS = 0;
+ cnmACWP = 0;
+ cnmBCWP = 0;
+ cnmBCWS = 0;
+ cnCV = 0;
+ cnSV = 0;
+ cnCPI = 0;
+ cnSPI = 0;
+ cnmCV = 0;
+ cnmSV = 0;
+ cnmCPI = 0;
+ cnmSPI = 0;
row4 = table4.NewRow();
- row4[0] = a.ToString() + "." + b.ToString();
- row4[1] = a;
- row4[2] = un.UnitProjectName;
- var unDetails = from x in details
- join y in unitProjects on x.ParentId equals y.UnitProjectId
- where y.UnitProjectCode == un.UnitProjectCode
- select x;
- unmACWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
- unmBCWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
- unmBCWS = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
- unmCV = unmBCWP - unmACWP;
- unmSV = unmBCWP - unmBCWS;
- if (unmACWP > 0)
+ row4[0] = a;
+ row4[1] = "0";
+ row4[2] = cn.CnProfessionName;
+ var cnDetails = (from x in details
+ join y in cnProfessions on x.ParentId equals y.CnProfessionId
+ where y.OldId == cn.CnProfessionId
+ select x).ToList();
+ cnmACWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
+ cnmBCWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
+ cnmBCWS = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
+ cnmCV = cnmBCWP - cnmACWP;
+ cnmSV = cnmBCWP - cnmBCWS;
+ if (cnmACWP > 0)
{
- unmCPI = unmBCWP / unmACWP;
+ cnmCPI = cnmBCWP / cnmACWP;
}
- if (unmBCWS > 0)
+ if (cnmBCWS > 0)
{
- unmSPI = unmBCWP / unmBCWS;
+ cnmSPI = cnmBCWP / cnmBCWS;
}
- row4[3] = unmBCWP.ToString("0.####");
- row4[4] = unmBCWS.ToString("0.####");
- row4[5] = unmACWP.ToString("0.####");
- row4[6] = unmCV.ToString("0.####");
- row4[7] = unmSV.ToString("0.####");
- row4[8] = unmCPI.ToString("0.####");
- row4[9] = unmSPI.ToString("0.####");
- unACWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalRealCost).Sum().ToString()) / 10000;
- unBCWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalPlanCost).Sum().ToString()) / 10000;
- unBCWS = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalPlanValue).Sum().ToString()) / 10000;
- unCV = unBCWP - unACWP;
- unSV = unBCWP - unBCWS;
- if (unACWP > 0)
+ row4[3] = cnmBCWP.ToString("0.####");
+ row4[4] = cnmBCWS.ToString("0.####");
+ row4[5] = cnmACWP.ToString("0.####");
+ row4[6] = cnmCV.ToString("0.####");
+ row4[7] = cnmSV.ToString("0.####");
+ row4[8] = cnmCPI.ToString("0.####");
+ row4[9] = cnmSPI.ToString("0.####");
+ cnACWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalRealCost).Sum().ToString()) / 10000;
+ cnBCWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalPlanCost).Sum().ToString()) / 10000;
+ cnBCWS = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalPlanValue).Sum().ToString()) / 10000;
+ cnCV = cnBCWP - cnACWP;
+ cnSV = cnBCWP - cnBCWS;
+ if (cnACWP > 0)
{
- unCPI = unBCWP / unACWP;
+ cnCPI = cnBCWP / cnACWP;
}
- if (unBCWS > 0)
+ if (cnBCWS > 0)
{
- unSPI = unBCWP / unBCWS;
+ cnSPI = cnBCWP / cnBCWS;
}
- row4[10] = unBCWP.ToString("0.####");
- row4[11] = unBCWS.ToString("0.####");
- row4[12] = unACWP.ToString("0.####");
- row4[13] = unCV.ToString("0.####");
- row4[14] = unSV.ToString("0.####");
- row4[15] = unCPI.ToString("0.####");
- row4[16] = unSPI.ToString("0.####");
+ row4[10] = cnBCWP.ToString("0.####");
+ row4[11] = cnBCWS.ToString("0.####");
+ row4[12] = cnACWP.ToString("0.####");
+ row4[13] = cnCV.ToString("0.####");
+ row4[14] = cnSV.ToString("0.####");
+ row4[15] = cnCPI.ToString("0.####");
+ row4[16] = cnSPI.ToString("0.####");
table4.Rows.Add(row4);
- b++;
+ b = 1;
+ var unLists = (from x in unitProjectInits where x.CnProfessionId == cn.CnProfessionId orderby x.SortIndex select x).ToList();
+ foreach (var un in unLists)
+ {
+ unACWP = 0;
+ unBCWP = 0;
+ unBCWS = 0;
+ unmACWP = 0;
+ unmBCWP = 0;
+ unmBCWS = 0;
+ unCV = 0;
+ unSV = 0;
+ unCPI = 0;
+ unSPI = 0;
+ unmCV = 0;
+ unmSV = 0;
+ unmCPI = 0;
+ unmSPI = 0;
+ row4 = table4.NewRow();
+ row4[0] = a.ToString() + "." + b.ToString();
+ row4[1] = a;
+ row4[2] = un.UnitProjectName;
+ var unDetails = from x in details
+ join y in unitProjects on x.ParentId equals y.UnitProjectId
+ where y.UnitProjectCode == un.UnitProjectCode
+ select x;
+ unmACWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
+ unmBCWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
+ unmBCWS = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
+ unmCV = unmBCWP - unmACWP;
+ unmSV = unmBCWP - unmBCWS;
+ if (unmACWP > 0)
+ {
+ unmCPI = unmBCWP / unmACWP;
+ }
+ if (unmBCWS > 0)
+ {
+ unmSPI = unmBCWP / unmBCWS;
+ }
+ row4[3] = unmBCWP.ToString("0.####");
+ row4[4] = unmBCWS.ToString("0.####");
+ row4[5] = unmACWP.ToString("0.####");
+ row4[6] = unmCV.ToString("0.####");
+ row4[7] = unmSV.ToString("0.####");
+ row4[8] = unmCPI.ToString("0.####");
+ row4[9] = unmSPI.ToString("0.####");
+ unACWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalRealCost).Sum().ToString()) / 10000;
+ unBCWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalPlanCost).Sum().ToString()) / 10000;
+ unBCWS = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalPlanValue).Sum().ToString()) / 10000;
+ unCV = unBCWP - unACWP;
+ unSV = unBCWP - unBCWS;
+ if (unACWP > 0)
+ {
+ unCPI = unBCWP / unACWP;
+ }
+ if (unBCWS > 0)
+ {
+ unSPI = unBCWP / unBCWS;
+ }
+ row4[10] = unBCWP.ToString("0.####");
+ row4[11] = unBCWS.ToString("0.####");
+ row4[12] = unACWP.ToString("0.####");
+ row4[13] = unCV.ToString("0.####");
+ row4[14] = unSV.ToString("0.####");
+ row4[15] = unCPI.ToString("0.####");
+ row4[16] = unSPI.ToString("0.####");
+ table4.Rows.Add(row4);
+ b++;
+ }
+ a++;
+ }
+ if (table4.Rows.Count > 0)
+ {
+ this.Grid4.DataSource = table4;
+ this.Grid4.DataBind();
}
- a++;
}
- this.Grid4.DataSource = table4;
- this.Grid4.DataBind();
}
}
#endregion
@@ -392,48 +398,6 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
Model.Project_Installation installation = BLL.Project_InstallationService.GetProjectInstallationByProjectId(this.CurrUser.LoginProjectId);
if (installation != null && !string.IsNullOrEmpty(this.txtMonths.Text.Trim()))
{
- string rootPath = Server.MapPath("~/");
- string initTemplatePath = string.Empty;
- string uploadfilepath = string.Empty;
- string newUrl = string.Empty;
- string filePath = string.Empty;
- Model.SGGLDB db = Funs.DB;
- initTemplatePath = Const.JDReportTemplateUrl;
- uploadfilepath = rootPath + initTemplatePath;
- newUrl = uploadfilepath.Replace(".docx", "(" + this.txtMonths.Text.Trim() + ")" + ".docx");
- if (File.Exists(newUrl))
- {
- File.Delete(newUrl);
- }
- File.Copy(uploadfilepath, newUrl);
- //更新书签内容
- Document doc = new Aspose.Words.Document(newUrl);
- DocumentBuilder builder = new DocumentBuilder(doc);
- string projectName = string.Empty;
- var project = ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
- if (project != null)
- {
- projectName = project.ProjectName;
- }
- Bookmark bookmarkProjectName = doc.Range.Bookmarks["ProjectName"];
- if (bookmarkProjectName != null)
- {
- bookmarkProjectName.Text = projectName;
- }
- Bookmark bookmarkMonths = doc.Range.Bookmarks["Months"];
- if (bookmarkMonths != null)
- {
- string[] strs = this.txtMonths.Text.Trim().Split('-');
- bookmarkMonths.Text = strs[0] + "年" + strs[1] + "月";
- }
-
- //插入图表
- builder.MoveToBookmark("Chart");
- Shape shape = builder.InsertChart(ChartType.Line, 432, 252);
- Chart chart = shape.Chart;
- chart.Title.Text = "赢得值曲线";
- ChartSeriesCollection seriesColl = chart.Series;
- seriesColl.Clear();
string id = installation.InstallationId;
string date = this.txtMonths.Text.Trim() + "-01";
string strSql = "select distinct (cast(YEAR(Months) as varchar(4))+'.'+cast(MONTH(Months) as varchar(2))) as 月份,t.Months," +
@@ -446,554 +410,481 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
new SqlParameter("@Months",date),
};
DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
- string[] categories = new string[dt.Rows.Count];
- double[] d1 = new double[dt.Rows.Count];
- double[] d2 = new double[dt.Rows.Count];
- double[] d3 = new double[dt.Rows.Count];
- for (int i = 0; i < dt.Rows.Count; i++)
+ if (dt.Rows.Count > 0)
{
- categories[i] = dt.Rows[i]["月份"].ToString();
- d1[i] = Convert.ToDouble(dt.Rows[i]["累计已完工作实际费用-ACWP"].ToString()) / 10000;
- d2[i] = Convert.ToDouble(dt.Rows[i]["累计已完工作预算费用-BCWP"].ToString()) / 10000;
- d3[i] = Convert.ToDouble(dt.Rows[i]["累计计划工作预算费用-BCWS"].ToString()) / 10000;
- }
- seriesColl.Add("累计已完工作实际费用-ACWP", categories, d1);
- seriesColl.Add("累计已完工作预算费用-BCWP", categories, d2);
- seriesColl.Add("累计计划工作预算费用-BCWS", categories, d3);
+ string rootPath = Server.MapPath("~/");
+ string initTemplatePath = string.Empty;
+ string uploadfilepath = string.Empty;
+ string newUrl = string.Empty;
+ string filePath = string.Empty;
+ Model.SGGLDB db = Funs.DB;
+ initTemplatePath = Const.JDReportTemplateUrl;
+ uploadfilepath = rootPath + initTemplatePath;
+ newUrl = uploadfilepath.Replace(".docx", "(" + this.txtMonths.Text.Trim() + ")" + ".docx");
+ if (File.Exists(newUrl))
+ {
+ File.Delete(newUrl);
+ }
+ File.Copy(uploadfilepath, newUrl);
+ //更新书签内容
+ Document doc = new Aspose.Words.Document(newUrl);
+ DocumentBuilder builder = new DocumentBuilder(doc);
+ string projectName = string.Empty;
+ var project = ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
+ if (project != null)
+ {
+ projectName = project.ProjectName;
+ }
+ Bookmark bookmarkProjectName = doc.Range.Bookmarks["ProjectName"];
+ if (bookmarkProjectName != null)
+ {
+ bookmarkProjectName.Text = projectName;
+ }
+ Bookmark bookmarkMonths = doc.Range.Bookmarks["Months"];
+ if (bookmarkMonths != null)
+ {
+ string[] strs = this.txtMonths.Text.Trim().Split('-');
+ bookmarkMonths.Text = strs[0] + "年" + strs[1] + "月";
+ }
- decimal BCWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["累计已完工作预算费用-BCWP"].ToString());
- decimal BCWS = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["累计计划工作预算费用-BCWS"].ToString());
- decimal ACWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["累计已完工作实际费用-ACWP"].ToString());
- decimal mBCWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["本月已完工作预算费用-BCWP"].ToString());
- decimal mBCWS = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["本月计划工作预算费用-BCWS"].ToString());
- decimal mACWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["本月已完工作实际费用-ACWP"].ToString());
- decimal CV = BCWP / 10000 - ACWP / 10000;
- decimal SV = BCWP / 10000 - BCWS / 10000;
- decimal CPI = 0;
- if (ACWP > 0)
- {
- CPI = BCWP / ACWP;
- }
- decimal SPI = 0;
- if (BCWS > 0)
- {
- SPI = BCWP / BCWS;
- }
- decimal mCV = mBCWP / 10000 - mACWP / 10000;
- decimal mSV = mBCWP / 10000 - mBCWS / 10000;
- decimal mCPI = 0;
- if (mACWP > 0)
- {
- mCPI = mBCWP / mACWP;
- }
- decimal mSPI = 0;
- if (mBCWS > 0)
- {
- mSPI = mBCWP / mBCWS;
- }
- #region 项目总体施工进度情况
- //项目总体施工进度情况
- builder.MoveToBookmark("Form2");
- builder.StartTable();
- builder.CellFormat.Borders.LineStyle = LineStyle.Single;
- builder.CellFormat.Borders.Color = System.Drawing.Color.Black;
- builder.Bold = false;
- builder.RowFormat.Height = 20;
- builder.Font.Size = 10;
+ //插入图表
+ builder.MoveToBookmark("Chart");
+ Shape shape = builder.InsertChart(ChartType.Line, 432, 252);
+ Chart chart = shape.Chart;
+ chart.Title.Text = "赢得值曲线";
+ ChartSeriesCollection seriesColl = chart.Series;
+ seriesColl.Clear();
- //序号
- //builder.InsertCell();
- //builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- //builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- //builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- //builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- //builder.CellFormat.Width = 30;
- //builder.Write("序号");
- //赢得值参数(单位:万元)
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 240;
- builder.Write("赢得值参数(单位:万元)");
- //赢得值评价指标
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 320;
- builder.Write("赢得值评价指标");
- builder.EndRow();
- //BCWP
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write("BCWP");
- //BCWS
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write("BCWS");
- //ACWP
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write("ACWP");
- //CV
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write("CV");
- //SV
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write("SV");
- //CPI
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write("CPI");
- //SPI
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write("SPI");
- builder.EndRow();
- ////序号
- //builder.InsertCell();
- //builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- //builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- //builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- //builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- //builder.CellFormat.Width = 30;
- //builder.Write(h.ToString());
- //问题内容
- //BCWP
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write((BCWP / 10000).ToString("0.####"));
- //BCWS
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write((BCWS / 10000).ToString("0.####"));
- //ACWP
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write((ACWP / 10000).ToString("0.####"));
- //CV
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write(CV.ToString("0.####"));
- //SV
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write(SV.ToString("0.####"));
- //CPI
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write(CPI.ToString("0.####"));
- //SPI
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write(SPI.ToString("0.####"));
- builder.EndRow();
- #endregion
- #region 本月施工进度情况
- //本月施工进度情况
- builder.MoveToBookmark("Form3");
- builder.StartTable();
- builder.CellFormat.Borders.LineStyle = LineStyle.Single;
- builder.CellFormat.Borders.Color = System.Drawing.Color.Black;
- builder.Bold = false;
- builder.RowFormat.Height = 20;
- builder.Font.Size = 10;
+ string[] categories = new string[dt.Rows.Count];
+ double[] d1 = new double[dt.Rows.Count];
+ double[] d2 = new double[dt.Rows.Count];
+ double[] d3 = new double[dt.Rows.Count];
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ categories[i] = dt.Rows[i]["月份"].ToString();
+ d1[i] = Convert.ToDouble(dt.Rows[i]["累计已完工作实际费用-ACWP"].ToString()) / 10000;
+ d2[i] = Convert.ToDouble(dt.Rows[i]["累计已完工作预算费用-BCWP"].ToString()) / 10000;
+ d3[i] = Convert.ToDouble(dt.Rows[i]["累计计划工作预算费用-BCWS"].ToString()) / 10000;
+ }
+ seriesColl.Add("累计已完工作实际费用-ACWP", categories, d1);
+ seriesColl.Add("累计已完工作预算费用-BCWP", categories, d2);
+ seriesColl.Add("累计计划工作预算费用-BCWS", categories, d3);
- //序号
- //builder.InsertCell();
- //builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- //builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- //builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- //builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- //builder.CellFormat.Width = 30;
- //builder.Write("序号");
- //赢得值参数(单位:万元)
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 240;
- builder.Write("赢得值参数(单位:万元)");
- //赢得值评价指标
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 320;
- builder.Write("赢得值评价指标");
- builder.EndRow();
- //BCWP
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write("BCWP");
- //BCWS
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write("BCWS");
- //ACWP
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write("ACWP");
- //CV
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write("CV");
- //SV
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write("SV");
- //CPI
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write("CPI");
- //SPI
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write("SPI");
- builder.EndRow();
- //问题内容
- //BCWP
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write((mBCWP / 10000).ToString("0.####"));
- //BCWS
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write((mBCWS / 10000).ToString("0.####"));
- //ACWP
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write((mACWP / 10000).ToString("0.####"));
- //CV
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write(mCV.ToString("0.####"));
- //SV
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write(mSV.ToString("0.####"));
- //CPI
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write(mCPI.ToString("0.####"));
- //SPI
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 80;
- builder.Write(mSPI.ToString("0.####"));
- builder.EndRow();
- #endregion
- #region 专业和分部工程工程施工进度情况
- //专业和分部工程工程施工进度情况
- builder.MoveToBookmark("Form4");
- builder.StartTable();
- builder.CellFormat.Borders.LineStyle = LineStyle.Single;
- builder.CellFormat.Borders.Color = System.Drawing.Color.Black;
- builder.Bold = false;
- builder.RowFormat.Height = 20;
- builder.Font.Size = 10;
+ decimal BCWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["累计已完工作预算费用-BCWP"].ToString());
+ decimal BCWS = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["累计计划工作预算费用-BCWS"].ToString());
+ decimal ACWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["累计已完工作实际费用-ACWP"].ToString());
+ decimal mBCWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["本月已完工作预算费用-BCWP"].ToString());
+ decimal mBCWS = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["本月计划工作预算费用-BCWS"].ToString());
+ decimal mACWP = Funs.GetNewDecimalOrZero(dt.Rows[dt.Rows.Count - 1]["本月已完工作实际费用-ACWP"].ToString());
+ decimal CV = BCWP / 10000 - ACWP / 10000;
+ decimal SV = BCWP / 10000 - BCWS / 10000;
+ decimal CPI = 0;
+ if (ACWP > 0)
+ {
+ CPI = BCWP / ACWP;
+ }
+ decimal SPI = 0;
+ if (BCWS > 0)
+ {
+ SPI = BCWP / BCWS;
+ }
+ decimal mCV = mBCWP / 10000 - mACWP / 10000;
+ decimal mSV = mBCWP / 10000 - mBCWS / 10000;
+ decimal mCPI = 0;
+ if (mACWP > 0)
+ {
+ mCPI = mBCWP / mACWP;
+ }
+ decimal mSPI = 0;
+ if (mBCWS > 0)
+ {
+ mSPI = mBCWP / mBCWS;
+ }
+ #region 项目总体施工进度情况
+ //项目总体施工进度情况
+ builder.MoveToBookmark("Form2");
+ builder.StartTable();
+ builder.CellFormat.Borders.LineStyle = LineStyle.Single;
+ builder.CellFormat.Borders.Color = System.Drawing.Color.Black;
+ builder.Bold = false;
+ builder.RowFormat.Height = 20;
+ builder.Font.Size = 10;
- //序号
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 30;
- builder.Write("序号");
- //专业
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("专业");
- //分部工程
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 60;
- builder.Write("分部工程");
- //本月赢得值参数(单位:万元)
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 150;
- builder.Write("本月赢得值参数(单位:万元)");
- //本月赢得值评价指标
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 200;
- builder.Write("本月赢得值评价指标");
- builder.EndRow();
- //序号
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 30;
- builder.Write("序号");
- //专业
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("专业");
- //分部工程
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 60;
- builder.Write("分部工程");
- //BCWP
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("BCWP");
- //BCWS
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("BCWS");
- //ACWP
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("ACWP");
- //CV
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("CV");
- //SV
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("SV");
- //CPI
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("CPI");
- //SPI
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("SPI");
- builder.EndRow();
- var cnProfessionInits = from x in db.WBS_CnProfessionInit select x;
- var cnProfessions = from x in db.WBS_CnProfession where x.ProjectId == this.CurrUser.LoginProjectId select x;
- var unitProjectInits = from x in db.Wbs_UnitProjectInit select x;
- var unitProjects = from x in db.Wbs_UnitProject where x.ProjectId == this.CurrUser.LoginProjectId select x;
- var details = from x in db.View_WBS_CostControlParentDetail
- where x.Months == Funs.GetNewDateTime(date)
- select x;
- decimal cnACWP, cnBCWP, cnBCWS, cnmACWP, cnmBCWP, cnmBCWS, cnCV, cnSV, cnCPI, cnSPI, cnmCV, cnmSV, cnmCPI, cnmSPI,
- unACWP, unBCWP, unBCWS, unmACWP, unmBCWP, unmBCWS, unCV, unSV, unCPI, unSPI, unmCV, unmSV, unmCPI, unmSPI;
- int a = 1, b = 1;
- foreach (var cn in cnProfessionInits)
- {
- cnmACWP = 0;
- cnmBCWP = 0;
- cnmBCWS = 0;
- cnmCV = 0;
- cnmSV = 0;
- cnmCPI = 0;
- cnmSPI = 0;
+ //序号
+ //builder.InsertCell();
+ //builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ //builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ //builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ //builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ //builder.CellFormat.Width = 30;
+ //builder.Write("序号");
+ //赢得值参数(单位:万元)
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 240;
+ builder.Write("赢得值参数(单位:万元)");
+ //赢得值评价指标
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 320;
+ builder.Write("赢得值评价指标");
+ builder.EndRow();
+ //BCWP
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write("BCWP");
+ //BCWS
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write("BCWS");
+ //ACWP
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write("ACWP");
+ //CV
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write("CV");
+ //SV
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write("SV");
+ //CPI
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write("CPI");
+ //SPI
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write("SPI");
+ builder.EndRow();
+ ////序号
+ //builder.InsertCell();
+ //builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ //builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ //builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ //builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ //builder.CellFormat.Width = 30;
+ //builder.Write(h.ToString());
+ //问题内容
+ //BCWP
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write((BCWP / 10000).ToString("0.####"));
+ //BCWS
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write((BCWS / 10000).ToString("0.####"));
+ //ACWP
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write((ACWP / 10000).ToString("0.####"));
+ //CV
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write(CV.ToString("0.####"));
+ //SV
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write(SV.ToString("0.####"));
+ //CPI
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write(CPI.ToString("0.####"));
+ //SPI
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write(SPI.ToString("0.####"));
+ builder.EndRow();
+ #endregion
+ #region 本月施工进度情况
+ //本月施工进度情况
+ builder.MoveToBookmark("Form3");
+ builder.StartTable();
+ builder.CellFormat.Borders.LineStyle = LineStyle.Single;
+ builder.CellFormat.Borders.Color = System.Drawing.Color.Black;
+ builder.Bold = false;
+ builder.RowFormat.Height = 20;
+ builder.Font.Size = 10;
+
+ //序号
+ //builder.InsertCell();
+ //builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ //builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ //builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ //builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ //builder.CellFormat.Width = 30;
+ //builder.Write("序号");
+ //赢得值参数(单位:万元)
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 240;
+ builder.Write("赢得值参数(单位:万元)");
+ //赢得值评价指标
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 320;
+ builder.Write("赢得值评价指标");
+ builder.EndRow();
+ //BCWP
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write("BCWP");
+ //BCWS
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write("BCWS");
+ //ACWP
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write("ACWP");
+ //CV
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write("CV");
+ //SV
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write("SV");
+ //CPI
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write("CPI");
+ //SPI
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write("SPI");
+ builder.EndRow();
+ //问题内容
+ //BCWP
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write((mBCWP / 10000).ToString("0.####"));
+ //BCWS
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write((mBCWS / 10000).ToString("0.####"));
+ //ACWP
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write((mACWP / 10000).ToString("0.####"));
+ //CV
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write(mCV.ToString("0.####"));
+ //SV
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write(mSV.ToString("0.####"));
+ //CPI
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write(mCPI.ToString("0.####"));
+ //SPI
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 80;
+ builder.Write(mSPI.ToString("0.####"));
+ builder.EndRow();
+ #endregion
+ #region 专业和分部工程工程施工进度情况
+ //专业和分部工程工程施工进度情况
+ builder.MoveToBookmark("Form4");
+ builder.StartTable();
+ builder.CellFormat.Borders.LineStyle = LineStyle.Single;
+ builder.CellFormat.Borders.Color = System.Drawing.Color.Black;
+ builder.Bold = false;
+ builder.RowFormat.Height = 20;
+ builder.Font.Size = 10;
//序号
builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;
builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 30;
- builder.Write(a.ToString());
+ builder.Write("序号");
//专业
builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;
builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cn.CnProfessionName);
+ builder.Write("专业");
//分部工程
builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 60;
+ builder.Write("分部工程");
+ //本月赢得值参数(单位:万元)
+ builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 150;
+ builder.Write("本月赢得值参数(单位:万元)");
+ //本月赢得值评价指标
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 200;
+ builder.Write("本月赢得值评价指标");
+ builder.EndRow();
+ //序号
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 30;
+ builder.Write("序号");
+ //专业
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write("专业");
+ //分部工程
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 60;
- builder.Write(string.Empty);
- var cnDetails = (from x in details
- join y in cnProfessions on x.ParentId equals y.CnProfessionId
- where y.OldId == cn.CnProfessionId
- select x).ToList();
- cnmACWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
- cnmBCWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
- cnmBCWS = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
- cnmCV = cnmBCWP - cnmACWP;
- cnmSV = cnmBCWP - cnmBCWS;
- if (cnmACWP > 0)
- {
- cnmCPI = cnmBCWP / cnmACWP;
- }
- if (cnmBCWS > 0)
- {
- cnmSPI = cnmBCWP / cnmBCWS;
- }
+ builder.Write("分部工程");
//BCWP
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1001,7 +892,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cnmBCWP.ToString("0.####"));
+ builder.Write("BCWP");
//BCWS
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1009,7 +900,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cnmBCWS.ToString("0.####"));
+ builder.Write("BCWS");
//ACWP
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1017,7 +908,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cnmACWP.ToString("0.####"));
+ builder.Write("ACWP");
//CV
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1025,7 +916,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cnmCV.ToString("0.####"));
+ builder.Write("CV");
//SV
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1033,15 +924,15 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cnmSV.ToString("0.####"));
- //CPI
+ builder.Write("SV");
+ //CPI
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cnmCPI.ToString("0.####"));
+ builder.Write("CPI");
//SPI
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1049,19 +940,27 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cnmSPI.ToString("0.####"));
+ builder.Write("SPI");
builder.EndRow();
- b = 1;
- var unLists = (from x in unitProjectInits where x.CnProfessionId == cn.CnProfessionId orderby x.SortIndex select x).ToList();
- foreach (var un in unLists)
+ var cnProfessionInits = from x in db.WBS_CnProfessionInit select x;
+ var cnProfessions = from x in db.WBS_CnProfession where x.ProjectId == this.CurrUser.LoginProjectId select x;
+ var unitProjectInits = from x in db.Wbs_UnitProjectInit select x;
+ var unitProjects = from x in db.Wbs_UnitProject where x.ProjectId == this.CurrUser.LoginProjectId select x;
+ var details = from x in db.View_WBS_CostControlParentDetail
+ where x.Months == Funs.GetNewDateTime(date)
+ select x;
+ decimal cnACWP, cnBCWP, cnBCWS, cnmACWP, cnmBCWP, cnmBCWS, cnCV, cnSV, cnCPI, cnSPI, cnmCV, cnmSV, cnmCPI, cnmSPI,
+ unACWP, unBCWP, unBCWS, unmACWP, unmBCWP, unmBCWS, unCV, unSV, unCPI, unSPI, unmCV, unmSV, unmCPI, unmSPI;
+ int a = 1, b = 1;
+ foreach (var cn in cnProfessionInits)
{
- unmACWP = 0;
- unmBCWP = 0;
- unmBCWS = 0;
- unmCV = 0;
- unmSV = 0;
- unmCPI = 0;
- unmSPI = 0;
+ cnmACWP = 0;
+ cnmBCWP = 0;
+ cnmBCWS = 0;
+ cnmCV = 0;
+ cnmSV = 0;
+ cnmCPI = 0;
+ cnmSPI = 0;
//序号
builder.InsertCell();
@@ -1070,7 +969,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 30;
- builder.Write(a.ToString() + "." + b.ToString());
+ builder.Write(a.ToString());
//专业
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1078,7 +977,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(string.Empty);
+ builder.Write(cn.CnProfessionName);
//分部工程
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1086,23 +985,23 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 60;
- builder.Write(un.UnitProjectName);
- var unDetails = from x in details
- join y in unitProjects on x.ParentId equals y.UnitProjectId
- where y.UnitProjectCode == un.UnitProjectCode
- select x;
- unmACWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
- unmBCWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
- unmBCWS = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
- unmCV = unmBCWP - unmACWP;
- unmSV = unmBCWP - unmBCWS;
- if (unmACWP > 0)
+ builder.Write(string.Empty);
+ var cnDetails = (from x in details
+ join y in cnProfessions on x.ParentId equals y.CnProfessionId
+ where y.OldId == cn.CnProfessionId
+ select x).ToList();
+ cnmACWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
+ cnmBCWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
+ cnmBCWS = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
+ cnmCV = cnmBCWP - cnmACWP;
+ cnmSV = cnmBCWP - cnmBCWS;
+ if (cnmACWP > 0)
{
- unmCPI = unmBCWP / unmACWP;
+ cnmCPI = cnmBCWP / cnmACWP;
}
- if (unmBCWS > 0)
+ if (cnmBCWS > 0)
{
- unmSPI = unmBCWP / unmBCWS;
+ cnmSPI = cnmBCWP / cnmBCWS;
}
//BCWP
builder.InsertCell();
@@ -1111,7 +1010,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(unmBCWP.ToString("0.####"));
+ builder.Write(cnmBCWP.ToString("0.####"));
//BCWS
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1119,7 +1018,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(unmBCWS.ToString("0.####"));
+ builder.Write(cnmBCWS.ToString("0.####"));
//ACWP
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1127,7 +1026,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(unmACWP.ToString("0.####"));
+ builder.Write(cnmACWP.ToString("0.####"));
//CV
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1135,7 +1034,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(unmCV.ToString("0.####"));
+ builder.Write(cnmCV.ToString("0.####"));
//SV
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1143,7 +1042,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(unmSV.ToString("0.####"));
+ builder.Write(cnmSV.ToString("0.####"));
//CPI
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1151,7 +1050,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(unmCPI.ToString("0.####"));
+ builder.Write(cnmCPI.ToString("0.####"));
//SPI
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1159,211 +1058,199 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(unmSPI.ToString("0.####"));
+ builder.Write(cnmSPI.ToString("0.####"));
builder.EndRow();
- b++;
+ b = 1;
+ var unLists = (from x in unitProjectInits where x.CnProfessionId == cn.CnProfessionId orderby x.SortIndex select x).ToList();
+ foreach (var un in unLists)
+ {
+ unmACWP = 0;
+ unmBCWP = 0;
+ unmBCWS = 0;
+ unmCV = 0;
+ unmSV = 0;
+ unmCPI = 0;
+ unmSPI = 0;
+
+ //序号
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 30;
+ builder.Write(a.ToString() + "." + b.ToString());
+ //专业
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(string.Empty);
+ //分部工程
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 60;
+ builder.Write(un.UnitProjectName);
+ var unDetails = from x in details
+ join y in unitProjects on x.ParentId equals y.UnitProjectId
+ where y.UnitProjectCode == un.UnitProjectCode
+ select x;
+ unmACWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
+ unmBCWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
+ unmBCWS = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
+ unmCV = unmBCWP - unmACWP;
+ unmSV = unmBCWP - unmBCWS;
+ if (unmACWP > 0)
+ {
+ unmCPI = unmBCWP / unmACWP;
+ }
+ if (unmBCWS > 0)
+ {
+ unmSPI = unmBCWP / unmBCWS;
+ }
+ //BCWP
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(unmBCWP.ToString("0.####"));
+ //BCWS
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(unmBCWS.ToString("0.####"));
+ //ACWP
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(unmACWP.ToString("0.####"));
+ //CV
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(unmCV.ToString("0.####"));
+ //SV
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(unmSV.ToString("0.####"));
+ //CPI
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(unmCPI.ToString("0.####"));
+ //SPI
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(unmSPI.ToString("0.####"));
+ builder.EndRow();
+ b++;
+ }
+ a++;
}
- a++;
- }
- builder.MoveToBookmark("Form42");
- builder.StartTable();
- builder.CellFormat.Borders.LineStyle = LineStyle.Single;
- builder.CellFormat.Borders.Color = System.Drawing.Color.Black;
- builder.Bold = false;
- builder.RowFormat.Height = 20;
- builder.Font.Size = 10;
+ builder.MoveToBookmark("Form42");
+ builder.StartTable();
+ builder.CellFormat.Borders.LineStyle = LineStyle.Single;
+ builder.CellFormat.Borders.Color = System.Drawing.Color.Black;
+ builder.Bold = false;
+ builder.RowFormat.Height = 20;
+ builder.Font.Size = 10;
- //序号
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 30;
- builder.Write("序号");
- //专业
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("专业");
- //分部工程
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 60;
- builder.Write("分部工程");
- //累计赢得值参数(单位:万元)
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.CellFormat.VerticalMerge = CellMerge.None;
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 150;
- builder.Write("累计赢得值参数(单位:万元)");
- //累计赢得值评价指标
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.CellFormat.VerticalMerge = CellMerge.None;
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 200;
- builder.Write("累计赢得值评价指标");
- builder.EndRow();
- //序号
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 30;
- builder.Write("序号");
- //专业
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("专业");
- //分部工程
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 60;
- builder.Write("分部工程");
- //BCWP
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("BCWP");
- //BCWS
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("BCWS");
- //ACWP
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("ACWP");
- //CV
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("CV");
- //SV
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("SV");
- //CPI
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("CPI");
- //SPI
- builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
- builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
- builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
- builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
- builder.CellFormat.Width = 50;
- builder.Write("SPI");
- builder.EndRow();
- a = 1;
- b = 1;
- foreach (var cn in cnProfessionInits)
- {
- cnACWP = 0;
- cnBCWP = 0;
- cnBCWS = 0;
- cnCV = 0;
- cnSV = 0;
- cnCPI = 0;
- cnSPI = 0;
//序号
builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;
builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 30;
- builder.Write(a.ToString());
+ builder.Write("序号");
//专业
builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;
builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cn.CnProfessionName);
+ builder.Write("专业");
//分部工程
builder.InsertCell();
- builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;
builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 60;
- builder.Write(string.Empty);
- var cnDetails = (from x in details
- join y in cnProfessions on x.ParentId equals y.CnProfessionId
- where y.OldId == cn.CnProfessionId
- select x).ToList();
- cnmACWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
- cnmBCWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
- cnmBCWS = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
- cnmCV = cnmBCWP - cnmACWP;
- cnmSV = cnmBCWP - cnmBCWS;
- if (cnmACWP > 0)
- {
- cnmCPI = cnmBCWP / cnmACWP;
- }
- if (cnmBCWS > 0)
- {
- cnmSPI = cnmBCWP / cnmBCWS;
- }
- cnACWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalRealCost).Sum().ToString()) / 10000;
- cnBCWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalPlanCost).Sum().ToString()) / 10000;
- cnBCWS = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalPlanValue).Sum().ToString()) / 10000;
- cnCV = cnBCWP - cnACWP;
- cnSV = cnBCWP - cnBCWS;
- if (cnACWP > 0)
- {
- cnCPI = cnBCWP / cnACWP;
- }
- if (cnBCWS > 0)
- {
- cnSPI = cnBCWP / cnBCWS;
- }
+ builder.Write("分部工程");
+ //累计赢得值参数(单位:万元)
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.CellFormat.VerticalMerge = CellMerge.None;
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 150;
+ builder.Write("累计赢得值参数(单位:万元)");
+ //累计赢得值评价指标
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.CellFormat.VerticalMerge = CellMerge.None;
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 200;
+ builder.Write("累计赢得值评价指标");
+ builder.EndRow();
+ //序号
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 30;
+ builder.Write("序号");
+ //专业
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write("专业");
+ //分部工程
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 60;
+ builder.Write("分部工程");
//BCWP
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1371,7 +1258,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cnBCWP.ToString("0.####"));
+ builder.Write("BCWP");
//BCWS
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1379,7 +1266,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cnBCWS.ToString("0.####"));
+ builder.Write("BCWS");
//ACWP
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1387,7 +1274,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cnACWP.ToString("0.####"));
+ builder.Write("ACWP");
//CV
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1395,7 +1282,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cnCV.ToString("0.####"));
+ builder.Write("CV");
//SV
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1403,15 +1290,15 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cnSV.ToString("0.####"));
- //CPI
+ builder.Write("SV");
+ //CPI
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cnCPI.ToString("0.####"));
+ builder.Write("CPI");
//SPI
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1419,19 +1306,19 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(cnSPI.ToString("0.####"));
+ builder.Write("SPI");
builder.EndRow();
+ a = 1;
b = 1;
- var unLists = (from x in unitProjectInits where x.CnProfessionId == cn.CnProfessionId orderby x.SortIndex select x).ToList();
- foreach (var un in unLists)
+ foreach (var cn in cnProfessionInits)
{
- unACWP = 0;
- unBCWP = 0;
- unBCWS = 0;
- unCV = 0;
- unSV = 0;
- unCPI = 0;
- unSPI = 0;
+ cnACWP = 0;
+ cnBCWP = 0;
+ cnBCWS = 0;
+ cnCV = 0;
+ cnSV = 0;
+ cnCPI = 0;
+ cnSPI = 0;
//序号
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1439,7 +1326,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 30;
- builder.Write(a.ToString() + "." + b.ToString());
+ builder.Write(a.ToString());
//专业
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1447,7 +1334,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(string.Empty);
+ builder.Write(cn.CnProfessionName);
//分部工程
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1455,23 +1342,36 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 60;
- builder.Write(un.UnitProjectName);
- var unDetails = from x in details
- join y in unitProjects on x.ParentId equals y.UnitProjectId
- where y.UnitProjectCode == un.UnitProjectCode
- select x;
- unACWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalRealCost).Sum().ToString()) / 10000;
- unBCWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalPlanCost).Sum().ToString()) / 10000;
- unBCWS = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalPlanValue).Sum().ToString()) / 10000;
- unCV = unBCWP - unACWP;
- unSV = unBCWP - unBCWS;
- if (unACWP > 0)
+ builder.Write(string.Empty);
+ var cnDetails = (from x in details
+ join y in cnProfessions on x.ParentId equals y.CnProfessionId
+ where y.OldId == cn.CnProfessionId
+ select x).ToList();
+ cnmACWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
+ cnmBCWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
+ cnmBCWS = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
+ cnmCV = cnmBCWP - cnmACWP;
+ cnmSV = cnmBCWP - cnmBCWS;
+ if (cnmACWP > 0)
{
- unCPI = unBCWP / unACWP;
+ cnmCPI = cnmBCWP / cnmACWP;
}
- if (unBCWS > 0)
+ if (cnmBCWS > 0)
{
- unSPI = unBCWP / unBCWS;
+ cnmSPI = cnmBCWP / cnmBCWS;
+ }
+ cnACWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalRealCost).Sum().ToString()) / 10000;
+ cnBCWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalPlanCost).Sum().ToString()) / 10000;
+ cnBCWS = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalPlanValue).Sum().ToString()) / 10000;
+ cnCV = cnBCWP - cnACWP;
+ cnSV = cnBCWP - cnBCWS;
+ if (cnACWP > 0)
+ {
+ cnCPI = cnBCWP / cnACWP;
+ }
+ if (cnBCWS > 0)
+ {
+ cnSPI = cnBCWP / cnBCWS;
}
//BCWP
builder.InsertCell();
@@ -1480,7 +1380,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(unBCWP.ToString("0.####"));
+ builder.Write(cnBCWP.ToString("0.####"));
//BCWS
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1488,7 +1388,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(unBCWS.ToString("0.####"));
+ builder.Write(cnBCWS.ToString("0.####"));
//ACWP
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1496,7 +1396,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(unACWP.ToString("0.####"));
+ builder.Write(cnACWP.ToString("0.####"));
//CV
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1504,7 +1404,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(unCV.ToString("0.####"));
+ builder.Write(cnCV.ToString("0.####"));
//SV
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1512,7 +1412,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(unSV.ToString("0.####"));
+ builder.Write(cnSV.ToString("0.####"));
//CPI
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1520,7 +1420,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(unCPI.ToString("0.####"));
+ builder.Write(cnCPI.ToString("0.####"));
//SPI
builder.InsertCell();
builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
@@ -1528,30 +1428,144 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
builder.CellFormat.Width = 50;
- builder.Write(unSPI.ToString("0.####"));
+ builder.Write(cnSPI.ToString("0.####"));
builder.EndRow();
- b++;
+ b = 1;
+ var unLists = (from x in unitProjectInits where x.CnProfessionId == cn.CnProfessionId orderby x.SortIndex select x).ToList();
+ foreach (var un in unLists)
+ {
+ unACWP = 0;
+ unBCWP = 0;
+ unBCWS = 0;
+ unCV = 0;
+ unSV = 0;
+ unCPI = 0;
+ unSPI = 0;
+ //序号
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 30;
+ builder.Write(a.ToString() + "." + b.ToString());
+ //专业
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(string.Empty);
+ //分部工程
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 60;
+ builder.Write(un.UnitProjectName);
+ var unDetails = from x in details
+ join y in unitProjects on x.ParentId equals y.UnitProjectId
+ where y.UnitProjectCode == un.UnitProjectCode
+ select x;
+ unACWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalRealCost).Sum().ToString()) / 10000;
+ unBCWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalPlanCost).Sum().ToString()) / 10000;
+ unBCWS = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalPlanValue).Sum().ToString()) / 10000;
+ unCV = unBCWP - unACWP;
+ unSV = unBCWP - unBCWS;
+ if (unACWP > 0)
+ {
+ unCPI = unBCWP / unACWP;
+ }
+ if (unBCWS > 0)
+ {
+ unSPI = unBCWP / unBCWS;
+ }
+ //BCWP
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(unBCWP.ToString("0.####"));
+ //BCWS
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(unBCWS.ToString("0.####"));
+ //ACWP
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(unACWP.ToString("0.####"));
+ //CV
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(unCV.ToString("0.####"));
+ //SV
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(unSV.ToString("0.####"));
+ //CPI
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(unCPI.ToString("0.####"));
+ //SPI
+ builder.InsertCell();
+ builder.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ builder.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
+ builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;//垂直居中对齐
+ builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;//水平居中对齐
+ builder.CellFormat.Width = 50;
+ builder.Write(unSPI.ToString("0.####"));
+ builder.EndRow();
+ b++;
+ }
+ a++;
}
- a++;
+ #endregion
+ doc.Save(newUrl);
+ string fileName = Path.GetFileName(newUrl);
+ FileInfo info = new FileInfo(newUrl);
+ long fileSize = info.Length;
+ Response.Clear();
+ Response.ContentType = "application/x-zip-compressed";
+ Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
+ Response.AddHeader("Content-Length", fileSize.ToString());
+ Response.TransmitFile(newUrl, 0, fileSize);
+ Response.Flush();
+ Response.Close();
+ File.Delete(newUrl);
+ }
+ else
+ {
+ ShowNotify("没有数据,无法导出!", MessageBoxIcon.Warning);
}
- #endregion
- doc.Save(newUrl);
- string fileName = Path.GetFileName(newUrl);
- FileInfo info = new FileInfo(newUrl);
- long fileSize = info.Length;
- Response.Clear();
- Response.ContentType = "application/x-zip-compressed";
- Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
- Response.AddHeader("Content-Length", fileSize.ToString());
- Response.TransmitFile(newUrl, 0, fileSize);
- Response.Flush();
- Response.Close();
- File.Delete(newUrl);
}
}
else
{
- ShowNotify("请选择月份", MessageBoxIcon.Warning);
+ ShowNotify("请选择月份!", MessageBoxIcon.Warning);
}
}
#endregion
diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs
index 2d926565..b8ace082 100644
--- a/SGGL/Model/Model.cs
+++ b/SGGL/Model/Model.cs
@@ -779,9 +779,15 @@ namespace Model
partial void InsertEmergency_DrillRecordList(Emergency_DrillRecordList instance);
partial void UpdateEmergency_DrillRecordList(Emergency_DrillRecordList instance);
partial void DeleteEmergency_DrillRecordList(Emergency_DrillRecordList instance);
+ partial void InsertEmergency_DrillRecordList_Unit(Emergency_DrillRecordList_Unit instance);
+ partial void UpdateEmergency_DrillRecordList_Unit(Emergency_DrillRecordList_Unit instance);
+ partial void DeleteEmergency_DrillRecordList_Unit(Emergency_DrillRecordList_Unit instance);
partial void InsertEmergency_EmergencyList(Emergency_EmergencyList instance);
partial void UpdateEmergency_EmergencyList(Emergency_EmergencyList instance);
partial void DeleteEmergency_EmergencyList(Emergency_EmergencyList instance);
+ partial void InsertEmergency_EmergencyList_Unit(Emergency_EmergencyList_Unit instance);
+ partial void UpdateEmergency_EmergencyList_Unit(Emergency_EmergencyList_Unit instance);
+ partial void DeleteEmergency_EmergencyList_Unit(Emergency_EmergencyList_Unit instance);
partial void InsertEmergency_EmergencyProcess(Emergency_EmergencyProcess instance);
partial void UpdateEmergency_EmergencyProcess(Emergency_EmergencyProcess instance);
partial void DeleteEmergency_EmergencyProcess(Emergency_EmergencyProcess instance);
@@ -1430,9 +1436,18 @@ namespace Model
partial void InsertMeeting_ClassMeeting(Meeting_ClassMeeting instance);
partial void UpdateMeeting_ClassMeeting(Meeting_ClassMeeting instance);
partial void DeleteMeeting_ClassMeeting(Meeting_ClassMeeting instance);
+ partial void InsertMeeting_CompanySafetyMeeting(Meeting_CompanySafetyMeeting instance);
+ partial void UpdateMeeting_CompanySafetyMeeting(Meeting_CompanySafetyMeeting instance);
+ partial void DeleteMeeting_CompanySafetyMeeting(Meeting_CompanySafetyMeeting instance);
+ partial void InsertMeeting_CompanySpecialMeeting(Meeting_CompanySpecialMeeting instance);
+ partial void UpdateMeeting_CompanySpecialMeeting(Meeting_CompanySpecialMeeting instance);
+ partial void DeleteMeeting_CompanySpecialMeeting(Meeting_CompanySpecialMeeting instance);
partial void InsertMeeting_MonthMeeting(Meeting_MonthMeeting instance);
partial void UpdateMeeting_MonthMeeting(Meeting_MonthMeeting instance);
partial void DeleteMeeting_MonthMeeting(Meeting_MonthMeeting instance);
+ partial void InsertMeeting_SafetyLeaderGroupMeeting(Meeting_SafetyLeaderGroupMeeting instance);
+ partial void UpdateMeeting_SafetyLeaderGroupMeeting(Meeting_SafetyLeaderGroupMeeting instance);
+ partial void DeleteMeeting_SafetyLeaderGroupMeeting(Meeting_SafetyLeaderGroupMeeting instance);
partial void InsertMeeting_SpecialMeeting(Meeting_SpecialMeeting instance);
partial void UpdateMeeting_SpecialMeeting(Meeting_SpecialMeeting instance);
partial void DeleteMeeting_SpecialMeeting(Meeting_SpecialMeeting instance);
@@ -4338,6 +4353,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table Emergency_DrillRecordList_Unit
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Emergency_EmergencyList
{
get
@@ -4346,6 +4369,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table Emergency_EmergencyList_Unit
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Emergency_EmergencyProcess
{
get
@@ -6082,6 +6113,22 @@ namespace Model
}
}
+ public System.Data.Linq.Table Meeting_CompanySafetyMeeting
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
+ public System.Data.Linq.Table Meeting_CompanySpecialMeeting
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Meeting_MonthMeeting
{
get
@@ -6090,6 +6137,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table Meeting_SafetyLeaderGroupMeeting
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Meeting_SpecialMeeting
{
get
@@ -129022,6 +129077,452 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Emergency_DrillRecordList_Unit")]
+ public partial class Emergency_DrillRecordList_Unit : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _DrillRecordListId;
+
+ private string _ProjectId;
+
+ private string _DrillRecordCode;
+
+ private string _DrillRecordName;
+
+ private string _UnitIds;
+
+ private string _UnitNames;
+
+ private string _UserIds;
+
+ private string _UserNames;
+
+ private System.Nullable _DrillRecordDate;
+
+ private string _DrillRecordContents;
+
+ private string _CompileMan;
+
+ private System.Nullable _CompileDate;
+
+ private string _States;
+
+ private string _AttachUrl;
+
+ private string _DrillRecordType;
+
+ private System.Nullable _JointPersonNum;
+
+ private System.Nullable _DrillCost;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnDrillRecordListIdChanging(string value);
+ partial void OnDrillRecordListIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnDrillRecordCodeChanging(string value);
+ partial void OnDrillRecordCodeChanged();
+ partial void OnDrillRecordNameChanging(string value);
+ partial void OnDrillRecordNameChanged();
+ partial void OnUnitIdsChanging(string value);
+ partial void OnUnitIdsChanged();
+ partial void OnUnitNamesChanging(string value);
+ partial void OnUnitNamesChanged();
+ partial void OnUserIdsChanging(string value);
+ partial void OnUserIdsChanged();
+ partial void OnUserNamesChanging(string value);
+ partial void OnUserNamesChanged();
+ partial void OnDrillRecordDateChanging(System.Nullable value);
+ partial void OnDrillRecordDateChanged();
+ partial void OnDrillRecordContentsChanging(string value);
+ partial void OnDrillRecordContentsChanged();
+ partial void OnCompileManChanging(string value);
+ partial void OnCompileManChanged();
+ partial void OnCompileDateChanging(System.Nullable value);
+ partial void OnCompileDateChanged();
+ partial void OnStatesChanging(string value);
+ partial void OnStatesChanged();
+ partial void OnAttachUrlChanging(string value);
+ partial void OnAttachUrlChanged();
+ partial void OnDrillRecordTypeChanging(string value);
+ partial void OnDrillRecordTypeChanged();
+ partial void OnJointPersonNumChanging(System.Nullable value);
+ partial void OnJointPersonNumChanged();
+ partial void OnDrillCostChanging(System.Nullable value);
+ partial void OnDrillCostChanged();
+ #endregion
+
+ public Emergency_DrillRecordList_Unit()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillRecordListId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string DrillRecordListId
+ {
+ get
+ {
+ return this._DrillRecordListId;
+ }
+ set
+ {
+ if ((this._DrillRecordListId != value))
+ {
+ this.OnDrillRecordListIdChanging(value);
+ this.SendPropertyChanging();
+ this._DrillRecordListId = value;
+ this.SendPropertyChanged("DrillRecordListId");
+ this.OnDrillRecordListIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillRecordCode", DbType="NVarChar(50)")]
+ public string DrillRecordCode
+ {
+ get
+ {
+ return this._DrillRecordCode;
+ }
+ set
+ {
+ if ((this._DrillRecordCode != value))
+ {
+ this.OnDrillRecordCodeChanging(value);
+ this.SendPropertyChanging();
+ this._DrillRecordCode = value;
+ this.SendPropertyChanged("DrillRecordCode");
+ this.OnDrillRecordCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillRecordName", DbType="NVarChar(500)")]
+ public string DrillRecordName
+ {
+ get
+ {
+ return this._DrillRecordName;
+ }
+ set
+ {
+ if ((this._DrillRecordName != value))
+ {
+ this.OnDrillRecordNameChanging(value);
+ this.SendPropertyChanging();
+ this._DrillRecordName = value;
+ this.SendPropertyChanged("DrillRecordName");
+ this.OnDrillRecordNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitIds", DbType="NVarChar(4000)")]
+ public string UnitIds
+ {
+ get
+ {
+ return this._UnitIds;
+ }
+ set
+ {
+ if ((this._UnitIds != value))
+ {
+ this.OnUnitIdsChanging(value);
+ this.SendPropertyChanging();
+ this._UnitIds = value;
+ this.SendPropertyChanged("UnitIds");
+ this.OnUnitIdsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitNames", DbType="NVarChar(4000)")]
+ public string UnitNames
+ {
+ get
+ {
+ return this._UnitNames;
+ }
+ set
+ {
+ if ((this._UnitNames != value))
+ {
+ this.OnUnitNamesChanging(value);
+ this.SendPropertyChanging();
+ this._UnitNames = value;
+ this.SendPropertyChanged("UnitNames");
+ this.OnUnitNamesChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserIds", DbType="NVarChar(4000)")]
+ public string UserIds
+ {
+ get
+ {
+ return this._UserIds;
+ }
+ set
+ {
+ if ((this._UserIds != value))
+ {
+ this.OnUserIdsChanging(value);
+ this.SendPropertyChanging();
+ this._UserIds = value;
+ this.SendPropertyChanged("UserIds");
+ this.OnUserIdsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserNames", DbType="NVarChar(4000)")]
+ public string UserNames
+ {
+ get
+ {
+ return this._UserNames;
+ }
+ set
+ {
+ if ((this._UserNames != value))
+ {
+ this.OnUserNamesChanging(value);
+ this.SendPropertyChanging();
+ this._UserNames = value;
+ this.SendPropertyChanged("UserNames");
+ this.OnUserNamesChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillRecordDate", DbType="DateTime")]
+ public System.Nullable DrillRecordDate
+ {
+ get
+ {
+ return this._DrillRecordDate;
+ }
+ set
+ {
+ if ((this._DrillRecordDate != value))
+ {
+ this.OnDrillRecordDateChanging(value);
+ this.SendPropertyChanging();
+ this._DrillRecordDate = value;
+ this.SendPropertyChanged("DrillRecordDate");
+ this.OnDrillRecordDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillRecordContents", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
+ public string DrillRecordContents
+ {
+ get
+ {
+ return this._DrillRecordContents;
+ }
+ set
+ {
+ if ((this._DrillRecordContents != value))
+ {
+ this.OnDrillRecordContentsChanging(value);
+ this.SendPropertyChanging();
+ this._DrillRecordContents = value;
+ this.SendPropertyChanged("DrillRecordContents");
+ this.OnDrillRecordContentsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
+ public string CompileMan
+ {
+ get
+ {
+ return this._CompileMan;
+ }
+ set
+ {
+ if ((this._CompileMan != value))
+ {
+ this.OnCompileManChanging(value);
+ this.SendPropertyChanging();
+ this._CompileMan = value;
+ this.SendPropertyChanged("CompileMan");
+ this.OnCompileManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
+ public System.Nullable CompileDate
+ {
+ get
+ {
+ return this._CompileDate;
+ }
+ set
+ {
+ if ((this._CompileDate != value))
+ {
+ this.OnCompileDateChanging(value);
+ this.SendPropertyChanging();
+ this._CompileDate = value;
+ this.SendPropertyChanged("CompileDate");
+ this.OnCompileDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_States", DbType="Char(1)")]
+ public string States
+ {
+ get
+ {
+ return this._States;
+ }
+ set
+ {
+ if ((this._States != value))
+ {
+ this.OnStatesChanging(value);
+ this.SendPropertyChanging();
+ this._States = value;
+ this.SendPropertyChanged("States");
+ this.OnStatesChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachUrl", DbType="NVarChar(2000)")]
+ public string AttachUrl
+ {
+ get
+ {
+ return this._AttachUrl;
+ }
+ set
+ {
+ if ((this._AttachUrl != value))
+ {
+ this.OnAttachUrlChanging(value);
+ this.SendPropertyChanging();
+ this._AttachUrl = value;
+ this.SendPropertyChanged("AttachUrl");
+ this.OnAttachUrlChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillRecordType", DbType="Char(1)")]
+ public string DrillRecordType
+ {
+ get
+ {
+ return this._DrillRecordType;
+ }
+ set
+ {
+ if ((this._DrillRecordType != value))
+ {
+ this.OnDrillRecordTypeChanging(value);
+ this.SendPropertyChanging();
+ this._DrillRecordType = value;
+ this.SendPropertyChanged("DrillRecordType");
+ this.OnDrillRecordTypeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JointPersonNum", DbType="Int")]
+ public System.Nullable JointPersonNum
+ {
+ get
+ {
+ return this._JointPersonNum;
+ }
+ set
+ {
+ if ((this._JointPersonNum != value))
+ {
+ this.OnJointPersonNumChanging(value);
+ this.SendPropertyChanging();
+ this._JointPersonNum = value;
+ this.SendPropertyChanged("JointPersonNum");
+ this.OnJointPersonNumChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillCost", DbType="Decimal(9,2)")]
+ public System.Nullable DrillCost
+ {
+ get
+ {
+ return this._DrillCost;
+ }
+ set
+ {
+ if ((this._DrillCost != value))
+ {
+ this.OnDrillCostChanging(value);
+ this.SendPropertyChanging();
+ this._DrillCost = value;
+ this.SendPropertyChanged("DrillCost");
+ this.OnDrillCostChanged();
+ }
+ }
+ }
+
+ public event PropertyChangingEventHandler PropertyChanging;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void SendPropertyChanging()
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, emptyChangingEventArgs);
+ }
+ }
+
+ protected virtual void SendPropertyChanged(String propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Emergency_EmergencyList")]
public partial class Emergency_EmergencyList : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -129642,6 +130143,380 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Emergency_EmergencyList_Unit")]
+ public partial class Emergency_EmergencyList_Unit : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _EmergencyListId;
+
+ private string _ProjectId;
+
+ private string _EmergencyCode;
+
+ private string _EmergencyName;
+
+ private string _UnitId;
+
+ private string _EmergencyTypeId;
+
+ private string _VersionCode;
+
+ private string _EmergencyContents;
+
+ private string _CompileMan;
+
+ private System.Nullable _CompileDate;
+
+ private string _States;
+
+ private string _AttachUrl;
+
+ private string _AuditMan;
+
+ private string _ApproveMan;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnEmergencyListIdChanging(string value);
+ partial void OnEmergencyListIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnEmergencyCodeChanging(string value);
+ partial void OnEmergencyCodeChanged();
+ partial void OnEmergencyNameChanging(string value);
+ partial void OnEmergencyNameChanged();
+ partial void OnUnitIdChanging(string value);
+ partial void OnUnitIdChanged();
+ partial void OnEmergencyTypeIdChanging(string value);
+ partial void OnEmergencyTypeIdChanged();
+ partial void OnVersionCodeChanging(string value);
+ partial void OnVersionCodeChanged();
+ partial void OnEmergencyContentsChanging(string value);
+ partial void OnEmergencyContentsChanged();
+ partial void OnCompileManChanging(string value);
+ partial void OnCompileManChanged();
+ partial void OnCompileDateChanging(System.Nullable value);
+ partial void OnCompileDateChanged();
+ partial void OnStatesChanging(string value);
+ partial void OnStatesChanged();
+ partial void OnAttachUrlChanging(string value);
+ partial void OnAttachUrlChanged();
+ partial void OnAuditManChanging(string value);
+ partial void OnAuditManChanged();
+ partial void OnApproveManChanging(string value);
+ partial void OnApproveManChanged();
+ #endregion
+
+ public Emergency_EmergencyList_Unit()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmergencyListId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string EmergencyListId
+ {
+ get
+ {
+ return this._EmergencyListId;
+ }
+ set
+ {
+ if ((this._EmergencyListId != value))
+ {
+ this.OnEmergencyListIdChanging(value);
+ this.SendPropertyChanging();
+ this._EmergencyListId = value;
+ this.SendPropertyChanged("EmergencyListId");
+ this.OnEmergencyListIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmergencyCode", DbType="NVarChar(50)")]
+ public string EmergencyCode
+ {
+ get
+ {
+ return this._EmergencyCode;
+ }
+ set
+ {
+ if ((this._EmergencyCode != value))
+ {
+ this.OnEmergencyCodeChanging(value);
+ this.SendPropertyChanging();
+ this._EmergencyCode = value;
+ this.SendPropertyChanged("EmergencyCode");
+ this.OnEmergencyCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmergencyName", DbType="NVarChar(500)")]
+ public string EmergencyName
+ {
+ get
+ {
+ return this._EmergencyName;
+ }
+ set
+ {
+ if ((this._EmergencyName != value))
+ {
+ this.OnEmergencyNameChanging(value);
+ this.SendPropertyChanging();
+ this._EmergencyName = value;
+ this.SendPropertyChanged("EmergencyName");
+ this.OnEmergencyNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")]
+ public string UnitId
+ {
+ get
+ {
+ return this._UnitId;
+ }
+ set
+ {
+ if ((this._UnitId != value))
+ {
+ this.OnUnitIdChanging(value);
+ this.SendPropertyChanging();
+ this._UnitId = value;
+ this.SendPropertyChanged("UnitId");
+ this.OnUnitIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmergencyTypeId", DbType="NVarChar(50)")]
+ public string EmergencyTypeId
+ {
+ get
+ {
+ return this._EmergencyTypeId;
+ }
+ set
+ {
+ if ((this._EmergencyTypeId != value))
+ {
+ this.OnEmergencyTypeIdChanging(value);
+ this.SendPropertyChanging();
+ this._EmergencyTypeId = value;
+ this.SendPropertyChanged("EmergencyTypeId");
+ this.OnEmergencyTypeIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VersionCode", DbType="NVarChar(50)")]
+ public string VersionCode
+ {
+ get
+ {
+ return this._VersionCode;
+ }
+ set
+ {
+ if ((this._VersionCode != value))
+ {
+ this.OnVersionCodeChanging(value);
+ this.SendPropertyChanging();
+ this._VersionCode = value;
+ this.SendPropertyChanged("VersionCode");
+ this.OnVersionCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmergencyContents", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
+ public string EmergencyContents
+ {
+ get
+ {
+ return this._EmergencyContents;
+ }
+ set
+ {
+ if ((this._EmergencyContents != value))
+ {
+ this.OnEmergencyContentsChanging(value);
+ this.SendPropertyChanging();
+ this._EmergencyContents = value;
+ this.SendPropertyChanged("EmergencyContents");
+ this.OnEmergencyContentsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
+ public string CompileMan
+ {
+ get
+ {
+ return this._CompileMan;
+ }
+ set
+ {
+ if ((this._CompileMan != value))
+ {
+ this.OnCompileManChanging(value);
+ this.SendPropertyChanging();
+ this._CompileMan = value;
+ this.SendPropertyChanged("CompileMan");
+ this.OnCompileManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
+ public System.Nullable CompileDate
+ {
+ get
+ {
+ return this._CompileDate;
+ }
+ set
+ {
+ if ((this._CompileDate != value))
+ {
+ this.OnCompileDateChanging(value);
+ this.SendPropertyChanging();
+ this._CompileDate = value;
+ this.SendPropertyChanged("CompileDate");
+ this.OnCompileDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_States", DbType="Char(1)")]
+ public string States
+ {
+ get
+ {
+ return this._States;
+ }
+ set
+ {
+ if ((this._States != value))
+ {
+ this.OnStatesChanging(value);
+ this.SendPropertyChanging();
+ this._States = value;
+ this.SendPropertyChanged("States");
+ this.OnStatesChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachUrl", DbType="NVarChar(2000)")]
+ public string AttachUrl
+ {
+ get
+ {
+ return this._AttachUrl;
+ }
+ set
+ {
+ if ((this._AttachUrl != value))
+ {
+ this.OnAttachUrlChanging(value);
+ this.SendPropertyChanging();
+ this._AttachUrl = value;
+ this.SendPropertyChanged("AttachUrl");
+ this.OnAttachUrlChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuditMan", DbType="NVarChar(50)")]
+ public string AuditMan
+ {
+ get
+ {
+ return this._AuditMan;
+ }
+ set
+ {
+ if ((this._AuditMan != value))
+ {
+ this.OnAuditManChanging(value);
+ this.SendPropertyChanging();
+ this._AuditMan = value;
+ this.SendPropertyChanged("AuditMan");
+ this.OnAuditManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveMan", DbType="NVarChar(50)")]
+ public string ApproveMan
+ {
+ get
+ {
+ return this._ApproveMan;
+ }
+ set
+ {
+ if ((this._ApproveMan != value))
+ {
+ this.OnApproveManChanging(value);
+ this.SendPropertyChanging();
+ this._ApproveMan = value;
+ this.SendPropertyChanged("ApproveMan");
+ this.OnApproveManChanged();
+ }
+ }
+ }
+
+ public event PropertyChangingEventHandler PropertyChanging;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void SendPropertyChanging()
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, emptyChangingEventArgs);
+ }
+ }
+
+ protected virtual void SendPropertyChanged(String propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Emergency_EmergencyProcess")]
public partial class Emergency_EmergencyProcess : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -234047,6 +234922,802 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Meeting_CompanySafetyMeeting")]
+ public partial class Meeting_CompanySafetyMeeting : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _CompanySafetyMeetingId;
+
+ private string _CompanySafetyMeetingCode;
+
+ private string _CompanySafetyMeetingName;
+
+ private System.Nullable _CompanySafetyMeetingDate;
+
+ private string _CompileMan;
+
+ private string _CompanySafetyMeetingContents;
+
+ private System.Nullable _CompileDate;
+
+ private System.Nullable _AttentPersonNum;
+
+ private System.Nullable _MeetingHours;
+
+ private string _MeetingHostMan;
+
+ private string _AttentPerson;
+
+ private string _MeetingPlace;
+
+ private string _MeetingHostManId;
+
+ private string _AttentPersonIds;
+
+ private string _MeetingHostManOther;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnCompanySafetyMeetingIdChanging(string value);
+ partial void OnCompanySafetyMeetingIdChanged();
+ partial void OnCompanySafetyMeetingCodeChanging(string value);
+ partial void OnCompanySafetyMeetingCodeChanged();
+ partial void OnCompanySafetyMeetingNameChanging(string value);
+ partial void OnCompanySafetyMeetingNameChanged();
+ partial void OnCompanySafetyMeetingDateChanging(System.Nullable value);
+ partial void OnCompanySafetyMeetingDateChanged();
+ partial void OnCompileManChanging(string value);
+ partial void OnCompileManChanged();
+ partial void OnCompanySafetyMeetingContentsChanging(string value);
+ partial void OnCompanySafetyMeetingContentsChanged();
+ partial void OnCompileDateChanging(System.Nullable value);
+ partial void OnCompileDateChanged();
+ partial void OnAttentPersonNumChanging(System.Nullable value);
+ partial void OnAttentPersonNumChanged();
+ partial void OnMeetingHoursChanging(System.Nullable value);
+ partial void OnMeetingHoursChanged();
+ partial void OnMeetingHostManChanging(string value);
+ partial void OnMeetingHostManChanged();
+ partial void OnAttentPersonChanging(string value);
+ partial void OnAttentPersonChanged();
+ partial void OnMeetingPlaceChanging(string value);
+ partial void OnMeetingPlaceChanged();
+ partial void OnMeetingHostManIdChanging(string value);
+ partial void OnMeetingHostManIdChanged();
+ partial void OnAttentPersonIdsChanging(string value);
+ partial void OnAttentPersonIdsChanged();
+ partial void OnMeetingHostManOtherChanging(string value);
+ partial void OnMeetingHostManOtherChanged();
+ #endregion
+
+ public Meeting_CompanySafetyMeeting()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySafetyMeetingId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string CompanySafetyMeetingId
+ {
+ get
+ {
+ return this._CompanySafetyMeetingId;
+ }
+ set
+ {
+ if ((this._CompanySafetyMeetingId != value))
+ {
+ this.OnCompanySafetyMeetingIdChanging(value);
+ this.SendPropertyChanging();
+ this._CompanySafetyMeetingId = value;
+ this.SendPropertyChanged("CompanySafetyMeetingId");
+ this.OnCompanySafetyMeetingIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySafetyMeetingCode", DbType="NVarChar(50)")]
+ public string CompanySafetyMeetingCode
+ {
+ get
+ {
+ return this._CompanySafetyMeetingCode;
+ }
+ set
+ {
+ if ((this._CompanySafetyMeetingCode != value))
+ {
+ this.OnCompanySafetyMeetingCodeChanging(value);
+ this.SendPropertyChanging();
+ this._CompanySafetyMeetingCode = value;
+ this.SendPropertyChanged("CompanySafetyMeetingCode");
+ this.OnCompanySafetyMeetingCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySafetyMeetingName", DbType="NVarChar(50)")]
+ public string CompanySafetyMeetingName
+ {
+ get
+ {
+ return this._CompanySafetyMeetingName;
+ }
+ set
+ {
+ if ((this._CompanySafetyMeetingName != value))
+ {
+ this.OnCompanySafetyMeetingNameChanging(value);
+ this.SendPropertyChanging();
+ this._CompanySafetyMeetingName = value;
+ this.SendPropertyChanged("CompanySafetyMeetingName");
+ this.OnCompanySafetyMeetingNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySafetyMeetingDate", DbType="DateTime")]
+ public System.Nullable CompanySafetyMeetingDate
+ {
+ get
+ {
+ return this._CompanySafetyMeetingDate;
+ }
+ set
+ {
+ if ((this._CompanySafetyMeetingDate != value))
+ {
+ this.OnCompanySafetyMeetingDateChanging(value);
+ this.SendPropertyChanging();
+ this._CompanySafetyMeetingDate = value;
+ this.SendPropertyChanged("CompanySafetyMeetingDate");
+ this.OnCompanySafetyMeetingDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
+ public string CompileMan
+ {
+ get
+ {
+ return this._CompileMan;
+ }
+ set
+ {
+ if ((this._CompileMan != value))
+ {
+ this.OnCompileManChanging(value);
+ this.SendPropertyChanging();
+ this._CompileMan = value;
+ this.SendPropertyChanged("CompileMan");
+ this.OnCompileManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySafetyMeetingContents", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
+ public string CompanySafetyMeetingContents
+ {
+ get
+ {
+ return this._CompanySafetyMeetingContents;
+ }
+ set
+ {
+ if ((this._CompanySafetyMeetingContents != value))
+ {
+ this.OnCompanySafetyMeetingContentsChanging(value);
+ this.SendPropertyChanging();
+ this._CompanySafetyMeetingContents = value;
+ this.SendPropertyChanged("CompanySafetyMeetingContents");
+ this.OnCompanySafetyMeetingContentsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
+ public System.Nullable CompileDate
+ {
+ get
+ {
+ return this._CompileDate;
+ }
+ set
+ {
+ if ((this._CompileDate != value))
+ {
+ this.OnCompileDateChanging(value);
+ this.SendPropertyChanging();
+ this._CompileDate = value;
+ this.SendPropertyChanged("CompileDate");
+ this.OnCompileDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPersonNum", DbType="Int")]
+ public System.Nullable AttentPersonNum
+ {
+ get
+ {
+ return this._AttentPersonNum;
+ }
+ set
+ {
+ if ((this._AttentPersonNum != value))
+ {
+ this.OnAttentPersonNumChanging(value);
+ this.SendPropertyChanging();
+ this._AttentPersonNum = value;
+ this.SendPropertyChanged("AttentPersonNum");
+ this.OnAttentPersonNumChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHours", DbType="Decimal(9,1)")]
+ public System.Nullable MeetingHours
+ {
+ get
+ {
+ return this._MeetingHours;
+ }
+ set
+ {
+ if ((this._MeetingHours != value))
+ {
+ this.OnMeetingHoursChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingHours = value;
+ this.SendPropertyChanged("MeetingHours");
+ this.OnMeetingHoursChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostMan", DbType="NVarChar(50)")]
+ public string MeetingHostMan
+ {
+ get
+ {
+ return this._MeetingHostMan;
+ }
+ set
+ {
+ if ((this._MeetingHostMan != value))
+ {
+ this.OnMeetingHostManChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingHostMan = value;
+ this.SendPropertyChanged("MeetingHostMan");
+ this.OnMeetingHostManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(300)")]
+ public string AttentPerson
+ {
+ get
+ {
+ return this._AttentPerson;
+ }
+ set
+ {
+ if ((this._AttentPerson != value))
+ {
+ this.OnAttentPersonChanging(value);
+ this.SendPropertyChanging();
+ this._AttentPerson = value;
+ this.SendPropertyChanged("AttentPerson");
+ this.OnAttentPersonChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingPlace", DbType="NVarChar(200)")]
+ public string MeetingPlace
+ {
+ get
+ {
+ return this._MeetingPlace;
+ }
+ set
+ {
+ if ((this._MeetingPlace != value))
+ {
+ this.OnMeetingPlaceChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingPlace = value;
+ this.SendPropertyChanged("MeetingPlace");
+ this.OnMeetingPlaceChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostManId", DbType="NVarChar(50)")]
+ public string MeetingHostManId
+ {
+ get
+ {
+ return this._MeetingHostManId;
+ }
+ set
+ {
+ if ((this._MeetingHostManId != value))
+ {
+ this.OnMeetingHostManIdChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingHostManId = value;
+ this.SendPropertyChanged("MeetingHostManId");
+ this.OnMeetingHostManIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPersonIds", DbType="NVarChar(4000)")]
+ public string AttentPersonIds
+ {
+ get
+ {
+ return this._AttentPersonIds;
+ }
+ set
+ {
+ if ((this._AttentPersonIds != value))
+ {
+ this.OnAttentPersonIdsChanging(value);
+ this.SendPropertyChanging();
+ this._AttentPersonIds = value;
+ this.SendPropertyChanged("AttentPersonIds");
+ this.OnAttentPersonIdsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostManOther", DbType="NVarChar(500)")]
+ public string MeetingHostManOther
+ {
+ get
+ {
+ return this._MeetingHostManOther;
+ }
+ set
+ {
+ if ((this._MeetingHostManOther != value))
+ {
+ this.OnMeetingHostManOtherChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingHostManOther = value;
+ this.SendPropertyChanged("MeetingHostManOther");
+ this.OnMeetingHostManOtherChanged();
+ }
+ }
+ }
+
+ public event PropertyChangingEventHandler PropertyChanging;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void SendPropertyChanging()
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, emptyChangingEventArgs);
+ }
+ }
+
+ protected virtual void SendPropertyChanged(String propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Meeting_CompanySpecialMeeting")]
+ public partial class Meeting_CompanySpecialMeeting : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _CompanySpecialMeetingId;
+
+ private string _CompanySpecialMeetingCode;
+
+ private string _CompanySpecialMeetingName;
+
+ private System.Nullable _CompanySpecialMeetingDate;
+
+ private string _CompileMan;
+
+ private string _CompanySpecialMeetingContents;
+
+ private System.Nullable _CompileDate;
+
+ private System.Nullable _AttentPersonNum;
+
+ private System.Nullable _MeetingHours;
+
+ private string _MeetingHostMan;
+
+ private string _AttentPerson;
+
+ private string _MeetingPlace;
+
+ private string _MeetingHostManId;
+
+ private string _AttentPersonIds;
+
+ private string _MeetingHostManOther;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnCompanySpecialMeetingIdChanging(string value);
+ partial void OnCompanySpecialMeetingIdChanged();
+ partial void OnCompanySpecialMeetingCodeChanging(string value);
+ partial void OnCompanySpecialMeetingCodeChanged();
+ partial void OnCompanySpecialMeetingNameChanging(string value);
+ partial void OnCompanySpecialMeetingNameChanged();
+ partial void OnCompanySpecialMeetingDateChanging(System.Nullable value);
+ partial void OnCompanySpecialMeetingDateChanged();
+ partial void OnCompileManChanging(string value);
+ partial void OnCompileManChanged();
+ partial void OnCompanySpecialMeetingContentsChanging(string value);
+ partial void OnCompanySpecialMeetingContentsChanged();
+ partial void OnCompileDateChanging(System.Nullable value);
+ partial void OnCompileDateChanged();
+ partial void OnAttentPersonNumChanging(System.Nullable value);
+ partial void OnAttentPersonNumChanged();
+ partial void OnMeetingHoursChanging(System.Nullable value);
+ partial void OnMeetingHoursChanged();
+ partial void OnMeetingHostManChanging(string value);
+ partial void OnMeetingHostManChanged();
+ partial void OnAttentPersonChanging(string value);
+ partial void OnAttentPersonChanged();
+ partial void OnMeetingPlaceChanging(string value);
+ partial void OnMeetingPlaceChanged();
+ partial void OnMeetingHostManIdChanging(string value);
+ partial void OnMeetingHostManIdChanged();
+ partial void OnAttentPersonIdsChanging(string value);
+ partial void OnAttentPersonIdsChanged();
+ partial void OnMeetingHostManOtherChanging(string value);
+ partial void OnMeetingHostManOtherChanged();
+ #endregion
+
+ public Meeting_CompanySpecialMeeting()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySpecialMeetingId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string CompanySpecialMeetingId
+ {
+ get
+ {
+ return this._CompanySpecialMeetingId;
+ }
+ set
+ {
+ if ((this._CompanySpecialMeetingId != value))
+ {
+ this.OnCompanySpecialMeetingIdChanging(value);
+ this.SendPropertyChanging();
+ this._CompanySpecialMeetingId = value;
+ this.SendPropertyChanged("CompanySpecialMeetingId");
+ this.OnCompanySpecialMeetingIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySpecialMeetingCode", DbType="NVarChar(50)")]
+ public string CompanySpecialMeetingCode
+ {
+ get
+ {
+ return this._CompanySpecialMeetingCode;
+ }
+ set
+ {
+ if ((this._CompanySpecialMeetingCode != value))
+ {
+ this.OnCompanySpecialMeetingCodeChanging(value);
+ this.SendPropertyChanging();
+ this._CompanySpecialMeetingCode = value;
+ this.SendPropertyChanged("CompanySpecialMeetingCode");
+ this.OnCompanySpecialMeetingCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySpecialMeetingName", DbType="NVarChar(50)")]
+ public string CompanySpecialMeetingName
+ {
+ get
+ {
+ return this._CompanySpecialMeetingName;
+ }
+ set
+ {
+ if ((this._CompanySpecialMeetingName != value))
+ {
+ this.OnCompanySpecialMeetingNameChanging(value);
+ this.SendPropertyChanging();
+ this._CompanySpecialMeetingName = value;
+ this.SendPropertyChanged("CompanySpecialMeetingName");
+ this.OnCompanySpecialMeetingNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySpecialMeetingDate", DbType="DateTime")]
+ public System.Nullable CompanySpecialMeetingDate
+ {
+ get
+ {
+ return this._CompanySpecialMeetingDate;
+ }
+ set
+ {
+ if ((this._CompanySpecialMeetingDate != value))
+ {
+ this.OnCompanySpecialMeetingDateChanging(value);
+ this.SendPropertyChanging();
+ this._CompanySpecialMeetingDate = value;
+ this.SendPropertyChanged("CompanySpecialMeetingDate");
+ this.OnCompanySpecialMeetingDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
+ public string CompileMan
+ {
+ get
+ {
+ return this._CompileMan;
+ }
+ set
+ {
+ if ((this._CompileMan != value))
+ {
+ this.OnCompileManChanging(value);
+ this.SendPropertyChanging();
+ this._CompileMan = value;
+ this.SendPropertyChanged("CompileMan");
+ this.OnCompileManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySpecialMeetingContents", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
+ public string CompanySpecialMeetingContents
+ {
+ get
+ {
+ return this._CompanySpecialMeetingContents;
+ }
+ set
+ {
+ if ((this._CompanySpecialMeetingContents != value))
+ {
+ this.OnCompanySpecialMeetingContentsChanging(value);
+ this.SendPropertyChanging();
+ this._CompanySpecialMeetingContents = value;
+ this.SendPropertyChanged("CompanySpecialMeetingContents");
+ this.OnCompanySpecialMeetingContentsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
+ public System.Nullable CompileDate
+ {
+ get
+ {
+ return this._CompileDate;
+ }
+ set
+ {
+ if ((this._CompileDate != value))
+ {
+ this.OnCompileDateChanging(value);
+ this.SendPropertyChanging();
+ this._CompileDate = value;
+ this.SendPropertyChanged("CompileDate");
+ this.OnCompileDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPersonNum", DbType="Int")]
+ public System.Nullable AttentPersonNum
+ {
+ get
+ {
+ return this._AttentPersonNum;
+ }
+ set
+ {
+ if ((this._AttentPersonNum != value))
+ {
+ this.OnAttentPersonNumChanging(value);
+ this.SendPropertyChanging();
+ this._AttentPersonNum = value;
+ this.SendPropertyChanged("AttentPersonNum");
+ this.OnAttentPersonNumChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHours", DbType="Decimal(9,1)")]
+ public System.Nullable MeetingHours
+ {
+ get
+ {
+ return this._MeetingHours;
+ }
+ set
+ {
+ if ((this._MeetingHours != value))
+ {
+ this.OnMeetingHoursChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingHours = value;
+ this.SendPropertyChanged("MeetingHours");
+ this.OnMeetingHoursChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostMan", DbType="NVarChar(50)")]
+ public string MeetingHostMan
+ {
+ get
+ {
+ return this._MeetingHostMan;
+ }
+ set
+ {
+ if ((this._MeetingHostMan != value))
+ {
+ this.OnMeetingHostManChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingHostMan = value;
+ this.SendPropertyChanged("MeetingHostMan");
+ this.OnMeetingHostManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(300)")]
+ public string AttentPerson
+ {
+ get
+ {
+ return this._AttentPerson;
+ }
+ set
+ {
+ if ((this._AttentPerson != value))
+ {
+ this.OnAttentPersonChanging(value);
+ this.SendPropertyChanging();
+ this._AttentPerson = value;
+ this.SendPropertyChanged("AttentPerson");
+ this.OnAttentPersonChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingPlace", DbType="NVarChar(200)")]
+ public string MeetingPlace
+ {
+ get
+ {
+ return this._MeetingPlace;
+ }
+ set
+ {
+ if ((this._MeetingPlace != value))
+ {
+ this.OnMeetingPlaceChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingPlace = value;
+ this.SendPropertyChanged("MeetingPlace");
+ this.OnMeetingPlaceChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostManId", DbType="NVarChar(50)")]
+ public string MeetingHostManId
+ {
+ get
+ {
+ return this._MeetingHostManId;
+ }
+ set
+ {
+ if ((this._MeetingHostManId != value))
+ {
+ this.OnMeetingHostManIdChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingHostManId = value;
+ this.SendPropertyChanged("MeetingHostManId");
+ this.OnMeetingHostManIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPersonIds", DbType="NVarChar(4000)")]
+ public string AttentPersonIds
+ {
+ get
+ {
+ return this._AttentPersonIds;
+ }
+ set
+ {
+ if ((this._AttentPersonIds != value))
+ {
+ this.OnAttentPersonIdsChanging(value);
+ this.SendPropertyChanging();
+ this._AttentPersonIds = value;
+ this.SendPropertyChanged("AttentPersonIds");
+ this.OnAttentPersonIdsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostManOther", DbType="NVarChar(500)")]
+ public string MeetingHostManOther
+ {
+ get
+ {
+ return this._MeetingHostManOther;
+ }
+ set
+ {
+ if ((this._MeetingHostManOther != value))
+ {
+ this.OnMeetingHostManOtherChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingHostManOther = value;
+ this.SendPropertyChanged("MeetingHostManOther");
+ this.OnMeetingHostManOtherChanged();
+ }
+ }
+ }
+
+ public event PropertyChangingEventHandler PropertyChanging;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void SendPropertyChanging()
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, emptyChangingEventArgs);
+ }
+ }
+
+ protected virtual void SendPropertyChanged(String propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Meeting_MonthMeeting")]
public partial class Meeting_MonthMeeting : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -234657,6 +236328,476 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Meeting_SafetyLeaderGroupMeeting")]
+ public partial class Meeting_SafetyLeaderGroupMeeting : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _SafetyLeaderGroupMeetingId;
+
+ private string _ProjectId;
+
+ private string _SafetyLeaderGroupMeetingCode;
+
+ private string _SafetyLeaderGroupMeetingName;
+
+ private System.Nullable _SafetyLeaderGroupMeetingDate;
+
+ private string _CompileMan;
+
+ private string _SafetyLeaderGroupMeetingContents;
+
+ private System.Nullable _CompileDate;
+
+ private string _States;
+
+ private System.Nullable _AttentPersonNum;
+
+ private System.Nullable _MeetingHours;
+
+ private string _MeetingHostMan;
+
+ private string _AttentPerson;
+
+ private string _MeetingPlace;
+
+ private string _UnitId;
+
+ private string _MeetingHostManId;
+
+ private string _AttentPersonIds;
+
+ private string _MeetingHostManOther;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnSafetyLeaderGroupMeetingIdChanging(string value);
+ partial void OnSafetyLeaderGroupMeetingIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnSafetyLeaderGroupMeetingCodeChanging(string value);
+ partial void OnSafetyLeaderGroupMeetingCodeChanged();
+ partial void OnSafetyLeaderGroupMeetingNameChanging(string value);
+ partial void OnSafetyLeaderGroupMeetingNameChanged();
+ partial void OnSafetyLeaderGroupMeetingDateChanging(System.Nullable value);
+ partial void OnSafetyLeaderGroupMeetingDateChanged();
+ partial void OnCompileManChanging(string value);
+ partial void OnCompileManChanged();
+ partial void OnSafetyLeaderGroupMeetingContentsChanging(string value);
+ partial void OnSafetyLeaderGroupMeetingContentsChanged();
+ partial void OnCompileDateChanging(System.Nullable value);
+ partial void OnCompileDateChanged();
+ partial void OnStatesChanging(string value);
+ partial void OnStatesChanged();
+ partial void OnAttentPersonNumChanging(System.Nullable value);
+ partial void OnAttentPersonNumChanged();
+ partial void OnMeetingHoursChanging(System.Nullable value);
+ partial void OnMeetingHoursChanged();
+ partial void OnMeetingHostManChanging(string value);
+ partial void OnMeetingHostManChanged();
+ partial void OnAttentPersonChanging(string value);
+ partial void OnAttentPersonChanged();
+ partial void OnMeetingPlaceChanging(string value);
+ partial void OnMeetingPlaceChanged();
+ partial void OnUnitIdChanging(string value);
+ partial void OnUnitIdChanged();
+ partial void OnMeetingHostManIdChanging(string value);
+ partial void OnMeetingHostManIdChanged();
+ partial void OnAttentPersonIdsChanging(string value);
+ partial void OnAttentPersonIdsChanged();
+ partial void OnMeetingHostManOtherChanging(string value);
+ partial void OnMeetingHostManOtherChanged();
+ #endregion
+
+ public Meeting_SafetyLeaderGroupMeeting()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyLeaderGroupMeetingId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string SafetyLeaderGroupMeetingId
+ {
+ get
+ {
+ return this._SafetyLeaderGroupMeetingId;
+ }
+ set
+ {
+ if ((this._SafetyLeaderGroupMeetingId != value))
+ {
+ this.OnSafetyLeaderGroupMeetingIdChanging(value);
+ this.SendPropertyChanging();
+ this._SafetyLeaderGroupMeetingId = value;
+ this.SendPropertyChanged("SafetyLeaderGroupMeetingId");
+ this.OnSafetyLeaderGroupMeetingIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyLeaderGroupMeetingCode", DbType="NVarChar(50)")]
+ public string SafetyLeaderGroupMeetingCode
+ {
+ get
+ {
+ return this._SafetyLeaderGroupMeetingCode;
+ }
+ set
+ {
+ if ((this._SafetyLeaderGroupMeetingCode != value))
+ {
+ this.OnSafetyLeaderGroupMeetingCodeChanging(value);
+ this.SendPropertyChanging();
+ this._SafetyLeaderGroupMeetingCode = value;
+ this.SendPropertyChanged("SafetyLeaderGroupMeetingCode");
+ this.OnSafetyLeaderGroupMeetingCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyLeaderGroupMeetingName", DbType="NVarChar(50)")]
+ public string SafetyLeaderGroupMeetingName
+ {
+ get
+ {
+ return this._SafetyLeaderGroupMeetingName;
+ }
+ set
+ {
+ if ((this._SafetyLeaderGroupMeetingName != value))
+ {
+ this.OnSafetyLeaderGroupMeetingNameChanging(value);
+ this.SendPropertyChanging();
+ this._SafetyLeaderGroupMeetingName = value;
+ this.SendPropertyChanged("SafetyLeaderGroupMeetingName");
+ this.OnSafetyLeaderGroupMeetingNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyLeaderGroupMeetingDate", DbType="DateTime")]
+ public System.Nullable SafetyLeaderGroupMeetingDate
+ {
+ get
+ {
+ return this._SafetyLeaderGroupMeetingDate;
+ }
+ set
+ {
+ if ((this._SafetyLeaderGroupMeetingDate != value))
+ {
+ this.OnSafetyLeaderGroupMeetingDateChanging(value);
+ this.SendPropertyChanging();
+ this._SafetyLeaderGroupMeetingDate = value;
+ this.SendPropertyChanged("SafetyLeaderGroupMeetingDate");
+ this.OnSafetyLeaderGroupMeetingDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
+ public string CompileMan
+ {
+ get
+ {
+ return this._CompileMan;
+ }
+ set
+ {
+ if ((this._CompileMan != value))
+ {
+ this.OnCompileManChanging(value);
+ this.SendPropertyChanging();
+ this._CompileMan = value;
+ this.SendPropertyChanged("CompileMan");
+ this.OnCompileManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyLeaderGroupMeetingContents", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
+ public string SafetyLeaderGroupMeetingContents
+ {
+ get
+ {
+ return this._SafetyLeaderGroupMeetingContents;
+ }
+ set
+ {
+ if ((this._SafetyLeaderGroupMeetingContents != value))
+ {
+ this.OnSafetyLeaderGroupMeetingContentsChanging(value);
+ this.SendPropertyChanging();
+ this._SafetyLeaderGroupMeetingContents = value;
+ this.SendPropertyChanged("SafetyLeaderGroupMeetingContents");
+ this.OnSafetyLeaderGroupMeetingContentsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
+ public System.Nullable CompileDate
+ {
+ get
+ {
+ return this._CompileDate;
+ }
+ set
+ {
+ if ((this._CompileDate != value))
+ {
+ this.OnCompileDateChanging(value);
+ this.SendPropertyChanging();
+ this._CompileDate = value;
+ this.SendPropertyChanged("CompileDate");
+ this.OnCompileDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_States", DbType="Char(1)")]
+ public string States
+ {
+ get
+ {
+ return this._States;
+ }
+ set
+ {
+ if ((this._States != value))
+ {
+ this.OnStatesChanging(value);
+ this.SendPropertyChanging();
+ this._States = value;
+ this.SendPropertyChanged("States");
+ this.OnStatesChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPersonNum", DbType="Int")]
+ public System.Nullable AttentPersonNum
+ {
+ get
+ {
+ return this._AttentPersonNum;
+ }
+ set
+ {
+ if ((this._AttentPersonNum != value))
+ {
+ this.OnAttentPersonNumChanging(value);
+ this.SendPropertyChanging();
+ this._AttentPersonNum = value;
+ this.SendPropertyChanged("AttentPersonNum");
+ this.OnAttentPersonNumChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHours", DbType="Decimal(9,1)")]
+ public System.Nullable MeetingHours
+ {
+ get
+ {
+ return this._MeetingHours;
+ }
+ set
+ {
+ if ((this._MeetingHours != value))
+ {
+ this.OnMeetingHoursChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingHours = value;
+ this.SendPropertyChanged("MeetingHours");
+ this.OnMeetingHoursChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostMan", DbType="NVarChar(50)")]
+ public string MeetingHostMan
+ {
+ get
+ {
+ return this._MeetingHostMan;
+ }
+ set
+ {
+ if ((this._MeetingHostMan != value))
+ {
+ this.OnMeetingHostManChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingHostMan = value;
+ this.SendPropertyChanged("MeetingHostMan");
+ this.OnMeetingHostManChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(300)")]
+ public string AttentPerson
+ {
+ get
+ {
+ return this._AttentPerson;
+ }
+ set
+ {
+ if ((this._AttentPerson != value))
+ {
+ this.OnAttentPersonChanging(value);
+ this.SendPropertyChanging();
+ this._AttentPerson = value;
+ this.SendPropertyChanged("AttentPerson");
+ this.OnAttentPersonChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingPlace", DbType="NVarChar(200)")]
+ public string MeetingPlace
+ {
+ get
+ {
+ return this._MeetingPlace;
+ }
+ set
+ {
+ if ((this._MeetingPlace != value))
+ {
+ this.OnMeetingPlaceChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingPlace = value;
+ this.SendPropertyChanged("MeetingPlace");
+ this.OnMeetingPlaceChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")]
+ public string UnitId
+ {
+ get
+ {
+ return this._UnitId;
+ }
+ set
+ {
+ if ((this._UnitId != value))
+ {
+ this.OnUnitIdChanging(value);
+ this.SendPropertyChanging();
+ this._UnitId = value;
+ this.SendPropertyChanged("UnitId");
+ this.OnUnitIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostManId", DbType="NVarChar(50)")]
+ public string MeetingHostManId
+ {
+ get
+ {
+ return this._MeetingHostManId;
+ }
+ set
+ {
+ if ((this._MeetingHostManId != value))
+ {
+ this.OnMeetingHostManIdChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingHostManId = value;
+ this.SendPropertyChanged("MeetingHostManId");
+ this.OnMeetingHostManIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPersonIds", DbType="NVarChar(4000)")]
+ public string AttentPersonIds
+ {
+ get
+ {
+ return this._AttentPersonIds;
+ }
+ set
+ {
+ if ((this._AttentPersonIds != value))
+ {
+ this.OnAttentPersonIdsChanging(value);
+ this.SendPropertyChanging();
+ this._AttentPersonIds = value;
+ this.SendPropertyChanged("AttentPersonIds");
+ this.OnAttentPersonIdsChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostManOther", DbType="NVarChar(500)")]
+ public string MeetingHostManOther
+ {
+ get
+ {
+ return this._MeetingHostManOther;
+ }
+ set
+ {
+ if ((this._MeetingHostManOther != value))
+ {
+ this.OnMeetingHostManOtherChanging(value);
+ this.SendPropertyChanging();
+ this._MeetingHostManOther = value;
+ this.SendPropertyChanged("MeetingHostManOther");
+ this.OnMeetingHostManOtherChanged();
+ }
+ }
+ }
+
+ public event PropertyChangingEventHandler PropertyChanging;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void SendPropertyChanging()
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, emptyChangingEventArgs);
+ }
+ }
+
+ protected virtual void SendPropertyChanged(String propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Meeting_SpecialMeeting")]
public partial class Meeting_SpecialMeeting : INotifyPropertyChanging, INotifyPropertyChanged
{
From 64cce0e5b6f0b2f94bfbfd06de820222e2f090bb Mon Sep 17 00:00:00 2001
From: gaofei <181547018@qq.com>
Date: Mon, 22 May 2023 19:51:38 +0800
Subject: [PATCH 2/5] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
SGGL/FineUIPro.Web/DocManage/DocFind.aspx | 125 -------
SGGL/FineUIPro.Web/DocManage/DocFind.aspx.cs | 232 -------------
.../DocManage/DocFind.aspx.designer.cs | 161 ---------
SGGL/FineUIPro.Web/DocManage/FileCabinet.aspx | 206 -----------
.../DocManage/FileCabinet.aspx.cs | 325 ------------------
.../DocManage/FileCabinet.aspx.designer.cs | 224 ------------
.../DocManage/PersonalFileCabinet.aspx | 216 ------------
.../DocManage/PersonalFileCabinet.aspx.cs | 287 ----------------
.../PersonalFileCabinet.aspx.designer.cs | 242 -------------
SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 24 --
10 files changed, 2042 deletions(-)
delete mode 100644 SGGL/FineUIPro.Web/DocManage/DocFind.aspx
delete mode 100644 SGGL/FineUIPro.Web/DocManage/DocFind.aspx.cs
delete mode 100644 SGGL/FineUIPro.Web/DocManage/DocFind.aspx.designer.cs
delete mode 100644 SGGL/FineUIPro.Web/DocManage/FileCabinet.aspx
delete mode 100644 SGGL/FineUIPro.Web/DocManage/FileCabinet.aspx.cs
delete mode 100644 SGGL/FineUIPro.Web/DocManage/FileCabinet.aspx.designer.cs
delete mode 100644 SGGL/FineUIPro.Web/DocManage/PersonalFileCabinet.aspx
delete mode 100644 SGGL/FineUIPro.Web/DocManage/PersonalFileCabinet.aspx.cs
delete mode 100644 SGGL/FineUIPro.Web/DocManage/PersonalFileCabinet.aspx.designer.cs
diff --git a/SGGL/FineUIPro.Web/DocManage/DocFind.aspx b/SGGL/FineUIPro.Web/DocManage/DocFind.aspx
deleted file mode 100644
index 09f3254c..00000000
--- a/SGGL/FineUIPro.Web/DocManage/DocFind.aspx
+++ /dev/null
@@ -1,125 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocFind.aspx.cs" Inherits="FineUIPro.Web.DocManage.DocFind" %>
-
-
-
-
-
- 项目分项
-
-
-
-
-
-
-
diff --git a/SGGL/FineUIPro.Web/DocManage/DocFind.aspx.cs b/SGGL/FineUIPro.Web/DocManage/DocFind.aspx.cs
deleted file mode 100644
index 840300dc..00000000
--- a/SGGL/FineUIPro.Web/DocManage/DocFind.aspx.cs
+++ /dev/null
@@ -1,232 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System;
-using System.Collections.Generic;
-using System.Data;
-using System.Data.SqlClient;
-using System.Linq;
-using System.Web;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-using BLL;
-using System.IO;
-
-namespace FineUIPro.Web.DocManage
-{
- public partial class DocFind : PageBase
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- GetButtonPower();
- ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
-
- // 绑定表格
- BindGrid();
- // btnNew.OnClientClick = Window1.GetShowReference("ProjectSubItemEdit.aspx") + "return false;";
- }
- }
- #region 绑定数据与查看数据
- ///
- /// 绑定数据
- ///
- public void BindGrid()
- {
- DataTable tb = BindData();
- Grid1.RecordCount = tb.Rows.Count;
- tb = GetFilteredTable(Grid1.FilteredData, tb);
- var table = this.GetPagedDataTable(Grid1, tb);
-
- Grid1.DataSource = table;
- Grid1.DataBind();
- }
- protected DataTable BindData()
- {
- string strSql = @"SELECT AttachFileDetaiId
- ,ToKeyId
- ,Name
- ,AliasName
- ,Type
- ,AttachUrl
- ,Classify
- ,SourcePath
- ,HtmlPath
- ,Content
- ,size
- ,UploadTime
- ,U.UserName
- FROM dbo.AttachFileDetail as Att
- left join Sys_User U on att.UploadMan=U.UserId
- left join Doc_DocManage doc on doc.DocId =Att.ToKeyId
- where doc.ProjectId=@ProjectId ";
-
- List listStr = new List();
- listStr.Add(new SqlParameter("@ProjectId", CurrUser.LoginProjectId));
- strSql += " AND (doc.ReceivUnitIds like @ReceivUnitId or doc.SendUnitId = @SendUnitId )";
- if (string.IsNullOrEmpty(this.CurrUser.UnitId))
- {
- return new DataTable();
- }
- listStr.Add(new SqlParameter("@SendUnitId", this.CurrUser.UnitId));
- listStr.Add(new SqlParameter("@ReceivUnitId", "%" + this.CurrUser.UnitId + "%"));
-
- if (!string.IsNullOrEmpty(this.txtkeyword.Text.Trim()))
- {
- if (ListFindType.SelectedValue == "Name")
- {
- strSql += " AND AliasName like @keyword";
-
- }
- else
- {
- strSql += " AND Content like @keyword";
-
-
- }
- listStr.Add(new SqlParameter("@keyword", "%" + this.txtkeyword.Text.Trim() + "%"));
- }
- SqlParameter[] parameter = listStr.ToArray();
- DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
- return tb;
- }
-
- private void LookData()
- {
- if (Grid1.SelectedRowIndexArray.Length == 0)
- {
- Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
- return;
- }
- var model = AttachFileDetailService.GetAttachFileDetaiIdById(Grid1.SelectedRowID);
- if (!string.IsNullOrEmpty(model.SourcePath))
- {
- PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("..{0}", model.SourcePath, "查看 - ")));
-
- }
- }
-
- #endregion
-
- #region 右键菜单事件
- protected void btnMenuView_Click(object sender, EventArgs e)
- {
- LookData();
- }
- #endregion
-
- #region 获取按钮权限
- ///
- /// 获取按钮权限
- ///
- ///
- ///
- private void GetButtonPower()
- {
- if (Request.Params["value"] == "0")
- {
- return;
- }
- var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.DocFindMenuId);
- if (buttonList.Count() > 0)
- {
- if (buttonList.Contains(BLL.Const.BtnAdd))
- {
- // this.btnNew.Hidden = false;
- }
- if (buttonList.Contains(BLL.Const.BtnModify))
- {
- // this.btnMenuModify.Hidden = false;
- }
- if (buttonList.Contains(BLL.Const.BtnDelete))
- {
- //this.btnMenuDel.Hidden = false;
- }
- }
- }
- #endregion
-
- #region 下拉列表事件
- protected void DropProjectSubject_SelectedIndexChanged(object sender, EventArgs e)
- {
- BindGrid();
- }
- #endregion
-
- #region 表格事件
-
- protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
- {
- LookData();
- }
- protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
- {
- BindGrid();
- }
- protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
- {
- if (e.CommandName == "Preview")
- {
- var model = BLL.AttachFileDetailService.GetAttachFileDetaiIdById(e.RowID);
- if (model != null)
- {
- string savedName = model.Name;
- string xnUrl = model.AttachUrl;
- string url = Funs.RootPath + xnUrl;
-
- FileInfo info = new FileInfo(url);
- if (!info.Exists || string.IsNullOrEmpty(savedName))
- {
- url = Funs.RootPath + "Images//Null.jpg";
- info = new FileInfo(url);
- }
- var FiletExtension = Path.GetExtension(savedName);
- bool isSupportType = AttachFileDetailService.IsSupportFileType(FiletExtension);
- if (isSupportType)
- {
- PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../AttachFile/Look.aspx?fileUrl={0}", model.HtmlPath, "查看 -")));
- }
- else
- {
- ShowNotify("不支持预览", MessageBoxIcon.Warning);
-
- }
- }
- }
- }
-
- protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
- {
- Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
- BindGrid();
- }
- #endregion
-
- #region 按钮事件
- protected void btnSearch_Click(object sender, EventArgs e)
- {
- BindGrid();
- }
- ///
- /// 重置
- ///
- ///
- ///
- protected void btnRset_Click(object sender, EventArgs e)
- {
- txtkeyword.Text = "";
- BindGrid();
- }
-
- #endregion
-
- #region 窗体事件
- protected void Window1_Close(object sender, WindowCloseEventArgs e)
- {
- BindGrid();
- }
- #endregion
-
-
- }
-}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DocManage/DocFind.aspx.designer.cs b/SGGL/FineUIPro.Web/DocManage/DocFind.aspx.designer.cs
deleted file mode 100644
index a4995dc6..00000000
--- a/SGGL/FineUIPro.Web/DocManage/DocFind.aspx.designer.cs
+++ /dev/null
@@ -1,161 +0,0 @@
-//------------------------------------------------------------------------------
-// <自动生成>
-// 此代码由工具生成。
-//
-// 对此文件的更改可能导致不正确的行为,如果
-// 重新生成代码,则所做更改将丢失。
-// 自动生成>
-//------------------------------------------------------------------------------
-
-namespace FineUIPro.Web.DocManage
-{
-
-
- public partial class DocFind
- {
-
- ///
- /// form1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
- ///
- /// PageManager1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.PageManager PageManager1;
-
- ///
- /// Panel1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Panel Panel1;
-
- ///
- /// Grid1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Grid Grid1;
-
- ///
- /// Toolbar1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Toolbar Toolbar1;
-
- ///
- /// txtkeyword 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.TextBox txtkeyword;
-
- ///
- /// ListFindType 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.RadioButtonList ListFindType;
-
- ///
- /// btnSearch 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnSearch;
-
- ///
- /// lblPageIndex 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.WebControls.Label lblPageIndex;
-
- ///
- /// ToolbarSeparator1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
-
- ///
- /// ToolbarText1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.ToolbarText ToolbarText1;
-
- ///
- /// ddlPageSize 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.DropDownList ddlPageSize;
-
- ///
- /// Window1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Window Window1;
-
- ///
- /// Window2 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Window Window2;
-
- ///
- /// Menu1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Menu Menu1;
-
- ///
- /// btnMenuView 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton btnMenuView;
- }
-}
diff --git a/SGGL/FineUIPro.Web/DocManage/FileCabinet.aspx b/SGGL/FineUIPro.Web/DocManage/FileCabinet.aspx
deleted file mode 100644
index 221da37e..00000000
--- a/SGGL/FineUIPro.Web/DocManage/FileCabinet.aspx
+++ /dev/null
@@ -1,206 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileCabinet.aspx.cs" Inherits="FineUIPro.Web.DocManage.FileCabinet" %>
-
-
-
-
-
-
- 文件柜
-
-
-
-
-
-
-
-
-
diff --git a/SGGL/FineUIPro.Web/DocManage/FileCabinet.aspx.cs b/SGGL/FineUIPro.Web/DocManage/FileCabinet.aspx.cs
deleted file mode 100644
index a0019afb..00000000
--- a/SGGL/FineUIPro.Web/DocManage/FileCabinet.aspx.cs
+++ /dev/null
@@ -1,325 +0,0 @@
-using BLL;
-using System;
-using System.Collections.Generic;
-using System.Data;
-using System.Data.SqlClient;
-using System.IO;
-using System.Linq;
-using System.Web;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-
-namespace FineUIPro.Web.DocManage
-{
- public partial class FileCabinet : PageBase
- {
-
-
- public string TreeCommand
- {
- get
- {
- return (string)ViewState["TreeCommand"];
- }
- set
- {
- ViewState["TreeCommand"] = value;
- }
- }
- #region 页面加载
- ///
- /// 页面加载
- ///
- ///
- ///
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- GetButtonPower();
- InitTreeMenu();
- }
- }
- #endregion
-
- #region 加载树
- ///
- /// 加载树
- ///
- private void InitTreeMenu()
- {
- if (string.IsNullOrEmpty(this.CurrUser.UnitId))
- {
- return;
- }
- this.tree1.Nodes.Clear();
- this.tree1.ShowBorder = false;
- this.tree1.ShowHeader = false;
- this.tree1.EnableIcons = true;
- this.tree1.AutoScroll = true;
- this.tree1.EnableSingleClickExpand = true;
- if (RadioType.SelectedValue == "Unit")
- {
- List base_Unit = new List();
- // base_Unit = BLL.UnitService.GetUnitListByProjectId(this.CurrUser.LoginProjectId);
-
- var list = BLL.UnitService.GetUnitByUnitId(this.CurrUser.UnitId);
- base_Unit.Add(list);
- foreach (var q in base_Unit) //二级树
- {
- TreeNode newNode = new TreeNode();
- newNode.Text = q.UnitName;
- newNode.NodeID = q.UnitId;
- newNode.CommandName = "Unit";
- newNode.EnableExpandEvent = true;
- newNode.EnableClickEvent = true;
- this.tree1.Nodes.Add(newNode);
- //TreeNode emptyNode = new TreeNode();
- //emptyNode.Text = "";
- //emptyNode.NodeID = "";
- //newNode.Nodes.Add(emptyNode);
- }
- }
- else
- {
- var DocTypeList= DocTypeService.GetDocTypeList();
-
- foreach (var q in DocTypeList)
- {
- TreeNode newNode = new TreeNode();
- newNode.Text = q.DocTypeName;
- newNode.NodeID = q.DocTypeId;
- newNode.CommandName = "DocType";
- newNode.EnableExpandEvent = true;
- newNode.EnableClickEvent = true;
- this.tree1.Nodes.Add(newNode);
- }
- }
- }
- #endregion
-
- #region Tree事件
- ///
- /// Tree点击事件
- ///
- ///
- ///
- protected void tree1_NodeCommand(object sender, TreeCommandEventArgs e)
- {
- TreeCommand = e.CommandName;
- BindGrid();
- }
-
- protected void tree1_NodeExpand(object sender, TreeNodeEventArgs e)
- {
- e.Node.Nodes.Clear();
- if (e.Node.CommandName == "Unit") //展开部门
- {
- var DepartList= DepartService.GetDepartList(e.Node.NodeID);
- foreach (var depart in DepartList)
- {
- TreeNode newNode1 = new TreeNode();
- newNode1.Text = depart.DepartName;
- newNode1.NodeID = depart.DepartId;
- newNode1.CommandName = "Depart";
- newNode1.EnableExpandEvent = true;
- newNode1.EnableClickEvent = true;
- e.Node.Nodes.Add(newNode1);
- }
- }
-
- }
- #endregion
-
- #region 绑定数据
- private void BindGrid()
- {
- string strSql = @"SELECT doc.DocId,doc.ProjectId,doc.DocCode,doc.DocName,unit.UnitName as SendUnitName,doc.ReceivUnitIds,docType.DocTypeName,"
- + @" doc.CompileMan,doc.CompileDate,CNProfessional.ProfessionalName,doc.State,u.userName"
- + @" FROM Doc_DocManage doc "
- + @" left join Base_Unit unit on unit.unitId=doc.SendUnitId "
- + @" left join Base_DocType docType on docType.DocTypeId=doc.DocTypeId "
- + @" left join Base_CNProfessional CNProfessional on CNProfessional.CNProfessionalId=doc.CNProfessionalId "
- + @" left join sys_User u on u.userId = doc.CompileMan"
- + @" where doc.ProjectId=@ProjectId";
-
- List listStr = new List();
- listStr.Add(new SqlParameter("@ProjectId", CurrUser.LoginProjectId));
- if (TreeCommand== "Unit" && !string.IsNullOrEmpty(tree1.SelectedNodeID))
- {
- strSql += " AND doc.SendUnitId=@unitId";
- listStr.Add(new SqlParameter("@unitId", tree1.SelectedNodeID));
- }
- else if (TreeCommand== "Depart" && !string.IsNullOrEmpty(tree1.SelectedNodeID))
- {
- strSql += " AND doc.DepartId=@DepartId";
- listStr.Add(new SqlParameter("@DepartId", tree1.SelectedNodeID));
- }
- else if (TreeCommand== "DocType")
- {
-
- //ReceivUnitIds SendUnitId
- strSql += " AND (doc.ReceivUnitIds like @ReceivUnitId or doc.SendUnitId = @SendUnitId )";
- listStr.Add(new SqlParameter("@SendUnitId", this.CurrUser.UnitId));
- listStr.Add(new SqlParameter("@ReceivUnitId", "%" + this.CurrUser.UnitId + "%"));
- strSql += " AND doc.DocTypeId=@DocTypeId";
- listStr.Add(new SqlParameter("@DocTypeId", tree1.SelectedNodeID));
-
- }
-
-
- SqlParameter[] parameter = listStr.ToArray();
- DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
- tb = GetFilteredTable(Grid1.FilteredData, tb);
- var table = GetPagedDataTable(Grid1, tb);
- Grid1.RecordCount = tb.Rows.Count;
- Grid1.DataSource = table;
- Grid1.DataBind();
- }
-
- #endregion
-
- #region 表格事件
- 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 Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
- {
- if (Grid1.SelectedRowIndexArray.Length == 0)
- {
- Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
- return;
- }
-
- PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../DocManage/DocManageView.aspx?DocId={0}", Grid1.SelectedRowID, "查看 - ")));
-
-
- }
- ///
- /// 行点击事件
- ///
- ///
- ///
- protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
- {
- string id = e.RowID;
- if (e.CommandName.Equals("AttachUrl"))
- {
- string menuId = Const.ProjectControlPointMenuId;
- PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
- String.Format("../AttachFile/Fileuploader.aspx?type=-1&source=1&toKeyId={0}&path=FileUpload/BreakdownProject&menuId={1}", id, menuId)));
- }
- else if (e.CommandName == "Print")
- {
- Print(id);
- }
- }
-
- #endregion
- private void Print(string DocId)
- {
- var model = DocManageService.GetDocByDocId(DocId);
- if (model.State != Const.Doc_State_2)
- {
- ShowNotify("当前状态未闭环无法打印", MessageBoxIcon.Warning);
- return;
- }
- DataTable dt = new DataTable();
- dt = DocManageApproveService.GetListData(DocId);
- if (dt.Columns.Count == 0)
- {
- dt.Columns.Add("RoleName", typeof(String));
- dt.Columns.Add("ApproveMan", typeof(String));
- dt.Columns.Add("ApproveDate", typeof(String));
- dt.Columns.Add("ApproveIdea", typeof(String));
-
- }
- var keyValuePairs = BLL.DocManageService.GetPairs(DocId);
- dt.TableName = "Table1";
-
- BLL.Common.FastReport.ResetData();
- BLL.Common.FastReport.AddFastreportTable(dt);
- BLL.Common.FastReport.AddFastreportParameter(keyValuePairs);
- string initTemplatePath = "File/Fastreport/新疆文件管理流转表.frx";
- string rootPath = Server.MapPath("~/");
- if (File.Exists(rootPath + initTemplatePath))
- {
- PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../Controls/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
-
-
- }
- }
-
-
- #region 右键菜单事件
- protected void btnMenuView_Click(object sender, EventArgs e)
- {
- if (Grid1.SelectedRowIndexArray.Length == 0)
- {
- Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
- return;
- }
-
- PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../DocManage/DocManageView.aspx?DocId={0}", Grid1.SelectedRowID, "查看 - ")));
-
- }
-
- #endregion
-
- #region 获取按钮权限
- ///
- /// 获取按钮权限
- ///
- ///
- ///
- private void GetButtonPower()
- {
- if (Request.Params["value"] == "0")
- {
- return;
- }
- var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId);
- if (buttonList.Count() > 0)
- {
- if (buttonList.Contains(BLL.Const.BtnAdd))
- {
- // this.btnNew.Hidden = false;
- }
- }
- }
- #endregion
-
- protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
- {
- InitTreeMenu();
-
- }
-
-
- }
-}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DocManage/FileCabinet.aspx.designer.cs b/SGGL/FineUIPro.Web/DocManage/FileCabinet.aspx.designer.cs
deleted file mode 100644
index 7a095ba8..00000000
--- a/SGGL/FineUIPro.Web/DocManage/FileCabinet.aspx.designer.cs
+++ /dev/null
@@ -1,224 +0,0 @@
-//------------------------------------------------------------------------------
-// <自动生成>
-// 此代码由工具生成。
-//
-// 对此文件的更改可能导致不正确的行为,如果
-// 重新生成代码,则所做更改将丢失。
-// 自动生成>
-//------------------------------------------------------------------------------
-
-namespace FineUIPro.Web.DocManage
-{
-
-
- public partial class FileCabinet
- {
-
- ///
- /// form1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
- ///
- /// PageManager1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.PageManager PageManager1;
-
- ///
- /// Panel1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Panel Panel1;
-
- ///
- /// panelLeftRegion 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Panel panelLeftRegion;
-
- ///
- /// Toolbar1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Toolbar Toolbar1;
-
- ///
- /// RadioType 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.RadioButtonList RadioType;
-
- ///
- /// tree1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tree tree1;
-
- ///
- /// hdSelectId 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.HiddenField hdSelectId;
-
- ///
- /// hdUnitWorkId 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.HiddenField hdUnitWorkId;
-
- ///
- /// panelCenterRegion 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Panel panelCenterRegion;
-
- ///
- /// Grid1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Grid Grid1;
-
- ///
- /// lblPageIndex 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.WebControls.Label lblPageIndex;
-
- ///
- /// Label3 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.WebControls.Label Label3;
-
- ///
- /// Label2 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.WebControls.Label Label2;
-
- ///
- /// Label1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.WebControls.Label Label1;
-
- ///
- /// ToolbarSeparator1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
-
- ///
- /// ToolbarText1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.ToolbarText ToolbarText1;
-
- ///
- /// ddlPageSize 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.DropDownList ddlPageSize;
-
- ///
- /// WindowAtt 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Window WindowAtt;
-
- ///
- /// Window2 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Window Window2;
-
- ///
- /// Window1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Window Window1;
-
- ///
- /// Menu1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Menu Menu1;
-
- ///
- /// btnMenuView 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton btnMenuView;
- }
-}
diff --git a/SGGL/FineUIPro.Web/DocManage/PersonalFileCabinet.aspx b/SGGL/FineUIPro.Web/DocManage/PersonalFileCabinet.aspx
deleted file mode 100644
index 48a57f97..00000000
--- a/SGGL/FineUIPro.Web/DocManage/PersonalFileCabinet.aspx
+++ /dev/null
@@ -1,216 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonalFileCabinet.aspx.cs" Inherits="FineUIPro.Web.DocManage.PersonalFileCabinet" %>
-
-
-
-
-
-
- 文件柜
-
-
-
-
-
-
-
-
diff --git a/SGGL/FineUIPro.Web/DocManage/PersonalFileCabinet.aspx.cs b/SGGL/FineUIPro.Web/DocManage/PersonalFileCabinet.aspx.cs
deleted file mode 100644
index 40b43c96..00000000
--- a/SGGL/FineUIPro.Web/DocManage/PersonalFileCabinet.aspx.cs
+++ /dev/null
@@ -1,287 +0,0 @@
-using BLL;
-using System;
-using System.Collections.Generic;
-using System.Data;
-using System.Data.SqlClient;
-using System.IO;
-using System.Linq;
-using System.Web;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-
-namespace FineUIPro.Web.DocManage
-{
- public partial class PersonalFileCabinet : PageBase
- {
- #region 页面加载
- ///
- /// 页面加载
- ///
- ///
- ///
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- GetButtonPower();
- InitTreeMenu();
- }
- }
- #endregion
-
- #region 加载树
- ///
- /// 加载树
- ///
- private void InitTreeMenu()
- {
- if (string.IsNullOrEmpty(this.CurrUser.UnitId))
- {
- return;
- }
- this.tree1.Nodes.Clear();
- this.tree1.ShowBorder = false;
- this.tree1.ShowHeader = false;
- this.tree1.EnableIcons = true;
- this.tree1.AutoScroll = true;
- this.tree1.EnableSingleClickExpand = true;
- if (RadioType.SelectedValue == "Unit")
- {
- List base_Unit = new List();
- var list = BLL.UnitService.GetUnitByUnitId(this.CurrUser.UnitId); //非业主
- base_Unit.Add(list);
-
- foreach (var q in base_Unit)
- {
- TreeNode newNode = new TreeNode();
- newNode.Text = q.UnitName;
- newNode.NodeID = q.UnitId;
- newNode.CommandName = "Unit";
- newNode.EnableExpandEvent = true;
- newNode.EnableClickEvent = true;
- this.tree1.Nodes.Add(newNode);
- }
-
- }
- else
- {
- var DocTypeList = DocTypeService.GetDocTypeList();
-
- foreach (var q in DocTypeList)
- {
- TreeNode newNode = new TreeNode();
- newNode.Text = q.DocTypeName;
- newNode.NodeID = q.DocTypeId;
- newNode.EnableExpandEvent = true;
- newNode.EnableClickEvent = true;
- this.tree1.Nodes.Add(newNode);
-
- }
-
- }
-
- }
- #endregion
-
- #region Tree点击事件
- ///
- /// Tree点击事件
- ///
- ///
- ///
- protected void tree1_NodeCommand(object sender, TreeCommandEventArgs e)
- {
- BindGrid();
- }
- #endregion
-
-
-
-
- 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();
- }
-
-
- private void BindGrid()
- {
- string strSql = @"SELECT doc.DocId,doc.ProjectId,doc.DocCode,doc.DocName,unit.UnitName as SendUnitName,doc.ReceivUnitIds,docType.DocTypeName,"
- + @" doc.CompileMan,doc.CompileDate,CNProfessional.ProfessionalName,doc.State,u.userName"
- + @" FROM Doc_DocManage doc "
- + @" left join Base_Unit unit on unit.unitId=doc.SendUnitId "
- + @" left join Base_DocType docType on docType.DocTypeId=doc.DocTypeId "
- + @" left join Base_CNProfessional CNProfessional on CNProfessional.CNProfessionalId=doc.CNProfessionalId "
- + @" left join sys_User u on u.userId = doc.CompileMan"
- + @" where doc.ProjectId=@ProjectId";
-
- List listStr = new List();
- listStr.Add(new SqlParameter("@ProjectId", CurrUser.LoginProjectId));
- if (RadioType.SelectedValue == "Unit" && !string.IsNullOrEmpty(tree1.SelectedNodeID))
- {
- strSql += " AND doc.SendUnitId=@unitId";
- listStr.Add(new SqlParameter("@unitId", tree1.SelectedNodeID));
-
- }
- else if (RadioType.SelectedValue == "DocType" && !string.IsNullOrEmpty(tree1.SelectedNodeID))
- {
- strSql += " AND doc.DocTypeId=@DocTypeId";
- listStr.Add(new SqlParameter("@DocTypeId", tree1.SelectedNodeID));
- }
- if (RadioList2.SelectedValue=="Send")
- {
- strSql += " AND doc.CompileMan=@CompileMan";
- listStr.Add(new SqlParameter("@CompileMan", this.CurrUser.UserId));
- }
- else
- {
- strSql += " AND doc.AcceptMan like @AcceptMan";
- listStr.Add(new SqlParameter("@AcceptMan", "%"+this.CurrUser.UserId+"%"));
- }
- SqlParameter[] parameter = listStr.ToArray();
- DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
- tb = GetFilteredTable(Grid1.FilteredData, tb);
- var table = GetPagedDataTable(Grid1, tb);
- Grid1.RecordCount = tb.Rows.Count;
-
- Grid1.DataSource = table;
- Grid1.DataBind();
- }
-
-
- #region 行点击事件
- protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
- {
- string id = e.RowID;
- if (e.CommandName.Equals("AttachUrl"))
- {
- string menuId = Const.ProjectControlPointMenuId;
- PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
- String.Format("../AttachFile/Fileuploader.aspx?type=-1&source=1&toKeyId={0}&path=FileUpload/BreakdownProject&menuId={1}", id, menuId)));
- }
- else if (e.CommandName == "Print")
- {
- Print(id);
- }
- }
- #endregion
- private void Print(string DocId)
- {
- var model = DocManageService.GetDocByDocId(DocId);
- if (model.State != Const.Doc_State_2)
- {
- ShowNotify("当前状态未闭环无法打印", MessageBoxIcon.Warning);
- return;
- }
- DataTable dt = new DataTable();
- dt = DocManageApproveService.GetListData(DocId);
- if (dt.Columns.Count == 0)
- {
- dt.Columns.Add("RoleName", typeof(String));
- dt.Columns.Add("ApproveMan", typeof(String));
- dt.Columns.Add("ApproveDate", typeof(String));
- dt.Columns.Add("ApproveIdea", typeof(String));
-
- }
- var keyValuePairs = BLL.DocManageService.GetPairs(DocId);
- dt.TableName = "Table1";
-
- BLL.Common.FastReport.ResetData();
- BLL.Common.FastReport.AddFastreportTable(dt);
- BLL.Common.FastReport.AddFastreportParameter(keyValuePairs);
- string initTemplatePath = "File/Fastreport/新疆文件管理流转表.frx";
- string rootPath = Server.MapPath("~/");
- if (File.Exists(rootPath + initTemplatePath))
- {
- PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../Controls/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
-
-
- }
- }
-
- #region 获取按钮权限
- ///
- /// 获取按钮权限
- ///
- ///
- ///
- private void GetButtonPower()
- {
- if (Request.Params["value"] == "0")
- {
- return;
- }
- var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId);
- if (buttonList.Count() > 0)
- {
- if (buttonList.Contains(BLL.Const.BtnAdd))
- {
- // this.btnNew.Hidden = false;
- }
- }
- }
- #endregion
-
- protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
- {
- InitTreeMenu();
- }
-
- protected void RadioList2_SelectedIndexChanged(object sender, EventArgs e)
- {
- BindGrid();
-
- }
-
- protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
- {
- if (Grid1.SelectedRowIndexArray.Length == 0)
- {
- Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
- return;
- }
-
- PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../DocManage/DocManageView.aspx?DocId={0}", Grid1.SelectedRowID, "查看 - ")));
-
- }
-
- #region 右键菜单事件
- protected void btnMenuView_Click(object sender, EventArgs e)
- {
- if (Grid1.SelectedRowIndexArray.Length == 0)
- {
- Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
- return;
- }
-
- PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../DocManage/DocManageView.aspx?DocId={0}", Grid1.SelectedRowID, "查看 - ")));
-
- }
-
- #endregion
- }
-}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DocManage/PersonalFileCabinet.aspx.designer.cs b/SGGL/FineUIPro.Web/DocManage/PersonalFileCabinet.aspx.designer.cs
deleted file mode 100644
index 04e5ec2a..00000000
--- a/SGGL/FineUIPro.Web/DocManage/PersonalFileCabinet.aspx.designer.cs
+++ /dev/null
@@ -1,242 +0,0 @@
-//------------------------------------------------------------------------------
-// <自动生成>
-// 此代码由工具生成。
-//
-// 对此文件的更改可能导致不正确的行为,如果
-// 重新生成代码,则所做更改将丢失。
-// 自动生成>
-//------------------------------------------------------------------------------
-
-namespace FineUIPro.Web.DocManage
-{
-
-
- public partial class PersonalFileCabinet
- {
-
- ///
- /// form1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
- ///
- /// PageManager1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.PageManager PageManager1;
-
- ///
- /// Panel1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Panel Panel1;
-
- ///
- /// panelLeftRegion 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Panel panelLeftRegion;
-
- ///
- /// Toolbar1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Toolbar Toolbar1;
-
- ///
- /// RadioType 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.RadioButtonList RadioType;
-
- ///
- /// tree1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tree tree1;
-
- ///
- /// hdSelectId 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.HiddenField hdSelectId;
-
- ///
- /// hdUnitWorkId 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.HiddenField hdUnitWorkId;
-
- ///
- /// panelCenterRegion 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Panel panelCenterRegion;
-
- ///
- /// Toolbar2 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Toolbar Toolbar2;
-
- ///
- /// RadioList2 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.RadioButtonList RadioList2;
-
- ///
- /// Grid1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Grid Grid1;
-
- ///
- /// lblPageIndex 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.WebControls.Label lblPageIndex;
-
- ///
- /// Label3 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.WebControls.Label Label3;
-
- ///
- /// Label2 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.WebControls.Label Label2;
-
- ///
- /// Label1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.WebControls.Label Label1;
-
- ///
- /// ToolbarSeparator1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
-
- ///
- /// ToolbarText1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.ToolbarText ToolbarText1;
-
- ///
- /// ddlPageSize 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.DropDownList ddlPageSize;
-
- ///
- /// WindowAtt 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Window WindowAtt;
-
- ///
- /// Window2 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Window Window2;
-
- ///
- /// Window1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Window Window1;
-
- ///
- /// Menu1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Menu Menu1;
-
- ///
- /// btnMenuView 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton btnMenuView;
- }
-}
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 17c988b7..86cfeb13 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -531,12 +531,9 @@
-
-
-
@@ -8093,13 +8090,6 @@
HSEDataCollect.aspx
-
- DocFind.aspx
- ASPXCodeBehind
-
-
- DocFind.aspx
-
DocManage.aspx
ASPXCodeBehind
@@ -8121,20 +8111,6 @@
DocManageView.aspx
-
- FileCabinet.aspx
- ASPXCodeBehind
-
-
- FileCabinet.aspx
-
-
- PersonalFileCabinet.aspx
- ASPXCodeBehind
-
-
- PersonalFileCabinet.aspx
-
AbsenceDuty.aspx
ASPXCodeBehind
From ea1634cbc7a55cb7d28de3488ab73d45be4590b4 Mon Sep 17 00:00:00 2001
From: gaofei <181547018@qq.com>
Date: Fri, 26 May 2023 10:24:02 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AE=BE=E5=A4=87=E6=9D=90=E6=96=99=E5=88=86?=
=?UTF-8?q?=E7=B1=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
DataBase/版本日志/SGGLDB_WH_2023-05-23.sql | 6 +
DataBase/版本日志/SGGLDB_WH_2023-05-24.sql | 49 +++
.../1-4进度管理(Menu_JDGL).sql | 13 +
SGGL/BLL/API/APICommonService.cs | 6 +-
SGGL/BLL/BLL.csproj | 1 +
SGGL/BLL/Common/Const.cs | 7 +-
SGGL/BLL/JDGL/WBS/CostControlService.cs | 2 +
.../JDGL/WBS/EquipmentMaterialTypeService.cs | 125 ++++++
SGGL/FineUIPro.Web/ErrLog.txt | 405 ++++++++++++++++--
SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 24 ++
.../JDGL/CostAnalysis/JDReport.aspx | 56 ++-
.../JDGL/CostAnalysis/JDReport.aspx.cs | 69 ++-
.../CostAnalysis/JDReport.aspx.designer.cs | 8 +-
.../JDGL/WBS/CostControlEdit.aspx | 5 +
.../JDGL/WBS/CostControlEdit.aspx.cs | 13 +
.../JDGL/WBS/CostControlEdit.aspx.designer.cs | 9 +
.../JDGL/WBS/EquipmentMaterialType.aspx | 114 +++++
.../JDGL/WBS/EquipmentMaterialType.aspx.cs | 182 ++++++++
.../EquipmentMaterialType.aspx.designer.cs | 177 ++++++++
.../JDGL/WBS/EquipmentMaterialTypeEdit.aspx | 54 +++
.../WBS/EquipmentMaterialTypeEdit.aspx.cs | 61 +++
...EquipmentMaterialTypeEdit.aspx.designer.cs | 105 +++++
.../JDGL/WBS/EquipmentMaterialTypeView.aspx | 54 +++
.../WBS/EquipmentMaterialTypeView.aspx.cs | 34 ++
...EquipmentMaterialTypeView.aspx.designer.cs | 105 +++++
SGGL/FineUIPro.Web/JDGL/WBS/WBSSetAudit.aspx | 3 +
.../JDGL/WBS/WBSSetAudit.aspx.cs | 2 +-
SGGL/FineUIPro.Web/common/Menu_JDGL.xml | 3 +-
SGGL/Model/Model.cs | 238 ++++++++++
29 files changed, 1866 insertions(+), 64 deletions(-)
create mode 100644 DataBase/版本日志/SGGLDB_WH_2023-05-23.sql
create mode 100644 DataBase/版本日志/SGGLDB_WH_2023-05-24.sql
create mode 100644 SGGL/BLL/JDGL/WBS/EquipmentMaterialTypeService.cs
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.designer.cs
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx.designer.cs
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeView.aspx
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeView.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeView.aspx.designer.cs
diff --git a/DataBase/版本日志/SGGLDB_WH_2023-05-23.sql b/DataBase/版本日志/SGGLDB_WH_2023-05-23.sql
new file mode 100644
index 00000000..c46fee9e
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_WH_2023-05-23.sql
@@ -0,0 +1,6 @@
+insert into [Sys_Const]
+values('C92CC20B-1710-4DD3-A0DA-9E308DCC945B','Menu_Doc','Э빵ͨ',13,'MenuType_P',null)
+GO
+
+
+
diff --git a/DataBase/版本日志/SGGLDB_WH_2023-05-24.sql b/DataBase/版本日志/SGGLDB_WH_2023-05-24.sql
new file mode 100644
index 00000000..fb348ba1
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_WH_2023-05-24.sql
@@ -0,0 +1,49 @@
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('D00B3C53-2972-4D24-B88F-B38880D4A24F','豸Ϸ','JDGL/WBS/EquipmentMaterialType.aspx',5,'0','Menu_JDGL',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('3B588E9C-B89C-466B-B1A6-A8986F04EBA6','D00B3C53-2972-4D24-B88F-B38880D4A24F','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('9522CCE6-9F26-4C4B-84AC-708E7FC7F39D','D00B3C53-2972-4D24-B88F-B38880D4A24F','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('D2F495A5-33D0-49B2-BEF5-BA96C9283D71','D00B3C53-2972-4D24-B88F-B38880D4A24F','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('2AE8CA32-9218-41A1-AEFF-33B5EB416B08','D00B3C53-2972-4D24-B88F-B38880D4A24F','',4)
+ GO
+
+
+
+CREATE TABLE [dbo].[WBS_EquipmentMaterialType](
+ [EquipmentMaterialTypeId] [nvarchar](50) NOT NULL,
+ [EquipmentMaterialTypeCode] [nvarchar](50) NULL,
+ [EquipmentMaterialTypeName] [nvarchar](50) NULL,
+ [Remark] [nvarchar](100) NULL,
+ CONSTRAINT [PK_WBS_EquipmentMaterialType] PRIMARY KEY CLUSTERED
+(
+ [EquipmentMaterialTypeId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_EquipmentMaterialType', @level2type=N'COLUMN',@level2name=N'EquipmentMaterialTypeId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_EquipmentMaterialType', @level2type=N'COLUMN',@level2name=N'EquipmentMaterialTypeCode'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_EquipmentMaterialType', @level2type=N'COLUMN',@level2name=N'EquipmentMaterialTypeName'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_EquipmentMaterialType', @level2type=N'COLUMN',@level2name=N'Remark'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'豸Ϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_EquipmentMaterialType'
+GO
+
+
+alter table WBS_CostControl add EquipmentMaterialTypeId nvarchar(50) null
+GO
+alter table WBS_CostControl add constraint FK_WBS_CostControl_WBS_EquipmentMaterialType
+foreign key (EquipmentMaterialTypeId) references WBS_EquipmentMaterialType (EquipmentMaterialTypeId)
+GO
\ No newline at end of file
diff --git a/DataBase/菜单初始化脚本/1-4进度管理(Menu_JDGL).sql b/DataBase/菜单初始化脚本/1-4进度管理(Menu_JDGL).sql
index 2368f3a8..11a57366 100644
--- a/DataBase/菜单初始化脚本/1-4进度管理(Menu_JDGL).sql
+++ b/DataBase/菜单初始化脚本/1-4进度管理(Menu_JDGL).sql
@@ -6,6 +6,19 @@ go
--INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
--VALUES('B707B4E0-EF73-4010-A13B-59263A5029C7','单位、分部、分项工程设置','',10,'0','Menu_JDGL',0,0,1)
--GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('D00B3C53-2972-4D24-B88F-B38880D4A24F','设备材料分类','JDGL/WBS/EquipmentMaterialType.aspx',5,'0','Menu_JDGL',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('3B588E9C-B89C-466B-B1A6-A8986F04EBA6','D00B3C53-2972-4D24-B88F-B38880D4A24F','增加',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('9522CCE6-9F26-4C4B-84AC-708E7FC7F39D','D00B3C53-2972-4D24-B88F-B38880D4A24F','修改',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('D2F495A5-33D0-49B2-BEF5-BA96C9283D71','D00B3C53-2972-4D24-B88F-B38880D4A24F','删除',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('2AE8CA32-9218-41A1-AEFF-33B5EB416B08','D00B3C53-2972-4D24-B88F-B38880D4A24F','保存',4)
+ GO
+
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('858E83E9-ADE5-452E-BD65-82D8DFF872C0','分部、工作项及费用清单裁剪','JDGL/WBS/WBSSetAudit.aspx',10,'0','Menu_JDGL',0,1,1)
GO
diff --git a/SGGL/BLL/API/APICommonService.cs b/SGGL/BLL/API/APICommonService.cs
index a8c24095..c837f98b 100644
--- a/SGGL/BLL/API/APICommonService.cs
+++ b/SGGL/BLL/API/APICommonService.cs
@@ -92,9 +92,9 @@ namespace BLL
page = "pages/index/main",
data = new
{
- thing2 = new { value = thing2 },
- name1 = new { value = name1 },
- date3 = new { value = date3 }
+ thing3 = new { value = thing2 },
+ thing13 = new { value = name1 },
+ time5 = new { value = date3 }
},
miniprogram_state,
lang = "zh_CN",
diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index 582d2550..8999c286 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -582,6 +582,7 @@
+
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index 27a49771..27d97a2a 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -61,7 +61,7 @@ namespace BLL
///
/// 微信订阅模板ID
///
- public const string WX_TemplateID = "hKFrcahyXEjGSrLM4qBPpjXAkFldnrqxU_mARd1IF4o";
+ public const string WX_TemplateID = "1gT0FfTc2LwnnqUCU8h_nXDyv8VGtne1Iolo47gPA0c";
///
/// 五环OA 私钥
@@ -5204,6 +5204,11 @@ namespace BLL
///
public const string ProjectInstallationMenuId = "A4308F9A-0280-49C5-BEE4-FA858FE1CE24";
+ ///
+ /// 设备材料分类
+ ///
+ public const string EquipmentMaterialTypeMenuId = "D00B3C53-2972-4D24-B88F-B38880D4A24F";
+
///
/// 分部、工作项及费用清单设置
///
diff --git a/SGGL/BLL/JDGL/WBS/CostControlService.cs b/SGGL/BLL/JDGL/WBS/CostControlService.cs
index e0d1b599..7a0839d2 100644
--- a/SGGL/BLL/JDGL/WBS/CostControlService.cs
+++ b/SGGL/BLL/JDGL/WBS/CostControlService.cs
@@ -63,6 +63,7 @@ namespace BLL
newUP.CostControlName = costControl.CostControlName;
newUP.Unit = costControl.Unit;
newUP.IsSelected = costControl.IsSelected;
+ newUP.EquipmentMaterialTypeId = costControl.EquipmentMaterialTypeId;
newUP.TotalNum = costControl.TotalNum;
newUP.RealPrice = costControl.RealPrice;
@@ -84,6 +85,7 @@ namespace BLL
newUP.Unit = costControl.Unit;
newUP.TotalNum = costControl.TotalNum;
newUP.IsSelected = costControl.IsSelected;
+ newUP.EquipmentMaterialTypeId = costControl.EquipmentMaterialTypeId;
newUP.RealPrice = costControl.RealPrice;
newUP.PlanPrice = costControl.PlanPrice;
newUP.PlanStartDate = costControl.PlanStartDate;
diff --git a/SGGL/BLL/JDGL/WBS/EquipmentMaterialTypeService.cs b/SGGL/BLL/JDGL/WBS/EquipmentMaterialTypeService.cs
new file mode 100644
index 00000000..a16cfa4b
--- /dev/null
+++ b/SGGL/BLL/JDGL/WBS/EquipmentMaterialTypeService.cs
@@ -0,0 +1,125 @@
+using FineUIPro;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace BLL
+{
+ public static class EquipmentMaterialTypeService
+ {
+ public static Model.SGGLDB db = Funs.DB;
+
+ ///
+ /// 获取实体集合
+ ///
+ ///
+ public static List GetList()
+ {
+ var q = (from x in Funs.DB.WBS_EquipmentMaterialType orderby x.EquipmentMaterialTypeCode select x).ToList();
+ return q;
+ }
+ ///
+ /// 添加
+ ///
+ ///
+ public static void AddEquipmentMaterialType(Model.WBS_EquipmentMaterialType equipmentMaterialType)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.WBS_EquipmentMaterialType newEquipmentMaterialType = new Model.WBS_EquipmentMaterialType
+ {
+ EquipmentMaterialTypeId = equipmentMaterialType.EquipmentMaterialTypeId,
+ EquipmentMaterialTypeCode = equipmentMaterialType.EquipmentMaterialTypeCode,
+ EquipmentMaterialTypeName = equipmentMaterialType.EquipmentMaterialTypeName,
+ Remark = equipmentMaterialType.Remark
+ };
+
+ db.WBS_EquipmentMaterialType.InsertOnSubmit(newEquipmentMaterialType);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改
+ ///
+ ///
+ public static void UpdateEquipmentMaterialType(Model.WBS_EquipmentMaterialType equipmentMaterialType)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.WBS_EquipmentMaterialType newEquipmentMaterialType = db.WBS_EquipmentMaterialType.FirstOrDefault(e => e.EquipmentMaterialTypeId == equipmentMaterialType.EquipmentMaterialTypeId);
+ if (newEquipmentMaterialType != null)
+ {
+ newEquipmentMaterialType.EquipmentMaterialTypeCode = equipmentMaterialType.EquipmentMaterialTypeCode;
+ newEquipmentMaterialType.EquipmentMaterialTypeName = equipmentMaterialType.EquipmentMaterialTypeName;
+ newEquipmentMaterialType.Remark = equipmentMaterialType.Remark;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除信息
+ ///
+ ///
+ public static void DeleteEquipmentMaterialTypeById(string equipmentMaterialTypeId)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.WBS_EquipmentMaterialType equipmentMaterialType = db.WBS_EquipmentMaterialType.FirstOrDefault(e => e.EquipmentMaterialTypeId == equipmentMaterialTypeId);
+ {
+ db.WBS_EquipmentMaterialType.DeleteOnSubmit(equipmentMaterialType);
+ db.SubmitChanges();
+ }
+ }
+ public static void InitEquipmentMaterialTypeDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
+ {
+ dropName.DataValueField = "Value";
+ dropName.DataTextField = "Text";
+ dropName.DataSource = GetEquipmentMaterialTypeItem();
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
+ ///
+ /// 设备材料分类下拉框
+ ///
+ ///
+ ///
+ ///
+ public static void InitEquipmentMaterialType(FineUIPro.DropDownList dropName, bool isShowPlease)
+ {
+ dropName.DataValueField = "Text";
+ dropName.DataTextField = "Text";
+ dropName.DataSource = GetEquipmentMaterialTypeItem();
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
+ ///
+ /// 获取设备材料分类集合
+ ///
+ ///
+ public static ListItem[] GetEquipmentMaterialTypeItem()
+ {
+ var q = (from x in Funs.DB.WBS_EquipmentMaterialType orderby x.EquipmentMaterialTypeCode select x).ToList();
+ ListItem[] list = new ListItem[q.Count()];
+ for (int i = 0; i < q.Count(); i++)
+ {
+ list[i] = new ListItem(q[i].EquipmentMaterialTypeName ?? "", q[i].EquipmentMaterialTypeId);
+ }
+ return list;
+ }
+
+ ///
+ /// 获取一个设备材料分类信息
+ ///
+ ///
+ ///
+ public static Model.WBS_EquipmentMaterialType GetEquipmentMaterialType(string EquipmentMaterialTypeId)
+ {
+ return Funs.DB.WBS_EquipmentMaterialType.FirstOrDefault(e => e.EquipmentMaterialTypeId == EquipmentMaterialTypeId);
+ }
+ }
+}
diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt
index b95cf839..356083b2 100644
--- a/SGGL/FineUIPro.Web/ErrLog.txt
+++ b/SGGL/FineUIPro.Web/ErrLog.txt
@@ -1,62 +1,389 @@
错误信息开始=====>
错误类型:IndexOutOfRangeException
-错误信息:在位置 -1 处没有任何行。
+错误信息:无法找到列 SortIndex。
错误堆栈:
- 在 System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
- 在 System.Data.DataRowCollection.get_Item(Int32 index)
- 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.GetValue() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 112
- 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 25
+ 在 System.Data.DataTable.ParseSortString(String sortString)
+ 在 System.Data.DataView.CheckSort(String sort)
+ 在 System.Data.DataView.set_Sort(String value)
+ 在 FineUIPro.Web.PageBase.GetPagedDataTable(Grid Grid1, DataTable tb) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\common\PageBase.cs:行号 562
+ 在 FineUIPro.Web.JDGL.WBS.EquipmentMaterialType.BindGrid() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\EquipmentMaterialType.aspx.cs:行号 36
+ 在 FineUIPro.Web.JDGL.WBS.EquipmentMaterialType.Window1_Close(Object sender, WindowCloseEventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\EquipmentMaterialType.aspx.cs:行号 179
+ 在 FineUIPro.Window.OnClose(WindowCloseEventArgs e)
+ 在 (Window , WindowCloseEventArgs )
+ 在 FineUIPro.Window.RaisePostBackEvent(String eventArgument)
+ 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
+ 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
+ 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+出错时间:05/24/2023 10:22:42
+出错文件:http://localhost:9733/JDGL/WBS/EquipmentMaterialType.aspx
+IP地址:::1
+操作人员:JT
+
+出错时间:05/24/2023 10:22:42
+
+
+错误信息开始=====>
+错误类型:IndexOutOfRangeException
+错误信息:无法找到列 SortIndex。
+错误堆栈:
+ 在 System.Data.DataTable.ParseSortString(String sortString)
+ 在 System.Data.DataView.CheckSort(String sort)
+ 在 System.Data.DataView.set_Sort(String value)
+ 在 FineUIPro.Web.PageBase.GetPagedDataTable(Grid Grid1, DataTable tb) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\common\PageBase.cs:行号 562
+ 在 FineUIPro.Web.JDGL.WBS.EquipmentMaterialType.BindGrid() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\EquipmentMaterialType.aspx.cs:行号 36
+ 在 FineUIPro.Web.JDGL.WBS.EquipmentMaterialType.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\EquipmentMaterialType.aspx.cs:行号 23
在 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)
-出错时间:05/22/2023 16:07:56
-出错文件:http://localhost:9733/JDGL/CostAnalysis/JDReport.aspx
+出错时间:05/24/2023 10:22:45
+出错文件:http://localhost:9733/JDGL/WBS/EquipmentMaterialType.aspx
IP地址:::1
操作人员:JT
-出错时间:05/22/2023 16:07:56
-
-
-错误信息开始=====>
-错误类型:IndexOutOfRangeException
-错误信息:在位置 -1 处没有任何行。
-错误堆栈:
- 在 System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
- 在 System.Data.DataRowCollection.get_Item(Int32 index)
- 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.GetValue() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 114
- 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 25
- 在 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)
-出错时间:05/22/2023 16:10:36
-出错文件:http://localhost:9733/JDGL/CostAnalysis/JDReport.aspx
-IP地址:::1
-操作人员:JT
-
-出错时间:05/22/2023 16:10:36
+出错时间:05/24/2023 10:22:45
错误信息开始=====>
错误类型:ArgumentException
-错误信息:Data arrays must not be empty.
+错误信息:提供的 URI 方案“http”无效,应为“https”。
+参数名: via
错误堆栈:
- 在 Aspose.Words.Drawing.Charts.ChartSeriesCollection.Add(String seriesName, String[] categories, Double[] values)
- 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.btnOut_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 466
- 在 FineUIPro.Button.OnClick(EventArgs e)
- 在 (Button , EventArgs )
- 在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
- 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
- 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
+ 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
+ 在 System.ServiceModel.ClientBase`1.get_Channel()
+ 在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2157
+出错时间:05/24/2023 12:47:53
+出错时间:05/24/2023 12:47:54
+
+
+错误信息开始=====>
+错误类型:ArgumentException
+错误信息:提供的 URI 方案“http”无效,应为“https”。
+参数名: via
+错误堆栈:
+ 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
+ 在 System.ServiceModel.ClientBase`1.get_Channel()
+ 在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2022
+出错时间:05/24/2023 12:47:54
+出错时间:05/24/2023 12:47:54
+
+
+错误信息开始=====>
+错误类型:ArgumentException
+错误信息:提供的 URI 方案“http”无效,应为“https”。
+参数名: via
+错误堆栈:
+ 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
+ 在 System.ServiceModel.ClientBase`1.get_Channel()
+ 在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1918
+出错时间:05/24/2023 12:47:54
+出错时间:05/24/2023 12:47:54
+
+
+错误信息开始=====>
+错误类型:ArgumentException
+错误信息:提供的 URI 方案“http”无效,应为“https”。
+参数名: via
+错误堆栈:
+ 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
+ 在 System.ServiceModel.ClientBase`1.get_Channel()
+ 在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1860
+出错时间:05/24/2023 12:47:54
+出错时间:05/24/2023 12:47:54
+
+
+错误信息开始=====>
+错误类型:ArgumentException
+错误信息:提供的 URI 方案“http”无效,应为“https”。
+参数名: via
+错误堆栈:
+ 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
+ 在 System.ServiceModel.ClientBase`1.get_Channel()
+ 在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2157
+出错时间:05/24/2023 14:47:53
+出错时间:05/24/2023 14:47:53
+
+
+错误信息开始=====>
+错误类型:ArgumentException
+错误信息:提供的 URI 方案“http”无效,应为“https”。
+参数名: via
+错误堆栈:
+ 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
+ 在 System.ServiceModel.ClientBase`1.get_Channel()
+ 在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2022
+出错时间:05/24/2023 14:47:53
+出错时间:05/24/2023 14:47:53
+
+
+错误信息开始=====>
+错误类型:ArgumentException
+错误信息:提供的 URI 方案“http”无效,应为“https”。
+参数名: via
+错误堆栈:
+ 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
+ 在 System.ServiceModel.ClientBase`1.get_Channel()
+ 在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1918
+出错时间:05/24/2023 14:47:53
+出错时间:05/24/2023 14:47:53
+
+
+错误信息开始=====>
+错误类型:ArgumentException
+错误信息:提供的 URI 方案“http”无效,应为“https”。
+参数名: via
+错误堆栈:
+ 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
+ 在 System.ServiceModel.ClientBase`1.get_Channel()
+ 在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1860
+出错时间:05/24/2023 14:47:53
+出错时间:05/24/2023 14:47:53
+
+
+错误信息开始=====>
+错误类型:ArgumentException
+错误信息:提供的 URI 方案“http”无效,应为“https”。
+参数名: via
+错误堆栈:
+ 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
+ 在 System.ServiceModel.ClientBase`1.get_Channel()
+ 在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2157
+出错时间:05/24/2023 16:47:53
+出错时间:05/24/2023 16:47:53
+
+
+错误信息开始=====>
+错误类型:ArgumentException
+错误信息:提供的 URI 方案“http”无效,应为“https”。
+参数名: via
+错误堆栈:
+ 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
+ 在 System.ServiceModel.ClientBase`1.get_Channel()
+ 在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2022
+出错时间:05/24/2023 16:47:53
+出错时间:05/24/2023 16:47:53
+
+
+错误信息开始=====>
+错误类型:ArgumentException
+错误信息:提供的 URI 方案“http”无效,应为“https”。
+参数名: via
+错误堆栈:
+ 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
+ 在 System.ServiceModel.ClientBase`1.get_Channel()
+ 在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1918
+出错时间:05/24/2023 16:47:53
+出错时间:05/24/2023 16:47:53
+
+
+错误信息开始=====>
+错误类型:ArgumentException
+错误信息:提供的 URI 方案“http”无效,应为“https”。
+参数名: via
+错误堆栈:
+ 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
+ 在 System.ServiceModel.ChannelFactory`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannel()
+ 在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
+ 在 System.ServiceModel.ClientBase`1.get_Channel()
+ 在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1860
+出错时间:05/24/2023 16:47:53
+出错时间:05/24/2023 16:47:54
+
+
+错误信息开始=====>
+错误类型:ArgumentException
+错误信息:该行已经属于此表。
+错误堆栈:
+ 在 System.Data.DataTable.InsertRow(DataRow row, Int64 proposedID, Int32 pos, Boolean fireEvent)
+ 在 System.Data.DataRowCollection.Add(DataRow row)
+ 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.GetValue() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 395
+ 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 25
+ 在 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)
-出错时间:05/22/2023 16:13:33
+出错时间:05/25/2023 10:05:02
出错文件:http://localhost:9733/JDGL/CostAnalysis/JDReport.aspx
IP地址:::1
操作人员:JT
-出错时间:05/22/2023 16:13:33
+出错时间:05/25/2023 10:05:02
+
+
+错误信息开始=====>
+错误类型:ArgumentException
+错误信息:该行已经属于此表。
+错误堆栈:
+ 在 System.Data.DataTable.InsertRow(DataRow row, Int64 proposedID, Int32 pos, Boolean fireEvent)
+ 在 System.Data.DataRowCollection.Add(DataRow row)
+ 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.GetValue() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 404
+ 在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 25
+ 在 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)
+出错时间:05/25/2023 10:08:31
+出错文件:http://localhost:9733/JDGL/CostAnalysis/JDReport.aspx
+IP地址:::1
+操作人员:JT
+
+出错时间:05/25/2023 10:08:31
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 86cfeb13..f2961963 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -1281,6 +1281,9 @@
+
+
+
@@ -13042,6 +13045,27 @@
CostControlWeekItemDetailEdit.aspx
+
+ EquipmentMaterialType.aspx
+ ASPXCodeBehind
+
+
+ EquipmentMaterialType.aspx
+
+
+ EquipmentMaterialTypeEdit.aspx
+ ASPXCodeBehind
+
+
+ EquipmentMaterialTypeEdit.aspx
+
+
+ EquipmentMaterialTypeView.aspx
+ ASPXCodeBehind
+
+
+ EquipmentMaterialTypeView.aspx
+
MilePost.aspx
ASPXCodeBehind
diff --git a/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx b/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx
index 5a497698..78f0e900 100644
--- a/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx
+++ b/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx
@@ -62,7 +62,7 @@
@@ -167,11 +167,11 @@
AllowFilters="true" EnableTextSelection="True">
-
+ HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" EnableColumnEdit="true">
+
-
+ HeaderText="专业和分部工程" HeaderTextAlign="Center" TextAlign="Left" EnableColumnEdit="true">
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.cs b/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.cs
index c511873c..74dc7e67 100644
--- a/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.cs
+++ b/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.cs
@@ -29,7 +29,6 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
private void SetEmpty()
{
this.SimpleForm1.Title = string.Empty;
- txt5.Text = string.Empty;
}
#endregion
@@ -350,6 +349,74 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
this.Grid4.DataSource = table4;
this.Grid4.DataBind();
}
+
+ //按专业统计
+ DataTable table5 = new DataTable();
+ table5.Columns.Add(new DataColumn("Id", typeof(String)));
+ table5.Columns.Add(new DataColumn("Name", typeof(String)));
+ table5.Columns.Add(new DataColumn("Unit", typeof(String)));
+ table5.Columns.Add(new DataColumn("TotalNum", typeof(String)));
+ table5.Columns.Add(new DataColumn("mThisNum", typeof(String)));
+ table5.Columns.Add(new DataColumn("tThisNum", typeof(String)));
+ table5.Columns.Add(new DataColumn("mRate", typeof(String)));
+ table5.Columns.Add(new DataColumn("tRate", typeof(String)));
+ DataRow row5;
+ var costControls = from x in db.WBS_CostControl where x.ProjectId == this.CurrUser.LoginProjectId select x;
+ var costControlDetails = from x in db.WBS_CostControlDetail
+ join y in db.WBS_CostControl on x.CostControlId equals y.CostControlId
+ join z in db.WBS_EquipmentMaterialType on y.EquipmentMaterialTypeId equals z.EquipmentMaterialTypeId
+ where x.Months <= Funs.GetNewDateTime(date) && y.ProjectId == this.CurrUser.LoginProjectId
+ orderby x.Months descending
+ select new
+ {
+ x.CostControlDetailId,
+ y.EquipmentMaterialTypeId,
+ z.EquipmentMaterialTypeName,
+ x.Months,
+ x.ThisNum,
+ };
+ var equipmentMaterialTypes = from x in db.WBS_EquipmentMaterialType orderby x.EquipmentMaterialTypeCode select x;
+ if (equipmentMaterialTypes.Count() > 0)
+ {
+ foreach (var equipmentMaterialType in equipmentMaterialTypes)
+ {
+ row5 = table5.NewRow();
+ row5[0] = equipmentMaterialType.EquipmentMaterialTypeId;
+ row5[1] = equipmentMaterialType.EquipmentMaterialTypeName;
+ var list = costControls.Where(x => x.EquipmentMaterialTypeId == equipmentMaterialType.EquipmentMaterialTypeId);
+ if (list.Count() > 0)
+ {
+ row5[2] = list.First().Unit;
+ }
+ row5[3] = list.ToList().Sum(x => x.TotalNum ?? 0);
+ var list2 = costControlDetails.Where(x => x.EquipmentMaterialTypeId == equipmentMaterialType.EquipmentMaterialTypeId && x.Months == Funs.GetNewDateTime(date));
+ row5[4] = list2.ToList().Sum(x => x.ThisNum ?? 0);
+ var list3 = costControlDetails.Where(x => x.EquipmentMaterialTypeId == equipmentMaterialType.EquipmentMaterialTypeId);
+ row5[5] = list3.ToList().Sum(x => x.ThisNum ?? 0);
+ if (row5[3].ToString() != "0" && row5[4].ToString() != "0")
+ {
+ row5[6] = (Funs.GetNewDecimalOrZero(row5[4].ToString()) / Funs.GetNewDecimalOrZero(row5[3].ToString()) * 100).ToString("0.##") + "%";
+ }
+ else
+ {
+ row5[6] = "/";
+ }
+ if (row5[3].ToString() != "0" && row5[5].ToString() != "0")
+ {
+ row5[7] = (Funs.GetNewDecimalOrZero(row5[5].ToString()) / Funs.GetNewDecimalOrZero(row5[3].ToString()) * 100).ToString("0.##") + "%";
+ }
+ else
+ {
+ row5[7] = "/";
+ }
+ table5.Rows.Add(row5);
+ }
+ if (table5.Rows.Count > 0)
+ {
+ this.Grid5.DataSource = table5;
+ this.Grid5.DataBind();
+ }
+ }
}
}
}
diff --git a/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.designer.cs b/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.designer.cs
index 8591a6ef..ec25aaac 100644
--- a/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.designer.cs
@@ -202,22 +202,22 @@ namespace FineUIPro.Web.JDGL.CostAnalysis {
protected global::FineUIPro.GroupPanel GroupPanel5;
///
- /// Form5 控件。
+ /// Grid5 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.Form Form5;
+ protected global::FineUIPro.Grid Grid5;
///
- /// txt5 控件。
+ /// lblPageIndex 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.TextArea txt5;
+ protected global::System.Web.UI.WebControls.Label lblPageIndex;
///
/// Window1 控件。
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/CostControlEdit.aspx b/SGGL/FineUIPro.Web/JDGL/WBS/CostControlEdit.aspx
index 8af67647..9bd9910e 100644
--- a/SGGL/FineUIPro.Web/JDGL/WBS/CostControlEdit.aspx
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/CostControlEdit.aspx
@@ -24,6 +24,11 @@
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/CostControlEdit.aspx.cs b/SGGL/FineUIPro.Web/JDGL/WBS/CostControlEdit.aspx.cs
index 95f72ddd..d9922bba 100644
--- a/SGGL/FineUIPro.Web/JDGL/WBS/CostControlEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/CostControlEdit.aspx.cs
@@ -20,6 +20,7 @@ namespace FineUIPro.Web.JDGL.WBS
LoadData();
string id = Request.Params["Id"];
string operating = Request.Params["operating"];
+ BLL.EquipmentMaterialTypeService.InitEquipmentMaterialTypeDownList(this.drpEquipmentMaterialType,true);
if (operating == "add")
{
@@ -31,6 +32,10 @@ namespace FineUIPro.Web.JDGL.WBS
{
this.txtCostControlCode.Text = costControl.CostControlCode;
this.txtCostControlName.Text = costControl.CostControlName;
+ if (!string.IsNullOrEmpty(costControl.EquipmentMaterialTypeId))
+ {
+ this.drpEquipmentMaterialType.SelectedValue = costControl.EquipmentMaterialTypeId;
+ }
this.txtUnit.Text = costControl.Unit;
//if (costControl.TotalNum != null)
//{
@@ -68,6 +73,10 @@ namespace FineUIPro.Web.JDGL.WBS
Model.WBS_CostControl costControl = new WBS_CostControl();
costControl.CostControlCode = txtCostControlCode.Text.Trim();
costControl.CostControlName = txtCostControlName.Text.Trim();
+ if (this.drpEquipmentMaterialType.SelectedValue != BLL.Const._Null)
+ {
+ costControl.EquipmentMaterialTypeId = this.drpEquipmentMaterialType.SelectedValue;
+ }
costControl.ProjectId = wbsSet.ProjectId;
costControl.WbsSetId = wbsSet.WbsSetId;
costControl.Unit = txtUnit.Text.Trim();
@@ -99,6 +108,10 @@ namespace FineUIPro.Web.JDGL.WBS
}
costControl.CostControlCode = txtCostControlCode.Text.Trim();
costControl.CostControlName = txtCostControlName.Text.Trim();
+ if (this.drpEquipmentMaterialType.SelectedValue != BLL.Const._Null)
+ {
+ costControl.EquipmentMaterialTypeId = this.drpEquipmentMaterialType.SelectedValue;
+ }
costControl.Unit = txtUnit.Text.Trim();
//costControl.TotalNum = Funs.GetNewDecimal(txtTotalNum.Text.Trim());
//costControl.RealPrice = Funs.GetNewDecimal(txtRealPrice.Text.Trim());
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/CostControlEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/JDGL/WBS/CostControlEdit.aspx.designer.cs
index 447e2c9c..66e728d1 100644
--- a/SGGL/FineUIPro.Web/JDGL/WBS/CostControlEdit.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/CostControlEdit.aspx.designer.cs
@@ -57,6 +57,15 @@ namespace FineUIPro.Web.JDGL.WBS {
///
protected global::FineUIPro.TextBox txtCostControlName;
+ ///
+ /// drpEquipmentMaterialType 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpEquipmentMaterialType;
+
///
/// txtUnit 控件。
///
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx
new file mode 100644
index 00000000..6bdd951e
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx
@@ -0,0 +1,114 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentMaterialType.aspx.cs" Inherits="FineUIPro.Web.JDGL.WBS.EquipmentMaterialType" %>
+
+
+
+
+
+设备材料分类
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.cs b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.cs
new file mode 100644
index 00000000..0a86d46a
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.cs
@@ -0,0 +1,182 @@
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using BLL;
+
+namespace FineUIPro.Web.JDGL.WBS
+{
+ public partial class EquipmentMaterialType : PageBase
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ GetButtonPower();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+
+ // 绑定表格
+ BindGrid();
+ btnNew.OnClientClick = Window1.GetShowReference("EquipmentMaterialTypeEdit.aspx") + "return false;";
+ }
+ }
+ ///
+ /// 绑定数据
+ ///
+
+ public void BindGrid()
+ {
+ DataTable tb = BindData();
+ Grid1.RecordCount = tb.Rows.Count;
+ tb = GetFilteredTable(Grid1.FilteredData, tb);
+ var table = this.GetPagedDataTable(Grid1, tb);
+
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+
+
+ protected DataTable BindData()
+ {
+ string strSql = @"select EquipmentMaterialTypeId,EquipmentMaterialTypeCode,EquipmentMaterialTypeName,Remark from [dbo].[WBS_EquipmentMaterialType] where 1=1 ";
+
+ List listStr = new List();
+ if (!string.IsNullOrEmpty(this.txtEquipmentMaterialTypeCode.Text.Trim()))
+ {
+ strSql += " AND EquipmentMaterialTypeCode like @EquipmentMaterialTypeCode";
+ listStr.Add(new SqlParameter("@EquipmentMaterialTypeCode", "%" + this.txtEquipmentMaterialTypeCode.Text.Trim() + "%"));
+ }
+ if (!string.IsNullOrEmpty(this.txtEquipmentMaterialTypeName.Text.Trim()))
+ {
+ strSql += " AND EquipmentMaterialTypeName like @EquipmentMaterialTypeName";
+ listStr.Add(new SqlParameter("@EquipmentMaterialTypeName", "%" + this.txtEquipmentMaterialTypeName.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)
+ {
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ BLL.EquipmentMaterialTypeService.DeleteEquipmentMaterialTypeById(rowID);
+ }
+
+ BindGrid();
+ ShowNotify("删除数据成功!", MessageBoxIcon.Success);
+ }
+ }
+
+ ///
+ /// 编辑数据方法
+ ///
+ private void EditData()
+ {
+
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.btnMenuModify.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentMaterialTypeView.aspx?EquipmentMaterialTypeId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ else
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentMaterialTypeEdit.aspx?EquipmentMaterialTypeId={0}", Grid1.SelectedRowID, "编辑 - ")));
+ }
+ }
+ #region 获取按钮权限
+ ///
+ /// 获取按钮权限
+ ///
+ ///
+ ///
+ private void GetButtonPower()
+ {
+ if (Request.Params["value"] == "0")
+ {
+ return;
+ }
+ var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.EquipmentMaterialTypeMenuId);
+ if (buttonList.Count() > 0)
+ {
+ if (buttonList.Contains(BLL.Const.BtnAdd))
+ {
+ this.btnNew.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnModify))
+ {
+ this.btnMenuModify.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnDelete))
+ {
+ this.btnMenuDel.Hidden = false;
+ }
+ }
+ }
+ #endregion
+
+
+ protected void btnSearch_Click(object sender, EventArgs e)
+ {
+ BindGrid();
+ }
+
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ EditData();
+ }
+
+
+ protected void btnMenuView_Click(object sender, EventArgs e)
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentMaterialTypeView.aspx?EquipmentMaterialTypeId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+ ///
+ /// 重置
+ ///
+ ///
+ ///
+ protected void btnRset_Click(object sender, EventArgs e)
+ {
+ txtEquipmentMaterialTypeCode.Text = "";
+ txtEquipmentMaterialTypeName.Text = "";
+ BindGrid();
+ }
+
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ BindGrid();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.designer.cs b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.designer.cs
new file mode 100644
index 00000000..35bb7755
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.designer.cs
@@ -0,0 +1,177 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JDGL.WBS {
+
+
+ public partial class EquipmentMaterialType {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// txtEquipmentMaterialTypeCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEquipmentMaterialTypeCode;
+
+ ///
+ /// txtEquipmentMaterialTypeName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEquipmentMaterialTypeName;
+
+ ///
+ /// 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 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuModify 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuModify;
+
+ ///
+ /// btnMenuDel 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDel;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx
new file mode 100644
index 00000000..196ddb4c
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx
@@ -0,0 +1,54 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentMaterialTypeEdit.aspx.cs" Inherits="FineUIPro.Web.JDGL.WBS.EquipmentMaterialTypeEdit" %>
+
+
+
+
+
+设备材料分类
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx.cs b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx.cs
new file mode 100644
index 00000000..715a8dec
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx.cs
@@ -0,0 +1,61 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.JDGL.WBS
+{
+ public partial class EquipmentMaterialTypeEdit : PageBase
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ string EquipmentMaterialTypeId = Request.Params["EquipmentMaterialTypeId"];
+ if (!string.IsNullOrEmpty(EquipmentMaterialTypeId))
+ {
+
+ Model.WBS_EquipmentMaterialType EquipmentMaterialType = BLL.EquipmentMaterialTypeService.GetEquipmentMaterialType(EquipmentMaterialTypeId);
+ if (EquipmentMaterialType != null)
+ {
+ this.txtEquipmentMaterialTypeCode.Text = EquipmentMaterialType.EquipmentMaterialTypeCode;
+ this.txtEquipmentMaterialTypeName.Text = EquipmentMaterialType.EquipmentMaterialTypeName;
+ this.txtRemark.Text = EquipmentMaterialType.Remark;
+ }
+ }
+ }
+
+ }
+
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ SaveData(true);
+ }
+
+ private void SaveData(bool b)
+ {
+ string EquipmentMaterialTypeId = Request.Params["EquipmentMaterialTypeId"];
+ Model.WBS_EquipmentMaterialType EquipmentMaterialType = new Model.WBS_EquipmentMaterialType();
+ EquipmentMaterialType.EquipmentMaterialTypeCode = this.txtEquipmentMaterialTypeCode.Text.Trim();
+ EquipmentMaterialType.EquipmentMaterialTypeName = this.txtEquipmentMaterialTypeName.Text.Trim();
+ EquipmentMaterialType.Remark = this.txtRemark.Text.Trim();
+ if (!string.IsNullOrEmpty(EquipmentMaterialTypeId))
+ {
+ EquipmentMaterialType.EquipmentMaterialTypeId = EquipmentMaterialTypeId;
+ BLL.EquipmentMaterialTypeService.UpdateEquipmentMaterialType(EquipmentMaterialType);
+ }
+ else
+ {
+ EquipmentMaterialType.EquipmentMaterialTypeId = SQLHelper.GetNewID(typeof(Model.WBS_EquipmentMaterialType));
+ BLL.EquipmentMaterialTypeService.AddEquipmentMaterialType(EquipmentMaterialType);
+
+ }
+ ShowNotify("保存成功!", MessageBoxIcon.Success);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx.designer.cs
new file mode 100644
index 00000000..33738c6e
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx.designer.cs
@@ -0,0 +1,105 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JDGL.WBS {
+
+
+ public partial class EquipmentMaterialTypeEdit {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// txtEquipmentMaterialTypeCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEquipmentMaterialTypeCode;
+
+ ///
+ /// txtEquipmentMaterialTypeName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEquipmentMaterialTypeName;
+
+ ///
+ /// txtRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtRemark;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// hdCheckerId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdCheckerId;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeView.aspx b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeView.aspx
new file mode 100644
index 00000000..f3205452
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeView.aspx
@@ -0,0 +1,54 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentMaterialTypeView.aspx.cs" Inherits="FineUIPro.Web.JDGL.WBS.EquipmentMaterialTypeView" %>
+
+
+
+
+
+设备材料分类
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeView.aspx.cs b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeView.aspx.cs
new file mode 100644
index 00000000..50084527
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeView.aspx.cs
@@ -0,0 +1,34 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.JDGL.WBS
+{
+ public partial class EquipmentMaterialTypeView : PageBase
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ string EquipmentMaterialTypeId = Request.Params["EquipmentMaterialTypeId"];
+ if (!string.IsNullOrEmpty(EquipmentMaterialTypeId))
+ {
+
+ Model.WBS_EquipmentMaterialType EquipmentMaterialType = BLL.EquipmentMaterialTypeService.GetEquipmentMaterialType(EquipmentMaterialTypeId);
+ if (EquipmentMaterialType != null)
+ {
+ this.txtEquipmentMaterialTypeCode.Text = EquipmentMaterialType.EquipmentMaterialTypeCode;
+ this.txtEquipmentMaterialTypeName.Text = EquipmentMaterialType.EquipmentMaterialTypeName;
+ this.txtRemark.Text = EquipmentMaterialType.Remark;
+ }
+ }
+ }
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeView.aspx.designer.cs b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeView.aspx.designer.cs
new file mode 100644
index 00000000..16265919
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeView.aspx.designer.cs
@@ -0,0 +1,105 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JDGL.WBS {
+
+
+ public partial class EquipmentMaterialTypeView {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// txtEquipmentMaterialTypeCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEquipmentMaterialTypeCode;
+
+ ///
+ /// txtEquipmentMaterialTypeName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEquipmentMaterialTypeName;
+
+ ///
+ /// txtRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtRemark;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// hdCheckerId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdCheckerId;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/WBSSetAudit.aspx b/SGGL/FineUIPro.Web/JDGL/WBS/WBSSetAudit.aspx
index 5e7b9c9d..0175eb7e 100644
--- a/SGGL/FineUIPro.Web/JDGL/WBS/WBSSetAudit.aspx
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/WBSSetAudit.aspx
@@ -86,6 +86,9 @@
+
+
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/WBSSetAudit.aspx.cs b/SGGL/FineUIPro.Web/JDGL/WBS/WBSSetAudit.aspx.cs
index fbb19503..03de2403 100644
--- a/SGGL/FineUIPro.Web/JDGL/WBS/WBSSetAudit.aspx.cs
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/WBSSetAudit.aspx.cs
@@ -1736,7 +1736,7 @@ namespace FineUIPro.Web.JDGL.WBS
{
codes += item.CostControlCode + ",";
}
- string strSql = "SELECT * FROM WBS_CostControl where @CostControlCodes like '%'+CostControlCode+'%' and WbsSetId=@WbsSetId";
+ string strSql = "SELECT c.*,e.EquipmentMaterialTypeName FROM WBS_CostControl c left join WBS_EquipmentMaterialType e on c.EquipmentMaterialTypeId=e.EquipmentMaterialTypeId where @CostControlCodes like '%'+CostControlCode+'%' and WbsSetId=@WbsSetId";
List listStr = new List();
listStr.Add(new SqlParameter("@CostControlCodes", codes));
listStr.Add(new SqlParameter("@WbsSetId", this.trWBS.SelectedNodeID));
diff --git a/SGGL/FineUIPro.Web/common/Menu_JDGL.xml b/SGGL/FineUIPro.Web/common/Menu_JDGL.xml
index 67343f61..29b97a08 100644
--- a/SGGL/FineUIPro.Web/common/Menu_JDGL.xml
+++ b/SGGL/FineUIPro.Web/common/Menu_JDGL.xml
@@ -1,7 +1,8 @@
-
+
+
diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs
index b8ace082..96be5f39 100644
--- a/SGGL/Model/Model.cs
+++ b/SGGL/Model/Model.cs
@@ -2228,6 +2228,9 @@ namespace Model
partial void InsertWBS_DivisionProject(WBS_DivisionProject instance);
partial void UpdateWBS_DivisionProject(WBS_DivisionProject instance);
partial void DeleteWBS_DivisionProject(WBS_DivisionProject instance);
+ partial void InsertWBS_EquipmentMaterialType(WBS_EquipmentMaterialType instance);
+ partial void UpdateWBS_EquipmentMaterialType(WBS_EquipmentMaterialType instance);
+ partial void DeleteWBS_EquipmentMaterialType(WBS_EquipmentMaterialType instance);
partial void InsertWBS_ForeignBreakdown(WBS_ForeignBreakdown instance);
partial void UpdateWBS_ForeignBreakdown(WBS_ForeignBreakdown instance);
partial void DeleteWBS_ForeignBreakdown(WBS_ForeignBreakdown instance);
@@ -9217,6 +9220,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table WBS_EquipmentMaterialType
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table WBS_ForeignBreakdown
{
get
@@ -394895,8 +394906,12 @@ namespace Model
private System.Nullable _RealEndDate;
+ private string _EquipmentMaterialTypeId;
+
private EntityRef _Base_Project;
+ private EntityRef _WBS_EquipmentMaterialType;
+
private EntityRef _Wbs_WbsSet;
private EntitySet _WBS_CostControlDetail;
@@ -394935,11 +394950,14 @@ namespace Model
partial void OnRealStartDateChanged();
partial void OnRealEndDateChanging(System.Nullable value);
partial void OnRealEndDateChanged();
+ partial void OnEquipmentMaterialTypeIdChanging(string value);
+ partial void OnEquipmentMaterialTypeIdChanged();
#endregion
public WBS_CostControl()
{
this._Base_Project = default(EntityRef);
+ this._WBS_EquipmentMaterialType = default(EntityRef);
this._Wbs_WbsSet = default(EntityRef);
this._WBS_CostControlDetail = new EntitySet(new Action(this.attach_WBS_CostControlDetail), new Action(this.detach_WBS_CostControlDetail));
this._WBS_CostControlDetailHistory = new EntitySet(new Action(this.attach_WBS_CostControlDetailHistory), new Action(this.detach_WBS_CostControlDetailHistory));
@@ -395234,6 +395252,30 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EquipmentMaterialTypeId", DbType="NVarChar(50)")]
+ public string EquipmentMaterialTypeId
+ {
+ get
+ {
+ return this._EquipmentMaterialTypeId;
+ }
+ set
+ {
+ if ((this._EquipmentMaterialTypeId != value))
+ {
+ if (this._WBS_EquipmentMaterialType.HasLoadedOrAssignedValue)
+ {
+ throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
+ }
+ this.OnEquipmentMaterialTypeIdChanging(value);
+ this.SendPropertyChanging();
+ this._EquipmentMaterialTypeId = value;
+ this.SendPropertyChanged("EquipmentMaterialTypeId");
+ this.OnEquipmentMaterialTypeIdChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_CostControl_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
@@ -395268,6 +395310,40 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_CostControl_WBS_EquipmentMaterialType", Storage="_WBS_EquipmentMaterialType", ThisKey="EquipmentMaterialTypeId", OtherKey="EquipmentMaterialTypeId", IsForeignKey=true)]
+ public WBS_EquipmentMaterialType WBS_EquipmentMaterialType
+ {
+ get
+ {
+ return this._WBS_EquipmentMaterialType.Entity;
+ }
+ set
+ {
+ WBS_EquipmentMaterialType previousValue = this._WBS_EquipmentMaterialType.Entity;
+ if (((previousValue != value)
+ || (this._WBS_EquipmentMaterialType.HasLoadedOrAssignedValue == false)))
+ {
+ this.SendPropertyChanging();
+ if ((previousValue != null))
+ {
+ this._WBS_EquipmentMaterialType.Entity = null;
+ previousValue.WBS_CostControl.Remove(this);
+ }
+ this._WBS_EquipmentMaterialType.Entity = value;
+ if ((value != null))
+ {
+ value.WBS_CostControl.Add(this);
+ this._EquipmentMaterialTypeId = value.EquipmentMaterialTypeId;
+ }
+ else
+ {
+ this._EquipmentMaterialTypeId = default(string);
+ }
+ this.SendPropertyChanged("WBS_EquipmentMaterialType");
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_CostControl_Wbs_WbsSet", Storage="_Wbs_WbsSet", ThisKey="WbsSetId", OtherKey="WbsSetId", IsForeignKey=true)]
public Wbs_WbsSet Wbs_WbsSet
{
@@ -396849,6 +396925,168 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.WBS_EquipmentMaterialType")]
+ public partial class WBS_EquipmentMaterialType : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _EquipmentMaterialTypeId;
+
+ private string _EquipmentMaterialTypeCode;
+
+ private string _EquipmentMaterialTypeName;
+
+ private string _Remark;
+
+ private EntitySet _WBS_CostControl;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnEquipmentMaterialTypeIdChanging(string value);
+ partial void OnEquipmentMaterialTypeIdChanged();
+ partial void OnEquipmentMaterialTypeCodeChanging(string value);
+ partial void OnEquipmentMaterialTypeCodeChanged();
+ partial void OnEquipmentMaterialTypeNameChanging(string value);
+ partial void OnEquipmentMaterialTypeNameChanged();
+ partial void OnRemarkChanging(string value);
+ partial void OnRemarkChanged();
+ #endregion
+
+ public WBS_EquipmentMaterialType()
+ {
+ this._WBS_CostControl = new EntitySet(new Action(this.attach_WBS_CostControl), new Action(this.detach_WBS_CostControl));
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EquipmentMaterialTypeId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string EquipmentMaterialTypeId
+ {
+ get
+ {
+ return this._EquipmentMaterialTypeId;
+ }
+ set
+ {
+ if ((this._EquipmentMaterialTypeId != value))
+ {
+ this.OnEquipmentMaterialTypeIdChanging(value);
+ this.SendPropertyChanging();
+ this._EquipmentMaterialTypeId = value;
+ this.SendPropertyChanged("EquipmentMaterialTypeId");
+ this.OnEquipmentMaterialTypeIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EquipmentMaterialTypeCode", DbType="NVarChar(50)")]
+ public string EquipmentMaterialTypeCode
+ {
+ get
+ {
+ return this._EquipmentMaterialTypeCode;
+ }
+ set
+ {
+ if ((this._EquipmentMaterialTypeCode != value))
+ {
+ this.OnEquipmentMaterialTypeCodeChanging(value);
+ this.SendPropertyChanging();
+ this._EquipmentMaterialTypeCode = value;
+ this.SendPropertyChanged("EquipmentMaterialTypeCode");
+ this.OnEquipmentMaterialTypeCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EquipmentMaterialTypeName", DbType="NVarChar(50)")]
+ public string EquipmentMaterialTypeName
+ {
+ get
+ {
+ return this._EquipmentMaterialTypeName;
+ }
+ set
+ {
+ if ((this._EquipmentMaterialTypeName != value))
+ {
+ this.OnEquipmentMaterialTypeNameChanging(value);
+ this.SendPropertyChanging();
+ this._EquipmentMaterialTypeName = value;
+ this.SendPropertyChanged("EquipmentMaterialTypeName");
+ this.OnEquipmentMaterialTypeNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(100)")]
+ public string Remark
+ {
+ get
+ {
+ return this._Remark;
+ }
+ set
+ {
+ if ((this._Remark != value))
+ {
+ this.OnRemarkChanging(value);
+ this.SendPropertyChanging();
+ this._Remark = value;
+ this.SendPropertyChanged("Remark");
+ this.OnRemarkChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_CostControl_WBS_EquipmentMaterialType", Storage="_WBS_CostControl", ThisKey="EquipmentMaterialTypeId", OtherKey="EquipmentMaterialTypeId", DeleteRule="NO ACTION")]
+ public EntitySet WBS_CostControl
+ {
+ get
+ {
+ return this._WBS_CostControl;
+ }
+ set
+ {
+ this._WBS_CostControl.Assign(value);
+ }
+ }
+
+ public event PropertyChangingEventHandler PropertyChanging;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void SendPropertyChanging()
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, emptyChangingEventArgs);
+ }
+ }
+
+ protected virtual void SendPropertyChanged(String propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+
+ private void attach_WBS_CostControl(WBS_CostControl entity)
+ {
+ this.SendPropertyChanging();
+ entity.WBS_EquipmentMaterialType = this;
+ }
+
+ private void detach_WBS_CostControl(WBS_CostControl entity)
+ {
+ this.SendPropertyChanging();
+ entity.WBS_EquipmentMaterialType = null;
+ }
+ }
+
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.WBS_ForeignBreakdown")]
public partial class WBS_ForeignBreakdown : INotifyPropertyChanging, INotifyPropertyChanged
{
From 6b1271387cba09090f1d57d5cd47e7736413a91b Mon Sep 17 00:00:00 2001
From: gaofei <181547018@qq.com>
Date: Tue, 30 May 2023 17:17:24 +0800
Subject: [PATCH 4/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=87=E5=87=86?=
=?UTF-8?q?=E8=A7=84=E8=8C=83=E9=99=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../CQMS/DataBase/ConstructionStandardListProject.aspx.cs | 6 ++++--
.../DataBase/ConstructionStandardListProjectEdit.aspx.cs | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/SGGL/FineUIPro.Web/CQMS/DataBase/ConstructionStandardListProject.aspx.cs b/SGGL/FineUIPro.Web/CQMS/DataBase/ConstructionStandardListProject.aspx.cs
index 90647079..80ea8277 100644
--- a/SGGL/FineUIPro.Web/CQMS/DataBase/ConstructionStandardListProject.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/DataBase/ConstructionStandardListProject.aspx.cs
@@ -181,7 +181,8 @@ namespace FineUIPro.Web.CQMS.DataBase
}
for (int i = 0; i < Grid1.Rows.Count; i++)
{
- var attachFile = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == Grid1.Rows[i].RowID + this.CurrUser.LoginProjectId);
+ //var attachFile = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == Grid1.Rows[i].RowID + this.CurrUser.LoginProjectId);
+ var attachFile = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == Grid1.Rows[i].RowID);
if (attachFile != null && !string.IsNullOrEmpty(attachFile.AttachUrl))
{
Grid1.Rows[i].CellCssClasses[18] = "green";
@@ -272,7 +273,8 @@ namespace FineUIPro.Web.CQMS.DataBase
string id = Grid1.DataKeys[e.RowIndex][0].ToString();
if (e.CommandName == "AttachUrl")
{
- PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/DataBase/ConstructionStandardProject&menuId={1}", id + this.CurrUser.LoginProjectId, BLL.Const.CQMSConstructionStandardListProjectMenuId)));
+ //PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/DataBase/ConstructionStandardProject&menuId={1}", id + this.CurrUser.LoginProjectId, BLL.Const.CQMSConstructionStandardListProjectMenuId)));
+ PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/DataBase/ConstructionStandardProject&menuId={1}", id, BLL.Const.CQMSConstructionStandardListProjectMenuId)));
}
}
#endregion
diff --git a/SGGL/FineUIPro.Web/CQMS/DataBase/ConstructionStandardListProjectEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/DataBase/ConstructionStandardListProjectEdit.aspx.cs
index 6c5cbdad..c66b8247 100644
--- a/SGGL/FineUIPro.Web/CQMS/DataBase/ConstructionStandardListProjectEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/DataBase/ConstructionStandardListProjectEdit.aspx.cs
@@ -63,7 +63,8 @@ namespace FineUIPro.Web.CQMS.DataBase
this.cbIsSelected6.Checked = true;
}
this.txtRemark.Text = standard.Memo;
- this.hdStandardCode.Text = standard.StandardCode + this.CurrUser.LoginProjectId;
+ //this.hdStandardCode.Text = standard.StandardCode + this.CurrUser.LoginProjectId;
+ this.hdStandardCode.Text = standard.StandardCode.ToString();
}
}
}
@@ -85,7 +86,8 @@ namespace FineUIPro.Web.CQMS.DataBase
{
maxStandardCode = BLL.ConstructionStandardListProjectService.GetMaxStandardCode(this.CurrUser.LoginProjectId);
}
- this.hdStandardCode.Text = (maxStandardCode + 1).ToString() + this.CurrUser.LoginProjectId;
+ //this.hdStandardCode.Text = (maxStandardCode + 1).ToString() + this.CurrUser.LoginProjectId;
+ this.hdStandardCode.Text = (maxStandardCode + 1).ToString();
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/DataBase/ConstructionStandardProject&menuId={1}", this.hdStandardCode.Text, BLL.Const.CQMSConstructionStandardListProjectMenuId)));
}
From 3cf225ea86cc5498c5c2e3ce37b7d0e442b5831a Mon Sep 17 00:00:00 2001
From: gaofei <181547018@qq.com>
Date: Tue, 6 Jun 2023 09:54:46 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=9B=E5=BA=A6?=
=?UTF-8?q?=E6=8A=A5=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
DataBase/版本日志/SGGLDB_WH_2023-06-06.sql | 19 ++
.../1-4进度管理(Menu_JDGL).sql | 13 +
SGGL/BLL/BLL.csproj | 1 +
SGGL/BLL/Common/Const.cs | 5 +
.../WBS/EquipmentMaterialBigTypeService.cs | 125 ++++++++
.../JDGL/WBS/EquipmentMaterialTypeService.cs | 2 +
SGGL/FineUIPro.Web/ErrLog.txt | 17 +
SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 24 ++
.../JDGL/CostAnalysis/JDReport.aspx | 2 +-
.../JDGL/CostAnalysis/JDReport.aspx.cs | 301 +++++++++++-------
.../JDGL/WBS/EquipmentMaterialBigType.aspx | 114 +++++++
.../JDGL/WBS/EquipmentMaterialBigType.aspx.cs | 182 +++++++++++
.../EquipmentMaterialBigType.aspx.designer.cs | 177 ++++++++++
.../WBS/EquipmentMaterialBigTypeEdit.aspx | 54 ++++
.../WBS/EquipmentMaterialBigTypeEdit.aspx.cs | 61 ++++
...ipmentMaterialBigTypeEdit.aspx.designer.cs | 105 ++++++
.../WBS/EquipmentMaterialBigTypeView.aspx | 54 ++++
.../WBS/EquipmentMaterialBigTypeView.aspx.cs | 33 ++
...ipmentMaterialBigTypeView.aspx.designer.cs | 105 ++++++
.../JDGL/WBS/EquipmentMaterialType.aspx | 6 +-
.../JDGL/WBS/EquipmentMaterialType.aspx.cs | 9 +-
.../EquipmentMaterialType.aspx.designer.cs | 9 +
.../JDGL/WBS/EquipmentMaterialTypeEdit.aspx | 5 +
.../WBS/EquipmentMaterialTypeEdit.aspx.cs | 11 +
...EquipmentMaterialTypeEdit.aspx.designer.cs | 9 +
.../JDGL/WBS/EquipmentMaterialTypeView.aspx | 5 +
.../WBS/EquipmentMaterialTypeView.aspx.cs | 5 +
...EquipmentMaterialTypeView.aspx.designer.cs | 9 +
SGGL/FineUIPro.Web/common/Menu_JDGL.xml | 3 +-
SGGL/FineUIPro.Web/common/mainProject.aspx.cs | 2 +-
SGGL/Model/Model.cs | 238 ++++++++++++++
31 files changed, 1582 insertions(+), 123 deletions(-)
create mode 100644 DataBase/版本日志/SGGLDB_WH_2023-06-06.sql
create mode 100644 SGGL/BLL/JDGL/WBS/EquipmentMaterialBigTypeService.cs
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigType.aspx
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigType.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigType.aspx.designer.cs
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeEdit.aspx
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeEdit.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeEdit.aspx.designer.cs
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeView.aspx
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeView.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeView.aspx.designer.cs
diff --git a/DataBase/版本日志/SGGLDB_WH_2023-06-06.sql b/DataBase/版本日志/SGGLDB_WH_2023-06-06.sql
new file mode 100644
index 00000000..61401eeb
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_WH_2023-06-06.sql
@@ -0,0 +1,19 @@
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('F2BC1293-8639-4BD6-8759-648BCF6346E9','豸ϴ','JDGL/WBS/EquipmentMaterialBigType.aspx',4,'0','Menu_JDGL',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('A6A7CDD7-B223-4A80-9A0E-8E0F4B4E422A','F2BC1293-8639-4BD6-8759-648BCF6346E9','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('0D343597-D1FD-4CD5-9F23-43E6A68FE26B','F2BC1293-8639-4BD6-8759-648BCF6346E9','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('D003035F-CE86-4A71-AD3A-33CD4E260A00','F2BC1293-8639-4BD6-8759-648BCF6346E9','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('6210DDB2-9196-4315-9308-009BD3A85E78','F2BC1293-8639-4BD6-8759-648BCF6346E9','',4)
+ GO
+
+alter table WBS_EquipmentMaterialType add EquipmentMaterialBigTypeId nvarchar(50) null
+GO
+
+alter table WBS_EquipmentMaterialType add constraint FK_WBS_EquipmentMaterialType_WBS_EquipmentMaterialBigType
+foreign key (EquipmentMaterialBigTypeId) references WBS_EquipmentMaterialBigType (EquipmentMaterialBigTypeId)
+GO
\ No newline at end of file
diff --git a/DataBase/菜单初始化脚本/1-4进度管理(Menu_JDGL).sql b/DataBase/菜单初始化脚本/1-4进度管理(Menu_JDGL).sql
index 11a57366..4b77ce99 100644
--- a/DataBase/菜单初始化脚本/1-4进度管理(Menu_JDGL).sql
+++ b/DataBase/菜单初始化脚本/1-4进度管理(Menu_JDGL).sql
@@ -6,6 +6,19 @@ go
--INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
--VALUES('B707B4E0-EF73-4010-A13B-59263A5029C7','单位、分部、分项工程设置','',10,'0','Menu_JDGL',0,0,1)
--GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('F2BC1293-8639-4BD6-8759-648BCF6346E9','设备材料大类','JDGL/WBS/EquipmentMaterialBigType.aspx',4,'0','Menu_JDGL',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('A6A7CDD7-B223-4A80-9A0E-8E0F4B4E422A','F2BC1293-8639-4BD6-8759-648BCF6346E9','增加',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('0D343597-D1FD-4CD5-9F23-43E6A68FE26B','F2BC1293-8639-4BD6-8759-648BCF6346E9','修改',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('D003035F-CE86-4A71-AD3A-33CD4E260A00','F2BC1293-8639-4BD6-8759-648BCF6346E9','删除',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('6210DDB2-9196-4315-9308-009BD3A85E78','F2BC1293-8639-4BD6-8759-648BCF6346E9','保存',4)
+ GO
+
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('D00B3C53-2972-4D24-B88F-B38880D4A24F','设备材料分类','JDGL/WBS/EquipmentMaterialType.aspx',5,'0','Menu_JDGL',0,1,1)
GO
diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index 8999c286..fdc1ee73 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -582,6 +582,7 @@
+
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index 27d97a2a..1085e599 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -5204,6 +5204,11 @@ namespace BLL
///
public const string ProjectInstallationMenuId = "A4308F9A-0280-49C5-BEE4-FA858FE1CE24";
+ ///
+ /// 设备材料大类
+ ///
+ public const string EquipmentMaterialBigTypeMenuId = "F2BC1293-8639-4BD6-8759-648BCF6346E9";
+
///
/// 设备材料分类
///
diff --git a/SGGL/BLL/JDGL/WBS/EquipmentMaterialBigTypeService.cs b/SGGL/BLL/JDGL/WBS/EquipmentMaterialBigTypeService.cs
new file mode 100644
index 00000000..5904ae05
--- /dev/null
+++ b/SGGL/BLL/JDGL/WBS/EquipmentMaterialBigTypeService.cs
@@ -0,0 +1,125 @@
+using FineUIPro;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace BLL
+{
+ public static class EquipmentMaterialBigTypeService
+ {
+ public static Model.SGGLDB db = Funs.DB;
+
+ ///
+ /// 获取实体集合
+ ///
+ ///
+ public static List GetList()
+ {
+ var q = (from x in Funs.DB.WBS_EquipmentMaterialBigType orderby x.EquipmentMaterialBigTypeCode select x).ToList();
+ return q;
+ }
+ ///
+ /// 添加
+ ///
+ ///
+ public static void AddEquipmentMaterialBigType(Model.WBS_EquipmentMaterialBigType EquipmentMaterialBigType)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.WBS_EquipmentMaterialBigType newEquipmentMaterialBigType = new Model.WBS_EquipmentMaterialBigType
+ {
+ EquipmentMaterialBigTypeId = EquipmentMaterialBigType.EquipmentMaterialBigTypeId,
+ EquipmentMaterialBigTypeCode = EquipmentMaterialBigType.EquipmentMaterialBigTypeCode,
+ EquipmentMaterialBigTypeName = EquipmentMaterialBigType.EquipmentMaterialBigTypeName,
+ Remark = EquipmentMaterialBigType.Remark
+ };
+
+ db.WBS_EquipmentMaterialBigType.InsertOnSubmit(newEquipmentMaterialBigType);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改
+ ///
+ ///
+ public static void UpdateEquipmentMaterialBigType(Model.WBS_EquipmentMaterialBigType EquipmentMaterialBigType)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.WBS_EquipmentMaterialBigType newEquipmentMaterialBigType = db.WBS_EquipmentMaterialBigType.FirstOrDefault(e => e.EquipmentMaterialBigTypeId == EquipmentMaterialBigType.EquipmentMaterialBigTypeId);
+ if (newEquipmentMaterialBigType != null)
+ {
+ newEquipmentMaterialBigType.EquipmentMaterialBigTypeCode = EquipmentMaterialBigType.EquipmentMaterialBigTypeCode;
+ newEquipmentMaterialBigType.EquipmentMaterialBigTypeName = EquipmentMaterialBigType.EquipmentMaterialBigTypeName;
+ newEquipmentMaterialBigType.Remark = EquipmentMaterialBigType.Remark;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除信息
+ ///
+ ///
+ public static void DeleteEquipmentMaterialBigTypeById(string EquipmentMaterialBigTypeId)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.WBS_EquipmentMaterialBigType EquipmentMaterialBigType = db.WBS_EquipmentMaterialBigType.FirstOrDefault(e => e.EquipmentMaterialBigTypeId == EquipmentMaterialBigTypeId);
+ {
+ db.WBS_EquipmentMaterialBigType.DeleteOnSubmit(EquipmentMaterialBigType);
+ db.SubmitChanges();
+ }
+ }
+ public static void InitEquipmentMaterialBigTypeDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
+ {
+ dropName.DataValueField = "Value";
+ dropName.DataTextField = "Text";
+ dropName.DataSource = GetEquipmentMaterialBigTypeItem();
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
+ ///
+ /// 设备材料分类下拉框
+ ///
+ ///
+ ///
+ ///
+ public static void InitEquipmentMaterialBigType(FineUIPro.DropDownList dropName, bool isShowPlease)
+ {
+ dropName.DataValueField = "Text";
+ dropName.DataTextField = "Text";
+ dropName.DataSource = GetEquipmentMaterialBigTypeItem();
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
+ ///
+ /// 获取设备材料分类集合
+ ///
+ ///
+ public static ListItem[] GetEquipmentMaterialBigTypeItem()
+ {
+ var q = (from x in Funs.DB.WBS_EquipmentMaterialBigType orderby x.EquipmentMaterialBigTypeCode select x).ToList();
+ ListItem[] list = new ListItem[q.Count()];
+ for (int i = 0; i < q.Count(); i++)
+ {
+ list[i] = new ListItem(q[i].EquipmentMaterialBigTypeName ?? "", q[i].EquipmentMaterialBigTypeId);
+ }
+ return list;
+ }
+
+ ///
+ /// 获取一个设备材料分类信息
+ ///
+ ///
+ ///
+ public static Model.WBS_EquipmentMaterialBigType GetEquipmentMaterialBigType(string EquipmentMaterialBigTypeId)
+ {
+ return Funs.DB.WBS_EquipmentMaterialBigType.FirstOrDefault(e => e.EquipmentMaterialBigTypeId == EquipmentMaterialBigTypeId);
+ }
+ }
+}
diff --git a/SGGL/BLL/JDGL/WBS/EquipmentMaterialTypeService.cs b/SGGL/BLL/JDGL/WBS/EquipmentMaterialTypeService.cs
index a16cfa4b..b019f444 100644
--- a/SGGL/BLL/JDGL/WBS/EquipmentMaterialTypeService.cs
+++ b/SGGL/BLL/JDGL/WBS/EquipmentMaterialTypeService.cs
@@ -32,6 +32,7 @@ namespace BLL
EquipmentMaterialTypeId = equipmentMaterialType.EquipmentMaterialTypeId,
EquipmentMaterialTypeCode = equipmentMaterialType.EquipmentMaterialTypeCode,
EquipmentMaterialTypeName = equipmentMaterialType.EquipmentMaterialTypeName,
+ EquipmentMaterialBigTypeId = equipmentMaterialType.EquipmentMaterialBigTypeId,
Remark = equipmentMaterialType.Remark
};
@@ -51,6 +52,7 @@ namespace BLL
{
newEquipmentMaterialType.EquipmentMaterialTypeCode = equipmentMaterialType.EquipmentMaterialTypeCode;
newEquipmentMaterialType.EquipmentMaterialTypeName = equipmentMaterialType.EquipmentMaterialTypeName;
+ newEquipmentMaterialType.EquipmentMaterialBigTypeId = equipmentMaterialType.EquipmentMaterialBigTypeId;
newEquipmentMaterialType.Remark = equipmentMaterialType.Remark;
db.SubmitChanges();
}
diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt
index 356083b2..dda9e1ae 100644
--- a/SGGL/FineUIPro.Web/ErrLog.txt
+++ b/SGGL/FineUIPro.Web/ErrLog.txt
@@ -387,3 +387,20 @@ IP地址:::1
出错时间:05/25/2023 10:08:31
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
+ 在 FineUIPro.ResourceHelper.GetResourceContentAsBinary(String resName, String resVersion)
+ 在 FineUIPro.ResourceHandler.ProcessRequest(HttpContext context)
+ 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+ 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
+ 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
+出错时间:06/05/2023 09:22:57
+出错文件:http://localhost:9733/res.axd?font=lib.iconfont.iconfont.woff&t=638137763580000000
+IP地址:::1
+
+出错时间:06/05/2023 09:22:57
+
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index f2961963..c232391f 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -1281,6 +1281,9 @@
+
+
+
@@ -13045,6 +13048,27 @@
CostControlWeekItemDetailEdit.aspx
+
+ EquipmentMaterialBigType.aspx
+ ASPXCodeBehind
+
+
+ EquipmentMaterialBigType.aspx
+
+
+ EquipmentMaterialBigTypeEdit.aspx
+ ASPXCodeBehind
+
+
+ EquipmentMaterialBigTypeEdit.aspx
+
+
+ EquipmentMaterialBigTypeView.aspx
+ ASPXCodeBehind
+
+
+ EquipmentMaterialBigTypeView.aspx
+
EquipmentMaterialType.aspx
ASPXCodeBehind
diff --git a/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx b/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx
index 78f0e900..9c068c28 100644
--- a/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx
+++ b/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx
@@ -169,7 +169,7 @@
-
diff --git a/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.cs b/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.cs
index 74dc7e67..18121b73 100644
--- a/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.cs
+++ b/SGGL/FineUIPro.Web/JDGL/CostAnalysis/JDReport.aspx.cs
@@ -197,152 +197,219 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
table4.Columns.Add(new DataColumn("CPI", typeof(String)));
table4.Columns.Add(new DataColumn("SPI", typeof(String)));
Model.SGGLDB db = Funs.DB;
- var cnProfessionInits = from x in db.WBS_CnProfessionInit select x;
- var cnProfessions = from x in db.WBS_CnProfession where x.ProjectId == this.CurrUser.LoginProjectId select x;
- var unitProjectInits = from x in db.Wbs_UnitProjectInit select x;
- var unitProjects = from x in db.Wbs_UnitProject where x.ProjectId == this.CurrUser.LoginProjectId select x;
+ var cnProfessions = from x in db.WBS_CnProfession where x.ProjectId == this.CurrUser.LoginProjectId && x.IsApprove == true select x;
+ var installationIds = cnProfessions.Select(x => x.InstallationId).Distinct().ToList();
+ var installations = from x in db.Project_Installation where x.ProjectId == this.CurrUser.LoginProjectId && installationIds.Contains(x.InstallationId) select x;
+ var unitProjects = from x in db.Wbs_UnitProject where x.ProjectId == this.CurrUser.LoginProjectId && x.IsApprove == true select x;
var details = from x in db.View_WBS_CostControlParentDetail
where x.Months == Funs.GetNewDateTime(date)
select x;
DataRow row4;
decimal cnACWP, cnBCWP, cnBCWS, cnmACWP, cnmBCWP, cnmBCWS, cnCV, cnSV, cnCPI, cnSPI, cnmCV, cnmSV, cnmCPI, cnmSPI,
- unACWP, unBCWP, unBCWS, unmACWP, unmBCWP, unmBCWS, unCV, unSV, unCPI, unSPI, unmCV, unmSV, unmCPI, unmSPI;
- int a = 1, b = 1;
- foreach (var cn in cnProfessionInits)
+ unACWP, unBCWP, unBCWS, unmACWP, unmBCWP, unmBCWS, unCV, unSV, unCPI, unSPI, unmCV, unmSV, unmCPI, unmSPI,
+ inACWP, inBCWP, inBCWS, inmACWP, inmBCWP, inmBCWS, inCV, inSV, inCPI, inSPI, inmCV, inmSV, inmCPI, inmSPI;
+ int a = 1, b = 1, c = 1;
+ foreach (var item in installations)
{
- cnACWP = 0;
- cnBCWP = 0;
- cnBCWS = 0;
- cnmACWP = 0;
- cnmBCWP = 0;
- cnmBCWS = 0;
- cnCV = 0;
- cnSV = 0;
- cnCPI = 0;
- cnSPI = 0;
- cnmCV = 0;
- cnmSV = 0;
- cnmCPI = 0;
- cnmSPI = 0;
+ inACWP = 0;
+ inBCWP = 0;
+ inBCWS = 0;
+ inmACWP = 0;
+ inmBCWP = 0;
+ inmBCWS = 0;
+ inCV = 0;
+ inSV = 0;
+ inCPI = 0;
+ inSPI = 0;
+ inmCV = 0;
+ inmSV = 0;
+ inmCPI = 0;
+ inmSPI = 0;
row4 = table4.NewRow();
- row4[0] = a;
+ row4[0] = c.ToString();
row4[1] = "0";
- row4[2] = cn.CnProfessionName;
- var cnDetails = (from x in details
- join y in cnProfessions on x.ParentId equals y.CnProfessionId
- where y.OldId == cn.CnProfessionId
+ row4[2] = item.InstallationName;
+ var inDetails = (from x in details
+ where x.ParentId == item.InstallationId
select x).ToList();
- cnmACWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
- cnmBCWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
- cnmBCWS = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
- cnmCV = cnmBCWP - cnmACWP;
- cnmSV = cnmBCWP - cnmBCWS;
- if (cnmACWP > 0)
+ inmACWP = Funs.GetNewDecimalOrZero(inDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
+ inmBCWP = Funs.GetNewDecimalOrZero(inDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
+ inmBCWS = Funs.GetNewDecimalOrZero(inDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
+ inmCV = inmBCWP - inmACWP;
+ inmSV = inmBCWP - inmBCWS;
+ if (inmACWP > 0)
{
- cnmCPI = cnmBCWP / cnmACWP;
+ inmCPI = inmBCWP / inmACWP;
}
- if (cnmBCWS > 0)
+ if (inmBCWS > 0)
{
- cnmSPI = cnmBCWP / cnmBCWS;
+ inmSPI = inmBCWP / inmBCWS;
}
- row4[3] = cnmBCWP.ToString("0.####");
- row4[4] = cnmBCWS.ToString("0.####");
- row4[5] = cnmACWP.ToString("0.####");
- row4[6] = cnmCV.ToString("0.####");
- row4[7] = cnmSV.ToString("0.####");
- row4[8] = cnmCPI.ToString("0.####");
- row4[9] = cnmSPI.ToString("0.####");
- cnACWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalRealCost).Sum().ToString()) / 10000;
- cnBCWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalPlanCost).Sum().ToString()) / 10000;
- cnBCWS = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalPlanValue).Sum().ToString()) / 10000;
- cnCV = cnBCWP - cnACWP;
- cnSV = cnBCWP - cnBCWS;
- if (cnACWP > 0)
+ row4[3] = inmBCWP.ToString("0.####");
+ row4[4] = inmBCWS.ToString("0.####");
+ row4[5] = inmACWP.ToString("0.####");
+ row4[6] = inmCV.ToString("0.####");
+ row4[7] = inmSV.ToString("0.####");
+ row4[8] = inmCPI.ToString("0.####");
+ row4[9] = inmSPI.ToString("0.####");
+ inACWP = Funs.GetNewDecimalOrZero(inDetails.Select(x => x.TotalRealCost).Sum().ToString()) / 10000;
+ inBCWP = Funs.GetNewDecimalOrZero(inDetails.Select(x => x.TotalPlanCost).Sum().ToString()) / 10000;
+ inBCWS = Funs.GetNewDecimalOrZero(inDetails.Select(x => x.TotalPlanValue).Sum().ToString()) / 10000;
+ inCV = inBCWP - inACWP;
+ inSV = inBCWP - inBCWS;
+ if (inACWP > 0)
{
- cnCPI = cnBCWP / cnACWP;
+ inCPI = inBCWP / inACWP;
}
- if (cnBCWS > 0)
+ if (inBCWS > 0)
{
- cnSPI = cnBCWP / cnBCWS;
+ inSPI = inBCWP / inBCWS;
}
- row4[10] = cnBCWP.ToString("0.####");
- row4[11] = cnBCWS.ToString("0.####");
- row4[12] = cnACWP.ToString("0.####");
- row4[13] = cnCV.ToString("0.####");
- row4[14] = cnSV.ToString("0.####");
- row4[15] = cnCPI.ToString("0.####");
- row4[16] = cnSPI.ToString("0.####");
+ row4[10] = inBCWP.ToString("0.####");
+ row4[11] = inBCWS.ToString("0.####");
+ row4[12] = inACWP.ToString("0.####");
+ row4[13] = inCV.ToString("0.####");
+ row4[14] = inSV.ToString("0.####");
+ row4[15] = inCPI.ToString("0.####");
+ row4[16] = inSPI.ToString("0.####");
table4.Rows.Add(row4);
- b = 1;
- var unLists = (from x in unitProjectInits where x.CnProfessionId == cn.CnProfessionId orderby x.SortIndex select x).ToList();
- foreach (var un in unLists)
+ a = 1;
+ var icnProfessions = cnProfessions.Where(x => x.InstallationId == item.InstallationId);
+ foreach (var cn in icnProfessions)
{
- unACWP = 0;
- unBCWP = 0;
- unBCWS = 0;
- unmACWP = 0;
- unmBCWP = 0;
- unmBCWS = 0;
- unCV = 0;
- unSV = 0;
- unCPI = 0;
- unSPI = 0;
- unmCV = 0;
- unmSV = 0;
- unmCPI = 0;
- unmSPI = 0;
+ cnACWP = 0;
+ cnBCWP = 0;
+ cnBCWS = 0;
+ cnmACWP = 0;
+ cnmBCWP = 0;
+ cnmBCWS = 0;
+ cnCV = 0;
+ cnSV = 0;
+ cnCPI = 0;
+ cnSPI = 0;
+ cnmCV = 0;
+ cnmSV = 0;
+ cnmCPI = 0;
+ cnmSPI = 0;
row4 = table4.NewRow();
- row4[0] = a.ToString() + "." + b.ToString();
- row4[1] = a;
- row4[2] = un.UnitProjectName;
- var unDetails = from x in details
- join y in unitProjects on x.ParentId equals y.UnitProjectId
- where y.UnitProjectCode == un.UnitProjectCode
- select x;
- unmACWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
- unmBCWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
- unmBCWS = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
- unmCV = unmBCWP - unmACWP;
- unmSV = unmBCWP - unmBCWS;
- if (unmACWP > 0)
+ row4[0] = c.ToString() + "." + a.ToString();
+ row4[1] = c;
+ row4[2] = cn.CnProfessionName;
+ var cnDetails = (from x in details
+ where x.ParentId == cn.CnProfessionId
+ select x).ToList();
+ cnmACWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
+ cnmBCWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
+ cnmBCWS = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
+ cnmCV = cnmBCWP - cnmACWP;
+ cnmSV = cnmBCWP - cnmBCWS;
+ if (cnmACWP > 0)
{
- unmCPI = unmBCWP / unmACWP;
+ cnmCPI = cnmBCWP / cnmACWP;
}
- if (unmBCWS > 0)
+ if (cnmBCWS > 0)
{
- unmSPI = unmBCWP / unmBCWS;
+ cnmSPI = cnmBCWP / cnmBCWS;
}
- row4[3] = unmBCWP.ToString("0.####");
- row4[4] = unmBCWS.ToString("0.####");
- row4[5] = unmACWP.ToString("0.####");
- row4[6] = unmCV.ToString("0.####");
- row4[7] = unmSV.ToString("0.####");
- row4[8] = unmCPI.ToString("0.####");
- row4[9] = unmSPI.ToString("0.####");
- unACWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalRealCost).Sum().ToString()) / 10000;
- unBCWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalPlanCost).Sum().ToString()) / 10000;
- unBCWS = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalPlanValue).Sum().ToString()) / 10000;
- unCV = unBCWP - unACWP;
- unSV = unBCWP - unBCWS;
- if (unACWP > 0)
+ row4[3] = cnmBCWP.ToString("0.####");
+ row4[4] = cnmBCWS.ToString("0.####");
+ row4[5] = cnmACWP.ToString("0.####");
+ row4[6] = cnmCV.ToString("0.####");
+ row4[7] = cnmSV.ToString("0.####");
+ row4[8] = cnmCPI.ToString("0.####");
+ row4[9] = cnmSPI.ToString("0.####");
+ cnACWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalRealCost).Sum().ToString()) / 10000;
+ cnBCWP = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalPlanCost).Sum().ToString()) / 10000;
+ cnBCWS = Funs.GetNewDecimalOrZero(cnDetails.Select(x => x.TotalPlanValue).Sum().ToString()) / 10000;
+ cnCV = cnBCWP - cnACWP;
+ cnSV = cnBCWP - cnBCWS;
+ if (cnACWP > 0)
{
- unCPI = unBCWP / unACWP;
+ cnCPI = cnBCWP / cnACWP;
}
- if (unBCWS > 0)
+ if (cnBCWS > 0)
{
- unSPI = unBCWP / unBCWS;
+ cnSPI = cnBCWP / cnBCWS;
}
- row4[10] = unBCWP.ToString("0.####");
- row4[11] = unBCWS.ToString("0.####");
- row4[12] = unACWP.ToString("0.####");
- row4[13] = unCV.ToString("0.####");
- row4[14] = unSV.ToString("0.####");
- row4[15] = unCPI.ToString("0.####");
- row4[16] = unSPI.ToString("0.####");
+ row4[10] = cnBCWP.ToString("0.####");
+ row4[11] = cnBCWS.ToString("0.####");
+ row4[12] = cnACWP.ToString("0.####");
+ row4[13] = cnCV.ToString("0.####");
+ row4[14] = cnSV.ToString("0.####");
+ row4[15] = cnCPI.ToString("0.####");
+ row4[16] = cnSPI.ToString("0.####");
table4.Rows.Add(row4);
- b++;
+ b = 1;
+ var unLists = from x in unitProjects where x.CnProfessionId == cn.CnProfessionId orderby x.SortIndex select x;
+ foreach (var un in unLists)
+ {
+ unACWP = 0;
+ unBCWP = 0;
+ unBCWS = 0;
+ unmACWP = 0;
+ unmBCWP = 0;
+ unmBCWS = 0;
+ unCV = 0;
+ unSV = 0;
+ unCPI = 0;
+ unSPI = 0;
+ unmCV = 0;
+ unmSV = 0;
+ unmCPI = 0;
+ unmSPI = 0;
+ row4 = table4.NewRow();
+ row4[0] = c.ToString() + "." + a.ToString() + "." + b.ToString();
+ row4[1] = c.ToString() + "." + a.ToString();
+ row4[2] = un.UnitProjectName;
+ var unDetails = from x in details
+ where x.ParentId == un.UnitProjectId
+ select x;
+ unmACWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisRealCost).Sum().ToString()) / 10000;
+ unmBCWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisPlanCost).Sum().ToString()) / 10000;
+ unmBCWS = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.ThisPlanValue).Sum().ToString()) / 10000;
+ unmCV = unmBCWP - unmACWP;
+ unmSV = unmBCWP - unmBCWS;
+ if (unmACWP > 0)
+ {
+ unmCPI = unmBCWP / unmACWP;
+ }
+ if (unmBCWS > 0)
+ {
+ unmSPI = unmBCWP / unmBCWS;
+ }
+ row4[3] = unmBCWP.ToString("0.####");
+ row4[4] = unmBCWS.ToString("0.####");
+ row4[5] = unmACWP.ToString("0.####");
+ row4[6] = unmCV.ToString("0.####");
+ row4[7] = unmSV.ToString("0.####");
+ row4[8] = unmCPI.ToString("0.####");
+ row4[9] = unmSPI.ToString("0.####");
+ unACWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalRealCost).Sum().ToString()) / 10000;
+ unBCWP = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalPlanCost).Sum().ToString()) / 10000;
+ unBCWS = Funs.GetNewDecimalOrZero(unDetails.Select(x => x.TotalPlanValue).Sum().ToString()) / 10000;
+ unCV = unBCWP - unACWP;
+ unSV = unBCWP - unBCWS;
+ if (unACWP > 0)
+ {
+ unCPI = unBCWP / unACWP;
+ }
+ if (unBCWS > 0)
+ {
+ unSPI = unBCWP / unBCWS;
+ }
+ row4[10] = unBCWP.ToString("0.####");
+ row4[11] = unBCWS.ToString("0.####");
+ row4[12] = unACWP.ToString("0.####");
+ row4[13] = unCV.ToString("0.####");
+ row4[14] = unSV.ToString("0.####");
+ row4[15] = unCPI.ToString("0.####");
+ row4[16] = unSPI.ToString("0.####");
+ table4.Rows.Add(row4);
+ b++;
+ }
+ a++;
}
- a++;
+ c++;
}
if (table4.Rows.Count > 0)
{
@@ -350,7 +417,7 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
this.Grid4.DataBind();
}
- //按专业统计
+ //按设备材料分类统计
DataTable table5 = new DataTable();
table5.Columns.Add(new DataColumn("Id", typeof(String)));
table5.Columns.Add(new DataColumn("Name", typeof(String)));
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigType.aspx b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigType.aspx
new file mode 100644
index 00000000..c0ebe760
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigType.aspx
@@ -0,0 +1,114 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentMaterialBigType.aspx.cs" Inherits="FineUIPro.Web.JDGL.WBS.EquipmentMaterialBigType" %>
+
+
+
+
+
+设备材料大类
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigType.aspx.cs b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigType.aspx.cs
new file mode 100644
index 00000000..4360301a
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigType.aspx.cs
@@ -0,0 +1,182 @@
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using BLL;
+
+namespace FineUIPro.Web.JDGL.WBS
+{
+ public partial class EquipmentMaterialBigType : PageBase
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ GetButtonPower();
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+
+ // 绑定表格
+ BindGrid();
+ btnNew.OnClientClick = Window1.GetShowReference("EquipmentMaterialBigTypeEdit.aspx") + "return false;";
+ }
+ }
+ ///
+ /// 绑定数据
+ ///
+
+ public void BindGrid()
+ {
+ DataTable tb = BindData();
+ Grid1.RecordCount = tb.Rows.Count;
+ tb = GetFilteredTable(Grid1.FilteredData, tb);
+ var table = this.GetPagedDataTable(Grid1, tb);
+
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+
+
+ protected DataTable BindData()
+ {
+ string strSql = @"select EquipmentMaterialBigTypeId,EquipmentMaterialBigTypeCode,EquipmentMaterialBigTypeName,Remark from [dbo].[WBS_EquipmentMaterialBigType] where 1=1 ";
+
+ List listStr = new List();
+ if (!string.IsNullOrEmpty(this.txtEquipmentMaterialBigTypeCode.Text.Trim()))
+ {
+ strSql += " AND EquipmentMaterialBigTypeCode like @EquipmentMaterialBigTypeCode";
+ listStr.Add(new SqlParameter("@EquipmentMaterialBigTypeCode", "%" + this.txtEquipmentMaterialBigTypeCode.Text.Trim() + "%"));
+ }
+ if (!string.IsNullOrEmpty(this.txtEquipmentMaterialBigTypeName.Text.Trim()))
+ {
+ strSql += " AND EquipmentMaterialBigTypeName like @EquipmentMaterialBigTypeName";
+ listStr.Add(new SqlParameter("@EquipmentMaterialBigTypeName", "%" + this.txtEquipmentMaterialBigTypeName.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)
+ {
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ BLL.EquipmentMaterialBigTypeService.DeleteEquipmentMaterialBigTypeById(rowID);
+ }
+
+ BindGrid();
+ ShowNotify("删除数据成功!", MessageBoxIcon.Success);
+ }
+ }
+
+ ///
+ /// 编辑数据方法
+ ///
+ private void EditData()
+ {
+
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.btnMenuModify.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentMaterialBigTypeView.aspx?EquipmentMaterialBigTypeId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ else
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentMaterialBigTypeEdit.aspx?EquipmentMaterialBigTypeId={0}", Grid1.SelectedRowID, "编辑 - ")));
+ }
+ }
+ #region 获取按钮权限
+ ///
+ /// 获取按钮权限
+ ///
+ ///
+ ///
+ private void GetButtonPower()
+ {
+ if (Request.Params["value"] == "0")
+ {
+ return;
+ }
+ var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.EquipmentMaterialBigTypeMenuId);
+ if (buttonList.Count() > 0)
+ {
+ if (buttonList.Contains(BLL.Const.BtnAdd))
+ {
+ this.btnNew.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnModify))
+ {
+ this.btnMenuModify.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnDelete))
+ {
+ this.btnMenuDel.Hidden = false;
+ }
+ }
+ }
+ #endregion
+
+
+ protected void btnSearch_Click(object sender, EventArgs e)
+ {
+ BindGrid();
+ }
+
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ EditData();
+ }
+
+
+ protected void btnMenuView_Click(object sender, EventArgs e)
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentMaterialBigTypeView.aspx?EquipmentMaterialBigTypeId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+ ///
+ /// 重置
+ ///
+ ///
+ ///
+ protected void btnRset_Click(object sender, EventArgs e)
+ {
+ txtEquipmentMaterialBigTypeCode.Text = "";
+ txtEquipmentMaterialBigTypeName.Text = "";
+ BindGrid();
+ }
+
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ BindGrid();
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigType.aspx.designer.cs b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigType.aspx.designer.cs
new file mode 100644
index 00000000..00eaaf48
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigType.aspx.designer.cs
@@ -0,0 +1,177 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JDGL.WBS {
+
+
+ public partial class EquipmentMaterialBigType {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// txtEquipmentMaterialBigTypeCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEquipmentMaterialBigTypeCode;
+
+ ///
+ /// txtEquipmentMaterialBigTypeName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEquipmentMaterialBigTypeName;
+
+ ///
+ /// 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 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuModify 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuModify;
+
+ ///
+ /// btnMenuDel 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDel;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeEdit.aspx b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeEdit.aspx
new file mode 100644
index 00000000..acdf9858
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeEdit.aspx
@@ -0,0 +1,54 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentMaterialBigTypeEdit.aspx.cs" Inherits="FineUIPro.Web.JDGL.WBS.EquipmentMaterialBigTypeEdit" %>
+
+
+
+
+
+设备材料分类
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeEdit.aspx.cs b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeEdit.aspx.cs
new file mode 100644
index 00000000..5ad5aad7
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeEdit.aspx.cs
@@ -0,0 +1,61 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.JDGL.WBS
+{
+ public partial class EquipmentMaterialBigTypeEdit : PageBase
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ string EquipmentMaterialBigTypeId = Request.Params["EquipmentMaterialBigTypeId"];
+ if (!string.IsNullOrEmpty(EquipmentMaterialBigTypeId))
+ {
+
+ Model.WBS_EquipmentMaterialBigType EquipmentMaterialBigType = BLL.EquipmentMaterialBigTypeService.GetEquipmentMaterialBigType(EquipmentMaterialBigTypeId);
+ if (EquipmentMaterialBigType != null)
+ {
+ this.txtEquipmentMaterialBigTypeCode.Text = EquipmentMaterialBigType.EquipmentMaterialBigTypeCode;
+ this.txtEquipmentMaterialBigTypeName.Text = EquipmentMaterialBigType.EquipmentMaterialBigTypeName;
+ this.txtRemark.Text = EquipmentMaterialBigType.Remark;
+ }
+ }
+ }
+
+ }
+
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ SaveData(true);
+ }
+
+ private void SaveData(bool b)
+ {
+ string EquipmentMaterialBigTypeId = Request.Params["EquipmentMaterialBigTypeId"];
+ Model.WBS_EquipmentMaterialBigType EquipmentMaterialBigType = new Model.WBS_EquipmentMaterialBigType();
+ EquipmentMaterialBigType.EquipmentMaterialBigTypeCode = this.txtEquipmentMaterialBigTypeCode.Text.Trim();
+ EquipmentMaterialBigType.EquipmentMaterialBigTypeName = this.txtEquipmentMaterialBigTypeName.Text.Trim();
+ EquipmentMaterialBigType.Remark = this.txtRemark.Text.Trim();
+ if (!string.IsNullOrEmpty(EquipmentMaterialBigTypeId))
+ {
+ EquipmentMaterialBigType.EquipmentMaterialBigTypeId = EquipmentMaterialBigTypeId;
+ BLL.EquipmentMaterialBigTypeService.UpdateEquipmentMaterialBigType(EquipmentMaterialBigType);
+ }
+ else
+ {
+ EquipmentMaterialBigType.EquipmentMaterialBigTypeId = SQLHelper.GetNewID(typeof(Model.WBS_EquipmentMaterialBigType));
+ BLL.EquipmentMaterialBigTypeService.AddEquipmentMaterialBigType(EquipmentMaterialBigType);
+
+ }
+ ShowNotify("保存成功!", MessageBoxIcon.Success);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeEdit.aspx.designer.cs
new file mode 100644
index 00000000..e72ca44a
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeEdit.aspx.designer.cs
@@ -0,0 +1,105 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JDGL.WBS {
+
+
+ public partial class EquipmentMaterialBigTypeEdit {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// txtEquipmentMaterialBigTypeCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEquipmentMaterialBigTypeCode;
+
+ ///
+ /// txtEquipmentMaterialBigTypeName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEquipmentMaterialBigTypeName;
+
+ ///
+ /// txtRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtRemark;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// hdCheckerId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdCheckerId;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeView.aspx b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeView.aspx
new file mode 100644
index 00000000..66059fd6
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeView.aspx
@@ -0,0 +1,54 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentMaterialBigTypeView.aspx.cs" Inherits="FineUIPro.Web.JDGL.WBS.EquipmentMaterialBigTypeView" %>
+
+
+
+
+
+设备材料分类
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeView.aspx.cs b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeView.aspx.cs
new file mode 100644
index 00000000..2455d515
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeView.aspx.cs
@@ -0,0 +1,33 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.JDGL.WBS
+{
+ public partial class EquipmentMaterialBigTypeView : PageBase
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ string EquipmentMaterialBigTypeId = Request.Params["EquipmentMaterialBigTypeId"];
+ if (!string.IsNullOrEmpty(EquipmentMaterialBigTypeId))
+ {
+
+ Model.WBS_EquipmentMaterialBigType EquipmentMaterialBigType = BLL.EquipmentMaterialBigTypeService.GetEquipmentMaterialBigType(EquipmentMaterialBigTypeId);
+ if (EquipmentMaterialBigType != null)
+ {
+ this.txtEquipmentMaterialBigTypeCode.Text = EquipmentMaterialBigType.EquipmentMaterialBigTypeCode;
+ this.txtEquipmentMaterialBigTypeName.Text = EquipmentMaterialBigType.EquipmentMaterialBigTypeName;
+ this.txtRemark.Text = EquipmentMaterialBigType.Remark;
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeView.aspx.designer.cs b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeView.aspx.designer.cs
new file mode 100644
index 00000000..88d163b1
--- /dev/null
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialBigTypeView.aspx.designer.cs
@@ -0,0 +1,105 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.JDGL.WBS {
+
+
+ public partial class EquipmentMaterialBigTypeView {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// txtEquipmentMaterialBigTypeCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEquipmentMaterialBigTypeCode;
+
+ ///
+ /// txtEquipmentMaterialBigTypeName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEquipmentMaterialBigTypeName;
+
+ ///
+ /// txtRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtRemark;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// hdCheckerId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdCheckerId;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx
index 6bdd951e..93979e12 100644
--- a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx
@@ -29,6 +29,7 @@
+
@@ -52,11 +53,14 @@
SortField="EquipmentMaterialTypeCode" FieldType="String" HeaderText="编号" TextAlign="center"
HeaderTextAlign="Center">
-
+
+
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.cs b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.cs
index 0a86d46a..7f42df34 100644
--- a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.cs
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.cs
@@ -18,7 +18,7 @@ namespace FineUIPro.Web.JDGL.WBS
{
GetButtonPower();
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
-
+ BLL.EquipmentMaterialBigTypeService.InitEquipmentMaterialBigTypeDownList(this.drpEquipmentMaterialBigTypeId, true);
// 绑定表格
BindGrid();
btnNew.OnClientClick = Window1.GetShowReference("EquipmentMaterialTypeEdit.aspx") + "return false;";
@@ -42,7 +42,7 @@ namespace FineUIPro.Web.JDGL.WBS
protected DataTable BindData()
{
- string strSql = @"select EquipmentMaterialTypeId,EquipmentMaterialTypeCode,EquipmentMaterialTypeName,Remark from [dbo].[WBS_EquipmentMaterialType] where 1=1 ";
+ string strSql = @"select EquipmentMaterialTypeId,EquipmentMaterialTypeCode,EquipmentMaterialTypeName,a.Remark,b.EquipmentMaterialBigTypeName from [dbo].[WBS_EquipmentMaterialType] a left join WBS_EquipmentMaterialBigType b on a.EquipmentMaterialBigTypeId=b.EquipmentMaterialBigTypeId where 1=1 ";
List listStr = new List();
if (!string.IsNullOrEmpty(this.txtEquipmentMaterialTypeCode.Text.Trim()))
@@ -55,6 +55,11 @@ namespace FineUIPro.Web.JDGL.WBS
strSql += " AND EquipmentMaterialTypeName like @EquipmentMaterialTypeName";
listStr.Add(new SqlParameter("@EquipmentMaterialTypeName", "%" + this.txtEquipmentMaterialTypeName.Text.Trim() + "%"));
}
+ if (this.drpEquipmentMaterialBigTypeId.SelectedValue != BLL.Const._Null)
+ {
+ strSql += " AND a.EquipmentMaterialBigTypeId = @EquipmentMaterialBigTypeId";
+ listStr.Add(new SqlParameter("@EquipmentMaterialBigTypeId", this.drpEquipmentMaterialBigTypeId.SelectedValue));
+ }
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
return tb;
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.designer.cs b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.designer.cs
index 35bb7755..dc6a6110 100644
--- a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialType.aspx.designer.cs
@@ -75,6 +75,15 @@ namespace FineUIPro.Web.JDGL.WBS {
///
protected global::FineUIPro.TextBox txtEquipmentMaterialTypeName;
+ ///
+ /// drpEquipmentMaterialBigTypeId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpEquipmentMaterialBigTypeId;
+
///
/// btnSearch 控件。
///
diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx
index 196ddb4c..2e0a47ff 100644
--- a/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx
+++ b/SGGL/FineUIPro.Web/JDGL/WBS/EquipmentMaterialTypeEdit.aspx
@@ -27,6 +27,11 @@
+
+
+
+
+
+
+
+
+
+