예제 #1
0
        private void DataUpdate()
        {
            // エラーチェック
            if (!errCheck())
            {
                return;
            }

            if (MessageBox.Show("データを更新してよろしいですか", "確認", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.No)
            {
                return;
            }

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

            r.年        = Utility.StrtoInt(txtYear.Text);
            r.月        = Utility.StrtoInt(txtMonth.Text);
            r.汎用データ出力先 = txtCsvPath.Text;
            r.社員マスターパス = txtMstPath.Text;
            r.データ保存月数  = Utility.StrtoInt(txtDataSpan.Text);
            r.受信監視スパン  = Utility.StrtoInt(txtRecSpan.Text);
            r.編集アカウント  = global.flgOff;
            r.更新年月日    = DateTime.Now;

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

            //
            //global.cnfPath = r.受け渡しデータ作成パス;
            //global.cnfImgPath = r.画像保存先パス;
            //global.cnfLogPath = r.ログデータ出力先パス;

            // 終了
            this.Close();
        }
예제 #2
0
        public getConfig()
        {
            try
            {
                adp.Fill(cTbl);
                DataSet1.環境設定Row r = cTbl.FindByID(global.configKEY);

                global.cnfYear     = r.年;
                global.cnfMonth    = r.月;
                global.cnfPath     = r.汎用データ出力先;
                global.cnfArchived = r.データ保存月数;
                global.cnfKihonWh  = r.基本実労働時;
                global.cnfKihonWm  = r.基本実労働分;
                global.cnfMsPath   = r.社員マスターパス;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "環境設定年月取得", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }
            finally
            {
            }
        }