public void Office() { se[0] = new SE(); se[0].ID = 101; se[0].Name = "王小毛"; se[0].Scorce = 0; se[0].Evaluation = "未评价"; se[1] = new SE(); se[1].ID = 102; se[1].Name = "周新宇"; se[1].Scorce = 0; se[1].Evaluation = "未评价"; se[2] = new SE(); se[2].ID = 103; se[2].Name = "张烨"; se[2].Evaluation = "未评价"; se[2].Scorce = 0; }
public void inti() { a[0] = new SE(); a[0].number = "111"; a[0].Name = "王一名"; a[0].Age = "13"; a[0].ping = "未评价"; a[0].fen = "0"; a[1] = new SE(); a[1].number = "112"; a[1].Name = "王二名"; a[1].Age = "20"; a[1].ping = "未评价"; a[1].fen = "0"; a[2] = new SE(); a[2].number = "113"; a[2].Name = "王三名"; a[2].Age = "7"; a[2].ping = "未评价"; a[2].fen = "0"; }
public void GetAdd() { //List<SE> list = new List<SE>(); SE se = new SE(); se.ID = Convert.ToInt32(txtId.Text.Trim()); se.Name = txtName.Text.Trim(); se.Age = Convert.ToInt32(txtAge.Text.Trim()); if (cboSex.Text == "男") { se.Sex = "男"; } else { se.Sex = "女"; } li.Add(se); o.GetList(li); //list.Add(se); //o.dgvOffice.DataSource = new BindingList<SE>(list); }
//员工信息初始化 public void Init() { //实例化程序员对象 List <Job> list1 = new List <Job>(); list1.Add(new Job("编码", "购物车模块")); list1.Add(new Job("测试", "给购物车模块做单元测试")); SE ai = new SE("112", "艾边成", 25, Gender.male, 100, list1); List <Job> list2 = new List <Job>(); list2.Add(new Job("设计", "数据库建模")); list2.Add(new Job("编写文档", "详细设计说明书")); SE joe = new SE("113", "Joe", 30, Gender.female, 200, list2); //实例化PM对象 PM pm = new PM("890", "盖茨", 50, Gender.female, 50, null); empls.Add(ai); empls.Add(joe); empls.Add(pm); }
public void Update(SE se, string Evaluation, string Scorce) { se.Evaluation = Evaluation; se.Scorce = Convert.ToInt32(Scorce); }
public FrmJudge(int index, FrmShow Judge) { InitializeComponent(); this.main = Judge; a = this.main.a[index]; }
public void show(SE se, string ping, string fen) { se.ping = ping; se.fen = fen; }