| | |
| | | |
| | | if(!string.IsNullOrEmpty(_WarehouseId)) |
| | | { |
| | | if (!long.TryParse(_WarehouseId, out long outWarehouseId)&&!string.IsNullOrEmpty(_WarehouseId)) |
| | | System.Int64 enumWarehouseId = default(System.Int64); |
| | | |
| | | if(!Enum.TryParse<System.Int64>(_WarehouseId, out enumWarehouseId)&&!string.IsNullOrEmpty(_WarehouseId)) |
| | | { |
| | | throw Oops.Oh($"第{index}行[所属仓库]{_WarehouseId}值不正确!"); |
| | | } |
| | | if (outWarehouseId <= 0&&!string.IsNullOrEmpty(_WarehouseId)) |
| | | { |
| | | throw Oops.Oh($"第{index}行[所属仓库]{_WarehouseId}值不能小于等于0!"); |
| | | throw Oops.Oh($"第{index}行[所属仓库]{_WarehouseId}值不正确!"); |
| | | } |
| | | else |
| | | { |
| | | addItem.WarehouseId = outWarehouseId; |
| | | addItem.WarehouseId = enumWarehouseId; |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(_IsBarcodeLevelControl)) |
| | | { |