12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace IMCS.DefaultList.NewFolder1
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- /*
- OrderDefaultList orderDefaultList = new OrderDefaultList();
- orderDefaultList.ChanPinBianMa = "1";
- orderDefaultList.ChanPinMingChen = "orderDefaultList";
- orderDefaultList.DaiZhiHangRenWu = "3";
- orderDefaultList.DangQianGongXu = "4";
- orderDefaultList.DingChanMingChen = "5";
- IMCSDataPack wMSWCS = new IMCSDataPack() { Url="192.168.1.1", BusinessType="1", Data= orderDefaultList, Port="502", TaskId="111" };
- richTextBox1.Text = wMSWCS.Json_SerializeObject();
- */
- List<productDefaultList> productDefaultList = new List<productDefaultList>();
- productDefaultList.Add(new NewFolder1.productDefaultList() { GaJuMingChen="夹具名称1", ID="1" });
- productDefaultList.Add(new NewFolder1.productDefaultList() { GaJuMingChen = "夹具名称2", ID = "1" });
- IMCSDataPack iMCSDataPack = new IMCSDataPack() { Url = "192.168.1.1", BusinessType = "1", Data = productDefaultList, Port = "502", TaskId = "111" };
- richTextBox1.Text = iMCSDataPack.Json_SerializeObject();
- }
- }
- }
|