Exemple #1
0
        public getConfig()
        {
            try
            {
                adp.Fill(db.環境設定);
                DSLGDataSet.環境設定Row r = db.環境設定.Single(a => a.ID == global.configKEY);

                global.cnfTifPath      = r.照合済みフォルダパス;
                global.cnfUnmImgPath   = r.未照合画像フォルダパス;
                global.cnfUnmOkImgPath = r.未照合OKフォルダパス;

                if (r.Is配車データパスNull())
                {
                    global.cnfHaishaPath = string.Empty;
                }
                else
                {
                    global.cnfHaishaPath = r.配車データパス;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "環境設定情報取得", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }
            finally
            {
            }
        }
Exemple #2
0
        /// -------------------------------------------------------------
        /// <summary>
        ///     OCR認識日付を更新 </summary>
        /// <param name="dt">
        ///     日付</param>
        /// -------------------------------------------------------------
        private void cnfUpdate(string dt)
        {
            DSLGDataSet dts = new DSLGDataSet();

            DSLGDataSetTableAdapters.環境設定TableAdapter adp = new DSLGDataSetTableAdapters.環境設定TableAdapter();
            adp.Fill(dts.環境設定);

            DSLGDataSet.環境設定Row r = dts.環境設定.Single(a => a.ID == global.configKEY);
            r.OCR認識日付 = DateTime.Parse(dt);
            adp.Update(dts);
        }
Exemple #3
0
        private void DataUpdate()
        {
            if (MessageBox.Show("データを更新してよろしいですか", "確認", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.No)
            {
                return;
            }

            // エラーチェック
            //if (!errCheck(lblLogPath, txtLogName, "処理結果ログ出力先パス", "処理結果ログファイル名")) return;

            DSLGDataSet.環境設定Row r = db.環境設定.Single(a => a.ID == global.configKEY);

            r.照合済みフォルダパス  = lblPath.Text;
            r.未照合画像フォルダパス = lblUnmImgPath.Text;
            r.未照合OKフォルダパス = lblUnmOkPath.Text;
            r.更新年月日       = DateTime.Now;

            // データ更新
            adp.Update(r);

            // 終了
            this.Close();
        }