2023-02-17 001 任务单新增时树不匹配材料
This commit is contained in:
@@ -219,11 +219,11 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
TreeNode newNode = new TreeNode();
|
||||
int totalJointNum = joints.Count(x => x.PipelineId == item.PipelineId);
|
||||
int weldJointNum = joints.Count(x => x.PipelineId == item.PipelineId && x.WeldingDailyId != null);
|
||||
bool istrue = BLL.HJGL_MaterialService.isInStockByPipeline(item.PipelineId, this.CurrUser.LoginProjectId);
|
||||
if (istrue)
|
||||
{
|
||||
newNode.CssClass = "tn-color-green";
|
||||
}
|
||||
//bool istrue = BLL.HJGL_MaterialService.isInStockByPipeline(item.PipelineId, this.CurrUser.LoginProjectId);
|
||||
//if (istrue)
|
||||
//{
|
||||
// newNode.CssClass = "tn-color-green";
|
||||
//}
|
||||
newNode.Text = item.PipelineCode + "(" + (totalJointNum - weldJointNum).ToString() + ")";
|
||||
newNode.NodeID = item.PipelineId;
|
||||
newNode.ToolTip = item.PipelineCode;
|
||||
|
||||
Reference in New Issue
Block a user