Esempio n. 1
0
        private void CreateXML()
        {
            List <KuModel> kJLobjects = new List <KuModel>();
            KuJsonReader   createobj  = new KuJsonReader();

            createobj.log      = proMsg;
            createobj.errorlog = ErrMsg;
            string fileName = "";

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

            kJLobjects = createobj.readKujialeModels(jsontxt);
            int           bxcnt         = createobj.getBoxCount();
            ImosXmlWriter createImosXml = new ImosXmlWriter();

            createImosXml.addMsg = proMsg;
            createImosXml.ErrMsg = ErrMsg;
            createImosXml.CreateXml(kJLobjects, fileName, _SavePath);
        }
Esempio n. 2
0
        private void AutoCreateXML(string json, string fileName, string OutPath)
        {
            List <KuModel> kJLobjects = new List <KuModel>();
            KuJsonReader   createobj  = new KuJsonReader();

            createobj.log      = proMsg;
            createobj.errorlog = ErrMsg;
            kJLobjects         = createobj.readKujialeModels(json);
            int           boxcnt        = createobj.getBoxCount();
            ImosXmlWriter createImosXml = new ImosXmlWriter();

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