2022-10-24 焊接修改
This commit is contained in:
@@ -196,6 +196,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";
|
||||
}
|
||||
newNode.Text = item.PipelineCode + "(" + (totalJointNum - weldJointNum).ToString() + ")";
|
||||
newNode.NodeID = item.PipelineId;
|
||||
newNode.ToolTip = item.PipelineCode;
|
||||
@@ -474,5 +479,20 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 行绑定事件(没有焊接方法无法选择)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowDataBound(object sender, GridRowEventArgs e)
|
||||
{
|
||||
DataRowView row = e.DataItem as DataRowView;
|
||||
if (string.IsNullOrEmpty(row["WeldingMethodCode"].ToString()))
|
||||
{
|
||||
e.RowSelectable = false;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user