C# Class Cats.Web.Hub.Controllers.AdminUnitController

Inheritance: BaseController
ファイルを表示 Open project: edgecomputing/cats Class Usage Examples

Public Methods

Method Description
AdminUnitController ( IAdminUnitService adminUnitService, IUserProfileService userProfileService, IDispatchAllocationService dispatchAllocationService ) : System
CreateWoreda ( int zoneId ) : System.Web.Mvc.ActionResult
Delete ( int id ) : System.Web.Mvc.ActionResult
Edit ( int id ) : System.Web.Mvc.ActionResult
GetChildren ( int unitId ) : System.Web.Mvc.ActionResult
GetChildrenReport ( int unitId ) : System.Web.Mvc.ActionResult
GetRegions ( ) : System.Web.Mvc.ActionResult
GetTreeElts ( TreeViewItem node, bool closedToo ) : System.Web.Mvc.ActionResult
GetWoredas ( int selectedZoneId ) : System.Web.Mvc.ActionResult
GetWoredasReport ( int zoneId ) : System.Web.Mvc.ActionResult
GetZones ( int selectedRegionId ) : System.Web.Mvc.ActionResult
GetZonesReport ( int areaId ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
AdminUnits ( int id ) : System.Web.Mvc.ActionResult
CountAllocationsUnder ( int adminUnitId ) : int
Create ( AdminUnitModel unit ) : System.Web.Mvc.ActionResult
Create ( int typeid ) : System.Web.Mvc.ActionResult
CreateRegion ( ) : System.Web.Mvc.ActionResult
CreateZone ( int regionId ) : System.Web.Mvc.ActionResult
Delete ( int id, AdminUnit unit ) : System.Web.Mvc.ActionResult
Edit ( int id, AdminUnit unit ) : System.Web.Mvc.ActionResult
GetAdminUnitsByParent ( int parentId ) : System.Web.Mvc.ActionResult
GetWoredasByParent ( int regionId, int zoneId ) : System.Web.Mvc.ActionResult
GetZonesByParent ( int regionId ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult

Method Details

AdminUnitController() public method

public AdminUnitController ( IAdminUnitService adminUnitService, IUserProfileService userProfileService, IDispatchAllocationService dispatchAllocationService ) : System
adminUnitService IAdminUnitService
userProfileService IUserProfileService
dispatchAllocationService IDispatchAllocationService
return System

CreateWoreda() public method

public CreateWoreda ( int zoneId ) : System.Web.Mvc.ActionResult
zoneId int
return System.Web.Mvc.ActionResult

Delete() public method

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

Edit() public method

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

GetChildren() public method

public GetChildren ( int unitId ) : System.Web.Mvc.ActionResult
unitId int
return System.Web.Mvc.ActionResult

GetChildrenReport() public method

public GetChildrenReport ( int unitId ) : System.Web.Mvc.ActionResult
unitId int
return System.Web.Mvc.ActionResult

GetRegions() public method

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

GetTreeElts() public method

public GetTreeElts ( TreeViewItem node, bool closedToo ) : System.Web.Mvc.ActionResult
node TreeViewItem
closedToo bool
return System.Web.Mvc.ActionResult

GetWoredas() public method

public GetWoredas ( int selectedZoneId ) : System.Web.Mvc.ActionResult
selectedZoneId int
return System.Web.Mvc.ActionResult

GetWoredasReport() public method

public GetWoredasReport ( int zoneId ) : System.Web.Mvc.ActionResult
zoneId int
return System.Web.Mvc.ActionResult

GetZones() public method

public GetZones ( int selectedRegionId ) : System.Web.Mvc.ActionResult
selectedRegionId int
return System.Web.Mvc.ActionResult

GetZonesReport() public method

public GetZonesReport ( int areaId ) : System.Web.Mvc.ActionResult
areaId int
return System.Web.Mvc.ActionResult