예제 #1
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg = AppCommon.GetConfig(this);
            // 権限設定を呼び出す(ucfgを取得した後のに入れる)
            ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            // 登録ボタン設定
            if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name))
            {
                DataUpdateVisible = System.Windows.Visibility.Hidden;
            }
            frmcfg = (ConfigMST07010)ucfg.GetConfigValue(typeof(ConfigMST07010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST07010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 100)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 100)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }
            #endregion

            //初期化
            ScreenClear();

            //F1 検索取得
            base.MasterMaintenanceWindowList.Add("M09_HIN", new List <Type> {
                null, typeof(SCH07010)
            });
        }
예제 #2
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg = AppCommon.GetConfig(this);
            // 権限設定を呼び出す(ucfgを取得した後のに入れる)
            ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            // 登録ボタン設定
            if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name))
            {
                DataUpdateVisible = System.Windows.Visibility.Hidden;
            }
            frmcfg = (ConfigMST13010)ucfg.GetConfigValue(typeof(ConfigMST13010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST13010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }
            #endregion

            ScreenClear();

            ResetAllValidation();

            // 初期表示データ取得
            SendSearchRequest();
        }
예제 #3
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigNNG05010)ucfg.GetConfigValue(typeof(ConfigNNG05010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigNNG05010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
                this.作成年月   = frmcfg.作成年月;
                this.表示区分_Cmb.SelectedIndex = frmcfg.区分1;
                this.表示順序_Cmb.SelectedIndex = frmcfg.区分2;
            }
            #endregion

            //F1 車輌
            base.MasterMaintenanceWindowList.Add("M06_SYA", new List <Type> {
                null, typeof(SCH05010)
            });

            表示区分 = 0;
            表示順序 = 0;
            AppCommon.SetutpComboboxList(this.表示区分_Cmb, false);
            AppCommon.SetutpComboboxList(this.表示順序_Cmb, false);
            SetFocusToTopControl();
        }
예제 #4
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigJMI10010)ucfg.GetConfigValue(typeof(ConfigJMI10010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigJMI10010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Width    = frmcfg.Width;
                this.Height   = frmcfg.Height;
                this.作成締日     = frmcfg.締日;
                this.作成年      = frmcfg.作成年;
                this.作成月      = frmcfg.作成月;
                this.集計期間From = frmcfg.集計期間From;
                this.集計期間To   = frmcfg.集計期間To;
            }
            #endregion

            //得意先ID用
            base.MasterMaintenanceWindowList.Add("M04_DRV", new List <Type> {
                null, typeof(SCH04010)
            });

            社内区分 = 0;
            //先頭にカーソルを合わせる
            SetFocusToTopControl();
        }
예제 #5
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigMST26010)ucfg.GetConfigValue(typeof(ConfigMST26010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST26010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }
            #endregion
            //画面サイズをタスクバーをのぞいた状態で表示させる
            //this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height;


            ChangeKeyItemChangeable(true);
            SetFocusToTopControl();

            ScreenClear();

            //得意先ID用
            base.MasterMaintenanceWindowList.Add("M01_ZEN_SHIHARAI", new List <Type> {
                typeof(MST01010), typeof(SCH01010)
            });
            //base.MasterMaintenanceWindowList.Add("S02_YOSS", new List<Type> { null, typeof(SCH14010) });
        }
예제 #6
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg = AppCommon.GetConfig(this);
            // 権限設定を呼び出す(ucfgを取得した後のに入れる)
            ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            // 登録ボタン設定
            if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name))
            {
                DataUpdateVisible = System.Windows.Visibility.Hidden;
            }
            frmcfg = (ConfigMST31010)ucfg.GetConfigValue(typeof(ConfigMST31010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST31010();
                ucfg.SetConfigValue(frmcfg);
                frmcfg.spConfig = this.spConfig;
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }
            #endregion

            base.SendRequest(new CommunicationObject(MessageType.RequestData, LOAD_MST31010, new object[] {  }));

            SetFocusToTopControl();
            ResetAllValidation();
        }
예제 #7
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigTKS17010)ucfg.GetConfigValue(typeof(ConfigTKS17010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigTKS17010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
                this.作成締日   = frmcfg.締日;
                this.作成年    = frmcfg.作成年;
                this.作成月    = frmcfg.作成月;
                this.累計開始年  = frmcfg.累計年;
                this.累計開始月  = frmcfg.累計月;
                this.Combo2.SelectedIndex = frmcfg.区分2;
            }
            #endregion

            base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> {
                null, typeof(SCH01010)
            });
            //作成区分コンボボックス
            AppCommon.SetutpComboboxList(this.Combo2, false);
            作成区分 = 0;
        }
예제 #8
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigSRY17010)ucfg.GetConfigValue(typeof(ConfigSRY17010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigSRY17010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Width    = frmcfg.Width;
                this.Height   = frmcfg.Height;
                this.作成年月     = frmcfg.作成年月;
                this.集計期間From = frmcfg.集計期間From;
                this.集計期間To   = frmcfg.集計期間To;
                this.部門コード    = frmcfg.部門ID;
            }
            #endregion

            // 画面が表示される最後の段階で処理すべき内容があれば、ここに記述します。
            base.MasterMaintenanceWindowList.Add("M05_CAR", new List <Type> {
                null, typeof(SCH06010)
            });
            base.MasterMaintenanceWindowList.Add("M71_BUM", new List <Type> {
                null, typeof(SCH10010)
            });
            SetFocusToTopControl();
        }
예제 #9
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> {
                null, typeof(SCH01010)
            });
            AppCommon.SetutpComboboxList(this.作成区分_Combo1, false);
            作成区分_Combo = 0;

            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigSRY11010)ucfg.GetConfigValue(typeof(ConfigSRY11010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigSRY11010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
                this.作成年    = frmcfg.作成年;
                this.作成月    = frmcfg.作成月;
                this.集計年月   = frmcfg.集計年月;
            }
            #endregion

            SetFocusToTopControl();
        }
예제 #10
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigSRY10010)ucfg.GetConfigValue(typeof(ConfigSRY10010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigSRY10010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Width  = frmcfg.Width;
                this.Height = frmcfg.Height;
                this.開始年    = frmcfg.作成年;
                this.開始月    = frmcfg.作成月;
                this.終了年    = frmcfg.終了作成年;
                this.終了月    = frmcfg.終了作成月;
            }
            #endregion

            //F1 車輌
            base.MasterMaintenanceWindowList.Add("M05_CAR", new List <Type> {
                null, typeof(SCH06010)
            });
            SetFocusToTopControl();
        }
예제 #11
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigMST05020)ucfg.GetConfigValue(typeof(ConfigMST05020));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST05020();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }
            #endregion

            ResetAllValidation();

            SetFocusToTopControl();
            //削除データ以外を全権表示
            //SearchColumn();
            //検索画面追加
            base.MasterMaintenanceWindowList.Add("M06_SYA", new List <Type> {
                null, typeof(SCH05010)
            });
        }
예제 #12
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            //F1 自社部門ID
            base.MasterMaintenanceWindowList.Add("M71_BUM", new List <Type> {
                null, typeof(SCH10010)
            });

            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigSRY23010)ucfg.GetConfigValue(typeof(ConfigSRY23010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigSRY23010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Width  = frmcfg.Width;
                this.Height = frmcfg.Height;
            }
            #endregion

            spFuhyo1.InputBindings.Add(new KeyBinding(spFuhyo1.NavigationCommands.MoveNext, Key.Enter, ModifierKeys.None));
            spFuhyo2.InputBindings.Add(new KeyBinding(spFuhyo2.NavigationCommands.MoveNext, Key.Enter, ModifierKeys.None));

            SetFocusToTopControl();
        }
예제 #13
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigMST19020)ucfg.GetConfigValue(typeof(ConfigMST19020));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST19020();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }
            #endregion

            base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> {
                null, typeof(SCH01010)
            });
            base.MasterMaintenanceWindowList.Add("M08_TIK_UC", new List <Type> {
                typeof(MST03010), typeof(SCH03010)
            });
            base.MasterMaintenanceWindowList.Add("M09_HIN", new List <Type> {
                typeof(MST07010), typeof(SCH07010)
            });
        }
예제 #14
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void RibbonWindow_Loaded_1(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigMST07020)ucfg.GetConfigValue(typeof(ConfigMST07020));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST07020();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }
            #endregion

            //F1 検索取得
            base.MasterMaintenanceWindowList.Add("M09_HIN", new List <Type> {
                null, typeof(SCH07010)
            });

            //先頭にカーソルを合わせる
            SetFocusToTopControl();
        }
예제 #15
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigJMI12010)ucfg.GetConfigValue(typeof(ConfigJMI12010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigJMI12010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Width  = frmcfg.Width;
                this.Height = frmcfg.Height;
                this.作成年    = frmcfg.作成年;
                this.作成月    = frmcfg.作成月;
            }

            //F1 車輌
            base.MasterMaintenanceWindowList.Add("M04_DRV", new List <Type> {
                null, typeof(SCH04010)
            });
            //AppCommon.SetutpComboboxList(this.表示順序_Cmb, false);
            SetFocusToTopControl();
        }
예제 #16
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            // 初期状態を保存(SPREADリセット時にのみ使用する)
            this.spGridList.Rows.Clear();
            this.sp_Config = AppCommon.SaveSpConfig(this.spGridList);

            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            ccfg   = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            frmcfg = (ConfigZIK07010)ucfg.GetConfigValue(typeof(ConfigZIK07010));

            if (frmcfg == null)
            {
                frmcfg = new ConfigZIK07010();
                ucfg.SetConfigValue(frmcfg);
                frmcfg.spConfigZIK07010 = this.sp_Config;
            }
            else
            {
                // 表示できるかチェック
                var WidthCHK = WinFormsScreen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }

                // 表示できるかチェック
                var HeightCHK = WinFormsScreen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }

                this.Width  = frmcfg.Width;
                this.Height = frmcfg.Height;
            }
            #endregion

            base.MasterMaintenanceWindowList.Add("M70_JIS", new List <Type> {
                typeof(MST16010), typeof(SCHM70_JIS)
            });
            base.MasterMaintenanceWindowList.Add("M22_SOUK", new List <Type> {
                typeof(MST12020), typeof(SCHM22_SOUK)
            });
            base.MasterMaintenanceWindowList.Add("M09_MYHIN", new List <Type> {
                typeof(MST02010), typeof(SCHM09_MYHIN)
            });
            base.MasterMaintenanceWindowList.Add("M14_BRAND", new List <Type> {
                typeof(MST04020), typeof(SCHM14_BRAND)
            });
            base.MasterMaintenanceWindowList.Add("M15_SERIES", new List <Type> {
                typeof(MST04021), typeof(SCHM15_SERIES)
            });

            AppCommon.SetutpComboboxList(this.cmbItemType, false);

            initSearchControl();

            // 初期フォーカスを設定
            this.txt自社.SetFocus();
            ResetAllValidation();
        }
예제 #17
0
        /// <summary>
        /// ロードイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg = AppCommon.GetConfig(this);
            ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));

            #region "権限関係"

            // 登録ボタン設定
            if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name))
            {
                // RibbonWindowViewBaseのプロパティに設定
                DataUpdateVisible = System.Windows.Visibility.Hidden;
            }

            frmcfg = (ConfigDLY06010)ucfg.GetConfigValue(typeof(ConfigDLY06010));

            #endregion

            if (frmcfg == null)
            {
                frmcfg = new ConfigDLY06010();
                ucfg.SetConfigValue(frmcfg);
                //画面サイズをタスクバーをのぞいた状態で表示させる
                //this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height;
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Width  = frmcfg.Width;
                this.Height = frmcfg.Height;
            }

            #endregion

            gcSpreadGrid.InputBindings.Add(new KeyBinding(gcSpreadGrid.NavigationCommands.MoveNext, Key.Enter, ModifierKeys.None));

            // 検索画面情報を設定
            base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> {
                typeof(MST01010), typeof(SCHM01_TOK)
            });
            base.MasterMaintenanceWindowList.Add("M11_TEK", new List <Type> {
                typeof(MST08010), typeof(SCHM11_TEK)
            });
            base.MasterMaintenanceWindowList.Add("M70_JIS", new List <Type> {
                typeof(MST16010), typeof(SCHM70_JIS)
            });

            ScreenClear();
            ChangeKeyItemChangeable(true);

            #region 金種コードのドロップダウンを生成
            // No.145 Add Start
            Window          view     = System.Windows.Window.GetWindow(this.gcSpreadGrid);
            List <CodeData> codeList = AppCommon.GetComboboxCodeList(view, "随時", "出金問合せ", "金種", false);
            codeList = codeList.Where(x => x.コード != 0).ToList();
            foreach (CodeData code in codeList)
            {
                金種Dic.Add(code.コード, code.表示名);
            }
            // No.145 Add End

            GrapeCity.Windows.SpreadGrid.ComboBoxCellType c1 = new GrapeCity.Windows.SpreadGrid.ComboBoxCellType();
            c1.ItemsSource = 金種Dic;
            // リストに表示されるアイテムを定義します
            c1.ContentPath = "Value";
            // 表示される各アイテムに対応したデータを定義します
            c1.SelectedValuePath          = "Key";
            c1.ImeConversionMode          = ImeConversionModeValues.Alphanumeric;
            c1.FocusDropDownControlOnOpen = true;
            c1.ValueType           = ComboBoxValueType.SelectedValue;
            c1.UpdateSourceTrigger = SpreadUpdateSourceTrigger.PropertyChanged;

            this.gcSpreadGrid.Columns[0].CellType = c1;

            #endregion

            // ログインユーザの自社区分によりコントロール状態切換え
            this.txt会社名.Text1     = ccfg.自社コード.ToString();
            this.txt会社名.IsEnabled = ccfg.自社販社区分.Equals(自社販社区分.自社.GetHashCode());

            this.txt伝票番号.Focus();
            //削除機能制御
            if (ccfg.自社販社区分 == (int)自社販社区分.自社)
            {
                rbnF12.Visibility = System.Windows.Visibility.Visible;
            }
            else
            {
                rbnF12.Visibility = System.Windows.Visibility.Hidden;
            }
        }
예제 #18
0
        /// <summary>
        /// Load
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            this.OkButton.FontSize     = 9;
            this.OkButton.Content      = "\n\n\n選択(F11)";
            this.CancelButton.FontSize = 9;
            this.CancelButton.Content  = "\n\n\n終了(F12)";

            if (this.TwinTextBox.LinkItem != null)
            {
                //TwinTextLinkItem設定
                得意先コード = this.TwinTextBox.LinkItem.ToString();
                //TwinTokuisaki.Text1IsReadOnly = true;
            }

            //初期データ表示
            GridOutPut();

            //画面サイズをタスクバーをのぞいた状態で表示させる
            this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height;

            //メイン画面と子画面が被ることなく表示できるかチェック
            if (System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Width < 1024 + 342)
            {
                //画面の左端に表示させる
                this.Left = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Width - this.Width;
            }
            //コンボボックスのSelectionChangedを設定する。
            this.OrderColumn.SelectionChanged += this.OrderColumn_SelectionChanged;

            AppCommon.SetutpComboboxList(this.OrderColumn, false);

            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigSCH22020)ucfg.GetConfigValue(typeof(ConfigSCH22020));
            if (frmcfg == null)
            {
                frmcfg = new ConfigSCH22020();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
                this.OrderColumn.SelectedIndex = frmcfg.Combo;
            }
            #endregion

            //#region 表示順序

            //if (SearchResult == null)
            //{
            //    return;
            //}

            //DataView view = new DataView(SearchResult);

            //switch (OrderColumn.SelectedIndex)
            //{
            //    case 0: //コード
            //    default:
            //        view.Sort = COLUM_ID;
            //        break;
            //    case 1: //商品名
            //        view.Sort = COLUM_NAME;
            //        break;
            //    case 2: //商品よみ
            //        view.Sort = COLUM_JIGYOU;
            //        break;
            //}

            //SearchResult = view.ToTable();

            //#endregion
        }
예제 #19
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded_1(object sender, RoutedEventArgs e)
        {
            this.sp請求データ一覧.RowCount = 0;
            //this.spConfig = AppCommon.SaveSpConfig(this.sp請求データ一覧);

            #region 設定項目取得
            ucfg = AppCommon.GetConfig(this);
            //frmcfg = (ConfigTKS01020)ucfg.GetConfigValue(typeof(ConfigTKS01020));
            if (frmcfg == null)
            {
                frmcfg = new ConfigTKS01020();
                ucfg.SetConfigValue(frmcfg);
                frmcfg.spConfig = this.spConfig;
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Width  = frmcfg.Width;
                this.Height = frmcfg.Height;
            }
            if (frmcfg.spConfig != null)
            {
                AppCommon.LoadSpConfig(this.sp請求データ一覧, frmcfg.spConfig);
            }

            // 権限設定を呼び出す(ucfgを取得した後のに入れる)
            ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            // 登録ボタン設定
            if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name))
            {
                DataUpdateVisible = System.Windows.Visibility.Hidden;
            }

            this.PrinterNames = new List <string>();
            foreach (string pnm in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
            {
                this.PrinterNames.Add(pnm);
            }
            this.SelectedPrinterName = frmcfg.PrinterName;
            #endregion

            //this.sp請求データ一覧.PreviewKeyDown += sp請求データ一覧_PreviewKeyDown;

            // 検索画面情報を設定
            base.MasterMaintenanceWindowList.Add("M70_JIS", new List <Type> {
                typeof(MST16010), typeof(SCHM70_JIS)
            });                                                                                                       // No.388 Add

            // コントロール初期値の設定
            setDefaultControlValue();

            this.MyCompany.IsEnabled = (ccfg.自社販社区分 == 自社販社区分.自社.GetHashCode());

            ScreenClear();
        }
예제 #20
0
        /// <summary>
        /// Load
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            this.OkButton.FontSize     = 9;
            this.OkButton.Content      = "\n\n\n選択(F11)";
            this.CancelButton.FontSize = 9;
            this.CancelButton.Content  = "\n\n\n終了(F1)";

            // 初期フォーカスの設定を行う
            GridOutPut();
            //画面サイズをタスクバーをのぞいた状態で表示させる
            this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height;

            //メイン画面と子画面が被ることなく表示できるかチェック
            if (System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Width < 1024 + 342)
            {
                //画面の左端に表示させる
                this.Left = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Width - this.Width;
            }

            AppCommon.SetutpComboboxList(this.OrderColumn, false);

            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigSCH03010)ucfg.GetConfigValue(typeof(ConfigSCH03010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigSCH03010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
                this.OrderColumn.SelectedIndex = frmcfg.Combo;
            }
            #endregion

            #region 表示順序

            if (SearchResult == null)
            {
                return;
            }

            DataView view = new DataView(SearchResult);

            switch (OrderColumn.SelectedIndex)
            {
            case 0:     //コード
            default:
                view.Sort = COLUM_ID;
                break;

            case 1:     //商品名
                view.Sort = COLUM_NAME;
                break;

            case 2:     //商品よみ
                view.Sort = COLUM_KANA;
                break;
            }

            SearchResult = view.ToTable();

            #endregion
        }
예제 #21
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigBSK03010)ucfg.GetConfigValue(typeof(ConfigBSK03010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigBSK03010();
                ucfg.SetConfigValue(frmcfg);
                frmcfg.spConfig = this.spConfig;
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Width  = frmcfg.Width;
                this.Height = frmcfg.Height;
            }

            // 権限設定を呼び出す(ucfgを取得した後のに入れる)
            ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            // 登録ボタン設定
            if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name))
            {
                DataUpdateVisible = System.Windows.Visibility.Hidden;
            }

            if (frmcfg.spConfig != null)
            {
                //AppCommon.LoadSpConfig(this.sp請求データ一覧, frmcfg.spConfig);
            }

            #endregion

            base.MasterMaintenanceWindowList.Add("M14_BRAND", new List <Type> {
                typeof(MST04021), typeof(SCHM14_BRAND)
            });                                                                                                             // No.402 Add
            base.MasterMaintenanceWindowList.Add("M09_MYHIN", new List <Type> {
                typeof(MST02010), typeof(SCHM09_MYHIN)
            });                                                                                                             // No.402 Add
            base.MasterMaintenanceWindowList.Add("M70_JIS", new List <Type> {
                typeof(MST16010), typeof(SCHM70_JIS)
            });

            // コンボデータ取得
            AppCommon.SetutpComboboxList(this.cmbItemTypeFrom, false);      // No.402 Add
            AppCommon.SetutpComboboxList(this.cmbItemTypeTo, false);        // No.402 Add

            ScreenClear();

            SetFocusToTopControl();
        }
예제 #22
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg = AppCommon.GetConfig(this);
            // 権限設定を呼び出す(ucfgを取得した後のに入れる)
            ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            // 登録ボタン設定
            if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name))
            {
                DataUpdateVisible = System.Windows.Visibility.Hidden;
            }
            frmcfg = (ConfigMST18010)ucfg.GetConfigValue(typeof(ConfigMST18010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST18010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                // 表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                // 表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }
            #endregion

            ScreenClear();

            #region 遷移元からのパラメータを設定
            if (!string.IsNullOrEmpty(OutsourceCode))
            {
                this.GAITHUSAKI.Text1 = OutsourceCode;
            }

            if (!string.IsNullOrEmpty(OutsourceEda))
            {
                this.GAITHUSAKI.Text2 = OutsourceEda;
            }

            if (!string.IsNullOrEmpty(ItemNumber))
            {
                this.HINBAN.Text1 = ItemNumber;
            }

            if (!string.IsNullOrEmpty(ColorCode))
            {
                this.COLOR.Text1 = ColorCode;
            }

            #endregion

            // 画面呼出し先定義
            base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> {
                null, typeof(SCHM01_TOK)
            });
            base.MasterMaintenanceWindowList.Add("M16_HINGUN", new List <Type> {
                null, typeof(SCHM16_HINGUN)
            });
            base.MasterMaintenanceWindowList.Add("M09_MYHIN", new List <Type> {
                null, typeof(SCHM09_MYHIN)
            });
            base.MasterMaintenanceWindowList.Add("M06_IRO", new List <Type> {
                null, typeof(SCHM06_IRO)
            });

            if ((!string.IsNullOrEmpty(OutsourceCode) && !string.IsNullOrEmpty(OutsourceEda)) ||
                !string.IsNullOrEmpty(ItemNumber))
            {
                // 値が設定されている場合は自動でボタン押下処理を実行
                BtnStart_Click(sender, null);
            }

            setFiltterEvent(true);

            GetProductInfo();

            // 品群にフォーカスを設定
            this.HINGUN.Focus();
        }
예제 #23
0
        /// <summary>
        /// 取得データの正常受信時のイベント
        /// </summary>
        /// <param name="message"></param>
        public override void OnReceivedResponseData(CommunicationObject message)
        {
            var       data = message.GetResultData();
            DataTable tbl  = (data is DataTable) ? (data as DataTable) : null;

            switch (message.GetMessageName())
            {
            //ログイン
            case SEARCH_LOGIN:
                byte[] bin = tbl.Rows[0]["設定項目"] as byte[];
                if (bin == null)
                {
                    usercfg = new UserConfig();
                }
                else
                {
                    System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(typeof(UserConfig));
                    var strm = new System.IO.MemoryStream(bin);
                    var val  = serializer.Deserialize(strm);
                    strm.Close();
                    usercfg = val as UserConfig;
                    if (usercfg == null)
                    {
                        usercfg = new UserConfig();
                    }
                }
                AppCommon.SetupConfig(this, usercfg);
                ccfg = (CommonConfig)usercfg.GetConfigValue(typeof(CommonConfig));
                if (ccfg == null)
                {
                    ccfg = new CommonConfig();
                }
                ccfg.ログイン時刻  = DateTime.Now;
                ccfg.ユーザID   = AppCommon.IntParse(UserID);
                ccfg.ユーザ名    = tbl.Rows[0]["担当者名"].ToString();
                ccfg.自社コード   = AppCommon.IntParse(tbl.Rows[0]["自社コード"].ToString());
                ccfg.自社販社区分  = AppCommon.IntParse(tbl.Rows[0]["自社販社区分"].ToString());
                ccfg.ライセンスID = LicenseID;
                // 変更
                ccfg.権限       = (int)tbl.Rows[0]["グループ権限ID"];
                ccfg.タブグループ番号 = (int?[])tbl.Rows[0]["タブグループ番号"];
                ccfg.プログラムID  = (string[])tbl.Rows[0]["プログラムID"];
                ccfg.使用可能FLG  = (Boolean[])tbl.Rows[0]["使用可能FLG"];
                ccfg.データ更新FLG = (Boolean[])tbl.Rows[0]["データ更新FLG"];

                usercfg.SetConfigValue(ccfg);

                lcfg = (LOGINConfig)usercfg.GetConfigValue(typeof(LOGINConfig));
                if (lcfg == null)
                {
                    lcfg      = new LOGINConfig();
                    lcfg.Top  = this.Top;
                    lcfg.Left = this.Left;
                    usercfg.SetConfigValue(lcfg);
                }
                this.Top  = lcfg.Top;
                this.Left = lcfg.Left;

                string pUserID   = tbl.Rows[0]["担当者ID"].ToString();
                string pPassword = tbl.Rows[0]["パスワード"].ToString();


                //【ログイン】UserID && Passwordが一致する場合 かつ【999999】エラーデータではない場合
                if (UserID == pUserID && Password == pPassword && pUserID != "999999")
                {
                    try
                    {
                        IsLoggedIn = true;
                        this.Close();
                    }
                    catch (Exception ex)
                    {
                        //例外エラー表示
                        MessageBox.Show(ex.Message);
                    }
                }
                else
                {
                    //【※ログイン失敗※】
                    SetFocusToTopControl();
                    this.ErrorMessage = "該当するデータが見つかりません";
                }
                break;

            //ログアウト
            case USER_LOGOUT:
                //this.Close();
                Environment.Exit(0);
                break;
            }
        }
예제 #24
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Load(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            ccfg   = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            frmcfg = (ConfigMST90100)ucfg.GetConfigValue(typeof(ConfigMST90100));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST90100();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                this.Top    = frmcfg.Top;
                this.Left   = frmcfg.Left;
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }
            #endregion

            //メニューオブジェクト取得処理
            MAINMANU menu = new MAINMANU();

            //タブコントロール(ループ出来ないので単独)
            if (menu.Tab1.Visibility != System.Windows.Visibility.Hidden)
            {
                PrintLogicalChildren(menu.Tab1);
            }
            if (menu.Tab2.Visibility != System.Windows.Visibility.Hidden)
            {
                PrintLogicalChildren(menu.Tab2);
            }
            if (menu.Tab3.Visibility != System.Windows.Visibility.Hidden)
            {
                PrintLogicalChildren(menu.Tab3);
            }
            if (menu.Tab4.Visibility != System.Windows.Visibility.Hidden)
            {
                PrintLogicalChildren(menu.Tab4);
            }
            if (menu.Tab5.Visibility != System.Windows.Visibility.Hidden)
            {
                PrintLogicalChildren(menu.Tab5);
            }
            if (menu.Tab6.Visibility != System.Windows.Visibility.Hidden)
            {
                PrintLogicalChildren(menu.Tab6);
            }
            if (menu.Tab7.Visibility != System.Windows.Visibility.Hidden)
            {
                PrintLogicalChildren(menu.Tab7);
            }
            if (menu.Tab8.Visibility != System.Windows.Visibility.Hidden)
            {
                PrintLogicalChildren(menu.Tab8);
            }
            if (menu.Tab9.Visibility != System.Windows.Visibility.Hidden)
            {
                PrintLogicalChildren(menu.Tab9);
            }
            if (menu.Tab10.Visibility != System.Windows.Visibility.Hidden)
            {
                PrintLogicalChildren(menu.Tab10);
            }
            if (menu.Tab11.Visibility != System.Windows.Visibility.Hidden)
            {
                PrintLogicalChildren(menu.Tab11);
            }

            ScreenClear();

            base.MasterMaintenanceWindowList.Add("M74_AUTHORITY_NAME", new List <Type> {
                null, typeof(SCHM74_KGRPNAME)
            });
        }
예제 #25
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            // 初期状態を保存(SPREADリセット時にのみ使用する)
            this.sp_Config = AppCommon.SaveSpConfig(this.spGridList);

            base.MasterMaintenanceWindowList.Add("M01_TOK_TOKU_SCH", new List <Type> {
                typeof(MST02010), typeof(SCHM01_TOK)
            });
            base.MasterMaintenanceWindowList.Add("M70_JIS", new List <Type> {
                typeof(MST16010), typeof(SCHM70_JIS)
            });
            base.MasterMaintenanceWindowList.Add("M72_TNT", new List <Type> {
                typeof(MST23010), typeof(SCHM72_TNT)
            });

            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            ccfg   = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            frmcfg = (ConfigZIJ04010)ucfg.GetConfigValue(typeof(ConfigZIJ04010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigZIJ04010();
                ucfg.SetConfigValue(frmcfg);
                frmcfg.spConfig20180118 = this.sp_Config;
            }
            else
            {
                // 表示できるかチェック
                var WidthCHK = WinForms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                // 表示できるかチェック
                var HeightCHK = WinForms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }
            #endregion

            spGridList.InputBindings.Add(new KeyBinding(spGridList.NavigationCommands.MoveNext, Key.Enter, ModifierKeys.None));

            // No.145 Add Start
            // 金種の名称辞書を作成
            Window          view     = System.Windows.Window.GetWindow(this);
            List <CodeData> codeList = AppCommon.GetComboboxCodeList(view, "随時", "出金問合せ", "金種", false);
            codeList = codeList.Where(x => x.コード != 0).ToList();
            foreach (CodeData code in codeList)
            {
                goldNameDic.Add(code.コード, code.表示名);
            }
            // No.145 Add End

            // コントロールの初期設定をおこなう
            initSearchControl();

            spGridList.RowCount = 0;
            SetFocusToTopControl();
            ErrorMessage = string.Empty;
        }
예제 #26
0
        /// <summary>
        /// ロードイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg = AppCommon.GetConfig(this);
            ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));

            #region "権限関係"

            // 登録ボタン設定
            if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name))
            {
                // RibbonWindowViewBaseのプロパティに設定
                DataUpdateVisible = System.Windows.Visibility.Hidden;
            }

            frmcfg = (ConfigDLY07010)ucfg.GetConfigValue(typeof(ConfigDLY07010));

            #endregion

            if (frmcfg == null)
            {
                frmcfg = new ConfigDLY07010();
                ucfg.SetConfigValue(frmcfg);
                //画面サイズをタスクバーをのぞいた状態で表示させる
                //this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height;
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Width  = frmcfg.Width;
                this.Height = frmcfg.Height;
            }

            #endregion

            gcSpreadGrid.InputBindings.Add(new KeyBinding(gcSpreadGrid.NavigationCommands.MoveNext, Key.Enter, ModifierKeys.None));

            // 検索画面情報を設定
            base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> {
                typeof(MST01010), typeof(SCHM01_TOK)
            });
            base.MasterMaintenanceWindowList.Add("M09_MYHIN", new List <Type> {
                typeof(MST02010), typeof(SCHM09_MYHIN)
            });
            base.MasterMaintenanceWindowList.Add("DLY07010", new List <Type> {
                typeof(DLY02010), null
            });

            // 画面の初期化
            ScreenClear();

            // 検索実行
            ProcDataSearch();

            isChange = false;

            SetFocusToTopControl();
        }
예제 #27
0
        /// <summary>
        /// Load
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            this.OkButton.FontSize     = 9;
            this.OkButton.Content      = "\n\n\n選択(F11)";
            this.CancelButton.FontSize = 9;
            this.CancelButton.Content  = "\n\n\n終了(F1)";

            AppCommon.SetutpComboboxList(this.OrderColumn, false);
            AppCommon.SetutpComboboxList(this.Order, false);

            //呼び出し元から表示区分を取ってくる。
            if (this.TwinTextBox.LinkItem != null)
            {
                //TwinTextLinkItem設定
                c表示形式 = AppCommon.IntParse(this.TwinTextBox.LinkItem.ToString());
                this.Order.SelectedIndex = c表示形式;
                //TwinTokuisaki.Text1IsReadOnly = true;
            }
            else if (multi == 1)
            {
                this.Order.SelectedIndex = c表示形式;
            }

            //画面サイズをタスクバーをのぞいた状態で表示させる
            this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height;

            //メイン画面と子画面が被ることなく表示できるかチェック
            if (System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Width < 1024 + 342)
            {
                //画面の左端に表示させる
                this.Left = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Width - this.Width;
            }

            //this.Order.SelectionChanged += this.OrderColumn_SelectionChanged;
            this.Order.SelectedIndex = c表示形式;

            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigSCH09010)ucfg.GetConfigValue(typeof(ConfigSCH09010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigSCH09010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
                //this.OrderColumn.SelectedIndex = frmcfg.Combo;
                this.OrderColumn.SelectedIndex = frmcfg.OrderCombo;
            }
            #endregion


            GridOutPut();
        }
예제 #28
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg = AppCommon.GetConfig(this);
            // 権限設定を呼び出す(ucfgを取得した後のに入れる)
            ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            // 登録ボタン設定
            if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name))
            {
                DataUpdateVisible = System.Windows.Visibility.Hidden;
            }
            frmcfg = (ConfigMST30010)ucfg.GetConfigValue(typeof(ConfigMST30010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST30010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }
            #endregion

            //基礎情報データ検索
            base.SendRequest(new CommunicationObject(MessageType.RequestData, TargetTableNm, new object[] { 1, 0 }));
            base.SendRequest(new CommunicationObject(MessageType.RequestData, SyukinTableNm, new object[] { 1, 0 }));

            //ScreenClear();
            //base.MasterMaintenanceWindowList.Add("M87_CNTL", new List<Type> { null, typeof(SCH30010) });


            AppCommon.SetutpComboboxList(this.COMBO1, false);
            AppCommon.SetutpComboboxList(this.COMBO2, false);
            AppCommon.SetutpComboboxList(this.COMBO3, false);
            //AppCommon.SetutpComboboxList(this.COMBO4, false);
            AppCommon.SetutpComboboxList(this.COMBO5, false);
            AppCommon.SetutpComboboxList(this.COMBO6, false);
            AppCommon.SetutpComboboxList(this.COMBO7, false);
            AppCommon.SetutpComboboxList(this.COMBO8, false);
            AppCommon.SetutpComboboxList(this.COMBO9, false);
            //AppCommon.SetutpComboboxList(this.COMBO10, false);
            AppCommon.SetutpComboboxList(this.COMBO11, false);
            AppCommon.SetutpComboboxList(this.COMBO12, false);

            売上消費税端数区分 = 1;
            支払消費税端数区分 = 1;
            未定区分      = 1;
            部門管理区分    = 1;
            得意先ID区分   = 1;
            支払先ID区分   = 1;
            乗務員ID区分   = 1;
            車輌ID区分    = 1;
            車種ID区分    = 1;
            発着地ID区分   = 1;
            品名ID区分    = 1;
            摘要ID区分    = 1;
            売上消費税端数区分 = 1;
            支払消費税端数区分 = 1;
            金額計算端数区分  = 1;
            出力プリンター設定 = 1;
            自動学習区分    = 1;
            月次集計区分    = 1;
            距離転送区分    = 1;
            番号通知区分    = 1;
            通行料転送区分   = 1;
            路線計算区分    = 1;

            SetFocusToTopControl();
            ResetAllValidation();
        }
예제 #29
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded_1(object sender, RoutedEventArgs e)
        {
            ScreenClear();

            #region 設定項目取得
            ucfg = AppCommon.GetConfig(this);
            ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            #region "権限関係"
            // 登録ボタン設定
            if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name))
            {
                // RibbonWindowViewBaseのプロパティに設定
                DataUpdateVisible = System.Windows.Visibility.Hidden;
            }
            #endregion
            入力者ID  = ccfg.ユーザID;
            frmcfg = (ConfigDLY08010)ucfg.GetConfigValue(typeof(ConfigDLY08010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigDLY08010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 100)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 100)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }

            #endregion

            番号通知区分   = frmcfg.番号通知区分;
            最終伝票表示区分 = frmcfg.最終伝票表示区分;

            // 初期状態を保存(SPREADリセット時にのみ使用する)
            this.spConfig  = AppCommon.SaveSpConfig(this.spNyukin);
            this.spConfig2 = AppCommon.SaveSpConfig(this.spOldNyukin);
            AppCommon.LoadSpConfig(this.spNyukin, this.spConfig);
            AppCommon.LoadSpConfig(this.spOldNyukin, this.spConfig2);
            base.MasterMaintenanceWindowList.Add("M01_TOK_TOKU_SCH", new List <Type> {
                null, typeof(SCH01010)
            });
            AppCommon.SetutpComboboxListToCell(this.spNyukin, "入金区分", "日次", "入金伝票入力", "入金区分", false);

            spNyukin.InputBindings.Add(new KeyBinding(spNyukin.NavigationCommands.MoveNext, Key.Enter, ModifierKeys.None));

            ButtonCellType btn1 = this.spNyukin.Columns[0].CellType as ButtonCellType;
            btn1.Command = new cmd売上削除(spNyukin);

            if (初期明細番号 != null)
            {
                DetailsNumber        = 初期明細番号;
                this.MaintenanceMode = AppConst.MAINTENANCEMODE_EDIT;
                GetMeisaiData();
                return;
            }

            ChangeKeyItemChangeable(true);

            if (最終伝票表示区分 == 1)
            {
                datagetmode = DataGetMode.last;
                base.SendRequest(new CommunicationObject(MessageType.RequestData, GetMeisaiNo, new object[] { 0, 3 }));
            }
        }
예제 #30
0
        /// <summary>
        /// ロードイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg = AppCommon.GetConfig(this);
            ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));

            #region "権限関係"

            // 登録ボタン設定
            if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name))
            {
                // RibbonWindowViewBaseのプロパティに設定
                DataUpdateVisible = System.Windows.Visibility.Hidden;
            }

            frmcfg = (ConfigDLY02020)ucfg.GetConfigValue(typeof(ConfigDLY02020));

            #endregion

            if (frmcfg == null)
            {
                frmcfg = new ConfigDLY02020();
                ucfg.SetConfigValue(frmcfg);
                //画面サイズをタスクバーをのぞいた状態で表示させる
                //this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height;
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Width  = frmcfg.Width;
                this.Height = frmcfg.Height;
            }

            #endregion

            gcSpreadGrid.InputBindings.Add(new KeyBinding(gcSpreadGrid.NavigationCommands.MoveNext, Key.Enter, ModifierKeys.None));

            // グリッドボタンにコマンド配置
            ButtonCellType btn = new ButtonCellType();
            btn.Content = "在庫";
            btn.Command = new cmd在庫(gcSpreadGrid);
            this.gcSpreadGrid.Columns[GridColumnsMapping.在庫.GetHashCode()].CellType = btn;

            // 検索画面情報を設定
            base.MasterMaintenanceWindowList.Add("M09_HIN", new List <Type> {
                typeof(MST02010), typeof(SCHM09_HIN)
            });

            ScreenClear();
            ChangeKeyItemChangeable(true);
        }