|  |  |  | 
|---|
|  |  |  | StockId = stockInfo.Id, | 
|---|
|  |  |  | TaskNum = 0, | 
|---|
|  |  |  | OrderQuantity = outboundOrderDetail.OrderQuantity, | 
|---|
|  |  |  | Unit = outboundOrderDetail.Unit | 
|---|
|  |  |  | Unit = outboundOrderDetail.Unit, | 
|---|
|  |  |  | ProductionDate = stockInfoDetail.ProductionDate, | 
|---|
|  |  |  | EffectiveDate = stockInfoDetail.EffectiveDate | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #region ä¿®æ¹åºåºå | 
|---|
|  |  |  | 
|---|
|  |  |  | Deptno = outboundOrder.DepartmentCode, | 
|---|
|  |  |  | Deptname = outboundOrder.DepartmentName, | 
|---|
|  |  |  | Createtime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), | 
|---|
|  |  |  | Createuser = string.IsNullOrEmpty(Createuser) ? Createuser : "admin", | 
|---|
|  |  |  | Createuser = Createuser, | 
|---|
|  |  |  | Issitem = new List<ERPIssueItemModel>() { issueItemModel }, | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | //æ´æ°åæåå· | 
|---|
|  |  |  | 
|---|
|  |  |  | DelOutOrder(oldOutboundOrder); | 
|---|
|  |  |  | return WebResponseContent.Instance.Error($"æªæ¾å°è¯¥ä»åºä¿¡æ¯"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (materielInfo.WarehouseId!= materielInfo.WarehouseId) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | DelOutOrder(oldOutboundOrder); | 
|---|
|  |  |  | return WebResponseContent.Instance.Error($"ç©æ{materielInfo}ä¸å±äº{warehouse.WarehouseName}"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (model.Way == 1) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | if (oldOutboundOrder != null) | 
|---|