Class TransportOrderManager
TransportOrder manager
Inheritance
Inherited Members
Namespace: Simplic.PlugIn.Logistics.Disposition
Assembly: Simplic.PlugIn.Logistics.dll
Syntax
public class TransportOrderManager
Constructors
| Improve this Doc View SourceTransportOrderManager()
Initializew new manager instance
Declaration
public TransportOrderManager()
Methods
| Improve this Doc View SourceCanDelete(TransportOrder)
Checks whether the transportOrder can deleted
Declaration
public bool CanDelete(TransportOrder transportOrder)
Parameters
Type | Name | Description |
---|---|---|
TransportOrder | transportOrder | The TransportOrder to check |
Returns
Type | Description |
---|---|
System.Boolean | Whether the TransportOrder can be deletet |
Delete(TransportOrder)
Set isdeleted for a transport order object
Declaration
public bool Delete(TransportOrder transportOrder)
Parameters
Type | Name | Description |
---|---|---|
TransportOrder | transportOrder | Object to save |
Returns
Type | Description |
---|---|
System.Boolean | True if deleting was successfull |
Get(Guid)
Get a single transport order by its id
Declaration
public TransportOrder Get(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique id |
Returns
Type | Description |
---|---|
TransportOrder | If exists, a transport order will be returned, else null |
GetAll(Boolean)
Get all transport order
Declaration
public IEnumerable<TransportOrder> GetAll(bool includeDeleted)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | includeDeleted | If true, deleted will be included |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TransportOrder> | Enumerable of transport order |
GetByDateRange(Nullable<Guid>, Guid, Guid, DateTime, DateTime)
Declaration
public IEnumerable<TransportOrder> GetByDateRange(Guid? senderAddressId, Guid loadAddressId, Guid deliveryAddressId, DateTime monday, DateTime sunday)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Guid> | senderAddressId | |
System.Guid | loadAddressId | |
System.Guid | deliveryAddressId | |
System.DateTime | monday | |
System.DateTime | sunday |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TransportOrder> |
GetByShipmentId(Guid)
Get a single transport order by shipment id
Declaration
public TransportOrder GetByShipmentId(Guid shipmentId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | shipmentId | Unique shipment id |
Returns
Type | Description |
---|---|
TransportOrder | If exists, a transport order will be returned, else null |
OverrideShipmentValues(TransportOrder, Boolean)
Declaration
public bool OverrideShipmentValues(TransportOrder transportOrder, bool allExisting = false)
Parameters
Type | Name | Description |
---|---|---|
TransportOrder | transportOrder | |
System.Boolean | allExisting |
Returns
Type | Description |
---|---|
System.Boolean |
ResolveTransportOrderStatus(Guid, Nullable<Guid>)
Process status resolving
Declaration
public Guid ResolveTransportOrderStatus(Guid transportOrderId, Guid? currentStatusId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | transportOrderId | |
System.Nullable<System.Guid> | currentStatusId |
Returns
Type | Description |
---|---|
System.Guid |
RestoreTransportOrder(Guid)
Restores a deleted transportorder
Declaration
public bool RestoreTransportOrder(Guid transportOrderId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | transportOrderId | Selected transport order id |
Returns
Type | Description |
---|---|
System.Boolean |
Save(TransportOrder)
Save transport order object
Declaration
public bool Save(TransportOrder transportOrder)
Parameters
Type | Name | Description |
---|---|---|
TransportOrder | transportOrder | Object to save |
Returns
Type | Description |
---|---|
System.Boolean | True if saving was successfull |
SetHasBillableShipmentCarrier(Guid, Boolean)
Sets the HasBillableShipmentCarrier flag state
Declaration
public void SetHasBillableShipmentCarrier(Guid transportOrderId, bool state)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | transportOrderId | |
System.Boolean | state |
SetHasBillableShipmentCustomer(Guid, Boolean)
Sets the HasBillableShipmentCustomer flag state
Declaration
public void SetHasBillableShipmentCustomer(Guid transportOrderId, bool state)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | transportOrderId | |
System.Boolean | state |