feat:增加根据选择是否需要材料炉批号进行管控
This commit is contained in:
@@ -46,6 +46,23 @@ namespace FineUIPro.Web
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 不使用炉批号时,统一隐藏材料表格中的炉号、批号列。
|
||||
/// </summary>
|
||||
protected void ConfigureMaterialBatchColumns(params Grid[] grids)
|
||||
{
|
||||
if (Project_SysSetService.UsesMaterialBatchNumber(CurrUser.LoginProjectId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (var grid in grids)
|
||||
{
|
||||
grid.FindColumn("HeatNo").Hidden = true;
|
||||
grid.FindColumn("BatchNo").Hidden = true;
|
||||
}
|
||||
}
|
||||
|
||||
#region OnInit
|
||||
|
||||
protected override void OnInit(EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user