diff --git a/UniApiGroup/Controller/OdbcApiQadController.cs b/UniApiGroup/Controller/OdbcApiQadController.cs
index 5b5bf3c..86b5631 100644
--- a/UniApiGroup/Controller/OdbcApiQadController.cs
+++ b/UniApiGroup/Controller/OdbcApiQadController.cs
@@ -1697,7 +1697,7 @@ namespace CK.SCP.GrupUniApi.Controller
{
if (p.PURDOCITEMNO == Ditem.PURDOCITEMNO)
{
- p.Ctype = Ditem.CTYPE;
+ p.Ctype = Ditem.DI_OPERTYPE;
p.AcceptStatus = (int)GeneralMaterialOrderState.Cancel;
PoDetailList.Add(p);
@@ -1741,31 +1741,31 @@ namespace CK.SCP.GrupUniApi.Controller
p.Ctype = "D";
PoList.Add(p);
});
-
+ // 主表变状态 现改成不发邮件
#region
- // 添加发邮件数据
- TS_Email email = new TS_Email();
- email.EmailToUser = Ditem.VENDORDESC;
- string mailbody = "";
- mailbody += "尊敬的 供应商
";
- mailbody += "你好!
";
- mailbody += "一般材料订单 " + Ditem.PURDOCNO + " 进行了物料行作废的操作,请登录供应商协同网站进行订单查看。
";
- mailbody += "登录账号:" + Ditem.VENDORNO + "@W21" + "
";
- mailbody += "登录地址:" + wwadres + "
";
- mailbody += "
日期:" + DateTime.Now;
- email.EmailString = mailbody;
- var user = authdb.Users.FirstOrDefault(q => q.Name.Contains(Ditem.VENDORNO));
- if (user == null)
- {
- email.EmailSendState = 2;
- email.EmailSendFailReason = "该供应商邮箱未维护";
- }
- else
- {
- email.EmailAddress = user.Email;
- email.EmailSendState = 0;
- }
- emails.Add(email);
+ //// 添加发邮件数据
+ //TS_Email email = new TS_Email();
+ //email.EmailToUser = Ditem.VENDORDESC;
+ //string mailbody = "";
+ //mailbody += "尊敬的 供应商
";
+ //mailbody += "你好!
";
+ //mailbody += "一般材料订单 " + Ditem.PURDOCNO + " 进行了物料行作废的操作,请登录供应商协同网站进行订单查看。
";
+ //mailbody += "登录账号:" + Ditem.VENDORNO + "@W21" + "
";
+ //mailbody += "登录地址:" + wwadres + "
";
+ //mailbody += "
日期:" + DateTime.Now;
+ //email.EmailString = mailbody;
+ //var user = authdb.Users.FirstOrDefault(q => q.Name.Contains(Ditem.VENDORNO));
+ //if (user == null)
+ //{
+ // email.EmailSendState = 2;
+ // email.EmailSendFailReason = "该供应商邮箱未维护";
+ //}
+ //else
+ //{
+ // email.EmailAddress = user.Email;
+ // email.EmailSendState = 0;
+ //}
+ //emails.Add(email);
#endregion
}
else //否则将主表变成新建状态