Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
NS100
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 06067e03
由
贾鹏旭
编写于
2023-10-13 09:04:53 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
将导出csv文件的内容全加上“”
1 个父辈
a372778e
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
10 行删除
SmartScan/Form/FrmRetrospect.cs
SmartScan/Form/FrmRetrospect.cs
查看文件 @
06067e0
...
@@ -253,7 +253,7 @@ namespace SmartScan
...
@@ -253,7 +253,7 @@ namespace SmartScan
int
exportFileFormat
=
ConfigHelper
.
Config
.
Get
(
"ExportFileFormat"
,
1
);
int
exportFileFormat
=
ConfigHelper
.
Config
.
Get
(
"ExportFileFormat"
,
1
);
private
void
BtnExport_Click
(
object
sender
,
EventArgs
e
)
private
void
BtnExport_Click
(
object
sender
,
EventArgs
e
)
{
{
if
(
LstRecord
.
SelectedIndex
==
-
1
)
return
;
if
(
LstRecord
.
SelectedIndex
==
-
1
)
return
;
switch
(
exportFileFormat
)
switch
(
exportFileFormat
)
{
{
...
@@ -274,16 +274,15 @@ namespace SmartScan
...
@@ -274,16 +274,15 @@ namespace SmartScan
List
<
string
>
lines
=
new
List
<
string
>();
List
<
string
>
lines
=
new
List
<
string
>();
foreach
(
var
item
in
BLLCommon
.
macroKey
)
foreach
(
var
item
in
BLLCommon
.
macroKey
)
{
{
string
value
=
""
;
if
(
pairs
.
ContainsKey
(
item
))
if
(
pairs
.
ContainsKey
(
item
))
{
{
lines
.
Add
(
pairs
[
item
].
ToString
());
value
=
pairs
[
item
].
ToString
();
}
else
{
lines
.
Add
(
""
);
}
}
}
value
=
value
.
Replace
(
"\"\""
,
"\"\"\"\""
);
return
string
.
Join
(
","
,
lines
);
lines
.
Add
(
"\""
+
value
+
"\""
);
}
return
$
"{string.Join("
,
", lines)}"
;
}
}
string
genLine
(
string
txt
)
string
genLine
(
string
txt
)
{
{
...
@@ -355,7 +354,7 @@ namespace SmartScan
...
@@ -355,7 +354,7 @@ namespace SmartScan
content
.
AppendLine
(
string
.
Join
(
","
,
BLLCommon
.
macroKey
));
content
.
AppendLine
(
string
.
Join
(
","
,
BLLCommon
.
macroKey
));
var
path
=
fileFull
[
index
];
var
path
=
fileFull
[
index
];
{
{
string
json
=
System
.
IO
.
File
.
ReadAllText
(
path
.
codePath
);
string
json
=
System
.
IO
.
File
.
ReadAllText
(
path
.
codePath
);
System
.
Web
.
Script
.
Serialization
.
JavaScriptSerializer
serializer
=
new
();
System
.
Web
.
Script
.
Serialization
.
JavaScriptSerializer
serializer
=
new
();
Dictionary
<
string
,
object
>
dic
=
(
Dictionary
<
string
,
object
>)
serializer
.
DeserializeObject
(
json
);
Dictionary
<
string
,
object
>
dic
=
(
Dictionary
<
string
,
object
>)
serializer
.
DeserializeObject
(
json
);
...
@@ -437,7 +436,7 @@ namespace SmartScan
...
@@ -437,7 +436,7 @@ namespace SmartScan
proes
.
StartInfo
=
new
ProcessStartInfo
proes
.
StartInfo
=
new
ProcessStartInfo
{
{
FileName
=
f
,
FileName
=
f
,
WorkingDirectory
=
Path
.
Combine
(
Environment
.
CurrentDirectory
,
"ASTI"
),
WorkingDirectory
=
System
.
IO
.
Path
.
Combine
(
Environment
.
CurrentDirectory
,
"ASTI"
),
Verb
=
"runas"
// 这里设置为 "runas" 表示以管理员身份运行
Verb
=
"runas"
// 这里设置为 "runas" 表示以管理员身份运行
};
};
proes
.
StartInfo
.
UseShellExecute
=
false
;
proes
.
StartInfo
.
UseShellExecute
=
false
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论