This commit is contained in:
高飞 2022-12-27 09:10:21 +08:00
commit bb7bdee235
9 changed files with 263 additions and 215 deletions

View File

@ -1,183 +1,192 @@
错误信息开始=====> 错误信息开始=====>
错误类型:JsonReaderException 错误类型:IndexOutOfRangeException
错误信息:Unexpected character encountered while parsing value: 未. Path '', line 0, position 0. 错误信息:无法找到列 WeldJointNum。
错误堆栈: 错误堆栈:
在 Newtonsoft.Json.JsonTextReader.ParseValue() 在 System.Data.DataTable.ParseSortString(String sortString)
在 Newtonsoft.Json.JsonTextReader.Read() 在 System.Data.DataView.CheckSort(String sort)
在 Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) 在 System.Data.DataView.set_Sort(String value)
在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) 在 FineUIPro.Web.PageBase.GetPagedDataTable(Grid Grid1, DataTable tb) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\common\PageBase.cs:行号 497
在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) 在 FineUIPro.Web.WeldingProcess.WeldingManage.WeldReportEdit.BindGrid(List`1 weldingDailyItem) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\HJGL\WeldingManage\WeldReportEdit.aspx.cs:行号 246
在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) 在 FineUIPro.Web.WeldingProcess.WeldingManage.WeldReportEdit.Page_Load(Object sender, EventArgs e) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\HJGL\WeldingManage\WeldReportEdit.aspx.cs:行号 68
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
在 BLL.WeatherService.GetWeather(String projectId) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\Common\WeatherService.cs:行号 90
出错时间:12/25/2022 14:32:07
出错时间:12/25/2022 14:32:07
错误信息开始=====>
错误类型:JsonReaderException
错误信息:Unexpected character encountered while parsing value: 未. Path '', line 0, position 0.
错误堆栈:
在 Newtonsoft.Json.JsonTextReader.ParseValue()
在 Newtonsoft.Json.JsonTextReader.Read()
在 Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
在 BLL.WeatherService.GetWeather(String projectId) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\Common\WeatherService.cs:行号 90
出错时间:12/25/2022 14:32:37
出错时间:12/25/2022 14:32:37
错误信息开始=====>
错误类型:SqlException
错误信息:传递给 LEFT 或 SUBSTRING 函数的长度参数无效。
错误堆栈:
在 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.TryHasMoreRows(Boolean& moreRows)
在 System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more)
在 System.Data.SqlClient.SqlDataReader.Read()
在 System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping)
在 System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue)
在 System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
在 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:\赛鼎\SGGL_SeDin_New\SGGL\BLL\SQLHelper.cs:行号 312
在 FineUIPro.Web.HJGL.WPQ.WPQList.BindGrid() 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\HJGL\WPQ\WPQList.aspx.cs:行号 43
在 FineUIPro.Web.HJGL.WPQ.WPQList.Page_Load(Object sender, EventArgs e) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\HJGL\WPQ\WPQList.aspx.cs:行号 25
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e) 在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e) 在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive() 在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:12/25/2022 14:32:54 出错时间:12/26/2022 17:13:10
出错文件:http://localhost:4909/HJGL/WPQ/WPQList.aspx 出错文件:http://localhost:4909/HJGL/WeldingManage/WeldReportEdit.aspx?WeldingDailyId=7a2cf1c3-6253-4705-b2ed-208af534369b
IP地址:::1 IP地址:::1
操作人员:JT 操作人员:李嘉威
出错时间:12/25/2022 14:32:54 出错时间:12/26/2022 17:13:10
错误信息开始=====> 错误信息开始=====>
错误类型:JsonReaderException 错误类型:SqlException
错误信息:Unexpected character encountered while parsing value: 未. Path '', line 0, position 0. 错误信息:列名 'WeldJointNum' 无效。
错误堆栈: 错误堆栈:
在 Newtonsoft.Json.JsonTextReader.ParseValue() 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 Newtonsoft.Json.JsonTextReader.Read() 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) 在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) 在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) 在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) 在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value) 在 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)
在 BLL.WeatherService.GetWeather(String projectId) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\Common\WeatherService.cs:行号 90 在 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)
出错时间:12/25/2022 14:40:09 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
出错时间:12/25/2022 14:40:09 在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
在 System.Data.Common.DbCommand.ExecuteReader()
在 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.FirstOrDefault[TSource](IQueryable`1 source, Expression`1 predicate)
在 FineUIPro.Web.WeldingProcess.WeldingManage.WeldReportEdit.BindGrid(List`1 weldingDailyItem) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\HJGL\WeldingManage\WeldReportEdit.aspx.cs:行号 209
在 FineUIPro.Web.WeldingProcess.WeldingManage.WeldReportEdit.Page_Load(Object sender, EventArgs e) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\HJGL\WeldingManage\WeldReportEdit.aspx.cs:行号 68
在 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)
出错时间:12/26/2022 17:20:43
出错文件:http://localhost:4909/HJGL/WeldingManage/WeldReportEdit.aspx?WeldingDailyId=b58f14b3-6886-4b85-9d5e-cd7fec8c25b0
IP地址:::1
操作人员:李嘉威
出错时间:12/26/2022 17:20:43
错误信息开始=====> 错误信息开始=====>
错误类型:JsonReaderException 错误类型:SqlException
错误信息:Unexpected character encountered while parsing value: 未. Path '', line 0, position 0. 错误信息:列名 'WeldJointNum' 无效。
错误堆栈: 错误堆栈:
在 Newtonsoft.Json.JsonTextReader.ParseValue() 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 Newtonsoft.Json.JsonTextReader.Read() 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) 在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) 在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) 在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) 在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value) 在 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)
在 BLL.WeatherService.GetWeather(String projectId) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\Common\WeatherService.cs:行号 90 在 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)
出错时间:12/25/2022 15:01:43 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
出错时间:12/25/2022 15:01:43 在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
在 System.Data.Common.DbCommand.ExecuteReader()
在 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.FirstOrDefault[TSource](IQueryable`1 source, Expression`1 predicate)
在 FineUIPro.Web.WeldingProcess.WeldingManage.WeldReportEdit.BindGrid(List`1 weldingDailyItem) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\HJGL\WeldingManage\WeldReportEdit.aspx.cs:行号 209
在 FineUIPro.Web.WeldingProcess.WeldingManage.WeldReportEdit.Page_Load(Object sender, EventArgs e) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\HJGL\WeldingManage\WeldReportEdit.aspx.cs:行号 68
在 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)
出错时间:12/26/2022 17:23:11
出错文件:http://localhost:4909/HJGL/WeldingManage/WeldReportEdit.aspx?WeldingDailyId=7a2cf1c3-6253-4705-b2ed-208af534369b
IP地址:::1
操作人员:李嘉威
System.InvalidOperationException: 可为空的对象必须具有一个值。 出错时间:12/26/2022 17:23:11
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
错误信息开始=====>
错误类型:JsonReaderException
错误信息:Unexpected character encountered while parsing value: 未. Path '', line 0, position 0.
错误堆栈:
在 Newtonsoft.Json.JsonTextReader.ParseValue()
在 Newtonsoft.Json.JsonTextReader.Read()
在 Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
在 BLL.WeatherService.GetWeather(String projectId) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\Common\WeatherService.cs:行号 90
出错时间:12/25/2022 15:22:19
出错时间:12/25/2022 15:22:19
错误信息开始=====> 错误信息开始=====>
错误类型:JsonReaderException 错误类型:SqlException
错误信息:Unexpected character encountered while parsing value: 未. Path '', line 0, position 0. 错误信息:列名 'WeldJointNum' 无效。
错误堆栈: 错误堆栈:
在 Newtonsoft.Json.JsonTextReader.ParseValue() 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 Newtonsoft.Json.JsonTextReader.Read() 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) 在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) 在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) 在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) 在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value) 在 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)
在 BLL.WeatherService.GetWeather(String projectId) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\Common\WeatherService.cs:行号 90 在 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)
出错时间:12/25/2022 15:55:30 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
出错时间:12/25/2022 15:55:30 在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
在 System.Data.Common.DbCommand.ExecuteReader()
在 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.FirstOrDefault[TSource](IQueryable`1 source, Expression`1 predicate)
在 FineUIPro.Web.WeldingProcess.WeldingManage.WeldReportEdit.BindGrid(List`1 weldingDailyItem) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\HJGL\WeldingManage\WeldReportEdit.aspx.cs:行号 209
在 FineUIPro.Web.WeldingProcess.WeldingManage.WeldReportEdit.Page_Load(Object sender, EventArgs e) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\HJGL\WeldingManage\WeldReportEdit.aspx.cs:行号 68
在 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)
出错时间:12/26/2022 17:33:50
出错文件:http://localhost:4909/HJGL/WeldingManage/WeldReportEdit.aspx?WeldingDailyId=7a2cf1c3-6253-4705-b2ed-208af534369b
IP地址:::1
操作人员:李嘉威
出错时间:12/26/2022 17:33:50
错误信息开始=====>
错误类型:ArgumentNullException
错误信息:值不能为 null。
参数名: source
错误堆栈:
在 System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
在 FineUIPro.Web.HJGL.WeldingManage.SelectTaskWeldJoint.InitTreeMenu() 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\HJGL\WeldingManage\SelectTaskWeldJoint.aspx.cs:行号 180
在 FineUIPro.Web.HJGL.WeldingManage.SelectTaskWeldJoint.Page_Load(Object sender, EventArgs e) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\HJGL\WeldingManage\SelectTaskWeldJoint.aspx.cs:行号 158
在 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)
出错时间:12/26/2022 21:31:26
出错文件:http://localhost:4909/HJGL/WeldingManage/SelectTaskWeldJoint.aspx?strList=476d4c23-155c-47c4-9cf8-8158034b0a1d%7C1af885ff-b778-46c6-a13d-a21b304ac835%7C2022-12-01
IP地址:::1
操作人员:李嘉威
出错时间:12/26/2022 21:31:26
错误信息开始=====>
错误类型:ArgumentNullException
错误信息:值不能为 null。
参数名: source
错误堆栈:
在 System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
在 FineUIPro.Web.HJGL.PreDesign.PrePipeline.InitTreeMenu() 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\HJGL\PreDesign\PrePipeline.aspx.cs:行号 84
在 FineUIPro.Web.HJGL.PreDesign.PrePipeline.Page_Load(Object sender, EventArgs e) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\FineUIPro.Web\HJGL\PreDesign\PrePipeline.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)
出错时间:12/26/2022 22:15:59
出错文件:http://localhost:4909/HJGL/PreDesign/PrePipeline.aspx
IP地址:::1
操作人员:李嘉威
出错时间:12/26/2022 22:15:59
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 System.Nullable`1.get_Value()
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 System.Nullable`1.get_Value()
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 System.Nullable`1.get_Value()
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284
System.InvalidOperationException: 可为空的对象必须具有一个值。
在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
在 System.Nullable`1.get_Value()
在 BLL.HJGL_MaterialService.isInStockByPipeline(String pipelineid, String projectid) 位置 E:\赛鼎\SGGL_SeDin_New\SGGL\BLL\HJGL\PreDesign\HJGL_MaterialService.cs:行号 284

View File

@ -145,22 +145,25 @@ namespace FineUIPro.Web.HJGL.InfoQuery
{ {
foreach (var q in unitWork1) foreach (var q in unitWork1)
{ {
int a = (from x in PipelineService.hJGL_Pipelines where x.UnitWorkId == q.UnitWorkId select x).Count(); if (q != null)
var u = BLL.UnitService.GetUnitByUnitId(q.UnitId);
TreeNode tn1 = new TreeNode();
tn1.NodeID = q.UnitWorkId;
tn1.Text = q.UnitWorkName + "【" + a.ToString() + "】" + "管线";
tn1.ToolTip = "施工单位:" + u.UnitName;
tn1.CommandName = "单位工程";
tn1.EnableExpandEvent = true;
rootNode1.Nodes.Add(tn1);
if (a > 0)
{ {
// BindNodes(tn1); int a = (from x in PipelineService.hJGL_Pipelines where x.UnitWorkId == q.UnitWorkId select x).Count();
TreeNode newNode = new TreeNode(); var u = BLL.UnitService.GetUnitByUnitId(q.UnitId);
newNode.Text = "加载管线..."; TreeNode tn1 = new TreeNode();
newNode.NodeID = "加载管线..."; tn1.NodeID = q.UnitWorkId;
tn1.Nodes.Add(newNode); tn1.Text = q.UnitWorkName + "【" + a.ToString() + "】" + "管线";
tn1.ToolTip = "施工单位:" + u.UnitName;
tn1.CommandName = "单位工程";
tn1.EnableExpandEvent = true;
rootNode1.Nodes.Add(tn1);
if (a > 0)
{
// BindNodes(tn1);
TreeNode newNode = new TreeNode();
newNode.Text = "加载管线...";
newNode.NodeID = "加载管线...";
tn1.Nodes.Add(newNode);
}
} }
} }
} }

View File

@ -65,7 +65,7 @@
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="焊口信息" <f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="焊口信息"
EnableCollapse="true" KeepCurrentSelection="true" runat="server" BoxFlex="1" OnRowDataBound="Grid1_RowDataBound" DisableUnselectableRows="true" EnableCollapse="true" KeepCurrentSelection="true" runat="server" BoxFlex="1" OnRowDataBound="Grid1_RowDataBound" DisableUnselectableRows="true"
DataKeyNames="WeldJointId" AllowColumnLocking="true" EnableColumnLines="true" DataKeyNames="WeldJointId" AllowColumnLocking="true" EnableColumnLines="true"
DataIDField="WeldJointId" EnableTextSelection="True" AllowSorting="true" SortField="WeldJointCode" DataIDField="WeldJointId" EnableTextSelection="True" AllowSorting="true" SortField="WeldJointNum"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="false" IsDatabasePaging="true" SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="false" IsDatabasePaging="true"
PageSize="1000" EnableCheckBoxSelect="true"> PageSize="1000" EnableCheckBoxSelect="true">
<Toolbars> <Toolbars>
@ -102,9 +102,11 @@
</Items> </Items>
</f:Toolbar> </f:Toolbar>
</Toolbars> </Toolbars>
<Columns> <Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="焊口序号" <f:RenderField HeaderText="焊口序号" ColumnID="WeldJointNum"
Width="80px" HeaderTextAlign="Center" TextAlign="Center"/> DataField="WeldJointNum" SortField="WeldJointNum" FieldType="String" HeaderTextAlign="Center"
TextAlign="Left" Width="90px" Locked="true">
</f:RenderField>
<f:RenderField HeaderText="焊口号" ColumnID="WeldJointCode" <f:RenderField HeaderText="焊口号" ColumnID="WeldJointCode"
DataField="WeldJointCode" SortField="WeldJointCode" FieldType="String" HeaderTextAlign="Center" DataField="WeldJointCode" SortField="WeldJointCode" FieldType="String" HeaderTextAlign="Center"
TextAlign="Left" Width="140px" Locked="true"> TextAlign="Left" Width="140px" Locked="true">

View File

@ -642,7 +642,5 @@ namespace FineUIPro.Web.HJGL.WeldingManage
}; };
} }
} }
} }

View File

@ -7,13 +7,11 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace FineUIPro.Web.HJGL.WeldingManage namespace FineUIPro.Web.HJGL.WeldingManage {
{
public partial class SelectTaskWeldJoint {
public partial class SelectTaskWeldJoint
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
/// </summary> /// </summary>
@ -22,7 +20,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1; protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary> /// <summary>
/// PageManager1 控件。 /// PageManager1 控件。
/// </summary> /// </summary>
@ -31,7 +29,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.PageManager PageManager1; protected global::FineUIPro.PageManager PageManager1;
/// <summary> /// <summary>
/// Panel1 控件。 /// Panel1 控件。
/// </summary> /// </summary>
@ -40,7 +38,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Panel Panel1; protected global::FineUIPro.Panel Panel1;
/// <summary> /// <summary>
/// panelLeftRegion 控件。 /// panelLeftRegion 控件。
/// </summary> /// </summary>
@ -49,7 +47,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Panel panelLeftRegion; protected global::FineUIPro.Panel panelLeftRegion;
/// <summary> /// <summary>
/// Toolbar2 控件。 /// Toolbar2 控件。
/// </summary> /// </summary>
@ -58,7 +56,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Toolbar Toolbar2; protected global::FineUIPro.Toolbar Toolbar2;
/// <summary> /// <summary>
/// txtPipelineCode 控件。 /// txtPipelineCode 控件。
/// </summary> /// </summary>
@ -67,7 +65,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.TextBox txtPipelineCode; protected global::FineUIPro.TextBox txtPipelineCode;
/// <summary> /// <summary>
/// btnQuery 控件。 /// btnQuery 控件。
/// </summary> /// </summary>
@ -76,7 +74,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Button btnQuery; protected global::FineUIPro.Button btnQuery;
/// <summary> /// <summary>
/// tvControlItem 控件。 /// tvControlItem 控件。
/// </summary> /// </summary>
@ -85,7 +83,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Tree tvControlItem; protected global::FineUIPro.Tree tvControlItem;
/// <summary> /// <summary>
/// panelCenterRegion 控件。 /// panelCenterRegion 控件。
/// </summary> /// </summary>
@ -94,7 +92,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Panel panelCenterRegion; protected global::FineUIPro.Panel panelCenterRegion;
/// <summary> /// <summary>
/// Toolbar3 控件。 /// Toolbar3 控件。
/// </summary> /// </summary>
@ -103,7 +101,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Toolbar Toolbar3; protected global::FineUIPro.Toolbar Toolbar3;
/// <summary> /// <summary>
/// drpJointAttribute 控件。 /// drpJointAttribute 控件。
/// </summary> /// </summary>
@ -112,7 +110,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList drpJointAttribute; protected global::FineUIPro.DropDownList drpJointAttribute;
/// <summary> /// <summary>
/// drpWeldTypeCode 控件。 /// drpWeldTypeCode 控件。
/// </summary> /// </summary>
@ -121,7 +119,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList drpWeldTypeCode; protected global::FineUIPro.DropDownList drpWeldTypeCode;
/// <summary> /// <summary>
/// Grid1 控件。 /// Grid1 控件。
/// </summary> /// </summary>
@ -130,7 +128,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Grid Grid1; protected global::FineUIPro.Grid Grid1;
/// <summary> /// <summary>
/// Toolbar1 控件。 /// Toolbar1 控件。
/// </summary> /// </summary>
@ -139,7 +137,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Toolbar Toolbar1; protected global::FineUIPro.Toolbar Toolbar1;
/// <summary> /// <summary>
/// drpWeldingLocation 控件。 /// drpWeldingLocation 控件。
/// </summary> /// </summary>
@ -148,7 +146,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList drpWeldingLocation; protected global::FineUIPro.DropDownList drpWeldingLocation;
/// <summary> /// <summary>
/// txtTaskDate 控件。 /// txtTaskDate 控件。
/// </summary> /// </summary>
@ -157,7 +155,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DatePicker txtTaskDate; protected global::FineUIPro.DatePicker txtTaskDate;
/// <summary> /// <summary>
/// txtTaskCode 控件。 /// txtTaskCode 控件。
/// </summary> /// </summary>
@ -166,7 +164,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.TextBox txtTaskCode; protected global::FineUIPro.TextBox txtTaskCode;
/// <summary> /// <summary>
/// txtUnitName 控件。 /// txtUnitName 控件。
/// </summary> /// </summary>
@ -175,7 +173,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.TextBox txtUnitName; protected global::FineUIPro.TextBox txtUnitName;
/// <summary> /// <summary>
/// txtUnitWorkName 控件。 /// txtUnitWorkName 控件。
/// </summary> /// </summary>
@ -184,7 +182,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.TextBox txtUnitWorkName; protected global::FineUIPro.TextBox txtUnitWorkName;
/// <summary> /// <summary>
/// drpWeldingMode 控件。 /// drpWeldingMode 控件。
/// </summary> /// </summary>
@ -193,7 +191,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList drpWeldingMode; protected global::FineUIPro.DropDownList drpWeldingMode;
/// <summary> /// <summary>
/// ToolbarFill1 控件。 /// ToolbarFill1 控件。
/// </summary> /// </summary>
@ -202,7 +200,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1; protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary> /// <summary>
/// btnSave 控件。 /// btnSave 控件。
/// </summary> /// </summary>
@ -211,7 +209,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Button btnSave; protected global::FineUIPro.Button btnSave;
/// <summary> /// <summary>
/// btnAccept 控件。 /// btnAccept 控件。
/// </summary> /// </summary>

View File

@ -88,12 +88,14 @@
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="焊接日报" <f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="焊接日报"
EnableCollapse="true" runat="server" BoxFlex="1" DataKeyNames="WeldTaskId,WeldJointId" EnableColumnLines="true" ForceFit="true" EnableCollapse="true" runat="server" BoxFlex="1" DataKeyNames="WeldTaskId,WeldJointId" EnableColumnLines="true" ForceFit="true"
AllowCellEditing="true" ClicksToEdit="1" DataIDField="WeldTaskId" AllowSorting="true" KeepCurrentSelection="true" AllowCellEditing="true" ClicksToEdit="1" DataIDField="WeldTaskId" AllowSorting="true" KeepCurrentSelection="true"
SortField="PipelineCode,WeldJointCode" SortDirection="ASC" OnSort="Grid1_Sort" EnableCheckBoxSelect="true" SortField="WeldJointNum" SortDirection="ASC" OnSort="Grid1_Sort" EnableCheckBoxSelect="true"
AllowPaging="false" IsDatabasePaging="true" PageSize="10000" EnableTextSelection="True"> AllowPaging="false" IsDatabasePaging="true" PageSize="10000" EnableTextSelection="True">
<Columns> <Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="焊口序号" <f:RenderField HeaderText="焊口序号" ColumnID="WeldJointNum"
Width="80px" HeaderTextAlign="Center" TextAlign="Center" /> DataField="WeldJointNum" SortField="WeldJointNum" FieldType="String" HeaderTextAlign="Center"
TextAlign="Left" Width="140px">
</f:RenderField>
<f:RenderField HeaderText="管线号" ColumnID="PipelineCode" <f:RenderField HeaderText="管线号" ColumnID="PipelineCode"
DataField="PipelineCode" SortField="PipelineCode" FieldType="String" HeaderTextAlign="Center" DataField="PipelineCode" SortField="PipelineCode" FieldType="String" HeaderTextAlign="Center"
TextAlign="Left" Width="180px" ExpandUnusedSpace="true"> TextAlign="Left" Width="180px" ExpandUnusedSpace="true">

View File

@ -63,13 +63,16 @@
</f:Button> </f:Button>
<f:DropDownList ID="drpCanWelder" EnableEdit="true" runat="server" LabelWidth="140px"> <f:DropDownList ID="drpCanWelder" EnableEdit="true" runat="server" LabelWidth="140px">
</f:DropDownList> </f:DropDownList>
<f:Button ID="btnSaveWelder" Icon="Accept" runat="server" Text="确认" OnClick="btnSaveWelder_Click"> <f:Button ID="btnSaveWelder" Icon="Accept" runat="server" Text="确认" OnClick="btnSaveWelder_Click"> </f:Button>
<f:TextBox ID="txtPipelineCode" runat="server" Label="管线号" EmptyText="输入查询条件" LabelAlign="Right"></f:TextBox>
<f:Button runat="server" ID="btnSearch" Icon="SystemSearch" ToolTip="查询" Text="查询" OnClick="btnSearch_Click">
</f:Button> </f:Button>
<f:ToolbarFill runat="server"></f:ToolbarFill> <f:ToolbarFill runat="server"></f:ToolbarFill>
<f:DatePicker ID="txtTaskDate" Label="计划焊接日期" runat="server" <f:DatePicker ID="txtTaskDate" Label="计划焊接日期" runat="server"
DateFormatString="yyyy-MM-dd" LabelAlign="Left" LabelWidth="110px" Hidden="true"> DateFormatString="yyyy-MM-dd" LabelAlign="Left" LabelWidth="110px" Hidden="true">
</f:DatePicker> </f:DatePicker>
<f:Button runat="server" ID="ckSelect" Icon="Find" ToolTip="查找" Text="查找" OnClick="ckSelect_Click" Hidden="true"> <f:Button runat="server" ID="ckSelect" Icon="Find" ToolTip="查找" Text="查找" OnClick="ckSelect_Click" Hidden="true">
</f:Button> </f:Button>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" OnClick="btnSave_Click"> <f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" OnClick="btnSave_Click">
</f:Button> </f:Button>

View File

@ -178,8 +178,12 @@ namespace FineUIPro.Web.HJGL.WeldingManage
private void BindGrid(List<Model.View_HJGL_WeldingTask> weldingTask) private void BindGrid(List<Model.View_HJGL_WeldingTask> weldingTask)
{ {
if (!string.IsNullOrEmpty(this.txtPipelineCode.Text.Trim()))
{
weldingTask = weldingTask.Where(e => e.PipelineCode.Contains(this.txtPipelineCode.Text.Trim())).ToList();
}
DataTable tb = this.LINQToDataTable(weldingTask); DataTable tb = this.LINQToDataTable(weldingTask);
// 2.获取当前分页数据 // 2.获取当前分页数据
//var table = this.GetPagedDataTable(GridNewDynamic, tb1); //var table = this.GetPagedDataTable(GridNewDynamic, tb1);
Grid1.RecordCount = tb.Rows.Count; Grid1.RecordCount = tb.Rows.Count;
@ -1058,5 +1062,16 @@ namespace FineUIPro.Web.HJGL.WeldingManage
} }
} }
#endregion #endregion
protected void btnSearch_Click(object sender, EventArgs e)
{
//List<Model.View_HJGL_WeldingTask> GetWeldingTaskItem = this.CollectGridJointInfo();
DateTime? taskTime = Funs.GetNewDateTime(tvControlItem.SelectedNodeID.Split('|')[1]);
if (taskTime != null)
{
List<Model.View_HJGL_WeldingTask> GetWeldingTaskList = BLL.WeldTaskService.GetWeldingTaskList(this.CurrUser.LoginProjectId, tvControlItem.SelectedNode.ParentNode.NodeID, Convert.ToDateTime(taskTime));
this.BindGrid(GetWeldingTaskList);
}
}
} }
} }

View File

@ -156,6 +156,24 @@ namespace FineUIPro.Web.HJGL.WeldingManage {
/// </remarks> /// </remarks>
protected global::FineUIPro.Button btnSaveWelder; protected global::FineUIPro.Button btnSaveWelder;
/// <summary>
/// txtPipelineCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPipelineCode;
/// <summary>
/// btnSearch 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSearch;
/// <summary> /// <summary>
/// txtTaskDate 控件。 /// txtTaskDate 控件。
/// </summary> /// </summary>