コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }