20250805 试压管理

This commit is contained in:
2025-08-05 23:34:06 +08:00
parent 151bdde705
commit 4e366b3827
22 changed files with 369 additions and 159 deletions
@@ -27,6 +27,14 @@
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="200px" Title="WBS目录" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar runat="server" ToolbarAlign="Right">
<Items>
<f:TextBox ID="txtCode" runat="server" Label="试压包号" EmptyText="输入查询条件" LabelWidth="80px" LabelAlign="Right" AutoPostBack="true" OnTextChanged="txtCode_TextChanged"></f:TextBox>
<f:ToolbarFill runat="server"></f:ToolbarFill>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tvControlItem" ShowHeader="false" Title="尾工录入节点树" OnNodeCommand="tvControlItem_NodeCommand"
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true" AutoLeafIdentification="true"
@@ -93,9 +93,20 @@ namespace FineUIPro.Web.HJGL.TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
&& x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null
select x).ToList();
List<Model.PTP_TestPackage> testPackageLists = (from x in Funs.DB.PTP_TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
select x).ToList();
List<Model.PTP_TestPackage> testPackageLists = new List<Model.PTP_TestPackage>();
if (!string.IsNullOrEmpty(this.txtCode.Text.Trim()))
{
testPackageLists = (from x in Funs.DB.PTP_TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
&& x.TestPackageNo.Contains(this.txtCode.Text.Trim())
select x).ToList();
}
else
{
testPackageLists = (from x in Funs.DB.PTP_TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
select x).ToList();
}
List<Model.WBS_UnitWork> unitWork1 = null;
List<Model.WBS_UnitWork> unitWork2 = null;
@@ -585,5 +596,17 @@ namespace FineUIPro.Web.HJGL.TestPackage
ShowNotify("您没有这个权限,请与管理员联系!");
}
}
#region
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtCode_TextChanged(object sender, EventArgs e)
{
InitTreeMenu();
}
#endregion
}
}
@@ -57,6 +57,15 @@ namespace FineUIPro.Web.HJGL.TestPackage {
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// txtCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCode;
/// <summary>
/// tvControlItem 控件。
/// </summary>
@@ -96,7 +96,7 @@
<asp:Label ID="Label3" runat="server" Text='<%# ConvertApproveType(Eval("ApproveType")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="200px" ColumnID="UserName" DataField="UserName"
<f:RenderField Width="200px" ColumnID="PersonName" DataField="PersonName"
FieldType="String" HeaderText="办理人员" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="Opinion" DataField="Opinion"
@@ -57,7 +57,7 @@
<asp:Label ID="Label3" runat="server" Text='<%# ConvertApproveType(Eval("ApproveType")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="200px" ColumnID="UserName" DataField="UserName"
<f:RenderField Width="200px" ColumnID="PersonName" DataField="PersonName"
FieldType="String" HeaderText="办理人员" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="Opinion" DataField="Opinion"
@@ -46,6 +46,14 @@
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="200px" Title="WBS目录" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar runat="server" ToolbarAlign="Right">
<Items>
<f:TextBox ID="txtCode" runat="server" Label="试压包号" EmptyText="输入查询条件" LabelWidth="80px" LabelAlign="Right" AutoPostBack="true" OnTextChanged="txtCode_TextChanged"></f:TextBox>
<f:ToolbarFill runat="server"></f:ToolbarFill>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tvControlItem" ShowHeader="false" Title="试压包节点树" OnNodeCommand="tvControlItem_NodeCommand"
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true" AutoLeafIdentification="true"
@@ -86,9 +86,20 @@ namespace FineUIPro.Web.HJGL.TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
&& x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null
select x).ToList();
List<Model.PTP_TestPackage> testPackageLists = (from x in Funs.DB.PTP_TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
select x).ToList();
List<Model.PTP_TestPackage> testPackageLists = new List<Model.PTP_TestPackage>();
if (!string.IsNullOrEmpty(this.txtCode.Text.Trim()))
{
testPackageLists = (from x in Funs.DB.PTP_TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
&& x.TestPackageNo.Contains(this.txtCode.Text.Trim())
select x).ToList();
}
else
{
testPackageLists = (from x in Funs.DB.PTP_TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
select x).ToList();
}
List<Model.WBS_UnitWork> unitWork1 = null;
List<Model.WBS_UnitWork> unitWork2 = null;
@@ -649,5 +660,17 @@ namespace FineUIPro.Web.HJGL.TestPackage
}
}
#endregion
#region
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtCode_TextChanged(object sender, EventArgs e)
{
InitTreeMenu();
}
#endregion
}
}
@@ -57,6 +57,15 @@ namespace FineUIPro.Web.HJGL.TestPackage {
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// txtCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCode;
/// <summary>
/// tvControlItem 控件。
/// </summary>
@@ -46,6 +46,14 @@
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="200px" Title="WBS目录" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar runat="server" ToolbarAlign="Right">
<Items>
<f:TextBox ID="txtCode" runat="server" Label="试压包号" EmptyText="输入查询条件" LabelWidth="80px" LabelAlign="Right" AutoPostBack="true" OnTextChanged="txtCode_TextChanged"></f:TextBox>
<f:ToolbarFill runat="server"></f:ToolbarFill>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tvControlItem" ShowHeader="false" Title="试压包节点树" OnNodeCommand="tvControlItem_NodeCommand"
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true" AutoLeafIdentification="true"
@@ -149,7 +157,7 @@
<Items>
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Text="编辑" Icon="Pencil" OnClick="btnMenuModify_Click">
</f:MenuButton>
<f:MenuButton ID="btnPrinter" EnablePostBack="true" runat="server" Text="打印" Icon="Printer" OnClick="btnPrinter_Click">
<f:MenuButton ID="btnPrinter" EnablePostBack="true" runat="server" Text="打印" Icon="Printer" OnClick="btnPrinter_Click" Hidden="true">
</f:MenuButton>
</Items>
</f:Menu>
@@ -136,9 +136,20 @@
#region --
/// <summary>
/// 加载树
/// </summary>
private void InitTreeMenu()
/// 加载树
/// </summary>
private void InitTreeMenu()
{
this.tvControlItem.Nodes.Clear();
TreeNode rootNode1 = new TreeNode();
rootNode1.NodeID = "1";
rootNode1.Text = "建筑工程";
rootNode1.CommandName = "建筑工程";
rootNode1.Selectable = false;
this.tvControlItem.Nodes.Add(rootNode1);
TreeNode rootNode2 = new TreeNode();
rootNode2.NodeID = "2";
rootNode2.Text = "安装工程";
rootNode2.CommandName = "安装工程";
@@ -796,4 +807,16 @@
@@ -57,6 +57,15 @@ namespace FineUIPro.Web.HJGL.TestPackage {
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// txtCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCode;
/// <summary>
/// tvControlItem 控件。
/// </summary>
@@ -34,6 +34,7 @@
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:TextBox ID="txtTestPackageNo" runat="server" Label="试压包号" LabelAlign="Right" EmptyText="输入查询条件" AutoPostBack="true" OnTextChanged="txtTestPackageNo_TextChanged"></f:TextBox>
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
<f:DropDownList ID="drpPrintType" runat="server" Label="格式" LabelAlign="Right" LabelWidth="120px" Width="200px" Hidden="false">
<f:ListItem Value="1" Text="PDF" Selected="true" />
@@ -54,6 +54,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
{
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
this.InitTreeMenu();//加载树
BindGrid();
}
}
@@ -172,10 +173,19 @@ namespace FineUIPro.Web.HJGL.TestPackage
t.TestPackageName,
(case when t.PrintState>0 then '第'+convert(varchar(10),t.PrintState)+'次打印' else '未打印' end) as PrintState,
t.TableDate
from PTP_TestPackage t where t.ProjectId=@projectId and t.UnitWorkId=@unitWorkId";
from PTP_TestPackage t where t.ProjectId=@projectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
listStr.Add(new SqlParameter("@unitWorkId", this.UnitWorkId));
if (!string.IsNullOrEmpty(this.UnitWorkId))
{
strSql += " and t.UnitWorkId =@unitWorkId";
listStr.Add(new SqlParameter("@unitWorkId", this.UnitWorkId));
}
if (!string.IsNullOrEmpty(this.txtTestPackageNo.Text.Trim()))
{
strSql += " and t.TestPackageNo like @testPackageNo";
listStr.Add(new SqlParameter("@testPackageNo", "%" + this.txtTestPackageNo.Text.Trim() + "%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
// 2.获取当前分页数据
@@ -466,9 +476,10 @@ namespace FineUIPro.Web.HJGL.TestPackage
break;
case "4"://管道试压包尾项清单
{
string sql = @"select PT_PipeId,PTP_ID,pipelineList.PipelineId,pipeline.PipelineCode from PTP_PipelineList as pipelineList
left join HJGL_Pipeline pipeline on pipeline.PipelineId = pipelineList.PipelineId
where PTP_ID=@ptp_id";
string sql = @"select ItemCheckId,PTP_ID,PTP_ItemEndCheck.PipelineId,Content,ItemType,Result,HJGL_Pipeline.PipelineCode from PTP_ItemEndCheck
left join PTP_ItemEndCheckList on PTP_ItemEndCheckList.ItemEndCheckListId = PTP_ItemEndCheck.ItemEndCheckListId
left join HJGL_Pipeline on HJGL_Pipeline.PipelineId = PTP_ItemEndCheck.PipelineId
where PTP_ItemEndCheckList.PTP_ID=@ptp_id";
List<SqlParameter> listStr = new List<SqlParameter>
{
new SqlParameter("@ptp_id", this.PTP_ID),
@@ -480,12 +491,16 @@ namespace FineUIPro.Web.HJGL.TestPackage
dt.TableName = "Data";
dt.Columns.Add("SortNumber");
dt.Columns.Add("PipelineCode");
dt.Columns.Add("Content");
dt.Columns.Add("ItemType");
for (int i = 0; i < tb.Rows.Count; i++)
{
var newRows = dt.NewRow();
newRows["SortNumber"] = (i + 1).ToString();
newRows["PipelineCode"] = tb.Rows[i]["PipelineCode"].ToString();
newRows["Content"] = tb.Rows[i]["Content"].ToString();
newRows["ItemType"] = tb.Rows[i]["ItemType"].ToString();
dt.Rows.Add(newRows);
}
@@ -506,12 +521,21 @@ namespace FineUIPro.Web.HJGL.TestPackage
break;
case "5"://管道系统压力试验记录
{
string sql = @"select PT_PipeId,PTP_ID,pipelineList.PipelineId,pipeline.PipelineCode,pipeline.DesignPress,pipeline.DesignTemperature,
testMedium.MediumName,pipelineList.TestPressure
from PTP_PipelineList as pipelineList
left join HJGL_Pipeline pipeline on pipeline.PipelineId = pipelineList.PipelineId
LEFT JOIN dbo.Base_TestMedium AS testMedium ON testMedium.TestMediumId = pipelineList.TestMedium
where PTP_ID=@ptp_id";
string sql = @"SELECT ptpPipe.PT_PipeId,
ptpPipe.PTP_ID,
ptpPipe.PipelineId,
ptpPipe.DesignPress, --设计压力
ptpPipe.DesignTemperature, --设计温度
ptpPipe.TestPressure, --试验压力
IsoInfo.PipelineCode,--管道编号/单线号
testMedium.MediumName,--试验介质
testPackage.AmbientTemperature,--试验环境温度
testPackage.TestMediumTemperature--试验介质温度
FROM dbo.PTP_PipelineList AS ptpPipe
LEFT JOIN dbo.HJGL_Pipeline AS IsoInfo ON ptpPipe.PipelineId = IsoInfo.PipelineId
LEFT JOIN dbo.Base_TestMedium AS testMedium ON testMedium.TestMediumId = IsoInfo.TestMedium
left join PTP_TestPackage as testPackage on testPackage.PTP_ID = ptpPipe.PTP_ID
where ptpPipe.PTP_ID=@ptp_id";
List<SqlParameter> listStr = new List<SqlParameter>
{
new SqlParameter("@ptp_id", this.PTP_ID),
@@ -526,6 +550,8 @@ namespace FineUIPro.Web.HJGL.TestPackage
dt.Columns.Add("DesignTemperature");
dt.Columns.Add("MediumName");
dt.Columns.Add("TestPressure");
dt.Columns.Add("AmbientTemperature");
dt.Columns.Add("TestMediumTemperature");
for (int i = 0; i < tb.Rows.Count; i++)
{
@@ -535,6 +561,9 @@ namespace FineUIPro.Web.HJGL.TestPackage
newRows["DesignTemperature"] = tb.Rows[i]["DesignTemperature"].ToString();
newRows["MediumName"] = tb.Rows[i]["MediumName"].ToString();
newRows["TestPressure"] = tb.Rows[i]["TestPressure"].ToString();
newRows["AmbientTemperature"] = tb.Rows[i]["AmbientTemperature"].ToString();
var temp = tb.Rows[i]["TestMediumTemperature"].ToString();
newRows["TestMediumTemperature"] = tb.Rows[i]["TestMediumTemperature"].ToString();
dt.Rows.Add(newRows);
}
@@ -911,7 +940,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
if (iosList.Count > 0)
{
var q = iosList[0];
var isoNos = string.Join("','", iosList.Select(x => x.PipelineCode).ToArray());
var isoNos = string.Join(",", iosList.Select(x => x.PipelineCode).ToArray());
var isoIds = string.Join("','", iosList.Select(x => x.PipelineId).ToArray());
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
var projectName = BLL.ProjectService.GetProjectNameByProjectId(this.CurrUser.LoginProjectId);
@@ -1546,5 +1575,17 @@ namespace FineUIPro.Web.HJGL.TestPackage
return spcificaation;
}
#endregion
#region
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtTestPackageNo_TextChanged(object sender, EventArgs e)
{
BindGrid();
}
#endregion
}
}
@@ -7,13 +7,11 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.HJGL.TestPackage
{
public partial class TestPackageData
{
namespace FineUIPro.Web.HJGL.TestPackage {
public partial class TestPackageData {
/// <summary>
/// form1 控件。
/// </summary>
@@ -22,7 +20,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
@@ -31,7 +29,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
@@ -40,7 +38,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// panelLeftRegion 控件。
/// </summary>
@@ -49,7 +47,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// tvControlItem 控件。
/// </summary>
@@ -58,7 +56,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Tree tvControlItem;
/// <summary>
/// hdPTP_ID 控件。
/// </summary>
@@ -67,7 +65,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdPTP_ID;
/// <summary>
/// Panel2 控件。
/// </summary>
@@ -76,7 +74,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel2;
/// <summary>
/// Grid1 控件。
/// </summary>
@@ -85,7 +83,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar2 控件。
/// </summary>
@@ -94,7 +92,16 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// txtTestPackageNo 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtTestPackageNo;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
@@ -103,7 +110,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// drpPrintType 控件。
/// </summary>
@@ -112,7 +119,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpPrintType;
/// <summary>
/// btnPrint 控件。
/// </summary>
@@ -121,7 +128,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnPrint;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
@@ -130,7 +137,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
@@ -139,7 +146,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
@@ -15,6 +15,14 @@
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="200px" Title="WBS目录" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar runat="server" ToolbarAlign="Right">
<Items>
<f:TextBox ID="txtCode" runat="server" Label="试压包号" EmptyText="输入查询条件" LabelWidth="80px" LabelAlign="Right" AutoPostBack="true" OnTextChanged="txtCode_TextChanged"></f:TextBox>
<f:ToolbarFill runat="server"></f:ToolbarFill>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tvControlItem" ShowHeader="false" Title="试压包节点树" OnNodeCommand="tvControlItem_NodeCommand"
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true" AutoLeafIdentification="true"
@@ -94,9 +94,20 @@ namespace FineUIPro.Web.HJGL.TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
&& x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null
select x).ToList();
List<Model.PTP_TestPackage> testPackageLists = (from x in Funs.DB.PTP_TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
select x).ToList();
List<Model.PTP_TestPackage> testPackageLists = new List<Model.PTP_TestPackage>();
if (!string.IsNullOrEmpty(this.txtCode.Text.Trim()))
{
testPackageLists = (from x in Funs.DB.PTP_TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
&& x.TestPackageNo.Contains(this.txtCode.Text.Trim())
select x).ToList();
}
else
{
testPackageLists = (from x in Funs.DB.PTP_TestPackage
where x.ProjectId == this.CurrUser.LoginProjectId
select x).ToList();
}
List<Model.WBS_UnitWork> unitWork1 = null;
List<Model.WBS_UnitWork> unitWork2 = null;
@@ -112,8 +123,8 @@ namespace FineUIPro.Web.HJGL.TestPackage
//}
//else
//{
unitWork1 = (from x in unitWorkList where x.ProjectType == "1" select x).ToList();
unitWork2 = (from x in unitWorkList where x.ProjectType == "2" select x).ToList();
unitWork1 = (from x in unitWorkList where x.ProjectType == "1" select x).ToList();
unitWork2 = (from x in unitWorkList where x.ProjectType == "2" select x).ToList();
//}
if (unitWork1.Count() > 0)
@@ -187,7 +198,6 @@ namespace FineUIPro.Web.HJGL.TestPackage
}
}
}
#endregion
#region TreeView
@@ -627,5 +637,17 @@ namespace FineUIPro.Web.HJGL.TestPackage
ShowNotify("非单位工程类型无法导入!", MessageBoxIcon.Warning);
}
}
#region
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtCode_TextChanged(object sender, EventArgs e)
{
InitTreeMenu();
}
#endregion
}
}
@@ -7,13 +7,11 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.HJGL.TestPackage
{
public partial class TestPackageEdit
{
namespace FineUIPro.Web.HJGL.TestPackage {
public partial class TestPackageEdit {
/// <summary>
/// Head1 控件。
/// </summary>
@@ -22,7 +20,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
/// <summary>
/// form1 控件。
/// </summary>
@@ -31,7 +29,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
@@ -40,7 +38,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
@@ -49,7 +47,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// panelLeftRegion 控件。
/// </summary>
@@ -58,7 +56,16 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// txtCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCode;
/// <summary>
/// tvControlItem 控件。
/// </summary>
@@ -67,7 +74,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Tree tvControlItem;
/// <summary>
/// hdPTP_ID 控件。
/// </summary>
@@ -76,7 +83,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdPTP_ID;
/// <summary>
/// Panel2 控件。
/// </summary>
@@ -85,7 +92,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel2;
/// <summary>
/// panelTopRegion 控件。
/// </summary>
@@ -94,7 +101,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelTopRegion;
/// <summary>
/// ContentPanel1 控件。
/// </summary>
@@ -103,7 +110,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ContentPanel ContentPanel1;
/// <summary>
/// ctlAuditFlow 控件。
/// </summary>
@@ -112,7 +119,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Web.Controls._3DLook ctlAuditFlow;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
@@ -121,7 +128,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary>
/// Grid1 控件。
/// </summary>
@@ -130,7 +137,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar2 控件。
/// </summary>
@@ -139,7 +146,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// txtTestPackageNo 控件。
/// </summary>
@@ -148,7 +155,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label txtTestPackageNo;
/// <summary>
/// txtTestPackageName 控件。
/// </summary>
@@ -157,7 +164,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label txtTestPackageName;
/// <summary>
/// txtRemark 控件。
/// </summary>
@@ -166,7 +173,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label txtRemark;
/// <summary>
/// txtadjustTestPressure 控件。
/// </summary>
@@ -175,7 +182,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label txtadjustTestPressure;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
@@ -184,7 +191,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
@@ -193,7 +200,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
@@ -202,7 +209,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// </summary>
@@ -211,7 +218,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Window2 控件。
/// </summary>
@@ -220,7 +227,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window2;
/// <summary>
/// Menu1 控件。
/// </summary>
@@ -229,7 +236,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuImport 控件。
/// </summary>
@@ -238,7 +245,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuImport;
/// <summary>
/// btnMenuNew 控件。
/// </summary>
@@ -247,7 +254,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuNew;
/// <summary>
/// btnMenuModify 控件。
/// </summary>
@@ -256,7 +263,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuModify;
/// <summary>
/// btnMenuSee 控件。
/// </summary>
@@ -265,7 +272,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuSee;
/// <summary>
/// btnMenuDel 控件。
/// </summary>
@@ -274,7 +281,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDel;
/// <summary>
/// btnPrinterAll 控件。
/// </summary>