示例#1
0
文件: X3.cs 项目: cctac/G3_.Net_B2B
        public void updateX3VariantID()
        {
            string parameterKey = "ITMREF=" + _ITMREF;
            //string query = "<PARAM><FLD NAME=\"YSHOPID\">" + ExternalID  + "</FLD></PARAM>";
            string query = "";

            switch (_storenum)
            {
            case 1:
                query = "<PARAM><FLD NAME=\"YSHOPID\">" + ExternalID + "</FLD></PARAM>";
                break;

            case 2:
                query = "<PARAM><FLD NAME=\"YSHOPID2\">" + ExternalID + "</FLD></PARAM>";
                break;

            case 3:
                query = "<PARAM><FLD NAME=\"YSHOPID3\">" + ExternalID + "</FLD></PARAM>";
                break;
            }

            X3WebAPI webAPI = new X3WebAPI();

            CAdxResultXml resultXML = webAPI.operation("modify", "YWSITM", parameterKey, query);

            XDocument xdoc = XDocument.Parse(resultXML.resultXml);

            /*   Console.WriteLine(resultXML.resultXml);
             * Console.ReadKey();
             */
        }
示例#2
0
文件: X3.cs 项目: cctac/G3_.Net_B2B
        public void getItemInfoByShopID()
        {
            string query = string.Format("<PARAM><FLD NAME=\"STORENUM\">{0}</FLD><FLD NAME=\"SHOPID\">{1}</FLD></PARAM>", _storenum, _ExternalID);

            X3WebAPI webAPI = new X3WebAPI();

            CAdxResultXml resultXML = webAPI.operation("run", "YWSITMINF2", null, query);

            XDocument xdoc = XDocument.Parse(resultXML.resultXml);

            getItemRef(xdoc);
            getSAU(xdoc);
        }
示例#3
0
文件: X3.cs 项目: cctac/G3_.Net_B2B
        public void getItemInfo()
        {
            if (blnExternalIDSet && blnUPCSet && _autolookup)
            {
                string query = "";
                // query = "<PARAM><FLD NAME=\"UPC\">" + _EANCOD + "</FLD></PARAM>";

                query = string.Format("<PARAM><FLD NAME=\"STORENUM\">{0}</FLD><FLD NAME=\"UPC\">{1}</FLD></PARAM>", _storenum, _EANCOD);

                X3WebAPI webAPI = new X3WebAPI();

                CAdxResultXml resultXML = webAPI.operation("run", "YWSITMINF", null, query);

                XDocument xdoc = XDocument.Parse(resultXML.resultXml);
                getReturnCode(xdoc);
                getX3VariantID(xdoc);
                getQuantityAvailable(xdoc);
                getItemRef(xdoc);
                getSAU(xdoc);
            }
        }