2024-02-19 试车分包管理修改

This commit is contained in:
2024-02-19 10:32:15 +08:00
parent 4d854a854a
commit 1180cda1a6
26 changed files with 1203 additions and 1290 deletions
@@ -43,34 +43,13 @@ namespace FineUIPro.Web.TestRun.DriverSub
x.InstallationNames,
x.AttachUrl,
x.Remark,
x.DriverSubNames,
x.SubcontractingTypes,
};
table = table.Skip(Grid1.PageSize * Grid1.PageIndex).Take(Grid1.PageSize);
Grid1.DataSource = table;
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
@@ -220,5 +199,32 @@ namespace FineUIPro.Web.TestRun.DriverSub
}
}
#endregion
protected void btnSelect_OnClick(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DriverSubSetContactorEdit.aspx?DriverSubPlanId={0}", Grid1.SelectedRowID, "编辑 - ")));
}
protected void btnScoring_OnClick(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
if (!DriverSubContactService.IsAllBidirectional(Grid1.SelectedRowID))
{
Alert.ShowInTop("请先进行选标确定中标单位!", MessageBoxIcon.Warning);
return;
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DriverSubEdit.aspx?DriverSubPlanId={0}", Grid1.SelectedRowID, "编辑 - ")));
}
}
}