Esempio n. 1
0
        // サブプロシージャ: PQMテーブルでの削除(バックグラウンド処理)
        private void deleteFromPqmTable(DataTable dt)
        {
            var task = Task.Factory.StartNew(() =>
            {
                string model         = txtModel.Text;
                string process       = txtProcess.Text;
                string inspect       = txtInspect.Text;
                DateTime lot         = DateTime.Parse(dt.Rows[0]["lot"].ToString());
                DateTime inspectdate = DateTime.Parse(dt.Rows[0]["inspectdate"].ToString());
                string line          = txtLine.Text;

                TfSqlPqm Tfc = new TfSqlPqm();
                Tfc.sqlDeleteFromPqmTable(model, process, inspect, lot, inspectdate, line);
            });
        }
Esempio n. 2
0
        // サブプロシージャ: PQMテーブルへの登録(バックグラウンド処理)
        private void registerMeasurementToPqmTable(DataTable dt)
        {
            var task = Task.Factory.StartNew(() =>
            {
                string model         = txtModel.Text;
                string process       = txtProcess.Text;
                string inspect       = txtInspect.Text;
                DateTime lot         = DateTime.Parse(dt.Rows[0]["lot"].ToString());
                DateTime inspectdate = DateTime.Parse(dt.Rows[0]["inspectdate"].ToString());
                string line          = txtLine.Text;

                TfSqlPqm Tfc = new TfSqlPqm();
                Tfc.sqlMultipleInsertMeasurementToPqmTable(model, process, inspect, lot, inspectdate, line, dt, upp, low);
            });
        }