This commit is contained in:
admin
2020-12-21 10:04:19 +08:00
parent d5679ac1d9
commit 36ee148b78
3 changed files with 1 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
</startup> </startup>
<appSettings> <appSettings>
<!--修改账套请修改这里的配置-->
<add key="url" value="http://192.168.0.242/U8EAI/import.asp"/> <add key="url" value="http://192.168.0.242/U8EAI/import.asp"/>
<add key="connStr" value="Server=192.168.0.242 ;DataBase=UFDATA_003_2019;Uid=sa;Pwd=!@#qwe123;"/> <add key="connStr" value="Server=192.168.0.242 ;DataBase=UFDATA_003_2019;Uid=sa;Pwd=!@#qwe123;"/>
</appSettings> </appSettings>

View File

@@ -17,7 +17,6 @@ namespace U8AppMain
DataTable data = new DataTable(); DataTable data = new DataTable();
try try
{ {
var workbook = WorkbookFactory.Create(steam); var workbook = WorkbookFactory.Create(steam);
ISheet sheet; ISheet sheet;
if (sheetName != null) if (sheetName != null)

View File

@@ -15,8 +15,6 @@ namespace U8AppMain
{ {
private static void XmlSerializeInternal(Stream stream, object o, Encoding encoding) private static void XmlSerializeInternal(Stream stream, object o, Encoding encoding)
{ {
XmlSerializerNamespaces ns = new XmlSerializerNamespaces(); XmlSerializerNamespaces ns = new XmlSerializerNamespaces();
ns.Add("", ""); ns.Add("", "");
XmlSerializer serializer = new XmlSerializer(o.GetType()); XmlSerializer serializer = new XmlSerializer(o.GetType());