private void AddMaterial(ProcessInfoLineParam pilp, TableRow tRow, int resourceId) { var tCell = new TableCell(); var lblPILP = new Label { Text = $"{pilp.ParameterName}) {pilp.ProcessInfoLineParamID}" }; lblPILP.Attributes["class"] = "lbl-pilp"; lblPILP.Attributes["resourceID"] = resourceId.ToString(); lblPILP.Attributes["pilpID"] = pilp.ProcessInfoLineParamID.ToString(); tCell.Attributes["class"] = "name-column right-border-thick"; tCell.Controls.Add(lblPILP); tRow.Cells.Add(tCell); }
public IProcessInfoLineParam AddProcessInfoLineParam(int resourceId, string paramName, string paramUnit, int paramType) { var result = new ProcessInfoLineParam { ProcessInfoLineParamID = 0, ResourceID = resourceId, ParameterName = paramName, ParameterUnit = paramUnit, ParameterType = paramType, }; Session.Save(result); return(result); }