Exemplo n.º 1
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     KhoHang.Model.UpdateKho update = new Model.UpdateKho();
     float SoLuong = float.Parse(txtSoLuong.Value.ToString());
     update.UpdateSoLuongTon(ID, SoLuong);
     this.Close();
 }
 private void buttonX1_Click(object sender, EventArgs e)
 {
     if (textBoxX1.Text != "")
     {
         KhoHang.Model.UpdateKho kho = new Model.UpdateKho();
         kho.UpdateNhomDanhMucNguyenLieu(Nhom,textBoxX1.Text);
         this.Close();
     }
     else
     {
         MessageBox.Show("Bạn chưa điền đầy đủ");
     }
 }
 private void buttonX1_Click(object sender, EventArgs e)
 {
     if (textBoxX1.Text != "")
     {
         KhoHang.Model.UpdateKho kho = new Model.UpdateKho();
         kho.UpdateDanhMucKho(MaDanhMuc, textBoxX1.Text);
         this.Close();
     }
     else
     {
         MessageBox.Show("Bạn chưa điền đầy đủ thông tin");
     }
 }
 private void buttonX1_Click(object sender, EventArgs e)
 {
     if (txtNguyenLieu.Text != "" && txtGia.Text != "")
     {
         KhoHang.Model.UpdateKho update = new Model.UpdateKho();
         update.UpdateNguyenLieu(MaNguyenLieu, txtNguyenLieu.Text, cbDonVi.Text, a, Convert.ToInt32(cbDanhMucNguyenLieu.SelectedValue.ToString()));
         this.Close();
     }
     else
     {
         MessageBox.Show("Bạn chưa điền đầy đủ");
     }
 }