Exemple #1
0
 //初始化
 public void Init()
 {
     list.Add(new CodeJob("实现购物车模块", "编码", "编码"));
     list.Add(new CodeJob("完成项目基类编码", "编码", "编码"));
     list.Add(new TestJob("测试", "测试项目以实现模块", "测试"));
     se = new SE("王小毛", "s101", 20, list);
     this.dgvDoWork.DataSource = se.list;
     this.grbDoWork.Text       = se.Name;
 }
Exemple #2
0
        public void Insert()
        {
            //存储工作
            List <Job> job  = new List <Job>();
            Job        job2 = new Job("编码", "购物车模块");

            job.Add(job2);
            //员工
            SE item = new SE("呵呵", "女", 22, job, 50, "S101");

            em.Add(item);

            //经理
            List <Job> Pejob  = new List <Job>();
            Job        Pejob2 = new Job("监督项目", "购物车模块");

            Pejob.Add(Pejob2);
            PE pe = new PE("Y101", "哈哈", 30, "男", Pejob, 10);

            em.Add(pe);
        }