新增上传文件通知报价
This commit is contained in:
+7
-2
@@ -79,6 +79,7 @@ public partial class uploadFile : System.Web.UI.Page
|
||||
// return;
|
||||
//}
|
||||
//CeErpTradeCell.GetByCtid("1717009344450030601");
|
||||
|
||||
if (Request.Files.Count < 1)
|
||||
{
|
||||
conErc("空文件!");
|
||||
@@ -424,8 +425,11 @@ public partial class uploadFile : System.Web.UI.Page
|
||||
//CeErpTradeCell.UpdateRelationOrder(entity);
|
||||
CeErpTradeCell.UpdateRelationOrder(entity.ctid);
|
||||
CeErpProduct product = CeErpProduct.GetById(entity.ProductId);
|
||||
string param = "[{ \"product_type\": \"" + product.PType + "\", \"remark\": \"" + entity.seller_memo + "\" }]";
|
||||
sysHttpClient(param);
|
||||
if (product != null)
|
||||
{
|
||||
string param = "[{ \"product_type\": \"" + product.PType + "\",\"remark\": \"" + entity.seller_memo + "\",\"index\": \"" + entity.OrderSn + "\",\"orderid\": \"" + entity.ctid + "\",\"price\": \"" + entity.payment + "\"}]";
|
||||
sysHttpClient(param);
|
||||
}
|
||||
CeErpTradeLog.AddLog(entity.ctid, entity.OrderState, userId, "上传设计文件-" + saveFile);
|
||||
if (ctid.IndexOf("S_") >= -1)
|
||||
{
|
||||
@@ -650,6 +654,7 @@ public partial class uploadFile : System.Web.UI.Page
|
||||
{
|
||||
var response = client.SendAsync(request).Result;
|
||||
response.EnsureSuccessStatusCode();
|
||||
writeLog(param + "-" + response.Content.ReadAsStringAsync().Result);
|
||||
return response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
Reference in New Issue
Block a user