Пример #1
0
 private void menuItem1_Click_1(object sender, System.EventArgs e)
 {
     try
     {
         Neusoft.HISFC.Models.Base.UserText obj = this.GetSelectedObject(this.treeView1.SelectedNode);
         if (obj == null)
         {
             return;
         }
         ucUserSnomedTextControl u = new ucUserSnomedTextControl();
         u.UserText = obj;
         Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(u);
         this.RefreshList();
     }
     catch { }
 }
Пример #2
0
        /// <summary>
        /// 新建立
        /// </summary>
        /// <param name="Text"></param>
        /// <param name="RichText"></param>
        /// <returns></returns>
        public int Add(string Text, string RichText)
        {
            Neusoft.HISFC.Models.Base.UserText obj = new Neusoft.HISFC.Models.Base.UserText();
            obj.Text     = Text;
            obj.RichText = RichText;
            if (this.groupInfo != null && this.groupInfo.ID != "")
            {
                obj.Group.ID   = this.groupInfo.ID;
                obj.Group.Name = this.groupInfo.Name;
            }
            ucUserSnomedTextControl u = new ucUserSnomedTextControl();

            u.UserText = obj;
            Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(u);
            this.RefreshList();
            return(0);
        }