/// <summary> /// 로드 바인딩 /// </summary> /// <param name="obj"></param> private void OnLoaded(object obj) { if (obj == null) { return; } //1. 화면객체 인스턴스 splyMngPopView = obj as SplyMngPopView; cbHJD_CDE = splyMngPopView.cbHJD_CDE; //2.화면데이터객체 초기화 InitDataBinding(); //3.권한처리 permissionApply(); //4.초기조회 SearchAction(null); }
private void BtnSel_Click(object sender, RoutedEventArgs e) { String inCNT_NUM = this.txtCNT_NUM.Text;; String outCNT_NUM = ""; if (inCNT_NUM != null && inCNT_NUM != "") { if (Messages.ShowYesNoMsgBox("공사번호를 변경하시겠습니까?") != MessageBoxResult.Yes) { return; } } try { // 급수공대장 윈도우 SplyMngPopView splyMngPopView = new SplyMngPopView(""); splyMngPopView.Owner = Window.GetWindow(this); //공사번호 리턴 if (splyMngPopView.ShowDialog() is bool) { outCNT_NUM = splyMngPopView.txtRET_CNT_NAM.Text; if (outCNT_NUM != null && outCNT_NUM != "" && inCNT_NUM != outCNT_NUM) { this.txtCNT_NUM.Text = outCNT_NUM; } this.txtCNT_NUM.SelectAll(); this.txtCNT_NUM.Focus(); } } catch (Exception ex) { Messages.ShowErrMsgBox(ex.ToString()); } }