private void OnMenuItemDoubleClick(object sender, RowDoubleClickEventArgs e) { if (e.HitInfo.InRow) { InvokeOnSelectMenuItem(); } }
private void Gv_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { TableView tv = sender as TableView; try { string ATTA_SEQ = tv.Grid.GetCellValue(e.HitInfo.RowHandle, "ATTA_SEQ").ToString(); string FTR_CDE = tv.Grid.GetCellValue(e.HitInfo.RowHandle, "FTR_CDE").ToString(); string FTR_IDN = tv.Grid.GetCellValue(e.HitInfo.RowHandle, "FTR_IDN").ToString(); // 부속세부시설윈도우 AttFacDtlView attFacDtlView = new AttFacDtlView(FTR_CDE, FTR_IDN, ATTA_SEQ); attFacDtlView.Owner = Window.GetWindow(this); //FIL_SEQ 리턴 if (attFacDtlView.ShowDialog() is bool) { //부속시설재조회 initModel(); } } catch (Exception ex) { Console.WriteLine(ex.Message); } }
//이력 상세팝업 호출 private void Gv_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { TableView tv = sender as TableView; try { string SEQ = tv.Grid.GetCellValue(e.HitInfo.RowHandle, "SEQ").ToString(); string FTR_CDE = tv.Grid.GetCellValue(e.HitInfo.RowHandle, "FTR_CDE").ToString(); string FTR_IDN = tv.Grid.GetCellValue(e.HitInfo.RowHandle, "FTR_IDN").ToString(); // 교체이력윈도우 WtrTrkHtDtlView wtrTrkHtDtlView = new WtrTrkHtDtlView(FTR_CDE, Convert.ToInt32(FTR_IDN), Convert.ToInt32(SEQ)); wtrTrkHtDtlView.Owner = Window.GetWindow(this); //SEQ 리턴 if (wtrTrkHtDtlView.ShowDialog() is bool) { //부속시설재조회 initModel(); } } catch (Exception ex) { Console.WriteLine(ex.Message); } }
private void onClientDoubleClickCommandExecuted(RowDoubleClickEventArgs e) { if (SelectedCustomer != null) { NavigationService.Navigate("ClientPageView", SelectedCustomer.CustomerID, this); } }
//선택한 첨부파일에 대한 파일창열기 private void Gv_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { TableView tv = sender as TableView; string FIL_SEQ = tv.Grid.GetCellValue(e.HitInfo.RowHandle, "FIL_SEQ").ToString(); try { // 파일첨부윈도우 FilePhotoView filePhotoView = new FilePhotoView(BIZ_ID, FIL_SEQ); filePhotoView.Owner = Window.GetWindow(this); //FIL_SEQ 리턴 if (filePhotoView.ShowDialog() is bool) { FIL_SEQ = filePhotoView.txtFIL_SEQ.Text; //AddFilSeqRow(FIL_SEQ); //첨부파일 한건추가할 필요없음 } //팝업열기 & 위치 //filePhotoView.IsOpen = false; //filePhotoView = new FilePhotoView(FIL_SEQ); //filePhotoView.PlacementRectangle = new Rect(100, 100, 550, 400); //filePhotoView.IsOpen = true; //filePhotoView.DataContext = this; } catch (Exception ex) { Messages.ShowErrMsgBox(ex.ToString()); } }
private void gridDetailView_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { // 화면 이동 try { // 선택한 ROW TableView tableView = sender as TableView; TableViewHitInfo tableViewHitInfo = e.HitInfo as TableViewHitInfo; object row = tableView.Grid.GetRow(tableViewHitInfo.RowHandle); if (row != null) { // 부품 string strEqpId = ((EmsAlarmStatusDetail)row).EQP_ID; string strEqpNm = ((EmsAlarmStatusDetail)row).EQP_NM; using (E3002_01P frmEchkErrReg = new E3002_01P(strEqpId, strEqpNm)) { frmEchkErrReg.ShowDialog(); } } } catch (Exception err) { this.BaseClass.Error(err); } }
private void gtEmployes_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { Champ indexEmploye = e.LigneCliquee.GetChamp("perId"); Champ nombreHeures = new Champ("employereunion", "erHeures", (int)nudNombreHeuresEmploye.Value); LigneTable reunion = ((LigneTable)((ComboBoxItem)cmbReunion.SelectedItem).Value); string infosEmploye = String.Format(FORMAT_PERSONNES_INCLUS, e.LigneCliquee.GetValeurChamp <string>("perNom"), e.LigneCliquee.GetValeurChamp <string>("perPrenom"), nombreHeures.Valeur); RequeteSelection reqSel = new RequeteSelection(NomTable.employereunion); reqSel.Condition = new ConditionRequete(Operateur.EGAL, indexEmploye); reqSel.Condition.LierCondition(new ConditionRequete(Operateur.EGAL, reunion.GetChamp("reuId")), true); if (!Global.BaseDonneesCABS.EnvoyerRequeteSelection(reqSel).EstVide) { Journal.AfficherMessage("Cet employé fait déjà partie de cette réunion. Retirez-le préalablement pour modifier son nombre d'heures.", TypeMessage.INFORMATION, false); return; } RequeteAjout reqAjout = new RequeteAjout(NomTable.employereunion, indexEmploye, reunion.GetChamp("reuId"), nombreHeures); if (Global.BaseDonneesCABS.EnvoyerRequeteAjout(reqAjout) < 0) { Journal.AfficherMessage("Une erreur est survenue lors de l'ajout de l'employé à la réunion. L'action a été annulée.", TypeMessage.ERREUR, true); return; } AjouterItem(lbEmployesInclus, new ComboBoxItem(infosEmploye, indexEmploye)); }
private void OnDoubleClickHandler(object sender, RowDoubleClickEventArgs e) { if (e.HitInfo.InRow) { RaiseEvent(new RoutedEventArgs(OnDoubleClickEvent)); } }
//선택된 항목으로 페이지이동 private void TableView_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { TableView tv = sender as TableView; try { string FTR_CDE = tv.Grid.GetCellValue(e.HitInfo.RowHandle, "FTR_CDE").ToString(); int FTR_IDN = Convert.ToInt32(tv.Grid.GetCellValue(e.HitInfo.RowHandle, "FTR_IDN")); ///페이지이동 - 뷰생성자로 파라미터키 전달 ///=> 뷰모델과바인딩된 객체값을 변경해서 뷰모델로 최종적으로 파라미터 전달 if ("BZ001".Equals(FTR_CDE)) { NavigationService.Navigate(new Blk01DtlView(FTR_CDE, FTR_IDN)); } else if ("BZ002".Equals(FTR_CDE)) { //NavigationService.Navigate(new Blk02DtlView(FTR_CDE, FTR_IDN)); } if ("BZ003".Equals(FTR_CDE)) { //NavigationService.Navigate(new Blk03DtlView(FTR_CDE, FTR_IDN)); } } catch (Exception ex) { Console.WriteLine(ex.Message); } }
private void RowDoubleClick(object sender, RowDoubleClickEventArgs e) { if (EnabledDateQueryFlag == true) { DateinitGridControl(); DateStatisSearch((e.Source.SelectedRows[0] as DataRowView).Row["发送数据IP"].ToString()); } }
private void OnViewRowDoubleClick(object sender, RowDoubleClickEventArgs e) { // отключаем командны для Autofilter if (e.HitInfo.RowHandle == AutoFilterRowHandle) { e.Handled = true; } }
private void NodeDoubleClick(object sender, RowDoubleClickEventArgs rowDoubleClickEventArgs) { if (!customTreeListControl.View.FocusedNode.HasChildren) { return; } customTreeListControl.View.FocusedNode.IsExpanded = !customTreeListControl.View.FocusedNode.IsExpanded; }
private void ShowEditFormCommandExecute(RowDoubleClickEventArgs args) { Appointment currentAppointment = Scheduler.Storage.AppointmentStorage.GetAppointmentById(CurrentModelAppointment.Id); if (currentAppointment != null) { Scheduler.ShowEditAppointmentForm(currentAppointment); } }
public object Convert(object sender, object args) { RowDoubleClickEventArgs e = args as RowDoubleClickEventArgs; if (e.HitInfo.RowHandle == GridControl.NewItemRowHandle) { return(true); } return(false); }
private void TableViewROIDocuments_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { if (!(sender is TableView tableView)) { return; } var mainWWindViewModel = tableView.DataContext as MainWindowViewModel; mainWWindViewModel?.OpenROIDocument(); }
private void OnNodeDoubleClick(object sender, RowDoubleClickEventArgs rowDoubleClickEventArgs) { if (rowDoubleClickEventArgs.HitInfo.RowHandle != customTreeListControl.View.FocusedNode.RowHandle) { rowDoubleClickEventArgs.Handled = true; } else { FocusedNodeExpand(); } }
private void GridView_OnRowDoubleClick(object sender, RowDoubleClickEventArgs e) { //Делаем так для того, что бы при двойном клике и после закрытия формы PrintPreview грид перестал выделять строки try { gridControl.IsEnabled = false; } finally { gridControl.IsEnabled = true; } }
private void OnNodeDoubleClick(object sender, RowDoubleClickEventArgs e) { if (e.HitInfo.RowHandle != TlCpv.View.FocusedNode.RowHandle) { e.Handled = true; } else if (TlCpv.View.FocusedNode.HasChildren) { TlCpv.View.FocusedNode.IsExpanded = !TlCpv.View.FocusedNode.IsExpanded; } }
private void OnViewRowDoubleClick(object sender, RowDoubleClickEventArgs e) { var tableView = sender as TableView; if (tableView == null) { return; } // отключаем командны для Autofilter if (e.HitInfo.RowHandle == AutoFilterRowHandle) { e.Handled = true; } }
void RowDoubleClick(RowDoubleClickEventArgs e) { int colIdx = e.HitInfo.Column.VisibleIndex; PlacementTarget = ((TableView)e.OriginalSource).GetCellElementByRowHandleAndColumn(e.HitInfo.RowHandle, e.HitInfo.Column); IsPopupOpened = false; IsPopupOpened = true; //PopupTop = PopupTop - PopupHeight; //PopupLeft = PopupLeft - PopupLeft / 2; //MainView view = (MainView)e.Source; //Point point = e.MouseDevice.GetPosition(view); }
private void TableView_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { TableView tv = sender as TableView; try { txtRET_CNT_NAM.Text = tv.Grid.GetCellValue(e.HitInfo.RowHandle, "RET_CNT_NAM").ToString(); DialogResult = true; Close(); } catch (Exception ex) { Messages.ShowErrMsgBox(ex.ToString()); } }
private void TreeListView_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { var node = (sender as TreeListView).GetNodeByRowHandle(e.HitInfo.RowHandle); if (node == null) { return; } if (node.IsExpanded) { (sender as TreeListView).CollapseNode(e.HitInfo.RowHandle); } else { (sender as TreeListView).ExpandNode(e.HitInfo.RowHandle); } }
public void ProcessDoubleClick(RowDoubleClickEventArgs e) { if (!e.HitInfo.InRow) { return; } if (Grid.IsGroupRowHandle(e.HitInfo.RowHandle)) { return; } if (e.HitInfo.Column.FieldName != "Theme") { return; } e.Handled = true; InverseCommitChange(e.HitInfo.RowHandle); }
//선택된 항목으로 페이지이동 private void TableView_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { TableView tv = sender as TableView; try { string SEQ = tv.Grid.GetCellValue(e.HitInfo.RowHandle, "SEQ").ToString(); ///페이지이동 - 뷰생성자로 파라미터키 전달 ///=> 뷰모델과바인딩된 객체값을 변경해서 뷰모델로 최종적으로 파라미터 전달 NavigationService.Navigate(new FaqDocView(SEQ)); } catch (Exception ex) { Console.WriteLine(ex.Message); } }
void OnRowDoubleClick(object sender, RowDoubleClickEventArgs e) { int rowHandle = e.HitInfo.RowHandle; if (rowHandle == GridControl.InvalidRowHandle) { return; } if (grid.IsGroupRowHandle(rowHandle)) { MessageBox.Show("A group row has been double clicked.", "Info"); } else { MessageBox.Show("A data row has been double clicked.", "Info"); } }
/// <summary> /// 그리드 Row 더블클릭 이벤트 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tvFirstGrid_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { TableView tableView = sender as TableView; TableViewHitInfo tableViewHitInfo = e.HitInfo as TableViewHitInfo; object row = tableView.Grid.GetRow(tableViewHitInfo.RowHandle); // 고객사 코드 string strCstCD = ((DataMembers.PopupCst)row).CST_CD; // 고객사 명 string strCstName = ((DataMembers.PopupCst)row).CST_NM; if (strCstCD.Length > 0) { this.SearchResult(strCstCD, strCstName); this.Close(); } }
//선택된 항목으로 페이지이동 private void TableView_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { TableView tv = sender as TableView; try { string RCV_NUM = tv.Grid.GetCellValue(e.HitInfo.RowHandle, "RCV_NUM").ToString(); txbRCV_NUM.Text = RCV_NUM; //팝업호출지점으로 리턴 DialogResult = true; Close(); } catch (Exception ex) { throw ex; } }
private void tableview0_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { var hitInfo = e.HitInfo; string headerCaption = hitInfo.Column.HeaderCaption.ToString(); int rowHandle = hitInfo.RowHandle; if (headerCaption == "Freq") { Product2 row = (Product2)gridctrl0.GetRow(rowHandle); popup = new PopUp(); popup.txtBox.Text = row.Freq; // popup.WindowStartupLocation = WindowStartupLocation.CenterScreen; popup.parent = this; popup.Top = point.Y - popup.Height - 10; popup.Left = point.X - popup.Width / 2; popup.Show(); } }
private void TableView_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { TableView tv = sender as TableView; try { string WSER_SEQ = tv.Grid.GetCellValue(e.HitInfo.RowHandle, "WSER_SEQ").ToString(); CnstCmplDtlView view = new CnstCmplDtlView(WSER_SEQ); if (view.ShowDialog() is bool) { //재조회 btnSearch.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)); } } catch (Exception ex) { Console.WriteLine(ex.Message); } }
//선택된 항목으로 내역팝업 private void TableView_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { TableView tv = sender as TableView; try { string PDH_NUM = tv.Grid.GetCellValue(e.HitInfo.RowHandle, "PDH_NUM").ToString(); Window pop = new PdjtUseDtlView(PDH_NUM); if (pop.ShowDialog() is bool) { //재조회 } } catch (Exception ex) { Console.WriteLine(ex.Message); } }
private void TreeListView_OnRowDoubleClick(object sender, RowDoubleClickEventArgs e) { var dc = DataContext as ISelectTagRegionView; var treeListViewHitInfo = e.HitInfo as TreeListViewHitInfo; if (treeListViewHitInfo != null && !treeListViewHitInfo.InRowCell) return; if (dc != null) { if (dc.TargetType == typeof (Tag)) { if (treeList.CurrentItem is TagDto) { _settingsService.AddRecentTag(((TagDto) treeList.CurrentItem).Id); dc.OkCommand.Execute(((TagDto) treeList.CurrentItem).Id); return; } } if (dc.TargetType == typeof(Idea)) { if (treeList.CurrentItem is IdeaDto) { _settingsService.AddRecentIdea(((IdeaDto)treeList.CurrentItem).Id); dc.OkCommand.Execute(((IdeaDto) treeList.CurrentItem).Id); return; } if (treeList.CurrentItem is TagDto) { var idea = ((TagDto) treeList.CurrentItem).MyIdea; if (idea == null) return; _settingsService.AddRecentIdea(idea.Value); dc.OkCommand.Execute(idea); return; } } if (dc.TargetType == typeof(Comment)) { if (treeList.CurrentItem is CommentDto) { _settingsService.AddRecentComment(((CommentDto) treeList.CurrentItem).Id); dc.OkCommand.Execute(((CommentDto) treeList.CurrentItem).Id); return; } } if (dc.TargetType == typeof (Block) || dc.TargetType == typeof (Guidable)) { Guid? id = null; if (treeList.CurrentItem is IdeaDto) id = ((IdeaDto) treeList.CurrentItem).Id; if (treeList.CurrentItem is TagDto) id = ((TagDto) treeList.CurrentItem).MyIdea; if (treeList.CurrentItem is RelationDto) id = ((RelationDto) treeList.CurrentItem).Id; if (treeList.CurrentItem is MaterialDto) id = ((MaterialDto) treeList.CurrentItem).Id; if (id == null) return; if (dc.TargetType == typeof (Guidable)) _settingsService.AddRecentGuidable(id.Value); else _settingsService.AddRecentBlock(id.Value); dc.OkCommand.Execute(id); } } }
private void GridNV_RowDoubleClick(object sender, RowDoubleClickEventArgs e) { Paradise5.ControlEXT.TextBoxEX.emp=(sp_EmployeeIDListResult) dtgrNV.GetRow(GridNV.FocusedRowHandle); this.Close(); }