示例#1
0
        /// <summary>Loads the data from a row
        /// </summary>
        /// <param name="inRow">The data row</param>
        /// <param name="meta">For config.codes </param>
        public PXSqlValuepool(QueryLib_24.ValuePoolRow inRow, PXSqlMeta_24 meta)
        {
            this.vpRow = inRow;

            if (this.ValueTextExists.Equals(meta.Config.Codes.ValueTextExistsN))
            {
                this.mValueTextOption = PXConstant.VALUETEXTOPTION_NOTEXT;
            }
            else
            {
                this.mValueTextOption = PXConstant.VALUETEXTOPTION_NORMAL;
            }

            mPresText = new Dictionary <string, string>();
            mDomain   = new Dictionary <string, string>();
            foreach (string langCode in vpRow.texts.Keys)
            {
                mPresText[langCode] = vpRow.texts[langCode].PresText;
                mDomain[langCode]   = vpRow.texts[langCode].ValuePoolAlias;
                if (String.IsNullOrEmpty(mDomain[langCode]))
                {
                    mDomain[langCode] = vpRow.texts[langCode].ValuePoolAlias;
                }
            }
        }
示例#2
0
        //public PXSqlValuepool() { }

        /// <summary>Loads the data from a row
        /// </summary>
        /// <param name="inRow">The data row</param>
        /// <param name="meta">For config.codes </param>
        public PXSqlValuepool(QueryLib_21.ValuePoolRow inRow, PXSqlMeta_21 meta)
        {
            this.vpRow = inRow;

            if (this.ValueTextExists.Equals(meta.Config.Codes.ValueTextExistsN))
            {
                this.mValueTextOption = PXConstant.VALUETEXTOPTION_NOTEXT;
            }
            else if (this.ValueTextExists.Equals(meta.Config.Codes.ValueTextExistsX))
            {
                this.mValueTextOption = PXConstant.VALUETEXTOPTION_TOOLONG;
            }
            else
            {
                this.mValueTextOption = PXConstant.VALUETEXTOPTION_NORMAL;
            }

            mPresText = new Dictionary <string, string>();
            mDomain   = new Dictionary <string, string>();
            foreach (string langCode in vpRow.texts.Keys)
            {
                mPresText[langCode] = vpRow.texts[langCode].PresText;
                mDomain[langCode]   = vpRow.texts[langCode].ValuePoolLangDependent;
            }
        }