资源简介
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using unvell.ReoGrid.WinForm;
using unvell.Common;
using unvell.ReoGrid;
using System.Net;
namespace TestExcel
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
//InitControl();
InitNumStringDict();
LoadAllMaterialItem();
WebClient webclient = new WebClient();
}
private List topList = new List();
///
/// 数据初始化
///
private List InitData()
{
MaterialItem item1 = new MaterialItem() { ID = 1 ItemName = “电气特性“ ParentId = 0 Memo = ““ };
MaterialItem item2 = new MaterialItem() { ID = 2 ItemName = “基础特性“ ParentId = 0 Memo = ““ };
MaterialItem item3 = new MaterialItem() { ID = 3 ItemName = “常规参数“ ParentId = 0 Memo = ““ };
MaterialItem item4 = new MaterialItem() { ID = 4 ItemName = “工艺参数“ ParentId = 0 Memo = ““ };
MaterialItem item5 = new MaterialItem() { ID = 5 ItemName = “导电特性“ ParentId = 0 Memo = ““ };
var item6 = new MaterialItem { ID = 6 ItemName = “电压参数“ ParentId = 1 };
var item7 = new MaterialItem { ID = 7 ItemName = “电流参数“ ParentId = 1 };
var item8 = new MaterialItem { ID = 8 ItemName = “电阻参数“ ParentId = 1 };
var item9 = new MaterialItem { ID = 9 ItemName = “最高电压“ ParentId = 6 };
var item10 = new MaterialItem { ID = 10 ItemName = “最低电压“ ParentId = 6 };
var item11 = new MaterialItem { ID = 11 ItemName = “基础1“ ParentId = 7 };
var item12 = new MaterialItem { ID = 12 ItemName = “基础2“ ParentId = 7 };
var item13 = new MaterialItem { ID = 11 ItemName = “最大电阻“ ParentId = 8 };
var item14 = new MaterialItem { ID = 12 ItemName = “最小电阻“ ParentId = 8 };
var item15 = new MaterialItem { ID = 11 ItemName = “制造工艺“ ParentId = 4 };
var item16 = new MaterialItem { ID = 12 ItemName = “特殊要求“ ParentId = 4 };
List allItemList = new List() { item1 item2 item3 item4 item5 item6 item7 item8 item9 item10 item11 item12item13item14item15item16 };
return allItemList;
}
private void LoadAllMaterialItem()
{
topList.Clear();
List allItemList = InitData();
int count = allItemList.Count;
List parentList = new List();
var resultList = FindChildItems(null allItemList);
parentList.AddRange(resultList);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
..A..H. 49664 2021-01-27 14:52 TestExcel\.vs\TestExcel\v14\.suo
文件 834560 2017-10-21 19:56 TestExcel\Excel组件\unvell.ReoGrid.dll
文件 1460285 2017-10-21 19:56 TestExcel\Excel组件\unvell.ReoGrid.xm
文件 189 2020-04-15 18:46 TestExcel\TestExcel\App.config
文件 16384 2021-01-27 14:52 TestExcel\TestExcel\bin\Debug\TestExcel.exe
文件 189 2020-04-15 18:46 TestExcel\TestExcel\bin\Debug\TestExcel.exe.config
文件 34304 2021-01-27 14:52 TestExcel\TestExcel\bin\Debug\TestExcel.pdb
文件 22696 2021-01-27 14:52 TestExcel\TestExcel\bin\Debug\TestExcel.vshost.exe
文件 189 2020-04-15 18:46 TestExcel\TestExcel\bin\Debug\TestExcel.vshost.exe.config
文件 490 2018-04-12 07:35 TestExcel\TestExcel\bin\Debug\TestExcel.vshost.exe.manifest
文件 834560 2017-10-21 19:56 TestExcel\TestExcel\bin\Debug\unvell.ReoGrid.dll
文件 1460285 2017-10-21 19:56 TestExcel\TestExcel\bin\Debug\unvell.ReoGrid.xm
文件 14139 2020-04-25 09:41 TestExcel\TestExcel\Form1.cs
文件 3005 2020-04-17 17:24 TestExcel\TestExcel\Form1.Designer.cs
文件 5817 2020-04-17 17:24 TestExcel\TestExcel\Form1.resx
文件 868 2021-01-27 14:49 TestExcel\TestExcel\obj\Debug\DesignTimeResolveAssemblyReferences.cache
文件 7173 2021-01-27 14:52 TestExcel\TestExcel\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 0 2020-04-15 18:46 TestExcel\TestExcel\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
文件 0 2020-04-15 18:46 TestExcel\TestExcel\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
文件 0 2020-04-15 18:46 TestExcel\TestExcel\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
文件 731 2021-01-27 14:52 TestExcel\TestExcel\obj\Debug\TestExcel.csproj.FileListAbsolute.txt
文件 1012 2021-01-27 14:52 TestExcel\TestExcel\obj\Debug\TestExcel.csproj.GenerateResource.Cache
文件 9921 2021-01-27 14:52 TestExcel\TestExcel\obj\Debug\TestExcel.csprojResolveAssemblyReference.cache
文件 16384 2021-01-27 14:52 TestExcel\TestExcel\obj\Debug\TestExcel.exe
文件 180 2021-01-27 14:52 TestExcel\TestExcel\obj\Debug\TestExcel.Form1.resources
文件 34304 2021-01-27 14:52 TestExcel\TestExcel\obj\Debug\TestExcel.pdb
文件 180 2021-01-27 14:52 TestExcel\TestExcel\obj\Debug\TestExcel.Properties.Resources.resources
文件 521 2020-04-15 18:46 TestExcel\TestExcel\Program.cs
文件 1338 2020-04-15 18:46 TestExcel\TestExcel\Properties\AssemblyInfo.cs
文件 2870 2020-04-15 18:46 TestExcel\TestExcel\Properties\Resources.Designer.cs
............此处省略22个文件信息
- 上一篇:svg批量转jpg|png
- 下一篇:wpf Dock window
评论
共有 条评论