//private BigDecimal unitRate = BigDecimalMath.ZERO; public ParamItemGroupCode(ParamItemCache outerInstance, string codeAndTitle) { this.outerInstance = outerInstance; if (!InstanceFieldsInitialized) { InitializeInstanceFields(); InstanceFieldsInitialized = true; } this.codeAndTitle = codeAndTitle; if (!string.ReferenceEquals(codeAndTitle, null) && codeAndTitle.Contains(" - ")) { int idx = codeAndTitle.IndexOf(" - ", StringComparison.Ordinal); if (idx + 3 < codeAndTitle.Length) { title = codeAndTitle.Substring(idx + 3); } else { title = ""; } } else { title = ""; } groupCode = title; }
public ParamItemGroupCode(ParamItemCache outerInstance, ParamItemTable paramItemTable) { this.outerInstance = outerInstance; if (!InstanceFieldsInitialized) { InitializeInstanceFields(); InstanceFieldsInitialized = true; } ParamItemTable = paramItemTable; }