Правка формы уничножения саранчи

This commit is contained in:
Igor I
2024-05-04 17:15:59 +05:00
parent 55d2ca1997
commit 4a9f08849c
21 changed files with 185 additions and 422 deletions

View File

@ -22,7 +22,7 @@ import tctable.TCTable;
public class DbOpenHelper extends SQLiteOpenHelper public class DbOpenHelper extends SQLiteOpenHelper
{ {
private static final int DB_VERSION = 151; //Версия ожидаемой базы private static final int DB_VERSION = 152; //Версия ожидаемой базы
private static final String DB_NAME = "Locust"; //Наименование базы private static final String DB_NAME = "Locust"; //Наименование базы
//ArrayList<String> lrFrmLocust = new ArrayList<String>(); //Список обязательных полей для формы саранцчи //ArrayList<String> lrFrmLocust = new ArrayList<String>(); //Список обязательных полей для формы саранцчи
@ -625,8 +625,8 @@ public class DbOpenHelper extends SQLiteOpenHelper
"weather_time_end float," + //время окончания "weather_time_end float," + //время окончания
"weather_temperature_start float," + //Температура нач.(°C) "weather_temperature_start float," + //Температура нач.(°C)
"weather_temperature_end float," + //Температура кон.(°C) "weather_temperature_end float," + //Температура кон.(°C)
"weather_humidity_start float," + //отн. влажность воздуха нач.(%) "weather_humidity_start float," + //отн. влажность воздуха нач.(%) (Удалили согласно заданию на 2024год)
"weather_humidity_end float," + //отн. влажность воздуха кон.(%) "weather_humidity_end float," + //отн. влажность воздуха кон.(%) (Удалили согласно заданию на 2024год)
"weather_wind_speed_start float," + //скорость ветра нач. (м/с) "weather_wind_speed_start float," + //скорость ветра нач. (м/с)
"weather_wind_speed_end float," + //скорость ветра кон. (м/с) "weather_wind_speed_end float," + //скорость ветра кон. (м/с)
"weather_direction_start integer," + //направление ветра нач. "weather_direction_start integer," + //направление ветра нач.
@ -637,12 +637,14 @@ public class DbOpenHelper extends SQLiteOpenHelper
"locust_type_id integer," + //вид: CIT, DMA, LMI, др. "locust_type_id integer," + //вид: CIT, DMA, LMI, др.
//"locust_hoppers text," + //Стадии личинок, возраста: Младшие Средние Старшие //"locust_hoppers text," + //Стадии личинок, возраста: Младшие Средние Старшие
"locust_hoppers_id integer," + //возраста: Младшие Средние Старшие "locust_hoppers_id integer," + //возраста: Младшие Средние Старшие
"locust_imago boolean," + //Имаго (да, нет) "locust_imago boolean," + //Имаго (да, нет) (TODO поле удалено, теперь в этом поле: locust_purpose_id)
"locust_density float," + //плотность на м2 "locust_density float," + //плотность на м2
//"locust_type text," + //Кулиги, Стаи или Разреженные //"locust_type text," + //Кулиги, Стаи или Разреженные
"locust_kuliguli boolean," + //Кулиги (да, нет) "locust_kuliguli boolean," + //Кулиги (да, нет) (TODO поле удалено, теперь в этом поле: locust_purpose_id)
"locust_swarm boolean," + //Стаи (да, нет) "locust_swarm boolean," + //Стаи (да, нет) (TODO поле удалено, теперь в этом поле: locust_purpose_id)
"locust_sparse boolean," + //Разреженные (да, нет) "locust_sparse boolean," + //Разреженные (да, нет) (TODO поле удалено, теперь в этом поле: locust_purpose_id)
"locust_purpose_id integer," + //Цель: (Имаго, Кулиги, Стаи, Разреженные)
"locust_phase_id integer," + //Фаза саранчи (одиночная, переходная, стадная) "locust_phase_id integer," + //Фаза саранчи (одиночная, переходная, стадная)
"spray_platform integer," + //Вид опрыскивания "spray_platform integer," + //Вид опрыскивания
"spray_platform_a integer," + //1) «Авиа» - выпадающий список:«Самолет», «Вертолет», «Дельтаплан». "spray_platform_a integer," + //1) «Авиа» - выпадающий список:«Самолет», «Вертолет», «Дельтаплан».
@ -778,8 +780,8 @@ public class DbOpenHelper extends SQLiteOpenHelper
"weather_time_end float," + "weather_time_end float," +
"weather_temperature_start float," + "weather_temperature_start float," +
"weather_temperature_end float," + "weather_temperature_end float," +
"weather_humidity_start float," + "weather_humidity_start float," + //Удалили согласно заданию на 2024год
"weather_humidity_end float," + "weather_humidity_end float," + //Удалили согласно заданию на 2024год
"weather_wind_speed_start float," + "weather_wind_speed_start float," +
"weather_wind_speed_end float," + "weather_wind_speed_end float," +
"weather_direction_start integer," + "weather_direction_start integer," +
@ -985,6 +987,13 @@ public class DbOpenHelper extends SQLiteOpenHelper
oldVersion=151; oldVersion=151;
} }
if(oldVersion==151) {
sql = "ALTER TABLE frmlocustdel ADD locust_purpose_id integer;";
db.execSQL(sql);
oldVersion=152;
}
if(oldVersion < newVersion) //Это условие выполняется: если совсем старые версии и не знаю что поменялось... if(oldVersion < newVersion) //Это условие выполняется: если совсем старые версии и не знаю что поменялось...
{ {
@ -1286,8 +1295,6 @@ public class DbOpenHelper extends SQLiteOpenHelper
Integer weather_time_end, //время окончания (секунд с начала дня) Integer weather_time_end, //время окончания (секунд с начала дня)
Integer weather_temperature_start, //Температура нач.(°C) Integer weather_temperature_start, //Температура нач.(°C)
Integer weather_temperature_end, //Температура кон.(°C) Integer weather_temperature_end, //Температура кон.(°C)
Integer weather_humidity_start, //отн. влажность воздуха нач.(%)
Integer weather_humidity_end, //отн. влажность воздуха кон.(%)
Integer weather_wind_speed_start, //скорость ветра нач. (м/с) Integer weather_wind_speed_start, //скорость ветра нач. (м/с)
Integer weather_wind_speed_end, //скорость ветра кон. (м/с) Integer weather_wind_speed_end, //скорость ветра кон. (м/с)
Integer weather_direction_start, //направление ветра нач. Integer weather_direction_start, //направление ветра нач.
@ -1380,8 +1387,6 @@ public class DbOpenHelper extends SQLiteOpenHelper
cv.put("weather_time_end", weather_time_end); //время окончания (секунд с начала дня) cv.put("weather_time_end", weather_time_end); //время окончания (секунд с начала дня)
cv.put("weather_temperature_start", weather_temperature_start); //Температура нач.(°C) cv.put("weather_temperature_start", weather_temperature_start); //Температура нач.(°C)
cv.put("weather_temperature_end", weather_temperature_end); //Температура кон.(°C) cv.put("weather_temperature_end", weather_temperature_end); //Температура кон.(°C)
cv.put("weather_humidity_start", weather_humidity_start); //отн. влажность воздуха нач.(%)
cv.put("weather_humidity_end", weather_humidity_end); //отн. влажность воздуха кон.(%)
cv.put("weather_wind_speed_start", weather_wind_speed_start); //скорость ветра нач. (м/с) cv.put("weather_wind_speed_start", weather_wind_speed_start); //скорость ветра нач. (м/с)
cv.put("weather_wind_speed_end", weather_wind_speed_end); //скорость ветра кон. (м/с) cv.put("weather_wind_speed_end", weather_wind_speed_end); //скорость ветра кон. (м/с)
cv.put("weather_direction_start", weather_direction_start); //направление ветра нач. cv.put("weather_direction_start", weather_direction_start); //направление ветра нач.

View File

@ -140,8 +140,6 @@ public class LocustDelActivity extends FragmentActivity implements LocationListe
public View spiWeaTimeEnd = null; // время окончания public View spiWeaTimeEnd = null; // время окончания
public EditText edtWeaTemperatureStart = null; // Температура нач.(°C) public EditText edtWeaTemperatureStart = null; // Температура нач.(°C)
public EditText edtWeaTemperatureEnd = null; // Температура кон.(°C) public EditText edtWeaTemperatureEnd = null; // Температура кон.(°C)
public EditText edtWeaHumidityStart = null; // отн. влажность воздуха нач.(%)
public EditText edtWeaHumidityEnd = null; // отн. влажность воздуха кон.(%)
public EditText edtWeaWindSpeedStart = null; // скорость ветра нач. (м/с) public EditText edtWeaWindSpeedStart = null; // скорость ветра нач. (м/с)
public EditText edtWeaWindSpeedEnd = null; // скорость ветра кон. (м/с) public EditText edtWeaWindSpeedEnd = null; // скорость ветра кон. (м/с)
@ -153,12 +151,14 @@ public class LocustDelActivity extends FragmentActivity implements LocationListe
public View spiLocSpeciese = null; // вид: CIT, DMA, LMI, др. public View spiLocSpeciese = null; // вид: CIT, DMA, LMI, др.
public View spiLocHoppers = null; // Стадии личинок, возраста: Младшие Средние Старшие public View spiLocHoppers = null; // Стадии личинок, возраста: Младшие Средние Старшие
public View spiImago = null; // Имаго (да, нет) //public View spiImago = null; // Имаго (да, нет)
public EditText edtLocDensity = null; // плотность на м2 public EditText edtLocDensity = null; // плотность на м2
public View spiKuliguli = null; // Кулиги (да, нет) //public View spiKuliguli = null; // Кулиги (да, нет)
public View spiSwarm = null; // Стаи (да, нет) //public View spiSwarm = null; // Стаи (да, нет)
public View spiSparse = null; // Разреженные (да, нет) //public View spiSparse = null; // Разреженные (да, нет)
public View spiMainPurpose = null; // Основная цель при обработке (Имаго,Кулиги,Стаи,Разреженные)
public View spiLocustPhaseId = null; // Фара саранчи public View spiLocustPhaseId = null; // Фара саранчи
public View spiSprPlatform = null; // Вид опрыскивания public View spiSprPlatform = null; // Вид опрыскивания
@ -598,13 +598,6 @@ public class LocustDelActivity extends FragmentActivity implements LocationListe
guiTable.add(edtWeaTemperatureStart, "weather_temperature_start"); guiTable.add(edtWeaTemperatureStart, "weather_temperature_start");
edtWeaTemperatureEnd = (EditText) findViewById(R.id.edtWeaTemperatureEnd); // Температура кон.(°C) edtWeaTemperatureEnd = (EditText) findViewById(R.id.edtWeaTemperatureEnd); // Температура кон.(°C)
guiTable.add(edtWeaTemperatureEnd, "weather_temperature_end"); guiTable.add(edtWeaTemperatureEnd, "weather_temperature_end");
edtWeaHumidityStart = (EditText) findViewById(R.id.edtWeaHumidityStart); // отн. влажность воздуха нач.(%)
guiTable.add(edtWeaHumidityStart, "weather_humidity_start");
//edtWeaHumidityStart.setFilters(new InputFilter[] { new InputFilterMinMax("0", "100") });
edtWeaHumidityEnd = (EditText) findViewById(R.id.edtWeaHumidityEnd); // отн. влажность воздуха кон.(%)
guiTable.add(edtWeaHumidityEnd, "weather_humidity_end");
//edtWeaHumidityEnd.setFilters(new InputFilter[] { new InputFilterMinMax("0", "100") });
edtWeaWindSpeedStart = (EditText) findViewById(R.id.edtWeaWindSpeedStart); // скорость ветра нач. (м/с) edtWeaWindSpeedStart = (EditText) findViewById(R.id.edtWeaWindSpeedStart); // скорость ветра нач. (м/с)
guiTable.add(edtWeaWindSpeedStart, "weather_wind_speed_start"); guiTable.add(edtWeaWindSpeedStart, "weather_wind_speed_start");
@ -735,32 +728,36 @@ public class LocustDelActivity extends FragmentActivity implements LocationListe
* dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list); dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spiLocHoppers.setAdapter(dataAdapter); * dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list); dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spiLocHoppers.setAdapter(dataAdapter);
*/ */
spiImago = findViewById(R.id.spiImago); // Стаи (да, нет) // spiImago = findViewById(R.id.spiImago); // Стаи (да, нет)
guiTable.add(spiImago, "locust_imago"); // guiTable.add(spiImago, "locust_imago");
((selectDB)spiImago).addField("", ""); // ((selectDB)spiImago).addField("", "");
((selectDB)spiImago).addField(getString(R.string.Have), "1"); // ((selectDB)spiImago).addField(getString(R.string.Have), "1");
((selectDB)spiImago).addField(getString(R.string.No), "0"); // ((selectDB)spiImago).addField(getString(R.string.No), "0");
edtLocDensity = (EditText) findViewById(R.id.edtLocDensity); // плотность на м2 edtLocDensity = (EditText) findViewById(R.id.edtLocDensity); // плотность на м2
guiTable.add(edtLocDensity, "locust_density"); guiTable.add(edtLocDensity, "locust_density");
spiKuliguli = findViewById(R.id.spiKuliguli); // Кулиги (да, нет) // spiKuliguli = findViewById(R.id.spiKuliguli); // Кулиги (да, нет)
guiTable.add(spiKuliguli, "locust_kuliguli"); // guiTable.add(spiKuliguli, "locust_kuliguli");
((selectDB)spiKuliguli).addField("", ""); // ((selectDB)spiKuliguli).addField("", "");
((selectDB)spiKuliguli).addField(getString(R.string.Have), "1"); // ((selectDB)spiKuliguli).addField(getString(R.string.Have), "1");
((selectDB)spiKuliguli).addField(getString(R.string.No), "0"); // ((selectDB)spiKuliguli).addField(getString(R.string.No), "0");
spiSwarm = findViewById(R.id.spiSwarm); // Стаи (да, нет) // spiSwarm = findViewById(R.id.spiSwarm); // Стаи (да, нет)
guiTable.add(spiSwarm, "locust_swarm"); // guiTable.add(spiSwarm, "locust_swarm");
((selectDB)spiSwarm).addField("", ""); // ((selectDB)spiSwarm).addField("", "");
((selectDB)spiSwarm).addField(getString(R.string.Have), "1"); // ((selectDB)spiSwarm).addField(getString(R.string.Have), "1");
((selectDB)spiSwarm).addField(getString(R.string.No), "0"); // ((selectDB)spiSwarm).addField(getString(R.string.No), "0");
spiSparse = findViewById(R.id.spiSparse); // Разреженные (да, нет) // spiSparse = findViewById(R.id.spiSparse); // Разреженные (да, нет)
guiTable.add(spiSparse, "locust_sparse"); // guiTable.add(spiSparse, "locust_sparse");
((selectDB)spiSparse).addField("", ""); // ((selectDB)spiSparse).addField("", "");
((selectDB)spiSparse).addField(getString(R.string.Have), "1"); // ((selectDB)spiSparse).addField(getString(R.string.Have), "1");
((selectDB)spiSparse).addField(getString(R.string.No), "0"); // ((selectDB)spiSparse).addField(getString(R.string.No), "0");
spiMainPurpose = findViewById(R.id.spiMainPurpose);
guiTable.add(spiMainPurpose, "main_purpose");
//TODO добавить выборку из справочника!
spiLocustPhaseId = findViewById(R.id.spiLocustPhaseId); spiLocustPhaseId = findViewById(R.id.spiLocustPhaseId);
guiTable.add(spiLocustPhaseId, "locust_phase_id"); guiTable.add(spiLocustPhaseId, "locust_phase_id");
@ -1586,10 +1583,11 @@ public class LocustDelActivity extends FragmentActivity implements LocationListe
if(spiSprayDirectionEnd.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSprayDirectionEnd).updateAdapter(this); if(spiSprayDirectionEnd.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSprayDirectionEnd).updateAdapter(this);
if(spiLocSpeciese.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiLocSpeciese).updateAdapter(this); if(spiLocSpeciese.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiLocSpeciese).updateAdapter(this);
if(spiLocHoppers.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiLocHoppers).updateAdapter(this); if(spiLocHoppers.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiLocHoppers).updateAdapter(this);
if(spiImago.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiImago).updateAdapter(this); //if(spiImago.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiImago).updateAdapter(this);
if(spiKuliguli.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiKuliguli).updateAdapter(this); //if(spiKuliguli.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiKuliguli).updateAdapter(this);
if(spiSwarm.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSwarm).updateAdapter(this); //if(spiSwarm.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSwarm).updateAdapter(this);
if(spiSparse.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSparse).updateAdapter(this); //if(spiSparse.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSparse).updateAdapter(this);
if(spiMainPurpose.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiMainPurpose).updateAdapter(this);
if(spiLocustPhaseId.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiLocustPhaseId).updateAdapter(this); if(spiLocustPhaseId.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiLocustPhaseId).updateAdapter(this);
if(spiSprPlatform.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSprPlatform).updateAdapter(this); if(spiSprPlatform.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSprPlatform).updateAdapter(this);
if(spiSprPlatformA.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSprPlatformA).updateAdapter(this); if(spiSprPlatformA.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSprPlatformA).updateAdapter(this);
@ -2172,24 +2170,6 @@ public class LocustDelActivity extends FragmentActivity implements LocationListe
} }
} }
if (!eFields && !isGONE(edtWeaHumidityStart))
{
if(checkMinMaxI(edtWeaHumidityStart,0,100)!="")
{
scrollTo(edtWeaHumidityStart);
atxt = checkMinMaxI(edtWeaHumidityStart,0,100) + " \"" + getResources().getString(R.string.Relative_humidity_start) + "\"!";
eFields = true;
}
}
if (!eFields && !isGONE(edtWeaHumidityEnd))
{
if(checkMinMaxI(edtWeaHumidityEnd,0,100)!="")
{
scrollTo(edtWeaHumidityEnd);
atxt = checkMinMaxI(edtWeaHumidityEnd,0,100) + " \"" + getResources().getString(R.string.Relative_humidity_end) + "\"!";
eFields = true;
}
}
if (!eFields && !isGONE(edtWeaWindSpeedStart)) if (!eFields && !isGONE(edtWeaWindSpeedStart))
{ {
if(checkMinMaxI(edtWeaWindSpeedStart,0,20)!="") if(checkMinMaxI(edtWeaWindSpeedStart,0,20)!="")

View File

@ -342,8 +342,6 @@ public class LocustDelListActivity extends AppCompatActivity
sql+=" fld.weather_time_end,\n"; //время окончания sql+=" fld.weather_time_end,\n"; //время окончания
sql+=" fld.weather_temperature_start,\n"; //Температура нач.(°C) sql+=" fld.weather_temperature_start,\n"; //Температура нач.(°C)
sql+=" fld.weather_temperature_end,\n"; //Температура кон.(°C) sql+=" fld.weather_temperature_end,\n"; //Температура кон.(°C)
sql+=" fld.weather_humidity_start,\n"; //отн. влажность воздуха нач.(%)
sql+=" fld.weather_humidity_end,\n"; //отн. влажность воздуха кон.(%)
sql+=" fld.weather_wind_speed_start,\n"; //скорость ветра нач. (м/с) sql+=" fld.weather_wind_speed_start,\n"; //скорость ветра нач. (м/с)
sql+=" fld.weather_wind_speed_end,\n"; //скорость ветра кон. (м/с) sql+=" fld.weather_wind_speed_end,\n"; //скорость ветра кон. (м/с)
sql+=" ld1.name weather_direction_start,\n"; //направление ветра нач. sql+=" ld1.name weather_direction_start,\n"; //направление ветра нач.

View File

@ -134,8 +134,6 @@ public class LocustHealthActivity extends FragmentActivity implements LocationLi
public View spiWeaTimeEnd = null; // время окончания public View spiWeaTimeEnd = null; // время окончания
public EditText edtWeaTemperatureStart = null; // Температура нач.(°C) public EditText edtWeaTemperatureStart = null; // Температура нач.(°C)
public EditText edtWeaTemperatureEnd = null; // Температура кон.(°C) public EditText edtWeaTemperatureEnd = null; // Температура кон.(°C)
public EditText edtWeaHumidityStart = null; // отн. влажность воздуха нач.(%)
public EditText edtWeaHumidityEnd = null; // отн. влажность воздуха кон.(%)
public EditText edtWeaWindSpeedStart = null; // скорость ветра нач. (м/с) public EditText edtWeaWindSpeedStart = null; // скорость ветра нач. (м/с)
public EditText edtWeaWindSpeedEnd = null; // скорость ветра кон. (м/с) public EditText edtWeaWindSpeedEnd = null; // скорость ветра кон. (м/с)
@ -147,12 +145,13 @@ public class LocustHealthActivity extends FragmentActivity implements LocationLi
public View spiLocSpeciese = null; // вид: CIT, DMA, LMI, др. public View spiLocSpeciese = null; // вид: CIT, DMA, LMI, др.
public View spiLocHoppers = null; // Стадии личинок, возраста: Младшие Средние Старшие public View spiLocHoppers = null; // Стадии личинок, возраста: Младшие Средние Старшие
public View spiImago = null; // Имаго (да, нет) //public View spiImago = null; // Имаго (да, нет)
public EditText edtLocDensity = null; // плотность на м2 public EditText edtLocDensity = null; // плотность на м2
public View spiKuliguli = null; // Кулиги (да, нет) //public View spiKuliguli = null; // Кулиги (да, нет)
public View spiSwarm = null; // Стаи (да, нет) //public View spiSwarm = null; // Стаи (да, нет)
public View spiSparse = null; // Разреженные (да, нет) //public View spiSparse = null; // Разреженные (да, нет)
public View spiMainPurpose = null; // Основная цель при обработке (Имаго,Кулиги,Стаи,Разреженные)
public View spiLocustPhaseId = null; // Фара саранчи public View spiLocustPhaseId = null; // Фара саранчи
public View spiSprPlatform = null; // Вид опрыскивания public View spiSprPlatform = null; // Вид опрыскивания
@ -593,13 +592,6 @@ public class LocustHealthActivity extends FragmentActivity implements LocationLi
guiTable.add(edtWeaTemperatureStart, "weather_temperature_start"); guiTable.add(edtWeaTemperatureStart, "weather_temperature_start");
edtWeaTemperatureEnd = (EditText) findViewById(R.id.edtWeaTemperatureEnd); // Температура кон.(°C) edtWeaTemperatureEnd = (EditText) findViewById(R.id.edtWeaTemperatureEnd); // Температура кон.(°C)
guiTable.add(edtWeaTemperatureEnd, "weather_temperature_end"); guiTable.add(edtWeaTemperatureEnd, "weather_temperature_end");
edtWeaHumidityStart = (EditText) findViewById(R.id.edtWeaHumidityStart); // отн. влажность воздуха нач.(%)
guiTable.add(edtWeaHumidityStart, "weather_humidity_start");
//edtWeaHumidityStart.setFilters(new InputFilter[] { new InputFilterMinMax("0", "100") });
edtWeaHumidityEnd = (EditText) findViewById(R.id.edtWeaHumidityEnd); // отн. влажность воздуха кон.(%)
guiTable.add(edtWeaHumidityEnd, "weather_humidity_end");
//edtWeaHumidityEnd.setFilters(new InputFilter[] { new InputFilterMinMax("0", "100") });
edtWeaWindSpeedStart = (EditText) findViewById(R.id.edtWeaWindSpeedStart); // скорость ветра нач. (м/с) edtWeaWindSpeedStart = (EditText) findViewById(R.id.edtWeaWindSpeedStart); // скорость ветра нач. (м/с)
guiTable.add(edtWeaWindSpeedStart, "weather_wind_speed_start"); guiTable.add(edtWeaWindSpeedStart, "weather_wind_speed_start");
@ -730,32 +722,36 @@ public class LocustHealthActivity extends FragmentActivity implements LocationLi
* dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list); dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spiLocHoppers.setAdapter(dataAdapter); * dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list); dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spiLocHoppers.setAdapter(dataAdapter);
*/ */
spiImago = findViewById(R.id.spiImago); // Стаи (да, нет) // spiImago = findViewById(R.id.spiImago); // Стаи (да, нет)
guiTable.add(spiImago, "locust_imago"); // guiTable.add(spiImago, "locust_imago");
((selectDB)spiImago).addField("", ""); // ((selectDB)spiImago).addField("", "");
((selectDB)spiImago).addField(getString(R.string.Have), "1"); // ((selectDB)spiImago).addField(getString(R.string.Have), "1");
((selectDB)spiImago).addField(getString(R.string.No), "0"); // ((selectDB)spiImago).addField(getString(R.string.No), "0");
edtLocDensity = (EditText) findViewById(R.id.edtLocDensity); // плотность на м2 edtLocDensity = (EditText) findViewById(R.id.edtLocDensity); // плотность на м2
guiTable.add(edtLocDensity, "locust_density"); guiTable.add(edtLocDensity, "locust_density");
spiKuliguli = findViewById(R.id.spiKuliguli); // Кулиги (да, нет) // spiKuliguli = findViewById(R.id.spiKuliguli); // Кулиги (да, нет)
guiTable.add(spiKuliguli, "locust_kuliguli"); // guiTable.add(spiKuliguli, "locust_kuliguli");
((selectDB)spiKuliguli).addField("", ""); // ((selectDB)spiKuliguli).addField("", "");
((selectDB)spiKuliguli).addField(getString(R.string.Have), "1"); // ((selectDB)spiKuliguli).addField(getString(R.string.Have), "1");
((selectDB)spiKuliguli).addField(getString(R.string.No), "0"); // ((selectDB)spiKuliguli).addField(getString(R.string.No), "0");
spiSwarm = findViewById(R.id.spiSwarm); // Стаи (да, нет) // spiSwarm = findViewById(R.id.spiSwarm); // Стаи (да, нет)
guiTable.add(spiSwarm, "locust_swarm"); // guiTable.add(spiSwarm, "locust_swarm");
((selectDB)spiSwarm).addField("", ""); // ((selectDB)spiSwarm).addField("", "");
((selectDB)spiSwarm).addField(getString(R.string.Have), "1"); // ((selectDB)spiSwarm).addField(getString(R.string.Have), "1");
((selectDB)spiSwarm).addField(getString(R.string.No), "0"); // ((selectDB)spiSwarm).addField(getString(R.string.No), "0");
spiSparse = findViewById(R.id.spiSparse); // Разреженные (да, нет) // spiSparse = findViewById(R.id.spiSparse); // Разреженные (да, нет)
guiTable.add(spiSparse, "locust_sparse"); // guiTable.add(spiSparse, "locust_sparse");
((selectDB)spiSparse).addField("", ""); // ((selectDB)spiSparse).addField("", "");
((selectDB)spiSparse).addField(getString(R.string.Have), "1"); // ((selectDB)spiSparse).addField(getString(R.string.Have), "1");
((selectDB)spiSparse).addField(getString(R.string.No), "0"); // ((selectDB)spiSparse).addField(getString(R.string.No), "0");
spiMainPurpose = findViewById(R.id.spiMainPurpose);
guiTable.add(spiMainPurpose, "main_purpose");
//TODO добавить выборку из справочника!
spiLocustPhaseId = findViewById(R.id.spiLocustPhaseId); spiLocustPhaseId = findViewById(R.id.spiLocustPhaseId);
guiTable.add(spiLocustPhaseId, "locust_phase_id"); guiTable.add(spiLocustPhaseId, "locust_phase_id");
@ -1587,10 +1583,11 @@ public class LocustHealthActivity extends FragmentActivity implements LocationLi
if(spiSprayDirectionEnd.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSprayDirectionEnd).updateAdapter(this); if(spiSprayDirectionEnd.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSprayDirectionEnd).updateAdapter(this);
if(spiLocSpeciese.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiLocSpeciese).updateAdapter(this); if(spiLocSpeciese.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiLocSpeciese).updateAdapter(this);
if(spiLocHoppers.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiLocHoppers).updateAdapter(this); if(spiLocHoppers.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiLocHoppers).updateAdapter(this);
if(spiImago.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiImago).updateAdapter(this); //if(spiImago.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiImago).updateAdapter(this);
if(spiKuliguli.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiKuliguli).updateAdapter(this); //if(spiKuliguli.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiKuliguli).updateAdapter(this);
if(spiSwarm.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSwarm).updateAdapter(this); //if(spiSwarm.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSwarm).updateAdapter(this);
if(spiSparse.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSparse).updateAdapter(this); //if(spiSparse.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSparse).updateAdapter(this);
if(spiMainPurpose.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiMainPurpose).updateAdapter(this);
if(spiLocustPhaseId.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiLocustPhaseId).updateAdapter(this); if(spiLocustPhaseId.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiLocustPhaseId).updateAdapter(this);
if(spiSprPlatform.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSprPlatform).updateAdapter(this); if(spiSprPlatform.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSprPlatform).updateAdapter(this);
if(spiSprPlatformA.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSprPlatformA).updateAdapter(this); if(spiSprPlatformA.getClass().toString().indexOf("dbfields.AutoCompleteTextViewDB")!=-1) ((AutoCompleteTextViewDB)spiSprPlatformA).updateAdapter(this);
@ -2174,24 +2171,6 @@ public class LocustHealthActivity extends FragmentActivity implements LocationLi
} }
} }
if (!eFields && !isGONE(edtWeaHumidityStart))
{
if(checkMinMaxI(edtWeaHumidityStart,0,100)!="")
{
scrollTo(edtWeaHumidityStart);
atxt = checkMinMaxI(edtWeaHumidityStart,0,100) + " \"" + getResources().getString(R.string.Relative_humidity_start) + "\"!";
eFields = true;
}
}
if (!eFields && !isGONE(edtWeaHumidityEnd))
{
if(checkMinMaxI(edtWeaHumidityEnd,0,100)!="")
{
scrollTo(edtWeaHumidityEnd);
atxt = checkMinMaxI(edtWeaHumidityEnd,0,100) + " \"" + getResources().getString(R.string.Relative_humidity_end) + "\"!";
eFields = true;
}
}
if (!eFields && !isGONE(edtWeaWindSpeedStart)) if (!eFields && !isGONE(edtWeaWindSpeedStart))
{ {
if(checkMinMaxI(edtWeaWindSpeedStart,0,20)!="") if(checkMinMaxI(edtWeaWindSpeedStart,0,20)!="")

View File

@ -1250,61 +1250,6 @@
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingLeft="@dimen/activity_horizontal_margin">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_weight="1">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
app:boxBackgroundColor="@color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edtWeaHumidityStart"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
android:hint="@string/Relative_humidity_start"
android:maxLines="1"
android:singleLine="true"
android:inputType="numberDecimal"/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:layout_weight="1">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
app:boxBackgroundColor="@color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edtWeaHumidityEnd"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
android:hint="@string/Relative_humidity_end"
android:maxLines="1"
android:singleLine="true"
android:inputType="numberDecimal"/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -1519,7 +1464,7 @@
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
</LinearLayout> </LinearLayout>
<LinearLayout <!--LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center"> android:gravity="center">
@ -1537,7 +1482,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
</LinearLayout> </LinearLayout-->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -1567,7 +1512,7 @@
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
</LinearLayout> </LinearLayout>
<LinearLayout <!--LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center"> android:gravity="center">
@ -1585,9 +1530,9 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
</LinearLayout> </LinearLayout-->
<LinearLayout <!--LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center"> android:gravity="center">
@ -1605,9 +1550,9 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
</LinearLayout> </LinearLayout-->
<LinearLayout <!--LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center"> android:gravity="center">
@ -1625,6 +1570,26 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
</LinearLayout-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_star" />
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/Main_purpose_of_treatment">
<dbfields.AutoCompleteTextViewDB
android:id="@+id/spiMainPurpose"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout

View File

@ -1247,61 +1247,6 @@
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingLeft="@dimen/activity_horizontal_margin">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_weight="1">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
app:boxBackgroundColor="@color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edtWeaHumidityStart"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
android:hint="@string/Relative_humidity_start"
android:maxLines="1"
android:singleLine="true"
android:inputType="numberDecimal"/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:layout_weight="1">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
app:boxBackgroundColor="@color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edtWeaHumidityEnd"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
android:hint="@string/Relative_humidity_end"
android:maxLines="1"
android:singleLine="true"
android:inputType="numberDecimal"/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View File

@ -1109,41 +1109,6 @@
android:inputType="numberDecimal" /> android:inputType="numberDecimal" />
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/tvWeaHumidityStart"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Relative_humidity_start"
android:textAppearance="?android:attr/textAppearanceSmall" />
<EditText
android:id="@+id/edtWeaHumidityStart"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="numberDecimal" />
<TextView
android:id="@+id/tvWeaHumidityEnd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Relative_humidity_end"
android:textAppearance="?android:attr/textAppearanceSmall" />
<EditText
android:id="@+id/edtWeaHumidityEnd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="numberDecimal" />
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" > android:layout_height="wrap_content" >
@ -1306,7 +1271,7 @@
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</LinearLayout> </LinearLayout>
<LinearLayout <!--LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" > android:layout_height="wrap_content" >
@ -1329,7 +1294,7 @@
android:id="@+id/spiImago" android:id="@+id/spiImago"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</LinearLayout> </LinearLayout-->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -1359,7 +1324,7 @@
android:inputType="numberDecimal" /> android:inputType="numberDecimal" />
</LinearLayout> </LinearLayout>
<LinearLayout <!--LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" > android:layout_height="wrap_content" >
@ -1382,9 +1347,9 @@
android:id="@+id/spiKuliguli" android:id="@+id/spiKuliguli"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</LinearLayout> </LinearLayout-->
<LinearLayout <!--LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" > android:layout_height="wrap_content" >
@ -1407,9 +1372,9 @@
android:id="@+id/spiSwarm" android:id="@+id/spiSwarm"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</LinearLayout> </LinearLayout-->
<LinearLayout <!--LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" > android:layout_height="wrap_content" >
@ -1432,6 +1397,32 @@
android:id="@+id/spiSparse" android:id="@+id/spiSparse"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</LinearLayout-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/tvSparse"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Main_purpose_of_treatment"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/star"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#ff0000" />
<dbfields.SpinnerDB
android:id="@+id/spiMainPurpose"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout

View File

@ -1103,41 +1103,6 @@
android:inputType="numberDecimal" /> android:inputType="numberDecimal" />
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/tvWeaHumidityStart"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Relative_humidity_start"
android:textAppearance="?android:attr/textAppearanceSmall" />
<EditText
android:id="@+id/edtWeaHumidityStart"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="numberDecimal" />
<TextView
android:id="@+id/tvWeaHumidityEnd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Relative_humidity_end"
android:textAppearance="?android:attr/textAppearanceSmall" />
<EditText
android:id="@+id/edtWeaHumidityEnd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="numberDecimal" />
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" > android:layout_height="wrap_content" >

View File

@ -1285,54 +1285,6 @@
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="@dimen/activity_horizontal_margin">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
app:boxBackgroundColor="@color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edtWeaHumidityStart"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
android:hint="@string/Relative_humidity_start"
android:maxLines="1"
android:singleLine="true"
android:inputType="numberDecimal"/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="@dimen/activity_horizontal_margin">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
app:boxBackgroundColor="@color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edtWeaHumidityEnd"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
android:hint="@string/Relative_humidity_end"
android:maxLines="1"
android:singleLine="true"
android:inputType="numberDecimal"/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -1506,7 +1458,7 @@
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
</LinearLayout> </LinearLayout>
<LinearLayout <!--LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center"> android:gravity="center">
@ -1524,7 +1476,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
</LinearLayout> </LinearLayout-->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -1554,7 +1506,7 @@
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
</LinearLayout> </LinearLayout>
<LinearLayout <!--LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center"> android:gravity="center">
@ -1572,9 +1524,9 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
</LinearLayout> </LinearLayout-->
<LinearLayout <!--LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center"> android:gravity="center">
@ -1592,9 +1544,9 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
</LinearLayout> </LinearLayout-->
<LinearLayout <!--LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center"> android:gravity="center">
@ -1612,6 +1564,26 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
</LinearLayout-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_star" />
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/Main_purpose_of_treatment">
<dbfields.AutoCompleteTextViewDB
android:id="@+id/spiMainPurpose"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout

View File

@ -1282,54 +1282,6 @@
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="@dimen/activity_horizontal_margin">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
app:boxBackgroundColor="@color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edtWeaHumidityStart"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
android:hint="@string/Relative_humidity_start"
android:maxLines="1"
android:singleLine="true"
android:inputType="numberDecimal"/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="@dimen/activity_horizontal_margin">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
app:boxBackgroundColor="@color/transparent">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edtWeaHumidityEnd"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/transparent"
android:hint="@string/Relative_humidity_end"
android:maxLines="1"
android:singleLine="true"
android:inputType="numberDecimal"/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View File

@ -327,4 +327,5 @@
<string name="Test_questionnaire">Test anketi</string> <string name="Test_questionnaire">Test anketi</string>
<string name="Copy_polygon">Çoxbucaqlı kopyalansın?</string> <string name="Copy_polygon">Çoxbucaqlı kopyalansın?</string>
<string name="title_activity_locust_health">İnsan sağlığı və ətraf mühit</string> <string name="title_activity_locust_health">İnsan sağlığı və ətraf mühit</string>
<string name="Main_purpose_of_treatment">Müalicənin əsas məqsədi</string>
</resources> </resources>

View File

@ -337,4 +337,5 @@
<string name="Test_questionnaire">Թեստային հարցաթերթիկ</string> <string name="Test_questionnaire">Թեստային հարցաթերթիկ</string>
<string name="Copy_polygon">Պատճենե՞լ բազմանկյունը:</string> <string name="Copy_polygon">Պատճենե՞լ բազմանկյունը:</string>
<string name="title_activity_locust_health">Մարդու և շրջակա միջավայրի առողջություն</string> <string name="title_activity_locust_health">Մարդու և շրջակա միջավայրի առողջություն</string>
<string name="Main_purpose_of_treatment">Բուժման հիմնական նպատակը</string>
</resources> </resources>

View File

@ -328,4 +328,5 @@
<string name="Test_questionnaire">ტესტის კითხვარი</string> <string name="Test_questionnaire">ტესტის კითხვარი</string>
<string name="Copy_polygon">დააკოპირეთ მრავალკუთხედი?</string> <string name="Copy_polygon">დააკოპირეთ მრავალკუთხედი?</string>
<string name="title_activity_locust_health">ადამიანის და გარე გარემოცვას ჯანმრთელობა</string> <string name="title_activity_locust_health">ადამიანის და გარე გარემოცვას ჯანმრთელობა</string>
<string name="Main_purpose_of_treatment">მკურნალობის მთავარი მიზანი</string>
</resources> </resources>

View File

@ -332,4 +332,5 @@
<string name="Test_questionnaire">Тест анкетасы</string> <string name="Test_questionnaire">Тест анкетасы</string>
<string name="Copy_polygon">Көп бурчтук көчүрүлсүнбү?</string> <string name="Copy_polygon">Көп бурчтук көчүрүлсүнбү?</string>
<string name="title_activity_locust_health">Инсандын сагаты жана айылдык мойнунун сагынуусы.</string> <string name="title_activity_locust_health">Инсандын сагаты жана айылдык мойнунун сагынуусы.</string>
<string name="Main_purpose_of_treatment">Дарылоонун негизги максаты</string>
</resources> </resources>

View File

@ -335,5 +335,6 @@
<string name="Test_questionnaire">Тест сауалнамасы</string> <string name="Test_questionnaire">Тест сауалнамасы</string>
<string name="Copy_polygon">Көпбұрышты көшіру керек пе?</string> <string name="Copy_polygon">Көпбұрышты көшіру керек пе?</string>
<string name="title_activity_locust_health">Адамның денсаулығы мен шектеулі аурухана.</string> <string name="title_activity_locust_health">Адамның денсаулығы мен шектеулі аурухана.</string>
<string name="Main_purpose_of_treatment">Емдеудің негізгі мақсаты</string>
</resources> </resources>

View File

@ -340,4 +340,5 @@
<string name="Test_questionnaire">د ازموینې پوښتنلیک</string> <string name="Test_questionnaire">د ازموینې پوښتنلیک</string>
<string name="Copy_polygon">کاپي پولیګون؟</string> <string name="Copy_polygon">کاپي پولیګون؟</string>
<string name="title_activity_locust_health">زنده وجود د صحت او د محیطي خلکو سلامتي.</string> <string name="title_activity_locust_health">زنده وجود د صحت او د محیطي خلکو سلامتي.</string>
<string name="Main_purpose_of_treatment">هدف اصلی درمان</string>
</resources> </resources>

View File

@ -343,4 +343,5 @@
<string name="Please_update_your_phone_tablet">Ваш смартфон/планшет устарел, пожалуйста обновите его</string> <string name="Please_update_your_phone_tablet">Ваш смартфон/планшет устарел, пожалуйста обновите его</string>
<string name="Test_questionnaire">Тестовая анкета</string> <string name="Test_questionnaire">Тестовая анкета</string>
<string name="Copy_polygon">Скопировать полигон?</string> <string name="Copy_polygon">Скопировать полигон?</string>
<string name="Main_purpose_of_treatment">Основная цель при обработке</string>
</resources> </resources>

View File

@ -339,4 +339,5 @@
<string name="Test_questionnaire">Саволномаи тестӣ</string> <string name="Test_questionnaire">Саволномаи тестӣ</string>
<string name="Copy_polygon">Бисёркунҷаро нусхабардорӣ кунед?</string> <string name="Copy_polygon">Бисёркунҷаро нусхабардорӣ кунед?</string>
<string name="title_activity_locust_health">Саломатии инсон ва муҳити зист</string> <string name="title_activity_locust_health">Саломатии инсон ва муҳити зист</string>
<string name="Main_purpose_of_treatment">Мақсади асосии табобат</string>
</resources> </resources>

View File

@ -338,4 +338,5 @@
<string name="Test_questionnaire">Synag anketasy</string> <string name="Test_questionnaire">Synag anketasy</string>
<string name="Copy_polygon">Köpburçlygy göçüriň?</string> <string name="Copy_polygon">Köpburçlygy göçüriň?</string>
<string name="title_activity_locust_health">Adam döwleti we goraýyş ortalygyň saýlamlylygy.</string> <string name="title_activity_locust_health">Adam döwleti we goraýyş ortalygyň saýlamlylygy.</string>
<string name="Main_purpose_of_treatment">Bejerginiň esasy maksady</string>
</resources> </resources>

View File

@ -340,4 +340,5 @@
<string name="Test_questionnaire">Test anketasi</string> <string name="Test_questionnaire">Test anketasi</string>
<string name="Copy_polygon">Kopburchak nusxalansinmi?</string> <string name="Copy_polygon">Kopburchak nusxalansinmi?</string>
<string name="title_activity_locust_health">Inson va atrof-muhit salomatligi</string> <string name="title_activity_locust_health">Inson va atrof-muhit salomatligi</string>
<string name="Main_purpose_of_treatment">Davolashning asosiy maqsadi</string>
</resources> </resources>

View File

@ -344,4 +344,5 @@
<string name="Test_questionnaire">Test questionnaire</string> <string name="Test_questionnaire">Test questionnaire</string>
<string name="Copy_polygon">Copy polygon?</string> <string name="Copy_polygon">Copy polygon?</string>
<string name="title_activity_locust_health">Human and environmental health</string> <string name="title_activity_locust_health">Human and environmental health</string>
<string name="Main_purpose_of_treatment">Main purpose of treatment</string>
</resources> </resources>