Esempio n. 1
0
        //계량기교체이력 상세팝업 호출
        private void Gv_RowDoubleClick(object sender, RowDoubleClickEventArgs e)
        {
            TableView tv = sender as TableView;

            try
            {
                string META_SEQ = tv.Grid.GetCellValue(e.HitInfo.RowHandle, "META_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();
                // 교체이력윈도우
                MetrChgDtlView metrChgDtlView = new MetrChgDtlView(FTR_CDE, Convert.ToInt32(FTR_IDN), Convert.ToInt32(META_SEQ));
                metrChgDtlView.Owner = Window.GetWindow(this);


                //FIL_SEQ 리턴
                if (metrChgDtlView.ShowDialog() is bool)
                {
                    //부속시설재조회
                    initModel();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
Esempio n. 2
0
        //계량기교체이력 등록팝업 호출
        private void BtnAdd_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                // 파일첨부윈도우
                MetrChgDtlView metrChgDtlView = new MetrChgDtlView(FTR_CDE, FTR_IDN, -1);
                metrChgDtlView.Owner = Window.GetWindow(this);


                //FIL_SEQ 리턴
                if (metrChgDtlView.ShowDialog() is bool)
                {
                    //부속시설재조회
                    initModel();
                }
            }
            catch (Exception ex)
            {
                Messages.ShowErrMsgBox(ex.ToString());
            }
        }