|
|
@@ -23,6 +23,7 @@ import com.bonait.bnframework.common.db.mode.BPA_MATERIAL; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_PLCADDRESS; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_PROCESS; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_PROCESSModel; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_PROPERTY_CLASSIFY; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_SILOS; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_SILOSANDMATERIAL; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_SILOS_CALIBRATE; |
|
|
@@ -280,10 +281,14 @@ public class MainInit { |
|
|
|
ConfigData.getInstance().RevertPLCProcess(); |
|
|
|
} |
|
|
|
|
|
|
|
// if(PreferenceUtils.getInt("isNewVersion",0)!=1){ |
|
|
|
// DBHelper.getInstance(MainApplication.getContext()).DeleteCreateTables(BPA_MATERIAL.class,null); |
|
|
|
// PreferenceUtils.setInt("isNewVersion",1); |
|
|
|
// } |
|
|
|
if(PreferenceUtils.getInt("isNewVersion",0)!=2){ |
|
|
|
if(!DBHelper.getInstance(MainApplication.getContext()).doesTableExist(BPA_PROPERTY_CLASSIFY.class)){ |
|
|
|
DBHelper.getInstance(MainApplication.getContext()).DeleteCreateTables(BPA_PROPERTY_CLASSIFY.class,null); |
|
|
|
} |
|
|
|
|
|
|
|
DBHelper.getInstance(MainApplication.getContext()).DeleteCreateTables(BPA_GOODS.class,null); |
|
|
|
PreferenceUtils.setInt("isNewVersion",2); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|