Beispiel #1
0
        internal PXSqlNotes(PXSqlMeta_22 mMeta, string mMainTableId, bool inPresentationModus)
        {
            this.mMeta      = mMeta;
            this.mVariables = mMeta.Variables;

            this.mSubTables    = mMeta.SubTables;
            this.mContents     = mMeta.Contents;
            this.mTimeVariable = mMeta.TimeVariable;
            this.mMainTableId  = mMainTableId;


            this.showFootnotesCodes = new StringCollection();
            if (inPresentationModus)
            {
                showFootnotesCodes.Add(mMeta.Config.Codes.FootnoteShowP);
            }
            else
            {
                showFootnotesCodes.Add(mMeta.Config.Codes.FootnoteShowS);
            }
            showFootnotesCodes.Add(mMeta.Config.Codes.FootnoteShowB);

            allRelevantFoonotes = mMeta.MetaQuery.GetRelevantFoonotes(this.mMainTableId);
            //Adding footnotes for grouping
            allRelevantFoonotes.AddRange(this.getRelevantGroupingNotes(inPresentationModus));



            this.SetFootNotes();
        }
Beispiel #2
0
        private void BuildMeta()
        {
            SetInstanceModus();

            mMetaQuery.LanguageCodes = LanguageCodes; // instanced above, now just set language

            mPXMetaAdmValues = new PXMetaAdmValues(mMetaQuery);

            if (inPresentationModus)
            {
                mPxsqlNpm = new PXSqlNpm(this); //trenger valium dette
            }



            SetMainTable();

            //mSubTables = new PXSqlSubTables(mMetaQuery.GetSubTableRows(mMainTableId), mPxsSubTableId);
            mSubTables = new PXSqlSubTables(mMetaQuery.GetSubTableRows(mMainTableId, false), mPxsFile, this);



            SetVariables(); //ok for pxs == null, men denne kan også hente ut valueSet
            SetContents();  //må skrives om, men kall til metaQ OK. Bør kanskje legge inn contents som
            SetHeadingAndStub();



            // hmm petros bruke TIMEVAL nøkkelord for å bestemme om en variabel er tid, men timeval
            // er ikke obligatorisk og har ingen mening i "valg modus".  Johannes trenger å vite om en
            //variabel er tid for å danne korrekt pxs.
            //     if (instancemodus == Instancemodus.presentation)
            //     {
            // SetTimeVal(); Not used. Defined in PXSqlVariableTime
            SetPaxiomMap();                                         //ok for pxs == null, men jeg forstår ikke helt hva den gjør.
            mEliminatedVariablesExist = CheckEliminatedVariables(); //ok for pxs == null

            theNotes          = new PXSqlNotes(this, mMainTableId, this.inPresentationModus);
            mDataTablesPrefix = mMetaQuery.GetDataTablesPrefix(mMainTable.ProductId);
            CheckPxs();
        }