1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| this.Cursor = Cursors.WaitCursor;
txt_log_Traitement.Text = DateTime.Now + " - Début vérification structures ...";
txt_log_Traitement.Text += "\n";
DataTable DT_Article = new DataTable();
DT_Article.Clear();
F_ARTICLE.VerifExistanceArticle(DT_Article, _do_piece, _typedoc, _base_origine, _base_cible);
txt_log_Traitement.Text += DateTime.Now + " - Nombre d'articles inexistants : " + DT_Article.Rows.Count.ToString();
txt_log_Traitement.Text += "\n";
DataTable DT_Famille = new DataTable();
DT_Famille.Clear();
F_FAMILLE.Get_FamilleInexistante(DT_Famille, _do_piece, _typedoc, _base_origine, _base_cible);
txt_log_Traitement.Text += DateTime.Now + " - Nombre de familles inexistantes : " + DT_Famille.Rows.Count.ToString();
txt_log_Traitement.Text += "\n";
txt_log_Traitement.Text += DateTime.Now + " - Fin vérification structures ...";
txt_log_Traitement.Text += "\n";
if (DT_Article.Rows.Count > 0 || DT_Famille.Rows.Count > 0)
{
Moulinette.GenerationDocument.Form1 f = new Form1(DT_Article, DT_Famille);
f.Show();
txt_log_Traitement.Text += DateTime.Now + " - Fin de traitement ...";
}
else
InsertionDocument(); |
Partager