|
|
@@ -120,32 +120,37 @@ public class SystemParameterActivity extends BaseActivity { |
|
|
|
|
|
|
|
bpa_systemsets = QueryDB.GetSystemsetALL(); |
|
|
|
for (BPA_SYSTEMSET item : bpa_systemsets) { |
|
|
|
switch (item.type) { |
|
|
|
case -100: |
|
|
|
ConfigName.getInstance().versionSelectionEnum = item.value; |
|
|
|
versionselection.setSelection(material_map_vis.get(item.value)); |
|
|
|
break; |
|
|
|
case -99: |
|
|
|
ConfigName.getInstance().Environment = item.value; |
|
|
|
environment.setSelection(material_map.get(item.value)); |
|
|
|
break; |
|
|
|
case 1: |
|
|
|
ConfigName.getInstance().Address = item.value; |
|
|
|
edittext1.setText(item.value); |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
ConfigName.getInstance().Post = Integer.parseInt(item.value); |
|
|
|
edittext2.setText(item.value); |
|
|
|
break; |
|
|
|
case 3: |
|
|
|
ConfigName.getInstance().ClientAutoKey = item.value; |
|
|
|
edittext3.setText(item.value); |
|
|
|
break; |
|
|
|
case 4: |
|
|
|
ConfigName.getInstance().DeviceAutoKey = item.value; |
|
|
|
edittext4.setText(item.value); |
|
|
|
break; |
|
|
|
try{ |
|
|
|
switch (item.type) { |
|
|
|
case -100: |
|
|
|
ConfigName.getInstance().versionSelectionEnum = item.value; |
|
|
|
versionselection.setSelection(material_map_vis.get(item.value)); |
|
|
|
break; |
|
|
|
case -99: |
|
|
|
ConfigName.getInstance().Environment = item.value; |
|
|
|
environment.setSelection(material_map.get(item.value)); |
|
|
|
break; |
|
|
|
case 1: |
|
|
|
ConfigName.getInstance().Address = item.value; |
|
|
|
edittext1.setText(item.value); |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
ConfigName.getInstance().Post = Integer.parseInt(item.value); |
|
|
|
edittext2.setText(item.value); |
|
|
|
break; |
|
|
|
case 3: |
|
|
|
ConfigName.getInstance().ClientAutoKey = item.value; |
|
|
|
edittext3.setText(item.value); |
|
|
|
break; |
|
|
|
case 4: |
|
|
|
ConfigName.getInstance().DeviceAutoKey = item.value; |
|
|
|
edittext4.setText(item.value); |
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}catch (Exception e){ |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|