oprava nacenovania - oprava citania vykresu z DB

This commit is contained in:
roman6791
2021-08-16 11:20:56 +02:00
parent af17e590be
commit 6ea3678213
9 changed files with 326 additions and 317 deletions

View File

@@ -139,7 +139,8 @@ namespace Mip
objObjectPocty.SetDataToForm(this);
string strIDVykres = "";
classSQL.SQL("SELECT `IDVykres` FROM `mip`.`tabvykres` WHERE IDVyrobok = " + IDV.ToString() + " AND IndexVykresu = 1", out strIDVykres);
var commandSQL = $@"SELECT `IDVykres` FROM `mip`.`tabvykres` WHERE IDVyrobok = {IDV.ToString()} order by IndexVykresu asc LIMIT 1;";
classSQL.SQL(commandSQL, out strIDVykres);
IDVykres = Convert.ToInt32(strIDVykres);
Image setImage = classSQL.VykresZSQLDoPictureBox(IDVykres);