Exemplo n.º 1
0
        public ActionResult Index(int type = 0)
        {
            var model = new ModelDNMailSSCItem
            {
                Type = type
            };

            switch (type)
            {
            case 1:
                model.ListItem = _dnMailSscapi.CustomerCountInbox(UserItem.ID, type);
                break;

            case 2:
                model.ListItem = _dnMailSscapi.CustomerSentMail(UserItem.ID);
                break;

            case 3:
                model.ListItem = _dnMailSscapi.CustomerCountDrafts(UserItem.ID);
                break;

            case 4:
                model.ListItem = _dnMailSscapi.CustomerCountSpam(UserItem.ID, 4);
                break;

            case 5:
                model.ListItem = _dnMailSscapi.CustomerCountRecycleBin(UserItem.ID);
                break;
            }

            ViewData.Model = model;
            ViewBag.UserId = UserItem.ID;
            ViewBag.Type   = type;
            return(View());
        }
Exemplo n.º 2
0
        public ActionResult AlertEmail()
        {
            var model = new ModelDNMailSSCItem
            {
                TotalMailInbox = _dnMailSscapi.CustomerCountInboxNew(UserItem.ID, 1).Count
            };

            return(View(model));
        }
Exemplo n.º 3
0
        public ActionResult ListItems()
        {
            var model = new ModelDNMailSSCItem
            {
                ListItem = _dnMailSscapi.GetListSimpleByRequest(UserItem.AgencyID, (int)MailSsc.Inbox, UserId),
                //PageHtml = _dnMailSscapi.GridHtmlPage
            };

            ViewData.Model = model;
            return(View());
        }
Exemplo n.º 4
0
        public ActionResult Compose(string userId)
        {
            var model = new ModelDNMailSSCItem
            {
                ListDNUserItem         = _dnUserApi.GetListByAgency(),
                ListDNGroupMailSSCItem = _groupMailSscapi.GetAllByUserId(UserItem.AgencyID, UserId),
                UserReceiveId          = userId
            };

            return(View(model));
        }
Exemplo n.º 5
0
        public ActionResult BoxMail()
        {
            var type  = Convert.ToInt32(Request.QueryString["type"]);
            var model = new ModelDNMailSSCItem
            {
                Type            = type,
                TotalMailInbox  = _dnMailSscapi.CountInboxNew(UserId, type).Count,
                TotalMailDrafts = _dnMailSscapi.CountDrafts(UserId).Count,
                TotalMailSpam   = _dnMailSscapi.CountSpam(UserId, 4).Count,
                TotalNewsSsc    = _newsSscapi.GetAll(UserItem.AgencyID).Count
            };

            return(View(model));
        }
Exemplo n.º 6
0
        public ActionResult Index(int type = 0)
        {
            //SendMailAuto();
            var model = new ModelDNMailSSCItem
            {
                Type = type
            };

            switch (type)
            {
            case 1:
                model.ListItem = _dnMailSscapi.CountInbox(UserId, type);
                break;

            case 2:
                model.ListItem = _dnMailSscapi.SentMail(UserId);
                break;

            case 3:
                model.ListItem = _dnMailSscapi.CountDrafts(UserId);
                break;

            case 4:
                model.ListItem = _dnMailSscapi.CountSpam(UserId, 4);
                break;

            case 5:
                model.ListItem = _dnMailSscapi.CountRecycleBin(UserId);
                break;

            default:
                model.ListItem = _dnMailSscapi.GetListSimpleByRequest(UserItem.AgencyID, type, UserId);
                break;
            }

            ViewData.Model = model;
            ViewBag.UserId = UserId;
            return(View());
        }