Пример #1
0
        } // SetAttributeHeader

        /// <summary>
        /// reload data from database, all modified attributes is refill
        /// </summary>
        public void Refresh()
        {
            CheckSelect();
            FModified = false;
            //ПОДСОСЕМ ИЗ ЖУРНАЛА
            FoundIDDorID(ID, true);

            //ПОДСОСЕМ ИЗ ШАПКИ
            //формируем список атрибутов шапки
            if (HeaderAttributes.Count > 0)
            {
                List <string> FieldList = new List <string>();
                foreach (KeyValuePair <string, object> pair in HeaderAttributes)
                {
                    FieldList.Add(pair.Key);
                }
                if (!SS.GetDocData(ID, TypeDoc, FieldList, out HeaderAttributes))
                {
                    return; //не срослось
                }
            }
        } // Refresh