diff --git a/.vs/CNCEC_SUBQHSE_WUHUAN/v17/.wsuo b/.vs/CNCEC_SUBQHSE_WUHUAN/v17/.wsuo new file mode 100644 index 00000000..6b7a5a4a Binary files /dev/null and b/.vs/CNCEC_SUBQHSE_WUHUAN/v17/.wsuo differ diff --git a/DataBase/版本日志/SGGLDB_WH_2024-02-04-lpf.sql b/DataBase/版本日志/SGGLDB_WH_2024-02-04-lpf.sql new file mode 100644 index 00000000..2861fa6b --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_2024-02-04-lpf.sql @@ -0,0 +1,6 @@ + +alter table DriverSub_DriverSub add DriverSubPlanId nvarchar(50); +go +alter table DriverSub_DriverSub add DriverSubContractorsId nvarchar(50); +go +alter table DriverSub_DriverSub add EvaluationData nvarchar(2000); \ No newline at end of file diff --git a/DataBase/版本日志/SGGLDB_WH_2024-02-04-phf.sql b/DataBase/版本日志/SGGLDB_WH_2024-02-04-phf.sql new file mode 100644 index 00000000..61d069b0 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_2024-02-04-phf.sql @@ -0,0 +1,13 @@ +--µ +delete from Transfer_Piping; +delete from Transfer_StaticEquipment; +delete from Transfer_RotatingEquipment; + +--޸ʱʱ +update Transfer_Instrumentation set CompleteTime=getdate(); +update Transfer_Electrical set CompleteTime=getdate(); +update Transfer_Civil_Structure set CompleteTime=getdate(); +update Transfer_Firefighting set CompleteTime=getdate(); +update Transfer_Telecom set CompleteTime=getdate(); +update Transfer_Plumbing set CompleteTime=getdate(); +update Transfer_HVAC set CompleteTime=getdate(); \ No newline at end of file diff --git a/SGGL/BLL/TestRun/DriverSub/DriverSubService.cs b/SGGL/BLL/TestRun/DriverSub/DriverSubService.cs index 2df0cf0c..33a74cdf 100644 --- a/SGGL/BLL/TestRun/DriverSub/DriverSubService.cs +++ b/SGGL/BLL/TestRun/DriverSub/DriverSubService.cs @@ -20,7 +20,17 @@ namespace BLL { return Funs.DB.DriverSub_DriverSub.FirstOrDefault(e => e.DriverSubId == DriverSubId); } - + /// + /// 根据 + /// + /// + /// + /// + public static Model.DriverSub_DriverSub GetDriverSubBySubPlanIdAndTractorsId(string DriverSubPlanId, + string DriverSubContractorsId) + { + return Funs.DB.DriverSub_DriverSub.FirstOrDefault(e => e.DriverSubPlanId == DriverSubPlanId&& e.DriverSubContractorsId==DriverSubContractorsId); + } /// /// 添加开车分包管理信息 /// @@ -36,6 +46,9 @@ namespace BLL newDriverSub.Instruction = DriverSub.Instruction; newDriverSub.AttachUrl = DriverSub.AttachUrl; newDriverSub.Remark = DriverSub.Remark; + newDriverSub.DriverSubPlanId= DriverSub.DriverSubPlanId; + newDriverSub.DriverSubContractorsId = DriverSub.DriverSubContractorsId; + newDriverSub.EvaluationData = DriverSub.EvaluationData; Funs.DB.DriverSub_DriverSub.InsertOnSubmit(newDriverSub); Funs.DB.SubmitChanges(); } @@ -55,6 +68,9 @@ namespace BLL newDriverSub.Instruction = DriverSub.Instruction; newDriverSub.AttachUrl = DriverSub.AttachUrl; newDriverSub.Remark = DriverSub.Remark; + newDriverSub.DriverSubPlanId = DriverSub.DriverSubPlanId; + newDriverSub.DriverSubContractorsId = DriverSub.DriverSubContractorsId; + newDriverSub.EvaluationData = DriverSub.EvaluationData; Funs.DB.SubmitChanges(); } } @@ -76,5 +92,76 @@ namespace BLL Funs.DB.SubmitChanges(); } } + //DriverSubPlanId和DriverSubContractorsId 获取对象的EvaluationData信息,将json数据EvaluationData 转换成List + public static List GetDriverSubEvaluationData(string DriverSubPlanId, + string DriverSubContractorsId) + { + List list = new List(); + Model.DriverSub_DriverSub data = Funs.DB.DriverSub_DriverSub.FirstOrDefault(e => e.DriverSubPlanId == DriverSubPlanId && e.DriverSubContractorsId == DriverSubContractorsId); + if (data != null) + { + list = Newtonsoft.Json.JsonConvert.DeserializeObject>(data.EvaluationData); + } + return list; + } + //将List转换成json数据 + public static string GetDriverSubEvaluationDataJson(List list) + { + return Newtonsoft.Json.JsonConvert.SerializeObject(list); + } + + //DriverSubPlanId和DriverSubContractorsId 删除数据 + public static void DeleteDriverSubEvaluationData(string DriverSubPlanId, string DriverSubContractorsId) + { + Model.DriverSub_DriverSub data = Funs.DB.DriverSub_DriverSub.FirstOrDefault(e => e.DriverSubPlanId == DriverSubPlanId && e.DriverSubContractorsId == DriverSubContractorsId); + if (data != null) + { + data.EvaluationData = ""; + Funs.DB.SubmitChanges(); + } + } + /// + /// 根据DriverSubPlanId删除实体 + /// + /// + public static void DeleteDriverSubByDriverSubPlanId(string DriverSubPlanId) + { + var list = Funs.DB.DriverSub_DriverSub.Where(e => e.DriverSubPlanId == DriverSubPlanId).ToList(); + //先删除对应附件 + foreach (var item in list) + { + if (!string.IsNullOrEmpty(item.DriverSubId)) + { + AttachFileService.DeleteAttachFile(Funs.RootPath, item.DriverSubId, Const.DriverSubMenuId);//删除附件 + } + } + if (list.Count > 0) + { + Funs.DB.DriverSub_DriverSub.DeleteAllOnSubmit(list); + Funs.DB.SubmitChanges(); + } + } + + + /// + /// 获取初始化数据List + /// + /// + public static List GetDriverSubEvaluationData() + { + List list = new List(); + list.Add(new Model.DriverSubEvaluationData() { Number = 1, Matter = "业主人员培训", Grade = "" }); + list.Add(new Model.DriverSubEvaluationData() { Number = 2, Matter = "编制技术方案", Grade = "" }); + list.Add(new Model.DriverSubEvaluationData() { Number = 3, Matter = "预试车", Grade = "" }); + list.Add(new Model.DriverSubEvaluationData() { Number = 4, Matter = "联动试车", Grade = "" }); + list.Add(new Model.DriverSubEvaluationData() { Number = 5, Matter = "投料试车", Grade = "" }); + list.Add(new Model.DriverSubEvaluationData() { Number = 6, Matter = "生产试运行", Grade = "" }); + list.Add(new Model.DriverSubEvaluationData() { Number = 7, Matter = "性能考核", Grade = "" }); + list.Add(new Model.DriverSubEvaluationData() { Number = 8, Matter = "生产安全", Grade = "" }); + list.Add(new Model.DriverSubEvaluationData() { Number = 9, Matter = "试车进度", Grade = "" }); + list.Add(new Model.DriverSubEvaluationData() { Number = 10, Matter = "其他", Grade = "" }); + return list; + } + } } diff --git a/SGGL/FineUIPro.Web/Controls/ChartControl.ascx.cs b/SGGL/FineUIPro.Web/Controls/ChartControl.ascx.cs index 7e797229..8be26a2e 100644 --- a/SGGL/FineUIPro.Web/Controls/ChartControl.ascx.cs +++ b/SGGL/FineUIPro.Web/Controls/ChartControl.ascx.cs @@ -415,6 +415,13 @@ namespace Web.Controls chart1.Series[dataSourceTeam.DataPointName].Label = "#VAL{P}";//设置标签文本 (在设计期通过属性窗口编辑更直观) chart1.Series[dataSourceTeam.DataPointName].IsValueShownAsLabel = true;//显示标签 + if (dataSourceTeam.DataPointName == "Actual Finished(%)") + { + chart1.Series[dataSourceTeam.DataPointName].Color = Color.Red; + } + else { + chart1.Series[dataSourceTeam.DataPointName].Color = Color.Blue; + } foreach (Model.DataSourcePoint dataSourcePoint in dataSourceTeam.DataSourcePoints) { chart1.Series[dataSourceTeam.DataPointName].Points.AddXY(dataSourcePoint.PointText, dataSourcePoint.PointValue); diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index 501ec4bc..479c4756 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -40,225 +40,38 @@ IP地址:::1 错误信息开始=====> -错误类型:HttpException -错误信息:无法使用前导 .. 在顶级目录上退出。 +错误类型:SqlException +错误信息:参数化查询 '(@ProjectId nvarchar(4000))select * from Transfer_Piping C + ' 需要参数 '@ProjectId',但未提供该参数。 错误堆栈: - 在 System.Web.Util.UrlPath.ReduceVirtualPath(String path) - 在 System.Web.Util.UrlPath.ReduceVirtualPath(String path) - 在 System.Web.Util.UrlPath.Reduce(String path) - 在 System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) - 在 System.Web.UI.Control.ResolveUrl(String relativeUrl) - 在 (Control , String ) - 在 FineUIPro.PageContext.ResolveUrl(Control control, String url) - 在 FineUIPro.PanelBase.OuDDulWcfFlgpCeErJpdHtJrWfGE(String ) - 在 (PanelBase , String ) - 在 FineUIPro.Window.GetShowReference(String iframeUrl, String windowTitle, Unit width, Unit height) - 在 (Window , String , String , Unit , Unit ) - 在 FineUIPro.Window.GetShowReference(String iframeUrl, String windowTitle) - 在 (Window , String , String ) - 在 FineUIPro.Window.GetShowReference(String iframeUrl) - 在 FineUIPro.Web.Transfer.PunchlistFrom.btnAttach_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Transfer\PunchlistFrom.aspx.cs:行号 241 - 在 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) -出错时间:02/04/2024 10:05:40 -出错文件:http://localhost:8579/Transfer/PunchlistFrom.aspx -IP地址:::1 -操作人员:JT - -出错时间:02/04/2024 10:05:40 - - -错误信息开始=====> -错误类型:HttpException -错误信息:无法使用前导 .. 在顶级目录上退出。 -错误堆栈: - 在 System.Web.Util.UrlPath.ReduceVirtualPath(String path) - 在 System.Web.Util.UrlPath.ReduceVirtualPath(String path) - 在 System.Web.Util.UrlPath.Reduce(String path) - 在 System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) - 在 System.Web.UI.Control.ResolveUrl(String relativeUrl) - 在 (Control , String ) - 在 FineUIPro.PageContext.ResolveUrl(Control control, String url) - 在 FineUIPro.PanelBase.OuDDulWcfFlgpCeErJpdHtJrWfGE(String ) - 在 (PanelBase , String ) - 在 FineUIPro.Window.GetShowReference(String iframeUrl, String windowTitle, Unit width, Unit height) - 在 (Window , String , String , Unit , Unit ) - 在 FineUIPro.Window.GetShowReference(String iframeUrl, String windowTitle) - 在 (Window , String , String ) - 在 FineUIPro.Window.GetShowReference(String iframeUrl) - 在 FineUIPro.Web.Transfer.PunchlistFrom.btnAttach_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Transfer\PunchlistFrom.aspx.cs:行号 241 - 在 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) -出错时间:02/04/2024 10:05:42 -出错文件:http://localhost:8579/Transfer/PunchlistFrom.aspx -IP地址:::1 -操作人员:JT - -出错时间:02/04/2024 10:05:42 - - -错误信息开始=====> -错误类型:NotSupportedException -错误信息:不支持查询运算符“Last”。 -错误堆栈: - 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) - 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) - 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) - 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) - 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) - 在 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.Last[TSource](IQueryable`1 source) - 在 FineUIPro.Web.Transfer.Chart.PunchlistFromChart.AnalyseData() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Transfer\Chart\PunchlistFromChart.aspx.cs:行号 76 - 在 FineUIPro.Web.Transfer.Chart.PunchlistFromChart.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Transfer\Chart\PunchlistFromChart.aspx.cs:行号 44 + 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) + 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) + 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) + 在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) + 在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() + 在 System.Data.SqlClient.SqlDataReader.get_MetaData() + 在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) + 在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) + 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) + 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) + 在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) + 在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) + 在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) + 在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) + 在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) + 在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) + 在 BLL.SQLHelper.GetDataTableRunText(String strSql, SqlParameter[] parameters) 位置 E:\2023公司项目\五环新\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\SQLHelper.cs:行号 311 + 在 FineUIPro.Web.Transfer.Piping.BindGrid() 位置 E:\2023公司项目\五环新\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Transfer\Piping.aspx.cs:行号 58 + 在 FineUIPro.Web.Transfer.Piping.Page_Load(Object sender, EventArgs e) 位置 E:\2023公司项目\五环新\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Transfer\Piping.aspx.cs:行号 24 在 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) -出错时间:02/04/2024 10:55:41 -出错文件:http://localhost:8579/Transfer/Chart/PunchlistFromChart.aspx +出错时间:02/04/2024 10:42:45 +出错文件:http://localhost:8579/Transfer/Piping.aspx IP地址:::1 操作人员:JT -出错时间:02/04/2024 10:55:41 - - -错误信息开始=====> -错误类型:NotSupportedException -错误信息:不支持查询运算符“Last”。 -错误堆栈: - 在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) - 在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) - 在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) - 在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) - 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) - 在 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.Last[TSource](IQueryable`1 source) - 在 FineUIPro.Web.Transfer.Chart.PunchlistFromChart.AnalyseData() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Transfer\Chart\PunchlistFromChart.aspx.cs:行号 76 - 在 FineUIPro.Web.Transfer.Chart.PunchlistFromChart.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Transfer\Chart\PunchlistFromChart.aspx.cs:行号 44 - 在 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) -出错时间:02/04/2024 10:57:35 -出错文件:http://localhost:8579/Transfer/Chart/PunchlistFromChart.aspx -IP地址:::1 -操作人员:JT - -出错时间:02/04/2024 10:57:35 - - -错误信息开始=====> -错误类型: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:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14204 - 在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2181 -出错时间:02/04/2024 13:14:09 -出错时间:02/04/2024 13:14:09 - - -错误信息开始=====> -错误类型: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:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14228 - 在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2046 -出错时间:02/04/2024 13:14:09 -出错时间:02/04/2024 13:14:09 - - -错误信息开始=====> -错误类型: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:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14220 - 在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1942 -出错时间:02/04/2024 13:14:09 -出错时间:02/04/2024 13:14:09 - - -错误信息开始=====> -错误类型: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:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14020 - 在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1884 -出错时间:02/04/2024 13:14:09 -出错时间:02/04/2024 13:14:09 +出错时间:02/04/2024 10:42:45 diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 7ed3c1b1..a8c27656 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -1758,7 +1758,7 @@ - + @@ -15848,12 +15848,12 @@ DriverSubContactEdit.aspx - - DriverSubContactIn.aspx + + DriverSubContactorIn.aspx ASPXCodeBehind - - DriverSubContactIn.aspx + + DriverSubContactorIn.aspx DriverSubContactorEdit.aspx diff --git a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSub.aspx b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSub.aspx index 0a6852d0..e8cce7e9 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSub.aspx +++ b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSub.aspx @@ -8,95 +8,77 @@ 开车分包管理 -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + diff --git a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSub.aspx.cs b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSub.aspx.cs index 06a09729..7dc98bb4 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSub.aspx.cs +++ b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSub.aspx.cs @@ -26,32 +26,51 @@ namespace FineUIPro.Web.TestRun.DriverSub //加载列表 public void BindGrid() { - string strSql = @"SELECT sub.DriverSubId, - sub.ProjectId, - sub.Code, - sub.SubUnitId, - sub.Implement, - sub.Instruction, - sub.AttachUrl, - sub.Remark, - Unit.UnitName AS SubUnitName" - + @" FROM DriverSub_DriverSub AS sub" - + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = sub.SubUnitId WHERE sub.ProjectId=@projectId"; - List listStr = new List(); - listStr.Add(new SqlParameter("@projectId", this.CurrUser.LoginProjectId)); - if (!string.IsNullOrEmpty(this.drpSubUnitId.SelectedValue) && this.drpSubUnitId.SelectedValue != BLL.Const._Null) - { - strSql += " AND sub.SubUnitId=@subUnitId"; - listStr.Add(new SqlParameter("@subUnitId", this.drpSubUnitId.SelectedValue)); - } - SqlParameter[] parameter = listStr.ToArray(); - DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); - Grid1.RecordCount = tb.Rows.Count; - //tb = GetFilteredTable(Grid1.FilteredData, tb); - var table = this.GetPagedDataTable(Grid1, tb); + var q = from x in Funs.DB.DriverSub_DriverSubContact + where x.ProjectId == this.CurrUser.LoginProjectId + select x.DriverSubPlanId; + var table = from x in Funs.DB.DriverSub_DriverSubPlan + where x.ProjectId == this.CurrUser.LoginProjectId && q.Contains(x.DriverSubPlanId) + select new + { + x.DriverSubPlanId, + x.Code, + x.SubUnitId, + x.Introductions, + x.Achievement, + x.Cooperation, + x.InstallationIds, + x.InstallationNames, + x.AttachUrl, + x.Remark, + x.DriverSubNames, + }; + table = table.Skip(Grid1.PageSize * Grid1.PageIndex).Take(Grid1.PageSize); Grid1.DataSource = table; Grid1.DataBind(); } + + public string GetDriverSubName(object str) + { + string strName = ""; + + if (str != null) + { + string[] strArr = str.ToString().Split(','); + + foreach (string s in strArr) + { + foreach (System.Web.UI.WebControls.ListItem item in DropListService.drpDriverSubNameList()) + { + if (item.Value == s) + { + strName += item.Text + ","; + } + } + } + } + return strName.TrimEnd(','); + } #endregion #region 分页 @@ -125,6 +144,7 @@ namespace FineUIPro.Web.TestRun.DriverSub EditData(); } + /// /// 编辑 /// @@ -135,7 +155,7 @@ namespace FineUIPro.Web.TestRun.DriverSub Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning); return; } - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DriverSubEdit.aspx?id={0}", Grid1.SelectedRowID, "编辑 - "))); + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DriverSubEdit.aspx?DriverSubPlanId={0}", Grid1.SelectedRowID, "编辑 - "))); } #endregion @@ -147,10 +167,10 @@ namespace FineUIPro.Web.TestRun.DriverSub foreach (int rowIndex in Grid1.SelectedRowIndexArray) { string rowID = Grid1.DataKeys[rowIndex][0].ToString(); - var info = BLL.DriverSubService.GetDriverSubById(rowID); + var info = BLL.DriverSubPlanService.GetDriverSubPlanById(rowID); if (info != null) { - BLL.DriverSubService.DeleteDriverSub(rowID); + BLL.DriverSubPlanService.DeleteDriverSubPlanById(rowID); } } BindGrid(); @@ -170,7 +190,7 @@ namespace FineUIPro.Web.TestRun.DriverSub 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/TestRun/DriverSub/DriverSub&menuId={1}", id, BLL.Const.DriverSubMenuId))); + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/TestRun/DriverSub/DriverSubPlan&menuId={1}", id, BLL.Const.DriverSubMenuId))); } } #endregion @@ -184,19 +204,19 @@ namespace FineUIPro.Web.TestRun.DriverSub var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.DriverSubMenuId); if (buttonList.Count() > 0) { - if (buttonList.Contains(BLL.Const.BtnAdd)) - { - this.btnNew.Hidden = false; - } - if (buttonList.Contains(BLL.Const.BtnModify)) - { - this.btnMenuModify.Hidden = false; - this.Grid1.EnableRowDoubleClickEvent = true; - } - if (buttonList.Contains(BLL.Const.BtnDelete)) - { - this.btnMenuDel.Hidden = false; - } + //if (buttonList.Contains(BLL.Const.BtnAdd)) + //{ + // this.btnNew.Hidden = false; + //} + //if (buttonList.Contains(BLL.Const.BtnModify)) + //{ + // this.btnMenuModify.Hidden = false; + // this.Grid1.EnableRowDoubleClickEvent = true; + //} + //if (buttonList.Contains(BLL.Const.BtnDelete)) + //{ + // this.btnMenuDel.Hidden = false; + //} } } #endregion diff --git a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSub.aspx.designer.cs b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSub.aspx.designer.cs index 12cf5104..b78503e9 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSub.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSub.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.TestRun.DriverSub { - - - public partial class DriverSub { - +namespace FineUIPro.Web.TestRun.DriverSub +{ + + + public partial class DriverSub + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// Grid1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// ToolSearch 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar ToolSearch; - + /// /// drpSubUnitId 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpSubUnitId; - + /// /// btnSearch 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSearch; - + /// /// btnNew 控件。 /// @@ -83,7 +85,16 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnNew; - + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label1; + /// /// ToolbarSeparator1 控件。 /// @@ -92,7 +103,7 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -101,7 +112,7 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -110,7 +121,7 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -119,7 +130,7 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// WindowAtt 控件。 /// @@ -128,32 +139,5 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window WindowAtt; - - /// - /// Menu1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Menu Menu1; - - /// - /// btnMenuModify 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnMenuModify; - - /// - /// btnMenuDel 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnMenuDel; } } diff --git a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContact.aspx.cs b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContact.aspx.cs index 32e7e4a7..b820e6dd 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContact.aspx.cs +++ b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContact.aspx.cs @@ -33,6 +33,7 @@ namespace FineUIPro.Web.TestRun.DriverSub where x.ProjectId == this.CurrUser.LoginProjectId && q.Contains(x.DriverSubPlanId) select new { + x.DriverSubPlanId, x.Code, x.SubUnitId, @@ -165,11 +166,9 @@ namespace FineUIPro.Web.TestRun.DriverSub foreach (int rowIndex in Grid1.SelectedRowIndexArray) { string rowID = Grid1.DataKeys[rowIndex][0].ToString(); - var info = BLL.DriverSubContactService.GetDriverSubContactById(rowID); - if (info != null) - { - BLL.DriverSubContactService.DeleteDriverSubContactById(rowID); - } + BLL.DriverSubContactService.DeleteDriverSubContactByDriverSubPlanId(rowID); + BLL.DriverSubService.DeleteDriverSubByDriverSubPlanId(rowID); //删除分包管理打分信息 + } BindGrid(); ShowNotify("删除数据成功!", MessageBoxIcon.Success); diff --git a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactIn.aspx b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactorIn.aspx similarity index 94% rename from SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactIn.aspx rename to SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactorIn.aspx index 22540914..018811e6 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactIn.aspx +++ b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactorIn.aspx @@ -1,4 +1,4 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DriverSubContactIn.aspx.cs" Inherits="FineUIPro.Web.TestRun.DriverSub.DriverSubContactIn" %> +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DriverSubContactorIn.aspx.cs" Inherits="FineUIPro.Web.TestRun.DriverSub.DriverSubContactorIn" %> diff --git a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactIn.aspx.cs b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactorIn.aspx.cs similarity index 99% rename from SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactIn.aspx.cs rename to SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactorIn.aspx.cs index 911eb9cc..3b880ec7 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactIn.aspx.cs +++ b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactorIn.aspx.cs @@ -11,7 +11,7 @@ using System.Web.UI.WebControls; namespace FineUIPro.Web.TestRun.DriverSub { - public partial class DriverSubContactIn : PageBase + public partial class DriverSubContactorIn : PageBase { public string ContractId { diff --git a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactIn.aspx.designer.cs b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactorIn.aspx.designer.cs similarity index 98% rename from SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactIn.aspx.designer.cs rename to SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactorIn.aspx.designer.cs index dd8890a6..77855516 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactIn.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactorIn.aspx.designer.cs @@ -11,7 +11,7 @@ namespace FineUIPro.Web.TestRun.DriverSub { - public partial class DriverSubContactIn + public partial class DriverSubContactorIn { /// diff --git a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactorList.aspx.cs b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactorList.aspx.cs index eb8f1c21..b7908794 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactorList.aspx.cs +++ b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubContactorList.aspx.cs @@ -250,7 +250,7 @@ namespace FineUIPro.Web.TestRun.DriverSub protected void btnImport_Click(object sender, EventArgs e) { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DriverSubContactIn.aspx", "编辑 - "))); + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DriverSubContactorIn.aspx", "编辑 - "))); } #endregion diff --git a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubEdit.aspx b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubEdit.aspx index d79453eb..48294b65 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubEdit.aspx +++ b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubEdit.aspx @@ -4,88 +4,75 @@ - 开车分包管理 + +
- - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubEdit.aspx.cs b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubEdit.aspx.cs index 6db38011..b638f8c8 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubEdit.aspx.cs @@ -1,10 +1,37 @@ using BLL; +using Newtonsoft.Json.Linq; using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; namespace FineUIPro.Web.TestRun.DriverSub { public partial class DriverSubEdit :PageBase { + public string DriverSubPlanId { + get + { + return (string)ViewState["DriverSubPlanId"]; + } + set + { + ViewState["DriverSubPlanId"] = value; + } + } + public string DriverSubId + { + get + { + return (string)ViewState["DriverSubId"]; + } + set + { + ViewState["DriverSubId"] = value; + } + } + + #region 加载 /// /// 页面加载 @@ -15,37 +42,76 @@ namespace FineUIPro.Web.TestRun.DriverSub { if (!IsPostBack) { - BLL.UnitService.InitUnitDownList(this.drpSubUnitId, this.CurrUser.LoginProjectId, true); - this.drpImplement.DataTextField = "Text"; - this.drpImplement.DataValueField = "Value"; - this.drpImplement.DataSource = BLL.DropListService.drpImplementItemList(); - this.drpImplement.DataBind(); - Funs.FineUIPleaseSelect(this.drpImplement); - - string id = Request.Params["id"]; - if (!string.IsNullOrEmpty(id)) + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + DriverSubPlanId = Request.Params["DriverSubPlanId"]; + if (!string.IsNullOrEmpty(DriverSubPlanId)) { - Model.DriverSub_DriverSub data = BLL.DriverSubService.GetDriverSubById(id); - if (data != null) - { - this.hdId.Text = id; - this.txtCode.Text = data.Code; - if (!string.IsNullOrEmpty(data.SubUnitId)) - { - this.drpSubUnitId.SelectedValue = data.SubUnitId; - } - if (!string.IsNullOrEmpty(data.Code)) - { - this.drpImplement.SelectedValue = data.Code; - } - this.txtInstruction.Text = data.Instruction; - this.txtRemark.Text = data.Remark; - } + InitTreeMenu(); } } } #endregion + void InitTreeMenu() + { + this.tvControlItem.Nodes.Clear(); + var subPlanModel= DriverSubPlanService.GetDriverSubPlanById(DriverSubPlanId); + if (subPlanModel != null) + { + foreach (var item in subPlanModel.DriverSubNames.Split(',')) + { + var name = DropListService.drpDriverSubNameList().Where(x => x.Value == item) .First().Text; + FineUIPro.TreeNode node = new FineUIPro.TreeNode(); + node.NodeID = item; + node.Text = name; + node.CommandName = name; + node.Expanded = true; + this.tvControlItem.Nodes.Add(node); + BindNode(node, item); + } + } + } + + void BindNode(TreeNode node,string type ) + { + var SubContractorsList= DriverSubContactService.GetDriverSubContactByDriverSubPlanId(DriverSubPlanId) + .Where(x => x.SubcontractingType == type).Select(x => x.DriverSubContractorsId).ToArray(); + foreach (var item in SubContractorsList) + { + string unitName= BLL.DriversubcontractorsService.GetDriverSub_DriverSubContractorsById(item).SubUnitName; + FineUIPro.TreeNode node1 = new FineUIPro.TreeNode(); + node1.NodeID = item; + node1.Text = unitName; + node1.CommandName = node1.Text; + node1.EnableClickEvent=true; + node.Nodes.Add(node1); + } + } + protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e) + { + var list= BLL.DriverSubService.GetDriverSubEvaluationData(DriverSubPlanId, tvControlItem.SelectedNodeID); + var model= BLL.DriverSubService.GetDriverSubBySubPlanIdAndTractorsId(DriverSubPlanId,tvControlItem.SelectedNodeID); + if (model!=null) + { + DriverSubId = model.DriverSubId; + } + else + { + DriverSubId = ""; + } + if (list.Count>0 ) + { + Grid1.DataSource = list; + Grid1.DataBind(); + } + else + { + Grid1.DataSource = BLL.DriverSubService.GetDriverSubEvaluationData(); + Grid1.DataBind(); + + } + } + #region 附件上传 /// /// 附件上传 @@ -54,11 +120,8 @@ namespace FineUIPro.Web.TestRun.DriverSub /// protected void btnAttach_Click(object sender, EventArgs e) { - if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录 - { - this.hdId.Text = SQLHelper.GetNewID(typeof(Model.DriverSub_DriverSub)); - } - PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/TestRun/DriverSub/DriverSub&menuId={1}", this.hdId.Text, BLL.Const.DriverSubMenuId))); + Save(); + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/TestRun/DriverSub/DriverSub&menuId={1}", DriverSubId, BLL.Const.DriverSubMenuId))); } #endregion @@ -70,65 +133,49 @@ namespace FineUIPro.Web.TestRun.DriverSub /// protected void btnSave_Click(object sender, EventArgs e) { - if (this.drpImplement.SelectedValue==BLL.Const._Null) + + Save(); + tvControlItem_NodeCommand(null,null); + ShowNotify("保存成功!", MessageBoxIcon.Success); + // PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + + void Save() + { + JArray EditorArr = Grid1.GetMergedData(); + //JArray 转换成List + List list = new List(); + foreach (JObject item in EditorArr) { - Alert.ShowInTop("请选择开车分包单位!", MessageBoxIcon.Warning); - return; + Model.DriverSubEvaluationData data = new Model.DriverSubEvaluationData(); + data.Number = Convert.ToInt32(item["values"]["Number"]); + data.Matter = item["values"]["Matter"].ToString(); + data.Grade = item["values"]["Grade"].ToString(); + list.Add(data); } - if (this.drpSubUnitId.SelectedValue == BLL.Const._Null) - { - Alert.ShowInTop("请选择记录/报告/执行情况!", MessageBoxIcon.Warning); - return; - } - string id = Request.Params["id"]; + //list转换成json数据 + string json = BLL.DriverSubService.GetDriverSubEvaluationDataJson(list); Model.DriverSub_DriverSub newData = new Model.DriverSub_DriverSub(); - newData.Code = this.txtCode.Text.Trim(); - if (this.drpSubUnitId.SelectedValue != BLL.Const._Null) - { - newData.SubUnitId = this.drpSubUnitId.SelectedValue; - } - if (this.drpImplement.SelectedValue!=BLL.Const._Null) - { - newData.Implement = this.drpImplement.SelectedItem.Text; - } - newData.Instruction = this.txtInstruction.Text.Trim(); - newData.Remark = this.txtRemark.Text.Trim(); newData.ProjectId = this.CurrUser.LoginProjectId; - if (!string.IsNullOrEmpty(id)) + newData.DriverSubPlanId = DriverSubPlanId; + newData.DriverSubContractorsId = tvControlItem.SelectedNodeID; + newData.EvaluationData = json; + + if (string.IsNullOrEmpty(DriverSubId)) { - newData.DriverSubId = id; - BLL.DriverSubService.UpdateDriverSub(newData); + newData.DriverSubId = SQLHelper.GetNewID(typeof(Model.DriverSub_DriverSub)); + DriverSubId= newData.DriverSubId; + DriverSubService.AddDriverSub(newData); } else { - if (!string.IsNullOrEmpty(this.hdId.Text)) - { - newData.DriverSubId = this.hdId.Text.Trim(); - } - else - { - newData.DriverSubId = SQLHelper.GetNewID(typeof(Model.DriverSub_DriverSub)); - this.hdId.Text = newData.DriverSubId; - } - BLL.DriverSubService.AddDriverSub(newData); + newData.DriverSubId = DriverSubId; + DriverSubService.UpdateDriverSub(newData); } - ShowNotify("保存成功!", MessageBoxIcon.Success); - PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + #endregion - #region DropDownList下拉选择事件 - protected void drpImplement_SelectedIndexChanged(object sender, EventArgs e) - { - if (this.drpImplement.SelectedValue == BLL.Const._Null) - { - this.txtCode.Text = string.Empty; - } - else - { - this.txtCode.Text = this.drpImplement.SelectedValue; - } - } - #endregion } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubEdit.aspx.designer.cs index e2813d6f..ac61e7dc 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/TestRun/DriverSub/DriverSubEdit.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.TestRun.DriverSub { - - - public partial class DriverSubEdit { - +namespace FineUIPro.Web.TestRun.DriverSub +{ + + + public partial class DriverSubEdit + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,142 +31,61 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// - /// SimpleForm1 控件。 + /// Panel1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Form SimpleForm1; - + protected global::FineUIPro.Panel Panel1; + /// - /// Toolbar1 控件。 + /// panelLeftRegion 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Toolbar Toolbar1; - + protected global::FineUIPro.Panel panelLeftRegion; + /// - /// ToolbarFill1 控件。 + /// tvControlItem 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.ToolbarFill ToolbarFill1; - + protected global::FineUIPro.Tree tvControlItem; + /// - /// btnSave 控件。 + /// panelCenterRegion 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Button btnSave; - + protected global::FineUIPro.Panel panelCenterRegion; + /// - /// hdAttachUrl 控件。 + /// Grid1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.HiddenField hdAttachUrl; - + protected global::FineUIPro.Grid Grid1; + /// - /// hdId 控件。 + /// txtGrade 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.HiddenField hdId; - - /// - /// ContentPanel2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel2; - - /// - /// Form2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form Form2; - - /// - /// drpImplement 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpImplement; - - /// - /// txtCode 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtCode; - - /// - /// drpSubUnitId 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpSubUnitId; - - /// - /// txtInstruction 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea txtInstruction; - - /// - /// txtRemark 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea txtRemark; - - /// - /// Panel3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Panel Panel3; - - /// - /// lblAttach 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label lblAttach; - + protected global::FineUIPro.TextBox txtGrade; + /// /// btnAttach 控件。 /// @@ -173,7 +94,34 @@ namespace FineUIPro.Web.TestRun.DriverSub { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnAttach; - + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + /// /// WindowAtt 控件。 /// diff --git a/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx b/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx index fe64043c..fed1ca4d 100644 --- a/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx @@ -20,7 +20,7 @@ - + @@ -28,7 +28,7 @@ - + @@ -36,11 +36,11 @@ - - + --%> <%-- @@ -52,6 +52,9 @@ + + @@ -98,6 +101,11 @@ + + diff --git a/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx.cs index 1a99e158..52903623 100644 --- a/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx.cs @@ -230,7 +230,7 @@ namespace FineUIPro.Web.Transfer.Chart } if (systemBol) { - this.ChartUc.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "PROGRESS REPORT", this.drpChartType.SelectedValue, 1100, 600, false)); + this.ChartUc.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "PROGRESS REPORT", "Column", 1100, 600, false)); } @@ -476,11 +476,33 @@ namespace FineUIPro.Web.Transfer.Chart } if (systemBol) { - this.ChartUc.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "SYSTEM PROGRESS REPORT", this.drpChartType.SelectedValue, 1100, 600, false)); + this.ChartUc.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "SYSTEM PROGRESS REPORT", "Column", 1100, 600, false)); } } } #endregion + + #region 附件上传 + /// + /// 上传附件 + /// + /// + /// + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + //必须点击系统 + var SystemName = this.trRectify.SelectedNodeID; + if (SystemName=="ALL"|| SystemName=="") + { + Alert.ShowInTop("请选择系统。", MessageBoxIcon.Warning); + return; + } + var toKeyId = "D142B96F-4D36-429D-AB08-FA0D7C30BB69" + SystemName; + PageContext.RegisterStartupScript(WindowAtt.GetShowReference + (String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/Trancfer&menuId={1}", + toKeyId, "E6F5125D-DD94-4978-B7EB-D9C26694D86D"))); + } + #endregion } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx.designer.cs index 7669478c..d6ed0495 100644 --- a/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/Chart/Instrumentation.aspx.designer.cs @@ -104,15 +104,6 @@ namespace FineUIPro.Web.Transfer.Chart /// protected global::FineUIPro.DatePicker txtEndTime1; - /// - /// drpChartType 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpChartType; - /// /// BtnAnalyse 控件。 /// @@ -122,6 +113,15 @@ namespace FineUIPro.Web.Transfer.Chart /// protected global::FineUIPro.Button BtnAnalyse; + /// + /// btnAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl; + /// /// Region2 控件。 /// @@ -175,5 +175,14 @@ namespace FineUIPro.Web.Transfer.Chart /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tree trRectify; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; } } diff --git a/SGGL/FineUIPro.Web/Transfer/Chart/TransferChart.aspx b/SGGL/FineUIPro.Web/Transfer/Chart/TransferChart.aspx index 9a83c9cc..5933171b 100644 --- a/SGGL/FineUIPro.Web/Transfer/Chart/TransferChart.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Chart/TransferChart.aspx @@ -19,7 +19,7 @@ - + @@ -43,8 +43,9 @@ --%> - - + + + <%-- diff --git a/SGGL/FineUIPro.Web/Transfer/Chart/TransferChart.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Chart/TransferChart.aspx.cs index 0e62c056..198d4252 100644 --- a/SGGL/FineUIPro.Web/Transfer/Chart/TransferChart.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Chart/TransferChart.aspx.cs @@ -1784,7 +1784,7 @@ namespace FineUIPro.Web.Transfer.Chart } - this.ChartUc.CreateChartBaifenbi(BLL.ChartControlService.GetDataSourceChartByYijiao(dtTime, "PROGRESS REPORT", "Line", 1100, 600, false)); + this.ChartUc.CreateChartBaifenbi(BLL.ChartControlService.GetDataSourceChartByYijiao(dtTime, "PROGRESS REPORT", "Line", 1300, 600, false)); } #endregion } diff --git a/SGGL/FineUIPro.Web/Transfer/Chart/TransferChart.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Chart/TransferChart.aspx.designer.cs index 0576a553..fe4095aa 100644 --- a/SGGL/FineUIPro.Web/Transfer/Chart/TransferChart.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/Chart/TransferChart.aspx.designer.cs @@ -77,6 +77,15 @@ namespace FineUIPro.Web.Transfer.Chart /// protected global::FineUIPro.DatePicker txtStarTime; + /// + /// Label3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label3; + /// /// txtEndTime 控件。 /// diff --git a/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx index e31a2e4d..eae82268 100644 --- a/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx +++ b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx @@ -24,6 +24,8 @@ + + diff --git a/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.cs b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.cs index b9844950..24c855b6 100644 --- a/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.cs @@ -50,6 +50,12 @@ namespace FineUIPro.Web.Transfer strSql += " AND Test_Package_START <= @InspectionDateZ"; listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim())) + { + strSql += " AND SystemName like @SystemName"; + listStr.Add(new SqlParameter("@SystemName", "%" + this.txtSystem.Text.Trim() + "%")); + } + strSql += " order by Civil_Structure "; SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); diff --git a/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.designer.cs index 783a843e..4fbe8adf 100644 --- a/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.designer.cs @@ -68,6 +68,15 @@ namespace FineUIPro.Web.Transfer /// protected global::FineUIPro.TextBox txtCivil_Structure; + /// + /// txtSystem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystem; + /// /// txtStarTime 控件。 /// diff --git a/SGGL/FineUIPro.Web/Transfer/Electrical.aspx b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx index 66d65ca6..22689192 100644 --- a/SGGL/FineUIPro.Web/Transfer/Electrical.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx @@ -24,6 +24,8 @@ + + diff --git a/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.cs index 0c674ca9..12d64925 100644 --- a/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.cs @@ -51,6 +51,12 @@ namespace FineUIPro.Web.Transfer listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim())) + { + strSql += " AND SystemName like @SystemName"; + listStr.Add(new SqlParameter("@SystemName", "%" + this.txtSystem.Text.Trim() + "%")); + } + strSql += " order by ELECTRICAL "; SqlParameter[] parameter = listStr.ToArray(); diff --git a/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.designer.cs index 07ce47f3..da5c48b7 100644 --- a/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.designer.cs @@ -68,6 +68,15 @@ namespace FineUIPro.Web.Transfer /// protected global::FineUIPro.TextBox txtELECTRICAL; + /// + /// txtSystem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystem; + /// /// txtStarTime 控件。 /// diff --git a/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx index c342ea2e..110128f9 100644 --- a/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx @@ -24,6 +24,8 @@ + + diff --git a/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.cs index e31ff404..c18a64d4 100644 --- a/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.cs @@ -50,6 +50,11 @@ namespace FineUIPro.Web.Transfer strSql += " AND Test_Package_START <= @InspectionDateZ"; listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim())) + { + strSql += " AND SystemName like @SystemName"; + listStr.Add(new SqlParameter("@SystemName", "%" + this.txtSystem.Text.Trim() + "%")); + } strSql += " order by Firefighting "; diff --git a/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.designer.cs index f8080d74..fe469cc9 100644 --- a/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.designer.cs @@ -68,6 +68,15 @@ namespace FineUIPro.Web.Transfer /// protected global::FineUIPro.TextBox txtFirefighting; + /// + /// txtSystem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystem; + /// /// txtStarTime 控件。 /// diff --git a/SGGL/FineUIPro.Web/Transfer/HVAC.aspx b/SGGL/FineUIPro.Web/Transfer/HVAC.aspx index 0705d0af..752f6115 100644 --- a/SGGL/FineUIPro.Web/Transfer/HVAC.aspx +++ b/SGGL/FineUIPro.Web/Transfer/HVAC.aspx @@ -25,6 +25,8 @@ + + diff --git a/SGGL/FineUIPro.Web/Transfer/HVAC.aspx.cs b/SGGL/FineUIPro.Web/Transfer/HVAC.aspx.cs index 2c981fe7..eb9cc132 100644 --- a/SGGL/FineUIPro.Web/Transfer/HVAC.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/HVAC.aspx.cs @@ -50,6 +50,12 @@ namespace FineUIPro.Web.Transfer strSql += " AND Test_Package_START <= @InspectionDateZ"; listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim())) + { + strSql += " AND SystemName like @SystemName"; + listStr.Add(new SqlParameter("@SystemName", "%" + this.txtSystem.Text.Trim() + "%")); + } + strSql += " order by HVAC "; SqlParameter[] parameter = listStr.ToArray(); diff --git a/SGGL/FineUIPro.Web/Transfer/HVAC.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/HVAC.aspx.designer.cs index b796f0e3..95a07ad2 100644 --- a/SGGL/FineUIPro.Web/Transfer/HVAC.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/HVAC.aspx.designer.cs @@ -68,6 +68,15 @@ namespace FineUIPro.Web.Transfer /// protected global::FineUIPro.TextBox txtHVAC; + /// + /// txtSystem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystem; + /// /// txtStarTime 控件。 /// diff --git a/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx index ca15bdec..6ce2465d 100644 --- a/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx @@ -24,6 +24,8 @@ + + diff --git a/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.cs index 00eb6ea4..2d7a5239 100644 --- a/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.cs @@ -51,6 +51,12 @@ namespace FineUIPro.Web.Transfer listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim())) + { + strSql += " AND SystemName like @SystemName"; + listStr.Add(new SqlParameter("@SystemName", "%" + this.txtSystem.Text.Trim() + "%")); + } + strSql += " order by INSTRUMENTATION "; SqlParameter[] parameter = listStr.ToArray(); diff --git a/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.designer.cs index e7fd10a4..5272a8ec 100644 --- a/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.designer.cs @@ -68,6 +68,15 @@ namespace FineUIPro.Web.Transfer /// protected global::FineUIPro.TextBox txtINSTRUMENTATION; + /// + /// txtSystem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystem; + /// /// txtStarTime 控件。 /// diff --git a/SGGL/FineUIPro.Web/Transfer/Piping.aspx b/SGGL/FineUIPro.Web/Transfer/Piping.aspx index e0049131..09bf59a1 100644 --- a/SGGL/FineUIPro.Web/Transfer/Piping.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Piping.aspx @@ -24,6 +24,8 @@ + + @@ -63,7 +65,7 @@ HeaderTextAlign="Center" Width="120px"> + HeaderTextAlign="Center" Width="200px"> diff --git a/SGGL/FineUIPro.Web/Transfer/Piping.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Piping.aspx.cs index dc32495c..f1f900ba 100644 --- a/SGGL/FineUIPro.Web/Transfer/Piping.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Piping.aspx.cs @@ -49,6 +49,11 @@ namespace FineUIPro.Web.Transfer strSql += " AND TestPackageSTART <= @InspectionDateZ"; listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim())) + { + strSql += " AND SYSTEM like @SYSTEM"; + listStr.Add(new SqlParameter("@SYSTEM", "%" + this.txtSystem.Text.Trim() + "%")); + } SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); Grid1.RecordCount = tb.Rows.Count; diff --git a/SGGL/FineUIPro.Web/Transfer/Piping.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Piping.aspx.designer.cs index 9ddaec3f..282fb9a7 100644 --- a/SGGL/FineUIPro.Web/Transfer/Piping.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/Piping.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.Transfer { - - - public partial class Piping { - +namespace FineUIPro.Web.Transfer +{ + + + public partial class Piping + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// Grid1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// ToolSearch 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar ToolSearch; - + /// /// txtPIPINGLINENUMBER 控件。 /// @@ -65,7 +67,16 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtPIPINGLINENUMBER; - + + /// + /// txtSystem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystem; + /// /// txtStarTime 控件。 /// @@ -74,7 +85,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtStarTime; - + /// /// Label1 控件。 /// @@ -83,7 +94,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label1; - + /// /// txtEndTime 控件。 /// @@ -92,7 +103,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtEndTime; - + /// /// btnSearch 控件。 /// @@ -101,7 +112,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSearch; - + /// /// btnImport 控件。 /// @@ -110,7 +121,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnImport; - + /// /// lblPageIndex 控件。 /// @@ -119,7 +130,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblPageIndex; - + /// /// g1 控件。 /// @@ -128,7 +139,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupField g1; - + /// /// g2 控件。 /// @@ -137,7 +148,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupField g2; - + /// /// g3 控件。 /// @@ -146,7 +157,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupField g3; - + /// /// g4 控件。 /// @@ -155,7 +166,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupField g4; - + /// /// g5 控件。 /// @@ -164,7 +175,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupField g5; - + /// /// ToolbarText1 控件。 /// @@ -173,7 +184,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -182,7 +193,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -191,7 +202,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Window2 控件。 /// @@ -200,7 +211,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window2; - + /// /// WindowAtt 控件。 /// @@ -209,7 +220,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window WindowAtt; - + /// /// Menu1 控件。 /// @@ -218,7 +229,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnMenuDel 控件。 /// diff --git a/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx b/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx index 5a7dcf8c..08a9ed31 100644 --- a/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx @@ -24,6 +24,8 @@ + + diff --git a/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.cs index f1873d04..cd19d616 100644 --- a/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.cs @@ -51,6 +51,11 @@ namespace FineUIPro.Web.Transfer strSql += " AND Test_Package_START <= @InspectionDateZ"; listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim())) + { + strSql += " AND SystemName like @SystemName"; + listStr.Add(new SqlParameter("@SystemName", "%" + this.txtSystem.Text.Trim() + "%")); + } strSql += " order by Plumbing "; SqlParameter[] parameter = listStr.ToArray(); diff --git a/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.designer.cs index d79c6e0c..ae747e36 100644 --- a/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.designer.cs @@ -68,6 +68,15 @@ namespace FineUIPro.Web.Transfer /// protected global::FineUIPro.TextBox txtPlumbing; + /// + /// txtSystem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystem; + /// /// txtStarTime 控件。 /// diff --git a/SGGL/FineUIPro.Web/Transfer/RotatingEquipment.aspx b/SGGL/FineUIPro.Web/Transfer/RotatingEquipment.aspx index e37b9a0e..661b0b79 100644 --- a/SGGL/FineUIPro.Web/Transfer/RotatingEquipment.aspx +++ b/SGGL/FineUIPro.Web/Transfer/RotatingEquipment.aspx @@ -24,6 +24,8 @@ + + @@ -63,7 +65,7 @@ HeaderTextAlign="Center" Width="120px"> + HeaderTextAlign="Center" Width="200px"> diff --git a/SGGL/FineUIPro.Web/Transfer/RotatingEquipment.aspx.cs b/SGGL/FineUIPro.Web/Transfer/RotatingEquipment.aspx.cs index 806cdd01..62633b6e 100644 --- a/SGGL/FineUIPro.Web/Transfer/RotatingEquipment.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/RotatingEquipment.aspx.cs @@ -49,6 +49,11 @@ namespace FineUIPro.Web.Transfer strSql += " AND TestPackageSTART <= @InspectionDateZ"; listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim())) + { + strSql += " AND SYSTEM like @SYSTEM"; + listStr.Add(new SqlParameter("@SYSTEM", "%" + this.txtSystem.Text.Trim() + "%")); + } SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); Grid1.RecordCount = tb.Rows.Count; diff --git a/SGGL/FineUIPro.Web/Transfer/RotatingEquipment.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/RotatingEquipment.aspx.designer.cs index ca6bd24d..a623f720 100644 --- a/SGGL/FineUIPro.Web/Transfer/RotatingEquipment.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/RotatingEquipment.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.Transfer { - - - public partial class RotatingEquipment { - +namespace FineUIPro.Web.Transfer +{ + + + public partial class RotatingEquipment + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// Grid1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// ToolSearch 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar ToolSearch; - + /// /// txtRotatingEquipment 控件。 /// @@ -65,7 +67,16 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtRotatingEquipment; - + + /// + /// txtSystem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystem; + /// /// txtStarTime 控件。 /// @@ -74,7 +85,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtStarTime; - + /// /// Label1 控件。 /// @@ -83,7 +94,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label1; - + /// /// txtEndTime 控件。 /// @@ -92,7 +103,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtEndTime; - + /// /// btnSearch 控件。 /// @@ -101,7 +112,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSearch; - + /// /// btnImport 控件。 /// @@ -110,7 +121,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnImport; - + /// /// lblPageIndex 控件。 /// @@ -119,7 +130,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblPageIndex; - + /// /// g1 控件。 /// @@ -128,7 +139,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupField g1; - + /// /// g2 控件。 /// @@ -137,7 +148,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupField g2; - + /// /// g3 控件。 /// @@ -146,7 +157,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupField g3; - + /// /// g5 控件。 /// @@ -155,7 +166,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupField g5; - + /// /// ToolbarText1 控件。 /// @@ -164,7 +175,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -173,7 +184,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -182,7 +193,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Window2 控件。 /// @@ -191,7 +202,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window2; - + /// /// WindowAtt 控件。 /// @@ -200,7 +211,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window WindowAtt; - + /// /// Menu1 控件。 /// @@ -209,7 +220,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnMenuDel 控件。 /// diff --git a/SGGL/FineUIPro.Web/Transfer/StaticEquipment.aspx b/SGGL/FineUIPro.Web/Transfer/StaticEquipment.aspx index 3c49f100..df506ba3 100644 --- a/SGGL/FineUIPro.Web/Transfer/StaticEquipment.aspx +++ b/SGGL/FineUIPro.Web/Transfer/StaticEquipment.aspx @@ -24,6 +24,8 @@ + + @@ -63,7 +65,7 @@ HeaderTextAlign="Center" Width="120px"> + HeaderTextAlign="Center" Width="200px"> diff --git a/SGGL/FineUIPro.Web/Transfer/StaticEquipment.aspx.cs b/SGGL/FineUIPro.Web/Transfer/StaticEquipment.aspx.cs index e774e6bc..107c96d2 100644 --- a/SGGL/FineUIPro.Web/Transfer/StaticEquipment.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/StaticEquipment.aspx.cs @@ -49,6 +49,12 @@ namespace FineUIPro.Web.Transfer strSql += " AND TestPackageSTART <= @InspectionDateZ"; listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim())) + { + strSql += " AND SYSTEM like @SYSTEM"; + listStr.Add(new SqlParameter("@SYSTEM", "%" + this.txtSystem.Text.Trim() + "%")); + } + SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); Grid1.RecordCount = tb.Rows.Count; diff --git a/SGGL/FineUIPro.Web/Transfer/StaticEquipment.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/StaticEquipment.aspx.designer.cs index e428de06..5c8b69a6 100644 --- a/SGGL/FineUIPro.Web/Transfer/StaticEquipment.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/StaticEquipment.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.Transfer { - - - public partial class StaticEquipment { - +namespace FineUIPro.Web.Transfer +{ + + + public partial class StaticEquipment + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// Grid1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// ToolSearch 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar ToolSearch; - + /// /// txtStaticEquipment 控件。 /// @@ -65,7 +67,16 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtStaticEquipment; - + + /// + /// txtSystem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystem; + /// /// txtStarTime 控件。 /// @@ -74,7 +85,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtStarTime; - + /// /// Label1 控件。 /// @@ -83,7 +94,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label1; - + /// /// txtEndTime 控件。 /// @@ -92,7 +103,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtEndTime; - + /// /// btnSearch 控件。 /// @@ -101,7 +112,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSearch; - + /// /// btnImport 控件。 /// @@ -110,7 +121,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnImport; - + /// /// lblPageIndex 控件。 /// @@ -119,7 +130,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblPageIndex; - + /// /// g1 控件。 /// @@ -128,7 +139,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupField g1; - + /// /// g2 控件。 /// @@ -137,7 +148,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupField g2; - + /// /// g3 控件。 /// @@ -146,7 +157,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupField g3; - + /// /// g5 控件。 /// @@ -155,7 +166,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupField g5; - + /// /// ToolbarText1 控件。 /// @@ -164,7 +175,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -173,7 +184,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -182,7 +193,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Window2 控件。 /// @@ -191,7 +202,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window2; - + /// /// WindowAtt 控件。 /// @@ -200,7 +211,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window WindowAtt; - + /// /// Menu1 控件。 /// @@ -209,7 +220,7 @@ namespace FineUIPro.Web.Transfer { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnMenuDel 控件。 /// diff --git a/SGGL/FineUIPro.Web/Transfer/Telecom.aspx b/SGGL/FineUIPro.Web/Transfer/Telecom.aspx index 91edfec2..4868ebb4 100644 --- a/SGGL/FineUIPro.Web/Transfer/Telecom.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Telecom.aspx @@ -24,6 +24,8 @@ + + diff --git a/SGGL/FineUIPro.Web/Transfer/Telecom.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Telecom.aspx.cs index 767658f8..2043236e 100644 --- a/SGGL/FineUIPro.Web/Transfer/Telecom.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Telecom.aspx.cs @@ -51,6 +51,11 @@ namespace FineUIPro.Web.Transfer strSql += " AND Test_Package_START <= @InspectionDateZ"; listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim())) + { + strSql += " AND SystemName like @SystemName"; + listStr.Add(new SqlParameter("@SystemName", "%" + this.txtSystem.Text.Trim() + "%")); + } strSql += " order by Telecom "; diff --git a/SGGL/FineUIPro.Web/Transfer/Telecom.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Telecom.aspx.designer.cs index 815afe32..4518bcf3 100644 --- a/SGGL/FineUIPro.Web/Transfer/Telecom.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/Telecom.aspx.designer.cs @@ -68,6 +68,15 @@ namespace FineUIPro.Web.Transfer /// protected global::FineUIPro.TextBox txtTelecom; + /// + /// txtSystem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSystem; + /// /// txtStarTime 控件。 /// diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index a9281128..28352979 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -128540,6 +128540,12 @@ namespace Model private string _Remark; + private string _DriverSubPlanId; + + private string _DriverSubContractorsId; + + private string _EvaluationData; + private EntityRef _Base_Project; private EntityRef _Base_Unit; @@ -128564,6 +128570,12 @@ namespace Model partial void OnAttachUrlChanged(); partial void OnRemarkChanging(string value); partial void OnRemarkChanged(); + partial void OnDriverSubPlanIdChanging(string value); + partial void OnDriverSubPlanIdChanged(); + partial void OnDriverSubContractorsIdChanging(string value); + partial void OnDriverSubContractorsIdChanged(); + partial void OnEvaluationDataChanging(string value); + partial void OnEvaluationDataChanged(); #endregion public DriverSub_DriverSub() @@ -128741,6 +128753,66 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DriverSubPlanId", DbType="NVarChar(50)")] + public string DriverSubPlanId + { + get + { + return this._DriverSubPlanId; + } + set + { + if ((this._DriverSubPlanId != value)) + { + this.OnDriverSubPlanIdChanging(value); + this.SendPropertyChanging(); + this._DriverSubPlanId = value; + this.SendPropertyChanged("DriverSubPlanId"); + this.OnDriverSubPlanIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DriverSubContractorsId", DbType="NVarChar(50)")] + public string DriverSubContractorsId + { + get + { + return this._DriverSubContractorsId; + } + set + { + if ((this._DriverSubContractorsId != value)) + { + this.OnDriverSubContractorsIdChanging(value); + this.SendPropertyChanging(); + this._DriverSubContractorsId = value; + this.SendPropertyChanged("DriverSubContractorsId"); + this.OnDriverSubContractorsIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EvaluationData", DbType="NVarChar(2000)")] + public string EvaluationData + { + get + { + return this._EvaluationData; + } + set + { + if ((this._EvaluationData != value)) + { + this.OnEvaluationDataChanging(value); + this.SendPropertyChanging(); + this._EvaluationData = value; + this.SendPropertyChanged("EvaluationData"); + this.OnEvaluationDataChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_DriverSub_DriverSub_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project { diff --git a/SGGL/Model/Model.csproj b/SGGL/Model/Model.csproj index eca26ace..91949a57 100644 --- a/SGGL/Model/Model.csproj +++ b/SGGL/Model/Model.csproj @@ -218,12 +218,14 @@ + +