//첨부파일 모듈호출 private void BtnAdd_Click(object sender, RoutedEventArgs e) { try { // 파일첨부윈도우 filePhotoView = new FilePhotoView(this.BIZ_ID, null); filePhotoView.Owner = Window.GetWindow(this); //FIL_SEQ 리턴 if (filePhotoView.ShowDialog() is bool) { string FIL_SEQ = filePhotoView.txtFIL_SEQ.Text; //저장버튼으로 닫힘 if (!FmsUtil.IsNull(FIL_SEQ)) { //AddFilSeqRow(FIL_SEQ); //첨부파일 한건추가 //조회그리드형으로 변경 InitModel(); } //닫기버튼으로 닫힘 } } catch (Exception ex) { Messages.ShowErrMsgBox(ex.ToString()); } //gv.AddNewRow(); //int newRowHandle = DataControlBase.NewItemRowHandle; //grid.SetCellValue(gv.FocusedRowHandle, "PAY_YMD", Convert.ToDateTime(DateTime.Today).ToString("yyyy-MM-dd")); }
//선택한 첨부파일에 대한 파일창열기 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()); } }