Версия 100

This commit is contained in:
2024-07-09 07:31:46 +05:00
parent 55241bfa69
commit bf34d57905
12 changed files with 26 additions and 87 deletions

View File

@ -1145,6 +1145,21 @@ public class DbOpenHelper extends SQLiteOpenHelper
sql = "ALTER TABLE frmlocustdel ADD locust_purpose_id integer;";
db.execSQL(sql);
sql = """
update main.frmlocustdel set
locust_purpose_id =
CASE
WHEN locust_swarm THEN 3
WHEN locust_kuliguli THEN 2
WHEN locust_imago THEN 1
WHEN locust_sparse THEN 4
ELSE locust_purpose_id
END
where
locust_purpose_id is null;
""";
db.execSQL(sql);
sql = "ALTER TABLE frmlocustdel ADD efficacy_impact_id integer;";
db.execSQL(sql);
sql = "ALTER TABLE frmlocustdel ADD insecticide_diluted_id integer;";

View File

@ -297,7 +297,7 @@ public class LocustHealthActivity extends FragmentActivity implements LocationLi
guiTableHealth.add(m_Filled, "filled");
/*
btnInfoSafNonTargetEffectPerson = findViewById(R.id.btnInfoSafNonTargetEffectPerson);
btnInfoSafNonTargetEffectPerson.setOnClickListener(
new OnClickListener()
@ -319,7 +319,7 @@ public class LocustHealthActivity extends FragmentActivity implements LocationLi
}
}
);
*/
//edtImage1 = (EditText) findViewById(R.id.edtImage1); // Фото
//guiTable.add(edtImage1, "image_name1");