Exemplo n.º 1
0
        public void InsertDeItem(string aIndex, string aName)
        {
            DeItem vDeItem = FEmrView.NewDeItem(aName);

            vDeItem[DeProp.Index] = aIndex;
            vDeItem[DeProp.Name]  = aName;
            FEmrView.InsertDeItem(vDeItem);
        }
Exemplo n.º 2
0
        /// <summary> 插入一个数据元(文本形式) </summary>
        /// <param name="aIndex">数据元唯一标识</param>
        /// <param name="aName">数据元名称</param>
        public DeItem InsertDeItem(string aIndex, string aName)
        {
            if ((aIndex == "") || (aName == ""))
            {
                MessageBox.Show("要插入的数据元索引和名称不能为空!");
                return(null);
            }

            DeItem vDeItem = FEmrView.NewDeItem(aName);

            vDeItem[DeProp.Index] = aIndex;
            vDeItem[DeProp.Name]  = aName;
            FEmrView.InsertDeItem(vDeItem);
            return(vDeItem);
        }