Beispiel #1
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);
            }
        }
Beispiel #2
0
        //계량기교체이력 등록팝업 호출
        private void BtnAdd_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                // 윈도우
                WtrTrkHtDtlView wtrTrkHtDtlView = new WtrTrkHtDtlView(FTR_CDE, FTR_IDN, -1);
                wtrTrkHtDtlView.Owner = Window.GetWindow(this);


                //SEQ 리턴
                if (wtrTrkHtDtlView.ShowDialog() is bool)
                {
                    //재조회
                    initModel();
                }
            }
            catch (Exception ex)
            {
                Messages.ShowErrMsgBox(ex.ToString());
            }
        }