Exemplo n.º 1
0
        public bool suaHD(eHopDong ehd)
        {
            Hop_Dong t = new Hop_Dong();

            t.soHD     = ehd.SoHD;
            t.maKH     = ehd.MaKH;
            t.ng_NgThu = ehd.Ngayngthu;
            t.tenKH    = ehd.TenKH;
            t.triGiaHD = Convert.ToDecimal(ehd.TriGiaHD);
            t.diaChi   = ehd.Diachi;
            t.ngayHD   = ehd.NgayHD;
            t.ngayHD   = ehd.Ngaygiao;
            t.soXe     = ehd.SoXe;
            return(hddal.suaHD(t));
        }
Exemplo n.º 2
0
        public eHopDong getTho(string ma)
        {
            eHopDong ehd = new eHopDong();
            Hop_Dong t   = new Hop_Dong();

            t             = hddal.getHD(ma);
            ehd.SoHD      = t.soHD;
            ehd.MaKH      = t.maKH;
            ehd.Ngayngthu = t.ng_NgThu;
            ehd.TenKH     = t.tenKH;
            ehd.TriGiaHD  = Convert.ToDouble(t.triGiaHD);
            ehd.Diachi    = t.diaChi;
            ehd.NgayHD    = t.ngayHD;
            ehd.Ngaygiao  = t.ngayHD;
            ehd.SoXe      = t.soXe;
            return(ehd);
        }