Skip to content

Commit

Permalink
rename frenchVersion & englishVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
vaneck237 committed Nov 6, 2024
1 parent 946e07e commit 31e3c14
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Binary file modified app/src/main/assets/database/IMIS.db3
Binary file not shown.
4 changes: 2 additions & 2 deletions app/src/main/assets/pages/Insuree.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,9 @@ function fillPaymentMethods() {
}

function fillIncomeLevels() {
$textLanguage = "FrenchVersion";
$textLanguage = "FirstLanguage";
if (Android.getSelectedLanguage() != "en") {
$textLanguage = "EnglishVersion";
$textLanguage = "SecondLanguage";
}
var $IncomeLevels = Android.getIncomeLevels();
bindDropdown('ddlIncomeLevel', $IncomeLevels, 'IncomeLevelID', $textLanguage, null, Android.getString('SelectIncomeLevel'));
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/assets/pages/SubInsuree.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,9 @@ function fillPaymentMethods(){
}

function fillIncomeLevels(){
$textLanguage = "FrenchVersion";
$textLanguage = "FirstLanguage";
if (Android.getSelectedLanguage() != "en") {
$textLanguage = "EnglishVersion";
$textLanguage = "SecondLanguage";
}
var $IncomeLevels = Android.getIncomeLevels();
bindDropdown('ddlIncomeLevel', $IncomeLevels, 'IncomeLevelID', $textLanguage, null, Android.getString('SelectIncomeLevel'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ private Integer getOfficerLocationId() {
@JavascriptInterface
@SuppressWarnings("unused")
public String getRegions() {
Integer officerLocationId = 19;
//Integer officerLocationId = getOfficerLocationId();
//Integer officerLocationId = 19;
Integer officerLocationId = getOfficerLocationId();
@Language("SQL")
String Query = "SELECT LocationId, LocationName FROM tblLocations WHERE LocationId = (SELECT L.ParentLocationId LocationId FROM tblLocations L";
if (officerLocationId != null) {
Expand Down Expand Up @@ -5616,7 +5616,7 @@ private void insertContributionPlan (JSONArray jsonArray) throws JSONException{
@SuppressWarnings("unused")
public String getIncomeLevels() {
String tableName = "tblIncomeLevel";
String[] columns = {"IncomeLevelID", "FrenchVersion", "EnglishVersion"};
String[] columns = {"IncomeLevelID", "FirstLanguage", "SecondLanguage"};

JSONArray incomeLevels = sqlHandler.getResult(tableName, columns, null, null);

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/org/openimis/imispolicies/SQLHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ public void onCreate(SQLiteDatabase sqLiteDatabase) {
sqLiteDatabase.execSQL(
"CREATE TABLE " + tblIncomeLevel + "(" +
"Id INTEGER," +
"FrenchVersion TEXT," +
"EnglishVersion TEXT" +")"
"FirstLanguage TEXT," +
"SecondLanguage TEXT" +")"
);
sqLiteDatabase.execSQL(
"CREATE TABLE " + tblContributionPlan + "(" +
Expand Down

0 comments on commit 31e3c14

Please sign in to comment.