2024-02-19 试车分包管理修改
This commit is contained in:
@@ -26,63 +26,13 @@ namespace FineUIPro.Web.TestRun.DriverSub
|
||||
//加载列表
|
||||
public void BindGrid()
|
||||
{
|
||||
//string strSql = @"SELECT subPlan.DriverSubPlanId,
|
||||
// subPlan.ProjectId,
|
||||
// subPlan.Code,
|
||||
// subPlan.SubUnitId,
|
||||
// subPlan.Introductions,
|
||||
// subPlan.Achievement,
|
||||
// subPlan.Cooperation,
|
||||
// subPlan.InstallationIds,
|
||||
// subPlan.InstallationNames,
|
||||
// (CASE WHEN subPlan.IsInvited=1 THEN '是' ELSE '否' END) AS IsInvitedName,
|
||||
// subPlan.AttachUrl,
|
||||
// subPlan.Remark,
|
||||
// Unit.UnitName AS SubUnitName"
|
||||
// + @" FROM DriverSub_DriverSubPlan AS subPlan"
|
||||
// + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = subPlan.SubUnitId WHERE subPlan.ProjectId=@projectId";
|
||||
//List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
//listStr.Add(new SqlParameter("@projectId", this.CurrUser.LoginProjectId));
|
||||
//if (!string.IsNullOrEmpty(this.drpSubUnitId.SelectedValue)&&this.drpSubUnitId.SelectedValue!=BLL.Const._Null)
|
||||
//{
|
||||
// strSql += " AND subPlan.SubUnitId=@subUnitId";
|
||||
// listStr.Add(new SqlParameter("@subUnitId", this.drpSubUnitId.SelectedValue));
|
||||
//}
|
||||
//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();
|
||||
|
||||
Model.DriverSub_DriverSubPlan querymodel = new Model.DriverSub_DriverSubPlan();
|
||||
querymodel.ProjectId = this.CurrUser.LoginProjectId;
|
||||
Grid1.DataSource = DriverSubPlanService.GetListData(querymodel, Grid1);
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
public string GetDriverSubName(object str)
|
||||
{
|
||||
string strName = "";
|
||||
|
||||
if (str != null)
|
||||
{
|
||||
string[] strArr = str.ToString().Split(',');
|
||||
|
||||
foreach (string s in strArr)
|
||||
{
|
||||
foreach (System.Web.UI.WebControls.ListItem item in DropListService.drpDriverSubNameList())
|
||||
{
|
||||
if (item.Value == s)
|
||||
{
|
||||
strName += item.Text + ",";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return strName.TrimEnd(',');
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页
|
||||
|
||||
Reference in New Issue
Block a user