补充公司级别树

This commit is contained in:
2025-04-11 18:02:46 +08:00
parent fc7601612a
commit 96899ce306
28 changed files with 1777 additions and 939 deletions
@@ -56,7 +56,6 @@ namespace FineUIPro.Web.Comprehensive
}
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
this.BindGrid();
@@ -71,24 +70,25 @@ namespace FineUIPro.Web.Comprehensive
/// </summary>
public void BindGrid()
{
if (!string.IsNullOrEmpty(this.ProjectId))
if (string.IsNullOrEmpty(this.ProjectId))
{
string strSql = @"select QualityAccidentId, time, Place, DirectEconomicLoss, RemedialMeasures,Status,
return;
}
string strSql = @"select QualityAccidentId, time, Place, DirectEconomicLoss, RemedialMeasures,Status,
ResponsibilityDetermination, CorrectiveActions, AttachUrl, CompileMan, CompileDate,
UnitWorkId,U.UnitName
from Comprehensive_QualityAccident C
left join Base_Unit U on C.UnitId=U.UnitId
where C.ProjectId = @ProjectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid1.RecordCount = tb.Rows.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb);
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid1.RecordCount = tb.Rows.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb);
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
#endregion