feat: 优化试压包管理和焊口查询性能
主要改进: • 添加试压类型字段支持,完善试压包管理功能 • 优化包装管理中的单位工程名称获取逻辑 • 实现焊口查询树形结构缓存机制,提升查询性能 • 修复压力类型显示和空值处理问题 • 更新界面文本描述,提高用户体验
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user