C# Class Cats.Areas.Logistics.Controllers.DonationController

Inheritance: Controller
Mostrar archivo Open project: edgecomputing/cats

Public Methods

Method Description
AddNewDonation ( ) : System.Web.Mvc.ActionResult
AddNewDonationPlan ( string siNumber = null, int typeOfLoad = 1 ) : System.Web.Mvc.ActionResult
CloseLocalPlan ( int donationPlanHeaderId ) : System.Web.Mvc.ActionResult
DonationController ( IReceiptAllocationService receiptAllocationService, Cats.Services.EarlyWarning.ICommodityService commodityService, Cats.Services.Common.ICommonService commonService, Cats.Services.EarlyWarning.IShippingInstructionService shippingInstructionService, Cats.Services.EarlyWarning.GiftCertificateService giftCertificateService, Cats.Services.EarlyWarning.ICommodityTypeService commodityTypeService, Cats.Services.EarlyWarning.IHubService hubService, IDonationPlanDetailService donationPlanDetailService, IDonationPlanHeaderService donationPlanHeaderService, Cats.Services.Transaction.ITransactionService transactionService, log4net.ILog log ) : System
GetGiftCertificates ( ) : System.Web.Mvc.JsonResult
Index ( ) : System.Web.Mvc.ActionResult
Load ( string id ) : JsonResult
LoadBySi ( string id ) : ActionResult
LoadFromGiftCertificiate ( string siNumber ) : DonationViewModel
ReadDonationPlan ( [ request ) : ActionResult
Remove ( int id ) : ActionResult
Revert ( int id ) : ActionResult
Save ( DonationViewModel donationViewModel ) : ActionResult
SaveHeader ( string id ) : ActionResult
TriggerReceive ( int donationPlanId ) : bool

Private Methods

Method Description
AddNewDonationPlan ( Cats receiptAllocationViewModel ) : System.Web.Mvc.ActionResult
DoesSIExistInDonationHeader ( string siNumber ) : System.Boolean
DoesSIExistInShippingInstruction ( string siNumber ) : int
GetNewDonationDetail ( ) : IEnumerable
InitDonationViewModel ( ) : DonationViewModel
InsertInToShippingInstructionTable ( string siNumber ) : int
LoadFromDonation ( int shippinInstructionId ) : DonationViewModel
SaveNewDonationPlan ( DonationViewModel donationViewModel, int siId ) : bool
UpdateDonationPlan ( DonationViewModel donationViewModel, int shippinInstructionId ) : bool

Method Details

AddNewDonation() public method

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

AddNewDonationPlan() public method

public AddNewDonationPlan ( string siNumber = null, int typeOfLoad = 1 ) : System.Web.Mvc.ActionResult
siNumber string
typeOfLoad int
return System.Web.Mvc.ActionResult

CloseLocalPlan() public method

public CloseLocalPlan ( int donationPlanHeaderId ) : System.Web.Mvc.ActionResult
donationPlanHeaderId int
return System.Web.Mvc.ActionResult

DonationController() public method

public DonationController ( IReceiptAllocationService receiptAllocationService, Cats.Services.EarlyWarning.ICommodityService commodityService, Cats.Services.Common.ICommonService commonService, Cats.Services.EarlyWarning.IShippingInstructionService shippingInstructionService, Cats.Services.EarlyWarning.GiftCertificateService giftCertificateService, Cats.Services.EarlyWarning.ICommodityTypeService commodityTypeService, Cats.Services.EarlyWarning.IHubService hubService, IDonationPlanDetailService donationPlanDetailService, IDonationPlanHeaderService donationPlanHeaderService, Cats.Services.Transaction.ITransactionService transactionService, log4net.ILog log ) : System
receiptAllocationService IReceiptAllocationService
commodityService Cats.Services.EarlyWarning.ICommodityService
commonService Cats.Services.Common.ICommonService
shippingInstructionService Cats.Services.EarlyWarning.IShippingInstructionService
giftCertificateService Cats.Services.EarlyWarning.GiftCertificateService
commodityTypeService Cats.Services.EarlyWarning.ICommodityTypeService
hubService Cats.Services.EarlyWarning.IHubService
donationPlanDetailService IDonationPlanDetailService
donationPlanHeaderService IDonationPlanHeaderService
transactionService Cats.Services.Transaction.ITransactionService
log log4net.ILog
return System

GetGiftCertificates() public method

public GetGiftCertificates ( ) : System.Web.Mvc.JsonResult
return System.Web.Mvc.JsonResult

Index() public method

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

Load() public method

public Load ( string id ) : JsonResult
id string
return JsonResult

LoadBySi() public method

public LoadBySi ( string id ) : ActionResult
id string
return ActionResult

LoadFromGiftCertificiate() public method

public LoadFromGiftCertificiate ( string siNumber ) : DonationViewModel
siNumber string
return DonationViewModel

ReadDonationPlan() public method

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

Remove() public method

public Remove ( int id ) : ActionResult
id int
return ActionResult

Revert() public method

public Revert ( int id ) : ActionResult
id int
return ActionResult

Save() public method

public Save ( DonationViewModel donationViewModel ) : ActionResult
donationViewModel DonationViewModel
return ActionResult

SaveHeader() public method

public SaveHeader ( string id ) : ActionResult
id string
return ActionResult

TriggerReceive() public method

public TriggerReceive ( int donationPlanId ) : bool
donationPlanId int
return bool