Exemple #1
0
        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
            {
                // 상수공사대장 윈도우
                CnstMngPopView cnstMngPopView = new CnstMngPopView("");
                cnstMngPopView.Owner = Window.GetWindow(this);


                //공사번호 리턴
                if (cnstMngPopView.ShowDialog() is bool)
                {
                    outCNT_NUM = cnstMngPopView.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());
            }
        }
Exemple #2
0
        /// <summary>
        /// 로드 바인딩
        /// </summary>
        /// <param name="obj"></param>
        private void OnLoaded(object obj)
        {
            if (obj == null)
            {
                return;
            }
            var values = (object[])obj;

            //1. 화면객체 인스턴스
            cnstMngPopView = values[0] as CnstMngPopView;

            txtCNT_NUM      = cnstMngPopView.txtCNT_NUM;
            txtCNT_NAM      = cnstMngPopView.txtCNT_NAM;
            txtCNT_LOC      = cnstMngPopView.txtCNT_LOC;
            txtTCT_AMT_FROM = cnstMngPopView.txtTCT_AMT_FROM;
            txtTCT_AMT_TO   = cnstMngPopView.txtTCT_AMT_TO;
            cbCNT_CDE       = cnstMngPopView.cbCNT_CDE;
            cbCTT_CDE       = cnstMngPopView.cbCTT_CDE;

            dtBEG_YMD_FROM = cnstMngPopView.dtBEG_YMD_FROM;
            dtBEG_YMD_TO   = cnstMngPopView.dtBEG_YMD_TO;
            dtBEG_YMD_FROM.DisplayFormatString = "yyyy-MM-dd";
            dtBEG_YMD_TO.DisplayFormatString   = "yyyy-MM-dd";

            dtFNS_YMD_FROM = cnstMngPopView.dtFNS_YMD_FROM;
            dtFNS_YMD_TO   = cnstMngPopView.dtFNS_YMD_TO;
            dtFNS_YMD_FROM.DisplayFormatString = "yyyy-MM-dd";
            dtFNS_YMD_TO.DisplayFormatString   = "yyyy-MM-dd";

            grid = cnstMngPopView.grid;

            //2.화면데이터객체 초기화
            InitDataBinding();
            //3.권한처리
            permissionApply();
            //4.초기조회
            SearchAction(null);
        }