终端一体化运控平台
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
1.1 KiB

  1. using BPASmartClient.AGV.Feedback;
  2. using BPASmartClient.Helper;
  3. using BPASmartClient.Http;
  4. using Newtonsoft.Json;
  5. namespace TestDemo
  6. {
  7. public partial class Form1 : Form
  8. {
  9. public Form1()
  10. {
  11. InitializeComponent();
  12. }
  13. private void button1_Click(object sender, EventArgs e)
  14. {
  15. AGVToUpSystem aGVToUpSystem = new AGVToUpSystem();
  16. string value = JsonConvert.SerializeObject(aGVToUpSystem);
  17. string url = $"http://192.168.1.99:8089/apicallback/quicktron/robotjob/report?sign={value}";
  18. var res = APIHelper.GetInstance.HttpRequest(url, "", aGVToUpSystem, RequestType.POST);
  19. }
  20. private void button2_Click(object sender, EventArgs e)
  21. {
  22. Upstreamrequest aGVToUpSystem = new Upstreamrequest();
  23. string value = JsonConvert.SerializeObject(aGVToUpSystem);
  24. string url = $"http://192.168.1.99:8089/apicallback/quicktron/robotjob/upstreamrequest?sign={value}";
  25. var res = APIHelper.GetInstance.HttpRequest(url, "", aGVToUpSystem, RequestType.POST);
  26. }
  27. }
  28. }