Browse Source

冲压件接口接收备注并打印

SCP_CYJ
qian 6 months ago
parent
commit
b62c1736dc
  1. 2
      Common/MyWebSmtpMail.cs
  2. 5
      Controller/SCP_MPO_CONTROLLER.cs
  3. 2
      Models/ScpEntity/TB_MATERIALORDERS_DETAIL.cs
  4. 1
      Models/ScpEntity/V_MPO_PRINT.cs
  5. 1
      UniApiGroup/Controller/OdbcApiQadController.cs

2
Common/MyWebSmtpMail.cs

@ -265,7 +265,7 @@ namespace CK.SCP.Common
_client.Disconnect(true);
Console.WriteLine("MailKit Send Success:" + _message.To.Mailboxes.First());
}
catch (Exception ex)
catch (SmtpException ex)
{
Console.WriteLine(ex.Message);
Console.WriteLine();

5
Controller/SCP_MPO_CONTROLLER.cs

@ -591,6 +591,11 @@ namespace CK.SCP.Controller
}
});
print.Total = SUM.ToString("F6");
var detail = detailList.FirstOrDefault(q => !string.IsNullOrEmpty(q.Remake));
if (detail != null)
{
print.Remake = detail.Remake;
}
var dt = ConvertHelper.ToDataTable(new List<V_MPO_PRINT> { print });
ds.Tables.Add(dt);
var dt1 = ConvertHelper.ToDataTable(lsDetail);

2
Models/ScpEntity/TB_MATERIALORDERS_DETAIL.cs

@ -61,5 +61,7 @@ namespace CK.SCP.Models.ScpEntity
public string CType_DESC { get; set; }
[DisplayName("订单行号")]
public string PURDOCITEMNO { get; set; }
[DisplayName("备注")]
public string Remake { get; set; }
}
}

1
Models/ScpEntity/V_MPO_PRINT.cs

@ -15,6 +15,7 @@
public string FIRSTTELNO { get; set; }
public string STAGEDESC { get; set; }
public string Total { get; set; }
public string Remake { get; set; }
}

1
UniApiGroup/Controller/OdbcApiQadController.cs

@ -1850,6 +1850,7 @@ namespace CK.SCP.GrupUniApi.Controller
orderdetail.CostCenterDes = initem.COSTCENTERDES;
orderdetail.StoreLocation = initem.STORELOCATION;
orderdetail.PURDOCITEMNO = initem.PURDOCITEMNO;
orderdetail.Remake = initem.REMARK;
InPoDetailList.Add(orderdetail);
var maxlist1 = new xxDiMaxes_Order
{

Loading…
Cancel
Save