修改
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user