/// <summary> /// 获取助教组长列表 /// </summary> private void GetTeacherListByScope() { try { var schoolId = CurrUserInfo.SchoolId; var districtCode = CurrUserInfo.DistrictCode; new Thread(new ThreadStart(() => { assistantList = MeService.GetAssistantLeaderList(schoolId, districtCode); RunOnUiThread(() => { LoadingDialogUtil.DismissLoadingDialog(); mSwipeRefreshLayout.Refreshing = false; tvTeacherCount.Text = string.Format("助教组长({0}人)", assistantList.Count); mAdapter.SetData(assistantList); mAdapter.NotifyDataSetChanged(); }); })).Start(); } catch (Exception ex) { var msg = ex.Message.ToString(); LoadingDialogUtil.DismissLoadingDialog(); mSwipeRefreshLayout.Refreshing = false; } }
/* * public OperacaosController(Mesa04Context context) * { * _context = context; * } */ public OperacaosController(OperacaoService operacaoService, TipoOperacaoService tipoOperacaoService, OperadorService operadorService, ClienteService clienteService, BancoMeService bancoMeService, OperacaoStatusService operacaoStatusService, MeService meService) { _operacaoService = operacaoService; _tipoOperacaoService = tipoOperacaoService; _operadorService = operadorService; _clienteService = clienteService; _bancoMeService = bancoMeService; _operacaoStatusService = operacaoStatusService; _meService = meService; }
public async Task Executar() { //limpando as tabelas _context.Users.Clear(); _context.PlannerChecklistsItems.Clear(); _context.PlannerTasks.Clear(); _context.PlannerBuckets.Clear(); _context.PlannerPlans.Clear(); _context.Groups.Clear(); _context.SaveChanges(); //Recuperar os grupos do usuario var meService = new MeService(); var meusGrupos = await meService.RecuperarMeusGrupos(); if (meusGrupos.Count > 0) { foreach (var o in meusGrupos) { var grupo = (Group)o; await TratarGrupo(grupo); } } }
public MesController(MeService meService) { _meService = meService; }