private void barButtonItem_EditInfo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (TreeList_Event.FocusedNode == null) { return; } TreeListNode node = this.TreeList_Event.FocusedNode; Frm_EventCard card = new Frm_EventCard(); if (node.GetValue("NodeType").ToString() == "EventType") { MessageBox.Show("选择的是事件"); } else if (node.GetValue("NodeType").ToString() == "EventInfo") { card.eventInfo.EVENTINFO_TYPEID = node.GetValue("EVENTTYPE_PARENTID").ToString(); } card.eventInfo.EVENTINFO_CREATETIME = node.GetValue("EVENTTYPE_CREATETIME").ToString(); card.eventInfo.EVENTINFO_ID = node.GetValue("EVENTTYPE_ID").ToString(); card.eventInfo.EVENTINFO_IFINVALID = node.GetValue("EVENTTYPE_IFINVALID").ToString(); card.eventInfo.EVENTINFO_LASTMODIFIEDTIME = node.GetValue("EVENTTYPE_LASTMODIFIEDTIME").ToString(); card.eventInfo.EVENTINFO_MODIFICATIONTIMES = node.GetValue("EVENTTYPE_MODIFICATIONTIMES").ToString(); if (card.ShowDialog() == DialogResult.OK) { //重新加载表单,事件卡片只写数 this.Frm_EventList_Load(null, null); } }
private void barButtonItem_Sentence_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Frm_EventCard frm = new Frm_EventCard(); frm.ShowDialog(); this.robjectId = frm.objectid; }