public frmQuanLyKho()
 {
     InitializeComponent();
     ttkBUS = new ThongTinKho_BUS();
     eTTK   = new eThongTinKho();
     qlkBUS = new QuanLyKho_BUS();
     eQLK   = new eQuanLyKho();
 }
 public frmThongTinKho_dal()
 {
     InitializeComponent();
     ttkBUS = new ThongTinKho_BUS();
     ctkBUS = new ChiTietKho_BUS();
     eTTK   = new eThongTinKho();
     ect    = new eChiTietKho();
 }
        public List <eThongTinKho> GetKho()
        {
            List <eThongTinKho> eql = new List <eThongTinKho>();

            foreach (ThongTinKho ql in db.ThongTinKhos)
            {
                eThongTinKho t = new eThongTinKho();
                t.MaKho  = ql.maKho;
                t.TenKho = ql.tenKho;
                eql.Add(t);
            }
            return(eql);
        }
Exemplo n.º 4
0
        public List <eThongTinKho> GetALlKho()
        {
            var c = from i in db.ThongTinKhos
                    select i;
            List <eThongTinKho> ls = new List <eThongTinKho>();

            foreach (ThongTinKho t in c.ToList())
            {
                eThongTinKho e = new eThongTinKho();
                e.MaKho  = t.maKho;
                e.TenKho = t.tenKho;
                e.SDT    = t.soDienThoai;
                e.DiaChi = t.diaChi;
            }
            return(ls);
        }
Exemplo n.º 5
0
        public List <eThongTinKho> GetKhoByMa(string MaphieuDNNK)
        {
            var c = from i in db.ThongTinKhos join j in db.PhieuDNNKs on i.maKho equals j.MaKho
                    where j.MaPhieuDNNK == MaphieuDNNK
                    select i;
            List <eThongTinKho> ls = new List <eThongTinKho>();

            foreach (ThongTinKho t in c.ToList())
            {
                eThongTinKho e = new eThongTinKho();
                e.MaKho  = t.maKho;
                e.TenKho = t.tenKho;
                e.SDT    = t.soDienThoai;
                e.DiaChi = t.diaChi;
            }
            return(ls);
        }