コード例 #1
0
ファイル: UC_BLKS_ASModel.cs プロジェクト: alsokyun/wfms
        /// <summary>
        /// 로딩작업
        /// </summary>
        /// <param name="obj"></param>
        private void OnLoaded(object obj)
        {
            try
            {
                // 0.화면객체인스턴스화
                if (obj == null)
                {
                    return;
                }

                uC_BLKS_AS = obj as UC_BLKS_AS;

                btnSave = uC_BLKS_AS.btnSave;

                //2.화면데이터객체 초기화
                InitDataBinding();


                //3.권한처리
                //permissionApply();

                // 4.초기조회
                InitModel();

                // cbUPPER_FTR_IDN 상위블록
                BizUtil.SetFTR_IDN(FctDtl.UPPER_FTR_CDE, uC_BLKS_AS.cbUPPER_FTR_IDN);

                // 콤보변경이벤트설정
                uC_BLKS_AS.cbUPPER_FTR_CDE.SelectedIndexChanged += OnUpFtrCdeChanged;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #2
0
ファイル: Blk02DtlViewModel.cs プロジェクト: alsokyun/wfms
        protected void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));

                if (propertyName == "UPPER_FTR_CDE")
                {
                    BizUtil.SetFTR_IDN(Dtl.UPPER_FTR_CDE, cbUPPER_FTR_IDN);
                }
            }
        }
コード例 #3
0
ファイル: Blk03AddViewModel.cs プロジェクト: alsokyun/wfms
        /// <summary>
        /// 로딩작업
        /// </summary>
        /// <param name="obj"></param>
        private void OnLoaded(object obj)
        {
            try
            {
                // 0.화면객체인스턴스화
                if (obj == null)
                {
                    return;
                }

                blk03AddView    = obj as Blk03AddView;
                cbMNG_CDE       = blk03AddView.cbMNG_CDE;       //관리기관
                cbFTR_CDE       = blk03AddView.cbFTR_CDE;       //지형지물
                cbUPPER_FTR_CDE = blk03AddView.cbUPPER_FTR_CDE; //상위블록
                cbUPPER_FTR_IDN = blk03AddView.cbUPPER_FTR_IDN;

                btnBack = blk03AddView.btnBack;
                btnSave = blk03AddView.btnSave;

                //2.화면데이터객체 초기화
                InitDataBinding();


                //3.권한처리
                permissionApply();

                // 4.초기조회 - 신규관리번호 채번 - Merge문 사용해서 채번안함


                //채번결과 매칭
                //this.FTR_IDN = result.FTR_IDN;
                Dtl.FTR_CDE = "BZ003"; //소블록

                // cbUPPER_FTR_IDN 상위블록
                BizUtil.SetFTR_IDN(Dtl.UPPER_FTR_CDE, cbUPPER_FTR_IDN);

                // 콤보변경이벤트설정
                cbUPPER_FTR_CDE.SelectedIndexChanged += OnUpFtrCdeChanged;


                //공통팝업창 사이즈 변경 4
                FmsUtil.popWinView.Height = 280;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #4
0
        /// <summary>
        /// 로딩작업
        /// </summary>
        /// <param name="obj"></param>
        private void OnLoaded(object obj)
        {
            try
            {
                // 0.화면객체인스턴스화
                if (obj == null)
                {
                    return;
                }

                blk03DtlView    = obj as Blk03DtlView;
                cbMNG_CDE       = blk03DtlView.cbMNG_CDE;       //관리기관
                cbUPPER_FTR_CDE = blk03DtlView.cbUPPER_FTR_CDE; //상위블록
                cbUPPER_FTR_IDN = blk03DtlView.cbUPPER_FTR_IDN;

                btnBack   = blk03DtlView.btnBack;
                btnDelete = blk03DtlView.btnDelete;
                btnSave   = blk03DtlView.btnSave;

                //2.화면데이터객체 초기화
                InitDataBinding();


                //3.권한처리
                permissionApply();

                // 4.초기조회
                //DataTable dt = new DataTable();
                Hashtable param = new Hashtable();
                param.Add("sqlId", "SelectBlk03Dtl");
                param.Add("FTR_CDE", Dtl.FTR_CDE);
                param.Add("FTR_IDN", Dtl.FTR_IDN);

                Dtl = BizUtil.SelectObject(param) as BlkDtl;


                // cbUPPER_FTR_IDN 상위블록
                BizUtil.SetFTR_IDN(Dtl.UPPER_FTR_CDE, cbUPPER_FTR_IDN);

                // 콤보변경이벤트설정
                cbUPPER_FTR_CDE.SelectedIndexChanged += OnUpFtrCdeChanged;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #5
0
        /// <summary>
        /// 초기화 바인딩
        /// </summary>
        private void InitDataBinding()
        {
            try
            {
                // cbMNG_CDE 관리기관
                BizUtil.SetCmbCode(uC_BLKM_AS.cbMNG_CDE, "250101", "선택");

                // cbUPPER_FTR_CDE 상위블록코드
                Func <DataRow, bool> filter = Row => (Row.Field <string>("FTR_CDE").Contains("BZ001"));//대블록
                BizUtil.SetCombo(uC_BLKM_AS.cbUPPER_FTR_CDE, "Select_FTR_LIST", "FTR_CDE", "FTR_NAM", null, filter);

                // cbUPPER_FTR_IDN 상위블록
                BizUtil.SetFTR_IDN(FctDtl.UPPER_FTR_CDE, uC_BLKM_AS.cbUPPER_FTR_IDN);
            }
            catch (Exception ex)
            {
                Messages.ShowErrMsgBoxLog(ex);
            }
        }
コード例 #6
0
ファイル: UC_BLKS_ASModel.cs プロジェクト: alsokyun/wfms
 //블록코드 변경시 이벤트핸들러
 private void OnUpFtrCdeChanged(object sender, RoutedEventArgs e)
 {
     BizUtil.SetFTR_IDN(FctDtl.UPPER_FTR_CDE, uC_BLKS_AS.cbUPPER_FTR_IDN);
 }