Beispiel #1
0
        /// <summary>
        /// Purpose: Grabs all language labels
        /// Accepts: Nothing
        /// Returns: List<LangLabel>
        /// </summary>
        public List<LangLabel> GetAllLangLabels()
        {
            List<LangLabel> langlabels = new List<LangLabel>();
            try
            {
                LangLabelData data = new LangLabelData();
                List<QSRDataObjects.LangLabel> dataAudits = data.GetAllLangLabels();

                foreach (QSRDataObjects.LangLabel l in dataAudits)
                {
                    LangLabel langLabel = new LangLabel();
                    langLabel.LangLabelCode = l.LangLabelCode;
                    langLabel.Value = l.Value;
                    langLabel.Modified = l.Modified;
                    langlabels.Add(langLabel);
                }
            }
            catch (Exception ex)
            {
                ErrorRoutine(ex, "LangLabel", "GetAllLangLabels");
            }
            return langlabels;
        }
Beispiel #2
0
        /// <summary>
        /// Purpose: Grabs language label information based on language label code
        /// Accepts: String
        /// Returns: Nothing
        /// </summary>
        public void GetLangLabelByCode(string code)
        {
            try
            {
                LangLabelData data = new LangLabelData();
                Hashtable hsh = new Hashtable();

                hsh = data.GetLangLabelByCode(code);

                LangLabelCode = code;
                Value = hsh["value"];
                Modified = hsh["modified"];
            }
            catch (Exception ex)
            {
                ErrorRoutine(ex, "LangLabel", "GetLangLabelByCode");
            }
        }