C# Класс Cats.Areas.Logistics.Controllers.DonationController

Наследование: Controller
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddNewDonation() публичный Метод

public AddNewDonation ( ) : System.Web.Mvc.ActionResult
Результат System.Web.Mvc.ActionResult

AddNewDonationPlan() публичный Метод

public AddNewDonationPlan ( string siNumber = null, int typeOfLoad = 1 ) : System.Web.Mvc.ActionResult
siNumber string
typeOfLoad int
Результат System.Web.Mvc.ActionResult

CloseLocalPlan() публичный Метод

public CloseLocalPlan ( int donationPlanHeaderId ) : System.Web.Mvc.ActionResult
donationPlanHeaderId int
Результат System.Web.Mvc.ActionResult

DonationController() публичный Метод

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
Результат System

GetGiftCertificates() публичный Метод

public GetGiftCertificates ( ) : System.Web.Mvc.JsonResult
Результат System.Web.Mvc.JsonResult

Index() публичный Метод

public Index ( ) : System.Web.Mvc.ActionResult
Результат System.Web.Mvc.ActionResult

Load() публичный Метод

public Load ( string id ) : JsonResult
id string
Результат JsonResult

LoadBySi() публичный Метод

public LoadBySi ( string id ) : ActionResult
id string
Результат ActionResult

LoadFromGiftCertificiate() публичный Метод

public LoadFromGiftCertificiate ( string siNumber ) : DonationViewModel
siNumber string
Результат DonationViewModel

ReadDonationPlan() публичный Метод

public ReadDonationPlan ( [ request ) : ActionResult
request [
Результат ActionResult

Remove() публичный Метод

public Remove ( int id ) : ActionResult
id int
Результат ActionResult

Revert() публичный Метод

public Revert ( int id ) : ActionResult
id int
Результат ActionResult

Save() публичный Метод

public Save ( DonationViewModel donationViewModel ) : ActionResult
donationViewModel DonationViewModel
Результат ActionResult

SaveHeader() публичный Метод

public SaveHeader ( string id ) : ActionResult
id string
Результат ActionResult

TriggerReceive() публичный Метод

public TriggerReceive ( int donationPlanId ) : bool
donationPlanId int
Результат bool