C# Class Cats.Services.Procurement.TransportOrderService

Inheritance: ITransportOrderService
Datei anzeigen Open project: edgecomputing/cats Class Usage Examples

Public Methods

Method Description
AddTransportOrder ( TransportOrder transportOrder ) : bool
ApproveTransportOrder ( TransportOrder transportOrder ) : bool
CheckIfCommodityIsDipatchedToThisFdp ( int fdpId, string bidNo, int transporterId, int transportOrderId, int commodityId ) : decimal?
CreateTransportOrder ( int transportRequisitionId, int bidId ) : bool
DeleteById ( int id ) : bool
DeleteHubAllocations ( List hubAllocations ) : void
DeleteSiPcAllocations ( List sIPcAllocations ) : void
DeleteTransporRequsitionDetails ( List transportRequisitionDetails ) : void
DeleteTransportOrder ( TransportOrder transportOrder ) : bool
DeleteTransportOrderDetails ( List transportOrderDetails ) : void
Dispose ( ) : void
EditTransportOrder ( TransportOrder transportOrder ) : bool
FindBy ( bool>.Expression predicate ) : List
FindById ( int id ) : TransportOrder
GeTransportOrderRpt ( int id ) : List
GeneratDispatchPlan ( int transportOrderId ) : bool
Get ( bool>.Expression filter = null, Func orderBy = null, string includeProperties = "" ) : IEnumerable
GetAllTransportOrder ( ) : List
GetByHub ( bool>.Expression filter = null, Func orderBy = null, string includeProperties = "", int hubId, int statusId ) : IEnumerable
GetFilteredTransportOrder ( IEnumerable transportOrderDetails, int statusId ) : IEnumerable
GetFilteredTransportOrder ( IEnumerable transportRequsitionDetails, int statusId ) : IEnumerable
GetHubs ( ) : List
GetPrograms ( ) : List
GetRegions ( ) : IOrderedEnumerable
GetRequsitionsToBeReverted ( ) : List
GetTransportOrderDetail ( int requisitionId ) : IEnumerable
GetTransportOrderDetailByTransportId ( int transportId ) : IEnumerable
GetTransportOrderReleifRequisition ( int status ) : IEnumerable
GetTransportRequisitionNo ( string transportRequisitionNo ) : string
GetTransporter ( ) : List
GetWoredas ( int zoneId, int transReqNo ) : IOrderedEnumerable
GetZone ( int transReqNo ) : IOrderedEnumerable
ReAssignTransporter ( IEnumerable transReqWithTransporter, int transporterID ) : int
ReverseDispatchAllocation ( int transportOrderId ) : List
ReverseTransportOrder ( int transportOrderID ) : bool
RevertRequsition ( int requisitionID ) : bool
SignTransportOrder ( TransportOrder transportOrder ) : bool
TransportOrderService ( IUnitOfWork unitOfWork, ITransporterService transporterService, INotificationService notificationService ) : System
UpdateRequsitionStatus ( IEnumerable requisitionIDs ) : void
UpdateRequsitionStatus ( int requisitionID ) : void
UpdateTransporterOrder ( int transportorderId, int woredaId ) : void

Private Methods

Method Description
AddToCurrentTransport ( IEnumerable transReqWithTransporter, int transporterId ) : int
AddToNotification ( int transportOrderId, string transportOrderNo, List hubId ) : void
AssignTransporterForEachWoreda ( int transportRequisitionId, int bidId ) : List

Method Details

AddTransportOrder() public method

public AddTransportOrder ( TransportOrder transportOrder ) : bool
transportOrder Cats.Models.TransportOrder
return bool

ApproveTransportOrder() public method

public ApproveTransportOrder ( TransportOrder transportOrder ) : bool
transportOrder Cats.Models.TransportOrder
return bool

CheckIfCommodityIsDipatchedToThisFdp() public method

public CheckIfCommodityIsDipatchedToThisFdp ( int fdpId, string bidNo, int transporterId, int transportOrderId, int commodityId ) : decimal?
fdpId int
bidNo string
transporterId int
transportOrderId int
commodityId int
return decimal?

CreateTransportOrder() public method

public CreateTransportOrder ( int transportRequisitionId, int bidId ) : bool
transportRequisitionId int
bidId int
return bool

DeleteById() public method

public DeleteById ( int id ) : bool
id int
return bool

DeleteHubAllocations() public method

public DeleteHubAllocations ( List hubAllocations ) : void
hubAllocations List
return void

DeleteSiPcAllocations() public method

public DeleteSiPcAllocations ( List sIPcAllocations ) : void
sIPcAllocations List
return void

DeleteTransporRequsitionDetails() public method

public DeleteTransporRequsitionDetails ( List transportRequisitionDetails ) : void
transportRequisitionDetails List
return void

DeleteTransportOrder() public method

public DeleteTransportOrder ( TransportOrder transportOrder ) : bool
transportOrder Cats.Models.TransportOrder
return bool

DeleteTransportOrderDetails() public method

public DeleteTransportOrderDetails ( List transportOrderDetails ) : void
transportOrderDetails List
return void

Dispose() public method

public Dispose ( ) : void
return void

EditTransportOrder() public method

public EditTransportOrder ( TransportOrder transportOrder ) : bool
transportOrder Cats.Models.TransportOrder
return bool

FindBy() public method

public FindBy ( bool>.Expression predicate ) : List
predicate bool>.Expression
return List

FindById() public method

public FindById ( int id ) : TransportOrder
id int
return Cats.Models.TransportOrder

GeTransportOrderRpt() public method

public GeTransportOrderRpt ( int id ) : List
id int
return List

GeneratDispatchPlan() public method

public GeneratDispatchPlan ( int transportOrderId ) : bool
transportOrderId int
return bool

Get() public method

public Get ( bool>.Expression filter = null, Func orderBy = null, string includeProperties = "" ) : IEnumerable
filter bool>.Expression
orderBy Func
includeProperties string
return IEnumerable

GetAllTransportOrder() public method

public GetAllTransportOrder ( ) : List
return List

GetByHub() public method

public GetByHub ( bool>.Expression filter = null, Func orderBy = null, string includeProperties = "", int hubId, int statusId ) : IEnumerable
filter bool>.Expression
orderBy Func
includeProperties string
hubId int
statusId int
return IEnumerable

GetFilteredTransportOrder() public method

public GetFilteredTransportOrder ( IEnumerable transportOrderDetails, int statusId ) : IEnumerable
transportOrderDetails IEnumerable
statusId int
return IEnumerable

GetFilteredTransportOrder() public method

public GetFilteredTransportOrder ( IEnumerable transportRequsitionDetails, int statusId ) : IEnumerable
transportRequsitionDetails IEnumerable
statusId int
return IEnumerable

GetHubs() public method

public GetHubs ( ) : List
return List

GetPrograms() public method

public GetPrograms ( ) : List
return List

GetRegions() public method

public GetRegions ( ) : IOrderedEnumerable
return IOrderedEnumerable

GetRequsitionsToBeReverted() public method

public GetRequsitionsToBeReverted ( ) : List
return List

GetTransportOrderDetail() public method

public GetTransportOrderDetail ( int requisitionId ) : IEnumerable
requisitionId int
return IEnumerable

GetTransportOrderDetailByTransportId() public method

public GetTransportOrderDetailByTransportId ( int transportId ) : IEnumerable
transportId int
return IEnumerable

GetTransportOrderReleifRequisition() public method

public GetTransportOrderReleifRequisition ( int status ) : IEnumerable
status int
return IEnumerable

GetTransportRequisitionNo() public method

public GetTransportRequisitionNo ( string transportRequisitionNo ) : string
transportRequisitionNo string
return string

GetTransporter() public method

public GetTransporter ( ) : List
return List

GetWoredas() public method

public GetWoredas ( int zoneId, int transReqNo ) : IOrderedEnumerable
zoneId int
transReqNo int
return IOrderedEnumerable

GetZone() public method

public GetZone ( int transReqNo ) : IOrderedEnumerable
transReqNo int
return IOrderedEnumerable

ReAssignTransporter() public method

public ReAssignTransporter ( IEnumerable transReqWithTransporter, int transporterID ) : int
transReqWithTransporter IEnumerable
transporterID int
return int

ReverseDispatchAllocation() public method

public ReverseDispatchAllocation ( int transportOrderId ) : List
transportOrderId int
return List

ReverseTransportOrder() public method

public ReverseTransportOrder ( int transportOrderID ) : bool
transportOrderID int
return bool

RevertRequsition() public method

public RevertRequsition ( int requisitionID ) : bool
requisitionID int
return bool

SignTransportOrder() public method

public SignTransportOrder ( TransportOrder transportOrder ) : bool
transportOrder Cats.Models.TransportOrder
return bool

TransportOrderService() public method

public TransportOrderService ( IUnitOfWork unitOfWork, ITransporterService transporterService, INotificationService notificationService ) : System
unitOfWork IUnitOfWork
transporterService ITransporterService
notificationService INotificationService
return System

UpdateRequsitionStatus() public method

public UpdateRequsitionStatus ( IEnumerable requisitionIDs ) : void
requisitionIDs IEnumerable
return void

UpdateRequsitionStatus() public method

public UpdateRequsitionStatus ( int requisitionID ) : void
requisitionID int
return void

UpdateTransporterOrder() public method

public UpdateTransporterOrder ( int transportorderId, int woredaId ) : void
transportorderId int
woredaId int
return void