public ActionResult Agents()
        {
            ListModuleService module = ListFactoryService.Create(ListMethodType.AGENT);
            AgentDataModel    model  = (module.DoGetList <object>(null, Language.NotSet) as AgentDataModel);

            return(View(model));
        }
        public ActionResult ProductKindList(int?page, string qry, string sort, string status)

        {
            Language language = PublicMethodRepository.CurrentLanguageEnum;
            ProductKindListViewModel model = new ProductKindListViewModel();

            model.Filter.CurrentPage = page ?? 1;
            model.Filter.QueryString = qry ?? string.Empty;
            model.Filter.SortColumn  = sort ?? string.Empty;
            model.Filter.Status      = status ?? string.Empty;
            ListModuleService module = ListFactoryService.Create(Enums.ListMethodType.PRODUCTKIND);

            model.Result = (module.DoGetList(model.Filter, language) as ProductKindListResultModel);
            return(View(model));
        }
        public ActionResult WorksList(int?page, string qry, string sort, string pDate, string fSt, string lang)
        {
            Language           language = PublicMethodRepository.CurrentLanguageEnum;
            WorksListViewModel model    = new WorksListViewModel();

            model.Filter.CurrentPage        = page ?? 1;
            model.Filter.QueryString        = qry ?? string.Empty;
            model.Filter.SortColumn         = sort ?? string.Empty;
            model.Filter.DisplayForFrontEnd = fSt ?? string.Empty;
            model.Filter.PublishDate        = pDate;
            ListModuleService module = ListFactoryService.Create(Enums.ListMethodType.WORKS);

            model.Result = (module.DoGetList(model.Filter, language) as WorksListResultModel);
            return(View(model));
        }
        /// 代理語言產品資料
        public ActionResult ProductList(int?page, string qry, string sort, int?type, string status, string lang)
        {
            Language             language = PublicMethodRepository.CurrentLanguageEnum;
            ProductListViewModel model    = new ProductListViewModel();

            model.Filter.CurrentPage = page ?? 1;
            model.Filter.QueryString = qry ?? string.Empty;
            model.Filter.SortColumn  = sort ?? string.Empty;
            model.Filter.TypeID      = type;
            model.Filter.Status      = status ?? string.Empty;
            ListModuleService module = ListFactoryService.Create(Enums.ListMethodType.PRODUCT);

            model.Result = (module.DoGetList(model.Filter, language) as ProductListResultModel);
            ProductKindModule typeModule = new ProductKindModule();

            //產品分類下拉選單
            ViewBag.TypeList = typeModule.CreateProductKindDropList(model.Filter.TypeID);
            return(View(model));
        }