121221
This commit is contained in:
@@ -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>
|
||||
/// 全选
|
||||
|
||||
Reference in New Issue
Block a user