C# Class Cats.Areas.Procurement.Controllers.PriceQuotationController

Inheritance: Controller
Show file Open project: edgecomputing/cats

Public Methods

Method Description
ApproveProposal ( int id ) : System.Web.Mvc.ActionResult
BidProposalHeader ( ) : System.Web.Mvc.ActionResult
BidProposalHeader_delete ( int id ) : System.Web.Mvc.ActionResult
CanApprove ( Bid bid ) : bool
ClearBidWinners ( ) : void
Create ( ) : System.Web.Mvc.ActionResult
DeleteAjax ( int TransportBidQuotationID ) : System.Web.Mvc.ActionResult
Details ( int id ) : System.Web.Mvc.ActionResult
EditAjax ( [ request, PriceQuotationDetailViewModel item ) : System.Web.Mvc.ActionResult
Edit_proposal ( int id ) : System.Web.Mvc.ActionResult
GetPlannedDistribution ( int BidPlanID, int RegionID ) : List
GetPriceQuotation ( List movement, int TransporterID, int BidID ) : List
IdentifyWinners ( int bidNumber, int regionID ) : System.Web.Mvc.ActionResult
LoadLookups ( ) : void
LoadPLookups ( ) : void
PriceQuotationController ( ITransportBidPlanService transportBidPlanServiceParam, IAdminUnitService adminUnitServiceParam, IProgramService programServiceParam, ITransportBidPlanDetailService transportBidPlanDetailServiceParam, IHubService hubServiceParam, ITransportBidQuotationService bidQuotationServiceParam, ITransporterService transporterServiceParam, IBidService bidServiceParam, ITransportBidQuotationService transportBidQuotationService, IBidWinnerService bidWinnerService, IBusinessProcessService businessProcessService, IApplicationSettingService applicationSettingService, ITransportBidQuotationHeaderService transportBidQuotationHeaderService, ITransportOrderService transportOrderService ) : System
ReadAjax ( [ request ) : ActionResult
ReadApprovedProposals ( [ request, int bidID, int regionID ) : ActionResult
ReadBidProposals ( [ request, int bidID, int regionID, int transporterID ) : ActionResult
ReadBidWinners ( [ request, int bidNumber, int regionID ) : ActionResult
ReadGeneratedProposals ( [ request ) : ActionResult
Read_BidProposals ( [ request ) : ActionResult
Read_Proposals ( [ request, int bidProposalId ) : ActionResult
ReturnRegionId ( int id ) : JsonResult
RevertWinner ( int bidNumber, int regionID ) : ActionResult
RevertWinners ( ) : ActionResult
TransformBidQuotationToBidWinner ( List proposals, int rank ) : List
Winners ( int BidID, int RegionID ) : ActionResult
bidProposals ( ) : ActionResult
organizeList ( List quoteList ) : PriceQuotationDetailViewModel>.Dictionary
populateForm ( PriceQuotationFilterViewModel model ) : List

Private Methods

Method Description
BidProposal ( ) : System.Web.Mvc.ActionResult
BidProposal ( PriceQuotationFilterViewModel filter ) : System.Web.Mvc.ActionResult
Create ( TransportBidQuotationHeader bidProposal ) : System.Web.Mvc.ActionResult
Edit ( TransportBidQuotation transportQuote ) : System.Web.Mvc.ActionResult
EditStart ( PriceQuotationFilterViewModel model ) : System.Web.Mvc.ActionResult
Edit_proposal ( TransportBidQuotationHeader proposal ) : System.Web.Mvc.ActionResult
GenerateWinners ( ) : System.Web.Mvc.ActionResult
GenerateWinners ( WinnersGeneratorParameters filter ) : System.Web.Mvc.ActionResult
Index ( ) : ActionResult
SaveBidProposals ( [ request, List models ) : ActionResult

Method Details

ApproveProposal() public method

public ApproveProposal ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

BidProposalHeader() public method

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

BidProposalHeader_delete() public method

public BidProposalHeader_delete ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

CanApprove() public method

public CanApprove ( Bid bid ) : bool
bid Cats.Models.Bid
return bool

ClearBidWinners() public method

public ClearBidWinners ( ) : void
return void

Create() public method

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

DeleteAjax() public method

public DeleteAjax ( int TransportBidQuotationID ) : System.Web.Mvc.ActionResult
TransportBidQuotationID int
return System.Web.Mvc.ActionResult

Details() public method

public Details ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

EditAjax() public method

public EditAjax ( [ request, PriceQuotationDetailViewModel item ) : System.Web.Mvc.ActionResult
request [
item Cats.Areas.Procurement.Models.PriceQuotationDetailViewModel
return System.Web.Mvc.ActionResult

Edit_proposal() public method

public Edit_proposal ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

GetPlannedDistribution() public method

public GetPlannedDistribution ( int BidPlanID, int RegionID ) : List
BidPlanID int
RegionID int
return List

GetPriceQuotation() public method

public GetPriceQuotation ( List movement, int TransporterID, int BidID ) : List
movement List
TransporterID int
BidID int
return List

IdentifyWinners() public method

public IdentifyWinners ( int bidNumber, int regionID ) : System.Web.Mvc.ActionResult
bidNumber int
regionID int
return System.Web.Mvc.ActionResult

LoadLookups() public method

public LoadLookups ( ) : void
return void

LoadPLookups() public method

public LoadPLookups ( ) : void
return void

PriceQuotationController() public method

public PriceQuotationController ( ITransportBidPlanService transportBidPlanServiceParam, IAdminUnitService adminUnitServiceParam, IProgramService programServiceParam, ITransportBidPlanDetailService transportBidPlanDetailServiceParam, IHubService hubServiceParam, ITransportBidQuotationService bidQuotationServiceParam, ITransporterService transporterServiceParam, IBidService bidServiceParam, ITransportBidQuotationService transportBidQuotationService, IBidWinnerService bidWinnerService, IBusinessProcessService businessProcessService, IApplicationSettingService applicationSettingService, ITransportBidQuotationHeaderService transportBidQuotationHeaderService, ITransportOrderService transportOrderService ) : System
transportBidPlanServiceParam ITransportBidPlanService
adminUnitServiceParam IAdminUnitService
programServiceParam IProgramService
transportBidPlanDetailServiceParam ITransportBidPlanDetailService
hubServiceParam IHubService
bidQuotationServiceParam ITransportBidQuotationService
transporterServiceParam ITransporterService
bidServiceParam IBidService
transportBidQuotationService ITransportBidQuotationService
bidWinnerService IBidWinnerService
businessProcessService IBusinessProcessService
applicationSettingService IApplicationSettingService
transportBidQuotationHeaderService ITransportBidQuotationHeaderService
transportOrderService ITransportOrderService
return System

ReadAjax() public method

public ReadAjax ( [ request ) : ActionResult
request [
return ActionResult

ReadApprovedProposals() public method

public ReadApprovedProposals ( [ request, int bidID, int regionID ) : ActionResult
request [
bidID int
regionID int
return ActionResult

ReadBidProposals() public method

public ReadBidProposals ( [ request, int bidID, int regionID, int transporterID ) : ActionResult
request [
bidID int
regionID int
transporterID int
return ActionResult

ReadBidWinners() public method

public ReadBidWinners ( [ request, int bidNumber, int regionID ) : ActionResult
request [
bidNumber int
regionID int
return ActionResult

ReadGeneratedProposals() public method

public ReadGeneratedProposals ( [ request ) : ActionResult
request [
return ActionResult

Read_BidProposals() public method

public Read_BidProposals ( [ request ) : ActionResult
request [
return ActionResult

Read_Proposals() public method

public Read_Proposals ( [ request, int bidProposalId ) : ActionResult
request [
bidProposalId int
return ActionResult

ReturnRegionId() public method

public ReturnRegionId ( int id ) : JsonResult
id int
return JsonResult

RevertWinner() public method

public RevertWinner ( int bidNumber, int regionID ) : ActionResult
bidNumber int
regionID int
return ActionResult

RevertWinners() public method

public RevertWinners ( ) : ActionResult
return ActionResult

TransformBidQuotationToBidWinner() public method

public TransformBidQuotationToBidWinner ( List proposals, int rank ) : List
proposals List
rank int
return List

Winners() public method

public Winners ( int BidID, int RegionID ) : ActionResult
BidID int
RegionID int
return ActionResult

bidProposals() public method

public bidProposals ( ) : ActionResult
return ActionResult

organizeList() public method

public organizeList ( List quoteList ) : PriceQuotationDetailViewModel>.Dictionary
quoteList List
return PriceQuotationDetailViewModel>.Dictionary

populateForm() public method

public populateForm ( PriceQuotationFilterViewModel model ) : List
model PriceQuotationFilterViewModel
return List