public void Insert(int Stt, string MaLuotkham, short Nam, byte TrangThai, byte Loai, string UsedBy, DateTime?StartTime, DateTime?EndTime, string UnlockBy, DateTime?UnlockTime)
        {
            KcbDmucLuotkham item = new KcbDmucLuotkham();

            item.Stt = Stt;

            item.MaLuotkham = MaLuotkham;

            item.Nam = Nam;

            item.TrangThai = TrangThai;

            item.Loai = Loai;

            item.UsedBy = UsedBy;

            item.StartTime = StartTime;

            item.EndTime = EndTime;

            item.UnlockBy = UnlockBy;

            item.UnlockTime = UnlockTime;


            item.Save(UserName);
        }
 public bool Destroy(object MaLuotkham)
 {
     return(KcbDmucLuotkham.Destroy(MaLuotkham) == 1);
 }
 public bool Delete(object MaLuotkham)
 {
     return(KcbDmucLuotkham.Delete(MaLuotkham) == 1);
 }