示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         DichVuService.ThemDVHD(int.Parse(comboBox1.Text), int.Parse(comboBox2.Text));
         MessageBox.Show("Thêm thành công");
     }
     catch
     {
         MessageBox.Show("Thêm thất bại");
     }
 }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                DichVuService.ThemDichVu((txt_tdv.Text), decimal.Parse(txt_dongia.Text), (txt_dvt.Text), (txt_trangthai.Text));
                MessageBox.Show("Thêm thành công");

                C05_DICHVU_Load(sender, e);
            }
            catch
            {
                MessageBox.Show("Thêm thất bại");
            }
        }
示例#3
0
        private void C05_ThemDichVuHoaDon_Load(object sender, EventArgs e)
        {
            comboBox2.Items.Add("Mời bạn chọn id ");
            comboBox2.SelectedIndex = 0;
            foreach (var item in DichVuService.ListID())
            {
                comboBox2.Items.Add(item);
            }

            comboBox1.Items.Add("Mời bạn chọn id ");
            comboBox1.SelectedIndex = 0;
            foreach (var hd in DichVuService.ListHD())
            {
                comboBox1.Items.Add(hd);
            }
        }