public DuringStartupJobnetWindow(String innerJobnetId, JobArrangerWindow jobArrangerWindow) { InitializeComponent(); _innerJobnetId = innerJobnetId; _jobArrangerWindow = jobArrangerWindow; DataContext = this; }
public SetParameterPage(JobArrangerWindow parent) { bool viewer = false; #if VIEWER viewer = true; #endif //Parent = parent; InitializeComponent(); // 設定値取得・表示 SetValues(); // Zabbixユーザー(一般ユーザー)、参照モードの場合は参照のみ if (LoginSetting.Authority == Consts.AuthorityEnum.GENERAL || viewer) { // 画面コントロールを非活性化 SetItemIsEnabled(false, true); } else { SetItemIsEnabled(true, false); } _parent = parent; DataContext = this; }
/// <summary>コンストラクタ(新規追加用)</summary> public ScheduleEdit(JobArrangerWindow parentWindow) { ParantWindow = parentWindow; InitializeComponent(); tbxScheduleId.SetValue(InputMethod.IsInputMethodEnabledProperty, false); // 初期化 LoadForAdd(); HankakuTextChangeEvent.AddTextChangedEventHander(tbxScheduleId); _successFlg = true; }
/// <summary>ログイン処理</summary> private void login() { if (!dsnList.Contains <String>(((JobconDBSource)this.comboBox_jobarg.SelectedItem).DBS)) { CommonDialog.ShowErrorDialog(Consts.ERROR_LOGIN_005); return; } String connectStr = ((JobconDBSource)this.comboBox_jobarg.SelectedItem).ConnnectStr; DBConnect dbConnect; bool authSuccess = false; dbConnect = new DBConnect(connectStr); try { dbConnect.CreateSqlConnect(); } catch (Exception e) { CommonDialog.ShowErrorDialog(Consts.ERROR_LOGIN_006); return; } authSuccess = auth(dbConnect); if (authSuccess) { if (!CheckUserStatus(dbConnect)) { CommonDialog.ShowErrorDialog(Consts.ERROR_LOGIN_002); dbConnect.CloseSqlConnect(); return; } if (LoginSetting.Lang.Equals("ja_jp")) { Thread.CurrentThread.CurrentUICulture = new CultureInfo("ja-JP", false); } else if (LoginSetting.Lang.Equals("ko_kr")) { Thread.CurrentThread.CurrentUICulture = new CultureInfo("ko-KR", false); } else { LoginSetting.Lang = "en_us"; Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US", false); } JobArrangerWindow jobArrangerWindow = new JobArrangerWindow(); jobArrangerWindow.Show(); this.Close(); } else { dbConnect.CloseSqlConnect(); CommonDialog.ShowErrorDialog(Consts.ERROR_LOGIN_001); } }
/// <summary>コンストラクタ(編集、コピー新規用)</summary> /// <param name="innerJobnetId">実行ジョブネットID</param> public SubJobEdit(JobArrangerWindow parentWindow, string jobnetId, string updDate, Consts.EditType editType, bool needFocus) { InitializeComponent(); jobEdit = new JobEdit(parentWindow, jobnetId, updDate, editType); _successFlg = false; if (jobEdit.SuccessFlg) { _successFlg = true; } jobEdit.IsSubJobnet = true; SubJobnetGrid.Children.Add(jobEdit); _needFocus = needFocus; }
public JobnetExecResultPage(JobArrangerWindow parent) { InitializeComponent(); tbxJobnetId.SetValue(InputMethod.IsInputMethodEnabledProperty, false); tbxJobId.SetValue(InputMethod.IsInputMethodEnabledProperty, false); tbxManageId.SetValue(InputMethod.IsInputMethodEnabledProperty, false); runLogDAO = new RunLogDAO(_db); userDAO = new UsersDAO(_db); InitSearchData(); HankakuTextChangeEvent.AddTextChangedEventHander(tbxJobnetId); HankakuTextChangeEvent.AddTextChangedEventHander(tbxJobId); }
/// <summary>コンストラクタ(編集、コピー新規用)</summary> /// <param name="scheduleId">スケジュールID</param> /// <param name="updDate">更新日</param> public ScheduleEdit(JobArrangerWindow parentWindow, string scheduleId, string updDate, Consts.EditType editType) { ParantWindow = parentWindow; if (LoadForUpd(scheduleId, updDate, editType)) { InitializeComponent(); tbxScheduleId.SetValue(InputMethod.IsInputMethodEnabledProperty, false); HankakuTextChangeEvent.AddTextChangedEventHander(tbxScheduleId); _successFlg = true; } else { _successFlg = false; } }
public JobArrangerCommands(JobArrangerWindow window) { this.window = window; }
/// <summary> /// コンストラクタ /// </summary> public ImportWindow(JobArrangerWindow jobArrangerWindow) { InitializeComponent(); _jobArrangerWindow = jobArrangerWindow; DataContext = this; }