示例#1
0
        public JsonResult GetUser(int index)
        {
            object items;

            switch (index)
            {
            case (int)Actor.UserAssistant:
                items = _userAssistantService.GetAll();
                return(Json(items));

            case (int)Actor.UserExpert:
                items = _userExpertService.GetAll();
                return(Json(items));

            case (int)Actor.UserOperator:
                items = _userOperatorService.GetAll();
                return(Json(items));

            case (int)Actor.UserTechnician:
                items = _userTechnicianService.GetAll();
                return(Json(items));
            }


            return(Json(null));
        }
示例#2
0
        public IActionResult Add()
        {
            ViewBag.AirConditionerModelList = new SelectList(_airConditionerModelService.GetAll(), "Id", "Name");
            ViewBag.EngineVolumeList        = new SelectList(_engineVolumeService.GetAll(), "Id", "Name");
            ViewBag.UserExpertList          = new SelectList(_userExpertService.GetAll(), "Id", "Name");
            ViewBag.UserOperatorList        = new SelectList(_userOperatorService.GetAll(), "Id", "Name");
            ViewBag.UserTechnicianList      = new SelectList(_userTechnicianService.GetAll(), "Id", "Name");
            ViewBag.UserAssistantList       = new SelectList(_userAssistantService.GetAll(), "Id", "Name");
            ViewBag.CustomerList            = _customerService.GetAll();

            ViewBag.PieceList = _pieceService.GetAll();



            return(View());
        }
示例#3
0
        public IActionResult Index()
        {
            var list = _userAssistantService.GetAll();

            return(View(list));
        }