|
|
@@ -26,6 +26,7 @@ import com.bonait.bnframework.common.helper.I.IMessageLogNotify; |
|
|
|
import com.bonait.bnframework.common.helper.LogcatHelper; |
|
|
|
import com.bonait.bnframework.common.helper.MessageLog; |
|
|
|
import com.bonait.bnframework.common.helper.SdCart; |
|
|
|
import com.bonait.bnframework.common.model.Authority; |
|
|
|
import com.bonait.bnframework.common.notification.MainNotification; |
|
|
|
import com.bonait.bnframework.common.utils.AppUtils; |
|
|
|
import com.bonait.bnframework.common.utils.NetworkUtils; |
|
|
@@ -190,31 +191,40 @@ public class MainInit { |
|
|
|
if (QueryDB.GetUserALL().size() <= 0) { |
|
|
|
BPA_USER user = new BPA_USER(); |
|
|
|
user.id = "20230415-fyf"; |
|
|
|
user.name = "管理员"; |
|
|
|
user.name = Authority.管理员.name(); |
|
|
|
user.account = "admin"; |
|
|
|
user.pass = "123456"; |
|
|
|
user.deviceID = ConfigName.getInstance().DeviceId; |
|
|
|
user.userID = "超级管理员"; |
|
|
|
user.exp = "管理员"; |
|
|
|
user.userID = Authority.管理员.name(); |
|
|
|
user.exp = Authority.管理员.name(); |
|
|
|
QueryDB.AddUser(user); |
|
|
|
|
|
|
|
BPA_USER user1 = new BPA_USER(); |
|
|
|
user1.name = "一般用户"; |
|
|
|
user1.account = "ybyh"; |
|
|
|
user1.name = Authority.维修员.name(); |
|
|
|
user1.account = "wxy"; |
|
|
|
user1.pass = "123456"; |
|
|
|
user1.deviceID = ConfigName.getInstance().DeviceId; |
|
|
|
user1.userID = "一般用户"; |
|
|
|
user1.exp = "一般用户"; |
|
|
|
user1.userID = Authority.维修员.name(); |
|
|
|
user1.exp = Authority.维修员.name(); |
|
|
|
QueryDB.AddUser(user1); |
|
|
|
|
|
|
|
BPA_USER user3 = new BPA_USER(); |
|
|
|
user3.name = Authority.操作员.name(); |
|
|
|
user3.account = "czy"; |
|
|
|
user3.pass = "123456"; |
|
|
|
user3.deviceID = ConfigName.getInstance().DeviceId; |
|
|
|
user3.userID = Authority.操作员.name(); |
|
|
|
user3.exp = Authority.操作员.name(); |
|
|
|
QueryDB.AddUser(user3); |
|
|
|
|
|
|
|
|
|
|
|
BPA_USER user2 = new BPA_USER(); |
|
|
|
user2.name = "研发用户"; |
|
|
|
user2.account = "yfyh"; |
|
|
|
user2.name = Authority.研发员.name(); |
|
|
|
user2.account = "yfy"; |
|
|
|
user2.pass = "123456"; |
|
|
|
user2.deviceID = ConfigName.getInstance().DeviceId; |
|
|
|
user2.userID = "研发用户"; |
|
|
|
user2.exp = "研发用户"; |
|
|
|
user2.userID = Authority.研发员.name(); |
|
|
|
user2.exp = Authority.研发员.name(); |
|
|
|
QueryDB.AddUser(user2); |
|
|
|
|
|
|
|
|
|
|
|