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

Inheritance: Controller
Afficher le fichier Open project: edgecomputing/cats

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddNewDonation ( ) : System.Web.Mvc.ActionResult
Résultat System.Web.Mvc.ActionResult

AddNewDonationPlan() public méthode

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

CloseLocalPlan() public méthode

public CloseLocalPlan ( int donationPlanHeaderId ) : System.Web.Mvc.ActionResult
donationPlanHeaderId int
Résultat System.Web.Mvc.ActionResult

DonationController() public méthode

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
Résultat System

GetGiftCertificates() public méthode

public GetGiftCertificates ( ) : System.Web.Mvc.JsonResult
Résultat System.Web.Mvc.JsonResult

Index() public méthode

public Index ( ) : System.Web.Mvc.ActionResult
Résultat System.Web.Mvc.ActionResult

Load() public méthode

public Load ( string id ) : JsonResult
id string
Résultat JsonResult

LoadBySi() public méthode

public LoadBySi ( string id ) : ActionResult
id string
Résultat ActionResult

LoadFromGiftCertificiate() public méthode

public LoadFromGiftCertificiate ( string siNumber ) : DonationViewModel
siNumber string
Résultat DonationViewModel

ReadDonationPlan() public méthode

public ReadDonationPlan ( [ request ) : ActionResult
request [
Résultat ActionResult

Remove() public méthode

public Remove ( int id ) : ActionResult
id int
Résultat ActionResult

Revert() public méthode

public Revert ( int id ) : ActionResult
id int
Résultat ActionResult

Save() public méthode

public Save ( DonationViewModel donationViewModel ) : ActionResult
donationViewModel DonationViewModel
Résultat ActionResult

SaveHeader() public méthode

public SaveHeader ( string id ) : ActionResult
id string
Résultat ActionResult

TriggerReceive() public méthode

public TriggerReceive ( int donationPlanId ) : bool
donationPlanId int
Résultat bool