| | |
| | | |
| | | var btnPoint = new Button () { |
| | | Width = Application.GetRealWidth (10), |
| | | Height = Application.GetRealHeight (10), |
| | | Height = Application.GetRealWidth (10), |
| | | X = Application.GetRealWidth (50), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "Item/Point.png", |
| | |
| | | alert.Show (); |
| | | }; |
| | | |
| | | if (MainPage.LoginUser.AccountType != 1) { |
| | | //if (MainPage.LoginUser.AccountType != 1) { |
| | | // rowView.AddRightView (btnDelFile); |
| | | //} |
| | | |
| | | //2020-07-01 当前住宅属于自己的 允许删除备份 |
| | | if (!MainPage.IsAdministrator) { |
| | | rowView.AddRightView (btnDelFile); |
| | | } |
| | | |
| | | var btnPoint = new Button () { |
| | | Width = Application.GetRealWidth (10), |
| | | Height = Application.GetRealHeight (10), |
| | | Height = Application.GetRealWidth (10), |
| | | X = Application.GetRealWidth (25), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "Item/Point.png", |
| | |
| | | rowView.AddChidren (backupIcon); |
| | | |
| | | var Backup_restores = new Button () { |
| | | Width = Application.GetRealWidth (56), |
| | | Height = Application.GetRealHeight (57), |
| | | Width = Application.GetMinRealAverage (56), |
| | | Height = Application.GetMinRealAverage (57), |
| | | X = backupIcon.Right + Application.GetRealWidth (20), |
| | | UnSelectedImagePath = "Register/Backup_ restores.png", |
| | | SelectedImagePath = "Register/Backup_ restores_on.png", |
| | |
| | | int index = 0; |
| | | int indexCount = 0; |
| | | |
| | | var mFileList = dataList.FindAll ((obj) => obj.BackupFileName != "null" && obj.BackupFileName != UserConfig.configFile && obj.BackupFileName != UserInfo.GlobalRegisterFile && obj.BackupFileName != "AccountListDB"); |
| | | var mFileList = dataList.FindAll ((obj) => obj.BackupFileName != "null" && obj.BackupFileName != UserConfig.configFile && obj.BackupFileName != UserInfo.GlobalRegisterFile && obj.BackupFileName != "AccountListDB" && obj.BackupFileName != CommonConfig.ConfigFile); |
| | | if (maxThreads > mFileList.Count) { |
| | | maxThreads = mFileList.Count; |
| | | } |
| | |
| | | void UpLoadBackupFileToDBNew (string mBackupClassId, int maxThreads = 20) |
| | | { |
| | | var backuplist = IO.FileUtils.ReadFiles (); |
| | | var mFileList = backuplist.FindAll ((obj) => obj != "null" && obj != UserConfig.configFile && obj != UserInfo.GlobalRegisterFile && obj != "AccountListDB"); |
| | | var mFileList = backuplist.FindAll ((obj) => obj != "null" && obj != UserConfig.configFile && obj != UserInfo.GlobalRegisterFile && obj != "AccountListDB" && obj != CommonConfig.ConfigFile); |
| | | if (mFileList.Count <= 0) return; |
| | | |
| | | if (maxThreads > mFileList.Count) { |