Пример #1
0
 public CustomersController(ICustomerService service, IRequestDocReader docReader, ICRUDService crudservice) : base(crudservice)
 {
     _service            = service;
     _docReader          = docReader;
     Searchfields        = new[] { new CrudSearchFieldType("Name", CrudSearchFieldType.Method.Contains) };
     Searchchildincludes = new[] { "CustomerSource", "CustomerStatus", "CustomerPhones" };
     Getbyincludes       = new[] { "CustomerSource", "CustomerStatus", "CustomerPhones", "CustomerAddresses", "CustomerAddresses.Address", "Notes", "Contacts" };
     Orderby             = "Name";
 }
Пример #2
0
 public LocationServicesController(ILocationService service, IRequestDocReader docReader, ICRUDService crudservice) : base(crudservice)
 {
     _service            = service;
     _crudService        = crudservice;
     _docReader          = docReader;
     Searchfields        = new[] { new CrudSearchFieldType("Id", CrudSearchFieldType.Method.Contains) };
     Searchchildincludes = new[] { "CustomerLocation", "Good", "Contract" };;
     Getbyincludes       = new[] { "CustomerLocation", "Good", "Contract", "Good.UnitType" };
     Orderby             = "Id";
 }
 public CustomersLocationsController(ICustomerLocationService service, IRequestDocReader docReader, ICRUDService crudService) : base(crudService)
 {
     _service            = service;
     _crudService        = crudService;
     _docReader          = docReader;
     Searchfields        = new[] { new CrudSearchFieldType("Name", CrudSearchFieldType.Method.Contains) };
     Searchchildincludes = new[] { "Customer", "ServiceArea", "Address" };
     Getbyincludes       = new[] { "Customer", "ServiceArea", "Address" };
     Orderby             = "Name";
 }
Пример #4
0
 public GoodsController(IGoodService service, IRequestDocReader docReader, ICRUDService crudservice) : base(crudservice)
 {
     _service            = service;
     _crudService        = crudservice;
     _docReader          = docReader;
     Searchfields        = new[] { new CrudSearchFieldType("Name", CrudSearchFieldType.Method.Contains) };
     Searchchildincludes = new[] { "ServiceDivision", "ServiceType", "UnitType" };
     Getbyincludes       = new[] { "ServiceDivision", "ServiceType", "UnitType" };
     Orderby             = "Name";
 }
Пример #5
0
 public ContractsController(IContractService service, IRequestDocReader docReader, ICRUDService crudservice) : base(crudservice)
 {
     _service            = service;
     _crudService        = crudservice;
     _docReader          = docReader;
     Searchfields        = new[] { new CrudSearchFieldType("Number", CrudSearchFieldType.Method.Contains) };
     Searchchildincludes = new[] { "Customer", "ContractStatus", "ServiceDivision", "User" };
     Getbyincludes       = new[] { "Customer", "ContractStatus", "ServiceDivision", "ServiceAreas", "User" };
     Orderby             = "Number";
 }
Пример #6
0
 public UsersController(IUserService userService, IRequestDocReader docReader, ICRUDService crudservice)
     : base(crudservice)
 {
     _userService = userService;
     _docReader   = docReader;
     Searchfields = new[] { new CrudSearchFieldType("FirstName", CrudSearchFieldType.Method.Contains),
                            new CrudSearchFieldType("LastName", CrudSearchFieldType.Method.Contains),
                            new CrudSearchFieldType("Email", CrudSearchFieldType.Method.Contains) };
     Searchchildincludes = new[] { "Address" };
     Getbyincludes       = new[] { "UserPhones", "Address", "Image", "AuthUser" };
     Orderby             = "LastName";
 }
Пример #7
0
 public AuthUsersController(IAuthService authService, IRoleManager roleManager, IRequestDocReader docReader, IUserService userService) : base(authService, roleManager)
 {
     _userService = userService;
     _docReader   = docReader;
 }