IEnumerator LoadData() { float startLoadTime = Time.realtimeSinceStartup; ExcelDataManager.ReadOneDataConfig <GoodsInfoArray>("tnt_deploy_goods_info"); Debug.Log("============load data time: " + (Time.realtimeSinceStartup - startLoadTime)); yield break; }
public static void Do() { Debug.Log("正在读取Excel"); var table_list = ExcelDataManager.GetAllTable(); Debug.Log("正在写出Json"); JsonDataManager.WriteAllTabelToJsonFile(table_list); Debug.Log("转换完成"); }
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); } }
public ActionResult Index() { ViewBag.list = ExcelDataManager.GetUserInfos(); return(View()); }