Ejemplo n.º 1
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");
            }

            IList <GreenFactoryClass> GreenFactoryClassList = m_FTISService.GetGreenFactoryClassList(conditions);

            context.Controller.ViewData["GreenFactoryClassList"] = GreenFactoryClassList;
        }
Ejemplo n.º 2
0
        private IEnumerable <GreenFactoryClass> GetGridData()
        {
            IList <GreenFactoryClass> datasource = m_FTISService.GetGreenFactoryClassList(m_Conditions);

            return(datasource);
        }