示例#1
0
文件: FormMain.cs 项目: guraud/VRO
        private void InitializeForm()
        {
            //초기 화면 Loading
            int whichScreen = 1;

            switch (whichScreen)
            {
            case 1:
            {
                FormFlag.formParameterSetup_flag = true;

                if (tabbedMdiManager.Pages[_formParameterSetup] == null)
                {
                    _formParameterSetup           = new FormParameterSetup();
                    _formParameterSetup.MdiParent = this;
                    _formParameterSetup.Show();
                }
                break;
            }

            case 2:
            {
                FormFlag.formMakeDispatching_flag = true;

                if (tabbedMdiManager.Pages[_formMakeDispatching] == null)
                {
                    _formMakeDispatching           = new FormMakeDispatching();
                    _formMakeDispatching.MdiParent = this;
                    _formMakeDispatching.Show();
                }
                break;
            }

            case 3:
            {
                FormFlag.formConfirmDispatching_flag = true;

                if (tabbedMdiManager.Pages[_formConfirmDispatching] == null)
                {
                    _formConfirmDispatching           = new FormConfirmDispatching();
                    _formConfirmDispatching.MdiParent = this;
                    _formConfirmDispatching.Show();
                }
                break;
            }
            }

            SplashScreenManager.HideImage();
        }
示例#2
0
文件: FormMain.cs 项目: guraud/VRO
        private void menuConfirmDispatching_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FormFlag.formConfirmDispatching_flag = true;

            if (tabbedMdiManager.Pages[_formConfirmDispatching] == null)
            {
                _formConfirmDispatching           = new FormConfirmDispatching();
                _formConfirmDispatching.MdiParent = this;
                _formConfirmDispatching.Show();
            }
            else
            {
                _formConfirmDispatching.BringToFront();
            }
        }
示例#3
0
        //진행단계 Display (0:파라메터설정, 1:실행관리, 2: 가확정)
        private void InitializeForm(int whichScreen)
        {
            switch (whichScreen)
            {
            case 0:
            {
                FormFlag.formParameterSetup_flag = true;

                if (tabbedMdiManager.Pages[_formParameterSetup] == null)
                {
                    barResult.Caption             = "배차결과: 파라메터 설정";
                    _formParameterSetup           = new FormParameterSetup();
                    _formParameterSetup.MdiParent = this;
                    _formParameterSetup.Show();
                }
                break;
            }

            case 1:
            {
                FormFlag.formMakeDispatching_flag = true;

                if (tabbedMdiManager.Pages[_formMakeDispatching] == null)
                {
                    barResult.Caption              = "배차결과: 배차계획 실행관리";
                    _formMakeDispatching           = new FormMakeDispatching();
                    _formMakeDispatching.MdiParent = this;
                    _formMakeDispatching.Show();
                }
                break;
            }

            case 2:
            {
                FormFlag.formConfirmDispatching_flag = true;

                if (tabbedMdiManager.Pages[_formConfirmDispatching] == null)
                {
                    barResult.Caption                 = "배차결과: 배차지시 가확정";
                    _formConfirmDispatching           = new FormConfirmDispatching();
                    _formConfirmDispatching.MdiParent = this;
                    _formConfirmDispatching.Show();
                }
                break;
            }
            }
        }
示例#4
0
        private void buttonItemConfirmDispatching_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FormFlag.formConfirmDispatching_flag = true;

            //if (string.IsNullOrEmpty(ApplicationKey.current_plan_id))
            //{
            //    MessageBox.Show("배차 결과를 선택한 다음 가확정을 진행할 수 있습니다.", "배차 결과 미선택", MessageBoxButtons.OK, MessageBoxIcon.Error);
            //    return;
            //}

            barResult.Caption = "배차결과: 배차지시 가확정";
            if (tabbedMdiManager.Pages[_formConfirmDispatching] == null)
            {
                _formConfirmDispatching           = new FormConfirmDispatching();
                _formConfirmDispatching.MdiParent = this;
                _formConfirmDispatching.Show();
            }
            else
            {
                _formConfirmDispatching.BringToFront();
            }
        }