This commit is contained in:
jackchenyang
2024-05-22 14:41:37 +08:00
parent 1c99b5acb8
commit cc686533f3
5 changed files with 329 additions and 259 deletions
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web.ModelBinding;
using BLL;
using Newtonsoft.Json.Linq;
@@ -103,6 +104,7 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
}
}
this.PageInfoLoad(); ///加载页面
}
}
#endregion
@@ -283,6 +285,8 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
this.GetInitGrid1Data();
}
/// <summary>
@@ -511,6 +515,7 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
}
}
#endregion
#region Grid页面信息
/// <summary>
@@ -535,6 +540,30 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
}
#endregion
#region Grid2列表
private void GetInitGrid1Data()
{
for (int i = 0; i < Grid1.Rows.Count; i++)
{
string rowID = Grid1.DataKeys[i][0].ToString();
this.GetDataJointGrid2(rowID);
}
}
private void GetDataJointGrid2(string PipelineID)
{
string sql = @"SELECT WeldJointId,PipelineId,WeldJointCode FROM View_Pipeline_WeldJoint WHERE PipelineId =@PipelineId order by WeldJointCode";
SqlParameter[] sp = new SqlParameter[]
{
new SqlParameter("@PipelineId",PipelineID)
};
DataTable dt=SQLHelper.GetDataTableRunText(sql, sp);
this.Grid2.DataSource = dt;
this.Grid2.DataBind();
}
#endregion
#region Grid
/// <summary>
/// 全选