雅达-更新接收参数以支持动态供应商和接收行
在 `WMS_U9C.cs` 中,将 `CreateReceivementParam` 类的 `Supplier` 属性从硬编码改为使用 `input.Supplier`,并将 `RcvLines` 属性改为使用 `input.RcvLines`,以支持动态传入的供应商和接收行信息。移除了一些不必要的属性赋值以简化代码。
在 `U9CParameter.cs` 中,新增 `CreateReceivementInput` 类的 `Supplier` 和 `RcvLines` 属性,增强了类的灵活性和可扩展性。
| | |
| | | rcvDTO = new() |
| | | { |
| | | BusinessDate = DateTime.Now, |
| | | Supplier = new() { m_code = "C.9999" }, |
| | | Supplier = new() { m_code = input.Supplier }, |
| | | RcvDocType = new() { m_code = "RCV01" }, |
| | | RcvLines= new() { |
| | | |
| | | }, |
| | | IsRcvByChangeable =true, |
| | | IsPriceListChangeable = true, |
| | | IsConfirmTermChangeable = true, |
| | | IsPaymentTermChangeable = true, |
| | | IsLineApprove= true, |
| | | RcvLines= input.RcvLines, |
| | | }, |
| | | OtherID = "WMS" |
| | | }; |
| | |
| | | |
| | | public class CreateReceivementInput : U9CBaseInput |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 供应商 |
| | | /// </summary> |
| | | public string Supplier { get; set; } |
| | | public List<RcvLine> RcvLines { get; set; } |
| | | } |
| | | |
| | | public class RcvDTO |