提交代码

This commit is contained in:
2024-01-24 09:17:17 +08:00
parent 210a264a30
commit a1f0314f72
13 changed files with 718 additions and 7 deletions
@@ -5,6 +5,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using AspNet = System.Web.UI.WebControls;
namespace FineUIPro.Web.TestRun.DriverPrepare
{
@@ -34,6 +35,8 @@ namespace FineUIPro.Web.TestRun.DriverPrepare
}
BindGrid();
}
//Grid1.EnableCheckBoxSelect = true;
//Grid1.CheckBoxSelectOnly = true;
}
}
#endregion
@@ -141,6 +144,46 @@ namespace FineUIPro.Web.TestRun.DriverPrepare
BLL.DriverPrepareDutyItemService.UpdateDutyItem(item);
}
}
//int rowsCount = this.Grid1.Rows.Count;
//foreach (JObject mergedRow in Grid1.GetMergedData())
//{
// int i = mergedRow.Value<int>("index");
// var item = list.FirstOrDefault(x => x.DutyItemId == Grid1.Rows[i].RowID);
// JObject values = mergedRow.Value<JObject>("values");
// AspNet.CheckBox cbItem1 = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbItem1"));
// AspNet.CheckBox cbItem2 = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbItem2"));
// AspNet.CheckBox cbItem3 = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbItem3"));
// AspNet.CheckBox cbItem4 = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbItem4"));
// AspNet.CheckBox cbItem5 = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbItem5"));
// AspNet.CheckBox cbItem6 = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbItem6"));
// AspNet.CheckBox cbItem7 = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbItem7"));
// AspNet.CheckBox cbItem8 = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbItem8"));
// AspNet.CheckBox cbItem9 = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbItem9"));
// AspNet.CheckBox cbItem10 = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbItem10"));
// AspNet.CheckBox cbItem11 = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbItem11"));
// AspNet.CheckBox cbItem12 = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbItem12"));
// AspNet.CheckBox cbItem13 = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbItem13"));
// AspNet.CheckBox cbItem14 = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbItem14"));
// item.Item1 = cbItem1.Checked;
// item.Item2 = cbItem2.Checked;
// item.Item3 = cbItem3.Checked;
// item.Item4 = cbItem4.Checked;
// item.Item5 = cbItem5.Checked;
// item.Item6 = cbItem6.Checked;
// item.Item7 = cbItem7.Checked;
// item.Item8 = cbItem8.Checked;
// item.Item9 = cbItem9.Checked;
// item.Item10 = cbItem10.Checked;
// item.Item11 = cbItem11.Checked;
// item.Item12 = cbItem12.Checked;
// item.Item13 = cbItem13.Checked;
// item.Item14 = cbItem14.Checked;
// item.Remark = values.Value<string>("Remark");
// BLL.DriverPrepareDutyItemService.UpdateDutyItem(item);
//}
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}