C# Class Cats.Areas.Hub.Controllers.Allocations.DispatchAllocationController

Inheritance: Cats.Web.Hub.BaseController
Show file Open project: edgecomputing/cats

Public Methods

Method Description
AllocationList ( ) : System.Web.Mvc.ActionResult
AvailableRequistions ( bool UnCommited ) : System.Web.Mvc.ActionResult
Close ( string id ) : System.Web.Mvc.ActionResult
Create ( ) : System.Web.Mvc.ActionResult
CreateLoan ( ) : System.Web.Mvc.ActionResult
CreateTransfer ( ) : System.Web.Mvc.ActionResult
DispatchAllocationController ( IDispatchAllocationService dispatchAllocationService, IUserProfileService userProfileService, IOtherDispatchAllocationService otherDispatchAllocationService, IShippingInstructionService shippingInstructionService, IProjectCodeService projectCodeService, ITransporterService transporterService, ICommonService commonService, IAdminUnitService adminUnitService, IFDPService fdpService, IHubService hubService, ICommodityTypeService commodityTypeService ) : System
DispatchAllocationController ( IDispatchAllocationService dispatchAllocationService, IUserProfileService userProfileService, IOtherDispatchAllocationService otherDispatchAllocationService, IShippingInstructionService shippingInstructionService, IProjectCodeService projectCodeService, ITransporterService transporterService, ICommonService commonService, IAdminUnitService adminUnitService, IFDPService fdpService, IHubService hubService, ICommodityTypeService commodityTypeService, IDonorService donorService, IUnitService unitService ) : System
Dispose ( ) : void
Edit ( string id ) : System.Web.Mvc.ActionResult
EditLoan ( string id ) : System.Web.Mvc.ActionResult
EditLoan2 ( string id ) : System.Web.Mvc.ActionResult
EditTransfer ( string id ) : System.Web.Mvc.ActionResult
EditTransfer2 ( string id ) : System.Web.Mvc.ActionResult
GetAllocations ( string RquisitionNo, int CommodityID, bool Uncommited ) : System.Web.Mvc.ActionResult
GetAvailableSINumbers ( int CommodityID ) : System.Web.Mvc.ActionResult
GetBalance ( int siNumber, int commodityId, string siNumberText ) : System.Web.Mvc.ActionResult
GetChildren ( int parentId ) : List
GetCommodities ( string RequisitionNo ) : System.Web.Mvc.ActionResult
GetFdps ( int woredaId ) : List
GetSIBalances ( ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult
IsProjectValid ( string ProjectCode ) : System.Web.Mvc.ActionResult
IsSIValid ( string ShippingInstruction ) : System.Web.Mvc.ActionResult
OtherClose ( string id ) : System.Web.Mvc.ActionResult
SaveFDPAllocationAjax ( DispatchAllocationViewModel allocation ) : System.Web.Mvc.ActionResult
SaveTransferAjax ( OtherDispatchAllocationViewModel model ) : System.Web.Mvc.ActionResult
SelectionHeader ( string requisition ) : System.Web.Mvc.ActionResult
SiBalances ( string requisition ) : System.Web.Mvc.ActionResult
ToHubs ( ) : System.Web.Mvc.ActionResult

Allocate dispatch To hubs of the same owner ( Transfer and Swap)

ToOtherOwners ( ) : System.Web.Mvc.ActionResult

Allocate dispatch To the other owners.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
BindDispatchAllocationViewModelDto ( DispatchAllocation dispatchAllocation ) : DispatchAllocationViewModelDto
CloseConfirmed ( string DispatchAllocationID ) : System.Web.Mvc.ActionResult
CommitAllocation ( string checkedRecords, int SINumber, int ProjectCode, string Sitext, string ProjectCodeText ) : System.Web.Mvc.ActionResult
Create ( DispatchAllocationViewModel allocation ) : System.Web.Mvc.ActionResult
Edit ( DispatchAllocationViewModel allocation ) : System.Web.Mvc.ActionResult
GetAllocationModel ( DispatchAllocationViewModel dispatch ) : DispatchAllocation

Gets the allocation model.

GetAllocationModel ( DispatchAllocation dispatch ) : DispatchAllocationViewModel
GetAllocationModelForClose ( DispatchAllocation dispatch ) : DispatchAllocationViewModel
GetAllocationsGrid ( string RquisitionNo, int CommodityID, bool Uncommited ) : System.Web.Mvc.ActionResult
InitLoan ( OtherDispatchAllocationViewModel otherDispatchAllocationViewModel ) : OtherDispatchAllocationViewModel
InitTransfer ( OtherDispatchAllocationViewModel otherDispatchAllocationViewModel ) : OtherDispatchAllocationViewModel
OtherCloseConfirmed ( string OtherDispatchAllocationID ) : System.Web.Mvc.ActionResult
PrepareCreate ( ) : void
PrepareEdit ( DispatchAllocationViewModel allocation ) : void
PrepareFDPForEdit ( int fdpid ) : void
SaveLoan ( OtherDispatchAllocationViewModel model ) : System.Web.Mvc.ActionResult
SaveTransfer ( OtherDispatchAllocationViewModel model ) : System.Web.Mvc.ActionResult

Method Details

AllocationList() public method

public AllocationList ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

AvailableRequistions() public method

public AvailableRequistions ( bool UnCommited ) : System.Web.Mvc.ActionResult
UnCommited bool
return System.Web.Mvc.ActionResult

Close() public method

public Close ( string id ) : System.Web.Mvc.ActionResult
id string
return System.Web.Mvc.ActionResult

Create() public method

public Create ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

CreateLoan() public method

public CreateLoan ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

CreateTransfer() public method

public CreateTransfer ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

DispatchAllocationController() public method

public DispatchAllocationController ( IDispatchAllocationService dispatchAllocationService, IUserProfileService userProfileService, IOtherDispatchAllocationService otherDispatchAllocationService, IShippingInstructionService shippingInstructionService, IProjectCodeService projectCodeService, ITransporterService transporterService, ICommonService commonService, IAdminUnitService adminUnitService, IFDPService fdpService, IHubService hubService, ICommodityTypeService commodityTypeService ) : System
dispatchAllocationService IDispatchAllocationService
userProfileService IUserProfileService
otherDispatchAllocationService IOtherDispatchAllocationService
shippingInstructionService IShippingInstructionService
projectCodeService IProjectCodeService
transporterService ITransporterService
commonService ICommonService
adminUnitService IAdminUnitService
fdpService IFDPService
hubService IHubService
commodityTypeService ICommodityTypeService
return System

DispatchAllocationController() public method

public DispatchAllocationController ( IDispatchAllocationService dispatchAllocationService, IUserProfileService userProfileService, IOtherDispatchAllocationService otherDispatchAllocationService, IShippingInstructionService shippingInstructionService, IProjectCodeService projectCodeService, ITransporterService transporterService, ICommonService commonService, IAdminUnitService adminUnitService, IFDPService fdpService, IHubService hubService, ICommodityTypeService commodityTypeService, IDonorService donorService, IUnitService unitService ) : System
dispatchAllocationService IDispatchAllocationService
userProfileService IUserProfileService
otherDispatchAllocationService IOtherDispatchAllocationService
shippingInstructionService IShippingInstructionService
projectCodeService IProjectCodeService
transporterService ITransporterService
commonService ICommonService
adminUnitService IAdminUnitService
fdpService IFDPService
hubService IHubService
commodityTypeService ICommodityTypeService
donorService IDonorService
unitService IUnitService
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Edit() public method

public Edit ( string id ) : System.Web.Mvc.ActionResult
id string
return System.Web.Mvc.ActionResult

EditLoan() public method

public EditLoan ( string id ) : System.Web.Mvc.ActionResult
id string
return System.Web.Mvc.ActionResult

EditLoan2() public method

public EditLoan2 ( string id ) : System.Web.Mvc.ActionResult
id string
return System.Web.Mvc.ActionResult

EditTransfer() public method

public EditTransfer ( string id ) : System.Web.Mvc.ActionResult
id string
return System.Web.Mvc.ActionResult

EditTransfer2() public method

public EditTransfer2 ( string id ) : System.Web.Mvc.ActionResult
id string
return System.Web.Mvc.ActionResult

GetAllocations() public method

public GetAllocations ( string RquisitionNo, int CommodityID, bool Uncommited ) : System.Web.Mvc.ActionResult
RquisitionNo string
CommodityID int
Uncommited bool
return System.Web.Mvc.ActionResult

GetAvailableSINumbers() public method

public GetAvailableSINumbers ( int CommodityID ) : System.Web.Mvc.ActionResult
CommodityID int
return System.Web.Mvc.ActionResult

GetBalance() public method

public GetBalance ( int siNumber, int commodityId, string siNumberText ) : System.Web.Mvc.ActionResult
siNumber int
commodityId int
siNumberText string
return System.Web.Mvc.ActionResult

GetChildren() public method

public GetChildren ( int parentId ) : List
parentId int
return List

GetCommodities() public method

public GetCommodities ( string RequisitionNo ) : System.Web.Mvc.ActionResult
RequisitionNo string
return System.Web.Mvc.ActionResult

GetFdps() public method

public GetFdps ( int woredaId ) : List
woredaId int
return List

GetSIBalances() public method

public GetSIBalances ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Index() public method

public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

IsProjectValid() public method

public IsProjectValid ( string ProjectCode ) : System.Web.Mvc.ActionResult
ProjectCode string
return System.Web.Mvc.ActionResult

IsSIValid() public method

public IsSIValid ( string ShippingInstruction ) : System.Web.Mvc.ActionResult
ShippingInstruction string
return System.Web.Mvc.ActionResult

OtherClose() public method

public OtherClose ( string id ) : System.Web.Mvc.ActionResult
id string
return System.Web.Mvc.ActionResult

SaveFDPAllocationAjax() public method

public SaveFDPAllocationAjax ( DispatchAllocationViewModel allocation ) : System.Web.Mvc.ActionResult
allocation Cats.Models.Hubs.ViewModels.DispatchAllocationViewModel
return System.Web.Mvc.ActionResult

SaveTransferAjax() public method

public SaveTransferAjax ( OtherDispatchAllocationViewModel model ) : System.Web.Mvc.ActionResult
model Cats.Models.Hubs.ViewModels.Dispatch.OtherDispatchAllocationViewModel
return System.Web.Mvc.ActionResult

SelectionHeader() public method

public SelectionHeader ( string requisition ) : System.Web.Mvc.ActionResult
requisition string
return System.Web.Mvc.ActionResult

SiBalances() public method

public SiBalances ( string requisition ) : System.Web.Mvc.ActionResult
requisition string
return System.Web.Mvc.ActionResult

ToHubs() public method

Allocate dispatch To hubs of the same owner ( Transfer and Swap)
public ToHubs ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

ToOtherOwners() public method

Allocate dispatch To the other owners.
public ToOtherOwners ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult