Form1.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace IMCS.DefaultList.NewFolder1
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. }
  18. private void button1_Click(object sender, EventArgs e)
  19. {
  20. /*
  21. OrderDefaultList orderDefaultList = new OrderDefaultList();
  22. orderDefaultList.ChanPinBianMa = "1";
  23. orderDefaultList.ChanPinMingChen = "orderDefaultList";
  24. orderDefaultList.DaiZhiHangRenWu = "3";
  25. orderDefaultList.DangQianGongXu = "4";
  26. orderDefaultList.DingChanMingChen = "5";
  27. IMCSDataPack wMSWCS = new IMCSDataPack() { Url="192.168.1.1", BusinessType="1", Data= orderDefaultList, Port="502", TaskId="111" };
  28. richTextBox1.Text = wMSWCS.Json_SerializeObject();
  29. */
  30. List<productDefaultList> productDefaultList = new List<productDefaultList>();
  31. productDefaultList.Add(new NewFolder1.productDefaultList() { GaJuMingChen="夹具名称1", ID="1" });
  32. productDefaultList.Add(new NewFolder1.productDefaultList() { GaJuMingChen = "夹具名称2", ID = "1" });
  33. IMCSDataPack iMCSDataPack = new IMCSDataPack() { Url = "192.168.1.1", BusinessType = "1", Data = productDefaultList, Port = "502", TaskId = "111" };
  34. richTextBox1.Text = iMCSDataPack.Json_SerializeObject();
  35. }
  36. }
  37. }