|
@@ -87,11 +87,9 @@ public class RoleManageFr extends Fragment {
|
|
return root;
|
|
return root;
|
|
}
|
|
}
|
|
private void refreshData(){
|
|
private void refreshData(){
|
|
- LogModel.AddLog(LogModel.Type.RoleSearch);
|
|
|
|
adapter.setList(DatabaseManager.getInstance().getQueryAll(RoleModel.class));
|
|
adapter.setList(DatabaseManager.getInstance().getQueryAll(RoleModel.class));
|
|
}
|
|
}
|
|
private void search(String key){
|
|
private void search(String key){
|
|
- LogModel.AddLog(LogModel.Type.RoleSearch);
|
|
|
|
adapter.setList(DatabaseManager.getInstance().getQueryByWhere(RoleModel.class,"name",key));
|
|
adapter.setList(DatabaseManager.getInstance().getQueryByWhere(RoleModel.class,"name",key));
|
|
}
|
|
}
|
|
private void createDialog(Context context, ViewGroup parent, RoleModel model){
|
|
private void createDialog(Context context, ViewGroup parent, RoleModel model){
|