private void tlBom_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { //bomprt = sender as bomParent; // Treebomid = tlBom.FocusedNode.ToString(); //TreeListHitInfo hi = tlBom.CalcHitInfo(e.Node.Id); }
private void menuTreeList_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { TreeListNode treeListNode = e.Node; NodeInfo nodeInfo = treeListNode.GetValue(0) as NodeInfo; if (nodeInfo != null) { ShowControl(nodeInfo); } }
private void treeListThongKe_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { //try //{ // type = e.Node.GetValue(0).ToString(); //} //catch (Exception ex) //{ //} }
/// <summary> /// 节点筛选 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void treeListJD_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (e.Node == null) { return; } if (this.m_DataTable == null) { return; } if (this.m_DataTable.Rows.Count == 0) { return; } switch (e.Node.GetValue("ValueMember").ToString().Trim()) { case "自主报价": this.m_DataTable.DefaultView.RowFilter = "1=1"; break; case "全部人材机": this.m_DataTable.DefaultView.RowFilter = "1=1"; break; case "全部人工": this.m_DataTable.DefaultView.RowFilter = string.Format("LB in ({0})", _Constant.rg); break; case "全部材料": this.m_DataTable.DefaultView.RowFilter = string.Format("LB in ({0})", _Constant.cl); break; case "主要材料": this.m_DataTable.DefaultView.RowFilter = "LB='材料' OR LB='主材' OR LB='设备'"; break; case "配合比材料": this.m_DataTable.DefaultView.RowFilter = "LB='配合比'"; break; case "全部机械": this.m_DataTable.DefaultView.RowFilter = string.Format("LB in ({0})", _Constant.jx); break; case "可分解机械台班": this.m_DataTable.DefaultView.RowFilter = "LB like '%台班%'"; break; case "不可分解机械": this.m_DataTable.DefaultView.RowFilter = "LB='机械' OR LB='吊装机械'"; break; case "主材": this.m_DataTable.DefaultView.RowFilter = "LB='主材'"; break; case "设备": this.m_DataTable.DefaultView.RowFilter = "LB='设备'"; break; case "锁定市场价人材机": this.m_DataTable.DefaultView.RowFilter = "IFSDSCDJ='True'"; break; case "计算风险人材机": this.m_DataTable.DefaultView.RowFilter = "IFFX='True'"; break; case "存在价差人材机": this.m_DataTable.DefaultView.RowFilter = "DJC<>0"; break; case "补充人材机": this.m_DataTable.DefaultView.RowFilter = "BH Like '补%' OR BH Like 'BC%'"; break; case "甲供材料": this.m_DataTable.DefaultView.RowFilter = "YTLB='甲供材料'"; break; case "甲定乙供材料": this.m_DataTable.DefaultView.RowFilter = "YTLB='甲定乙供材料'"; break; case "评标指定材料": this.m_DataTable.DefaultView.RowFilter = "YTLB='评标指定材料'"; break; case "暂定价材料": this.m_DataTable.DefaultView.RowFilter = "YTLB='暂定价材料'"; break; case "三大材汇总": this.m_DataTable.DefaultView.RowFilter = "SDCLB<>''"; break; default: this.m_DataTable.DefaultView.RowFilter = "1=2"; break; } }
private void objectTree_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (e.Node == null) { disconnectItem.Enabled = false; UI.Instance.ShowProperty(null, null); } ObjectExplorerNodeTag nodeTag = e.Node.Tag as ObjectExplorerNodeTag; saveItem.Enabled = nodeTag.Inquiry.IsModified; disconnectItem.Enabled = true; UI.Instance.ShowProperty(nodeTag.Value, nodeTag.Inquiry); }
private void prodiclist_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { }
/// <summary> /// �ڵ��л��ı����� /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void TreeDin_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (e.Node == null) { return; } int rowIndex = 0; string tag = basefun.valtag(Convert.ToString(e.Node.Tag), "ID"); if (string.IsNullOrEmpty(tag)) { tag = Convert.ToString(e.Node.Tag); DinName = tag; } else { tag = basefun.valtag(Convert.ToString(e.Node.Tag), "ID"); DinName = tag; } DataTable tab = ds.Tables["����ά��"]; rowIndex = 0; foreach (DataRow dr in tab.Rows) { rowIndex++; if (DataRowState.Deleted != dr.RowState && dr["id"].ToString() == tag) { BindingManagerBase bindMgrbase = this.BindingContext[tab]; if (bindMgrbase != null) { bindMgrbase.Position = rowIndex - 1; } break; } } #region ˢ�¼�¼ CheckByDin(dbEateyTime, "1", tag); CheckByDin(dbMenu, "2", tag); CheckByDin(dbDev, "4", tag); CheckByDin(dbMoney, "3", tag); this.txtDinName.TabIndex = 1; #endregion }
private void TreeList1_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { try { var s = FullNameByNode(e.Node, 0); sp = s.Split('\\'); var SelectebNodes = TreeList1.Selection; DataBlock dbCurrent = null; //Node: DataBlock Device dvCurrent = null; //Node: Device Channel chCurrent = null; //Node: Channel TreeListNode dbNode = null; TreeListNode dvNode = null; TreeListNode chNode = null; switch (SelectebNodes[0].Level) { case 0: chCurrent = objChannelManager.GetByChannelName(TreeList1.FocusedNode.GetDisplayText(0)); switch (chCurrent.ConnectionType) { case "SerialPort": vGridSerialPort.Visible = true; bChannelEthernet = new List <Channel>(); bDISerialPort = new List <DISerialPort>(); var dis = (DISerialPort)chCurrent; bChannelEthernet.Add(chCurrent); bDISerialPort.Add(dis); vGridSerialPort.DataSource = bDISerialPort; vGridChannel.DataSource = bChannelEthernet; vGridEthernet.Visible = false; break; case "Ethernet": vGridEthernet.Visible = true; bChannelEthernet = new List <Channel>(); bDIEthernet = new List <DIEthernet>(); var die = (DIEthernet)chCurrent; bChannelEthernet.Add(chCurrent); bDIEthernet.Add(die); vGridEthernet.DataSource = bDIEthernet; vGridChannel.DataSource = bChannelEthernet; vGridSerialPort.Visible = false; break; } break; case 1: bvDevice = new List <Device>(); chCurrent = objChannelManager.GetByChannelName(TreeList1.FocusedNode.ParentNode.GetDisplayText(0)); dvCurrent = objDeviceManager.GetByDeviceName(chCurrent, TreeList1.FocusedNode.GetDisplayText(0)); bvDevice.Add(dvCurrent); vGridDevice.DataSource = bvDevice; break; case 2: dbNode = SelectebNodes[0]; // Node:DataBlock dvNode = dbNode.ParentNode; // Node:Device chNode = dvNode.ParentNode; // Node:Channel var channelName = chNode["Name"].ToString(); var DeviceName = dvNode["Name"].ToString(); var DataBlockName = dbNode["Name"].ToString(); chCurrent = objChannelManager.GetByChannelName(channelName); dvCurrent = objDeviceManager.GetByDeviceName(chCurrent, DeviceName); dbCurrent = objDataBlockManager.GetByDataBlockName(dvCurrent, DataBlockName); bvDataBlock = new List <DataBlock>(); bvDataBlock.Add(dbCurrent); vGridDataBlock.DataSource = bvDataBlock; _SelectedTag = new List <string>(); foreach (var tg in dbCurrent.Tags) { var tgName = $"{channelName}.{DeviceName}.{DataBlockName}.{tg.TagName}"; _SelectedTag.Add(tgName); } bS7Tags = new BindingList <Tag>(dbCurrent.Tags); RealTimeSource1.DataSource = bS7Tags; gridView1.Invalidate(); break; } } catch (Exception ex) { EventscadaException?.Invoke(this.GetType().Name, ex.Message); } }
void treeList_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (e.Node == null) return; m_HookHelper.CurrentCatalogItem = e.Node.Tag as ICatalogItem; }
private void tlGroup_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { }
private void treeView_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { ShowDataStoreProperties( ); }
private void treeList1_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { //EnableUpDownButtons(); }
private void treeListContas_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { //if (e.Node != null) // if (e.Node.Id != 0) // lastNode = e.Node; }
void treeListNhomKH_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { try { if (!isRefresh) { selectecdIDNodes = new StringBuilder(); PLBuildQueryFilter(); } } catch { } }
/// <summary> /// �������ڵ�ı� /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void treeUser_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (null == e || null == e.Node) return; int rowIndex = 0; string id = basefun.valtag(Convert.ToString(e.Node.Tag), "ID"); DataTable tab = this.ds.Tables["orgtreegroup"]; BindingManagerBase bindMgrbase = this.BindingContext[tab]; NameObjectList ps = new NameObjectList(); rowIndex = 0; foreach (DataRow dr in tab.Rows) { if (DataRowState.Deleted != dr.RowState && dr["id"].ToString() == id) { bindMgrbase.Position = rowIndex; ps["����"] = Convert.ToString(dr["����"]); break; } rowIndex++; } tab = this.dbUser.DataSource as DataTable; if (null == tab) return; tab.Clear(); this.Query.FillDataSet(tab.TableName, ps, tab.DataSet); }
private void treeListViTri_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { setDataView(); }
void OnTreeListFocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { this.selNode = e.Node; }
private void deviceTree_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (deviceTree.Nodes.Count > 0) { switch (deviceTree.FocusedNode.Level) { case 0: if (plc != null) { if (plc.CurrentDb == 0) { disconnectPlcBtnItem.Enabled = true; connectPlcBtnItem.Enabled = false; listemStopDbBtnItem.Enabled = false; listenDbBtnItem.Enabled = false; } else { disconnectPlcBtnItem.Enabled = false; connectPlcBtnItem.Enabled = false; listemStopDbBtnItem.Enabled = false; listenDbBtnItem.Enabled = false; } } else { disconnectPlcBtnItem.Enabled = false; connectPlcBtnItem.Enabled = true; listemStopDbBtnItem.Enabled = false; listenDbBtnItem.Enabled = false; } break; case 1: if (plc != null) { if (plc.CurrentDb == 0) { disconnectPlcBtnItem.Enabled = false; connectPlcBtnItem.Enabled = false; listemStopDbBtnItem.Enabled = false; listenDbBtnItem.Enabled = true; } else { disconnectPlcBtnItem.Enabled = false; connectPlcBtnItem.Enabled = false; listemStopDbBtnItem.Enabled = true; listenDbBtnItem.Enabled = false; } } else { disconnectPlcBtnItem.Enabled = false; connectPlcBtnItem.Enabled = false; listemStopDbBtnItem.Enabled = false; listenDbBtnItem.Enabled = false; } break; default: //propertyGrid.DataSource = null; break; } } }
/// <summary> /// Смена выделения узла в дереве /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void TreeList_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { LoadNomenclatureFeatures(e.Node.Tag as Nomenclature); }
private void schemaTree_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (e.Node == null) return; var table = (LoadableTable)e.Node.Tag; grid.Visible = table.State == TableState.Loaded; if (table.State == TableState.Loaded) { grid.DataSource = table.Table; gridView.PopulateColumns(); if (table.Schema.PrimaryKey != null) gridView.Columns[table.Schema.PrimaryKey.Name].Visible = false; gridView.BestFitColumns(); } }
void ucseg_menu_x_empresa_x_usuario_event_delegate_treeList_menu_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { }
/// <summary> /// treeList1和treeList2同步 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void treeList2_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (e.Node != null) { treeList1.Selection.Clear(); this.treeList1.SetFocusedNode(this.treeList1.FindNodeByKeyID(e.Node["ID"])); intFocuses = 2; } }
/// <summary> /// 调用FileRW中的方法,当treeClass中代表文件夹的焦点改变时,重新加载treeFile中的文件节点 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void treeClass_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { frw.TraverseFile(ref treeClass, ref treeFile); }
private void treeList1_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { TreeListMultiSelection selection = treeList1.Selection; try { if (selection.Count != 0) { Channel channel = null; Device device = null; DataBlock dataBlock = null; selection[0].ImageIndex = selection[0].Level; switch (selection[0].Level) { case 1: { short num = short.Parse(selection[0]["ChannelId"].ToString()); channel = objChannelManager.GetByChannelId(num); break; } case 2: { TreeListNode treeListNode2 = selection[0]; short num = short.Parse(treeListNode2.ParentNode["ChannelId"].ToString()); short deviceId = short.Parse(treeListNode2["DeviceId"].ToString()); channel = objChannelManager.GetByChannelId(num); device = objDeviceManager.GetByDeviceId(channel, deviceId); break; } case 3: { TreeListNode treeListNode = selection[0]; TreeListNode parentNode = treeListNode.ParentNode; short num = short.Parse(parentNode.ParentNode["ChannelId"].ToString()); short deviceId = short.Parse(parentNode["DeviceId"].ToString()); short dataBlockId = short.Parse(treeListNode["DataBlockId"].ToString()); channel = objChannelManager.GetByChannelId(num); device = objDeviceManager.GetByDeviceId(channel, deviceId); dataBlock = objDataBlockManager.GetByDataBlockId(device, dataBlockId); if (dataBlock.MemoryType == "Datablock") { gvTags.ViewCaption = $"Memory Type: {dataBlock.MemoryType} | DataBlock Name: {dataBlock.DataBlockName} | DataBlock Name: DB{dataBlock.StartAddress}".ToUpper(); } else { gvTags.ViewCaption = $"Memory Type: {dataBlock.MemoryType}".ToUpper(); } bsSource.DataSource = dataBlock.Tags; colTagName.BestFit(); break; } } if (channel == null) { propertyGridChannel.Visible = false; } else { propertyGridChannel.SelectedObject = channel; propertyGridChannel.Visible = true; } if (device != null) { propertyGridDevice.SelectedObject = device; propertyGridDevice.Visible = true; } else { propertyGridDevice.Visible = false; } if (dataBlock != null) { propertyGridDataBlock.SelectedObject = dataBlock; propertyGridDataBlock.Visible = true; if (dataBlock.Tags != null) { lblTagCount.Caption = $"Total: {dataBlock.Tags.Count} tags"; } } else { propertyGridDataBlock.Visible = false; lblTagCount.Caption = $"Total: {0} tags"; lblSelectedTagName.Caption = string.Format("Selected tag: {0}", "None"); } } } catch (Exception ex2) { XtraMessageBox.Show(this, ex2.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand); } }
private void treeList_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { FireChangedFocusedTreeNode(); }
void MyTreeList_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { MovementUpDownInMergeColumn(e); }
private void treeList2_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (treeList2.FocusedNode != null) { mainFormLearner = new Learner((string)treeList2.FocusedNode[1], GlobalProperties.loggedOnUserDivison); txtName.Text = mainFormLearner.Name; txtSurname.Text = mainFormLearner.Surname; txtUpdateID.Text = mainFormLearner.Id; datDOB.DateTime = mainFormLearner.DateOfBirth; } }
private void treeList1_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { var row = treeDealersList.GetDataRecordByNode(treeDealersList.FocusedNode); if (row == null) { TreeListFocusedId = -1; GetDealerInfo(0); } else { dynamic treeDealer = new {ID = 0, Dealer_ID = 0, dealerZovName = ""}; treeDealer = row; TreeListFocusedId = treeDealer.ID; GetDealerInfo(treeDealer.ID); } }
private void treeSolInterm_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { // mostrar detalle del nodo padre TreeListNode node = treeSolInterm.FocusedNode; if (node != null) { //apariencia TreeListNode parentNode = treeSolInterm.FocusedNode.ParentNode; if (parentNode == null) { // solo mostrar panel de padre, mostrar los datos del padre en las cajas gcSolutionParent.Visible = true; gcSolutionChild.Visible = false; paHeader.Height = 85; paSeparator.Visible = false; tbParentConcentration.Text = node["Concentration"].ToString(); gcSolutionParent.Text = node["Cod_solution"].ToString() + " - Solución Padre"; } else if (parentNode != null) { // mostrar paneles padre e hijo gcSolutionParent.Visible = true; gcSolutionChild.Visible = true; paHeader.Height = 252; paSeparator.Visible = true; //tbConcentration.Text = node["Concentration"].ToString(); //tbVolumen.Value = Convert.ToDecimal(node["Volumen"]); //tbAliquot.Value = Convert.ToDecimal(node["Aliquot"]); deDateIni.DateTime = Convert.ToDateTime(node["Date_begin"]); deDateEnd.DateTime = Convert.ToDateTime(node["Date_end"]); cbUser1.EditValue = Convert.ToInt16(node["Prepared_by"]); //ckDisabledSolution.Checked = !Convert.ToBoolean(node["Solution_status"]); //exPanel.Expanded = Convert.ToBoolean(node["Solution_status"]) ? false : true; DateTime currentDate = Comun.GetDate(); //laVigencia.Visible = currentDate >= deDateIni.DateTime.RankIni() && currentDate <= deDateEnd.DateTime.RankEnd() ? false : true; tbParentConcentration.Text = parentNode["Concentration"].ToString(); gcSolutionParent.Text = parentNode["Cod_solution"].ToString() + " - Solución Padre"; gcSolutionChild.Text = node["Cod_solution"].ToString() + " - Solución Hijo"; } // mostrar métodos int idsolution_interm = Convert.ToInt32(node["Idsolution_interm"]); Comun.TypePatternMr typePatterMr = Convert.ToInt32(node["Root_type_pattern"]) == 1 ? Comun.TypePatternMr.MrCertificado : Comun.TypePatternMr.SolucionPatron; gcMethods.DataSource = new ModSolInterm().GetLstTemplate_methodBySolution(idsolution_interm); ///si es nueva solución seleccionada, no mostrar chekbox y habilitar firma una vez modificado el volumen. ///si es solución existente, y el método seleccionado no está linkeado mostrar el chekbox. if (idsolution_interm == 0) { ckAssignMethod.Visible = false; ckAssignMethod.Checked = false; } else { CSolution_interm_methods solFound = new CSolution_interm_methodsFactory() .GetAll() .Where(x => x.Idsolution_interm == idsolution_interm && x.Idtemplate_method == Convert.ToInt32(cbMethod1.EditValue)).FirstOrDefault(); if (solFound == null) { ckAssignMethod.Visible = true; ckAssignMethod.Checked = false; } else { ckAssignMethod.Visible = false; ckAssignMethod.Checked = false; } } } }
private void tree_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { OnSelectionChanged(); }
private void trvSalarie_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { }
private void trlFamilia_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { VNombreFamilia = string.Empty; VNombreFamilia = e.Node.GetValue(TrFamilia).ToString(); }
private void NodeChanged(FocusedNodeChangedEventArgs nodeChanged) { FWWaitingMsg msg = new FWWaitingMsg(); loaiTaiLieu = HelpNumber.ParseInt64(nodeChanged.Node["ID"]); dt = DADocument.getDM_TAI_LIEU(loaiTaiLieu); gridDSCongviec.DataSource = dt; xem.Enabled = (gridDSCongviec.DataSource as DataTable).Rows.Count > 0; DataRow r = gridViewDSCongviec.GetDataRow(gridViewDSCongviec.FocusedRowHandle); if (r != null) { Load_gridview(HelpNumber.ParseInt64(r["ID"])); } else gridControlTaiLieu.DataSource = null; ButtonState(r); if (msg != null) msg.Finish(); msg.Finish(); }
/// <summary> /// 角色焦点切换时,更新权限表和包含用户表 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tvRole_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { RefreshView(); }
private void treeListPhong_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { try { phongid = Guid.Empty; cosoid = Guid.Empty; dayid = Guid.Empty; tangid = Guid.Empty; if(e.Node.GetValue(colloai)!= null) { switch (e.Node.GetValue(colloai).ToString()) { case "CoSo": cosoid = GUID.From(e.Node.GetValue(colid)); break; case "Dayy": dayid = GUID.From(e.Node.GetValue(colid)); cosoid = GUID.From(e.Node.ParentNode.GetValue(colid)); break; case "Tang": tangid = GUID.From(e.Node.GetValue(colid)); dayid = GUID.From(e.Node.ParentNode.GetValue(colid)); cosoid = GUID.From(e.Node.ParentNode.ParentNode.GetValue(colid)); break; case "Phong": phongid = GUID.From(e.Node.GetValue(colid)); break; } if (setData_phongid != null) setData_phongid(phongid); if (focusedRow_phong != null && (cosoid != Guid.Empty || dayid != Guid.Empty || tangid != Guid.Empty)) focusedRow_phong(); } } catch (Exception ex) { Debug.WriteLine(this.Name + "->treeListPhong_FocusedNodeChanged: " + ex.Message); } }
private void treeList1_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { }
/// <summary> /// 触发当前选择的用户变化事件 /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="DevExpress.XtraTreeList.FocusedNodeChangedEventArgs"/> instance containing the event data.</param> private void tlUser_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (e.Node != null) OnCurrentUserChanged(this, new EventArgs<string>(e.Node.GetDisplayText(colUserName))); }
private void treeListLopHoc_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { HienThi_Lai_BangDiem(); }
private void tree_LoaiTaiLieu_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { long id = HelpNumber.ParseInt64(e.Node["ID"]); node_ID = id; if (e.Node.Level != 0) { Them.Enabled = true; Xoa.Enabled = true; Sua.Enabled = true; xem.Enabled = true; dt = DADocument.getDM_TAI_LIEU(HelpNumber.ParseInt64(e.Node["ID"])); gridDSCongviec.DataSource = dt; DataRow r = gridViewDSCongviec.GetDataRow(gridViewDSCongviec.FocusedRowHandle); if (r != null) { load_gridview(HelpNumber.ParseInt64(r["ID"])); } else gridControlTaiLieu.DataSource = null; } else { duyet.Enabled = false; k_duyet.Enabled = false; Xoa.Enabled = true; Sua.Enabled = true; xem.Enabled = true; Them.Enabled = true; dt = DADocument.getDM_TAI_LIEU(1); gridDSCongviec.DataSource = dt; } DataRow dr = gridViewDSCongviec.GetDataRow(gridViewDSCongviec.FocusedRowHandle); if (dr != null) { load_gridview(HelpNumber.ParseInt64(dr["ID"])); ButtonState(dr); //if (HelpNumber.ParseInt32(dr["DUYET"]) == (int)DuyetSupportStatus.ChoDuyet) //{ // duyet.Enabled = true; // k_duyet.Enabled = true; //} //else if (HelpNumber.ParseInt32(dr["DUYET"]) == (int)DuyetSupportStatus.Duyet) //{ // duyet.Enabled = false; // k_duyet.Enabled = true; //} //else if (HelpNumber.ParseInt32(dr["DUYET"]) == (int)DuyetSupportStatus.KhongDuyet) //{ // duyet.Enabled = true; // k_duyet.Enabled = false; //} //if (DADocument.check_exists_taptin_in_tailieu(HelpNumber.ParseInt64(dr["ID"]))) //{ // Xoa.Enabled = false; //} } }
void UCSeg_Menu_x_Usuario_x_Empresa_event_treeListMenu_x_Usuario_x_Empresa_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { }
void _TreeList_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { CurrentNode = e.Node; }
/// <summary> /// 列出当前权限节点下所有的操作 /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="DevExpress.XtraTreeList.FocusedNodeChangedEventArgs"/> instance containing the event data.</param> private void tlAuth_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { AuthorizationNode authNode = e.Node.Tag as AuthorizationNode; ListAuthorizationCommands(authNode); }
private void TreeList_1_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (e.Node == null) { return; } else if (e.Node.ParentNode == null) grdThongtinTL.Grid.GridControl.DataSource = DADocument.getDM_TAI_LIEU(); else grdThongtinTL.Grid.GridControl.DataSource = DADocument.getDM_TAI_LIEU(HelpNumber.ParseInt64(e.Node.GetValue(0))); if (grdThongtinTL.Grid.RowCount > 0) grdThongtinTL.Grid.ExpandAllGroups(); }
private void treeList1_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (treeList1.FocusedNode != null) { nFilterID = System.Convert.ToInt32(treeList1.FocusedNode.GetValue("ID")); tblWorkFlowTableAdapter1.Fill(this.dsWorkFLowDetail.tblWorkFlow, nFilterID); if (this.dsWorkFLowDetail.tblWorkFlow.Rows.Count > 0) txtDetail.Text = this.dsWorkFLowDetail.tblWorkFlow.Rows[0]["strDetail"].ToString(); //if (e.OldNode != null) //{ // nID = System.Convert.ToInt32(e.OldNode.GetValue("ID")); // nDept = System.Convert.ToInt32(e.OldNode.GetValue("nDepartmentID")); // strDesc = txtDetail.Text; // strProj = e.OldNode.GetValue("strProject").ToString(); // tblWorkFlowTableAdapter.UpdateValue(strProj, nDept, strDesc, nID); //} } tblDeliveryScheduleTableAdapter.FillByWorkFlow(this.aCMSDataSet.TblDeliverySchedule, nFilterID); this.aCMSDataSet5.EnforceConstraints = false; this.tblAttachmentTableAdapter.Fill(this.aCMSDataSet5.tblAttachment, nFilterID); }
void treeAcronyms_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { FillCategoriesList(); }
private void OnFocusItemChange(object sender, FocusedNodeChangedEventArgs e) { tree_controlle_.OnFocusChanged(e.Node); }
private void treeList1_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (treeList1.FocusedNode != null) { try { string text = Database.Retrieve("ecdPayments", "learnerKey = " + learnerKey + " AND description = '" + getFullNodePathHyphen(treeList1.FocusedNode) + "'", "receiptNumber"); receiptText.Text = text; amountSubmitText.Text = ((double)(treeList1.FocusedNode[2])).ToString(); } catch { } } }
private void treeView1_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { cap = e.Node.Level.ToString(); id = e.Node.GetValue(0).ToString(); label1.Text = e.Node.GetValue(0).ToString(); LoadData(); //label1.Text = e.Node.Level.ToString(); }
private void treeList1_FocusedNodeChanged_1(object sender, FocusedNodeChangedEventArgs e) { }
private void tlServices_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { RaiseDataSourceChanged(e.Node); }
/// <summary> /// 过滤方案节点焦点改变事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void TrList_FltSlt_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { try { //将树节点切换成不可编辑模式 TrList_FltSlt.OptionsBehavior.Editable = false; SltEditNode = TrList_FltSlt.FocusedNode; System.Drawing.Point Point1 = new System.Drawing.Point(0, 4); string SltID = SltEditNode.GetValue("FSltID").ToString(); //1.根据过滤方案ID获取方案明细数据 List <ExpandoObject> List_EObj = Serializer.DeserializeXMLToEObject(ComClient.GetFltSltDtlBySltID(SltID)); if (SltID != "P01" && SltID != "S01") { //2.清空面板中的所有过滤控件 Pal_FlCtner.Controls.Clear(); } //3.依次读取过滤方案明细数据,根据读取到的数据设置过滤控件中每一个子控件的隐藏属性及控件的EditValue int i = 2; foreach (dynamic EObj in List_EObj) { UsrContr_Filter Filter = new UsrContr_Filter(AddType.Auto); Filter.Name = "UsrContr_Filter" + i.ToString(); Filter.Tag = i++; //初始化过滤控件 InitLkUp(Filter); string[] Names = { "LkUp_Brackets1", "SLkUp_ColNams", "LkUp_Cdt", "CBox_CdtValue1", "CBox_CdtValue2", "CBox_CdtValue3", "DEd_CdtValue3", "DEd_CdtValue5", "DEd_CdtValue6", "LkUp_Brackets2", "LkUp_Rlt" }; foreach (string name in Names) { //return; //查询出指定名称的控件 var Query = from Contr1 in Filter.Controls.Cast <Control>() where Contr1.Name == name select Contr1; Control Contr = Query.First <Control>(); if (Contr.Name == "LkUp_Brackets1") { //((LookUpEdit)Contr).Text = (string)EObj.FBrackets1Value; List <ExpandoObject> ListEObj = (List <ExpandoObject>)(((LookUpEdit)Contr).Properties.DataSource); var Qurey = from dynamic EObj1 in ListEObj where EObj1.FRemark == EObj.FBrackets1Value select EObj1; if (Qurey.Count <dynamic>() != 0) { dynamic EObj2 = Qurey.First <dynamic>(); ((LookUpEdit)Contr).EditValue = EObj2.FColNm; } } else if (Contr.Name == "SLkUp_ColNams") { List <ExpandoObject> ListEObj = (List <ExpandoObject>)(((SearchLookUpEdit)Contr).Properties.DataSource); var Qurey = from dynamic EObj1 in ListEObj where EObj1.FRemark == EObj.FColNamsValue select EObj1; if (Qurey.Count <dynamic>() != 0) { dynamic EObj2 = Qurey.First <dynamic>(); ((SearchLookUpEdit)Contr).EditValue = EObj2.FColNm; } } else if (Contr.Name == "LkUp_Cdt") { //((LookUpEdit)Contr).Text = (string)EObj.FCdt; List <ExpandoObject> ListEObj = (List <ExpandoObject>)(((LookUpEdit)Contr).Properties.DataSource); var Qurey = from dynamic EObj1 in ListEObj where EObj1.FRemark == EObj.FCdt select EObj1; if (Qurey.Count <dynamic>() != 0) { dynamic EObj2 = Qurey.First <dynamic>(); ((LookUpEdit)Contr).EditValue = EObj2.FColNm; } } else if (Contr.Name == "CBox_CdtValue1") { ((ComboBoxEdit)Contr).Text = (string)EObj.FCBoxCdtValue1; ((ComboBoxEdit)Contr).Visible = (string)EObj.FCBoxCdtValue1 == "null" ? false : true; } else if (Contr.Name == "CBox_CdtValue2") { ((ComboBoxEdit)Contr).Text = (string)EObj.FCBoxCdtValue2; ((ComboBoxEdit)Contr).Visible = (string)EObj.FCBoxCdtValue2 == "null" ? false : true; } else if (Contr.Name == "CBox_CdtValue3") { ((ComboBoxEdit)Contr).Text = (string)EObj.FCBoxCdtValue3; ((ComboBoxEdit)Contr).Visible = (string)EObj.FCBoxCdtValue3 == "null" ? false : true; } else if (Contr.Name == "DEd_CdtValue3") { ((DateEdit)Contr).Text = (string)EObj.FDedCdtValue3; ((DateEdit)Contr).Visible = (string)EObj.FDedCdtValue3 == "null" ? false : true; } else if (Contr.Name == "DEd_CdtValue5") { ((DateEdit)Contr).Text = (string)EObj.FDedCdtValue5; ((DateEdit)Contr).Visible = (string)EObj.FDedCdtValue5 == "null" ? false : true; } else if (Contr.Name == "DEd_CdtValue6") { ((DateEdit)Contr).Text = (string)EObj.FDedCdtValue6; ((DateEdit)Contr).Visible = (string)EObj.FDedCdtValue6 == "null" ? false : true; } else if (Contr.Name == "LkUp_Brackets2") { //((LookUpEdit)Contr).Text = (string)EObj.FBrackets2; List <ExpandoObject> ListEObj = (List <ExpandoObject>)(((LookUpEdit)Contr).Properties.DataSource); var Qurey = from dynamic EObj1 in ListEObj where EObj1.FRemark == EObj.FBrackets2 select EObj1; if (Qurey.Count <dynamic>() != 0) { dynamic EObj2 = Qurey.First <dynamic>(); ((LookUpEdit)Contr).EditValue = EObj2.FColNm; } } else if (Contr.Name == "LkUp_Rlt") { List <ExpandoObject> ListEObj = (List <ExpandoObject>)(((LookUpEdit)Contr).Properties.DataSource); var Qurey = from dynamic EObj1 in ListEObj where EObj1.FRemark == EObj.FRlt select EObj1; if (Qurey.Count <dynamic>() != 0) { dynamic EObj2 = Qurey.First <dynamic>(); ((LookUpEdit)Contr).EditValue = EObj2.FColNm; } //((LookUpEdit)Contr).Text ="或者"; Filter.addType = AddType.Manual; } } Pal_FlCtner.Controls.Add(Filter); if (Filter.Name != "UsrContr_Filter2") { Point1.Y = Point1.Y + 23; Filter.Location = Point1; } } } catch (Exception Ex) { Common.ShowMsg(Ex.Message); } }
private void treeList1_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { string aa = (string)e.Node.Tag; }
private void treeListViTri_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { setDataView(); }
private void treeSolInterm_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { // mostrar detalle del nodo padre TreeListNode node = treeSolInterm.FocusedNode; if (node != null) { //apariencia TreeListNode parentNode = treeSolInterm.FocusedNode.ParentNode; if (parentNode == null) { // solo mostrar panel de padre, mostrar los datos del padre en las cajas gcSolutionParent.Visible = true; gcSolutionChild.Visible = false; paHeader.Height = 85; paSeparator.Visible = false; tbParentConcentration.Text = node["Concentration"].ToString(); gcSolutionParent.Text = node["Cod_solution"].ToString() + " - Solución Padre"; } else if (parentNode != null) { // mostrar paneles padre e hijo gcSolutionParent.Visible = true; gcSolutionChild.Visible = true; paHeader.Height = 252; paSeparator.Visible = true; //tbConcentration.Text = node["Concentration"].ToString(); //tbVolumen.Value = Convert.ToDecimal(node["Volumen"]); //tbAliquot.Value = Convert.ToDecimal(node["Aliquot"]); deDateIni.DateTime = Convert.ToDateTime(node["Date_begin"]); deDateEnd.DateTime = Convert.ToDateTime(node["Date_end"]); cbUser1.EditValue = Convert.ToInt16(node["Prepared_by"]); //ckDisabledSolution.Checked = !Convert.ToBoolean(node["Solution_status"]); //exPanel.Expanded = Convert.ToBoolean(node["Solution_status"]) ? false : true; DateTime currentDate = Comun.GetDate(); //laVigencia.Visible = currentDate >= deDateIni.DateTime.RankIni() && currentDate <= deDateEnd.DateTime.RankEnd() ? false : true; tbParentConcentration.Text = parentNode["Concentration"].ToString(); gcSolutionParent.Text = parentNode["Cod_solution"].ToString() + " - Solución Padre"; gcSolutionChild.Text = node["Cod_solution"].ToString() + " - Solución Hijo"; } // mostrar métodos int idsolution_interm = Convert.ToInt32(node["Idsolution_interm"]); Comun.TypePatternMr typePatterMr = Convert.ToInt32(node["Root_type_pattern"]) == 1 ? Comun.TypePatternMr.MrCertificado : Comun.TypePatternMr.SolucionPatron; gcMethods.DataSource = new ModSolInterm().GetLstTemplate_methodBySolution(idsolution_interm); ///si es nueva solución seleccionada, no mostrar chekbox y habilitar firma una vez modificado el volumen. ///si es solución existente, y el método seleccionado no está linkeado mostrar el chekbox. if (idsolution_interm == 0) { ckAssignMethod.Visible = false; ckAssignMethod.Checked = false; } else { CSolution_interm_methods solFound = new CSolution_interm_methodsFactory() .GetAll() .Where(x => x.Idsolution_interm == idsolution_interm && x.Idtemplate_method == Convert.ToInt32(cbMethod1.EditValue)).FirstOrDefault(); if (solFound == null) { ckAssignMethod.Visible = true; ckAssignMethod.Checked = false; } else { ckAssignMethod.Visible = false; ckAssignMethod.Checked = false; } } } }
/// <summary> /// 当节点有子节点时,表名选中了该节点下所有子节点的用户编号,当没有子节点时,表名选中一个用户编号 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void treDept_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { string userNo = string.Empty; if (e.Node == null) return; //绑定门之前,先把树所有复选框置为false; NotRight(this.treDoorAll); string tag = basefun.valtag(Convert.ToString(e.Node.Tag), "ID"); if (e.Node.HasChildren) { foreach (DataRow dr in this.ds.Tables["卡发行"].Select("pid='" + tag + "'")) { if (userNo == string.Empty) { userNo = dr["用户编号"].ToString(); } else { userNo += "," + dr["用户编号"].ToString(); } } } else { userNo = basefun.valtag(Convert.ToString(e.Node.Tag), "用户编号"); } string[] checkUserNo = userNo.Split(','); foreach (string s in checkUserNo) { if (this.ds.Tables["门禁权限设置"].Select("用户编号='" + s + "'").Length > 0) { DataRow dr = this.ds.Tables["门禁权限设置"].Select("用户编号='" + s + "'")[0]; string[] Right = dr["权限"].ToString().Split(','); DataTable doorTab = this.ds.Tables["门"]; GetRight(Right, doorTab); } } this.treDoorAll.ExpandAll(); }
/// <summary> /// Подсвечиваем контрол на форме при фокусе его в дереве /// </summary> private void ControlsFocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (e.Node.Id == TreeList.AutoFilterNodeId) { return; } FocuseControl(((DataRowView)tlControls.GetDataRecordByNode(e.Node)).Row["Control"].GetControlTuner()); }
private void treeListPermission_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { SetEnable(); }
private void treeList1_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { //EnableUpDownButtons(); }
private void treeList1_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { if (e.Node != null) { #region Ẩn hiện chốt if (e.Node.GetDisplayText("THANG_NAM").Contains("Năm")) { barButtonItemChot.Enabled = false; } else{ barButtonItemChot.Enabled =true; if (e.Node.GetValue("IS_CHOT").Equals("Y")) { barButtonItemChot.Caption = "Mở chốt"; barButtonItemChot.Glyph = FWImageDic.NO_CHOICE_IMAGE20; if (tinhLuong != null) tinhLuong.Enabled = false; if (thanhToanLuong != null) thanhToanLuong.Enabled = false; if (ketChuyenTamUng != null) ketChuyenTamUng.Enabled = false; } else { barButtonItemChot.Caption = "Chốt"; barButtonItemChot.Glyph = FWImageDic.CHOICE_IMAGE20; if (tinhLuong != null) tinhLuong.Enabled = true; if (thanhToanLuong != null) thanhToanLuong.Enabled = true; if (ketChuyenTamUng != null) ketChuyenTamUng.Enabled = true; } } #endregion strBangLuong = e.Node.GetValue("THANG_NAM").ToString(); gridControlMaster.DataSource = HelpDB.getDatabase().LoadDataSet(GetDataTreeList1(strBangLuong)).Tables[0]; } }
private void treeListMenuMail_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { }