public override void OnActionExecuting(ActionExecutingContext context)
        {
            FTISFactory m_FTISFactory = new FTISFactory();
            IFTISService m_FTISService = m_FTISFactory.GetFTISService();
            IDictionary<string, string> conditions = new Dictionary<string, string>();
            if (OnlyOpen)
            {
                conditions.Add("Status", "1");
            }
            if ((int)ParentNodeId > 0)
            {
                conditions.Add("ParentNodeId", ((int)ParentNodeId).ToString());

                Node parentNode = m_FTISService.GetNodeById((int)ParentNodeId);
                context.Controller.ViewData["FuncName"] = parentNode.Name + "管理";
                IList<Node> nodeList = m_FTISService.GetNodeList(conditions);
                context.Controller.ViewData["NodeList"] = nodeList;
            }
            else if ((int)NodeId > 0)
            {
                Node node = m_FTISService.GetNodeById((int)NodeId);
                context.Controller.ViewData["FuncName"] = node.Name + "管理";
                context.Controller.ViewData["Node"] = node;
            }
        
        }
        public override void OnActionExecuting(ActionExecutingContext context)
        {
            FTISFactory m_FTISFactory = new FTISFactory();
            IFTISService m_FTISService = m_FTISFactory.GetFTISService();
            IDictionary<string, string> conditions = new Dictionary<string, string>();
            if (OnlyOpen)
            {
                conditions.Add("Status", "1");
            }

            IList<PublicationClass> publicationClassList = m_FTISService.GetPublicationClassList(conditions);
            context.Controller.ViewData["PublicationClassList"] = publicationClassList;
        }
Beispiel #3
0
 public override void OnActionExecuting(ActionExecutingContext context)
 {
     FTISFactory m_FTISFactory = new FTISFactory();
     IFTISService m_FTISService = m_FTISFactory.GetFTISService();
     IDictionary<string, string> conditions = new Dictionary<string, string>();
     if (OnlyOpen)
     {
         conditions.Add("Status", "1");
     }
     if ((int)NodeId > 0)
     {
         conditions.Add("NodeId", ((int)NodeId).ToString());
         IList<Post> postList = m_FTISService.GetPostList(conditions);
         context.Controller.ViewData["PostList"] = postList;
     }
 
 }
        public WebMailService()
        {
            m_FTISFactory = new FTISFactory();
            m_MailVO = m_FTISFactory.GetSystemParam();

            bool enableSSL = m_MailVO.EnableSSL;
            int port = 25;

            if (m_MailVO.MailSmtp.IndexOf("gmail") != -1)
            {
                enableSSL = true;
                port = 587;
            }
            else if (!string.IsNullOrEmpty(m_MailVO.MailPort))
            {
                port = int.Parse(m_MailVO.MailPort);
            }

            m_MailService = new MailService(m_MailVO.MailSmtp, port, enableSSL, m_MailVO.Account, m_MailVO.Password);
        }
        public override void OnActionExecuting(ActionExecutingContext context)
        {
            FTISFactory m_FTISFactory = new FTISFactory();
            IFTISService m_FTISService = m_FTISFactory.GetFTISService();
            IDictionary<string, string> conditions = new Dictionary<string, string>();
            if (OnlyOpen)
            {
                conditions.Add("Status", "1");
            }

            IList<SelectListItem> industryList = new List<SelectListItem>();
            IList<Industry> list = m_FTISService.GetIndustryList(conditions);
            if (list != null && list.Count > 0)
            {
                foreach (Industry entity in list)
                {
                    industryList.Add(new SelectListItem() { Text = entity.Name, Value = entity.IndustryId.ToString() });
                }
            }

            context.Controller.ViewData["IndustrySelectList"] = industryList;
        }
        public override void OnActionExecuting(ActionExecutingContext context)
        {
            FTISFactory m_FTISFactory = new FTISFactory();
            IFTISService m_FTISService = m_FTISFactory.GetFTISService();
            IDictionary<string, string> conditions = new Dictionary<string, string>();
            if (OnlyOpen)
            {
                conditions.Add("Status", "1");
            }
            if (ParentId > 0)
            {
                conditions.Add("ParentNormClassId", ParentId.ToString());

                IList<NormClass> subNormClassList = m_FTISService.GetNormClassList(conditions);
                context.Controller.ViewData["SubNormClassList"] = subNormClassList;
            }
            else 
            {
                IList<NormClass> parentNormClassList = m_FTISService.GetNormClassList(conditions);
                context.Controller.ViewData["ParentNormClassList"] = parentNormClassList;
            }
        
        }
 public void TestCaseInit()
 {
     m_FTISFactory = new FTISFactory();
     m_TemplateService = m_FTISFactory.GetTemplateService();
 }
Beispiel #8
0
 public void TestCaseInit()
 {
     m_FTISFactory = new FTISFactory();
     m_FTISService = m_FTISFactory.GetFTISService();
 }