예제 #1
0
        private void tat(object sender, FormClosedEventArgs e)
        {
            QLNguyenLieuNhap qlnln = new QLNguyenLieuNhap("", TenDn, Quyen);

            this.Hide();
            qlnln.ShowDialog();
        }
예제 #2
0
 public void NhaCc_ChapNhan()
 {
     if (txtmanhacc.Text == "")
     {
         MessageBox.Show("Nhập thiếu mã nhà cung cấp", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         NhaCungCapDTO nhacc = new NhaCungCapDTO();
         nhacc.MaNhaCc = txtmanhacc.Text;
         DataTable dt = nhacc_bus.NhaCc_SelectMa(nhacc);
         if (dt.Rows.Count == 0)
         {
             MessageBox.Show("Mã nhà cung cấp không hợp lệ", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
         else
         {
             MessageBox.Show("Đã chọn nhà cung cấp : " + dt.Rows[0][1].ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
             QLNguyenLieuNhap qlnhapnl = new QLNguyenLieuNhap(txtmanhacc.Text, TenDn, Quyen);
             this.Hide();
             qlnhapnl.ShowDialog();
         }
     }
 }
예제 #3
0
        private void btnnhap_Click(object sender, EventArgs e)
        {
            QLNguyenLieuNhap qlnhapnl = new QLNguyenLieuNhap("", TenDn, Quyen);

            qlnhapnl.ShowDialog();
        }