示例#1
0
        private void CreateXML()
        {
            List <KJLobject>    kJLobjects = new List <KJLobject>();
            CreateKujialeObject createobj  = new CreateKujialeObject();

            createobj.addMsg = proMsg;
            createobj.ErrMsg = ErrMsg;
            string fileName = "";

            if (orderNotxt.Text.Length == 0)
            {
                fileName = Path.GetFileNameWithoutExtension(filepathtxt.Text);
            }
            else
            {
                fileName = orderNotxt.Text.Trim();
            }
            int bxcnt = 0;

            kJLobjects = createobj.GetKujialeObject(jsontxt, out bxcnt);
            CreateImosXml createImosXml = new CreateImosXml();

            createImosXml.addMsg = proMsg;
            createImosXml.ErrMsg = ErrMsg;
            createImosXml.CreateXml(kJLobjects, fileName, _SavePath, bxcnt);
        }
示例#2
0
        private void AutoCreateXML(string json, string fileName, string OutPath)
        {
            List <KJLobject>    kJLobjects = new List <KJLobject>();
            CreateKujialeObject createobj  = new CreateKujialeObject();

            createobj.addMsg = proMsg;
            createobj.ErrMsg = ErrMsg;
            int boxcnt = 0;

            kJLobjects = createobj.GetKujialeObject(json, out boxcnt);
            CreateImosXml createImosXml = new CreateImosXml();

            createImosXml.addMsg = proMsg;
            createImosXml.ErrMsg = ErrMsg;
            createImosXml.CreateXml(kJLobjects, fileName, OutPath, boxcnt);
        }