Example #1
0
        /// <summary>
        /// 解析lm.dtz 写 TreeReference.json
        /// </summary>
        public void ConvertAccessDbToJsonTreeReference()
        {
            string           sqlContent  = "select * from ObjTree order by ObjExcelLine";
            DataSet          dataSet     = GetRecordByAccessDb(mdbFile, sqlContent);
            ObjTressJsonData objTreeJson = new ObjTressJsonData(this.mibVersion);

            objTreeJson.TreeReferenceParseDataSet(dataSet);

            JsonFileWrite(jsonfilepath + "Tree_Reference.json", objTreeJson.GetStringTreeReference());

            isObjJson2OK = true;
        }
Example #2
0
        /// <summary>
        /// 解析lm.dtz 写 obj.json
        /// </summary>
        public void ConvertAccessDbToJsonObjTree()
        {
            //Console.WriteLine("DbToJsonObjTree start " + DateTime.Now.ToString("yyyy年MM月dd日HH时mm分ss秒fff毫秒"));
            string           sqlContent  = "select * from ObjTree order by ObjExcelLine";
            DataSet          dataSet     = GetRecordByAccessDb(mdbFile, sqlContent);
            ObjTressJsonData objTreeJson = new ObjTressJsonData();

            objTreeJson.ObjParseDataSet(dataSet);

            JsonFileWrite(jsonfilepath + "obj.json", objTreeJson.GetStringObjTreeJson());
            this.objTreeInfo = objTreeJson.GetStringObjTreeJson();

            isObjJsonOK = true;
            //Console.WriteLine("DbToJsonObjTree end " + DateTime.Now.ToString("yyyy年MM月dd日HH时mm分ss秒fff毫秒"));
        }