From 1250524b7e6ccd911519c665658d80f64d2b4ebb Mon Sep 17 00:00:00 2001 From: "408182087@qq.com" <408182087@qq.com> Date: Sun, 25 Dec 2022 15:59:59 +0800 Subject: [PATCH] =?UTF-8?q?20221225=20=E6=9D=A1=E4=BB=B6=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/FineUIPro.Web/ErrLog.txt | 183 ++++++++++++++++++ .../WeldingManage/SelectTaskWeldJoint.aspx | 2 + .../HJGL/WeldingManage/WeldReport.aspx | 7 +- .../HJGL/WeldingManage/WeldReport.aspx.cs | 22 ++- .../WeldingManage/WeldReport.aspx.designer.cs | 87 ++++++--- .../HJGL/WeldingManage/WeldReportEdit.aspx | 7 +- .../HJGL/WeldingManage/WeldReportEdit.aspx.cs | 8 + .../WeldReportEdit.aspx.designer.cs | 65 ++++--- 8 files changed, 316 insertions(+), 65 deletions(-) diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index e69de29b..f97cb1c0 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -0,0 +1,183 @@ + +错误信息开始=====> +错误类型: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: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.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/25/2022 14:32:54 +出错文件:http://localhost:4909/HJGL/WPQ/WPQList.aspx +IP地址:::1 +操作人员:JT + +出错时间:12/25/2022 14:32:54 + + +错误信息开始=====> +错误类型: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:40:09 +出错时间:12/25/2022 14:40:09 + + +错误信息开始=====> +错误类型: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:01:43 +出错时间:12/25/2022 15:01:43 + +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 +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 +错误信息: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:55:30 +出错时间:12/25/2022 15:55:30 + diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx b/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx index af1bc7ae..f49bb157 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx @@ -103,6 +103,8 @@ + diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx index e14ef9a0..aca8d337 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx @@ -82,7 +82,12 @@ - + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx.cs index 0bbfe7bb..47273673 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx.cs @@ -183,7 +183,6 @@ namespace FineUIPro.Web.HJGL.WeldingManage { if (this.tvControlItem.SelectedNode != null) { - string strSql = @"SELECT WeldingDailyId,WeldJointId,PipelineCode,WeldJointCode, BackingWelderCode,CoverWelderCode,Material1Code,Material2Code, Dia,Thickness,WeldTypeCode,WeldingMethodCode,WeldingWireCode,WeldingMode, @@ -192,6 +191,16 @@ namespace FineUIPro.Web.HJGL.WeldingManage WHERE WeldingDailyId=@WeldingDailyId"; List listStr = new List(); listStr.Add(new SqlParameter("@WeldingDailyId", tvControlItem.SelectedNodeID)); + if (!string.IsNullOrEmpty(txtPipelineCode.Text.Trim())) + { + strSql += " AND PipelineCode LIKE @pipelineCode "; + listStr.Add(new SqlParameter("@pipelineCode", "%" + this.txtPipelineCode.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(txtWelderCode.Text.Trim())) + { + strSql += " AND (BackingWelderCode LIKE @welderCode OR CoverWelderCode LIKE @welderCode)"; + listStr.Add(new SqlParameter("@welderCode", "%" + this.txtWelderCode.Text.Trim() + "%")); + } SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); var SumDia = tb.AsEnumerable().Sum(x => x.Field("Size")); @@ -473,5 +482,16 @@ namespace FineUIPro.Web.HJGL.WeldingManage } #endregion + #region 筛选 + /// + /// 筛选 + /// + /// + /// + protected void txtTextBox_TextChanged(object sender, EventArgs e) + { + BindGrid(); + } + #endregion } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx.designer.cs index 28cb6108..6e035317 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx.designer.cs @@ -7,13 +7,11 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HJGL.WeldingManage -{ - - - public partial class WeldReport - { - +namespace FineUIPro.Web.HJGL.WeldingManage { + + + public partial class WeldReport { + /// /// form1 控件。 /// @@ -22,7 +20,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -31,7 +29,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -40,7 +38,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// panelLeftRegion 控件。 /// @@ -49,7 +47,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelLeftRegion; - + /// /// Toolbar1 控件。 /// @@ -58,7 +56,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// txtMonth 控件。 /// @@ -67,7 +65,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtMonth; - + /// /// tvControlItem 控件。 /// @@ -76,7 +74,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tree tvControlItem; - + /// /// Panel2 控件。 /// @@ -85,7 +83,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel2; - + /// /// panelCenterRegion 控件。 /// @@ -94,7 +92,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelCenterRegion; - + /// /// Grid1 控件。 /// @@ -103,7 +101,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar2 控件。 /// @@ -112,7 +110,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// txtUnitName 控件。 /// @@ -121,7 +119,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtUnitName; - + /// /// txtTabler 控件。 /// @@ -130,7 +128,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtTabler; - + /// /// txtTableDate 控件。 /// @@ -139,7 +137,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtTableDate; - + /// /// txtWeldingDate 控件。 /// @@ -148,7 +146,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtWeldingDate; - + /// /// txtSumSize 控件。 /// @@ -157,7 +155,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtSumSize; - + /// /// txtRemark 控件。 /// @@ -166,7 +164,34 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtRemark; - + + /// + /// Toolbar3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar3; + + /// + /// txtPipelineCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPipelineCode; + + /// + /// txtWelderCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtWelderCode; + /// /// ToolbarSeparator1 控件。 /// @@ -175,7 +200,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -184,7 +209,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -193,7 +218,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -202,7 +227,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Menu1 控件。 /// @@ -211,7 +236,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnMenuAdd 控件。 /// @@ -220,7 +245,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnMenuAdd; - + /// /// btnMenuEdit 控件。 /// @@ -229,7 +254,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnMenuEdit; - + /// /// btnMenuDelete 控件。 /// diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx index 2a45ce2e..d03acff3 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx @@ -31,7 +31,8 @@ - + + - + diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs index 9ae50477..5f867f08 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs @@ -212,6 +212,10 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage { task = task.Where(x=>x.JointAttribute== drpJointAttribute.SelectedValue).ToList(); } + if (!string.IsNullOrEmpty(this.txtPipelineCode.Text.Trim())) + { + task = task.Where(x => x.PipelineCode.Contains(this.txtPipelineCode.Text.Trim())).ToList(); + } dt = this.LINQToDataTable(task); } else @@ -229,6 +233,10 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage { task = task.Where(x => x.JointAttribute == drpJointAttribute.SelectedValue).ToList(); } + if (!string.IsNullOrEmpty(this.txtPipelineCode.Text.Trim())) + { + task = task.Where(x => x.PipelineCode.Contains(this.txtPipelineCode.Text.Trim())).ToList(); + } dt = this.LINQToDataTable(task); } // 2.获取当前分页数据 diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.designer.cs index 1a5f6679..96d4ccd0 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.designer.cs @@ -7,13 +7,11 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.WeldingProcess.WeldingManage -{ - - - public partial class WeldReportEdit - { - +namespace FineUIPro.Web.WeldingProcess.WeldingManage { + + + public partial class WeldReportEdit { + /// /// form1 控件。 /// @@ -22,7 +20,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -31,7 +29,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -40,7 +38,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// panelCenterRegion 控件。 /// @@ -49,7 +47,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelCenterRegion; - + /// /// Toolbar2 控件。 /// @@ -58,7 +56,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// hdItemsString 控件。 /// @@ -67,7 +65,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HiddenField hdItemsString; - + /// /// hdTablerId 控件。 /// @@ -76,7 +74,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HiddenField hdTablerId; - + /// /// drpJointAttribute 控件。 /// @@ -85,7 +83,16 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpJointAttribute; - + + /// + /// txtPipelineCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPipelineCode; + /// /// ToolbarFill1 控件。 /// @@ -94,7 +101,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnSave 控件。 /// @@ -103,7 +110,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - + /// /// SimpleForm1 控件。 /// @@ -112,7 +119,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// /// txtWeldingDailyCode 控件。 /// @@ -121,7 +128,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtWeldingDailyCode; - + /// /// drpUnit 控件。 /// @@ -130,7 +137,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpUnit; - + /// /// drpUnitWork 控件。 /// @@ -139,7 +146,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpUnitWork; - + /// /// txtWeldingDate 控件。 /// @@ -148,7 +155,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtWeldingDate; - + /// /// txtTabler 控件。 /// @@ -157,7 +164,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtTabler; - + /// /// txtTableDate 控件。 /// @@ -166,7 +173,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtTableDate; - + /// /// txtRemark 控件。 /// @@ -175,7 +182,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtRemark; - + /// /// lbAmount 控件。 /// @@ -184,7 +191,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbAmount; - + /// /// Grid1 控件。 /// @@ -193,7 +200,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// lbPipeArea 控件。 /// @@ -202,7 +209,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lbPipeArea; - + /// /// drpCoverWelderId 控件。 /// @@ -211,7 +218,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpCoverWelderId; - + /// /// drpBackingWelderId 控件。 ///