终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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