| | |
| | | loadGenderList();
|
| | | loadVisitReasonList();
|
| | | loadVisitorTypeList();
|
| | | loadResolutionList();
|
| | | loadProtocolList();
|
| | | loadCameraBrandList();
|
| | | }
|
| | |
|
| | | public void loadCountries() {
|
| | |
| | | });
|
| | | }
|
| | |
|
| | | public void loadResolutionList() {
|
| | | if (!BaseApplication.deviceAvailable) {
|
| | | return;
|
| | | }
|
| | | RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.Query.DICTIONARY_QUERY);
|
| | | params.addParameter(DictionaryQueryCondition.FieldNames.type, CommonVariables.DictionaryType.RESOLUTION);
|
| | | x.http().get(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | SelectDialog.setResolutionList(getDictionaryNameList(getList(Dictionary.class)));
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | public void loadProtocolList() {
|
| | | if (!BaseApplication.deviceAvailable) {
|
| | | return;
|
| | | }
|
| | | RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.Query.DICTIONARY_QUERY);
|
| | | params.addParameter(DictionaryQueryCondition.FieldNames.type, CommonVariables.DictionaryType.PROTOCOL);
|
| | | x.http().get(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | SelectDialog.setProtocolList(getDictionaryNameList(getList(Dictionary.class)));
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | public void loadCameraBrandList() {
|
| | | if (!BaseApplication.deviceAvailable) {
|
| | | return;
|
| | | }
|
| | | RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.Query.DICTIONARY_QUERY);
|
| | | params.addParameter(DictionaryQueryCondition.FieldNames.type, CommonVariables.DictionaryType.CAMERA_BRAND);
|
| | | x.http().get(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | SelectDialog.setCameraBrandList(getDictionaryNameList(getList(Dictionary.class)));
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | public List<String> getDictionaryNameList(List<Dictionary> dictionaryList) {
|
| | | List nameList = new ArrayList();
|
| | | for (Dictionary dictionary : dictionaryList) {
|