Ejemplo n.º 1
0
 public RelevantFootNotesRow(DataRow myRow, SqlDbConfig_22 dbconf, StringCollection languageCodes)
 {
     this.mFootNoteNo = myRow["FootNoteNo"].ToString();
     //this.mFootNoteType = myRow["FootNoteType"].ToString();
     this.mFootNoteType = (PXSqlNoteType)Enum.Parse(typeof(PXSqlNoteType), myRow["FootNoteType"].ToString());
     this.mContents     = myRow["Contents"].ToString();
     this.mVariable     = myRow["Variable"].ToString();
     this.mValuePool    = myRow["ValuePool"].ToString();
     this.mValueCode    = myRow["ValueCode"].ToString();
     this.mTimePeriod   = myRow["TimePeriod"].ToString();
     this.mSubTable     = myRow["SubTable"].ToString();
     this.mMandOpt      = myRow["MandOpt"].ToString();
     this.mShowFootNote = myRow["ShowFootNotes"].ToString();
     foreach (string languageCode in languageCodes)
     {
         texts.Add(languageCode, new RelevantFoonotesTexts(myRow, dbconf, languageCode));
     }
 }
Ejemplo n.º 2
0
        public RelevantFootNotesRow(string variable, FootnoteRow fr, SqlDbConfig_22 dbconf, StringCollection languageCodes)
        {
            this.mFootNoteNo = fr.FootnoteNo;

            this.mFootNoteType = PXSqlNoteType.Variable;  // well, not really but sort of, I hope
            this.mContents     = "*";
            this.mVariable     = variable;
            this.mValuePool    = "*";
            this.mValueCode    = "*";
            this.mTimePeriod   = "*";
            this.mSubTable     = "*";
            this.mMandOpt      = fr.MandOpt;
            this.mShowFootNote = fr.ShowFootnote;
            foreach (string languageCode in languageCodes)
            {
                texts.Add(languageCode, new RelevantFoonotesTexts(fr.texts[languageCode].FootnoteText));
            }
        }