Пример #1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="ucText"></param>
 public frmKBSCommonSectionVIEW(ZYTextInput inputText)
 {
     InitializeComponent();
     App.UsControlStyle(this);
     this.inputText = inputText;
     text           = new frmText();
     text.Dock      = DockStyle.Fill;
     IsTextInput    = true;
 }
Пример #2
0
        public FrmKBSVIEW(ZYTextInput inputText)
        {
            InitializeComponent();

            frmKBSCommonSectionVIEW frmKBSSEC = new frmKBSCommonSectionVIEW(inputText);

            this.Controls.Add(frmKBSSEC);
            frmKBSSEC.Dock = DockStyle.Fill;
        }
Пример #3
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="ucText"></param>
        public frmKBSCommonVIEW(ZYTextInput inputText)
        {
            InitializeComponent();
            App.UsControlStyle(this);
            text      = new frmText();
            text.Dock = DockStyle.Fill;
            this.panel6.Controls.Add(text);
            this.inputText = inputText;
            IsTextInput    = true;

            this.btnComplexSave.Visible = false;
        }
Пример #4
0
 public void setfrKnowledge(ZYTextInput _select, ZYTextDocument _myDocument)
 {
     if (this.myDocument == null)
     {
         this.myDocument = _myDocument;
     }
     Flag          = true;
     this.mySelect = _select;
     enable();
     FindNode(this.tvDirectory.Nodes, _select.Name, _select.ListSource);
     this.tvDirectory_AfterSelect(null, null);
     this.tvDirectory.Focus();
 }
        private void TvMacrosElements_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (this.tvMacrosElements.SelectedNode.Tag is T_MACROS_ELEMENTS)
            {
                var entity = this.tvMacrosElements.SelectedNode.Tag.As <T_MACROS_ELEMENTS>();
                var emrDoc = editorControl.EMRDoc;
                List <ZYTextElement> elements = new List <ZYTextElement>();
                ArrayList            list1    = new ArrayList();
                entity.Name.ToList().ForEach(c =>
                {
                    ZYTextChar zc = new ZYTextChar()
                    {
                        OwnerDocument = emrDoc,
                        Char          = c
                    };
                    elements.Add(zc);
                    list1.Add(zc);
                });

                if (entity.Join != null)
                {
                    entity.Join.ToList().ForEach(c =>
                    {
                        ZYTextChar zc = new ZYTextChar()
                        {
                            OwnerDocument = emrDoc,
                            Char          = c
                        };
                        elements.Add(zc);
                        list1.Add(zc);
                    });
                }


                ZYTextInput input = new ZYTextInput()
                {
                    OwnerDocument = emrDoc,
                    Name          = entity.Name,
                    Text          = entity.Default_Value ?? "",
                    cFormat       = entity.Format
                };
                elements.Add(input);
                list1.Add(input);
                emrDoc.Content.InsertRangeElements(list1);
            }
        }