コード例 #1
0
        private void button12_Click(object sender, EventArgs e)
        {
            //string strJson = string.Empty;
            //string strErrMsg = string.Empty;
            //JXBLL.ReceiveGoods.ReceiveGoods_Func DF = new JXBLL.ReceiveGoods.ReceiveGoods_Func();
            //strJson=DF.GetBarCodeInfo(\"10@102001-000001-00@201506080082\");
            //webTest.Url = \"http://192.168.0.215:8080/JXWebService.asmx\";
            //localWebTest.GetBarCodeInfo(\"201507170142\");
            string strJson = localWebTest.GetBarCodeInfo("15112420001");

            localhost.Barcode_Model model = BLL.JSONUtil.JSONHelper.JsonToObject <localhost.Barcode_Model>(strJson);
            MessageBox.Show("ad");
        }
コード例 #2
0
        private void button28_Click(object sender, EventArgs e)
        {
            //localhost.BarcodeModel bar = new localhost.BarcodeModel();
            //localhost.Tray_Model tray = new localhost.Tray_Model();
            //bar.TrayID = 1;
            //localWebTest.GetTrayInfoByTrayID(bar, ref tray);
            //MessageBox.Show("ad");

            localhost.Barcode_Model bar  = new localhost.Barcode_Model();
            localhost.Tray_Model    tray = new localhost.Tray_Model();
            tray.TrayID = 24115;
            localhost.TrayDetails_Model model = new localhost.TrayDetails_Model();
            model.listBarcode = new string[] { "1605202W0426", "1605202W0427", "1605202W0428",
                                               "1605202W0429", "1605202W0430", "1605202W0431" };
            tray.listDetails = new localhost.TrayDetails_Model[] { model };

            bar.tray_Model = tray;
            localWebTest.UpdateTrayInfoTest(bar);

            MessageBox.Show("ad");
        }