Beispiel #1
0
        /// <summary>
        /// imei信息下拉
        /// </summary>
        /// <param name="result"></param>
        /// <param name="log"></param>
        /// <returns></returns>
        private int ImeiPrint(out Production.Server.NewHttpImeiPrint.ResponseInfo rep)//int result, string log
        {
            int ret = -1;

            rep = null;
            NewHttpImeiPrint httpImeiPrint = new NewHttpImeiPrint();

            //Production.Server.NewHttpImeiPrint.ResponseInfo response;
            try
            {
                ret = httpImeiPrint.DataGetAndAnalysis(out rep, null, null, null, eid, null);
                if (ret != 0)
                {
                    //frmMain.DisplayLog(((ReturnCode)httpEidImeiSnUpload.Response.code).ToString());
                    frmMain.DisplayLog("下拉信息失败\r\n");
                    //frmMain.DisplayLog(httpEidUpload.Response.data.message + "\r\n");
                }
                else
                {
                    frmMain.DisplayLog(string.Format("{0}\r\n", "下拉成功"));
                    ret = 0;
                }
            }
            catch (Exception ex)
            {
                frmMain.DisplayLog(ex.ToString() + "\r\n");
            }

            return(ret);
        }
Beispiel #2
0
        public void TestMethod1()
        {
            //Production.Server.HttpServerInfo.ReadConfig();
            NewHttpImeiPrint imeiPrint = new NewHttpImeiPrint();

            Production.Server.NewHttpImeiPrint.ResponseInfo rep;
            //int ret = imeiPrint.DataGetAndAnalysis(out rep, "865439030000610", "898602C99916C0366442", "123456789012345", "898602C99916C0366442", "CH04037470010061");

            int ret = imeiPrint.DataGetAndAnalysis(out rep, null, null, null, "898602C99916C0366442", null);
        }