This commit is contained in:
2025-02-14 16:48:50 +08:00
parent 86b1e8b3da
commit 6d4a7e82a7
51 changed files with 1888 additions and 339 deletions
@@ -67,11 +67,21 @@ namespace FineUIPro.Web.ContinuousPrint
}
}
string strSql = @"select a.CH_RepairID,a.TrustItemID,a.Record_PrintDate,a.CH_RepairNo,a.CH_PrintDate,b.ProjectCode,b.ProjectName,b.ShortName,b.StartDate,b.EndDate from HJGL_CH_Repair as a inner join Base_Project as b on a.ProjectId=b.ProjectId where a.ProjectId= @ProjectId" + str;
string strSql = @"select a.CH_RepairID,a.TrustItemID,a.Record_PrintDate,a.CH_RepairNo,a.CH_PrintDate,b.ProjectCode,b.ProjectName,b.ShortName,b.StartDate,b.EndDate
from HJGL_CH_Repair as a
inner join Base_Project as b on a.ProjectId=b.ProjectId
where a.ProjectId= @ProjectId" + str;
List<SqlParameter> listStr = new List<SqlParameter>();
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();
}
@@ -107,10 +117,12 @@ namespace FineUIPro.Web.ContinuousPrint
/// <param name="e"></param>
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