|
|
@@ -503,7 +503,7 @@ namespace SiteCore.Handler
|
|
|
int OrderState = Convert.ToInt32(dr["OrderState"]);
|
|
|
if (OrderState >= 4)
|
|
|
{
|
|
|
- returnErrorMsg(dr["ctid"] + "财务要求已下单已发货无法重置");
|
|
|
+ returnErrorMsg(dr["ctid"] + "设计中订单无法重置");
|
|
|
return;
|
|
|
}
|
|
|
LogHelper.addLog(dr["ctid"].ToString(), UserID, "售前:订单重置", 0, 1);
|
|
|
@@ -558,7 +558,67 @@ namespace SiteCore.Handler
|
|
|
}
|
|
|
returnErrorMsg("缺少必要的参数ctid");
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 标识回访
|
|
|
+ /// </summary>
|
|
|
+ public void set_return_visit()
|
|
|
+ {
|
|
|
+ string ctid = GetPostString("ctid");
|
|
|
+ int UserID = GetPostInt("UserID");
|
|
|
+ if (!string.IsNullOrEmpty(ctid))
|
|
|
+ {
|
|
|
+ CeErpTradeCellExtend ceErpTradeCellExtend = CeErpTradeCellExtend.getByTid(ctid);
|
|
|
+ if (ceErpTradeCellExtend == null)
|
|
|
+ {
|
|
|
+ ceErpTradeCellExtend = new CeErpTradeCellExtend();
|
|
|
+ ceErpTradeCellExtend.ctid = ctid;
|
|
|
+ }
|
|
|
+ ceErpTradeCellExtend.returnVisit = 1;
|
|
|
+ if (ceErpTradeCellExtend.ID == 0)
|
|
|
+ {
|
|
|
+ ceErpTradeCellExtend.Create();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ ceErpTradeCellExtend.Update();
|
|
|
+ }
|
|
|
+ CeErpTradeAfterSaleExtend ceErpTradeAfterSaleExtend = CeErpTradeAfterSaleExtend.getByTid(ctid);
|
|
|
+ if (ceErpTradeAfterSaleExtend != null)
|
|
|
+ {
|
|
|
+ ceErpTradeAfterSaleExtend.TextResult = "";
|
|
|
+ ceErpTradeAfterSaleExtend.Update();
|
|
|
+ }
|
|
|
+ LogHelper.addLog(ctid, UserID, "售前添加客户回访信息", 6);
|
|
|
+ returnSuccessMsg("修改成功!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ returnErrorMsg("找不到订单");
|
|
|
+ }
|
|
|
|
|
|
+ public void up_attachments()
|
|
|
+ {
|
|
|
+ string tid = GetPostString("tid");
|
|
|
+ int UserID = GetPostInt("UserID");
|
|
|
+ string atta = GetPostString("atta");
|
|
|
+ if (!string.IsNullOrEmpty(tid))
|
|
|
+ {
|
|
|
+ if (string.IsNullOrEmpty(atta))
|
|
|
+ {
|
|
|
+ returnErrorMsg("文件地址为空");
|
|
|
+ }
|
|
|
+ CeErpTrade ceErpTrade = CeErpTrade.Get(tid);
|
|
|
+ if (ceErpTrade == null)
|
|
|
+ {
|
|
|
+ returnErrorMsg("找不到订单");
|
|
|
+ }
|
|
|
+ ceErpTrade.Attachments = atta;
|
|
|
+ ceErpTrade.Update();
|
|
|
+ LogHelper.addLog(tid, UserID, "上传文件地址", 6);
|
|
|
+ returnSuccessMsg("上传成功!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ returnErrorMsg("找不到订单");
|
|
|
+ }
|
|
|
/**
|
|
|
* 顺丰到付\顺丰寄付
|
|
|
* ctid
|