예제 #1
0
    IEnumerator LoadData()
    {
        float startLoadTime = Time.realtimeSinceStartup;

        ExcelDataManager.ReadOneDataConfig <GoodsInfoArray>("tnt_deploy_goods_info");
        Debug.Log("============load data time: " + (Time.realtimeSinceStartup - startLoadTime));
        yield break;
    }
예제 #2
0
    public static void Do()
    {
        Debug.Log("正在读取Excel");
        var table_list = ExcelDataManager.GetAllTable();

        Debug.Log("正在写出Json");
        JsonDataManager.WriteAllTabelToJsonFile(table_list);

        Debug.Log("转换完成");
    }
예제 #3
0
    private static void TestReadEXCEL()
    {
        var list = ExcelDataManager.GetTableList("Attritube");

        foreach (var tabel in list)
        {
            Debug.Log("table name:" + tabel.Name);

            Debug.Log("column:" + tabel.Name);

            foreach (var item in tabel.ColumnInfos)
            {
                Debug.Log(" name:" + item.Name + " Type:" + item.Type);
            }

            Debug.Log("row:" + tabel.Name);

            foreach (var item in tabel.RowDic)
            {
                Debug.Log(" Row Id:" + item.Key);

                foreach (var grid in item.Value)
                {
                    Debug.Log("     " + grid.Key + ":" + grid.Value);
                }
            }

            //var str = JsonConvert.SerializeObject(tabel);

            //StructBuilder.CreateDataStruct(tabel);

            //Debug.Log(str);

            JsonDataManager.WriteTabelToJsonFile(tabel);
        }
    }
예제 #4
0
 public ActionResult Index()
 {
     ViewBag.list = ExcelDataManager.GetUserInfos();
     return(View());
 }