Commit 932fee16f0848ef94a120db8e126f775b01f026b
1 parent
1f55d564
修改
Showing
3 changed files
with
10 additions
and
154 deletions
WebApp/Apps/api/IStackerStatusApp.cs
... | ... | @@ -1621,147 +1621,6 @@ namespace WebApp |
1621 | 1621 | } |
1622 | 1622 | } |
1623 | 1623 | } |
1624 | - //入库完成测试接口 | |
1625 | - //if (sTKStatusModel.Status == 90) | |
1626 | - //{ | |
1627 | - // //测试调用ERP接口 | |
1628 | - // TIPTOPServiceGateWayPortTypeClient TipIn = new TIPTOPServiceGateWayPortTypeClient(); | |
1629 | - // ConfigXmlDocument doc = new ConfigXmlDocument(); | |
1630 | - // //读取传入的xml | |
1631 | - // var config = AppSettingsJson.GetAppSettings(); | |
1632 | - // doc.Load(config.GetSection("NouYaWebInBackService:Url").Value); | |
1633 | - // //将物料号填入 | |
1634 | - // XmlNodeList ns = doc.SelectNodes("//Field"); | |
1635 | - // foreach (XmlElement node in ns) | |
1636 | - // { | |
1637 | - // //作业类型 | |
1638 | - // if (node.GetAttribute("name") == "tc_dcf001") | |
1639 | - // { | |
1640 | - // node.SetAttribute("value", "D111"); | |
1641 | - // } | |
1642 | - // //入库单号 | |
1643 | - // else if (node.GetAttribute("name") == "tc_dcf003") | |
1644 | - // { | |
1645 | - // node.SetAttribute("value", "123123"); | |
1646 | - // } | |
1647 | - // //客商编号 | |
1648 | - // else if (node.GetAttribute("name") == "tc_dcf004") | |
1649 | - // { | |
1650 | - // node.SetAttribute("value", "123"); | |
1651 | - // } | |
1652 | - // //入库日期 | |
1653 | - // else if (node.GetAttribute("name") == "tc_dcf005") | |
1654 | - // { | |
1655 | - // node.SetAttribute("value", "2020-11-20"); | |
1656 | - // } | |
1657 | - // //入库部门 | |
1658 | - // else if (node.GetAttribute("name") == "tc_dcf006") | |
1659 | - // { | |
1660 | - // node.SetAttribute("value", "123"); | |
1661 | - // } | |
1662 | - // //单据状态 | |
1663 | - // else if (node.GetAttribute("name") == "tc_dcf012") | |
1664 | - // { | |
1665 | - // node.SetAttribute("value", "123"); | |
1666 | - // } | |
1667 | - // //营运中心 | |
1668 | - // else if (node.GetAttribute("name") == "tc_dcf013") | |
1669 | - // { | |
1670 | - // node.SetAttribute("value", "123"); | |
1671 | - // } | |
1672 | - // //单据项次 | |
1673 | - // else if (node.GetAttribute("name") == "tc_dcf015") | |
1674 | - // { | |
1675 | - // node.SetAttribute("value", "123"); | |
1676 | - // } | |
1677 | - // //物料编号 | |
1678 | - // else if (node.GetAttribute("name") == "tc_dcf016") | |
1679 | - // { | |
1680 | - // node.SetAttribute("value", "7120004938"); | |
1681 | - // } | |
1682 | - // //单位 | |
1683 | - // else if (node.GetAttribute("name") == "tc_dcf019") | |
1684 | - // { | |
1685 | - // node.SetAttribute("value", "7120004938"); | |
1686 | - // } | |
1687 | - // //申请数量 | |
1688 | - // else if (node.GetAttribute("name") == "tc_dcf021") | |
1689 | - // { | |
1690 | - // node.SetAttribute("value", "100"); | |
1691 | - // } | |
1692 | - // //实际数量 | |
1693 | - // else if (node.GetAttribute("name") == "tc_dcf022") | |
1694 | - // { | |
1695 | - // node.SetAttribute("value", "100"); | |
1696 | - // } | |
1697 | - // //单据完成状态 | |
1698 | - // else if (node.GetAttribute("name") == "tc_dcf023") | |
1699 | - // { | |
1700 | - // node.SetAttribute("value", "1"); | |
1701 | - // } | |
1702 | - // //单据完成结果 | |
1703 | - // else if (node.GetAttribute("name") == "tc_dcf024") | |
1704 | - // { | |
1705 | - // node.SetAttribute("value", ""); | |
1706 | - // } | |
1707 | - // //仓库 | |
1708 | - // else if (node.GetAttribute("name") == "tc_dcf028") | |
1709 | - // { | |
1710 | - // node.SetAttribute("value", "B0010"); | |
1711 | - // } | |
1712 | - // //WMS回传仓库 | |
1713 | - // else if (node.GetAttribute("name") == "tc_dcf029") | |
1714 | - // { | |
1715 | - // node.SetAttribute("value", "B0010"); | |
1716 | - // } | |
1717 | - // //库位 | |
1718 | - // else if (node.GetAttribute("name") == "tc_dcf030") | |
1719 | - // { | |
1720 | - // node.SetAttribute("value", ""); | |
1721 | - // } | |
1722 | - // //WMS回传库位 | |
1723 | - // else if (node.GetAttribute("name") == "tc_dcf031") | |
1724 | - // { | |
1725 | - // node.SetAttribute("value", "CA-01-05"); | |
1726 | - // } | |
1727 | - // //批号 | |
1728 | - // else if (node.GetAttribute("name") == "tc_dcf032") | |
1729 | - // { | |
1730 | - // node.SetAttribute("value", "20201120001"); | |
1731 | - // } | |
1732 | - // //工单号 | |
1733 | - // else if (node.GetAttribute("name") == "tc_dcf033") | |
1734 | - // { | |
1735 | - // node.SetAttribute("value", "123"); | |
1736 | - // } | |
1737 | - | |
1738 | - // } | |
1739 | - // //调用方法 | |
1740 | - // var response = TipIn.intostore_post(doc.InnerXml); | |
1741 | - // //处理调用后回传数据 | |
1742 | - // doc.LoadXml(response); | |
1743 | - // //接口记录 | |
1744 | - // InterfaceLog inter = new InterfaceLog(); | |
1745 | - // inter.Initiator = "WMS"; | |
1746 | - // inter.recipient = "ERP"; | |
1747 | - // inter.Request = doc.InnerXml; | |
1748 | - // inter.Method = "LK_InBack"; | |
1749 | - // inter.CreateTime = DateTime.Now; | |
1750 | - // inter.CreateBy = "WMS"; | |
1751 | - // _unitWork.Add(inter); | |
1752 | - | |
1753 | - // XmlElement element = (XmlElement)doc.SelectSingleNode("//Status"); | |
1754 | - // string code = element.GetAttribute("code"); | |
1755 | - // if (code == "0") | |
1756 | - // { | |
1757 | - // return "调用接口成功"; | |
1758 | - // } | |
1759 | - // else | |
1760 | - // { | |
1761 | - // string description = element.GetAttribute("description"); | |
1762 | - // return description; | |
1763 | - // } | |
1764 | - //} | |
1765 | 1624 | |
1766 | 1625 | } |
1767 | 1626 | else |
... | ... |
WebMvc/Areas/WebService/SampleService.cs
... | ... | @@ -79,15 +79,6 @@ namespace WebMvc.Areas.WebService |
79 | 79 | XmlElement element = (XmlElement)reDoc.SelectSingleNode("//Status"); |
80 | 80 | try |
81 | 81 | { |
82 | - InterfaceLog inter = new InterfaceLog(); | |
83 | - inter.Initiator = "ERP"; | |
84 | - inter.recipient = "WMS"; | |
85 | - inter.Request = Request; | |
86 | - inter.Method = "LK_In"; | |
87 | - inter.CreateTime = DateTime.Now; | |
88 | - inter.CreateBy = "WMS"; | |
89 | - _unitWork.Add(inter); | |
90 | - | |
91 | 82 | doc.LoadXml(Request); |
92 | 83 | string name = ""; |
93 | 84 | string value = ""; |
... | ... | @@ -245,7 +236,13 @@ namespace WebMvc.Areas.WebService |
245 | 236 | _apprh.UpdateByTracking(receiptHeader); |
246 | 237 | #endregion |
247 | 238 | } |
248 | - | |
239 | + InterfaceLog inter = new InterfaceLog(); | |
240 | + inter.Status = 0; | |
241 | + inter.TaskNo = UpperTaskNo + SourceCode; | |
242 | + inter.Request = Request; | |
243 | + inter.CreateTime = DateTime.Now; | |
244 | + inter.CreateBy = "WMS"; | |
245 | + _unitWork.Add(inter); | |
249 | 246 | |
250 | 247 | |
251 | 248 | |
... | ... |
WebRepository/Domain/monitor/InterfaceLog.cs
... | ... | @@ -17,7 +17,7 @@ namespace WebRepository |
17 | 17 | /// 状态 |
18 | 18 | /// </summary> |
19 | 19 | [Column("status")] |
20 | - public string Status { get; set; } | |
20 | + public int? Status { get; set; } | |
21 | 21 | /// <summary> |
22 | 22 | /// 唯一标识(上游任务号加上游系统单号) |
23 | 23 | /// </summary> |
... | ... | @@ -27,12 +27,12 @@ namespace WebRepository |
27 | 27 | ///任务总条数 |
28 | 28 | /// </summary> |
29 | 29 | [Column("allNum")] |
30 | - public string AllNum { get; set; } | |
30 | + public int? AllNum { get; set; } | |
31 | 31 | /// <summary> |
32 | 32 | /// 完成总条数 |
33 | 33 | /// </summary> |
34 | 34 | [Column("comNum")] |
35 | - public string ComNum { get; set; } | |
35 | + public int? ComNum { get; set; } | |
36 | 36 | /// <summary> |
37 | 37 | /// 数据 |
38 | 38 | /// </summary> |
... | ... |