|
@@ -122,7 +122,7 @@ public partial class supplierDownload : System.Web.UI.Page
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
int mvClientDown = 0;//转移到客户端下载
|
|
int mvClientDown = 0;//转移到客户端下载
|
|
|
-
|
|
|
|
|
|
|
+ string ctids = "";
|
|
|
int isFromClient = 0;
|
|
int isFromClient = 0;
|
|
|
if (onlyDownFile != 1)
|
|
if (onlyDownFile != 1)
|
|
|
{
|
|
{
|
|
@@ -255,6 +255,15 @@ public partial class supplierDownload : System.Web.UI.Page
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (ctidLst.Count > 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ ctids = string.Join(",", ctidLst);
|
|
|
|
|
+ if (!string.IsNullOrEmpty(ctids))
|
|
|
|
|
+ {
|
|
|
|
|
+ CeErpTradeCell.ExecuteNonQuery(string.Format("update CE_ErpTradeCell set IsHaveNewOrder = 2 where ctid in ({0}) ;", ("'" + ctids.Replace(",", "','") + "'")));
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
if (files.Count == 1)
|
|
if (files.Count == 1)
|
|
|
{
|
|
{
|
|
|
downLoadFile(userId, ctidLst[0], files[0], onlyDownFile, isFromClient, rnameList[0]);
|
|
downLoadFile(userId, ctidLst[0], files[0], onlyDownFile, isFromClient, rnameList[0]);
|
|
@@ -339,6 +348,7 @@ public partial class supplierDownload : System.Web.UI.Page
|
|
|
byte[] buffer = null;
|
|
byte[] buffer = null;
|
|
|
List<string> addFiles = new List<string>();
|
|
List<string> addFiles = new List<string>();
|
|
|
List<string> addCtid = new List<string>();
|
|
List<string> addCtid = new List<string>();
|
|
|
|
|
+
|
|
|
using (ZipFile file = ZipFile.Create(ms))
|
|
using (ZipFile file = ZipFile.Create(ms))
|
|
|
{
|
|
{
|
|
|
|
|
|
|
@@ -384,10 +394,6 @@ public partial class supplierDownload : System.Web.UI.Page
|
|
|
//{
|
|
//{
|
|
|
// updateIsDownSuccess(userId, addCtid[i]);
|
|
// updateIsDownSuccess(userId, addCtid[i]);
|
|
|
//}
|
|
//}
|
|
|
- //StringBuilder sql = new StringBuilder();
|
|
|
|
|
- //string tids = string.Join(",", addCtid);
|
|
|
|
|
- //sql.AppendFormat("update CE_ErpTradeCell set OrderState = 6 where ctid in ({0}) ;", ("'" + tids.Replace(",", "','") + "'"));
|
|
|
|
|
- //CeErpTradeCell.ExecuteNonQuery(sql.ToString());
|
|
|
|
|
//sql = new StringBuilder();
|
|
//sql = new StringBuilder();
|
|
|
//sql.AppendFormat("insert into CE_ErpTradeLog(tid,orderstate,userid,operatetime,con) select ctid,{1},{2},getdate(),'{3}' from ce_erptradecell where ctid in ({0}) ;", ("'" + tids.Replace(",", "','") + "'"), (int)OrderState.下单完成, userId, "下载设计文件");
|
|
//sql.AppendFormat("insert into CE_ErpTradeLog(tid,orderstate,userid,operatetime,con) select ctid,{1},{2},getdate(),'{3}' from ce_erptradecell where ctid in ({0}) ;", ("'" + tids.Replace(",", "','") + "'"), (int)OrderState.下单完成, userId, "下载设计文件");
|
|
|
//CeErpTradeCell.ExecuteNonQuery(sql.ToString());
|
|
//CeErpTradeCell.ExecuteNonQuery(sql.ToString());
|