|
@@ -1,4 +1,7 @@
|
|
|
-using DevExpress.Mvvm.Native;
|
|
|
+using DevExpress.CodeParser;
|
|
|
+using DevExpress.Mvvm.Native;
|
|
|
+using DevExpress.XtraPrinting;
|
|
|
+using DW5S.DTO;
|
|
|
using DW5S.Entity;
|
|
|
using DW5S.Repostory;
|
|
|
using DW5S.ViewModel;
|
|
@@ -102,5 +105,24 @@ namespace DW5S.App.UserControl
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ private async void btnStartaAD_Click(object sender, EventArgs e)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ List<AdCard> adCard = new List<AdCard>();
|
|
|
+
|
|
|
+ var res = await HttpHelper.PostRequestAsync<List<AdCard>>("http://127.0.0.1:7070/api/Ad/StartAd", adCard);
|
|
|
+ IocContainer.Logger.Information("启动采集任务成功");
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ IocContainer.Logger.Error(ex, "启动采集任务异常");
|
|
|
+ DxHelper.MsgBoxHelper.ShowError("启动采集任务异常");
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|