Esempio n. 1
0
            //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;
            }
Esempio n. 2
0
            public ParamItemGroupCode(ParamItemCache outerInstance, ParamItemTable paramItemTable)
            {
                this.outerInstance = outerInstance;

                if (!InstanceFieldsInitialized)
                {
                    InitializeInstanceFields();
                    InstanceFieldsInitialized = true;
                }
                ParamItemTable = paramItemTable;
            }