/// <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(); }
/// <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; } }
/// <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 = (ConfigDLY05010)ucfg.GetConfigValue(typeof(ConfigDLY05010)); #endregion if (frmcfg == null) { frmcfg = new ConfigDLY05010(); 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; } }
/// <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.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; } if (TwinTextBox.LinkItem != null) { // 会社コードとして値を設定 int val = -1; if (int.TryParse(TwinTextBox.LinkItem.ToString(), out val)) { 会社コード = val; } } #region 設定項目取得 ucfg = AppCommon.GetConfig(this); ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig)); frmcfg = (ConfigSCHM22_SOUK)ucfg.GetConfigValue(typeof(ConfigSCHM22_SOUK)); if (frmcfg == null) { frmcfg = new ConfigSCHM22_SOUK(); 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 AppCommon.SetutpComboboxList(this.OrderColumn, false); // 初期フォーカスの設定を行う GridOutPut(); #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 }
/// <summary> /// 画面表示後のイベント処理 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MainWindow_Loaded(object sender, RoutedEventArgs e) { ucfg = AppCommon.GetConfig(this); // 権限設定を呼び出す(ucfgを取得した後のに入れる) ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig)); 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) { // No-268 Mod Start // linkitemがリストかどうか判定し取引区分を取得 string s取引区分; if (this.TwinTextBox.LinkItem is string[]) { int linkAddVal = 0; string[] linkItemList = (this.TwinTextBox.LinkItem as string[]); s取引区分 = linkItemList[0].ToString(); マルセン追加フラグ = int.TryParse(linkItemList[1].ToString(), out linkAddVal) ? linkAddVal : 0; if (linkItemList.Length > 3) { 対象日付 = linkItemList[2].ToString(); 自社コード = int.TryParse(linkItemList[3].ToString(), out linkAddVal) ? linkAddVal : 0; } } else { s取引区分 = this.TwinTextBox.LinkItem.ToString(); } string[] ary = s取引区分.Split(','); // No-268 Mod End if (ary.Length <= 1) { // TwinTextLinkItem設定 int linkVal = 9; if (int.TryParse(ary[0], out linkVal)) { this.cmbDealings.Combo_IsEnabled = false; } AppCommon.SetutpComboboxList(this.cmbDealings, false); this.cmbDealings.SelectedValue = linkVal; } else { // 複数指定してある場合はパラメータを再設定して再取得する this.cmbDealings.ComboListingParams = getComboListingParams_tradingKbn(ary); AppCommon.SetutpComboboxList(this.cmbDealings, false); } } else if (multi == 1) { // TODO:現状マルチのパターンが不明の為一旦コメントアウト //this.cmbDealings.SelectedValue = (int)取引区分; } else { AppCommon.SetutpComboboxList(this.cmbDealings, false); // デフォルト値(全取引先)を設定 this.cmbDealings.SelectedValue = 9; } // No-291 Mod Start AppCommon.SetutpComboboxList(this.OrderColumn, false); // 呼び出し時にコードが設定されている場合は初期値として設定する if (!string.IsNullOrEmpty(this.TwinTextBox.Text1)) { コード = this.TwinTextBox.Text1; } // No-291 Mod End GridOutPut(); this.OrderColumn.SelectionChanged += this.OrderColumn_SelectionChanged; // 画面サイズをタスクバーをのぞいた状態で表示させる this.Height = WinFormsScreen.PrimaryScreen.WorkingArea.Size.Height; // メイン画面と子画面が被ることなく表示できるかチェック if (WinFormsScreen.PrimaryScreen.WorkingArea.Size.Width < 1024 + 342) { // 画面の左端に表示させる this.Left = WinFormsScreen.PrimaryScreen.WorkingArea.Size.Width - this.Width; } #region 設定項目取得 ucfg = AppCommon.GetConfig(this); frmcfg = (ConfigSCHM01_TOK)ucfg.GetConfigValue(typeof(ConfigSCHM01_TOK)); if (frmcfg == null) { frmcfg = new ConfigSCHM01_TOK(); ucfg.SetConfigValue(frmcfg); } 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.Height = frmcfg.Height; this.Width = frmcfg.Width; this.OrderColumn.SelectedIndex = frmcfg.Combo_Copy; } #endregion }
/// <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 = (ConfigTKS01010)ucfg.GetConfigValue(typeof(ConfigTKS01010)); if (frmcfg == null) { frmcfg = new ConfigTKS01010(); 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("M70_JIS", new List <Type> { typeof(MST16010), typeof(SCHM70_JIS) }); this.sp請求データ一覧.PreviewKeyDown += sp請求データ一覧_PreviewKeyDown; ButtonCellType btn = this.sp請求データ一覧.Columns[3].CellType as ButtonCellType; btn.Command = new cmd期間クリア(sp請求データ一覧); this.MyCompany.Text1 = ccfg.自社コード.ToString(); this.MyCompany.Text1IsReadOnly = (ccfg.自社販社区分 != 0); this.CreateYearMonth.Text = string.Format("{0:yyyy/MM}", DateTime.Now); ScreenClear(); }
/// <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 = (ConfigDLY04011)ucfg.GetConfigValue(typeof(ConfigDLY04011)); #endregion if (frmcfg == null) { frmcfg = new ConfigDLY04011(); 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 // 検索画面情報を設定 base.MasterMaintenanceWindowList.Add("M09_MYHIN", new List <Type> { null, typeof(SCHM09_MYHIN) }); 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) }); base.MasterMaintenanceWindowList.Add("M22_SOUK", new List <Type> { typeof(MST12020), typeof(SCHM22_SOUK) }); ScreenClear(); ChangeKeyItemChangeable(true); // ログインユーザの自社区分によりコントロール状態切換え this.txt会社名.Text1 = ccfg.自社コード.ToString(); this.txt会社名.IsEnabled = ccfg.自社販社区分.Equals((int)自社販社区分.自社); this.txt伝票番号.Focus(); }
/// <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(); }
/// <summary> /// 画面読み込み /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MainWindow_Loaded_1(object sender, RoutedEventArgs e) { // スプレッドリセット時 this.sp_Config = AppCommon.SaveSpConfig(this.spGridList); base.MasterMaintenanceWindowList.Add("M01_TOK_TOKU_SCH", new List <Type> { null, typeof(SCHM01_TOK) }); base.MasterMaintenanceWindowList.Add("M70_JIS", new List <Type> { typeof(MST16010), typeof(SCHM70_JIS) }); base.MasterMaintenanceWindowList.Add("M72_TNT", new List <Type> { null, typeof(SCHM72_TNT) }); #region 設定項目取得 ucfg = AppCommon.GetConfig(this); ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig)); frmcfg = (ConfigZIJ03010)ucfg.GetConfigValue(typeof(ConfigZIJ03010)); if (frmcfg == null) { frmcfg = new ConfigZIJ03010(); ucfg.SetConfigValue(frmcfg); frmcfg.spConfig20180118 = 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.Height = frmcfg.Height; this.Width = frmcfg.Width; } #endregion // AppCommon.LoadSpConfig(this.spGridList, frmcfg.spConfig20180118 != null ? frmcfg.spConfig20180118 : this.sp_Config); 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(); base.ErrorMessage = string.Empty; }
/// <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(); }
/// <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 = (ConfigZIJ09010)ucfg.GetConfigValue(typeof(ConfigZIJ09010)); if (frmcfg == null) { frmcfg = new ConfigZIJ09010(); ucfg.SetConfigValue(frmcfg); frmcfg.spConfigZIJ09010 = 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("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); //↓よくわからないプログラム(運坊にあり) //AppCommon.LoadSpConfig(this.spGridList, frmcfg.spConfigZIJ09010 != null ? frmcfg.spConfigZIJ09010 : this.sp_Config); //this.表示固定列数 = this.spGridList.FrozenColumnCount.ToString(); //入出庫明細検索用 //ButtonCellType btn = this.spGridList.Columns[0].CellType as ButtonCellType; //btn.Command = new cmd売上詳細表示(spGridList); initSearchControl(); // 初期フォーカスを設定 this.myCompany.SetFocus(); ResetAllValidation(); }
/// <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 = (ConfigZIK05010)ucfg.GetConfigValue(typeof(ConfigZIK05010)); if (frmcfg == null) { frmcfg = new ConfigZIK05010(); ucfg.SetConfigValue(frmcfg); frmcfg.spConfig = this.spConfig; } else { //表示できるかチェック var varWidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left; if (varWidthCHK > 10) { this.Left = frmcfg.Left; } //表示できるかチェック var varHeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top; if (varHeightCHK > 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) }); 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); // 画面初期化 ScreenClear(); // 検索条件部の初期設定をおこなう initSearchControl(); // 初期フォーカスを設定 this.myCompany.SetFocus(); ResetAllValidation(); SetFocusToTopControl(); }
/// <summary> /// 画面読み込み /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Window_Loaded(object sender, RoutedEventArgs e) { //初期状態記憶 this.spConfig = AppCommon.SaveSpConfig(this.spKodate); //初期化 ScreenClear(); //得意先ID用 base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> { typeof(MST01010), typeof(SCH01010) }); //着地ID用 base.MasterMaintenanceWindowList.Add("M08_TIK_UC", new List <Type> { typeof(MST03010), typeof(SCH03010) }); //データ取得 base.SendRequest(new CommunicationObject(MessageType.RequestData, spTargetTableNm, new object[] { })); #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 = (ConfigMST22010)ucfg.GetConfigValue(typeof(ConfigMST22010)); if (frmcfg == null) { frmcfg = new ConfigMST22010(); 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 if (frmcfg.spConfig != null) { AppCommon.LoadSpConfig(this.spKodate, frmcfg.spConfig); } spKodate.InputBindings.Add(new KeyBinding(spKodate.NavigationCommands.MoveNext, Key.Enter, ModifierKeys.None)); }
/// <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(); }
/// <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 = (ConfigDLY04010)ucfg.GetConfigValue(typeof(ConfigDLY04010)); #endregion if (frmcfg == null) { frmcfg = new ConfigDLY04010(); 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[(int)GridColumnsMapping.構成部品].CellType = btn; // 検索画面情報を設定 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) }); base.MasterMaintenanceWindowList.Add("M22_SOUK", new List <Type> { typeof(MST12020), typeof(SCHM22_SOUK) }); // コンボデータ取得 AppCommon.SetutpComboboxList(this.cmb移動区分, false); ScreenClear(); ChangeKeyItemChangeable(true); // ログインユーザの自社区分によりコントロール状態切換え this.txt会社名.Text1 = ccfg.自社コード.ToString(); this.txt会社名.IsEnabled = ccfg.自社販社区分.Equals((int)自社販社区分.自社); this.txt伝票番号.Focus(); }
/// <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); }
/// <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 = (ConfigDLY02011)ucfg.GetConfigValue(typeof(ConfigDLY02011)); #endregion if (frmcfg == null) { frmcfg = new ConfigDLY02011(); 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 // 検索画面情報を設定 base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> { typeof(MST01010), typeof(SCHM01_TOK) }); base.MasterMaintenanceWindowList.Add("M09_HIN_SET", 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) }); // グリッドコントローラ設定 gridDtl = new GcSpreadGridController(gcDetailSpreadGrid); gridDtb = new GcSpreadGridController(gcInnerSpreadGrid); // セット品情報を取得 sendSearchForShin(SearchDetail.Rows[0]["品番コード"].ToString()); // 画面初期化 ScreenClear(); // 入力可否切り替え ChangeKeyItemChangeable(false); gcDetailSpreadGrid.IsEnabled = false; if (this.MaintenanceMode == AppConst.MAINTENANCEMODE_EDIT) { // ボタン押下不可 SetDispRibbonEnabled(false); // Spread入力不可 SetDispInnerSpreadGridLocked(true); } else if (this.MaintenanceMode == AppConst.MAINTENANCEMODE_ADD) { // Spread入力不可 SetDispInnerSpreadGridLocked(false); // No.424 Add } // フォーカス設定 gcInnerSpreadGrid.Focus(); // No.425 Add gridDtl.SetCellFocus(0, 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 })); } }
/// <summary> /// 画面読み込み /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Window_Loaded(object sender, RoutedEventArgs e) { // 初期化 ScreenClear(); #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 = (ConfigMST22010)ucfg.GetConfigValue(typeof(ConfigMST22010)); if (frmcfg == null) { frmcfg = new ConfigMST22010(); 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 //if (frmcfg.spConfig != null) // AppCommon.LoadSpConfig(this.spComponent, frmcfg.spConfig); spComponent.InputBindings.Add(new KeyBinding(spComponent.NavigationCommands.MoveNext, Key.Enter, ModifierKeys.None)); 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(this.txtMyProduct.Text1)) { // セット品構成品取得 this.SendRequest( new CommunicationObject( MessageType.RequestData, TargetTableNm, new object[] { this.txtMyProduct.Text1, this.txtMyColor.Text1 })); } // 初期状態記憶 //this.spConfig = AppCommon.SaveSpConfig(this.spComponent); }