private void frmNgRecovery_Load(object sender, EventArgs e) { MaximumSize = new System.Drawing.Size(Width, Height); MinimumSize = new System.Drawing.Size(Width, Height); // データベース接続 cn = new SQLiteConnection("DataSource=" + db_file); context = new DataContext(cn); // 発注書データ読み込み tblOrder = context.GetTable <Common.ClsOrder>(); // 環境設定 tblConfig = context.GetTable <Common.ClsSystemConfig>(); Config = (ClsSystemConfig)tblConfig.Single(a => a.ID == global.configKEY); // 2020/04/08 コメント化 //// 得意先マスタークラス配列取得 //string[] tk_Array = System.IO.File.ReadAllLines(Properties.Settings.Default.得意先マスター, Encoding.Default); //int sDate = DateTime.Today.Year * 10000 + DateTime.Today.Month * 100 + DateTime.Today.Day; //tokuisakis = ClsCsvData.ClsCsvTokuisaki.Load(tk_Array, sDate); // グリッドビュー設定 GridViewSetting(dataGridView1); // 発注書リスト GetOrderList(dataGridView1); // ボタン trackBar1.Enabled = false; button2.Enabled = false; dgRows = true; }
private void frmConfig_Load(object sender, EventArgs e) { Utility.WindowsMaxSize(this, this.Width, this.Height); Utility.WindowsMinSize(this, this.Width, this.Height); cn = new SQLiteConnection("DataSource=" + db_file); context = new DataContext(cn); conf = context.GetTable <Common.ClsSystemConfig>(); // 環境設定データを表示 ClsConf = conf.Single(a => a.ID == global.configKEY); txtPath2.Text = ClsConf.DataPath; txtImgPath.Text = ClsConf.ImgPath; txtDataSpan.Text = ClsConf.DataSpan.ToString(); txtLogSpan.Text = ClsConf.LogSpan.ToString(); comboBox1.SelectedIndex = ClsConf.FileWriteStatus; txtNouhinTankaMst.Text = ClsConf.NouhinTankaPath; }
private void frmConfig_Load(object sender, EventArgs e) { Utility.WindowsMaxSize(this, this.Width, this.Height); //Utility.WindowsMinSize(this, this.Width, this.Height); cn = new SQLiteConnection("DataSource=" + db_file); context = new DataContext(cn); conf = context.GetTable <Common.ClsSystemConfig>(); // 環境設定データを表示 ClsConf = conf.Single(a => a.ID == global.configKEY); txtPath2.Text = ClsConf.DataPath; txtImgPath.Text = ClsConf.ImgPath; txtShiiresaki.Text = ClsConf.ShiireMstPath; txtTorihikisaki.Text = ClsConf.TorihikiMstPath; txtHin.Text = ClsConf.HinMstPath; //txtBumon.Text = ClsConf.BumonMstPath; txtDataSpan.Text = ClsConf.DataSpan.ToString(); txtLogSpan.Text = ClsConf.LogSpan.ToString(); }