Пример #1
0
 private void Formbalo_Load(object sender, EventArgs e)
 {
     loadkh();
     loadloaiphukien();
     LoadDanhMuc();
     LoadPhuKien("LPK01");
     loaduudai();
     dgvPhuKien.Rows.Clear();
     using (quanlithucungEntities1 quanli = new quanlithucungEntities1())
     {
         List <getmahd_Result> ds_kq = quanli.getmahd().ToList();
         foreach (var item in ds_kq)
         {
             txtmahoadon.Text = ds_kq[0].MaHD;
         }
     }
     loadhdchuathanhtoan();
 }
Пример #2
0
 private void Formbanhthuong_Load(object sender, EventArgs e)
 {
     loadloaithucpham();
     loaddanhmuc();
     loadthucpham("LTP01");
     loaduudai();
     dgvThucPham.Rows.Clear();
     using (quanlithucungEntities1 quanli = new quanlithucungEntities1())
     {
         List <getmahd_Result> ds_kq = quanli.getmahd().ToList();
         foreach (var item in ds_kq)
         {
             txtmahoadon.Text = ds_kq[0].MaHD;
         }
     }
     loadhdchuathanhtoan();
     btnluu.Enabled       = false;
     btnthanhtoan.Enabled = false;
 }
Пример #3
0
        private void Husky_Load(object sender, EventArgs e)

        {
            loadkh();

            loadLoaiThuCung();
            cbLoaiThuCung.SelectedIndex = -1;
            // loadHoaDonThuCung();
            LoadDanhMuc();
            LoadThuCung("LTC01");
            loaduudai();
            dgvThuCung.Rows.Clear();
            using (quanlithucungEntities1 quanli = new quanlithucungEntities1())
            {
                List <getmahd_Result> ds_kq = quanli.getmahd().ToList();
                foreach (var item in ds_kq)
                {
                    txtmahoadon.Text = ds_kq[0].MaHD;
                }
            }
            loadhdchuathanhtoan();
            btnluu.Enabled       = false;
            btnthanhtoan.Enabled = false;
        }