public Control view()
        {
            Control v = new StockIndexView();

            v.DataContext = this;
            return(v);
        }
Esempio n. 2
0
        // GET: stockIndex
        public ActionResult Index()
        {
            //預設查詢條件
            FormSearch form = new FormSearch();

            form.type             = "上";
            form.options.sortBy   = new string[] { "id" };
            form.options.sortDesc = new bool[] { false };

            StockIndexView StockIndexView = new StockIndexView();

            StockIndexView.data = ReportModel.ReadStockIndex(form);
            return(View(StockIndexView));
        }
 public  Control view()
 {
     Control v = new StockIndexView();
     v.DataContext = this;
     return v;
 }