public CompanyMSController(CompanyService company_service, IPODetailsService ipo_service, BoardMemberService bm_service, StockPriceService sp_service)
 {
     this.company_service = company_service;
     this.ipo_service     = ipo_service;
     this.bm_service      = bm_service;
     this.sp_service      = sp_service;
 }
Esempio n. 2
0
        protected void Button3_Click(object sender, EventArgs e)
        {
            BoardMemberService bms = new BoardMemberService();
            //string st = STYY.Text + "-" + STMM.Text + "-" + STDD.Text + " 0:00:00";
            //string et = ETYY.Text + "-" + ETMM.Text + "-" + ETDD.Text + " 0:00:00";
            //Response.Write("<script>('"+st+"\t"+et+"')</script>");
            var points = bms.GenPointsByGivenTime(DateTime.Parse(datel.Value), DateTime.Parse(datel2.Value));

            if (points == null)
            {
                Response.Write("<script>('无符合条件查询')</script>");
                return;
            }
            GridView1.DataSource = points;
            GridView1.DataBind();
        }
Esempio n. 3
0
        protected void Button3_Click(object sender, EventArgs e)
        {
            BoardMemberService bms = new BoardMemberService();

            if (bms.CreateSchool(new Models.School()
            {
                Sname = TextBox1.Text, Sloc = TextBox2.Text
            }))
            {
                var entity = new SchoolDal().GetEntities(i => i.Sid > 0);
                entity = entity.OrderBy(l => l.Sid);
                GridView1.DataSource = entity;
                Response.Write("<script>alert('新建学校成功!')</script>");
                GridView1.DataBind();
            }
            else
            {
                Response.Write("<script>alert('新建学校失败!')</script>");
            }
        }