Beispiel #1
0
        //入学体检时的方法
        public void Iniset()
        {
            items = new List <HealthCheckItem>();
            items.Add(height);
            items.Add(weight);
            items.Add(sight);
            HealthCheckSet set = new HealthCheckSet("请选择", items);

            set.CalcPrice();
            setA = new HealthCheckSet("入学体检", items);
            setA.CalcPrice();
            this.healthset.Add(set.Name, set);
            this.healthset.Add(setA.Name, setA);
        }
Beispiel #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (this.txtSetName.Text.Trim() != null && this.txtSetName.Text.Trim() != "")
            {
                HealthCheckSet set = new HealthCheckSet();
                healthset.Add(this.txtSetName.Text.Trim(), set);
                Inits();

                this.cbxList.SelectedIndex = healthset.Count;
            }
            else
            {
                MessageBox.Show("请输入添加的套餐名称");
            }
        }
Beispiel #3
0
 //刷新dataGirdView1中的数据
 public void UpdateSet(HealthCheckSet set)
 {
     this.dataGridView1.DataSource = new BindingList <HealthCheckItem>(set.Items.ToList());
 }