Exemplo n.º 1
0
        private void treeList1_AfterFocusNode(object sender, DevExpress.XtraTreeList.NodeEventArgs e)
        {
            NodoDominio nodoSeleccionado = _nodosDominio[e.Node];
            NodoDominio nodoPadre        = TipoProyectoUIMgr.Instancia.GetNodoPadre(nodoSeleccionado);

            OnTipoProyectoSeleccionado(nodoSeleccionado.Dominio, nodoPadre.Dominio);
        }
Exemplo n.º 2
0
        //关系树
        private void treeList_RelationList_AfterFocusNode(object sender, DevExpress.XtraTreeList.NodeEventArgs e)
        {
            if (e.Node == null)
            {
                return;
            }

            //关系属性节点获取
            g_relationInfo.RELATIONINFO_CODE              = e.Node.GetValue("RELATIONINFO_CODE").ToString();
            g_relationInfo.RELATIONINFO_CREATETIME        = e.Node.GetValue("RELATIONINFO_CREATETIME").ToString();
            g_relationInfo.RELATIONINFO_GRADE             = Convert.ToInt32(e.Node.GetValue("RELATIONINFO_GRADE"));
            g_relationInfo.RELATIONINFO_ID                = e.Node.GetValue("RELATIONINFO_ID").ToString();
            g_relationInfo.RELATIONINFO_IFDETAIL          = e.Node.GetValue("RELATIONINFO_IFDETAIL").ToString();
            g_relationInfo.RELATIONINFO_IFINVALID         = e.Node.GetValue("RELATIONINFO_IFINVALID").ToString();
            g_relationInfo.RELATIONINFO_LASTMODIFIEDTIME  = e.Node.GetValue("RELATIONINFO_LASTMODIFIEDTIME").ToString();
            g_relationInfo.RELATIONINFO_MODIFICATIONTIMES = e.Node.GetValue("RELATIONINFO_MODIFICATIONTIMES").ToString();
            g_relationInfo.RELATIONINFO_NAME              = e.Node.GetValue("RELATIONINFO_NAME").ToString();
            g_relationInfo.RELATIONINFO_NOTE              = e.Node.GetValue("RELATIONINFO_NOTE").ToString();
            g_relationInfo.RELATIONINFO_PARENTID          = e.Node.GetValue("RELATIONINFO_PARENTID").ToString();

            this.memoEdit_Info.Text     = g_relationInfo.RELATIONINFO_NOTE;
            this.memoEdit_InfoName.Text = g_relationInfo.RELATIONINFO_NAME;

            //注意:::当没有属性或者对像时,可以直接显示全部!
            //if(g_LpropertyData != null && g_RpropertyData != null)
            //{
            //    //获取关系树信息
            //    //this.g_relationDataList =
            //    this.gridControl_RelationDataList.DataSource = this.g_relationDataList;

            //}
        }
Exemplo n.º 3
0
        //右事件节点获取
        private void treeList_REvent_AfterFocusNode(object sender, DevExpress.XtraTreeList.NodeEventArgs e)
        {
            if (e.Node == null)
            {
                return;
            }

            //右事件节点获取
            g_ReventInfo.EVENTINFO_CODE              = e.Node.GetValue("EVENTTYPE_ID").ToString();
            g_ReventInfo.EVENTINFO_CREATETIME        = e.Node.GetValue("EVENTINFO_CREATETIME").ToString();
            g_ReventInfo.EVENTINFO_GRADE             = Convert.ToInt32(e.Node.GetValue("EVENTINFO_GRADE"));
            g_ReventInfo.EVENTINFO_ID                = e.Node.GetValue("EVENTINFO_ID").ToString();
            g_ReventInfo.EVENTINFO_IFDETAIL          = e.Node.GetValue("EVENTINFO_IFDETAIL").ToString();
            g_ReventInfo.EVENTINFO_IFINVALID         = e.Node.GetValue("EVENTINFO_IFINVALID").ToString();
            g_ReventInfo.EVENTINFO_LASTMODIFIEDTIME  = e.Node.GetValue("EVENTINFO_LASTMODIFIEDTIME").ToString();
            g_ReventInfo.EVENTINFO_MODIFICATIONTIMES = e.Node.GetValue("EVENTINFO_MODIFICATIONTIMES").ToString();
            g_ReventInfo.EVENTINFO_NAME              = e.Node.GetValue("EVENTINFO_NAME").ToString();
            g_ReventInfo.EVENTINFO_NOTE              = e.Node.GetValue("EVENTINFO_NOTE").ToString();
            g_ReventInfo.EVENTINFO_PARENTID          = e.Node.GetValue("EVENTINFO_PARENTID").ToString();

            this.memoEdit_Info.Text     = g_ReventInfo.EVENTINFO_NOTE;
            this.memoEdit_InfoName.Text = g_ReventInfo.EVENTINFO_NAME;

            this.RObject = "Revent";
        }
Exemplo n.º 4
0
 private void treeList1_AfterFocusNode(object sender, DevExpress.XtraTreeList.NodeEventArgs e)
 {
     if (e.Node.Tag != null)
     {
         this.lblDLL.Text       = e.Node.ParentNode.GetValue("name").ToString();
         this.lblClassName.Text = e.Node.GetValue("name").ToString();
     }
 }