Exemple #1
0
        /// <summary>
        /// 로딩작업
        /// </summary>
        /// <param name="obj"></param>
        private void OnLoaded(object obj)
        {
            // 0.화면객체인스턴스화
            if (obj == null)
            {
                return;
            }
            pdjtStockView = obj as PdjtStockView;

            //초기조회
            initModel();
        }
Exemple #2
0
        /// <summary>
        /// 입고등록
        /// </summary>
        /// <param name="obj"></param>
        private void EnterAction(object obj)
        {
            string PDH_NUM = "";

            //0.체크박스 체크
            int cnt = 0;

            foreach (PdjtMaDtl dr in GrdLst)
            {
                //체크여부
                if ("Y".Equals(dr.CHK))
                {
                    cnt++;
                    try
                    {
                        PDH_NUM = dr.PDH_NUM.ToString();
                    }
                    catch (Exception) { }
                }
            }
            if (cnt < 1)
            {
                Messages.ShowInfoMsgBox("선택된 항목이 없습니다.");
                return;
            }
            else if (cnt > 1)
            {
                Messages.ShowInfoMsgBox("입고대상 항목을 하나만 선택하세요.");
                return;
            }

            //1.입고등록 팝업호출
            PdjtStockView pdjtEnterView = new PdjtStockView(PDH_NUM);

            if (pdjtEnterView.ShowDialog() is bool)
            {
                //팝업종료 후 재조회
                SearchAction(null);
            }
        }