| | |
| | | _unitOfWorkManage = unitOfWorkManage; |
| | | } |
| | | |
| | | public WebResponseContent ReceivePurchaseOrderSingle(PurchaseOrderModel model) |
| | | public WebResponseContent ReceivePurchaseOrder(PurchaseOrderModel model) |
| | | { |
| | | try |
| | | { |
| | | switch (model.Way) |
| | | return model.Way switch |
| | | { |
| | | case 1: |
| | | return AddPurchaseOrder(model); |
| | | case 2: |
| | | return UpdatePurchaseOrder(model); |
| | | case 3: |
| | | return DeletePurchaseOrder(model); |
| | | case 4: |
| | | return ClosePurchaseOrder(model); |
| | | } |
| | | |
| | | return WebResponseContent.Instance.OK(); |
| | | 1 => AddPurchaseOrder(model), |
| | | 2 => UpdatePurchaseOrder(model), |
| | | 3 => DeletePurchaseOrder(model), |
| | | 4 => ClosePurchaseOrder(model), |
| | | _ => WebResponseContent.Instance.OK(), |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |