| | |
| | | {
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //绑定还没有成功的网关
|
| | | var result2 = HdlGatewayLogic.Current.ResetComandToBindBackupGateway();
|
| | | if (result2 == false)
|
| | | {
|
| | | //临时这么写,新云端就会写到R文件了
|
| | | this.ShowMassage(ShowMsgType.Tip, "绑定网关失败,请重新上传");
|
| | | return;
|
| | | }
|
| | | //创建一个备份名字
|
| | | string backupClassId = HdlBackupLogic.Current.CreatNewBackupNameToDB(backName);
|
| | | if (backupClassId == null)
|
| | |
| | | {
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //绑定还没有成功的网关
|
| | | var result2 = HdlGatewayLogic.Current.ResetComandToBindBackupGateway();
|
| | | if (result2 == false)
|
| | | {
|
| | | //临时这么写,新云端就会写到R文件了
|
| | | this.ShowMassage(ShowMsgType.Tip, "绑定网关失败,请重新上传");
|
| | | return;
|
| | | }
|
| | | int result = HdlAutoBackupLogic.DoUpLoadAutoBackupDataByHand();
|
| | | if (result == -1)
|
| | | {
|