示例#1
0
 //添加一个套餐
 public void GetSet() 
 {
     items.Add(h1.Name,h1);
     items.Add(h3.Name, h3);
     items.Add(h4.Name, h4);
     set = new HealthCheckSet("入学体检",items);
     set.GetPrice();
     allSet.Add("入学体检",set);
 }
示例#2
0
 //添加套餐
 private void btnSetAdd_Click(object sender, EventArgs e)
 {
     string setName=this.txtSetName.Text;
     if (this.txtSetName.Text.Trim() != null && this.txtSetName.Text.Trim() != "")
     {
         HealthCheckSet set = new HealthCheckSet();
         allSet.Add(txtSetName.Text, set);
         
         GetCbo();
         this.cboSetList.SelectedIndex = allSet.Count();
         MessageBox.Show("添加成功");
     }
     else 
     {
         MessageBox.Show("请输入套餐名称");
     }
 }
示例#3
0
 //更新DataGridView的值
 public void UpdateSet(HealthCheckSet set) 
 {
     this.dgvList.DataSource = new BindingList<HealthCheckItem>(set.Item.Values.ToList());
 }