|
|
@ -969,36 +969,36 @@ namespace djy.Service.Ams
|
|
|
|
return req;
|
|
|
|
return req;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (code == "T" && result == "true")
|
|
|
|
if (code == "T" && result == "true")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
List<AMS_MasterHistory> hisList = new(hodto.Count);
|
|
|
|
|
|
|
|
foreach (var item in hodto)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
AMS_MasterHistory history = new AMS_MasterHistory();
|
|
|
|
AMS_MasterHistory history = new AMS_MasterHistory();
|
|
|
|
history.GID = Guid.NewGuid().ToString("N");
|
|
|
|
history.GID = Guid.NewGuid().ToString("N");
|
|
|
|
history.AM_ID = oid;
|
|
|
|
history.AM_ID = item.GID;
|
|
|
|
history.SendTime = DateTime.Now;
|
|
|
|
history.SendTime = DateTime.Now;
|
|
|
|
history.Type = "0";
|
|
|
|
history.Type = "0";
|
|
|
|
if (docType == "AMSDOC")
|
|
|
|
if (docType == "AMSDOC")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
history.State = "新增发送成功";
|
|
|
|
history.State = "新增发送成功";
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (docType == "AMSAR")
|
|
|
|
else if (docType == "AMSAR")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
history.State = "重发成功";
|
|
|
|
history.State = "重发成功";
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (docType == "AMSM")
|
|
|
|
else if (docType == "AMSM")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
history.State = "修改发送成功";
|
|
|
|
history.State = "修改发送成功";
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
history.State = "删除发送成功";
|
|
|
|
history.State = "删除发送成功";
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
history.Operator = user.SHOWNAME;
|
|
|
|
history.Operator = user.SHOWNAME;
|
|
|
|
history.Remark = user.SHOWNAME + "于" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "发送了单据";
|
|
|
|
history.Remark = user.SHOWNAME + "于" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "发送了单据";
|
|
|
|
DbBus.Get(DbList.AMSCenter).Insert(history).ExecuteAffrows();
|
|
|
|
hisList.Add(history);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
DbBus.Get(DbList.AMSCenter).Insert(hisList).ExecuteAffrows();
|
|
|
|
|
|
|
|
|
|
|
|
if (docType == "AMSDOC")
|
|
|
|
if (docType == "AMSDOC")
|
|
|
|
{
|
|
|
|
{
|
|
|
|