Example #1
0
 public static DateTime GetTimeServer()
 {
     using (var db = new DUONGDAI_KHACHHEN_DA())
     {
         return(db.GetTimeServer());
     }
 }
Example #2
0
 /// <summary>
 /// Hàm sử dụng ở điều xe
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public List <DUONGDAI_KHACHHEN> GetByTime(DateTime?id)
 {
     using (var db = new DUONGDAI_KHACHHEN_DA())
     {
         return(db.GetByTime(id).ToList <DUONGDAI_KHACHHEN>());
     }
 }
Example #3
0
 public List <DUONGDAI_KHACHHEN> DieuxeTimKiem(DateTime?dt, string dienthoai, string diachi, string tenkhachhang)
 {
     using (var db = new DUONGDAI_KHACHHEN_DA())
     {
         return(db.DieuxeTimKiem(dt, dienthoai, diachi, tenkhachhang).ToList <DUONGDAI_KHACHHEN>());
     }
 }
Example #4
0
 public List <DUONGDAI_KHACHHEN> GetLichSu(long id)
 {
     using (var db = new DUONGDAI_KHACHHEN_DA())
     {
         return(db.GetLichSu(id).ToList <DUONGDAI_KHACHHEN>());
     }
 }
Example #5
0
 public List <DUONGDAI_KHACHHEN> TimKiem(DateTime deStart, DateTime deEnd, string sdt, string diaChi)
 {
     using (var db = new DUONGDAI_KHACHHEN_DA())
     {
         return(db.TimKiem(deStart, deEnd, sdt, diaChi).ToList <DUONGDAI_KHACHHEN>());
     }
 }
Example #6
0
 /// <summary>
 /// Gets all.
 /// </summary>
 /// <returns>DataTable.</returns>
 public DataTable GetAll()
 {
     using (var db = new DUONGDAI_KHACHHEN_DA())
     {
         return(db.GetAll());
     }
 }
Example #7
0
 /// <summary>
 /// Inserts this instance.
 /// </summary>
 /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
 public bool Insert()
 {
     using (var db = new DUONGDAI_KHACHHEN_DA())
     {
         db.CopyTo(this);
         return(db.Insert());
     }
 }
Example #8
0
 /// <summary>
 /// Updates this instance.
 /// </summary>
 /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
 public bool Update()
 {
     using (var db = new DUONGDAI_KHACHHEN_DA())
     {
         db.CopyTo(this);
         return(db.Update());
     }
 }
Example #9
0
 /// <summary>
 /// Deletes this instance.
 /// </summary>
 /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
 public bool Delete()
 {
     using (var db = new DUONGDAI_KHACHHEN_DA())
     {
         db.Id        = this.Id;
         db.UpdatedBy = this.UpdatedBy;
         return(db.Delete());
     }
 }