feat: 优化试压包管理和焊口查询性能
主要改进: • 添加试压类型字段支持,完善试压包管理功能 • 优化包装管理中的单位工程名称获取逻辑 • 实现焊口查询树形结构缓存机制,提升查询性能 • 修复压力类型显示和空值处理问题 • 更新界面文本描述,提高用户体验
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
</f:Label>
|
||||
<f:Label ID="txtTestPackageName" Label="试压包名称" runat="server" LabelWidth="130px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtPressure" Label="试压类型" runat="server" LabelWidth="130px"></f:Label>
|
||||
<f:Label ID="txtRemark" Label="备注" runat="server" LabelWidth="130px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtadjustTestPressure" Label="调整试验压力" runat="server" LabelWidth="120px">
|
||||
|
||||
@@ -319,6 +319,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
||||
this.txtTestPackageNo.Text = testPackageManage.TestPackageNo;
|
||||
this.txtTestPackageName.Text = testPackageManage.TestPackageName;
|
||||
this.txtRemark.Text = testPackageManage.Remark;
|
||||
this.txtPressure.Text=BLL.Base_PressureService.GetPressureByPressureId(testPackageManage.PressureId)?.PressureName;
|
||||
this.txtadjustTestPressure.Text = testPackageManage.AdjustTestPressure;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,6 +167,15 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtTestPackageName;
|
||||
|
||||
/// <summary>
|
||||
/// txtPressure 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtPressure;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList runat="server" ID="drpPressure" Label ="试验方法"></f:DropDownList>
|
||||
<f:TextBox ID="txtRemark" Label="备注" runat="server" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtadjustTestPressure" Label="调整试验压力" runat="server" LabelWidth="120px">
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using BLL;
|
||||
using FineUIPro.Web.HJGL.BaseInfo;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -69,7 +70,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
||||
//Funs.FineUIPleaseSelect(this.drpUnit);
|
||||
BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2, true);//单位
|
||||
BLL.UnitWorkService.InitUnitWorkDropDownList(drpUnitWork, this.CurrUser.LoginProjectId, true);
|
||||
|
||||
BLL.Base_PressureService.InitPressureDropDownList(this.drpPressure, true); //试压类型
|
||||
var list = (from x in Funs.DB.PTP_PipelineList
|
||||
where x.PTP_ID == this.PTP_ID
|
||||
select x).ToList();
|
||||
@@ -115,6 +116,10 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
||||
drpUnitWork.SelectedValue = testPackageManage.UnitWorkId;
|
||||
//var UnitWork = this.drpUnitWork.Items.FirstOrDefault(x => x.Value == testPackageManage.UnitWorkId);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(testPackageManage.PressureId))
|
||||
{
|
||||
this.drpPressure.SelectedValue = testPackageManage.PressureId;
|
||||
}
|
||||
this.txtTestPackageName.Text = testPackageManage.TestPackageName;
|
||||
this.txtRemark.Text = testPackageManage.Remark;
|
||||
this.txtadjustTestPressure.Text = testPackageManage.AdjustTestPressure;
|
||||
@@ -281,7 +286,10 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
||||
{
|
||||
testPackage.UnitId = this.drpUnit.SelectedValue;
|
||||
}
|
||||
|
||||
if (this.drpPressure.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
testPackage.PressureId = this.drpPressure.SelectedValue;
|
||||
}
|
||||
testPackage.TestPackageNo = this.txtTestPackageNo.Text.Trim();
|
||||
testPackage.TestPackageName = this.txtTestPackageName.Text.Trim();
|
||||
testPackage.Tabler = this.CurrUser.PersonId;
|
||||
|
||||
@@ -104,6 +104,15 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnitWork;
|
||||
|
||||
/// <summary>
|
||||
/// drpPressure 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpPressure;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user