Exemplo n.º 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigMST01015)ucfg.GetConfigValue(typeof(ConfigMST01015));

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

            if (frmcfg == null)
            {
                frmcfg = new ConfigMST01015();
            }
            else
            {
                this.Top    = frmcfg.Top;
                this.Left   = frmcfg.Left;
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }

            InitFlg = true;
            ScreenClear();

            ResetAllValidation();
        }
Exemplo n.º 2
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.SendRequest(new CommunicationObject(MessageType.RequestData, MST03011_GetMasterDataSet, null));

            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            ccfg   = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            frmcfg = (ConfigMST03011)ucfg.GetConfigValue(typeof(ConfigMST03011));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST03011();
                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

            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)
            });
            base.MasterMaintenanceWindowList.Add("M16_HINGUN", new List <Type> {
                typeof(MST04022), typeof(SCHM16_HINGUN)
            });

            ScreenClear();

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

            // グリッドコントローラ設定
            gridDtl = new GcSpreadGridController(spGridList);

            SetFocusToTopControl();
            ErrorMessage = "";

            // フォーカス設定
            cmb_商品分類.Focus();
        }
Exemplo n.º 3
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 = (ConfigMST03010)ucfg.GetConfigValue(typeof(ConfigMST03010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST03010();
                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();

            base.MasterMaintenanceWindowList.Add("M09_HIN", new List <Type> {
                null, typeof(SCHM09_HIN)
            });
            base.MasterMaintenanceWindowList.Add("M06_IRO", new List <Type> {
                null, typeof(SCHM06_IRO)
            });
            base.MasterMaintenanceWindowList.Add("M14_BRAND", new List <Type> {
                null, typeof(SCHM14_BRAND)
            });
            base.MasterMaintenanceWindowList.Add("M15_SERIES", new List <Type> {
                null, typeof(SCHM15_SERIES)
            });
            base.MasterMaintenanceWindowList.Add("M16_HINGUN", new List <Type> {
                null, typeof(SCHM16_HINGUN)
            });
            base.MasterMaintenanceWindowList.Add("M12_DAI", new List <Type> {
                null, typeof(SCHM12_DAIBUNRUI)
            });
            base.MasterMaintenanceWindowList.Add("M13_CHU", new List <Type> {
                null, typeof(SCHM13_TYUBUNRUI)
            });
        }
Exemplo n.º 4
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //sp車輌一括データ.InputBindings.Add(new KeyBinding(sp車輌一括データ.NavigationCommands.MoveNext, Key.Enter, ModifierKeys.None));
            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 = (ConfigMST06030)ucfg.GetConfigValue(typeof(ConfigMST06030));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST06030();
            }
            else
            {
                this.Top    = frmcfg.Top;
                this.Left   = frmcfg.Left;
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }

            ScreenClear();

            ResetAllValidation();
        }
Exemplo n.º 5
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 = (ConfigTKS90010)ucfg.GetConfigValue(typeof(ConfigTKS90010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigTKS90010();
                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("M70_JIS", new List <Type> {
                typeof(MST16010), typeof(SCHM70_JIS)
            });

            ButtonCellType btn = this.sp確定データ一覧.Columns[(int)GridColumnsMapping.確定ボタン].CellType as ButtonCellType;
            btn.Command = new cmd確定日登録(sp確定データ一覧);
            gridCtl     = new GcSpreadGridController(sp確定データ一覧);

            this.MyCompany.Text1           = ccfg.自社コード.ToString();
            this.MyCompany.Text1IsReadOnly = (ccfg.自社販社区分 != 0);

            ScreenClear();
        }
Exemplo n.º 6
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            ccfg   = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            frmcfg = (ConfigZIK04010)ucfg.GetConfigValue(typeof(ConfigZIK04010));

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

                // 表示できるかチェック
                var varHeightCHK = WinFormsScreen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (varHeightCHK > 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("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)
            });
            //base.MasterMaintenanceWindowList.Add("M22_SOUK", new List<Type> { typeof(MST12020), typeof(SCHM22_SOUK) });

            // コンボデータ取得
            AppCommon.SetutpComboboxList(this.cmbItemType, false);

            // 検索条件部の初期設定をおこなう
            initSearchControl();

            // 初期フォーカスを設定
            this.myCompany.SetFocus();
            ResetAllValidation();
        }
Exemplo n.º 7
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 = (ConfigBSK01010)ucfg.GetConfigValue(typeof(ConfigBSK01010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigBSK01010();
                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("M01_TOK", new List <Type> {
                typeof(MST01010), typeof(SCHM01_TOK)
            });
            base.MasterMaintenanceWindowList.Add("M09_MYHIN", new List <Type> {
                typeof(MST02010), typeof(SCHM09_MYHIN)
            });                                                                                                             // No.400 Add
            base.MasterMaintenanceWindowList.Add("M70_JIS", new List <Type> {
                typeof(MST16010), typeof(SCHM70_JIS)
            });

            ScreenClear();

            SetFocusToTopControl();
        }
Exemplo n.º 8
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)
            });
            base.MasterMaintenanceWindowList.Add("M09_MYHIN", new List <Type> {
                typeof(MST02010), typeof(SCHM09_MYHIN)
            });                                                                                                              // No.396 Add

            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            ccfg   = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            frmcfg = (ConfigZIJ02010)ucfg.GetConfigValue(typeof(ConfigZIJ02010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigZIJ02010();
                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));

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

            spGridList.RowCount = 0;

            SetFocusToTopControl();
            ErrorMessage = "";
        }
Exemplo n.º 9
0
        /// <summary>
        /// 画面が表示された後のイベント処理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region 画面初期設定(権限設定等)
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigDLY01020)ucfg.GetConfigValue(typeof(ConfigDLY01020));

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

            if (frmcfg == null)
            {
                frmcfg = new ConfigDLY01020();
                // 画面サイズをタスクバーをのぞいた状態で表示させる
                //this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height - this.Top;
            }
            else
            {
                this.Top    = frmcfg.Top;
                this.Left   = frmcfg.Left;
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }

            #endregion

            base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> {
                typeof(MST01010), typeof(SCHM01_TOK)
            });
            base.MasterMaintenanceWindowList.Add("M09_HIN", new List <Type> {
                typeof(MST02010), typeof(SCHM09_HIN)
            });
            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)
            });

            AppCommon.SetutpComboboxList(this.c仕入区分, false);
            gridCtl = new GcSpreadGridController(gcSpreadGrid);

            ScreenClear();
            ChangeKeyItemChangeable(true);

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

            gridCtl.SetCellFocus(0, (int)GridColumnsMapping.自社品番);
            this.c伝票番号.Focus();
        }
Exemplo n.º 10
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 = (ConfigTKS09010)ucfg.GetConfigValue(typeof(ConfigTKS09010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigTKS09010();
                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("M70_JIS", new List <Type> {
                typeof(MST16010), typeof(SCHM70_JIS)
            });

            this.MyCompany.Text1           = ccfg.自社コード.ToString();
            this.MyCompany.Text1IsReadOnly = (ccfg.自社販社区分 != 0);
            this.CreateYMDPriod.Text1      = string.Format("{0:yyyy/MM/dd}", DateTime.Now);
            this.CreateYMDPriod.Text2      = string.Format("{0:yyyy/MM/dd}", DateTime.Now);

            ScreenClear();
        }
Exemplo n.º 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 = (ConfigMST0101011)ucfg.GetConfigValue(typeof(ConfigMST0101011));

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

            if (frmcfg == null)
            {
                frmcfg = new ConfigMST0101011();
                // 画面サイズをタスクバーをのぞいた状態で表示させる
                //this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height - this.Top;
            }
            else
            {
                this.Top    = frmcfg.Top;
                this.Left   = frmcfg.Left;
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }

            #endregion

            // コンボボックスデータ生成
            AppCommon.SetutpComboboxList(this.T_SHIHARAI_KBN, false);
            AppCommon.SetutpComboboxList(this.S_SHIHARAI_KBN, false);

            base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> {
                typeof(MST01010), 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)
            });
            base.MasterMaintenanceWindowList.Add("M11_TEK", new List <Type> {
                typeof(MST08010), typeof(SCHM11_TEK)
            });

            this.T_SHIHARAI.PreviewLostKeyboardFocus += SHIHARAI_LostFocus;
            this.S_SHIHARAI.PreviewLostKeyboardFocus += SHIHARAI_LostFocus;

            ScreenClear();
            ChangeKeyItemChangeable(true);
            SetFocusToTopControl();
        }
Exemplo n.º 12
0
        /// <summary>
        /// 画面読み込み後のイベント処理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void RibbonWindow_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigSHR05020)ucfg.GetConfigValue(typeof(ConfigSHR05020));
            ccfg   = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));

            if (frmcfg == null)
            {
                frmcfg = new ConfigSHR05020();
                ucfg.SetConfigValue(frmcfg);
            }
            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

            base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> {
                null, typeof(SCHM01_TOK)
            });
            base.MasterMaintenanceWindowList.Add("M70_JIS", new List <Type> {
                null, typeof(SCHM70_JIS)
            });

            // コンボデータ取得
            //AppCommon.SetutpComboboxList(this.CreateType);

            // 初期値設定
            myCompany.Text1     = ccfg.自社コード.ToString();
            myCompany.IsEnabled = ccfg.自社販社区分 == 自社販社区分.自社.GetHashCode();
            this.PrintDate.Text = DateTime.Now.ToString("yyyy/MM/dd");

            CreateYearMonth.Text = DateTime.Now.ToString("yyyy/MM");

            SetFocusToTopControl();
            ErrorMessage = string.Empty;
        }
Exemplo n.º 13
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded_1(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;
            }
            #endregion
            frmcfg = (ConfigJMI11010)ucfg.GetConfigValue(typeof(ConfigJMI11010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigJMI11010();
                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("M04_DRV", new List <Type> {
                typeof(MST04010), typeof(SCH04010)
            });
            //base.MasterMaintenanceWindowList.Add("S13_DRV", new List<Type> { null, typeof(SCH14010) });
        }
Exemplo n.º 14
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 = (ConfigBSK04010)ucfg.GetConfigValue(typeof(ConfigBSK04010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigBSK04010();
                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));

            #endregion

            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)
            });
            base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> {
                typeof(MST01010), typeof(SCHM01_TOK)
            });

            // 画面初期化
            ScreenClear();

            // コントロール初期化
            InitControl();

            SetFocusToTopControl();
        }
Exemplo n.º 15
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 = (ConfigZIJ07010)ucfg.GetConfigValue(typeof(ConfigZIJ07010));

            if (frmcfg == null)
            {
                frmcfg = new ConfigZIJ07010();
                ucfg.SetConfigValue(frmcfg);
                frmcfg.spConfigZIJ07010 = 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("M09_MYHIN", new List <Type> {
                typeof(MST02010), typeof(SCHM09_MYHIN)
            });
            base.MasterMaintenanceWindowList.Add("M22_SOUK", new List <Type> {
                typeof(MST12020), typeof(SCHM22_SOUK)
            });

            AppCommon.SetutpComboboxList(cmbInbound);

            initSearchControl();

            SetFocusToTopControl();
            ResetAllValidation();
        }
Exemplo n.º 16
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 = (ConfigMST09010)ucfg.GetConfigValue(typeof(ConfigMST09010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST09010();
                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
            //string[] Keihi_items = { "1:車輌費", "2:保険費", "3:人件費", "4:燃料費", "5:修理費", "6:諸経費" };
            //foreach (string Keihi_item in Keihi_items)
            //{
            //    // 項目を追加する
            //    ComboKeihi.Items.Add(Keihi_item);
            //}

            AppCommon.SetutpComboboxList(this.cmbKeihi, false);

            ScreenClear();

            base.MasterMaintenanceWindowList.Add("M07_KEI", new List <Type> {
                null, typeof(SCH09010)
            });
        }
Exemplo n.º 17
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 = (ConfigMST23010)ucfg.GetConfigValue(typeof(ConfigMST23010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST23010();
                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();

            base.MasterMaintenanceWindowList.Add("M70_JIS", new List <Type> {
                null, typeof(SCHM70_JIS)
            });
            base.MasterMaintenanceWindowList.Add("M72_TNT", new List <Type> {
                null, typeof(SCHM72_TNT)
            });
            base.MasterMaintenanceWindowList.Add("M74_AUTHORITY_NAME", new List <Type> {
                null, typeof(SCHM74_KGRPNAME)
            });
        }
Exemplo n.º 18
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 = (ConfigMST25010)ucfg.GetConfigValue(typeof(ConfigMST25010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST25010();
                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();
            ResetAllValidation();
            ScreenClear();

            //得意先ID用
            base.MasterMaintenanceWindowList.Add("M01_TOK_TOKU_SCH", new List <Type> {
                typeof(MST01010), typeof(SCH01010)
            });
            //base.MasterMaintenanceWindowList.Add("S01_TOKS", new List<Type> { null, typeof(SCH14010) });
        }
Exemplo n.º 19
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigMST01010)ucfg.GetConfigValue(typeof(ConfigMST01010));

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

            if (frmcfg == null)
            {
                frmcfg = new ConfigMST01010();
                //画面サイズをタスクバーをのぞいた状態で表示させる
                //this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height - this.Top;
            }
            else
            {
                this.Top    = frmcfg.Top;
                this.Left   = frmcfg.Left;
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }

            base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> {
                null, typeof(SCH01010)
            });
            base.MasterMaintenanceWindowList.Add("M71_BUM", new List <Type> {
                typeof(MST10010), typeof(SCH10010)
            });
            base.MasterMaintenanceWindowList.Add("M70_JIS", new List <Type> {
                typeof(MST12010), typeof(SCH12010)
            });

            AppCommon.SetutpComboboxList(this.cmb消費税区分_支払, false);
            AppCommon.SetutpComboboxList(this.cmb消費税区分_請求, false);
            AppCommon.SetutpComboboxList(this.cmb親子区分, false);
            AppCommon.SetutpComboboxList(this.cmb請求書運賃計算区分_支払, false);
            AppCommon.SetutpComboboxList(this.cmb請求書運賃計算区分_請求, false);
            AppCommon.SetutpComboboxList(this.cmb請求書区分, false);

            ScreenClear();
            ChangeKeyItemChangeable(true);
            Txt登録件数.Focusable = false;
            SetFocusToTopControl();
        }
Exemplo n.º 20
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded_1(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigZIK01010)ucfg.GetConfigValue(typeof(ConfigZIK01010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigZIK01010();
                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

            // システム日付の前月を初期値とする
            this.CreateYearMonth.Text = string.Format("{0:yyyy/MM}", DateTime.Now.AddMonths(-1));

            ScreenClear();
        }
Exemplo n.º 21
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void RibbonWindow_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 = (ConfigMST21010)ucfg.GetConfigValue(typeof(ConfigMST21010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST21010();
                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> {
                typeof(MST01010), 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)
            });

            ScreenClear();
        }
Exemplo n.º 22
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.SendRequest(new CommunicationObject(MessageType.RequestData, MST02011_GetMasterDataSet, null));

            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            ccfg   = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            frmcfg = (ConfigMST02011)ucfg.GetConfigValue(typeof(ConfigMST02011));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST02011();
                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

            ScreenClear();

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

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

            spGridList.RowCount = 0;

            SetFocusToTopControl();
            ErrorMessage = "";
        }
Exemplo n.º 23
0
 /// <summary>
 /// Loadイベント
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Window_Loaded_1(object sender, RoutedEventArgs e)
 {
     #region 設定項目取得
     ucfg   = AppCommon.GetConfig(this);
     frmcfg = (ConfigMST01010_1)ucfg.GetConfigValue(typeof(ConfigMST01010_1));
     if (frmcfg == null)
     {
         frmcfg = new ConfigMST01010_1();
         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
 }
Exemplo n.º 24
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded_1(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (Configmst04021_1)ucfg.GetConfigValue(typeof(Configmst04021_1));
            if (frmcfg == null)
            {
                frmcfg = new Configmst04021_1();
                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;
                PrinterName = frmcfg.PrinterName;
            }
            #endregion

            base.MasterMaintenanceWindowList.Add("M15_SERIES", new List <Type> {
                null, typeof(SCHM15_SERIES)
            });
        }
Exemplo n.º 25
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MST90010_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigMST90010)ucfg.GetConfigValue(typeof(ConfigMST90010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST90010();
                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, GET_CNTL, 1, 0));
            base.SendRequest(new CommunicationObject(MessageType.RequestData, GET_RPT));
        }
Exemplo n.º 26
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 = (ConfigMST90030)ucfg.GetConfigValue(typeof(ConfigMST90030));
            if (frmcfg == null)
            {
                frmcfg = new ConfigMST90030();
                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.FillName = frmcfg.FillPass;
            }
            #endregion

            AppCommon.SetutpComboboxList(this.TableName, false);
        }
Exemplo n.º 27
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 = (ConfigDLY11010)ucfg.GetConfigValue(typeof(ConfigDLY11010));

            //20190919 add-s CB 軽減税率対応
            // 権限設定を呼び出す(ucfgを取得した後のに入れる)
            ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            //20190919 add-e CB 軽減税率対応

            if (frmcfg == null)
            {
                frmcfg = new ConfigDLY11010();
                ucfg.SetConfigValue(frmcfg);
                frmcfg.spConfig20180118 = this.sp_Config;
            }
            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

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

            // 初期値設定
            txt売上日From.Text = DateTime.Now.ToString("yyyy/MM/dd");
            txt売上日To.Text   = DateTime.Now.ToString("yyyy/MM/dd");

            SetFocusToTopControl();
        }
Exemplo n.º 28
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)";

            // 初期フォーカスの設定を行う
            this.KakuteiCode.Focus();
            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;
            this.Vehicle.SelectionChanged     += this.Vehicle_SelectionChanged;

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

            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigSCH06010)ucfg.GetConfigValue(typeof(ConfigSCH06010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigSCH06010();
                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.Vehicle.SelectedIndex     = frmcfg.VehicleCombo;
            }
            #endregion
        }
Exemplo n.º 29
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();
        }
Exemplo n.º 30
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)";

            //呼び出し元から表示区分を取ってくる。
            if (this.TwinTextBox.LinkItem != null)
            {
                int.TryParse(this.TwinTextBox.LinkItem.ToString(), out majorClassCode);
            }
            else if (multi == 1)
            {
            }

            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;
            }

            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigSCHM13_TYUBUNRUI)ucfg.GetConfigValue(typeof(ConfigSCHM13_TYUBUNRUI));
            if (frmcfg == null)
            {
                frmcfg = new ConfigSCHM13_TYUBUNRUI();
                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
        }