20260213 支管连接焊接接头、角焊接头组对焊接检查记录

This commit is contained in:
2026-02-13 10:41:30 +08:00
parent 0f98e28a13
commit fa0fc9899a
7 changed files with 337 additions and 64 deletions
@@ -37,7 +37,7 @@
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:TextBox ID="txtIsoNoS" runat="server" Label="管道编号" EmptyText="输入查询条件" LabelAlign="Right" AutoPostBack="true" OnTextChanged="txtIsoNoS_TextChanged"></f:TextBox>
<f:DropDownList ID="drpIsoNoS" runat="server" Label="管道编号" LabelAlign="Right" AutoPostBack="true" OnSelectedIndexChanged="txtIsoNoS_TextChanged"></f:DropDownList>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
@@ -105,8 +105,19 @@ namespace FineUIPro.Web.JGZL
txtUsingUnitTeam.Text = teamWeldingInspection.UsingUnitTeam;
txtInstallationArea.Text = teamWeldingInspection.InstallationArea;
}
//管线下拉选择
var isoLists = (from x in Funs.DB.JGZL_TeamWeldingInspectionItem
where x.TeamWeldingInspectionId == this.TeamWeldingInspectionId
select x.PipelineNo).Distinct().ToList();
this.drpIsoNoS.Items.Clear();
this.drpIsoNoS.DataTextField = "PipelineNo";
this.drpIsoNoS.DataValueField = "PipelineNo";
this.drpIsoNoS.DataSource = isoLists;
this.drpIsoNoS.DataBind();
Funs.FineUIPleaseSelect(this.drpIsoNoS);
this.drpIsoNoS.SelectedIndex = 0;
DataInfo();
//this.BindGrid();
}
}
@@ -210,9 +221,9 @@ namespace FineUIPro.Web.JGZL
itemLists.Add(newItem);
}
}
if (!string.IsNullOrEmpty(this.txtIsoNoS.Text))
if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue) && this.drpIsoNoS.SelectedValue != BLL.Const._Null)
{
itemLists = itemLists.Where(e => e.PipelineNo.Contains(this.txtIsoNoS.Text)).ToList(); ;
itemLists = itemLists.Where(e => e.PipelineNo.Contains(this.drpIsoNoS.SelectedValue)).ToList(); ;
}
}
this.Grid1.DataSource = itemLists;
@@ -403,11 +414,11 @@ namespace FineUIPro.Web.JGZL
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", projectId));
//if (!string.IsNullOrEmpty(this.txtCheckDate.Text))
//{
// strSql += " and i.CheckDate=@checkDate";
// listStr.Add(new SqlParameter("@checkDate", Funs.GetNewDateTime(this.txtCheckDate.Text.Trim())));
//}
if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue) && this.drpIsoNoS.SelectedValue != BLL.Const._Null)
{
strSql += " and i.PipelineNo=@pipelineNo";
listStr.Add(new SqlParameter("@pipelineNo", this.drpIsoNoS.SelectedValue));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
if (tb.Rows.Count == itemLists.Count)
@@ -768,6 +779,19 @@ namespace FineUIPro.Web.JGZL
BLL.TeamWeldingInspectionService.AddTeamWeldingInspection(newTeamWeldingInspection);
}
saveItem();
//管线下拉选择
var isoLists = (from x in Funs.DB.JGZL_TeamWeldingInspectionItem
where x.TeamWeldingInspectionId == this.TeamWeldingInspectionId
select x.PipelineNo).Distinct().ToList();
this.drpIsoNoS.Items.Clear();
this.drpIsoNoS.DataTextField = "PipelineNo";
this.drpIsoNoS.DataValueField = "PipelineNo";
this.drpIsoNoS.DataSource = isoLists;
this.drpIsoNoS.DataBind();
Funs.FineUIPleaseSelect(this.drpIsoNoS);
this.drpIsoNoS.SelectedIndex = 0;
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
@@ -96,13 +96,13 @@ namespace FineUIPro.Web.JGZL
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// txtIsoNoS 控件。
/// drpIsoNoS 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtIsoNoS;
protected global::FineUIPro.DropDownList drpIsoNoS;
/// <summary>
/// ToolbarFill1 控件。