コード例 #1
0
        /// <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;
            }
        }
コード例 #2
0
 /*
  * 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;
 }
コード例 #3
0
        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);
                }
            }
        }
コード例 #4
0
ファイル: MesController.cs プロジェクト: EloiJunior/Mesa04
 public MesController(MeService meService)
 {
     _meService = meService;
 }