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
@@ -58,7 +58,7 @@ namespace FineUIPro.Web.TestRun.DriverSub
var subPlanModel= DriverSubPlanService.GetDriverSubPlanById(DriverSubPlanId);
if (subPlanModel != null)
{
foreach (var item in subPlanModel.DriverSubNames.Split(','))
foreach (var item in subPlanModel.SubcontractingTypes.Split(','))
{
var name = DropListService.drpDriverSubNameList().Where(x => x.Value == item) .First().Text;
FineUIPro.TreeNode node = new FineUIPro.TreeNode();
@@ -75,14 +75,14 @@ namespace FineUIPro.Web.TestRun.DriverSub
void BindNode(TreeNode node,string type )
{
var SubContractorsList= DriverSubContactService.GetDriverSubContactByDriverSubPlanId(DriverSubPlanId)
.Where(x => x.SubcontractingType == type).Select(x => x.DriverSubContractorsId).ToArray();
.Where(x => x.SubcontractingType == type && x.IsBidirectional==true).Select(x => x.DriverSubContractorsId).ToArray();
foreach (var item in SubContractorsList)
{
string unitName= BLL.DriversubcontractorsService.GetDriverSub_DriverSubContractorsById(item).SubUnitName;
FineUIPro.TreeNode node1 = new FineUIPro.TreeNode();
node1.NodeID = item;
node1.Text = unitName;
node1.CommandName = node1.Text;
node1.CommandName = type;
node1.EnableClickEvent=true;
node.Nodes.Add(node1);
}
@@ -106,7 +106,7 @@ namespace FineUIPro.Web.TestRun.DriverSub
}
else
{
Grid1.DataSource = BLL.DriverSubService.GetDriverSubEvaluationData();
Grid1.DataSource = BLL.DriverSubService.GetDriverSubEvaluationData(tvControlItem.SelectedNode.CommandName);
Grid1.DataBind();
}