private void OnMenuItemDoubleClick(object sender, RowDoubleClickEventArgs e)
 {
     if (e.HitInfo.InRow)
     {
         InvokeOnSelectMenuItem();
     }
 }
예제 #2
0
        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);
            }
        }
예제 #3
0
        //이력 상세팝업 호출
        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);
            }
        }
예제 #4
0
 private void onClientDoubleClickCommandExecuted(RowDoubleClickEventArgs e)
 {
     if (SelectedCustomer != null)
     {
         NavigationService.Navigate("ClientPageView", SelectedCustomer.CustomerID, this);
     }
 }
예제 #5
0
        //선택한 첨부파일에 대한 파일창열기
        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());
            }
        }
예제 #6
0
        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);
            }
        }
예제 #7
0
        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));
        }
예제 #8
0
 private void OnDoubleClickHandler(object sender, RowDoubleClickEventArgs e)
 {
     if (e.HitInfo.InRow)
     {
         RaiseEvent(new RoutedEventArgs(OnDoubleClickEvent));
     }
 }
예제 #9
0
        //선택된 항목으로 페이지이동
        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);
            }
        }
예제 #10
0
 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);
            }
        }
예제 #14
0
        public object Convert(object sender, object args)
        {
            RowDoubleClickEventArgs e = args as RowDoubleClickEventArgs;

            if (e.HitInfo.RowHandle == GridControl.NewItemRowHandle)
            {
                return(true);
            }
            return(false);
        }
예제 #15
0
        private void TableViewROIDocuments_RowDoubleClick(object sender, RowDoubleClickEventArgs e)
        {
            if (!(sender is TableView tableView))
            {
                return;
            }
            var mainWWindViewModel = tableView.DataContext as MainWindowViewModel;

            mainWWindViewModel?.OpenROIDocument();
        }
예제 #16
0
 private void OnNodeDoubleClick(object sender, RowDoubleClickEventArgs rowDoubleClickEventArgs)
 {
     if (rowDoubleClickEventArgs.HitInfo.RowHandle != customTreeListControl.View.FocusedNode.RowHandle)
     {
         rowDoubleClickEventArgs.Handled = true;
     }
     else
     {
         FocusedNodeExpand();
     }
 }
예제 #17
0
 private void GridView_OnRowDoubleClick(object sender, RowDoubleClickEventArgs e)
 {
     //Делаем так для того, что бы при двойном клике и после закрытия формы PrintPreview грид перестал выделять строки
     try
     {
         gridControl.IsEnabled = false;
     }
     finally
     {
         gridControl.IsEnabled = true;
     }
 }
예제 #18
0
 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;
     }
 }
예제 #19
0
        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;
            }
        }
예제 #20
0
        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);
        }
예제 #21
0
        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());
            }
        }
예제 #22
0
        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);
 }
예제 #24
0
        //선택된 항목으로 페이지이동
        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);
            }
        }
예제 #25
0
        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();
            }
        }
예제 #27
0
        //선택된 항목으로 페이지이동
        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;
            }
        }
예제 #28
0
        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();
            }
        }
예제 #29
0
        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);
            }
        }
예제 #30
0
        //선택된 항목으로 내역팝업
        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);
                }
            }
        }
예제 #32
0
 private void GridNV_RowDoubleClick(object sender, RowDoubleClickEventArgs e)
 {
     Paradise5.ControlEXT.TextBoxEX.emp=(sp_EmployeeIDListResult) dtgrNV.GetRow(GridNV.FocusedRowHandle);
     this.Close();
 }