From a82e87e8e8a6de16e5b26e2efe80df55854727e3 Mon Sep 17 00:00:00 2001 From: shecs <408299694@qq.com> Date: Wed, 26 Feb 2025 09:25:10 +0800 Subject: [PATCH] 11 --- .../HardnessCheckOrderPrint.aspx | 4 +- .../HardnessCheckOrderPrint.aspx.cs | 15 ++- .../HJGL/HotHardManage/HardReportSet.aspx | 2 +- .../HJGL/HotHardManage/HotHardManageEdit.aspx | 7 +- .../HotHardManage/HotHardManageEdit.aspx.cs | 26 ++++- .../HotHardManageEdit.aspx.designer.cs | 105 ++++++++++-------- HJGL_ZH/FineUIPro.Web/Web.config | 2 +- .../FineUIPro.Web/WeldMat/Stock/StockIn.aspx | 9 +- .../WeldMat/Stock/StockIn.aspx.cs | 14 ++- .../WeldMat/Stock/StockIn.aspx.designer.cs | 18 +++ 10 files changed, 137 insertions(+), 65 deletions(-) diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessCheckOrderPrint.aspx b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessCheckOrderPrint.aspx index 335aa79..2aa7fa4 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessCheckOrderPrint.aspx +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessCheckOrderPrint.aspx @@ -16,7 +16,7 @@ Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox"> + SortDirection="ASC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true"> diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessCheckOrderPrint.aspx.cs b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessCheckOrderPrint.aspx.cs index 6780db5..0814e72 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessCheckOrderPrint.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/HardnessCheckOrderPrint.aspx.cs @@ -57,7 +57,14 @@ namespace FineUIPro.Web.ContinuousPrint List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", ProjectId)); SqlParameter[] parameter = listStr.ToArray(); - Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter); + DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); + DataView view = dt.DefaultView; + if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0) + { + view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection); + } + DataTable table = view.ToTable(); + Grid2.DataSource = table; Grid2.DataBind(); Grid2.SelectAllRows(); } @@ -93,10 +100,12 @@ namespace FineUIPro.Web.ContinuousPrint /// protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) { - Grid1.SortDirection = e.SortDirection; - Grid1.SortField = e.SortField; BindGrid(); } + protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid1(this.Grid1.SelectedRowID); + } #endregion #region 选择加载 diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx index 78c867f..bb8d1c2 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx +++ b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HardReportSet.aspx @@ -71,7 +71,7 @@ diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HotHardManageEdit.aspx b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HotHardManageEdit.aspx index bb2f611..d2a6e58 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HotHardManageEdit.aspx +++ b/HJGL_ZH/FineUIPro.Web/HJGL/HotHardManage/HotHardManageEdit.aspx @@ -67,6 +67,9 @@ <%-- --%> + +