From f2a18b31e2ca43ec963307c232016f2ee0203930 Mon Sep 17 00:00:00 2001 From: neil3d Date: Fri, 15 Dec 2017 22:50:05 +0800 Subject: [PATCH] readme --- Docs/ExampleData.xlsx | Bin 10589 -> 10617 bytes GUI/MainForm.cs | 2 +- Properties/AssemblyInfo.cs | 2 +- README.md | 37 +------------------------------------ 4 files changed, 3 insertions(+), 38 deletions(-) diff --git a/Docs/ExampleData.xlsx b/Docs/ExampleData.xlsx index 6cccbf1ad64b2caa3fa86cbdf885ec397fc4ae78..26c4feb83b2b8b9e28613071357e4687bb10ba52 100644 GIT binary patch delta 2524 zcmV<22_yF1Qu$J_CKd`a@7I_b1ONc050ilu8GkV@cx`N?m)maYI24BON1Atte7_Sy zTG}GQ)-EaKppiz?Ib55>fYl_<*rqM>^s}4;#VZj(-8W5AfBwCef7^IXzJFw?^Twp& zA`gl04v53@SR_2(h2*b4=ily$qcqJEnu?r-l zJ%3NddzMky>yiko=7GEQmQTci(zQrOdKw`sFu8*ZCak6;4+~q>jO$vE`_%}3ew9Ai{ ze8yubl-Oz)cL z%3{qDu!%Tk`Zq$n8gL2!8i1lI0i#G`&EMFJrD;g!BXIEFatwHd0ld=)=kLvE^U|>2 zrIWBNJ*4^%@xEYux7RT2$i0OrFf%bujuBHaSO7!2fsu_x3L5a&$+%fcFoX0XB!5GQ zl_z>1k~`B|>7$uWXx%WS=iJB=Cq5`GvVSVhuhlA@pw@wBt>X{f;O;9@H?UXseJe$-9Uz$VM!(~M9Y=i>${!4QR zNtaUa?3o51j*=2JFFzN*-z+Bc@_(}#_^=|YxJJSK=Tbm!dew3+w@O4colc~9ci@PE z2vkAMf#;7+IGx)8_JLu47&s)bbYYn**r9LJ!NhxmZ5P+XW1H}8V%8>xNF-__x3Lu2f2+J(kDc752VB0M0RhvLdZPq4+X#YhW2;N<7 zVx=6~mnsN?f_8|t^PL|xRnJa0wE>gvLX>+XJ*1Lpp6_3x2^ zkpt*tee6Kc@|blXD5Wq%h|EBf8PFy!h&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Jt%hI%zuz8OVths zYNBe!wB|<|l>=2JQ(e!>J=CX)B~ZC+d7*So1eXMLETP&c_>32Ik*kY~lI-Z8MC@20 zos4cx4Fi{KQI$CZ58f3ob!DUP$Q!PpIBCB2P{LBU+v%zYM&hdZsCA#HI+RXHN-Cb% zPZ%67mRvBXluV5}aZ4_gARJ7&y6lF4Nfwt(7jTXkF^F0$Q&R!??-lm+7XXvd1{AY) z8rT7Un435QS_1$8k_Z3*4FCWDcx*3oba`xLb1ryoY@}Apj@vdA-52OT2;6J*u;to@ zq#%w*K!6koFjJsgTB2+sd<4t0ZUYqQ*Casl7r7)QTWQ?JnQkod z^77nspLF`5*K6TkZ(Q?UihZfRkD(jx}u6HfS3~aMhYioCR?h&H|39Kn`Ka z%S%8wR?qg0UrOF!O*fQLeXv-_d8)fVm z=-9**1bGTIq=^y*Y`lJbduSk{0?OTm#_D}Wd#msvij&cWz#7ccjZ_u1*N|dk*@^O$ zky=BD72WR4SIY)|H&Sb;!aS`g-b#U)NzZU&d=uIdIxs_e2OTt&0~HnNNR^>~nN31q zO!O8m(zjeJm5bDY^1%2aedpYH-+Ct@RV88U#yIzVeTf)V7vW8Mz?|!XD(0iu=RF-Qqku?!wi=a&WRfeUEPNd0yfIZM>#o0*E5qMLvLTb zdiTfABVL<5WtxgJ`2ftSJ7qXD&7;lewz)rAfkaoN#(So3kB1pLt-mD|-E#KOvSskjsNUJ0{LM+0q0#1vnGtr#2S9tweG$*Xhe;Ir#UzaU z=?u^P`D~K-MH0p9*>rWC6v>Eta?dv_45Dawv$`l*YRU2o5dk+nbV^f@uq{RvWNhfJ*{Nxq_Jr z?Y%bz#*XblQkMmX3gT8(^b E0AMYT{r~^~ diff --git a/GUI/MainForm.cs b/GUI/MainForm.cs index 4597338..e8b9b1b 100644 --- a/GUI/MainForm.cs +++ b/GUI/MainForm.cs @@ -140,7 +140,7 @@ private void panelExcelDropBox_DragDrop(object sender, DragEventArgs e) { /// 显示Help文档 /// private void btnHelp_Click(object sender, EventArgs e) { - System.Diagnostics.Process.Start("http://neil3d.github.io"); + System.Diagnostics.Process.Start("https://neil3d.github.io/app/excel2json.html"); } /// diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 996fc95..a37dae6 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("https://neil3d.github.io")] [assembly: AssemblyProduct("excel2json")] -[assembly: AssemblyCopyright("https://neil3d.github.io")] +[assembly: AssemblyCopyright("https://neil3d.github.io/app/excel2json.html")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/README.md b/README.md index 5acee7f..e993793 100644 --- a/README.md +++ b/README.md @@ -1,39 +1,4 @@ excel2json ========== -![](./cmd.png) - -- 把Excel表单转换成json对象,并保存到一个文本文件中。 -- 表格格式见:ExampleData.xlsx -- 支持导出为数组 Json格式,每一行转换为数组的一行,[结构如下](./ExampleDataExportArray.json): -[ - {行内容}, - {行内容}, - {...}, -] -- 支持导出为Dictionary Json对象, 每一行转换成一个json对象。[结构如下](./ExampleDataExportDict.json): -{ - ID:{行内容}, - ID:{行内容}, - ID:{...} -} - -Excel表单格式约定 ------------------ - - 第一行固定作为列名(用来构造json字段名称); - - 第一列固定作为对象的ID; - - 读取Excel Workbook中的第一个sheet; - - 对于SQL导出模式:第二行固定为字段类型 - - 使用表头生成C#数据定义代码 - -命令行参数 ---------- -- -e, --excel Required. 输入的Excel文件路径. -- -j, --json 指定输出的json文件路径. -- -s, --sql 指定输出的SQL文件路径. -- -p, --csharp 指定输出的C#数据定义代码文件路径. -- -h, --header Required. 表格中有几行是表头. -- -c, --encoding (Default: utf8-nobom) 指定编码的名称. -- -l, --lowcase (Default: false) 自动把字段名称转换成小写格式. - -例如:**excel2json --excel test.xlsx --json test.json --header 3 --array true**,其中的输入和输出文件,都在当前目录下; +详细帮助文档请见:[https://neil3d.github.io/app/excel2json.html](https://neil3d.github.io/app/excel2json.html) \ No newline at end of file