|
@ -849,6 +849,12 @@ namespace Stone.WinBiz.JISAdmin |
|
|
List<string> lstName = WriteANSFile_Standard(text, fileType, AsnNumber); |
|
|
List<string> lstName = WriteANSFile_Standard(text, fileType, AsnNumber); |
|
|
FtpASN(lstName[0]); |
|
|
FtpASN(lstName[0]); |
|
|
|
|
|
|
|
|
|
|
|
#region 增加待生成报文数据 金杯李尔不使用FTP服务器 由服务器监听程序进行报文生成
|
|
|
|
|
|
var strsql = ""; |
|
|
|
|
|
strsql = "Insert into t_ASN_UPLOAD (AsnNum) values ('" + AsnNumber + "')"; |
|
|
|
|
|
db.Exec_NonQuery(strsql); |
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
return lstName[1]; |
|
|
return lstName[1]; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1152,20 +1158,21 @@ namespace Stone.WinBiz.JISAdmin |
|
|
string name = "BMW." + fileType + ".JIT.AVIEXP." + AsnNumber + ""; |
|
|
string name = "BMW." + fileType + ".JIT.AVIEXP." + AsnNumber + ""; |
|
|
filename = filename + "\\" + name; |
|
|
filename = filename + "\\" + name; |
|
|
|
|
|
|
|
|
StreamWriter sw = null; |
|
|
//金杯李尔 不在客户端生成ASN报文,统一由服务器生成
|
|
|
try |
|
|
// StreamWriter sw = null;
|
|
|
{ |
|
|
// try
|
|
|
sw = new StreamWriter(filename, false); |
|
|
// {
|
|
|
sw.Write(text); |
|
|
// sw = new StreamWriter(filename, false);
|
|
|
} |
|
|
// sw.Write(text);
|
|
|
catch (Exception ex) |
|
|
// }
|
|
|
{ |
|
|
// catch (Exception ex)
|
|
|
throw ex; |
|
|
// {
|
|
|
} |
|
|
// throw ex;
|
|
|
finally |
|
|
// }
|
|
|
{ |
|
|
// finally
|
|
|
if (sw != null) sw.Close(); |
|
|
// {
|
|
|
} |
|
|
// if (sw != null) sw.Close();
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
List<string> ret = new List<string>(); |
|
|
List<string> ret = new List<string>(); |
|
|
ret.Add(filename); |
|
|
ret.Add(filename); |
|
|